diff --git a/.gitattributes b/.gitattributes index 535ca0652f57a854c3f01e21d86dcccad4fb67c5..e5c4c8e2d536a439a804e35ad78c61d845f79883 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1043,3 +1043,37 @@ shared/package-files/e7/e78a192f91686d6b9ab849a678653b708e41a07cfe9892881a44048b shared/package-files/e7/e78f082d2597c696138ed32ea948a027a01907ae1acb89fc4ace711662c35384/blob filter=lfs diff=lfs merge=lfs -text shared/package-files/e7/e79f4ba38486541ccd3e0129f65c0579475319567a5d01e2a92d62ec6027c779/blob filter=lfs diff=lfs merge=lfs -text shared/package-files/e8/e8031c410a8fd049afb011a6e84abea5ad85f0da99de201543eed1fcd5a51471/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e8/e84514c2e33210c163840c4be67168ec7f9c87e78de243bdc7a2c04055b32033/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e8/e8533dc7083fa346bda1933d60ea4a83b67d0945bceaf1b3541f82b4a0e2c6a0/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e8/e8574af88880b26b2c210e989092cc9a2317f992ba12bf44483b9c53408ee790/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e8/e89ff784ad3eb82a53de3d68f26b838eea10a32b636c0fc96ef5fa4d191f71bc/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e8/e8a4dc6be1c8f72b7214e5b89ef8269cef872cf5bd1179e82df1e8217497ddcf/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e8/e8b78ca5a8f791b359c94275a103e216d4d4e83082c9f32fd9d9bb85830a73a3/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e8/e8fbfcff2d9810aecb2d94e8e1f25fd68a6165da45de8f463ad225fbff1aa10e/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e9/e9114f3f1647fc56a61162ce30b78ce12d0657143166dc1d51dc8213a3400cec/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e9/e9a9b9d25e5df38e032cf23ee012de98ef50c3ca5411f4480a9f09427ae90152/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e9/e9b0cccf1dceb3bf4ef0f0c346352913ccab0f89f1e6bb9bf7fde46ff9b3bfb0/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/e9/e9cf97f0c3d27ce570880ce13f6e3a3a175fcfe4fac5c47ca1c972a61a6716e3/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ea/ea079a6864ca10a6f8ea7d2d312c71121f5c966dc8e334f713a3bc8eb242ee49/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ea/ea139c1ea37d1fa8ad61b38c8f755849c6a9976d6248aa7321aa43bc65a95d3f/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ea/ea1d34cf994ec0590d810cbe37fa509bc88febd96bd3ba9117b6d6e6e28ab23b/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ea/ea3bb28deaae8b95f10e8fcfe83ae5f1884eac7c3ecfece4ba5669a31d3e304f/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ea/ea4ec3637cf0b2016e1a43fdc2026563586650c9282c777d80f21728cd9c3378/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ea/eaf0e2c2edf67ac17b6d6f5e0186cc988b430bf2c335d8a03d73232f51fd65e1/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/eb/eb36df12a66137362404095eef74be201c69f6852b15f0229f19f447cacb2e22/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/eb/eb9182c7f7185adbd8d6e2c8cba225265c39841c51f5ce748dcf6caaa6b4fda9/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/eb/ebaee9a3763507c9f06122eaa6d4c90b03ffb9afb3d15a6f277b6aa815e4e899/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/eb/ebc69697b8aa392cb96a655b300cbeddf0605492638fa0c1e5ba915134d8d5bd/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ec/ec502b49f1c3b5704b2aea54d6e8368ca03240562b0af0b8fd97a27c8ba3721e/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ec/ec5b97356da1464691a722b09972010f3253a8b6fad83cd6b98ef0b054c17481/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ec/ec621acd762f264d0e8c01646cc031113a5f447e829396f6098d0c6add8593da/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ec/ec694d81202442f37649baadd3b3b49da34483cf9c4d3e980df869cf08821444/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ec/ecb064469fde8686bd0d222fba57a7184fd84efe4874fe39e7b6553f30944ae3/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ed/ed0504703697cfe5b6d9c1d82bb0ca131838929f3f9b12644506a9daba165a94/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ee/ee10d4ebc850f1faff94c7643e224b2d4dd0562bd23ac8b012cc9391bf48e0f7/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ee/ee3416b1de7a7648cf446fbd40a58e54726547f7b4bef71970e53ffbfa3b4a9d/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ee/ee93fd001b43c74b28fbc834dc6cdab1723000e00ebf2b627711c491bce7a0d6/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ee/eec82f88b87b28ceb9241d062d6db9188a878c5255658e9ba0979be282ce2d6d/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ee/eef91a5645a47c386298404e350696bc23d3f8675df730e71549b0856a5fe8a9/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ef/ef3f0747d01e4106a23d7b9422f19aedc157936ee326a2d16386ce8e4a601f59/blob filter=lfs diff=lfs merge=lfs -text +shared/package-files/ef/ef9f1cefedccbb04d7349c039d79185ddcc3f4ef70d5f6f1f7b3cab71376f168/blob filter=lfs diff=lfs merge=lfs -text diff --git a/shared/package-files/e8/e8059553d1bb6d12e9ded94e62ae652b9157bac6bd4de19456222bcb1ce8b07c/blob b/shared/package-files/e8/e8059553d1bb6d12e9ded94e62ae652b9157bac6bd4de19456222bcb1ce8b07c/blob new file mode 100644 index 0000000000000000000000000000000000000000..ec389023aea7601273ddd0fa78b87861522e0e7b Binary files /dev/null and b/shared/package-files/e8/e8059553d1bb6d12e9ded94e62ae652b9157bac6bd4de19456222bcb1ce8b07c/blob differ diff --git a/shared/package-files/e8/e8085bc4b1d0c1d161f296e06d9c2772c7940123edf9281af20776c432fe3e1c/blob b/shared/package-files/e8/e8085bc4b1d0c1d161f296e06d9c2772c7940123edf9281af20776c432fe3e1c/blob new file mode 100644 index 0000000000000000000000000000000000000000..7d29199f94ee83fc544aed88d55cea15f7d7b3a1 --- /dev/null +++ b/shared/package-files/e8/e8085bc4b1d0c1d161f296e06d9c2772c7940123edf9281af20776c432fe3e1c/blob @@ -0,0 +1,27 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeMetaFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace at { +namespace meta { + +struct TORCH_API structured_silu_backward : public TensorIteratorBase { + + + void meta(const at::Tensor & grad_output, const at::Tensor & self); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/e8/e80aa7dba68a509a7be6e9c5a820337ac2eafed58fb10a69dab09fb5ab92392f/blob b/shared/package-files/e8/e80aa7dba68a509a7be6e9c5a820337ac2eafed58fb10a69dab09fb5ab92392f/blob new file mode 100644 index 0000000000000000000000000000000000000000..ee47f45509c86968b9b551eb8740ad301fd37958 --- /dev/null +++ b/shared/package-files/e8/e80aa7dba68a509a7be6e9c5a820337ac2eafed58fb10a69dab09fb5ab92392f/blob @@ -0,0 +1,122 @@ +import numpy as np +from scipy.optimize import _lbfgsb, minimize + + +def objfun(x): + """simplified objective func to test lbfgsb bound violation""" + x0 = [0.8750000000000278, + 0.7500000000000153, + 0.9499999999999722, + 0.8214285714285992, + 0.6363636363636085] + x1 = [1.0, 0.0, 1.0, 0.0, 0.0] + x2 = [1.0, + 0.0, + 0.9889733043149325, + 0.0, + 0.026353554421041155] + x3 = [1.0, + 0.0, + 0.9889917442915558, + 0.0, + 0.020341986743231205] + + f0 = 5163.647901211178 + f1 = 5149.8181642072905 + f2 = 5149.379332309634 + f3 = 5149.374490771297 + + g0 = np.array([-0.5934820547965749, + 1.6251549718258351, + -71.99168459202559, + 5.346636965797545, + 37.10732723092604]) + g1 = np.array([-0.43295349282641515, + 1.008607936794592, + 18.223666726602975, + 31.927010036981997, + -19.667512518739386]) + g2 = np.array([-0.4699874455100256, + 0.9466285353668347, + -0.016874360242016825, + 48.44999161133457, + 5.819631620590712]) + g3 = np.array([-0.46970678696829116, + 0.9612719312174818, + 0.006129809488833699, + 48.43557729419473, + 6.005481418498221]) + + if np.allclose(x, x0): + f = f0 + g = g0 + elif np.allclose(x, x1): + f = f1 + g = g1 + elif np.allclose(x, x2): + f = f2 + g = g2 + elif np.allclose(x, x3): + f = f3 + g = g3 + else: + raise ValueError( + 'Simplified objective function not defined ' + 'at requested point') + return (np.copy(f), np.copy(g)) + + +def test_setulb_floatround(): + """test if setulb() violates bounds + + checks for violation due to floating point rounding error + """ + + n = 5 + m = 10 + factr = 1e7 + pgtol = 1e-5 + maxls = 20 + nbd = np.full(shape=(n,), fill_value=2, dtype=np.int32) + low_bnd = np.zeros(n, dtype=np.float64) + upper_bnd = np.ones(n, dtype=np.float64) + + x0 = np.array( + [0.8750000000000278, + 0.7500000000000153, + 0.9499999999999722, + 0.8214285714285992, + 0.6363636363636085]) + x = np.copy(x0) + + f = np.array(0.0, dtype=np.float64) + g = np.zeros(n, dtype=np.float64) + + wa = np.zeros(2*m*n + 5*n + 11*m*m + 8*m, dtype=np.float64) + iwa = np.zeros(3*n, dtype=np.int32) + task = np.zeros(2, dtype=np.int32) + ln_task = np.zeros(2, dtype=np.int32) + lsave = np.zeros(4, dtype=np.int32) + isave = np.zeros(44, dtype=np.int32) + dsave = np.zeros(29, dtype=np.float64) + + for n_iter in range(7): # 7 steps required to reproduce error + f, g = objfun(x) + + _lbfgsb.setulb(m, x, low_bnd, upper_bnd, nbd, f, g, factr, pgtol, wa, + iwa, task, lsave, isave, dsave, maxls, ln_task) + + assert (x <= upper_bnd).all() and (x >= low_bnd).all(), ( + "_lbfgsb.setulb() stepped to a point outside of the bounds") + + +def test_gh_issue18730(): + # issue 18730 reported that l-bfgs-b did not work with objectives + # returning single precision gradient arrays + def fun_single_precision(x): + x = x.astype(np.float32) + return np.sum(x**2), (2*x) + + res = minimize(fun_single_precision, x0=np.array([1., 1.]), jac=True, + method="l-bfgs-b") + np.testing.assert_allclose(res.fun, 0., atol=1e-15) diff --git a/shared/package-files/e8/e80acaf24b2c84b6050ce0e8f7543be7f72acc58e7d26373437f9375e7eee32e/blob b/shared/package-files/e8/e80acaf24b2c84b6050ce0e8f7543be7f72acc58e7d26373437f9375e7eee32e/blob new file mode 100644 index 0000000000000000000000000000000000000000..519f49005f776412a448bd773547575b1685214c --- /dev/null +++ b/shared/package-files/e8/e80acaf24b2c84b6050ce0e8f7543be7f72acc58e7d26373437f9375e7eee32e/blob @@ -0,0 +1,4 @@ +#pragma once + +#include +#include diff --git a/shared/package-files/e8/e80b8396342dbdff3d0d3354c9633b937a1494ffe5abbd0d53e20d28ab5e3816/blob b/shared/package-files/e8/e80b8396342dbdff3d0d3354c9633b937a1494ffe5abbd0d53e20d28ab5e3816/blob new file mode 100644 index 0000000000000000000000000000000000000000..39c84aae5d8e1f4701b0b04fb9fcb8d4ca219de4 --- /dev/null +++ b/shared/package-files/e8/e80b8396342dbdff3d0d3354c9633b937a1494ffe5abbd0d53e20d28ab5e3816/blob @@ -0,0 +1,82 @@ +""" + Pygments + ~~~~~~~~ + + Pygments is a syntax highlighting package written in Python. + + It is a generic syntax highlighter for general use in all kinds of software + such as forum systems, wikis or other applications that need to prettify + source code. Highlights are: + + * a wide range of common languages and markup formats is supported + * special attention is paid to details, increasing quality by a fair amount + * support for new languages and formats are added easily + * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image + formats that PIL supports, and ANSI sequences + * it is usable as a command-line tool and as a library + * ... and it highlights even Brainfuck! + + The `Pygments master branch`_ is installable with ``easy_install Pygments==dev``. + + .. _Pygments master branch: + https://github.com/pygments/pygments/archive/master.zip#egg=Pygments-dev + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" +from io import StringIO, BytesIO + +__version__ = '2.15.1' +__docformat__ = 'restructuredtext' + +__all__ = ['lex', 'format', 'highlight'] + + +def lex(code, lexer): + """ + Lex `code` with the `lexer` (must be a `Lexer` instance) + and return an iterable of tokens. Currently, this only calls + `lexer.get_tokens()`. + """ + try: + return lexer.get_tokens(code) + except TypeError: + # Heuristic to catch a common mistake. + from pip._vendor.pygments.lexer import RegexLexer + if isinstance(lexer, type) and issubclass(lexer, RegexLexer): + raise TypeError('lex() argument must be a lexer instance, ' + 'not a class') + raise + + +def format(tokens, formatter, outfile=None): # pylint: disable=redefined-builtin + """ + Format ``tokens`` (an iterable of tokens) with the formatter ``formatter`` + (a `Formatter` instance). + + If ``outfile`` is given and a valid file object (an object with a + ``write`` method), the result will be written to it, otherwise it + is returned as a string. + """ + try: + if not outfile: + realoutfile = getattr(formatter, 'encoding', None) and BytesIO() or StringIO() + formatter.format(tokens, realoutfile) + return realoutfile.getvalue() + else: + formatter.format(tokens, outfile) + except TypeError: + # Heuristic to catch a common mistake. + from pip._vendor.pygments.formatter import Formatter + if isinstance(formatter, type) and issubclass(formatter, Formatter): + raise TypeError('format() argument must be a formatter instance, ' + 'not a class') + raise + + +def highlight(code, lexer, formatter, outfile=None): + """ + This is the most high-level highlighting function. It combines `lex` and + `format` in one function. + """ + return format(lex(code, lexer), formatter, outfile) diff --git a/shared/package-files/e8/e80c37ff6bdd6e1e2eac4450e8d68f85ff5afd3d68d68e9c8e6ddf6f9677fd81/blob b/shared/package-files/e8/e80c37ff6bdd6e1e2eac4450e8d68f85ff5afd3d68d68e9c8e6ddf6f9677fd81/blob new file mode 100644 index 0000000000000000000000000000000000000000..3b8db2a9512694c8148cd6e3538c70087e3cd1a8 --- /dev/null +++ b/shared/package-files/e8/e80c37ff6bdd6e1e2eac4450e8d68f85ff5afd3d68d68e9c8e6ddf6f9677fd81/blob @@ -0,0 +1,1453 @@ +""" +Functions to operate on polynomials. + +""" +__all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', + 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', + 'polyfit', 'RankWarning'] + +import functools +import re +import warnings + +from .._utils import set_module +import numpy.core.numeric as NX + +from numpy.core import (isscalar, abs, finfo, atleast_1d, hstack, dot, array, + ones) +from numpy.core import overrides +from numpy.lib.twodim_base import diag, vander +from numpy.lib.function_base import trim_zeros +from numpy.lib.type_check import iscomplex, real, imag, mintypecode +from numpy.linalg import eigvals, lstsq, inv + + +array_function_dispatch = functools.partial( + overrides.array_function_dispatch, module='numpy') + + +@set_module('numpy') +class RankWarning(UserWarning): + """ + Issued by `polyfit` when the Vandermonde matrix is rank deficient. + + For more information, a way to suppress the warning, and an example of + `RankWarning` being issued, see `polyfit`. + + """ + pass + + +def _poly_dispatcher(seq_of_zeros): + return seq_of_zeros + + +@array_function_dispatch(_poly_dispatcher) +def poly(seq_of_zeros): + """ + Find the coefficients of a polynomial with the given sequence of roots. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + Returns the coefficients of the polynomial whose leading coefficient + is one for the given sequence of zeros (multiple roots must be included + in the sequence as many times as their multiplicity; see Examples). + A square matrix (or array, which will be treated as a matrix) can also + be given, in which case the coefficients of the characteristic polynomial + of the matrix are returned. + + Parameters + ---------- + seq_of_zeros : array_like, shape (N,) or (N, N) + A sequence of polynomial roots, or a square array or matrix object. + + Returns + ------- + c : ndarray + 1D array of polynomial coefficients from highest to lowest degree: + + ``c[0] * x**(N) + c[1] * x**(N-1) + ... + c[N-1] * x + c[N]`` + where c[0] always equals 1. + + Raises + ------ + ValueError + If input is the wrong shape (the input must be a 1-D or square + 2-D array). + + See Also + -------- + polyval : Compute polynomial values. + roots : Return the roots of a polynomial. + polyfit : Least squares polynomial fit. + poly1d : A one-dimensional polynomial class. + + Notes + ----- + Specifying the roots of a polynomial still leaves one degree of + freedom, typically represented by an undetermined leading + coefficient. [1]_ In the case of this function, that coefficient - + the first one in the returned array - is always taken as one. (If + for some reason you have one other point, the only automatic way + presently to leverage that information is to use ``polyfit``.) + + The characteristic polynomial, :math:`p_a(t)`, of an `n`-by-`n` + matrix **A** is given by + + :math:`p_a(t) = \\mathrm{det}(t\\, \\mathbf{I} - \\mathbf{A})`, + + where **I** is the `n`-by-`n` identity matrix. [2]_ + + References + ---------- + .. [1] M. Sullivan and M. Sullivan, III, "Algebra and Trigonometry, + Enhanced With Graphing Utilities," Prentice-Hall, pg. 318, 1996. + + .. [2] G. Strang, "Linear Algebra and Its Applications, 2nd Edition," + Academic Press, pg. 182, 1980. + + Examples + -------- + Given a sequence of a polynomial's zeros: + + >>> np.poly((0, 0, 0)) # Multiple root example + array([1., 0., 0., 0.]) + + The line above represents z**3 + 0*z**2 + 0*z + 0. + + >>> np.poly((-1./2, 0, 1./2)) + array([ 1. , 0. , -0.25, 0. ]) + + The line above represents z**3 - z/4 + + >>> np.poly((np.random.random(1)[0], 0, np.random.random(1)[0])) + array([ 1. , -0.77086955, 0.08618131, 0. ]) # random + + Given a square array object: + + >>> P = np.array([[0, 1./3], [-1./2, 0]]) + >>> np.poly(P) + array([1. , 0. , 0.16666667]) + + Note how in all cases the leading coefficient is always 1. + + """ + seq_of_zeros = atleast_1d(seq_of_zeros) + sh = seq_of_zeros.shape + + if len(sh) == 2 and sh[0] == sh[1] and sh[0] != 0: + seq_of_zeros = eigvals(seq_of_zeros) + elif len(sh) == 1: + dt = seq_of_zeros.dtype + # Let object arrays slip through, e.g. for arbitrary precision + if dt != object: + seq_of_zeros = seq_of_zeros.astype(mintypecode(dt.char)) + else: + raise ValueError("input must be 1d or non-empty square 2d array.") + + if len(seq_of_zeros) == 0: + return 1.0 + dt = seq_of_zeros.dtype + a = ones((1,), dtype=dt) + for zero in seq_of_zeros: + a = NX.convolve(a, array([1, -zero], dtype=dt), mode='full') + + if issubclass(a.dtype.type, NX.complexfloating): + # if complex roots are all complex conjugates, the roots are real. + roots = NX.asarray(seq_of_zeros, complex) + if NX.all(NX.sort(roots) == NX.sort(roots.conjugate())): + a = a.real.copy() + + return a + + +def _roots_dispatcher(p): + return p + + +@array_function_dispatch(_roots_dispatcher) +def roots(p): + """ + Return the roots of a polynomial with coefficients given in p. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + The values in the rank-1 array `p` are coefficients of a polynomial. + If the length of `p` is n+1 then the polynomial is described by:: + + p[0] * x**n + p[1] * x**(n-1) + ... + p[n-1]*x + p[n] + + Parameters + ---------- + p : array_like + Rank-1 array of polynomial coefficients. + + Returns + ------- + out : ndarray + An array containing the roots of the polynomial. + + Raises + ------ + ValueError + When `p` cannot be converted to a rank-1 array. + + See also + -------- + poly : Find the coefficients of a polynomial with a given sequence + of roots. + polyval : Compute polynomial values. + polyfit : Least squares polynomial fit. + poly1d : A one-dimensional polynomial class. + + Notes + ----- + The algorithm relies on computing the eigenvalues of the + companion matrix [1]_. + + References + ---------- + .. [1] R. A. Horn & C. R. Johnson, *Matrix Analysis*. Cambridge, UK: + Cambridge University Press, 1999, pp. 146-7. + + Examples + -------- + >>> coeff = [3.2, 2, 1] + >>> np.roots(coeff) + array([-0.3125+0.46351241j, -0.3125-0.46351241j]) + + """ + # If input is scalar, this makes it an array + p = atleast_1d(p) + if p.ndim != 1: + raise ValueError("Input must be a rank-1 array.") + + # find non-zero array entries + non_zero = NX.nonzero(NX.ravel(p))[0] + + # Return an empty array if polynomial is all zeros + if len(non_zero) == 0: + return NX.array([]) + + # find the number of trailing zeros -- this is the number of roots at 0. + trailing_zeros = len(p) - non_zero[-1] - 1 + + # strip leading and trailing zeros + p = p[int(non_zero[0]):int(non_zero[-1])+1] + + # casting: if incoming array isn't floating point, make it floating point. + if not issubclass(p.dtype.type, (NX.floating, NX.complexfloating)): + p = p.astype(float) + + N = len(p) + if N > 1: + # build companion matrix and find its eigenvalues (the roots) + A = diag(NX.ones((N-2,), p.dtype), -1) + A[0,:] = -p[1:] / p[0] + roots = eigvals(A) + else: + roots = NX.array([]) + + # tack any zeros onto the back of the array + roots = hstack((roots, NX.zeros(trailing_zeros, roots.dtype))) + return roots + + +def _polyint_dispatcher(p, m=None, k=None): + return (p,) + + +@array_function_dispatch(_polyint_dispatcher) +def polyint(p, m=1, k=None): + """ + Return an antiderivative (indefinite integral) of a polynomial. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + The returned order `m` antiderivative `P` of polynomial `p` satisfies + :math:`\\frac{d^m}{dx^m}P(x) = p(x)` and is defined up to `m - 1` + integration constants `k`. The constants determine the low-order + polynomial part + + .. math:: \\frac{k_{m-1}}{0!} x^0 + \\ldots + \\frac{k_0}{(m-1)!}x^{m-1} + + of `P` so that :math:`P^{(j)}(0) = k_{m-j-1}`. + + Parameters + ---------- + p : array_like or poly1d + Polynomial to integrate. + A sequence is interpreted as polynomial coefficients, see `poly1d`. + m : int, optional + Order of the antiderivative. (Default: 1) + k : list of `m` scalars or scalar, optional + Integration constants. They are given in the order of integration: + those corresponding to highest-order terms come first. + + If ``None`` (default), all constants are assumed to be zero. + If `m = 1`, a single scalar can be given instead of a list. + + See Also + -------- + polyder : derivative of a polynomial + poly1d.integ : equivalent method + + Examples + -------- + The defining property of the antiderivative: + + >>> p = np.poly1d([1,1,1]) + >>> P = np.polyint(p) + >>> P + poly1d([ 0.33333333, 0.5 , 1. , 0. ]) # may vary + >>> np.polyder(P) == p + True + + The integration constants default to zero, but can be specified: + + >>> P = np.polyint(p, 3) + >>> P(0) + 0.0 + >>> np.polyder(P)(0) + 0.0 + >>> np.polyder(P, 2)(0) + 0.0 + >>> P = np.polyint(p, 3, k=[6,5,3]) + >>> P + poly1d([ 0.01666667, 0.04166667, 0.16666667, 3. , 5. , 3. ]) # may vary + + Note that 3 = 6 / 2!, and that the constants are given in the order of + integrations. Constant of the highest-order polynomial term comes first: + + >>> np.polyder(P, 2)(0) + 6.0 + >>> np.polyder(P, 1)(0) + 5.0 + >>> P(0) + 3.0 + + """ + m = int(m) + if m < 0: + raise ValueError("Order of integral must be positive (see polyder)") + if k is None: + k = NX.zeros(m, float) + k = atleast_1d(k) + if len(k) == 1 and m > 1: + k = k[0]*NX.ones(m, float) + if len(k) < m: + raise ValueError( + "k must be a scalar or a rank-1 array of length 1 or >m.") + + truepoly = isinstance(p, poly1d) + p = NX.asarray(p) + if m == 0: + if truepoly: + return poly1d(p) + return p + else: + # Note: this must work also with object and integer arrays + y = NX.concatenate((p.__truediv__(NX.arange(len(p), 0, -1)), [k[0]])) + val = polyint(y, m - 1, k=k[1:]) + if truepoly: + return poly1d(val) + return val + + +def _polyder_dispatcher(p, m=None): + return (p,) + + +@array_function_dispatch(_polyder_dispatcher) +def polyder(p, m=1): + """ + Return the derivative of the specified order of a polynomial. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + Parameters + ---------- + p : poly1d or sequence + Polynomial to differentiate. + A sequence is interpreted as polynomial coefficients, see `poly1d`. + m : int, optional + Order of differentiation (default: 1) + + Returns + ------- + der : poly1d + A new polynomial representing the derivative. + + See Also + -------- + polyint : Anti-derivative of a polynomial. + poly1d : Class for one-dimensional polynomials. + + Examples + -------- + The derivative of the polynomial :math:`x^3 + x^2 + x^1 + 1` is: + + >>> p = np.poly1d([1,1,1,1]) + >>> p2 = np.polyder(p) + >>> p2 + poly1d([3, 2, 1]) + + which evaluates to: + + >>> p2(2.) + 17.0 + + We can verify this, approximating the derivative with + ``(f(x + h) - f(x))/h``: + + >>> (p(2. + 0.001) - p(2.)) / 0.001 + 17.007000999997857 + + The fourth-order derivative of a 3rd-order polynomial is zero: + + >>> np.polyder(p, 2) + poly1d([6, 2]) + >>> np.polyder(p, 3) + poly1d([6]) + >>> np.polyder(p, 4) + poly1d([0]) + + """ + m = int(m) + if m < 0: + raise ValueError("Order of derivative must be positive (see polyint)") + + truepoly = isinstance(p, poly1d) + p = NX.asarray(p) + n = len(p) - 1 + y = p[:-1] * NX.arange(n, 0, -1) + if m == 0: + val = p + else: + val = polyder(y, m - 1) + if truepoly: + val = poly1d(val) + return val + + +def _polyfit_dispatcher(x, y, deg, rcond=None, full=None, w=None, cov=None): + return (x, y, w) + + +@array_function_dispatch(_polyfit_dispatcher) +def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False): + """ + Least squares polynomial fit. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + Fit a polynomial ``p(x) = p[0] * x**deg + ... + p[deg]`` of degree `deg` + to points `(x, y)`. Returns a vector of coefficients `p` that minimises + the squared error in the order `deg`, `deg-1`, ... `0`. + + The `Polynomial.fit ` class + method is recommended for new code as it is more stable numerically. See + the documentation of the method for more information. + + Parameters + ---------- + x : array_like, shape (M,) + x-coordinates of the M sample points ``(x[i], y[i])``. + y : array_like, shape (M,) or (M, K) + y-coordinates of the sample points. Several data sets of sample + points sharing the same x-coordinates can be fitted at once by + passing in a 2D-array that contains one dataset per column. + deg : int + Degree of the fitting polynomial + rcond : float, optional + Relative condition number of the fit. Singular values smaller than + this relative to the largest singular value will be ignored. The + default value is len(x)*eps, where eps is the relative precision of + the float type, about 2e-16 in most cases. + full : bool, optional + Switch determining nature of return value. When it is False (the + default) just the coefficients are returned, when True diagnostic + information from the singular value decomposition is also returned. + w : array_like, shape (M,), optional + Weights. If not None, the weight ``w[i]`` applies to the unsquared + residual ``y[i] - y_hat[i]`` at ``x[i]``. Ideally the weights are + chosen so that the errors of the products ``w[i]*y[i]`` all have the + same variance. When using inverse-variance weighting, use + ``w[i] = 1/sigma(y[i])``. The default value is None. + cov : bool or str, optional + If given and not `False`, return not just the estimate but also its + covariance matrix. By default, the covariance are scaled by + chi2/dof, where dof = M - (deg + 1), i.e., the weights are presumed + to be unreliable except in a relative sense and everything is scaled + such that the reduced chi2 is unity. This scaling is omitted if + ``cov='unscaled'``, as is relevant for the case that the weights are + w = 1/sigma, with sigma known to be a reliable estimate of the + uncertainty. + + Returns + ------- + p : ndarray, shape (deg + 1,) or (deg + 1, K) + Polynomial coefficients, highest power first. If `y` was 2-D, the + coefficients for `k`-th data set are in ``p[:,k]``. + + residuals, rank, singular_values, rcond + These values are only returned if ``full == True`` + + - residuals -- sum of squared residuals of the least squares fit + - rank -- the effective rank of the scaled Vandermonde + coefficient matrix + - singular_values -- singular values of the scaled Vandermonde + coefficient matrix + - rcond -- value of `rcond`. + + For more details, see `numpy.linalg.lstsq`. + + V : ndarray, shape (M,M) or (M,M,K) + Present only if ``full == False`` and ``cov == True``. The covariance + matrix of the polynomial coefficient estimates. The diagonal of + this matrix are the variance estimates for each coefficient. If y + is a 2-D array, then the covariance matrix for the `k`-th data set + are in ``V[:,:,k]`` + + + Warns + ----- + RankWarning + The rank of the coefficient matrix in the least-squares fit is + deficient. The warning is only raised if ``full == False``. + + The warnings can be turned off by + + >>> import warnings + >>> warnings.simplefilter('ignore', np.RankWarning) + + See Also + -------- + polyval : Compute polynomial values. + linalg.lstsq : Computes a least-squares fit. + scipy.interpolate.UnivariateSpline : Computes spline fits. + + Notes + ----- + The solution minimizes the squared error + + .. math:: + E = \\sum_{j=0}^k |p(x_j) - y_j|^2 + + in the equations:: + + x[0]**n * p[0] + ... + x[0] * p[n-1] + p[n] = y[0] + x[1]**n * p[0] + ... + x[1] * p[n-1] + p[n] = y[1] + ... + x[k]**n * p[0] + ... + x[k] * p[n-1] + p[n] = y[k] + + The coefficient matrix of the coefficients `p` is a Vandermonde matrix. + + `polyfit` issues a `RankWarning` when the least-squares fit is badly + conditioned. This implies that the best fit is not well-defined due + to numerical error. The results may be improved by lowering the polynomial + degree or by replacing `x` by `x` - `x`.mean(). The `rcond` parameter + can also be set to a value smaller than its default, but the resulting + fit may be spurious: including contributions from the small singular + values can add numerical noise to the result. + + Note that fitting polynomial coefficients is inherently badly conditioned + when the degree of the polynomial is large or the interval of sample points + is badly centered. The quality of the fit should always be checked in these + cases. When polynomial fits are not satisfactory, splines may be a good + alternative. + + References + ---------- + .. [1] Wikipedia, "Curve fitting", + https://en.wikipedia.org/wiki/Curve_fitting + .. [2] Wikipedia, "Polynomial interpolation", + https://en.wikipedia.org/wiki/Polynomial_interpolation + + Examples + -------- + >>> import warnings + >>> x = np.array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0]) + >>> y = np.array([0.0, 0.8, 0.9, 0.1, -0.8, -1.0]) + >>> z = np.polyfit(x, y, 3) + >>> z + array([ 0.08703704, -0.81349206, 1.69312169, -0.03968254]) # may vary + + It is convenient to use `poly1d` objects for dealing with polynomials: + + >>> p = np.poly1d(z) + >>> p(0.5) + 0.6143849206349179 # may vary + >>> p(3.5) + -0.34732142857143039 # may vary + >>> p(10) + 22.579365079365115 # may vary + + High-order polynomials may oscillate wildly: + + >>> with warnings.catch_warnings(): + ... warnings.simplefilter('ignore', np.RankWarning) + ... p30 = np.poly1d(np.polyfit(x, y, 30)) + ... + >>> p30(4) + -0.80000000000000204 # may vary + >>> p30(5) + -0.99999999999999445 # may vary + >>> p30(4.5) + -0.10547061179440398 # may vary + + Illustration: + + >>> import matplotlib.pyplot as plt + >>> xp = np.linspace(-2, 6, 100) + >>> _ = plt.plot(x, y, '.', xp, p(xp), '-', xp, p30(xp), '--') + >>> plt.ylim(-2,2) + (-2, 2) + >>> plt.show() + + """ + order = int(deg) + 1 + x = NX.asarray(x) + 0.0 + y = NX.asarray(y) + 0.0 + + # check arguments. + if deg < 0: + raise ValueError("expected deg >= 0") + if x.ndim != 1: + raise TypeError("expected 1D vector for x") + if x.size == 0: + raise TypeError("expected non-empty vector for x") + if y.ndim < 1 or y.ndim > 2: + raise TypeError("expected 1D or 2D array for y") + if x.shape[0] != y.shape[0]: + raise TypeError("expected x and y to have same length") + + # set rcond + if rcond is None: + rcond = len(x)*finfo(x.dtype).eps + + # set up least squares equation for powers of x + lhs = vander(x, order) + rhs = y + + # apply weighting + if w is not None: + w = NX.asarray(w) + 0.0 + if w.ndim != 1: + raise TypeError("expected a 1-d array for weights") + if w.shape[0] != y.shape[0]: + raise TypeError("expected w and y to have the same length") + lhs *= w[:, NX.newaxis] + if rhs.ndim == 2: + rhs *= w[:, NX.newaxis] + else: + rhs *= w + + # scale lhs to improve condition number and solve + scale = NX.sqrt((lhs*lhs).sum(axis=0)) + lhs /= scale + c, resids, rank, s = lstsq(lhs, rhs, rcond) + c = (c.T/scale).T # broadcast scale coefficients + + # warn on rank reduction, which indicates an ill conditioned matrix + if rank != order and not full: + msg = "Polyfit may be poorly conditioned" + warnings.warn(msg, RankWarning, stacklevel=2) + + if full: + return c, resids, rank, s, rcond + elif cov: + Vbase = inv(dot(lhs.T, lhs)) + Vbase /= NX.outer(scale, scale) + if cov == "unscaled": + fac = 1 + else: + if len(x) <= order: + raise ValueError("the number of data points must exceed order " + "to scale the covariance matrix") + # note, this used to be: fac = resids / (len(x) - order - 2.0) + # it was deciced that the "- 2" (originally justified by "Bayesian + # uncertainty analysis") is not what the user expects + # (see gh-11196 and gh-11197) + fac = resids / (len(x) - order) + if y.ndim == 1: + return c, Vbase * fac + else: + return c, Vbase[:,:, NX.newaxis] * fac + else: + return c + + +def _polyval_dispatcher(p, x): + return (p, x) + + +@array_function_dispatch(_polyval_dispatcher) +def polyval(p, x): + """ + Evaluate a polynomial at specific values. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + If `p` is of length N, this function returns the value: + + ``p[0]*x**(N-1) + p[1]*x**(N-2) + ... + p[N-2]*x + p[N-1]`` + + If `x` is a sequence, then ``p(x)`` is returned for each element of ``x``. + If `x` is another polynomial then the composite polynomial ``p(x(t))`` + is returned. + + Parameters + ---------- + p : array_like or poly1d object + 1D array of polynomial coefficients (including coefficients equal + to zero) from highest degree to the constant term, or an + instance of poly1d. + x : array_like or poly1d object + A number, an array of numbers, or an instance of poly1d, at + which to evaluate `p`. + + Returns + ------- + values : ndarray or poly1d + If `x` is a poly1d instance, the result is the composition of the two + polynomials, i.e., `x` is "substituted" in `p` and the simplified + result is returned. In addition, the type of `x` - array_like or + poly1d - governs the type of the output: `x` array_like => `values` + array_like, `x` a poly1d object => `values` is also. + + See Also + -------- + poly1d: A polynomial class. + + Notes + ----- + Horner's scheme [1]_ is used to evaluate the polynomial. Even so, + for polynomials of high degree the values may be inaccurate due to + rounding errors. Use carefully. + + If `x` is a subtype of `ndarray` the return value will be of the same type. + + References + ---------- + .. [1] I. N. Bronshtein, K. A. Semendyayev, and K. A. Hirsch (Eng. + trans. Ed.), *Handbook of Mathematics*, New York, Van Nostrand + Reinhold Co., 1985, pg. 720. + + Examples + -------- + >>> np.polyval([3,0,1], 5) # 3 * 5**2 + 0 * 5**1 + 1 + 76 + >>> np.polyval([3,0,1], np.poly1d(5)) + poly1d([76]) + >>> np.polyval(np.poly1d([3,0,1]), 5) + 76 + >>> np.polyval(np.poly1d([3,0,1]), np.poly1d(5)) + poly1d([76]) + + """ + p = NX.asarray(p) + if isinstance(x, poly1d): + y = 0 + else: + x = NX.asanyarray(x) + y = NX.zeros_like(x) + for pv in p: + y = y * x + pv + return y + + +def _binary_op_dispatcher(a1, a2): + return (a1, a2) + + +@array_function_dispatch(_binary_op_dispatcher) +def polyadd(a1, a2): + """ + Find the sum of two polynomials. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + Returns the polynomial resulting from the sum of two input polynomials. + Each input must be either a poly1d object or a 1D sequence of polynomial + coefficients, from highest to lowest degree. + + Parameters + ---------- + a1, a2 : array_like or poly1d object + Input polynomials. + + Returns + ------- + out : ndarray or poly1d object + The sum of the inputs. If either input is a poly1d object, then the + output is also a poly1d object. Otherwise, it is a 1D array of + polynomial coefficients from highest to lowest degree. + + See Also + -------- + poly1d : A one-dimensional polynomial class. + poly, polyadd, polyder, polydiv, polyfit, polyint, polysub, polyval + + Examples + -------- + >>> np.polyadd([1, 2], [9, 5, 4]) + array([9, 6, 6]) + + Using poly1d objects: + + >>> p1 = np.poly1d([1, 2]) + >>> p2 = np.poly1d([9, 5, 4]) + >>> print(p1) + 1 x + 2 + >>> print(p2) + 2 + 9 x + 5 x + 4 + >>> print(np.polyadd(p1, p2)) + 2 + 9 x + 6 x + 6 + + """ + truepoly = (isinstance(a1, poly1d) or isinstance(a2, poly1d)) + a1 = atleast_1d(a1) + a2 = atleast_1d(a2) + diff = len(a2) - len(a1) + if diff == 0: + val = a1 + a2 + elif diff > 0: + zr = NX.zeros(diff, a1.dtype) + val = NX.concatenate((zr, a1)) + a2 + else: + zr = NX.zeros(abs(diff), a2.dtype) + val = a1 + NX.concatenate((zr, a2)) + if truepoly: + val = poly1d(val) + return val + + +@array_function_dispatch(_binary_op_dispatcher) +def polysub(a1, a2): + """ + Difference (subtraction) of two polynomials. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + Given two polynomials `a1` and `a2`, returns ``a1 - a2``. + `a1` and `a2` can be either array_like sequences of the polynomials' + coefficients (including coefficients equal to zero), or `poly1d` objects. + + Parameters + ---------- + a1, a2 : array_like or poly1d + Minuend and subtrahend polynomials, respectively. + + Returns + ------- + out : ndarray or poly1d + Array or `poly1d` object of the difference polynomial's coefficients. + + See Also + -------- + polyval, polydiv, polymul, polyadd + + Examples + -------- + .. math:: (2 x^2 + 10 x - 2) - (3 x^2 + 10 x -4) = (-x^2 + 2) + + >>> np.polysub([2, 10, -2], [3, 10, -4]) + array([-1, 0, 2]) + + """ + truepoly = (isinstance(a1, poly1d) or isinstance(a2, poly1d)) + a1 = atleast_1d(a1) + a2 = atleast_1d(a2) + diff = len(a2) - len(a1) + if diff == 0: + val = a1 - a2 + elif diff > 0: + zr = NX.zeros(diff, a1.dtype) + val = NX.concatenate((zr, a1)) - a2 + else: + zr = NX.zeros(abs(diff), a2.dtype) + val = a1 - NX.concatenate((zr, a2)) + if truepoly: + val = poly1d(val) + return val + + +@array_function_dispatch(_binary_op_dispatcher) +def polymul(a1, a2): + """ + Find the product of two polynomials. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + Finds the polynomial resulting from the multiplication of the two input + polynomials. Each input must be either a poly1d object or a 1D sequence + of polynomial coefficients, from highest to lowest degree. + + Parameters + ---------- + a1, a2 : array_like or poly1d object + Input polynomials. + + Returns + ------- + out : ndarray or poly1d object + The polynomial resulting from the multiplication of the inputs. If + either inputs is a poly1d object, then the output is also a poly1d + object. Otherwise, it is a 1D array of polynomial coefficients from + highest to lowest degree. + + See Also + -------- + poly1d : A one-dimensional polynomial class. + poly, polyadd, polyder, polydiv, polyfit, polyint, polysub, polyval + convolve : Array convolution. Same output as polymul, but has parameter + for overlap mode. + + Examples + -------- + >>> np.polymul([1, 2, 3], [9, 5, 1]) + array([ 9, 23, 38, 17, 3]) + + Using poly1d objects: + + >>> p1 = np.poly1d([1, 2, 3]) + >>> p2 = np.poly1d([9, 5, 1]) + >>> print(p1) + 2 + 1 x + 2 x + 3 + >>> print(p2) + 2 + 9 x + 5 x + 1 + >>> print(np.polymul(p1, p2)) + 4 3 2 + 9 x + 23 x + 38 x + 17 x + 3 + + """ + truepoly = (isinstance(a1, poly1d) or isinstance(a2, poly1d)) + a1, a2 = poly1d(a1), poly1d(a2) + val = NX.convolve(a1, a2) + if truepoly: + val = poly1d(val) + return val + + +def _polydiv_dispatcher(u, v): + return (u, v) + + +@array_function_dispatch(_polydiv_dispatcher) +def polydiv(u, v): + """ + Returns the quotient and remainder of polynomial division. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + The input arrays are the coefficients (including any coefficients + equal to zero) of the "numerator" (dividend) and "denominator" + (divisor) polynomials, respectively. + + Parameters + ---------- + u : array_like or poly1d + Dividend polynomial's coefficients. + + v : array_like or poly1d + Divisor polynomial's coefficients. + + Returns + ------- + q : ndarray + Coefficients, including those equal to zero, of the quotient. + r : ndarray + Coefficients, including those equal to zero, of the remainder. + + See Also + -------- + poly, polyadd, polyder, polydiv, polyfit, polyint, polymul, polysub + polyval + + Notes + ----- + Both `u` and `v` must be 0-d or 1-d (ndim = 0 or 1), but `u.ndim` need + not equal `v.ndim`. In other words, all four possible combinations - + ``u.ndim = v.ndim = 0``, ``u.ndim = v.ndim = 1``, + ``u.ndim = 1, v.ndim = 0``, and ``u.ndim = 0, v.ndim = 1`` - work. + + Examples + -------- + .. math:: \\frac{3x^2 + 5x + 2}{2x + 1} = 1.5x + 1.75, remainder 0.25 + + >>> x = np.array([3.0, 5.0, 2.0]) + >>> y = np.array([2.0, 1.0]) + >>> np.polydiv(x, y) + (array([1.5 , 1.75]), array([0.25])) + + """ + truepoly = (isinstance(u, poly1d) or isinstance(v, poly1d)) + u = atleast_1d(u) + 0.0 + v = atleast_1d(v) + 0.0 + # w has the common type + w = u[0] + v[0] + m = len(u) - 1 + n = len(v) - 1 + scale = 1. / v[0] + q = NX.zeros((max(m - n + 1, 1),), w.dtype) + r = u.astype(w.dtype) + for k in range(0, m-n+1): + d = scale * r[k] + q[k] = d + r[k:k+n+1] -= d*v + while NX.allclose(r[0], 0, rtol=1e-14) and (r.shape[-1] > 1): + r = r[1:] + if truepoly: + return poly1d(q), poly1d(r) + return q, r + +_poly_mat = re.compile(r"\*\*([0-9]*)") +def _raise_power(astr, wrap=70): + n = 0 + line1 = '' + line2 = '' + output = ' ' + while True: + mat = _poly_mat.search(astr, n) + if mat is None: + break + span = mat.span() + power = mat.groups()[0] + partstr = astr[n:span[0]] + n = span[1] + toadd2 = partstr + ' '*(len(power)-1) + toadd1 = ' '*(len(partstr)-1) + power + if ((len(line2) + len(toadd2) > wrap) or + (len(line1) + len(toadd1) > wrap)): + output += line1 + "\n" + line2 + "\n " + line1 = toadd1 + line2 = toadd2 + else: + line2 += partstr + ' '*(len(power)-1) + line1 += ' '*(len(partstr)-1) + power + output += line1 + "\n" + line2 + return output + astr[n:] + + +@set_module('numpy') +class poly1d: + """ + A one-dimensional polynomial class. + + .. note:: + This forms part of the old polynomial API. Since version 1.4, the + new polynomial API defined in `numpy.polynomial` is preferred. + A summary of the differences can be found in the + :doc:`transition guide `. + + A convenience class, used to encapsulate "natural" operations on + polynomials so that said operations may take on their customary + form in code (see Examples). + + Parameters + ---------- + c_or_r : array_like + The polynomial's coefficients, in decreasing powers, or if + the value of the second parameter is True, the polynomial's + roots (values where the polynomial evaluates to 0). For example, + ``poly1d([1, 2, 3])`` returns an object that represents + :math:`x^2 + 2x + 3`, whereas ``poly1d([1, 2, 3], True)`` returns + one that represents :math:`(x-1)(x-2)(x-3) = x^3 - 6x^2 + 11x -6`. + r : bool, optional + If True, `c_or_r` specifies the polynomial's roots; the default + is False. + variable : str, optional + Changes the variable used when printing `p` from `x` to `variable` + (see Examples). + + Examples + -------- + Construct the polynomial :math:`x^2 + 2x + 3`: + + >>> p = np.poly1d([1, 2, 3]) + >>> print(np.poly1d(p)) + 2 + 1 x + 2 x + 3 + + Evaluate the polynomial at :math:`x = 0.5`: + + >>> p(0.5) + 4.25 + + Find the roots: + + >>> p.r + array([-1.+1.41421356j, -1.-1.41421356j]) + >>> p(p.r) + array([ -4.44089210e-16+0.j, -4.44089210e-16+0.j]) # may vary + + These numbers in the previous line represent (0, 0) to machine precision + + Show the coefficients: + + >>> p.c + array([1, 2, 3]) + + Display the order (the leading zero-coefficients are removed): + + >>> p.order + 2 + + Show the coefficient of the k-th power in the polynomial + (which is equivalent to ``p.c[-(i+1)]``): + + >>> p[1] + 2 + + Polynomials can be added, subtracted, multiplied, and divided + (returns quotient and remainder): + + >>> p * p + poly1d([ 1, 4, 10, 12, 9]) + + >>> (p**3 + 4) / p + (poly1d([ 1., 4., 10., 12., 9.]), poly1d([4.])) + + ``asarray(p)`` gives the coefficient array, so polynomials can be + used in all functions that accept arrays: + + >>> p**2 # square of polynomial + poly1d([ 1, 4, 10, 12, 9]) + + >>> np.square(p) # square of individual coefficients + array([1, 4, 9]) + + The variable used in the string representation of `p` can be modified, + using the `variable` parameter: + + >>> p = np.poly1d([1,2,3], variable='z') + >>> print(p) + 2 + 1 z + 2 z + 3 + + Construct a polynomial from its roots: + + >>> np.poly1d([1, 2], True) + poly1d([ 1., -3., 2.]) + + This is the same polynomial as obtained by: + + >>> np.poly1d([1, -1]) * np.poly1d([1, -2]) + poly1d([ 1, -3, 2]) + + """ + __hash__ = None + + @property + def coeffs(self): + """ The polynomial coefficients """ + return self._coeffs + + @coeffs.setter + def coeffs(self, value): + # allowing this makes p.coeffs *= 2 legal + if value is not self._coeffs: + raise AttributeError("Cannot set attribute") + + @property + def variable(self): + """ The name of the polynomial variable """ + return self._variable + + # calculated attributes + @property + def order(self): + """ The order or degree of the polynomial """ + return len(self._coeffs) - 1 + + @property + def roots(self): + """ The roots of the polynomial, where self(x) == 0 """ + return roots(self._coeffs) + + # our internal _coeffs property need to be backed by __dict__['coeffs'] for + # scipy to work correctly. + @property + def _coeffs(self): + return self.__dict__['coeffs'] + @_coeffs.setter + def _coeffs(self, coeffs): + self.__dict__['coeffs'] = coeffs + + # alias attributes + r = roots + c = coef = coefficients = coeffs + o = order + + def __init__(self, c_or_r, r=False, variable=None): + if isinstance(c_or_r, poly1d): + self._variable = c_or_r._variable + self._coeffs = c_or_r._coeffs + + if set(c_or_r.__dict__) - set(self.__dict__): + msg = ("In the future extra properties will not be copied " + "across when constructing one poly1d from another") + warnings.warn(msg, FutureWarning, stacklevel=2) + self.__dict__.update(c_or_r.__dict__) + + if variable is not None: + self._variable = variable + return + if r: + c_or_r = poly(c_or_r) + c_or_r = atleast_1d(c_or_r) + if c_or_r.ndim > 1: + raise ValueError("Polynomial must be 1d only.") + c_or_r = trim_zeros(c_or_r, trim='f') + if len(c_or_r) == 0: + c_or_r = NX.array([0], dtype=c_or_r.dtype) + self._coeffs = c_or_r + if variable is None: + variable = 'x' + self._variable = variable + + def __array__(self, t=None): + if t: + return NX.asarray(self.coeffs, t) + else: + return NX.asarray(self.coeffs) + + def __repr__(self): + vals = repr(self.coeffs) + vals = vals[6:-1] + return "poly1d(%s)" % vals + + def __len__(self): + return self.order + + def __str__(self): + thestr = "0" + var = self.variable + + # Remove leading zeros + coeffs = self.coeffs[NX.logical_or.accumulate(self.coeffs != 0)] + N = len(coeffs)-1 + + def fmt_float(q): + s = '%.4g' % q + if s.endswith('.0000'): + s = s[:-5] + return s + + for k, coeff in enumerate(coeffs): + if not iscomplex(coeff): + coefstr = fmt_float(real(coeff)) + elif real(coeff) == 0: + coefstr = '%sj' % fmt_float(imag(coeff)) + else: + coefstr = '(%s + %sj)' % (fmt_float(real(coeff)), + fmt_float(imag(coeff))) + + power = (N-k) + if power == 0: + if coefstr != '0': + newstr = '%s' % (coefstr,) + else: + if k == 0: + newstr = '0' + else: + newstr = '' + elif power == 1: + if coefstr == '0': + newstr = '' + elif coefstr == 'b': + newstr = var + else: + newstr = '%s %s' % (coefstr, var) + else: + if coefstr == '0': + newstr = '' + elif coefstr == 'b': + newstr = '%s**%d' % (var, power,) + else: + newstr = '%s %s**%d' % (coefstr, var, power) + + if k > 0: + if newstr != '': + if newstr.startswith('-'): + thestr = "%s - %s" % (thestr, newstr[1:]) + else: + thestr = "%s + %s" % (thestr, newstr) + else: + thestr = newstr + return _raise_power(thestr) + + def __call__(self, val): + return polyval(self.coeffs, val) + + def __neg__(self): + return poly1d(-self.coeffs) + + def __pos__(self): + return self + + def __mul__(self, other): + if isscalar(other): + return poly1d(self.coeffs * other) + else: + other = poly1d(other) + return poly1d(polymul(self.coeffs, other.coeffs)) + + def __rmul__(self, other): + if isscalar(other): + return poly1d(other * self.coeffs) + else: + other = poly1d(other) + return poly1d(polymul(self.coeffs, other.coeffs)) + + def __add__(self, other): + other = poly1d(other) + return poly1d(polyadd(self.coeffs, other.coeffs)) + + def __radd__(self, other): + other = poly1d(other) + return poly1d(polyadd(self.coeffs, other.coeffs)) + + def __pow__(self, val): + if not isscalar(val) or int(val) != val or val < 0: + raise ValueError("Power to non-negative integers only.") + res = [1] + for _ in range(val): + res = polymul(self.coeffs, res) + return poly1d(res) + + def __sub__(self, other): + other = poly1d(other) + return poly1d(polysub(self.coeffs, other.coeffs)) + + def __rsub__(self, other): + other = poly1d(other) + return poly1d(polysub(other.coeffs, self.coeffs)) + + def __div__(self, other): + if isscalar(other): + return poly1d(self.coeffs/other) + else: + other = poly1d(other) + return polydiv(self, other) + + __truediv__ = __div__ + + def __rdiv__(self, other): + if isscalar(other): + return poly1d(other/self.coeffs) + else: + other = poly1d(other) + return polydiv(other, self) + + __rtruediv__ = __rdiv__ + + def __eq__(self, other): + if not isinstance(other, poly1d): + return NotImplemented + if self.coeffs.shape != other.coeffs.shape: + return False + return (self.coeffs == other.coeffs).all() + + def __ne__(self, other): + if not isinstance(other, poly1d): + return NotImplemented + return not self.__eq__(other) + + + def __getitem__(self, val): + ind = self.order - val + if val > self.order: + return self.coeffs.dtype.type(0) + if val < 0: + return self.coeffs.dtype.type(0) + return self.coeffs[ind] + + def __setitem__(self, key, val): + ind = self.order - key + if key < 0: + raise ValueError("Does not support negative powers.") + if key > self.order: + zr = NX.zeros(key-self.order, self.coeffs.dtype) + self._coeffs = NX.concatenate((zr, self.coeffs)) + ind = 0 + self._coeffs[ind] = val + return + + def __iter__(self): + return iter(self.coeffs) + + def integ(self, m=1, k=0): + """ + Return an antiderivative (indefinite integral) of this polynomial. + + Refer to `polyint` for full documentation. + + See Also + -------- + polyint : equivalent function + + """ + return poly1d(polyint(self.coeffs, m=m, k=k)) + + def deriv(self, m=1): + """ + Return a derivative of this polynomial. + + Refer to `polyder` for full documentation. + + See Also + -------- + polyder : equivalent function + + """ + return poly1d(polyder(self.coeffs, m=m)) + +# Stuff to do on module import + +warnings.simplefilter('always', RankWarning) diff --git a/shared/package-files/e8/e80c8e10b956fe80ee78ff62f32be2ae1b7405d24ed22b4dc7df9d7ae31809e0/blob b/shared/package-files/e8/e80c8e10b956fe80ee78ff62f32be2ae1b7405d24ed22b4dc7df9d7ae31809e0/blob new file mode 100644 index 0000000000000000000000000000000000000000..b1ca9aee004c030870b39232b73d07bf398854a8 --- /dev/null +++ b/shared/package-files/e8/e80c8e10b956fe80ee78ff62f32be2ae1b7405d24ed22b4dc7df9d7ae31809e0/blob @@ -0,0 +1,23 @@ +from typing import Optional + +class sha384(object): + name: str + block_size: int + digest_size: int + digestsize: int + def __init__(self, init: Optional[str]) -> None: ... + def copy(self) -> sha384: ... + def digest(self) -> str: ... + def hexdigest(self) -> str: ... + def update(self, arg: str) -> None: ... + +class sha512(object): + name: str + block_size: int + digest_size: int + digestsize: int + def __init__(self, init: Optional[str]) -> None: ... + def copy(self) -> sha512: ... + def digest(self) -> str: ... + def hexdigest(self) -> str: ... + def update(self, arg: str) -> None: ... diff --git a/shared/package-files/e8/e80e52ad42441141f16c6b5bb1cc14d8da42cb3fb7ced883946587a51461b09f/blob b/shared/package-files/e8/e80e52ad42441141f16c6b5bb1cc14d8da42cb3fb7ced883946587a51461b09f/blob new file mode 100644 index 0000000000000000000000000000000000000000..134848ae526e54e2b18738f83088c4a17efcce96 --- /dev/null +++ b/shared/package-files/e8/e80e52ad42441141f16c6b5bb1cc14d8da42cb3fb7ced883946587a51461b09f/blob @@ -0,0 +1,96 @@ +from typing import Dict, Generator + +from pip._vendor.requests.models import CONTENT_CHUNK_SIZE, Response + +from pip._internal.exceptions import NetworkConnectionError + +# The following comments and HTTP headers were originally added by +# Donald Stufft in git commit 22c562429a61bb77172039e480873fb239dd8c03. +# +# We use Accept-Encoding: identity here because requests defaults to +# accepting compressed responses. This breaks in a variety of ways +# depending on how the server is configured. +# - Some servers will notice that the file isn't a compressible file +# and will leave the file alone and with an empty Content-Encoding +# - Some servers will notice that the file is already compressed and +# will leave the file alone, adding a Content-Encoding: gzip header +# - Some servers won't notice anything at all and will take a file +# that's already been compressed and compress it again, and set +# the Content-Encoding: gzip header +# By setting this to request only the identity encoding we're hoping +# to eliminate the third case. Hopefully there does not exist a server +# which when given a file will notice it is already compressed and that +# you're not asking for a compressed file and will then decompress it +# before sending because if that's the case I don't think it'll ever be +# possible to make this work. +HEADERS: Dict[str, str] = {"Accept-Encoding": "identity"} + + +def raise_for_status(resp: Response) -> None: + http_error_msg = "" + if isinstance(resp.reason, bytes): + # We attempt to decode utf-8 first because some servers + # choose to localize their reason strings. If the string + # isn't utf-8, we fall back to iso-8859-1 for all other + # encodings. + try: + reason = resp.reason.decode("utf-8") + except UnicodeDecodeError: + reason = resp.reason.decode("iso-8859-1") + else: + reason = resp.reason + + if 400 <= resp.status_code < 500: + http_error_msg = ( + f"{resp.status_code} Client Error: {reason} for url: {resp.url}" + ) + + elif 500 <= resp.status_code < 600: + http_error_msg = ( + f"{resp.status_code} Server Error: {reason} for url: {resp.url}" + ) + + if http_error_msg: + raise NetworkConnectionError(http_error_msg, response=resp) + + +def response_chunks( + response: Response, chunk_size: int = CONTENT_CHUNK_SIZE +) -> Generator[bytes, None, None]: + """Given a requests Response, provide the data chunks.""" + try: + # Special case for urllib3. + for chunk in response.raw.stream( + chunk_size, + # We use decode_content=False here because we don't + # want urllib3 to mess with the raw bytes we get + # from the server. If we decompress inside of + # urllib3 then we cannot verify the checksum + # because the checksum will be of the compressed + # file. This breakage will only occur if the + # server adds a Content-Encoding header, which + # depends on how the server was configured: + # - Some servers will notice that the file isn't a + # compressible file and will leave the file alone + # and with an empty Content-Encoding + # - Some servers will notice that the file is + # already compressed and will leave the file + # alone and will add a Content-Encoding: gzip + # header + # - Some servers won't notice anything at all and + # will take a file that's already been compressed + # and compress it again and set the + # Content-Encoding: gzip header + # + # By setting this not to decode automatically we + # hope to eliminate problems with the second case. + decode_content=False, + ): + yield chunk + except AttributeError: + # Standard file-like object. + while True: + chunk = response.raw.read(chunk_size) + if not chunk: + break + yield chunk diff --git a/shared/package-files/e8/e8113bf187bc526547cadf16bf09028cff2d70ccdabf8838fbece436baf51d47/blob b/shared/package-files/e8/e8113bf187bc526547cadf16bf09028cff2d70ccdabf8838fbece436baf51d47/blob new file mode 100644 index 0000000000000000000000000000000000000000..5aee50a4093ad16d3141f2071350b8bfbc5b252a --- /dev/null +++ b/shared/package-files/e8/e8113bf187bc526547cadf16bf09028cff2d70ccdabf8838fbece436baf51d47/blob @@ -0,0 +1,124 @@ +""" +Implementation for async generators. +""" +from __future__ import annotations + +from asyncio import get_running_loop +from contextlib import asynccontextmanager +from queue import Empty, Full, Queue +from typing import Any, AsyncGenerator, Callable, Iterable, TypeVar + +from .utils import run_in_executor_with_context + +__all__ = [ + "aclosing", + "generator_to_async_generator", +] + +_T_Generator = TypeVar("_T_Generator", bound=AsyncGenerator[Any, None]) + + +@asynccontextmanager +async def aclosing( + thing: _T_Generator, +) -> AsyncGenerator[_T_Generator, None]: + "Similar to `contextlib.aclosing`, in Python 3.10." + try: + yield thing + finally: + await thing.aclose() + + +# By default, choose a buffer size that's a good balance between having enough +# throughput, but not consuming too much memory. We use this to consume a sync +# generator of completions as an async generator. If the queue size is very +# small (like 1), consuming the completions goes really slow (when there are a +# lot of items). If the queue size would be unlimited or too big, this can +# cause overconsumption of memory, and cause CPU time spent producing items +# that are no longer needed (if the consumption of the async generator stops at +# some point). We need a fixed size in order to get some back pressure from the +# async consumer to the sync producer. We choose 1000 by default here. If we +# have around 50k completions, measurements show that 1000 is still +# significantly faster than a buffer of 100. +DEFAULT_BUFFER_SIZE: int = 1000 + +_T = TypeVar("_T") + + +class _Done: + pass + + +async def generator_to_async_generator( + get_iterable: Callable[[], Iterable[_T]], + buffer_size: int = DEFAULT_BUFFER_SIZE, +) -> AsyncGenerator[_T, None]: + """ + Turn a generator or iterable into an async generator. + + This works by running the generator in a background thread. + + :param get_iterable: Function that returns a generator or iterable when + called. + :param buffer_size: Size of the queue between the async consumer and the + synchronous generator that produces items. + """ + quitting = False + # NOTE: We are limiting the queue size in order to have back-pressure. + q: Queue[_T | _Done] = Queue(maxsize=buffer_size) + loop = get_running_loop() + + def runner() -> None: + """ + Consume the generator in background thread. + When items are received, they'll be pushed to the queue. + """ + try: + for item in get_iterable(): + # When this async generator was cancelled (closed), stop this + # thread. + if quitting: + return + + while True: + try: + q.put(item, timeout=1) + except Full: + if quitting: + return + continue + else: + break + + finally: + while True: + try: + q.put(_Done(), timeout=1) + except Full: + if quitting: + return + continue + else: + break + + # Start background thread. + runner_f = run_in_executor_with_context(runner) + + try: + while True: + try: + item = q.get_nowait() + except Empty: + item = await loop.run_in_executor(None, q.get) + if isinstance(item, _Done): + break + else: + yield item + finally: + # When this async generator is closed (GeneratorExit exception, stop + # the background thread as well. - we don't need that anymore.) + quitting = True + + # Wait for the background thread to finish. (should happen right after + # the last item is yielded). + await runner_f diff --git a/shared/package-files/e8/e81297c5189fb59005aca7a41b4186c5822f9a59a38d0527dfc3304846aba8cc/blob b/shared/package-files/e8/e81297c5189fb59005aca7a41b4186c5822f9a59a38d0527dfc3304846aba8cc/blob new file mode 100644 index 0000000000000000000000000000000000000000..7a07125cbf1bc15f6416794ae2a5f7a7debad7dc --- /dev/null +++ b/shared/package-files/e8/e81297c5189fb59005aca7a41b4186c5822f9a59a38d0527dfc3304846aba8cc/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::special_round(Tensor self, *, int decimals=0) -> Tensor +inline at::Tensor special_round(const at::Tensor & self, int64_t decimals=0) { + return at::_ops::special_round::call(self, decimals); +} + +// aten::special_round.out(Tensor self, *, int decimals=0, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_round_out(at::Tensor & out, const at::Tensor & self, int64_t decimals=0) { + return at::_ops::special_round_out::call(self, decimals, out); +} +// aten::special_round.out(Tensor self, *, int decimals=0, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & special_round_outf(const at::Tensor & self, int64_t decimals, at::Tensor & out) { + return at::_ops::special_round_out::call(self, decimals, out); +} + +} diff --git a/shared/package-files/e8/e814839fc75010db274ae034f45b0fff7e529ccb702319048545fef84c2045b7/blob b/shared/package-files/e8/e814839fc75010db274ae034f45b0fff7e529ccb702319048545fef84c2045b7/blob new file mode 100644 index 0000000000000000000000000000000000000000..97644a8e3794e17151a415bb92af22cda8d595bb --- /dev/null +++ b/shared/package-files/e8/e814839fc75010db274ae034f45b0fff7e529ccb702319048545fef84c2045b7/blob @@ -0,0 +1,182 @@ +"""Cache lines from Python source files. + +This is intended to read lines from modules imported -- hence if a filename +is not found, it will look down the module search path for a file by +that name. +""" + +import functools +import sys +import os +import tokenize + +__all__ = ["getline", "clearcache", "checkcache", "lazycache"] + + +# The cache. Maps filenames to either a thunk which will provide source code, +# or a tuple (size, mtime, lines, fullname) once loaded. +cache = {} + + +def clearcache(): + """Clear the cache entirely.""" + cache.clear() + + +def getline(filename, lineno, module_globals=None): + """Get a line for a Python source file from the cache. + Update the cache if it doesn't contain an entry for this file already.""" + + lines = getlines(filename, module_globals) + if 1 <= lineno <= len(lines): + return lines[lineno - 1] + return '' + + +def getlines(filename, module_globals=None): + """Get the lines for a Python source file from the cache. + Update the cache if it doesn't contain an entry for this file already.""" + + if filename in cache: + entry = cache[filename] + if len(entry) != 1: + return cache[filename][2] + + try: + return updatecache(filename, module_globals) + except MemoryError: + clearcache() + return [] + + +def checkcache(filename=None): + """Discard cache entries that are out of date. + (This is not checked upon each call!)""" + + if filename is None: + filenames = list(cache.keys()) + elif filename in cache: + filenames = [filename] + else: + return + + for filename in filenames: + entry = cache[filename] + if len(entry) == 1: + # lazy cache entry, leave it lazy. + continue + size, mtime, lines, fullname = entry + if mtime is None: + continue # no-op for files loaded via a __loader__ + try: + stat = os.stat(fullname) + except OSError: + cache.pop(filename, None) + continue + if size != stat.st_size or mtime != stat.st_mtime: + cache.pop(filename, None) + + +def updatecache(filename, module_globals=None): + """Update a cache entry and return its list of lines. + If something's wrong, print a message, discard the cache entry, + and return an empty list.""" + + if filename in cache: + if len(cache[filename]) != 1: + cache.pop(filename, None) + if not filename or (filename.startswith('<') and filename.endswith('>')): + return [] + + fullname = filename + try: + stat = os.stat(fullname) + except OSError: + basename = filename + + # Realise a lazy loader based lookup if there is one + # otherwise try to lookup right now. + if lazycache(filename, module_globals): + try: + data = cache[filename][0]() + except (ImportError, OSError): + pass + else: + if data is None: + # No luck, the PEP302 loader cannot find the source + # for this module. + return [] + cache[filename] = ( + len(data), + None, + [line + '\n' for line in data.splitlines()], + fullname + ) + return cache[filename][2] + + # Try looking through the module search path, which is only useful + # when handling a relative filename. + if os.path.isabs(filename): + return [] + + for dirname in sys.path: + try: + fullname = os.path.join(dirname, basename) + except (TypeError, AttributeError): + # Not sufficiently string-like to do anything useful with. + continue + try: + stat = os.stat(fullname) + break + except OSError: + pass + else: + return [] + try: + with tokenize.open(fullname) as fp: + lines = fp.readlines() + except (OSError, UnicodeDecodeError, SyntaxError): + return [] + if lines and not lines[-1].endswith('\n'): + lines[-1] += '\n' + size, mtime = stat.st_size, stat.st_mtime + cache[filename] = size, mtime, lines, fullname + return lines + + +def lazycache(filename, module_globals): + """Seed the cache for filename with module_globals. + + The module loader will be asked for the source only when getlines is + called, not immediately. + + If there is an entry in the cache already, it is not altered. + + :return: True if a lazy load is registered in the cache, + otherwise False. To register such a load a module loader with a + get_source method must be found, the filename must be a cacheable + filename, and the filename must not be already cached. + """ + if filename in cache: + if len(cache[filename]) == 1: + return True + else: + return False + if not filename or (filename.startswith('<') and filename.endswith('>')): + return False + # Try for a __loader__, if available + if module_globals and '__name__' in module_globals: + name = module_globals['__name__'] + if (loader := module_globals.get('__loader__')) is None: + if spec := module_globals.get('__spec__'): + try: + loader = spec.loader + except AttributeError: + pass + get_source = getattr(loader, 'get_source', None) + + if name and get_source: + get_lines = functools.partial(get_source, name) + cache[filename] = (get_lines,) + return True + return False diff --git a/shared/package-files/e8/e815d8c21cd4c9b61586d522884109fdeea0440f80bd51e61a450f5856586ad2/blob b/shared/package-files/e8/e815d8c21cd4c9b61586d522884109fdeea0440f80bd51e61a450f5856586ad2/blob new file mode 100644 index 0000000000000000000000000000000000000000..5d0f7e778a5259e1e4516b5512019faa8bfa2c1d --- /dev/null +++ b/shared/package-files/e8/e815d8c21cd4c9b61586d522884109fdeea0440f80bd51e61a450f5856586ad2/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API empty_quantized { + using schema = at::Tensor (at::IntArrayRef, const at::Tensor &, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::empty_quantized") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "empty_quantized(int[] size, Tensor qtensor, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor") + static at::Tensor call(at::IntArrayRef size, const at::Tensor & qtensor, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Tensor & qtensor, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format); +}; + +struct TORCH_API empty_quantized_out { + using schema = at::Tensor & (at::IntArrayRef, const at::Tensor &, c10::optional, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::empty_quantized") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "empty_quantized.out(int[] size, Tensor qtensor, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(at::IntArrayRef size, const at::Tensor & qtensor, c10::optional memory_format, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::IntArrayRef size, const at::Tensor & qtensor, c10::optional memory_format, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e8/e8162b49bbcd0e4acaf9156c6f5e9180b76819b6c47df6d577843d171ec30eea/blob b/shared/package-files/e8/e8162b49bbcd0e4acaf9156c6f5e9180b76819b6c47df6d577843d171ec30eea/blob new file mode 100644 index 0000000000000000000000000000000000000000..ef77e0290098209fea1d1c89ef1178292a907048 --- /dev/null +++ b/shared/package-files/e8/e8162b49bbcd0e4acaf9156c6f5e9180b76819b6c47df6d577843d171ec30eea/blob @@ -0,0 +1,15 @@ +import sqlite3 + + +def connect(dburi="cache.db"): + """ + Get database connection. + + dburi: uri-style sqlite database filename; accepts certain ?= parameters. + """ + conn = sqlite3.connect(dburi, uri=True) + conn.row_factory = sqlite3.Row + conn.execute("PRAGMA journal_mode = WAL") + conn.execute("PRAGMA synchronous = 1") # less fsync, good for WAL mode + conn.execute("PRAGMA foreign_keys = ON") + return conn diff --git a/shared/package-files/e8/e8164a62a51e74047e8de1dc220b097a5247156ba8ba09a5d9cd4d3629711998/blob b/shared/package-files/e8/e8164a62a51e74047e8de1dc220b097a5247156ba8ba09a5d9cd4d3629711998/blob new file mode 100644 index 0000000000000000000000000000000000000000..a18dbfb624552cf2fa11bb7f3c3a9e865caeb0c4 --- /dev/null +++ b/shared/package-files/e8/e8164a62a51e74047e8de1dc220b097a5247156ba8ba09a5d9cd4d3629711998/blob @@ -0,0 +1,28 @@ +from sympy.core.sorting import default_sort_key, ordered +from sympy.testing.pytest import raises + +from sympy.abc import x + + +def test_default_sort_key(): + func = lambda x: x + assert sorted([func, x, func], key=default_sort_key) == [func, func, x] + + class C: + def __repr__(self): + return 'x.y' + func = C() + assert sorted([x, func], key=default_sort_key) == [func, x] + + +def test_ordered(): + # Issue 7210 - this had been failing with python2/3 problems + assert (list(ordered([{1:3, 2:4, 9:10}, {1:3}])) == \ + [{1: 3}, {1: 3, 2: 4, 9: 10}]) + # warnings should not be raised for identical items + l = [1, 1] + assert list(ordered(l, warn=True)) == l + l = [[1], [2], [1]] + assert list(ordered(l, warn=True)) == [[1], [1], [2]] + raises(ValueError, lambda: list(ordered(['a', 'ab'], keys=[lambda x: x[0]], + default=False, warn=True))) diff --git a/shared/package-files/e8/e818372669488c876e21f6867cd55cc0d7d2ae01222ceb3370df163f3b1736a1/blob b/shared/package-files/e8/e818372669488c876e21f6867cd55cc0d7d2ae01222ceb3370df163f3b1736a1/blob new file mode 100644 index 0000000000000000000000000000000000000000..b518bd427dc9980d6a941d2e1ef4d139c5f0f5f9 --- /dev/null +++ b/shared/package-files/e8/e818372669488c876e21f6867cd55cc0d7d2ae01222ceb3370df163f3b1736a1/blob @@ -0,0 +1,617 @@ +from sympy.core import S, Dummy, pi +from sympy.functions.combinatorial.factorials import factorial +from sympy.functions.elementary.trigonometric import sin, cos +from sympy.functions.elementary.miscellaneous import sqrt +from sympy.functions.special.gamma_functions import gamma +from sympy.polys.orthopolys import (legendre_poly, laguerre_poly, + hermite_poly, jacobi_poly) +from sympy.polys.rootoftools import RootOf + + +def gauss_legendre(n, n_digits): + r""" + Computes the Gauss-Legendre quadrature [1]_ points and weights. + + Explanation + =========== + + The Gauss-Legendre quadrature approximates the integral: + + .. math:: + \int_{-1}^1 f(x)\,dx \approx \sum_{i=1}^n w_i f(x_i) + + The nodes `x_i` of an order `n` quadrature rule are the roots of `P_n` + and the weights `w_i` are given by: + + .. math:: + w_i = \frac{2}{\left(1-x_i^2\right) \left(P'_n(x_i)\right)^2} + + Parameters + ========== + + n : + The order of quadrature. + n_digits : + Number of significant digits of the points and weights to return. + + Returns + ======= + + (x, w) : the ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy.integrals.quadrature import gauss_legendre + >>> x, w = gauss_legendre(3, 5) + >>> x + [-0.7746, 0, 0.7746] + >>> w + [0.55556, 0.88889, 0.55556] + >>> x, w = gauss_legendre(4, 5) + >>> x + [-0.86114, -0.33998, 0.33998, 0.86114] + >>> w + [0.34785, 0.65215, 0.65215, 0.34785] + + See Also + ======== + + gauss_laguerre, gauss_gen_laguerre, gauss_hermite, gauss_chebyshev_t, gauss_chebyshev_u, gauss_jacobi, gauss_lobatto + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Gaussian_quadrature + .. [2] https://people.sc.fsu.edu/~jburkardt/cpp_src/legendre_rule/legendre_rule.html + """ + x = Dummy("x") + p = legendre_poly(n, x, polys=True) + pd = p.diff(x) + xi = [] + w = [] + for r in p.real_roots(): + if isinstance(r, RootOf): + r = r.eval_rational(S.One/10**(n_digits+2)) + xi.append(r.n(n_digits)) + w.append((2/((1-r**2) * pd.subs(x, r)**2)).n(n_digits)) + return xi, w + + +def gauss_laguerre(n, n_digits): + r""" + Computes the Gauss-Laguerre quadrature [1]_ points and weights. + + Explanation + =========== + + The Gauss-Laguerre quadrature approximates the integral: + + .. math:: + \int_0^{\infty} e^{-x} f(x)\,dx \approx \sum_{i=1}^n w_i f(x_i) + + + The nodes `x_i` of an order `n` quadrature rule are the roots of `L_n` + and the weights `w_i` are given by: + + .. math:: + w_i = \frac{x_i}{(n+1)^2 \left(L_{n+1}(x_i)\right)^2} + + Parameters + ========== + + n : + The order of quadrature. + n_digits : + Number of significant digits of the points and weights to return. + + Returns + ======= + + (x, w) : The ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy.integrals.quadrature import gauss_laguerre + >>> x, w = gauss_laguerre(3, 5) + >>> x + [0.41577, 2.2943, 6.2899] + >>> w + [0.71109, 0.27852, 0.010389] + >>> x, w = gauss_laguerre(6, 5) + >>> x + [0.22285, 1.1889, 2.9927, 5.7751, 9.8375, 15.983] + >>> w + [0.45896, 0.417, 0.11337, 0.010399, 0.00026102, 8.9855e-7] + + See Also + ======== + + gauss_legendre, gauss_gen_laguerre, gauss_hermite, gauss_chebyshev_t, gauss_chebyshev_u, gauss_jacobi, gauss_lobatto + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Gauss%E2%80%93Laguerre_quadrature + .. [2] https://people.sc.fsu.edu/~jburkardt/cpp_src/laguerre_rule/laguerre_rule.html + """ + x = Dummy("x") + p = laguerre_poly(n, x, polys=True) + p1 = laguerre_poly(n+1, x, polys=True) + xi = [] + w = [] + for r in p.real_roots(): + if isinstance(r, RootOf): + r = r.eval_rational(S.One/10**(n_digits+2)) + xi.append(r.n(n_digits)) + w.append((r/((n+1)**2 * p1.subs(x, r)**2)).n(n_digits)) + return xi, w + + +def gauss_hermite(n, n_digits): + r""" + Computes the Gauss-Hermite quadrature [1]_ points and weights. + + Explanation + =========== + + The Gauss-Hermite quadrature approximates the integral: + + .. math:: + \int_{-\infty}^{\infty} e^{-x^2} f(x)\,dx \approx + \sum_{i=1}^n w_i f(x_i) + + The nodes `x_i` of an order `n` quadrature rule are the roots of `H_n` + and the weights `w_i` are given by: + + .. math:: + w_i = \frac{2^{n-1} n! \sqrt{\pi}}{n^2 \left(H_{n-1}(x_i)\right)^2} + + Parameters + ========== + + n : + The order of quadrature. + n_digits : + Number of significant digits of the points and weights to return. + + Returns + ======= + + (x, w) : The ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy.integrals.quadrature import gauss_hermite + >>> x, w = gauss_hermite(3, 5) + >>> x + [-1.2247, 0, 1.2247] + >>> w + [0.29541, 1.1816, 0.29541] + + >>> x, w = gauss_hermite(6, 5) + >>> x + [-2.3506, -1.3358, -0.43608, 0.43608, 1.3358, 2.3506] + >>> w + [0.00453, 0.15707, 0.72463, 0.72463, 0.15707, 0.00453] + + See Also + ======== + + gauss_legendre, gauss_laguerre, gauss_gen_laguerre, gauss_chebyshev_t, gauss_chebyshev_u, gauss_jacobi, gauss_lobatto + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Gauss-Hermite_Quadrature + .. [2] https://people.sc.fsu.edu/~jburkardt/cpp_src/hermite_rule/hermite_rule.html + .. [3] https://people.sc.fsu.edu/~jburkardt/cpp_src/gen_hermite_rule/gen_hermite_rule.html + """ + x = Dummy("x") + p = hermite_poly(n, x, polys=True) + p1 = hermite_poly(n-1, x, polys=True) + xi = [] + w = [] + for r in p.real_roots(): + if isinstance(r, RootOf): + r = r.eval_rational(S.One/10**(n_digits+2)) + xi.append(r.n(n_digits)) + w.append(((2**(n-1) * factorial(n) * sqrt(pi)) / + (n**2 * p1.subs(x, r)**2)).n(n_digits)) + return xi, w + + +def gauss_gen_laguerre(n, alpha, n_digits): + r""" + Computes the generalized Gauss-Laguerre quadrature [1]_ points and weights. + + Explanation + =========== + + The generalized Gauss-Laguerre quadrature approximates the integral: + + .. math:: + \int_{0}^\infty x^{\alpha} e^{-x} f(x)\,dx \approx + \sum_{i=1}^n w_i f(x_i) + + The nodes `x_i` of an order `n` quadrature rule are the roots of + `L^{\alpha}_n` and the weights `w_i` are given by: + + .. math:: + w_i = \frac{\Gamma(\alpha+n)} + {n \Gamma(n) L^{\alpha}_{n-1}(x_i) L^{\alpha+1}_{n-1}(x_i)} + + Parameters + ========== + + n : + The order of quadrature. + + alpha : + The exponent of the singularity, `\alpha > -1`. + + n_digits : + Number of significant digits of the points and weights to return. + + Returns + ======= + + (x, w) : the ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy import S + >>> from sympy.integrals.quadrature import gauss_gen_laguerre + >>> x, w = gauss_gen_laguerre(3, -S.Half, 5) + >>> x + [0.19016, 1.7845, 5.5253] + >>> w + [1.4493, 0.31413, 0.00906] + + >>> x, w = gauss_gen_laguerre(4, 3*S.Half, 5) + >>> x + [0.97851, 2.9904, 6.3193, 11.712] + >>> w + [0.53087, 0.67721, 0.11895, 0.0023152] + + See Also + ======== + + gauss_legendre, gauss_laguerre, gauss_hermite, gauss_chebyshev_t, gauss_chebyshev_u, gauss_jacobi, gauss_lobatto + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Gauss%E2%80%93Laguerre_quadrature + .. [2] https://people.sc.fsu.edu/~jburkardt/cpp_src/gen_laguerre_rule/gen_laguerre_rule.html + """ + x = Dummy("x") + p = laguerre_poly(n, x, alpha=alpha, polys=True) + p1 = laguerre_poly(n-1, x, alpha=alpha, polys=True) + p2 = laguerre_poly(n-1, x, alpha=alpha+1, polys=True) + xi = [] + w = [] + for r in p.real_roots(): + if isinstance(r, RootOf): + r = r.eval_rational(S.One/10**(n_digits+2)) + xi.append(r.n(n_digits)) + w.append((gamma(alpha+n) / + (n*gamma(n)*p1.subs(x, r)*p2.subs(x, r))).n(n_digits)) + return xi, w + + +def gauss_chebyshev_t(n, n_digits): + r""" + Computes the Gauss-Chebyshev quadrature [1]_ points and weights of + the first kind. + + Explanation + =========== + + The Gauss-Chebyshev quadrature of the first kind approximates the integral: + + .. math:: + \int_{-1}^{1} \frac{1}{\sqrt{1-x^2}} f(x)\,dx \approx + \sum_{i=1}^n w_i f(x_i) + + The nodes `x_i` of an order `n` quadrature rule are the roots of `T_n` + and the weights `w_i` are given by: + + .. math:: + w_i = \frac{\pi}{n} + + Parameters + ========== + + n : + The order of quadrature. + + n_digits : + Number of significant digits of the points and weights to return. + + Returns + ======= + + (x, w) : the ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy.integrals.quadrature import gauss_chebyshev_t + >>> x, w = gauss_chebyshev_t(3, 5) + >>> x + [0.86602, 0, -0.86602] + >>> w + [1.0472, 1.0472, 1.0472] + + >>> x, w = gauss_chebyshev_t(6, 5) + >>> x + [0.96593, 0.70711, 0.25882, -0.25882, -0.70711, -0.96593] + >>> w + [0.5236, 0.5236, 0.5236, 0.5236, 0.5236, 0.5236] + + See Also + ======== + + gauss_legendre, gauss_laguerre, gauss_hermite, gauss_gen_laguerre, gauss_chebyshev_u, gauss_jacobi, gauss_lobatto + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Chebyshev%E2%80%93Gauss_quadrature + .. [2] https://people.sc.fsu.edu/~jburkardt/cpp_src/chebyshev1_rule/chebyshev1_rule.html + """ + xi = [] + w = [] + for i in range(1, n+1): + xi.append((cos((2*i-S.One)/(2*n)*S.Pi)).n(n_digits)) + w.append((S.Pi/n).n(n_digits)) + return xi, w + + +def gauss_chebyshev_u(n, n_digits): + r""" + Computes the Gauss-Chebyshev quadrature [1]_ points and weights of + the second kind. + + Explanation + =========== + + The Gauss-Chebyshev quadrature of the second kind approximates the + integral: + + .. math:: + \int_{-1}^{1} \sqrt{1-x^2} f(x)\,dx \approx \sum_{i=1}^n w_i f(x_i) + + The nodes `x_i` of an order `n` quadrature rule are the roots of `U_n` + and the weights `w_i` are given by: + + .. math:: + w_i = \frac{\pi}{n+1} \sin^2 \left(\frac{i}{n+1}\pi\right) + + Parameters + ========== + + n : the order of quadrature + + n_digits : number of significant digits of the points and weights to return + + Returns + ======= + + (x, w) : the ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy.integrals.quadrature import gauss_chebyshev_u + >>> x, w = gauss_chebyshev_u(3, 5) + >>> x + [0.70711, 0, -0.70711] + >>> w + [0.3927, 0.7854, 0.3927] + + >>> x, w = gauss_chebyshev_u(6, 5) + >>> x + [0.90097, 0.62349, 0.22252, -0.22252, -0.62349, -0.90097] + >>> w + [0.084489, 0.27433, 0.42658, 0.42658, 0.27433, 0.084489] + + See Also + ======== + + gauss_legendre, gauss_laguerre, gauss_hermite, gauss_gen_laguerre, gauss_chebyshev_t, gauss_jacobi, gauss_lobatto + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Chebyshev%E2%80%93Gauss_quadrature + .. [2] https://people.sc.fsu.edu/~jburkardt/cpp_src/chebyshev2_rule/chebyshev2_rule.html + """ + xi = [] + w = [] + for i in range(1, n+1): + xi.append((cos(i/(n+S.One)*S.Pi)).n(n_digits)) + w.append((S.Pi/(n+S.One)*sin(i*S.Pi/(n+S.One))**2).n(n_digits)) + return xi, w + + +def gauss_jacobi(n, alpha, beta, n_digits): + r""" + Computes the Gauss-Jacobi quadrature [1]_ points and weights. + + Explanation + =========== + + The Gauss-Jacobi quadrature of the first kind approximates the integral: + + .. math:: + \int_{-1}^1 (1-x)^\alpha (1+x)^\beta f(x)\,dx \approx + \sum_{i=1}^n w_i f(x_i) + + The nodes `x_i` of an order `n` quadrature rule are the roots of + `P^{(\alpha,\beta)}_n` and the weights `w_i` are given by: + + .. math:: + w_i = -\frac{2n+\alpha+\beta+2}{n+\alpha+\beta+1} + \frac{\Gamma(n+\alpha+1)\Gamma(n+\beta+1)} + {\Gamma(n+\alpha+\beta+1)(n+1)!} + \frac{2^{\alpha+\beta}}{P'_n(x_i) + P^{(\alpha,\beta)}_{n+1}(x_i)} + + Parameters + ========== + + n : the order of quadrature + + alpha : the first parameter of the Jacobi Polynomial, `\alpha > -1` + + beta : the second parameter of the Jacobi Polynomial, `\beta > -1` + + n_digits : number of significant digits of the points and weights to return + + Returns + ======= + + (x, w) : the ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy import S + >>> from sympy.integrals.quadrature import gauss_jacobi + >>> x, w = gauss_jacobi(3, S.Half, -S.Half, 5) + >>> x + [-0.90097, -0.22252, 0.62349] + >>> w + [1.7063, 1.0973, 0.33795] + + >>> x, w = gauss_jacobi(6, 1, 1, 5) + >>> x + [-0.87174, -0.5917, -0.2093, 0.2093, 0.5917, 0.87174] + >>> w + [0.050584, 0.22169, 0.39439, 0.39439, 0.22169, 0.050584] + + See Also + ======== + + gauss_legendre, gauss_laguerre, gauss_hermite, gauss_gen_laguerre, + gauss_chebyshev_t, gauss_chebyshev_u, gauss_lobatto + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Gauss%E2%80%93Jacobi_quadrature + .. [2] https://people.sc.fsu.edu/~jburkardt/cpp_src/jacobi_rule/jacobi_rule.html + .. [3] https://people.sc.fsu.edu/~jburkardt/cpp_src/gegenbauer_rule/gegenbauer_rule.html + """ + x = Dummy("x") + p = jacobi_poly(n, alpha, beta, x, polys=True) + pd = p.diff(x) + pn = jacobi_poly(n+1, alpha, beta, x, polys=True) + xi = [] + w = [] + for r in p.real_roots(): + if isinstance(r, RootOf): + r = r.eval_rational(S.One/10**(n_digits+2)) + xi.append(r.n(n_digits)) + w.append(( + - (2*n+alpha+beta+2) / (n+alpha+beta+S.One) * + (gamma(n+alpha+1)*gamma(n+beta+1)) / + (gamma(n+alpha+beta+S.One)*gamma(n+2)) * + 2**(alpha+beta) / (pd.subs(x, r) * pn.subs(x, r))).n(n_digits)) + return xi, w + + +def gauss_lobatto(n, n_digits): + r""" + Computes the Gauss-Lobatto quadrature [1]_ points and weights. + + Explanation + =========== + + The Gauss-Lobatto quadrature approximates the integral: + + .. math:: + \int_{-1}^1 f(x)\,dx \approx \sum_{i=1}^n w_i f(x_i) + + The nodes `x_i` of an order `n` quadrature rule are the roots of `P'_(n-1)` + and the weights `w_i` are given by: + + .. math:: + &w_i = \frac{2}{n(n-1) \left[P_{n-1}(x_i)\right]^2},\quad x\neq\pm 1\\ + &w_i = \frac{2}{n(n-1)},\quad x=\pm 1 + + Parameters + ========== + + n : the order of quadrature + + n_digits : number of significant digits of the points and weights to return + + Returns + ======= + + (x, w) : the ``x`` and ``w`` are lists of points and weights as Floats. + The points `x_i` and weights `w_i` are returned as ``(x, w)`` + tuple of lists. + + Examples + ======== + + >>> from sympy.integrals.quadrature import gauss_lobatto + >>> x, w = gauss_lobatto(3, 5) + >>> x + [-1, 0, 1] + >>> w + [0.33333, 1.3333, 0.33333] + >>> x, w = gauss_lobatto(4, 5) + >>> x + [-1, -0.44721, 0.44721, 1] + >>> w + [0.16667, 0.83333, 0.83333, 0.16667] + + See Also + ======== + + gauss_legendre,gauss_laguerre, gauss_gen_laguerre, gauss_hermite, gauss_chebyshev_t, gauss_chebyshev_u, gauss_jacobi + + References + ========== + + .. [1] https://en.wikipedia.org/wiki/Gaussian_quadrature#Gauss.E2.80.93Lobatto_rules + .. [2] https://web.archive.org/web/20200118141346/http://people.math.sfu.ca/~cbm/aands/page_888.htm + """ + x = Dummy("x") + p = legendre_poly(n-1, x, polys=True) + pd = p.diff(x) + xi = [] + w = [] + for r in pd.real_roots(): + if isinstance(r, RootOf): + r = r.eval_rational(S.One/10**(n_digits+2)) + xi.append(r.n(n_digits)) + w.append((2/(n*(n-1) * p.subs(x, r)**2)).n(n_digits)) + + xi.insert(0, -1) + xi.append(1) + w.insert(0, (S(2)/(n*(n-1))).n(n_digits)) + w.append((S(2)/(n*(n-1))).n(n_digits)) + return xi, w diff --git a/shared/package-files/e8/e81e7bc654e45d69f9297f6e309cc3a54eb0d75395c8b36cb9fc23d697110e5e/blob b/shared/package-files/e8/e81e7bc654e45d69f9297f6e309cc3a54eb0d75395c8b36cb9fc23d697110e5e/blob new file mode 100644 index 0000000000000000000000000000000000000000..61f576368c3286a3a4eb233b93513f8c3b560a79 --- /dev/null +++ b/shared/package-files/e8/e81e7bc654e45d69f9297f6e309cc3a54eb0d75395c8b36cb9fc23d697110e5e/blob @@ -0,0 +1,37 @@ +#pragma once + +#include +#include + +namespace at::cuda::detail { + +// CUDA: grid stride looping +// +// int64_t _i_n_d_e_x specifically prevents overflow in the loop increment. +// If input.numel() < INT_MAX, _i_n_d_e_x < INT_MAX, except after the final +// iteration of the loop where _i_n_d_e_x += blockDim.x * gridDim.x can be +// greater than INT_MAX. But in that case _i_n_d_e_x >= n, so there are no +// further iterations and the overflowed value in i=_i_n_d_e_x is not used. +#define CUDA_KERNEL_LOOP_TYPE(i, n, index_type) \ + int64_t _i_n_d_e_x = blockIdx.x * blockDim.x + threadIdx.x; \ + for (index_type i=_i_n_d_e_x; _i_n_d_e_x < (n); _i_n_d_e_x+=blockDim.x * gridDim.x, i=_i_n_d_e_x) + +#define CUDA_KERNEL_LOOP(i, n) CUDA_KERNEL_LOOP_TYPE(i, n, int) + + +// Use 1024 threads per block, which requires cuda sm_2x or above +constexpr int CUDA_NUM_THREADS = 1024; + +// CUDA: number of blocks for threads. +inline int GET_BLOCKS(const int64_t N, const int64_t max_threads_per_block=CUDA_NUM_THREADS) { + TORCH_INTERNAL_ASSERT(N > 0, "CUDA kernel launch blocks must be positive, but got N=", N); + constexpr int64_t max_int = std::numeric_limits::max(); + + // Round up division for positive number that cannot cause integer overflow + auto block_num = (N - 1) / max_threads_per_block + 1; + TORCH_INTERNAL_ASSERT(block_num <= max_int, "Can't schedule too many blocks on CUDA device"); + + return static_cast(block_num); +} + +} // namespace at::cuda::detail diff --git a/shared/package-files/e8/e81edfb3d9e2b8dd90632c6354d5f7dd62c126f1764896510a7e922274c8cf48/blob b/shared/package-files/e8/e81edfb3d9e2b8dd90632c6354d5f7dd62c126f1764896510a7e922274c8cf48/blob new file mode 100644 index 0000000000000000000000000000000000000000..826132eb28162603d03635add59c3ea3da569256 --- /dev/null +++ b/shared/package-files/e8/e81edfb3d9e2b8dd90632c6354d5f7dd62c126f1764896510a7e922274c8cf48/blob @@ -0,0 +1,24 @@ +import numpy as np + +from pandas import ( + Categorical, + Series, +) + + +def test_nunique(): + # basics.rst doc example + series = Series(np.random.default_rng(2).standard_normal(500)) + series[20:500] = np.nan + series[10:20] = 5000 + result = series.nunique() + assert result == 11 + + +def test_nunique_categorical(): + # GH#18051 + ser = Series(Categorical([])) + assert ser.nunique() == 0 + + ser = Series(Categorical([np.nan])) + assert ser.nunique() == 0 diff --git a/shared/package-files/e8/e820f64f81dea6f4b2c3f19132b088ef33c6455101680b3667eef47d4e42d549/blob b/shared/package-files/e8/e820f64f81dea6f4b2c3f19132b088ef33c6455101680b3667eef47d4e42d549/blob new file mode 100644 index 0000000000000000000000000000000000000000..44a8ab753ea6820e70cd086205d077e7ce1f194f --- /dev/null +++ b/shared/package-files/e8/e820f64f81dea6f4b2c3f19132b088ef33c6455101680b3667eef47d4e42d549/blob @@ -0,0 +1,81 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::all.dim(Tensor self, int dim, bool keepdim=False) -> Tensor +inline at::Tensor all(const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::all_dim::call(self, dim, keepdim); +} + +// aten::all.dims(Tensor self, int[]? dim=None, bool keepdim=False) -> Tensor +inline at::Tensor all(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false) { + return at::_ops::all_dims::call(self, dim, keepdim); +} + +// aten::all.out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_out(at::Tensor & out, const at::Tensor & self, int64_t dim, bool keepdim=false) { + return at::_ops::all_out::call(self, dim, keepdim, out); +} +// aten::all.out(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_outf(const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & out) { + return at::_ops::all_out::call(self, dim, keepdim, out); +} + +// aten::all.dims_out(Tensor self, int[]? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_out(at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false) { + return at::_ops::all_dims_out::call(self, dim, keepdim, out); +} +// aten::all.dims_out(Tensor self, int[]? dim=None, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_outf(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, at::Tensor & out) { + return at::_ops::all_dims_out::call(self, dim, keepdim, out); +} + +// aten::all.dimname(Tensor self, Dimname dim, bool keepdim=False) -> Tensor +inline at::Tensor all(const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::all_dimname::call(self, dim, keepdim); +} + +// aten::all.dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_out(at::Tensor & out, const at::Tensor & self, at::Dimname dim, bool keepdim=false) { + return at::_ops::all_dimname_out::call(self, dim, keepdim, out); +} +// aten::all.dimname_out(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_outf(const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & out) { + return at::_ops::all_dimname_out::call(self, dim, keepdim, out); +} + +// aten::all(Tensor self) -> Tensor +inline at::Tensor all(const at::Tensor & self) { + return at::_ops::all::call(self); +} + +// aten::all.all_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_out(at::Tensor & out, const at::Tensor & self) { + return at::_ops::all_all_out::call(self, out); +} +// aten::all.all_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & all_outf(const at::Tensor & self, at::Tensor & out) { + return at::_ops::all_all_out::call(self, out); +} + +} diff --git a/shared/package-files/e8/e821fbd5ae150dc9fdb616ae5a213504904e5416febcde421739f3fe52769c0c/blob b/shared/package-files/e8/e821fbd5ae150dc9fdb616ae5a213504904e5416febcde421739f3fe52769c0c/blob new file mode 100644 index 0000000000000000000000000000000000000000..710ea60c03653cc80ac3bd1eefd425b4268a5246 --- /dev/null +++ b/shared/package-files/e8/e821fbd5ae150dc9fdb616ae5a213504904e5416febcde421739f3fe52769c0c/blob @@ -0,0 +1,1965 @@ +# Copyright (C) 2003-2005 Peter J. Verveer +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# +# 3. The name of the author may not be used to endorse or promote +# products derived from this software without specific prior +# written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS +# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +from collections.abc import Iterable +import numbers +import warnings +import numpy as np +import operator + +from scipy._lib._util import normalize_axis_index +from . import _ni_support +from . import _nd_image +from . import _ni_docstrings +from . import _rank_filter_1d + +__all__ = ['correlate1d', 'convolve1d', 'gaussian_filter1d', 'gaussian_filter', + 'prewitt', 'sobel', 'generic_laplace', 'laplace', + 'gaussian_laplace', 'generic_gradient_magnitude', + 'gaussian_gradient_magnitude', 'correlate', 'convolve', + 'uniform_filter1d', 'uniform_filter', 'minimum_filter1d', + 'maximum_filter1d', 'minimum_filter', 'maximum_filter', + 'rank_filter', 'median_filter', 'percentile_filter', + 'generic_filter1d', 'generic_filter'] + + +def _invalid_origin(origin, lenw): + return (origin < -(lenw // 2)) or (origin > (lenw - 1) // 2) + + +def _complex_via_real_components(func, input, weights, output, cval, **kwargs): + """Complex convolution via a linear combination of real convolutions.""" + complex_input = input.dtype.kind == 'c' + complex_weights = weights.dtype.kind == 'c' + if complex_input and complex_weights: + # real component of the output + func(input.real, weights.real, output=output.real, + cval=np.real(cval), **kwargs) + output.real -= func(input.imag, weights.imag, output=None, + cval=np.imag(cval), **kwargs) + # imaginary component of the output + func(input.real, weights.imag, output=output.imag, + cval=np.real(cval), **kwargs) + output.imag += func(input.imag, weights.real, output=None, + cval=np.imag(cval), **kwargs) + elif complex_input: + func(input.real, weights, output=output.real, cval=np.real(cval), + **kwargs) + func(input.imag, weights, output=output.imag, cval=np.imag(cval), + **kwargs) + else: + if np.iscomplexobj(cval): + raise ValueError("Cannot provide a complex-valued cval when the " + "input is real.") + func(input, weights.real, output=output.real, cval=cval, **kwargs) + func(input, weights.imag, output=output.imag, cval=cval, **kwargs) + return output + + +def _expand_origin(ndim_image, axes, origin): + num_axes = len(axes) + origins = _ni_support._normalize_sequence(origin, num_axes) + if num_axes < ndim_image: + # set origin = 0 for any axes not being filtered + origins_temp = [0,] * ndim_image + for o, ax in zip(origins, axes): + origins_temp[ax] = o + origins = origins_temp + return origins + + +def _expand_footprint(ndim_image, axes, footprint, + footprint_name="footprint"): + num_axes = len(axes) + if num_axes < ndim_image: + if footprint.ndim != num_axes: + raise RuntimeError(f"{footprint_name}.ndim ({footprint.ndim}) " + f"must match len(axes) ({num_axes})") + + footprint = np.expand_dims( + footprint, + tuple(ax for ax in range(ndim_image) if ax not in axes) + ) + return footprint + + +def _expand_mode(ndim_image, axes, mode): + num_axes = len(axes) + if not isinstance(mode, str) and isinstance(mode, Iterable): + # set mode = 'constant' for any axes not being filtered + modes = _ni_support._normalize_sequence(mode, num_axes) + modes_temp = ['constant'] * ndim_image + for m, ax in zip(modes, axes): + modes_temp[ax] = m + mode = modes_temp + return mode + + +@_ni_docstrings.docfiller +def correlate1d(input, weights, axis=-1, output=None, mode="reflect", + cval=0.0, origin=0): + """Calculate a 1-D correlation along the given axis. + + The lines of the array along the given axis are correlated with the + given weights. + + Parameters + ---------- + %(input)s + weights : array + 1-D sequence of numbers. + %(axis)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin)s + + Returns + ------- + result : ndarray + Correlation result. Has the same shape as `input`. + + Examples + -------- + >>> from scipy.ndimage import correlate1d + >>> correlate1d([2, 8, 0, 4, 1, 9, 9, 0], weights=[1, 3]) + array([ 8, 26, 8, 12, 7, 28, 36, 9]) + """ + input = np.asarray(input) + weights = np.asarray(weights) + complex_input = input.dtype.kind == 'c' + complex_weights = weights.dtype.kind == 'c' + if complex_input or complex_weights: + if complex_weights: + weights = weights.conj() + weights = weights.astype(np.complex128, copy=False) + kwargs = dict(axis=axis, mode=mode, origin=origin) + output = _ni_support._get_output(output, input, complex_output=True) + return _complex_via_real_components(correlate1d, input, weights, + output, cval, **kwargs) + + output = _ni_support._get_output(output, input) + weights = np.asarray(weights, dtype=np.float64) + if weights.ndim != 1 or weights.shape[0] < 1: + raise RuntimeError('no filter weights given') + if not weights.flags.contiguous: + weights = weights.copy() + axis = normalize_axis_index(axis, input.ndim) + if _invalid_origin(origin, len(weights)): + raise ValueError('Invalid origin; origin must satisfy ' + '-(len(weights) // 2) <= origin <= ' + '(len(weights)-1) // 2') + mode = _ni_support._extend_mode_to_code(mode) + _nd_image.correlate1d(input, weights, axis, output, mode, cval, + origin) + return output + + +@_ni_docstrings.docfiller +def convolve1d(input, weights, axis=-1, output=None, mode="reflect", + cval=0.0, origin=0): + """Calculate a 1-D convolution along the given axis. + + The lines of the array along the given axis are convolved with the + given weights. + + Parameters + ---------- + %(input)s + weights : ndarray + 1-D sequence of numbers. + %(axis)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin)s + + Returns + ------- + convolve1d : ndarray + Convolved array with same shape as input + + Examples + -------- + >>> from scipy.ndimage import convolve1d + >>> convolve1d([2, 8, 0, 4, 1, 9, 9, 0], weights=[1, 3]) + array([14, 24, 4, 13, 12, 36, 27, 0]) + """ + weights = np.asarray(weights) + weights = weights[::-1] + origin = -origin + if not weights.shape[0] & 1: + origin -= 1 + if weights.dtype.kind == 'c': + # pre-conjugate here to counteract the conjugation in correlate1d + weights = weights.conj() + return correlate1d(input, weights, axis, output, mode, cval, origin) + + +def _gaussian_kernel1d(sigma, order, radius): + """ + Computes a 1-D Gaussian convolution kernel. + """ + if order < 0: + raise ValueError('order must be non-negative') + exponent_range = np.arange(order + 1) + sigma2 = sigma * sigma + x = np.arange(-radius, radius+1) + phi_x = np.exp(-0.5 / sigma2 * x ** 2) + phi_x = phi_x / phi_x.sum() + + if order == 0: + return phi_x + else: + # f(x) = q(x) * phi(x) = q(x) * exp(p(x)) + # f'(x) = (q'(x) + q(x) * p'(x)) * phi(x) + # p'(x) = -1 / sigma ** 2 + # Implement q'(x) + q(x) * p'(x) as a matrix operator and apply to the + # coefficients of q(x) + q = np.zeros(order + 1) + q[0] = 1 + D = np.diag(exponent_range[1:], 1) # D @ q(x) = q'(x) + P = np.diag(np.ones(order)/-sigma2, -1) # P @ q(x) = q(x) * p'(x) + Q_deriv = D + P + for _ in range(order): + q = Q_deriv.dot(q) + q = (x[:, None] ** exponent_range).dot(q) + return q * phi_x + + +@_ni_docstrings.docfiller +def gaussian_filter1d(input, sigma, axis=-1, order=0, output=None, + mode="reflect", cval=0.0, truncate=4.0, *, radius=None): + """1-D Gaussian filter. + + Parameters + ---------- + %(input)s + sigma : scalar + standard deviation for Gaussian kernel + %(axis)s + order : int, optional + An order of 0 corresponds to convolution with a Gaussian + kernel. A positive order corresponds to convolution with + that derivative of a Gaussian. + %(output)s + %(mode_reflect)s + %(cval)s + truncate : float, optional + Truncate the filter at this many standard deviations. + Default is 4.0. + radius : None or int, optional + Radius of the Gaussian kernel. If specified, the size of + the kernel will be ``2*radius + 1``, and `truncate` is ignored. + Default is None. + + Returns + ------- + gaussian_filter1d : ndarray + + Notes + ----- + The Gaussian kernel will have size ``2*radius + 1`` along each axis. If + `radius` is None, a default ``radius = round(truncate * sigma)`` will be + used. + + Examples + -------- + >>> from scipy.ndimage import gaussian_filter1d + >>> import numpy as np + >>> gaussian_filter1d([1.0, 2.0, 3.0, 4.0, 5.0], 1) + array([ 1.42704095, 2.06782203, 3. , 3.93217797, 4.57295905]) + >>> gaussian_filter1d([1.0, 2.0, 3.0, 4.0, 5.0], 4) + array([ 2.91948343, 2.95023502, 3. , 3.04976498, 3.08051657]) + >>> import matplotlib.pyplot as plt + >>> rng = np.random.default_rng() + >>> x = rng.standard_normal(101).cumsum() + >>> y3 = gaussian_filter1d(x, 3) + >>> y6 = gaussian_filter1d(x, 6) + >>> plt.plot(x, 'k', label='original data') + >>> plt.plot(y3, '--', label='filtered, sigma=3') + >>> plt.plot(y6, ':', label='filtered, sigma=6') + >>> plt.legend() + >>> plt.grid() + >>> plt.show() + + """ + sd = float(sigma) + # make the radius of the filter equal to truncate standard deviations + lw = int(truncate * sd + 0.5) + if radius is not None: + lw = radius + if not isinstance(lw, numbers.Integral) or lw < 0: + raise ValueError('Radius must be a nonnegative integer.') + # Since we are calling correlate, not convolve, revert the kernel + weights = _gaussian_kernel1d(sigma, order, lw)[::-1] + return correlate1d(input, weights, axis, output, mode, cval, 0) + + +@_ni_docstrings.docfiller +def gaussian_filter(input, sigma, order=0, output=None, + mode="reflect", cval=0.0, truncate=4.0, *, radius=None, + axes=None): + """Multidimensional Gaussian filter. + + Parameters + ---------- + %(input)s + sigma : scalar or sequence of scalars + Standard deviation for Gaussian kernel. The standard + deviations of the Gaussian filter are given for each axis as a + sequence, or as a single number, in which case it is equal for + all axes. + order : int or sequence of ints, optional + The order of the filter along each axis is given as a sequence + of integers, or as a single number. An order of 0 corresponds + to convolution with a Gaussian kernel. A positive order + corresponds to convolution with that derivative of a Gaussian. + %(output)s + %(mode_multiple)s + %(cval)s + truncate : float, optional + Truncate the filter at this many standard deviations. + Default is 4.0. + radius : None or int or sequence of ints, optional + Radius of the Gaussian kernel. The radius are given for each axis + as a sequence, or as a single number, in which case it is equal + for all axes. If specified, the size of the kernel along each axis + will be ``2*radius + 1``, and `truncate` is ignored. + Default is None. + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `sigma`, `order`, `mode` and/or `radius` + must match the length of `axes`. The ith entry in any of these tuples + corresponds to the ith entry in `axes`. + + Returns + ------- + gaussian_filter : ndarray + Returned array of same shape as `input`. + + Notes + ----- + The multidimensional filter is implemented as a sequence of + 1-D convolution filters. The intermediate arrays are + stored in the same data type as the output. Therefore, for output + types with a limited precision, the results may be imprecise + because intermediate results may be stored with insufficient + precision. + + The Gaussian kernel will have size ``2*radius + 1`` along each axis. If + `radius` is None, the default ``radius = round(truncate * sigma)`` will be + used. + + Examples + -------- + >>> from scipy.ndimage import gaussian_filter + >>> import numpy as np + >>> a = np.arange(50, step=2).reshape((5,5)) + >>> a + array([[ 0, 2, 4, 6, 8], + [10, 12, 14, 16, 18], + [20, 22, 24, 26, 28], + [30, 32, 34, 36, 38], + [40, 42, 44, 46, 48]]) + >>> gaussian_filter(a, sigma=1) + array([[ 4, 6, 8, 9, 11], + [10, 12, 14, 15, 17], + [20, 22, 24, 25, 27], + [29, 31, 33, 34, 36], + [35, 37, 39, 40, 42]]) + + >>> from scipy import datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = gaussian_filter(ascent, sigma=5) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + input = np.asarray(input) + output = _ni_support._get_output(output, input) + + axes = _ni_support._check_axes(axes, input.ndim) + num_axes = len(axes) + orders = _ni_support._normalize_sequence(order, num_axes) + sigmas = _ni_support._normalize_sequence(sigma, num_axes) + modes = _ni_support._normalize_sequence(mode, num_axes) + radiuses = _ni_support._normalize_sequence(radius, num_axes) + axes = [(axes[ii], sigmas[ii], orders[ii], modes[ii], radiuses[ii]) + for ii in range(num_axes) if sigmas[ii] > 1e-15] + if len(axes) > 0: + for axis, sigma, order, mode, radius in axes: + gaussian_filter1d(input, sigma, axis, order, output, + mode, cval, truncate, radius=radius) + input = output + else: + output[...] = input[...] + return output + + +@_ni_docstrings.docfiller +def prewitt(input, axis=-1, output=None, mode="reflect", cval=0.0): + """Calculate a Prewitt filter. + + Parameters + ---------- + %(input)s + %(axis)s + %(output)s + %(mode_multiple)s + %(cval)s + + Returns + ------- + prewitt : ndarray + Filtered array. Has the same shape as `input`. + + See Also + -------- + sobel: Sobel filter + + Notes + ----- + This function computes the one-dimensional Prewitt filter. + Horizontal edges are emphasised with the horizontal transform (axis=0), + vertical edges with the vertical transform (axis=1), and so on for higher + dimensions. These can be combined to give the magnitude. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> import numpy as np + >>> ascent = datasets.ascent() + >>> prewitt_h = ndimage.prewitt(ascent, axis=0) + >>> prewitt_v = ndimage.prewitt(ascent, axis=1) + >>> magnitude = np.sqrt(prewitt_h ** 2 + prewitt_v ** 2) + >>> magnitude *= 255 / np.max(magnitude) # Normalization + >>> fig, axes = plt.subplots(2, 2, figsize = (8, 8)) + >>> plt.gray() + >>> axes[0, 0].imshow(ascent) + >>> axes[0, 1].imshow(prewitt_h) + >>> axes[1, 0].imshow(prewitt_v) + >>> axes[1, 1].imshow(magnitude) + >>> titles = ["original", "horizontal", "vertical", "magnitude"] + >>> for i, ax in enumerate(axes.ravel()): + ... ax.set_title(titles[i]) + ... ax.axis("off") + >>> plt.show() + + """ + input = np.asarray(input) + axis = normalize_axis_index(axis, input.ndim) + output = _ni_support._get_output(output, input) + modes = _ni_support._normalize_sequence(mode, input.ndim) + correlate1d(input, [-1, 0, 1], axis, output, modes[axis], cval, 0) + axes = [ii for ii in range(input.ndim) if ii != axis] + for ii in axes: + correlate1d(output, [1, 1, 1], ii, output, modes[ii], cval, 0,) + return output + + +@_ni_docstrings.docfiller +def sobel(input, axis=-1, output=None, mode="reflect", cval=0.0): + """Calculate a Sobel filter. + + Parameters + ---------- + %(input)s + %(axis)s + %(output)s + %(mode_multiple)s + %(cval)s + + Returns + ------- + sobel : ndarray + Filtered array. Has the same shape as `input`. + + Notes + ----- + This function computes the axis-specific Sobel gradient. + The horizontal edges can be emphasised with the horizontal transform (axis=0), + the vertical edges with the vertical transform (axis=1) and so on for higher + dimensions. These can be combined to give the magnitude. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> import numpy as np + >>> ascent = datasets.ascent().astype('int32') + >>> sobel_h = ndimage.sobel(ascent, 0) # horizontal gradient + >>> sobel_v = ndimage.sobel(ascent, 1) # vertical gradient + >>> magnitude = np.sqrt(sobel_h**2 + sobel_v**2) + >>> magnitude *= 255.0 / np.max(magnitude) # normalization + >>> fig, axs = plt.subplots(2, 2, figsize=(8, 8)) + >>> plt.gray() # show the filtered result in grayscale + >>> axs[0, 0].imshow(ascent) + >>> axs[0, 1].imshow(sobel_h) + >>> axs[1, 0].imshow(sobel_v) + >>> axs[1, 1].imshow(magnitude) + >>> titles = ["original", "horizontal", "vertical", "magnitude"] + >>> for i, ax in enumerate(axs.ravel()): + ... ax.set_title(titles[i]) + ... ax.axis("off") + >>> plt.show() + + """ + input = np.asarray(input) + axis = normalize_axis_index(axis, input.ndim) + output = _ni_support._get_output(output, input) + modes = _ni_support._normalize_sequence(mode, input.ndim) + correlate1d(input, [-1, 0, 1], axis, output, modes[axis], cval, 0) + axes = [ii for ii in range(input.ndim) if ii != axis] + for ii in axes: + correlate1d(output, [1, 2, 1], ii, output, modes[ii], cval, 0) + return output + + +@_ni_docstrings.docfiller +def generic_laplace(input, derivative2, output=None, mode="reflect", + cval=0.0, + extra_arguments=(), + extra_keywords=None, + *, axes=None): + """ + N-D Laplace filter using a provided second derivative function. + + Parameters + ---------- + %(input)s + derivative2 : callable + Callable with the following signature:: + + derivative2(input, axis, output, mode, cval, + *extra_arguments, **extra_keywords) + + See `extra_arguments`, `extra_keywords` below. + %(output)s + %(mode_multiple)s + %(cval)s + %(extra_keywords)s + %(extra_arguments)s + axes : tuple of int or None + The axes over which to apply the filter. If a `mode` tuple is + provided, its length must match the number of axes. + + Returns + ------- + generic_laplace : ndarray + Filtered array. Has the same shape as `input`. + + """ + if extra_keywords is None: + extra_keywords = {} + input = np.asarray(input) + output = _ni_support._get_output(output, input) + axes = _ni_support._check_axes(axes, input.ndim) + if len(axes) > 0: + modes = _ni_support._normalize_sequence(mode, len(axes)) + derivative2(input, axes[0], output, modes[0], cval, + *extra_arguments, **extra_keywords) + for ii in range(1, len(axes)): + tmp = derivative2(input, axes[ii], output.dtype, modes[ii], cval, + *extra_arguments, **extra_keywords) + output += tmp + else: + output[...] = input[...] + return output + + +@_ni_docstrings.docfiller +def laplace(input, output=None, mode="reflect", cval=0.0, *, axes=None): + """N-D Laplace filter based on approximate second derivatives. + + Parameters + ---------- + %(input)s + %(output)s + %(mode_multiple)s + %(cval)s + axes : tuple of int or None + The axes over which to apply the filter. If a `mode` tuple is + provided, its length must match the number of axes. + + Returns + ------- + laplace : ndarray + Filtered array. Has the same shape as `input`. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.laplace(ascent) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + def derivative2(input, axis, output, mode, cval): + return correlate1d(input, [1, -2, 1], axis, output, mode, cval, 0) + return generic_laplace(input, derivative2, output, mode, cval, axes=axes) + + +@_ni_docstrings.docfiller +def gaussian_laplace(input, sigma, output=None, mode="reflect", + cval=0.0, *, axes=None, **kwargs): + """Multidimensional Laplace filter using Gaussian second derivatives. + + Parameters + ---------- + %(input)s + sigma : scalar or sequence of scalars + The standard deviations of the Gaussian filter are given for + each axis as a sequence, or as a single number, in which case + it is equal for all axes. + %(output)s + %(mode_multiple)s + %(cval)s + axes : tuple of int or None + The axes over which to apply the filter. If `sigma` or `mode` tuples + are provided, their length must match the number of axes. + Extra keyword arguments will be passed to gaussian_filter(). + + Returns + ------- + gaussian_laplace : ndarray + Filtered array. Has the same shape as `input`. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> ascent = datasets.ascent() + + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + + >>> result = ndimage.gaussian_laplace(ascent, sigma=1) + >>> ax1.imshow(result) + + >>> result = ndimage.gaussian_laplace(ascent, sigma=3) + >>> ax2.imshow(result) + >>> plt.show() + """ + input = np.asarray(input) + + def derivative2(input, axis, output, mode, cval, sigma, **kwargs): + order = [0] * input.ndim + order[axis] = 2 + return gaussian_filter(input, sigma, order, output, mode, cval, + **kwargs) + + axes = _ni_support._check_axes(axes, input.ndim) + num_axes = len(axes) + sigma = _ni_support._normalize_sequence(sigma, num_axes) + if num_axes < input.ndim: + # set sigma = 0 for any axes not being filtered + sigma_temp = [0,] * input.ndim + for s, ax in zip(sigma, axes): + sigma_temp[ax] = s + sigma = sigma_temp + + return generic_laplace(input, derivative2, output, mode, cval, + extra_arguments=(sigma,), + extra_keywords=kwargs, + axes=axes) + + +@_ni_docstrings.docfiller +def generic_gradient_magnitude(input, derivative, output=None, + mode="reflect", cval=0.0, + extra_arguments=(), extra_keywords=None, + *, axes=None): + """Gradient magnitude using a provided gradient function. + + Parameters + ---------- + %(input)s + derivative : callable + Callable with the following signature:: + + derivative(input, axis, output, mode, cval, + *extra_arguments, **extra_keywords) + + See `extra_arguments`, `extra_keywords` below. + `derivative` can assume that `input` and `output` are ndarrays. + Note that the output from `derivative` is modified inplace; + be careful to copy important inputs before returning them. + %(output)s + %(mode_multiple)s + %(cval)s + %(extra_keywords)s + %(extra_arguments)s + axes : tuple of int or None + The axes over which to apply the filter. If a `mode` tuple is + provided, its length must match the number of axes. + + Returns + ------- + generic_gradient_matnitude : ndarray + Filtered array. Has the same shape as `input`. + + """ + if extra_keywords is None: + extra_keywords = {} + input = np.asarray(input) + output = _ni_support._get_output(output, input) + axes = _ni_support._check_axes(axes, input.ndim) + if len(axes) > 0: + modes = _ni_support._normalize_sequence(mode, len(axes)) + derivative(input, axes[0], output, modes[0], cval, + *extra_arguments, **extra_keywords) + np.multiply(output, output, output) + for ii in range(1, len(axes)): + tmp = derivative(input, axes[ii], output.dtype, modes[ii], cval, + *extra_arguments, **extra_keywords) + np.multiply(tmp, tmp, tmp) + output += tmp + # This allows the sqrt to work with a different default casting + np.sqrt(output, output, casting='unsafe') + else: + output[...] = input[...] + return output + + +@_ni_docstrings.docfiller +def gaussian_gradient_magnitude(input, sigma, output=None, + mode="reflect", cval=0.0, *, axes=None, + **kwargs): + """Multidimensional gradient magnitude using Gaussian derivatives. + + Parameters + ---------- + %(input)s + sigma : scalar or sequence of scalars + The standard deviations of the Gaussian filter are given for + each axis as a sequence, or as a single number, in which case + it is equal for all axes. + %(output)s + %(mode_multiple)s + %(cval)s + axes : tuple of int or None + The axes over which to apply the filter. If `sigma` or `mode` tuples + are provided, their length must match the number of axes. + Extra keyword arguments will be passed to gaussian_filter(). + + Returns + ------- + gaussian_gradient_magnitude : ndarray + Filtered array. Has the same shape as `input`. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.gaussian_gradient_magnitude(ascent, sigma=5) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + input = np.asarray(input) + + def derivative(input, axis, output, mode, cval, sigma, **kwargs): + order = [0] * input.ndim + order[axis] = 1 + return gaussian_filter(input, sigma, order, output, mode, + cval, **kwargs) + + return generic_gradient_magnitude(input, derivative, output, mode, + cval, extra_arguments=(sigma,), + extra_keywords=kwargs, axes=axes) + + +def _correlate_or_convolve(input, weights, output, mode, cval, origin, + convolution, axes): + input = np.asarray(input) + weights = np.asarray(weights) + complex_input = input.dtype.kind == 'c' + complex_weights = weights.dtype.kind == 'c' + if complex_input or complex_weights: + if complex_weights and not convolution: + # As for np.correlate, conjugate weights rather than input. + weights = weights.conj() + kwargs = dict( + mode=mode, origin=origin, convolution=convolution, axes=axes + ) + output = _ni_support._get_output(output, input, complex_output=True) + + return _complex_via_real_components(_correlate_or_convolve, input, + weights, output, cval, **kwargs) + + axes = _ni_support._check_axes(axes, input.ndim) + weights = np.asarray(weights, dtype=np.float64) + + # expand weights and origins if num_axes < input.ndim + weights = _expand_footprint(input.ndim, axes, weights, "weights") + origins = _expand_origin(input.ndim, axes, origin) + + wshape = [ii for ii in weights.shape if ii > 0] + if len(wshape) != input.ndim: + raise RuntimeError(f"weights.ndim ({len(wshape)}) must match " + f"len(axes) ({len(axes)})") + if convolution: + weights = weights[tuple([slice(None, None, -1)] * weights.ndim)] + for ii in range(len(origins)): + origins[ii] = -origins[ii] + if not weights.shape[ii] & 1: + origins[ii] -= 1 + for origin, lenw in zip(origins, wshape): + if _invalid_origin(origin, lenw): + raise ValueError('Invalid origin; origin must satisfy ' + '-(weights.shape[k] // 2) <= origin[k] <= ' + '(weights.shape[k]-1) // 2') + + if not weights.flags.contiguous: + weights = weights.copy() + output = _ni_support._get_output(output, input) + temp_needed = np.may_share_memory(input, output) + if temp_needed: + # input and output arrays cannot share memory + temp = output + output = _ni_support._get_output(output.dtype, input) + if not isinstance(mode, str) and isinstance(mode, Iterable): + raise RuntimeError("A sequence of modes is not supported") + mode = _ni_support._extend_mode_to_code(mode) + _nd_image.correlate(input, weights, output, mode, cval, origins) + if temp_needed: + temp[...] = output + output = temp + return output + + +@_ni_docstrings.docfiller +def correlate(input, weights, output=None, mode='reflect', cval=0.0, + origin=0, *, axes=None): + """ + Multidimensional correlation. + + The array is correlated with the given kernel. + + Parameters + ---------- + %(input)s + weights : ndarray + array of weights, same number of dimensions as input + %(output)s + %(mode_reflect)s + %(cval)s + %(origin_multiple)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `mode` or `origin` must match the length + of `axes`. The ith entry in any of these tuples corresponds to the ith + entry in `axes`. + + Returns + ------- + result : ndarray + The result of correlation of `input` with `weights`. + + See Also + -------- + convolve : Convolve an image with a kernel. + + Examples + -------- + Correlation is the process of moving a filter mask often referred to + as kernel over the image and computing the sum of products at each location. + + >>> from scipy.ndimage import correlate + >>> import numpy as np + >>> input_img = np.arange(25).reshape(5,5) + >>> print(input_img) + [[ 0 1 2 3 4] + [ 5 6 7 8 9] + [10 11 12 13 14] + [15 16 17 18 19] + [20 21 22 23 24]] + + Define a kernel (weights) for correlation. In this example, it is for sum of + center and up, down, left and right next elements. + + >>> weights = [[0, 1, 0], + ... [1, 1, 1], + ... [0, 1, 0]] + + We can calculate a correlation result: + For example, element ``[2,2]`` is ``7 + 11 + 12 + 13 + 17 = 60``. + + >>> correlate(input_img, weights) + array([[ 6, 10, 15, 20, 24], + [ 26, 30, 35, 40, 44], + [ 51, 55, 60, 65, 69], + [ 76, 80, 85, 90, 94], + [ 96, 100, 105, 110, 114]]) + + """ + return _correlate_or_convolve(input, weights, output, mode, cval, + origin, False, axes) + + +@_ni_docstrings.docfiller +def convolve(input, weights, output=None, mode='reflect', cval=0.0, + origin=0, *, axes=None): + """ + Multidimensional convolution. + + The array is convolved with the given kernel. + + Parameters + ---------- + %(input)s + weights : array_like + Array of weights, same number of dimensions as input + %(output)s + %(mode_reflect)s + cval : scalar, optional + Value to fill past edges of input if `mode` is 'constant'. Default + is 0.0 + origin : int or sequence, optional + Controls the placement of the filter on the input array's pixels. + A value of 0 (the default) centers the filter over the pixel, with + positive values shifting the filter to the right, and negative ones + to the left. By passing a sequence of origins with length equal to + the number of dimensions of the input array, different shifts can + be specified along each axis. + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `mode` or `origin` must match the length + of `axes`. The ith entry in any of these tuples corresponds to the ith + entry in `axes`. + + Returns + ------- + result : ndarray + The result of convolution of `input` with `weights`. + + See Also + -------- + correlate : Correlate an image with a kernel. + + Notes + ----- + Each value in result is :math:`C_i = \\sum_j{I_{i+k-j} W_j}`, where + W is the `weights` kernel, + j is the N-D spatial index over :math:`W`, + I is the `input` and k is the coordinate of the center of + W, specified by `origin` in the input parameters. + + Examples + -------- + Perhaps the simplest case to understand is ``mode='constant', cval=0.0``, + because in this case borders (i.e., where the `weights` kernel, centered + on any one value, extends beyond an edge of `input`) are treated as zeros. + + >>> import numpy as np + >>> a = np.array([[1, 2, 0, 0], + ... [5, 3, 0, 4], + ... [0, 0, 0, 7], + ... [9, 3, 0, 0]]) + >>> k = np.array([[1,1,1],[1,1,0],[1,0,0]]) + >>> from scipy import ndimage + >>> ndimage.convolve(a, k, mode='constant', cval=0.0) + array([[11, 10, 7, 4], + [10, 3, 11, 11], + [15, 12, 14, 7], + [12, 3, 7, 0]]) + + Setting ``cval=1.0`` is equivalent to padding the outer edge of `input` + with 1.0's (and then extracting only the original region of the result). + + >>> ndimage.convolve(a, k, mode='constant', cval=1.0) + array([[13, 11, 8, 7], + [11, 3, 11, 14], + [16, 12, 14, 10], + [15, 6, 10, 5]]) + + With ``mode='reflect'`` (the default), outer values are reflected at the + edge of `input` to fill in missing values. + + >>> b = np.array([[2, 0, 0], + ... [1, 0, 0], + ... [0, 0, 0]]) + >>> k = np.array([[0,1,0], [0,1,0], [0,1,0]]) + >>> ndimage.convolve(b, k, mode='reflect') + array([[5, 0, 0], + [3, 0, 0], + [1, 0, 0]]) + + This includes diagonally at the corners. + + >>> k = np.array([[1,0,0],[0,1,0],[0,0,1]]) + >>> ndimage.convolve(b, k) + array([[4, 2, 0], + [3, 2, 0], + [1, 1, 0]]) + + With ``mode='nearest'``, the single nearest value in to an edge in + `input` is repeated as many times as needed to match the overlapping + `weights`. + + >>> c = np.array([[2, 0, 1], + ... [1, 0, 0], + ... [0, 0, 0]]) + >>> k = np.array([[0, 1, 0], + ... [0, 1, 0], + ... [0, 1, 0], + ... [0, 1, 0], + ... [0, 1, 0]]) + >>> ndimage.convolve(c, k, mode='nearest') + array([[7, 0, 3], + [5, 0, 2], + [3, 0, 1]]) + + """ + return _correlate_or_convolve(input, weights, output, mode, cval, + origin, True, axes) + + +@_ni_docstrings.docfiller +def uniform_filter1d(input, size, axis=-1, output=None, + mode="reflect", cval=0.0, origin=0): + """Calculate a 1-D uniform filter along the given axis. + + The lines of the array along the given axis are filtered with a + uniform filter of given size. + + Parameters + ---------- + %(input)s + size : int + length of uniform filter + %(axis)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin)s + + Returns + ------- + result : ndarray + Filtered array. Has same shape as `input`. + + Examples + -------- + >>> from scipy.ndimage import uniform_filter1d + >>> uniform_filter1d([2, 8, 0, 4, 1, 9, 9, 0], size=3) + array([4, 3, 4, 1, 4, 6, 6, 3]) + """ + input = np.asarray(input) + axis = normalize_axis_index(axis, input.ndim) + if size < 1: + raise RuntimeError('incorrect filter size') + complex_output = input.dtype.kind == 'c' + output = _ni_support._get_output(output, input, + complex_output=complex_output) + if (size // 2 + origin < 0) or (size // 2 + origin >= size): + raise ValueError('invalid origin') + mode = _ni_support._extend_mode_to_code(mode) + if not complex_output: + _nd_image.uniform_filter1d(input, size, axis, output, mode, cval, + origin) + else: + _nd_image.uniform_filter1d(input.real, size, axis, output.real, mode, + np.real(cval), origin) + _nd_image.uniform_filter1d(input.imag, size, axis, output.imag, mode, + np.imag(cval), origin) + return output + + +@_ni_docstrings.docfiller +def uniform_filter(input, size=3, output=None, mode="reflect", + cval=0.0, origin=0, *, axes=None): + """Multidimensional uniform filter. + + Parameters + ---------- + %(input)s + size : int or sequence of ints, optional + The sizes of the uniform filter are given for each axis as a + sequence, or as a single number, in which case the size is + equal for all axes. + %(output)s + %(mode_multiple)s + %(cval)s + %(origin_multiple)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `size`, `origin`, and/or `mode` + must match the length of `axes`. The ith entry in any of these tuples + corresponds to the ith entry in `axes`. + + Returns + ------- + uniform_filter : ndarray + Filtered array. Has the same shape as `input`. + + Notes + ----- + The multidimensional filter is implemented as a sequence of + 1-D uniform filters. The intermediate arrays are stored + in the same data type as the output. Therefore, for output types + with a limited precision, the results may be imprecise because + intermediate results may be stored with insufficient precision. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.uniform_filter(ascent, size=20) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + input = np.asarray(input) + output = _ni_support._get_output(output, input, + complex_output=input.dtype.kind == 'c') + axes = _ni_support._check_axes(axes, input.ndim) + num_axes = len(axes) + sizes = _ni_support._normalize_sequence(size, num_axes) + origins = _ni_support._normalize_sequence(origin, num_axes) + modes = _ni_support._normalize_sequence(mode, num_axes) + axes = [(axes[ii], sizes[ii], origins[ii], modes[ii]) + for ii in range(num_axes) if sizes[ii] > 1] + if len(axes) > 0: + for axis, size, origin, mode in axes: + uniform_filter1d(input, int(size), axis, output, mode, + cval, origin) + input = output + else: + output[...] = input[...] + return output + + +@_ni_docstrings.docfiller +def minimum_filter1d(input, size, axis=-1, output=None, + mode="reflect", cval=0.0, origin=0): + """Calculate a 1-D minimum filter along the given axis. + + The lines of the array along the given axis are filtered with a + minimum filter of given size. + + Parameters + ---------- + %(input)s + size : int + length along which to calculate 1D minimum + %(axis)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin)s + + Returns + ------- + result : ndarray. + Filtered image. Has the same shape as `input`. + + Notes + ----- + This function implements the MINLIST algorithm [1]_, as described by + Richard Harter [2]_, and has a guaranteed O(n) performance, `n` being + the `input` length, regardless of filter size. + + References + ---------- + .. [1] http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.42.2777 + .. [2] http://www.richardhartersworld.com/cri/2001/slidingmin.html + + + Examples + -------- + >>> from scipy.ndimage import minimum_filter1d + >>> minimum_filter1d([2, 8, 0, 4, 1, 9, 9, 0], size=3) + array([2, 0, 0, 0, 1, 1, 0, 0]) + """ + input = np.asarray(input) + if np.iscomplexobj(input): + raise TypeError('Complex type not supported') + axis = normalize_axis_index(axis, input.ndim) + if size < 1: + raise RuntimeError('incorrect filter size') + output = _ni_support._get_output(output, input) + if (size // 2 + origin < 0) or (size // 2 + origin >= size): + raise ValueError('invalid origin') + mode = _ni_support._extend_mode_to_code(mode) + _nd_image.min_or_max_filter1d(input, size, axis, output, mode, cval, + origin, 1) + return output + + +@_ni_docstrings.docfiller +def maximum_filter1d(input, size, axis=-1, output=None, + mode="reflect", cval=0.0, origin=0): + """Calculate a 1-D maximum filter along the given axis. + + The lines of the array along the given axis are filtered with a + maximum filter of given size. + + Parameters + ---------- + %(input)s + size : int + Length along which to calculate the 1-D maximum. + %(axis)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin)s + + Returns + ------- + maximum1d : ndarray, None + Maximum-filtered array with same shape as input. + None if `output` is not None + + Notes + ----- + This function implements the MAXLIST algorithm [1]_, as described by + Richard Harter [2]_, and has a guaranteed O(n) performance, `n` being + the `input` length, regardless of filter size. + + References + ---------- + .. [1] http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.42.2777 + .. [2] http://www.richardhartersworld.com/cri/2001/slidingmin.html + + Examples + -------- + >>> from scipy.ndimage import maximum_filter1d + >>> maximum_filter1d([2, 8, 0, 4, 1, 9, 9, 0], size=3) + array([8, 8, 8, 4, 9, 9, 9, 9]) + """ + input = np.asarray(input) + if np.iscomplexobj(input): + raise TypeError('Complex type not supported') + axis = normalize_axis_index(axis, input.ndim) + if size < 1: + raise RuntimeError('incorrect filter size') + output = _ni_support._get_output(output, input) + if (size // 2 + origin < 0) or (size // 2 + origin >= size): + raise ValueError('invalid origin') + mode = _ni_support._extend_mode_to_code(mode) + _nd_image.min_or_max_filter1d(input, size, axis, output, mode, cval, + origin, 0) + return output + + +def _min_or_max_filter(input, size, footprint, structure, output, mode, + cval, origin, minimum, axes=None): + if (size is not None) and (footprint is not None): + warnings.warn("ignoring size because footprint is set", + UserWarning, stacklevel=3) + if structure is None: + if footprint is None: + if size is None: + raise RuntimeError("no footprint provided") + separable = True + else: + footprint = np.asarray(footprint, dtype=bool) + if not footprint.any(): + raise ValueError("All-zero footprint is not supported.") + if footprint.all(): + size = footprint.shape + footprint = None + separable = True + else: + separable = False + else: + structure = np.asarray(structure, dtype=np.float64) + separable = False + if footprint is None: + footprint = np.ones(structure.shape, bool) + else: + footprint = np.asarray(footprint, dtype=bool) + input = np.asarray(input) + if np.iscomplexobj(input): + raise TypeError("Complex type not supported") + output = _ni_support._get_output(output, input) + temp_needed = np.may_share_memory(input, output) + if temp_needed: + # input and output arrays cannot share memory + temp = output + output = _ni_support._get_output(output.dtype, input) + axes = _ni_support._check_axes(axes, input.ndim) + num_axes = len(axes) + if separable: + origins = _ni_support._normalize_sequence(origin, num_axes) + sizes = _ni_support._normalize_sequence(size, num_axes) + modes = _ni_support._normalize_sequence(mode, num_axes) + axes = [(axes[ii], sizes[ii], origins[ii], modes[ii]) + for ii in range(len(axes)) if sizes[ii] > 1] + if minimum: + filter_ = minimum_filter1d + else: + filter_ = maximum_filter1d + if len(axes) > 0: + for axis, size, origin, mode in axes: + filter_(input, int(size), axis, output, mode, cval, origin) + input = output + else: + output[...] = input[...] + else: + # expand origins and footprint if num_axes < input.ndim + footprint = _expand_footprint(input.ndim, axes, footprint) + origins = _expand_origin(input.ndim, axes, origin) + + fshape = [ii for ii in footprint.shape if ii > 0] + if len(fshape) != input.ndim: + raise RuntimeError(f"footprint.ndim ({footprint.ndim}) must match " + f"len(axes) ({len(axes)})") + for origin, lenf in zip(origins, fshape): + if (lenf // 2 + origin < 0) or (lenf // 2 + origin >= lenf): + raise ValueError("invalid origin") + if not footprint.flags.contiguous: + footprint = footprint.copy() + if structure is not None: + if len(structure.shape) != num_axes: + raise RuntimeError("structure array has incorrect shape") + if num_axes != structure.ndim: + structure = np.expand_dims( + structure, + tuple(ax for ax in range(structure.ndim) if ax not in axes) + ) + if not structure.flags.contiguous: + structure = structure.copy() + if not isinstance(mode, str) and isinstance(mode, Iterable): + raise RuntimeError( + "A sequence of modes is not supported for non-separable " + "footprints") + mode = _ni_support._extend_mode_to_code(mode) + _nd_image.min_or_max_filter(input, footprint, structure, output, + mode, cval, origins, minimum) + if temp_needed: + temp[...] = output + output = temp + return output + + +@_ni_docstrings.docfiller +def minimum_filter(input, size=None, footprint=None, output=None, + mode="reflect", cval=0.0, origin=0, *, axes=None): + """Calculate a multidimensional minimum filter. + + Parameters + ---------- + %(input)s + %(size_foot)s + %(output)s + %(mode_multiple)s + %(cval)s + %(origin_multiple)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `size`, `origin`, and/or `mode` + must match the length of `axes`. The ith entry in any of these tuples + corresponds to the ith entry in `axes`. + + Returns + ------- + minimum_filter : ndarray + Filtered array. Has the same shape as `input`. + + Notes + ----- + A sequence of modes (one per axis) is only supported when the footprint is + separable. Otherwise, a single mode string must be provided. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.minimum_filter(ascent, size=20) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + return _min_or_max_filter(input, size, footprint, None, output, mode, + cval, origin, 1, axes) + + +@_ni_docstrings.docfiller +def maximum_filter(input, size=None, footprint=None, output=None, + mode="reflect", cval=0.0, origin=0, *, axes=None): + """Calculate a multidimensional maximum filter. + + Parameters + ---------- + %(input)s + %(size_foot)s + %(output)s + %(mode_multiple)s + %(cval)s + %(origin_multiple)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `size`, `origin`, and/or `mode` + must match the length of `axes`. The ith entry in any of these tuples + corresponds to the ith entry in `axes`. + + Returns + ------- + maximum_filter : ndarray + Filtered array. Has the same shape as `input`. + + Notes + ----- + A sequence of modes (one per axis) is only supported when the footprint is + separable. Otherwise, a single mode string must be provided. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.maximum_filter(ascent, size=20) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + return _min_or_max_filter(input, size, footprint, None, output, mode, + cval, origin, 0, axes) + + +@_ni_docstrings.docfiller +def _rank_filter(input, rank, size=None, footprint=None, output=None, + mode="reflect", cval=0.0, origin=0, operation='rank', + axes=None): + if (size is not None) and (footprint is not None): + warnings.warn("ignoring size because footprint is set", + UserWarning, stacklevel=3) + input = np.asarray(input) + if np.iscomplexobj(input): + raise TypeError('Complex type not supported') + axes = _ni_support._check_axes(axes, input.ndim) + num_axes = len(axes) + if footprint is None: + if size is None: + raise RuntimeError("no footprint or filter size provided") + sizes = _ni_support._normalize_sequence(size, num_axes) + footprint = np.ones(sizes, dtype=bool) + else: + footprint = np.asarray(footprint, dtype=bool) + # expand origins, footprint and modes if num_axes < input.ndim + footprint = _expand_footprint(input.ndim, axes, footprint) + origins = _expand_origin(input.ndim, axes, origin) + mode = _expand_mode(input.ndim, axes, mode) + + fshape = [ii for ii in footprint.shape if ii > 0] + if len(fshape) != input.ndim: + raise RuntimeError(f"footprint.ndim ({footprint.ndim}) must match " + f"len(axes) ({len(axes)})") + for origin, lenf in zip(origins, fshape): + if (lenf // 2 + origin < 0) or (lenf // 2 + origin >= lenf): + raise ValueError('invalid origin') + if not footprint.flags.contiguous: + footprint = footprint.copy() + filter_size = np.where(footprint, 1, 0).sum() + if operation == 'median': + rank = filter_size // 2 + elif operation == 'percentile': + percentile = rank + if percentile < 0.0: + percentile += 100.0 + if percentile < 0 or percentile > 100: + raise RuntimeError('invalid percentile') + if percentile == 100.0: + rank = filter_size - 1 + else: + rank = int(float(filter_size) * percentile / 100.0) + if rank < 0: + rank += filter_size + if rank < 0 or rank >= filter_size: + raise RuntimeError('rank not within filter footprint size') + if rank == 0: + return minimum_filter(input, None, footprint, output, mode, cval, + origins, axes=None) + elif rank == filter_size - 1: + return maximum_filter(input, None, footprint, output, mode, cval, + origins, axes=None) + else: + output = _ni_support._get_output(output, input) + temp_needed = np.may_share_memory(input, output) + if temp_needed: + # input and output arrays cannot share memory + temp = output + output = _ni_support._get_output(output.dtype, input) + if not isinstance(mode, str) and isinstance(mode, Iterable): + raise RuntimeError( + "A sequence of modes is not supported by non-separable rank " + "filters") + mode = _ni_support._extend_mode_to_code(mode, is_filter=True) + if input.ndim == 1: + if input.dtype in (np.int64, np.float64, np.float32): + x = input + x_out = output + elif input.dtype == np.float16: + x = input.astype('float32') + x_out = np.empty(x.shape, dtype='float32') + elif np.result_type(input, np.int64) == np.int64: + x = input.astype('int64') + x_out = np.empty(x.shape, dtype='int64') + elif input.dtype.kind in 'biu': + # cast any other boolean, integer or unsigned type to int64 + x = input.astype('int64') + x_out = np.empty(x.shape, dtype='int64') + else: + raise RuntimeError('Unsupported array type') + cval = x.dtype.type(cval) + _rank_filter_1d.rank_filter(x, rank, footprint.size, x_out, mode, cval, + origin) + if input.dtype not in (np.int64, np.float64, np.float32): + np.copyto(output, x_out, casting='unsafe') + else: + _nd_image.rank_filter(input, rank, footprint, output, mode, cval, origins) + if temp_needed: + temp[...] = output + output = temp + return output + + +@_ni_docstrings.docfiller +def rank_filter(input, rank, size=None, footprint=None, output=None, + mode="reflect", cval=0.0, origin=0, *, axes=None): + """Calculate a multidimensional rank filter. + + Parameters + ---------- + %(input)s + rank : int + The rank parameter may be less than zero, i.e., rank = -1 + indicates the largest element. + %(size_foot)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin_multiple)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `size`, `origin`, and/or `mode` + must match the length of `axes`. The ith entry in any of these tuples + corresponds to the ith entry in `axes`. + + Returns + ------- + rank_filter : ndarray + Filtered array. Has the same shape as `input`. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.rank_filter(ascent, rank=42, size=20) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + rank = operator.index(rank) + return _rank_filter(input, rank, size, footprint, output, mode, cval, + origin, 'rank', axes=axes) + + +@_ni_docstrings.docfiller +def median_filter(input, size=None, footprint=None, output=None, + mode="reflect", cval=0.0, origin=0, *, axes=None): + """ + Calculate a multidimensional median filter. + + Parameters + ---------- + %(input)s + %(size_foot)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin_multiple)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `size`, `origin`, and/or `mode` + must match the length of `axes`. The ith entry in any of these tuples + corresponds to the ith entry in `axes`. + + Returns + ------- + median_filter : ndarray + Filtered array. Has the same shape as `input`. + + See Also + -------- + scipy.signal.medfilt2d + + Notes + ----- + For 2-dimensional images with ``uint8``, ``float32`` or ``float64`` dtypes + the specialised function `scipy.signal.medfilt2d` may be faster. It is + however limited to constant mode with ``cval=0``. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.median_filter(ascent, size=20) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + return _rank_filter(input, 0, size, footprint, output, mode, cval, + origin, 'median', axes=axes) + + +@_ni_docstrings.docfiller +def percentile_filter(input, percentile, size=None, footprint=None, + output=None, mode="reflect", cval=0.0, origin=0, *, + axes=None): + """Calculate a multidimensional percentile filter. + + Parameters + ---------- + %(input)s + percentile : scalar + The percentile parameter may be less than zero, i.e., + percentile = -20 equals percentile = 80 + %(size_foot)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin_multiple)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `size`, `origin`, and/or `mode` + must match the length of `axes`. The ith entry in any of these tuples + corresponds to the ith entry in `axes`. + + Returns + ------- + percentile_filter : ndarray + Filtered array. Has the same shape as `input`. + + Examples + -------- + >>> from scipy import ndimage, datasets + >>> import matplotlib.pyplot as plt + >>> fig = plt.figure() + >>> plt.gray() # show the filtered result in grayscale + >>> ax1 = fig.add_subplot(121) # left side + >>> ax2 = fig.add_subplot(122) # right side + >>> ascent = datasets.ascent() + >>> result = ndimage.percentile_filter(ascent, percentile=20, size=20) + >>> ax1.imshow(ascent) + >>> ax2.imshow(result) + >>> plt.show() + """ + return _rank_filter(input, percentile, size, footprint, output, mode, + cval, origin, 'percentile', axes=axes) + + +@_ni_docstrings.docfiller +def generic_filter1d(input, function, filter_size, axis=-1, + output=None, mode="reflect", cval=0.0, origin=0, + extra_arguments=(), extra_keywords=None): + """Calculate a 1-D filter along the given axis. + + `generic_filter1d` iterates over the lines of the array, calling the + given function at each line. The arguments of the line are the + input line, and the output line. The input and output lines are 1-D + double arrays. The input line is extended appropriately according + to the filter size and origin. The output line must be modified + in-place with the result. + + Parameters + ---------- + %(input)s + function : {callable, scipy.LowLevelCallable} + Function to apply along given axis. + filter_size : scalar + Length of the filter. + %(axis)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin)s + %(extra_arguments)s + %(extra_keywords)s + + Returns + ------- + generic_filter1d : ndarray + Filtered array. Has the same shape as `input`. + + Notes + ----- + This function also accepts low-level callback functions with one of + the following signatures and wrapped in `scipy.LowLevelCallable`: + + .. code:: c + + int function(double *input_line, npy_intp input_length, + double *output_line, npy_intp output_length, + void *user_data) + int function(double *input_line, intptr_t input_length, + double *output_line, intptr_t output_length, + void *user_data) + + The calling function iterates over the lines of the input and output + arrays, calling the callback function at each line. The current line + is extended according to the border conditions set by the calling + function, and the result is copied into the array that is passed + through ``input_line``. The length of the input line (after extension) + is passed through ``input_length``. The callback function should apply + the filter and store the result in the array passed through + ``output_line``. The length of the output line is passed through + ``output_length``. ``user_data`` is the data pointer provided + to `scipy.LowLevelCallable` as-is. + + The callback function must return an integer error status that is zero + if something went wrong and one otherwise. If an error occurs, you should + normally set the python error status with an informative message + before returning, otherwise a default error message is set by the + calling function. + + In addition, some other low-level function pointer specifications + are accepted, but these are for backward compatibility only and should + not be used in new code. + + """ + if extra_keywords is None: + extra_keywords = {} + input = np.asarray(input) + if np.iscomplexobj(input): + raise TypeError('Complex type not supported') + output = _ni_support._get_output(output, input) + if filter_size < 1: + raise RuntimeError('invalid filter size') + axis = normalize_axis_index(axis, input.ndim) + if (filter_size // 2 + origin < 0) or (filter_size // 2 + origin >= + filter_size): + raise ValueError('invalid origin') + mode = _ni_support._extend_mode_to_code(mode) + _nd_image.generic_filter1d(input, function, filter_size, axis, output, + mode, cval, origin, extra_arguments, + extra_keywords) + return output + + +@_ni_docstrings.docfiller +def generic_filter(input, function, size=None, footprint=None, + output=None, mode="reflect", cval=0.0, origin=0, + extra_arguments=(), extra_keywords=None, *, axes=None): + """Calculate a multidimensional filter using the given function. + + At each element the provided function is called. The input values + within the filter footprint at that element are passed to the function + as a 1-D array of double values. + + Parameters + ---------- + %(input)s + function : {callable, scipy.LowLevelCallable} + Function to apply at each element. + %(size_foot)s + %(output)s + %(mode_reflect)s + %(cval)s + %(origin_multiple)s + %(extra_arguments)s + %(extra_keywords)s + axes : tuple of int or None, optional + If None, `input` is filtered along all axes. Otherwise, + `input` is filtered along the specified axes. When `axes` is + specified, any tuples used for `size` or `origin` must match the length + of `axes`. The ith entry in any of these tuples corresponds to the ith + entry in `axes`. + + Returns + ------- + generic_filter : ndarray + Filtered array. Has the same shape as `input`. + + Notes + ----- + This function also accepts low-level callback functions with one of + the following signatures and wrapped in `scipy.LowLevelCallable`: + + .. code:: c + + int callback(double *buffer, npy_intp filter_size, + double *return_value, void *user_data) + int callback(double *buffer, intptr_t filter_size, + double *return_value, void *user_data) + + The calling function iterates over the elements of the input and + output arrays, calling the callback function at each element. The + elements within the footprint of the filter at the current element are + passed through the ``buffer`` parameter, and the number of elements + within the footprint through ``filter_size``. The calculated value is + returned in ``return_value``. ``user_data`` is the data pointer provided + to `scipy.LowLevelCallable` as-is. + + The callback function must return an integer error status that is zero + if something went wrong and one otherwise. If an error occurs, you should + normally set the python error status with an informative message + before returning, otherwise a default error message is set by the + calling function. + + In addition, some other low-level function pointer specifications + are accepted, but these are for backward compatibility only and should + not be used in new code. + + Examples + -------- + Import the necessary modules and load the example image used for + filtering. + + >>> import numpy as np + >>> from scipy import datasets + >>> from scipy.ndimage import zoom, generic_filter + >>> import matplotlib.pyplot as plt + >>> ascent = zoom(datasets.ascent(), 0.5) + + Compute a maximum filter with kernel size 5 by passing a simple NumPy + aggregation function as argument to `function`. + + >>> maximum_filter_result = generic_filter(ascent, np.amax, [5, 5]) + + While a maximum filter could also directly be obtained using + `maximum_filter`, `generic_filter` allows generic Python function or + `scipy.LowLevelCallable` to be used as a filter. Here, we compute the + range between maximum and minimum value as an example for a kernel size + of 5. + + >>> def custom_filter(image): + ... return np.amax(image) - np.amin(image) + >>> custom_filter_result = generic_filter(ascent, custom_filter, [5, 5]) + + Plot the original and filtered images. + + >>> fig, axes = plt.subplots(3, 1, figsize=(3, 9)) + >>> plt.gray() # show the filtered result in grayscale + >>> top, middle, bottom = axes + >>> for ax in axes: + ... ax.set_axis_off() # remove coordinate system + >>> top.imshow(ascent) + >>> top.set_title("Original image") + >>> middle.imshow(maximum_filter_result) + >>> middle.set_title("Maximum filter, Kernel: 5x5") + >>> bottom.imshow(custom_filter_result) + >>> bottom.set_title("Custom filter, Kernel: 5x5") + >>> fig.tight_layout() + + """ + if (size is not None) and (footprint is not None): + warnings.warn("ignoring size because footprint is set", + UserWarning, stacklevel=2) + if extra_keywords is None: + extra_keywords = {} + input = np.asarray(input) + if np.iscomplexobj(input): + raise TypeError('Complex type not supported') + axes = _ni_support._check_axes(axes, input.ndim) + num_axes = len(axes) + if footprint is None: + if size is None: + raise RuntimeError("no footprint or filter size provided") + sizes = _ni_support._normalize_sequence(size, num_axes) + footprint = np.ones(sizes, dtype=bool) + else: + footprint = np.asarray(footprint, dtype=bool) + + # expand origins, footprint if num_axes < input.ndim + footprint = _expand_footprint(input.ndim, axes, footprint) + origins = _expand_origin(input.ndim, axes, origin) + + fshape = [ii for ii in footprint.shape if ii > 0] + if len(fshape) != input.ndim: + raise RuntimeError(f"footprint.ndim ({footprint.ndim}) " + f"must match len(axes) ({num_axes})") + for origin, lenf in zip(origins, fshape): + if (lenf // 2 + origin < 0) or (lenf // 2 + origin >= lenf): + raise ValueError('invalid origin') + if not footprint.flags.contiguous: + footprint = footprint.copy() + output = _ni_support._get_output(output, input) + + mode = _ni_support._extend_mode_to_code(mode) + _nd_image.generic_filter(input, function, footprint, output, mode, + cval, origins, extra_arguments, extra_keywords) + return output diff --git a/shared/package-files/e8/e824710623cecb1ffe9dde0ebba059cb75caaad8a04ea01bf7205804e4f383a9/blob b/shared/package-files/e8/e824710623cecb1ffe9dde0ebba059cb75caaad8a04ea01bf7205804e4f383a9/blob new file mode 100644 index 0000000000000000000000000000000000000000..7827b3e7ad7c2aae9690cb28e325c447effc406b --- /dev/null +++ b/shared/package-files/e8/e824710623cecb1ffe9dde0ebba059cb75caaad8a04ea01bf7205804e4f383a9/blob @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API at::Tensor & view_copy_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef size); +TORCH_API at::Tensor & view_copy_outf(const at::Tensor & self, at::IntArrayRef size, at::Tensor & out); +TORCH_API at::Tensor & view_copy_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef size); +TORCH_API at::Tensor & view_copy_symint_outf(const at::Tensor & self, c10::SymIntArrayRef size, at::Tensor & out); +TORCH_API at::Tensor & view_copy_out(at::Tensor & out, const at::Tensor & self, at::ScalarType dtype); +TORCH_API at::Tensor & view_copy_outf(const at::Tensor & self, at::ScalarType dtype, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/e8/e82e72e88701c0d0b06cca36c8a4063b351e9f685d9a218ee582c29bf939817c/blob b/shared/package-files/e8/e82e72e88701c0d0b06cca36c8a4063b351e9f685d9a218ee582c29bf939817c/blob new file mode 100644 index 0000000000000000000000000000000000000000..3de4930ad985709cc702ade8fac3dfe2082749c6 --- /dev/null +++ b/shared/package-files/e8/e82e72e88701c0d0b06cca36c8a4063b351e9f685d9a218ee582c29bf939817c/blob @@ -0,0 +1,206 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +namespace torch { +namespace profiler { +namespace impl { + +// ============================================================================ +// == AppendOnlyList ========================================================== +// ============================================================================ +// During profiling, we have a very predictable access pattern: we only +// append to the end of the container. We can specialize and outperform both +// std::vector (which must realloc) and std::deque (which performs a double +// indirection), and this class of operation is sufficiently important to the +// profiling hot path to warrant specializing: +// https://godbolt.org/z/rTjozf1c4 +// https://quick-bench.com/q/mmfuu71ogwaiULDCJyHdKnHZms4 (Prototype #1, +// int) https://quick-bench.com/q/5vWDW6jjdXVdoffev2zst8D09no (Prototype +// #1, int pair) https://quick-bench.com/q/IfEkfAQMeJSNBA52xtMP6Agcl-Q +// (Prototype #2, int pair) +// https://quick-bench.com/q/wJV2lKmuXL4XyGJzcI5hs4gEHFg (Prototype #3, int +// pair) https://quick-bench.com/q/xiO8ZaBEkYRYUA9dFrMuPLlW9fo (Full impl, +// int pair) +// AppendOnlyList has 2x lower emplace overhead compared to more generic STL +// containers. +// +// The optimal value of `ChunkSize` will vary by use case, but testing shows +// that a value of 1024 does a good job amortizing the `malloc` cost of growth. +// Performance drops off for larger values, so testing on a case-by-case basis +// is recommended if performance is absolutely critical. + +template < + typename T, + size_t ChunkSize, + template class block_t = std::array> +class AppendOnlyList { + public: + using array_t = block_t; + static_assert( + std::is_base_of_v, array_t>, + "AppendOnlyList expects raw low level pointer storage."); + static_assert(ChunkSize > 0, "Block cannot be empty."); + + AppendOnlyList() : buffer_last_{buffer_.before_begin()} {} + AppendOnlyList(const AppendOnlyList&) = delete; + AppendOnlyList& operator=(const AppendOnlyList&) = delete; + + size_t size() const { + return n_blocks_ * ChunkSize - (size_t)(end_ - next_); + } + + template + T* emplace_back(Args&&... args) { + maybe_grow(); + if constexpr ( + std::is_trivially_destructible_v && + std::is_trivially_destructible_v) { + ::new ((void*)next_) T{std::forward(args)...}; + } else { + *next_ = T{std::forward(args)...}; + } + return next_++; + } + + template + typename std::enable_if< + std::is_same::value && std::is_trivially_copyable::value>::type + copy(c10::ArrayRef src) { + size_t n = src.size(); + if (C10_UNLIKELY(n == 0)) { + return; + } + maybe_grow(); + if (C10_LIKELY(next_ && (next_ + n <= end_))) { + std::memcpy((void*)next_, (void*)src.begin(), n * sizeof(T0)); + next_ += n; + } else { + // We could chunk this into several `memcpy`s, but because we expect this + // fallback to be infrequent (n << ChunkSize) the performance impact is + // negligible. + for (auto i : src) { + emplace_back(i); + } + } + } + + void clear() { + buffer_.clear(); + buffer_last_ = buffer_.before_begin(); + n_blocks_ = 0; + next_ = nullptr; + end_ = nullptr; + } + + struct Iterator { + using iterator_category = std::forward_iterator_tag; + using difference_type = std::ptrdiff_t; + using value_type = T; + using pointer = T*; + using reference = T&; + + Iterator(std::forward_list& buffer, const size_t size) + : block_{buffer.begin()}, size_{size} {} + + // End iterator. + Iterator() = default; + + bool exhausted() const { + return current_ >= size_; + } + + reference operator*() const { + return *current_ptr(/*checked=*/true); + } + pointer operator->() { + return current_ptr(/*checked=*/true); + } + + // Prefix increment + Iterator& operator++() { + if (!(++current_ % ChunkSize)) { + block_++; + } + return *this; + } + + // Postfix increment + Iterator operator++(int) { + Iterator tmp = *this; + ++(*this); + return tmp; + } + + friend bool operator==(const Iterator& a, const Iterator& b) { + return a.current_ptr() == b.current_ptr(); + } + friend bool operator!=(const Iterator& a, const Iterator& b) { + return a.current_ptr() != b.current_ptr(); + } + + std::pair address() const { + if (current_ >= size_) { + return {nullptr, 0}; + } + return {&(*block_), current_ % ChunkSize}; + } + + private: + T* current_ptr(bool checked = false) const { + auto a = address(); + if (a.first == nullptr) { + TORCH_INTERNAL_ASSERT(!checked, "Invalid access on AppendOnlyList."); + return nullptr; + } + return a.first->data() + a.second; + } + + typename std::forward_list::iterator block_; + size_t current_{0}; + size_t size_{0}; + }; + + Iterator begin() { + return Iterator(buffer_, size()); + } + Iterator end() { + return Iterator(); + } + // TODO: cbegin and cend() + + private: + void maybe_grow() { + if (C10_UNLIKELY(next_ == end_)) { + buffer_last_ = buffer_.emplace_after(buffer_last_); + n_blocks_++; + next_ = buffer_last_->data(); + end_ = next_ + ChunkSize; + } + } + + std::forward_list buffer_; + + // We maintain a pointer to the last element of `buffer_` so that we can + // insert at the end in O(1) time. + size_t n_blocks_{0}; + T* next_{nullptr}; + T* end_{nullptr}; + + protected: + typename std::forward_list::iterator buffer_last_; +}; + +} // namespace impl +} // namespace profiler +} // namespace torch diff --git a/shared/package-files/e8/e8326dc8c0e6c22fe084eac3babc956a465013116af8c20a8ae262fc2afb91d3/blob b/shared/package-files/e8/e8326dc8c0e6c22fe084eac3babc956a465013116af8c20a8ae262fc2afb91d3/blob new file mode 100644 index 0000000000000000000000000000000000000000..243176bd89b7b6f16406d66293d1872ac2712252 --- /dev/null +++ b/shared/package-files/e8/e8326dc8c0e6c22fe084eac3babc956a465013116af8c20a8ae262fc2afb91d3/blob @@ -0,0 +1,128 @@ +from scipy.datasets._registry import registry +from scipy.datasets._fetchers import data_fetcher +from scipy.datasets._utils import _clear_cache +from scipy.datasets import ascent, face, electrocardiogram, download_all +from numpy.testing import assert_equal, assert_almost_equal +import os +from threading import get_ident +import pytest + +try: + import pooch +except ImportError: + raise ImportError("Missing optional dependency 'pooch' required " + "for scipy.datasets module. Please use pip or " + "conda to install 'pooch'.") + + +data_dir = data_fetcher.path # type: ignore + + +def _has_hash(path, expected_hash): + """Check if the provided path has the expected hash.""" + if not os.path.exists(path): + return False + return pooch.file_hash(path) == expected_hash + + +class TestDatasets: + + @pytest.fixture(scope='module', autouse=True) + def test_download_all(self): + # This fixture requires INTERNET CONNECTION + + # test_setup phase + download_all() + + yield + + @pytest.mark.fail_slow(10) + def test_existence_all(self): + assert len(os.listdir(data_dir)) >= len(registry) + + def test_ascent(self): + assert_equal(ascent().shape, (512, 512)) + + # hash check + assert _has_hash(os.path.join(data_dir, "ascent.dat"), + registry["ascent.dat"]) + + def test_face(self): + assert_equal(face().shape, (768, 1024, 3)) + + # hash check + assert _has_hash(os.path.join(data_dir, "face.dat"), + registry["face.dat"]) + + def test_electrocardiogram(self): + # Test shape, dtype and stats of signal + ecg = electrocardiogram() + assert_equal(ecg.dtype, float) + assert_equal(ecg.shape, (108000,)) + assert_almost_equal(ecg.mean(), -0.16510875) + assert_almost_equal(ecg.std(), 0.5992473991177294) + + # hash check + assert _has_hash(os.path.join(data_dir, "ecg.dat"), + registry["ecg.dat"]) + + +def test_clear_cache(tmp_path): + # Note: `tmp_path` is a pytest fixture, it handles cleanup + thread_basepath = tmp_path / str(get_ident()) + thread_basepath.mkdir() + + dummy_basepath = thread_basepath / "dummy_cache_dir" + dummy_basepath.mkdir() + + # Create three dummy dataset files for dummy dataset methods + dummy_method_map = {} + for i in range(4): + dummy_method_map[f"data{i}"] = [f"data{i}.dat"] + data_filepath = dummy_basepath / f"data{i}.dat" + data_filepath.write_text("") + + # clear files associated to single dataset method data0 + # also test callable argument instead of list of callables + def data0(): + pass + _clear_cache(datasets=data0, cache_dir=dummy_basepath, + method_map=dummy_method_map) + assert not os.path.exists(dummy_basepath/"data0.dat") + + # clear files associated to multiple dataset methods "data3" and "data4" + def data1(): + pass + + def data2(): + pass + _clear_cache(datasets=[data1, data2], cache_dir=dummy_basepath, + method_map=dummy_method_map) + assert not os.path.exists(dummy_basepath/"data1.dat") + assert not os.path.exists(dummy_basepath/"data2.dat") + + # clear multiple dataset files "data3_0.dat" and "data3_1.dat" + # associated with dataset method "data3" + def data4(): + pass + # create files + (dummy_basepath / "data4_0.dat").write_text("") + (dummy_basepath / "data4_1.dat").write_text("") + + dummy_method_map["data4"] = ["data4_0.dat", "data4_1.dat"] + _clear_cache(datasets=[data4], cache_dir=dummy_basepath, + method_map=dummy_method_map) + assert not os.path.exists(dummy_basepath/"data4_0.dat") + assert not os.path.exists(dummy_basepath/"data4_1.dat") + + # wrong dataset method should raise ValueError since it + # doesn't exist in the dummy_method_map + def data5(): + pass + with pytest.raises(ValueError): + _clear_cache(datasets=[data5], cache_dir=dummy_basepath, + method_map=dummy_method_map) + + # remove all dataset cache + _clear_cache(datasets=None, cache_dir=dummy_basepath) + assert not os.path.exists(dummy_basepath) diff --git a/shared/package-files/e8/e8341442a21a6f654cbf9ae45d1c1586b63fec776b1f094fc6dc3828f96fa3a4/blob b/shared/package-files/e8/e8341442a21a6f654cbf9ae45d1c1586b63fec776b1f094fc6dc3828f96fa3a4/blob new file mode 100644 index 0000000000000000000000000000000000000000..e0b50d867984926bd1d685eb8fb2ec59ea1a63ec --- /dev/null +++ b/shared/package-files/e8/e8341442a21a6f654cbf9ae45d1c1586b63fec776b1f094fc6dc3828f96fa3a4/blob @@ -0,0 +1,21 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::tuple _thnn_differentiable_lstm_cell_backward(const c10::optional & grad_hy, const c10::optional & grad_cy, const at::Tensor & input_gates, const at::Tensor & hidden_gates, const c10::optional & input_bias, const c10::optional & hidden_bias, const at::Tensor & cx, const at::Tensor & cy); +} // namespace native +} // namespace at diff --git a/shared/package-files/e8/e8355db5428feebe72dd569f397e5295a4e29adc6e4fe3a540a6112c10fe1e71/blob b/shared/package-files/e8/e8355db5428feebe72dd569f397e5295a4e29adc6e4fe3a540a6112c10fe1e71/blob new file mode 100644 index 0000000000000000000000000000000000000000..3dbc8f96c10a7c66b557317c89b59c29a7a1f57d --- /dev/null +++ b/shared/package-files/e8/e8355db5428feebe72dd569f397e5295a4e29adc6e4fe3a540a6112c10fe1e71/blob @@ -0,0 +1,337 @@ +"""Common tests for metaestimators""" + +import functools +from contextlib import suppress +from inspect import signature + +import numpy as np +import pytest + +from sklearn.base import BaseEstimator, is_regressor +from sklearn.datasets import make_classification +from sklearn.ensemble import BaggingClassifier +from sklearn.exceptions import NotFittedError +from sklearn.feature_extraction.text import TfidfVectorizer +from sklearn.feature_selection import RFE, RFECV +from sklearn.linear_model import LogisticRegression, Ridge +from sklearn.model_selection import GridSearchCV, RandomizedSearchCV +from sklearn.pipeline import Pipeline, make_pipeline +from sklearn.preprocessing import MaxAbsScaler, StandardScaler +from sklearn.semi_supervised import SelfTrainingClassifier +from sklearn.utils import all_estimators +from sklearn.utils._test_common.instance_generator import _construct_instances +from sklearn.utils._testing import SkipTest, set_random_state +from sklearn.utils.estimator_checks import ( + _enforce_estimator_tags_X, + _enforce_estimator_tags_y, +) +from sklearn.utils.validation import check_is_fitted + + +class DelegatorData: + def __init__( + self, + name, + construct, + skip_methods=(), + fit_args=make_classification(random_state=0), + ): + self.name = name + self.construct = construct + self.fit_args = fit_args + self.skip_methods = skip_methods + + +# For the following meta estimators we check for the existence of relevant +# methods only if the sub estimator also contains them. Any methods that +# are implemented in the meta estimator themselves and are not dependent +# on the sub estimator are specified in the `skip_methods` parameter. +DELEGATING_METAESTIMATORS = [ + DelegatorData("Pipeline", lambda est: Pipeline([("est", est)])), + DelegatorData( + "GridSearchCV", + lambda est: GridSearchCV(est, param_grid={"param": [5]}, cv=2), + skip_methods=["score"], + ), + DelegatorData( + "RandomizedSearchCV", + lambda est: RandomizedSearchCV( + est, param_distributions={"param": [5]}, cv=2, n_iter=1 + ), + skip_methods=["score"], + ), + DelegatorData("RFE", RFE, skip_methods=["transform", "inverse_transform"]), + DelegatorData( + "RFECV", RFECV, skip_methods=["transform", "inverse_transform", "score"] + ), + DelegatorData( + "BaggingClassifier", + BaggingClassifier, + skip_methods=[ + "transform", + "inverse_transform", + "score", + "predict_proba", + "predict_log_proba", + "predict", + ], + ), + DelegatorData( + "SelfTrainingClassifier", + lambda est: SelfTrainingClassifier(est), + skip_methods=["transform", "inverse_transform", "predict_proba"], + ), +] + + +def test_metaestimator_delegation(): + # Ensures specified metaestimators have methods iff subestimator does + def hides(method): + @property + def wrapper(obj): + if obj.hidden_method == method.__name__: + raise AttributeError("%r is hidden" % obj.hidden_method) + return functools.partial(method, obj) + + return wrapper + + class SubEstimator(BaseEstimator): + def __init__(self, param=1, hidden_method=None): + self.param = param + self.hidden_method = hidden_method + + def fit(self, X, y=None, *args, **kwargs): + self.coef_ = np.arange(X.shape[1]) + self.classes_ = [] + return True + + def _check_fit(self): + check_is_fitted(self) + + @hides + def inverse_transform(self, X, *args, **kwargs): + self._check_fit() + return X + + @hides + def transform(self, X, *args, **kwargs): + self._check_fit() + return X + + @hides + def predict(self, X, *args, **kwargs): + self._check_fit() + return np.ones(X.shape[0]) + + @hides + def predict_proba(self, X, *args, **kwargs): + self._check_fit() + return np.ones(X.shape[0]) + + @hides + def predict_log_proba(self, X, *args, **kwargs): + self._check_fit() + return np.ones(X.shape[0]) + + @hides + def decision_function(self, X, *args, **kwargs): + self._check_fit() + return np.ones(X.shape[0]) + + @hides + def score(self, X, y, *args, **kwargs): + self._check_fit() + return 1.0 + + methods = [ + k + for k in SubEstimator.__dict__.keys() + if not k.startswith("_") and not k.startswith("fit") + ] + methods.sort() + + for delegator_data in DELEGATING_METAESTIMATORS: + delegate = SubEstimator() + delegator = delegator_data.construct(delegate) + for method in methods: + if method in delegator_data.skip_methods: + continue + assert hasattr(delegate, method) + assert hasattr(delegator, method), ( + "%s does not have method %r when its delegate does" + % ( + delegator_data.name, + method, + ) + ) + # delegation before fit raises a NotFittedError + if method == "score": + with pytest.raises(NotFittedError): + getattr(delegator, method)( + delegator_data.fit_args[0], delegator_data.fit_args[1] + ) + else: + with pytest.raises(NotFittedError): + getattr(delegator, method)(delegator_data.fit_args[0]) + + delegator.fit(*delegator_data.fit_args) + for method in methods: + if method in delegator_data.skip_methods: + continue + # smoke test delegation + if method == "score": + getattr(delegator, method)( + delegator_data.fit_args[0], delegator_data.fit_args[1] + ) + else: + getattr(delegator, method)(delegator_data.fit_args[0]) + + for method in methods: + if method in delegator_data.skip_methods: + continue + delegate = SubEstimator(hidden_method=method) + delegator = delegator_data.construct(delegate) + assert not hasattr(delegate, method) + assert not hasattr(delegator, method), ( + "%s has method %r when its delegate does not" + % ( + delegator_data.name, + method, + ) + ) + + +def _get_instance_with_pipeline(meta_estimator, init_params): + """Given a single meta-estimator instance, generate an instance with a pipeline""" + if {"estimator", "base_estimator", "regressor"} & init_params: + if is_regressor(meta_estimator): + estimator = make_pipeline(TfidfVectorizer(), Ridge()) + param_grid = {"ridge__alpha": [0.1, 1.0]} + else: + estimator = make_pipeline(TfidfVectorizer(), LogisticRegression()) + param_grid = {"logisticregression__C": [0.1, 1.0]} + + if init_params.intersection( + {"param_grid", "param_distributions"} + ): # SearchCV estimators + extra_params = {"n_iter": 2} if "n_iter" in init_params else {} + return type(meta_estimator)(estimator, param_grid, **extra_params) + else: + return type(meta_estimator)(estimator) + + if "transformer_list" in init_params: + # FeatureUnion + transformer_list = [ + ("trans1", make_pipeline(TfidfVectorizer(), MaxAbsScaler())), + ( + "trans2", + make_pipeline(TfidfVectorizer(), StandardScaler(with_mean=False)), + ), + ] + return type(meta_estimator)(transformer_list) + + if "estimators" in init_params: + # stacking, voting + if is_regressor(meta_estimator): + estimator = [ + ("est1", make_pipeline(TfidfVectorizer(), Ridge(alpha=0.1))), + ("est2", make_pipeline(TfidfVectorizer(), Ridge(alpha=1))), + ] + else: + estimator = [ + ( + "est1", + make_pipeline(TfidfVectorizer(), LogisticRegression(C=0.1)), + ), + ("est2", make_pipeline(TfidfVectorizer(), LogisticRegression(C=1))), + ] + return type(meta_estimator)(estimator) + + +def _generate_meta_estimator_instances_with_pipeline(): + """Generate instances of meta-estimators fed with a pipeline + + Are considered meta-estimators all estimators accepting one of "estimator", + "base_estimator" or "estimators". + """ + print("estimators: ", len(all_estimators())) + for _, Estimator in sorted(all_estimators()): + sig = set(signature(Estimator).parameters) + + print("\n", Estimator.__name__, sig) + if not sig.intersection( + { + "estimator", + "base_estimator", + "regressor", + "transformer_list", + "estimators", + } + ): + continue + + with suppress(SkipTest): + for meta_estimator in _construct_instances(Estimator): + print(meta_estimator) + yield _get_instance_with_pipeline(meta_estimator, sig) + + +# TODO: remove data validation for the following estimators +# They should be able to work on any data and delegate data validation to +# their inner estimator(s). +DATA_VALIDATION_META_ESTIMATORS_TO_IGNORE = [ + "AdaBoostClassifier", + "AdaBoostRegressor", + "BaggingClassifier", + "BaggingRegressor", + "ClassifierChain", # data validation is necessary + "FrozenEstimator", # this estimator cannot be tested like others. + "IterativeImputer", + "OneVsOneClassifier", # input validation can't be avoided + "RANSACRegressor", + "RFE", + "RFECV", + "RegressorChain", # data validation is necessary + "SelfTrainingClassifier", + "SequentialFeatureSelector", # not applicable (2D data mandatory) +] + +DATA_VALIDATION_META_ESTIMATORS = [ + est + for est in _generate_meta_estimator_instances_with_pipeline() + if est.__class__.__name__ not in DATA_VALIDATION_META_ESTIMATORS_TO_IGNORE +] + + +def _get_meta_estimator_id(estimator): + return estimator.__class__.__name__ + + +@pytest.mark.parametrize( + "estimator", DATA_VALIDATION_META_ESTIMATORS, ids=_get_meta_estimator_id +) +def test_meta_estimators_delegate_data_validation(estimator): + # Check that meta-estimators delegate data validation to the inner + # estimator(s). + rng = np.random.RandomState(0) + set_random_state(estimator) + + n_samples = 30 + X = rng.choice(np.array(["aa", "bb", "cc"], dtype=object), size=n_samples) + + if is_regressor(estimator): + y = rng.normal(size=n_samples) + else: + y = rng.randint(3, size=n_samples) + + # We convert to lists to make sure it works on array-like + X = _enforce_estimator_tags_X(estimator, X).tolist() + y = _enforce_estimator_tags_y(estimator, y).tolist() + + # Calling fit should not raise any data validation exception since X is a + # valid input datastructure for the first step of the pipeline passed as + # base estimator to the meta estimator. + estimator.fit(X, y) + + # n_features_in_ should not be defined since data is not tabular data. + assert not hasattr(estimator, "n_features_in_") diff --git a/shared/package-files/e8/e839c74603a302a4c72f60d7d9b1880e797b388481b35d2593416b425a99c186/blob b/shared/package-files/e8/e839c74603a302a4c72f60d7d9b1880e797b388481b35d2593416b425a99c186/blob new file mode 100644 index 0000000000000000000000000000000000000000..26c94642abcb8c40fc2a30851c1b20eb768b360d --- /dev/null +++ b/shared/package-files/e8/e839c74603a302a4c72f60d7d9b1880e797b388481b35d2593416b425a99c186/blob @@ -0,0 +1,425 @@ +""" +Cross-validation classes for GAM + +Author: Luca Puggini + +""" + +from statsmodels.compat.python import with_metaclass + +from abc import ABCMeta, abstractmethod +import itertools + +import numpy as np + +from statsmodels.gam.smooth_basis import GenericSmoothers, UnivariateGenericSmoother + + +class BaseCV(with_metaclass(ABCMeta)): + """ + Base class for cross validation over a given model + + Computes the cross validation error of a given model. All the cross + validation classes can be derived from this one (e.g., GamCV, LassoCV,...) + + Parameters + ---------- + cv_iterator : instance of cross-validation iterator + Iterator used to split the data into train and test indices. + endog : ndarray + dependent (response) variable of the model + exog : ndarray + design matrix, used only to determine the number of observations + passed to ``cv_iterator.split`` + + Attributes + ---------- + cv_iterator : instance of cross-validation iterator + Iterator used to split the data into train and test indices. + endog : ndarray + dependent (response) variable of the model + exog : ndarray + design matrix, used only to determine the number of observations + passed to ``cv_iterator.split`` + train_test_cv_indices : generator + generator of (train_index, test_index) pairs produced by + ``cv_iterator.split`` + """ + + def __init__(self, cv_iterator, endog, exog): + self.cv_iterator = cv_iterator + self.exog = exog + self.endog = endog + # TODO: cv_iterator.split only needs nobs from endog or exog + self.train_test_cv_indices = self.cv_iterator.split( + self.exog, self.endog, label=None + ) + + def fit(self, **kwargs): + """ + Compute the cross validation error over all train/test splits + + Parameters + ---------- + **kwargs + Keyword arguments passed to the ``fit`` method of the + cross-validated model. + + Returns + ------- + cv_err : ndarray + array of the errors computed on each test fold + """ + cv_err = [] + + for train_index, test_index in self.train_test_cv_indices: + cv_err.append(self._error(train_index, test_index, **kwargs)) + + return np.array(cv_err) + + @abstractmethod + def _error(self, train_index, test_index, **kwargs): + """ + Train the model on the train set and return the error on the test set + + Parameters + ---------- + train_index : ndarray + index or boolean mask selecting the training observations + test_index : ndarray + index or boolean mask selecting the test observations + **kwargs + Keyword arguments passed to the ``fit`` method of the + cross-validated model. + + Returns + ------- + error : float + prediction error evaluated on the test set + """ + + +def _split_train_test_smoothers(x, smoothers, train_index, test_index): + """ + Split smoothers in test and train sets and create GenericSmoothers + + Parameters + ---------- + x : ndarray + values of the independent variables for all the smoothers + smoothers : instance + additive smoother instance whose components are split + train_index : ndarray + index or boolean mask selecting the training observations + test_index : ndarray + index or boolean mask selecting the test observations + + Returns + ------- + train_multivariate_smoothers : GenericSmoothers + smoothers evaluated on the training observations + test_multivariate_smoothers : GenericSmoothers + smoothers evaluated on the test observations + + Notes + ----- + This does not take exog_linear into account. + """ + train_smoothers = [] + test_smoothers = [] + for smoother in smoothers.smoothers: + train_basis = smoother.basis[train_index] + train_der_basis = smoother.der_basis[train_index] + train_der2_basis = smoother.der2_basis[train_index] + train_cov_der2 = smoother.cov_der2 + # TODO: Double check this part. cov_der2 is calculated with all data + train_x = smoother.x[train_index] + + train_smoothers.append( + UnivariateGenericSmoother( + train_x, + train_basis, + train_der_basis, + train_der2_basis, + train_cov_der2, + smoother.variable_name + " train", + ) + ) + + test_basis = smoother.basis[test_index] + test_der_basis = smoother.der_basis[test_index] + test_cov_der2 = smoother.cov_der2 + # TODO: Double check this part. cov_der2 is calculated with all data + test_x = smoother.x[test_index] + + test_smoothers.append( + UnivariateGenericSmoother( + test_x, + test_basis, + test_der_basis, + train_der2_basis, + test_cov_der2, + smoother.variable_name + " test", + ) + ) + + train_multivariate_smoothers = GenericSmoothers(x[train_index], train_smoothers) + test_multivariate_smoothers = GenericSmoothers(x[test_index], test_smoothers) + + return train_multivariate_smoothers, test_multivariate_smoothers + + +class MultivariateGAMCV(BaseCV): + """ + Cross validation error of a multivariate additive model + + Parameters + ---------- + smoother : additive smoother instance + smoother providing the basis for the smooth terms of the model + alphas : list of float + penalty weights, one for each smooth term + gam : model class + model class for creating a model with the training data + cost : callable + cost function used to compute the prediction error + endog : ndarray + dependent (response) variable of the model + exog : ndarray or None + design matrix of the linear (non-smooth) terms of the model + cv_iterator : instance of cross-validation iterator + iterator used to split the data into train and test indices + + Attributes + ---------- + cost : callable + cost function used to compute the prediction error + gam : model class + model class for creating a model with the training data + smoother : additive smoother instance + smoother providing the basis for the smooth terms of the model + exog_linear : ndarray or None + design matrix of the linear (non-smooth) terms of the model + alphas : list of float + penalty weights, one for each smooth term + cv_iterator : instance of cross-validation iterator + iterator used to split the data into train and test indices + """ + + def __init__(self, smoother, alphas, gam, cost, endog, exog, cv_iterator): + self.cost = cost + self.gam = gam + self.smoother = smoother + self.exog_linear = exog + self.alphas = alphas + self.cv_iterator = cv_iterator + # TODO: super does not do anything with endog, exog, except get nobs + # refactor to clean up what where `exog` and `exog_linear` is attached + # exog is not used in super + super().__init__(cv_iterator, endog, self.smoother.basis) + + def _error(self, train_index, test_index, **kwargs): + """ + Train the model on the train set and return the error on the test set + + Parameters + ---------- + train_index : ndarray + index or boolean mask selecting the training observations + test_index : ndarray + index or boolean mask selecting the test observations + **kwargs + Keyword arguments passed to the ``fit`` method of the gam model. + + Returns + ------- + error : float + prediction error, evaluated with ``cost``, on the test set + """ + train_smoother, test_smoother = _split_train_test_smoothers( + self.smoother.x, self.smoother, train_index, test_index + ) + + endog_train = self.endog[train_index] + endog_test = self.endog[test_index] + if self.exog_linear is not None: + exog_linear_train = self.exog_linear[train_index] + exog_linear_test = self.exog_linear[test_index] + else: + exog_linear_train = None + exog_linear_test = None + + gam = self.gam( + endog_train, + exog=exog_linear_train, + smoother=train_smoother, + alpha=self.alphas, + ) + gam_res = gam.fit(**kwargs) + # exog_linear_test and test_smoother.basis will be column_stacked + # but not transformed in predict + endog_est = gam_res.predict( + exog_linear_test, test_smoother.basis, transform=False + ) + + return self.cost(endog_test, endog_est) + + +class BasePenaltiesPathCV(with_metaclass(ABCMeta)): + """ + Base class for cross validation over a grid of parameters + + The best parameter is saved in ``alpha_cv``. + + Parameters + ---------- + alphas : list of float + grid of penalty weights to search over + + Attributes + ---------- + alphas : list of float + grid of penalty weights to search over + alpha_cv : float or None + best penalty weight found by cross-validation + cv_error : ndarray or None + cross-validation error for each value in ``alphas`` + cv_std : ndarray or None + standard deviation of the cross-validation error for each value in + ``alphas`` + + Notes + ----- + This class is currently not used. + """ + + def __init__(self, alphas): + self.alphas = alphas + self.alpha_cv = None + self.cv_error = None + self.cv_std = None + + def plot_path(self): + """Plot the cross validation error and standard deviation over the alphas grid""" + from statsmodels.graphics.utils import _import_mpl + + plt = _import_mpl() + plt.plot(self.alphas, self.cv_error, c="black") + plt.plot(self.alphas, self.cv_error + 1.96 * self.cv_std, c="blue") + plt.plot(self.alphas, self.cv_error - 1.96 * self.cv_std, c="blue") + + plt.plot(self.alphas, self.cv_error, "o", c="black") + plt.plot(self.alphas, self.cv_error + 1.96 * self.cv_std, "o", c="blue") + plt.plot(self.alphas, self.cv_error - 1.96 * self.cv_std, "o", c="blue") + + # TODO add return + + +class MultivariateGAMCVPath: + """ + K-fold cross-validation for GAM + + Parameters + ---------- + smoother : additive smoother instance + smoother providing the basis for the smooth terms of the model + alphas : list of iterable + list of alpha for smooths. The product space will be used as alpha + grid for cross-validation + gam : model class + model class for creating a model with k-fold training data + cost : callable + cost function for the prediction error + endog : ndarray + dependent (response) variable of the model + exog : ndarray or None + design matrix of the linear (non-smooth) terms of the model + cv_iterator : instance of cross-validation iterator + iterator used to split the data into train and test indices + + Attributes + ---------- + cost : callable + cost function for the prediction error + smoother : additive smoother instance + smoother providing the basis for the smooth terms of the model + gam : model class + model class for creating a model with k-fold training data + alphas : list of iterable + list of alpha for smooths + alphas_grid : list of tuple + product space of ``alphas`` searched during cross-validation + endog : ndarray + dependent (response) variable of the model + exog : ndarray or None + design matrix of the linear (non-smooth) terms of the model + cv_iterator : instance of cross-validation iterator + iterator used to split the data into train and test indices + cv_error : ndarray + mean cross-validation error for each element of ``alphas_grid`` + cv_std : ndarray + standard deviation of the cross-validation error for each element + of ``alphas_grid`` + alpha_cv : tuple or None + element of ``alphas_grid`` with the smallest cross-validation error + + Warnings + -------- + The API of this class is preliminary and will change. + """ + + def __init__(self, smoother, alphas, gam, cost, endog, exog, cv_iterator): + self.cost = cost + self.smoother = smoother + self.gam = gam + self.alphas = alphas + self.alphas_grid = list(itertools.product(*self.alphas)) + self.endog = endog + self.exog = exog + self.cv_iterator = cv_iterator + self.cv_error = np.zeros( + shape=( + len( + self.alphas_grid, + ) + ) + ) + self.cv_std = np.zeros( + shape=( + len( + self.alphas_grid, + ) + ) + ) + self.alpha_cv = None + + def fit(self, **kwargs): + """ + Perform the cross-validation search over the alphas grid + + Parameters + ---------- + **kwargs + Keyword arguments passed to the ``fit`` method of the gam model. + + Returns + ------- + self : MultivariateGAMCVPath + instance with ``cv_error``, ``cv_std`` and ``alpha_cv`` set + """ + for i, alphas_i in enumerate(self.alphas_grid): + gam_cv = MultivariateGAMCV( + smoother=self.smoother, + alphas=alphas_i, + gam=self.gam, + cost=self.cost, + endog=self.endog, + exog=self.exog, + cv_iterator=self.cv_iterator, + ) + cv_err = gam_cv.fit(**kwargs) + self.cv_error[i] = cv_err.mean() + self.cv_std[i] = cv_err.std() + + self.alpha_cv = self.alphas_grid[np.argmin(self.cv_error)] + return self diff --git a/shared/package-files/e8/e83b45c9e4464254e67478ace520de72b9d9c80b283f248319b9325a2b3673ce/blob b/shared/package-files/e8/e83b45c9e4464254e67478ace520de72b9d9c80b283f248319b9325a2b3673ce/blob new file mode 100644 index 0000000000000000000000000000000000000000..03dc4796d5397f93dfb0b1ba5342e1354d85d3bc --- /dev/null +++ b/shared/package-files/e8/e83b45c9e4464254e67478ace520de72b9d9c80b283f248319b9325a2b3673ce/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor mean(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt); +TORCH_API at::Tensor & mean_out(at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, c10::optional dtype=c10::nullopt); +TORCH_API at::Tensor & mean_outf(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, c10::optional dtype, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/e8/e83d8bdd6c985e1b92a38cc20f6c8863a72bc450b79dbef56b340266d8358ca4/blob b/shared/package-files/e8/e83d8bdd6c985e1b92a38cc20f6c8863a72bc450b79dbef56b340266d8358ca4/blob new file mode 100644 index 0000000000000000000000000000000000000000..f8d9b80ec60841285ac03f2d80e3d72b773c712b --- /dev/null +++ b/shared/package-files/e8/e83d8bdd6c985e1b92a38cc20f6c8863a72bc450b79dbef56b340266d8358ca4/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API _cummax_helper { + using schema = void (const at::Tensor &, at::Tensor &, at::Tensor &, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_cummax_helper") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_cummax_helper(Tensor self, Tensor(a!) values, Tensor(b!) indices, int dim) -> ()") + static void call(const at::Tensor & self, at::Tensor & values, at::Tensor & indices, int64_t dim); + static void redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & values, at::Tensor & indices, int64_t dim); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e8/e83dda6442dc809ae9dd07ff1e2b00228c1cc319c2cc08827d37fbed836c6eb8/blob b/shared/package-files/e8/e83dda6442dc809ae9dd07ff1e2b00228c1cc319c2cc08827d37fbed836c6eb8/blob new file mode 100644 index 0000000000000000000000000000000000000000..0d1196b23e0b7a24513850116ee134193709619e --- /dev/null +++ b/shared/package-files/e8/e83dda6442dc809ae9dd07ff1e2b00228c1cc319c2cc08827d37fbed836c6eb8/blob @@ -0,0 +1,185 @@ +""" +Copyright (C) 2010 David Fong and Michael Saunders +Distributed under the same license as SciPy + +Testing Code for LSMR. + +03 Jun 2010: First version release with lsmr.py + +David Chin-lung Fong clfong@stanford.edu +Institute for Computational and Mathematical Engineering +Stanford University + +Michael Saunders saunders@stanford.edu +Systems Optimization Laboratory +Dept of MS&E, Stanford University. + +""" + +from numpy import array, arange, eye, zeros, ones, transpose, hstack +from numpy.linalg import norm +from numpy.testing import assert_allclose +import pytest +from scipy.sparse import coo_array +from scipy.sparse.linalg._interface import aslinearoperator +from scipy.sparse.linalg import lsmr +from .test_lsqr import G, b + + +class TestLSMR: + def setup_method(self): + self.n = 10 + self.m = 10 + + def assertCompatibleSystem(self, A, xtrue): + Afun = aslinearoperator(A) + b = Afun.matvec(xtrue) + x = lsmr(A, b)[0] + assert norm(x - xtrue) == pytest.approx(0, abs=1e-5) + + def testIdentityACase1(self): + A = eye(self.n) + xtrue = zeros((self.n, 1)) + self.assertCompatibleSystem(A, xtrue) + + def testIdentityACase2(self): + A = eye(self.n) + xtrue = ones((self.n,1)) + self.assertCompatibleSystem(A, xtrue) + + def testIdentityACase3(self): + A = eye(self.n) + xtrue = transpose(arange(self.n,0,-1)) + self.assertCompatibleSystem(A, xtrue) + + def testBidiagonalA(self): + A = lowerBidiagonalMatrix(20,self.n) + xtrue = transpose(arange(self.n,0,-1)) + self.assertCompatibleSystem(A,xtrue) + + def testScalarB(self): + A = array([[1.0, 2.0]]) + b = 3.0 + x = lsmr(A, b)[0] + assert norm(A.dot(x) - b) == pytest.approx(0) + + def testComplexX(self): + A = eye(self.n) + xtrue = transpose(arange(self.n, 0, -1) * (1 + 1j)) + self.assertCompatibleSystem(A, xtrue) + + def testComplexX0(self): + A = 4 * eye(self.n) + ones((self.n, self.n)) + xtrue = transpose(arange(self.n, 0, -1)) + b = aslinearoperator(A).matvec(xtrue) + x0 = zeros(self.n, dtype=complex) + x = lsmr(A, b, x0=x0)[0] + assert norm(x - xtrue) == pytest.approx(0, abs=1e-5) + + def testComplexA(self): + A = 4 * eye(self.n) + 1j * ones((self.n, self.n)) + xtrue = transpose(arange(self.n, 0, -1).astype(complex)) + self.assertCompatibleSystem(A, xtrue) + + def testComplexB(self): + A = 4 * eye(self.n) + ones((self.n, self.n)) + xtrue = transpose(arange(self.n, 0, -1) * (1 + 1j)) + b = aslinearoperator(A).matvec(xtrue) + x = lsmr(A, b)[0] + assert norm(x - xtrue) == pytest.approx(0, abs=1e-5) + + def testColumnB(self): + A = eye(self.n) + b = ones((self.n, 1)) + x = lsmr(A, b)[0] + assert norm(A.dot(x) - b.ravel()) == pytest.approx(0) + + def testInitialization(self): + # Test that the default setting is not modified + x_ref, _, itn_ref, normr_ref, *_ = lsmr(G, b) + assert_allclose(norm(b - G@x_ref), normr_ref, atol=1e-6) + + # Test passing zeros yields similar result + x0 = zeros(b.shape) + x = lsmr(G, b, x0=x0)[0] + assert_allclose(x, x_ref) + + # Test warm-start with single iteration + x0 = lsmr(G, b, maxiter=1)[0] + + x, _, itn, normr, *_ = lsmr(G, b, x0=x0) + assert_allclose(norm(b - G@x), normr, atol=1e-6) + + # NOTE(gh-12139): This doesn't always converge to the same value as + # ref because error estimates will be slightly different when calculated + # from zeros vs x0 as a result only compare norm and itn (not x). + + # x generally converges 1 iteration faster because it started at x0. + # itn == itn_ref means that lsmr(x0) took an extra iteration see above. + # -1 is technically possible but is rare (1 in 100000) so it's more + # likely to be an error elsewhere. + assert itn - itn_ref in (0, 1) + + # If an extra iteration is performed normr may be 0, while normr_ref + # may be much larger. + assert normr < normr_ref * (1 + 1e-6) + + +class TestLSMRReturns: + def setup_method(self): + self.n = 10 + self.A = lowerBidiagonalMatrix(20, self.n) + self.xtrue = transpose(arange(self.n, 0, -1)) + self.Afun = aslinearoperator(self.A) + self.b = self.Afun.matvec(self.xtrue) + self.x0 = ones(self.n) + self.x00 = self.x0.copy() + self.returnValues = lsmr(self.A, self.b) + self.returnValuesX0 = lsmr(self.A, self.b, x0=self.x0) + + def test_unchanged_x0(self): + x, istop, itn, normr, normar, normA, condA, normx = self.returnValuesX0 + assert_allclose(self.x00, self.x0) + + def testNormr(self): + x, istop, itn, normr, normar, normA, condA, normx = self.returnValues + assert norm(self.b - self.Afun.matvec(x)) == pytest.approx(normr) + + def testNormar(self): + x, istop, itn, normr, normar, normA, condA, normx = self.returnValues + assert (norm(self.Afun.rmatvec(self.b - self.Afun.matvec(x))) + == pytest.approx(normar)) + + def testNormx(self): + x, istop, itn, normr, normar, normA, condA, normx = self.returnValues + assert norm(x) == pytest.approx(normx) + + +def lowerBidiagonalMatrix(m, n): + # This is a simple example for testing LSMR. + # It uses the leading m*n submatrix from + # A = [ 1 + # 1 2 + # 2 3 + # 3 4 + # ... + # n ] + # suitably padded by zeros. + # + # 04 Jun 2010: First version for distribution with lsmr.py + if m <= n: + row = hstack((arange(m, dtype=int), + arange(1, m, dtype=int))) + col = hstack((arange(m, dtype=int), + arange(m-1, dtype=int))) + data = hstack((arange(1, m+1, dtype=float), + arange(1,m, dtype=float))) + return coo_array((data, (row, col)), shape=(m,n)) + else: + row = hstack((arange(n, dtype=int), + arange(1, n+1, dtype=int))) + col = hstack((arange(n, dtype=int), + arange(n, dtype=int))) + data = hstack((arange(1, n+1, dtype=float), + arange(1,n+1, dtype=float))) + return coo_array((data,(row, col)), shape=(m,n)) diff --git a/shared/package-files/e8/e8411cdce118a7e22e4a889d2fa9f0a5a1e0fbe1b19f36c02539858b3efb08d1/blob b/shared/package-files/e8/e8411cdce118a7e22e4a889d2fa9f0a5a1e0fbe1b19f36c02539858b3efb08d1/blob new file mode 100644 index 0000000000000000000000000000000000000000..cbef8c5175b1560de52a3c707098685cac6c35fa --- /dev/null +++ b/shared/package-files/e8/e8411cdce118a7e22e4a889d2fa9f0a5a1e0fbe1b19f36c02539858b3efb08d1/blob @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +"""Support for wildcard pattern matching in object inspection. + +Authors +------- +- Jörgen Stenarson +- Thomas Kluyver +""" + +#***************************************************************************** +# Copyright (C) 2005 Jörgen Stenarson +# +# Distributed under the terms of the BSD License. The full license is in +# the file COPYING, distributed as part of this software. +#***************************************************************************** + +import re +import types + +from IPython.utils.dir2 import dir2 + +def create_typestr2type_dicts(dont_include_in_type2typestr=["lambda"]): + """Return dictionaries mapping lower case typename (e.g. 'tuple') to type + objects from the types package, and vice versa.""" + typenamelist = [tname for tname in dir(types) if tname.endswith("Type")] + typestr2type, type2typestr = {}, {} + + for tname in typenamelist: + name = tname[:-4].lower() # Cut 'Type' off the end of the name + obj = getattr(types, tname) + typestr2type[name] = obj + if name not in dont_include_in_type2typestr: + type2typestr[obj] = name + return typestr2type, type2typestr + +typestr2type, type2typestr = create_typestr2type_dicts() + +def is_type(obj, typestr_or_type): + """is_type(obj, typestr_or_type) verifies if obj is of a certain type. It + can take strings or actual python types for the second argument, i.e. + 'tuple'<->TupleType. 'all' matches all types. + + TODO: Should be extended for choosing more than one type.""" + if typestr_or_type == "all": + return True + if type(typestr_or_type) == type: + test_type = typestr_or_type + else: + test_type = typestr2type.get(typestr_or_type, False) + if test_type: + return isinstance(obj, test_type) + return False + +def show_hidden(str, show_all=False): + """Return true for strings starting with single _ if show_all is true.""" + return show_all or str.startswith("__") or not str.startswith("_") + +def dict_dir(obj): + """Produce a dictionary of an object's attributes. Builds on dir2 by + checking that a getattr() call actually succeeds.""" + ns = {} + for key in dir2(obj): + # This seemingly unnecessary try/except is actually needed + # because there is code out there with metaclasses that + # create 'write only' attributes, where a getattr() call + # will fail even if the attribute appears listed in the + # object's dictionary. Properties can actually do the same + # thing. In particular, Traits use this pattern + try: + ns[key] = getattr(obj, key) + except AttributeError: + pass + return ns + +def filter_ns(ns, name_pattern="*", type_pattern="all", ignore_case=True, + show_all=True): + """Filter a namespace dictionary by name pattern and item type.""" + pattern = name_pattern.replace("*",".*").replace("?",".") + if ignore_case: + reg = re.compile(pattern+"$", re.I) + else: + reg = re.compile(pattern+"$") + + # Check each one matches regex; shouldn't be hidden; of correct type. + return dict((key,obj) for key, obj in ns.items() if reg.match(key) \ + and show_hidden(key, show_all) \ + and is_type(obj, type_pattern) ) + +def list_namespace(namespace, type_pattern, filter, ignore_case=False, show_all=False): + """Return dictionary of all objects in a namespace dictionary that match + type_pattern and filter.""" + pattern_list=filter.split(".") + if len(pattern_list) == 1: + return filter_ns(namespace, name_pattern=pattern_list[0], + type_pattern=type_pattern, + ignore_case=ignore_case, show_all=show_all) + else: + # This is where we can change if all objects should be searched or + # only modules. Just change the type_pattern to module to search only + # modules + filtered = filter_ns(namespace, name_pattern=pattern_list[0], + type_pattern="all", + ignore_case=ignore_case, show_all=show_all) + results = {} + for name, obj in filtered.items(): + ns = list_namespace(dict_dir(obj), type_pattern, + ".".join(pattern_list[1:]), + ignore_case=ignore_case, show_all=show_all) + for inner_name, inner_obj in ns.items(): + results["%s.%s"%(name,inner_name)] = inner_obj + return results diff --git a/shared/package-files/e8/e841ab4e3a557ebad1498959185cf6052184aa9cb2ca8714a665d87513942a30/blob b/shared/package-files/e8/e841ab4e3a557ebad1498959185cf6052184aa9cb2ca8714a665d87513942a30/blob new file mode 100644 index 0000000000000000000000000000000000000000..2067fdbdfb028ace5aa01c2323c3ca16f44b02c1 --- /dev/null +++ b/shared/package-files/e8/e841ab4e3a557ebad1498959185cf6052184aa9cb2ca8714a665d87513942a30/blob @@ -0,0 +1,206 @@ +# mypy: ignore-errors + +# noqa: F401, E501 +# This is an auto-generated file. Please do not modify it by hand. +# To re-generate, run: +# cd ~/pytorch && python +# torchgen/fuse_attention_patterns/gen_attention_patterns.py + +import torch +import torch._inductor + +aten = torch.ops.aten +prims = torch.ops.prims + +from torch._inductor.pattern_matcher import ( + Arg, + CallFunction, + CallFunctionVarArgs, + CallMethod, + CallMethodVarArgs, + CallModule, + CallModuleVarArgs, + ExclusiveKeywordArg, + Ignored, + KeywordArg, + ListOf, + MultiOutputPattern, + PatternExpr, + RepeatedExpr, + _TargetArgsExpr, + _TargetExpr, + _TargetExprVarArgs, +) +rand_default = CallFunction(aten.rand.default, Ignored(), dtype=Ignored(), device=Ignored(), pin_memory=False) +gt_Scalar = CallFunction(aten.gt.Scalar, rand_default, KeywordArg('dropout_p'), _users=2) +expand_default = CallFunction(aten.expand.default, KeywordArg('query'), Ignored()) +view_default = CallFunction(aten.view.default, expand_default, Ignored(), _users=2) +permute_default = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default, Ignored()) +view_default_1 = CallFunction(aten.view.default, expand_default_1, Ignored(), _users=2) +bmm_default = CallFunction(aten.bmm.default, view_default, view_default_1) +view_default_2 = CallFunction(aten.view.default, bmm_default, Ignored()) +div_Tensor = CallFunction(aten.div.Tensor, view_default_2, Ignored()) +add_Tensor = CallFunction(aten.add.Tensor, div_Tensor, KeywordArg('attn_mask'), _users=2) +amax_default = CallFunction(aten.amax.default, add_Tensor, Ignored(), True) +sub_Tensor = CallFunction(aten.sub.Tensor, add_Tensor, amax_default) +exp_default = CallFunction(aten.exp.default, sub_Tensor, _users=2) +sum_dim_IntList = CallFunction(aten.sum.dim_IntList, exp_default, Ignored(), True) +div_Tensor_1 = CallFunction(aten.div.Tensor, exp_default, sum_dim_IntList, _users=2) +mul_Tensor = CallFunction(aten.mul.Tensor, gt_Scalar, div_Tensor_1) +mul_Tensor_1 = CallFunction(aten.mul.Tensor, mul_Tensor, Ignored()) +expand_default_2 = CallFunction(aten.expand.default, mul_Tensor_1, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored(), _users=2) +expand_default_3 = CallFunction(aten.expand.default, KeywordArg('value'), Ignored()) +view_default_4 = CallFunction(aten.view.default, expand_default_3, Ignored(), _users=2) +bmm_default_1 = CallFunction(aten.bmm.default, view_default_3, view_default_4) +view_default_5 = CallFunction(aten.view.default, bmm_default_1, Ignored()) +view_default_6 = CallFunction(aten.view.default, KeywordArg('tangents_1'), Ignored(), _users=2) +permute_default_1 = CallFunction(aten.permute.default, view_default_4, Ignored()) +bmm_default_2 = CallFunction(aten.bmm.default, view_default_6, permute_default_1) +view_default_7 = CallFunction(aten.view.default, bmm_default_2, Ignored()) +convert_element_type_default = CallFunction(prims.convert_element_type.default, gt_Scalar, Ignored()) +mul_Tensor_2 = CallFunction(aten.mul.Tensor, convert_element_type_default, Ignored()) +mul_Tensor_3 = CallFunction(aten.mul.Tensor, view_default_7, mul_Tensor_2) +clone_default = CallFunction(aten.clone.default, mul_Tensor_3, memory_format=torch.contiguous_format) +alias_default = CallFunction(aten.alias.default, div_Tensor_1) +alias_default_1 = CallFunction(aten.alias.default, alias_default) +alias_default_2 = CallFunction(aten.alias.default, alias_default_1) +alias_default_3 = CallFunction(aten.alias.default, alias_default_2, _users=2) +mul_Tensor_4 = CallFunction(aten.mul.Tensor, clone_default, alias_default_3, _users=2) +sum_dim_IntList_1 = CallFunction(aten.sum.dim_IntList, mul_Tensor_4, Ignored(), True) +mul_Tensor_5 = CallFunction(aten.mul.Tensor, alias_default_3, sum_dim_IntList_1) +sub_Tensor_1 = CallFunction(aten.sub.Tensor, mul_Tensor_4, mul_Tensor_5) +div_Tensor_2 = CallFunction(aten.div.Tensor, sub_Tensor_1, Ignored()) +view_default_8 = CallFunction(aten.view.default, div_Tensor_2, Ignored(), _users=2) +permute_default_2 = CallFunction(aten.permute.default, view_default_1, Ignored()) +bmm_default_3 = CallFunction(aten.bmm.default, view_default_8, permute_default_2) +view_default_9 = CallFunction(aten.view.default, bmm_default_3, Ignored()) +permute_default_3 = CallFunction(aten.permute.default, view_default, Ignored()) +bmm_default_4 = CallFunction(aten.bmm.default, permute_default_3, view_default_8) +view_default_10 = CallFunction(aten.view.default, bmm_default_4, Ignored()) +permute_default_4 = CallFunction(aten.permute.default, view_default_10, Ignored()) +permute_default_5 = CallFunction(aten.permute.default, view_default_3, Ignored()) +bmm_default_5 = CallFunction(aten.bmm.default, permute_default_5, view_default_6) +view_default_11 = CallFunction(aten.view.default, bmm_default_5, Ignored()) +_sfdp_pattern_6_training = MultiOutputPattern([view_default_5, + view_default_9, + permute_default_4, + view_default_11, + None, + None +]) + + +expand_default = CallFunction(aten.expand.default, KeywordArg('query'), Ignored()) +view_default = CallFunction(aten.view.default, expand_default, Ignored()) +permute_default = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default, Ignored()) +view_default_1 = CallFunction(aten.view.default, expand_default_1, Ignored()) +bmm_default = CallFunction(aten.bmm.default, view_default, view_default_1) +view_default_2 = CallFunction(aten.view.default, bmm_default, Ignored()) +div_Tensor = CallFunction(aten.div.Tensor, view_default_2, Ignored()) +add_Tensor = CallFunction(aten.add.Tensor, div_Tensor, KeywordArg('attn_mask'), _users=2) +amax_default = CallFunction(aten.amax.default, add_Tensor, Ignored(), True) +sub_Tensor = CallFunction(aten.sub.Tensor, add_Tensor, amax_default) +exp_default = CallFunction(aten.exp.default, sub_Tensor, _users=2) +sum_dim_IntList = CallFunction(aten.sum.dim_IntList, exp_default, Ignored(), True) +div_Tensor_1 = CallFunction(aten.div.Tensor, exp_default, sum_dim_IntList) +clone_default = CallFunction(aten.clone.default, div_Tensor_1) +expand_default_2 = CallFunction(aten.expand.default, clone_default, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored()) +expand_default_3 = CallFunction(aten.expand.default, KeywordArg('value'), Ignored()) +view_default_4 = CallFunction(aten.view.default, expand_default_3, Ignored()) +bmm_default_1 = CallFunction(aten.bmm.default, view_default_3, view_default_4) +_sfdp_pattern_6_inference = CallFunction(aten.view.default, bmm_default_1, Ignored()) + + +rand_default = CallFunction(aten.rand.default, Ignored(), dtype=Ignored(), device=Ignored(), pin_memory=False) +gt_Scalar = CallFunction(aten.gt.Scalar, rand_default, KeywordArg('dropout_p'), _users=2) +expand_default = CallFunction(aten.expand.default, KeywordArg('query'), Ignored()) +view_default = CallFunction(aten.view.default, expand_default, Ignored(), _users=2) +permute_default = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default, Ignored()) +view_default_1 = CallFunction(aten.view.default, expand_default_1, Ignored(), _users=2) +bmm_default = CallFunction(aten.bmm.default, view_default, view_default_1) +view_default_2 = CallFunction(aten.view.default, bmm_default, Ignored()) +div_Tensor = CallFunction(aten.div.Tensor, view_default_2, Ignored()) +add_Tensor = CallFunction(aten.add.Tensor, div_Tensor, KeywordArg('attn_mask')) +convert_element_type_default = CallFunction(prims.convert_element_type.default, add_Tensor, Ignored(), _users=2) +amax_default = CallFunction(aten.amax.default, convert_element_type_default, Ignored(), True) +sub_Tensor = CallFunction(aten.sub.Tensor, convert_element_type_default, amax_default) +exp_default = CallFunction(aten.exp.default, sub_Tensor, _users=2) +sum_dim_IntList = CallFunction(aten.sum.dim_IntList, exp_default, Ignored(), True) +div_Tensor_1 = CallFunction(aten.div.Tensor, exp_default, sum_dim_IntList) +convert_element_type_default_1 = CallFunction(prims.convert_element_type.default, div_Tensor_1, Ignored(), _users=2) +mul_Tensor = CallFunction(aten.mul.Tensor, gt_Scalar, convert_element_type_default_1) +mul_Tensor_1 = CallFunction(aten.mul.Tensor, mul_Tensor, Ignored()) +expand_default_2 = CallFunction(aten.expand.default, mul_Tensor_1, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored(), _users=2) +expand_default_3 = CallFunction(aten.expand.default, KeywordArg('value'), Ignored()) +view_default_4 = CallFunction(aten.view.default, expand_default_3, Ignored(), _users=2) +bmm_default_1 = CallFunction(aten.bmm.default, view_default_3, view_default_4) +view_default_5 = CallFunction(aten.view.default, bmm_default_1, Ignored()) +view_default_6 = CallFunction(aten.view.default, KeywordArg('tangents_1'), Ignored(), _users=2) +permute_default_1 = CallFunction(aten.permute.default, view_default_4, Ignored()) +bmm_default_2 = CallFunction(aten.bmm.default, view_default_6, permute_default_1) +view_default_7 = CallFunction(aten.view.default, bmm_default_2, Ignored()) +convert_element_type_default_2 = CallFunction(prims.convert_element_type.default, gt_Scalar, Ignored()) +mul_Tensor_2 = CallFunction(aten.mul.Tensor, convert_element_type_default_2, Ignored()) +mul_Tensor_3 = CallFunction(aten.mul.Tensor, view_default_7, mul_Tensor_2) +clone_default = CallFunction(aten.clone.default, mul_Tensor_3, memory_format=torch.contiguous_format) +convert_element_type_default_3 = CallFunction(prims.convert_element_type.default, clone_default, Ignored()) +alias_default = CallFunction(aten.alias.default, convert_element_type_default_1) +alias_default_1 = CallFunction(aten.alias.default, alias_default) +alias_default_2 = CallFunction(aten.alias.default, alias_default_1) +alias_default_3 = CallFunction(aten.alias.default, alias_default_2) +convert_element_type_default_4 = CallFunction(prims.convert_element_type.default, alias_default_3, Ignored(), _users=2) +mul_Tensor_4 = CallFunction(aten.mul.Tensor, convert_element_type_default_3, convert_element_type_default_4, _users=2) +sum_dim_IntList_1 = CallFunction(aten.sum.dim_IntList, mul_Tensor_4, Ignored(), True) +mul_Tensor_5 = CallFunction(aten.mul.Tensor, convert_element_type_default_4, sum_dim_IntList_1) +sub_Tensor_1 = CallFunction(aten.sub.Tensor, mul_Tensor_4, mul_Tensor_5) +convert_element_type_default_5 = CallFunction(prims.convert_element_type.default, sub_Tensor_1, Ignored()) +div_Tensor_2 = CallFunction(aten.div.Tensor, convert_element_type_default_5, Ignored()) +view_default_8 = CallFunction(aten.view.default, div_Tensor_2, Ignored(), _users=2) +permute_default_2 = CallFunction(aten.permute.default, view_default_1, Ignored()) +bmm_default_3 = CallFunction(aten.bmm.default, view_default_8, permute_default_2) +view_default_9 = CallFunction(aten.view.default, bmm_default_3, Ignored()) +permute_default_3 = CallFunction(aten.permute.default, view_default, Ignored()) +bmm_default_4 = CallFunction(aten.bmm.default, permute_default_3, view_default_8) +view_default_10 = CallFunction(aten.view.default, bmm_default_4, Ignored()) +permute_default_4 = CallFunction(aten.permute.default, view_default_10, Ignored()) +permute_default_5 = CallFunction(aten.permute.default, view_default_3, Ignored()) +bmm_default_5 = CallFunction(aten.bmm.default, permute_default_5, view_default_6) +view_default_11 = CallFunction(aten.view.default, bmm_default_5, Ignored()) +_sfdp_pattern_6_half_training = MultiOutputPattern([view_default_5, + view_default_9, + permute_default_4, + view_default_11, + None, + None +]) + + +expand_default = CallFunction(aten.expand.default, KeywordArg('query'), Ignored()) +view_default = CallFunction(aten.view.default, expand_default, Ignored()) +permute_default = CallFunction(aten.permute.default, KeywordArg('key'), Ignored()) +expand_default_1 = CallFunction(aten.expand.default, permute_default, Ignored()) +view_default_1 = CallFunction(aten.view.default, expand_default_1, Ignored()) +bmm_default = CallFunction(aten.bmm.default, view_default, view_default_1) +view_default_2 = CallFunction(aten.view.default, bmm_default, Ignored()) +div_Tensor = CallFunction(aten.div.Tensor, view_default_2, Ignored()) +add_Tensor = CallFunction(aten.add.Tensor, div_Tensor, KeywordArg('attn_mask')) +convert_element_type_default = CallFunction(prims.convert_element_type.default, add_Tensor, Ignored(), _users=2) +amax_default = CallFunction(aten.amax.default, convert_element_type_default, Ignored(), True) +sub_Tensor = CallFunction(aten.sub.Tensor, convert_element_type_default, amax_default) +exp_default = CallFunction(aten.exp.default, sub_Tensor, _users=2) +sum_dim_IntList = CallFunction(aten.sum.dim_IntList, exp_default, Ignored(), True) +div_Tensor_1 = CallFunction(aten.div.Tensor, exp_default, sum_dim_IntList) +convert_element_type_default_1 = CallFunction(prims.convert_element_type.default, div_Tensor_1, Ignored()) +clone_default = CallFunction(aten.clone.default, convert_element_type_default_1) +expand_default_2 = CallFunction(aten.expand.default, clone_default, Ignored()) +view_default_3 = CallFunction(aten.view.default, expand_default_2, Ignored()) +expand_default_3 = CallFunction(aten.expand.default, KeywordArg('value'), Ignored()) +view_default_4 = CallFunction(aten.view.default, expand_default_3, Ignored()) +bmm_default_1 = CallFunction(aten.bmm.default, view_default_3, view_default_4) +_sfdp_pattern_6_half_inference = CallFunction(aten.view.default, bmm_default_1, Ignored()) diff --git a/shared/package-files/e8/e843f6435ade7369dc3ebd9ff4a9e271223af1a0b955cbdbc704a533c582f958/blob b/shared/package-files/e8/e843f6435ade7369dc3ebd9ff4a9e271223af1a0b955cbdbc704a533c582f958/blob new file mode 100644 index 0000000000000000000000000000000000000000..c33a8653d8a561ac43aef1e16ca2d5eb4cbce154 --- /dev/null +++ b/shared/package-files/e8/e843f6435ade7369dc3ebd9ff4a9e271223af1a0b955cbdbc704a533c582f958/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor special_bessel_y0(const at::Tensor & self); +TORCH_API at::Tensor & special_bessel_y0_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & special_bessel_y0_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/e8/e84514c2e33210c163840c4be67168ec7f9c87e78de243bdc7a2c04055b32033/blob b/shared/package-files/e8/e84514c2e33210c163840c4be67168ec7f9c87e78de243bdc7a2c04055b32033/blob new file mode 100644 index 0000000000000000000000000000000000000000..acd7ab855a504c2444aa0d25bb198e38512df456 --- /dev/null +++ b/shared/package-files/e8/e84514c2e33210c163840c4be67168ec7f9c87e78de243bdc7a2c04055b32033/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e84514c2e33210c163840c4be67168ec7f9c87e78de243bdc7a2c04055b32033 +size 828890 diff --git a/shared/package-files/e8/e84663e68207f710f8f49d970931685a13ac008694ec96b9ff430017fa46999a/blob b/shared/package-files/e8/e84663e68207f710f8f49d970931685a13ac008694ec96b9ff430017fa46999a/blob new file mode 100644 index 0000000000000000000000000000000000000000..946b483829b9355f1345d4dc1854a638a5636365 --- /dev/null +++ b/shared/package-files/e8/e84663e68207f710f8f49d970931685a13ac008694ec96b9ff430017fa46999a/blob @@ -0,0 +1,6972 @@ +# +# core.py +# +from __future__ import annotations + +import collections.abc +from collections import deque +import os +import typing +from typing import ( + Any, + Callable, + Generator, + NamedTuple, + Sequence, + TextIO, + Union, + cast, +) +from abc import ABC, abstractmethod +from enum import Enum +import string +import copy +import warnings +import re +import sys +from collections.abc import Iterable +import traceback +import types +from operator import itemgetter +from functools import wraps +from threading import RLock +from pathlib import Path + +from .warnings import PyparsingDeprecationWarning, PyparsingDiagnosticWarning +from .util import ( + _FifoCache, + _UnboundedCache, + __config_flags, + _collapse_string_to_ranges, + _convert_escaped_numerics_to_char, + _escape_regex_range_chars, + _flatten, + LRUMemo as _LRUMemo, + UnboundedMemo as _UnboundedMemo, + deprecate_argument, + replaced_by_pep8, +) +from .exceptions import * +from .actions import * +from .results import ParseResults, _ParseResultsWithOffset +from .unicode import pyparsing_unicode + +_MAX_INT = sys.maxsize +str_type: tuple[type, ...] = (str, bytes) + +# +# Copyright (c) 2003-2022 Paul T. McGuire +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +from functools import cached_property + + +class __compat__(__config_flags): + """ + A cross-version compatibility configuration for pyparsing features that will be + released in a future version. By setting values in this configuration to True, + those features can be enabled in prior versions for compatibility development + and testing. + + - ``collect_all_And_tokens`` - flag to enable fix for Issue #63 that fixes erroneous grouping + of results names when an :class:`And` expression is nested within an :class:`Or` or :class:`MatchFirst`; + maintained for compatibility, but setting to ``False`` no longer restores pre-2.3.1 + behavior + """ + + _type_desc = "compatibility" + + collect_all_And_tokens = True + + _all_names = [__ for __ in locals() if not __.startswith("_")] + _fixed_names = """ + collect_all_And_tokens + """.split() + + +class __diag__(__config_flags): + _type_desc = "diagnostic" + + warn_multiple_tokens_in_named_alternation = False + warn_ungrouped_named_tokens_in_collection = False + warn_name_set_on_empty_Forward = False + warn_on_parse_using_empty_Forward = False + warn_on_assignment_to_Forward = False + warn_on_multiple_string_args_to_oneof = False + warn_on_match_first_with_lshift_operator = False + enable_debug_on_named_expressions = False + + _all_names = [__ for __ in locals() if not __.startswith("_")] + _warning_names = [name for name in _all_names if name.startswith("warn")] + _debug_names = [name for name in _all_names if name.startswith("enable_debug")] + + @classmethod + def enable_all_warnings(cls) -> None: + for name in cls._warning_names: + cls.enable(name) + + +class Diagnostics(Enum): + """ + Diagnostic configuration (all default to disabled) + + - ``warn_multiple_tokens_in_named_alternation`` - flag to enable warnings when a results + name is defined on a :class:`MatchFirst` or :class:`Or` expression with one or more :class:`And` subexpressions + - ``warn_ungrouped_named_tokens_in_collection`` - flag to enable warnings when a results + name is defined on a containing expression with ungrouped subexpressions that also + have results names + - ``warn_name_set_on_empty_Forward`` - flag to enable warnings when a :class:`Forward` is defined + with a results name, but has no contents defined + - ``warn_on_parse_using_empty_Forward`` - flag to enable warnings when a :class:`Forward` is + defined in a grammar but has never had an expression attached to it + - ``warn_on_assignment_to_Forward`` - flag to enable warnings when a :class:`Forward` is defined + but is overwritten by assigning using ``'='`` instead of ``'<<='`` or ``'<<'`` + - ``warn_on_multiple_string_args_to_oneof`` - flag to enable warnings when :class:`one_of` is + incorrectly called with multiple str arguments + - ``enable_debug_on_named_expressions`` - flag to auto-enable debug on all subsequent + calls to :class:`ParserElement.set_name` + + Diagnostics are enabled/disabled by calling :class:`enable_diag` and :class:`disable_diag`. + All warnings can be enabled by calling :class:`enable_all_warnings`. + """ + + warn_multiple_tokens_in_named_alternation = 0 + warn_ungrouped_named_tokens_in_collection = 1 + warn_name_set_on_empty_Forward = 2 + warn_on_parse_using_empty_Forward = 3 + warn_on_assignment_to_Forward = 4 + warn_on_multiple_string_args_to_oneof = 5 + warn_on_match_first_with_lshift_operator = 6 + enable_debug_on_named_expressions = 7 + + +def enable_diag(diag_enum: Diagnostics) -> None: + """ + Enable a global pyparsing diagnostic flag (see :class:`Diagnostics`). + """ + __diag__.enable(diag_enum.name) + + +def disable_diag(diag_enum: Diagnostics) -> None: + """ + Disable a global pyparsing diagnostic flag (see :class:`Diagnostics`). + """ + __diag__.disable(diag_enum.name) + + +def enable_all_warnings() -> None: + """ + Enable all global pyparsing diagnostic warnings (see :class:`Diagnostics`). + """ + __diag__.enable_all_warnings() + + +# hide abstract class +del __config_flags + + +def _should_enable_warnings( + cmd_line_warn_options: typing.Iterable[str], warn_env_var: typing.Optional[str] +) -> bool: + enable = bool(warn_env_var) + for warn_opt in cmd_line_warn_options: + w_action, w_message, w_category, w_module, w_line = (warn_opt + "::::").split( + ":" + )[:5] + if not w_action.lower().startswith("i") and ( + not (w_message or w_category or w_module) or w_module == "pyparsing" + ): + enable = True + elif w_action.lower().startswith("i") and w_module in ("pyparsing", ""): + enable = False + return enable + + +if _should_enable_warnings( + sys.warnoptions, os.environ.get("PYPARSINGENABLEALLWARNINGS") +): + enable_all_warnings() + + +# build list of single arg builtins, that can be used as parse actions +# fmt: off +_single_arg_builtins = { + sum, len, sorted, reversed, list, tuple, set, any, all, min, max +} +# fmt: on + +_generatorType = types.GeneratorType +ParseImplReturnType = tuple[int, Any] +PostParseReturnType = Union[ParseResults, Sequence[ParseResults]] + +ParseCondition = Union[ + Callable[[], bool], + Callable[[ParseResults], bool], + Callable[[int, ParseResults], bool], + Callable[[str, int, ParseResults], bool], +] +ParseFailAction = Callable[[str, int, "ParserElement", Exception], None] +DebugStartAction = Callable[[str, int, "ParserElement", bool], None] +DebugSuccessAction = Callable[ + [str, int, int, "ParserElement", ParseResults, bool], None +] +DebugExceptionAction = Callable[[str, int, "ParserElement", Exception, bool], None] + + +alphas: str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" +identchars: str = pyparsing_unicode.Latin1.identchars +identbodychars: str = pyparsing_unicode.Latin1.identbodychars +nums: str = "0123456789" +hexnums: str = "0123456789ABCDEFabcdef" +alphanums: str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" +printables: str = ( + '!"' + "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" +) + + +class _ParseActionIndexError(Exception): + """ + Internal wrapper around IndexError so that IndexErrors raised inside + parse actions aren't misinterpreted as IndexErrors raised inside + ParserElement parseImpl methods. + """ + + def __init__(self, msg: str, exc: BaseException) -> None: + self.msg: str = msg + self.exc: BaseException = exc + + +_trim_arity_call_line: traceback.StackSummary = None # type: ignore[assignment] +pa_call_line_synth = () + + +def _trim_arity(func, max_limit=3): + """decorator to trim function calls to match the arity of the target""" + global _trim_arity_call_line, pa_call_line_synth + + if func in _single_arg_builtins: + return lambda s, l, t: func(t) + + limit = 0 + found_arity = False + + # synthesize what would be returned by traceback.extract_stack at the call to + # user's parse action 'func', so that we don't incur call penalty at parse time + + # fmt: off + LINE_DIFF = 9 + # IF ANY CODE CHANGES, EVEN JUST COMMENTS OR BLANK LINES, BETWEEN THE NEXT LINE AND + # THE CALL TO FUNC INSIDE WRAPPER, LINE_DIFF MUST BE MODIFIED!!!! + _trim_arity_call_line = _trim_arity_call_line or traceback.extract_stack(limit=2)[-1] + pa_call_line_synth = pa_call_line_synth or (_trim_arity_call_line[0], _trim_arity_call_line[1] + LINE_DIFF) + + def wrapper(*args): + nonlocal found_arity, limit + if found_arity: + return func(*args[limit:]) + while 1: + try: + ret = func(*args[limit:]) + found_arity = True + return ret + except TypeError as te: + # re-raise TypeErrors if they did not come from our arity testing + if found_arity: + raise + else: + tb = te.__traceback__ + frames = traceback.extract_tb(tb, limit=2) + frame_summary = frames[-1] + trim_arity_type_error = ( + [frame_summary[:2]][-1][:2] == pa_call_line_synth + ) + del tb + + if trim_arity_type_error: + if limit < max_limit: + limit += 1 + continue + + raise + except IndexError as ie: + # wrap IndexErrors inside a _ParseActionIndexError + raise _ParseActionIndexError( + "IndexError raised in parse action", ie + ).with_traceback(None) + # fmt: on + + # copy func name to wrapper for sensible debug output + # (can't use functools.wraps, since that messes with function signature) + func_name = getattr(func, "__name__", getattr(func, "__class__").__name__) + wrapper.__name__ = func_name + wrapper.__doc__ = func.__doc__ + + return wrapper + + +def condition_as_parse_action( + fn: ParseCondition, message: typing.Optional[str] = None, fatal: bool = False +) -> ParseAction: + """ + Function to convert a simple predicate function that returns ``True`` or ``False`` + into a parse action. Can be used in places when a parse action is required + and :meth:`ParserElement.add_condition` cannot be used (such as when adding a condition + to an operator level in :class:`infix_notation`). + + Optional keyword arguments: + + :param message: define a custom message to be used in the raised exception + :param fatal: if ``True``, will raise :class:`ParseFatalException` + to stop parsing immediately; + otherwise will raise :class:`ParseException` + + """ + msg = message if message is not None else "failed user-defined condition" + exc_type = ParseFatalException if fatal else ParseException + fn = _trim_arity(fn) + + @wraps(fn) + def pa(s, l, t): + if not bool(fn(s, l, t)): + raise exc_type(s, l, msg) + + return pa + + +def _default_start_debug_action( + instring: str, loc: int, expr: ParserElement, cache_hit: bool = False +): + cache_hit_str = "*" if cache_hit else "" + print( + ( + f"{cache_hit_str}Match {expr} at loc {loc}({lineno(loc, instring)},{col(loc, instring)})\n" + f" {line(loc, instring)}\n" + f" {'^':>{col(loc, instring)}}" + ) + ) + + +def _default_success_debug_action( + instring: str, + startloc: int, + endloc: int, + expr: ParserElement, + toks: ParseResults, + cache_hit: bool = False, +): + cache_hit_str = "*" if cache_hit else "" + print(f"{cache_hit_str}Matched {expr} -> {toks.as_list()}") + + +def _default_exception_debug_action( + instring: str, + loc: int, + expr: ParserElement, + exc: Exception, + cache_hit: bool = False, +): + cache_hit_str = "*" if cache_hit else "" + print(f"{cache_hit_str}Match {expr} failed, {type(exc).__name__} raised: {exc}") + + +def null_debug_action(*args): + """'Do-nothing' debug action, to suppress debugging output during parsing.""" + + +class ParserElement(ABC): + """Abstract base level parser element class.""" + + DEFAULT_WHITE_CHARS: str = " \n\t\r" + verbose_stacktrace: bool = False + _literalStringClass: type = None # type: ignore[assignment] + + @staticmethod + def set_default_whitespace_chars(chars: str) -> None: + r""" + Overrides the default whitespace chars + + Example: + + .. doctest:: + + # default whitespace chars are space, and newline + >>> Word(alphas)[1, ...].parse_string("abc def\nghi jkl") + ParseResults(['abc', 'def', 'ghi', 'jkl'], {}) + + # change to just treat newline as significant + >>> ParserElement.set_default_whitespace_chars(" \t") + >>> Word(alphas)[1, ...].parse_string("abc def\nghi jkl") + ParseResults(['abc', 'def'], {}) + + # Reset to default + >>> ParserElement.set_default_whitespace_chars(" \n\t\r") + """ + ParserElement.DEFAULT_WHITE_CHARS = chars + + # update whitespace all parse expressions defined in this module + for expr in _builtin_exprs: + if expr.copyDefaultWhiteChars: + expr.whiteChars = set(chars) + + @staticmethod + def inline_literals_using(cls: type) -> None: + """ + Set class to be used for inclusion of string literals into a parser. + + Example: + + .. doctest:: + :options: +NORMALIZE_WHITESPACE + + # default literal class used is Literal + >>> integer = Word(nums) + >>> date_str = ( + ... integer("year") + '/' + ... + integer("month") + '/' + ... + integer("day") + ... ) + + >>> date_str.parse_string("1999/12/31") + ParseResults(['1999', '/', '12', '/', '31'], + {'year': '1999', 'month': '12', 'day': '31'}) + + # change to Suppress + >>> ParserElement.inline_literals_using(Suppress) + >>> date_str = ( + ... integer("year") + '/' + ... + integer("month") + '/' + ... + integer("day") + ... ) + + >>> date_str.parse_string("1999/12/31") + ParseResults(['1999', '12', '31'], + {'year': '1999', 'month': '12', 'day': '31'}) + + # Reset + >>> ParserElement.inline_literals_using(Literal) + """ + ParserElement._literalStringClass = cls + + @classmethod + def using_each(cls, seq, **class_kwargs): + """ + Yields a sequence of ``class(obj, **class_kwargs)`` for obj in seq. + + Example: + + .. testcode:: + + LPAR, RPAR, LBRACE, RBRACE, SEMI = Suppress.using_each("(){};") + + .. versionadded:: 3.1.0 + """ + yield from (cls(obj, **class_kwargs) for obj in seq) + + class DebugActions(NamedTuple): + debug_try: typing.Optional[DebugStartAction] + debug_match: typing.Optional[DebugSuccessAction] + debug_fail: typing.Optional[DebugExceptionAction] + + def __init__(self, savelist: bool = False) -> None: + self.parseAction: list[ParseAction] = list() + self.failAction: typing.Optional[ParseFailAction] = None + self.customName: str = None # type: ignore[assignment] + self._defaultName: typing.Optional[str] = None + self.resultsName: str = None # type: ignore[assignment] + self.saveAsList: bool = savelist + self.skipWhitespace: bool = True + self.whiteChars: set[str] = set(ParserElement.DEFAULT_WHITE_CHARS) + self.copyDefaultWhiteChars: bool = True + # used when checking for left-recursion + self._may_return_empty: bool = False + self.keepTabs: bool = False + self.ignoreExprs: list[ParserElement] = list() + self.debug: bool = False + self.streamlined: bool = False + # optimize exception handling for subclasses that don't advance parse index + self.mayIndexError: bool = True + self.errmsg: Union[str, None] = "" + # mark results names as modal (report only last) or cumulative (list all) + self.modalResults: bool = True + # custom debug actions + self.debugActions = self.DebugActions(None, None, None) + # avoid redundant calls to preParse + self.callPreparse: bool = True + self.callDuringTry: bool = False + self.suppress_warnings_: list[Diagnostics] = [] + self.show_in_diagram: bool = True + + @property + def mayReturnEmpty(self) -> bool: + """ + .. deprecated:: 3.3.0 + use _may_return_empty instead. + """ + return self._may_return_empty + + @mayReturnEmpty.setter + def mayReturnEmpty(self, value) -> None: + """ + .. deprecated:: 3.3.0 + use _may_return_empty instead. + """ + self._may_return_empty = value + + def suppress_warning(self, warning_type: Diagnostics) -> ParserElement: + """ + Suppress warnings emitted for a particular diagnostic on this expression. + + Example: + + .. doctest:: + + >>> label = pp.Word(pp.alphas) + + # Normally using an empty Forward in a grammar + # would print a warning, but we can suppress that + >>> base = pp.Forward().suppress_warning( + ... pp.Diagnostics.warn_on_parse_using_empty_Forward) + + >>> grammar = base | label + >>> print(grammar.parse_string("x")) + ['x'] + """ + self.suppress_warnings_.append(warning_type) + return self + + def visit_all(self): + """General-purpose method to yield all expressions and sub-expressions + in a grammar. Typically just for internal use. + """ + to_visit = deque([self]) + seen = set() + while to_visit: + cur = to_visit.popleft() + + # guard against looping forever through recursive grammars + if cur in seen: + continue + seen.add(cur) + + to_visit.extend(cur.recurse()) + yield cur + + def copy(self) -> ParserElement: + """ + Make a copy of this :class:`ParserElement`. Useful for defining + different parse actions for the same parsing pattern, using copies of + the original parse element. + + Example: + + .. testcode:: + + integer = Word(nums).set_parse_action( + lambda toks: int(toks[0])) + integerK = integer.copy().add_parse_action( + lambda toks: toks[0] * 1024) + Suppress("K") + integerM = integer.copy().add_parse_action( + lambda toks: toks[0] * 1024 * 1024) + Suppress("M") + + print( + (integerK | integerM | integer)[1, ...].parse_string( + "5K 100 640K 256M") + ) + + prints: + + .. testoutput:: + + [5120, 100, 655360, 268435456] + + Equivalent form of ``expr.copy()`` is just ``expr()``: + + .. testcode:: + + integerM = integer().add_parse_action( + lambda toks: toks[0] * 1024 * 1024) + Suppress("M") + """ + cpy = copy.copy(self) + cpy.parseAction = self.parseAction[:] + cpy.ignoreExprs = self.ignoreExprs[:] + if self.copyDefaultWhiteChars: + cpy.whiteChars = set(ParserElement.DEFAULT_WHITE_CHARS) + return cpy + + def set_results_name( + self, name: str, list_all_matches: bool = False, **kwargs + ) -> ParserElement: + """ + Define name for referencing matching tokens as a nested attribute + of the returned parse results. + + Normally, results names are assigned as you would assign keys in a dict: + any existing value is overwritten by later values. If it is necessary to + keep all values captured for a particular results name, call ``set_results_name`` + with ``list_all_matches`` = True. + + NOTE: ``set_results_name`` returns a *copy* of the original :class:`ParserElement` object; + this is so that the client can define a basic element, such as an + integer, and reference it in multiple places with different names. + + You can also set results names using the abbreviated syntax, + ``expr("name")`` in place of ``expr.set_results_name("name")`` + - see :meth:`__call__`. If ``list_all_matches`` is required, use + ``expr("name*")``. + + Example: + + .. testcode:: + + integer = Word(nums) + date_str = (integer.set_results_name("year") + '/' + + integer.set_results_name("month") + '/' + + integer.set_results_name("day")) + + # equivalent form: + date_str = integer("year") + '/' + integer("month") + '/' + integer("day") + """ + listAllMatches: bool = deprecate_argument(kwargs, "listAllMatches", False) + + list_all_matches = listAllMatches or list_all_matches + return self._setResultsName(name, list_all_matches) + + def _setResultsName(self, name, list_all_matches=False) -> ParserElement: + if name is None: + return self + newself = self.copy() + if name.endswith("*"): + name = name[:-1] + list_all_matches = True + newself.resultsName = name + newself.modalResults = not list_all_matches + return newself + + def set_break(self, break_flag: bool = True) -> ParserElement: + """ + Method to invoke the Python pdb debugger when this element is + about to be parsed. Set ``break_flag`` to ``True`` to enable, ``False`` to + disable. + """ + if break_flag: + _parseMethod = self._parse + + def breaker(instring, loc, do_actions=True, callPreParse=True): + # this call to breakpoint() is intentional, not a checkin error + breakpoint() + return _parseMethod(instring, loc, do_actions, callPreParse) + + breaker._originalParseMethod = _parseMethod # type: ignore [attr-defined] + self._parse = breaker # type: ignore [method-assign] + elif hasattr(self._parse, "_originalParseMethod"): + self._parse = self._parse._originalParseMethod # type: ignore [method-assign] + return self + + def set_parse_action( + self, *fns: ParseAction, call_during_try: bool = False, **kwargs: Any + ) -> ParserElement: + """ + Define one or more actions to perform when successfully matching parse element definition. + + Parse actions can be called to perform data conversions, do extra validation, + update external data structures, or enhance or replace the parsed tokens. + Each parse action ``fn`` is a callable method with 0-3 arguments, called as + ``fn(s, loc, toks)`` , ``fn(loc, toks)`` , ``fn(toks)`` , or just ``fn()`` , where: + + - ``s`` = the original string being parsed (see note below) + - ``loc`` = the location of the matching substring + - ``toks`` = a list of the matched tokens, packaged as a :class:`ParseResults` object + + The parsed tokens are passed to the parse action as ParseResults. They can be + modified in place using list-style append, extend, and pop operations to update + the parsed list elements; and with dictionary-style item set and del operations + to add, update, or remove any named results. If the tokens are modified in place, + it is not necessary to return them with a return statement. + + Parse actions can also completely replace the given tokens, with another ``ParseResults`` + object, or with some entirely different object (common for parse actions that perform data + conversions). A convenient way to build a new parse result is to define the values + using a dict, and then create the return value using :class:`ParseResults.from_dict`. + + If None is passed as the ``fn`` parse action, all previously added parse actions for this + expression are cleared. + + Optional keyword arguments: + + :param call_during_try: (default= ``False``) indicate if parse action + should be run during lookaheads and alternate + testing. For parse actions that have side + effects, it is important to only call the parse + action once it is determined that it is being + called as part of a successful parse. + For parse actions that perform additional + validation, then ``call_during_try`` should + be passed as True, so that the validation code + is included in the preliminary "try" parses. + + .. Note:: + The default parsing behavior is to expand tabs in the input string + before starting the parsing process. + See :meth:`parse_string` for more information on parsing strings + containing ```` s, and suggested methods to maintain a + consistent view of the parsed string, the parse location, and + line and column positions within the parsed string. + + Example: Parse dates in the form ``YYYY/MM/DD`` + ----------------------------------------------- + + Setup code: + + .. testcode:: + + def convert_to_int(toks): + '''a parse action to convert toks from str to int + at parse time''' + return int(toks[0]) + + def is_valid_date(instring, loc, toks): + '''a parse action to verify that the date is a valid date''' + from datetime import date + year, month, day = toks[::2] + try: + date(year, month, day) + except ValueError: + raise ParseException(instring, loc, "invalid date given") + + integer = Word(nums) + date_str = integer + '/' + integer + '/' + integer + + # add parse actions + integer.set_parse_action(convert_to_int) + date_str.set_parse_action(is_valid_date) + + Successful parse - note that integer fields are converted to ints: + + .. testcode:: + + print(date_str.parse_string("1999/12/31")) + + prints: + + .. testoutput:: + + [1999, '/', 12, '/', 31] + + Failure - invalid date: + + .. testcode:: + + date_str.parse_string("1999/13/31") + + prints: + + .. testoutput:: + + Traceback (most recent call last): + ParseException: invalid date given, found '1999' ... + """ + callDuringTry: bool = deprecate_argument(kwargs, "callDuringTry", False) + + if list(fns) == [None]: + self.parseAction.clear() + return self + + if not all(callable(fn) for fn in fns): + raise TypeError("parse actions must be callable") + self.parseAction[:] = [_trim_arity(fn) for fn in fns] + self.callDuringTry = self.callDuringTry or call_during_try or callDuringTry + + return self + + def add_parse_action( + self, *fns: ParseAction, call_during_try: bool = False, **kwargs: Any + ) -> ParserElement: + """ + Add one or more parse actions to expression's list of parse actions. See :class:`set_parse_action`. + + See examples in :class:`copy`. + """ + callDuringTry: bool = deprecate_argument(kwargs, "callDuringTry", False) + + self.parseAction += [_trim_arity(fn) for fn in fns] + self.callDuringTry = self.callDuringTry or callDuringTry or call_during_try + return self + + def add_condition( + self, *fns: ParseCondition, call_during_try: bool = False, **kwargs: Any + ) -> ParserElement: + """Add a boolean predicate function to expression's list of parse actions. See + :class:`set_parse_action` for function call signatures. Unlike ``set_parse_action``, + functions passed to ``add_condition`` need to return boolean success/fail of the condition. + + Optional keyword arguments: + + - ``message`` = define a custom message to be used in the raised exception + - ``fatal`` = if True, will raise ParseFatalException to stop parsing immediately; otherwise will raise + ParseException + - ``call_during_try`` = boolean to indicate if this method should be called during internal tryParse calls, + default=False + + Example: + + .. doctest:: + :options: +NORMALIZE_WHITESPACE + + >>> integer = Word(nums).set_parse_action(lambda toks: int(toks[0])) + >>> year_int = integer.copy().add_condition( + ... lambda toks: toks[0] >= 2000, + ... message="Only support years 2000 and later") + >>> date_str = year_int + '/' + integer + '/' + integer + + >>> result = date_str.parse_string("1999/12/31") + Traceback (most recent call last): + ParseException: Only support years 2000 and later... + """ + callDuringTry: bool = deprecate_argument(kwargs, "callDuringTry", False) + + for fn in fns: + self.parseAction.append( + condition_as_parse_action( + fn, + message=str(kwargs.get("message")), + fatal=bool(kwargs.get("fatal", False)), + ) + ) + + self.callDuringTry = self.callDuringTry or call_during_try or callDuringTry + return self + + def set_fail_action(self, fn: ParseFailAction) -> ParserElement: + """ + Define action to perform if parsing fails at this expression. + Fail acton fn is a callable function that takes the arguments + ``fn(s, loc, expr, err)`` where: + + - ``s`` = string being parsed + - ``loc`` = location where expression match was attempted and failed + - ``expr`` = the parse expression that failed + - ``err`` = the exception thrown + + The function returns no value. It may throw :class:`ParseFatalException` + if it is desired to stop parsing immediately.""" + self.failAction = fn + return self + + def _skipIgnorables(self, instring: str, loc: int) -> int: + if not self.ignoreExprs: + return loc + exprsFound = True + ignore_expr_fns = [e._parse for e in self.ignoreExprs] + last_loc = loc + while exprsFound: + exprsFound = False + for ignore_fn in ignore_expr_fns: + try: + while 1: + loc, dummy = ignore_fn(instring, loc) + exprsFound = True + except ParseException: + pass + # check if all ignore exprs matched but didn't actually advance the parse location + if loc == last_loc: + break + last_loc = loc + return loc + + def preParse(self, instring: str, loc: int) -> int: + if self.ignoreExprs: + loc = self._skipIgnorables(instring, loc) + + if self.skipWhitespace: + instrlen = len(instring) + white_chars = self.whiteChars + while loc < instrlen and instring[loc] in white_chars: + loc += 1 + + return loc + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + return loc, [] + + def postParse(self, instring, loc, tokenlist): + return tokenlist + + # @profile + def _parseNoCache( + self, instring, loc, do_actions=True, callPreParse=True + ) -> tuple[int, ParseResults]: + debugging = self.debug # and do_actions) + len_instring = len(instring) + + if debugging or self.failAction: + # print("Match {} at loc {}({}, {})".format(self, loc, lineno(loc, instring), col(loc, instring))) + try: + if callPreParse and self.callPreparse: + pre_loc = self.preParse(instring, loc) + else: + pre_loc = loc + tokens_start = pre_loc + if self.debugActions.debug_try: + self.debugActions.debug_try(instring, tokens_start, self, False) + if self.mayIndexError or pre_loc >= len_instring: + try: + loc, tokens = self.parseImpl(instring, pre_loc, do_actions) + except IndexError: + raise ParseException(instring, len_instring, self.errmsg, self) + else: + loc, tokens = self.parseImpl(instring, pre_loc, do_actions) + except Exception as err: + # print("Exception raised:", err) + if self.debugActions.debug_fail: + self.debugActions.debug_fail( + instring, tokens_start, self, err, False + ) + if self.failAction: + self.failAction(instring, tokens_start, self, err) + raise + else: + if callPreParse and self.callPreparse: + pre_loc = self.preParse(instring, loc) + else: + pre_loc = loc + tokens_start = pre_loc + if self.mayIndexError or pre_loc >= len_instring: + try: + loc, tokens = self.parseImpl(instring, pre_loc, do_actions) + except IndexError: + raise ParseException(instring, len_instring, self.errmsg, self) + else: + loc, tokens = self.parseImpl(instring, pre_loc, do_actions) + + tokens = self.postParse(instring, loc, tokens) + + ret_tokens = ParseResults( + tokens, self.resultsName, aslist=self.saveAsList, modal=self.modalResults + ) + if self.parseAction and (do_actions or self.callDuringTry): + if debugging: + try: + for fn in self.parseAction: + try: + tokens = fn(instring, tokens_start, ret_tokens) # type: ignore [call-arg, arg-type] + except IndexError as parse_action_exc: + exc = ParseException("exception raised in parse action") + raise exc from parse_action_exc + + if tokens is not None and tokens is not ret_tokens: + ret_tokens = ParseResults( + tokens, + self.resultsName, + aslist=self.saveAsList + and isinstance(tokens, (ParseResults, list)), + modal=self.modalResults, + ) + except Exception as err: + # print "Exception raised in user parse action:", err + if self.debugActions.debug_fail: + self.debugActions.debug_fail( + instring, tokens_start, self, err, False + ) + raise + else: + for fn in self.parseAction: + try: + tokens = fn(instring, tokens_start, ret_tokens) # type: ignore [call-arg, arg-type] + except IndexError as parse_action_exc: + exc = ParseException("exception raised in parse action") + raise exc from parse_action_exc + + if tokens is not None and tokens is not ret_tokens: + ret_tokens = ParseResults( + tokens, + self.resultsName, + aslist=self.saveAsList + and isinstance(tokens, (ParseResults, list)), + modal=self.modalResults, + ) + if debugging: + # print("Matched", self, "->", ret_tokens.as_list()) + if self.debugActions.debug_match: + self.debugActions.debug_match( + instring, tokens_start, loc, self, ret_tokens, False + ) + + return loc, ret_tokens + + def try_parse( + self, + instring: str, + loc: int, + *, + raise_fatal: bool = False, + do_actions: bool = False, + ) -> int: + try: + return self._parse(instring, loc, do_actions=do_actions)[0] + except ParseFatalException: + if raise_fatal: + raise + raise ParseException(instring, loc, self.errmsg, self) + + def can_parse_next(self, instring: str, loc: int, do_actions: bool = False) -> bool: + try: + self.try_parse(instring, loc, do_actions=do_actions) + except (ParseException, IndexError): + return False + else: + return True + + # cache for left-recursion in Forward references + recursion_lock = RLock() + recursion_memos: collections.abc.MutableMapping[ + tuple[int, Forward, bool], tuple[int, Union[ParseResults, Exception]] + ] = {} + + class _CacheType(typing.Protocol): + """ + Class to be used for packrat and left-recursion cacheing of results + and exceptions. + """ + + not_in_cache: bool + + def get(self, *args) -> typing.Any: ... + + def set(self, *args) -> None: ... + + def clear(self) -> None: ... + + class NullCache(dict): + """ + A null cache type for initialization of the packrat_cache class variable. + If/when enable_packrat() is called, this null cache will be replaced by a + proper _CacheType class instance. + """ + + not_in_cache: bool = True + + def get(self, *args) -> typing.Any: ... + + def set(self, *args) -> None: ... + + def clear(self) -> None: ... + + # class-level argument cache for optimizing repeated calls when backtracking + # through recursive expressions + packrat_cache: _CacheType = NullCache() + packrat_cache_lock = RLock() + packrat_cache_stats = [0, 0] + + # this method gets repeatedly called during backtracking with the same arguments - + # we can cache these arguments and save ourselves the trouble of re-parsing the contained expression + def _parseCache( + self, instring, loc, do_actions=True, callPreParse=True + ) -> tuple[int, ParseResults]: + HIT, MISS = 0, 1 + lookup = (self, instring, loc, callPreParse, do_actions) + with ParserElement.packrat_cache_lock: + cache = ParserElement.packrat_cache + value = cache.get(lookup) + if value is cache.not_in_cache: + ParserElement.packrat_cache_stats[MISS] += 1 + try: + value = self._parseNoCache(instring, loc, do_actions, callPreParse) + except ParseBaseException as pe: + # cache a copy of the exception, without the traceback + cache.set(lookup, pe.__class__(*pe.args)) + raise + else: + cache.set(lookup, (value[0], value[1].copy(), loc)) + return value + else: + ParserElement.packrat_cache_stats[HIT] += 1 + if self.debug and self.debugActions.debug_try: + try: + self.debugActions.debug_try(instring, loc, self, cache_hit=True) # type: ignore [call-arg] + except TypeError: + pass + if isinstance(value, Exception): + if self.debug and self.debugActions.debug_fail: + try: + self.debugActions.debug_fail( + instring, loc, self, value, cache_hit=True # type: ignore [call-arg] + ) + except TypeError: + pass + raise value + + value = cast(tuple[int, ParseResults, int], value) + loc_, result, endloc = value[0], value[1].copy(), value[2] + if self.debug and self.debugActions.debug_match: + try: + self.debugActions.debug_match( + instring, loc_, endloc, self, result, cache_hit=True # type: ignore [call-arg] + ) + except TypeError: + pass + + return loc_, result + + _parse = _parseNoCache + + @staticmethod + def reset_cache() -> None: + """ + Clears caches used by packrat and left-recursion. + """ + with ParserElement.packrat_cache_lock: + ParserElement.packrat_cache.clear() + ParserElement.packrat_cache_stats[:] = [0] * len( + ParserElement.packrat_cache_stats + ) + ParserElement.recursion_memos.clear() + + # class attributes to keep caching status + _packratEnabled = False + _left_recursion_enabled = False + + @staticmethod + def disable_memoization() -> None: + """ + Disables active Packrat or Left Recursion parsing and their memoization + + This method also works if neither Packrat nor Left Recursion are enabled. + This makes it safe to call before activating Packrat nor Left Recursion + to clear any previous settings. + """ + with ParserElement.packrat_cache_lock: + ParserElement.reset_cache() + ParserElement._left_recursion_enabled = False + ParserElement._packratEnabled = False + ParserElement._parse = ParserElement._parseNoCache + + @staticmethod + def enable_left_recursion( + cache_size_limit: typing.Optional[int] = None, *, force=False + ) -> None: + """ + Enables "bounded recursion" parsing, which allows for both direct and indirect + left-recursion. During parsing, left-recursive :class:`Forward` elements are + repeatedly matched with a fixed recursion depth that is gradually increased + until finding the longest match. + + Example: + + .. testcode:: + + import pyparsing as pp + pp.ParserElement.enable_left_recursion() + + E = pp.Forward("E") + num = pp.Word(pp.nums) + + # match `num`, or `num '+' num`, or `num '+' num '+' num`, ... + E <<= E + '+' - num | num + + print(E.parse_string("1+2+3+4")) + + prints: + + .. testoutput:: + + ['1', '+', '2', '+', '3', '+', '4'] + + Recursion search naturally memoizes matches of ``Forward`` elements and may + thus skip reevaluation of parse actions during backtracking. This may break + programs with parse actions which rely on strict ordering of side-effects. + + Parameters: + + - ``cache_size_limit`` - (default=``None``) - memoize at most this many + ``Forward`` elements during matching; if ``None`` (the default), + memoize all ``Forward`` elements. + + Bounded Recursion parsing works similar but not identical to Packrat parsing, + thus the two cannot be used together. Use ``force=True`` to disable any + previous, conflicting settings. + """ + with ParserElement.packrat_cache_lock: + if force: + ParserElement.disable_memoization() + elif ParserElement._packratEnabled: + raise RuntimeError("Packrat and Bounded Recursion are not compatible") + if cache_size_limit is None: + ParserElement.recursion_memos = _UnboundedMemo() + elif cache_size_limit > 0: + ParserElement.recursion_memos = _LRUMemo(capacity=cache_size_limit) # type: ignore[assignment] + else: + raise NotImplementedError(f"Memo size of {cache_size_limit}") + ParserElement._left_recursion_enabled = True + + @staticmethod + def enable_packrat( + cache_size_limit: Union[int, None] = 128, *, force: bool = False + ) -> None: + """ + Enables "packrat" parsing, which adds memoizing to the parsing logic. + Repeated parse attempts at the same string location (which happens + often in many complex grammars) can immediately return a cached value, + instead of re-executing parsing/validating code. Memoizing is done of + both valid results and parsing exceptions. + + Parameters: + + - ``cache_size_limit`` - (default= ``128``) - if an integer value is provided + will limit the size of the packrat cache; if None is passed, then + the cache size will be unbounded; if 0 is passed, the cache will + be effectively disabled. + + This speedup may break existing programs that use parse actions that + have side-effects. For this reason, packrat parsing is disabled when + you first import pyparsing. To activate the packrat feature, your + program must call the class method :class:`ParserElement.enable_packrat`. + For best results, call ``enable_packrat()`` immediately after + importing pyparsing. + + .. Can't really be doctested, alas + + Example:: + + import pyparsing + pyparsing.ParserElement.enable_packrat() + + Packrat parsing works similar but not identical to Bounded Recursion parsing, + thus the two cannot be used together. Use ``force=True`` to disable any + previous, conflicting settings. + """ + with ParserElement.packrat_cache_lock: + if force: + ParserElement.disable_memoization() + elif ParserElement._left_recursion_enabled: + raise RuntimeError("Packrat and Bounded Recursion are not compatible") + + if ParserElement._packratEnabled: + return + + ParserElement._packratEnabled = True + if cache_size_limit is None: + ParserElement.packrat_cache = _UnboundedCache() + else: + ParserElement.packrat_cache = _FifoCache(cache_size_limit) + ParserElement._parse = ParserElement._parseCache + + def parse_string( + self, instring: str, parse_all: bool = False, **kwargs + ) -> ParseResults: + """ + Parse a string with respect to the parser definition. This function is intended as the primary interface to the + client code. + + :param instring: The input string to be parsed. + :param parse_all: If set, the entire input string must match the grammar. + :param parseAll: retained for pre-PEP8 compatibility, will be removed in a future release. + :raises ParseException: Raised if ``parse_all`` is set and the input string does not match the whole grammar. + :returns: the parsed data as a :class:`ParseResults` object, which may be accessed as a `list`, a `dict`, or + an object with attributes if the given parser includes results names. + + If the input string is required to match the entire grammar, ``parse_all`` flag must be set to ``True``. This + is also equivalent to ending the grammar with :class:`StringEnd`\\ (). + + To report proper column numbers, ``parse_string`` operates on a copy of the input string where all tabs are + converted to spaces (8 spaces per tab, as per the default in ``string.expandtabs``). If the input string + contains tabs and the grammar uses parse actions that use the ``loc`` argument to index into the string + being parsed, one can ensure a consistent view of the input string by doing one of the following: + + - calling ``parse_with_tabs`` on your grammar before calling ``parse_string`` (see :class:`parse_with_tabs`), + - define your parse action using the full ``(s,loc,toks)`` signature, and reference the input string using the + parse action's ``s`` argument, or + - explicitly expand the tabs in your input string before calling ``parse_string``. + + Examples: + + By default, partial matches are OK. + + .. doctest:: + + >>> res = Word('a').parse_string('aaaaabaaa') + >>> print(res) + ['aaaaa'] + + The parsing behavior varies by the inheriting class of this abstract class. Please refer to the children + directly to see more examples. + + It raises an exception if parse_all flag is set and instring does not match the whole grammar. + + .. doctest:: + + >>> res = Word('a').parse_string('aaaaabaaa', parse_all=True) + Traceback (most recent call last): + ParseException: Expected end of text, found 'b' ... + """ + parseAll: bool = deprecate_argument(kwargs, "parseAll", False) + + parse_all = parse_all or parseAll + + ParserElement.reset_cache() + if not self.streamlined: + self.streamline() + for e in self.ignoreExprs: + e.streamline() + if not self.keepTabs: + instring = instring.expandtabs() + try: + loc, tokens = self._parse(instring, 0) + if parse_all: + loc = self.preParse(instring, loc) + se = Empty() + StringEnd().set_debug(False) + se._parse(instring, loc) + except _ParseActionIndexError as pa_exc: + raise pa_exc.exc + except ParseBaseException as exc: + if ParserElement.verbose_stacktrace: + raise + + # catch and re-raise exception from here, clearing out pyparsing internal stack trace + raise exc.with_traceback(None) + else: + return tokens + + def scan_string( + self, + instring: str, + max_matches: int = _MAX_INT, + overlap: bool = False, + always_skip_whitespace=True, + *, + debug: bool = False, + **kwargs, + ) -> Generator[tuple[ParseResults, int, int], None, None]: + """ + Scan the input string for expression matches. Each match will return the + matching tokens, start location, and end location. May be called with optional + ``max_matches`` argument, to clip scanning after 'n' matches are found. If + ``overlap`` is specified, then overlapping matches will be reported. + + Note that the start and end locations are reported relative to the string + being parsed. See :class:`parse_string` for more information on parsing + strings with embedded tabs. + + Example: + + .. testcode:: + + source = "sldjf123lsdjjkf345sldkjf879lkjsfd987" + print(source) + for tokens, start, end in Word(alphas).scan_string(source): + print(' '*start + '^'*(end-start)) + print(' '*start + tokens[0]) + + prints: + + .. testoutput:: + + sldjf123lsdjjkf345sldkjf879lkjsfd987 + ^^^^^ + sldjf + ^^^^^^^ + lsdjjkf + ^^^^^^ + sldkjf + ^^^^^^ + lkjsfd + """ + maxMatches: int = deprecate_argument(kwargs, "maxMatches", _MAX_INT) + + max_matches = min(maxMatches, max_matches) + if not self.streamlined: + self.streamline() + for e in self.ignoreExprs: + e.streamline() + + if not self.keepTabs: + instring = str(instring).expandtabs() + instrlen = len(instring) + loc = 0 + if always_skip_whitespace: + preparser = Empty() + preparser.ignoreExprs = self.ignoreExprs + preparser.whiteChars = self.whiteChars + preparseFn = preparser.preParse + else: + preparseFn = self.preParse + parseFn = self._parse + ParserElement.reset_cache() + matches = 0 + try: + while loc <= instrlen and matches < max_matches: + try: + preloc: int = preparseFn(instring, loc) + nextLoc: int + tokens: ParseResults + nextLoc, tokens = parseFn(instring, preloc, callPreParse=False) + except ParseException: + loc = preloc + 1 + else: + if nextLoc > loc: + matches += 1 + if debug: + print( + { + "tokens": tokens.as_list(), + "start": preloc, + "end": nextLoc, + } + ) + yield tokens, preloc, nextLoc + if overlap: + nextloc = preparseFn(instring, loc) + if nextloc > loc: + loc = nextLoc + else: + loc += 1 + else: + loc = nextLoc + else: + loc = preloc + 1 + except ParseBaseException as exc: + if ParserElement.verbose_stacktrace: + raise + + # catch and re-raise exception from here, clears out pyparsing internal stack trace + raise exc.with_traceback(None) + + def transform_string(self, instring: str, *, debug: bool = False) -> str: + """ + Extension to :class:`scan_string`, to modify matching text with modified tokens that may + be returned from a parse action. To use ``transform_string``, define a grammar and + attach a parse action to it that modifies the returned token list. + Invoking ``transform_string()`` on a target string will then scan for matches, + and replace the matched text patterns according to the logic in the parse + action. ``transform_string()`` returns the resulting transformed string. + + Example: + + .. testcode:: + + quote = '''now is the winter of our discontent, + made glorious summer by this sun of york.''' + + wd = Word(alphas) + wd.set_parse_action(lambda toks: toks[0].title()) + + print(wd.transform_string(quote)) + + prints: + + .. testoutput:: + + Now Is The Winter Of Our Discontent, + Made Glorious Summer By This Sun Of York. + """ + out: list[str] = [] + lastE = 0 + # force preservation of s, to minimize unwanted transformation of string, and to + # keep string locs straight between transform_string and scan_string + self.keepTabs = True + try: + for t, s, e in self.scan_string(instring, debug=debug): + if s > lastE: + out.append(instring[lastE:s]) + lastE = e + + if not t: + continue + + if isinstance(t, ParseResults): + out += t.as_list() + elif isinstance(t, Iterable) and not isinstance(t, str_type): + out.extend(t) + else: + out.append(t) + + out.append(instring[lastE:]) + out = [o for o in out if o] + return "".join([str(s) for s in _flatten(out)]) + except ParseBaseException as exc: + if ParserElement.verbose_stacktrace: + raise + + # catch and re-raise exception from here, clears out pyparsing internal stack trace + raise exc.with_traceback(None) + + def search_string( + self, + instring: str, + max_matches: int = _MAX_INT, + *, + debug: bool = False, + **kwargs, + ) -> ParseResults: + """ + Another extension to :class:`scan_string`, simplifying the access to the tokens found + to match the given parse expression. May be called with optional + ``max_matches`` argument, to clip searching after 'n' matches are found. + + Example: + + .. testcode:: + + quote = '''More than Iron, more than Lead, + more than Gold I need Electricity''' + + # a capitalized word starts with an uppercase letter, + # followed by zero or more lowercase letters + cap_word = Word(alphas.upper(), alphas.lower()) + + print(cap_word.search_string(quote)) + + # the sum() builtin can be used to merge results + # into a single ParseResults object + print(sum(cap_word.search_string(quote))) + + prints: + + .. testoutput:: + + [['More'], ['Iron'], ['Lead'], ['Gold'], ['I'], ['Electricity']] + ['More', 'Iron', 'Lead', 'Gold', 'I', 'Electricity'] + """ + maxMatches: int = deprecate_argument(kwargs, "maxMatches", _MAX_INT) + + max_matches = min(maxMatches, max_matches) + try: + return ParseResults( + [ + t + for t, s, e in self.scan_string( + instring, + max_matches=max_matches, + always_skip_whitespace=False, + debug=debug, + ) + ] + ) + except ParseBaseException as exc: + if ParserElement.verbose_stacktrace: + raise + + # catch and re-raise exception from here, clears out pyparsing internal stack trace + raise exc.with_traceback(None) + + def split( + self, + instring: str, + maxsplit: int = _MAX_INT, + include_separators: bool = False, + **kwargs, + ) -> Generator[str, None, None]: + """ + Generator method to split a string using the given expression as a separator. + May be called with optional ``maxsplit`` argument, to limit the number of splits; + and the optional ``include_separators`` argument (default= ``False``), if the separating + matching text should be included in the split results. + + Example: + + .. testcode:: + + punc = one_of(list(".,;:/-!?")) + print(list(punc.split( + "This, this?, this sentence, is badly punctuated!"))) + + prints: + + .. testoutput:: + + ['This', ' this', '', ' this sentence', ' is badly punctuated', ''] + """ + includeSeparators: bool = deprecate_argument(kwargs, "includeSeparators", False) + + include_separators = includeSeparators or include_separators + last = 0 + for t, s, e in self.scan_string(instring, max_matches=maxsplit): + yield instring[last:s] + if include_separators: + yield t[0] + last = e + yield instring[last:] + + def __add__(self, other) -> ParserElement: + """ + Implementation of ``+`` operator - returns :class:`And`. Adding strings to a :class:`ParserElement` + converts them to :class:`Literal`\\ s by default. + + Example: + + .. testcode:: + + greet = Word(alphas) + "," + Word(alphas) + "!" + hello = "Hello, World!" + print(hello, "->", greet.parse_string(hello)) + + prints: + + .. testoutput:: + + Hello, World! -> ['Hello', ',', 'World', '!'] + + ``...`` may be used as a parse expression as a short form of :class:`SkipTo`: + + .. testcode:: + + Literal('start') + ... + Literal('end') + + is equivalent to: + + .. testcode:: + + Literal('start') + SkipTo('end')("_skipped*") + Literal('end') + + Note that the skipped text is returned with '_skipped' as a results name, + and to support having multiple skips in the same parser, the value returned is + a list of all skipped text. + """ + if other is Ellipsis: + return _PendingSkip(self) + + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return And([self, other]) + + def __radd__(self, other) -> ParserElement: + """ + Implementation of ``+`` operator when left operand is not a :class:`ParserElement` + """ + if other is Ellipsis: + return SkipTo(self)("_skipped*") + self + + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return other + self + + def __sub__(self, other) -> ParserElement: + """ + Implementation of ``-`` operator, returns :class:`And` with error stop + """ + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return self + And._ErrorStop() + other + + def __rsub__(self, other) -> ParserElement: + """ + Implementation of ``-`` operator when left operand is not a :class:`ParserElement` + """ + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return other - self + + def __mul__(self, other) -> ParserElement: + """ + Implementation of ``*`` operator, allows use of ``expr * 3`` in place of + ``expr + expr + expr``. Expressions may also be multiplied by a 2-integer + tuple, similar to ``{min, max}`` multipliers in regular expressions. Tuples + may also include ``None`` as in: + + - ``expr*(n, None)`` or ``expr*(n, )`` is equivalent + to ``expr*n + ZeroOrMore(expr)`` + (read as "at least n instances of ``expr``") + - ``expr*(None, n)`` is equivalent to ``expr*(0, n)`` + (read as "0 to n instances of ``expr``") + - ``expr*(None, None)`` is equivalent to ``ZeroOrMore(expr)`` + - ``expr*(1, None)`` is equivalent to ``OneOrMore(expr)`` + + Note that ``expr*(None, n)`` does not raise an exception if + more than n exprs exist in the input stream; that is, + ``expr*(None, n)`` does not enforce a maximum number of expr + occurrences. If this behavior is desired, then write + ``expr*(None, n) + ~expr`` + """ + if other is Ellipsis: + other = (0, None) + elif isinstance(other, tuple) and other[:1] == (Ellipsis,): + other = ((0,) + other[1:] + (None,))[:2] + + if not isinstance(other, (int, tuple)): + return NotImplemented + + if isinstance(other, int): + minElements, optElements = other, 0 + else: + other = tuple(o if o is not Ellipsis else None for o in other) + other = (other + (None, None))[:2] + if other[0] is None: + other = (0, other[1]) + if isinstance(other[0], int) and other[1] is None: + if other[0] == 0: + return ZeroOrMore(self) + if other[0] == 1: + return OneOrMore(self) + else: + return self * other[0] + ZeroOrMore(self) + elif isinstance(other[0], int) and isinstance(other[1], int): + minElements, optElements = other + optElements -= minElements + else: + return NotImplemented + + if minElements < 0: + raise ValueError("cannot multiply ParserElement by negative value") + if optElements < 0: + raise ValueError( + "second tuple value must be greater or equal to first tuple value" + ) + if minElements == optElements == 0: + return And([]) + + if optElements: + # Build the optional tail as a bounded ``ZeroOrMore`` instead of a + # deeply nested ``Opt(self + Opt(self + ...))`` chain. The nested + # form recursed ``optElements`` levels deep, which raised + # RecursionError for large upper bounds (e.g. ``expr[..., 1000]``) + # -- see issue #332. ``ZeroOrMore(..., max=optElements)`` is a flat + # loop that still *exits early* (it stops at the first non-match, + # just like the recursive form), so it preserves the original + # early-exit behavior while no longer scaling the call stack with + # the upper bound. + optionalTail = ZeroOrMore(self, max=optElements) + + if minElements: + if minElements == 1: + ret = self + optionalTail + else: + ret = And([self] * minElements) + optionalTail + else: + ret = optionalTail + else: + if minElements == 1: + ret = self + else: + ret = And([self] * minElements) + return ret + + def __rmul__(self, other) -> ParserElement: + return self.__mul__(other) + + def __or__(self, other) -> ParserElement: + """ + Implementation of ``|`` operator - returns :class:`MatchFirst` + + .. versionchanged:: 3.1.0 + Support ``expr | ""`` as a synonym for ``Optional(expr)``. + """ + if other is Ellipsis: + return _PendingSkip(self, must_skip=True) + + if isinstance(other, str_type): + # `expr | ""` is equivalent to `Opt(expr)` + if other == "": + return Opt(self) + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return MatchFirst([self, other]) + + def __ror__(self, other) -> ParserElement: + """ + Implementation of ``|`` operator when left operand is not a :class:`ParserElement` + """ + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return other | self + + def __xor__(self, other) -> ParserElement: + """ + Implementation of ``^`` operator - returns :class:`Or` + """ + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return Or([self, other]) + + def __rxor__(self, other) -> ParserElement: + """ + Implementation of ``^`` operator when left operand is not a :class:`ParserElement` + """ + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return other ^ self + + def __and__(self, other) -> ParserElement: + """ + Implementation of ``&`` operator - returns :class:`Each` + """ + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return Each([self, other]) + + def __rand__(self, other) -> ParserElement: + """ + Implementation of ``&`` operator when left operand is not a :class:`ParserElement` + """ + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return other & self + + def __invert__(self) -> ParserElement: + """ + Implementation of ``~`` operator - returns :class:`NotAny` + """ + return NotAny(self) + + # disable __iter__ to override legacy use of sequential access to __getitem__ to + # iterate over a sequence + __iter__ = None + + def __getitem__(self, key): + """ + use ``[]`` indexing notation as a short form for expression repetition: + + - ``expr[n]`` is equivalent to ``expr*n`` + - ``expr[m, n]`` is equivalent to ``expr*(m, n)`` + - ``expr[n, ...]`` or ``expr[n,]`` is equivalent + to ``expr*n + ZeroOrMore(expr)`` + (read as "at least n instances of ``expr``") + - ``expr[..., n]`` is equivalent to ``expr*(0, n)`` + (read as "0 to n instances of ``expr``") + - ``expr[...]`` and ``expr[0, ...]`` are equivalent to ``ZeroOrMore(expr)`` + - ``expr[1, ...]`` is equivalent to ``OneOrMore(expr)`` + + ``None`` may be used in place of ``...``. + + Note that ``expr[..., n]`` and ``expr[m, n]`` do not raise an exception + if more than ``n`` ``expr``\\ s exist in the input stream. If this behavior is + desired, then write ``expr[..., n] + ~expr``. + + For repetition with a stop_on expression, use slice notation: + + - ``expr[...: end_expr]`` and ``expr[0, ...: end_expr]`` are equivalent to ``ZeroOrMore(expr, stop_on=end_expr)`` + - ``expr[1, ...: end_expr]`` is equivalent to ``OneOrMore(expr, stop_on=end_expr)`` + + .. versionchanged:: 3.1.0 + Support for slice notation. + """ + + stop_on_defined = False + stop_on = NoMatch() + if isinstance(key, slice): + key, stop_on = key.start, key.stop + if key is None: + key = ... + stop_on_defined = True + elif isinstance(key, tuple) and isinstance(key[-1], slice): + key, stop_on = (key[0], key[1].start), key[1].stop + stop_on_defined = True + + # convert single arg keys to tuples + if isinstance(key, str_type): + key = (key,) + try: + iter(key) + except TypeError: + key = (key, key) + + if len(key) > 2: + raise TypeError( + f"only 1 or 2 index arguments supported ({key[:5]}{f'... [{len(key)}]' if len(key) > 5 else ''})" + ) + + # clip to 2 elements + ret = self * tuple(key[:2]) + ret = typing.cast(_MultipleMatch, ret) + + if stop_on_defined: + ret.stopOn(stop_on) + + return ret + + def __call__(self, name: typing.Optional[str] = None) -> ParserElement: + """ + Shortcut for :class:`set_results_name`, with ``list_all_matches=False``. + + If ``name`` is given with a trailing ``'*'`` character, then ``list_all_matches`` will be + passed as ``True``. + + If ``name`` is omitted, same as calling :class:`copy`. + + Example: + + .. testcode:: + + # these are equivalent + userdata = ( + Word(alphas).set_results_name("name") + + Word(nums + "-").set_results_name("socsecno") + ) + + userdata = Word(alphas)("name") + Word(nums + "-")("socsecno") + """ + if name is not None: + return self._setResultsName(name) + + return self.copy() + + def suppress(self) -> ParserElement: + """ + Suppresses the output of this :class:`ParserElement`; useful to keep punctuation from + cluttering up returned output. + """ + return Suppress(self) + + def ignore_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Enables the skipping of whitespace before matching the characters in the + :class:`ParserElement`'s defined pattern. + + :param recursive: If ``True`` (the default), also enable whitespace skipping in child elements (if any) + """ + self.skipWhitespace = True + return self + + def leave_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Disables the skipping of whitespace before matching the characters in the + :class:`ParserElement`'s defined pattern. This is normally only used internally by + the pyparsing module, but may be needed in some whitespace-sensitive grammars. + + :param recursive: If true (the default), also disable whitespace skipping in child elements (if any) + """ + self.skipWhitespace = False + return self + + def set_whitespace_chars( + self, chars: Union[set[str], str], copy_defaults: bool = False + ) -> ParserElement: + """ + Overrides the default whitespace chars + """ + self.skipWhitespace = True + self.whiteChars = set(chars) + self.copyDefaultWhiteChars = copy_defaults + return self + + def parse_with_tabs(self) -> ParserElement: + """ + Overrides default behavior to expand ```` s to spaces before parsing the input string. + Must be called before ``parse_string`` when the input grammar contains elements that + match ```` characters. + """ + self.keepTabs = True + return self + + def ignore(self, other: ParserElement) -> ParserElement: + """ + Define expression to be ignored (e.g., comments) while doing pattern + matching; may be called repeatedly, to define multiple comment or other + ignorable patterns. + + Example: + + .. doctest:: + + >>> patt = Word(alphas)[...] + >>> print(patt.parse_string('ablaj /* comment */ lskjd')) + ['ablaj'] + + >>> patt = Word(alphas)[...].ignore(c_style_comment) + >>> print(patt.parse_string('ablaj /* comment */ lskjd')) + ['ablaj', 'lskjd'] + """ + if isinstance(other, str_type): + other = Suppress(other) + + if isinstance(other, Suppress): + if other not in self.ignoreExprs: + self.ignoreExprs.append(other) + else: + self.ignoreExprs.append(Suppress(other.copy())) + return self + + def set_debug_actions( + self, + start_action: DebugStartAction, + success_action: DebugSuccessAction, + exception_action: DebugExceptionAction, + ) -> ParserElement: + """ + Customize display of debugging messages while doing pattern matching: + + :param start_action: method to be called when an expression is about to be parsed; + should have the signature:: + + fn(input_string: str, + location: int, + expression: ParserElement, + cache_hit: bool) + + :param success_action: method to be called when an expression has successfully parsed; + should have the signature:: + + fn(input_string: str, + start_location: int, + end_location: int, + expression: ParserELement, + parsed_tokens: ParseResults, + cache_hit: bool) + + :param exception_action: method to be called when expression fails to parse; + should have the signature:: + + fn(input_string: str, + location: int, + expression: ParserElement, + exception: Exception, + cache_hit: bool) + """ + self.debugActions = self.DebugActions( + start_action or _default_start_debug_action, # type: ignore[truthy-function] + success_action or _default_success_debug_action, # type: ignore[truthy-function] + exception_action or _default_exception_debug_action, # type: ignore[truthy-function] + ) + self.debug = any(self.debugActions) + return self + + def set_debug(self, flag: bool = True, recurse: bool = False) -> ParserElement: + """ + Enable display of debugging messages while doing pattern matching. + Set ``flag`` to ``True`` to enable, ``False`` to disable. + Set ``recurse`` to ``True`` to set the debug flag on this expression and all sub-expressions. + + Example: + + .. testcode:: + + wd = Word(alphas).set_name("alphaword") + integer = Word(nums).set_name("numword") + term = wd | integer + + # turn on debugging for wd + wd.set_debug() + + term[1, ...].parse_string("abc 123 xyz 890") + + prints: + + .. testoutput:: + :options: +NORMALIZE_WHITESPACE + + Match alphaword at loc 0(1,1) + abc 123 xyz 890 + ^ + Matched alphaword -> ['abc'] + Match alphaword at loc 4(1,5) + abc 123 xyz 890 + ^ + Match alphaword failed, ParseException raised: Expected alphaword, ... + Match alphaword at loc 8(1,9) + abc 123 xyz 890 + ^ + Matched alphaword -> ['xyz'] + Match alphaword at loc 12(1,13) + abc 123 xyz 890 + ^ + Match alphaword failed, ParseException raised: Expected alphaword, ... + abc 123 xyz 890 + ^ + Match alphaword failed, ParseException raised: Expected alphaword, found end of text ... + + The output shown is that produced by the default debug actions - custom debug actions can be + specified using :meth:`set_debug_actions`. Prior to attempting + to match the ``wd`` expression, the debugging message ``"Match at loc (,)"`` + is shown. Then if the parse succeeds, a ``"Matched"`` message is shown, or an ``"Exception raised"`` + message is shown. Also note the use of :meth:`set_name` to assign a human-readable name to the expression, + which makes debugging and exception messages easier to understand - for instance, the default + name created for the :class:`Word` expression without calling :meth:`set_name` is ``"W:(A-Za-z)"``. + + .. versionchanged:: 3.1.0 + ``recurse`` argument added. + """ + if recurse: + for expr in self.visit_all(): + expr.set_debug(flag, recurse=False) + return self + + if flag: + self.set_debug_actions( + _default_start_debug_action, + _default_success_debug_action, + _default_exception_debug_action, + ) + else: + self.debug = False + return self + + @property + def default_name(self) -> str: + if self._defaultName is None: + self._defaultName = self._generateDefaultName() + return self._defaultName + + @abstractmethod + def _generateDefaultName(self) -> str: + """ + Child classes must define this method, which defines how the ``default_name`` is set. + """ + + def set_name(self, name: typing.Optional[str]) -> ParserElement: + """ + Define name for this expression, makes debugging and exception messages clearer. If + `__diag__.enable_debug_on_named_expressions` is set to True, setting a name will also + enable debug for this expression. + + If `name` is None, clears any custom name for this expression, and clears the + debug flag is it was enabled via `__diag__.enable_debug_on_named_expressions`. + + Example: + + .. doctest:: + + >>> integer = Word(nums) + >>> integer.parse_string("ABC") + Traceback (most recent call last): + ParseException: Expected W:(0-9) (at char 0), (line:1, col:1) + + >>> integer.set_name("integer") + integer + >>> integer.parse_string("ABC") + Traceback (most recent call last): + ParseException: Expected integer (at char 0), (line:1, col:1) + + .. versionchanged:: 3.1.0 + Accept ``None`` as the ``name`` argument. + """ + self.customName = name # type: ignore[assignment] + self.errmsg = f"Expected {str(self)}" + + if __diag__.enable_debug_on_named_expressions: + self.set_debug(name is not None) + + return self + + @property + def name(self) -> str: + """ + Returns a user-defined name if available, but otherwise defaults back to the auto-generated name + """ + return self.customName if self.customName is not None else self.default_name + + @name.setter + def name(self, new_name) -> None: + self.set_name(new_name) + + def __str__(self) -> str: + return self.name + + def __repr__(self) -> str: + return str(self) + + def streamline(self) -> ParserElement: + self.streamlined = True + self._defaultName = None + return self + + def recurse(self) -> list[ParserElement]: + return [] + + def _checkRecursion(self, parseElementList): + subRecCheckList = parseElementList[:] + [self] + for e in self.recurse(): + e._checkRecursion(subRecCheckList) + + def validate(self, validateTrace=None) -> None: + """ + .. deprecated:: 3.0.0 + Do not use to check for left recursion. + + Check defined expressions for valid structure, check for infinite recursive definitions. + + """ + warnings.warn( + "ParserElement.validate() is deprecated, and should not be used to check for left recursion", + PyparsingDeprecationWarning, + stacklevel=2, + ) + self._checkRecursion([]) + + def parse_file( + self, + file_or_filename: Union[str, Path, TextIO], + encoding: str = "utf-8", + parse_all: bool = False, + **kwargs, + ) -> ParseResults: + """ + Execute the parse expression on the given file or filename. + If a filename is specified (instead of a file object), + the entire file is opened, read, and closed before parsing. + """ + parseAll: bool = deprecate_argument(kwargs, "parseAll", False) + + parse_all = parse_all or parseAll + try: + file_or_filename = typing.cast(TextIO, file_or_filename) + file_contents = file_or_filename.read() + except AttributeError: + file_or_filename = typing.cast(str, file_or_filename) + with open(file_or_filename, "r", encoding=encoding) as f: + file_contents = f.read() + try: + return self.parse_string(file_contents, parse_all) + except ParseBaseException as exc: + if ParserElement.verbose_stacktrace: + raise + + # catch and re-raise exception from here, clears out pyparsing internal stack trace + raise exc.with_traceback(None) + + def __eq__(self, other): + if self is other: + return True + elif isinstance(other, str_type): + return self.matches(other, parse_all=True) + elif isinstance(other, ParserElement): + return vars(self) == vars(other) + return False + + def __hash__(self): + return id(self) + + def matches(self, test_string: str, parse_all: bool = True, **kwargs) -> bool: + """ + Method for quick testing of a parser against a test string. Good for simple + inline microtests of sub expressions while building up larger parser. + + :param test_string: to test against this expression for a match + :param parse_all: flag to pass to :meth:`parse_string` when running tests + + Example: + + .. doctest:: + + >>> expr = Word(nums) + >>> expr.matches("100") + True + """ + parseAll: bool = deprecate_argument(kwargs, "parseAll", True) + + parse_all = parse_all and parseAll + try: + self.parse_string(str(test_string), parse_all=parse_all) + return True + except ParseBaseException: + return False + + def run_tests( + self, + tests: Union[str, list[str]], + parse_all: bool = True, + comment: typing.Optional[Union[ParserElement, str]] = "#", + full_dump: bool = True, + print_results: bool = True, + failure_tests: bool = False, + post_parse: typing.Optional[ + Callable[[str, ParseResults], typing.Optional[str]] + ] = None, + file: typing.Optional[TextIO] = None, + with_line_numbers: bool = False, + *, + parseAll: bool = True, + fullDump: bool = True, + printResults: bool = True, + failureTests: bool = False, + postParse: typing.Optional[ + Callable[[str, ParseResults], typing.Optional[str]] + ] = None, + ) -> tuple[bool, list[tuple[str, Union[ParseResults, Exception]]]]: + """ + Execute the parse expression on a series of test strings, showing each + test, the parsed results or where the parse failed. Quick and easy way to + run a parse expression against a list of sample strings. + + Parameters: + + - ``tests`` - a list of separate test strings, or a multiline string of test strings + - ``parse_all`` - (default= ``True``) - flag to pass to :class:`parse_string` when running tests + - ``comment`` - (default= ``'#'``) - expression for indicating embedded comments in the test + string; pass None to disable comment filtering + - ``full_dump`` - (default= ``True``) - dump results as list followed by results names in nested outline; + if False, only dump nested list + - ``print_results`` - (default= ``True``) prints test output to stdout + - ``failure_tests`` - (default= ``False``) indicates if these tests are expected to fail parsing + - ``post_parse`` - (default= ``None``) optional callback for successful parse results; called as + `fn(test_string, parse_results)` and returns a string to be added to the test output + - ``file`` - (default= ``None``) optional file-like object to which test output will be written; + if None, will default to ``sys.stdout`` + - ``with_line_numbers`` - default= ``False``) show test strings with line and column numbers + + Returns: a (success, results) tuple, where success indicates that all tests succeeded + (or failed if ``failure_tests`` is True), and the results contain a list of lines of each + test's output + + Passing example: + + .. testcode:: + + number_expr = pyparsing_common.number.copy() + + result = number_expr.run_tests(''' + # unsigned integer + 100 + # negative integer + -100 + # float with scientific notation + 6.02e23 + # integer with scientific notation + 1e-12 + # negative decimal number without leading digit + -.100 + ''') + print("Success" if result[0] else "Failed!") + + prints: + + .. testoutput:: + :options: +NORMALIZE_WHITESPACE + + + # unsigned integer + 100 + [100] + + # negative integer + -100 + [-100] + + # float with scientific notation + 6.02e23 + [6.02e+23] + + # integer with scientific notation + 1e-12 + [1e-12] + + # negative decimal number without leading digit + -.100 + [-0.1] + Success + + Failure-test example: + + .. testcode:: + + result = number_expr.run_tests(''' + # stray character + 100Z + # too many '.' + 3.14.159 + ''', failure_tests=True) + print("Success" if result[0] else "Failed!") + + prints: + + .. testoutput:: + :options: +NORMALIZE_WHITESPACE + + + # stray character + 100Z + 100Z + ^ + ParseException: Expected end of text, found 'Z' ... + + # too many '.' + 3.14.159 + 3.14.159 + ^ + ParseException: Expected end of text, found '.' ... + FAIL: Expected end of text, found '.' ... + Success + + Each test string must be on a single line. If you want to test a string that spans multiple + lines, create a test like this: + + .. testcode:: + + expr = Word(alphanums)[1,...] + expr.run_tests(r"this is a test\\n of strings that spans \\n 3 lines") + + .. testoutput:: + :options: +NORMALIZE_WHITESPACE + :hide: + + + this is a test\\n of strings that spans \\n 3 lines + ['this', 'is', 'a', 'test', 'of', 'strings', 'that', 'spans', '3', 'lines'] + + (Note that this is a raw string literal, you must include the leading ``'r'``.) + """ + from .testing import pyparsing_test + + parseAll = parseAll and parse_all + fullDump = fullDump and full_dump + printResults = printResults and print_results + failureTests = failureTests or failure_tests + postParse = postParse or post_parse + if isinstance(tests, str_type): + tests = typing.cast(str, tests) + line_strip = type(tests).strip + tests = [line_strip(test_line) for test_line in tests.rstrip().splitlines()] + comment_specified = comment is not None + if comment_specified: + if isinstance(comment, str_type): + comment = typing.cast(str, comment) + comment = Literal(comment) + comment = typing.cast(ParserElement, comment) + if file is None: + file = sys.stdout + print_ = file.write + + result: Union[ParseResults, Exception] + allResults: list[tuple[str, Union[ParseResults, Exception]]] = [] + comments: list[str] = [] + success = True + NL = Literal(r"\n").add_parse_action(replace_with("\n")).ignore(quoted_string) + BOM = "\ufeff" + nlstr = "\n" + for t in tests: + if comment_specified and comment.matches(t, False) or comments and not t: + comments.append( + pyparsing_test.with_line_numbers(t) if with_line_numbers else t + ) + continue + if not t: + continue + out = [ + f"{nlstr}{nlstr.join(comments) if comments else ''}", + pyparsing_test.with_line_numbers(t) if with_line_numbers else t, + ] + comments.clear() + try: + # convert newline marks to actual newlines, and strip leading BOM if present + t = NL.transform_string(t.lstrip(BOM)) + result = self.parse_string(t, parse_all=parse_all) + except ParseBaseException as pe: + fatal = "(FATAL) " if isinstance(pe, ParseFatalException) else "" + out.append(pe.explain()) + out.append(f"FAIL: {fatal}{pe}") + if ParserElement.verbose_stacktrace: + out.extend(traceback.format_tb(pe.__traceback__)) + success = success and failureTests + result = pe + except Exception as exc: + tag = "FAIL-EXCEPTION" + + # see if this exception was raised in a parse action + tb = exc.__traceback__ + it = iter(traceback.walk_tb(tb)) + for f, line in it: + if (f.f_code.co_filename, line) == pa_call_line_synth: + next_f = next(it)[0] + tag += f" (raised in parse action {next_f.f_code.co_name!r})" + break + + out.append(f"{tag}: {type(exc).__name__}: {exc}") + if ParserElement.verbose_stacktrace: + out.extend(traceback.format_tb(exc.__traceback__)) + success = success and failureTests + result = exc + else: + success = success and not failureTests + if postParse is not None: + try: + pp_value = postParse(t, result) + if pp_value is not None: + if isinstance(pp_value, ParseResults): + out.append(pp_value.dump()) + else: + out.append(str(pp_value)) + else: + out.append(result.dump()) + except Exception as e: + out.append(result.dump(full=fullDump)) + out.append( + f"{postParse.__name__} failed: {type(e).__name__}: {e}" + ) + else: + out.append(result.dump(full=fullDump)) + out.append("") + + if printResults: + print_("\n".join(out)) + + allResults.append((t, result)) + + return success, allResults + + def create_diagram( + self, + output_html: Union[TextIO, Path, str], + vertical: int = 3, + show_results_names: bool = False, + show_groups: bool = False, + embed: bool = False, + show_hidden: bool = False, + **kwargs, + ) -> None: + """ + Create a railroad diagram for the parser. + + Parameters: + + - ``output_html`` (str or file-like object) - output target for generated + diagram HTML + - ``vertical`` (int) - threshold for formatting multiple alternatives vertically + instead of horizontally (default=3) + - ``show_results_names`` - bool flag whether diagram should show annotations for + defined results names + - ``show_groups`` - bool flag whether groups should be highlighted with an unlabeled surrounding box + - ``show_hidden`` - bool flag to show diagram elements for internal elements that are usually hidden + - ``embed`` - bool flag whether generated HTML should omit , , and tags to embed + the resulting HTML in an enclosing HTML source + - ``head`` - str containing additional HTML to insert into the section of the generated code; + can be used to insert custom CSS styling + - ``body`` - str containing additional HTML to insert at the beginning of the section of the + generated code + + Additional diagram-formatting keyword arguments can also be included; + see railroad.Diagram class. + + .. versionchanged:: 3.1.0 + ``embed`` argument added. + """ + + try: + from .diagram import to_railroad, railroad_to_html + except ImportError as ie: + raise Exception( + "must ``pip install pyparsing[diagrams]`` to generate parser railroad diagrams" + ) from ie + + self.streamline() + + railroad = to_railroad( + self, + vertical=vertical, + show_results_names=show_results_names, + show_groups=show_groups, + show_hidden=show_hidden, + diagram_kwargs=kwargs, + ) + if not isinstance(output_html, (str, Path)): + # we were passed a file-like object, just write to it + output_html.write(railroad_to_html(railroad, embed=embed, **kwargs)) + return + + with open(output_html, "w", encoding="utf-8") as diag_file: + diag_file.write(railroad_to_html(railroad, embed=embed, **kwargs)) + + # Compatibility synonyms + # fmt: off + inlineLiteralsUsing = staticmethod(replaced_by_pep8("inlineLiteralsUsing", inline_literals_using)) + setDefaultWhitespaceChars = staticmethod(replaced_by_pep8( + "setDefaultWhitespaceChars", set_default_whitespace_chars + )) + disableMemoization = staticmethod(replaced_by_pep8("disableMemoization", disable_memoization)) + enableLeftRecursion = staticmethod(replaced_by_pep8("enableLeftRecursion", enable_left_recursion)) + enablePackrat = staticmethod(replaced_by_pep8("enablePackrat", enable_packrat)) + resetCache = staticmethod(replaced_by_pep8("resetCache", reset_cache)) + + setResultsName = replaced_by_pep8("setResultsName", set_results_name) + setBreak = replaced_by_pep8("setBreak", set_break) + setParseAction = replaced_by_pep8("setParseAction", set_parse_action) + addParseAction = replaced_by_pep8("addParseAction", add_parse_action) + addCondition = replaced_by_pep8("addCondition", add_condition) + setFailAction = replaced_by_pep8("setFailAction", set_fail_action) + tryParse = replaced_by_pep8("tryParse", try_parse) + parseString = replaced_by_pep8("parseString", parse_string) + scanString = replaced_by_pep8("scanString", scan_string) + transformString = replaced_by_pep8("transformString", transform_string) + searchString = replaced_by_pep8("searchString", search_string) + ignoreWhitespace = replaced_by_pep8("ignoreWhitespace", ignore_whitespace) + leaveWhitespace = replaced_by_pep8("leaveWhitespace", leave_whitespace) + setWhitespaceChars = replaced_by_pep8("setWhitespaceChars", set_whitespace_chars) + parseWithTabs = replaced_by_pep8("parseWithTabs", parse_with_tabs) + setDebugActions = replaced_by_pep8("setDebugActions", set_debug_actions) + setDebug = replaced_by_pep8("setDebug", set_debug) + setName = replaced_by_pep8("setName", set_name) + parseFile = replaced_by_pep8("parseFile", parse_file) + runTests = replaced_by_pep8("runTests", run_tests) + canParseNext = replaced_by_pep8("canParseNext", can_parse_next) + defaultName = default_name + # fmt: on + + +class _PendingSkip(ParserElement): + # internal placeholder class to hold a place were '...' is added to a parser element, + # once another ParserElement is added, this placeholder will be replaced with a SkipTo + def __init__(self, expr: ParserElement, must_skip: bool = False) -> None: + super().__init__() + self.anchor = expr + self.must_skip = must_skip + + def _generateDefaultName(self) -> str: + return str(self.anchor + Empty()).replace("Empty", "...") + + def __add__(self, other) -> ParserElement: + skipper = SkipTo(other).set_name("...")("_skipped*") + if self.must_skip: + + def must_skip(t): + if not t._skipped or t._skipped.as_list() == [""]: + del t[0] + t.pop("_skipped", None) + + def show_skip(t): + if t._skipped.as_list()[-1:] == [""]: + t.pop("_skipped") + t["_skipped"] = f"missing <{self.anchor!r}>" + + return ( + self.anchor + skipper().add_parse_action(must_skip) + | skipper().add_parse_action(show_skip) + ) + other + + return self.anchor + skipper + other + + def __repr__(self): + return self.defaultName + + def parseImpl(self, *args) -> ParseImplReturnType: + raise Exception( + "use of `...` expression without following SkipTo target expression" + ) + + +class Token(ParserElement): + """Abstract :class:`ParserElement` subclass, for defining atomic + matching patterns. + """ + + def __init__(self) -> None: + super().__init__(savelist=False) + + def _generateDefaultName(self) -> str: + return type(self).__name__ + + +class NoMatch(Token): + """ + A token that will never match. + """ + + def __init__(self) -> None: + super().__init__() + self._may_return_empty = True + self.mayIndexError = False + self.errmsg = "Unmatchable token" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + raise ParseException(instring, loc, self.errmsg, self) + + +class Literal(Token): + """ + Token to exactly match a specified string. + + Example: + + .. doctest:: + + >>> Literal('abc').parse_string('abc') + ParseResults(['abc'], {}) + >>> Literal('abc').parse_string('abcdef') + ParseResults(['abc'], {}) + >>> Literal('abc').parse_string('ab') + Traceback (most recent call last): + ParseException: Expected 'abc', found 'ab' (at char 0), (line: 1, col: 1) + + For case-insensitive matching, use :class:`CaselessLiteral`. + + For keyword matching (force word break before and after the matched string), + use :class:`Keyword` or :class:`CaselessKeyword`. + """ + + def __new__(cls, match_string: str = "", **kwargs): + # Performance tuning: select a subclass with optimized parseImpl + if cls is Literal: + matchString: str = deprecate_argument(kwargs, "matchString", "") + + match_string = matchString or match_string + if not match_string: + return super().__new__(Empty) + if len(match_string) == 1: + return super().__new__(_SingleCharLiteral) + + # Default behavior + return super().__new__(cls) + + # Needed to make copy.copy() work correctly if we customize __new__ + def __getnewargs__(self): + return (self.match,) + + def __init__(self, match_string: str = "", **kwargs) -> None: + matchString: str = deprecate_argument(kwargs, "matchString", "") + + super().__init__() + match_string = matchString or match_string + self.match = match_string + self.matchLen = len(match_string) + self.firstMatchChar = match_string[:1] + self.errmsg = f"Expected {self.name}" + self._may_return_empty = False + self.mayIndexError = False + + def _generateDefaultName(self) -> str: + return repr(self.match) + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if instring[loc] == self.firstMatchChar and instring.startswith( + self.match, loc + ): + return loc + self.matchLen, self.match + raise ParseException(instring, loc, self.errmsg, self) + + +class Empty(Literal): + """ + An empty token, will always match. + """ + + def __init__(self, match_string="", *, matchString="") -> None: + super().__init__("") + self._may_return_empty = True + self.mayIndexError = False + + def _generateDefaultName(self) -> str: + return "Empty" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + return loc, [] + + +class _SingleCharLiteral(Literal): + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if instring[loc] == self.firstMatchChar: + return loc + 1, self.match + raise ParseException(instring, loc, self.errmsg, self) + + +ParserElement._literalStringClass = Literal + + +class Keyword(Token): + """ + Token to exactly match a specified string as a keyword, that is, + it must be immediately preceded and followed by whitespace or + non-keyword characters. Compare with :class:`Literal`: + + - ``Literal("if")`` will match the leading ``'if'`` in + ``'ifAndOnlyIf'``. + - ``Keyword("if")`` will not; it will only match the leading + ``'if'`` in ``'if x=1'``, or ``'if(y==2)'`` + + Accepts two optional constructor arguments in addition to the + keyword string: + + - ``ident_chars`` is a string of characters that would be valid + identifier characters, defaulting to all alphanumerics + "_" and + "$" + - ``caseless`` allows case-insensitive matching, default is ``False``. + + Example: + + .. doctest:: + :options: +NORMALIZE_WHITESPACE + + >>> Keyword("start").parse_string("start") + ParseResults(['start'], {}) + >>> Keyword("start").parse_string("starting") + Traceback (most recent call last): + ParseException: Expected Keyword 'start', keyword was immediately + followed by keyword character, found 'ing' (at char 5), (line:1, col:6) + + .. doctest:: + :options: +NORMALIZE_WHITESPACE + + >>> Keyword("start").parse_string("starting").debug() + Traceback (most recent call last): + ParseException: Expected Keyword "start", keyword was immediately + followed by keyword character, found 'ing' ... + + For case-insensitive matching, use :class:`CaselessKeyword`. + """ + + DEFAULT_KEYWORD_CHARS = alphanums + "_$" + + def __init__( + self, + match_string: str = "", + ident_chars: typing.Optional[str] = None, + caseless: bool = False, + **kwargs, + ) -> None: + matchString = deprecate_argument(kwargs, "matchString", "") + identChars = deprecate_argument(kwargs, "identChars", None) + + super().__init__() + identChars = identChars or ident_chars + if identChars is None: + identChars = Keyword.DEFAULT_KEYWORD_CHARS + match_string = matchString or match_string + self.match = match_string + self.matchLen = len(match_string) + self.firstMatchChar = match_string[:1] + if not self.firstMatchChar: + raise ValueError("null string passed to Keyword; use Empty() instead") + self.errmsg = f"Expected {type(self).__name__} {self.name}" + self._may_return_empty = False + self.mayIndexError = False + self.caseless = caseless + if caseless: + self.caselessmatch = match_string.upper() + identChars = identChars.upper() + self.ident_chars = set(identChars) + + @property + def identChars(self) -> set[str]: + """ + .. deprecated:: 3.3.0 + use ident_chars instead. + + Property returning the characters being used as keyword characters for this expression. + """ + return self.ident_chars + + def _generateDefaultName(self) -> str: + return repr(self.match) + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + errmsg = self.errmsg or "" + errloc = loc + if self.caseless: + if instring[loc : loc + self.matchLen].upper() == self.caselessmatch: + if loc == 0 or instring[loc - 1].upper() not in self.identChars: + if ( + loc >= len(instring) - self.matchLen + or instring[loc + self.matchLen].upper() not in self.identChars + ): + return loc + self.matchLen, self.match + + # followed by keyword char + errmsg += ", was immediately followed by keyword character" + errloc = loc + self.matchLen + else: + # preceded by keyword char + errmsg += ", keyword was immediately preceded by keyword character" + errloc = loc - 1 + # else no match just raise plain exception + + elif ( + instring[loc] == self.firstMatchChar + and self.matchLen == 1 + or instring.startswith(self.match, loc) + ): + if loc == 0 or instring[loc - 1] not in self.identChars: + if ( + loc >= len(instring) - self.matchLen + or instring[loc + self.matchLen] not in self.identChars + ): + return loc + self.matchLen, self.match + + # followed by keyword char + errmsg += ", keyword was immediately followed by keyword character" + errloc = loc + self.matchLen + else: + # preceded by keyword char + errmsg += ", keyword was immediately preceded by keyword character" + errloc = loc - 1 + # else no match just raise plain exception + + raise ParseException(instring, errloc, errmsg, self) + + @staticmethod + def set_default_keyword_chars(chars) -> None: + """ + Overrides the default characters used by :class:`Keyword` expressions. + """ + Keyword.DEFAULT_KEYWORD_CHARS = chars + + # Compatibility synonyms + setDefaultKeywordChars = staticmethod( + replaced_by_pep8("setDefaultKeywordChars", set_default_keyword_chars) + ) + + +class CaselessLiteral(Literal): + """ + Token to match a specified string, ignoring case of letters. + Note: the matched results will always be in the case of the given + match string, NOT the case of the input text. + + Example: + + .. doctest:: + + >>> CaselessLiteral("CMD")[1, ...].parse_string("cmd CMD Cmd10") + ParseResults(['CMD', 'CMD', 'CMD'], {}) + + (Contrast with example for :class:`CaselessKeyword`.) + """ + + def __init__(self, match_string: str = "", **kwargs) -> None: + matchString: str = deprecate_argument(kwargs, "matchString", "") + + match_string = matchString or match_string + super().__init__(match_string.upper()) + # Preserve the defining literal. + self.returnString = match_string + self.errmsg = f"Expected {self.name}" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if instring[loc : loc + self.matchLen].upper() == self.match: + return loc + self.matchLen, self.returnString + raise ParseException(instring, loc, self.errmsg, self) + + +class CaselessKeyword(Keyword): + """ + Caseless version of :class:`Keyword`. + + Example: + + .. doctest:: + + >>> CaselessKeyword("CMD")[1, ...].parse_string("cmd CMD Cmd10") + ParseResults(['CMD', 'CMD'], {}) + + (Contrast with example for :class:`CaselessLiteral`.) + """ + + def __init__( + self, match_string: str = "", ident_chars: typing.Optional[str] = None, **kwargs + ) -> None: + matchString: str = deprecate_argument(kwargs, "matchString", "") + identChars: typing.Optional[str] = deprecate_argument( + kwargs, "identChars", None + ) + + identChars = identChars or ident_chars + match_string = matchString or match_string + super().__init__(match_string, identChars, caseless=True) + + +class CloseMatch(Token): + """A variation on :class:`Literal` which matches "close" matches, + that is, strings with at most 'n' mismatching characters. + :class:`CloseMatch` takes parameters: + + - ``match_string`` - string to be matched + - ``caseless`` - a boolean indicating whether to ignore casing when comparing characters + - ``max_mismatches`` - (``default=1``) maximum number of + mismatches allowed to count as a match + + The results from a successful parse will contain the matched text + from the input string and the following named results: + + - ``mismatches`` - a list of the positions within the + match_string where mismatches were found + - ``original`` - the original match_string used to compare + against the input string + + If ``mismatches`` is an empty list, then the match was an exact + match. + + Example: + + .. doctest:: + :options: +NORMALIZE_WHITESPACE + + >>> patt = CloseMatch("ATCATCGAATGGA") + >>> patt.parse_string("ATCATCGAAXGGA") + ParseResults(['ATCATCGAAXGGA'], + {'original': 'ATCATCGAATGGA', 'mismatches': [9]}) + + >>> patt.parse_string("ATCAXCGAAXGGA") + Traceback (most recent call last): + ParseException: Expected 'ATCATCGAATGGA' (with up to 1 mismatches), + found 'ATCAXCGAAXGGA' (at char 0), (line:1, col:1) + + # exact match + >>> patt.parse_string("ATCATCGAATGGA") + ParseResults(['ATCATCGAATGGA'], + {'original': 'ATCATCGAATGGA', 'mismatches': []}) + + # close match allowing up to 2 mismatches + >>> patt = CloseMatch("ATCATCGAATGGA", max_mismatches=2) + >>> patt.parse_string("ATCAXCGAAXGGA") + ParseResults(['ATCAXCGAAXGGA'], + {'original': 'ATCATCGAATGGA', 'mismatches': [4, 9]}) + """ + + def __init__( + self, + match_string: str, + max_mismatches: typing.Optional[int] = None, + *, + caseless=False, + **kwargs, + ) -> None: + maxMismatches: int = deprecate_argument(kwargs, "maxMismatches", 1) + + maxMismatches = max_mismatches if max_mismatches is not None else maxMismatches + super().__init__() + self.match_string = match_string + self.maxMismatches = maxMismatches + self.errmsg = f"Expected {self.match_string!r} (with up to {self.maxMismatches} mismatches)" + self.caseless = caseless + self.mayIndexError = False + self._may_return_empty = False + + def _generateDefaultName(self) -> str: + return f"{type(self).__name__}:{self.match_string!r}" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + start = loc + instrlen = len(instring) + maxloc = start + len(self.match_string) + + if maxloc <= instrlen: + match_string = self.match_string + match_stringloc = 0 + mismatches = [] + maxMismatches = self.maxMismatches + + for match_stringloc, s_m in enumerate( + zip(instring[loc:maxloc], match_string) + ): + src, mat = s_m + if self.caseless: + src, mat = src.lower(), mat.lower() + + if src != mat: + mismatches.append(match_stringloc) + if len(mismatches) > maxMismatches: + break + else: + loc = start + match_stringloc + 1 + results = ParseResults([instring[start:loc]]) + results["original"] = match_string + results["mismatches"] = mismatches + return loc, results + + raise ParseException(instring, loc, self.errmsg, self) + + +class Word(Token): + """Token for matching words composed of allowed character sets. + + Parameters: + + - ``init_chars`` - string of all characters that should be used to + match as a word; "ABC" will match "AAA", "ABAB", "CBAC", etc.; + if ``body_chars`` is also specified, then this is the string of + initial characters + - ``body_chars`` - string of characters that + can be used for matching after a matched initial character as + given in ``init_chars``; if omitted, same as the initial characters + (default=``None``) + - ``min`` - minimum number of characters to match (default=1) + - ``max`` - maximum number of characters to match (default=0) + - ``exact`` - exact number of characters to match (default=0) + - ``as_keyword`` - match as a keyword (default=``False``) + - ``exclude_chars`` - characters that might be + found in the input ``body_chars`` string but which should not be + accepted for matching ;useful to define a word of all + printables except for one or two characters, for instance + (default=``None``) + + :class:`srange` is useful for defining custom character set strings + for defining :class:`Word` expressions, using range notation from + regular expression character sets. + + A common mistake is to use :class:`Word` to match a specific literal + string, as in ``Word("Address")``. Remember that :class:`Word` + uses the string argument to define *sets* of matchable characters. + This expression would match "Add", "AAA", "dAred", or any other word + made up of the characters 'A', 'd', 'r', 'e', and 's'. To match an + exact literal string, use :class:`Literal` or :class:`Keyword`. + + pyparsing includes helper strings for building Words: + + - :attr:`alphas` + - :attr:`nums` + - :attr:`alphanums` + - :attr:`hexnums` + - :attr:`alphas8bit` (alphabetic characters in ASCII range 128-255 + - accented, tilded, umlauted, etc.) + - :attr:`punc8bit` (non-alphabetic characters in ASCII range + 128-255 - currency, symbols, superscripts, diacriticals, etc.) + - :attr:`printables` (any non-whitespace character) + + ``alphas``, ``nums``, and ``printables`` are also defined in several + Unicode sets - see :class:`pyparsing_unicode`. + + Example: + + .. testcode:: + + # a word composed of digits + integer = Word(nums) + # Two equivalent alternate forms: + Word("0123456789") + Word(srange("[0-9]")) + + # a word with a leading capital, and zero or more lowercase + capitalized_word = Word(alphas.upper(), alphas.lower()) + + # hostnames are alphanumeric, with leading alpha, and '-' + hostname = Word(alphas, alphanums + '-') + + # roman numeral + # (not a strict parser, accepts invalid mix of characters) + roman = Word("IVXLCDM") + + # any string of non-whitespace characters, except for ',' + csv_value = Word(printables, exclude_chars=",") + + :raises ValueError: If ``min`` and ``max`` are both specified + and the test ``min <= max`` fails. + + .. versionchanged:: 3.1.0 + Raises :exc:`ValueError` if ``min`` > ``max``. + """ + + def __init__( + self, + init_chars: str = "", + body_chars: typing.Optional[str] = None, + min: int = 1, + max: int = 0, + exact: int = 0, + as_keyword: bool = False, + exclude_chars: typing.Optional[str] = None, + **kwargs, + ) -> None: + initChars: typing.Optional[str] = deprecate_argument(kwargs, "initChars", None) + bodyChars: typing.Optional[str] = deprecate_argument(kwargs, "bodyChars", None) + asKeyword: bool = deprecate_argument(kwargs, "asKeyword", False) + excludeChars: typing.Optional[str] = deprecate_argument( + kwargs, "excludeChars", None + ) + + initChars = initChars or init_chars + bodyChars = bodyChars or body_chars + asKeyword = asKeyword or as_keyword + excludeChars = excludeChars or exclude_chars + super().__init__() + if not initChars: + raise ValueError( + f"invalid {type(self).__name__}, initChars cannot be empty string" + ) + + initChars_set = set(initChars) + if excludeChars: + excludeChars_set = set(excludeChars) + initChars_set -= excludeChars_set + if bodyChars: + bodyChars = "".join(set(bodyChars) - excludeChars_set) + self.init_chars = initChars_set + self.initCharsOrig = "".join(sorted(initChars_set)) + + if bodyChars: + self.bodyChars = set(bodyChars) + self.bodyCharsOrig = "".join(sorted(bodyChars)) + else: + self.bodyChars = initChars_set + self.bodyCharsOrig = self.initCharsOrig + + self.maxSpecified = max > 0 + + if min < 1: + raise ValueError( + "cannot specify a minimum length < 1; use Opt(Word()) if zero-length word is permitted" + ) + + if self.maxSpecified and min > max: + raise ValueError( + f"invalid args, if min and max both specified min must be <= max (min={min}, max={max})" + ) + + self.minLen = min + + if max > 0: + self.maxLen = max + else: + self.maxLen = _MAX_INT + + if exact > 0: + min = max = exact + self.maxLen = exact + self.minLen = exact + + self.errmsg = f"Expected {self.name}" + self.mayIndexError = False + self.asKeyword = asKeyword + if self.asKeyword: + self.errmsg += " as a keyword" + + # see if we can make a regex for this Word + if " " not in (self.initChars | self.bodyChars): + if len(self.initChars) == 1: + re_leading_fragment = re.escape(self.initCharsOrig) + else: + re_leading_fragment = f"[{_collapse_string_to_ranges(self.initChars)}]" + + if self.bodyChars == self.initChars: + if max == 0 and self.minLen == 1: + repeat = "+" + elif max == 1: + repeat = "" + else: + if self.minLen != self.maxLen: + repeat = f"{{{self.minLen},{'' if self.maxLen == _MAX_INT else self.maxLen}}}" + else: + repeat = f"{{{self.minLen}}}" + self.reString = f"{re_leading_fragment}{repeat}" + else: + if max == 1: + re_body_fragment = "" + repeat = "" + else: + re_body_fragment = f"[{_collapse_string_to_ranges(self.bodyChars)}]" + if max == 0 and self.minLen == 1: + repeat = "*" + elif max == 2: + repeat = "?" if min <= 1 else "" + else: + if min != max: + repeat = f"{{{min - 1 if min > 0 else ''},{max - 1 if max > 0 else ''}}}" + else: + repeat = f"{{{min - 1 if min > 0 else ''}}}" + + self.reString = f"{re_leading_fragment}{re_body_fragment}{repeat}" + + if self.asKeyword: + self.reString = rf"\b{self.reString}\b" + + try: + self.re = re.compile(self.reString) + except re.error: + self.re = None # type: ignore[assignment] + else: + self.re_match = self.re.match + self.parseImpl = self.parseImpl_regex # type: ignore[method-assign] + + @property + def initChars(self) -> set[str]: + """ + .. deprecated:: 3.3.0 + use `init_chars` instead. + + Property returning the initial chars to be used when matching this + Word expression. If no body chars were specified, the initial characters + will also be the body characters. + """ + return set(self.init_chars) + + def copy(self) -> Word: + """ + Returns a copy of this expression. + + Generally only used internally by pyparsing. + """ + ret: Word = cast(Word, super().copy()) + if hasattr(self, "re_match"): + ret.re_match = self.re_match + ret.parseImpl = ret.parseImpl_regex # type: ignore[method-assign] + return ret + + def _generateDefaultName(self) -> str: + def charsAsStr(s): + max_repr_len = 16 + s = _collapse_string_to_ranges(s, re_escape=False) + + if len(s) > max_repr_len: + return s[: max_repr_len - 3] + "..." + + return s + + if self.initChars != self.bodyChars: + base = f"W:({charsAsStr(self.initChars)}, {charsAsStr(self.bodyChars)})" + else: + base = f"W:({charsAsStr(self.initChars)})" + + # add length specification + if self.minLen > 1 or self.maxLen != _MAX_INT: + if self.minLen == self.maxLen: + if self.minLen == 1: + return base[2:] + else: + return base + f"{{{self.minLen}}}" + elif self.maxLen == _MAX_INT: + return base + f"{{{self.minLen},...}}" + else: + return base + f"{{{self.minLen},{self.maxLen}}}" + return base + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if instring[loc] not in self.initChars: + raise ParseException(instring, loc, self.errmsg, self) + + start = loc + loc += 1 + instrlen = len(instring) + body_chars: set[str] = self.bodyChars + maxloc = start + self.maxLen + maxloc = min(maxloc, instrlen) + while loc < maxloc and instring[loc] in body_chars: + loc += 1 + + throw_exception = False + if loc - start < self.minLen: + throw_exception = True + elif self.maxSpecified and loc < instrlen and instring[loc] in body_chars: + throw_exception = True + elif self.asKeyword and ( + (start > 0 and instring[start - 1] in body_chars) + or (loc < instrlen and instring[loc] in body_chars) + ): + throw_exception = True + + if throw_exception: + raise ParseException(instring, loc, self.errmsg, self) + + return loc, instring[start:loc] + + def parseImpl_regex(self, instring, loc, do_actions=True) -> ParseImplReturnType: + result = self.re_match(instring, loc) + if not result: + raise ParseException(instring, loc, self.errmsg, self) + + loc = result.end() + return loc, result[0] + + +class Char(Word): + """A short-cut class for defining :class:`Word` ``(characters, exact=1)``, + when defining a match of any single character in a string of + characters. + """ + + def __init__( + self, + charset: str, + as_keyword: bool = False, + exclude_chars: typing.Optional[str] = None, + **kwargs, + ) -> None: + asKeyword: bool = deprecate_argument(kwargs, "asKeyword", False) + excludeChars: typing.Optional[str] = deprecate_argument( + kwargs, "excludeChars", None + ) + + asKeyword = asKeyword or as_keyword + excludeChars = excludeChars or exclude_chars + super().__init__( + charset, exact=1, as_keyword=asKeyword, exclude_chars=excludeChars + ) + + +class Regex(Token): + r"""Token for matching strings that match a given regular + expression. Defined with string specifying the regular expression in + a form recognized by the stdlib Python `re module `_. + If the given regex contains named groups (defined using ``(?P...)``), + these will be preserved as named :class:`ParseResults`. + + If instead of the Python stdlib ``re`` module you wish to use a different RE module + (such as the ``regex`` module), you can do so by building your ``Regex`` object with + a compiled RE that was compiled using ``regex``. + + The parameters ``pattern`` and ``flags`` are passed + to the ``re.compile()`` function as-is. See the Python + `re module `_ module for an + explanation of the acceptable patterns and flags. + + Example: + + .. testcode:: + + realnum = Regex(r"[+-]?\d+\.\d*") + # ref: https://stackoverflow.com/questions/267399/how-do-you-match-only-valid-roman-numerals-with-a-regular-expression + roman = Regex(r"M{0,4}(CM|CD|D?{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})") + + # named fields in a regex will be returned as named results + date = Regex(r'(?P\d{4})-(?P\d\d?)-(?P\d\d?)') + + # the Regex class will accept regular expressions compiled using the + # re module + import re + parser = pp.Regex(re.compile(r'[0-9]')) + """ + + def __init__( + self, + pattern: Any, + flags: Union[re.RegexFlag, int] = 0, + as_group_list: bool = False, + as_match: bool = False, + **kwargs, + ) -> None: + super().__init__() + asGroupList: bool = deprecate_argument(kwargs, "asGroupList", False) + asMatch: bool = deprecate_argument(kwargs, "asMatch", False) + + asGroupList = asGroupList or as_group_list + asMatch = asMatch or as_match + + if isinstance(pattern, str_type): + if not pattern: + raise ValueError("null string passed to Regex; use Empty() instead") + + self._re = None + self._may_return_empty = None # type: ignore [assignment] + self.reString = self.pattern = pattern + + elif hasattr(pattern, "pattern") and hasattr(pattern, "match"): + self._re = pattern + self._may_return_empty = None # type: ignore [assignment] + self.pattern = self.reString = pattern.pattern + + elif callable(pattern): + # defer creating this pattern until we really need it + self.pattern = pattern + self._may_return_empty = None # type: ignore [assignment] + self._re = None + + else: + raise TypeError( + "Regex may only be constructed with a string or a compiled RE object," + " or a callable that takes no arguments and returns a string or a" + " compiled RE object" + ) + + self.flags = flags + self.errmsg = f"Expected {self.name}" + self.mayIndexError = False + self.asGroupList = asGroupList + self.asMatch = asMatch + if self.asGroupList: + self.parseImpl = self.parseImplAsGroupList # type: ignore [method-assign] + if self.asMatch: + self.parseImpl = self.parseImplAsMatch # type: ignore [method-assign] + + def copy(self) -> Regex: + """ + Returns a copy of this expression. + + Generally only used internally by pyparsing. + """ + ret: Regex = cast(Regex, super().copy()) + if self.asGroupList: + ret.parseImpl = ret.parseImplAsGroupList # type: ignore [method-assign] + if self.asMatch: + ret.parseImpl = ret.parseImplAsMatch # type: ignore [method-assign] + return ret + + @cached_property + def re(self) -> re.Pattern: + """ + Property returning the compiled regular expression for this Regex. + + Generally only used internally by pyparsing. + """ + if self._re: + return self._re + + if callable(self.pattern): + # replace self.pattern with the string returned by calling self.pattern() + self.pattern = cast(Callable[[], str], self.pattern)() + + # see if we got a compiled RE back instead of a str - if so, we're done + if hasattr(self.pattern, "pattern") and hasattr(self.pattern, "match"): + self._re = cast(re.Pattern[str], self.pattern) + self.pattern = self.reString = self._re.pattern + return self._re + + try: + self._re = re.compile(self.pattern, self.flags) + except re.error: + raise ValueError(f"invalid pattern ({self.pattern!r}) passed to Regex") + else: + self._may_return_empty = self.re.match("", pos=0) is not None + return self._re + + @cached_property + def re_match(self) -> Callable[[str, int], Any]: + return self.re.match + + @property + def mayReturnEmpty(self): + if self._may_return_empty is None: + # force compile of regex pattern, to set may_return_empty flag + self.re # noqa + return self._may_return_empty + + @mayReturnEmpty.setter + def mayReturnEmpty(self, value): + self._may_return_empty = value + + def _generateDefaultName(self) -> str: + unescaped = repr(self.pattern).replace("\\\\", "\\") + return f"Re:({unescaped})" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + # explicit check for matching past the length of the string; + # this is done because the re module will not complain about + # a match with `pos > len(instring)`, it will just return "" + if loc > len(instring) and self.mayReturnEmpty: + raise ParseException(instring, loc, self.errmsg, self) + + result = self.re_match(instring, loc) + if not result: + raise ParseException(instring, loc, self.errmsg, self) + + loc = result.end() + ret = ParseResults(result[0]) + d = result.groupdict() + + for k, v in d.items(): + ret[k] = v + + return loc, ret + + def parseImplAsGroupList(self, instring, loc, do_actions=True): + if loc > len(instring) and self.mayReturnEmpty: + raise ParseException(instring, loc, self.errmsg, self) + + result = self.re_match(instring, loc) + if not result: + raise ParseException(instring, loc, self.errmsg, self) + + loc = result.end() + ret = result.groups() + return loc, ret + + def parseImplAsMatch(self, instring, loc, do_actions=True): + if loc > len(instring) and self.mayReturnEmpty: + raise ParseException(instring, loc, self.errmsg, self) + + result = self.re_match(instring, loc) + if not result: + raise ParseException(instring, loc, self.errmsg, self) + + loc = result.end() + ret = result + return loc, ret + + def sub(self, repl: str) -> ParserElement: + r""" + Return :class:`Regex` with an attached parse action to transform the parsed + result as if called using `re.sub(expr, repl, string) `_. + + Example: + + .. testcode:: + + make_html = Regex(r"(\w+):(.*?):").sub(r"<\1>\2") + print(make_html.transform_string("h1:main title:")) + + .. testoutput:: + +

main title

+ """ + if self.asGroupList: + raise TypeError("cannot use sub() with Regex(as_group_list=True)") + + if self.asMatch and callable(repl): + raise TypeError( + "cannot use sub() with a callable with Regex(as_match=True)" + ) + + if self.asMatch: + + def pa(tokens): + return tokens[0].expand(repl) + + else: + + def pa(tokens): + return self.re.sub(repl, tokens[0]) + + return self.add_parse_action(pa) + + +class QuotedString(Token): + r""" + Token for matching strings that are delimited by quoting characters. + + Defined with the following parameters: + + - ``quote_char`` - string of one or more characters defining the + quote delimiting string + - ``esc_char`` - character to re_escape quotes, typically backslash + (default= ``None``) + - ``esc_quote`` - special quote sequence to re_escape an embedded quote + string (such as SQL's ``""`` to re_escape an embedded ``"``) + (default= ``None``) + - ``multiline`` - boolean indicating whether quotes can span + multiple lines (default= ``False``) + - ``unquote_results`` - boolean indicating whether the matched text + should be unquoted (default= ``True``) + - ``end_quote_char`` - string of one or more characters defining the + end of the quote delimited string (default= ``None`` => same as + quote_char) + - ``convert_whitespace_escapes`` - convert escaped whitespace + (``'\t'``, ``'\n'``, etc.) to actual whitespace + (default= ``True``) + + .. caution:: ``convert_whitespace_escapes`` has no effect if + ``unquote_results`` is ``False``. + + Example: + + .. doctest:: + + >>> qs = QuotedString('"') + >>> print(qs.search_string('lsjdf "This is the quote" sldjf')) + [['This is the quote']] + >>> complex_qs = QuotedString('{{', end_quote_char='}}') + >>> print(complex_qs.search_string( + ... 'lsjdf {{This is the "quote"}} sldjf')) + [['This is the "quote"']] + >>> sql_qs = QuotedString('"', esc_quote='""') + >>> print(sql_qs.search_string( + ... 'lsjdf "This is the quote with ""embedded"" quotes" sldjf')) + [['This is the quote with "embedded" quotes']] + """ + + ws_map = dict(((r"\t", "\t"), (r"\n", "\n"), (r"\f", "\f"), (r"\r", "\r"))) + + def __init__( + self, + quote_char: str = "", + esc_char: typing.Optional[str] = None, + esc_quote: typing.Optional[str] = None, + multiline: bool = False, + unquote_results: bool = True, + end_quote_char: typing.Optional[str] = None, + convert_whitespace_escapes: bool = True, + **kwargs, + ) -> None: + super().__init__() + quoteChar: str = deprecate_argument(kwargs, "quoteChar", "") + escChar: str = deprecate_argument(kwargs, "escChar", None) + escQuote: str = deprecate_argument(kwargs, "escQuote", None) + unquoteResults: bool = deprecate_argument(kwargs, "unquoteResults", True) + endQuoteChar: typing.Optional[str] = deprecate_argument( + kwargs, "endQuoteChar", None + ) + convertWhitespaceEscapes: bool = deprecate_argument( + kwargs, "convertWhitespaceEscapes", True + ) + + esc_char = escChar or esc_char + esc_quote = escQuote or esc_quote + unquote_results = unquoteResults and unquote_results + end_quote_char = endQuoteChar or end_quote_char + convert_whitespace_escapes = ( + convertWhitespaceEscapes and convert_whitespace_escapes + ) + quote_char = quoteChar or quote_char + + # remove white space from quote chars + quote_char = quote_char.strip() + if not quote_char: + raise ValueError("quote_char cannot be the empty string") + + if end_quote_char is None: + end_quote_char = quote_char + else: + end_quote_char = end_quote_char.strip() + if not end_quote_char: + raise ValueError("end_quote_char cannot be the empty string") + + self.quote_char: str = quote_char + self.quote_char_len: int = len(quote_char) + self.first_quote_char: str = quote_char[0] + self.end_quote_char: str = end_quote_char + self.end_quote_char_len: int = len(end_quote_char) + self.esc_char: str = esc_char or "" + self.has_esc_char: bool = esc_char is not None + self.esc_quote: str = esc_quote or "" + self.unquote_results: bool = unquote_results + self.convert_whitespace_escapes: bool = convert_whitespace_escapes + self.multiline = multiline + self.re_flags = re.RegexFlag(0) + + # fmt: off + # build up re pattern for the content between the quote delimiters + inner_pattern: list[str] = [] + + if esc_quote: + inner_pattern.append(rf"(?:{re.escape(esc_quote)})") + + if esc_char: + inner_pattern.append(rf"(?:{re.escape(esc_char)}.)") + + if len(self.end_quote_char) > 1: + inner_pattern.append( + "(?:" + + "|".join( + f"(?:{re.escape(self.end_quote_char[:i])}(?!{re.escape(self.end_quote_char[i:])}))" + for i in range(len(self.end_quote_char) - 1, 0, -1) + ) + + ")" + ) + + if self.multiline: + self.re_flags |= re.MULTILINE | re.DOTALL + inner_pattern.append( + rf"(?:[^{_escape_regex_range_chars(self.end_quote_char[0])}" + rf"{(_escape_regex_range_chars(self.esc_char) if self.has_esc_char else '')}])" + ) + else: + inner_pattern.append( + rf"(?:[^{_escape_regex_range_chars(self.end_quote_char[0])}\n\r" + rf"{(_escape_regex_range_chars(self.esc_char) if self.has_esc_char else '')}])" + ) + + self.pattern = "".join( + [ + re.escape(self.quote_char), + "(?:", + '|'.join(inner_pattern), + ")*", + re.escape(self.end_quote_char), + ] + ) + + if self.unquote_results: + if self.convert_whitespace_escapes: + self.unquote_scan_re = re.compile( + rf"({'|'.join(re.escape(k) for k in self.ws_map)})" + rf"|(\\[0-7]{3}|\\0|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4})" + rf"|({re.escape(self.esc_char)}.)" + rf"|(\n|.)", + flags=self.re_flags, + ) + else: + self.unquote_scan_re = re.compile( + rf"({re.escape(self.esc_char)}.)" + rf"|(\n|.)", + flags=self.re_flags + ) + # fmt: on + + try: + self.re = re.compile(self.pattern, self.re_flags) + self.reString = self.pattern + self.re_match = self.re.match + except re.error: + raise ValueError(f"invalid pattern {self.pattern!r} passed to Regex") + + self.errmsg = f"Expected {self.name}" + self.mayIndexError = False + self._may_return_empty = True + + def _generateDefaultName(self) -> str: + if self.quote_char == self.end_quote_char and isinstance( + self.quote_char, str_type + ): + return f"string enclosed in {self.quote_char!r}" + + return f"quoted string, starting with {self.quote_char} ending with {self.end_quote_char}" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + # check first character of opening quote to see if that is a match + # before doing the more complicated regex match + result = ( + instring[loc] == self.first_quote_char + and self.re_match(instring, loc) + or None + ) + if not result: + raise ParseException(instring, loc, self.errmsg, self) + + # get ending loc and matched string from regex matching result + loc = result.end() + ret = result[0] + + if self.unquote_results: + # strip off quotes + ret = ret[self.quote_char_len : -self.end_quote_char_len] + + if isinstance(ret, str_type): + # fmt: off + if self.convert_whitespace_escapes: + # as we iterate over matches in the input string, + # collect from whichever match group of the unquote_scan_re + # regex matches (only 1 group will match at any given time) + ret = "".join( + # match group 1 matches \t, \n, etc. + self.ws_map[g] if (g := match[1]) + # match group 2 matches escaped octal, null, hex, and Unicode + # sequences + else _convert_escaped_numerics_to_char(g[1:]) if (g := match[2]) + # match group 3 matches escaped characters + else g[-1] if (g := match[3]) + # match group 4 matches any character + else match[4] + for match in self.unquote_scan_re.finditer(ret) + ) + else: + ret = "".join( + # match group 1 matches escaped characters + g[-1] if (g := match[1]) + # match group 2 matches any character + else match[2] + for match in self.unquote_scan_re.finditer(ret) + ) + # fmt: on + + # replace escaped quotes + if self.esc_quote: + ret = ret.replace(self.esc_quote, self.end_quote_char) + + return loc, ret + + +class CharsNotIn(Token): + """Token for matching words composed of characters *not* in a given + set (will include whitespace in matched characters if not listed in + the provided exclusion set - see example). Defined with string + containing all disallowed characters, and an optional minimum, + maximum, and/or exact length. The default value for ``min`` is + 1 (a minimum value < 1 is not valid); the default values for + ``max`` and ``exact`` are 0, meaning no maximum or exact + length restriction. + + Example: + + .. testcode:: + + # define a comma-separated-value as anything that is not a ',' + csv_value = CharsNotIn(',') + print( + DelimitedList(csv_value).parse_string( + "dkls,lsdkjf,s12 34,@!#,213" + ) + ) + + prints: + + .. testoutput:: + + ['dkls', 'lsdkjf', 's12 34', '@!#', '213'] + """ + + def __init__( + self, not_chars: str = "", min: int = 1, max: int = 0, exact: int = 0, **kwargs + ) -> None: + super().__init__() + notChars: str = deprecate_argument(kwargs, "notChars", "") + + self.skipWhitespace = False + self.notChars = not_chars or notChars + self.notCharsSet = set(self.notChars) + + if min < 1: + raise ValueError( + "cannot specify a minimum length < 1; use" + " Opt(CharsNotIn()) if zero-length char group is permitted" + ) + + self.minLen = min + + if max > 0: + self.maxLen = max + else: + self.maxLen = _MAX_INT + + if exact > 0: + self.maxLen = exact + self.minLen = exact + + self.errmsg = f"Expected {self.name}" + self._may_return_empty = self.minLen == 0 + self.mayIndexError = False + + def _generateDefaultName(self) -> str: + not_chars_str = _collapse_string_to_ranges(self.notChars) + if len(not_chars_str) > 16: + return f"!W:({self.notChars[: 16 - 3]}...)" + else: + return f"!W:({self.notChars})" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + notchars = self.notCharsSet + if instring[loc] in notchars: + raise ParseException(instring, loc, self.errmsg, self) + + start = loc + loc += 1 + maxlen = min(start + self.maxLen, len(instring)) + while loc < maxlen and instring[loc] not in notchars: + loc += 1 + + if loc - start < self.minLen: + raise ParseException(instring, loc, self.errmsg, self) + + return loc, instring[start:loc] + + +class White(Token): + """Special matching class for matching whitespace. Normally, + whitespace is ignored by pyparsing grammars. This class is included + when some whitespace structures are significant. Define with + a string containing the whitespace characters to be matched; default + is ``" \\t\\r\\n"``. Also takes optional ``min``, + ``max``, and ``exact`` arguments, as defined for the + :class:`Word` class. + """ + + whiteStrs = { + " ": "", + "\t": "", + "\n": "", + "\r": "", + "\f": "", + "\u00a0": "", + "\u1680": "", + "\u180e": "", + "\u2000": "", + "\u2001": "", + "\u2002": "", + "\u2003": "", + "\u2004": "", + "\u2005": "", + "\u2006": "", + "\u2007": "", + "\u2008": "", + "\u2009": "", + "\u200a": "", + "\u200b": "", + "\u202f": "", + "\u205f": "", + "\u3000": "", + } + + def __init__( + self, ws: str = " \t\r\n", min: int = 1, max: int = 0, exact: int = 0 + ) -> None: + super().__init__() + self.matchWhite = ws + self.set_whitespace_chars( + "".join(c for c in self.whiteStrs if c not in self.matchWhite), + copy_defaults=True, + ) + # self.leave_whitespace() + self._may_return_empty = True + self.errmsg = f"Expected {self.name}" + + self.minLen = min + + if max > 0: + self.maxLen = max + else: + self.maxLen = _MAX_INT + + if exact > 0: + self.maxLen = exact + self.minLen = exact + + def _generateDefaultName(self) -> str: + return "".join(White.whiteStrs[c] for c in self.matchWhite) + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if instring[loc] not in self.matchWhite: + raise ParseException(instring, loc, self.errmsg, self) + start = loc + loc += 1 + maxloc = start + self.maxLen + maxloc = min(maxloc, len(instring)) + while loc < maxloc and instring[loc] in self.matchWhite: + loc += 1 + + if loc - start < self.minLen: + raise ParseException(instring, loc, self.errmsg, self) + + return loc, instring[start:loc] + + +class PositionToken(Token): + def __init__(self) -> None: + super().__init__() + self._may_return_empty = True + self.mayIndexError = False + + +class GoToColumn(PositionToken): + """Token to advance to a specific column of input text; useful for + tabular report scraping. + """ + + def __init__(self, colno: int) -> None: + super().__init__() + self.col = colno + + def preParse(self, instring: str, loc: int) -> int: + if col(loc, instring) == self.col: + return loc + + instrlen = len(instring) + if self.ignoreExprs: + loc = self._skipIgnorables(instring, loc) + while ( + loc < instrlen + and instring[loc].isspace() + and col(loc, instring) != self.col + ): + loc += 1 + + return loc + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + thiscol = col(loc, instring) + if thiscol > self.col: + raise ParseException(instring, loc, "Text not in expected column", self) + newloc = loc + self.col - thiscol + ret = instring[loc:newloc] + return newloc, ret + + +class LineStart(PositionToken): + r"""Matches if current position is at the logical beginning of a line (after skipping whitespace) + within the parse string + + Example: + + .. testcode:: + + test = '''\ + AAA this line + AAA and this line + AAA and even this line + B AAA but definitely not this line + ''' + + for t in (LineStart() + 'AAA' + rest_of_line).search_string(test): + print(t) + + prints: + + .. testoutput:: + + ['AAA', ' this line'] + ['AAA', ' and this line'] + ['AAA', ' and even this line'] + + """ + + def __init__(self) -> None: + super().__init__() + self.leave_whitespace() + self.orig_whiteChars = set() | self.whiteChars + self.whiteChars.discard("\n") + self.skipper = Empty().set_whitespace_chars(self.whiteChars) + self.set_name("start of line") + + def preParse(self, instring: str, loc: int) -> int: + if loc == 0: + return loc + + ret = self.skipper.preParse(instring, loc) + + if "\n" in self.orig_whiteChars: + while instring[ret : ret + 1] == "\n": + ret = self.skipper.preParse(instring, ret + 1) + + return ret + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if col(loc, instring) == 1: + return loc, [] + raise ParseException(instring, loc, self.errmsg, self) + + +class LineEnd(PositionToken): + """Matches if current position is at the end of a line within the + parse string + """ + + def __init__(self) -> None: + super().__init__() + self.whiteChars.discard("\n") + self.set_whitespace_chars(self.whiteChars, copy_defaults=False) + self.set_name("end of line") + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if loc < len(instring): + if instring[loc] == "\n": + return loc + 1, "\n" + else: + raise ParseException(instring, loc, self.errmsg, self) + elif loc == len(instring): + return loc + 1, [] + else: + raise ParseException(instring, loc, self.errmsg, self) + + +class StringStart(PositionToken): + """Matches if current position is at the beginning of the parse + string + """ + + def __init__(self) -> None: + super().__init__() + self.set_name("start of text") + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + # see if entire string up to here is just whitespace and ignoreables + if loc != 0 and loc != self.preParse(instring, 0): + raise ParseException(instring, loc, self.errmsg, self) + + return loc, [] + + +class StringEnd(PositionToken): + """ + Matches if current position is at the end of the parse string + """ + + def __init__(self) -> None: + super().__init__() + self.set_name("end of text") + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if loc < len(instring): + raise ParseException(instring, loc, self.errmsg, self) + if loc == len(instring): + return loc + 1, [] + if loc > len(instring): + return loc, [] + + raise ParseException(instring, loc, self.errmsg, self) + + +class WordStart(PositionToken): + """Matches if the current position is at the beginning of a + :class:`Word`, and is not preceded by any character in a given + set of ``word_chars`` (default= ``printables``). To emulate the + ``\b`` behavior of regular expressions, use + ``WordStart(alphanums)``. ``WordStart`` will also match at + the beginning of the string being parsed, or at the beginning of + a line. + """ + + def __init__(self, word_chars: str = printables, **kwargs) -> None: + wordChars: str = deprecate_argument(kwargs, "wordChars", printables) + + wordChars = word_chars if wordChars == printables else wordChars + super().__init__() + self.wordChars = set(wordChars) + self.set_name("start of a word") + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if loc != 0: + if ( + instring[loc - 1] in self.wordChars + or instring[loc] not in self.wordChars + ): + raise ParseException(instring, loc, self.errmsg, self) + return loc, [] + + +class WordEnd(PositionToken): + """Matches if the current position is at the end of a :class:`Word`, + and is not followed by any character in a given set of ``word_chars`` + (default= ``printables``). To emulate the ``\b`` behavior of + regular expressions, use ``WordEnd(alphanums)``. ``WordEnd`` + will also match at the end of the string being parsed, or at the end + of a line. + """ + + def __init__(self, word_chars: str = printables, **kwargs) -> None: + wordChars: str = deprecate_argument(kwargs, "wordChars", printables) + + wordChars = word_chars if wordChars == printables else wordChars + super().__init__() + self.wordChars = set(wordChars) + self.skipWhitespace = False + self.set_name("end of a word") + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + instrlen = len(instring) + if instrlen > 0 and loc < instrlen: + if ( + instring[loc] in self.wordChars + or instring[loc - 1] not in self.wordChars + ): + raise ParseException(instring, loc, self.errmsg, self) + return loc, [] + + +class Tag(Token): + """ + A meta-element for inserting a named result into the parsed + tokens that may be checked later in a parse action or while + processing the parsed results. Accepts an optional tag value, + defaulting to `True`. + + Example: + + .. doctest:: + + >>> end_punc = "." | ("!" + Tag("enthusiastic")) + >>> greeting = "Hello," + Word(alphas) + end_punc + + >>> result = greeting.parse_string("Hello, World.") + >>> print(result.dump()) + ['Hello,', 'World', '.'] + + >>> result = greeting.parse_string("Hello, World!") + >>> print(result.dump()) + ['Hello,', 'World', '!'] + - enthusiastic: True + + .. versionadded:: 3.1.0 + """ + + def __init__(self, tag_name: str, value: Any = True) -> None: + super().__init__() + self._may_return_empty = True + self.mayIndexError = False + self.leave_whitespace() + self.tag_name = tag_name + self.tag_value = value + self.add_parse_action(self._add_tag) + self.show_in_diagram = False + + def _add_tag(self, tokens: ParseResults): + tokens[self.tag_name] = self.tag_value + + def _generateDefaultName(self) -> str: + return f"{type(self).__name__}:{self.tag_name}={self.tag_value!r}" + + +class ParseExpression(ParserElement): + """Abstract subclass of ParserElement, for combining and + post-processing parsed tokens. + """ + + def __init__( + self, exprs: typing.Iterable[ParserElement], savelist: bool = False + ) -> None: + super().__init__(savelist) + self.exprs: list[ParserElement] + if isinstance(exprs, _generatorType): + exprs = list(exprs) + + if isinstance(exprs, str_type): + self.exprs = [self._literalStringClass(exprs)] + elif isinstance(exprs, ParserElement): + self.exprs = [exprs] + elif isinstance(exprs, Iterable): + exprs = list(exprs) + # if sequence of strings provided, wrap with Literal + if any(isinstance(expr, str_type) for expr in exprs): + exprs = ( + self._literalStringClass(e) if isinstance(e, str_type) else e + for e in exprs + ) + self.exprs = list(exprs) + else: + try: + self.exprs = list(exprs) + except TypeError: + self.exprs = [exprs] + self.callPreparse = False + + def recurse(self) -> list[ParserElement]: + return self.exprs[:] + + def append(self, other) -> ParserElement: + """ + Add an expression to the list of expressions related to this ParseExpression instance. + """ + self.exprs.append(other) + self._defaultName = None + return self + + def leave_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Extends ``leave_whitespace`` defined in base class, and also invokes ``leave_whitespace`` on + all contained expressions. + """ + super().leave_whitespace(recursive) + + if recursive: + self.exprs = [e.copy() for e in self.exprs] + for e in self.exprs: + e.leave_whitespace(recursive) + return self + + def ignore_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Extends ``ignore_whitespace`` defined in base class, and also invokes ``ignore_whitespace`` on + all contained expressions. + """ + super().ignore_whitespace(recursive) + if recursive: + self.exprs = [e.copy() for e in self.exprs] + for e in self.exprs: + e.ignore_whitespace(recursive) + return self + + def ignore(self, other) -> ParserElement: + """ + Define expression to be ignored (e.g., comments) while doing pattern + matching; may be called repeatedly, to define multiple comment or other + ignorable patterns. + """ + if isinstance(other, Suppress): + if other not in self.ignoreExprs: + super().ignore(other) + for e in self.exprs: + e.ignore(self.ignoreExprs[-1]) + else: + super().ignore(other) + for e in self.exprs: + e.ignore(self.ignoreExprs[-1]) + return self + + def _generateDefaultName(self) -> str: + return f"{type(self).__name__}:({self.exprs})" + + def streamline(self) -> ParserElement: + if self.streamlined: + return self + + super().streamline() + + for e in self.exprs: + e.streamline() + + # collapse nested :class:`And`'s of the form ``And(And(And(a, b), c), d)`` to ``And(a, b, c, d)`` + # but only if there are no parse actions or resultsNames on the nested And's + # (likewise for :class:`Or`'s and :class:`MatchFirst`'s) + if len(self.exprs) == 2: + other = self.exprs[0] + if ( + isinstance(other, self.__class__) + and not other.parseAction + and other.resultsName is None + and not other.debug + ): + self.exprs = other.exprs[:] + [self.exprs[1]] + self._defaultName = None + self._may_return_empty |= other.mayReturnEmpty + self.mayIndexError |= other.mayIndexError + + other = self.exprs[-1] + if ( + isinstance(other, self.__class__) + and not other.parseAction + and other.resultsName is None + and not other.debug + ): + self.exprs = self.exprs[:-1] + other.exprs[:] + self._defaultName = None + self._may_return_empty |= other.mayReturnEmpty + self.mayIndexError |= other.mayIndexError + + self.errmsg = f"Expected {self}" + + return self + + def validate(self, validateTrace=None) -> None: + warnings.warn( + "ParserElement.validate() is deprecated, and should not be used to check for left recursion", + PyparsingDeprecationWarning, + stacklevel=2, + ) + tmp = (validateTrace if validateTrace is not None else [])[:] + [self] + for e in self.exprs: + e.validate(tmp) + self._checkRecursion([]) + + def copy(self) -> ParserElement: + """ + Returns a copy of this expression. + + Generally only used internally by pyparsing. + """ + ret = super().copy() + ret = typing.cast(ParseExpression, ret) + ret.exprs = [e.copy() for e in self.exprs] + return ret + + def _setResultsName(self, name, list_all_matches=False) -> ParserElement: + if not ( + __diag__.warn_ungrouped_named_tokens_in_collection + and Diagnostics.warn_ungrouped_named_tokens_in_collection + not in self.suppress_warnings_ + ): + return super()._setResultsName(name, list_all_matches) + + for e in self.exprs: + if ( + isinstance(e, ParserElement) + and e.resultsName + and ( + Diagnostics.warn_ungrouped_named_tokens_in_collection + not in e.suppress_warnings_ + ) + ): + warning = ( + "warn_ungrouped_named_tokens_in_collection:" + f" setting results name {name!r} on {type(self).__name__} expression" + f" collides with {e.resultsName!r} on contained expression" + ) + warnings.warn(warning, PyparsingDiagnosticWarning, stacklevel=3) + break + + return super()._setResultsName(name, list_all_matches) + + # Compatibility synonyms + # fmt: off + leaveWhitespace = replaced_by_pep8("leaveWhitespace", leave_whitespace) + ignoreWhitespace = replaced_by_pep8("ignoreWhitespace", ignore_whitespace) + # fmt: on + + +class And(ParseExpression): + """ + Requires all given :class:`ParserElement` s to be found in the given order. + Expressions may be separated by whitespace. + May be constructed using the ``'+'`` operator. + May also be constructed using the ``'-'`` operator, which will + suppress backtracking. + + Example: + + .. testcode:: + + integer = Word(nums) + name_expr = Word(alphas)[1, ...] + + expr = And([integer("id"), name_expr("name"), integer("age")]) + # more easily written as: + expr = integer("id") + name_expr("name") + integer("age") + """ + + class _ErrorStop(Empty): + def __init__(self, *args, **kwargs) -> None: + super().__init__(*args, **kwargs) + self.leave_whitespace() + + def _generateDefaultName(self) -> str: + return "-" + + def __init__( + self, + exprs_arg: typing.Iterable[Union[ParserElement, str]], + savelist: bool = True, + ) -> None: + # instantiate exprs as a list, converting strs to ParserElements + exprs: list[ParserElement] = [ + self._literalStringClass(e) if isinstance(e, str) else e for e in exprs_arg + ] + + # convert any Ellipsis elements to SkipTo + if Ellipsis in exprs: + + # Ellipsis cannot be the last element + if exprs[-1] is Ellipsis: + raise Exception("cannot construct And with sequence ending in ...") + + tmp: list[ParserElement] = [] + for cur_expr, next_expr in zip(exprs, exprs[1:]): + if cur_expr is Ellipsis: + tmp.append(SkipTo(next_expr)("_skipped*")) + else: + tmp.append(cur_expr) + + exprs[:-1] = tmp + + super().__init__(exprs, savelist) + if self.exprs: + self._may_return_empty = all(e.mayReturnEmpty for e in self.exprs) + if not isinstance(self.exprs[0], White): + self.set_whitespace_chars( + self.exprs[0].whiteChars, + copy_defaults=self.exprs[0].copyDefaultWhiteChars, + ) + self.skipWhitespace = self.exprs[0].skipWhitespace + else: + self.skipWhitespace = False + else: + self._may_return_empty = True + self.callPreparse = True + + def streamline(self) -> ParserElement: + """ + Collapse `And` expressions like `And(And(And(A, B), C), D)` + to `And(A, B, C, D)`. + + .. doctest:: + + >>> expr = Word("A") + Word("B") + Word("C") + Word("D") + >>> # Using '+' operator creates nested And expression + >>> expr + {{{W:(A) W:(B)} W:(C)} W:(D)} + >>> # streamline simplifies to a single And with multiple expressions + >>> expr.streamline() + {W:(A) W:(B) W:(C) W:(D)} + + Guards against collapsing out expressions that have special features, + such as results names or parse actions. + + Resolves pending Skip commands defined using `...` terms. + """ + # collapse any _PendingSkip's + if self.exprs and any( + isinstance(e, ParseExpression) + and e.exprs + and isinstance(e.exprs[-1], _PendingSkip) + for e in self.exprs[:-1] + ): + deleted_expr_marker = NoMatch() + for i, e in enumerate(self.exprs[:-1]): + if e is deleted_expr_marker: + continue + if ( + isinstance(e, ParseExpression) + and e.exprs + and isinstance(e.exprs[-1], _PendingSkip) + ): + e.exprs[-1] = e.exprs[-1] + self.exprs[i + 1] + self.exprs[i + 1] = deleted_expr_marker + self.exprs = [e for e in self.exprs if e is not deleted_expr_marker] + + super().streamline() + + # link any IndentedBlocks to the prior expression + prev: ParserElement + cur: ParserElement + for prev, cur in zip(self.exprs, self.exprs[1:]): + # traverse cur or any first embedded expr of cur looking for an IndentedBlock + # (but watch out for recursive grammar) + seen = set() + while True: + if id(cur) in seen: + break + seen.add(id(cur)) + if isinstance(cur, IndentedBlock): + prev.add_parse_action( + lambda s, l, t, cur_=cur: setattr( + cur_, "parent_anchor", col(l, s) + ) + ) + break + subs = cur.recurse() + next_first = next(iter(subs), None) + if next_first is None: + break + cur = typing.cast(ParserElement, next_first) + + self._may_return_empty = all(e.mayReturnEmpty for e in self.exprs) + return self + + def parseImpl(self, instring, loc, do_actions=True): + # pass False as callPreParse arg to _parse for first element, since we already + # pre-parsed the string as part of our And pre-parsing + loc, resultlist = self.exprs[0]._parse( + instring, loc, do_actions, callPreParse=False + ) + errorStop = False + for e in self.exprs[1:]: + # if isinstance(e, And._ErrorStop): + if type(e) is And._ErrorStop: + errorStop = True + continue + if errorStop: + try: + loc, exprtokens = e._parse(instring, loc, do_actions) + except ParseSyntaxException: + raise + except ParseBaseException as pe: + pe.__traceback__ = None + raise ParseSyntaxException._from_exception(pe) + except IndexError: + raise ParseSyntaxException( + instring, len(instring), self.errmsg, self + ) + else: + loc, exprtokens = e._parse(instring, loc, do_actions) + resultlist += exprtokens + return loc, resultlist + + def __iadd__(self, other): + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return self.append(other) # And([self, other]) + + def _checkRecursion(self, parseElementList): + subRecCheckList = parseElementList[:] + [self] + for e in self.exprs: + e._checkRecursion(subRecCheckList) + if not e.mayReturnEmpty: + break + + def _generateDefaultName(self) -> str: + inner = " ".join(str(e) for e in self.exprs) + # strip off redundant inner {}'s + while len(inner) > 1 and inner[0 :: len(inner) - 1] == "{}": + inner = inner[1:-1] + return f"{{{inner}}}" + + +class Or(ParseExpression): + """Requires that at least one :class:`ParserElement` is found. If + two expressions match, the expression that matches the longest + string will be used. May be constructed using the ``'^'`` + operator. + + Example: + + .. testcode:: + + # construct Or using '^' operator + + number = Word(nums) ^ Combine(Word(nums) + '.' + Word(nums)) + print(number.search_string("123 3.1416 789")) + + prints: + + .. testoutput:: + + [['123'], ['3.1416'], ['789']] + """ + + def __init__( + self, exprs: typing.Iterable[ParserElement], savelist: bool = False + ) -> None: + super().__init__(exprs, savelist) + if self.exprs: + self._may_return_empty = any(e.mayReturnEmpty for e in self.exprs) + self.skipWhitespace = all(e.skipWhitespace for e in self.exprs) + else: + self._may_return_empty = True + + def streamline(self) -> ParserElement: + super().streamline() + if self.exprs: + self._may_return_empty = any(e.mayReturnEmpty for e in self.exprs) + self.saveAsList = any(e.saveAsList for e in self.exprs) + self.skipWhitespace = all( + e.skipWhitespace and not isinstance(e, White) for e in self.exprs + ) + else: + self.saveAsList = False + return self + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + maxExcLoc = -1 + maxException = None + matches: list[tuple[int, ParserElement]] = [] + fatals: list[ParseFatalException] = [] + if all(e.callPreparse for e in self.exprs): + loc = self.preParse(instring, loc) + for e in self.exprs: + try: + loc2 = e.try_parse(instring, loc, raise_fatal=True) + except ParseFatalException as pfe: + pfe.__traceback__ = None + pfe.parser_element = e + fatals.append(pfe) + maxException = None + maxExcLoc = -1 + except ParseException as err: + if not fatals: + err.__traceback__ = None + if err.loc > maxExcLoc: + maxException = err + maxExcLoc = err.loc + except IndexError: + if len(instring) > maxExcLoc: + maxException = ParseException( + instring, len(instring), e.errmsg, self + ) + maxExcLoc = len(instring) + else: + # save match among all matches, to retry longest to shortest + matches.append((loc2, e)) + + if matches: + # re-evaluate all matches in descending order of length of match, in case attached actions + # might change whether or how much they match of the input. + matches.sort(key=itemgetter(0), reverse=True) + + if not do_actions: + # no further conditions or parse actions to change the selection of + # alternative, so the first match will be the best match + best_expr = matches[0][1] + return best_expr._parse(instring, loc, do_actions) + + longest: tuple[int, typing.Optional[ParseResults]] = -1, None + for loc1, expr1 in matches: + if loc1 <= longest[0]: + # already have a longer match than this one will deliver, we are done + return longest + + try: + loc2, toks = expr1._parse(instring, loc, do_actions) + except ParseException as err: + err.__traceback__ = None + if err.loc > maxExcLoc: + maxException = err + maxExcLoc = err.loc + else: + if loc2 >= loc1: + return loc2, toks + # didn't match as much as before + elif loc2 > longest[0]: + longest = loc2, toks + + if longest != (-1, None): + return longest + + if fatals: + if len(fatals) > 1: + fatals.sort(key=lambda e: -e.loc) + if fatals[0].loc == fatals[1].loc: + fatals.sort(key=lambda e: (-e.loc, -len(str(e.parser_element)))) + max_fatal = fatals[0] + raise max_fatal + + if maxException is not None: + # infer from this check that all alternatives failed at the current position + # so emit this collective error message instead of any single error message + parse_start_loc = self.preParse(instring, loc) + if maxExcLoc == parse_start_loc: + maxException.msg = self.errmsg or "" + raise maxException + + raise ParseException(instring, loc, "no defined alternatives to match", self) + + def __ixor__(self, other): + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return self.append(other) # Or([self, other]) + + def _generateDefaultName(self) -> str: + return f"{{{' ^ '.join(str(e) for e in self.exprs)}}}" + + def _setResultsName(self, name, list_all_matches=False) -> ParserElement: + if ( + __diag__.warn_multiple_tokens_in_named_alternation + and Diagnostics.warn_multiple_tokens_in_named_alternation + not in self.suppress_warnings_ + ): + if any( + isinstance(e, And) + and Diagnostics.warn_multiple_tokens_in_named_alternation + not in e.suppress_warnings_ + for e in self.exprs + ): + warning = ( + "warn_multiple_tokens_in_named_alternation:" + f" setting results name {name!r} on {type(self).__name__} expression" + " will return a list of all parsed tokens in an And alternative," + " in prior versions only the first token was returned; enclose" + " contained argument in Group" + ) + warnings.warn(warning, PyparsingDiagnosticWarning, stacklevel=3) + + return super()._setResultsName(name, list_all_matches) + + +class MatchFirst(ParseExpression): + """Requires that at least one :class:`ParserElement` is found. If + more than one expression matches, the first one listed is the one that will + match. May be constructed using the ``'|'`` operator. + + Example: Construct MatchFirst using '|' operator + + .. doctest:: + + # watch the order of expressions to match + >>> number = Word(nums) | Combine(Word(nums) + '.' + Word(nums)) + >>> print(number.search_string("123 3.1416 789")) # Fail! + [['123'], ['3'], ['1416'], ['789']] + + # put more selective expression first + >>> number = Combine(Word(nums) + '.' + Word(nums)) | Word(nums) + >>> print(number.search_string("123 3.1416 789")) # Better + [['123'], ['3.1416'], ['789']] + """ + + def __init__( + self, exprs: typing.Iterable[ParserElement], savelist: bool = False + ) -> None: + super().__init__(exprs, savelist) + if self.exprs: + self._may_return_empty = any(e.mayReturnEmpty for e in self.exprs) + self.skipWhitespace = all(e.skipWhitespace for e in self.exprs) + else: + self._may_return_empty = True + + def streamline(self) -> ParserElement: + if self.streamlined: + return self + + super().streamline() + if self.exprs: + self.saveAsList = any(e.saveAsList for e in self.exprs) + self._may_return_empty = any(e.mayReturnEmpty for e in self.exprs) + self.skipWhitespace = all( + e.skipWhitespace and not isinstance(e, White) for e in self.exprs + ) + else: + self.saveAsList = False + self._may_return_empty = True + return self + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + maxExcLoc = -1 + maxException = None + + for e in self.exprs: + try: + return e._parse(instring, loc, do_actions) + except ParseFatalException as pfe: + pfe.__traceback__ = None + pfe.parser_element = e + raise + except ParseException as err: + if err.loc > maxExcLoc: + maxException = err + maxExcLoc = err.loc + except IndexError: + if len(instring) > maxExcLoc: + maxException = ParseException( + instring, len(instring), e.errmsg, self + ) + maxExcLoc = len(instring) + + if maxException is not None: + # infer from this check that all alternatives failed at the current position + # so emit this collective error message instead of any individual error message + parse_start_loc = self.preParse(instring, loc) + if maxExcLoc == parse_start_loc: + maxException.msg = self.errmsg or "" + raise maxException + + raise ParseException(instring, loc, "no defined alternatives to match", self) + + def __ior__(self, other): + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return self.append(other) # MatchFirst([self, other]) + + def _generateDefaultName(self) -> str: + return f"{{{' | '.join(str(e) for e in self.exprs)}}}" + + def _setResultsName(self, name, list_all_matches=False) -> ParserElement: + if ( + __diag__.warn_multiple_tokens_in_named_alternation + and Diagnostics.warn_multiple_tokens_in_named_alternation + not in self.suppress_warnings_ + ): + if any( + isinstance(e, And) + and Diagnostics.warn_multiple_tokens_in_named_alternation + not in e.suppress_warnings_ + for e in self.exprs + ): + warning = ( + "warn_multiple_tokens_in_named_alternation:" + f" setting results name {name!r} on {type(self).__name__} expression" + " will return a list of all parsed tokens in an And alternative," + " in prior versions only the first token was returned; enclose" + " contained argument in Group" + ) + warnings.warn(warning, PyparsingDiagnosticWarning, stacklevel=3) + + return super()._setResultsName(name, list_all_matches) + + +class Each(ParseExpression): + """Requires all given :class:`ParserElement` s to be found, but in + any order. Expressions may be separated by whitespace. + + May be constructed using the ``'&'`` operator. + + Example: + + .. testcode:: + + color = one_of("RED ORANGE YELLOW GREEN BLUE PURPLE BLACK WHITE BROWN") + shape_type = one_of("SQUARE CIRCLE TRIANGLE STAR HEXAGON OCTAGON") + integer = Word(nums) + shape_attr = "shape:" + shape_type("shape") + posn_attr = "posn:" + Group(integer("x") + ',' + integer("y"))("posn") + color_attr = "color:" + color("color") + size_attr = "size:" + integer("size") + + # use Each (using operator '&') to accept attributes in any order + # (shape and posn are required, color and size are optional) + shape_spec = shape_attr & posn_attr & Opt(color_attr) & Opt(size_attr) + + shape_spec.run_tests(''' + shape: SQUARE color: BLACK posn: 100, 120 + shape: CIRCLE size: 50 color: BLUE posn: 50,80 + color:GREEN size:20 shape:TRIANGLE posn:20,40 + ''' + ) + + prints: + + .. testoutput:: + :options: +NORMALIZE_WHITESPACE + + + shape: SQUARE color: BLACK posn: 100, 120 + ['shape:', 'SQUARE', 'color:', 'BLACK', 'posn:', ['100', ',', '120']] + - color: 'BLACK' + - posn: ['100', ',', '120'] + - x: '100' + - y: '120' + - shape: 'SQUARE' + ... + + shape: CIRCLE size: 50 color: BLUE posn: 50,80 + ['shape:', 'CIRCLE', 'size:', '50', 'color:', 'BLUE', + 'posn:', ['50', ',', '80']] + - color: 'BLUE' + - posn: ['50', ',', '80'] + - x: '50' + - y: '80' + - shape: 'CIRCLE' + - size: '50' + ... + + color:GREEN size:20 shape:TRIANGLE posn:20,40 + ['color:', 'GREEN', 'size:', '20', 'shape:', 'TRIANGLE', + 'posn:', ['20', ',', '40']] + - color: 'GREEN' + - posn: ['20', ',', '40'] + - x: '20' + - y: '40' + - shape: 'TRIANGLE' + - size: '20' + ... + """ + + def __init__( + self, exprs: typing.Iterable[ParserElement], savelist: bool = True + ) -> None: + super().__init__(exprs, savelist) + if self.exprs: + self._may_return_empty = all(e.mayReturnEmpty for e in self.exprs) + else: + self._may_return_empty = True + self.skipWhitespace = True + self.initExprGroups = True + self.saveAsList = True + + def __iand__(self, other): + if isinstance(other, str_type): + other = self._literalStringClass(other) + if not isinstance(other, ParserElement): + return NotImplemented + return self.append(other) # Each([self, other]) + + def streamline(self) -> ParserElement: + super().streamline() + if self.exprs: + self._may_return_empty = all(e.mayReturnEmpty for e in self.exprs) + else: + self._may_return_empty = True + return self + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if self.initExprGroups: + self.opt1map = dict( + (id(e.expr), e) for e in self.exprs if isinstance(e, Opt) + ) + opt1 = [e.expr for e in self.exprs if isinstance(e, Opt)] + opt2 = [ + e + for e in self.exprs + if e.mayReturnEmpty and not isinstance(e, (Opt, Regex, ZeroOrMore)) + ] + self.optionals = opt1 + opt2 + self.multioptionals = [ + e.expr.set_results_name(e.resultsName, list_all_matches=True) + for e in self.exprs + if isinstance(e, _MultipleMatch) + ] + self.multirequired = [ + e.expr.set_results_name(e.resultsName, list_all_matches=True) + for e in self.exprs + if isinstance(e, OneOrMore) + ] + self.required = [ + e for e in self.exprs if not isinstance(e, (Opt, ZeroOrMore, OneOrMore)) + ] + self.required += self.multirequired + self.initExprGroups = False + + tmpLoc = loc + tmpReqd = self.required[:] + tmpOpt = self.optionals[:] + multis = self.multioptionals[:] + matchOrder: list[ParserElement] = [] + + keepMatching = True + failed: list[ParserElement] = [] + fatals: list[ParseFatalException] = [] + while keepMatching: + tmpExprs = tmpReqd + tmpOpt + multis + failed.clear() + fatals.clear() + for e in tmpExprs: + try: + tmpLoc = e.try_parse(instring, tmpLoc, raise_fatal=True) + except ParseFatalException as pfe: + pfe.__traceback__ = None + pfe.parser_element = e + fatals.append(pfe) + failed.append(e) + except ParseException: + failed.append(e) + else: + matchOrder.append(self.opt1map.get(id(e), e)) + if e in tmpReqd: + tmpReqd.remove(e) + elif e in tmpOpt: + tmpOpt.remove(e) + if len(failed) == len(tmpExprs): + keepMatching = False + + # look for any ParseFatalExceptions + if fatals: + if len(fatals) > 1: + fatals.sort(key=lambda e: -e.loc) + if fatals[0].loc == fatals[1].loc: + fatals.sort(key=lambda e: (-e.loc, -len(str(e.parser_element)))) + max_fatal = fatals[0] + raise max_fatal + + if tmpReqd: + missing = ", ".join([str(e) for e in tmpReqd]) + raise ParseException( + instring, + loc, + f"Missing one or more required elements ({missing})", + ) + + # add any unmatched Opts, in case they have default values defined + matchOrder += [e for e in self.exprs if isinstance(e, Opt) and e.expr in tmpOpt] + + total_results = ParseResults([]) + for e in matchOrder: + loc, results = e._parse(instring, loc, do_actions) + total_results += results + + return loc, total_results + + def _generateDefaultName(self) -> str: + return f"{{{' & '.join(str(e) for e in self.exprs)}}}" + + +class ParseElementEnhance(ParserElement): + """Abstract subclass of :class:`ParserElement`, for combining and + post-processing parsed tokens. + """ + + def __init__(self, expr: Union[ParserElement, str], savelist: bool = False) -> None: + super().__init__(savelist) + if isinstance(expr, str_type): + expr_str = typing.cast(str, expr) + if issubclass(self._literalStringClass, Token): + expr = self._literalStringClass(expr_str) # type: ignore[call-arg] + elif issubclass(type(self), self._literalStringClass): + expr = Literal(expr_str) + else: + expr = self._literalStringClass(Literal(expr_str)) # type: ignore[assignment, call-arg] + expr = typing.cast(ParserElement, expr) + self.expr = expr + if expr is not None: + self.mayIndexError = expr.mayIndexError + self._may_return_empty = expr.mayReturnEmpty + self.set_whitespace_chars( + expr.whiteChars, copy_defaults=expr.copyDefaultWhiteChars + ) + self.skipWhitespace = expr.skipWhitespace + self.saveAsList = expr.saveAsList + self.callPreparse = expr.callPreparse + self.ignoreExprs.extend(expr.ignoreExprs) + + def recurse(self) -> list[ParserElement]: + return [self.expr] if self.expr is not None else [] + + def parseImpl(self, instring, loc, do_actions=True): + if self.expr is None: + raise ParseException(instring, loc, "No expression defined", self) + + try: + return self.expr._parse(instring, loc, do_actions, callPreParse=False) + except ParseSyntaxException: + raise + except ParseBaseException as pbe: + pbe.pstr = pbe.pstr or instring + pbe.loc = pbe.loc or loc + pbe.parser_element = pbe.parser_element or self + if not isinstance(self, Forward) and self.customName is not None: + if self.errmsg: + pbe.msg = self.errmsg + raise + + def leave_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Extends ``leave_whitespace`` defined in base class, and also invokes ``leave_whitespace`` on + the contained expression. + """ + super().leave_whitespace(recursive) + + if recursive: + if self.expr is not None: + self.expr = self.expr.copy() + self.expr.leave_whitespace(recursive) + return self + + def ignore_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Extends ``ignore_whitespace`` defined in base class, and also invokes ``ignore_whitespace`` on + the contained expression. + """ + super().ignore_whitespace(recursive) + + if recursive: + if self.expr is not None: + self.expr = self.expr.copy() + self.expr.ignore_whitespace(recursive) + return self + + def ignore(self, other) -> ParserElement: + """ + Define expression to be ignored (e.g., comments) while doing pattern + matching; may be called repeatedly, to define multiple comment or other + ignorable patterns. + """ + if not isinstance(other, Suppress) or other not in self.ignoreExprs: + super().ignore(other) + if self.expr is not None: + self.expr.ignore(self.ignoreExprs[-1]) + + return self + + def streamline(self) -> ParserElement: + super().streamline() + if self.expr is not None: + self.expr.streamline() + return self + + def _checkRecursion(self, parseElementList): + if self in parseElementList: + raise RecursiveGrammarException(parseElementList + [self]) + subRecCheckList = parseElementList[:] + [self] + if self.expr is not None: + self.expr._checkRecursion(subRecCheckList) + + def validate(self, validateTrace=None) -> None: + warnings.warn( + "ParserElement.validate() is deprecated, and should not be used to check for left recursion", + PyparsingDeprecationWarning, + stacklevel=2, + ) + if validateTrace is None: + validateTrace = [] + tmp = validateTrace[:] + [self] + if self.expr is not None: + self.expr.validate(tmp) + self._checkRecursion([]) + + def _generateDefaultName(self) -> str: + return f"{type(self).__name__}:({self.expr})" + + # Compatibility synonyms + # fmt: off + leaveWhitespace = replaced_by_pep8("leaveWhitespace", leave_whitespace) + ignoreWhitespace = replaced_by_pep8("ignoreWhitespace", ignore_whitespace) + # fmt: on + + +class IndentedBlock(ParseElementEnhance): + """ + Expression to match one or more expressions at a given indentation level. + Useful for parsing text where structure is implied by indentation (like Python source code). + + Example: + + .. testcode:: + + ''' + BNF: + statement ::= assignment_stmt | if_stmt + assignment_stmt ::= identifier '=' rvalue + rvalue ::= identifier | integer + if_stmt ::= 'if' bool_condition block + block ::= ([indent] statement)... + identifier ::= [A..Za..z] + integer ::= [0..9]... + bool_condition ::= 'TRUE' | 'FALSE' + ''' + + IF, TRUE, FALSE = Keyword.using_each("IF TRUE FALSE".split()) + + statement = Forward() + identifier = Char(alphas) + integer = Word(nums).add_parse_action(lambda t: int(t[0])) + rvalue = identifier | integer + assignment_stmt = identifier + "=" + rvalue + + if_stmt = IF + (TRUE | FALSE) + IndentedBlock(statement) + + statement <<= Group(assignment_stmt | if_stmt) + + result = if_stmt.parse_string(''' + IF TRUE + a = 1000 + b = 2000 + IF FALSE + z = 100 + ''') + print(result.dump()) + + .. testoutput:: + + ['IF', 'TRUE', [['a', '=', 1000], ['b', '=', 2000], ['IF', 'FALSE', [['z', '=', 100]]]]] + [0]: + IF + [1]: + TRUE + [2]: + [['a', '=', 1000], ['b', '=', 2000], ['IF', 'FALSE', [['z', '=', 100]]]] + [0]: + ['a', '=', 1000] + [1]: + ['b', '=', 2000] + [2]: + ['IF', 'FALSE', [['z', '=', 100]]] + [0]: + IF + [1]: + FALSE + [2]: + [['z', '=', 100]] + [0]: + ['z', '=', 100] + """ + + class _Indent(Empty): + def __init__(self, ref_col: int) -> None: + super().__init__() + self.errmsg = f"expected indent at column {ref_col}" + self.add_condition(lambda s, l, t: col(l, s) == ref_col) + + class _IndentGreater(Empty): + def __init__(self, ref_col: int) -> None: + super().__init__() + self.errmsg = f"expected indent at column greater than {ref_col}" + self.add_condition(lambda s, l, t: col(l, s) > ref_col) + + def __init__( + self, expr: ParserElement, *, recursive: bool = False, grouped: bool = True + ) -> None: + super().__init__(expr, savelist=True) + # if recursive: + # raise NotImplementedError("IndentedBlock with recursive is not implemented") + self._recursive = recursive + self._grouped = grouped + self.parent_anchor = 1 + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + # advance parse position to non-whitespace by using an Empty() + # this should be the column to be used for all subsequent indented lines + anchor_loc = Empty().preParse(instring, loc) + + # see if self.expr matches at the current location - if not it will raise an exception + # and no further work is necessary + self.expr.try_parse(instring, anchor_loc, do_actions=do_actions) + + indent_col = col(anchor_loc, instring) + peer_detect_expr = self._Indent(indent_col) + + inner_expr = Empty() + peer_detect_expr + self.expr + if self._recursive: + sub_indent = self._IndentGreater(indent_col) + nested_block = IndentedBlock( + self.expr, recursive=self._recursive, grouped=self._grouped + ) + nested_block.set_debug(self.debug) + nested_block.parent_anchor = indent_col + inner_expr += Opt(sub_indent + nested_block) + + inner_expr.set_name(f"inner {hex(id(inner_expr))[-4:].upper()}@{indent_col}") + block = OneOrMore(inner_expr) + + trailing_undent = self._Indent(self.parent_anchor) | StringEnd() + + if self._grouped: + wrapper = Group + else: + wrapper = lambda expr: expr # type: ignore[misc, assignment] + return (wrapper(block) + Optional(trailing_undent)).parseImpl( + instring, anchor_loc, do_actions + ) + + +class AtStringStart(ParseElementEnhance): + """Matches if expression matches at the beginning of the parse + string:: + + AtStringStart(Word(nums)).parse_string("123") + # prints ["123"] + + AtStringStart(Word(nums)).parse_string(" 123") + # raises ParseException + """ + + def __init__(self, expr: Union[ParserElement, str]) -> None: + super().__init__(expr) + self.callPreparse = False + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if loc != 0: + raise ParseException(instring, loc, "not found at string start") + return super().parseImpl(instring, loc, do_actions) + + +class AtLineStart(ParseElementEnhance): + r"""Matches if an expression matches at the beginning of a line within + the parse string + + Example: + + .. testcode:: + + test = '''\ + BBB this line + BBB and this line + BBB but not this one + A BBB and definitely not this one + ''' + + for t in (AtLineStart('BBB') + rest_of_line).search_string(test): + print(t) + + prints: + + .. testoutput:: + + ['BBB', ' this line'] + ['BBB', ' and this line'] + """ + + def __init__(self, expr: Union[ParserElement, str]) -> None: + super().__init__(expr) + self.callPreparse = False + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if col(loc, instring) != 1: + raise ParseException(instring, loc, "not found at line start") + return super().parseImpl(instring, loc, do_actions) + + +class FollowedBy(ParseElementEnhance): + """Lookahead matching of the given parse expression. + ``FollowedBy`` does *not* advance the parsing position within + the input string, it only verifies that the specified parse + expression matches at the current position. ``FollowedBy`` + always returns a null token list. If any results names are defined + in the lookahead expression, those *will* be returned for access by + name. + + Example: + + .. testcode:: + + # use FollowedBy to match a label only if it is followed by a ':' + data_word = Word(alphas) + label = data_word + FollowedBy(':') + attr_expr = Group( + label + Suppress(':') + + OneOrMore(data_word, stop_on=label).set_parse_action(' '.join) + ) + + attr_expr[1, ...].parse_string( + "shape: SQUARE color: BLACK posn: upper left").pprint() + + prints: + + .. testoutput:: + + [['shape', 'SQUARE'], ['color', 'BLACK'], ['posn', 'upper left']] + """ + + def __init__(self, expr: Union[ParserElement, str]) -> None: + super().__init__(expr) + self._may_return_empty = True + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + # by using self._expr.parse and deleting the contents of the returned ParseResults list + # we keep any named results that were defined in the FollowedBy expression + _, ret = self.expr._parse(instring, loc, do_actions=do_actions) + del ret[:] + + return loc, ret + + +class PrecededBy(ParseElementEnhance): + """Lookbehind matching of the given parse expression. + ``PrecededBy`` does not advance the parsing position within the + input string, it only verifies that the specified parse expression + matches prior to the current position. ``PrecededBy`` always + returns a null token list, but if a results name is defined on the + given expression, it is returned. + + Parameters: + + - ``expr`` - expression that must match prior to the current parse + location + - ``retreat`` - (default= ``None``) - (int) maximum number of characters + to lookbehind prior to the current parse location + + If the lookbehind expression is a string, :class:`Literal`, + :class:`Keyword`, or a :class:`Word` or :class:`CharsNotIn` + with a specified exact or maximum length, then the retreat + parameter is not required. Otherwise, retreat must be specified to + give a maximum number of characters to look back from + the current parse position for a lookbehind match. + + Example: + + .. testcode:: + + # VB-style variable names with type prefixes + int_var = PrecededBy("#") + pyparsing_common.identifier + str_var = PrecededBy("$") + pyparsing_common.identifier + """ + + def __init__(self, expr: Union[ParserElement, str], retreat: int = 0) -> None: + super().__init__(expr) + self.expr = self.expr().leave_whitespace() + self._may_return_empty = True + self.mayIndexError = False + self.exact = False + if isinstance(expr, str_type): + expr = typing.cast(str, expr) + retreat = len(expr) + self.exact = True + elif isinstance(expr, (Literal, Keyword)): + retreat = expr.matchLen + self.exact = True + elif isinstance(expr, (Word, CharsNotIn)) and expr.maxLen != _MAX_INT: + retreat = expr.maxLen + self.exact = True + elif isinstance(expr, PositionToken): + retreat = 0 + self.exact = True + self.retreat = retreat + self.errmsg = f"not preceded by {expr}" + self.skipWhitespace = False + self.parseAction.append(lambda s, l, t: t.__delitem__(slice(None, None))) + + def parseImpl(self, instring, loc=0, do_actions=True) -> ParseImplReturnType: + if self.exact: + if loc < self.retreat: + raise ParseException(instring, loc, self.errmsg, self) + start = loc - self.retreat + _, ret = self.expr._parse(instring, start) + return loc, ret + + # retreat specified a maximum lookbehind window, iterate + test_expr = self.expr + StringEnd() + instring_slice = instring[max(0, loc - self.retreat) : loc] + last_expr: ParseBaseException = ParseException(instring, loc, self.errmsg, self) + + for offset in range(1, min(loc, self.retreat + 1) + 1): + try: + # print('trying', offset, instring_slice, repr(instring_slice[loc - offset:])) + _, ret = test_expr._parse(instring_slice, len(instring_slice) - offset) + except ParseBaseException as pbe: + last_expr = pbe + else: + break + else: + raise last_expr + + return loc, ret + + +class Located(ParseElementEnhance): + """ + Decorates a returned token with its starting and ending + locations in the input string. + + This helper adds the following results names: + + - ``locn_start`` - location where matched expression begins + - ``locn_end`` - location where matched expression ends + - ``value`` - the actual parsed results + + Be careful if the input text contains ```` characters, you + may want to call :class:`ParserElement.parse_with_tabs` + + Example: + + .. testcode:: + + wd = Word(alphas) + for match in Located(wd).search_string("ljsdf123lksdjjf123lkkjj1222"): + print(match) + + prints: + + .. testoutput:: + + [0, ['ljsdf'], 5] + [8, ['lksdjjf'], 15] + [18, ['lkkjj'], 23] + """ + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + start = loc + loc, tokens = self.expr._parse(instring, start, do_actions, callPreParse=False) + ret_tokens = ParseResults([start, tokens, loc]) + ret_tokens["locn_start"] = start + ret_tokens["value"] = tokens + ret_tokens["locn_end"] = loc + if self.resultsName: + # must return as a list, so that the name will be attached to the complete group + return loc, [ret_tokens] + else: + return loc, ret_tokens + + +class NotAny(ParseElementEnhance): + """ + Lookahead to disallow matching with the given parse expression. + ``NotAny`` does *not* advance the parsing position within the + input string, it only verifies that the specified parse expression + does *not* match at the current position. Also, ``NotAny`` does + *not* skip over leading whitespace. ``NotAny`` always returns + a null token list. May be constructed using the ``'~'`` operator. + + Example: + + .. testcode:: + + AND, OR, NOT = map(CaselessKeyword, "AND OR NOT".split()) + + # take care not to mistake keywords for identifiers + ident = ~(AND | OR | NOT) + Word(alphas) + boolean_term = Opt(NOT) + ident + + # very crude boolean expression - to support parenthesis groups and + # operation hierarchy, use infix_notation + boolean_expr = boolean_term + ((AND | OR) + boolean_term)[...] + + # integers that are followed by "." are actually floats + integer = Word(nums) + ~Char(".") + """ + + def __init__(self, expr: Union[ParserElement, str]) -> None: + super().__init__(expr) + # do NOT use self.leave_whitespace(), don't want to propagate to exprs + # self.leave_whitespace() + self.skipWhitespace = False + + self._may_return_empty = True + self.errmsg = f"Found unwanted token, {self.expr}" + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if self.expr.can_parse_next(instring, loc, do_actions=do_actions): + raise ParseException(instring, loc, self.errmsg, self) + return loc, [] + + def _generateDefaultName(self) -> str: + return f"~{{{self.expr}}}" + + +class _MultipleMatch(ParseElementEnhance): + def __init__( + self, + expr: Union[str, ParserElement], + stop_on: typing.Optional[Union[ParserElement, str]] = None, + max: typing.Optional[int] = None, + **kwargs, + ) -> None: + stopOn: typing.Optional[Union[ParserElement, str]] = deprecate_argument( + kwargs, "stopOn", None + ) + + super().__init__(expr) + if max is not None and max <= 0: + raise ValueError("max must be greater than 0") + stopOn = stopOn or stop_on + self.saveAsList = True + self.max_count = max + ender = stopOn + if isinstance(ender, str_type): + ender = self._literalStringClass(ender) + self.stopOn(ender) + + def stop_on(self, ender) -> ParserElement: + if isinstance(ender, str_type): + ender = self._literalStringClass(ender) + self.not_ender = ~ender if ender is not None else None + return self + + stopOn = stop_on + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + self_expr_parse = self.expr._parse + self_skip_ignorables = self._skipIgnorables + check_ender = False + if self.not_ender is not None: + try_not_ender = self.not_ender.try_parse + check_ender = True + + # must be at least one (but first see if we are the stopOn sentinel; + # if so, fail) + if check_ender: + try_not_ender(instring, loc) + loc, tokens = self_expr_parse(instring, loc, do_actions) + match_count = 1 + try: + hasIgnoreExprs = not not self.ignoreExprs + while self.max_count is None or match_count < self.max_count: + if check_ender: + try_not_ender(instring, loc) + if hasIgnoreExprs: + preloc = self_skip_ignorables(instring, loc) + else: + preloc = loc + loc, tmptokens = self_expr_parse(instring, preloc, do_actions) + tokens += tmptokens + match_count += 1 + except (ParseException, IndexError): + pass + + return loc, tokens + + def _setResultsName(self, name, list_all_matches=False) -> ParserElement: + if ( + __diag__.warn_ungrouped_named_tokens_in_collection + and Diagnostics.warn_ungrouped_named_tokens_in_collection + not in self.suppress_warnings_ + ): + for e in [self.expr] + self.expr.recurse(): + if ( + isinstance(e, ParserElement) + and e.resultsName + and ( + Diagnostics.warn_ungrouped_named_tokens_in_collection + not in e.suppress_warnings_ + ) + ): + warning = ( + "warn_ungrouped_named_tokens_in_collection:" + f" setting results name {name!r} on {type(self).__name__} expression" + f" collides with {e.resultsName!r} on contained expression" + ) + warnings.warn(warning, PyparsingDiagnosticWarning, stacklevel=3) + break + + return super()._setResultsName(name, list_all_matches) + + +class OneOrMore(_MultipleMatch): + """ + Repetition of one or more of the given expression. + + Parameters: + + - ``expr`` - expression that must match one or more times + - ``stop_on`` - (default= ``None``) - expression for a terminating sentinel + (only required if the sentinel would ordinarily match the repetition + expression) + - ``max`` - (default= ``None``) - maximum number times to match ``expr`` + (does not raise an exception if the expression occurs more than ``max`` + times, simply limits the number of matches to make) + + Example: + + .. doctest:: + + >>> data_word = Word(alphas) + >>> label = data_word + FollowedBy(':') + >>> attr_expr = Group( + ... label + Suppress(':') + ... + OneOrMore(data_word).set_parse_action(' '.join)) + + >>> text = "shape: SQUARE posn: upper left color: BLACK" + + # Fail! read 'posn' as data instead of next label + >>> attr_expr[1, ...].parse_string(text).pprint() + [['shape', 'SQUARE posn']] + + # use stop_on attribute for OneOrMore + # to avoid reading label string as part of the data + >>> attr_expr = Group( + ... label + Suppress(':') + ... + OneOrMore( + ... data_word, stop_on=label).set_parse_action(' '.join)) + >>> OneOrMore(attr_expr).parse_string(text).pprint() # Better + [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'BLACK']] + + # could also be written as + >>> (attr_expr * (1,)).parse_string(text).pprint() + [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'BLACK']] + """ + + def _generateDefaultName(self) -> str: + return f"{{{self.expr}}}..." + + +class ZeroOrMore(_MultipleMatch): + """ + Optional repetition of zero or more of the given expression. + + Parameters: + + - ``expr`` - expression that must match zero or more times + - ``stop_on`` - expression for a terminating sentinel + (only required if the sentinel would ordinarily match the repetition + expression) - (default= ``None``) + + Example: similar to :class:`OneOrMore` + """ + + def __init__( + self, + expr: Union[str, ParserElement], + stop_on: typing.Optional[Union[ParserElement, str]] = None, + max: typing.Optional[int] = None, + **kwargs, + ) -> None: + stopOn: Union[ParserElement, str] = deprecate_argument(kwargs, "stopOn", None) + + super().__init__(expr, stop_on=stopOn or stop_on, max=max) + self._may_return_empty = True + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + try: + return super().parseImpl(instring, loc, do_actions) + except (ParseException, IndexError): + return loc, ParseResults([], name=self.resultsName) + + def _generateDefaultName(self) -> str: + return f"[{self.expr}]..." + + +class DelimitedList(ParseElementEnhance): + """Helper to define a delimited list of expressions - the delimiter + defaults to ','. By default, the list elements and delimiters can + have intervening whitespace, and comments, but this can be + overridden by passing ``combine=True`` in the constructor. If + ``combine`` is set to ``True``, the matching tokens are + returned as a single token string, with the delimiters included; + otherwise, the matching tokens are returned as a list of tokens, + with the delimiters suppressed. + + If ``allow_trailing_delim`` is set to True, then the list may end with + a delimiter. + + Example: + + .. doctest:: + + >>> DelimitedList(Word(alphas)).parse_string("aa,bb,cc") + ParseResults(['aa', 'bb', 'cc'], {}) + >>> DelimitedList(Word(hexnums), delim=':', combine=True + ... ).parse_string("AA:BB:CC:DD:EE") + ParseResults(['AA:BB:CC:DD:EE'], {}) + + .. versionadded:: 3.1.0 + """ + + def __init__( + self, + expr: Union[str, ParserElement], + delim: Union[str, ParserElement] = ",", + combine: bool = False, + min: typing.Optional[int] = None, + max: typing.Optional[int] = None, + *, + allow_trailing_delim: bool = False, + ) -> None: + if isinstance(expr, str_type): + expr = ParserElement._literalStringClass(expr) + expr = typing.cast(ParserElement, expr) + + if min is not None and min < 1: + raise ValueError("min must be greater than 0") + + if max is not None and min is not None and max < min: + raise ValueError("max must be greater than, or equal to min") + + self.content = expr + self.raw_delim = str(delim) + self.delim = delim + self.combine = combine + if not combine: + self.delim = Suppress(delim) if not isinstance(delim, Suppress) else delim + self.min = min or 1 + self.max = max + self.allow_trailing_delim = allow_trailing_delim + + delim_list_expr = self.content + (self.delim + self.content) * ( + self.min - 1, + None if self.max is None else self.max - 1, + ) + if self.allow_trailing_delim: + delim_list_expr += Opt(self.delim) + + if self.combine: + delim_list_expr = Combine(delim_list_expr) + + super().__init__(delim_list_expr, savelist=True) + + def _generateDefaultName(self) -> str: + content_expr = self.content.streamline() + return f"{content_expr} [{self.raw_delim} {content_expr}]..." + + +class _NullToken: + def __bool__(self): + return False + + def __str__(self): + return "" + + +class Opt(ParseElementEnhance): + """ + Optional matching of the given expression. + + :param expr: expression that must match zero or more times + :param default: (optional) - value to be returned + if the optional expression is not found. + + Example: + + .. testcode:: + + # US postal code can be a 5-digit zip, plus optional 4-digit qualifier + zip = Combine(Word(nums, exact=5) + Opt('-' + Word(nums, exact=4))) + zip.run_tests(''' + # traditional ZIP code + 12345 + + # ZIP+4 form + 12101-0001 + + # invalid ZIP + 98765- + ''') + + prints: + + .. testoutput:: + :options: +NORMALIZE_WHITESPACE + + + # traditional ZIP code + 12345 + ['12345'] + + # ZIP+4 form + 12101-0001 + ['12101-0001'] + + # invalid ZIP + 98765- + 98765- + ^ + ParseException: Expected end of text, found '-' (at char 5), (line:1, col:6) + FAIL: Expected end of text, found '-' (at char 5), (line:1, col:6) + """ + + __optionalNotMatched = _NullToken() + + def __init__( + self, expr: Union[ParserElement, str], default: Any = __optionalNotMatched + ) -> None: + super().__init__(expr, savelist=False) + self.saveAsList = self.expr.saveAsList + self.defaultValue = default + self._may_return_empty = True + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + self_expr = self.expr + try: + loc, tokens = self_expr._parse( + instring, loc, do_actions, callPreParse=False + ) + except (ParseException, IndexError): + default_value = self.defaultValue + if default_value is not self.__optionalNotMatched: + if self_expr.resultsName: + tokens = ParseResults([default_value]) + tokens[self_expr.resultsName] = default_value + else: + tokens = [default_value] # type: ignore[assignment] + else: + tokens = [] # type: ignore[assignment] + return loc, tokens + + def _generateDefaultName(self) -> str: + inner = str(self.expr) + # strip off redundant inner {}'s + while len(inner) > 1 and inner[0 :: len(inner) - 1] == "{}": + inner = inner[1:-1] + return f"[{inner}]" + + +Optional = Opt + + +class SkipTo(ParseElementEnhance): + """ + Token for skipping over all undefined text until the matched + expression is found. + + :param expr: target expression marking the end of the data to be skipped + :param include: if ``True``, the target expression is also parsed + (the skipped text and target expression are returned + as a 2-element list) (default= ``False``). + + :param ignore: (default= ``None``) used to define grammars + (typically quoted strings and comments) + that might contain false matches to the target expression + + :param fail_on: (default= ``None``) define expressions that + are not allowed to be included in the skipped test; + if found before the target expression is found, + the :class:`SkipTo` is not a match + + Example: + + .. testcode:: + + report = ''' + Outstanding Issues Report - 1 Jan 2000 + + # | Severity | Description | Days Open + -----+----------+-------------------------------------------+----------- + 101 | Critical | Intermittent system crash | 6 + 94 | Cosmetic | Spelling error on Login ('log|n') | 14 + 79 | Minor | System slow when running too many reports | 47 + ''' + integer = Word(nums) + SEP = Suppress('|') + # use SkipTo to simply match everything up until the next SEP + # - ignore quoted strings, so that a '|' character inside a quoted string does not match + # - parse action will call token.strip() for each matched token, i.e., the description body + string_data = SkipTo(SEP, ignore=quoted_string) + string_data.set_parse_action(token_map(str.strip)) + ticket_expr = (integer("issue_num") + SEP + + string_data("sev") + SEP + + string_data("desc") + SEP + + integer("days_open")) + + for tkt in ticket_expr.search_string(report): + print(tkt.dump()) + + prints: + + .. testoutput:: + + ['101', 'Critical', 'Intermittent system crash', '6'] + - days_open: '6' + - desc: 'Intermittent system crash' + - issue_num: '101' + - sev: 'Critical' + ['94', 'Cosmetic', "Spelling error on Login ('log|n')", '14'] + - days_open: '14' + - desc: "Spelling error on Login ('log|n')" + - issue_num: '94' + - sev: 'Cosmetic' + ['79', 'Minor', 'System slow when running too many reports', '47'] + - days_open: '47' + - desc: 'System slow when running too many reports' + - issue_num: '79' + - sev: 'Minor' + """ + + def __init__( + self, + other: Union[ParserElement, str], + include: bool = False, + ignore: typing.Optional[Union[ParserElement, str]] = None, + fail_on: typing.Optional[Union[ParserElement, str]] = None, + **kwargs, + ) -> None: + failOn: typing.Optional[Union[ParserElement, str]] = deprecate_argument( + kwargs, "failOn", None + ) + + super().__init__(other) + failOn = failOn or fail_on + self.ignoreExpr = ignore + self._may_return_empty = True + self.mayIndexError = False + self.includeMatch = include + self.saveAsList = False + if isinstance(failOn, str_type): + self.failOn = self._literalStringClass(failOn) + else: + self.failOn = failOn + self.errmsg = f"No match found for {self.expr}" + self.ignorer = Empty().leave_whitespace() + self._update_ignorer() + + def _update_ignorer(self): + # rebuild internal ignore expr from current ignore exprs and assigned ignoreExpr + self.ignorer.ignoreExprs.clear() + for e in self.expr.ignoreExprs: + self.ignorer.ignore(e) + if self.ignoreExpr: + self.ignorer.ignore(self.ignoreExpr) + + def ignore(self, expr): + """ + Define expression to be ignored (e.g., comments) while doing pattern + matching; may be called repeatedly, to define multiple comment or other + ignorable patterns. + """ + super().ignore(expr) + self._update_ignorer() + + def parseImpl(self, instring, loc, do_actions=True): + startloc = loc + instrlen = len(instring) + self_expr_parse = self.expr._parse + self_failOn_canParseNext = ( + self.failOn.can_parse_next if self.failOn is not None else None + ) + ignorer_try_parse = self.ignorer.try_parse if self.ignorer.ignoreExprs else None + + tmploc = loc + while tmploc <= instrlen: + if self_failOn_canParseNext is not None: + # break if failOn expression matches + if self_failOn_canParseNext(instring, tmploc): + break + + if ignorer_try_parse is not None: + # advance past ignore expressions + prev_tmploc = tmploc + while 1: + try: + tmploc = ignorer_try_parse(instring, tmploc) + except ParseBaseException: + break + # see if all ignorers matched, but didn't actually ignore anything + if tmploc == prev_tmploc: + break + prev_tmploc = tmploc + + try: + self_expr_parse(instring, tmploc, do_actions=False, callPreParse=False) + except (ParseException, IndexError): + # no match, advance loc in string + tmploc += 1 + else: + # matched skipto expr, done + break + + else: + # ran off the end of the input string without matching skipto expr, fail + raise ParseException(instring, loc, self.errmsg, self) + + # build up return values + loc = tmploc + skiptext = instring[startloc:loc] + skipresult = ParseResults(skiptext) + + if self.includeMatch: + loc, mat = self_expr_parse(instring, loc, do_actions, callPreParse=False) + skipresult += mat + + return loc, skipresult + + +class Forward(ParseElementEnhance): + """ + Forward declaration of an expression to be defined later - + used for recursive grammars, such as algebraic infix notation. + When the expression is known, it is assigned to the ``Forward`` + instance using the ``'<<'`` operator. + + .. Note:: + + Take care when assigning to ``Forward`` not to overlook + precedence of operators. + + Specifically, ``'|'`` has a lower precedence than ``'<<'``, so that:: + + fwd_expr << a | b | c + + will actually be evaluated as:: + + (fwd_expr << a) | b | c + + thereby leaving b and c out as parseable alternatives. + It is recommended that you explicitly group the values + inserted into the :class:`Forward`:: + + fwd_expr << (a | b | c) + + Converting to use the ``'<<='`` operator instead will avoid this problem. + + See :meth:`ParseResults.pprint` for an example of a recursive + parser created using :class:`Forward`. + """ + + def __init__( + self, other: typing.Optional[Union[ParserElement, str]] = None + ) -> None: + self.caller_frame = traceback.extract_stack(limit=2)[0] + super().__init__(other, savelist=False) # type: ignore[arg-type] + self.lshift_line = None + + def __lshift__(self, other) -> Forward: + """ + ``'<<'`` operator overload to "inject" an expression into a :class:`Forward`. + """ + if hasattr(self, "caller_frame"): + del self.caller_frame + if isinstance(other, str_type): + other = self._literalStringClass(other) + + if not isinstance(other, ParserElement): + return NotImplemented + + self.expr = other + self.streamlined = other.streamlined + self.mayIndexError = self.expr.mayIndexError + self._may_return_empty = self.expr.mayReturnEmpty + self.set_whitespace_chars( + self.expr.whiteChars, copy_defaults=self.expr.copyDefaultWhiteChars + ) + self.skipWhitespace = self.expr.skipWhitespace + self.saveAsList = self.expr.saveAsList + self.ignoreExprs.extend(self.expr.ignoreExprs) + self.lshift_line = traceback.extract_stack(limit=2)[-2] # type: ignore[assignment] + return self + + def __ilshift__(self, other) -> Forward: + """ + ``'<<='`` operator overload to "inject" an expression into a :class:`Forward`. + """ + if not isinstance(other, ParserElement): + return NotImplemented + + return self << other + + def __or__(self, other) -> ParserElement: + caller_line = traceback.extract_stack(limit=2)[-2] + if ( + __diag__.warn_on_match_first_with_lshift_operator + and caller_line == self.lshift_line + and Diagnostics.warn_on_match_first_with_lshift_operator + not in self.suppress_warnings_ + ): + warnings.warn( + "warn_on_match_first_with_lshift_operator:" + " using '<<' operator with '|' is probably an error, use '<<='", + PyparsingDiagnosticWarning, + stacklevel=2, + ) + ret = super().__or__(other) + return ret + + def __del__(self): + # see if we are getting dropped because of '=' reassignment of var instead of '<<=' or '<<' + if ( + self.expr is None + and __diag__.warn_on_assignment_to_Forward + and Diagnostics.warn_on_assignment_to_Forward not in self.suppress_warnings_ + ): + warnings.warn_explicit( + "warn_on_assignment_to_Forward:" + " Forward defined here but no expression attached later using '<<=' or '<<'", + UserWarning, + filename=self.caller_frame.filename, + lineno=self.caller_frame.lineno, + ) + + def parseImpl(self, instring, loc, do_actions=True) -> ParseImplReturnType: + if ( + self.expr is None + and __diag__.warn_on_parse_using_empty_Forward + and Diagnostics.warn_on_parse_using_empty_Forward + not in self.suppress_warnings_ + ): + # walk stack until parse_string, scan_string, search_string, or transform_string is found + parse_fns = ( + "parse_string", + "scan_string", + "search_string", + "transform_string", + ) + tb = traceback.extract_stack(limit=200) + for i, frm in enumerate(reversed(tb), start=1): + if frm.name in parse_fns: + stacklevel = i + 1 + break + else: + stacklevel = 2 + warnings.warn( + "warn_on_parse_using_empty_Forward:" + " Forward expression was never assigned a value, will not parse any input", + PyparsingDiagnosticWarning, + stacklevel=stacklevel, + ) + if not ParserElement._left_recursion_enabled: + return super().parseImpl(instring, loc, do_actions) + + # ## Bounded Recursion algorithm ## + # Recursion only needs to be processed at ``Forward`` elements, since they are + # the only ones that can actually refer to themselves. The general idea is + # to handle recursion stepwise: We start at no recursion, then recurse once, + # recurse twice, ..., until more recursion offers no benefit (we hit the bound). + # + # The "trick" here is that each ``Forward`` gets evaluated in two contexts + # - to *match* a specific recursion level, and + # - to *search* the bounded recursion level + # and the two run concurrently. The *search* must *match* each recursion level + # to find the best possible match. This is handled by a memo table, which + # provides the previous match to the next level match attempt. + # + # See also "Left Recursion in Parsing Expression Grammars", Medeiros et al. + # + # There is a complication since we not only *parse* but also *transform* via + # actions: We do not want to run the actions too often while expanding. Thus, + # we expand using `do_actions=False` and only run `do_actions=True` if the next + # recursion level is acceptable. + with ParserElement.recursion_lock: + memo = ParserElement.recursion_memos + try: + # we are parsing at a specific recursion expansion - use it as-is + prev_loc, prev_result = memo[loc, self, do_actions] + if isinstance(prev_result, Exception): + raise prev_result + return prev_loc, prev_result.copy() + except KeyError: + act_key = (loc, self, True) + peek_key = (loc, self, False) + # we are searching for the best recursion expansion - keep on improving + # both `do_actions` cases must be tracked separately here! + prev_loc, prev_peek = memo[peek_key] = ( + loc - 1, + ParseException( + instring, loc, "Forward recursion without base case", self + ), + ) + if do_actions: + memo[act_key] = memo[peek_key] + while True: + try: + new_loc, new_peek = super().parseImpl(instring, loc, False) + except ParseException: + # we failed before getting any match - do not hide the error + if isinstance(prev_peek, Exception): + raise + new_loc, new_peek = prev_loc, prev_peek + # the match did not get better: we are done + if new_loc <= prev_loc: + if do_actions: + # replace the match for do_actions=False as well, + # in case the action did backtrack + prev_loc, prev_result = memo[peek_key] = memo[act_key] + del memo[peek_key], memo[act_key] + return prev_loc, copy.copy(prev_result) + del memo[peek_key] + return prev_loc, copy.copy(prev_peek) + # the match did get better: see if we can improve further + if do_actions: + try: + memo[act_key] = super().parseImpl(instring, loc, True) + except ParseException as e: + memo[peek_key] = memo[act_key] = (new_loc, e) + raise + prev_loc, prev_peek = memo[peek_key] = new_loc, new_peek + + def leave_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Extends ``leave_whitespace`` defined in base class. + """ + self.skipWhitespace = False + return self + + def ignore_whitespace(self, recursive: bool = True) -> ParserElement: + """ + Extends ``ignore_whitespace`` defined in base class. + """ + self.skipWhitespace = True + return self + + def streamline(self) -> ParserElement: + if not self.streamlined: + self.streamlined = True + if self.expr is not None: + self.expr.streamline() + return self + + def validate(self, validateTrace=None) -> None: + warnings.warn( + "ParserElement.validate() is deprecated, and should not be used to check for left recursion", + PyparsingDeprecationWarning, + stacklevel=2, + ) + if validateTrace is None: + validateTrace = [] + + if self not in validateTrace: + tmp = validateTrace[:] + [self] + if self.expr is not None: + self.expr.validate(tmp) + self._checkRecursion([]) + + def _generateDefaultName(self) -> str: + # Avoid infinite recursion by setting a temporary _defaultName + save_default_name = self._defaultName + self._defaultName = ": ..." + + # Use the string representation of main expression. + try: + if self.expr is not None: + ret_string = str(self.expr)[:1000] + else: + ret_string = "None" + except Exception: + ret_string = "..." + + self._defaultName = save_default_name + return f"{type(self).__name__}: {ret_string}" + + def copy(self) -> ParserElement: + """ + Returns a copy of this expression. + + Generally only used internally by pyparsing. + """ + if self.expr is not None: + return super().copy() + else: + ret = Forward() + ret <<= self + return ret + + def _setResultsName(self, name, list_all_matches=False) -> ParserElement: + # fmt: off + if ( + __diag__.warn_name_set_on_empty_Forward + and Diagnostics.warn_name_set_on_empty_Forward not in self.suppress_warnings_ + and self.expr is None + ): + warning = ( + "warn_name_set_on_empty_Forward:" + f" setting results name {name!r} on {type(self).__name__} expression" + " that has no contained expression" + ) + warnings.warn(warning, PyparsingDiagnosticWarning, stacklevel=3) + # fmt: on + + return super()._setResultsName(name, list_all_matches) + + # Compatibility synonyms + # fmt: off + leaveWhitespace = replaced_by_pep8("leaveWhitespace", leave_whitespace) + ignoreWhitespace = replaced_by_pep8("ignoreWhitespace", ignore_whitespace) + # fmt: on + + +class TokenConverter(ParseElementEnhance): + """ + Abstract subclass of :class:`ParseElementEnhance`, for converting parsed results. + """ + + def __init__(self, expr: Union[ParserElement, str], savelist=False) -> None: + super().__init__(expr) # , savelist) + self.saveAsList = False + + +class Combine(TokenConverter): + """Converter to concatenate all matching tokens to a single string. + By default, the matching patterns must also be contiguous in the + input string; this can be disabled by specifying + ``'adjacent=False'`` in the constructor. + + Example: + + .. doctest:: + + >>> real = Word(nums) + '.' + Word(nums) + >>> print(real.parse_string('3.1416')) + ['3', '.', '1416'] + + >>> # will also erroneously match the following + >>> print(real.parse_string('3. 1416')) + ['3', '.', '1416'] + + >>> real = Combine(Word(nums) + '.' + Word(nums)) + >>> print(real.parse_string('3.1416')) + ['3.1416'] + + >>> # no match when there are internal spaces + >>> print(real.parse_string('3. 1416')) + Traceback (most recent call last): + ParseException: Expected W:(0123...) + """ + + def __init__( + self, + expr: ParserElement, + join_string: str = "", + adjacent: bool = True, + *, + joinString: typing.Optional[str] = None, + ) -> None: + super().__init__(expr) + joinString = joinString if joinString is not None else join_string + # suppress whitespace-stripping in contained parse expressions, but re-enable it on the Combine itself + if adjacent: + self.leave_whitespace() + self.adjacent = adjacent + self.skipWhitespace = True + self.joinString = joinString + self.callPreparse = True + + def ignore(self, other) -> ParserElement: + """ + Define expression to be ignored (e.g., comments) while doing pattern + matching; may be called repeatedly, to define multiple comment or other + ignorable patterns. + """ + if self.adjacent: + ParserElement.ignore(self, other) + else: + super().ignore(other) + return self + + def postParse(self, instring, loc, tokenlist): + retToks = tokenlist.copy() + del retToks[:] + retToks += ParseResults( + ["".join(tokenlist._asStringList(self.joinString))], modal=self.modalResults + ) + + if self.resultsName and retToks.haskeys(): + return [retToks] + else: + return retToks + + +class Group(TokenConverter): + """Converter to return the matched tokens as a list - useful for + returning tokens of :class:`ZeroOrMore` and :class:`OneOrMore` expressions. + + The optional ``aslist`` argument when set to True will return the + parsed tokens as a Python list instead of a pyparsing ParseResults. + + Example: + + .. doctest:: + + >>> ident = Word(alphas) + >>> num = Word(nums) + >>> term = ident | num + >>> func = ident + Opt(DelimitedList(term)) + >>> print(func.parse_string("fn a, b, 100")) + ['fn', 'a', 'b', '100'] + + >>> func = ident + Group(Opt(DelimitedList(term))) + >>> print(func.parse_string("fn a, b, 100")) + ['fn', ['a', 'b', '100']] + """ + + def __init__(self, expr: ParserElement, aslist: bool = False) -> None: + super().__init__(expr) + self.saveAsList = True + self._asPythonList = aslist + + def postParse(self, instring, loc, tokenlist): + if self._asPythonList: + return ParseResults.List( + tokenlist.as_list() + if isinstance(tokenlist, ParseResults) + else list(tokenlist) + ) + + return [tokenlist] + + +class Dict(TokenConverter): + """Converter to return a repetitive expression as a list, but also + as a dictionary. Each element can also be referenced using the first + token in the expression as its key. Useful for tabular report + scraping when the first column can be used as a item key. + + The optional ``asdict`` argument when set to True will return the + parsed tokens as a Python dict instead of a pyparsing ParseResults. + + Example: + + .. doctest:: + + >>> data_word = Word(alphas) + >>> label = data_word + FollowedBy(':') + + >>> attr_expr = ( + ... label + Suppress(':') + ... + OneOrMore(data_word, stop_on=label) + ... .set_parse_action(' '.join) + ... ) + + >>> text = "shape: SQUARE posn: upper left color: light blue texture: burlap" + + >>> # print attributes as plain groups + >>> print(attr_expr[1, ...].parse_string(text).dump()) + ['shape', 'SQUARE', 'posn', 'upper left', 'color', 'light blue', 'texture', 'burlap'] + + # instead of OneOrMore(expr), parse using Dict(Group(expr)[1, ...]) + # Dict will auto-assign names. + >>> result = Dict(Group(attr_expr)[1, ...]).parse_string(text) + >>> print(result.dump()) + [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']] + - color: 'light blue' + - posn: 'upper left' + - shape: 'SQUARE' + - texture: 'burlap' + [0]: + ['shape', 'SQUARE'] + [1]: + ['posn', 'upper left'] + [2]: + ['color', 'light blue'] + [3]: + ['texture', 'burlap'] + + # access named fields as dict entries, or output as dict + >>> print(result['shape']) + SQUARE + >>> print(result.as_dict()) + {'shape': 'SQUARE', 'posn': 'upper left', 'color': 'light blue', 'texture': 'burlap'} + + See more examples at :class:`ParseResults` of accessing fields by results name. + """ + + def __init__(self, expr: ParserElement, asdict: bool = False) -> None: + super().__init__(expr) + self.saveAsList = True + self._asPythonDict = asdict + + def postParse(self, instring, loc, tokenlist): + for i, tok in enumerate(tokenlist): + if len(tok) == 0: + continue + + ikey = tok[0] + if isinstance(ikey, int): + ikey = str(ikey).strip() + + if len(tok) == 1: + tokenlist[ikey] = _ParseResultsWithOffset("", i) + + elif len(tok) == 2 and not isinstance(tok[1], ParseResults): + tokenlist[ikey] = _ParseResultsWithOffset(tok[1], i) + + else: + try: + dictvalue = tok.copy() # ParseResults(i) + except Exception: + exc = TypeError( + "could not extract dict values from parsed results" + " - Dict expression must contain Grouped expressions" + ) + raise exc from None + + del dictvalue[0] + + if len(dictvalue) != 1 or ( + isinstance(dictvalue, ParseResults) and dictvalue.haskeys() + ): + tokenlist[ikey] = _ParseResultsWithOffset(dictvalue, i) + else: + tokenlist[ikey] = _ParseResultsWithOffset(dictvalue[0], i) + + if self._asPythonDict: + return [tokenlist.as_dict()] if self.resultsName else tokenlist.as_dict() + + return [tokenlist] if self.resultsName else tokenlist + + +class Suppress(TokenConverter): + """Converter for ignoring the results of a parsed expression. + + Example: + + .. doctest:: + + >>> source = "a, b, c,d" + >>> wd = Word(alphas) + >>> wd_list1 = wd + (',' + wd)[...] + >>> print(wd_list1.parse_string(source)) + ['a', ',', 'b', ',', 'c', ',', 'd'] + + # often, delimiters that are useful during parsing are just in the + # way afterward - use Suppress to keep them out of the parsed output + >>> wd_list2 = wd + (Suppress(',') + wd)[...] + >>> print(wd_list2.parse_string(source)) + ['a', 'b', 'c', 'd'] + + # Skipped text (using '...') can be suppressed as well + >>> source = "lead in START relevant text END trailing text" + >>> start_marker = Keyword("START") + >>> end_marker = Keyword("END") + >>> find_body = Suppress(...) + start_marker + ... + end_marker + >>> print(find_body.parse_string(source)) + ['START', 'relevant text ', 'END'] + + (See also :class:`DelimitedList`.) + """ + + def __init__(self, expr: Union[ParserElement, str], savelist: bool = False) -> None: + if expr is ...: + expr = _PendingSkip(NoMatch()) + super().__init__(expr) + + def __add__(self, other) -> ParserElement: + if isinstance(self.expr, _PendingSkip): + return Suppress(SkipTo(other)) + other + + return super().__add__(other) + + def __sub__(self, other) -> ParserElement: + if isinstance(self.expr, _PendingSkip): + return Suppress(SkipTo(other)) - other + + return super().__sub__(other) + + def postParse(self, instring, loc, tokenlist): + return [] + + def suppress(self) -> ParserElement: + return self + + +# XXX: Example needs to be re-done for updated output +def trace_parse_action(f: ParseAction) -> ParseAction: + """Decorator for debugging parse actions. + + When the parse action is called, this decorator will print + ``">> entering method-name(line:, , )"``. + When the parse action completes, the decorator will print + ``"<<"`` followed by the returned value, or any exception that the parse action raised. + + Example: + + .. testsetup:: stderr + + import sys + sys.stderr = sys.stdout + + .. testcleanup:: stderr + + sys.stderr = sys.__stderr__ + + .. testcode:: stderr + + wd = Word(alphas) + + @trace_parse_action + def remove_duplicate_chars(tokens): + return ''.join(sorted(set(''.join(tokens)))) + + wds = wd[1, ...].set_parse_action(remove_duplicate_chars) + print(wds.parse_string("slkdjs sld sldd sdlf sdljf")) + + prints: + + .. testoutput:: stderr + :options: +NORMALIZE_WHITESPACE + + >>entering remove_duplicate_chars(line: 'slkdjs sld sldd sdlf sdljf', + 0, ParseResults(['slkdjs', 'sld', 'sldd', 'sdlf', 'sdljf'], {})) + < 3: + thisFunc = f"{type(paArgs[0]).__name__}.{thisFunc}" + sys.stderr.write(f">>entering {thisFunc}(line: {line(l, s)!r}, {l}, {t!r})\n") + try: + ret = f(*paArgs) + except Exception as exc: + sys.stderr.write( + f"< str: + r"""Helper to easily define string ranges for use in :class:`Word` + construction. Borrows syntax from regexp ``'[]'`` string range + definitions:: + + srange("[0-9]") -> "0123456789" + srange("[a-z]") -> "abcdefghijklmnopqrstuvwxyz" + srange("[a-z$_]") -> "abcdefghijklmnopqrstuvwxyz$_" + + The input string must be enclosed in []'s, and the returned string + is the expanded character set joined into a single string. The + values enclosed in the []'s may be: + + - a single character + - an escaped character with a leading backslash (such as ``\-`` + or ``\]``) + - an escaped hex character with a leading ``'\x'`` + (``\x21``, which is a ``'!'`` character) (``\0x##`` + is also supported for backwards compatibility) + - an escaped octal character with a leading ``'\0'`` + (``\041``, which is a ``'!'`` character) + - a range of any of the above, separated by a dash (``'a-z'``, + etc.) + - any combination of the above (``'aeiouy'``, + ``'a-zA-Z0-9_$'``, etc.) + """ + + def _expanded(p): + if isinstance(p, ParseResults): + yield from (chr(c) for c in range(ord(p[0]), ord(p[1]) + 1)) + else: + yield p + + try: + return "".join( + [c for part in _reBracketExpr.parse_string(s).body for c in _expanded(part)] + ) + except Exception as e: + return "" + + +def token_map(func, *args) -> ParseAction: + """Helper to define a parse action by mapping a function to all + elements of a :class:`ParseResults` list. If any additional args are passed, + they are forwarded to the given function as additional arguments + after the token, as in + ``hex_integer = Word(hexnums).set_parse_action(token_map(int, 16))``, + which will convert the parsed data to an integer using base 16. + + Example (compare the last to example in :class:`ParserElement.transform_string`:: + + hex_ints = Word(hexnums)[1, ...].set_parse_action(token_map(int, 16)) + hex_ints.run_tests(''' + 00 11 22 aa FF 0a 0d 1a + ''') + + upperword = Word(alphas).set_parse_action(token_map(str.upper)) + upperword[1, ...].run_tests(''' + my kingdom for a horse + ''') + + wd = Word(alphas).set_parse_action(token_map(str.title)) + wd[1, ...].set_parse_action(' '.join).run_tests(''' + now is the winter of our discontent made glorious summer by this sun of york + ''') + + prints:: + + 00 11 22 aa FF 0a 0d 1a + [0, 17, 34, 170, 255, 10, 13, 26] + + my kingdom for a horse + ['MY', 'KINGDOM', 'FOR', 'A', 'HORSE'] + + now is the winter of our discontent made glorious summer by this sun of york + ['Now Is The Winter Of Our Discontent Made Glorious Summer By This Sun Of York'] + """ + + def pa(s, l, t): + return [func(tokn, *args) for tokn in t] + + func_name = getattr(func, "__name__", getattr(func, "__class__").__name__) + pa.__name__ = func_name + + return pa + + +def autoname_elements() -> None: + """ + Utility to simplify mass-naming of parser elements, for + generating railroad diagram with named subdiagrams. + """ + + # guard against _getframe not being implemented in the current Python + getframe_fn = getattr(sys, "_getframe", lambda _: None) + calling_frame = getframe_fn(1) + if calling_frame is None: + return + + # find all locals in the calling frame that are ParserElements + calling_frame = typing.cast(types.FrameType, calling_frame) + for name, var in calling_frame.f_locals.items(): + # if no custom name defined, set the name to the var name + if isinstance(var, ParserElement) and not var.customName: + var.set_name(name) + + +dbl_quoted_string = Combine( + Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*') + '"' +).set_name("string enclosed in double quotes") + +sgl_quoted_string = Combine( + Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*") + "'" +).set_name("string enclosed in single quotes") + +quoted_string = Combine( + (Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*') + '"').set_name( + "double quoted string" + ) + | (Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*") + "'").set_name( + "single quoted string" + ) +).set_name("quoted string using single or double quotes") + +# XXX: Is there some way to make this show up in API docs? +# .. versionadded:: 3.1.0 +python_quoted_string = Combine( + (Regex(r'"""(?:[^"\\]|""(?!")|"(?!"")|\\.)*', flags=re.MULTILINE) + '"""').set_name( + "multiline double quoted string" + ) + ^ ( + Regex(r"'''(?:[^'\\]|''(?!')|'(?!'')|\\.)*", flags=re.MULTILINE) + "'''" + ).set_name("multiline single quoted string") + ^ (Regex(r'"(?:[^"\n\r\\]|(?:\\")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*') + '"').set_name( + "double quoted string" + ) + ^ (Regex(r"'(?:[^'\n\r\\]|(?:\\')|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*") + "'").set_name( + "single quoted string" + ) +).set_name("Python quoted string") + +unicode_string = Combine("u" + quoted_string.copy()).set_name("unicode string literal") + + +alphas8bit = srange(r"[\0xc0-\0xd6\0xd8-\0xf6\0xf8-\0xff]") +punc8bit = srange(r"[\0xa1-\0xbf\0xd7\0xf7]") + +# build list of built-in expressions, for future reference if a global default value +# gets updated +_builtin_exprs: list[ParserElement] = [ + v for v in vars().values() if isinstance(v, ParserElement) +] + +# Compatibility synonyms +# fmt: off +sglQuotedString = sgl_quoted_string +dblQuotedString = dbl_quoted_string +quotedString = quoted_string +unicodeString = unicode_string +lineStart = line_start +lineEnd = line_end +stringStart = string_start +stringEnd = string_end +nullDebugAction = replaced_by_pep8("nullDebugAction", null_debug_action) +traceParseAction = replaced_by_pep8("traceParseAction", trace_parse_action) +conditionAsParseAction = replaced_by_pep8("conditionAsParseAction", condition_as_parse_action) +tokenMap = replaced_by_pep8("tokenMap", token_map) +# fmt: on diff --git a/shared/package-files/e8/e848f3c9d665ba02337e210d2ad0b8c9c67635c92df19420e6fe83ead5f54a25/blob b/shared/package-files/e8/e848f3c9d665ba02337e210d2ad0b8c9c67635c92df19420e6fe83ead5f54a25/blob new file mode 100644 index 0000000000000000000000000000000000000000..b3b570860ff87521f103776c42b4f2462f778dae --- /dev/null +++ b/shared/package-files/e8/e848f3c9d665ba02337e210d2ad0b8c9c67635c92df19420e6fe83ead5f54a25/blob @@ -0,0 +1,1887 @@ +""" +Functions that ignore NaN. + +Functions +--------- + +- `nanmin` -- minimum non-NaN value +- `nanmax` -- maximum non-NaN value +- `nanargmin` -- index of minimum non-NaN value +- `nanargmax` -- index of maximum non-NaN value +- `nansum` -- sum of non-NaN values +- `nanprod` -- product of non-NaN values +- `nancumsum` -- cumulative sum of non-NaN values +- `nancumprod` -- cumulative product of non-NaN values +- `nanmean` -- mean of non-NaN values +- `nanvar` -- variance of non-NaN values +- `nanstd` -- standard deviation of non-NaN values +- `nanmedian` -- median of non-NaN values +- `nanquantile` -- qth quantile of non-NaN values +- `nanpercentile` -- qth percentile of non-NaN values + +""" +import functools +import warnings +import numpy as np +from numpy.lib import function_base +from numpy.core import overrides + + +array_function_dispatch = functools.partial( + overrides.array_function_dispatch, module='numpy') + + +__all__ = [ + 'nansum', 'nanmax', 'nanmin', 'nanargmax', 'nanargmin', 'nanmean', + 'nanmedian', 'nanpercentile', 'nanvar', 'nanstd', 'nanprod', + 'nancumsum', 'nancumprod', 'nanquantile' + ] + + +def _nan_mask(a, out=None): + """ + Parameters + ---------- + a : array-like + Input array with at least 1 dimension. + out : ndarray, optional + Alternate output array in which to place the result. The default + is ``None``; if provided, it must have the same shape as the + expected output and will prevent the allocation of a new array. + + Returns + ------- + y : bool ndarray or True + A bool array where ``np.nan`` positions are marked with ``False`` + and other positions are marked with ``True``. If the type of ``a`` + is such that it can't possibly contain ``np.nan``, returns ``True``. + """ + # we assume that a is an array for this private function + + if a.dtype.kind not in 'fc': + return True + + y = np.isnan(a, out=out) + y = np.invert(y, out=y) + return y + +def _replace_nan(a, val): + """ + If `a` is of inexact type, make a copy of `a`, replace NaNs with + the `val` value, and return the copy together with a boolean mask + marking the locations where NaNs were present. If `a` is not of + inexact type, do nothing and return `a` together with a mask of None. + + Note that scalars will end up as array scalars, which is important + for using the result as the value of the out argument in some + operations. + + Parameters + ---------- + a : array-like + Input array. + val : float + NaN values are set to val before doing the operation. + + Returns + ------- + y : ndarray + If `a` is of inexact type, return a copy of `a` with the NaNs + replaced by the fill value, otherwise return `a`. + mask: {bool, None} + If `a` is of inexact type, return a boolean mask marking locations of + NaNs, otherwise return None. + + """ + a = np.asanyarray(a) + + if a.dtype == np.object_: + # object arrays do not support `isnan` (gh-9009), so make a guess + mask = np.not_equal(a, a, dtype=bool) + elif issubclass(a.dtype.type, np.inexact): + mask = np.isnan(a) + else: + mask = None + + if mask is not None: + a = np.array(a, subok=True, copy=True) + np.copyto(a, val, where=mask) + + return a, mask + + +def _copyto(a, val, mask): + """ + Replace values in `a` with NaN where `mask` is True. This differs from + copyto in that it will deal with the case where `a` is a numpy scalar. + + Parameters + ---------- + a : ndarray or numpy scalar + Array or numpy scalar some of whose values are to be replaced + by val. + val : numpy scalar + Value used a replacement. + mask : ndarray, scalar + Boolean array. Where True the corresponding element of `a` is + replaced by `val`. Broadcasts. + + Returns + ------- + res : ndarray, scalar + Array with elements replaced or scalar `val`. + + """ + if isinstance(a, np.ndarray): + np.copyto(a, val, where=mask, casting='unsafe') + else: + a = a.dtype.type(val) + return a + + +def _remove_nan_1d(arr1d, overwrite_input=False): + """ + Equivalent to arr1d[~arr1d.isnan()], but in a different order + + Presumably faster as it incurs fewer copies + + Parameters + ---------- + arr1d : ndarray + Array to remove nans from + overwrite_input : bool + True if `arr1d` can be modified in place + + Returns + ------- + res : ndarray + Array with nan elements removed + overwrite_input : bool + True if `res` can be modified in place, given the constraint on the + input + """ + if arr1d.dtype == object: + # object arrays do not support `isnan` (gh-9009), so make a guess + c = np.not_equal(arr1d, arr1d, dtype=bool) + else: + c = np.isnan(arr1d) + + s = np.nonzero(c)[0] + if s.size == arr1d.size: + warnings.warn("All-NaN slice encountered", RuntimeWarning, + stacklevel=6) + return arr1d[:0], True + elif s.size == 0: + return arr1d, overwrite_input + else: + if not overwrite_input: + arr1d = arr1d.copy() + # select non-nans at end of array + enonan = arr1d[-s.size:][~c[-s.size:]] + # fill nans in beginning of array with non-nans of end + arr1d[s[:enonan.size]] = enonan + + return arr1d[:-s.size], True + + +def _divide_by_count(a, b, out=None): + """ + Compute a/b ignoring invalid results. If `a` is an array the division + is done in place. If `a` is a scalar, then its type is preserved in the + output. If out is None, then a is used instead so that the division + is in place. Note that this is only called with `a` an inexact type. + + Parameters + ---------- + a : {ndarray, numpy scalar} + Numerator. Expected to be of inexact type but not checked. + b : {ndarray, numpy scalar} + Denominator. + out : ndarray, optional + Alternate output array in which to place the result. The default + is ``None``; if provided, it must have the same shape as the + expected output, but the type will be cast if necessary. + + Returns + ------- + ret : {ndarray, numpy scalar} + The return value is a/b. If `a` was an ndarray the division is done + in place. If `a` is a numpy scalar, the division preserves its type. + + """ + with np.errstate(invalid='ignore', divide='ignore'): + if isinstance(a, np.ndarray): + if out is None: + return np.divide(a, b, out=a, casting='unsafe') + else: + return np.divide(a, b, out=out, casting='unsafe') + else: + if out is None: + # Precaution against reduced object arrays + try: + return a.dtype.type(a / b) + except AttributeError: + return a / b + else: + # This is questionable, but currently a numpy scalar can + # be output to a zero dimensional array. + return np.divide(a, b, out=out, casting='unsafe') + + +def _nanmin_dispatcher(a, axis=None, out=None, keepdims=None, + initial=None, where=None): + return (a, out) + + +@array_function_dispatch(_nanmin_dispatcher) +def nanmin(a, axis=None, out=None, keepdims=np._NoValue, initial=np._NoValue, + where=np._NoValue): + """ + Return minimum of an array or minimum along an axis, ignoring any NaNs. + When all-NaN slices are encountered a ``RuntimeWarning`` is raised and + Nan is returned for that slice. + + Parameters + ---------- + a : array_like + Array containing numbers whose minimum is desired. If `a` is not an + array, a conversion is attempted. + axis : {int, tuple of int, None}, optional + Axis or axes along which the minimum is computed. The default is to compute + the minimum of the flattened array. + out : ndarray, optional + Alternate output array in which to place the result. The default + is ``None``; if provided, it must have the same shape as the + expected output, but the type will be cast if necessary. See + :ref:`ufuncs-output-type` for more details. + + .. versionadded:: 1.8.0 + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the original `a`. + + If the value is anything but the default, then + `keepdims` will be passed through to the `min` method + of sub-classes of `ndarray`. If the sub-classes methods + does not implement `keepdims` any exceptions will be raised. + + .. versionadded:: 1.8.0 + initial : scalar, optional + The maximum value of an output element. Must be present to allow + computation on empty slice. See `~numpy.ufunc.reduce` for details. + + .. versionadded:: 1.22.0 + where : array_like of bool, optional + Elements to compare for the minimum. See `~numpy.ufunc.reduce` + for details. + + .. versionadded:: 1.22.0 + + Returns + ------- + nanmin : ndarray + An array with the same shape as `a`, with the specified axis + removed. If `a` is a 0-d array, or if axis is None, an ndarray + scalar is returned. The same dtype as `a` is returned. + + See Also + -------- + nanmax : + The maximum value of an array along a given axis, ignoring any NaNs. + amin : + The minimum value of an array along a given axis, propagating any NaNs. + fmin : + Element-wise minimum of two arrays, ignoring any NaNs. + minimum : + Element-wise minimum of two arrays, propagating any NaNs. + isnan : + Shows which elements are Not a Number (NaN). + isfinite: + Shows which elements are neither NaN nor infinity. + + amax, fmax, maximum + + Notes + ----- + NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic + (IEEE 754). This means that Not a Number is not equivalent to infinity. + Positive infinity is treated as a very large number and negative + infinity is treated as a very small (i.e. negative) number. + + If the input has a integer type the function is equivalent to np.min. + + Examples + -------- + >>> a = np.array([[1, 2], [3, np.nan]]) + >>> np.nanmin(a) + 1.0 + >>> np.nanmin(a, axis=0) + array([1., 2.]) + >>> np.nanmin(a, axis=1) + array([1., 3.]) + + When positive infinity and negative infinity are present: + + >>> np.nanmin([1, 2, np.nan, np.inf]) + 1.0 + >>> np.nanmin([1, 2, np.nan, np.NINF]) + -inf + + """ + kwargs = {} + if keepdims is not np._NoValue: + kwargs['keepdims'] = keepdims + if initial is not np._NoValue: + kwargs['initial'] = initial + if where is not np._NoValue: + kwargs['where'] = where + + if type(a) is np.ndarray and a.dtype != np.object_: + # Fast, but not safe for subclasses of ndarray, or object arrays, + # which do not implement isnan (gh-9009), or fmin correctly (gh-8975) + res = np.fmin.reduce(a, axis=axis, out=out, **kwargs) + if np.isnan(res).any(): + warnings.warn("All-NaN slice encountered", RuntimeWarning, + stacklevel=2) + else: + # Slow, but safe for subclasses of ndarray + a, mask = _replace_nan(a, +np.inf) + res = np.amin(a, axis=axis, out=out, **kwargs) + if mask is None: + return res + + # Check for all-NaN axis + kwargs.pop("initial", None) + mask = np.all(mask, axis=axis, **kwargs) + if np.any(mask): + res = _copyto(res, np.nan, mask) + warnings.warn("All-NaN axis encountered", RuntimeWarning, + stacklevel=2) + return res + + +def _nanmax_dispatcher(a, axis=None, out=None, keepdims=None, + initial=None, where=None): + return (a, out) + + +@array_function_dispatch(_nanmax_dispatcher) +def nanmax(a, axis=None, out=None, keepdims=np._NoValue, initial=np._NoValue, + where=np._NoValue): + """ + Return the maximum of an array or maximum along an axis, ignoring any + NaNs. When all-NaN slices are encountered a ``RuntimeWarning`` is + raised and NaN is returned for that slice. + + Parameters + ---------- + a : array_like + Array containing numbers whose maximum is desired. If `a` is not an + array, a conversion is attempted. + axis : {int, tuple of int, None}, optional + Axis or axes along which the maximum is computed. The default is to compute + the maximum of the flattened array. + out : ndarray, optional + Alternate output array in which to place the result. The default + is ``None``; if provided, it must have the same shape as the + expected output, but the type will be cast if necessary. See + :ref:`ufuncs-output-type` for more details. + + .. versionadded:: 1.8.0 + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the original `a`. + + If the value is anything but the default, then + `keepdims` will be passed through to the `max` method + of sub-classes of `ndarray`. If the sub-classes methods + does not implement `keepdims` any exceptions will be raised. + + .. versionadded:: 1.8.0 + initial : scalar, optional + The minimum value of an output element. Must be present to allow + computation on empty slice. See `~numpy.ufunc.reduce` for details. + + .. versionadded:: 1.22.0 + where : array_like of bool, optional + Elements to compare for the maximum. See `~numpy.ufunc.reduce` + for details. + + .. versionadded:: 1.22.0 + + Returns + ------- + nanmax : ndarray + An array with the same shape as `a`, with the specified axis removed. + If `a` is a 0-d array, or if axis is None, an ndarray scalar is + returned. The same dtype as `a` is returned. + + See Also + -------- + nanmin : + The minimum value of an array along a given axis, ignoring any NaNs. + amax : + The maximum value of an array along a given axis, propagating any NaNs. + fmax : + Element-wise maximum of two arrays, ignoring any NaNs. + maximum : + Element-wise maximum of two arrays, propagating any NaNs. + isnan : + Shows which elements are Not a Number (NaN). + isfinite: + Shows which elements are neither NaN nor infinity. + + amin, fmin, minimum + + Notes + ----- + NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic + (IEEE 754). This means that Not a Number is not equivalent to infinity. + Positive infinity is treated as a very large number and negative + infinity is treated as a very small (i.e. negative) number. + + If the input has a integer type the function is equivalent to np.max. + + Examples + -------- + >>> a = np.array([[1, 2], [3, np.nan]]) + >>> np.nanmax(a) + 3.0 + >>> np.nanmax(a, axis=0) + array([3., 2.]) + >>> np.nanmax(a, axis=1) + array([2., 3.]) + + When positive infinity and negative infinity are present: + + >>> np.nanmax([1, 2, np.nan, np.NINF]) + 2.0 + >>> np.nanmax([1, 2, np.nan, np.inf]) + inf + + """ + kwargs = {} + if keepdims is not np._NoValue: + kwargs['keepdims'] = keepdims + if initial is not np._NoValue: + kwargs['initial'] = initial + if where is not np._NoValue: + kwargs['where'] = where + + if type(a) is np.ndarray and a.dtype != np.object_: + # Fast, but not safe for subclasses of ndarray, or object arrays, + # which do not implement isnan (gh-9009), or fmax correctly (gh-8975) + res = np.fmax.reduce(a, axis=axis, out=out, **kwargs) + if np.isnan(res).any(): + warnings.warn("All-NaN slice encountered", RuntimeWarning, + stacklevel=2) + else: + # Slow, but safe for subclasses of ndarray + a, mask = _replace_nan(a, -np.inf) + res = np.amax(a, axis=axis, out=out, **kwargs) + if mask is None: + return res + + # Check for all-NaN axis + kwargs.pop("initial", None) + mask = np.all(mask, axis=axis, **kwargs) + if np.any(mask): + res = _copyto(res, np.nan, mask) + warnings.warn("All-NaN axis encountered", RuntimeWarning, + stacklevel=2) + return res + + +def _nanargmin_dispatcher(a, axis=None, out=None, *, keepdims=None): + return (a,) + + +@array_function_dispatch(_nanargmin_dispatcher) +def nanargmin(a, axis=None, out=None, *, keepdims=np._NoValue): + """ + Return the indices of the minimum values in the specified axis ignoring + NaNs. For all-NaN slices ``ValueError`` is raised. Warning: the results + cannot be trusted if a slice contains only NaNs and Infs. + + Parameters + ---------- + a : array_like + Input data. + axis : int, optional + Axis along which to operate. By default flattened input is used. + out : array, optional + If provided, the result will be inserted into this array. It should + be of the appropriate shape and dtype. + + .. versionadded:: 1.22.0 + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the array. + + .. versionadded:: 1.22.0 + + Returns + ------- + index_array : ndarray + An array of indices or a single index value. + + See Also + -------- + argmin, nanargmax + + Examples + -------- + >>> a = np.array([[np.nan, 4], [2, 3]]) + >>> np.argmin(a) + 0 + >>> np.nanargmin(a) + 2 + >>> np.nanargmin(a, axis=0) + array([1, 1]) + >>> np.nanargmin(a, axis=1) + array([1, 0]) + + """ + a, mask = _replace_nan(a, np.inf) + if mask is not None: + mask = np.all(mask, axis=axis) + if np.any(mask): + raise ValueError("All-NaN slice encountered") + res = np.argmin(a, axis=axis, out=out, keepdims=keepdims) + return res + + +def _nanargmax_dispatcher(a, axis=None, out=None, *, keepdims=None): + return (a,) + + +@array_function_dispatch(_nanargmax_dispatcher) +def nanargmax(a, axis=None, out=None, *, keepdims=np._NoValue): + """ + Return the indices of the maximum values in the specified axis ignoring + NaNs. For all-NaN slices ``ValueError`` is raised. Warning: the + results cannot be trusted if a slice contains only NaNs and -Infs. + + + Parameters + ---------- + a : array_like + Input data. + axis : int, optional + Axis along which to operate. By default flattened input is used. + out : array, optional + If provided, the result will be inserted into this array. It should + be of the appropriate shape and dtype. + + .. versionadded:: 1.22.0 + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the array. + + .. versionadded:: 1.22.0 + + Returns + ------- + index_array : ndarray + An array of indices or a single index value. + + See Also + -------- + argmax, nanargmin + + Examples + -------- + >>> a = np.array([[np.nan, 4], [2, 3]]) + >>> np.argmax(a) + 0 + >>> np.nanargmax(a) + 1 + >>> np.nanargmax(a, axis=0) + array([1, 0]) + >>> np.nanargmax(a, axis=1) + array([1, 1]) + + """ + a, mask = _replace_nan(a, -np.inf) + if mask is not None: + mask = np.all(mask, axis=axis) + if np.any(mask): + raise ValueError("All-NaN slice encountered") + res = np.argmax(a, axis=axis, out=out, keepdims=keepdims) + return res + + +def _nansum_dispatcher(a, axis=None, dtype=None, out=None, keepdims=None, + initial=None, where=None): + return (a, out) + + +@array_function_dispatch(_nansum_dispatcher) +def nansum(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, + initial=np._NoValue, where=np._NoValue): + """ + Return the sum of array elements over a given axis treating Not a + Numbers (NaNs) as zero. + + In NumPy versions <= 1.9.0 Nan is returned for slices that are all-NaN or + empty. In later versions zero is returned. + + Parameters + ---------- + a : array_like + Array containing numbers whose sum is desired. If `a` is not an + array, a conversion is attempted. + axis : {int, tuple of int, None}, optional + Axis or axes along which the sum is computed. The default is to compute the + sum of the flattened array. + dtype : data-type, optional + The type of the returned array and of the accumulator in which the + elements are summed. By default, the dtype of `a` is used. An + exception is when `a` has an integer type with less precision than + the platform (u)intp. In that case, the default will be either + (u)int32 or (u)int64 depending on whether the platform is 32 or 64 + bits. For inexact inputs, dtype must be inexact. + + .. versionadded:: 1.8.0 + out : ndarray, optional + Alternate output array in which to place the result. The default + is ``None``. If provided, it must have the same shape as the + expected output, but the type will be cast if necessary. See + :ref:`ufuncs-output-type` for more details. The casting of NaN to integer + can yield unexpected results. + + .. versionadded:: 1.8.0 + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the original `a`. + + + If the value is anything but the default, then + `keepdims` will be passed through to the `mean` or `sum` methods + of sub-classes of `ndarray`. If the sub-classes methods + does not implement `keepdims` any exceptions will be raised. + + .. versionadded:: 1.8.0 + initial : scalar, optional + Starting value for the sum. See `~numpy.ufunc.reduce` for details. + + .. versionadded:: 1.22.0 + where : array_like of bool, optional + Elements to include in the sum. See `~numpy.ufunc.reduce` for details. + + .. versionadded:: 1.22.0 + + Returns + ------- + nansum : ndarray. + A new array holding the result is returned unless `out` is + specified, in which it is returned. The result has the same + size as `a`, and the same shape as `a` if `axis` is not None + or `a` is a 1-d array. + + See Also + -------- + numpy.sum : Sum across array propagating NaNs. + isnan : Show which elements are NaN. + isfinite : Show which elements are not NaN or +/-inf. + + Notes + ----- + If both positive and negative infinity are present, the sum will be Not + A Number (NaN). + + Examples + -------- + >>> np.nansum(1) + 1 + >>> np.nansum([1]) + 1 + >>> np.nansum([1, np.nan]) + 1.0 + >>> a = np.array([[1, 1], [1, np.nan]]) + >>> np.nansum(a) + 3.0 + >>> np.nansum(a, axis=0) + array([2., 1.]) + >>> np.nansum([1, np.nan, np.inf]) + inf + >>> np.nansum([1, np.nan, np.NINF]) + -inf + >>> from numpy.testing import suppress_warnings + >>> with suppress_warnings() as sup: + ... sup.filter(RuntimeWarning) + ... np.nansum([1, np.nan, np.inf, -np.inf]) # both +/- infinity present + nan + + """ + a, mask = _replace_nan(a, 0) + return np.sum(a, axis=axis, dtype=dtype, out=out, keepdims=keepdims, + initial=initial, where=where) + + +def _nanprod_dispatcher(a, axis=None, dtype=None, out=None, keepdims=None, + initial=None, where=None): + return (a, out) + + +@array_function_dispatch(_nanprod_dispatcher) +def nanprod(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, + initial=np._NoValue, where=np._NoValue): + """ + Return the product of array elements over a given axis treating Not a + Numbers (NaNs) as ones. + + One is returned for slices that are all-NaN or empty. + + .. versionadded:: 1.10.0 + + Parameters + ---------- + a : array_like + Array containing numbers whose product is desired. If `a` is not an + array, a conversion is attempted. + axis : {int, tuple of int, None}, optional + Axis or axes along which the product is computed. The default is to compute + the product of the flattened array. + dtype : data-type, optional + The type of the returned array and of the accumulator in which the + elements are summed. By default, the dtype of `a` is used. An + exception is when `a` has an integer type with less precision than + the platform (u)intp. In that case, the default will be either + (u)int32 or (u)int64 depending on whether the platform is 32 or 64 + bits. For inexact inputs, dtype must be inexact. + out : ndarray, optional + Alternate output array in which to place the result. The default + is ``None``. If provided, it must have the same shape as the + expected output, but the type will be cast if necessary. See + :ref:`ufuncs-output-type` for more details. The casting of NaN to integer + can yield unexpected results. + keepdims : bool, optional + If True, the axes which are reduced are left in the result as + dimensions with size one. With this option, the result will + broadcast correctly against the original `arr`. + initial : scalar, optional + The starting value for this product. See `~numpy.ufunc.reduce` + for details. + + .. versionadded:: 1.22.0 + where : array_like of bool, optional + Elements to include in the product. See `~numpy.ufunc.reduce` + for details. + + .. versionadded:: 1.22.0 + + Returns + ------- + nanprod : ndarray + A new array holding the result is returned unless `out` is + specified, in which case it is returned. + + See Also + -------- + numpy.prod : Product across array propagating NaNs. + isnan : Show which elements are NaN. + + Examples + -------- + >>> np.nanprod(1) + 1 + >>> np.nanprod([1]) + 1 + >>> np.nanprod([1, np.nan]) + 1.0 + >>> a = np.array([[1, 2], [3, np.nan]]) + >>> np.nanprod(a) + 6.0 + >>> np.nanprod(a, axis=0) + array([3., 2.]) + + """ + a, mask = _replace_nan(a, 1) + return np.prod(a, axis=axis, dtype=dtype, out=out, keepdims=keepdims, + initial=initial, where=where) + + +def _nancumsum_dispatcher(a, axis=None, dtype=None, out=None): + return (a, out) + + +@array_function_dispatch(_nancumsum_dispatcher) +def nancumsum(a, axis=None, dtype=None, out=None): + """ + Return the cumulative sum of array elements over a given axis treating Not a + Numbers (NaNs) as zero. The cumulative sum does not change when NaNs are + encountered and leading NaNs are replaced by zeros. + + Zeros are returned for slices that are all-NaN or empty. + + .. versionadded:: 1.12.0 + + Parameters + ---------- + a : array_like + Input array. + axis : int, optional + Axis along which the cumulative sum is computed. The default + (None) is to compute the cumsum over the flattened array. + dtype : dtype, optional + Type of the returned array and of the accumulator in which the + elements are summed. If `dtype` is not specified, it defaults + to the dtype of `a`, unless `a` has an integer dtype with a + precision less than that of the default platform integer. In + that case, the default platform integer is used. + out : ndarray, optional + Alternative output array in which to place the result. It must + have the same shape and buffer length as the expected output + but the type will be cast if necessary. See :ref:`ufuncs-output-type` for + more details. + + Returns + ------- + nancumsum : ndarray. + A new array holding the result is returned unless `out` is + specified, in which it is returned. The result has the same + size as `a`, and the same shape as `a` if `axis` is not None + or `a` is a 1-d array. + + See Also + -------- + numpy.cumsum : Cumulative sum across array propagating NaNs. + isnan : Show which elements are NaN. + + Examples + -------- + >>> np.nancumsum(1) + array([1]) + >>> np.nancumsum([1]) + array([1]) + >>> np.nancumsum([1, np.nan]) + array([1., 1.]) + >>> a = np.array([[1, 2], [3, np.nan]]) + >>> np.nancumsum(a) + array([1., 3., 6., 6.]) + >>> np.nancumsum(a, axis=0) + array([[1., 2.], + [4., 2.]]) + >>> np.nancumsum(a, axis=1) + array([[1., 3.], + [3., 3.]]) + + """ + a, mask = _replace_nan(a, 0) + return np.cumsum(a, axis=axis, dtype=dtype, out=out) + + +def _nancumprod_dispatcher(a, axis=None, dtype=None, out=None): + return (a, out) + + +@array_function_dispatch(_nancumprod_dispatcher) +def nancumprod(a, axis=None, dtype=None, out=None): + """ + Return the cumulative product of array elements over a given axis treating Not a + Numbers (NaNs) as one. The cumulative product does not change when NaNs are + encountered and leading NaNs are replaced by ones. + + Ones are returned for slices that are all-NaN or empty. + + .. versionadded:: 1.12.0 + + Parameters + ---------- + a : array_like + Input array. + axis : int, optional + Axis along which the cumulative product is computed. By default + the input is flattened. + dtype : dtype, optional + Type of the returned array, as well as of the accumulator in which + the elements are multiplied. If *dtype* is not specified, it + defaults to the dtype of `a`, unless `a` has an integer dtype with + a precision less than that of the default platform integer. In + that case, the default platform integer is used instead. + out : ndarray, optional + Alternative output array in which to place the result. It must + have the same shape and buffer length as the expected output + but the type of the resulting values will be cast if necessary. + + Returns + ------- + nancumprod : ndarray + A new array holding the result is returned unless `out` is + specified, in which case it is returned. + + See Also + -------- + numpy.cumprod : Cumulative product across array propagating NaNs. + isnan : Show which elements are NaN. + + Examples + -------- + >>> np.nancumprod(1) + array([1]) + >>> np.nancumprod([1]) + array([1]) + >>> np.nancumprod([1, np.nan]) + array([1., 1.]) + >>> a = np.array([[1, 2], [3, np.nan]]) + >>> np.nancumprod(a) + array([1., 2., 6., 6.]) + >>> np.nancumprod(a, axis=0) + array([[1., 2.], + [3., 2.]]) + >>> np.nancumprod(a, axis=1) + array([[1., 2.], + [3., 3.]]) + + """ + a, mask = _replace_nan(a, 1) + return np.cumprod(a, axis=axis, dtype=dtype, out=out) + + +def _nanmean_dispatcher(a, axis=None, dtype=None, out=None, keepdims=None, + *, where=None): + return (a, out) + + +@array_function_dispatch(_nanmean_dispatcher) +def nanmean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, + *, where=np._NoValue): + """ + Compute the arithmetic mean along the specified axis, ignoring NaNs. + + Returns the average of the array elements. The average is taken over + the flattened array by default, otherwise over the specified axis. + `float64` intermediate and return values are used for integer inputs. + + For all-NaN slices, NaN is returned and a `RuntimeWarning` is raised. + + .. versionadded:: 1.8.0 + + Parameters + ---------- + a : array_like + Array containing numbers whose mean is desired. If `a` is not an + array, a conversion is attempted. + axis : {int, tuple of int, None}, optional + Axis or axes along which the means are computed. The default is to compute + the mean of the flattened array. + dtype : data-type, optional + Type to use in computing the mean. For integer inputs, the default + is `float64`; for inexact inputs, it is the same as the input + dtype. + out : ndarray, optional + Alternate output array in which to place the result. The default + is ``None``; if provided, it must have the same shape as the + expected output, but the type will be cast if necessary. See + :ref:`ufuncs-output-type` for more details. + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the original `a`. + + If the value is anything but the default, then + `keepdims` will be passed through to the `mean` or `sum` methods + of sub-classes of `ndarray`. If the sub-classes methods + does not implement `keepdims` any exceptions will be raised. + where : array_like of bool, optional + Elements to include in the mean. See `~numpy.ufunc.reduce` for details. + + .. versionadded:: 1.22.0 + + Returns + ------- + m : ndarray, see dtype parameter above + If `out=None`, returns a new array containing the mean values, + otherwise a reference to the output array is returned. Nan is + returned for slices that contain only NaNs. + + See Also + -------- + average : Weighted average + mean : Arithmetic mean taken while not ignoring NaNs + var, nanvar + + Notes + ----- + The arithmetic mean is the sum of the non-NaN elements along the axis + divided by the number of non-NaN elements. + + Note that for floating-point input, the mean is computed using the same + precision the input has. Depending on the input data, this can cause + the results to be inaccurate, especially for `float32`. Specifying a + higher-precision accumulator using the `dtype` keyword can alleviate + this issue. + + Examples + -------- + >>> a = np.array([[1, np.nan], [3, 4]]) + >>> np.nanmean(a) + 2.6666666666666665 + >>> np.nanmean(a, axis=0) + array([2., 4.]) + >>> np.nanmean(a, axis=1) + array([1., 3.5]) # may vary + + """ + arr, mask = _replace_nan(a, 0) + if mask is None: + return np.mean(arr, axis=axis, dtype=dtype, out=out, keepdims=keepdims, + where=where) + + if dtype is not None: + dtype = np.dtype(dtype) + if dtype is not None and not issubclass(dtype.type, np.inexact): + raise TypeError("If a is inexact, then dtype must be inexact") + if out is not None and not issubclass(out.dtype.type, np.inexact): + raise TypeError("If a is inexact, then out must be inexact") + + cnt = np.sum(~mask, axis=axis, dtype=np.intp, keepdims=keepdims, + where=where) + tot = np.sum(arr, axis=axis, dtype=dtype, out=out, keepdims=keepdims, + where=where) + avg = _divide_by_count(tot, cnt, out=out) + + isbad = (cnt == 0) + if isbad.any(): + warnings.warn("Mean of empty slice", RuntimeWarning, stacklevel=2) + # NaN is the only possible bad value, so no further + # action is needed to handle bad results. + return avg + + +def _nanmedian1d(arr1d, overwrite_input=False): + """ + Private function for rank 1 arrays. Compute the median ignoring NaNs. + See nanmedian for parameter usage + """ + arr1d_parsed, overwrite_input = _remove_nan_1d( + arr1d, overwrite_input=overwrite_input, + ) + + if arr1d_parsed.size == 0: + # Ensure that a nan-esque scalar of the appropriate type (and unit) + # is returned for `timedelta64` and `complexfloating` + return arr1d[-1] + + return np.median(arr1d_parsed, overwrite_input=overwrite_input) + + +def _nanmedian(a, axis=None, out=None, overwrite_input=False): + """ + Private function that doesn't support extended axis or keepdims. + These methods are extended to this function using _ureduce + See nanmedian for parameter usage + + """ + if axis is None or a.ndim == 1: + part = a.ravel() + if out is None: + return _nanmedian1d(part, overwrite_input) + else: + out[...] = _nanmedian1d(part, overwrite_input) + return out + else: + # for small medians use sort + indexing which is still faster than + # apply_along_axis + # benchmarked with shuffled (50, 50, x) containing a few NaN + if a.shape[axis] < 600: + return _nanmedian_small(a, axis, out, overwrite_input) + result = np.apply_along_axis(_nanmedian1d, axis, a, overwrite_input) + if out is not None: + out[...] = result + return result + + +def _nanmedian_small(a, axis=None, out=None, overwrite_input=False): + """ + sort + indexing median, faster for small medians along multiple + dimensions due to the high overhead of apply_along_axis + + see nanmedian for parameter usage + """ + a = np.ma.masked_array(a, np.isnan(a)) + m = np.ma.median(a, axis=axis, overwrite_input=overwrite_input) + for i in range(np.count_nonzero(m.mask.ravel())): + warnings.warn("All-NaN slice encountered", RuntimeWarning, + stacklevel=5) + + fill_value = np.timedelta64("NaT") if m.dtype.kind == "m" else np.nan + if out is not None: + out[...] = m.filled(fill_value) + return out + return m.filled(fill_value) + + +def _nanmedian_dispatcher( + a, axis=None, out=None, overwrite_input=None, keepdims=None): + return (a, out) + + +@array_function_dispatch(_nanmedian_dispatcher) +def nanmedian(a, axis=None, out=None, overwrite_input=False, keepdims=np._NoValue): + """ + Compute the median along the specified axis, while ignoring NaNs. + + Returns the median of the array elements. + + .. versionadded:: 1.9.0 + + Parameters + ---------- + a : array_like + Input array or object that can be converted to an array. + axis : {int, sequence of int, None}, optional + Axis or axes along which the medians are computed. The default + is to compute the median along a flattened version of the array. + A sequence of axes is supported since version 1.9.0. + out : ndarray, optional + Alternative output array in which to place the result. It must + have the same shape and buffer length as the expected output, + but the type (of the output) will be cast if necessary. + overwrite_input : bool, optional + If True, then allow use of memory of input array `a` for + calculations. The input array will be modified by the call to + `median`. This will save memory when you do not need to preserve + the contents of the input array. Treat the input as undefined, + but it will probably be fully or partially sorted. Default is + False. If `overwrite_input` is ``True`` and `a` is not already an + `ndarray`, an error will be raised. + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the original `a`. + + If this is anything but the default value it will be passed + through (in the special case of an empty array) to the + `mean` function of the underlying array. If the array is + a sub-class and `mean` does not have the kwarg `keepdims` this + will raise a RuntimeError. + + Returns + ------- + median : ndarray + A new array holding the result. If the input contains integers + or floats smaller than ``float64``, then the output data-type is + ``np.float64``. Otherwise, the data-type of the output is the + same as that of the input. If `out` is specified, that array is + returned instead. + + See Also + -------- + mean, median, percentile + + Notes + ----- + Given a vector ``V`` of length ``N``, the median of ``V`` is the + middle value of a sorted copy of ``V``, ``V_sorted`` - i.e., + ``V_sorted[(N-1)/2]``, when ``N`` is odd and the average of the two + middle values of ``V_sorted`` when ``N`` is even. + + Examples + -------- + >>> a = np.array([[10.0, 7, 4], [3, 2, 1]]) + >>> a[0, 1] = np.nan + >>> a + array([[10., nan, 4.], + [ 3., 2., 1.]]) + >>> np.median(a) + nan + >>> np.nanmedian(a) + 3.0 + >>> np.nanmedian(a, axis=0) + array([6.5, 2. , 2.5]) + >>> np.median(a, axis=1) + array([nan, 2.]) + >>> b = a.copy() + >>> np.nanmedian(b, axis=1, overwrite_input=True) + array([7., 2.]) + >>> assert not np.all(a==b) + >>> b = a.copy() + >>> np.nanmedian(b, axis=None, overwrite_input=True) + 3.0 + >>> assert not np.all(a==b) + + """ + a = np.asanyarray(a) + # apply_along_axis in _nanmedian doesn't handle empty arrays well, + # so deal them upfront + if a.size == 0: + return np.nanmean(a, axis, out=out, keepdims=keepdims) + + return function_base._ureduce(a, func=_nanmedian, keepdims=keepdims, + axis=axis, out=out, + overwrite_input=overwrite_input) + + +def _nanpercentile_dispatcher( + a, q, axis=None, out=None, overwrite_input=None, + method=None, keepdims=None, *, interpolation=None): + return (a, q, out) + + +@array_function_dispatch(_nanpercentile_dispatcher) +def nanpercentile( + a, + q, + axis=None, + out=None, + overwrite_input=False, + method="linear", + keepdims=np._NoValue, + *, + interpolation=None, +): + """ + Compute the qth percentile of the data along the specified axis, + while ignoring nan values. + + Returns the qth percentile(s) of the array elements. + + .. versionadded:: 1.9.0 + + Parameters + ---------- + a : array_like + Input array or object that can be converted to an array, containing + nan values to be ignored. + q : array_like of float + Percentile or sequence of percentiles to compute, which must be + between 0 and 100 inclusive. + axis : {int, tuple of int, None}, optional + Axis or axes along which the percentiles are computed. The default + is to compute the percentile(s) along a flattened version of the + array. + out : ndarray, optional + Alternative output array in which to place the result. It must have + the same shape and buffer length as the expected output, but the + type (of the output) will be cast if necessary. + overwrite_input : bool, optional + If True, then allow the input array `a` to be modified by + intermediate calculations, to save memory. In this case, the + contents of the input `a` after this function completes is + undefined. + method : str, optional + This parameter specifies the method to use for estimating the + percentile. There are many different methods, some unique to NumPy. + See the notes for explanation. The options sorted by their R type + as summarized in the H&F paper [1]_ are: + + 1. 'inverted_cdf' + 2. 'averaged_inverted_cdf' + 3. 'closest_observation' + 4. 'interpolated_inverted_cdf' + 5. 'hazen' + 6. 'weibull' + 7. 'linear' (default) + 8. 'median_unbiased' + 9. 'normal_unbiased' + + The first three methods are discontinuous. NumPy further defines the + following discontinuous variations of the default 'linear' (7.) option: + + * 'lower' + * 'higher', + * 'midpoint' + * 'nearest' + + .. versionchanged:: 1.22.0 + This argument was previously called "interpolation" and only + offered the "linear" default and last four options. + + keepdims : bool, optional + If this is set to True, the axes which are reduced are left in + the result as dimensions with size one. With this option, the + result will broadcast correctly against the original array `a`. + + If this is anything but the default value it will be passed + through (in the special case of an empty array) to the + `mean` function of the underlying array. If the array is + a sub-class and `mean` does not have the kwarg `keepdims` this + will raise a RuntimeError. + + interpolation : str, optional + Deprecated name for the method keyword argument. + + .. deprecated:: 1.22.0 + + Returns + ------- + percentile : scalar or ndarray + If `q` is a single percentile and `axis=None`, then the result + is a scalar. If multiple percentiles are given, first axis of + the result corresponds to the percentiles. The other axes are + the axes that remain after the reduction of `a`. If the input + contains integers or floats smaller than ``float64``, the output + data-type is ``float64``. Otherwise, the output data-type is the + same as that of the input. If `out` is specified, that array is + returned instead. + + See Also + -------- + nanmean + nanmedian : equivalent to ``nanpercentile(..., 50)`` + percentile, median, mean + nanquantile : equivalent to nanpercentile, except q in range [0, 1]. + + Notes + ----- + For more information please see `numpy.percentile` + + Examples + -------- + >>> a = np.array([[10., 7., 4.], [3., 2., 1.]]) + >>> a[0][1] = np.nan + >>> a + array([[10., nan, 4.], + [ 3., 2., 1.]]) + >>> np.percentile(a, 50) + nan + >>> np.nanpercentile(a, 50) + 3.0 + >>> np.nanpercentile(a, 50, axis=0) + array([6.5, 2. , 2.5]) + >>> np.nanpercentile(a, 50, axis=1, keepdims=True) + array([[7.], + [2.]]) + >>> m = np.nanpercentile(a, 50, axis=0) + >>> out = np.zeros_like(m) + >>> np.nanpercentile(a, 50, axis=0, out=out) + array([6.5, 2. , 2.5]) + >>> m + array([6.5, 2. , 2.5]) + + >>> b = a.copy() + >>> np.nanpercentile(b, 50, axis=1, overwrite_input=True) + array([7., 2.]) + >>> assert not np.all(a==b) + + References + ---------- + .. [1] R. J. Hyndman and Y. Fan, + "Sample quantiles in statistical packages," + The American Statistician, 50(4), pp. 361-365, 1996 + + """ + if interpolation is not None: + method = function_base._check_interpolation_as_method( + method, interpolation, "nanpercentile") + + a = np.asanyarray(a) + if a.dtype.kind == "c": + raise TypeError("a must be an array of real numbers") + + q = np.true_divide(q, 100.0) + # undo any decay that the ufunc performed (see gh-13105) + q = np.asanyarray(q) + if not function_base._quantile_is_valid(q): + raise ValueError("Percentiles must be in the range [0, 100]") + return _nanquantile_unchecked( + a, q, axis, out, overwrite_input, method, keepdims) + + +def _nanquantile_dispatcher(a, q, axis=None, out=None, overwrite_input=None, + method=None, keepdims=None, *, interpolation=None): + return (a, q, out) + + +@array_function_dispatch(_nanquantile_dispatcher) +def nanquantile( + a, + q, + axis=None, + out=None, + overwrite_input=False, + method="linear", + keepdims=np._NoValue, + *, + interpolation=None, +): + """ + Compute the qth quantile of the data along the specified axis, + while ignoring nan values. + Returns the qth quantile(s) of the array elements. + + .. versionadded:: 1.15.0 + + Parameters + ---------- + a : array_like + Input array or object that can be converted to an array, containing + nan values to be ignored + q : array_like of float + Probability or sequence of probabilities for the quantiles to compute. + Values must be between 0 and 1 inclusive. + axis : {int, tuple of int, None}, optional + Axis or axes along which the quantiles are computed. The + default is to compute the quantile(s) along a flattened + version of the array. + out : ndarray, optional + Alternative output array in which to place the result. It must + have the same shape and buffer length as the expected output, + but the type (of the output) will be cast if necessary. + overwrite_input : bool, optional + If True, then allow the input array `a` to be modified by intermediate + calculations, to save memory. In this case, the contents of the input + `a` after this function completes is undefined. + method : str, optional + This parameter specifies the method to use for estimating the + quantile. There are many different methods, some unique to NumPy. + See the notes for explanation. The options sorted by their R type + as summarized in the H&F paper [1]_ are: + + 1. 'inverted_cdf' + 2. 'averaged_inverted_cdf' + 3. 'closest_observation' + 4. 'interpolated_inverted_cdf' + 5. 'hazen' + 6. 'weibull' + 7. 'linear' (default) + 8. 'median_unbiased' + 9. 'normal_unbiased' + + The first three methods are discontinuous. NumPy further defines the + following discontinuous variations of the default 'linear' (7.) option: + + * 'lower' + * 'higher', + * 'midpoint' + * 'nearest' + + .. versionchanged:: 1.22.0 + This argument was previously called "interpolation" and only + offered the "linear" default and last four options. + + keepdims : bool, optional + If this is set to True, the axes which are reduced are left in + the result as dimensions with size one. With this option, the + result will broadcast correctly against the original array `a`. + + If this is anything but the default value it will be passed + through (in the special case of an empty array) to the + `mean` function of the underlying array. If the array is + a sub-class and `mean` does not have the kwarg `keepdims` this + will raise a RuntimeError. + + interpolation : str, optional + Deprecated name for the method keyword argument. + + .. deprecated:: 1.22.0 + + Returns + ------- + quantile : scalar or ndarray + If `q` is a single probability and `axis=None`, then the result + is a scalar. If multiple probability levels are given, first axis of + the result corresponds to the quantiles. The other axes are + the axes that remain after the reduction of `a`. If the input + contains integers or floats smaller than ``float64``, the output + data-type is ``float64``. Otherwise, the output data-type is the + same as that of the input. If `out` is specified, that array is + returned instead. + + See Also + -------- + quantile + nanmean, nanmedian + nanmedian : equivalent to ``nanquantile(..., 0.5)`` + nanpercentile : same as nanquantile, but with q in the range [0, 100]. + + Notes + ----- + For more information please see `numpy.quantile` + + Examples + -------- + >>> a = np.array([[10., 7., 4.], [3., 2., 1.]]) + >>> a[0][1] = np.nan + >>> a + array([[10., nan, 4.], + [ 3., 2., 1.]]) + >>> np.quantile(a, 0.5) + nan + >>> np.nanquantile(a, 0.5) + 3.0 + >>> np.nanquantile(a, 0.5, axis=0) + array([6.5, 2. , 2.5]) + >>> np.nanquantile(a, 0.5, axis=1, keepdims=True) + array([[7.], + [2.]]) + >>> m = np.nanquantile(a, 0.5, axis=0) + >>> out = np.zeros_like(m) + >>> np.nanquantile(a, 0.5, axis=0, out=out) + array([6.5, 2. , 2.5]) + >>> m + array([6.5, 2. , 2.5]) + >>> b = a.copy() + >>> np.nanquantile(b, 0.5, axis=1, overwrite_input=True) + array([7., 2.]) + >>> assert not np.all(a==b) + + References + ---------- + .. [1] R. J. Hyndman and Y. Fan, + "Sample quantiles in statistical packages," + The American Statistician, 50(4), pp. 361-365, 1996 + + """ + + if interpolation is not None: + method = function_base._check_interpolation_as_method( + method, interpolation, "nanquantile") + + a = np.asanyarray(a) + if a.dtype.kind == "c": + raise TypeError("a must be an array of real numbers") + + q = np.asanyarray(q) + if not function_base._quantile_is_valid(q): + raise ValueError("Quantiles must be in the range [0, 1]") + return _nanquantile_unchecked( + a, q, axis, out, overwrite_input, method, keepdims) + + +def _nanquantile_unchecked( + a, + q, + axis=None, + out=None, + overwrite_input=False, + method="linear", + keepdims=np._NoValue, +): + """Assumes that q is in [0, 1], and is an ndarray""" + # apply_along_axis in _nanpercentile doesn't handle empty arrays well, + # so deal them upfront + if a.size == 0: + return np.nanmean(a, axis, out=out, keepdims=keepdims) + return function_base._ureduce(a, + func=_nanquantile_ureduce_func, + q=q, + keepdims=keepdims, + axis=axis, + out=out, + overwrite_input=overwrite_input, + method=method) + + +def _nanquantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False, + method="linear"): + """ + Private function that doesn't support extended axis or keepdims. + These methods are extended to this function using _ureduce + See nanpercentile for parameter usage + """ + if axis is None or a.ndim == 1: + part = a.ravel() + result = _nanquantile_1d(part, q, overwrite_input, method) + else: + result = np.apply_along_axis(_nanquantile_1d, axis, a, q, + overwrite_input, method) + # apply_along_axis fills in collapsed axis with results. + # Move that axis to the beginning to match percentile's + # convention. + if q.ndim != 0: + result = np.moveaxis(result, axis, 0) + + if out is not None: + out[...] = result + return result + + +def _nanquantile_1d(arr1d, q, overwrite_input=False, method="linear"): + """ + Private function for rank 1 arrays. Compute quantile ignoring NaNs. + See nanpercentile for parameter usage + """ + arr1d, overwrite_input = _remove_nan_1d(arr1d, + overwrite_input=overwrite_input) + if arr1d.size == 0: + # convert to scalar + return np.full(q.shape, np.nan, dtype=arr1d.dtype)[()] + + return function_base._quantile_unchecked( + arr1d, q, overwrite_input=overwrite_input, method=method) + + +def _nanvar_dispatcher(a, axis=None, dtype=None, out=None, ddof=None, + keepdims=None, *, where=None): + return (a, out) + + +@array_function_dispatch(_nanvar_dispatcher) +def nanvar(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue, + *, where=np._NoValue): + """ + Compute the variance along the specified axis, while ignoring NaNs. + + Returns the variance of the array elements, a measure of the spread of + a distribution. The variance is computed for the flattened array by + default, otherwise over the specified axis. + + For all-NaN slices or slices with zero degrees of freedom, NaN is + returned and a `RuntimeWarning` is raised. + + .. versionadded:: 1.8.0 + + Parameters + ---------- + a : array_like + Array containing numbers whose variance is desired. If `a` is not an + array, a conversion is attempted. + axis : {int, tuple of int, None}, optional + Axis or axes along which the variance is computed. The default is to compute + the variance of the flattened array. + dtype : data-type, optional + Type to use in computing the variance. For arrays of integer type + the default is `float64`; for arrays of float types it is the same as + the array type. + out : ndarray, optional + Alternate output array in which to place the result. It must have + the same shape as the expected output, but the type is cast if + necessary. + ddof : int, optional + "Delta Degrees of Freedom": the divisor used in the calculation is + ``N - ddof``, where ``N`` represents the number of non-NaN + elements. By default `ddof` is zero. + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the original `a`. + where : array_like of bool, optional + Elements to include in the variance. See `~numpy.ufunc.reduce` for + details. + + .. versionadded:: 1.22.0 + + Returns + ------- + variance : ndarray, see dtype parameter above + If `out` is None, return a new array containing the variance, + otherwise return a reference to the output array. If ddof is >= the + number of non-NaN elements in a slice or the slice contains only + NaNs, then the result for that slice is NaN. + + See Also + -------- + std : Standard deviation + mean : Average + var : Variance while not ignoring NaNs + nanstd, nanmean + :ref:`ufuncs-output-type` + + Notes + ----- + The variance is the average of the squared deviations from the mean, + i.e., ``var = mean(abs(x - x.mean())**2)``. + + The mean is normally calculated as ``x.sum() / N``, where ``N = len(x)``. + If, however, `ddof` is specified, the divisor ``N - ddof`` is used + instead. In standard statistical practice, ``ddof=1`` provides an + unbiased estimator of the variance of a hypothetical infinite + population. ``ddof=0`` provides a maximum likelihood estimate of the + variance for normally distributed variables. + + Note that for complex numbers, the absolute value is taken before + squaring, so that the result is always real and nonnegative. + + For floating-point input, the variance is computed using the same + precision the input has. Depending on the input data, this can cause + the results to be inaccurate, especially for `float32` (see example + below). Specifying a higher-accuracy accumulator using the ``dtype`` + keyword can alleviate this issue. + + For this function to work on sub-classes of ndarray, they must define + `sum` with the kwarg `keepdims` + + Examples + -------- + >>> a = np.array([[1, np.nan], [3, 4]]) + >>> np.nanvar(a) + 1.5555555555555554 + >>> np.nanvar(a, axis=0) + array([1., 0.]) + >>> np.nanvar(a, axis=1) + array([0., 0.25]) # may vary + + """ + arr, mask = _replace_nan(a, 0) + if mask is None: + return np.var(arr, axis=axis, dtype=dtype, out=out, ddof=ddof, + keepdims=keepdims, where=where) + + if dtype is not None: + dtype = np.dtype(dtype) + if dtype is not None and not issubclass(dtype.type, np.inexact): + raise TypeError("If a is inexact, then dtype must be inexact") + if out is not None and not issubclass(out.dtype.type, np.inexact): + raise TypeError("If a is inexact, then out must be inexact") + + # Compute mean + if type(arr) is np.matrix: + _keepdims = np._NoValue + else: + _keepdims = True + # we need to special case matrix for reverse compatibility + # in order for this to work, these sums need to be called with + # keepdims=True, however matrix now raises an error in this case, but + # the reason that it drops the keepdims kwarg is to force keepdims=True + # so this used to work by serendipity. + cnt = np.sum(~mask, axis=axis, dtype=np.intp, keepdims=_keepdims, + where=where) + avg = np.sum(arr, axis=axis, dtype=dtype, keepdims=_keepdims, where=where) + avg = _divide_by_count(avg, cnt) + + # Compute squared deviation from mean. + np.subtract(arr, avg, out=arr, casting='unsafe', where=where) + arr = _copyto(arr, 0, mask) + if issubclass(arr.dtype.type, np.complexfloating): + sqr = np.multiply(arr, arr.conj(), out=arr, where=where).real + else: + sqr = np.multiply(arr, arr, out=arr, where=where) + + # Compute variance. + var = np.sum(sqr, axis=axis, dtype=dtype, out=out, keepdims=keepdims, + where=where) + + # Precaution against reduced object arrays + try: + var_ndim = var.ndim + except AttributeError: + var_ndim = np.ndim(var) + if var_ndim < cnt.ndim: + # Subclasses of ndarray may ignore keepdims, so check here. + cnt = cnt.squeeze(axis) + dof = cnt - ddof + var = _divide_by_count(var, dof) + + isbad = (dof <= 0) + if np.any(isbad): + warnings.warn("Degrees of freedom <= 0 for slice.", RuntimeWarning, + stacklevel=2) + # NaN, inf, or negative numbers are all possible bad + # values, so explicitly replace them with NaN. + var = _copyto(var, np.nan, isbad) + return var + + +def _nanstd_dispatcher(a, axis=None, dtype=None, out=None, ddof=None, + keepdims=None, *, where=None): + return (a, out) + + +@array_function_dispatch(_nanstd_dispatcher) +def nanstd(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue, + *, where=np._NoValue): + """ + Compute the standard deviation along the specified axis, while + ignoring NaNs. + + Returns the standard deviation, a measure of the spread of a + distribution, of the non-NaN array elements. The standard deviation is + computed for the flattened array by default, otherwise over the + specified axis. + + For all-NaN slices or slices with zero degrees of freedom, NaN is + returned and a `RuntimeWarning` is raised. + + .. versionadded:: 1.8.0 + + Parameters + ---------- + a : array_like + Calculate the standard deviation of the non-NaN values. + axis : {int, tuple of int, None}, optional + Axis or axes along which the standard deviation is computed. The default is + to compute the standard deviation of the flattened array. + dtype : dtype, optional + Type to use in computing the standard deviation. For arrays of + integer type the default is float64, for arrays of float types it + is the same as the array type. + out : ndarray, optional + Alternative output array in which to place the result. It must have + the same shape as the expected output but the type (of the + calculated values) will be cast if necessary. + ddof : int, optional + Means Delta Degrees of Freedom. The divisor used in calculations + is ``N - ddof``, where ``N`` represents the number of non-NaN + elements. By default `ddof` is zero. + + keepdims : bool, optional + If this is set to True, the axes which are reduced are left + in the result as dimensions with size one. With this option, + the result will broadcast correctly against the original `a`. + + If this value is anything but the default it is passed through + as-is to the relevant functions of the sub-classes. If these + functions do not have a `keepdims` kwarg, a RuntimeError will + be raised. + where : array_like of bool, optional + Elements to include in the standard deviation. + See `~numpy.ufunc.reduce` for details. + + .. versionadded:: 1.22.0 + + Returns + ------- + standard_deviation : ndarray, see dtype parameter above. + If `out` is None, return a new array containing the standard + deviation, otherwise return a reference to the output array. If + ddof is >= the number of non-NaN elements in a slice or the slice + contains only NaNs, then the result for that slice is NaN. + + See Also + -------- + var, mean, std + nanvar, nanmean + :ref:`ufuncs-output-type` + + Notes + ----- + The standard deviation is the square root of the average of the squared + deviations from the mean: ``std = sqrt(mean(abs(x - x.mean())**2))``. + + The average squared deviation is normally calculated as + ``x.sum() / N``, where ``N = len(x)``. If, however, `ddof` is + specified, the divisor ``N - ddof`` is used instead. In standard + statistical practice, ``ddof=1`` provides an unbiased estimator of the + variance of the infinite population. ``ddof=0`` provides a maximum + likelihood estimate of the variance for normally distributed variables. + The standard deviation computed in this function is the square root of + the estimated variance, so even with ``ddof=1``, it will not be an + unbiased estimate of the standard deviation per se. + + Note that, for complex numbers, `std` takes the absolute value before + squaring, so that the result is always real and nonnegative. + + For floating-point input, the *std* is computed using the same + precision the input has. Depending on the input data, this can cause + the results to be inaccurate, especially for float32 (see example + below). Specifying a higher-accuracy accumulator using the `dtype` + keyword can alleviate this issue. + + Examples + -------- + >>> a = np.array([[1, np.nan], [3, 4]]) + >>> np.nanstd(a) + 1.247219128924647 + >>> np.nanstd(a, axis=0) + array([1., 0.]) + >>> np.nanstd(a, axis=1) + array([0., 0.5]) # may vary + + """ + var = nanvar(a, axis=axis, dtype=dtype, out=out, ddof=ddof, + keepdims=keepdims, where=where) + if isinstance(var, np.ndarray): + std = np.sqrt(var, out=var) + elif hasattr(var, 'dtype'): + std = var.dtype.type(np.sqrt(var)) + else: + std = np.sqrt(var) + return std diff --git a/shared/package-files/e8/e84a407dd098ad1fb759018e47c8be69ce14518cc9a5276fbe6a2da4c8a45c79/blob b/shared/package-files/e8/e84a407dd098ad1fb759018e47c8be69ce14518cc9a5276fbe6a2da4c8a45c79/blob new file mode 100644 index 0000000000000000000000000000000000000000..d8354c707e2eb0e9abf44a00f8573ddd2b8002e6 Binary files /dev/null and b/shared/package-files/e8/e84a407dd098ad1fb759018e47c8be69ce14518cc9a5276fbe6a2da4c8a45c79/blob differ diff --git a/shared/package-files/e8/e84c42c1830fa80754bc231d74f16e3a9d6b6d5683eb3d8fdc693564502d63a6/blob b/shared/package-files/e8/e84c42c1830fa80754bc231d74f16e3a9d6b6d5683eb3d8fdc693564502d63a6/blob new file mode 100644 index 0000000000000000000000000000000000000000..65270c581180df5f9bb3195721d82c25c8ab11d1 --- /dev/null +++ b/shared/package-files/e8/e84c42c1830fa80754bc231d74f16e3a9d6b6d5683eb3d8fdc693564502d63a6/blob @@ -0,0 +1,955 @@ +"""Tests that use cross-checks for generic methods + +Should be easy to check consistency across models +Does not cover tsa + +Initial cases copied from test_shrink_pickle + +Created on Wed Oct 30 14:01:27 2013 + +Author: Josef Perktold +""" + +from __future__ import annotations + +from statsmodels.compat.pandas import assert_index_equal, assert_series_equal +from statsmodels.compat.platform import ( + PLATFORM_OSX, + PLATFORM_WIN32, +) +from statsmodels.compat.pytest import pytest_warns +from statsmodels.compat.python import PYTHON_IMPL_WASM + +import numpy as np +from numpy.testing import ( + assert_, + assert_allclose, + assert_array_equal, + assert_equal, +) +import pandas as pd +import pytest + +import statsmodels.api as sm +from statsmodels.formula._manager import FormulaManager +from statsmodels.formula.api import glm, ols +import statsmodels.tools._testing as smt +from statsmodels.tools.sm_exceptions import ( + HessianInversionWarning, + SingularMatrixWarning, +) + + +class CheckGenericMixinBase: + + def setup_method(self): + nobs = 500 + rs = np.random.RandomState(987689) + x = rs.randn(nobs, 3) + x = sm.add_constant(x) + self.exog = x + self.xf = 0.25 * np.ones((2, 4)) + self.predict_kwds = {} + self.transform_index = None + + def test_ttest_tvalues(self): + # test that t_test has same results a params, bse, tvalues, ... + smt.check_ttest_tvalues(self.results) + + res = self.results + mat = np.eye(len(res.params)) + + tt = res.t_test(mat[0]) + + def string_confint(alpha): + return f"[{(alpha / 2):4.3F} {(1 - alpha / 2):4.3F}]" + + summ = tt.summary() # smoke test for #1323 + assert_allclose(tt.pvalue, res.pvalues[0], rtol=5e-10) + assert_(string_confint(0.05) in str(summ)) + + # issue #3116 alpha not used in column headers + summ = tt.summary(alpha=0.1) + ss = "[0.05 0.95]" # different formatting + assert_(ss in str(summ)) + + summf = tt.summary_frame(alpha=0.1) + pvstring_use_t = "P>|z|" if res.use_t is False else "P>|t|" + tstring_use_t = "z" if res.use_t is False else "t" + cols = [ + "coef", + "std err", + tstring_use_t, + pvstring_use_t, + "Conf. Int. Low", + "Conf. Int. Upp.", + ] + assert_array_equal(summf.columns.values, cols) + + def test_ftest_pvalues(self): + smt.check_ftest_pvalues(self.results) + + def test_fitted(self): + smt.check_fitted(self.results) + + def test_predict_types(self): + smt.check_predict_types(self.results) + + def _get_constrained(self, keep_index, keep_index_p): + # override in some test classes, no fit_kwds yet, e.g., cov_type + mod2 = self.results.model + mod_cls = mod2.__class__ + init_kwds = mod2._get_init_kwds() + mod = mod_cls(mod2.endog, mod2.exog[:, keep_index], **init_kwds) + if self.use_start_params: + res = mod.fit(start_params=self.results.params[keep_index_p], maxiter=500) + else: + res = mod.fit(maxiter=500) + return res + + @pytest.mark.thread_unsafe(reason="Model is mutable including using del") + def test_zero_collinear(self): + # not completely generic yet + if isinstance(self.results.model, (sm.GEE)): + pytest.skip("Not completely generic yet") + + use_start_params = not isinstance( + self.results.model, (sm.RLM, sm.OLS, sm.WLS, sm.GLM) + ) + self.use_start_params = use_start_params # attach for _get_constrained + keep_index = list(range(self.results.model.exog.shape[1])) + # index for params might include extra params + keep_index_p = list(range(self.results.params.shape[0])) + drop_index = [] + for i in drop_index: + del keep_index[i] + del keep_index_p[i] + + keep_index_p = list(range(self.results.params.shape[0])) + + # create collinear model + mod2 = self.results.model + mod_cls = mod2.__class__ + init_kwds = mod2._get_init_kwds() + ex = np.column_stack((mod2.exog, mod2.exog)) + mod = mod_cls(mod2.endog, ex, **init_kwds) + + keep_index = list(range(self.results.model.exog.shape[1])) + keep_index_p = list(range(self.results.model.exog.shape[1])) + k_vars = ex.shape[1] + k_extra = 0 + if hasattr(mod, "k_extra") and mod.k_extra > 0: + keep_index_p += list(range(k_vars, k_vars + mod.k_extra)) + k_extra = mod.k_extra + + # TODO: Can we choose a test case without this issue? + # If not, should we be getting this warning for all + # model subclasses? + # TODO: Investigate how to resolve unseen warnings for Pyodide + # Most likely coming from NumPy.linalg + lack of fp exceptions + # support under WASM + if isinstance(mod, sm.GLM) and not PYTHON_IMPL_WASM: + warn_cls = HessianInversionWarning + elif self.__class__.__name__ == "TestGenericOLSOneExog" and PYTHON_IMPL_WASM: + # Workaround for likely bug in WASM + warn_cls = None + elif isinstance(mod, (sm.WLS, sm.GLS, sm.RLM)): + warn_cls = SingularMatrixWarning + else: + warn_cls = None + + cov_types = ["nonrobust", "HC0"] + + for cov_type in cov_types: + # Note: for RLM we only check default when cov_type is 'nonrobust' + # cov_type is otherwise ignored + if cov_type != "nonrobust" and (isinstance(self.results.model, sm.RLM)): + return + + if use_start_params: + start_params = np.zeros(k_vars + k_extra) + method = self.results.mle_settings["optimizer"] + # string in `method` is not mutable, so no need for copy + sp = self.results.mle_settings["start_params"].copy() + if self.transform_index is not None: + # work around internal transform_params, currently in NB + sp[self.transform_index] = np.exp(sp[self.transform_index]) + + start_params[keep_index_p] = sp + with pytest_warns(warn_cls): + res1 = mod._fit_collinear( + cov_type=cov_type, + start_params=start_params, + method=method, + disp=0, + ) + if cov_type != "nonrobust": + # reestimate original model to get robust cov + with pytest_warns(warn_cls): + res2 = self.results.model.fit( + cov_type=cov_type, start_params=sp, method=method, disp=0 + ) + else: + # TODO: _fit_collinear is clearly broken with OLS/WLS/GLS/RLM + # Should be fixed in one of these classes. + # For now just skip the test for these classes + with pytest_warns(warn_cls): + # more special casing RLM + if isinstance(self.results.model, (sm.RLM)): + res1 = mod._fit_collinear() + else: + res1 = mod._fit_collinear(cov_type=cov_type) + if cov_type != "nonrobust": + # reestimate original model to get robust cov + res2 = self.results.model.fit(cov_type=cov_type) + + if cov_type == "nonrobust": + res2 = self.results + + # check fit optimizer arguments, if mle_settings is available + if hasattr(res2, "mle_settings"): + assert_equal( + res1.results_constrained.mle_settings["optimizer"], + res2.mle_settings["optimizer"], + ) + if "start_params" in res2.mle_settings: + spc = res1.results_constrained.mle_settings["start_params"] + assert_allclose( + spc, res2.mle_settings["start_params"], rtol=1e-10, atol=1e-20 + ) + assert_equal( + res1.mle_settings["optimizer"], res2.mle_settings["optimizer"] + ) + assert_allclose( + res1.mle_settings["start_params"], + res2.mle_settings["start_params"], + rtol=1e-10, + atol=1e-20, + ) + + # Poisson has reduced precision in params, difficult optimization? + assert_allclose(res1.params[keep_index_p], res2.params, rtol=1e-6) + assert_allclose(res1.params[drop_index], 0, rtol=1e-10) + assert_allclose(res1.bse[keep_index_p], res2.bse, rtol=1e-8) + assert_allclose(res1.bse[drop_index], 0, rtol=1e-10) + tvals1 = res1.tvalues[keep_index_p] + assert_allclose(tvals1, res2.tvalues, rtol=5e-8) + + # See gh5993 + pvals1 = res1.pvalues[keep_index_p] + assert_allclose(pvals1, res2.pvalues, rtol=1e-6, atol=1e-30) + + if hasattr(res1, "resid"): + # discrete models, Logit do not have `resid` yet + assert_allclose(res1.resid, res2.resid, rtol=1e-5, atol=1e-10) + + ex = res1.model.exog.mean(0) + predicted1 = res1.predict(ex, **self.predict_kwds) + predicted2 = res2.predict(ex[keep_index], **self.predict_kwds) + assert_allclose(predicted1, predicted2, rtol=1e-8, atol=1e-11) + + ex = res1.model.exog[:5] + kwds = getattr(self, "predict_kwds_5", {}) + + predicted1 = res1.predict(ex, **kwds) + predicted2 = res2.predict(ex[:, keep_index], **kwds) + assert_allclose(predicted1, predicted2, rtol=1e-8, atol=1e-11) + + +# subclasses for individual models, unchanged from test_shrink_pickle +# TODO: check if setup_class is faster than setup + + +class CheckGenericMixin(CheckGenericMixinBase): + def test_zero_constrained(self): + # not completely generic yet + if isinstance(self.results.model, (sm.GEE)): + # GEE does not subclass LikelihoodModel + pytest.skip("GEE does not subclass LikelihoodModel") + + use_start_params = not isinstance(self.results.model, (sm.RLM, sm.OLS, sm.WLS)) + self.use_start_params = use_start_params # attach for _get_constrained + + keep_index = list(range(self.results.model.exog.shape[1])) + # index for params might include extra params + keep_index_p = list(range(self.results.params.shape[0])) + drop_index = [1] + for i in drop_index: + del keep_index[i] + del keep_index_p[i] + + if use_start_params: + res1 = self.results.model._fit_zeros( + keep_index, maxiter=500, start_params=self.results.params + ) + else: + res1 = self.results.model._fit_zeros(keep_index, maxiter=500) + + res2 = self._get_constrained(keep_index, keep_index_p) + + assert_allclose(res1.params[keep_index_p], res2.params, rtol=1e-10, atol=1e-10) + assert_equal(res1.params[drop_index], 0) + assert_allclose(res1.bse[keep_index_p], res2.bse, rtol=1e-10, atol=1e-10) + assert_equal(res1.bse[drop_index], 0) + # OSX has many slight failures on this test + tol = 1e-8 if PLATFORM_OSX else 1e-10 + tvals1 = res1.tvalues[keep_index_p] + assert_allclose(tvals1, res2.tvalues, rtol=tol, atol=tol) + + # See gh5993 + pvals1 = res1.pvalues[keep_index_p] + assert_allclose(pvals1, res2.pvalues, rtol=tol, atol=tol) + + if hasattr(res1, "resid"): + # discrete models, Logit do not have `resid` yet + # atol discussion at gh-5158 + rtol = 1e-10 + atol = 1e-12 + if PLATFORM_OSX or PLATFORM_WIN32: + # GH 5628 + rtol = 1e-8 + atol = 1e-10 + assert_allclose(res1.resid, res2.resid, rtol=rtol, atol=atol) + + ex = self.results.model.exog.mean(0) + predicted1 = res1.predict(ex, **self.predict_kwds) + predicted2 = res2.predict(ex[keep_index], **self.predict_kwds) + assert_allclose(predicted1, predicted2, rtol=1e-10) + + ex = self.results.model.exog[:5] + predicted1 = res1.predict(ex, **self.predict_kwds) + predicted2 = res2.predict(ex[:, keep_index], **self.predict_kwds) + assert_allclose(predicted1, predicted2, rtol=1e-10) + + +@pytest.fixture +def data(): + nobs = 500 + rs = np.random.RandomState(987689) + x = rs.randn(nobs, 3) + x = sm.add_constant(x) + xf = 0.25 * np.ones((2, 4)) + predict_kwds = {} + transform_index = None + return x, xf, predict_kwds, transform_index + + +@pytest.fixture +def fit_model(data): + x, _, _, _ = data + rs = np.random.RandomState(987689) + y = x.sum(axis=1) + rs.randn(x.shape[0]) + res = sm.OLS(y, x).fit() + return res + + +def test_ttest_tvalues(fit_model): + # test that t_test has same results a params, bse, tvalues, ... + smt.check_ttest_tvalues(fit_model) + + res = fit_model + mat = np.eye(len(res.params)) + + tt = res.t_test(mat[0]) + + def string_confint(alpha): + return f"[{(alpha / 2):4.3F} {(1 - alpha / 2):4.3F}]" + + summ = tt.summary() # smoke test for #1323 + assert_allclose(tt.pvalue, res.pvalues[0], rtol=5e-10) + assert_(string_confint(0.05) in str(summ)) + + # issue #3116 alpha not used in column headers + summ = tt.summary(alpha=0.1) + ss = "[0.05 0.95]" # different formatting + assert_(ss in str(summ)) + + summf = tt.summary_frame(alpha=0.1) + pvstring_use_t = "P>|z|" if res.use_t is False else "P>|t|" + tstring_use_t = "z" if res.use_t is False else "t" + cols = [ + "coef", + "std err", + tstring_use_t, + pvstring_use_t, + "Conf. Int. Low", + "Conf. Int. Upp.", + ] + assert_array_equal(summf.columns.values, cols) + + +class TestGenericOLS(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + y = x.sum(axis=1) + rs.randn(x.shape[0]) + self.results = sm.OLS(y, self.exog).fit() + + +class TestGenericOLSOneExog(CheckGenericMixin): + # check with single regressor (no constant) + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog[:, 1] + rs = np.random.RandomState(987689) + y = x + rs.randn(x.shape[0]) + self.results = sm.OLS(y, x).fit() + + def test_zero_constrained(self): + # override, we cannot remove the only regressor + pytest.skip("Override since cannot remove the only regressor") + + +class TestGenericWLS(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + y = x.sum(axis=1) + rs.randn(x.shape[0]) + self.results = sm.WLS(y, self.exog, weights=np.ones(len(y))).fit() + + +class TestGenericPoisson(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + y_count = rs.poisson(np.exp(x.sum(1) - x.mean())) + model = sm.Poisson(y_count, x) + # use start_params to converge faster + start_params = np.array([0.75334818, 0.99425553, 1.00494724, 1.00247112]) + self.results = model.fit(start_params=start_params, method="bfgs", disp=0) + + +class TestGenericPoissonOffset(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + nobs = x.shape[0] + rs = np.random.RandomState(987689) + y_count = rs.poisson(np.exp(x.sum(1) - x.mean())) + model = sm.Poisson( + y_count, x, offset=0.01 * np.ones(nobs), exposure=np.ones(nobs) + ) # bug with default + # use start_params to converge faster + start_params = np.array([0.75334818, 0.99425553, 1.00494724, 1.00247112]) + self.results = model.fit(start_params=start_params, method="bfgs", disp=0) + + self.predict_kwds_5 = dict(exposure=0.01 * np.ones(5), offset=np.ones(5)) + self.predict_kwds = dict(exposure=1, offset=0) + + +class TestGenericNegativeBinomial(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + data = sm.datasets.randhie.load() + data.exog = np.asarray(data.exog) + data.endog = np.asarray(data.endog) + exog = sm.add_constant(data.exog, prepend=False) + mod = sm.NegativeBinomial(data.endog, exog) + start_params = np.array( + [ + -0.05783623, + -0.26655806, + 0.04109148, + -0.03815837, + 0.2685168, + 0.03811594, + -0.04426238, + 0.01614795, + 0.17490962, + 0.66461151, + 1.29259570, + ] + ) + self.results = mod.fit(start_params=start_params, disp=0, maxiter=500) + self.transform_index = -1 + + +class TestGenericLogit(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + nobs = x.shape[0] + rs = np.random.RandomState(987689) + y_bin = (rs.rand(nobs) < 1.0 / (1 + np.exp(x.sum(1) - x.mean()))).astype(int) + model = sm.Logit(y_bin, x) # ,exposure=np.ones(nobs), offset=np.zeros(nobs)) + # # bug with default + # use start_params to converge faster + start_params = np.array([-0.73403806, -1.00901514, -0.97754543, -0.95648212]) + with pytest.warns(FutureWarning, match="Keyword arguments have been passed"): + self.results = model.fit( + start_params=start_params, method="bfgs", disp=0, tol=1e-5 + ) + + +class TestGenericRLM(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + y = x.sum(axis=1) + rs.randn(x.shape[0]) + self.results = sm.RLM(y, self.exog).fit() + + +class TestGenericGLM(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + y = x.sum(axis=1) + rs.randn(x.shape[0]) + self.results = sm.GLM(y, self.exog).fit() + + @pytest.mark.thread_unsafe(reason="Modifies the model object in test") + def test_zero_constrained(self): + super().test_zero_constrained() + + +class TestGenericGLMPoissonOffset(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + nobs = x.shape[0] + rs = np.random.RandomState(987689) + y_count = rs.poisson(np.exp(x.sum(1) - x.mean())) + model = sm.GLM( + y_count, + x, + family=sm.families.Poisson(), + offset=0.01 * np.ones(nobs), + exposure=np.ones(nobs), + ) + # use start_params to converge faster + start_params = np.array([0.75334818, 0.99425553, 1.00494724, 1.00247112]) + self.results = model.fit(start_params=start_params, method="bfgs", disp=0) + + self.predict_kwds_5 = dict(exposure=0.01 * np.ones(5), offset=np.ones(5)) + self.predict_kwds = dict(exposure=1, offset=0) + + @pytest.mark.thread_unsafe(reason="Modifies the model object in test") + def test_zero_constrained(self): + super().test_zero_constrained() + + +class TestGenericGEEPoisson(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + y_count = rs.poisson(np.exp(x.sum(1) - x.mean())) + groups = rs.randint(0, 4, size=x.shape[0]) + # use start_params to speed up test, difficult convergence not tested + + start_params = np.array([0.0, 1.0, 1.0, 1.0]) + + vi = sm.cov_struct.Independence() + family = sm.families.Poisson() + self.results = sm.GEE( + y_count, self.exog, groups, family=family, cov_struct=vi + ).fit(start_params=start_params) + + +class TestGenericGEEPoissonNaive(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + # y_count = rs.poisson(np.exp(x.sum(1) - x.mean())) + + y_count = rs.poisson(np.exp(x.sum(1) - x.sum(1).mean(0))) + groups = rs.randint(0, 4, size=x.shape[0]) + # use start_params to speed up test, difficult convergence not tested + + start_params = np.array([0.0, 1.0, 1.0, 1.0]) + + vi = sm.cov_struct.Independence() + family = sm.families.Poisson() + self.results = sm.GEE( + y_count, self.exog, groups, family=family, cov_struct=vi + ).fit(start_params=start_params, cov_type="naive") + + +class TestGenericGEEPoissonBC(CheckGenericMixin): + + def setup_method(self): + # fit for each test, because results will be changed by test + super().setup_method() + x = self.exog + rs = np.random.RandomState(987689) + # y_count = rs.poisson(np.exp(x.sum(1) - x.mean())) + y_count = rs.poisson(np.exp(x.sum(1) - x.sum(1).mean(0))) + groups = rs.randint(0, 4, size=x.shape[0]) + # use start_params to speed up test, difficult convergence not tested + start_params = np.array([0.0, 1.0, 1.0, 1.0]) + # params_est = np.array([-0.0063238 , 0.99463752, 1.02790201, 0.98080081]) + + vi = sm.cov_struct.Independence() + family = sm.families.Poisson() + mod = sm.GEE(y_count, self.exog, groups, family=family, cov_struct=vi) + self.results = mod.fit(start_params=start_params, cov_type="bias_reduced") + + +# Other test classes + + +class CheckAnovaMixin: + + def setup_method(self): + import statsmodels.stats.tests.test_anova as ttmod + + self.data = ttmod.kidney_table.drop([0, 1, 2]) + self.initialize() + + def test_combined(self): + res = self.res + wa = res.wald_test_terms( + skip_single=False, combine_terms=["Duration", "Weight"], scalar=True + ) + eye = np.eye(len(res.params)) + c_const = eye[0] + c_w = eye[[2, 3]] + c_d = eye[1] + c_dw = eye[[4, 5]] + c_weight = eye[2:6] + c_duration = eye[[1, 4, 5]] + + compare_waldres(res, wa, [c_const, c_d, c_w, c_dw, c_duration, c_weight]) + + def test_categories(self): + # test only multicolumn terms + res = self.res + wa = res.wald_test_terms(skip_single=True, scalar=True) + eye = np.eye(len(res.params)) + c_w = eye[[2, 3]] + c_dw = eye[[4, 5]] + + compare_waldres(res, wa, [c_w, c_dw]) + + +def compare_waldres(res, wa, constrasts): + for i, c in enumerate(constrasts): + wt = res.wald_test(c, scalar=True) + assert_allclose(wa.table.values[i, 0], wt.statistic) + assert_allclose(wa.table.values[i, 1], wt.pvalue) + # df should match the rank-adjusted value from wald_test + if res.use_t: + df = int(wt.df_num) + else: + df = int(wt.df_denom) + assert_equal(wa.table.values[i, 2], df) + # attributes + assert_allclose(wa.statistic[i], wt.statistic) + assert_allclose(wa.pvalues[i], wt.pvalue) + assert_equal(wa.df_constraints[i], df) + if res.use_t: + assert_equal(wa.df_denom[i], res.df_resid) + + col_names = wa.col_names + if res.use_t: + assert_equal(wa.distribution, "F") + assert_equal(col_names[0], "F") + assert_equal(col_names[1], "P>F") + else: + assert_equal(wa.distribution, "chi2") + assert_equal(col_names[0], "chi2") + assert_equal(col_names[1], "P>chi2") + + # SMOKETEST + wa.summary_frame() + + +class TestWaldAnovaOLS(CheckAnovaMixin): + + def initialize(self): + mod = ols("np.log(Days+1) ~ C(Duration, Sum)*C(Weight, Sum)", self.data) + self.res = mod.fit(use_t=False) + + def test_noformula(self): + # this verifies single and composite constraints against explicit + # wald test + endog = self.res.model.endog + exog = self.res.model.data.orig_exog + exog = pd.DataFrame(exog) + + res = sm.OLS(endog, exog).fit() + wa = res.wald_test_terms( + skip_single=False, combine_terms=["Duration", "Weight"], scalar=True + ) + eye = np.eye(len(res.params)) + + c_single = list(eye) + c_weight = eye[2:6] + c_duration = eye[[1, 4, 5]] + + compare_waldres(res, wa, c_single + [c_duration, c_weight]) + + # assert correct df_constraints, see #5475 for bug in single constraint + df_constraints = [1] * len(c_single) + [3, 4] + assert_equal(wa.df_constraints, df_constraints) + + +class TestWaldAnovaOLSF(CheckAnovaMixin): + + def initialize(self): + mod = ols("np.log(Days+1) ~ C(Duration, Sum)*C(Weight, Sum)", self.data) + self.res = mod.fit() # default use_t=True + + def test_predict_missing(self): + ex = self.data[:5].copy() + ex.iloc[0, 1] = np.nan + predicted1 = self.res.predict(ex) + predicted2 = self.res.predict(ex[1:]) + + assert_index_equal(predicted1.index, ex.index) + assert_series_equal(predicted1.iloc[1:], predicted2) + assert_equal(predicted1.values[0], np.nan) + + +class TestWaldAnovaGLM(CheckAnovaMixin): + + def initialize(self): + mod = glm("np.log(Days+1) ~ C(Duration, Sum)*C(Weight, Sum)", self.data) + self.res = mod.fit(use_t=False) + + +class TestWaldAnovaPoisson(CheckAnovaMixin): + + def initialize(self): + from statsmodels.discrete.discrete_model import Poisson + + mod = Poisson.from_formula("Days ~ C(Duration, Sum)*C(Weight, Sum)", self.data) + self.res = mod.fit(cov_type="HC0") + + +class TestWaldAnovaNegBin(CheckAnovaMixin): + + def initialize(self): + from statsmodels.discrete.discrete_model import NegativeBinomial + + formula = "Days ~ C(Duration, Sum)*C(Weight, Sum)" + mod = NegativeBinomial.from_formula(formula, self.data, loglike_method="nb2") + self.res = mod.fit() + + +class TestWaldAnovaNegBin1(CheckAnovaMixin): + + def initialize(self): + from statsmodels.discrete.discrete_model import NegativeBinomial + + formula = "Days ~ C(Duration, Sum)*C(Weight, Sum)" + mod = NegativeBinomial.from_formula(formula, self.data, loglike_method="nb1") + self.res = mod.fit(cov_type="HC0") + + +class CheckPairwise: + + def test_default(self): + res = self.res + + tt = res.t_test(self.constraints) + + pw = res.t_test_pairwise(self.term_name) + pw_frame = pw.result_frame + assert_allclose(pw_frame.iloc[:, :6].values, tt.summary_frame().values) + + +class TestTTestPairwiseOLS(CheckPairwise): + + def setup_method(self): + from statsmodels.formula.api import ols + import statsmodels.stats.tests.test_anova as ttmod + + test = ttmod.TestAnova3() + test.setup_class() + self.data = test.data.drop([0, 1, 2]) + + mod = ols("np.log(Days+1) ~ C(Duration) + C(Weight)", self.data) + self.res = mod.fit() + self.term_name = "C(Weight)" + self.constraints = [ + "C(Weight)[T.2]", + "C(Weight)[T.3]", + "C(Weight)[T.3] - C(Weight)[T.2]", + ] + + def test_alpha(self): + pw1 = self.res.t_test_pairwise( + self.term_name, method="hommel", factor_labels="A B C".split() + ) + pw2 = self.res.t_test_pairwise(self.term_name, method="hommel", alpha=0.01) + assert_allclose( + pw1.result_frame.iloc[:, :7].values, + pw2.result_frame.iloc[:, :7].values, + rtol=1e-10, + ) + assert_equal(pw1.result_frame.iloc[:, -1].values, [True] * 3) + assert_equal(pw2.result_frame.iloc[:, -1].values, [False, True, False]) + + assert_equal( + pw1.result_frame.index.values, np.array(["B-A", "C-A", "C-B"], dtype=object) + ) + + +class TestTTestPairwiseOLS2(CheckPairwise): + + def setup_method(self): + from statsmodels.formula.api import ols + import statsmodels.stats.tests.test_anova as ttmod + + test = ttmod.TestAnova3() + test.setup_class() + self.data = test.data.drop([0, 1, 2]) + + mod = ols("np.log(Days+1) ~ C(Weight) + C(Duration)", self.data) + self.res = mod.fit() + self.term_name = "C(Weight)" + self.constraints = [ + "C(Weight)[T.2]", + "C(Weight)[T.3]", + "C(Weight)[T.3] - C(Weight)[T.2]", + ] + + +class TestTTestPairwiseOLS3(CheckPairwise): + + def setup_method(self): + from statsmodels.formula.api import ols + import statsmodels.stats.tests.test_anova as ttmod + + test = ttmod.TestAnova3() + test.setup_class() + self.data = test.data.drop([0, 1, 2]) + + mod = ols("np.log(Days+1) ~ C(Weight) + C(Duration) - 1", self.data) + self.res = mod.fit() + self.term_name = "C(Weight)" + self.constraints = [ + "C(Weight)[2] - C(Weight)[1]", + "C(Weight)[3] - C(Weight)[1]", + "C(Weight)[3] - C(Weight)[2]", + ] + + +class TestTTestPairwiseOLS4(CheckPairwise): + + def setup_method(self): + from statsmodels.formula.api import ols + import statsmodels.stats.tests.test_anova as ttmod + + test = ttmod.TestAnova3() + test.setup_class() + self.data = test.data.drop([0, 1, 2]) + + mod = ols("np.log(Days+1) ~ C(Weight, Treatment(2)) + C(Duration)", self.data) + self.res = mod.fit() + self.term_name = "C(Weight, Treatment(2))" + self.constraints = [ + "-C(Weight, Treatment(2))[T.1]", + "C(Weight, Treatment(2))[T.3] - C(Weight, Treatment(2))[T.1]", + "C(Weight, Treatment(2))[T.3]", + ] + + +class TestTTestPairwisePoisson(CheckPairwise): + + def setup_method(self): + from statsmodels.discrete.discrete_model import Poisson + import statsmodels.stats.tests.test_anova as ttmod + + test = ttmod.TestAnova3() + test.setup_class() + self.data = test.data.drop([0, 1, 2]) + + mod = Poisson.from_formula("Days ~ C(Duration) + C(Weight)", self.data) + self.res = mod.fit(cov_type="HC0") + self.term_name = "C(Weight)" + self.constraints = [ + "C(Weight)[T.2]", + "C(Weight)[T.3]", + "C(Weight)[T.3] - C(Weight)[T.2]", + ] + + +class TestWaldAnovaRankDeficient: + """Test wald_test_terms reports rank-adjusted df for rank-deficient models. + + Regression test for GH#9686. + """ + + def setup_method(self): + rs = np.random.RandomState(4567) + n = 60 + fertilizer = np.repeat(["A", "B", "C"], n // 3) + # tech0 is nested: not all fertilizer x tech0 combos exist + tech0 = [] + for f in fertilizer: + if f == "A": + tech0.append(rs.choice(["t1", "t2"])) + elif f == "B": + tech0.append(rs.choice(["t1", "t3"])) + else: + tech0.append(rs.choice(["t2", "t3"])) + + data = pd.DataFrame({ + "y": rs.randn(n), + "fertilizer": fertilizer, + "tech0": tech0, + }) + mod = ols("y ~ C(fertilizer) * C(tech0)", data) + with pytest.warns(SingularMatrixWarning, match="rank-deficient"): + # Intentionally singular, _fit_collinear doesn't even work + self.res = mod._fit_collinear() + + def test_df_rank_adjusted(self): + # The interaction term has 4 columns but only 1 is non-redundant + res = self.res + wa = res.wald_test_terms(scalar=True) + + # Check each term's df matches what wald_test returns + mgr = FormulaManager() + model_spec = getattr(res.model.data, "model_spec", None) + identity = np.eye(len(res.params)) + + for i, term in enumerate(model_spec.terms): + cols = mgr.get_slice(model_spec, term) + constraint = identity[cols] + wt = res.wald_test(constraint, scalar=True) + expected_df = int(wt.df_num) + reported_df = int(wa.table.iloc[i]["df_constraint"]) + assert_equal( + reported_df, expected_df, + err_msg=f"df_constraint mismatch for term {i}" + ) + + def test_interaction_df_less_than_nominal(self): + # The interaction has 4 constraint rows but rank < 4 + res = self.res + wa = res.wald_test_terms(scalar=True) + interaction_df = int(wa.table.iloc[-1]["df_constraint"]) + # With missing cells, the interaction rank is less than 4 + assert interaction_df < 4 diff --git a/shared/package-files/e8/e84dba71cf3bdaf0ed4825f40755d01801d45bf6a3c18702b4a2a0fa3ade8c98/blob b/shared/package-files/e8/e84dba71cf3bdaf0ed4825f40755d01801d45bf6a3c18702b4a2a0fa3ade8c98/blob new file mode 100644 index 0000000000000000000000000000000000000000..68c93054744cd7cabac18c1fd73a8beb51237fd5 --- /dev/null +++ b/shared/package-files/e8/e84dba71cf3bdaf0ed4825f40755d01801d45bf6a3c18702b4a2a0fa3ade8c98/blob @@ -0,0 +1,50 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, +) + +from google.protobuf.internal.containers import ( + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) + +from google.protobuf.internal.well_known_types import ( + FieldMask as google___protobuf___internal___well_known_types___FieldMask, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +class FieldMask(google___protobuf___message___Message, google___protobuf___internal___well_known_types___FieldMask): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + paths: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + + def __init__(self, + *, + paths : typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"paths",b"paths"]) -> None: ... +type___FieldMask = FieldMask diff --git a/shared/package-files/e8/e8522f362e3c0c4324f7cce8594cae103c699aae567b80c05f808641f333d7bc/blob b/shared/package-files/e8/e8522f362e3c0c4324f7cce8594cae103c699aae567b80c05f808641f333d7bc/blob new file mode 100644 index 0000000000000000000000000000000000000000..1f2c1b55c5bca6ead5de91db2c3cc36a1d314e20 --- /dev/null +++ b/shared/package-files/e8/e8522f362e3c0c4324f7cce8594cae103c699aae567b80c05f808641f333d7bc/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API _saturate_weight_to_fp16 { + using schema = at::Tensor (const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_saturate_weight_to_fp16") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_saturate_weight_to_fp16(Tensor weight) -> Tensor") + static at::Tensor call(const at::Tensor & weight); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & weight); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e8/e8533dc7083fa346bda1933d60ea4a83b67d0945bceaf1b3541f82b4a0e2c6a0/blob b/shared/package-files/e8/e8533dc7083fa346bda1933d60ea4a83b67d0945bceaf1b3541f82b4a0e2c6a0/blob new file mode 100644 index 0000000000000000000000000000000000000000..64ca51419ec522ee78c91e6f36f57fdb3bde290b --- /dev/null +++ b/shared/package-files/e8/e8533dc7083fa346bda1933d60ea4a83b67d0945bceaf1b3541f82b4a0e2c6a0/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8533dc7083fa346bda1933d60ea4a83b67d0945bceaf1b3541f82b4a0e2c6a0 +size 237360 diff --git a/shared/package-files/e8/e8555eeb8cf86bd7896b8293255c208a27f8fed90bd755f9fedd70a716c4e59d/blob b/shared/package-files/e8/e8555eeb8cf86bd7896b8293255c208a27f8fed90bd755f9fedd70a716c4e59d/blob new file mode 100644 index 0000000000000000000000000000000000000000..ad560922ed827d4eeac753bd790fefe2f8b7ce94 --- /dev/null +++ b/shared/package-files/e8/e8555eeb8cf86bd7896b8293255c208a27f8fed90bd755f9fedd70a716c4e59d/blob @@ -0,0 +1,50 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API lcm_out { + using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::lcm") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "lcm.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out); +}; + +struct TORCH_API lcm { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::lcm") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "lcm(Tensor self, Tensor other) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Tensor & other); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other); +}; + +struct TORCH_API lcm_ { + using schema = at::Tensor & (at::Tensor &, const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::lcm_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "lcm_(Tensor(a!) self, Tensor other) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, const at::Tensor & other); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e8/e855b49714731f353906c33bb6ebcbac7ddfac7977d8ef8afb026c296de64333/blob b/shared/package-files/e8/e855b49714731f353906c33bb6ebcbac7ddfac7977d8ef8afb026c296de64333/blob new file mode 100644 index 0000000000000000000000000000000000000000..1a324f784df7da7c7cef7edd359f19189d915860 --- /dev/null +++ b/shared/package-files/e8/e855b49714731f353906c33bb6ebcbac7ddfac7977d8ef8afb026c296de64333/blob @@ -0,0 +1,295 @@ +# This file is part of Patsy +# Copyright (C) 2011 Nathaniel Smith +# See file LICENSE.txt for license information. + +# This file defines a parser for a simple language based on S/R "formulas" +# (which are described in sections 2.3 and 2.4 in Chambers & Hastie, 1992). It +# uses the machinery in patsy.parse_core to do the heavy-lifting -- its +# biggest job is to handle tokenization. + + +__all__ = ["parse_formula"] + +# The Python tokenizer +import tokenize + +from io import StringIO + +from patsy import PatsyError +from patsy.origin import Origin +from patsy.infix_parser import Token, Operator, infix_parse, ParseNode +from patsy.tokens import python_tokenize, pretty_untokenize +from patsy.util import PushbackAdapter + +_atomic_token_types = ["PYTHON_EXPR", "ZERO", "ONE", "NUMBER"] + + +def _is_a(f, v): + try: + f(v) + except ValueError: + return False + else: + return True + + +# Helper function for _tokenize_formula: +def _read_python_expr(it, end_tokens): + # Read out a full python expression, stopping when we hit an + # unnested end token. + pytypes = [] + token_strings = [] + origins = [] + bracket_level = 0 + for pytype, token_string, origin in it: + assert bracket_level >= 0 + if bracket_level == 0 and token_string in end_tokens: + it.push_back((pytype, token_string, origin)) + break + if token_string in ("(", "[", "{"): + bracket_level += 1 + if token_string in (")", "]", "}"): + bracket_level -= 1 + if bracket_level < 0: + raise PatsyError("unmatched close bracket", origin) + pytypes.append(pytype) + token_strings.append(token_string) + origins.append(origin) + # Either we found an end_token, or we hit the end of the string + if bracket_level == 0: + expr_text = pretty_untokenize(zip(pytypes, token_strings)) + if expr_text == "0": + token_type = "ZERO" + elif expr_text == "1": + token_type = "ONE" + elif _is_a(int, expr_text) or _is_a(float, expr_text): + token_type = "NUMBER" + else: + token_type = "PYTHON_EXPR" + return Token(token_type, Origin.combine(origins), extra=expr_text) + else: + raise PatsyError( + "unclosed bracket in embedded Python expression", Origin.combine(origins) + ) + + +def _tokenize_formula(code, operator_strings): + assert "(" not in operator_strings + assert ")" not in operator_strings + magic_token_types = { + "(": Token.LPAREN, + ")": Token.RPAREN, + } + for operator_string in operator_strings: + magic_token_types[operator_string] = operator_string + # Once we enter a Python expression, a ( does not end it, but any other + # "magic" token does: + end_tokens = set(magic_token_types) + end_tokens.remove("(") + + it = PushbackAdapter(python_tokenize(code)) + for pytype, token_string, origin in it: + if token_string in magic_token_types: + yield Token(magic_token_types[token_string], origin) + else: + it.push_back((pytype, token_string, origin)) + yield _read_python_expr(it, end_tokens) + + +def test__tokenize_formula(): + code = "y ~ a + (foo(b,c + 2)) + -1 + 0 + 10" + tokens = list(_tokenize_formula(code, ["+", "-", "~"])) + expecteds = [ + ("PYTHON_EXPR", Origin(code, 0, 1), "y"), + ("~", Origin(code, 2, 3), None), + ("PYTHON_EXPR", Origin(code, 4, 5), "a"), + ("+", Origin(code, 6, 7), None), + (Token.LPAREN, Origin(code, 8, 9), None), + ("PYTHON_EXPR", Origin(code, 9, 23), "foo(b, c + 2)"), + (Token.RPAREN, Origin(code, 23, 24), None), + ("+", Origin(code, 25, 26), None), + ("-", Origin(code, 27, 28), None), + ("ONE", Origin(code, 28, 29), "1"), + ("+", Origin(code, 30, 31), None), + ("ZERO", Origin(code, 32, 33), "0"), + ("+", Origin(code, 34, 35), None), + ("NUMBER", Origin(code, 36, 38), "10"), + ] + for got, expected in zip(tokens, expecteds): + assert isinstance(got, Token) + assert got.type == expected[0] + assert got.origin == expected[1] + assert got.extra == expected[2] + + +_unary_tilde = Operator("~", 1, -100) +_default_ops = [ + _unary_tilde, + Operator("~", 2, -100), + Operator("+", 2, 100), + Operator("-", 2, 100), + Operator("*", 2, 200), + Operator("/", 2, 200), + Operator(":", 2, 300), + Operator("**", 2, 500), + Operator("+", 1, 100), + Operator("-", 1, 100), +] + + +def parse_formula(code, extra_operators=[]): + if not code.strip(): + code = "~ 1" + + for op in extra_operators: + if op.precedence < 0: + raise ValueError("all operators must have precedence >= 0") + + operators = _default_ops + extra_operators + operator_strings = [op.token_type for op in operators] + tree = infix_parse( + _tokenize_formula(code, operator_strings), operators, _atomic_token_types + ) + if not isinstance(tree, ParseNode) or tree.type != "~": + tree = ParseNode("~", None, [tree], tree.origin) + return tree + + +############# + +_parser_tests = { + "": ["~", "1"], + " ": ["~", "1"], + " \n ": ["~", "1"], + "1": ["~", "1"], + "a": ["~", "a"], + "a ~ b": ["~", "a", "b"], + "(a ~ b)": ["~", "a", "b"], + "a ~ ((((b))))": ["~", "a", "b"], + "a ~ ((((+b))))": ["~", "a", ["+", "b"]], + "a + b + c": ["~", ["+", ["+", "a", "b"], "c"]], + "a + (b ~ c) + d": ["~", ["+", ["+", "a", ["~", "b", "c"]], "d"]], + "a + np.log(a, base=10)": ["~", ["+", "a", "np.log(a, base=10)"]], + # Note different spacing: + "a + np . log(a , base = 10)": ["~", ["+", "a", "np.log(a, base=10)"]], + # Check precedence + "a + b ~ c * d": ["~", ["+", "a", "b"], ["*", "c", "d"]], + "a + b * c": ["~", ["+", "a", ["*", "b", "c"]]], + "-a**2": ["~", ["-", ["**", "a", "2"]]], + "-a:b": ["~", ["-", [":", "a", "b"]]], + "a + b:c": ["~", ["+", "a", [":", "b", "c"]]], + "(a + b):c": ["~", [":", ["+", "a", "b"], "c"]], + "a*b:c": ["~", ["*", "a", [":", "b", "c"]]], + "a+b / c": ["~", ["+", "a", ["/", "b", "c"]]], + "~ a": ["~", "a"], + "-1": ["~", ["-", "1"]], +} + + +def _compare_trees(got, expected): + assert isinstance(got, ParseNode) + if got.args: + assert got.type == expected[0] + for arg, expected_arg in zip(got.args, expected[1:]): + _compare_trees(arg, expected_arg) + else: + assert got.type in _atomic_token_types + assert got.token.extra == expected + + +def _do_parse_test(test_cases, extra_operators): + for code, expected in test_cases.items(): + actual = parse_formula(code, extra_operators=extra_operators) + print(repr(code), repr(expected)) + print(actual) + _compare_trees(actual, expected) + + +def test_parse_formula(): + _do_parse_test(_parser_tests, []) + + +def test_parse_origin(): + tree = parse_formula("a ~ b + c") + assert tree.origin == Origin("a ~ b + c", 0, 9) + assert tree.token.origin == Origin("a ~ b + c", 2, 3) + assert tree.args[0].origin == Origin("a ~ b + c", 0, 1) + assert tree.args[1].origin == Origin("a ~ b + c", 4, 9) + assert tree.args[1].token.origin == Origin("a ~ b + c", 6, 7) + assert tree.args[1].args[0].origin == Origin("a ~ b + c", 4, 5) + assert tree.args[1].args[1].origin == Origin("a ~ b + c", 8, 9) + + +# <> mark off where the error should be reported: +_parser_error_tests = [ + "a <+>", + "a + <(>", + "a + b <# asdf>", + "<)>", + "a + <)>", + "<*> a", + "a + <*>", + "a + ", + "a + ", + "a + ", + "a + <[bar>", + "a + <{bar>", + "a + <{bar[]>", + "a + foo<]>bar", + "a + foo[]<]>bar", + "a + foo{}<}>bar", + "a + foo<)>bar", + "a + b<)>", + "(a) <.>", + "<(>a + b", + "a +< >'foo", # Not the best placement for the error +] + + +# Split out so it can also be used by tests of the evaluator (which also +# raises PatsyError's) +def _parsing_error_test(parse_fn, error_descs): # pragma: no cover + for error_desc in error_descs: + letters = [] + start = None + end = None + for letter in error_desc: + if letter == "<": + start = len(letters) + elif letter == ">": + end = len(letters) + else: + letters.append(letter) + bad_code = "".join(letters) + assert start is not None and end is not None + print(error_desc) + print(repr(bad_code), start, end) + try: + parse_fn(bad_code) + except PatsyError as e: + print(e) + assert e.origin.code == bad_code + assert e.origin.start in (0, start) + assert e.origin.end in (end, len(bad_code)) + else: + assert False, "parser failed to report an error!" + + +def test_parse_errors(extra_operators=[]): + def parse_fn(code): + return parse_formula(code, extra_operators=extra_operators) + + _parsing_error_test(parse_fn, _parser_error_tests) + + +_extra_op_parser_tests = { + "a | b": ["~", ["|", "a", "b"]], + "a * b|c": ["~", ["*", "a", ["|", "b", "c"]]], +} + + +def test_parse_extra_op(): + extra_operators = [Operator("|", 2, 250)] + _do_parse_test(_parser_tests, extra_operators=extra_operators) + _do_parse_test(_extra_op_parser_tests, extra_operators=extra_operators) + test_parse_errors(extra_operators=extra_operators) diff --git a/shared/package-files/e8/e8574af88880b26b2c210e989092cc9a2317f992ba12bf44483b9c53408ee790/blob b/shared/package-files/e8/e8574af88880b26b2c210e989092cc9a2317f992ba12bf44483b9c53408ee790/blob new file mode 100644 index 0000000000000000000000000000000000000000..708ce260c73e1e891589597998d193739e06dfec --- /dev/null +++ b/shared/package-files/e8/e8574af88880b26b2c210e989092cc9a2317f992ba12bf44483b9c53408ee790/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8574af88880b26b2c210e989092cc9a2317f992ba12bf44483b9c53408ee790 +size 2071644 diff --git a/shared/package-files/e8/e857e89d3355ec8a63035d771855b5646877df9f5d9d6282861b904821e23a8d/blob b/shared/package-files/e8/e857e89d3355ec8a63035d771855b5646877df9f5d9d6282861b904821e23a8d/blob new file mode 100644 index 0000000000000000000000000000000000000000..7c8c7e406cc8b1c91e22166e32a99001a777e99e --- /dev/null +++ b/shared/package-files/e8/e857e89d3355ec8a63035d771855b5646877df9f5d9d6282861b904821e23a8d/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API ::std::tuple _weight_norm_differentiable_backward(const at::Tensor & grad_w, const at::Tensor & saved_v, const at::Tensor & saved_g, const at::Tensor & saved_norms, int64_t dim); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/e8/e8587dc55feecf64d65e94d59eeec4496cb17d75e323a724026c2302ca692cb4/blob b/shared/package-files/e8/e8587dc55feecf64d65e94d59eeec4496cb17d75e323a724026c2302ca692cb4/blob new file mode 100644 index 0000000000000000000000000000000000000000..c7b8635733e2f90a831d098a24da228054555eab --- /dev/null +++ b/shared/package-files/e8/e8587dc55feecf64d65e94d59eeec4496cb17d75e323a724026c2302ca692cb4/blob @@ -0,0 +1,886 @@ +# mypy: ignore-errors + +import collections +import dataclasses +import functools +import inspect +import itertools +import sys +import types +from typing import Dict, List + +import torch._C +import torch._numpy as tnp +import torch.utils._pytree as pytree +from .. import config, variables +from ..bytecode_transformation import create_call_function, create_instruction +from ..exc import unimplemented +from ..guards import GuardBuilder, install_guard +from ..source import AttrSource, GetItemSource, ODictGetItemSource, TypeSource +from ..utils import ( + check_constant_args, + check_unspec_python_args, + identity, + is_tensor_base_attr_getter, + proxy_args_kwargs, +) +from .base import VariableTracker +from .functions import NestedUserFunctionVariable, UserFunctionVariable +from .user_defined import UserDefinedObjectVariable + + +class SuperVariable(VariableTracker): + def __init__(self, typevar, objvar=None, specialized=False, **kwargs): + super().__init__(**kwargs) + # typevar is the fist argument to super(). In the case where no argument + # is provided to super(), it is the __class__ object where + # the super() function is being called + self.typevar = typevar + # objvar here must be an instance or subtype of typevar. + # In the case where super() is called without arguments, it is the first argument + # to the current function where super() is called from (self for regular method, + # cls for a classmethod) + self.objvar = objvar + self.specialized = specialized # directly get attr from self.typevar if true + + def reconstruct(self, codegen): + codegen(variables.BuiltinVariable(super)) + codegen(self.typevar) + if self.objvar is not None: + codegen(self.objvar) + codegen.extend_output(create_call_function(2, True)) + else: + codegen.extend_output(create_call_function(1, True)) + + def _resolved_getattr_and_source(self, tx, name): + assert self.objvar, "1-arg super not implemented" + if self.specialized: + return getattr(self.typevar.as_python_constant(), name) + search_type = self.typevar.as_python_constant() + + # The rest of this function does two things: + # - Walk the mro to find where the attribute comes from to be + # able to provide accurate source + # - Call the getattr to get the object + + # Find the class object, where the function lives. + # When objvar is "self", use type(self), when objvar is "cls", use it as-is + type_to_use = self.objvar.python_type() + type_to_use_source = ( + TypeSource(self.objvar.source) if self.objvar.source else None + ) + if issubclass(type_to_use, type): + type_to_use = self.objvar.value + type_to_use_source = self.objvar.source + + source = None + if self.objvar.source is not None: + # Walk the mro tuple to find out the actual class where the + # attribute resides. + search_mro = type_to_use.__mro__ + start_index = search_mro.index(search_type) + 1 + for index in range(start_index, len(search_mro)): + if hasattr(search_mro[index], name): + # Equivalent of something like type(L['self']).__mro__[1].attr_name + source = AttrSource( + GetItemSource(AttrSource(type_to_use_source, "__mro__"), index), + name, + ) + break + + # TODO(jansel): there is a small chance this could trigger user code, prevent that + return getattr(super(search_type, type_to_use), name), source + + def var_getattr(self, tx, name: str) -> "VariableTracker": + # Check if getattr is a constant. If not, delay the actual work by + # wrapping the result in GetAttrVariable. Mostly super is called with a + # method, so most of the work is delayed to call_function. + # + # We could have just implemented a const_getattr. However, super is + # special when it comes to finding sources. Compared to other VTs, super + # requires the attr name to walk the mro and find the actual source (and + # not just AttrSource). + value, source = self._resolved_getattr_and_source(self, name) + if not variables.ConstantVariable.is_literal(value): + return GetAttrVariable(self, name) + if source: + install_guard(source.make_guard(GuardBuilder.CONSTANT_MATCH)) + return variables.ConstantVariable.create(value, source=source) + return variables.ConstantVariable.create(value) + + def call_method( + self, + tx, + name, + args: "List[VariableTracker]", + kwargs: "Dict[str, VariableTracker]", + ) -> "VariableTracker": + inner_fn, source = self._resolved_getattr_and_source(self, name) + + if inner_fn is object.__init__: + return LambdaVariable(identity) + elif inner_fn is torch.nn.Module.__init__: + objvar = self.objvar + from ..side_effects import AttributeMutationNew + + if ( + isinstance(objvar, variables.UserDefinedObjectVariable) + and isinstance(objvar.mutable_local, AttributeMutationNew) + and not (args or kwargs) + ): + tx.output.side_effects.store_attr( + objvar, + "__call_nn_module_init", + variables.ConstantVariable.create(True), + ) + return variables.ConstantVariable.create(None) + else: + unimplemented("super() nn.Module.__init__") + elif isinstance(inner_fn, types.FunctionType): + return variables.UserFunctionVariable( + inner_fn, source=source + ).call_function(tx, [self.objvar] + args, kwargs) + elif isinstance(inner_fn, types.MethodType): + return variables.UserMethodVariable( + inner_fn.__func__, self.objvar, source=source + ).call_function(tx, args, kwargs) + elif ( + inner_fn is collections.OrderedDict.__getitem__ + and isinstance(self.objvar, variables.UserDefinedObjectVariable) + and self.objvar.source + and len(args) == 1 + and len(kwargs) == 0 + and args[0].is_python_constant() + ): + from .builder import VariableBuilder + + key = args[0].as_python_constant() + return VariableBuilder(tx, ODictGetItemSource(self.objvar.source, key))( + collections.OrderedDict.__getitem__(self.objvar.value, key) + ) + elif inner_fn in ( + collections.OrderedDict.__setitem__, + object.__setattr__, + ) and isinstance(self.objvar, variables.CustomizedDictVariable): + assert not kwargs and len(args) == 2 + return super(variables.CustomizedDictVariable, self.objvar).call_method( + tx, "__setitem__", args, kwargs + ) + else: + unimplemented(f"non-function or method super: {inner_fn}") + + +class UnknownVariable(VariableTracker): + """ + It could be anything! + """ + + +class DelayGraphBreakVariable(UnknownVariable): + """ + Used to insert a dummy variable in the stack to do the graph break at CALL_FUNCTION. + """ + + +class ComptimeVariable(VariableTracker): + """ + This variable is special, it lets you execute arbitrary code at + Dynamo compile time + """ + + def reconstruct(self, codegen): + raise NotImplementedError("comptime is special form") + + def var_getattr(self, tx, name: str) -> "VariableTracker": + from ..comptime import comptime + + # To support the comptime.print_graph convenience accessors + from .functions import UserFunctionVariable + + return UserFunctionVariable( + getattr(comptime, name), source=AttrSource(self.source, name) + ) + + def call_function( + self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]" + ) -> "VariableTracker": + from ..comptime import ComptimeContext + + # TODO: support an expression form as well + + assert not kwargs + assert len(args) == 1 + fn = args[0] + if isinstance(fn, UserFunctionVariable): + fn.get_function()(ComptimeContext(tx)) + elif isinstance(fn, NestedUserFunctionVariable): + # We have to manually bind the freevars ourselves + code = fn.get_code() + assert not fn.closure, ( + "comptime function must not have free variables, " + f"but these variables were free: {code.co_freevars}" + ) + func = types.FunctionType( + code, + fn.f_globals, + fn.fn_name.as_python_constant(), + tuple(fn.defaults.items) if fn.defaults else None, + # We could automatically promote free variables into + # ComptimeVar but this is confusing if you access + # a free variable that we actually DO have the runtime + # value for + # tuple(make_cell(ComptimeVar(i)) for i in fn.closure.items) + tuple(), + ) + func(ComptimeContext(tx)) + else: + raise RuntimeError(f"unsupported argument to comptime: {type(fn)}") + + return variables.ConstantVariable.create(None) + + +class ClosureVariable(UnknownVariable): + def __init__(self, name, **kwargs): + super().__init__(**kwargs) + self.name = name + + def reconstruct(self, codegen): + codegen.append_output(codegen.create_load_closure(self.name)) + + +# closure variable created by an inlined function +class InlinedClosureVariable(UnknownVariable): + def __init__(self, name, **kwargs): + super().__init__(**kwargs) + self.name = name + + def reconstruct(self, codegen): + codegen.append_output(codegen.create_load_closure(self.name)) + + +class NewCellVariable(VariableTracker): + def __init__(self, **kwargs): + super().__init__(**kwargs) + + +class NewGlobalVariable(VariableTracker): + def __init__(self, **kwargs): + super().__init__(**kwargs) + + +class InspectSignatureVariable(VariableTracker): + """represents inspect.signature(...)""" + + @staticmethod + def create(callable, **kwargs): + if kwargs: + unimplemented(f"inspect.signature with {kwargs}") + return InspectSignatureVariable(callable) + + def __init__(self, inspected: VariableTracker, **kwargs): + super().__init__(**kwargs) + self.inspected = inspected + + def var_getattr(self, tx, name: str) -> "VariableTracker": + if name == "parameters": + return variables.ConstDictVariable( + { + variables.ConstantVariable.create(name): InspectParameterVariable() + for name in self.inspected.inspect_parameter_names() + }, + user_cls=dict, + ) + return super().var_getattr(tx, name) + + +class InspectParameterVariable(VariableTracker): + """This is not implemented, if used will graph break.""" + + pass + + +def produce_trampoline_autograd_apply(fn_cls): + def trampoline_autograd_apply(*args, **kwargs): + return fn_cls.apply(*args, **kwargs) + + trampoline_autograd_apply._origin = produce_trampoline_autograd_apply + return trampoline_autograd_apply + + +class AutogradFunctionVariable(VariableTracker): + """represents a torch.autograd.Function subclass""" + + def __init__(self, fn_cls, **kwargs): + super().__init__(**kwargs) + self.fn_cls = fn_cls + + def call_apply(self, tx, args, kwargs): + requires_grad = False + + def visit(node): + nonlocal requires_grad + if isinstance(node, variables.TensorVariable): + if node.requires_grad is not False: + requires_grad = True + if isinstance(node, variables.NNModuleVariable): + if node.is_training(tx): + requires_grad = True + return node + + VariableTracker.apply(visit, (args, kwargs)) + + if ( + requires_grad + and torch.is_grad_enabled() + and config.capture_autograd_function + ): + # Note - this is the same check used in autograd/function.py, except inverted. + # If we want to support functorch transforms here, we will need to enable this. + if ( + self.fn_cls.setup_context + != torch.autograd.function._SingleLevelFunction.setup_context + ): + unimplemented( + "NYI - autograd.Function with custom setup_context method" + ) + + vjp_fn = self.fn_cls.vjp # type: ignore[attr-defined] + if vjp_fn is not torch.autograd.Function.vjp: + unimplemented("NYI - User defind vjp") + + jvp_fn = self.fn_cls.jvp # type: ignore[attr-defined] + if jvp_fn is not torch.autograd.Function.jvp: + unimplemented("NYI - User defind jvp") + + from .higher_order_ops import AutogradFunctionApplyVariable + + source = self.source + if source is None: + source = AttrSource( + tx.import_source(self.fn_cls.__module__), self.fn_cls.__name__ + ) + + return AutogradFunctionApplyVariable( + self.fn_cls.forward, + self.fn_cls.backward, + source, + source=AttrSource(source, member="apply"), + ).call_function(tx, args, kwargs) + + if self.source: + source = AttrSource(self.source, "forward") + else: + source = None + + fn = self.fn_cls.forward + ctx = AutogradFunctionContextVariable.create(tx) + args = [ctx, *args] + if isinstance(fn, types.FunctionType): + return variables.UserFunctionVariable(fn, source=source).call_function( + tx, args, kwargs + ) + elif isinstance(fn, types.MethodType): + return variables.UserMethodVariable( + fn.__func__, + variables.UserDefinedClassVariable(self.fn_cls), + source=source, + ).call_function(tx, args, kwargs) + else: + unimplemented( + f"non-function or method in subclass of torch.autograd.Function: {fn}" + ) + + def call_function(self, tx, args, kwargs): + return AutogradFunctionVariable(self.fn_cls) + + def call_method( + self, + tx, + name, + args: "List[VariableTracker]", + kwargs: "Dict[str, VariableTracker]", + ): + from ..trace_rules import is_callable_allowed + from .builder import wrap_fx_proxy + + if name == "apply": + if is_callable_allowed(self.fn_cls): + trampoline_autograd_apply = produce_trampoline_autograd_apply( + self.fn_cls + ) + return wrap_fx_proxy( + tx=tx, + proxy=tx.output.create_proxy( + "call_function", + trampoline_autograd_apply, + *proxy_args_kwargs(args, kwargs), + ), + ) + else: + return self.call_apply(tx, args, kwargs) + + else: + unimplemented(f"Unsupported method: {name}") + + +@dataclasses.dataclass +class SavedTensorBox: + tensors: List[VariableTracker] = dataclasses.field(default_factory=list) + + +class AutogradFunctionContextVariable(UserDefinedObjectVariable): + """ + Tracks an autograd.Function() context using mutation tracking in side_effects.py + """ + + _nonvar_fields = { + "proxy", + "inference", + *UserDefinedObjectVariable._nonvar_fields, + } + + def __init__( + self, + value, + value_type=None, + inference=False, + proxy=None, + saved_tensors=None, + **kwargs, + ): + super().__init__(value=value, value_type=value_type, **kwargs) + self.inference = inference + self.proxy = proxy + self.saved_tensors = saved_tensors + + @staticmethod + def create(tx): + proxy = tx.output.create_proxy( + "call_function", torch.autograd.function.FunctionCtx, tuple(), {} + ) + out = tx.output.side_effects.track_object_new( + None, + torch.autograd.function.FunctionCtx, + functools.partial( + AutogradFunctionContextVariable, + inference=True, + proxy=proxy, + saved_tensors=SavedTensorBox(), + ), + {}, + ) + proxy.node.meta["example_value"] = out.value + return out + + def as_proxy(self): + if self.proxy is None: + unimplemented("proxy not set") + return self.proxy + + def call_method( + self, + tx, + name, + args: "List[VariableTracker]", + kwargs: "Dict[str, VariableTracker]", + ) -> "VariableTracker": + if name != "save_for_backward": + unimplemented(f"autograd.Function context method: {name}") + if self.saved_tensors is None: + unimplemented( + "save_for_backward only supported on a newly constructed FunctionCtx" + ) + + if not self.inference: + assert self.source and not kwargs + tx.output.side_effects.track_save_for_backward(self, args) + + # In eager mode, multiple calls to .save_for_backward() will overwrite previous calls. + if len(self.saved_tensors.tensors) > 0: + self.saved_tensors.tensors = [] + for arg in args: + self.saved_tensors.tensors.append(arg) + return variables.ConstantVariable.create(None) + + def var_getattr(self, tx, name): + if name == "save_for_backward": + return LambdaVariable( + lambda *args, **kwargs: self.call_method(tx, name, args, kwargs) + ) + if name == "saved_tensors" and self.saved_tensors is not None: + return variables.TupleVariable(list(self.saved_tensors.tensors)) + return super().var_getattr(tx, name) + + +class LambdaVariable(VariableTracker): + def __init__(self, fn, **kwargs): + super().__init__(**kwargs) + self.fn = fn + + def call_function( + self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]" + ) -> "VariableTracker": + return self.fn(*args, **kwargs) + + +class GetAttrVariable(VariableTracker): + def __init__(self, obj, name, **kwargs): + super().__init__(**kwargs) + assert isinstance(obj, VariableTracker) + assert isinstance(name, str) + self.obj = obj + self.name = name + + def __str__(self): + return f"{self.__class__.__name__}({self.obj}, {self.name})" + + @staticmethod + def create_getattr_proxy(base_proxy: torch.fx.Proxy, attr): + return getattr(base_proxy, attr) + + def as_proxy(self): + return GetAttrVariable.create_getattr_proxy(self.obj.as_proxy(), self.name) + + def const_getattr(self, tx, name): + if not isinstance(self.obj, variables.NNModuleVariable): + raise NotImplementedError() + step1 = tx.output.get_submodule(self.obj.module_key) + if self.name not in step1.__dict__: + raise NotImplementedError() + step2 = inspect.getattr_static(step1, self.name) + if name not in step2.__dict__: + raise NotImplementedError() + return inspect.getattr_static(step2, name) + + def reconstruct(self, codegen): + codegen(self.obj) + codegen.extend_output(codegen.create_load_attrs(self.name)) + + def call_function( + self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]" + ) -> "VariableTracker": + return self.obj.call_method(tx, self.name, args, kwargs) + + +class MethodWrapperVariable(VariableTracker): + def __init__(self, method_wrapper, **kwargs): + super().__init__(**kwargs) + self.method_wrapper = method_wrapper + + def call_function( + self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]" + ) -> "VariableTracker": + if is_tensor_base_attr_getter(self.method_wrapper) and isinstance( + args[0], variables.TensorVariable + ): + assert len(args) == 1 and len(kwargs) == 0 + + return args[0].var_getattr(tx, self.method_wrapper.__self__.__name__) + + super().call_function(tx, args, kwargs) + + def is_python_constant(self): + return True + + def as_python_constant(self): + return self.method_wrapper + + +class GetSetDescriptorVariable(VariableTracker): + def __init__(self, desc, **kwargs): + super().__init__(**kwargs) + self.desc = desc + + def var_getattr(self, tx, name): + if name == "__get__" and self.source: + from .builder import VariableBuilder + + return VariableBuilder(tx, AttrSource(self.source, "__get__"))( + self.desc.__get__ + ) + else: + return super().var_getattr(tx, name) + + def is_python_constant(self): + return True + + def as_python_constant(self): + return self.desc + + +class PythonModuleVariable(VariableTracker): + def __init__(self, value: types.ModuleType, **kwargs): + super().__init__(**kwargs) + self.value = value + self.is_torch = self.value is torch or self.value.__name__.startswith("torch.") + + def python_type(self): + return types.ModuleType + + def as_python_constant(self): + return self.value + + def __repr__(self): + return f"PythonModuleVariable({self.value})" + + def call_hasattr(self, tx, name): + if self.is_torch: + result = hasattr(self.value, name) + return variables.ConstantVariable.create(result) + return super().call_hasattr(tx, name) + + +class TypingVariable(VariableTracker): + def __init__(self, value, **kwargs): + super().__init__(**kwargs) + self.value = value + + def call_method( + self, + tx, + name, + args: "List[VariableTracker]", + kwargs: "Dict[str, VariableTracker]", + ) -> "VariableTracker": + if name == "__getitem__" and len(args) == 1: + return variables.ConstantVariable.create( + self.value[args[0].as_python_constant()], + ) + unimplemented("typing") + + def python_type(self): + return type(self.value) + + def as_python_constant(self): + return self.value + + +@functools.lru_cache(maxsize=1) +def get_np_to_tnp_map(): + from ..utils import NP_TO_TNP_MODULE + + np_fn_to_tnp_fn = {} + + for np_mod, tnp_mod in NP_TO_TNP_MODULE.items(): + for fn_name, tnp_fn in tnp_mod.__dict__.items(): + if callable(tnp_fn): + # some internal details do leak from tnp + # which are not part of numpy API. + if np_fn := getattr(np_mod, fn_name, None): + np_fn_to_tnp_fn[np_fn] = tnp_fn + + return np_fn_to_tnp_fn + + +class NumpyVariable(VariableTracker): + """ + Wrapper around `numpy.*`. Currently, is able to trace a small subset of numpy functions as well as numpy dtypes. + """ + + constant_fold_functions = (tnp.issubdtype,) + + def __init__(self, value, **kwargs): + super().__init__(**kwargs) + self.value = value + + @classmethod + def can_constant_fold_through(cls, fn): + mod = fn.__module__.split(".") + assert len(mod) >= 2 and mod[:2] == ["torch", "_numpy"] + return fn in cls.constant_fold_functions + + def call_function( + self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]" + ) -> "VariableTracker": + if not config.trace_numpy: + unimplemented(f"numpy.{self.value}()") + + from ..utils import numpy_to_tensor_wrapper + + from .tensor import NumpyNdarrayVariable + + # lookup method name in tnp. Things like np.dtype(float) are not supported yet. + if self.value.__name__ == "dtype": + unimplemented( + f"numpy dtype function is not supported yet. Got type {type(self.value)}." + ) + else: # We are dealing with a callable. + func = get_np_to_tnp_map().get(self.value) + if func is None: + unimplemented( + f"Can't find numpy function {self.value} in torch._numpy. " + " Please file an issue to request support for this function." + ) + + if ( + func.__module__ == "torch._numpy.random" + and config.use_numpy_random_stream + ): + msg = f"delegate '{func.__qualname__}' to NumPy itself via " + msg += f"confg.use_numpy_random_stream={config.use_numpy_random_stream}" + unimplemented(msg) + + args, kwargs = NumpyNdarrayVariable.patch_args(func.__name__, args, kwargs) + + constant_args = check_constant_args(args, kwargs) + unspec_python_args = check_unspec_python_args(args, kwargs) + + if self.can_constant_fold_through(func) and ( + constant_args or unspec_python_args + ): + # constant fold + return variables.ConstantVariable.create( + self.as_python_constant()( + *[x.as_python_constant() for x in args], + **{k: v.as_python_constant() for k, v in kwargs.items()}, + ), + ) + + # TODO Add all the functions that go from constants to constants to can_constant_fold_through + proxy = tx.output.create_proxy( + "call_function", + numpy_to_tensor_wrapper(func), + *proxy_args_kwargs(args, kwargs), + ) + return NumpyNdarrayVariable.create(tx, proxy) + + def call_method( + self, + tx, + name, + args: "List[VariableTracker]", + kwargs: "Dict[str, VariableTracker]", + ) -> "VariableTracker": + unimplemented("numpy") + + def python_type(self): + return type(self.value) + + def as_python_constant(self): + return self.value + + def as_proxy(self): + if config.trace_numpy and isinstance(self.value, type): + # This handles numpy dtype attributes such as np.float32 + # We return a string as we don't want to serialize non-PyTorch objects in the output FX graph + # In torch/_numpy we normalize strings to their dtypes when the input is a dtype, as NumPy does + return self.value.__name__ + + return super().as_proxy() + + +# Used to keep track of NULLs pushed on the stack for Python 3.11 function calls +class NullVariable(VariableTracker): + def __init__(self, **kwargs): + super().__init__(**kwargs) + + def __str__(self): + return "NullVariable" + + def reconstruct(self, codegen): + if sys.version_info < (3, 11): + unimplemented("cannot reconstruct NullVariable in < Python 3.11") + codegen.append_output(create_instruction("PUSH_NULL")) + + +class DeletedVariable(VariableTracker): + """Marker used to implement delattr()""" + + +class StringFormatVariable(VariableTracker): + """ + Represents a call to str.format(), we delay calling format until after the graph. + """ + + _nonvar_fields = {"format_string", *VariableTracker._nonvar_fields} + + @classmethod + def create(cls, format_string, sym_args, sym_kwargs): + if all( + x.is_python_constant() + for x in itertools.chain(sym_args, sym_kwargs.values()) + ): + return variables.ConstantVariable.create( + format_string.format( + *[v.as_python_constant() for v in sym_args], + **{k: v.as_python_constant() for k, v in sym_kwargs.items()}, + ) + ) + return cls(format_string, list(sym_args), dict(sym_kwargs)) + + def __init__(self, format_string, sym_args, sym_kwargs, **kwargs): + super().__init__(**kwargs) + assert isinstance(format_string, str) + self.format_string = format_string + self.sym_args = sym_args + self.sym_kwargs = sym_kwargs + + def __repr__(self): + return f"{self.__class__.__name__}({self.format_string!r}, {self.sym_args!r}, {self.sym_kwargs!r})" + + def reconstruct(self, codegen): + if sys.version_info >= (3, 11): + codegen.append_output(create_instruction("PUSH_NULL")) + codegen.append_output(codegen.create_load_const(self.format_string)) + codegen.append_output(codegen.create_load_attr("format")) + codegen(variables.TupleVariable(self.sym_args)) + kwargs = { + variables.ConstantVariable.create(k): v for k, v in self.sym_kwargs.items() + } + codegen(variables.ConstDictVariable(kwargs)) + codegen.append_output(create_instruction("CALL_FUNCTION_EX", arg=1)) + + +class DebuggingVariable(VariableTracker): + """ + Represents a call to a debugging function like print(), or something + registered to config.reorderable_logging_functions. + """ + + def __init__(self, value, **kwargs): + super().__init__(**kwargs) + self.value = value + + @staticmethod + def is_reorderable_logging_function(obj): + return ( + callable(obj) + and isinstance(obj, (types.FunctionType, types.BuiltinFunctionType)) + and obj in torch._dynamo.config.reorderable_logging_functions + ) + + def call_function(self, tx, args, kwargs): + if tx.export: + # For export cases, we can just make debugging functions no-ops + return + + if not self.can_reorder_logs(self.value, args, kwargs): + unimplemented( + f"Reordering debugging function {self.value} " + f"with inputs {args} {kwargs} is not yet implemented." + ) + + tx.debug_locals.append((self, list(args))) + + def reconstruct(self, codegen): + return self.source.reconstruct(codegen) + + @staticmethod + def can_reorder_logs(fn, args, kwargs) -> True: + """ + Run some additional checks for what sort of function calls can we + actually reorder. + """ + + allowed_input_types = ( + variables.TensorVariable, + variables.ConstantVariable, + StringFormatVariable, + ) + + flat_args = pytree.tree_leaves([args, kwargs]) + for arg in flat_args: + if not isinstance(arg, allowed_input_types): + return False + + return True diff --git a/shared/package-files/e8/e85cf30a42362172d12af10796925627a8e253724d750d64c379f066e67248bf/blob b/shared/package-files/e8/e85cf30a42362172d12af10796925627a8e253724d750d64c379f066e67248bf/blob new file mode 100644 index 0000000000000000000000000000000000000000..a723ae7e1f9ec7fe51e5b7bf6d5bb2bbb50f16f6 --- /dev/null +++ b/shared/package-files/e8/e85cf30a42362172d12af10796925627a8e253724d750d64c379f066e67248bf/blob @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor replication_pad1d(const at::Tensor & self, at::IntArrayRef padding); +TORCH_API at::Tensor replication_pad1d_symint(const at::Tensor & self, c10::SymIntArrayRef padding); +TORCH_API at::Tensor & replication_pad1d_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef padding); +TORCH_API at::Tensor & replication_pad1d_outf(const at::Tensor & self, at::IntArrayRef padding, at::Tensor & out); +TORCH_API at::Tensor & replication_pad1d_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef padding); +TORCH_API at::Tensor & replication_pad1d_symint_outf(const at::Tensor & self, c10::SymIntArrayRef padding, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/e8/e85d6d736adc29a0999a07d5c2c13a39b21efcfbb1db799455803ed83f700857/blob b/shared/package-files/e8/e85d6d736adc29a0999a07d5c2c13a39b21efcfbb1db799455803ed83f700857/blob new file mode 100644 index 0000000000000000000000000000000000000000..0e8e5e1608b911e789a3d346ebe48aa7cc54b79e --- /dev/null +++ b/shared/package-files/e8/e85d6d736adc29a0999a07d5c2c13a39b21efcfbb1db799455803ed83f700857/blob @@ -0,0 +1,87 @@ +from typing import Optional + +from pip._internal.models.direct_url import ArchiveInfo, DirectUrl, DirInfo, VcsInfo +from pip._internal.models.link import Link +from pip._internal.utils.urls import path_to_url +from pip._internal.vcs import vcs + + +def direct_url_as_pep440_direct_reference(direct_url: DirectUrl, name: str) -> str: + """Convert a DirectUrl to a pip requirement string.""" + direct_url.validate() # if invalid, this is a pip bug + requirement = name + " @ " + fragments = [] + if isinstance(direct_url.info, VcsInfo): + requirement += "{}+{}@{}".format( + direct_url.info.vcs, direct_url.url, direct_url.info.commit_id + ) + elif isinstance(direct_url.info, ArchiveInfo): + requirement += direct_url.url + if direct_url.info.hash: + fragments.append(direct_url.info.hash) + else: + assert isinstance(direct_url.info, DirInfo) + requirement += direct_url.url + if direct_url.subdirectory: + fragments.append("subdirectory=" + direct_url.subdirectory) + if fragments: + requirement += "#" + "&".join(fragments) + return requirement + + +def direct_url_for_editable(source_dir: str) -> DirectUrl: + return DirectUrl( + url=path_to_url(source_dir), + info=DirInfo(editable=True), + ) + + +def direct_url_from_link( + link: Link, source_dir: Optional[str] = None, link_is_in_wheel_cache: bool = False +) -> DirectUrl: + if link.is_vcs: + vcs_backend = vcs.get_backend_for_scheme(link.scheme) + assert vcs_backend + url, requested_revision, _ = vcs_backend.get_url_rev_and_auth( + link.url_without_fragment + ) + # For VCS links, we need to find out and add commit_id. + if link_is_in_wheel_cache: + # If the requested VCS link corresponds to a cached + # wheel, it means the requested revision was an + # immutable commit hash, otherwise it would not have + # been cached. In that case we don't have a source_dir + # with the VCS checkout. + assert requested_revision + commit_id = requested_revision + else: + # If the wheel was not in cache, it means we have + # had to checkout from VCS to build and we have a source_dir + # which we can inspect to find out the commit id. + assert source_dir + commit_id = vcs_backend.get_revision(source_dir) + return DirectUrl( + url=url, + info=VcsInfo( + vcs=vcs_backend.name, + commit_id=commit_id, + requested_revision=requested_revision, + ), + subdirectory=link.subdirectory_fragment, + ) + elif link.is_existing_dir(): + return DirectUrl( + url=link.url_without_fragment, + info=DirInfo(), + subdirectory=link.subdirectory_fragment, + ) + else: + hash = None + hash_name = link.hash_name + if hash_name: + hash = f"{hash_name}={link.hash}" + return DirectUrl( + url=link.url_without_fragment, + info=ArchiveInfo(hash=hash), + subdirectory=link.subdirectory_fragment, + ) diff --git a/shared/package-files/e8/e85f3d181896a0de17274e65d0f770e8b8c0b029a6abc2bb933d59bb76b6be87/blob b/shared/package-files/e8/e85f3d181896a0de17274e65d0f770e8b8c0b029a6abc2bb933d59bb76b6be87/blob new file mode 100644 index 0000000000000000000000000000000000000000..95ba77bdd3d794cfd6e2d4c80421622f6e4270b8 Binary files /dev/null and b/shared/package-files/e8/e85f3d181896a0de17274e65d0f770e8b8c0b029a6abc2bb933d59bb76b6be87/blob differ diff --git a/shared/package-files/e8/e8610e5f6cb42b523373df00a23b7ca425d2db551caeee84f93ff7de5454f76b/blob b/shared/package-files/e8/e8610e5f6cb42b523373df00a23b7ca425d2db551caeee84f93ff7de5454f76b/blob new file mode 100644 index 0000000000000000000000000000000000000000..ab9b7d76955015186d148e1a04fa32f3ab245a3e --- /dev/null +++ b/shared/package-files/e8/e8610e5f6cb42b523373df00a23b7ca425d2db551caeee84f93ff7de5454f76b/blob @@ -0,0 +1,936 @@ +""" +A directive for including a Matplotlib plot in a Sphinx document +================================================================ + +This is a Sphinx extension providing a reStructuredText directive +``.. plot::`` for including a plot in a Sphinx document. + +In HTML output, ``.. plot::`` will include a .png file with a link +to a high-res .png and .pdf. In LaTeX output, it will include a .pdf. + +The plot content may be defined in one of three ways: + +1. **A path to a source file** as the argument to the directive:: + + .. plot:: path/to/plot.py + + When a path to a source file is given, the content of the + directive may optionally contain a caption for the plot:: + + .. plot:: path/to/plot.py + + The plot caption. + + Additionally, one may specify the name of a function to call (with + no arguments) immediately after importing the module:: + + .. plot:: path/to/plot.py plot_function1 + +2. Included as **inline content** to the directive:: + + .. plot:: + + import matplotlib.pyplot as plt + plt.plot([1, 2, 3], [4, 5, 6]) + plt.title("A plotting exammple") + +3. Using **doctest** syntax:: + + .. plot:: + + A plotting example: + >>> import matplotlib.pyplot as plt + >>> plt.plot([1, 2, 3], [4, 5, 6]) + +Options +------- + +The ``.. plot::`` directive supports the following options: + +``:format:`` : {'python', 'doctest'} + The format of the input. If unset, the format is auto-detected. + +``:include-source:`` : bool + Whether to display the source code. The default can be changed using + the ``plot_include_source`` variable in :file:`conf.py` (which itself + defaults to False). + +``:show-source-link:`` : bool + Whether to show a link to the source in HTML. The default can be + changed using the ``plot_html_show_source_link`` variable in + :file:`conf.py` (which itself defaults to True). + +``:context:`` : bool or str + If provided, the code will be run in the context of all previous plot + directives for which the ``:context:`` option was specified. This only + applies to inline code plot directives, not those run from files. If + the ``:context: reset`` option is specified, the context is reset + for this and future plots, and previous figures are closed prior to + running the code. ``:context: close-figs`` keeps the context but closes + previous figures before running the code. + +``:nofigs:`` : bool + If specified, the code block will be run, but no figures will be + inserted. This is usually useful with the ``:context:`` option. + +``:caption:`` : str + If specified, the option's argument will be used as a caption for the + figure. This overwrites the caption given in the content, when the plot + is generated from a file. + +Additionally, this directive supports all the options of the `image directive +`_, +except for ``:target:`` (since plot will add its own target). These include +``:alt:``, ``:height:``, ``:width:``, ``:scale:``, ``:align:`` and ``:class:``. + +Configuration options +--------------------- + +The plot directive has the following configuration options: + +plot_include_source + Default value for the include-source option (default: False). + +plot_html_show_source_link + Whether to show a link to the source in HTML (default: True). + +plot_pre_code + Code that should be executed before each plot. If None (the default), + it will default to a string containing:: + + import numpy as np + from matplotlib import pyplot as plt + +plot_basedir + Base directory, to which ``plot::`` file names are relative to. + If None or empty (the default), file names are relative to the + directory where the file containing the directive is. + +plot_formats + File formats to generate (default: ['png', 'hires.png', 'pdf']). + List of tuples or strings:: + + [(suffix, dpi), suffix, ...] + + that determine the file format and the DPI. For entries whose + DPI was omitted, sensible defaults are chosen. When passing from + the command line through sphinx_build the list should be passed as + suffix:dpi,suffix:dpi, ... + +plot_html_show_formats + Whether to show links to the files in HTML (default: True). + +plot_rcparams + A dictionary containing any non-standard rcParams that should + be applied before each plot (default: {}). + +plot_apply_rcparams + By default, rcParams are applied when ``:context:`` option is not used + in a plot directive. If set, this configuration option overrides this + behavior and applies rcParams before each plot. + +plot_working_directory + By default, the working directory will be changed to the directory of + the example, so the code can get at its data files, if any. Also its + path will be added to `sys.path` so it can import any helper modules + sitting beside it. This configuration option can be used to specify + a central directory (also added to `sys.path`) where data files and + helper modules for all code are located. + +plot_template + Provide a customized template for preparing restructured text. + +plot_srcset + Allow the srcset image option for responsive image resolutions. List of + strings with the multiplicative factors followed by an "x". + e.g. ["2.0x", "1.5x"]. "2.0x" will create a png with the default "png" + resolution from plot_formats, multiplied by 2. If plot_srcset is + specified, the plot directive uses the + :doc:`/api/sphinxext_figmpl_directive_api` (instead of the usual figure + directive) in the intermediary rst file that is generated. + The plot_srcset option is incompatible with *singlehtml* builds, and an + error will be raised. + +Notes on how it works +--------------------- + +The plot directive runs the code it is given, either in the source file or the +code under the directive. The figure created (if any) is saved in the sphinx +build directory under a subdirectory named ``plot_directive``. It then creates +an intermediate rst file that calls a ``.. figure:`` directive (or +``.. figmpl::`` directive if ``plot_srcset`` is being used) and has links to +the ``*.png`` files in the ``plot_directive`` directory. These translations can +be customized by changing the *plot_template*. See the source of +:doc:`/api/sphinxext_plot_directive_api` for the templates defined in *TEMPLATE* +and *TEMPLATE_SRCSET*. +""" + +import contextlib +import doctest +from io import StringIO +import itertools +import os +from os.path import relpath +from pathlib import Path +import re +import shutil +import sys +import textwrap +import traceback + +from docutils.parsers.rst import directives, Directive +from docutils.parsers.rst.directives.images import Image +import jinja2 # Sphinx dependency. + +from sphinx.errors import ExtensionError + +import matplotlib +from matplotlib.backend_bases import FigureManagerBase +import matplotlib.pyplot as plt +from matplotlib import _pylab_helpers, cbook + +matplotlib.use("agg") + +__version__ = 2 + + +# ----------------------------------------------------------------------------- +# Registration hook +# ----------------------------------------------------------------------------- + + +def _option_boolean(arg): + if not arg or not arg.strip(): + # no argument given, assume used as a flag + return True + elif arg.strip().lower() in ('no', '0', 'false'): + return False + elif arg.strip().lower() in ('yes', '1', 'true'): + return True + else: + raise ValueError(f'{arg!r} unknown boolean') + + +def _option_context(arg): + if arg in [None, 'reset', 'close-figs']: + return arg + raise ValueError("Argument should be None or 'reset' or 'close-figs'") + + +def _option_format(arg): + return directives.choice(arg, ('python', 'doctest')) + + +def mark_plot_labels(app, document): + """ + To make plots referenceable, we need to move the reference from the + "htmlonly" (or "latexonly") node to the actual figure node itself. + """ + for name, explicit in document.nametypes.items(): + if not explicit: + continue + labelid = document.nameids[name] + if labelid is None: + continue + node = document.ids[labelid] + if node.tagname in ('html_only', 'latex_only'): + for n in node: + if n.tagname == 'figure': + sectname = name + for c in n: + if c.tagname == 'caption': + sectname = c.astext() + break + + node['ids'].remove(labelid) + node['names'].remove(name) + n['ids'].append(labelid) + n['names'].append(name) + document.settings.env.labels[name] = \ + document.settings.env.docname, labelid, sectname + break + + +class PlotDirective(Directive): + """The ``.. plot::`` directive, as documented in the module's docstring.""" + + has_content = True + required_arguments = 0 + optional_arguments = 2 + final_argument_whitespace = False + option_spec = { + 'alt': directives.unchanged, + 'height': directives.length_or_unitless, + 'width': directives.length_or_percentage_or_unitless, + 'scale': directives.nonnegative_int, + 'align': Image.align, + 'class': directives.class_option, + 'include-source': _option_boolean, + 'show-source-link': _option_boolean, + 'format': _option_format, + 'context': _option_context, + 'nofigs': directives.flag, + 'caption': directives.unchanged, + } + + def run(self): + """Run the plot directive.""" + try: + return run(self.arguments, self.content, self.options, + self.state_machine, self.state, self.lineno) + except Exception as e: + raise self.error(str(e)) + + +def _copy_css_file(app, exc): + if exc is None and app.builder.format == 'html': + src = cbook._get_data_path('plot_directive/plot_directive.css') + dst = app.outdir / Path('_static') + dst.mkdir(exist_ok=True) + # Use copyfile because we do not want to copy src's permissions. + shutil.copyfile(src, dst / Path('plot_directive.css')) + + +def setup(app): + setup.app = app + setup.config = app.config + setup.confdir = app.confdir + app.add_directive('plot', PlotDirective) + app.add_config_value('plot_pre_code', None, True) + app.add_config_value('plot_include_source', False, True) + app.add_config_value('plot_html_show_source_link', True, True) + app.add_config_value('plot_formats', ['png', 'hires.png', 'pdf'], True) + app.add_config_value('plot_basedir', None, True) + app.add_config_value('plot_html_show_formats', True, True) + app.add_config_value('plot_rcparams', {}, True) + app.add_config_value('plot_apply_rcparams', False, True) + app.add_config_value('plot_working_directory', None, True) + app.add_config_value('plot_template', None, True) + app.add_config_value('plot_srcset', [], True) + app.connect('doctree-read', mark_plot_labels) + app.add_css_file('plot_directive.css') + app.connect('build-finished', _copy_css_file) + metadata = {'parallel_read_safe': True, 'parallel_write_safe': True, + 'version': matplotlib.__version__} + return metadata + + +# ----------------------------------------------------------------------------- +# Doctest handling +# ----------------------------------------------------------------------------- + + +def contains_doctest(text): + try: + # check if it's valid Python as-is + compile(text, '', 'exec') + return False + except SyntaxError: + pass + r = re.compile(r'^\s*>>>', re.M) + m = r.search(text) + return bool(m) + + +def _split_code_at_show(text, function_name): + """Split code at plt.show().""" + + is_doctest = contains_doctest(text) + if function_name is None: + parts = [] + part = [] + for line in text.split("\n"): + if ((not is_doctest and line.startswith('plt.show(')) or + (is_doctest and line.strip() == '>>> plt.show()')): + part.append(line) + parts.append("\n".join(part)) + part = [] + else: + part.append(line) + if "\n".join(part).strip(): + parts.append("\n".join(part)) + else: + parts = [text] + return is_doctest, parts + + +# ----------------------------------------------------------------------------- +# Template +# ----------------------------------------------------------------------------- + +_SOURCECODE = """ +{{ source_code }} + +.. only:: html + + {% if src_name or (html_show_formats and not multi_image) %} + ( + {%- if src_name -%} + :download:`Source code <{{ build_dir }}/{{ src_name }}>` + {%- endif -%} + {%- if html_show_formats and not multi_image -%} + {%- for img in images -%} + {%- for fmt in img.formats -%} + {%- if src_name or not loop.first -%}, {% endif -%} + :download:`{{ fmt }} <{{ build_dir }}/{{ img.basename }}.{{ fmt }}>` + {%- endfor -%} + {%- endfor -%} + {%- endif -%} + ) + {% endif %} +""" + +TEMPLATE_SRCSET = _SOURCECODE + """ + {% for img in images %} + .. figure-mpl:: {{ build_dir }}/{{ img.basename }}.{{ default_fmt }} + {% for option in options -%} + {{ option }} + {% endfor %} + {%- if caption -%} + {{ caption }} {# appropriate leading whitespace added beforehand #} + {% endif -%} + {%- if srcset -%} + :srcset: {{ build_dir }}/{{ img.basename }}.{{ default_fmt }} + {%- for sr in srcset -%} + , {{ build_dir }}/{{ img.basename }}.{{ sr }}.{{ default_fmt }} {{sr}} + {%- endfor -%} + {% endif %} + + {% if html_show_formats and multi_image %} + ( + {%- for fmt in img.formats -%} + {%- if not loop.first -%}, {% endif -%} + :download:`{{ fmt }} <{{ build_dir }}/{{ img.basename }}.{{ fmt }}>` + {%- endfor -%} + ) + {% endif %} + + + {% endfor %} + +.. only:: not html + + {% for img in images %} + .. figure-mpl:: {{ build_dir }}/{{ img.basename }}.* + {% for option in options -%} + {{ option }} + {% endfor -%} + + {{ caption }} {# appropriate leading whitespace added beforehand #} + {% endfor %} + +""" + +TEMPLATE = _SOURCECODE + """ + + {% for img in images %} + .. figure:: {{ build_dir }}/{{ img.basename }}.{{ default_fmt }} + {% for option in options -%} + {{ option }} + {% endfor %} + + {% if html_show_formats and multi_image -%} + ( + {%- for fmt in img.formats -%} + {%- if not loop.first -%}, {% endif -%} + :download:`{{ fmt }} <{{ build_dir }}/{{ img.basename }}.{{ fmt }}>` + {%- endfor -%} + ) + {%- endif -%} + + {{ caption }} {# appropriate leading whitespace added beforehand #} + {% endfor %} + +.. only:: not html + + {% for img in images %} + .. figure:: {{ build_dir }}/{{ img.basename }}.* + {% for option in options -%} + {{ option }} + {% endfor -%} + + {{ caption }} {# appropriate leading whitespace added beforehand #} + {% endfor %} + +""" + +exception_template = """ +.. only:: html + + [`source code <%(linkdir)s/%(basename)s.py>`__] + +Exception occurred rendering plot. + +""" + +# the context of the plot for all directives specified with the +# :context: option +plot_context = dict() + + +class ImageFile: + def __init__(self, basename, dirname): + self.basename = basename + self.dirname = dirname + self.formats = [] + + def filename(self, format): + return os.path.join(self.dirname, f"{self.basename}.{format}") + + def filenames(self): + return [self.filename(fmt) for fmt in self.formats] + + +def out_of_date(original, derived, includes=None): + """ + Return whether *derived* is out-of-date relative to *original* or any of + the RST files included in it using the RST include directive (*includes*). + *derived* and *original* are full paths, and *includes* is optionally a + list of full paths which may have been included in the *original*. + """ + if not os.path.exists(derived): + return True + + if includes is None: + includes = [] + files_to_check = [original, *includes] + + def out_of_date_one(original, derived_mtime): + return (os.path.exists(original) and + derived_mtime < os.stat(original).st_mtime) + + derived_mtime = os.stat(derived).st_mtime + return any(out_of_date_one(f, derived_mtime) for f in files_to_check) + + +class PlotError(RuntimeError): + pass + + +def _run_code(code, code_path, ns=None, function_name=None): + """ + Import a Python module from a path, and run the function given by + name, if function_name is not None. + """ + + # Change the working directory to the directory of the example, so + # it can get at its data files, if any. Add its path to sys.path + # so it can import any helper modules sitting beside it. + pwd = os.getcwd() + if setup.config.plot_working_directory is not None: + try: + os.chdir(setup.config.plot_working_directory) + except OSError as err: + raise OSError(f'{err}\n`plot_working_directory` option in ' + f'Sphinx configuration file must be a valid ' + f'directory path') from err + except TypeError as err: + raise TypeError(f'{err}\n`plot_working_directory` option in ' + f'Sphinx configuration file must be a string or ' + f'None') from err + elif code_path is not None: + dirname = os.path.abspath(os.path.dirname(code_path)) + os.chdir(dirname) + + with cbook._setattr_cm( + sys, argv=[code_path], path=[os.getcwd(), *sys.path]), \ + contextlib.redirect_stdout(StringIO()): + try: + if ns is None: + ns = {} + if not ns: + if setup.config.plot_pre_code is None: + exec('import numpy as np\n' + 'from matplotlib import pyplot as plt\n', ns) + else: + exec(str(setup.config.plot_pre_code), ns) + if "__main__" in code: + ns['__name__'] = '__main__' + + # Patch out non-interactive show() to avoid triggering a warning. + with cbook._setattr_cm(FigureManagerBase, show=lambda self: None): + exec(code, ns) + if function_name is not None: + exec(function_name + "()", ns) + + except (Exception, SystemExit) as err: + raise PlotError(traceback.format_exc()) from err + finally: + os.chdir(pwd) + return ns + + +def clear_state(plot_rcparams, close=True): + if close: + plt.close('all') + matplotlib.rc_file_defaults() + matplotlib.rcParams.update(plot_rcparams) + + +def get_plot_formats(config): + default_dpi = {'png': 80, 'hires.png': 200, 'pdf': 200} + formats = [] + plot_formats = config.plot_formats + for fmt in plot_formats: + if isinstance(fmt, str): + if ':' in fmt: + suffix, dpi = fmt.split(':') + formats.append((str(suffix), int(dpi))) + else: + formats.append((fmt, default_dpi.get(fmt, 80))) + elif isinstance(fmt, (tuple, list)) and len(fmt) == 2: + formats.append((str(fmt[0]), int(fmt[1]))) + else: + raise PlotError('invalid image format "%r" in plot_formats' % fmt) + return formats + + +def _parse_srcset(entries): + """ + Parse srcset for multiples... + """ + srcset = {} + for entry in entries: + entry = entry.strip() + if len(entry) >= 2: + mult = entry[:-1] + srcset[float(mult)] = entry + else: + raise ExtensionError(f'srcset argument {entry!r} is invalid.') + return srcset + + +def render_figures(code, code_path, output_dir, output_base, context, + function_name, config, context_reset=False, + close_figs=False, + code_includes=None): + """ + Run a pyplot script and save the images in *output_dir*. + + Save the images under *output_dir* with file names derived from + *output_base* + """ + + if function_name is not None: + output_base = f'{output_base}_{function_name}' + formats = get_plot_formats(config) + + # Try to determine if all images already exist + + is_doctest, code_pieces = _split_code_at_show(code, function_name) + # Look for single-figure output files first + img = ImageFile(output_base, output_dir) + for format, dpi in formats: + if context or out_of_date(code_path, img.filename(format), + includes=code_includes): + all_exists = False + break + img.formats.append(format) + else: + all_exists = True + + if all_exists: + return [(code, [img])] + + # Then look for multi-figure output files + results = [] + for i, code_piece in enumerate(code_pieces): + images = [] + for j in itertools.count(): + if len(code_pieces) > 1: + img = ImageFile('%s_%02d_%02d' % (output_base, i, j), + output_dir) + else: + img = ImageFile('%s_%02d' % (output_base, j), output_dir) + for fmt, dpi in formats: + if context or out_of_date(code_path, img.filename(fmt), + includes=code_includes): + all_exists = False + break + img.formats.append(fmt) + + # assume that if we have one, we have them all + if not all_exists: + all_exists = (j > 0) + break + images.append(img) + if not all_exists: + break + results.append((code_piece, images)) + else: + all_exists = True + + if all_exists: + return results + + # We didn't find the files, so build them + + results = [] + ns = plot_context if context else {} + + if context_reset: + clear_state(config.plot_rcparams) + plot_context.clear() + + close_figs = not context or close_figs + + for i, code_piece in enumerate(code_pieces): + + if not context or config.plot_apply_rcparams: + clear_state(config.plot_rcparams, close_figs) + elif close_figs: + plt.close('all') + + _run_code(doctest.script_from_examples(code_piece) if is_doctest + else code_piece, + code_path, ns, function_name) + + images = [] + fig_managers = _pylab_helpers.Gcf.get_all_fig_managers() + for j, figman in enumerate(fig_managers): + if len(fig_managers) == 1 and len(code_pieces) == 1: + img = ImageFile(output_base, output_dir) + elif len(code_pieces) == 1: + img = ImageFile("%s_%02d" % (output_base, j), output_dir) + else: + img = ImageFile("%s_%02d_%02d" % (output_base, i, j), + output_dir) + images.append(img) + + for fmt, dpi in formats: + try: + figman.canvas.figure.savefig(img.filename(fmt), dpi=dpi) + if fmt == formats[0][0] and config.plot_srcset: + # save a 2x, 3x etc version of the default... + srcset = _parse_srcset(config.plot_srcset) + for mult, suffix in srcset.items(): + fm = f'{suffix}.{fmt}' + img.formats.append(fm) + figman.canvas.figure.savefig(img.filename(fm), + dpi=int(dpi * mult)) + except Exception as err: + raise PlotError(traceback.format_exc()) from err + img.formats.append(fmt) + + results.append((code_piece, images)) + + if not context or config.plot_apply_rcparams: + clear_state(config.plot_rcparams, close=not context) + + return results + + +def run(arguments, content, options, state_machine, state, lineno): + document = state_machine.document + config = document.settings.env.config + nofigs = 'nofigs' in options + + if config.plot_srcset and setup.app.builder.name == 'singlehtml': + raise ExtensionError( + 'plot_srcset option not compatible with single HTML writer') + + formats = get_plot_formats(config) + default_fmt = formats[0][0] + + options.setdefault('include-source', config.plot_include_source) + options.setdefault('show-source-link', config.plot_html_show_source_link) + + if 'class' in options: + # classes are parsed into a list of string, and output by simply + # printing the list, abusing the fact that RST guarantees to strip + # non-conforming characters + options['class'] = ['plot-directive'] + options['class'] + else: + options.setdefault('class', ['plot-directive']) + keep_context = 'context' in options + context_opt = None if not keep_context else options['context'] + + rst_file = document.attributes['source'] + rst_dir = os.path.dirname(rst_file) + + if len(arguments): + if not config.plot_basedir: + source_file_name = os.path.join(setup.app.builder.srcdir, + directives.uri(arguments[0])) + else: + source_file_name = os.path.join(setup.confdir, config.plot_basedir, + directives.uri(arguments[0])) + # If there is content, it will be passed as a caption. + caption = '\n'.join(content) + + # Enforce unambiguous use of captions. + if "caption" in options: + if caption: + raise ValueError( + 'Caption specified in both content and options.' + ' Please remove ambiguity.' + ) + # Use caption option + caption = options["caption"] + + # If the optional function name is provided, use it + if len(arguments) == 2: + function_name = arguments[1] + else: + function_name = None + + code = Path(source_file_name).read_text(encoding='utf-8') + output_base = os.path.basename(source_file_name) + else: + source_file_name = rst_file + code = textwrap.dedent("\n".join(map(str, content))) + counter = document.attributes.get('_plot_counter', 0) + 1 + document.attributes['_plot_counter'] = counter + base, ext = os.path.splitext(os.path.basename(source_file_name)) + output_base = '%s-%d.py' % (base, counter) + function_name = None + caption = options.get('caption', '') + + base, source_ext = os.path.splitext(output_base) + if source_ext in ('.py', '.rst', '.txt'): + output_base = base + else: + source_ext = '' + + # ensure that LaTeX includegraphics doesn't choke in foo.bar.pdf filenames + output_base = output_base.replace('.', '-') + + # is it in doctest format? + is_doctest = contains_doctest(code) + if 'format' in options: + if options['format'] == 'python': + is_doctest = False + else: + is_doctest = True + + # determine output directory name fragment + source_rel_name = relpath(source_file_name, setup.confdir) + source_rel_dir = os.path.dirname(source_rel_name).lstrip(os.path.sep) + + # build_dir: where to place output files (temporarily) + build_dir = os.path.join(os.path.dirname(setup.app.doctreedir), + 'plot_directive', + source_rel_dir) + # get rid of .. in paths, also changes pathsep + # see note in Python docs for warning about symbolic links on Windows. + # need to compare source and dest paths at end + build_dir = os.path.normpath(build_dir) + os.makedirs(build_dir, exist_ok=True) + + # how to link to files from the RST file + try: + build_dir_link = relpath(build_dir, rst_dir).replace(os.path.sep, '/') + except ValueError: + # on Windows, relpath raises ValueError when path and start are on + # different mounts/drives + build_dir_link = build_dir + + # get list of included rst files so that the output is updated when any + # plots in the included files change. These attributes are modified by the + # include directive (see the docutils.parsers.rst.directives.misc module). + try: + source_file_includes = [os.path.join(os.getcwd(), t[0]) + for t in state.document.include_log] + except AttributeError: + # the document.include_log attribute only exists in docutils >=0.17, + # before that we need to inspect the state machine + possible_sources = {os.path.join(setup.confdir, t[0]) + for t in state_machine.input_lines.items} + source_file_includes = [f for f in possible_sources + if os.path.isfile(f)] + # remove the source file itself from the includes + try: + source_file_includes.remove(source_file_name) + except ValueError: + pass + + # save script (if necessary) + if options['show-source-link']: + Path(build_dir, output_base + source_ext).write_text( + doctest.script_from_examples(code) + if source_file_name == rst_file and is_doctest + else code, + encoding='utf-8') + + # make figures + try: + results = render_figures(code=code, + code_path=source_file_name, + output_dir=build_dir, + output_base=output_base, + context=keep_context, + function_name=function_name, + config=config, + context_reset=context_opt == 'reset', + close_figs=context_opt == 'close-figs', + code_includes=source_file_includes) + errors = [] + except PlotError as err: + reporter = state.memo.reporter + sm = reporter.system_message( + 2, "Exception occurred in plotting {}\n from {}:\n{}".format( + output_base, source_file_name, err), + line=lineno) + results = [(code, [])] + errors = [sm] + + # Properly indent the caption + if caption and config.plot_srcset: + caption = ':caption: ' + caption.replace('\n', ' ') + elif caption: + caption = '\n' + '\n'.join(' ' + line.strip() + for line in caption.split('\n')) + # generate output restructuredtext + total_lines = [] + for j, (code_piece, images) in enumerate(results): + if options['include-source']: + if is_doctest: + lines = ['', *code_piece.splitlines()] + else: + lines = ['.. code-block:: python', '', + *textwrap.indent(code_piece, ' ').splitlines()] + source_code = "\n".join(lines) + else: + source_code = "" + + if nofigs: + images = [] + + if 'alt' in options: + options['alt'] = options['alt'].replace('\n', ' ') + + opts = [ + f':{key}: {val}' for key, val in options.items() + if key in ('alt', 'height', 'width', 'scale', 'align', 'class')] + + # Not-None src_name signals the need for a source download in the + # generated html + if j == 0 and options['show-source-link']: + src_name = output_base + source_ext + else: + src_name = None + if config.plot_srcset: + srcset = [*_parse_srcset(config.plot_srcset).values()] + template = TEMPLATE_SRCSET + else: + srcset = None + template = TEMPLATE + + result = jinja2.Template(config.plot_template or template).render( + default_fmt=default_fmt, + build_dir=build_dir_link, + src_name=src_name, + multi_image=len(images) > 1, + options=opts, + srcset=srcset, + images=images, + source_code=source_code, + html_show_formats=config.plot_html_show_formats and len(images), + caption=caption) + total_lines.extend(result.split("\n")) + total_lines.extend("\n") + + if total_lines: + state_machine.insert_input(total_lines, source=source_file_name) + + return errors diff --git a/shared/package-files/e8/e86148ee87aff5c65ac861d2989bbc72a23acbddd311af6003b16f5f490ee6b6/blob b/shared/package-files/e8/e86148ee87aff5c65ac861d2989bbc72a23acbddd311af6003b16f5f490ee6b6/blob new file mode 100644 index 0000000000000000000000000000000000000000..3d934f57857436dd0ea7945e327cf3d0532c4c10 --- /dev/null +++ b/shared/package-files/e8/e86148ee87aff5c65ac861d2989bbc72a23acbddd311af6003b16f5f490ee6b6/blob @@ -0,0 +1,42 @@ +import threading + +__all__ = [ + "LinearBlockSparsePattern" +] + +def _is_valid_linear_block_sparse_pattern(row_block_size, col_block_size): + return (row_block_size == 1 and col_block_size == 4) or \ + (row_block_size == 8 and col_block_size == 1) + +# This is a stop-gap measure as current flow does not allow module +# specific block sparse pattern. +# Infact there is no way to convey sparse pattern via module config +# of quantization flow. Thus using the global context to convey +# sparsity pattern. +# Once the flow supports it, this should be removed. +class LinearBlockSparsePattern: + rlock = threading.RLock() + row_block_size = 1 + col_block_size = 4 + prev_row_block_size = 1 + prev_col_block_size = 4 + + def __init__(self, row_block_size=1, col_block_size=4): + assert _is_valid_linear_block_sparse_pattern(row_block_size, col_block_size) + LinearBlockSparsePattern.rlock.acquire() + LinearBlockSparsePattern.prev_row_block_size = LinearBlockSparsePattern.row_block_size + LinearBlockSparsePattern.prev_col_block_size = LinearBlockSparsePattern.col_block_size + LinearBlockSparsePattern.row_block_size = row_block_size + LinearBlockSparsePattern.col_block_size = col_block_size + + def __enter__(self): + pass + + def __exit__(self, exc_type, exc_value, backtrace): + LinearBlockSparsePattern.row_block_size = LinearBlockSparsePattern.prev_row_block_size + LinearBlockSparsePattern.col_block_size = LinearBlockSparsePattern.prev_col_block_size + LinearBlockSparsePattern.rlock.release() + + @staticmethod + def block_size(): + return LinearBlockSparsePattern.row_block_size, LinearBlockSparsePattern.col_block_size diff --git a/shared/package-files/e8/e862bd2d6459830385400eb25717b957b22c6cceb8f87e2c9987cf06ab981a16/blob b/shared/package-files/e8/e862bd2d6459830385400eb25717b957b22c6cceb8f87e2c9987cf06ab981a16/blob new file mode 100644 index 0000000000000000000000000000000000000000..d0344c74241775933f15e0fd93cd41703a497644 --- /dev/null +++ b/shared/package-files/e8/e862bd2d6459830385400eb25717b957b22c6cceb8f87e2c9987cf06ab981a16/blob @@ -0,0 +1,92 @@ +import os.path +from pathlib import Path +from typing import Any, Callable, Optional, Tuple, Union + +import numpy as np +from PIL import Image + +from .utils import check_integrity, download_url +from .vision import VisionDataset + + +class SEMEION(VisionDataset): + r"""`SEMEION `_ Dataset. + + Args: + root (str or ``pathlib.Path``): Root directory of dataset where directory + ``semeion.py`` exists. + transform (callable, optional): A function/transform that takes in a PIL image + and returns a transformed version. E.g, ``transforms.RandomCrop`` + target_transform (callable, optional): A function/transform that takes in the + target and transforms it. + download (bool, optional): If true, downloads the dataset from the internet and + puts it in root directory. If dataset is already downloaded, it is not + downloaded again. + + """ + url = "http://archive.ics.uci.edu/ml/machine-learning-databases/semeion/semeion.data" + filename = "semeion.data" + md5_checksum = "cb545d371d2ce14ec121470795a77432" + + def __init__( + self, + root: Union[str, Path], + transform: Optional[Callable] = None, + target_transform: Optional[Callable] = None, + download: bool = True, + ) -> None: + super().__init__(root, transform=transform, target_transform=target_transform) + + if download: + self.download() + + if not self._check_integrity(): + raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it") + + fp = os.path.join(self.root, self.filename) + data = np.loadtxt(fp) + # convert value to 8 bit unsigned integer + # color (white #255) the pixels + self.data = (data[:, :256] * 255).astype("uint8") + self.data = np.reshape(self.data, (-1, 16, 16)) + self.labels = np.nonzero(data[:, 256:])[1] + + def __getitem__(self, index: int) -> Tuple[Any, Any]: + """ + Args: + index (int): Index + + Returns: + tuple: (image, target) where target is index of the target class. + """ + img, target = self.data[index], int(self.labels[index]) + + # doing this so that it is consistent with all other datasets + # to return a PIL Image + img = Image.fromarray(img, mode="L") + + if self.transform is not None: + img = self.transform(img) + + if self.target_transform is not None: + target = self.target_transform(target) + + return img, target + + def __len__(self) -> int: + return len(self.data) + + def _check_integrity(self) -> bool: + root = self.root + fpath = os.path.join(root, self.filename) + if not check_integrity(fpath, self.md5_checksum): + return False + return True + + def download(self) -> None: + if self._check_integrity(): + print("Files already downloaded and verified") + return + + root = self.root + download_url(self.url, root, self.filename, self.md5_checksum) diff --git a/shared/package-files/e8/e866fb2b6cc83fdf99de218d03c2d2feaecf72720ed75fb95ce7d0bc4b78fe3c/blob b/shared/package-files/e8/e866fb2b6cc83fdf99de218d03c2d2feaecf72720ed75fb95ce7d0bc4b78fe3c/blob new file mode 100644 index 0000000000000000000000000000000000000000..f6694cf9507f1b22e76fa3700e4f64240ac2ba99 --- /dev/null +++ b/shared/package-files/e8/e866fb2b6cc83fdf99de218d03c2d2feaecf72720ed75fb95ce7d0bc4b78fe3c/blob @@ -0,0 +1,62 @@ +from torch.distributions import constraints +from torch.distributions.normal import Normal +from torch.distributions.transformed_distribution import TransformedDistribution +from torch.distributions.transforms import ExpTransform + +__all__ = ["LogNormal"] + + +class LogNormal(TransformedDistribution): + r""" + Creates a log-normal distribution parameterized by + :attr:`loc` and :attr:`scale` where:: + + X ~ Normal(loc, scale) + Y = exp(X) ~ LogNormal(loc, scale) + + Example:: + + >>> # xdoctest: +IGNORE_WANT("non-deterministic") + >>> m = LogNormal(torch.tensor([0.0]), torch.tensor([1.0])) + >>> m.sample() # log-normal distributed with mean=0 and stddev=1 + tensor([ 0.1046]) + + Args: + loc (float or Tensor): mean of log of distribution + scale (float or Tensor): standard deviation of log of the distribution + """ + arg_constraints = {"loc": constraints.real, "scale": constraints.positive} + support = constraints.positive + has_rsample = True + + def __init__(self, loc, scale, validate_args=None): + base_dist = Normal(loc, scale, validate_args=validate_args) + super().__init__(base_dist, ExpTransform(), validate_args=validate_args) + + def expand(self, batch_shape, _instance=None): + new = self._get_checked_instance(LogNormal, _instance) + return super().expand(batch_shape, _instance=new) + + @property + def loc(self): + return self.base_dist.loc + + @property + def scale(self): + return self.base_dist.scale + + @property + def mean(self): + return (self.loc + self.scale.pow(2) / 2).exp() + + @property + def mode(self): + return (self.loc - self.scale.square()).exp() + + @property + def variance(self): + scale_sq = self.scale.pow(2) + return scale_sq.expm1() * (2 * self.loc + scale_sq).exp() + + def entropy(self): + return self.base_dist.entropy() + self.loc diff --git a/shared/package-files/e8/e86734975abed679423bdb8aad87971621ec6e2991673537b7a1284daf0c56f0/blob b/shared/package-files/e8/e86734975abed679423bdb8aad87971621ec6e2991673537b7a1284daf0c56f0/blob new file mode 100644 index 0000000000000000000000000000000000000000..0d83c80eb886846ddbbd6927e37e05812911f856 --- /dev/null +++ b/shared/package-files/e8/e86734975abed679423bdb8aad87971621ec6e2991673537b7a1284daf0c56f0/blob @@ -0,0 +1,26 @@ +cdef extern from "../Zeros/zeros.h": + ctypedef double (*callback_type)(double, void*) noexcept + ctypedef struct scipy_zeros_info: + int funcalls + int iterations + int error_num + +cdef extern from "../Zeros/bisect.c" nogil: + double bisect(callback_type f, double xa, double xb, double xtol, + double rtol, int iter, void *func_data_param, + scipy_zeros_info *solver_stats) + +cdef extern from "../Zeros/ridder.c" nogil: + double ridder(callback_type f, double xa, double xb, double xtol, + double rtol, int iter, void *func_data_param, + scipy_zeros_info *solver_stats) + +cdef extern from "../Zeros/brenth.c" nogil: + double brenth(callback_type f, double xa, double xb, double xtol, + double rtol, int iter, void *func_data_param, + scipy_zeros_info *solver_stats) + +cdef extern from "../Zeros/brentq.c" nogil: + double brentq(callback_type f, double xa, double xb, double xtol, + double rtol, int iter, void *func_data_param, + scipy_zeros_info *solver_stats) diff --git a/shared/package-files/e8/e86c5510734cc96eada2db713675a452b671139dc88538510638902c3bf36f3c/blob b/shared/package-files/e8/e86c5510734cc96eada2db713675a452b671139dc88538510638902c3bf36f3c/blob new file mode 100644 index 0000000000000000000000000000000000000000..cded0a4df325fa85f4f1e531457969b68ebee5ae --- /dev/null +++ b/shared/package-files/e8/e86c5510734cc96eada2db713675a452b671139dc88538510638902c3bf36f3c/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API ::std::tuple conv_tbc_backward(const at::Tensor & self, const at::Tensor & input, const at::Tensor & weight, const at::Tensor & bias, int64_t pad); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/e8/e86d081331febfe401a13a44c68ba82b582b2e66b6e9366dd58025ddac9a1a26/blob b/shared/package-files/e8/e86d081331febfe401a13a44c68ba82b582b2e66b6e9366dd58025ddac9a1a26/blob new file mode 100644 index 0000000000000000000000000000000000000000..1a95416a4b1d8abac53d04886710c442ff3d9965 --- /dev/null +++ b/shared/package-files/e8/e86d081331febfe401a13a44c68ba82b582b2e66b6e9366dd58025ddac9a1a26/blob @@ -0,0 +1,39 @@ +# ttkscale.tcl -- +# +# This demonstration script shows an example with a horizontal scale. + +if {![info exists widgetDemo]} { + error "This script should be run from the \"widget\" demo." +} + +package require Tk + +set w .ttkscale +catch {destroy $w} +toplevel $w -bg [ttk::style lookup TLabel -background] +wm title $w "Themed Scale Demonstration" +wm iconname $w "ttkscale" +positionWindow $w + +pack [ttk::frame [set w $w.contents]] -fill both -expand 1 + +ttk::label $w.msg -font $font -wraplength 3.5i -justify left -text "A label tied to a horizontal scale is displayed below. If you click or drag mouse button 1 in the scale, you can change the contents of the label; a callback command is used to couple the slider to both the text and the coloring of the label." +pack $w.msg -side top -padx .5c + +## See Code / Dismiss buttons +set btns [addSeeDismiss $w.buttons [winfo toplevel $w]] +pack $btns -side bottom -fill x + +ttk::frame $w.frame -borderwidth 10 +pack $w.frame -side top -fill x + +# List of colors from rainbox; "Indigo" is not a standard color +set colorList {Red Orange Yellow Green Blue Violet} +ttk::label $w.frame.label +ttk::scale $w.frame.scale -from 0 -to 5 -command [list apply {{w idx} { + set c [lindex $::colorList [tcl::mathfunc::int $idx]] + $w.frame.label configure -foreground $c -text "Color: $c" +}} $w] +# Trigger the setting of the label's text +$w.frame.scale set 0 +pack $w.frame.label $w.frame.scale diff --git a/shared/package-files/e8/e86d6f6ecfe2626cf691827ac38a81d64ec3ebb527c5432eb344b8496781b45a/blob b/shared/package-files/e8/e86d6f6ecfe2626cf691827ac38a81d64ec3ebb527c5432eb344b8496781b45a/blob new file mode 100644 index 0000000000000000000000000000000000000000..ee83bdce028522093327eae148f977ac4a12ead2 Binary files /dev/null and b/shared/package-files/e8/e86d6f6ecfe2626cf691827ac38a81d64ec3ebb527c5432eb344b8496781b45a/blob differ diff --git a/shared/package-files/e8/e870f47ac85b2d72e476ce739db48110d731a7ba1f8014e9bc24bf4fe04a8270/blob b/shared/package-files/e8/e870f47ac85b2d72e476ce739db48110d731a7ba1f8014e9bc24bf4fe04a8270/blob new file mode 100644 index 0000000000000000000000000000000000000000..0a58ed530be6e943f140f123348401b7bb3c45cc --- /dev/null +++ b/shared/package-files/e8/e870f47ac85b2d72e476ce739db48110d731a7ba1f8014e9bc24bf4fe04a8270/blob @@ -0,0 +1,21 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::vector broadcast_tensors(at::TensorList tensors); +} // namespace native +} // namespace at diff --git a/shared/package-files/e8/e8725c3825f647c7b6e7506263bb448d6726634325285de0cc6d1b90b0c5154b/blob b/shared/package-files/e8/e8725c3825f647c7b6e7506263bb448d6726634325285de0cc6d1b90b0c5154b/blob new file mode 100644 index 0000000000000000000000000000000000000000..90183b9489485b0bce55d37725bc643761218da9 --- /dev/null +++ b/shared/package-files/e8/e8725c3825f647c7b6e7506263bb448d6726634325285de0cc6d1b90b0c5154b/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API bool _nested_tensor_from_mask_left_aligned(const at::Tensor & t, const at::Tensor & mask); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/e8/e8753228662beb4dad0f65a44d923438a274de79a3501a066ff777d0f224a761/blob b/shared/package-files/e8/e8753228662beb4dad0f65a44d923438a274de79a3501a066ff777d0f224a761/blob new file mode 100644 index 0000000000000000000000000000000000000000..ecfc21114d55ae0c4fca7be8cc2d861dbdc3f0b9 --- /dev/null +++ b/shared/package-files/e8/e8753228662beb4dad0f65a44d923438a274de79a3501a066ff777d0f224a761/blob @@ -0,0 +1,105 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API bitwise_or_Tensor_out { + using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or.Tensor_out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other, at::Tensor & out); +}; + +struct TORCH_API bitwise_or_Scalar_out { + using schema = at::Tensor & (const at::Tensor &, const at::Scalar &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Scalar_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or.Scalar_out(Tensor self, Scalar other, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Scalar & other, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other, at::Tensor & out); +}; + +struct TORCH_API bitwise_or_Scalar { + using schema = at::Tensor (const at::Tensor &, const at::Scalar &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Scalar") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or.Scalar(Tensor self, Scalar other) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Scalar & other); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & other); +}; + +struct TORCH_API bitwise_or_Scalar_Tensor { + using schema = at::Tensor (const at::Scalar &, const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Scalar_Tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or.Scalar_Tensor(Scalar self, Tensor other) -> Tensor") + static at::Tensor call(const at::Scalar & self, const at::Tensor & other); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other); +}; + +struct TORCH_API bitwise_or_Tensor { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or.Tensor(Tensor self, Tensor other) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Tensor & other); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other); +}; + +struct TORCH_API bitwise_or__Scalar { + using schema = at::Tensor & (at::Tensor &, const at::Scalar &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Scalar") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or_.Scalar(Tensor(a!) self, Scalar other) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, const at::Scalar & other); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Scalar & other); +}; + +struct TORCH_API bitwise_or__Tensor { + using schema = at::Tensor & (at::Tensor &, const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Tensor") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or_.Tensor(Tensor(a!) self, Tensor other) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, const at::Tensor & other); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & other); +}; + +struct TORCH_API bitwise_or_Scalar_Tensor_out { + using schema = at::Tensor & (const at::Scalar &, const at::Tensor &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::bitwise_or") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Scalar_Tensor_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "bitwise_or.Scalar_Tensor_out(Scalar self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Scalar & self, const at::Tensor & other, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Scalar & self, const at::Tensor & other, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e8/e8755e77ef8875a696ff3ca9597a0fbea92bdc22104663a9cee7906fca7aa186/blob b/shared/package-files/e8/e8755e77ef8875a696ff3ca9597a0fbea92bdc22104663a9cee7906fca7aa186/blob new file mode 100644 index 0000000000000000000000000000000000000000..fc68fd6cb6d35ddb385db8aa80879d45dddc5b28 --- /dev/null +++ b/shared/package-files/e8/e8755e77ef8875a696ff3ca9597a0fbea92bdc22104663a9cee7906fca7aa186/blob @@ -0,0 +1,24 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API ::std::vector _foreach_abs(at::TensorList self); +TORCH_API void _foreach_abs_(at::TensorList self); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/e8/e879ba58fcdebbfc237de47c69fad0d6709f8d2d29df08efa122312565654b4b/blob b/shared/package-files/e8/e879ba58fcdebbfc237de47c69fad0d6709f8d2d29df08efa122312565654b4b/blob new file mode 100644 index 0000000000000000000000000000000000000000..923bd32c9ce032ad27379f8d8c6436564ec16d75 --- /dev/null +++ b/shared/package-files/e8/e879ba58fcdebbfc237de47c69fad0d6709f8d2d29df08efa122312565654b4b/blob @@ -0,0 +1,219 @@ +""" +Various transforms used for by the 3D code +""" + +import numpy as np + +from matplotlib import _api + + +def world_transformation(xmin, xmax, + ymin, ymax, + zmin, zmax, pb_aspect=None): + """ + Produce a matrix that scales homogeneous coords in the specified ranges + to [0, 1], or [0, pb_aspect[i]] if the plotbox aspect ratio is specified. + """ + dx = xmax - xmin + dy = ymax - ymin + dz = zmax - zmin + if pb_aspect is not None: + ax, ay, az = pb_aspect + dx /= ax + dy /= ay + dz /= az + + return np.array([[1/dx, 0, 0, -xmin/dx], + [ 0, 1/dy, 0, -ymin/dy], + [ 0, 0, 1/dz, -zmin/dz], + [ 0, 0, 0, 1]]) + + +def _rotation_about_vector(v, angle): + """ + Produce a rotation matrix for an angle in radians about a vector. + """ + vx, vy, vz = v / np.linalg.norm(v) + s = np.sin(angle) + c = np.cos(angle) + t = 2*np.sin(angle/2)**2 # more numerically stable than t = 1-c + + R = np.array([ + [t*vx*vx + c, t*vx*vy - vz*s, t*vx*vz + vy*s], + [t*vy*vx + vz*s, t*vy*vy + c, t*vy*vz - vx*s], + [t*vz*vx - vy*s, t*vz*vy + vx*s, t*vz*vz + c]]) + + return R + + +def _view_axes(E, R, V, roll): + """ + Get the unit viewing axes in data coordinates. + + Parameters + ---------- + E : 3-element numpy array + The coordinates of the eye/camera. + R : 3-element numpy array + The coordinates of the center of the view box. + V : 3-element numpy array + Unit vector in the direction of the vertical axis. + roll : float + The roll angle in radians. + + Returns + ------- + u : 3-element numpy array + Unit vector pointing towards the right of the screen. + v : 3-element numpy array + Unit vector pointing towards the top of the screen. + w : 3-element numpy array + Unit vector pointing out of the screen. + """ + w = (E - R) + w = w/np.linalg.norm(w) + u = np.cross(V, w) + u = u/np.linalg.norm(u) + v = np.cross(w, u) # Will be a unit vector + + # Save some computation for the default roll=0 + if roll != 0: + # A positive rotation of the camera is a negative rotation of the world + Rroll = _rotation_about_vector(w, -roll) + u = np.dot(Rroll, u) + v = np.dot(Rroll, v) + return u, v, w + + +def _view_transformation_uvw(u, v, w, E): + """ + Return the view transformation matrix. + + Parameters + ---------- + u : 3-element numpy array + Unit vector pointing towards the right of the screen. + v : 3-element numpy array + Unit vector pointing towards the top of the screen. + w : 3-element numpy array + Unit vector pointing out of the screen. + E : 3-element numpy array + The coordinates of the eye/camera. + """ + Mr = np.eye(4) + Mt = np.eye(4) + Mr[:3, :3] = [u, v, w] + Mt[:3, -1] = -E + M = np.dot(Mr, Mt) + return M + + +def _persp_transformation(zfront, zback, focal_length): + e = focal_length + a = 1 # aspect ratio + b = (zfront+zback)/(zfront-zback) + c = -2*(zfront*zback)/(zfront-zback) + proj_matrix = np.array([[e, 0, 0, 0], + [0, e/a, 0, 0], + [0, 0, b, c], + [0, 0, -1, 0]]) + return proj_matrix + + +def _ortho_transformation(zfront, zback): + # note: w component in the resulting vector will be (zback-zfront), not 1 + a = -(zfront + zback) + b = -(zfront - zback) + proj_matrix = np.array([[2, 0, 0, 0], + [0, 2, 0, 0], + [0, 0, -2, 0], + [0, 0, a, b]]) + return proj_matrix + + +def _proj_transform_vec(vec, M): + vecw = np.dot(M, vec.data) + w = vecw[3] + txs, tys, tzs = vecw[0]/w, vecw[1]/w, vecw[2]/w + if np.ma.isMA(vec[0]): # we check each to protect for scalars + txs = np.ma.array(txs, mask=vec[0].mask) + if np.ma.isMA(vec[1]): + tys = np.ma.array(tys, mask=vec[1].mask) + if np.ma.isMA(vec[2]): + tzs = np.ma.array(tzs, mask=vec[2].mask) + return txs, tys, tzs + + +def _proj_transform_vec_clip(vec, M, focal_length): + vecw = np.dot(M, vec.data) + w = vecw[3] + txs, tys, tzs = vecw[0] / w, vecw[1] / w, vecw[2] / w + if np.isinf(focal_length): # don't clip orthographic projection + tis = np.ones(txs.shape, dtype=bool) + else: + tis = (-1 <= txs) & (txs <= 1) & (-1 <= tys) & (tys <= 1) & (tzs <= 0) + if np.ma.isMA(vec[0]): + tis = tis & ~vec[0].mask + if np.ma.isMA(vec[1]): + tis = tis & ~vec[1].mask + if np.ma.isMA(vec[2]): + tis = tis & ~vec[2].mask + + txs = np.ma.masked_array(txs, ~tis) + tys = np.ma.masked_array(tys, ~tis) + tzs = np.ma.masked_array(tzs, ~tis) + return txs, tys, tzs, tis + + +def inv_transform(xs, ys, zs, invM): + """ + Transform the points by the inverse of the projection matrix, *invM*. + """ + vec = _vec_pad_ones(xs, ys, zs) + vecr = np.dot(invM, vec) + if vecr.shape == (4,): + vecr = vecr.reshape((4, 1)) + for i in range(vecr.shape[1]): + if vecr[3][i] != 0: + vecr[:, i] = vecr[:, i] / vecr[3][i] + return vecr[0], vecr[1], vecr[2] + + +def _vec_pad_ones(xs, ys, zs): + if np.ma.isMA(xs) or np.ma.isMA(ys) or np.ma.isMA(zs): + return np.ma.array([xs, ys, zs, np.ones_like(xs)]) + else: + return np.array([xs, ys, zs, np.ones_like(xs)]) + + +def proj_transform(xs, ys, zs, M): + """ + Transform the points by the projection matrix *M*. + """ + vec = _vec_pad_ones(xs, ys, zs) + return _proj_transform_vec(vec, M) + + +@_api.deprecated("3.10") +def proj_transform_clip(xs, ys, zs, M): + return _proj_transform_clip(xs, ys, zs, M, focal_length=np.inf) + + +def _proj_transform_clip(xs, ys, zs, M, focal_length): + """ + Transform the points by the projection matrix + and return the clipping result + returns txs, tys, tzs, tis + """ + vec = _vec_pad_ones(xs, ys, zs) + return _proj_transform_vec_clip(vec, M, focal_length) + + +def _proj_points(points, M): + return np.column_stack(_proj_trans_points(points, M)) + + +def _proj_trans_points(points, M): + points = np.asanyarray(points) + xs, ys, zs = points[:, 0], points[:, 1], points[:, 2] + return proj_transform(xs, ys, zs, M) diff --git a/shared/package-files/e8/e87a0066e85cb9a81b0495ef64fd80f28e76da46191a1c1c1bc3597c8d823ffd/blob b/shared/package-files/e8/e87a0066e85cb9a81b0495ef64fd80f28e76da46191a1c1c1bc3597c8d823ffd/blob new file mode 100644 index 0000000000000000000000000000000000000000..e5644faf45c0a2d16cd11247d6bacd98ece91952 --- /dev/null +++ b/shared/package-files/e8/e87a0066e85cb9a81b0495ef64fd80f28e76da46191a1c1c1bc3597c8d823ffd/blob @@ -0,0 +1,629 @@ +/* MSVC C99 doesn't have , else this could be written in easily + * in C */ +#include + +#ifdef _MSC_VER +#include +#endif + +#include +#include /* for memset */ +#include "nrt.h" +#include "assert.h" + + +/* NOTE: if changing the layout, please update numba.core.runtime.atomicops */ +extern "C" { +struct MemInfo { + std::atomic_size_t refct; + NRT_dtor_function dtor; + void *dtor_info; + void *data; + size_t size; /* only used for NRT allocated memory */ + NRT_ExternalAllocator *external_allocator; +}; +} + + +/* + * Misc helpers. + */ + +static void nrt_fatal_error(const char *msg) +{ + fprintf(stderr, "Fatal Numba error: %s\n", msg); + fflush(stderr); /* it helps in Windows debug build */ + +#if defined(MS_WINDOWS) && defined(_DEBUG) + DebugBreak(); +#endif + abort(); +} + +/* + * Global resources. + */ + +struct NRT_MemSys { + /* Shutdown flag */ + int shutting; + /* Stats */ + struct { + bool enabled; + std::atomic_size_t alloc; + std::atomic_size_t free; + std::atomic_size_t mi_alloc; + std::atomic_size_t mi_free; + } stats; + /* System allocation functions */ + struct { + NRT_malloc_func malloc; + NRT_realloc_func realloc; + NRT_free_func free; + } allocator; +}; + + +/* The Memory System object */ +static NRT_MemSys TheMSys; + + +extern "C" void NRT_MemSys_init(void) { + TheMSys.shutting = 0; + // Stats are off by default, call NRT_MemSys_enable_stats to enable + TheMSys.stats.enabled = false; + TheMSys.stats.alloc = 0; + TheMSys.stats.free = 0; + TheMSys.stats.mi_alloc = 0; + TheMSys.stats.mi_free = 0; + /* Bind to libc allocator */ + TheMSys.allocator.malloc = malloc; + TheMSys.allocator.realloc = realloc; + TheMSys.allocator.free = free; +} + +extern "C" void NRT_MemSys_shutdown(void) { + TheMSys.shutting = 1; +} + +extern "C" void NRT_MemSys_enable_stats(void) { + TheMSys.stats.enabled = true; +} + +extern "C" void NRT_MemSys_disable_stats(void) { + TheMSys.stats.enabled = false; +} + +extern "C" size_t NRT_MemSys_stats_enabled(void) { + return (size_t)TheMSys.stats.enabled; +} + +extern "C" void NRT_MemSys_set_allocator(NRT_malloc_func malloc_func, + NRT_realloc_func realloc_func, + NRT_free_func free_func) +{ + bool stats_cond = false; + if (TheMSys.stats.enabled) + { + stats_cond = (TheMSys.stats.alloc != TheMSys.stats.free || + TheMSys.stats.mi_alloc != TheMSys.stats.mi_free); + } + if ((malloc_func != TheMSys.allocator.malloc || + realloc_func != TheMSys.allocator.realloc || + free_func != TheMSys.allocator.free) && + stats_cond) { + nrt_fatal_error("cannot change allocator while blocks are allocated"); + } + TheMSys.allocator.malloc = malloc_func; + TheMSys.allocator.realloc = realloc_func; + TheMSys.allocator.free = free_func; +} + +/* This value is used as a marker for "stats are disabled", it's ASCII "AAAA" */ +static size_t _DISABLED_STATS_VALUE = 0x41414141; + +extern "C" size_t NRT_MemSys_get_stats_alloc() { + if (TheMSys.stats.enabled) + { + return TheMSys.stats.alloc.load(); + } else { + return _DISABLED_STATS_VALUE; + } +} + +extern "C" size_t NRT_MemSys_get_stats_free() { + if (TheMSys.stats.enabled) + { + return TheMSys.stats.free.load(); + } else { + return _DISABLED_STATS_VALUE; + } +} + +extern "C" size_t NRT_MemSys_get_stats_mi_alloc() { + if (TheMSys.stats.enabled) + { + return TheMSys.stats.mi_alloc.load(); + } else { + return _DISABLED_STATS_VALUE; + } +} + +extern "C" size_t NRT_MemSys_get_stats_mi_free() { + if (TheMSys.stats.enabled) + { + return TheMSys.stats.mi_free.load(); + } else { + return _DISABLED_STATS_VALUE; + } +} + +/* + * The MemInfo structure. + */ + +extern "C" void NRT_MemInfo_init(NRT_MemInfo *mi,void *data, size_t size, + NRT_dtor_function dtor, void *dtor_info, + NRT_ExternalAllocator *external_allocator) +{ + mi->refct = 1; /* starts with 1 refct */ + mi->dtor = dtor; + mi->dtor_info = dtor_info; + mi->data = data; + mi->size = size; + mi->external_allocator = external_allocator; + NRT_Debug(nrt_debug_print("NRT_MemInfo_init mi=%p external_allocator=%p\n", mi, external_allocator)); + /* Update stats */ + if (TheMSys.stats.enabled) + { + TheMSys.stats.mi_alloc++; + } +} + +NRT_MemInfo *NRT_MemInfo_new(void *data, size_t size, + NRT_dtor_function dtor, void *dtor_info) +{ + NRT_MemInfo *mi = (NRT_MemInfo *)NRT_Allocate(sizeof(NRT_MemInfo)); + if (mi != NULL) { + NRT_Debug(nrt_debug_print("NRT_MemInfo_new mi=%p\n", mi)); + NRT_MemInfo_init(mi, data, size, dtor, dtor_info, NULL); + } + return mi; +} + +size_t NRT_MemInfo_refcount(NRT_MemInfo *mi) { + /* Should never returns 0 for a valid MemInfo */ + if (mi && mi->data) + return mi->refct; + else{ + return (size_t)-1; + } +} + +static +void nrt_internal_dtor_safe(void *ptr, size_t size, void *info) { + NRT_Debug(nrt_debug_print("nrt_internal_dtor_safe %p, %p\n", ptr, info)); + /* See NRT_MemInfo_alloc_safe() */ + /* Fill region with debug markers */ + memset(ptr, 0xDE, size); +} + +static +void *nrt_allocate_meminfo_and_data(size_t size, NRT_MemInfo **mi_out, NRT_ExternalAllocator *allocator) { + NRT_MemInfo *mi = NULL; + NRT_Debug(nrt_debug_print("nrt_allocate_meminfo_and_data %p\n", allocator)); + char *base = (char *)NRT_Allocate_External(sizeof(NRT_MemInfo) + size, allocator); + if (base == NULL) { + *mi_out = NULL; /* set meminfo to NULL as allocation failed */ + return NULL; /* return early as allocation failed */ + } + mi = (NRT_MemInfo *) base; + *mi_out = mi; + return (void*)((char *)base + sizeof(NRT_MemInfo)); +} + + +static +void nrt_internal_custom_dtor_safe(void *ptr, size_t size, void *info) { + NRT_dtor_function dtor = (NRT_dtor_function)info; + NRT_Debug(nrt_debug_print("nrt_internal_custom_dtor_safe %p, %p\n", + ptr, info)); + if (dtor) { + dtor(ptr, size, NULL); + } + + nrt_internal_dtor_safe(ptr, size, NULL); +} + +static +void nrt_internal_custom_dtor(void *ptr, size_t size, void *info) { + NRT_dtor_function dtor = (NRT_dtor_function)info; + NRT_Debug(nrt_debug_print("nrt_internal_custom_dtor %p, %p\n", + ptr, info)); + if (dtor) { + dtor(ptr, size, NULL); + } +} + +NRT_MemInfo *NRT_MemInfo_alloc(size_t size) { + NRT_MemInfo *mi = NULL; + void *data = nrt_allocate_meminfo_and_data(size, &mi, NULL); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc %p\n", data)); + NRT_MemInfo_init(mi, data, size, NULL, NULL, NULL); + return mi; +} + +extern "C" NRT_MemInfo *NRT_MemInfo_alloc_external(size_t size, NRT_ExternalAllocator *allocator) { + NRT_MemInfo *mi = NULL; + void *data = nrt_allocate_meminfo_and_data(size, &mi, allocator); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc %p\n", data)); + NRT_MemInfo_init(mi, data, size, NULL, NULL, allocator); + return mi; +} + +extern "C" NRT_MemInfo *NRT_MemInfo_alloc_safe(size_t size) { + return NRT_MemInfo_alloc_dtor_safe(size, NULL); +} + +extern "C" NRT_MemInfo* NRT_MemInfo_alloc_dtor_safe(size_t size, NRT_dtor_function dtor) { + NRT_MemInfo *mi = NULL; + void *data = nrt_allocate_meminfo_and_data(size, &mi, NULL); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + /* Fill region with debug markers */ + memset(data, 0xCB, size); + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc_dtor_safe %p %zu\n", data, size)); + NRT_MemInfo_init(mi, data, size, nrt_internal_custom_dtor_safe, (void*)dtor, NULL); + return mi; +} + +NRT_MemInfo* NRT_MemInfo_alloc_dtor(size_t size, NRT_dtor_function dtor) { + NRT_MemInfo *mi = NULL; + void *data = (void *)nrt_allocate_meminfo_and_data(size, &mi, NULL); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc_dtor %p %zu\n", data, size)); + NRT_MemInfo_init(mi, data, size, nrt_internal_custom_dtor, (void *)dtor, NULL); + return mi; +} + +static +void *nrt_allocate_meminfo_and_data_align(size_t size, unsigned align, + NRT_MemInfo **mi, NRT_ExternalAllocator *allocator) +{ + size_t offset = 0, intptr = 0, remainder = 0; + NRT_Debug(nrt_debug_print("nrt_allocate_meminfo_and_data_align %p\n", allocator)); + char *base = (char *)nrt_allocate_meminfo_and_data(size + 2 * align, mi, allocator); + if (base == NULL) { + return NULL; /* return early as allocation failed */ + } + intptr = (size_t) base; + /* + * See if the allocation is aligned already... + * Check if align is a power of 2, if so the modulo can be avoided. + */ + if((align & (align - 1)) == 0) + { + remainder = intptr & (align - 1); + } + else + { + remainder = intptr % align; + } + if (remainder == 0){ /* Yes */ + offset = 0; + } else { /* No, move forward `offset` bytes */ + offset = align - remainder; + } + return (void*)((char *)base + offset); +} + +extern "C" NRT_MemInfo *NRT_MemInfo_alloc_aligned(size_t size, unsigned align) { + NRT_MemInfo *mi = NULL; + void *data = nrt_allocate_meminfo_and_data_align(size, align, &mi, NULL); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc_aligned %p\n", data)); + NRT_MemInfo_init(mi, data, size, NULL, NULL, NULL); + return mi; +} + +extern "C" NRT_MemInfo *NRT_MemInfo_alloc_safe_aligned(size_t size, unsigned align) { + NRT_MemInfo *mi = NULL; + void *data = nrt_allocate_meminfo_and_data_align(size, align, &mi, NULL); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + /* Fill region with debug markers */ + memset(data, 0xCB, size); + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc_safe_aligned %p %zu\n", + data, size)); + NRT_MemInfo_init(mi, data, size, nrt_internal_dtor_safe, (void*)size, NULL); + return mi; +} + +extern "C" NRT_MemInfo *NRT_MemInfo_alloc_safe_aligned_external(size_t size, unsigned align, NRT_ExternalAllocator *allocator) { + NRT_MemInfo *mi = NULL; + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc_safe_aligned_external %p\n", allocator)); + void *data = nrt_allocate_meminfo_and_data_align(size, align, &mi, allocator); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + /* Fill region with debug markers */ + memset(data, 0xCB, size); + NRT_Debug(nrt_debug_print("NRT_MemInfo_alloc_safe_aligned %p %zu\n", + data, size)); + NRT_MemInfo_init(mi, data, size, nrt_internal_dtor_safe, (void*)size, allocator); + return mi; +} + +extern "C" void NRT_dealloc(NRT_MemInfo *mi) { + NRT_Debug(nrt_debug_print("NRT_dealloc meminfo: %p external_allocator: %p\n", mi, mi->external_allocator)); + if (mi->external_allocator) { + mi->external_allocator->free(mi, mi->external_allocator->opaque_data); + if (TheMSys.stats.enabled) + { + TheMSys.stats.free++; + } + } else { + NRT_Free(mi); + } +} + +extern "C" void NRT_MemInfo_destroy(NRT_MemInfo *mi) { + NRT_dealloc(mi); + if (TheMSys.stats.enabled) + { + TheMSys.stats.mi_free++; + } +} + +extern "C" void NRT_MemInfo_acquire(NRT_MemInfo *mi) { + NRT_Debug(nrt_debug_print("NRT_MemInfo_acquire %p refct=%zu\n", mi, + mi->refct.load())); + assert(mi->refct > 0 && "RefCt cannot be zero"); + mi->refct++; +} + +extern "C" void NRT_MemInfo_call_dtor(NRT_MemInfo *mi) { + NRT_Debug(nrt_debug_print("NRT_MemInfo_call_dtor %p\n", mi)); + if (mi->dtor && !TheMSys.shutting) + /* We have a destructor and the system is not shutting down */ + mi->dtor(mi->data, mi->size, mi->dtor_info); + /* Clear and release MemInfo */ + NRT_MemInfo_destroy(mi); +} + +extern "C" void NRT_MemInfo_release(NRT_MemInfo *mi) { + NRT_Debug(nrt_debug_print("NRT_MemInfo_release %p refct=%zu\n", mi, + mi->refct.load())); + assert (mi->refct > 0 && "RefCt cannot be 0"); + /* RefCt drop to zero */ + if ((--(mi->refct)) == 0) { + NRT_MemInfo_call_dtor(mi); + } +} + +extern "C" void* NRT_MemInfo_data(NRT_MemInfo* mi) { + return mi->data; +} + +size_t NRT_MemInfo_size(NRT_MemInfo* mi) { + return mi->size; +} + +extern "C" void * NRT_MemInfo_external_allocator(NRT_MemInfo *mi) { + NRT_Debug(nrt_debug_print("NRT_MemInfo_external_allocator meminfo: %p external_allocator: %p\n", mi, mi->external_allocator)); + return mi->external_allocator; +} + +extern "C" void *NRT_MemInfo_parent(NRT_MemInfo *mi) { + return mi->dtor_info; +} + +extern "C" void NRT_MemInfo_dump(NRT_MemInfo *mi, FILE *out) { + fprintf(out, "MemInfo %p refcount %zu\n", mi, mi->refct.load()); +} + +/* + * Resizable buffer API. + */ + +static void +nrt_varsize_dtor(void *ptr, size_t size, void *info) { + NRT_Debug(nrt_debug_print("nrt_varsize_dtor %p\n", ptr)); + if (info) { + /* call element dtor */ + typedef void dtor_fn_t(void *ptr); + dtor_fn_t *dtor = (dtor_fn_t *)info; + dtor(ptr); + } + NRT_Free(ptr); +} + +NRT_MemInfo *NRT_MemInfo_new_varsize(size_t size) +{ + NRT_MemInfo *mi = NULL; + void *data = NRT_Allocate(size); + if (data == NULL) { + return NULL; /* return early as allocation failed */ + } + + mi = NRT_MemInfo_new(data, size, nrt_varsize_dtor, NULL); + NRT_Debug(nrt_debug_print("NRT_MemInfo_new_varsize size=%zu " + "-> meminfo=%p, data=%p\n", size, mi, data)); + return mi; +} + +NRT_MemInfo *NRT_MemInfo_new_varsize_dtor(size_t size, NRT_dtor_function dtor) { + NRT_MemInfo *mi = NRT_MemInfo_new_varsize(size); + if (mi) { + mi->dtor_info = (void*)dtor; + } + return mi; +} + +extern "C" void *NRT_MemInfo_varsize_alloc(NRT_MemInfo *mi, size_t size) +{ + if (mi->dtor != nrt_varsize_dtor) { + nrt_fatal_error("ERROR: NRT_MemInfo_varsize_alloc called " + "with a non varsize-allocated meminfo"); + return NULL; /* unreachable */ + } + mi->data = NRT_Allocate(size); + if (mi->data == NULL) + return NULL; + mi->size = size; + NRT_Debug(nrt_debug_print("NRT_MemInfo_varsize_alloc %p size=%zu " + "-> data=%p\n", mi, size, mi->data)); + return mi->data; +} + +extern "C" void *NRT_MemInfo_varsize_realloc(NRT_MemInfo *mi, size_t size) +{ + if (mi->dtor != nrt_varsize_dtor) { + nrt_fatal_error("ERROR: NRT_MemInfo_varsize_realloc called " + "with a non varsize-allocated meminfo"); + return NULL; /* unreachable */ + } + mi->data = NRT_Reallocate(mi->data, size); + if (mi->data == NULL) + return NULL; + mi->size = size; + NRT_Debug(nrt_debug_print("NRT_MemInfo_varsize_realloc %p size=%zu " + "-> data=%p\n", mi, size, mi->data)); + return mi->data; +} + +extern "C" void NRT_MemInfo_varsize_free(NRT_MemInfo *mi, void *ptr) +{ + NRT_Free(ptr); + if (ptr == mi->data) + mi->data = NULL; +} + +/* + * Low-level allocation wrappers. + */ + +extern "C" void* NRT_Allocate(size_t size) { + return NRT_Allocate_External(size, NULL); +} + +extern "C" void* NRT_Allocate_External(size_t size, NRT_ExternalAllocator *allocator) { + void *ptr = NULL; + if (allocator) { + ptr = allocator->malloc(size, allocator->opaque_data); + NRT_Debug(nrt_debug_print("NRT_Allocate_External custom bytes=%zu ptr=%p\n", size, ptr)); + } else { + ptr = TheMSys.allocator.malloc(size); + NRT_Debug(nrt_debug_print("NRT_Allocate_External bytes=%zu ptr=%p\n", size, ptr)); + } + if (TheMSys.stats.enabled) + { + TheMSys.stats.alloc++; + } + return ptr; +} + +extern "C" void *NRT_Reallocate(void *ptr, size_t size) { + void *new_ptr = TheMSys.allocator.realloc(ptr, size); + NRT_Debug(nrt_debug_print("NRT_Reallocate bytes=%zu ptr=%p -> %p\n", + size, ptr, new_ptr)); + return new_ptr; +} + +extern "C" void NRT_Free(void *ptr) { + NRT_Debug(nrt_debug_print("NRT_Free %p\n", ptr)); + TheMSys.allocator.free(ptr); + if (TheMSys.stats.enabled) + { + TheMSys.stats.free++; + } +} + +/* + * Sample external allocator implementation for internal testing. + */ + +static int sample_external_opaque_data = 0xabacad; + +static +void* sample_external_malloc(size_t size, void* opaque_data) { + if (opaque_data != &sample_external_opaque_data) return NULL; + return TheMSys.allocator.malloc(size); +} + +static +void* sample_external_realloc(void *ptr, size_t new_size, void *opaque_data) { + if (opaque_data != &sample_external_opaque_data) return NULL; + return TheMSys.allocator.realloc(ptr, new_size); +} + +static +void sample_external_free(void *ptr, void* opaque_data) { + TheMSys.allocator.free(ptr); +} + +static NRT_ExternalAllocator sample_external_allocator = { + // malloc + sample_external_malloc, + // realloc + sample_external_realloc, + // free + sample_external_free, + // opaque_data + &sample_external_opaque_data +}; + +extern "C" NRT_ExternalAllocator* _nrt_get_sample_external_allocator() { + return &sample_external_allocator; +} + +/* + * Debugging printf function used internally + */ +void nrt_debug_print(const char *fmt, ...) { + va_list args; + + va_start(args, fmt); + vfprintf(stderr, fmt, args); + va_end(args); +} + + +static +void nrt_manage_memory_dtor(void *data, size_t size, void *info) { + NRT_managed_dtor* dtor = (NRT_managed_dtor*)info; + dtor(data); +} + +static +NRT_MemInfo* nrt_manage_memory(void *data, NRT_managed_dtor dtor) { + return (NRT_MemInfo*)(NRT_MemInfo_new(data, 0, nrt_manage_memory_dtor, (void*)dtor)); +} + + +static const +NRT_api_functions nrt_functions_table = { + NRT_MemInfo_alloc, + NRT_MemInfo_alloc_external, + nrt_manage_memory, + NRT_MemInfo_acquire, + NRT_MemInfo_release, + NRT_MemInfo_data +}; + + +extern "C" const NRT_api_functions* NRT_get_api(void) { + return &nrt_functions_table; +} diff --git a/shared/package-files/e8/e87bf3003d1d952415c72ead9c38468f4fa98aca7531a27d6f140d46bf768a72/blob b/shared/package-files/e8/e87bf3003d1d952415c72ead9c38468f4fa98aca7531a27d6f140d46bf768a72/blob new file mode 100644 index 0000000000000000000000000000000000000000..73647ee716fc1c36bf255347617308522b724e5d --- /dev/null +++ b/shared/package-files/e8/e87bf3003d1d952415c72ead9c38468f4fa98aca7531a27d6f140d46bf768a72/blob @@ -0,0 +1,97 @@ +# This file is dual licensed under the terms of the Apache License, Version +# 2.0, and the BSD License. See the LICENSE file in the root of this repository +# for complete details. + +from __future__ import annotations + +import abc +import datetime + +from cryptography import utils +from cryptography.hazmat.bindings._rust import x509 as rust_x509 +from cryptography.hazmat.primitives.hashes import HashAlgorithm + + +class LogEntryType(utils.Enum): + X509_CERTIFICATE = 0 + PRE_CERTIFICATE = 1 + + +class Version(utils.Enum): + v1 = 0 + + +class SignatureAlgorithm(utils.Enum): + """ + Signature algorithms that are valid for SCTs. + + These are exactly the same as SignatureAlgorithm in RFC 5246 (TLS 1.2). + + See: + """ + + ANONYMOUS = 0 + RSA = 1 + DSA = 2 + ECDSA = 3 + + +class SignedCertificateTimestamp(metaclass=abc.ABCMeta): + @property + @abc.abstractmethod + def version(self) -> Version: + """ + Returns the SCT version. + """ + + @property + @abc.abstractmethod + def log_id(self) -> bytes: + """ + Returns an identifier indicating which log this SCT is for. + """ + + @property + @abc.abstractmethod + def timestamp(self) -> datetime.datetime: + """ + Returns the timestamp for this SCT. + """ + + @property + @abc.abstractmethod + def entry_type(self) -> LogEntryType: + """ + Returns whether this is an SCT for a certificate or pre-certificate. + """ + + @property + @abc.abstractmethod + def signature_hash_algorithm(self) -> HashAlgorithm: + """ + Returns the hash algorithm used for the SCT's signature. + """ + + @property + @abc.abstractmethod + def signature_algorithm(self) -> SignatureAlgorithm: + """ + Returns the signing algorithm used for the SCT's signature. + """ + + @property + @abc.abstractmethod + def signature(self) -> bytes: + """ + Returns the signature for this SCT. + """ + + @property + @abc.abstractmethod + def extension_bytes(self) -> bytes: + """ + Returns the raw bytes of any extensions for this SCT. + """ + + +SignedCertificateTimestamp.register(rust_x509.Sct) diff --git a/shared/package-files/e8/e87e69bada601bbda4503eb1e4e2de24ab4ccd792facc30e90dc7ecd2864dbb5/blob b/shared/package-files/e8/e87e69bada601bbda4503eb1e4e2de24ab4ccd792facc30e90dc7ecd2864dbb5/blob new file mode 100644 index 0000000000000000000000000000000000000000..52e36b61a2099ef0f405d2d46cf7513b05b2b7d7 --- /dev/null +++ b/shared/package-files/e8/e87e69bada601bbda4503eb1e4e2de24ab4ccd792facc30e90dc7ecd2864dbb5/blob @@ -0,0 +1,248 @@ +from datetime import datetime +from gzip import GzipFile +from httplib import HTTPConnection, HTTPResponse, HTTPSConnection +from ssl import SSLContext +from StringIO import StringIO +from time import struct_time +from types import InstanceType +from typing import IO, Any, AnyStr, Callable, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Type, TypeVar, Union + +_Unmarshaller = Any +_timeTuple = Tuple[int, int, int, int, int, int, int, int, int] +# Represents types that can be compared against a DateTime object +_dateTimeComp = Union[unicode, DateTime, datetime] +# A "host description" used by Transport factories +_hostDesc = Union[str, Tuple[str, Mapping[Any, Any]]] + +def escape(s: AnyStr, replace: Callable[[AnyStr, AnyStr, AnyStr], AnyStr] = ...) -> AnyStr: ... + +MAXINT: int +MININT: int +PARSE_ERROR: int +SERVER_ERROR: int +APPLICATION_ERROR: int +SYSTEM_ERROR: int +TRANSPORT_ERROR: int +NOT_WELLFORMED_ERROR: int +UNSUPPORTED_ENCODING: int +INVALID_ENCODING_CHAR: int +INVALID_XMLRPC: int +METHOD_NOT_FOUND: int +INVALID_METHOD_PARAMS: int +INTERNAL_ERROR: int + +class Error(Exception): ... + +class ProtocolError(Error): + url: str + errcode: int + errmsg: str + headers: Any + def __init__(self, url: str, errcode: int, errmsg: str, headers: Any) -> None: ... + +class ResponseError(Error): ... + +class Fault(Error): + faultCode: Any + faultString: str + def __init__(self, faultCode: Any, faultString: str, **extra: Any) -> None: ... + +boolean: Type[bool] +Boolean: Type[bool] + +class DateTime: + value: str + def __init__(self, value: Union[str, unicode, datetime, float, int, _timeTuple, struct_time] = ...) -> None: ... + def make_comparable(self, other: _dateTimeComp) -> Tuple[unicode, unicode]: ... + def __lt__(self, other: _dateTimeComp) -> bool: ... + def __le__(self, other: _dateTimeComp) -> bool: ... + def __gt__(self, other: _dateTimeComp) -> bool: ... + def __ge__(self, other: _dateTimeComp) -> bool: ... + def __eq__(self, other: _dateTimeComp) -> bool: ... # type: ignore + def __ne__(self, other: _dateTimeComp) -> bool: ... # type: ignore + def timetuple(self) -> struct_time: ... + def __cmp__(self, other: _dateTimeComp) -> int: ... + def decode(self, data: Any) -> None: ... + def encode(self, out: IO[str]) -> None: ... + +class Binary: + data: str + def __init__(self, data: Optional[str] = ...) -> None: ... + def __cmp__(self, other: Any) -> int: ... + def decode(self, data: str) -> None: ... + def encode(self, out: IO[str]) -> None: ... + +WRAPPERS: Tuple[Type[Any], ...] + +# Still part of the public API, but see http://bugs.python.org/issue1773632 +FastParser: None +FastUnmarshaller: None +FastMarshaller: None + +# xmlrpclib.py will leave ExpatParser undefined if it can't import expat from +# xml.parsers. Because this is Python 2.7, the import will succeed. +class ExpatParser: + def __init__(self, target: _Unmarshaller) -> None: ... + def feed(self, data: str): ... + def close(self): ... + +# TODO: Add xmllib.XMLParser as base class +class SlowParser: + handle_xml: Callable[[str, bool], None] + unknown_starttag: Callable[[str, Any], None] + handle_data: Callable[[str], None] + handle_cdata: Callable[[str], None] + unknown_endtag: Callable[[str, Callable[[Iterable[str], str], str]], None] + def __init__(self, target: _Unmarshaller) -> None: ... + +class Marshaller: + memo: MutableMapping[int, Any] + data: Optional[str] + encoding: Optional[str] + allow_none: bool + def __init__(self, encoding: Optional[str] = ..., allow_none: bool = ...) -> None: ... + dispatch: Mapping[type, Callable[[Marshaller, str, Callable[[str], None]], None]] + def dumps( + self, + values: Union[ + Iterable[ + Union[ + None, + int, + bool, + long, + float, + str, + unicode, + List[Any], + Tuple[Any, ...], + Mapping[Any, Any], + datetime, + InstanceType, + ] + ], + Fault, + ], + ) -> str: ... + def dump_nil(self, value: None, write: Callable[[str], None]) -> None: ... + def dump_int(self, value: int, write: Callable[[str], None]) -> None: ... + def dump_bool(self, value: bool, write: Callable[[str], None]) -> None: ... + def dump_long(self, value: long, write: Callable[[str], None]) -> None: ... + def dump_double(self, value: float, write: Callable[[str], None]) -> None: ... + def dump_string( + self, + value: str, + write: Callable[[str], None], + escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ..., + ) -> None: ... + def dump_unicode( + self, + value: unicode, + write: Callable[[str], None], + escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ..., + ) -> None: ... + def dump_array(self, value: Iterable[Any], write: Callable[[str], None]) -> None: ... + def dump_struct( + self, + value: Mapping[unicode, Any], + write: Callable[[str], None], + escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ..., + ) -> None: ... + def dump_datetime(self, value: datetime, write: Callable[[str], None]) -> None: ... + def dump_instance(self, value: InstanceType, write: Callable[[str], None]) -> None: ... + +class Unmarshaller: + def append(self, object: Any) -> None: ... + def __init__(self, use_datetime: bool = ...) -> None: ... + def close(self) -> Tuple[Any, ...]: ... + def getmethodname(self) -> Optional[str]: ... + def xml(self, encoding: str, standalone: bool) -> None: ... + def start(self, tag: str, attrs: Any) -> None: ... + def data(self, text: str) -> None: ... + def end(self, tag: str, join: Callable[[Iterable[str], str], str] = ...) -> None: ... + def end_dispatch(self, tag: str, data: str) -> None: ... + dispatch: Mapping[str, Callable[[Unmarshaller, str], None]] + def end_nil(self, data: str): ... + def end_boolean(self, data: str) -> None: ... + def end_int(self, data: str) -> None: ... + def end_double(self, data: str) -> None: ... + def end_string(self, data: str) -> None: ... + def end_array(self, data: str) -> None: ... + def end_struct(self, data: str) -> None: ... + def end_base64(self, data: str) -> None: ... + def end_dateTime(self, data: str) -> None: ... + def end_value(self, data: str) -> None: ... + def end_params(self, data: str) -> None: ... + def end_fault(self, data: str) -> None: ... + def end_methodName(self, data: str) -> None: ... + +class _MultiCallMethod: + def __init__(self, call_list: List[Tuple[str, Tuple[Any, ...]]], name: str) -> None: ... + +class MultiCallIterator: + def __init__(self, results: List[Any]) -> None: ... + +class MultiCall: + def __init__(self, server: ServerProxy) -> None: ... + def __getattr__(self, name: str) -> _MultiCallMethod: ... + def __call__(self) -> MultiCallIterator: ... + +def getparser(use_datetime: bool = ...) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ... +def dumps( + params: Union[Tuple[Any, ...], Fault], + methodname: Optional[str] = ..., + methodresponse: Optional[bool] = ..., + encoding: Optional[str] = ..., + allow_none: bool = ..., +) -> str: ... +def loads(data: str, use_datetime: bool = ...) -> Tuple[Tuple[Any, ...], Optional[str]]: ... +def gzip_encode(data: str) -> str: ... +def gzip_decode(data: str, max_decode: int = ...) -> str: ... + +class GzipDecodedResponse(GzipFile): + stringio: StringIO[Any] + def __init__(self, response: HTTPResponse) -> None: ... + def close(self): ... + +class _Method: + def __init__(self, send: Callable[[str, Tuple[Any, ...]], Any], name: str) -> None: ... + def __getattr__(self, name: str) -> _Method: ... + def __call__(self, *args: Any) -> Any: ... + +class Transport: + user_agent: str + accept_gzip_encoding: bool + encode_threshold: Optional[int] + def __init__(self, use_datetime: bool = ...) -> None: ... + def request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ... + verbose: bool + def single_request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ... + def getparser(self) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ... + def get_host_info(self, host: _hostDesc) -> Tuple[str, Optional[List[Tuple[str, str]]], Optional[Mapping[Any, Any]]]: ... + def make_connection(self, host: _hostDesc) -> HTTPConnection: ... + def close(self) -> None: ... + def send_request(self, connection: HTTPConnection, handler: str, request_body: str) -> None: ... + def send_host(self, connection: HTTPConnection, host: str) -> None: ... + def send_user_agent(self, connection: HTTPConnection) -> None: ... + def send_content(self, connection: HTTPConnection, request_body: str) -> None: ... + def parse_response(self, response: HTTPResponse) -> Tuple[Any, ...]: ... + +class SafeTransport(Transport): + def __init__(self, use_datetime: bool = ..., context: Optional[SSLContext] = ...) -> None: ... + def make_connection(self, host: _hostDesc) -> HTTPSConnection: ... + +class ServerProxy: + def __init__( + self, + uri: str, + transport: Optional[Transport] = ..., + encoding: Optional[str] = ..., + verbose: bool = ..., + allow_none: bool = ..., + use_datetime: bool = ..., + context: Optional[SSLContext] = ..., + ) -> None: ... + def __getattr__(self, name: str) -> _Method: ... + def __call__(self, attr: str) -> Optional[Transport]: ... + +Server = ServerProxy diff --git a/shared/package-files/e8/e87ec076f950fcd58189e362e1505dd55b0c8f4fa7dd1a9331c5c111d2ce569f/blob b/shared/package-files/e8/e87ec076f950fcd58189e362e1505dd55b0c8f4fa7dd1a9331c5c111d2ce569f/blob new file mode 100644 index 0000000000000000000000000000000000000000..71f9e62b1f9b423936cec3dc4382955b6f925398 --- /dev/null +++ b/shared/package-files/e8/e87ec076f950fcd58189e362e1505dd55b0c8f4fa7dd1a9331c5c111d2ce569f/blob @@ -0,0 +1,20 @@ +# Encoding file: cp864, single-byte +S +003F 0 1 +00 +0000000100020003000400050006000700080009000A000B000C000D000E000F +0010001100120013001400150016001700180019001A001B001C001D001E001F +00200021002200230024066A0026002700280029002A002B002C002D002E002F +0030003100320033003400350036003700380039003A003B003C003D003E003F +0040004100420043004400450046004700480049004A004B004C004D004E004F +0050005100520053005400550056005700580059005A005B005C005D005E005F +0060006100620063006400650066006700680069006A006B006C006D006E006F +0070007100720073007400750076007700780079007A007B007C007D007E007F +00B000B72219221A259225002502253C2524252C251C25342510250C25142518 +03B2221E03C600B100BD00BC224800AB00BBFEF7FEF8009B009CFEFBFEFC009F +00A000ADFE8200A300A4FE8400000000FE8EFE8FFE95FE99060CFE9DFEA1FEA5 +0660066106620663066406650666066706680669FED1061BFEB1FEB5FEB9061F +00A2FE80FE81FE83FE85FECAFE8BFE8DFE91FE93FE97FE9BFE9FFEA3FEA7FEA9 +FEABFEADFEAFFEB3FEB7FEBBFEBFFEC1FEC5FECBFECF00A600AC00F700D7FEC9 +0640FED3FED7FEDBFEDFFEE3FEE7FEEBFEEDFEEFFEF3FEBDFECCFECEFECDFEE1 +FE7D0651FEE5FEE9FEECFEF0FEF2FED0FED5FEF5FEF6FEDDFED9FEF125A00000 diff --git a/shared/package-files/e8/e8810cf62d5483fc22aa6b6dd64eb18f3affafe5e9d6f0238ec6d9d4ecd9ef1f/blob b/shared/package-files/e8/e8810cf62d5483fc22aa6b6dd64eb18f3affafe5e9d6f0238ec6d9d4ecd9ef1f/blob new file mode 100644 index 0000000000000000000000000000000000000000..0b40a325506079718acb678d493229f7f274f762 --- /dev/null +++ b/shared/package-files/e8/e8810cf62d5483fc22aa6b6dd64eb18f3affafe5e9d6f0238ec6d9d4ecd9ef1f/blob @@ -0,0 +1,608 @@ +# See https://github.com/networkx/networkx/pull/1474 +# Copyright 2011 Reya Group +# Copyright 2011 Alex Levenson +# Copyright 2011 Diederik van Liere +"""Functions for analyzing triads of a graph.""" + +from collections import defaultdict +from itertools import combinations, permutations + +import networkx as nx +from networkx.utils import not_implemented_for, py_random_state + +__all__ = [ + "triadic_census", + "is_triad", + "all_triplets", + "all_triads", + "triads_by_type", + "triad_type", + "random_triad", +] + +#: The integer codes representing each type of triad. +#: +#: Triads that are the same up to symmetry have the same code. +TRICODES = ( + 1, + 2, + 2, + 3, + 2, + 4, + 6, + 8, + 2, + 6, + 5, + 7, + 3, + 8, + 7, + 11, + 2, + 6, + 4, + 8, + 5, + 9, + 9, + 13, + 6, + 10, + 9, + 14, + 7, + 14, + 12, + 15, + 2, + 5, + 6, + 7, + 6, + 9, + 10, + 14, + 4, + 9, + 9, + 12, + 8, + 13, + 14, + 15, + 3, + 7, + 8, + 11, + 7, + 12, + 14, + 15, + 8, + 14, + 13, + 15, + 11, + 15, + 15, + 16, +) + +#: The names of each type of triad. The order of the elements is +#: important: it corresponds to the tricodes given in :data:`TRICODES`. +TRIAD_NAMES = ( + "003", + "012", + "102", + "021D", + "021U", + "021C", + "111D", + "111U", + "030T", + "030C", + "201", + "120D", + "120U", + "120C", + "210", + "300", +) + + +#: A dictionary mapping triad code to triad name. +TRICODE_TO_NAME = {i: TRIAD_NAMES[code - 1] for i, code in enumerate(TRICODES)} + + +def _tricode(G, v, u, w): + """Returns the integer code of the given triad. + + This is some fancy magic that comes from Batagelj and Mrvar's paper. It + treats each edge joining a pair of `v`, `u`, and `w` as a bit in + the binary representation of an integer. + + """ + combos = ((v, u, 1), (u, v, 2), (v, w, 4), (w, v, 8), (u, w, 16), (w, u, 32)) + return sum(x for u, v, x in combos if v in G[u]) + + +@not_implemented_for("undirected") +def triadic_census(G, nodelist=None): + """Determines the triadic census of a directed graph. + + The triadic census is a count of how many of the 16 possible types of + triads are present in a directed graph. If a list of nodes is passed, then + only those triads are taken into account which have elements of nodelist in them. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + nodelist : list + List of nodes for which you want to calculate triadic census + + Returns + ------- + census : dict + Dictionary with triad type as keys and number of occurrences as values. + + Examples + -------- + >>> G = nx.DiGraph([(1, 2), (2, 3), (3, 1), (3, 4), (4, 1), (4, 2)]) + >>> triadic_census = nx.triadic_census(G) + >>> for key, value in triadic_census.items(): + ... print(f"{key}: {value}") + ... + 003: 0 + 012: 0 + 102: 0 + 021D: 0 + 021U: 0 + 021C: 0 + 111D: 0 + 111U: 0 + 030T: 2 + 030C: 2 + 201: 0 + 120D: 0 + 120U: 0 + 120C: 0 + 210: 0 + 300: 0 + + Notes + ----- + This algorithm has complexity $O(m)$ where $m$ is the number of edges in + the graph. + + Raises + ------ + ValueError + If `nodelist` contains duplicate nodes or nodes not in `G`. + If you want to ignore this you can preprocess with `set(nodelist) & G.nodes` + + See also + -------- + triad_graph + + References + ---------- + .. [1] Vladimir Batagelj and Andrej Mrvar, A subquadratic triad census + algorithm for large sparse networks with small maximum degree, + University of Ljubljana, + http://vlado.fmf.uni-lj.si/pub/networks/doc/triads/triads.pdf + + """ + nodeset = set(G.nbunch_iter(nodelist)) + if nodelist is not None and len(nodelist) != len(nodeset): + raise ValueError("nodelist includes duplicate nodes or nodes not in G") + + N = len(G) + Nnot = N - len(nodeset) # can signal special counting for subset of nodes + + # create an ordering of nodes with nodeset nodes first + m = {n: i for i, n in enumerate(nodeset)} + if Nnot: + # add non-nodeset nodes later in the ordering + not_nodeset = G.nodes - nodeset + m.update((n, i + N) for i, n in enumerate(not_nodeset)) + + # build all_neighbor dicts for easy counting + # After Python 3.8 can leave off these keys(). Speedup also using G._pred + # nbrs = {n: G._pred[n].keys() | G._succ[n].keys() for n in G} + nbrs = {n: G.pred[n].keys() | G.succ[n].keys() for n in G} + dbl_nbrs = {n: G.pred[n].keys() & G.succ[n].keys() for n in G} + + if Nnot: + sgl_nbrs = {n: G.pred[n].keys() ^ G.succ[n].keys() for n in not_nodeset} + # find number of edges not incident to nodes in nodeset + sgl = sum(1 for n in not_nodeset for nbr in sgl_nbrs[n] if nbr not in nodeset) + sgl_edges_outside = sgl // 2 + dbl = sum(1 for n in not_nodeset for nbr in dbl_nbrs[n] if nbr not in nodeset) + dbl_edges_outside = dbl // 2 + + # Initialize the count for each triad to be zero. + census = {name: 0 for name in TRIAD_NAMES} + # Main loop over nodes + for v in nodeset: + vnbrs = nbrs[v] + dbl_vnbrs = dbl_nbrs[v] + if Nnot: + # set up counts of edges attached to v. + sgl_unbrs_bdy = sgl_unbrs_out = dbl_unbrs_bdy = dbl_unbrs_out = 0 + for u in vnbrs: + if m[u] <= m[v]: + continue + unbrs = nbrs[u] + neighbors = (vnbrs | unbrs) - {u, v} + # Count connected triads. + for w in neighbors: + if m[u] < m[w] or (m[v] < m[w] < m[u] and v not in nbrs[w]): + code = _tricode(G, v, u, w) + census[TRICODE_TO_NAME[code]] += 1 + + # Use a formula for dyadic triads with edge incident to v + if u in dbl_vnbrs: + census["102"] += N - len(neighbors) - 2 + else: + census["012"] += N - len(neighbors) - 2 + + # Count edges attached to v. Subtract later to get triads with v isolated + # _out are (u,unbr) for unbrs outside boundary of nodeset + # _bdy are (u,unbr) for unbrs on boundary of nodeset (get double counted) + if Nnot and u not in nodeset: + sgl_unbrs = sgl_nbrs[u] + sgl_unbrs_bdy += len(sgl_unbrs & vnbrs - nodeset) + sgl_unbrs_out += len(sgl_unbrs - vnbrs - nodeset) + dbl_unbrs = dbl_nbrs[u] + dbl_unbrs_bdy += len(dbl_unbrs & vnbrs - nodeset) + dbl_unbrs_out += len(dbl_unbrs - vnbrs - nodeset) + # if nodeset == G.nodes, skip this b/c we will find the edge later. + if Nnot: + # Count edges outside nodeset not connected with v (v isolated triads) + census["012"] += sgl_edges_outside - (sgl_unbrs_out + sgl_unbrs_bdy // 2) + census["102"] += dbl_edges_outside - (dbl_unbrs_out + dbl_unbrs_bdy // 2) + + # calculate null triads: "003" + # null triads = total number of possible triads - all found triads + total_triangles = (N * (N - 1) * (N - 2)) // 6 + triangles_without_nodeset = (Nnot * (Nnot - 1) * (Nnot - 2)) // 6 + total_census = total_triangles - triangles_without_nodeset + census["003"] = total_census - sum(census.values()) + + return census + + +@nx._dispatch() +def is_triad(G): + """Returns True if the graph G is a triad, else False. + + Parameters + ---------- + G : graph + A NetworkX Graph + + Returns + ------- + istriad : boolean + Whether G is a valid triad + + Examples + -------- + >>> G = nx.DiGraph([(1, 2), (2, 3), (3, 1)]) + >>> nx.is_triad(G) + True + >>> G.add_edge(0, 1) + >>> nx.is_triad(G) + False + """ + if isinstance(G, nx.Graph): + if G.order() == 3 and nx.is_directed(G): + if not any((n, n) in G.edges() for n in G.nodes()): + return True + return False + + +@not_implemented_for("undirected") +def all_triplets(G): + """Returns a generator of all possible sets of 3 nodes in a DiGraph. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + + Returns + ------- + triplets : generator of 3-tuples + Generator of tuples of 3 nodes + + Examples + -------- + >>> G = nx.DiGraph([(1, 2), (2, 3), (3, 4)]) + >>> list(nx.all_triplets(G)) + [(1, 2, 3), (1, 2, 4), (1, 3, 4), (2, 3, 4)] + + """ + triplets = combinations(G.nodes(), 3) + return triplets + + +@not_implemented_for("undirected") +def all_triads(G): + """A generator of all possible triads in G. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + + Returns + ------- + all_triads : generator of DiGraphs + Generator of triads (order-3 DiGraphs) + + Examples + -------- + >>> G = nx.DiGraph([(1, 2), (2, 3), (3, 1), (3, 4), (4, 1), (4, 2)]) + >>> for triad in nx.all_triads(G): + ... print(triad.edges) + [(1, 2), (2, 3), (3, 1)] + [(1, 2), (4, 1), (4, 2)] + [(3, 1), (3, 4), (4, 1)] + [(2, 3), (3, 4), (4, 2)] + + """ + triplets = combinations(G.nodes(), 3) + for triplet in triplets: + yield G.subgraph(triplet).copy() + + +@not_implemented_for("undirected") +def triads_by_type(G): + """Returns a list of all triads for each triad type in a directed graph. + There are exactly 16 different types of triads possible. Suppose 1, 2, 3 are three + nodes, they will be classified as a particular triad type if their connections + are as follows: + + - 003: 1, 2, 3 + - 012: 1 -> 2, 3 + - 102: 1 <-> 2, 3 + - 021D: 1 <- 2 -> 3 + - 021U: 1 -> 2 <- 3 + - 021C: 1 -> 2 -> 3 + - 111D: 1 <-> 2 <- 3 + - 111U: 1 <-> 2 -> 3 + - 030T: 1 -> 2 -> 3, 1 -> 3 + - 030C: 1 <- 2 <- 3, 1 -> 3 + - 201: 1 <-> 2 <-> 3 + - 120D: 1 <- 2 -> 3, 1 <-> 3 + - 120U: 1 -> 2 <- 3, 1 <-> 3 + - 120C: 1 -> 2 -> 3, 1 <-> 3 + - 210: 1 -> 2 <-> 3, 1 <-> 3 + - 300: 1 <-> 2 <-> 3, 1 <-> 3 + + Refer to the :doc:`example gallery ` + for visual examples of the triad types. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + + Returns + ------- + tri_by_type : dict + Dictionary with triad types as keys and lists of triads as values. + + Examples + -------- + >>> G = nx.DiGraph([(1, 2), (1, 3), (2, 3), (3, 1), (5, 6), (5, 4), (6, 7)]) + >>> dict = nx.triads_by_type(G) + >>> dict['120C'][0].edges() + OutEdgeView([(1, 2), (1, 3), (2, 3), (3, 1)]) + >>> dict['012'][0].edges() + OutEdgeView([(1, 2)]) + + References + ---------- + .. [1] Snijders, T. (2012). "Transitivity and triads." University of + Oxford. + https://web.archive.org/web/20170830032057/http://www.stats.ox.ac.uk/~snijders/Trans_Triads_ha.pdf + """ + # num_triads = o * (o - 1) * (o - 2) // 6 + # if num_triads > TRIAD_LIMIT: print(WARNING) + all_tri = all_triads(G) + tri_by_type = defaultdict(list) + for triad in all_tri: + name = triad_type(triad) + tri_by_type[name].append(triad) + return tri_by_type + + +@not_implemented_for("undirected") +def triad_type(G): + """Returns the sociological triad type for a triad. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph with 3 nodes + + Returns + ------- + triad_type : str + A string identifying the triad type + + Examples + -------- + >>> G = nx.DiGraph([(1, 2), (2, 3), (3, 1)]) + >>> nx.triad_type(G) + '030C' + >>> G.add_edge(1, 3) + >>> nx.triad_type(G) + '120C' + + Notes + ----- + There can be 6 unique edges in a triad (order-3 DiGraph) (so 2^^6=64 unique + triads given 3 nodes). These 64 triads each display exactly 1 of 16 + topologies of triads (topologies can be permuted). These topologies are + identified by the following notation: + + {m}{a}{n}{type} (for example: 111D, 210, 102) + + Here: + + {m} = number of mutual ties (takes 0, 1, 2, 3); a mutual tie is (0,1) + AND (1,0) + {a} = number of asymmetric ties (takes 0, 1, 2, 3); an asymmetric tie + is (0,1) BUT NOT (1,0) or vice versa + {n} = number of null ties (takes 0, 1, 2, 3); a null tie is NEITHER + (0,1) NOR (1,0) + {type} = a letter (takes U, D, C, T) corresponding to up, down, cyclical + and transitive. This is only used for topologies that can have + more than one form (eg: 021D and 021U). + + References + ---------- + .. [1] Snijders, T. (2012). "Transitivity and triads." University of + Oxford. + https://web.archive.org/web/20170830032057/http://www.stats.ox.ac.uk/~snijders/Trans_Triads_ha.pdf + """ + if not is_triad(G): + raise nx.NetworkXAlgorithmError("G is not a triad (order-3 DiGraph)") + num_edges = len(G.edges()) + if num_edges == 0: + return "003" + elif num_edges == 1: + return "012" + elif num_edges == 2: + e1, e2 = G.edges() + if set(e1) == set(e2): + return "102" + elif e1[0] == e2[0]: + return "021D" + elif e1[1] == e2[1]: + return "021U" + elif e1[1] == e2[0] or e2[1] == e1[0]: + return "021C" + elif num_edges == 3: + for e1, e2, e3 in permutations(G.edges(), 3): + if set(e1) == set(e2): + if e3[0] in e1: + return "111U" + # e3[1] in e1: + return "111D" + elif set(e1).symmetric_difference(set(e2)) == set(e3): + if {e1[0], e2[0], e3[0]} == {e1[0], e2[0], e3[0]} == set(G.nodes()): + return "030C" + # e3 == (e1[0], e2[1]) and e2 == (e1[1], e3[1]): + return "030T" + elif num_edges == 4: + for e1, e2, e3, e4 in permutations(G.edges(), 4): + if set(e1) == set(e2): + # identify pair of symmetric edges (which necessarily exists) + if set(e3) == set(e4): + return "201" + if {e3[0]} == {e4[0]} == set(e3).intersection(set(e4)): + return "120D" + if {e3[1]} == {e4[1]} == set(e3).intersection(set(e4)): + return "120U" + if e3[1] == e4[0]: + return "120C" + elif num_edges == 5: + return "210" + elif num_edges == 6: + return "300" + + +@not_implemented_for("undirected") +@py_random_state(1) +def random_triad(G, seed=None): + """Returns a random triad from a directed graph. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + Returns + ------- + G2 : subgraph + A randomly selected triad (order-3 NetworkX DiGraph) + + Examples + -------- + >>> G = nx.DiGraph([(1, 2), (1, 3), (2, 3), (3, 1), (5, 6), (5, 4), (6, 7)]) + >>> triad = nx.random_triad(G, seed=1) + >>> triad.edges + OutEdgeView([(1, 2)]) + + """ + nodes = seed.sample(list(G.nodes()), 3) + G2 = G.subgraph(nodes) + return G2 + + +""" +@not_implemented_for('undirected') +def triadic_closures(G): + '''Returns a list of order-3 subgraphs of G that are triadic closures. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + + Returns + ------- + closures : list + List of triads of G that are triadic closures + ''' + pass + + +@not_implemented_for('undirected') +def focal_closures(G, attr_name): + '''Returns a list of order-3 subgraphs of G that are focally closed. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + attr_name : str + An attribute name + + + Returns + ------- + closures : list + List of triads of G that are focally closed on attr_name + ''' + pass + + +@not_implemented_for('undirected') +def balanced_triads(G, crit_func): + '''Returns a list of order-3 subgraphs of G that are stable. + + Parameters + ---------- + G : digraph + A NetworkX DiGraph + crit_func : function + A function that determines if a triad (order-3 digraph) is stable + + Returns + ------- + triads : list + List of triads in G that are stable + ''' + pass +""" diff --git a/shared/package-files/e8/e8827413261a5c3c19ba98e053abe79c46eb45097b7be439d483a45d132dc728/blob b/shared/package-files/e8/e8827413261a5c3c19ba98e053abe79c46eb45097b7be439d483a45d132dc728/blob new file mode 100644 index 0000000000000000000000000000000000000000..2455fb1cf588544349f51eb64480f74f718ff256 --- /dev/null +++ b/shared/package-files/e8/e8827413261a5c3c19ba98e053abe79c46eb45097b7be439d483a45d132dc728/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor special_modified_bessel_k1(const at::Tensor & self); +TORCH_API at::Tensor & special_modified_bessel_k1_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & special_modified_bessel_k1_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/e8/e882f7796decd9abd711e184fe8256dccc60e87937dfcedebae15e9017876340/blob b/shared/package-files/e8/e882f7796decd9abd711e184fe8256dccc60e87937dfcedebae15e9017876340/blob new file mode 100644 index 0000000000000000000000000000000000000000..99f4b4aeb43e25840eafef85e24f0775d1f6c729 --- /dev/null +++ b/shared/package-files/e8/e882f7796decd9abd711e184fe8256dccc60e87937dfcedebae15e9017876340/blob @@ -0,0 +1,3 @@ +from typing import Any, Optional + +def deconstructible(*args: Any, path: Optional[Any] = ...) -> Any: ... diff --git a/shared/package-files/e8/e88430bed4f5d81cf5a538aa16ea15c4d63ee15892ed9ad81e8e673d6c3328fc/blob b/shared/package-files/e8/e88430bed4f5d81cf5a538aa16ea15c4d63ee15892ed9ad81e8e673d6c3328fc/blob new file mode 100644 index 0000000000000000000000000000000000000000..c93a58eee8b32f672fd3a96ca3e6ada5b0a0e168 Binary files /dev/null and b/shared/package-files/e8/e88430bed4f5d81cf5a538aa16ea15c4d63ee15892ed9ad81e8e673d6c3328fc/blob differ diff --git a/shared/package-files/e8/e8874a494670fafaeb5a9feb14039cefcf65ee03ba10b93d2bacabf491971c39/blob b/shared/package-files/e8/e8874a494670fafaeb5a9feb14039cefcf65ee03ba10b93d2bacabf491971c39/blob new file mode 100644 index 0000000000000000000000000000000000000000..5ef7765519de974225cdd42726287c3b1cc741bc --- /dev/null +++ b/shared/package-files/e8/e8874a494670fafaeb5a9feb14039cefcf65ee03ba10b93d2bacabf491971c39/blob @@ -0,0 +1,353 @@ +#pragma once + +#include + +// The includes of HIPGuard.h +#include +#include +#include +#include +#include +#include + +#include + +#include +#include + +// Use of c10::hip namespace here makes hipification easier, because +// I don't have to also fix namespaces. Sorry! +namespace c10 { namespace hip { + +// Note [Masquerading as CUDA] +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// c10_hip is very easy to understand: it is HIPified from c10_cuda, +// and anywhere you said CUDA, the source code now says HIP. HIPified +// PyTorch is much harder to understand: it is HIPified from regular +// PyTorch, yes, but NO source-to-source translation from CUDA to +// HIP occurs; instead, anywhere we see "CUDA", it actually means "HIP". +// For example, when you use HIPified PyTorch, you say x.cuda() to +// move a tensor onto ROCm device. We call this situation "HIP +// masquerading as CUDA". +// +// This leads to a very awkward situation when we want to call c10_hip +// code from PyTorch, since c10_hip is expecting things to be called +// HIP, but PyTorch is calling them CUDA (masquerading as HIP). To +// fix this impedance mismatch, we have MasqueradingAsCUDA variants +// for all c10_hip classes. These translate between the "HIP" and "CUDA +// masquerading as HIP" worlds. For example, +// HIPGuardImplMasqueradingAsCUDA (this file) provides something like a +// HIPGuardImpl, but it reports its DeviceType as CUDA (e.g., type() +// returns CUDA, getDevice() reports the current HIP device as a CUDA +// device.) +// +// We should be able to delete all of these classes entirely once +// we switch PyTorch to calling a HIP a HIP. +// +// When you add a new MasqueradingAsCUDA class/function, you need to +// also update the rewrite rules in torch/utils/hipify/cuda_to_hip_mappings.py +// +// +// +// By the way, note that the cpp file associated with this also +// *overwrites* the entry in the DeviceGuardImpl registry for CUDA with +// this HIP implementation. + +struct HIPGuardImplMasqueradingAsCUDA final : public c10::impl::DeviceGuardImplInterface { + static constexpr c10::DeviceType static_type = c10::DeviceType::CUDA; + HIPGuardImplMasqueradingAsCUDA() {} + HIPGuardImplMasqueradingAsCUDA(c10::DeviceType t) { + TORCH_INTERNAL_ASSERT(t == c10::DeviceType::CUDA); + } + c10::DeviceType type() const override { + return c10::DeviceType::CUDA; + } + Device exchangeDevice(Device d) const override { + TORCH_INTERNAL_ASSERT(d.is_cuda()); + Device old_device = getDevice(); + if (old_device.index() != d.index()) { + C10_HIP_CHECK(hipSetDevice(d.index())); + } + return old_device; + } + Device getDevice() const override { + int device; + C10_HIP_CHECK(hipGetDevice(&device)); + return Device(c10::DeviceType::CUDA, device); + } + void setDevice(Device d) const override { + TORCH_INTERNAL_ASSERT(d.is_cuda()); + C10_HIP_CHECK(hipSetDevice(d.index())); + } + void uncheckedSetDevice(Device d) const noexcept override { + C10_HIP_CHECK_WARN(hipSetDevice(d.index())); + } + Stream getStream(Device d) const noexcept override { + return getCurrentHIPStreamMasqueradingAsCUDA(d.index()).unwrap(); + } + Stream getDefaultStream(Device d) const override { + return getDefaultHIPStreamMasqueradingAsCUDA(d.index()); + } + Stream getStreamFromGlobalPool(Device d, bool isHighPriority = false) const override { + return getStreamFromPoolMasqueradingAsCUDA(isHighPriority, d.index()); + } + Stream exchangeStream(Stream s) const noexcept override { + HIPStreamMasqueradingAsCUDA cs(s); + auto old_stream = getCurrentHIPStreamMasqueradingAsCUDA(s.device().index()); + setCurrentHIPStreamMasqueradingAsCUDA(cs); + return old_stream.unwrap(); + } + DeviceIndex deviceCount() const noexcept override { + int deviceCnt; + hipError_t _err; + _err = hipGetDeviceCount(&deviceCnt); +#if defined(USE_ROCM) && (ROCM_VERSION < 50201) + if(_err == hipErrorInvalidDevice) + return 0; +#endif + if(_err != hipErrorNoDevice && _err != hipSuccess) + C10_HIP_CHECK(_err); + return deviceCnt; + } + + // Event-related functions + // Note: hipEventCreateWithFlags should be called on the same device as + // the recording stream's device. + void createEvent( + hipEvent_t* hip_event, + const EventFlag flag) const { + // Maps PyTorch's Event::Flag to HIP flag + auto hip_flag = hipEventDefault; + switch (flag) { + case EventFlag::PYTORCH_DEFAULT: + case EventFlag::HIP_EVENT_DISABLE_TIMING: + hip_flag = hipEventDisableTiming; + break; + case EventFlag::BACKEND_DEFAULT: + case EventFlag::HIP_EVENT_DEFAULT: + hip_flag = hipEventDefault; + break; + default: + TORCH_CHECK(false, "HIP event received unknown flag"); + } + + C10_HIP_CHECK(hipEventCreateWithFlags(hip_event, hip_flag)); + } + + void destroyEvent( + void* event, + const DeviceIndex device_index) const noexcept override { + if (!event) return; + auto hip_event = static_cast(event); + int orig_device; + C10_HIP_CHECK_WARN(hipGetDevice(&orig_device)); + C10_HIP_CHECK_WARN(hipSetDevice(device_index)); + C10_HIP_CHECK_WARN(hipEventDestroy(hip_event)); + C10_HIP_CHECK_WARN(hipSetDevice(orig_device)); + } + + void record(void** event, + const Stream& stream, + const DeviceIndex device_index, + const EventFlag flag) const override { + TORCH_CHECK(device_index == -1 || device_index == stream.device_index(), + "Event device index ", + device_index, + " does not match recording stream's device index ", + stream.device_index(), + "."); + + hipEvent_t hip_event = static_cast(*event); + HIPStreamMasqueradingAsCUDA hip_stream{stream}; + + // Moves to stream's device to record + const auto orig_device = getDevice(); + setDevice(stream.device()); + + // Creates the event (lazily) + if (!hip_event) createEvent(&hip_event, flag); + C10_HIP_CHECK(hipEventRecord(hip_event, hip_stream)); + // Makes the void* point to the (possibly just allocated) HIP event + *event = hip_event; + + // Resets device + setDevice(orig_device); + } + + void block( + void* event, + const Stream& stream) const override { + if (!event) return; + hipEvent_t hip_event = static_cast(event); + HIPStreamMasqueradingAsCUDA hip_stream{stream}; + const auto orig_device = getDevice(); + setDevice(stream.device()); + C10_HIP_CHECK(hipStreamWaitEvent( + hip_stream, + hip_event, + /*flags (must be zero)=*/ 0)); + setDevice(orig_device); + } + + bool queryEvent(void* event) const override { + if (!event) return true; + hipEvent_t hip_event = static_cast(event); + const hipError_t err = hipEventQuery(hip_event); + if (err != hipErrorNotReady) C10_HIP_CHECK(err); + else { + // ignore and clear the error if not ready + (void)hipGetLastError(); + } + return (err == hipSuccess); + } + + // Stream-related functions + bool queryStream(const Stream& stream) const override { + HIPStreamMasqueradingAsCUDA hip_stream{stream}; + return hip_stream.query(); + } + + void synchronizeStream(const Stream& stream) const override { + HIPStreamMasqueradingAsCUDA hip_stream{stream}; + hip_stream.synchronize(); + } + + void recordDataPtrOnStream( + const c10::DataPtr& data_ptr, + const Stream& stream) const override { + HIPStreamMasqueradingAsCUDA hip_stream{stream}; + HIPCachingAllocatorMasqueradingAsCUDA::recordStreamMasqueradingAsCUDA(data_ptr, hip_stream); + } +}; + +// All of the guards which have HIPGuardImpl burned in need to also have +// variants using HIPGuardImplMasqueradingAsCUDA. + +/// This code is all a direct copy from c10/cuda/HIPGuardMasqueradingAsCUDA.h, but with +/// the correct InlineDeviceGuard burned in. Sorry about the +/// copy-pasting. + +struct HIPGuardMasqueradingAsCUDA { + explicit HIPGuardMasqueradingAsCUDA() = delete; + explicit HIPGuardMasqueradingAsCUDA(DeviceIndex device_index) : guard_(device_index) {} + explicit HIPGuardMasqueradingAsCUDA(Device device) : guard_(device) {} + + HIPGuardMasqueradingAsCUDA(const HIPGuardMasqueradingAsCUDA&) = delete; + HIPGuardMasqueradingAsCUDA& operator=(const HIPGuardMasqueradingAsCUDA&) = delete; + HIPGuardMasqueradingAsCUDA(HIPGuardMasqueradingAsCUDA&& other) = delete; + HIPGuardMasqueradingAsCUDA& operator=(HIPGuardMasqueradingAsCUDA&& other) = delete; + + void set_device(Device device) { guard_.set_device(device); } + void reset_device(Device device) { guard_.reset_device(device); } + void set_index(DeviceIndex device_index) { guard_.set_index(device_index); } + Device original_device() const { return guard_.original_device(); } + Device current_device() const { return guard_.current_device(); } + + private: + c10::impl::InlineDeviceGuard guard_; +}; + +struct OptionalHIPGuardMasqueradingAsCUDA { + explicit OptionalHIPGuardMasqueradingAsCUDA() : guard_() {} + explicit OptionalHIPGuardMasqueradingAsCUDA(optional device_opt) : guard_(device_opt) {} + explicit OptionalHIPGuardMasqueradingAsCUDA(optional device_index_opt) : guard_(device_index_opt) {} + + OptionalHIPGuardMasqueradingAsCUDA(const OptionalHIPGuardMasqueradingAsCUDA&) = delete; + OptionalHIPGuardMasqueradingAsCUDA& operator=(const OptionalHIPGuardMasqueradingAsCUDA&) = delete; + OptionalHIPGuardMasqueradingAsCUDA(OptionalHIPGuardMasqueradingAsCUDA&& other) = delete; + OptionalHIPGuardMasqueradingAsCUDA& operator=(OptionalHIPGuardMasqueradingAsCUDA&& other) = delete; + + void set_device(Device device) { guard_.set_device(device); } + void reset_device(Device device) { guard_.reset_device(device); } + void set_index(DeviceIndex device_index) { guard_.set_index(device_index); } + optional original_device() const { return guard_.original_device(); } + optional current_device() const { return guard_.current_device(); } + void reset() { guard_.reset(); } + +private: + c10::impl::InlineOptionalDeviceGuard guard_; +}; + +struct HIPStreamGuardMasqueradingAsCUDA { + explicit HIPStreamGuardMasqueradingAsCUDA() = delete; + explicit HIPStreamGuardMasqueradingAsCUDA(Stream stream) : guard_(stream) {} + HIPStreamGuardMasqueradingAsCUDA(const HIPStreamGuardMasqueradingAsCUDA&) = delete; + HIPStreamGuardMasqueradingAsCUDA& operator=(const HIPStreamGuardMasqueradingAsCUDA&) = delete; + HIPStreamGuardMasqueradingAsCUDA(HIPStreamGuardMasqueradingAsCUDA&& other) = delete; + HIPStreamGuardMasqueradingAsCUDA& operator=(HIPStreamGuardMasqueradingAsCUDA&& other) = delete; + + void reset_stream(Stream stream) { guard_.reset_stream(stream); } + + HIPStreamMasqueradingAsCUDA original_stream() const { + return HIPStreamMasqueradingAsCUDA(HIPStreamMasqueradingAsCUDA::UNCHECKED, guard_.original_stream()); + } + HIPStreamMasqueradingAsCUDA current_stream() const { + return HIPStreamMasqueradingAsCUDA(HIPStreamMasqueradingAsCUDA::UNCHECKED, guard_.current_stream()); + } + + Device current_device() const { return guard_.current_device(); } + Device original_device() const { return guard_.original_device(); } + +private: + c10::impl::InlineStreamGuard guard_; +}; + +struct OptionalHIPStreamGuardMasqueradingAsCUDA { + explicit OptionalHIPStreamGuardMasqueradingAsCUDA() : guard_() {} + explicit OptionalHIPStreamGuardMasqueradingAsCUDA(Stream stream) : guard_(stream) {} + explicit OptionalHIPStreamGuardMasqueradingAsCUDA(optional stream_opt) : guard_(stream_opt) {} + + OptionalHIPStreamGuardMasqueradingAsCUDA(const OptionalHIPStreamGuardMasqueradingAsCUDA&) = delete; + OptionalHIPStreamGuardMasqueradingAsCUDA& operator=(const OptionalHIPStreamGuardMasqueradingAsCUDA&) = delete; + OptionalHIPStreamGuardMasqueradingAsCUDA(OptionalHIPStreamGuardMasqueradingAsCUDA&& other) = delete; + OptionalHIPStreamGuardMasqueradingAsCUDA& operator=(OptionalHIPStreamGuardMasqueradingAsCUDA&& other) = delete; + + void reset_stream(Stream stream) { guard_.reset_stream(stream); } + + optional original_stream() const { + auto r = guard_.original_stream(); + if (r.has_value()) { + return make_optional(HIPStreamMasqueradingAsCUDA(HIPStreamMasqueradingAsCUDA::UNCHECKED, r.value())); + } else { + return nullopt; + } + } + + optional current_stream() const { + auto r = guard_.current_stream(); + if (r.has_value()) { + return make_optional(HIPStreamMasqueradingAsCUDA(HIPStreamMasqueradingAsCUDA::UNCHECKED, r.value())); + } else { + return nullopt; + } + } + + void reset() { guard_.reset(); } + +private: + c10::impl::InlineOptionalStreamGuard guard_; +}; + +struct HIPMultiStreamGuardMasqueradingAsCUDA { + explicit HIPMultiStreamGuardMasqueradingAsCUDA(ArrayRef streams) + : guard_(unwrapStreams(streams)) {} + + HIPMultiStreamGuardMasqueradingAsCUDA(const HIPMultiStreamGuardMasqueradingAsCUDA&) = delete; + HIPMultiStreamGuardMasqueradingAsCUDA& operator=(const HIPMultiStreamGuardMasqueradingAsCUDA&) = delete; + HIPMultiStreamGuardMasqueradingAsCUDA(HIPMultiStreamGuardMasqueradingAsCUDA&& other) = delete; + HIPMultiStreamGuardMasqueradingAsCUDA& operator=(HIPMultiStreamGuardMasqueradingAsCUDA&& other) = delete; + +private: + c10::impl::InlineMultiStreamGuard guard_; + + static std::vector unwrapStreams(ArrayRef hipStreams) { + std::vector streams; + streams.reserve(hipStreams.size()); + for (const HIPStreamMasqueradingAsCUDA& hipStream : hipStreams) { + streams.push_back(hipStream); + } + return streams; + } +}; + +}} // namespace c10::hip diff --git a/shared/package-files/e8/e888ff1a663dc27cce868b8bfa248caefaa836718b7aa57409663cbc7170bc6e/blob b/shared/package-files/e8/e888ff1a663dc27cce868b8bfa248caefaa836718b7aa57409663cbc7170bc6e/blob new file mode 100644 index 0000000000000000000000000000000000000000..6ac2f5864375234d34dfd9bffbefb1d49c667ad0 --- /dev/null +++ b/shared/package-files/e8/e888ff1a663dc27cce868b8bfa248caefaa836718b7aa57409663cbc7170bc6e/blob @@ -0,0 +1,1274 @@ +from collections import defaultdict +import copy +import sys +from itertools import permutations, takewhile +from contextlib import contextmanager +from functools import cached_property + +from llvmlite import ir as llvmir +from llvmlite.ir import Constant +import llvmlite.binding as ll + +from numba.core import types, utils, datamodel, debuginfo, funcdesc, config, cgutils, imputils +from numba.core import event, errors, targetconfig +from numba import _dynfunc, _helperlib +from numba.core.compiler_lock import global_compiler_lock +from numba.core.pythonapi import PythonAPI +from numba.core.imputils import (user_function, user_generator, + builtin_registry, impl_ret_borrowed, + RegistryLoader) +from numba.cpython import builtins + +GENERIC_POINTER = llvmir.PointerType(llvmir.IntType(8)) +PYOBJECT = GENERIC_POINTER +void_ptr = GENERIC_POINTER + + +class OverloadSelector(object): + """ + An object matching an actual signature against a registry of formal + signatures and choosing the best candidate, if any. + + In the current implementation: + - a "signature" is a tuple of type classes or type instances + - the "best candidate" is the most specific match + """ + + def __init__(self): + # A list of (formal args tuple, value) + self.versions = [] + self._cache = {} + + def find(self, sig): + out = self._cache.get(sig) + if out is None: + out = self._find(sig) + self._cache[sig] = out + return out + + def _find(self, sig): + candidates = self._select_compatible(sig) + if candidates: + return candidates[self._best_signature(candidates)] + else: + raise errors.NumbaNotImplementedError(f'{self}, {sig}') + + def _select_compatible(self, sig): + """ + Select all compatible signatures and their implementation. + """ + out = {} + for ver_sig, impl in self.versions: + if self._match_arglist(ver_sig, sig): + out[ver_sig] = impl + return out + + def _best_signature(self, candidates): + """ + Returns the best signature out of the candidates + """ + ordered, genericity = self._sort_signatures(candidates) + # check for ambiguous signatures + if len(ordered) > 1: + firstscore = genericity[ordered[0]] + same = list(takewhile(lambda x: genericity[x] == firstscore, + ordered)) + if len(same) > 1: + msg = ["{n} ambiguous signatures".format(n=len(same))] + for sig in same: + msg += ["{0} => {1}".format(sig, candidates[sig])] + raise errors.NumbaTypeError('\n'.join(msg)) + return ordered[0] + + def _sort_signatures(self, candidates): + """ + Sort signatures in ascending level of genericity. + + Returns a 2-tuple: + + * ordered list of signatures + * dictionary containing genericity scores + """ + # score by genericity + genericity = defaultdict(int) + for this, other in permutations(candidates.keys(), r=2): + matched = self._match_arglist(formal_args=this, actual_args=other) + if matched: + # genericity score +1 for every another compatible signature + genericity[this] += 1 + # order candidates in ascending level of genericity + ordered = sorted(candidates.keys(), key=lambda x: genericity[x]) + return ordered, genericity + + def _match_arglist(self, formal_args, actual_args): + """ + Returns True if the signature is "matching". + A formal signature is "matching" if the actual signature matches exactly + or if the formal signature is a compatible generic signature. + """ + # normalize VarArg + if formal_args and isinstance(formal_args[-1], types.VarArg): + ndiff = len(actual_args) - len(formal_args) + 1 + formal_args = formal_args[:-1] + (formal_args[-1].dtype,) * ndiff + + if len(formal_args) != len(actual_args): + return False + + for formal, actual in zip(formal_args, actual_args): + if not self._match(formal, actual): + return False + + return True + + def _match(self, formal, actual): + if formal == actual: + # formal argument matches actual arguments + return True + elif types.Any == formal: + # formal argument is any + return True + elif isinstance(formal, type) and issubclass(formal, types.Type): + if isinstance(actual, type) and issubclass(actual, formal): + # formal arg is a type class and actual arg is a subclass + return True + elif isinstance(actual, formal): + # formal arg is a type class of which actual arg is an instance + return True + + def append(self, value, sig): + """ + Add a formal signature and its associated value. + """ + assert isinstance(sig, tuple), (value, sig) + self.versions.append((sig, value)) + self._cache.clear() + + +@utils.runonce +def _load_global_helpers(): + """ + Execute once to install special symbols into the LLVM symbol table. + """ + # This is Py_None's real C name + ll.add_symbol("_Py_NoneStruct", id(None)) + + # Add Numba C helper functions + for c_helpers in (_helperlib.c_helpers, _dynfunc.c_helpers): + for py_name, c_address in c_helpers.items(): + c_name = "numba_" + py_name + ll.add_symbol(c_name, c_address) + + # Add all built-in exception classes + for obj in utils.builtins.__dict__.values(): + if isinstance(obj, type) and issubclass(obj, BaseException): + ll.add_symbol("PyExc_%s" % (obj.__name__), id(obj)) + + +class BaseContext(object): + """ + + Notes on Structure + ------------------ + + Most objects are lowered as plain-old-data structure in the generated + llvm. They are passed around by reference (a pointer to the structure). + Only POD structure can live across function boundaries by copying the + data. + """ + # True if the target requires strict alignment + # Causes exception to be raised if the record members are not aligned. + strict_alignment = False + + # Force powi implementation as math.pow call + implement_powi_as_math_call = False + implement_pow_as_math_call = False + + # Emit Debug info + enable_debuginfo = False + DIBuilder = debuginfo.DIBuilder + + # Bound checking + @property + def enable_boundscheck(self): + if config.BOUNDSCHECK is not None: + return config.BOUNDSCHECK + return self._boundscheck + + @enable_boundscheck.setter + def enable_boundscheck(self, value): + self._boundscheck = value + + # NRT + enable_nrt = False + + # Auto parallelization + auto_parallel = False + + # PYCC + aot_mode = False + + # Error model for various operations (only FP exceptions currently) + error_model = None + + # Whether dynamic globals (CPU runtime addresses) is allowed + allow_dynamic_globals = False + + # Fast math flags + fastmath = False + + # python execution environment + environment = None + + # the function descriptor + fndesc = None + + def __init__(self, typing_context, target): + _load_global_helpers() + + self.address_size = utils.MACHINE_BITS + self.typing_context = typing_context + from numba.core.target_extension import target_registry + self.target_name = target + self.target = target_registry[target] + + # A mapping of installed registries to their loaders + self._registries = {} + # Declarations loaded from registries and other sources + self._defns = defaultdict(OverloadSelector) + self._getattrs = defaultdict(OverloadSelector) + self._setattrs = defaultdict(OverloadSelector) + self._casts = OverloadSelector() + self._get_constants = OverloadSelector() + # Other declarations + self._generators = {} + self.special_ops = {} + self.cached_internal_func = {} + self._pid = None + self._codelib_stack = [] + + self._boundscheck = False + + self.data_model_manager = datamodel.default_manager + + # Initialize + self.init() + + def init(self): + """ + For subclasses to add initializer + """ + + def refresh(self): + """ + Refresh context with new declarations from known registries. + Useful for third-party extensions. + """ + # load target specific registries + self.load_additional_registries() + + # Populate the builtin registry, this has to happen after loading + # additional registries as some of the "additional" registries write + # their implementations into the builtin_registry and would be missed if + # this ran first. + self.install_registry(builtin_registry) + + # Also refresh typing context, since @overload declarations can + # affect it. + self.typing_context.refresh() + + def load_additional_registries(self): + """ + Load target-specific registries. Can be overridden by subclasses. + """ + + def mangler(self, name, types, *, abi_tags=(), uid=None): + """ + Perform name mangling. + """ + return funcdesc.default_mangler(name, types, abi_tags=abi_tags, uid=uid) + + def get_env_name(self, fndesc): + """Get the environment name given a FunctionDescriptor. + + Use this instead of the ``fndesc.env_name`` so that the target-context + can provide necessary mangling of the symbol to meet ABI requirements. + """ + return fndesc.env_name + + def declare_env_global(self, module, envname): + """Declare the Environment pointer as a global of the module. + + The pointer is initialized to NULL. It must be filled by the runtime + with the actual address of the Env before the associated function + can be executed. + + Parameters + ---------- + module : + The LLVM Module + envname : str + The name of the global variable. + """ + if envname not in module.globals: + gv = llvmir.GlobalVariable(module, cgutils.voidptr_t, name=envname) + gv.linkage = 'common' + gv.initializer = cgutils.get_null_value(gv.type.pointee) + + return module.globals[envname] + + def get_arg_packer(self, fe_args): + return datamodel.ArgPacker(self.data_model_manager, fe_args) + + def get_data_packer(self, fe_types): + return datamodel.DataPacker(self.data_model_manager, fe_types) + + @property + def target_data(self): + raise NotImplementedError + + @cached_property + def nonconst_module_attrs(self): + """ + All module attrs are constant for targets using BaseContext. + """ + return tuple() + + @cached_property + def nrt(self): + from numba.core.runtime.context import NRTContext + return NRTContext(self, self.enable_nrt) + + def subtarget(self, **kws): + obj = copy.copy(self) # shallow copy + for k, v in kws.items(): + if not hasattr(obj, k): + raise NameError("unknown option {0!r}".format(k)) + setattr(obj, k, v) + if obj.codegen() is not self.codegen(): + # We can't share functions across different codegens + obj.cached_internal_func = {} + return obj + + def install_registry(self, registry): + """ + Install a *registry* (a imputils.Registry instance) of function + and attribute implementations. + """ + try: + loader = self._registries[registry] + except KeyError: + loader = RegistryLoader(registry) + self._registries[registry] = loader + self.insert_func_defn(loader.new_registrations('functions')) + self._insert_getattr_defn(loader.new_registrations('getattrs')) + self._insert_setattr_defn(loader.new_registrations('setattrs')) + self._insert_cast_defn(loader.new_registrations('casts')) + self._insert_get_constant_defn(loader.new_registrations('constants')) + + def insert_func_defn(self, defns): + for impl, func, sig in defns: + self._defns[func].append(impl, sig) + + def _insert_getattr_defn(self, defns): + for impl, attr, sig in defns: + self._getattrs[attr].append(impl, sig) + + def _insert_setattr_defn(self, defns): + for impl, attr, sig in defns: + self._setattrs[attr].append(impl, sig) + + def _insert_cast_defn(self, defns): + for impl, sig in defns: + self._casts.append(impl, sig) + + def _insert_get_constant_defn(self, defns): + for impl, sig in defns: + self._get_constants.append(impl, sig) + + def insert_user_function(self, func, fndesc, libs=()): + impl = user_function(fndesc, libs) + self._defns[func].append(impl, impl.signature) + + def insert_generator(self, genty, gendesc, libs=()): + assert isinstance(genty, types.Generator) + impl = user_generator(gendesc, libs) + self._generators[genty] = gendesc, impl + + def remove_user_function(self, func): + """ + Remove user function *func*. + KeyError is raised if the function isn't known to us. + """ + del self._defns[func] + + def get_external_function_type(self, fndesc): + argtypes = [self.get_argument_type(aty) + for aty in fndesc.argtypes] + # don't wrap in pointer + restype = self.get_argument_type(fndesc.restype) + fnty = llvmir.FunctionType(restype, argtypes) + return fnty + + def declare_function(self, module, fndesc): + fnty = self.call_conv.get_function_type(fndesc.restype, fndesc.argtypes) + fn = cgutils.get_or_insert_function(module, fnty, fndesc.mangled_name) + self.apply_target_attributes(fn, fndesc.argtypes, fndesc.restype) + self.call_conv.decorate_function(fn, fndesc.args, fndesc.argtypes, noalias=fndesc.noalias) + if fndesc.inline: + fn.attributes.add('alwaysinline') + # alwaysinline overrides optnone + fn.attributes.discard('noinline') + fn.attributes.discard('optnone') + return fn + + # Define the hook as a no-op so other contexts (like GPU) don't break + def apply_target_attributes(self, llvm_func, argtypes=None, restype=None): + """ + Hook for subclasses to apply target-specific attributes (e.g. signext). + """ + pass + + def declare_external_function(self, module, fndesc): + fnty = self.get_external_function_type(fndesc) + fn = cgutils.get_or_insert_function(module, fnty, fndesc.mangled_name) + assert fn.is_declaration + for ak, av in zip(fndesc.args, fn.args): + av.name = "arg.%s" % ak + return fn + + def insert_const_string(self, mod, string): + """ + Insert constant *string* (a str object) into module *mod*. + """ + stringtype = GENERIC_POINTER + name = ".const.%s" % string + text = cgutils.make_bytearray(string.encode("utf-8") + b"\x00") + gv = self.insert_unique_const(mod, name, text) + return Constant.bitcast(gv, stringtype) + + def insert_const_bytes(self, mod, bytes, name=None): + """ + Insert constant *byte* (a `bytes` object) into module *mod*. + """ + stringtype = GENERIC_POINTER + name = ".bytes.%s" % (name or hash(bytes)) + text = cgutils.make_bytearray(bytes) + gv = self.insert_unique_const(mod, name, text) + return Constant.bitcast(gv, stringtype) + + def insert_unique_const(self, mod, name, val): + """ + Insert a unique internal constant named *name*, with LLVM value + *val*, into module *mod*. + """ + try: + gv = mod.get_global(name) + except KeyError: + return cgutils.global_constant(mod, name, val) + else: + return gv + + def get_argument_type(self, ty): + return self.data_model_manager[ty].get_argument_type() + + def get_return_type(self, ty): + return self.data_model_manager[ty].get_return_type() + + def get_data_type(self, ty): + """ + Get a LLVM data representation of the Numba type *ty* that is safe + for storage. Record data are stored as byte array. + + The return value is a llvmlite.ir.Type object, or None if the type + is an opaque pointer (???). + """ + return self.data_model_manager[ty].get_data_type() + + def get_value_type(self, ty): + return self.data_model_manager[ty].get_value_type() + + def pack_value(self, builder, ty, value, ptr, align=None): + """ + Pack value into the array storage at *ptr*. + If *align* is given, it is the guaranteed alignment for *ptr* + (by default, the standard ABI alignment). + """ + dataval = self.data_model_manager[ty].as_data(builder, value) + builder.store(dataval, ptr, align=align) + + def unpack_value(self, builder, ty, ptr, align=None): + """ + Unpack value from the array storage at *ptr*. + If *align* is given, it is the guaranteed alignment for *ptr* + (by default, the standard ABI alignment). + """ + dm = self.data_model_manager[ty] + return dm.load_from_data_pointer(builder, ptr, align) + + def get_constant_generic(self, builder, ty, val): + """ + Return a LLVM constant representing value *val* of Numba type *ty*. + """ + try: + impl = self._get_constants.find((ty,)) + return impl(self, builder, ty, val) + except NotImplementedError: + raise NotImplementedError("Cannot lower constant of type '%s'" % (ty,)) + + def get_constant(self, ty, val): + """ + Same as get_constant_generic(), but without specifying *builder*. + Works only for simple types. + """ + # HACK: pass builder=None to preserve get_constant() API + return self.get_constant_generic(None, ty, val) + + def get_constant_undef(self, ty): + lty = self.get_value_type(ty) + return Constant(lty, llvmir.Undefined) + + def get_constant_null(self, ty): + lty = self.get_value_type(ty) + return Constant(lty, None) + + def get_function(self, fn, sig, _firstcall=True): + """ + Return the implementation of function *fn* for signature *sig*. + The return value is a callable with the signature (builder, args). + """ + assert sig is not None + sig = sig.as_function() + if isinstance(fn, types.Callable): + key = fn.get_impl_key(sig) + overloads = self._defns[key] + else: + key = fn + overloads = self._defns[key] + + try: + return _wrap_impl(overloads.find(sig.args), self, sig) + except errors.NumbaNotImplementedError: + pass + if isinstance(fn, types.Type): + # It's a type instance => try to find a definition for the type class + try: + return self.get_function(type(fn), sig) + except NotImplementedError: + # Raise exception for the type instance, for a better error message + pass + + # Automatically refresh the context to load new registries if we are + # calling the first time. + if _firstcall: + self.refresh() + return self.get_function(fn, sig, _firstcall=False) + + raise NotImplementedError("No definition for lowering %s%s" % (key, sig)) + + def get_generator_desc(self, genty): + """ + """ + return self._generators[genty][0] + + def get_generator_impl(self, genty): + """ + """ + res = self._generators[genty][1] + self.add_linking_libs(getattr(res, 'libs', ())) + return res + + def get_bound_function(self, builder, obj, ty): + assert self.get_value_type(ty) == obj.type + return obj + + def get_getattr(self, typ, attr): + """ + Get the getattr() implementation for the given type and attribute name. + The return value is a callable with the signature + (context, builder, typ, val, attr). + """ + const_attr = (typ, attr) not in self.nonconst_module_attrs + is_module = isinstance(typ, types.Module) + if is_module and const_attr: + # Implement getattr for module-level globals that we treat as + # constants. + # XXX We shouldn't have to retype this + attrty = self.typing_context.resolve_module_constants(typ, attr) + if attrty is None or isinstance(attrty, types.Dummy): + # No implementation required for dummies (functions, modules...), + # which are dealt with later + return None + else: + pyval = getattr(typ.pymod, attr) + def imp(context, builder, typ, val, attr): + llval = self.get_constant_generic(builder, attrty, pyval) + return impl_ret_borrowed(context, builder, attrty, llval) + return imp + + # Lookup specific getattr implementation for this type and attribute + overloads = self._getattrs[attr] + try: + return overloads.find((typ,)) + except errors.NumbaNotImplementedError: + pass + # Lookup generic getattr implementation for this type + overloads = self._getattrs[None] + try: + return overloads.find((typ,)) + except errors.NumbaNotImplementedError: + pass + + raise NotImplementedError("No definition for lowering %s.%s" % (typ, attr)) + + def get_setattr(self, attr, sig): + """ + Get the setattr() implementation for the given attribute name + and signature. + The return value is a callable with the signature (builder, args). + """ + assert len(sig.args) == 2 + typ = sig.args[0] + valty = sig.args[1] + + def wrap_setattr(impl): + def wrapped(builder, args): + return impl(self, builder, sig, args, attr) + return wrapped + + # Lookup specific setattr implementation for this type and attribute + overloads = self._setattrs[attr] + try: + return wrap_setattr(overloads.find((typ, valty))) + except errors.NumbaNotImplementedError: + pass + # Lookup generic setattr implementation for this type + overloads = self._setattrs[None] + try: + return wrap_setattr(overloads.find((typ, valty))) + except errors.NumbaNotImplementedError: + pass + + raise NotImplementedError("No definition for lowering %s.%s = %s" + % (typ, attr, valty)) + + def get_argument_value(self, builder, ty, val): + """ + Argument representation to local value representation + """ + return self.data_model_manager[ty].from_argument(builder, val) + + def get_returned_value(self, builder, ty, val): + """ + Return value representation to local value representation + """ + return self.data_model_manager[ty].from_return(builder, val) + + def get_return_value(self, builder, ty, val): + """ + Local value representation to return type representation + """ + return self.data_model_manager[ty].as_return(builder, val) + + def get_value_as_argument(self, builder, ty, val): + """Prepare local value representation as argument type representation + """ + return self.data_model_manager[ty].as_argument(builder, val) + + def get_value_as_data(self, builder, ty, val): + return self.data_model_manager[ty].as_data(builder, val) + + def get_data_as_value(self, builder, ty, val): + return self.data_model_manager[ty].from_data(builder, val) + + def pair_first(self, builder, val, ty): + """ + Extract the first element of a heterogeneous pair. + """ + pair = self.make_helper(builder, ty, val) + return pair.first + + def pair_second(self, builder, val, ty): + """ + Extract the second element of a heterogeneous pair. + """ + pair = self.make_helper(builder, ty, val) + return pair.second + + def cast(self, builder, val, fromty, toty): + """ + Cast a value of type *fromty* to type *toty*. + This implements implicit conversions as can happen due to the + granularity of the Numba type system, or lax Python semantics. + """ + if fromty is types._undef_var: + # Special case for undefined variable + return self.get_constant_null(toty) + elif fromty == toty or toty == types.Any: + return val + try: + impl = self._casts.find((fromty, toty)) + return impl(self, builder, fromty, toty, val) + except errors.NumbaNotImplementedError: + raise errors.NumbaNotImplementedError( + "Cannot cast %s to %s: %s" % (fromty, toty, val)) + + def generic_compare(self, builder, key, argtypes, args): + """ + Compare the given LLVM values of the given Numba types using + the comparison *key* (e.g. '=='). The values are first cast to + a common safe conversion type. + """ + at, bt = argtypes + av, bv = args + ty = self.typing_context.unify_types(at, bt) + assert ty is not None + cav = self.cast(builder, av, at, ty) + cbv = self.cast(builder, bv, bt, ty) + fnty = self.typing_context.resolve_value_type(key) + # the sig is homogeneous in the unified casted type + cmpsig = fnty.get_call_type(self.typing_context, (ty, ty), {}) + cmpfunc = self.get_function(fnty, cmpsig) + self.add_linking_libs(getattr(cmpfunc, 'libs', ())) + return cmpfunc(builder, (cav, cbv)) + + def make_optional_none(self, builder, valtype): + optval = self.make_helper(builder, types.Optional(valtype)) + optval.valid = cgutils.false_bit + return optval._getvalue() + + def make_optional_value(self, builder, valtype, value): + optval = self.make_helper(builder, types.Optional(valtype)) + optval.valid = cgutils.true_bit + optval.data = value + return optval._getvalue() + + def is_true(self, builder, typ, val): + """ + Return the truth value of a value of the given Numba type. + """ + fnty = self.typing_context.resolve_value_type(bool) + sig = fnty.get_call_type(self.typing_context, (typ,), {}) + impl = self.get_function(fnty, sig) + return impl(builder, (val,)) + + def get_c_value(self, builder, typ, name, dllimport=False): + """ + Get a global value through its C-accessible *name*, with the given + LLVM type. + If *dllimport* is true, the symbol will be marked as imported + from a DLL (necessary for AOT compilation under Windows). + """ + module = builder.function.module + try: + gv = module.globals[name] + except KeyError: + gv = cgutils.add_global_variable(module, typ, name) + if dllimport and self.aot_mode and sys.platform == 'win32': + gv.storage_class = "dllimport" + return gv + + def call_external_function(self, builder, callee, argtys, args): + args = [self.get_value_as_argument(builder, ty, arg) + for ty, arg in zip(argtys, args)] + retval = builder.call(callee, args) + return retval + + def get_function_pointer_type(self, typ): + return self.data_model_manager[typ].get_data_type() + + def call_function_pointer(self, builder, funcptr, args, cconv=None): + return builder.call(funcptr, args, cconv=cconv) + + def print_string(self, builder, text): + mod = builder.module + cstring = GENERIC_POINTER + fnty = llvmir.FunctionType(llvmir.IntType(32), [cstring]) + puts = cgutils.get_or_insert_function(mod, fnty, "puts") + return builder.call(puts, [text]) + + def debug_print(self, builder, text): + mod = builder.module + cstr = self.insert_const_string(mod, str(text)) + self.print_string(builder, cstr) + + def printf(self, builder, format_string, *args): + mod = builder.module + if isinstance(format_string, str): + cstr = self.insert_const_string(mod, format_string) + else: + cstr = format_string + fnty = llvmir.FunctionType(llvmir.IntType(32), (GENERIC_POINTER,), var_arg=True) + fn = cgutils.get_or_insert_function(mod, fnty, "printf") + return builder.call(fn, (cstr,) + tuple(args)) + + def get_struct_type(self, struct): + """ + Get the LLVM struct type for the given Structure class *struct*. + """ + fields = [self.get_value_type(v) for _, v in struct._fields] + return llvmir.LiteralStructType(fields) + + def get_dummy_value(self): + return Constant(self.get_dummy_type(), None) + + def get_dummy_type(self): + return GENERIC_POINTER + + def _compile_subroutine_no_cache(self, builder, impl, sig, locals=None, + flags=None): + """ + Invoke the compiler to compile a function to be used inside a + nopython function, but without generating code to call that + function. + + Note this context's flags are not inherited. + """ + # Compile + from numba.core import compiler + + if locals is None: + locals = {} + with global_compiler_lock: + codegen = self.codegen() + library = codegen.create_library(impl.__name__) + if flags is None: + + cstk = targetconfig.ConfigStack() + flags = compiler.Flags() + if cstk: + tls_flags = cstk.top() + if tls_flags.is_set("nrt") and tls_flags.nrt: + flags.nrt = True + + flags.no_compile = True + flags.no_cpython_wrapper = True + flags.no_cfunc_wrapper = True + + cres = compiler.compile_internal(self.typing_context, self, + library, + impl, sig.args, + sig.return_type, flags, + locals=locals) + + # Allow inlining the function inside callers. + self.active_code_library.add_linking_library(cres.library) + return cres + + def compile_subroutine(self, builder, impl, sig, locals=None, flags=None, + caching=True): + """ + Compile the function *impl* for the given *sig* (in nopython mode). + Return an instance of CompileResult. + + If *caching* evaluates True, the function keeps the compiled function + for reuse in *.cached_internal_func*. + """ + if locals is None: + locals = {} + cache_key = (impl.__code__, sig, type(self.error_model)) + if not caching: + cached = None + else: + if impl.__closure__: + # XXX This obviously won't work if a cell's value is + # unhashable. + cache_key += tuple(c.cell_contents for c in impl.__closure__) + cached = self.cached_internal_func.get(cache_key) + if cached is None: + cres = self._compile_subroutine_no_cache(builder, impl, sig, + locals=locals, + flags=flags) + self.cached_internal_func[cache_key] = cres + + cres = self.cached_internal_func[cache_key] + # Allow inlining the function inside callers. + self.active_code_library.add_linking_library(cres.library) + return cres + + def compile_internal(self, builder, impl, sig, args, locals=None): + """ + Like compile_subroutine(), but also call the function with the given + *args*. + + Notes + ----- + Use of this API is discouraged. See coding_guidelines.rst in the + developer docs. + """ + if locals is None: + locals = {} + cres = self.compile_subroutine(builder, impl, sig, locals) + return self.call_internal(builder, cres.fndesc, sig, args) + + def call_internal(self, builder, fndesc, sig, args): + """ + Given the function descriptor of an internally compiled function, + emit a call to that function with the given arguments. + """ + status, res = self.call_internal_no_propagate(builder, fndesc, sig, args) + with cgutils.if_unlikely(builder, status.is_error): + self.call_conv.return_status_propagate(builder, status) + + res = imputils.fix_returning_optional(self, builder, sig, status, res) + return res + + def call_internal_no_propagate(self, builder, fndesc, sig, args): + """Similar to `.call_internal()` but does not handle or propagate + the return status automatically. + """ + # Add call to the generated function + llvm_mod = builder.module + fn = self.declare_function(llvm_mod, fndesc) + status, res = self.call_conv.call_function(builder, fn, sig.return_type, + sig.args, args) + return status, res + + def call_unresolved(self, builder, name, sig, args): + """ + Insert a function call to an unresolved symbol with the given *name*. + + Note: this is used for recursive call. + + In the mutual recursion case:: + + @njit + def foo(): + ... # calls bar() + + @njit + def bar(): + ... # calls foo() + + foo() + + When foo() is called, the compilation of bar() is fully completed + (codegen'ed and loaded) before foo() is. Since MCJIT's eager compilation + doesn't allow loading modules with declare-only functions (which is + needed for foo() in bar()), the call_unresolved injects a global + variable that the "linker" can update even after the module is loaded by + MCJIT. The linker would allocate space for the global variable before + the bar() module is loaded. When later foo() module is defined, it will + update bar()'s reference to foo(). + + The legacy lazy JIT and the new ORC JIT would allow a declare-only + function be used in a module as long as it is defined by the time of its + first use. + """ + # Insert an unresolved reference to the function being called. + codegen = self.codegen() + fnty = self.call_conv.get_function_type(sig.return_type, sig.args) + fn = codegen.insert_unresolved_ref(builder, fnty, name) + # Normal call sequence + status, res = self.call_conv.call_function(builder, fn, sig.return_type, + sig.args, args) + with cgutils.if_unlikely(builder, status.is_error): + self.call_conv.return_status_propagate(builder, status) + + res = imputils.fix_returning_optional(self, builder, sig, status, res) + return res + + def get_executable(self, func, fndesc, env): + raise NotImplementedError + + def get_python_api(self, builder): + return PythonAPI(self, builder) + + def sentry_record_alignment(self, rectyp, attr): + """ + Assumes offset starts from a properly aligned location + """ + if self.strict_alignment: + offset = rectyp.offset(attr) + elemty = rectyp.typeof(attr) + if isinstance(elemty, types.NestedArray): + # For a NestedArray we need to consider the data type of + # elements of the array for alignment, not the array structure + # itself + elemty = elemty.dtype + align = self.get_abi_alignment(self.get_data_type(elemty)) + if offset % align: + msg = "{rec}.{attr} of type {type} is not aligned".format( + rec=rectyp, attr=attr, type=elemty) + raise errors.NumbaTypeError(msg) + + def get_helper_class(self, typ, kind='value'): + """ + Get a helper class for the given *typ*. + """ + # XXX handle all types: complex, array, etc. + # XXX should it be a method on the model instead? this would allow a default kind... + return cgutils.create_struct_proxy(typ, kind) + + def _make_helper(self, builder, typ, value=None, ref=None, kind='value'): + cls = self.get_helper_class(typ, kind) + return cls(self, builder, value=value, ref=ref) + + def make_helper(self, builder, typ, value=None, ref=None): + """ + Get a helper object to access the *typ*'s members, + for the given value or reference. + """ + return self._make_helper(builder, typ, value, ref, kind='value') + + def make_data_helper(self, builder, typ, ref=None): + """ + As make_helper(), but considers the value as stored in memory, + rather than a live value. + """ + return self._make_helper(builder, typ, ref=ref, kind='data') + + def make_array(self, typ): + from numba.np import arrayobj + return arrayobj.make_array(typ) + + def populate_array(self, arr, **kwargs): + """ + Populate array structure. + """ + from numba.np import arrayobj + return arrayobj.populate_array(arr, **kwargs) + + def make_complex(self, builder, typ, value=None): + """ + Get a helper object to access the given complex numbers' members. + """ + assert isinstance(typ, types.Complex), typ + return self.make_helper(builder, typ, value) + + def make_tuple(self, builder, typ, values): + """ + Create a tuple of the given *typ* containing the *values*. + """ + tup = self.get_constant_undef(typ) + for i, val in enumerate(values): + tup = builder.insert_value(tup, val, i) + return tup + + def make_constant_array(self, builder, typ, ary): + """ + Create an array structure reifying the given constant array. + A low-level contiguous array constant is created in the LLVM IR. + """ + datatype = self.get_data_type(typ.dtype) + # don't freeze ary of non-contig or bigger than 1MB + size_limit = 10**6 + + if (self.allow_dynamic_globals and + (typ.layout not in 'FC' or ary.nbytes > size_limit)): + # get pointer from the ary + dataptr = ary.ctypes.data + data = self.add_dynamic_addr(builder, dataptr, info=str(type(dataptr))) + rt_addr = self.add_dynamic_addr(builder, id(ary), info=str(type(ary))) + else: + # Handle data: reify the flattened array in "C" or "F" order as a + # global array of bytes. + flat = ary.flatten(order=typ.layout) + # Note: we use `bytearray(flat.data)` instead of `bytearray(flat)` to + # workaround issue #1850 which is due to numpy issue #3147 + consts = cgutils.create_constant_array(llvmir.IntType(8), bytearray(flat.data)) + data = cgutils.global_constant(builder, ".const.array.data", consts) + # Ensure correct data alignment (issue #1933) + data.align = self.get_abi_alignment(datatype) + # No reference to parent ndarray + rt_addr = None + + # Handle shape + llintp = self.get_value_type(types.intp) + shapevals = [self.get_constant(types.intp, s) for s in ary.shape] + cshape = cgutils.create_constant_array(llintp, shapevals) + + # Handle strides + stridevals = [self.get_constant(types.intp, s) for s in ary.strides] + cstrides = cgutils.create_constant_array(llintp, stridevals) + + # Create array structure + cary = self.make_array(typ)(self, builder) + + intp_itemsize = self.get_constant(types.intp, ary.dtype.itemsize) + self.populate_array(cary, + data=builder.bitcast(data, cary.data.type), + shape=cshape, + strides=cstrides, + itemsize=intp_itemsize, + parent=rt_addr, + meminfo=None) + + return cary._getvalue() + + def add_dynamic_addr(self, builder, intaddr, info): + """ + Returns dynamic address as a void pointer `i8*`. + + Internally, a global variable is added to inform the lowerer about + the usage of dynamic addresses. Caching will be disabled. + """ + assert self.allow_dynamic_globals, "dyn globals disabled in this target" + assert isinstance(intaddr, int), 'dyn addr not of int type' + mod = builder.module + llvoidptr = self.get_value_type(types.voidptr) + addr = self.get_constant(types.uintp, intaddr).inttoptr(llvoidptr) + # Use a unique name by embedding the address value + symname = 'numba.dynamic.globals.{:x}'.format(intaddr) + gv = cgutils.add_global_variable(mod, llvoidptr, symname) + # Use linkonce linkage to allow merging with other GV of the same name. + # And, avoid optimization from assuming its value. + gv.linkage = 'linkonce' + gv.initializer = addr + return builder.load(gv) + + def get_abi_sizeof(self, ty): + """ + Get the ABI size of LLVM type *ty*. + """ + assert isinstance(ty, llvmir.Type), "Expected LLVM type" + return ty.get_abi_size(self.target_data) + + def get_abi_alignment(self, ty): + """ + Get the ABI alignment of LLVM type *ty*. + """ + assert isinstance(ty, llvmir.Type), "Expected LLVM type" + return ty.get_abi_alignment(self.target_data) + + def get_preferred_array_alignment(context, ty): + """ + Get preferred array alignment for Numba type *ty*. + """ + # AVX prefers 32-byte alignment + return 32 + + def post_lowering(self, mod, library): + """Run target specific post-lowering transformation here. + """ + + def create_module(self, name): + """Create a LLVM module + + The default implementation in BaseContext always raises a + ``NotImplementedError`` exception. Subclasses should implement + this method. + """ + raise NotImplementedError + + @property + def active_code_library(self): + """Get the active code library + """ + return self._codelib_stack[-1] + + @contextmanager + def push_code_library(self, lib): + """Push the active code library for the context + """ + self._codelib_stack.append(lib) + try: + yield + finally: + self._codelib_stack.pop() + + def add_linking_libs(self, libs): + """Add iterable of linking libraries to the *active_code_library*. + """ + colib = self.active_code_library + for lib in libs: + colib.add_linking_library(lib) + + def get_ufunc_info(self, ufunc_key): + """Get the ufunc implementation for a given ufunc object. + + The default implementation in BaseContext always raises a + ``NotImplementedError`` exception. Subclasses may raise ``KeyError`` + to signal that the given ``ufunc_key`` is not available. + + Parameters + ---------- + ufunc_key : NumPy ufunc + + Returns + ------- + res : dict[str, callable] + A mapping of a NumPy ufunc type signature to a lower-level + implementation. + """ + raise NotImplementedError(f"{self} does not support ufunc") + +class _wrap_impl(object): + """ + A wrapper object to call an implementation function with some predefined + (context, signature) arguments. + The wrapper also forwards attribute queries, which is important. + """ + + def __init__(self, imp, context, sig): + self._callable = _wrap_missing_loc(imp) + self._imp = self._callable() + self._context = context + self._sig = sig + + def __call__(self, builder, args, loc=None): + res = self._imp(self._context, builder, self._sig, args, loc=loc) + self._context.add_linking_libs(getattr(self, 'libs', ())) + return res + + def __getattr__(self, item): + return getattr(self._imp, item) + + def __repr__(self): + return "" % repr(self._callable) + +def _has_loc(fn): + """Does function *fn* take ``loc`` argument? + """ + sig = utils.pysignature(fn) + return 'loc' in sig.parameters + + +class _wrap_missing_loc(object): + + def __init__(self, fn): + self.func = fn # store this to help with debug + + def __call__(self): + """Wrap function for missing ``loc`` keyword argument. + Otherwise, return the original *fn*. + """ + fn = self.func + if not _has_loc(fn): + def wrapper(*args, **kwargs): + kwargs.pop('loc') # drop unused loc + return fn(*args, **kwargs) + + # Copy the following attributes from the wrapped. + # Following similar implementation as functools.wraps but + # ignore attributes if not available (i.e fix py2.7) + attrs = '__name__', 'libs' + for attr in attrs: + try: + val = getattr(fn, attr) + except AttributeError: + pass + else: + setattr(wrapper, attr, val) + + return wrapper + else: + return fn + + def __repr__(self): + return "" % self.func + + +@utils.runonce +def _initialize_llvm_lock_event(): + """Initial event triggers for LLVM lock + """ + def enter_fn(): + event.start_event("numba:llvm_lock") + + def exit_fn(): + event.end_event("numba:llvm_lock") + + ll.ffi.register_lock_callback(enter_fn, exit_fn) + + +_initialize_llvm_lock_event() diff --git a/shared/package-files/e8/e889df9b65a6a01cd3aaecf4b9334f980609f5bf2c13c7041ee5a8dad31a3cb6/blob b/shared/package-files/e8/e889df9b65a6a01cd3aaecf4b9334f980609f5bf2c13c7041ee5a8dad31a3cb6/blob new file mode 100644 index 0000000000000000000000000000000000000000..a0d50ed7f49df409cbf19b3874d534f5d178e2c7 --- /dev/null +++ b/shared/package-files/e8/e889df9b65a6a01cd3aaecf4b9334f980609f5bf2c13c7041ee5a8dad31a3cb6/blob @@ -0,0 +1,56 @@ +from datetime import date, datetime, timedelta +from numbers import Real +from typing import Any, Awaitable, Callable, Iterator, Optional, Sequence, Type, TypeVar, Union, overload + +_T = TypeVar("_T") +_Freezable = Union[str, datetime, date, timedelta] + +class TickingDateTimeFactory(object): + def __init__(self, time_to_freeze: datetime, start: datetime) -> None: ... + def __call__(self) -> datetime: ... + +class FrozenDateTimeFactory(object): + def __init__(self, time_to_freeze: datetime) -> None: ... + def __call__(self) -> datetime: ... + def tick(self, delta: Union[float, Real, timedelta] = ...) -> None: ... + def move_to(self, target_datetime: Optional[_Freezable]) -> None: ... + +class StepTickTimeFactory(object): + def __init__(self, time_to_freeze: datetime, step_width: float) -> None: ... + def __call__(self) -> datetime: ... + def tick(self, delta: Optional[timedelta] = ...) -> None: ... + def update_step_width(self, step_width: float) -> None: ... + def move_to(self, target_datetime: Optional[_Freezable]) -> None: ... + +class _freeze_time: + def __init__( + self, + time_to_freeze_str: Optional[_Freezable], + tz_offset: float, + ignore: Sequence[str], + tick: bool, + as_arg: bool, + auto_tick_seconds: float, + ) -> None: ... + @overload + def __call__(self, func: Type[_T]) -> Type[_T]: ... + @overload + def __call__(self, func: Callable[..., Awaitable[_T]]) -> Callable[..., Awaitable[_T]]: ... + @overload + def __call__(self, func: Callable[..., _T]) -> Callable[..., _T]: ... + def __enter__(self) -> Any: ... + def __exit__(self, *args: Any) -> None: ... + def start(self) -> Any: ... + def stop(self) -> None: ... + def decorate_class(self, klass: Type[_T]) -> _T: ... + def decorate_coroutine(self, coroutine: _T) -> _T: ... + def decorate_callable(self, func: Callable[..., _T]) -> Callable[..., _T]: ... + +def freeze_time( + time_to_freeze: Optional[Union[_Freezable, Callable[..., _Freezable], Iterator[_Freezable]]] = ..., + tz_offset: Optional[float] = ..., + ignore: Optional[Sequence[str]] = ..., + tick: Optional[bool] = ..., + as_arg: Optional[bool] = ..., + auto_tick_seconds: Optional[float] = ..., +) -> _freeze_time: ... diff --git a/shared/package-files/e8/e889f7747e30e29e4c9e9ecc67a8d9527a0ae2b463594de1527f969e2a00161b/blob b/shared/package-files/e8/e889f7747e30e29e4c9e9ecc67a8d9527a0ae2b463594de1527f969e2a00161b/blob new file mode 100644 index 0000000000000000000000000000000000000000..1a3ffcd24e2a4ecf4ce2f1ce8ad5d6bc4f3ac61c --- /dev/null +++ b/shared/package-files/e8/e889f7747e30e29e4c9e9ecc67a8d9527a0ae2b463594de1527f969e2a00161b/blob @@ -0,0 +1,340 @@ +"""Almost entirely complete, generic `selectors` implementation.""" + +from __future__ import annotations + +import re +from functools import partial +from typing import TYPE_CHECKING, Any, ClassVar, Literal, Protocol, TypeVar, overload + +from narwhals._compliant.expr import CompliantExpr +from narwhals._utils import ( + _parse_time_unit_and_time_zone, + dtype_matches_time_unit_and_time_zone, + get_column_names, + is_compliant_dataframe, +) + +if TYPE_CHECKING: + from collections.abc import Collection, Iterable, Iterator, Sequence + from datetime import timezone + from typing import TypeAlias + + from typing_extensions import Self, TypeIs + + from narwhals._compliant.expr import NativeExpr + from narwhals._compliant.typing import ( + CompliantDataFrameAny, + CompliantExprAny, + CompliantFrameAny, + CompliantLazyFrameAny, + CompliantSeriesAny, + CompliantSeriesOrNativeExprAny, + EvalNames, + EvalSeries, + ) + from narwhals._utils import Implementation, Version, _LimitedContext + from narwhals.dtypes import DType + from narwhals.typing import TimeUnit + +__all__ = [ + "CompliantSelector", + "CompliantSelectorNamespace", + "EagerSelectorNamespace", + "LazySelectorNamespace", + "is_compliant_selector", +] + + +SeriesOrExprT = TypeVar("SeriesOrExprT", bound="CompliantSeriesOrNativeExprAny") +SeriesT = TypeVar("SeriesT", bound="CompliantSeriesAny") +ExprT = TypeVar("ExprT", bound="NativeExpr") +FrameT = TypeVar("FrameT", bound="CompliantFrameAny") +DataFrameT = TypeVar("DataFrameT", bound="CompliantDataFrameAny") +LazyFrameT = TypeVar("LazyFrameT", bound="CompliantLazyFrameAny") +SelectorOrExpr: TypeAlias = ( + "CompliantSelector[FrameT, SeriesOrExprT] | CompliantExpr[FrameT, SeriesOrExprT]" +) + + +class CompliantSelectorNamespace(Protocol[FrameT, SeriesOrExprT]): + # NOTE: `narwhals` + _implementation: Implementation + _version: Version + + @property + def _selector(self) -> type[CompliantSelector[FrameT, SeriesOrExprT]]: ... + @classmethod + def from_namespace(cls, context: _LimitedContext, /) -> Self: + obj = cls.__new__(cls) + obj._implementation = context._implementation + obj._version = context._version + return obj + + def _iter_columns(self, df: FrameT, /) -> Iterator[SeriesOrExprT]: ... + def _iter_schema(self, df: FrameT, /) -> Iterator[tuple[str, DType]]: ... + def _iter_columns_dtypes( + self, df: FrameT, / + ) -> Iterator[tuple[SeriesOrExprT, DType]]: ... + def _iter_columns_names(self, df: FrameT, /) -> Iterator[tuple[SeriesOrExprT, str]]: + yield from zip(self._iter_columns(df), df.columns, strict=True) + + def _is_dtype( + self: CompliantSelectorNamespace[FrameT, SeriesOrExprT], dtype: type[DType], / + ) -> CompliantSelector[FrameT, SeriesOrExprT]: + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + return [ + ser for ser, tp in self._iter_columns_dtypes(df) if isinstance(tp, dtype) + ] + + def names(df: FrameT) -> Sequence[str]: + return [name for name, tp in self._iter_schema(df) if isinstance(tp, dtype)] + + return self._selector.from_callables(series, names, context=self) + + # NOTE: `polars` + def by_dtype( + self, dtypes: Collection[DType | type[DType]] + ) -> CompliantSelector[FrameT, SeriesOrExprT]: + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + return [ser for ser, tp in self._iter_columns_dtypes(df) if tp in dtypes] + + def names(df: FrameT) -> Sequence[str]: + return [name for name, tp in self._iter_schema(df) if tp in dtypes] + + return self._selector.from_callables(series, names, context=self) + + def matches(self, pattern: str) -> CompliantSelector[FrameT, SeriesOrExprT]: + p = re.compile(pattern) + + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + if ( + is_compliant_dataframe(df) + and not self._implementation.is_duckdb() + and not self._implementation.is_ibis() + ): + return [df.get_column(col) for col in df.columns if p.search(col)] + + return [ser for ser, name in self._iter_columns_names(df) if p.search(name)] + + def names(df: FrameT) -> Sequence[str]: + return [col for col in df.columns if p.search(col)] + + return self._selector.from_callables(series, names, context=self) + + def numeric(self) -> CompliantSelector[FrameT, SeriesOrExprT]: + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + return [ser for ser, tp in self._iter_columns_dtypes(df) if tp.is_numeric()] + + def names(df: FrameT) -> Sequence[str]: + return [name for name, tp in self._iter_schema(df) if tp.is_numeric()] + + return self._selector.from_callables(series, names, context=self) + + def categorical(self) -> CompliantSelector[FrameT, SeriesOrExprT]: + return self._is_dtype(self._version.dtypes.Categorical) + + def enum(self) -> CompliantSelector[FrameT, SeriesOrExprT]: + return self._is_dtype(self._version.dtypes.Enum) + + def string(self) -> CompliantSelector[FrameT, SeriesOrExprT]: + return self._is_dtype(self._version.dtypes.String) + + def boolean(self) -> CompliantSelector[FrameT, SeriesOrExprT]: + return self._is_dtype(self._version.dtypes.Boolean) + + def all(self) -> CompliantSelector[FrameT, SeriesOrExprT]: + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + return list(self._iter_columns(df)) + + return self._selector.from_callables(series, get_column_names, context=self) + + def datetime( + self, + time_unit: TimeUnit | Iterable[TimeUnit] | None, + time_zone: str | timezone | Iterable[str | timezone | None] | None, + ) -> CompliantSelector[FrameT, SeriesOrExprT]: + time_units, time_zones = _parse_time_unit_and_time_zone(time_unit, time_zone) + matches = partial( + dtype_matches_time_unit_and_time_zone, + dtypes=self._version.dtypes, + time_units=time_units, + time_zones=time_zones, + ) + + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + return [ser for ser, tp in self._iter_columns_dtypes(df) if matches(tp)] + + def names(df: FrameT) -> Sequence[str]: + return [name for name, tp in self._iter_schema(df) if matches(tp)] + + return self._selector.from_callables(series, names, context=self) + + +class EagerSelectorNamespace( + CompliantSelectorNamespace[DataFrameT, SeriesT], Protocol[DataFrameT, SeriesT] +): + def _iter_schema(self, df: DataFrameT, /) -> Iterator[tuple[str, DType]]: + yield from df.schema.items() + + def _iter_columns(self, df: DataFrameT, /) -> Iterator[SeriesT]: + yield from df.iter_columns() + + def _iter_columns_dtypes(self, df: DataFrameT, /) -> Iterator[tuple[SeriesT, DType]]: + for ser in self._iter_columns(df): + yield ser, ser.dtype + + +class LazySelectorNamespace( + CompliantSelectorNamespace[LazyFrameT, ExprT], Protocol[LazyFrameT, ExprT] +): + def _iter_schema(self, df: LazyFrameT) -> Iterator[tuple[str, DType]]: + yield from df.schema.items() + + def _iter_columns(self, df: LazyFrameT) -> Iterator[ExprT]: + yield from df._iter_columns() + + def _iter_columns_dtypes(self, df: LazyFrameT, /) -> Iterator[tuple[ExprT, DType]]: + yield from zip(self._iter_columns(df), df.schema.values(), strict=True) + + +class CompliantSelector( + CompliantExpr[FrameT, SeriesOrExprT], Protocol[FrameT, SeriesOrExprT] +): + _call: EvalSeries[FrameT, SeriesOrExprT] + _function_name: str + _implementation: Implementation + _version: Version + + # NOTE: This `Protocol` isn't `runtime_checkable`, and `PolarsExpr.__getattr__` + # forwards *any* attribute to the native object, so neither `isinstance` nor + # `hasattr` can identify a selector. Subclasses inherit this marker, and + # `is_compliant_selector` reads it off the class, which `__getattr__` never sees. + _is_compliant_selector: ClassVar[Literal[True]] = True + + @classmethod + def from_callables( + cls, + call: EvalSeries[FrameT, SeriesOrExprT], + evaluate_output_names: EvalNames[FrameT], + *, + context: _LimitedContext, + ) -> Self: + obj = cls.__new__(cls) + obj._call = call + obj._evaluate_output_names = evaluate_output_names + obj._alias_output_names = None + obj._implementation = context._implementation + obj._version = context._version + return obj + + @property + def selectors(self) -> CompliantSelectorNamespace[FrameT, SeriesOrExprT]: + return self.__narwhals_namespace__().selectors + + def _to_expr(self) -> CompliantExpr[FrameT, SeriesOrExprT]: ... + + def _is_selector( + self, other: Self | CompliantExpr[FrameT, SeriesOrExprT] + ) -> TypeIs[CompliantSelector[FrameT, SeriesOrExprT]]: + return isinstance(other, type(self)) + + @overload # type: ignore[override] + def __sub__(self, other: Self) -> Self: ... + @overload + def __sub__( + self, other: CompliantExpr[FrameT, SeriesOrExprT] + ) -> CompliantExpr[FrameT, SeriesOrExprT]: ... + def __sub__( + self, other: SelectorOrExpr[FrameT, SeriesOrExprT] + ) -> SelectorOrExpr[FrameT, SeriesOrExprT]: + if self._is_selector(other): + + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + lhs_names, rhs_names = _eval_lhs_rhs(df, self, other) + rhs_set = frozenset(rhs_names) + return [ + x + for x, name in zip(self(df), lhs_names, strict=True) + if name not in rhs_set + ] + + def names(df: FrameT) -> Sequence[str]: + lhs_names, rhs_names = _eval_lhs_rhs(df, self, other) + rhs_set = frozenset(rhs_names) + return [x for x in lhs_names if x not in rhs_set] + + return self.selectors._selector.from_callables(series, names, context=self) + return self._to_expr() - other + + @overload # type: ignore[override] + def __or__(self, other: Self) -> Self: ... + @overload + def __or__( + self, other: CompliantExpr[FrameT, SeriesOrExprT] + ) -> CompliantExpr[FrameT, SeriesOrExprT]: ... + def __or__( + self, other: SelectorOrExpr[FrameT, SeriesOrExprT] + ) -> SelectorOrExpr[FrameT, SeriesOrExprT]: + if self._is_selector(other): + + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + lhs_names, rhs_names = _eval_lhs_rhs(df, self, other) + rhs_set = frozenset(rhs_names) + return [ + *( + x + for x, name in zip(self(df), lhs_names, strict=True) + if name not in rhs_set + ), + *other(df), + ] + + def names(df: FrameT) -> Sequence[str]: + lhs_names, rhs_names = _eval_lhs_rhs(df, self, other) + rhs_set = frozenset(rhs_names) + return [*(x for x in lhs_names if x not in rhs_set), *rhs_names] + + return self.selectors._selector.from_callables(series, names, context=self) + return self._to_expr() | other + + @overload # type: ignore[override] + def __and__(self, other: Self) -> Self: ... + @overload + def __and__( + self, other: CompliantExpr[FrameT, SeriesOrExprT] + ) -> CompliantExpr[FrameT, SeriesOrExprT]: ... + def __and__( + self, other: SelectorOrExpr[FrameT, SeriesOrExprT] + ) -> SelectorOrExpr[FrameT, SeriesOrExprT]: + if self._is_selector(other): + + def series(df: FrameT) -> Sequence[SeriesOrExprT]: + lhs_names, rhs_names = _eval_lhs_rhs(df, self, other) + rhs_set = frozenset(rhs_names) + return [ + x + for x, name in zip(self(df), lhs_names, strict=True) + if name in rhs_set + ] + + def names(df: FrameT) -> Sequence[str]: + lhs_names, rhs_names = _eval_lhs_rhs(df, self, other) + rhs_set = frozenset(rhs_names) + return [x for x in lhs_names if x in rhs_set] + + return self.selectors._selector.from_callables(series, names, context=self) + return self._to_expr() & other + + def __invert__(self) -> CompliantSelector[FrameT, SeriesOrExprT]: + return self.selectors.all() - self + + +def is_compliant_selector(obj: Any, /) -> TypeIs[CompliantSelector[Any, Any]]: + """Check whether `obj` is a `CompliantSelector`.""" + return getattr(type(obj), "_is_compliant_selector", False) + + +def _eval_lhs_rhs( + df: CompliantFrameAny, lhs: CompliantExprAny, rhs: CompliantExprAny +) -> tuple[Sequence[str], Sequence[str]]: + return lhs._evaluate_output_names(df), rhs._evaluate_output_names(df) diff --git a/shared/package-files/e8/e88cc073643187c0a3bea35bac7ad698c317abe1387a80163cd1d98533f9eefa/blob b/shared/package-files/e8/e88cc073643187c0a3bea35bac7ad698c317abe1387a80163cd1d98533f9eefa/blob new file mode 100644 index 0000000000000000000000000000000000000000..c60084cc0376aae17cdd027d2db304b1488c5161 --- /dev/null +++ b/shared/package-files/e8/e88cc073643187c0a3bea35bac7ad698c317abe1387a80163cd1d98533f9eefa/blob @@ -0,0 +1,380 @@ +# -*- tcl -*- +# +# Searching for Tcl Modules. Defines a procedure, declares it as the primary +# command for finding packages, however also uses the former 'package unknown' +# command as a fallback. +# +# Locates all possible packages in a directory via a less restricted glob. The +# targeted directory is derived from the name of the requested package, i.e. +# the TM scan will look only at directories which can contain the requested +# package. It will register all packages it found in the directory so that +# future requests have a higher chance of being fulfilled by the ifneeded +# database without having to come to us again. +# +# We do not remember where we have been and simply rescan targeted directories +# when invoked again. The reasoning is this: +# +# - The only way we get back to the same directory is if someone is trying to +# [package require] something that wasn't there on the first scan. +# +# Either +# 1) It is there now: If we rescan, you get it; if not you don't. +# +# This covers the possibility that the application asked for a package +# late, and the package was actually added to the installation after the +# application was started. It shoukld still be able to find it. +# +# 2) It still is not there: Either way, you don't get it, but the rescan +# takes time. This is however an error case and we dont't care that much +# about it +# +# 3) It was there the first time; but for some reason a "package forget" has +# been run, and "package" doesn't know about it anymore. +# +# This can be an indication that the application wishes to reload some +# functionality. And should work as well. +# +# Note that this also strikes a balance between doing a glob targeting a +# single package, and thus most likely requiring multiple globs of the same +# directory when the application is asking for many packages, and trying to +# glob for _everything_ in all subdirectories when looking for a package, +# which comes with a heavy startup cost. +# +# We scan for regular packages only if no satisfying module was found. + +namespace eval ::tcl::tm { + # Default paths. None yet. + + variable paths {} + + # The regex pattern a file name has to match to make it a Tcl Module. + + set pkgpattern {^([_[:alpha:]][:_[:alnum:]]*)-([[:digit:]].*)[.]tm$} + + # Export the public API + + namespace export path + namespace ensemble create -command path -subcommands {add remove list} +} + +# ::tcl::tm::path implementations -- +# +# Public API to the module path. See specification. +# +# Arguments +# cmd - The subcommand to execute +# args - The paths to add/remove. Must not appear querying the +# path with 'list'. +# +# Results +# No result for subcommands 'add' and 'remove'. A list of paths for +# 'list'. +# +# Sideeffects +# The subcommands 'add' and 'remove' manipulate the list of paths to +# search for Tcl Modules. The subcommand 'list' has no sideeffects. + +proc ::tcl::tm::add {args} { + # PART OF THE ::tcl::tm::path ENSEMBLE + # + # The path is added at the head to the list of module paths. + # + # The command enforces the restriction that no path may be an ancestor + # directory of any other path on the list. If the new path violates this + # restriction an error wil be raised. + # + # If the path is already present as is no error will be raised and no + # action will be taken. + + variable paths + + # We use a copy of the path as source during validation, and extend it as + # well. Because we not only have to detect if the new paths are bogus with + # respect to the existing paths, but also between themselves. Otherwise we + # can still add bogus paths, by specifying them in a single call. This + # makes the use of the new paths simpler as well, a trivial assignment of + # the collected paths to the official state var. + + set newpaths $paths + foreach p $args { + if {$p in $newpaths} { + # Ignore a path already on the list. + continue + } + + # Search for paths which are subdirectories of the new one. If there + # are any then the new path violates the restriction about ancestors. + + set pos [lsearch -glob $newpaths ${p}/*] + # Cannot use "in", we need the position for the message. + if {$pos >= 0} { + return -code error \ + "$p is ancestor of existing module path [lindex $newpaths $pos]." + } + + # Now look for existing paths which are ancestors of the new one. This + # reverse question forces us to loop over the existing paths, as each + # element is the pattern, not the new path :( + + foreach ep $newpaths { + if {[string match ${ep}/* $p]} { + return -code error \ + "$p is subdirectory of existing module path $ep." + } + } + + set newpaths [linsert $newpaths 0 $p] + } + + # The validation of the input is complete and successful, and everything + # in newpaths is either an old path, or added. We can now extend the + # official list of paths, a simple assignment is sufficient. + + set paths $newpaths + return +} + +proc ::tcl::tm::remove {args} { + # PART OF THE ::tcl::tm::path ENSEMBLE + # + # Removes the path from the list of module paths. The command is silently + # ignored if the path is not on the list. + + variable paths + + foreach p $args { + set pos [lsearch -exact $paths $p] + if {$pos >= 0} { + set paths [lreplace $paths $pos $pos] + } + } +} + +proc ::tcl::tm::list {} { + # PART OF THE ::tcl::tm::path ENSEMBLE + + variable paths + return $paths +} + +# ::tcl::tm::UnknownHandler -- +# +# Unknown handler for Tcl Modules, i.e. packages in module form. +# +# Arguments +# original - Original [package unknown] procedure. +# name - Name of desired package. +# version - Version of desired package. Can be the +# empty string. +# exact - Either -exact or ommitted. +# +# Name, version, and exact are used to determine satisfaction. The +# original is called iff no satisfaction was achieved. The name is also +# used to compute the directory to target in the search. +# +# Results +# None. +# +# Sideeffects +# May populate the package ifneeded database with additional provide +# scripts. + +proc ::tcl::tm::UnknownHandler {original name args} { + # Import the list of paths to search for packages in module form. + # Import the pattern used to check package names in detail. + + variable paths + variable pkgpattern + + # Without paths to search we can do nothing. (Except falling back to the + # regular search). + + if {[llength $paths]} { + set pkgpath [string map {:: /} $name] + set pkgroot [file dirname $pkgpath] + if {$pkgroot eq "."} { + set pkgroot "" + } + + # We don't remember a copy of the paths while looping. Tcl Modules are + # unable to change the list while we are searching for them. This also + # simplifies the loop, as we cannot get additional directories while + # iterating over the list. A simple foreach is sufficient. + + set satisfied 0 + foreach path $paths { + if {![interp issafe] && ![file exists $path]} { + continue + } + set currentsearchpath [file join $path $pkgroot] + if {![interp issafe] && ![file exists $currentsearchpath]} { + continue + } + set strip [llength [file split $path]] + + # Get the module files out of the subdirectories. + # - Safe Base interpreters have a restricted "glob" command that + # works in this case. + # - The "catch" was essential when there was no safe glob and every + # call in a safe interp failed; it is retained only for corner + # cases in which the eventual call to glob returns an error. + + catch { + # We always look for _all_ possible modules in the current + # path, to get the max result out of the glob. + + foreach file [glob -nocomplain -directory $currentsearchpath *.tm] { + set pkgfilename [join [lrange [file split $file] $strip end] ::] + + if {![regexp -- $pkgpattern $pkgfilename --> pkgname pkgversion]} { + # Ignore everything not matching our pattern for + # package names. + continue + } + try { + package vcompare $pkgversion 0 + } on error {} { + # Ignore everything where the version part is not + # acceptable to "package vcompare". + continue + } + + if {([package ifneeded $pkgname $pkgversion] ne {}) + && (![interp issafe]) + } { + # There's already a provide script registered for + # this version of this package. Since all units of + # code claiming to be the same version of the same + # package ought to be identical, just stick with + # the one we already have. + # This does not apply to Safe Base interpreters because + # the token-to-directory mapping may have changed. + continue + } + + # We have found a candidate, generate a "provide script" + # for it, and remember it. Note that we are using ::list + # to do this; locally [list] means something else without + # the namespace specifier. + + # NOTE. When making changes to the format of the provide + # command generated below CHECK that the 'LOCATE' + # procedure in core file 'platform/shell.tcl' still + # understands it, or, if not, update its implementation + # appropriately. + # + # Right now LOCATE's implementation assumes that the path + # of the package file is the last element in the list. + + package ifneeded $pkgname $pkgversion \ + "[::list package provide $pkgname $pkgversion];[::list source -encoding utf-8 $file]" + + # We abort in this unknown handler only if we got a + # satisfying candidate for the requested package. + # Otherwise we still have to fallback to the regular + # package search to complete the processing. + + if {($pkgname eq $name) + && [package vsatisfies $pkgversion {*}$args]} { + set satisfied 1 + + # We do not abort the loop, and keep adding provide + # scripts for every candidate in the directory, just + # remember to not fall back to the regular search + # anymore. + } + } + } + } + + if {$satisfied} { + return + } + } + + # Fallback to previous command, if existing. See comment above about + # ::list... + + if {[llength $original]} { + uplevel 1 $original [::linsert $args 0 $name] + } +} + +# ::tcl::tm::Defaults -- +# +# Determines the default search paths. +# +# Arguments +# None +# +# Results +# None. +# +# Sideeffects +# May add paths to the list of defaults. + +proc ::tcl::tm::Defaults {} { + global env tcl_platform + + regexp {^(\d+)\.(\d+)} [package provide Tcl] - major minor + set exe [file normalize [info nameofexecutable]] + + # Note that we're using [::list], not [list] because [list] means + # something other than [::list] in this namespace. + roots [::list \ + [file dirname [info library]] \ + [file join [file dirname [file dirname $exe]] lib] \ + ] + + if {$tcl_platform(platform) eq "windows"} { + set sep ";" + } else { + set sep ":" + } + for {set n $minor} {$n >= 0} {incr n -1} { + foreach ev [::list \ + TCL${major}.${n}_TM_PATH \ + TCL${major}_${n}_TM_PATH \ + ] { + if {![info exists env($ev)]} continue + foreach p [split $env($ev) $sep] { + path add $p + } + } + } + return +} + +# ::tcl::tm::roots -- +# +# Public API to the module path. See specification. +# +# Arguments +# paths - List of 'root' paths to derive search paths from. +# +# Results +# No result. +# +# Sideeffects +# Calls 'path add' to paths to the list of module search paths. + +proc ::tcl::tm::roots {paths} { + regexp {^(\d+)\.(\d+)} [package provide Tcl] - major minor + foreach pa $paths { + set p [file join $pa tcl$major] + for {set n $minor} {$n >= 0} {incr n -1} { + set px [file join $p ${major}.${n}] + if {![interp issafe]} {set px [file normalize $px]} + path add $px + } + set px [file join $p site-tcl] + if {![interp issafe]} {set px [file normalize $px]} + path add $px + } + return +} + +# Initialization. Set up the default paths, then insert the new handler into +# the chain. + +if {![interp issafe]} {::tcl::tm::Defaults} diff --git a/shared/package-files/e8/e88f5a51f168157a41ac2dd8a4ee0e9a879419c84c6122b4771b1a2a33d93a4c/blob b/shared/package-files/e8/e88f5a51f168157a41ac2dd8a4ee0e9a879419c84c6122b4771b1a2a33d93a4c/blob new file mode 100644 index 0000000000000000000000000000000000000000..efe1a40f2a8ffd499d22cd83e6b5df6c6c1e8e5c Binary files /dev/null and b/shared/package-files/e8/e88f5a51f168157a41ac2dd8a4ee0e9a879419c84c6122b4771b1a2a33d93a4c/blob differ diff --git a/shared/package-files/e8/e88fb34012c90b265465a61d98adb7a66b9c33c3009f63acbf2cc476084fa56d/blob b/shared/package-files/e8/e88fb34012c90b265465a61d98adb7a66b9c33c3009f63acbf2cc476084fa56d/blob new file mode 100644 index 0000000000000000000000000000000000000000..40f495fc7aa82c10ad31082821729724782f86fa --- /dev/null +++ b/shared/package-files/e8/e88fb34012c90b265465a61d98adb7a66b9c33c3009f63acbf2cc476084fa56d/blob @@ -0,0 +1,826 @@ +import os +import re +import sys +import platform +import shlex +import time +import subprocess +from copy import copy +from pathlib import Path +from distutils import ccompiler +from distutils.ccompiler import ( + compiler_class, gen_lib_options, get_default_compiler, new_compiler, + CCompiler +) +from distutils.errors import ( + DistutilsExecError, DistutilsModuleError, DistutilsPlatformError, + CompileError, UnknownFileError +) +from distutils.sysconfig import customize_compiler +from distutils.version import LooseVersion + +from numpy.distutils import log +from numpy.distutils.exec_command import ( + filepath_from_subprocess_output, forward_bytes_to_stdout +) +from numpy.distutils.misc_util import cyg2win32, is_sequence, mingw32, \ + get_num_build_jobs, \ + _commandline_dep_string, \ + sanitize_cxx_flags + +# globals for parallel build management +import threading + +_job_semaphore = None +_global_lock = threading.Lock() +_processing_files = set() + + +def _needs_build(obj, cc_args, extra_postargs, pp_opts): + """ + Check if an objects needs to be rebuild based on its dependencies + + Parameters + ---------- + obj : str + object file + + Returns + ------- + bool + """ + # defined in unixcompiler.py + dep_file = obj + '.d' + if not os.path.exists(dep_file): + return True + + # dep_file is a makefile containing 'object: dependencies' + # formatted like posix shell (spaces escaped, \ line continuations) + # the last line contains the compiler commandline arguments as some + # projects may compile an extension multiple times with different + # arguments + with open(dep_file) as f: + lines = f.readlines() + + cmdline =_commandline_dep_string(cc_args, extra_postargs, pp_opts) + last_cmdline = lines[-1] + if last_cmdline != cmdline: + return True + + contents = ''.join(lines[:-1]) + deps = [x for x in shlex.split(contents, posix=True) + if x != "\n" and not x.endswith(":")] + + try: + t_obj = os.stat(obj).st_mtime + + # check if any of the dependencies is newer than the object + # the dependencies includes the source used to create the object + for f in deps: + if os.stat(f).st_mtime > t_obj: + return True + except OSError: + # no object counts as newer (shouldn't happen if dep_file exists) + return True + + return False + + +def replace_method(klass, method_name, func): + # Py3k does not have unbound method anymore, MethodType does not work + m = lambda self, *args, **kw: func(self, *args, **kw) + setattr(klass, method_name, m) + + +###################################################################### +## Method that subclasses may redefine. But don't call this method, +## it i private to CCompiler class and may return unexpected +## results if used elsewhere. So, you have been warned.. + +def CCompiler_find_executables(self): + """ + Does nothing here, but is called by the get_version method and can be + overridden by subclasses. In particular it is redefined in the `FCompiler` + class where more documentation can be found. + + """ + pass + + +replace_method(CCompiler, 'find_executables', CCompiler_find_executables) + + +# Using customized CCompiler.spawn. +def CCompiler_spawn(self, cmd, display=None, env=None): + """ + Execute a command in a sub-process. + + Parameters + ---------- + cmd : str + The command to execute. + display : str or sequence of str, optional + The text to add to the log file kept by `numpy.distutils`. + If not given, `display` is equal to `cmd`. + env : a dictionary for environment variables, optional + + Returns + ------- + None + + Raises + ------ + DistutilsExecError + If the command failed, i.e. the exit status was not 0. + + """ + env = env if env is not None else dict(os.environ) + if display is None: + display = cmd + if is_sequence(display): + display = ' '.join(list(display)) + log.info(display) + try: + if self.verbose: + subprocess.check_output(cmd, env=env) + else: + subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env) + except subprocess.CalledProcessError as exc: + o = exc.output + s = exc.returncode + except OSError as e: + # OSError doesn't have the same hooks for the exception + # output, but exec_command() historically would use an + # empty string for EnvironmentError (base class for + # OSError) + # o = b'' + # still that would make the end-user lost in translation! + o = f"\n\n{e}\n\n\n" + try: + o = o.encode(sys.stdout.encoding) + except AttributeError: + o = o.encode('utf8') + # status previously used by exec_command() for parent + # of OSError + s = 127 + else: + # use a convenience return here so that any kind of + # caught exception will execute the default code after the + # try / except block, which handles various exceptions + return None + + if is_sequence(cmd): + cmd = ' '.join(list(cmd)) + + if self.verbose: + forward_bytes_to_stdout(o) + + if re.search(b'Too many open files', o): + msg = '\nTry rerunning setup command until build succeeds.' + else: + msg = '' + raise DistutilsExecError('Command "%s" failed with exit status %d%s' % + (cmd, s, msg)) + +replace_method(CCompiler, 'spawn', CCompiler_spawn) + +def CCompiler_object_filenames(self, source_filenames, strip_dir=0, output_dir=''): + """ + Return the name of the object files for the given source files. + + Parameters + ---------- + source_filenames : list of str + The list of paths to source files. Paths can be either relative or + absolute, this is handled transparently. + strip_dir : bool, optional + Whether to strip the directory from the returned paths. If True, + the file name prepended by `output_dir` is returned. Default is False. + output_dir : str, optional + If given, this path is prepended to the returned paths to the + object files. + + Returns + ------- + obj_names : list of str + The list of paths to the object files corresponding to the source + files in `source_filenames`. + + """ + if output_dir is None: + output_dir = '' + obj_names = [] + for src_name in source_filenames: + base, ext = os.path.splitext(os.path.normpath(src_name)) + base = os.path.splitdrive(base)[1] # Chop off the drive + base = base[os.path.isabs(base):] # If abs, chop off leading / + if base.startswith('..'): + # Resolve starting relative path components, middle ones + # (if any) have been handled by os.path.normpath above. + i = base.rfind('..')+2 + d = base[:i] + d = os.path.basename(os.path.abspath(d)) + base = d + base[i:] + if ext not in self.src_extensions: + raise UnknownFileError("unknown file type '%s' (from '%s')" % (ext, src_name)) + if strip_dir: + base = os.path.basename(base) + obj_name = os.path.join(output_dir, base + self.obj_extension) + obj_names.append(obj_name) + return obj_names + +replace_method(CCompiler, 'object_filenames', CCompiler_object_filenames) + +def CCompiler_compile(self, sources, output_dir=None, macros=None, + include_dirs=None, debug=0, extra_preargs=None, + extra_postargs=None, depends=None): + """ + Compile one or more source files. + + Please refer to the Python distutils API reference for more details. + + Parameters + ---------- + sources : list of str + A list of filenames + output_dir : str, optional + Path to the output directory. + macros : list of tuples + A list of macro definitions. + include_dirs : list of str, optional + The directories to add to the default include file search path for + this compilation only. + debug : bool, optional + Whether or not to output debug symbols in or alongside the object + file(s). + extra_preargs, extra_postargs : ? + Extra pre- and post-arguments. + depends : list of str, optional + A list of file names that all targets depend on. + + Returns + ------- + objects : list of str + A list of object file names, one per source file `sources`. + + Raises + ------ + CompileError + If compilation fails. + + """ + global _job_semaphore + + jobs = get_num_build_jobs() + + # setup semaphore to not exceed number of compile jobs when parallelized at + # extension level (python >= 3.5) + with _global_lock: + if _job_semaphore is None: + _job_semaphore = threading.Semaphore(jobs) + + if not sources: + return [] + from numpy.distutils.fcompiler import (FCompiler, + FORTRAN_COMMON_FIXED_EXTENSIONS, + has_f90_header) + if isinstance(self, FCompiler): + display = [] + for fc in ['f77', 'f90', 'fix']: + fcomp = getattr(self, 'compiler_'+fc) + if fcomp is None: + continue + display.append("Fortran %s compiler: %s" % (fc, ' '.join(fcomp))) + display = '\n'.join(display) + else: + ccomp = self.compiler_so + display = "C compiler: %s\n" % (' '.join(ccomp),) + log.info(display) + macros, objects, extra_postargs, pp_opts, build = \ + self._setup_compile(output_dir, macros, include_dirs, sources, + depends, extra_postargs) + cc_args = self._get_cc_args(pp_opts, debug, extra_preargs) + display = "compile options: '%s'" % (' '.join(cc_args)) + if extra_postargs: + display += "\nextra options: '%s'" % (' '.join(extra_postargs)) + log.info(display) + + def single_compile(args): + obj, (src, ext) = args + if not _needs_build(obj, cc_args, extra_postargs, pp_opts): + return + + # check if we are currently already processing the same object + # happens when using the same source in multiple extensions + while True: + # need explicit lock as there is no atomic check and add with GIL + with _global_lock: + # file not being worked on, start working + if obj not in _processing_files: + _processing_files.add(obj) + break + # wait for the processing to end + time.sleep(0.1) + + try: + # retrieve slot from our #job semaphore and build + with _job_semaphore: + self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) + finally: + # register being done processing + with _global_lock: + _processing_files.remove(obj) + + + if isinstance(self, FCompiler): + objects_to_build = list(build.keys()) + f77_objects, other_objects = [], [] + for obj in objects: + if obj in objects_to_build: + src, ext = build[obj] + if self.compiler_type=='absoft': + obj = cyg2win32(obj) + src = cyg2win32(src) + if Path(src).suffix.lower() in FORTRAN_COMMON_FIXED_EXTENSIONS \ + and not has_f90_header(src): + f77_objects.append((obj, (src, ext))) + else: + other_objects.append((obj, (src, ext))) + + # f77 objects can be built in parallel + build_items = f77_objects + # build f90 modules serial, module files are generated during + # compilation and may be used by files later in the list so the + # ordering is important + for o in other_objects: + single_compile(o) + else: + build_items = build.items() + + if len(build) > 1 and jobs > 1: + # build parallel + from concurrent.futures import ThreadPoolExecutor + with ThreadPoolExecutor(jobs) as pool: + res = pool.map(single_compile, build_items) + list(res) # access result to raise errors + else: + # build serial + for o in build_items: + single_compile(o) + + # Return *all* object filenames, not just the ones we just built. + return objects + +replace_method(CCompiler, 'compile', CCompiler_compile) + +def CCompiler_customize_cmd(self, cmd, ignore=()): + """ + Customize compiler using distutils command. + + Parameters + ---------- + cmd : class instance + An instance inheriting from `distutils.cmd.Command`. + ignore : sequence of str, optional + List of `CCompiler` commands (without ``'set_'``) that should not be + altered. Strings that are checked for are: + ``('include_dirs', 'define', 'undef', 'libraries', 'library_dirs', + 'rpath', 'link_objects')``. + + Returns + ------- + None + + """ + log.info('customize %s using %s' % (self.__class__.__name__, + cmd.__class__.__name__)) + + if ( + hasattr(self, 'compiler') and + 'clang' in self.compiler[0] and + not (platform.machine() == 'arm64' and sys.platform == 'darwin') + ): + # clang defaults to a non-strict floating error point model. + # However, '-ftrapping-math' is not currently supported (2023-04-08) + # for macosx_arm64. + # Since NumPy and most Python libs give warnings for these, override: + self.compiler.append('-ftrapping-math') + self.compiler_so.append('-ftrapping-math') + + def allow(attr): + return getattr(cmd, attr, None) is not None and attr not in ignore + + if allow('include_dirs'): + self.set_include_dirs(cmd.include_dirs) + if allow('define'): + for (name, value) in cmd.define: + self.define_macro(name, value) + if allow('undef'): + for macro in cmd.undef: + self.undefine_macro(macro) + if allow('libraries'): + self.set_libraries(self.libraries + cmd.libraries) + if allow('library_dirs'): + self.set_library_dirs(self.library_dirs + cmd.library_dirs) + if allow('rpath'): + self.set_runtime_library_dirs(cmd.rpath) + if allow('link_objects'): + self.set_link_objects(cmd.link_objects) + +replace_method(CCompiler, 'customize_cmd', CCompiler_customize_cmd) + +def _compiler_to_string(compiler): + props = [] + mx = 0 + keys = list(compiler.executables.keys()) + for key in ['version', 'libraries', 'library_dirs', + 'object_switch', 'compile_switch', + 'include_dirs', 'define', 'undef', 'rpath', 'link_objects']: + if key not in keys: + keys.append(key) + for key in keys: + if hasattr(compiler, key): + v = getattr(compiler, key) + mx = max(mx, len(key)) + props.append((key, repr(v))) + fmt = '%-' + repr(mx+1) + 's = %s' + lines = [fmt % prop for prop in props] + return '\n'.join(lines) + +def CCompiler_show_customization(self): + """ + Print the compiler customizations to stdout. + + Parameters + ---------- + None + + Returns + ------- + None + + Notes + ----- + Printing is only done if the distutils log threshold is < 2. + + """ + try: + self.get_version() + except Exception: + pass + if log._global_log.threshold<2: + print('*'*80) + print(self.__class__) + print(_compiler_to_string(self)) + print('*'*80) + +replace_method(CCompiler, 'show_customization', CCompiler_show_customization) + +def CCompiler_customize(self, dist, need_cxx=0): + """ + Do any platform-specific customization of a compiler instance. + + This method calls `distutils.sysconfig.customize_compiler` for + platform-specific customization, as well as optionally remove a flag + to suppress spurious warnings in case C++ code is being compiled. + + Parameters + ---------- + dist : object + This parameter is not used for anything. + need_cxx : bool, optional + Whether or not C++ has to be compiled. If so (True), the + ``"-Wstrict-prototypes"`` option is removed to prevent spurious + warnings. Default is False. + + Returns + ------- + None + + Notes + ----- + All the default options used by distutils can be extracted with:: + + from distutils import sysconfig + sysconfig.get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', + 'CCSHARED', 'LDSHARED', 'SO') + + """ + # See FCompiler.customize for suggested usage. + log.info('customize %s' % (self.__class__.__name__)) + customize_compiler(self) + if need_cxx: + # In general, distutils uses -Wstrict-prototypes, but this option is + # not valid for C++ code, only for C. Remove it if it's there to + # avoid a spurious warning on every compilation. + try: + self.compiler_so.remove('-Wstrict-prototypes') + except (AttributeError, ValueError): + pass + + if hasattr(self, 'compiler') and 'cc' in self.compiler[0]: + if not self.compiler_cxx: + if self.compiler[0].startswith('gcc'): + a, b = 'gcc', 'g++' + else: + a, b = 'cc', 'c++' + self.compiler_cxx = [self.compiler[0].replace(a, b)]\ + + self.compiler[1:] + else: + if hasattr(self, 'compiler'): + log.warn("#### %s #######" % (self.compiler,)) + if not hasattr(self, 'compiler_cxx'): + log.warn('Missing compiler_cxx fix for ' + self.__class__.__name__) + + + # check if compiler supports gcc style automatic dependencies + # run on every extension so skip for known good compilers + if hasattr(self, 'compiler') and ('gcc' in self.compiler[0] or + 'g++' in self.compiler[0] or + 'clang' in self.compiler[0]): + self._auto_depends = True + elif os.name == 'posix': + import tempfile + import shutil + tmpdir = tempfile.mkdtemp() + try: + fn = os.path.join(tmpdir, "file.c") + with open(fn, "w") as f: + f.write("int a;\n") + self.compile([fn], output_dir=tmpdir, + extra_preargs=['-MMD', '-MF', fn + '.d']) + self._auto_depends = True + except CompileError: + self._auto_depends = False + finally: + shutil.rmtree(tmpdir) + + return + +replace_method(CCompiler, 'customize', CCompiler_customize) + +def simple_version_match(pat=r'[-.\d]+', ignore='', start=''): + """ + Simple matching of version numbers, for use in CCompiler and FCompiler. + + Parameters + ---------- + pat : str, optional + A regular expression matching version numbers. + Default is ``r'[-.\\d]+'``. + ignore : str, optional + A regular expression matching patterns to skip. + Default is ``''``, in which case nothing is skipped. + start : str, optional + A regular expression matching the start of where to start looking + for version numbers. + Default is ``''``, in which case searching is started at the + beginning of the version string given to `matcher`. + + Returns + ------- + matcher : callable + A function that is appropriate to use as the ``.version_match`` + attribute of a `CCompiler` class. `matcher` takes a single parameter, + a version string. + + """ + def matcher(self, version_string): + # version string may appear in the second line, so getting rid + # of new lines: + version_string = version_string.replace('\n', ' ') + pos = 0 + if start: + m = re.match(start, version_string) + if not m: + return None + pos = m.end() + while True: + m = re.search(pat, version_string[pos:]) + if not m: + return None + if ignore and re.match(ignore, m.group(0)): + pos = m.end() + continue + break + return m.group(0) + return matcher + +def CCompiler_get_version(self, force=False, ok_status=[0]): + """ + Return compiler version, or None if compiler is not available. + + Parameters + ---------- + force : bool, optional + If True, force a new determination of the version, even if the + compiler already has a version attribute. Default is False. + ok_status : list of int, optional + The list of status values returned by the version look-up process + for which a version string is returned. If the status value is not + in `ok_status`, None is returned. Default is ``[0]``. + + Returns + ------- + version : str or None + Version string, in the format of `distutils.version.LooseVersion`. + + """ + if not force and hasattr(self, 'version'): + return self.version + self.find_executables() + try: + version_cmd = self.version_cmd + except AttributeError: + return None + if not version_cmd or not version_cmd[0]: + return None + try: + matcher = self.version_match + except AttributeError: + try: + pat = self.version_pattern + except AttributeError: + return None + def matcher(version_string): + m = re.match(pat, version_string) + if not m: + return None + version = m.group('version') + return version + + try: + output = subprocess.check_output(version_cmd, stderr=subprocess.STDOUT) + except subprocess.CalledProcessError as exc: + output = exc.output + status = exc.returncode + except OSError: + # match the historical returns for a parent + # exception class caught by exec_command() + status = 127 + output = b'' + else: + # output isn't actually a filepath but we do this + # for now to match previous distutils behavior + output = filepath_from_subprocess_output(output) + status = 0 + + version = None + if status in ok_status: + version = matcher(output) + if version: + version = LooseVersion(version) + self.version = version + return version + +replace_method(CCompiler, 'get_version', CCompiler_get_version) + +def CCompiler_cxx_compiler(self): + """ + Return the C++ compiler. + + Parameters + ---------- + None + + Returns + ------- + cxx : class instance + The C++ compiler, as a `CCompiler` instance. + + """ + if self.compiler_type in ('msvc', 'intelw', 'intelemw'): + return self + + cxx = copy(self) + cxx.compiler_cxx = cxx.compiler_cxx + cxx.compiler_so = [cxx.compiler_cxx[0]] + \ + sanitize_cxx_flags(cxx.compiler_so[1:]) + if (sys.platform.startswith(('aix', 'os400')) and + 'ld_so_aix' in cxx.linker_so[0]): + # AIX needs the ld_so_aix script included with Python + cxx.linker_so = [cxx.linker_so[0], cxx.compiler_cxx[0]] \ + + cxx.linker_so[2:] + if sys.platform.startswith('os400'): + #This is required by i 7.4 and prievous for PRId64 in printf() call. + cxx.compiler_so.append('-D__STDC_FORMAT_MACROS') + #This a bug of gcc10.3, which failed to handle the TLS init. + cxx.compiler_so.append('-fno-extern-tls-init') + cxx.linker_so.append('-fno-extern-tls-init') + else: + cxx.linker_so = [cxx.compiler_cxx[0]] + cxx.linker_so[1:] + return cxx + +replace_method(CCompiler, 'cxx_compiler', CCompiler_cxx_compiler) + +compiler_class['intel'] = ('intelccompiler', 'IntelCCompiler', + "Intel C Compiler for 32-bit applications") +compiler_class['intele'] = ('intelccompiler', 'IntelItaniumCCompiler', + "Intel C Itanium Compiler for Itanium-based applications") +compiler_class['intelem'] = ('intelccompiler', 'IntelEM64TCCompiler', + "Intel C Compiler for 64-bit applications") +compiler_class['intelw'] = ('intelccompiler', 'IntelCCompilerW', + "Intel C Compiler for 32-bit applications on Windows") +compiler_class['intelemw'] = ('intelccompiler', 'IntelEM64TCCompilerW', + "Intel C Compiler for 64-bit applications on Windows") +compiler_class['pathcc'] = ('pathccompiler', 'PathScaleCCompiler', + "PathScale Compiler for SiCortex-based applications") +compiler_class['arm'] = ('armccompiler', 'ArmCCompiler', + "Arm C Compiler") +compiler_class['fujitsu'] = ('fujitsuccompiler', 'FujitsuCCompiler', + "Fujitsu C Compiler") + +ccompiler._default_compilers += (('linux.*', 'intel'), + ('linux.*', 'intele'), + ('linux.*', 'intelem'), + ('linux.*', 'pathcc'), + ('nt', 'intelw'), + ('nt', 'intelemw')) + +if sys.platform == 'win32': + compiler_class['mingw32'] = ('mingw32ccompiler', 'Mingw32CCompiler', + "Mingw32 port of GNU C Compiler for Win32"\ + "(for MSC built Python)") + if mingw32(): + # On windows platforms, we want to default to mingw32 (gcc) + # because msvc can't build blitz stuff. + log.info('Setting mingw32 as default compiler for nt.') + ccompiler._default_compilers = (('nt', 'mingw32'),) \ + + ccompiler._default_compilers + + +_distutils_new_compiler = new_compiler +def new_compiler (plat=None, + compiler=None, + verbose=None, + dry_run=0, + force=0): + # Try first C compilers from numpy.distutils. + if verbose is None: + verbose = log.get_threshold() <= log.INFO + if plat is None: + plat = os.name + try: + if compiler is None: + compiler = get_default_compiler(plat) + (module_name, class_name, long_description) = compiler_class[compiler] + except KeyError: + msg = "don't know how to compile C/C++ code on platform '%s'" % plat + if compiler is not None: + msg = msg + " with '%s' compiler" % compiler + raise DistutilsPlatformError(msg) + module_name = "numpy.distutils." + module_name + try: + __import__ (module_name) + except ImportError as e: + msg = str(e) + log.info('%s in numpy.distutils; trying from distutils', + str(msg)) + module_name = module_name[6:] + try: + __import__(module_name) + except ImportError as e: + msg = str(e) + raise DistutilsModuleError("can't compile C/C++ code: unable to load module '%s'" % \ + module_name) + try: + module = sys.modules[module_name] + klass = vars(module)[class_name] + except KeyError: + raise DistutilsModuleError(("can't compile C/C++ code: unable to find class '%s' " + + "in module '%s'") % (class_name, module_name)) + compiler = klass(None, dry_run, force) + compiler.verbose = verbose + log.debug('new_compiler returns %s' % (klass)) + return compiler + +ccompiler.new_compiler = new_compiler + +_distutils_gen_lib_options = gen_lib_options +def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries): + # the version of this function provided by CPython allows the following + # to return lists, which are unpacked automatically: + # - compiler.runtime_library_dir_option + # our version extends the behavior to: + # - compiler.library_dir_option + # - compiler.library_option + # - compiler.find_library_file + r = _distutils_gen_lib_options(compiler, library_dirs, + runtime_library_dirs, libraries) + lib_opts = [] + for i in r: + if is_sequence(i): + lib_opts.extend(list(i)) + else: + lib_opts.append(i) + return lib_opts +ccompiler.gen_lib_options = gen_lib_options + +# Also fix up the various compiler modules, which do +# from distutils.ccompiler import gen_lib_options +# Don't bother with mwerks, as we don't support Classic Mac. +for _cc in ['msvc9', 'msvc', '_msvc', 'bcpp', 'cygwinc', 'emxc', 'unixc']: + _m = sys.modules.get('distutils.' + _cc + 'compiler') + if _m is not None: + setattr(_m, 'gen_lib_options', gen_lib_options) + diff --git a/shared/package-files/e8/e893ebd01ab315f2c455bec493f58ed027a351cc2ad2322bacdc2f4869077aeb/blob b/shared/package-files/e8/e893ebd01ab315f2c455bec493f58ed027a351cc2ad2322bacdc2f4869077aeb/blob new file mode 100644 index 0000000000000000000000000000000000000000..cb426ce7bc8dee34ae7db425c0de526795599ac9 --- /dev/null +++ b/shared/package-files/e8/e893ebd01ab315f2c455bec493f58ed027a351cc2ad2322bacdc2f4869077aeb/blob @@ -0,0 +1,348 @@ +from __future__ import annotations + +import sys +from typing import TYPE_CHECKING + +from prompt_toolkit.data_structures import Point +from prompt_toolkit.key_binding.key_processor import KeyPress, KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.mouse_events import ( + MouseButton, + MouseEvent, + MouseEventType, + MouseModifier, +) + +from ..key_bindings import KeyBindings + +if TYPE_CHECKING: + from prompt_toolkit.key_binding.key_bindings import NotImplementedOrNone + +__all__ = [ + "load_mouse_bindings", +] + +E = KeyPressEvent + +# fmt: off +SCROLL_UP = MouseEventType.SCROLL_UP +SCROLL_DOWN = MouseEventType.SCROLL_DOWN +MOUSE_DOWN = MouseEventType.MOUSE_DOWN +MOUSE_MOVE = MouseEventType.MOUSE_MOVE +MOUSE_UP = MouseEventType.MOUSE_UP + +NO_MODIFIER : frozenset[MouseModifier] = frozenset() +SHIFT : frozenset[MouseModifier] = frozenset({MouseModifier.SHIFT}) +ALT : frozenset[MouseModifier] = frozenset({MouseModifier.ALT}) +SHIFT_ALT : frozenset[MouseModifier] = frozenset({MouseModifier.SHIFT, MouseModifier.ALT}) +CONTROL : frozenset[MouseModifier] = frozenset({MouseModifier.CONTROL}) +SHIFT_CONTROL : frozenset[MouseModifier] = frozenset({MouseModifier.SHIFT, MouseModifier.CONTROL}) +ALT_CONTROL : frozenset[MouseModifier] = frozenset({MouseModifier.ALT, MouseModifier.CONTROL}) +SHIFT_ALT_CONTROL: frozenset[MouseModifier] = frozenset({MouseModifier.SHIFT, MouseModifier.ALT, MouseModifier.CONTROL}) +UNKNOWN_MODIFIER : frozenset[MouseModifier] = frozenset() + +LEFT = MouseButton.LEFT +MIDDLE = MouseButton.MIDDLE +RIGHT = MouseButton.RIGHT +NO_BUTTON = MouseButton.NONE +UNKNOWN_BUTTON = MouseButton.UNKNOWN + +xterm_sgr_mouse_events = { + ( 0, "m") : (LEFT, MOUSE_UP, NO_MODIFIER), # left_up 0+ + + =0 + ( 4, "m") : (LEFT, MOUSE_UP, SHIFT), # left_up Shift 0+4+ + =4 + ( 8, "m") : (LEFT, MOUSE_UP, ALT), # left_up Alt 0+ +8+ =8 + (12, "m") : (LEFT, MOUSE_UP, SHIFT_ALT), # left_up Shift Alt 0+4+8+ =12 + (16, "m") : (LEFT, MOUSE_UP, CONTROL), # left_up Control 0+ + +16=16 + (20, "m") : (LEFT, MOUSE_UP, SHIFT_CONTROL), # left_up Shift Control 0+4+ +16=20 + (24, "m") : (LEFT, MOUSE_UP, ALT_CONTROL), # left_up Alt Control 0+ +8+16=24 + (28, "m") : (LEFT, MOUSE_UP, SHIFT_ALT_CONTROL), # left_up Shift Alt Control 0+4+8+16=28 + + ( 1, "m") : (MIDDLE, MOUSE_UP, NO_MODIFIER), # middle_up 1+ + + =1 + ( 5, "m") : (MIDDLE, MOUSE_UP, SHIFT), # middle_up Shift 1+4+ + =5 + ( 9, "m") : (MIDDLE, MOUSE_UP, ALT), # middle_up Alt 1+ +8+ =9 + (13, "m") : (MIDDLE, MOUSE_UP, SHIFT_ALT), # middle_up Shift Alt 1+4+8+ =13 + (17, "m") : (MIDDLE, MOUSE_UP, CONTROL), # middle_up Control 1+ + +16=17 + (21, "m") : (MIDDLE, MOUSE_UP, SHIFT_CONTROL), # middle_up Shift Control 1+4+ +16=21 + (25, "m") : (MIDDLE, MOUSE_UP, ALT_CONTROL), # middle_up Alt Control 1+ +8+16=25 + (29, "m") : (MIDDLE, MOUSE_UP, SHIFT_ALT_CONTROL), # middle_up Shift Alt Control 1+4+8+16=29 + + ( 2, "m") : (RIGHT, MOUSE_UP, NO_MODIFIER), # right_up 2+ + + =2 + ( 6, "m") : (RIGHT, MOUSE_UP, SHIFT), # right_up Shift 2+4+ + =6 + (10, "m") : (RIGHT, MOUSE_UP, ALT), # right_up Alt 2+ +8+ =10 + (14, "m") : (RIGHT, MOUSE_UP, SHIFT_ALT), # right_up Shift Alt 2+4+8+ =14 + (18, "m") : (RIGHT, MOUSE_UP, CONTROL), # right_up Control 2+ + +16=18 + (22, "m") : (RIGHT, MOUSE_UP, SHIFT_CONTROL), # right_up Shift Control 2+4+ +16=22 + (26, "m") : (RIGHT, MOUSE_UP, ALT_CONTROL), # right_up Alt Control 2+ +8+16=26 + (30, "m") : (RIGHT, MOUSE_UP, SHIFT_ALT_CONTROL), # right_up Shift Alt Control 2+4+8+16=30 + + ( 0, "M") : (LEFT, MOUSE_DOWN, NO_MODIFIER), # left_down 0+ + + =0 + ( 4, "M") : (LEFT, MOUSE_DOWN, SHIFT), # left_down Shift 0+4+ + =4 + ( 8, "M") : (LEFT, MOUSE_DOWN, ALT), # left_down Alt 0+ +8+ =8 + (12, "M") : (LEFT, MOUSE_DOWN, SHIFT_ALT), # left_down Shift Alt 0+4+8+ =12 + (16, "M") : (LEFT, MOUSE_DOWN, CONTROL), # left_down Control 0+ + +16=16 + (20, "M") : (LEFT, MOUSE_DOWN, SHIFT_CONTROL), # left_down Shift Control 0+4+ +16=20 + (24, "M") : (LEFT, MOUSE_DOWN, ALT_CONTROL), # left_down Alt Control 0+ +8+16=24 + (28, "M") : (LEFT, MOUSE_DOWN, SHIFT_ALT_CONTROL), # left_down Shift Alt Control 0+4+8+16=28 + + ( 1, "M") : (MIDDLE, MOUSE_DOWN, NO_MODIFIER), # middle_down 1+ + + =1 + ( 5, "M") : (MIDDLE, MOUSE_DOWN, SHIFT), # middle_down Shift 1+4+ + =5 + ( 9, "M") : (MIDDLE, MOUSE_DOWN, ALT), # middle_down Alt 1+ +8+ =9 + (13, "M") : (MIDDLE, MOUSE_DOWN, SHIFT_ALT), # middle_down Shift Alt 1+4+8+ =13 + (17, "M") : (MIDDLE, MOUSE_DOWN, CONTROL), # middle_down Control 1+ + +16=17 + (21, "M") : (MIDDLE, MOUSE_DOWN, SHIFT_CONTROL), # middle_down Shift Control 1+4+ +16=21 + (25, "M") : (MIDDLE, MOUSE_DOWN, ALT_CONTROL), # middle_down Alt Control 1+ +8+16=25 + (29, "M") : (MIDDLE, MOUSE_DOWN, SHIFT_ALT_CONTROL), # middle_down Shift Alt Control 1+4+8+16=29 + + ( 2, "M") : (RIGHT, MOUSE_DOWN, NO_MODIFIER), # right_down 2+ + + =2 + ( 6, "M") : (RIGHT, MOUSE_DOWN, SHIFT), # right_down Shift 2+4+ + =6 + (10, "M") : (RIGHT, MOUSE_DOWN, ALT), # right_down Alt 2+ +8+ =10 + (14, "M") : (RIGHT, MOUSE_DOWN, SHIFT_ALT), # right_down Shift Alt 2+4+8+ =14 + (18, "M") : (RIGHT, MOUSE_DOWN, CONTROL), # right_down Control 2+ + +16=18 + (22, "M") : (RIGHT, MOUSE_DOWN, SHIFT_CONTROL), # right_down Shift Control 2+4+ +16=22 + (26, "M") : (RIGHT, MOUSE_DOWN, ALT_CONTROL), # right_down Alt Control 2+ +8+16=26 + (30, "M") : (RIGHT, MOUSE_DOWN, SHIFT_ALT_CONTROL), # right_down Shift Alt Control 2+4+8+16=30 + + (32, "M") : (LEFT, MOUSE_MOVE, NO_MODIFIER), # left_drag 32+ + + =32 + (36, "M") : (LEFT, MOUSE_MOVE, SHIFT), # left_drag Shift 32+4+ + =36 + (40, "M") : (LEFT, MOUSE_MOVE, ALT), # left_drag Alt 32+ +8+ =40 + (44, "M") : (LEFT, MOUSE_MOVE, SHIFT_ALT), # left_drag Shift Alt 32+4+8+ =44 + (48, "M") : (LEFT, MOUSE_MOVE, CONTROL), # left_drag Control 32+ + +16=48 + (52, "M") : (LEFT, MOUSE_MOVE, SHIFT_CONTROL), # left_drag Shift Control 32+4+ +16=52 + (56, "M") : (LEFT, MOUSE_MOVE, ALT_CONTROL), # left_drag Alt Control 32+ +8+16=56 + (60, "M") : (LEFT, MOUSE_MOVE, SHIFT_ALT_CONTROL), # left_drag Shift Alt Control 32+4+8+16=60 + + (33, "M") : (MIDDLE, MOUSE_MOVE, NO_MODIFIER), # middle_drag 33+ + + =33 + (37, "M") : (MIDDLE, MOUSE_MOVE, SHIFT), # middle_drag Shift 33+4+ + =37 + (41, "M") : (MIDDLE, MOUSE_MOVE, ALT), # middle_drag Alt 33+ +8+ =41 + (45, "M") : (MIDDLE, MOUSE_MOVE, SHIFT_ALT), # middle_drag Shift Alt 33+4+8+ =45 + (49, "M") : (MIDDLE, MOUSE_MOVE, CONTROL), # middle_drag Control 33+ + +16=49 + (53, "M") : (MIDDLE, MOUSE_MOVE, SHIFT_CONTROL), # middle_drag Shift Control 33+4+ +16=53 + (57, "M") : (MIDDLE, MOUSE_MOVE, ALT_CONTROL), # middle_drag Alt Control 33+ +8+16=57 + (61, "M") : (MIDDLE, MOUSE_MOVE, SHIFT_ALT_CONTROL), # middle_drag Shift Alt Control 33+4+8+16=61 + + (34, "M") : (RIGHT, MOUSE_MOVE, NO_MODIFIER), # right_drag 34+ + + =34 + (38, "M") : (RIGHT, MOUSE_MOVE, SHIFT), # right_drag Shift 34+4+ + =38 + (42, "M") : (RIGHT, MOUSE_MOVE, ALT), # right_drag Alt 34+ +8+ =42 + (46, "M") : (RIGHT, MOUSE_MOVE, SHIFT_ALT), # right_drag Shift Alt 34+4+8+ =46 + (50, "M") : (RIGHT, MOUSE_MOVE, CONTROL), # right_drag Control 34+ + +16=50 + (54, "M") : (RIGHT, MOUSE_MOVE, SHIFT_CONTROL), # right_drag Shift Control 34+4+ +16=54 + (58, "M") : (RIGHT, MOUSE_MOVE, ALT_CONTROL), # right_drag Alt Control 34+ +8+16=58 + (62, "M") : (RIGHT, MOUSE_MOVE, SHIFT_ALT_CONTROL), # right_drag Shift Alt Control 34+4+8+16=62 + + (35, "M") : (NO_BUTTON, MOUSE_MOVE, NO_MODIFIER), # none_drag 35+ + + =35 + (39, "M") : (NO_BUTTON, MOUSE_MOVE, SHIFT), # none_drag Shift 35+4+ + =39 + (43, "M") : (NO_BUTTON, MOUSE_MOVE, ALT), # none_drag Alt 35+ +8+ =43 + (47, "M") : (NO_BUTTON, MOUSE_MOVE, SHIFT_ALT), # none_drag Shift Alt 35+4+8+ =47 + (51, "M") : (NO_BUTTON, MOUSE_MOVE, CONTROL), # none_drag Control 35+ + +16=51 + (55, "M") : (NO_BUTTON, MOUSE_MOVE, SHIFT_CONTROL), # none_drag Shift Control 35+4+ +16=55 + (59, "M") : (NO_BUTTON, MOUSE_MOVE, ALT_CONTROL), # none_drag Alt Control 35+ +8+16=59 + (63, "M") : (NO_BUTTON, MOUSE_MOVE, SHIFT_ALT_CONTROL), # none_drag Shift Alt Control 35+4+8+16=63 + + (64, "M") : (NO_BUTTON, SCROLL_UP, NO_MODIFIER), # scroll_up 64+ + + =64 + (68, "M") : (NO_BUTTON, SCROLL_UP, SHIFT), # scroll_up Shift 64+4+ + =68 + (72, "M") : (NO_BUTTON, SCROLL_UP, ALT), # scroll_up Alt 64+ +8+ =72 + (76, "M") : (NO_BUTTON, SCROLL_UP, SHIFT_ALT), # scroll_up Shift Alt 64+4+8+ =76 + (80, "M") : (NO_BUTTON, SCROLL_UP, CONTROL), # scroll_up Control 64+ + +16=80 + (84, "M") : (NO_BUTTON, SCROLL_UP, SHIFT_CONTROL), # scroll_up Shift Control 64+4+ +16=84 + (88, "M") : (NO_BUTTON, SCROLL_UP, ALT_CONTROL), # scroll_up Alt Control 64+ +8+16=88 + (92, "M") : (NO_BUTTON, SCROLL_UP, SHIFT_ALT_CONTROL), # scroll_up Shift Alt Control 64+4+8+16=92 + + (65, "M") : (NO_BUTTON, SCROLL_DOWN, NO_MODIFIER), # scroll_down 64+ + + =65 + (69, "M") : (NO_BUTTON, SCROLL_DOWN, SHIFT), # scroll_down Shift 64+4+ + =69 + (73, "M") : (NO_BUTTON, SCROLL_DOWN, ALT), # scroll_down Alt 64+ +8+ =73 + (77, "M") : (NO_BUTTON, SCROLL_DOWN, SHIFT_ALT), # scroll_down Shift Alt 64+4+8+ =77 + (81, "M") : (NO_BUTTON, SCROLL_DOWN, CONTROL), # scroll_down Control 64+ + +16=81 + (85, "M") : (NO_BUTTON, SCROLL_DOWN, SHIFT_CONTROL), # scroll_down Shift Control 64+4+ +16=85 + (89, "M") : (NO_BUTTON, SCROLL_DOWN, ALT_CONTROL), # scroll_down Alt Control 64+ +8+16=89 + (93, "M") : (NO_BUTTON, SCROLL_DOWN, SHIFT_ALT_CONTROL), # scroll_down Shift Alt Control 64+4+8+16=93 +} + +typical_mouse_events = { + 32: (LEFT , MOUSE_DOWN , UNKNOWN_MODIFIER), + 33: (MIDDLE , MOUSE_DOWN , UNKNOWN_MODIFIER), + 34: (RIGHT , MOUSE_DOWN , UNKNOWN_MODIFIER), + 35: (UNKNOWN_BUTTON , MOUSE_UP , UNKNOWN_MODIFIER), + + 64: (LEFT , MOUSE_MOVE , UNKNOWN_MODIFIER), + 65: (MIDDLE , MOUSE_MOVE , UNKNOWN_MODIFIER), + 66: (RIGHT , MOUSE_MOVE , UNKNOWN_MODIFIER), + 67: (NO_BUTTON , MOUSE_MOVE , UNKNOWN_MODIFIER), + + 96: (NO_BUTTON , SCROLL_UP , UNKNOWN_MODIFIER), + 97: (NO_BUTTON , SCROLL_DOWN, UNKNOWN_MODIFIER), +} + +urxvt_mouse_events={ + 32: (UNKNOWN_BUTTON, MOUSE_DOWN , UNKNOWN_MODIFIER), + 35: (UNKNOWN_BUTTON, MOUSE_UP , UNKNOWN_MODIFIER), + 96: (NO_BUTTON , SCROLL_UP , UNKNOWN_MODIFIER), + 97: (NO_BUTTON , SCROLL_DOWN, UNKNOWN_MODIFIER), +} +# fmt:on + + +def load_mouse_bindings() -> KeyBindings: + """ + Key bindings, required for mouse support. + (Mouse events enter through the key binding system.) + """ + key_bindings = KeyBindings() + + @key_bindings.add(Keys.Vt100MouseEvent) + def _(event: E) -> NotImplementedOrNone: + """ + Handling of incoming mouse event. + """ + # TypicaL: "eSC[MaB*" + # Urxvt: "Esc[96;14;13M" + # Xterm SGR: "Esc[<64;85;12M" + + # Parse incoming packet. + if event.data[2] == "M": + # Typical. + mouse_event, x, y = map(ord, event.data[3:]) + + # TODO: Is it possible to add modifiers here? + mouse_button, mouse_event_type, mouse_modifiers = typical_mouse_events[ + mouse_event + ] + + # Handle situations where `PosixStdinReader` used surrogateescapes. + if x >= 0xDC00: + x -= 0xDC00 + if y >= 0xDC00: + y -= 0xDC00 + + x -= 32 + y -= 32 + else: + # Urxvt and Xterm SGR. + # When the '<' is not present, we are not using the Xterm SGR mode, + # but Urxvt instead. + data = event.data[2:] + if data[:1] == "<": + sgr = True + data = data[1:] + else: + sgr = False + + # Extract coordinates. + mouse_event, x, y = map(int, data[:-1].split(";")) + m = data[-1] + + # Parse event type. + if sgr: + try: + ( + mouse_button, + mouse_event_type, + mouse_modifiers, + ) = xterm_sgr_mouse_events[mouse_event, m] + except KeyError: + return NotImplemented + + else: + # Some other terminals, like urxvt, Hyper terminal, ... + ( + mouse_button, + mouse_event_type, + mouse_modifiers, + ) = urxvt_mouse_events.get( + mouse_event, (UNKNOWN_BUTTON, MOUSE_MOVE, UNKNOWN_MODIFIER) + ) + + x -= 1 + y -= 1 + + # Only handle mouse events when we know the window height. + if event.app.renderer.height_is_known and mouse_event_type is not None: + # Take region above the layout into account. The reported + # coordinates are absolute to the visible part of the terminal. + from prompt_toolkit.renderer import HeightIsUnknownError + + try: + y -= event.app.renderer.rows_above_layout + except HeightIsUnknownError: + return NotImplemented + + # Call the mouse handler from the renderer. + + # Note: This can return `NotImplemented` if no mouse handler was + # found for this position, or if no repainting needs to + # happen. this way, we avoid excessive repaints during mouse + # movements. + handler = event.app.renderer.mouse_handlers.mouse_handlers[y][x] + return handler( + MouseEvent( + position=Point(x=x, y=y), + event_type=mouse_event_type, + button=mouse_button, + modifiers=mouse_modifiers, + ) + ) + + return NotImplemented + + @key_bindings.add(Keys.ScrollUp) + def _scroll_up(event: E) -> None: + """ + Scroll up event without cursor position. + """ + # We don't receive a cursor position, so we don't know which window to + # scroll. Just send an 'up' key press instead. + event.key_processor.feed(KeyPress(Keys.Up), first=True) + + @key_bindings.add(Keys.ScrollDown) + def _scroll_down(event: E) -> None: + """ + Scroll down event without cursor position. + """ + event.key_processor.feed(KeyPress(Keys.Down), first=True) + + @key_bindings.add(Keys.WindowsMouseEvent) + def _mouse(event: E) -> NotImplementedOrNone: + """ + Handling of mouse events for Windows. + """ + # This key binding should only exist for Windows. + if sys.platform == "win32": + # Parse data. + pieces = event.data.split(";") + + button = MouseButton(pieces[0]) + event_type = MouseEventType(pieces[1]) + x = int(pieces[2]) + y = int(pieces[3]) + + # Make coordinates absolute to the visible part of the terminal. + output = event.app.renderer.output + + from prompt_toolkit.output.win32 import Win32Output + from prompt_toolkit.output.windows10 import Windows10_Output + + if isinstance(output, (Win32Output, Windows10_Output)): + screen_buffer_info = output.get_win32_screen_buffer_info() + rows_above_cursor = ( + screen_buffer_info.dwCursorPosition.Y + - event.app.renderer._cursor_pos.y + ) + y -= rows_above_cursor + + # Call the mouse event handler. + # (Can return `NotImplemented`.) + handler = event.app.renderer.mouse_handlers.mouse_handlers[y][x] + + return handler( + MouseEvent( + position=Point(x=x, y=y), + event_type=event_type, + button=button, + modifiers=UNKNOWN_MODIFIER, + ) + ) + + # No mouse handler found. Return `NotImplemented` so that we don't + # invalidate the UI. + return NotImplemented + + return key_bindings diff --git a/shared/package-files/e8/e8973a5b5783641cf216ed49d18adc74d155042f9120dba3666bde4a707c471c/blob b/shared/package-files/e8/e8973a5b5783641cf216ed49d18adc74d155042f9120dba3666bde4a707c471c/blob new file mode 100644 index 0000000000000000000000000000000000000000..12219f124aeca6d3d7edd2621071f100c7ecd90a --- /dev/null +++ b/shared/package-files/e8/e8973a5b5783641cf216ed49d18adc74d155042f9120dba3666bde4a707c471c/blob @@ -0,0 +1,299 @@ +# exceptions.py + +import re +import sys +import typing + +from .util import ( + col, + line, + lineno, + _collapse_string_to_ranges, + replaced_by_pep8, +) +from .unicode import pyparsing_unicode as ppu + + +class ExceptionWordUnicode(ppu.Latin1, ppu.LatinA, ppu.LatinB, ppu.Greek, ppu.Cyrillic): + pass + + +_extract_alphanums = _collapse_string_to_ranges(ExceptionWordUnicode.alphanums) +_exception_word_extractor = re.compile("([" + _extract_alphanums + "]{1,16})|.") + + +class ParseBaseException(Exception): + """base exception class for all parsing runtime exceptions""" + + loc: int + msg: str + pstr: str + parser_element: typing.Any # "ParserElement" + args: typing.Tuple[str, int, typing.Optional[str]] + + __slots__ = ( + "loc", + "msg", + "pstr", + "parser_element", + "args", + ) + + # Performance tuning: we construct a *lot* of these, so keep this + # constructor as small and fast as possible + def __init__( + self, + pstr: str, + loc: int = 0, + msg: typing.Optional[str] = None, + elem=None, + ): + self.loc = loc + if msg is None: + self.msg = pstr + self.pstr = "" + else: + self.msg = msg + self.pstr = pstr + self.parser_element = elem + self.args = (pstr, loc, msg) + + @staticmethod + def explain_exception(exc, depth=16): + """ + Method to take an exception and translate the Python internal traceback into a list + of the pyparsing expressions that caused the exception to be raised. + + Parameters: + + - exc - exception raised during parsing (need not be a ParseException, in support + of Python exceptions that might be raised in a parse action) + - depth (default=16) - number of levels back in the stack trace to list expression + and function names; if None, the full stack trace names will be listed; if 0, only + the failing input line, marker, and exception string will be shown + + Returns a multi-line string listing the ParserElements and/or function names in the + exception's stack trace. + """ + import inspect + from .core import ParserElement + + if depth is None: + depth = sys.getrecursionlimit() + ret = [] + if isinstance(exc, ParseBaseException): + ret.append(exc.line) + ret.append(" " * (exc.column - 1) + "^") + ret.append(f"{type(exc).__name__}: {exc}") + + if depth > 0: + callers = inspect.getinnerframes(exc.__traceback__, context=depth) + seen = set() + for i, ff in enumerate(callers[-depth:]): + frm = ff[0] + + f_self = frm.f_locals.get("self", None) + if isinstance(f_self, ParserElement): + if not frm.f_code.co_name.startswith( + ("parseImpl", "_parseNoCache") + ): + continue + if id(f_self) in seen: + continue + seen.add(id(f_self)) + + self_type = type(f_self) + ret.append( + f"{self_type.__module__}.{self_type.__name__} - {f_self}" + ) + + elif f_self is not None: + self_type = type(f_self) + ret.append(f"{self_type.__module__}.{self_type.__name__}") + + else: + code = frm.f_code + if code.co_name in ("wrapper", ""): + continue + + ret.append(code.co_name) + + depth -= 1 + if not depth: + break + + return "\n".join(ret) + + @classmethod + def _from_exception(cls, pe): + """ + internal factory method to simplify creating one type of ParseException + from another - avoids having __init__ signature conflicts among subclasses + """ + return cls(pe.pstr, pe.loc, pe.msg, pe.parser_element) + + @property + def line(self) -> str: + """ + Return the line of text where the exception occurred. + """ + return line(self.loc, self.pstr) + + @property + def lineno(self) -> int: + """ + Return the 1-based line number of text where the exception occurred. + """ + return lineno(self.loc, self.pstr) + + @property + def col(self) -> int: + """ + Return the 1-based column on the line of text where the exception occurred. + """ + return col(self.loc, self.pstr) + + @property + def column(self) -> int: + """ + Return the 1-based column on the line of text where the exception occurred. + """ + return col(self.loc, self.pstr) + + # pre-PEP8 compatibility + @property + def parserElement(self): + return self.parser_element + + @parserElement.setter + def parserElement(self, elem): + self.parser_element = elem + + def __str__(self) -> str: + if self.pstr: + if self.loc >= len(self.pstr): + foundstr = ", found end of text" + else: + # pull out next word at error location + found_match = _exception_word_extractor.match(self.pstr, self.loc) + if found_match is not None: + found = found_match.group(0) + else: + found = self.pstr[self.loc : self.loc + 1] + foundstr = (", found %r" % found).replace(r"\\", "\\") + else: + foundstr = "" + return f"{self.msg}{foundstr} (at char {self.loc}), (line:{self.lineno}, col:{self.column})" + + def __repr__(self): + return str(self) + + def mark_input_line( + self, marker_string: typing.Optional[str] = None, *, markerString: str = ">!<" + ) -> str: + """ + Extracts the exception line from the input string, and marks + the location of the exception with a special symbol. + """ + markerString = marker_string if marker_string is not None else markerString + line_str = self.line + line_column = self.column - 1 + if markerString: + line_str = "".join( + (line_str[:line_column], markerString, line_str[line_column:]) + ) + return line_str.strip() + + def explain(self, depth=16) -> str: + """ + Method to translate the Python internal traceback into a list + of the pyparsing expressions that caused the exception to be raised. + + Parameters: + + - depth (default=16) - number of levels back in the stack trace to list expression + and function names; if None, the full stack trace names will be listed; if 0, only + the failing input line, marker, and exception string will be shown + + Returns a multi-line string listing the ParserElements and/or function names in the + exception's stack trace. + + Example:: + + expr = pp.Word(pp.nums) * 3 + try: + expr.parse_string("123 456 A789") + except pp.ParseException as pe: + print(pe.explain(depth=0)) + + prints:: + + 123 456 A789 + ^ + ParseException: Expected W:(0-9), found 'A' (at char 8), (line:1, col:9) + + Note: the diagnostic output will include string representations of the expressions + that failed to parse. These representations will be more helpful if you use `set_name` to + give identifiable names to your expressions. Otherwise they will use the default string + forms, which may be cryptic to read. + + Note: pyparsing's default truncation of exception tracebacks may also truncate the + stack of expressions that are displayed in the ``explain`` output. To get the full listing + of parser expressions, you may have to set ``ParserElement.verbose_stacktrace = True`` + """ + return self.explain_exception(self, depth) + + # fmt: off + @replaced_by_pep8(mark_input_line) + def markInputline(self): ... + # fmt: on + + +class ParseException(ParseBaseException): + """ + Exception thrown when a parse expression doesn't match the input string + + Example:: + + try: + Word(nums).set_name("integer").parse_string("ABC") + except ParseException as pe: + print(pe) + print("column: {}".format(pe.column)) + + prints:: + + Expected integer (at char 0), (line:1, col:1) + column: 1 + + """ + + +class ParseFatalException(ParseBaseException): + """ + User-throwable exception thrown when inconsistent parse content + is found; stops all parsing immediately + """ + + +class ParseSyntaxException(ParseFatalException): + """ + Just like :class:`ParseFatalException`, but thrown internally + when an :class:`ErrorStop` ('-' operator) indicates + that parsing is to stop immediately because an unbacktrackable + syntax error has been found. + """ + + +class RecursiveGrammarException(Exception): + """ + Exception thrown by :class:`ParserElement.validate` if the + grammar could be left-recursive; parser may need to enable + left recursion using :class:`ParserElement.enable_left_recursion` + """ + + def __init__(self, parseElementList): + self.parseElementTrace = parseElementList + + def __str__(self) -> str: + return f"RecursiveGrammarException: {self.parseElementTrace}" diff --git a/shared/package-files/e8/e897edad2dda78edb65b2f6825b16fee5337e2fb4e0d6fc3924dbcf841b4e847/blob b/shared/package-files/e8/e897edad2dda78edb65b2f6825b16fee5337e2fb4e0d6fc3924dbcf841b4e847/blob new file mode 100644 index 0000000000000000000000000000000000000000..ae08f2f272aa64dd642fa427cfc557599c35739a --- /dev/null +++ b/shared/package-files/e8/e897edad2dda78edb65b2f6825b16fee5337e2fb4e0d6fc3924dbcf841b4e847/blob @@ -0,0 +1,23 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor _prelu_kernel(const at::Tensor & self, const at::Tensor & weight); +TORCH_API at::Tensor mkldnn_prelu(const at::Tensor & self, const at::Tensor & weight); +TORCH_API at::Tensor _prelu_kernel_quantized_cpu(const at::Tensor & self, const at::Tensor & weight); +} // namespace native +} // namespace at diff --git a/shared/package-files/e8/e89993b856369b4d62180f4eecff34c4366ed398c174dc5df8ecffcf1698563f/blob b/shared/package-files/e8/e89993b856369b4d62180f4eecff34c4366ed398c174dc5df8ecffcf1698563f/blob new file mode 100644 index 0000000000000000000000000000000000000000..123c81fbaf9c09f38489931d87e9b2c8364037e4 --- /dev/null +++ b/shared/package-files/e8/e89993b856369b4d62180f4eecff34c4366ed398c174dc5df8ecffcf1698563f/blob @@ -0,0 +1,24 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor _sparse_bsr_tensor_unsafe(const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options={}); +TORCH_API at::Tensor _sparse_bsr_tensor_unsafe(const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/e8/e89d835c811d4da44aa8b386782ce8828df085aa0ee8f25661a9881d2f00e90c/blob b/shared/package-files/e8/e89d835c811d4da44aa8b386782ce8828df085aa0ee8f25661a9881d2f00e90c/blob new file mode 100644 index 0000000000000000000000000000000000000000..14b2ad09ead50a62d5e2b426396c51f9beb293be Binary files /dev/null and b/shared/package-files/e8/e89d835c811d4da44aa8b386782ce8828df085aa0ee8f25661a9881d2f00e90c/blob differ diff --git a/shared/package-files/e8/e89d85b141bd30a55e01325b8ca52d93ccfc332f0f87fb378fd8f74715c24b36/blob b/shared/package-files/e8/e89d85b141bd30a55e01325b8ca52d93ccfc332f0f87fb378fd8f74715c24b36/blob new file mode 100644 index 0000000000000000000000000000000000000000..285bf9da62f17d1404681e45e4c2dba3d071bf46 --- /dev/null +++ b/shared/package-files/e8/e89d85b141bd30a55e01325b8ca52d93ccfc332f0f87fb378fd8f74715c24b36/blob @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API at::Tensor special_chebyshev_polynomial_v(const at::Scalar & x, const at::Tensor & n); +TORCH_API at::Tensor & special_chebyshev_polynomial_v_out(at::Tensor & out, const at::Scalar & x, const at::Tensor & n); +TORCH_API at::Tensor & special_chebyshev_polynomial_v_outf(const at::Scalar & x, const at::Tensor & n, at::Tensor & out); +TORCH_API at::Tensor special_chebyshev_polynomial_v(const at::Tensor & x, const at::Scalar & n); +TORCH_API at::Tensor & special_chebyshev_polynomial_v_out(at::Tensor & out, const at::Tensor & x, const at::Scalar & n); +TORCH_API at::Tensor & special_chebyshev_polynomial_v_outf(const at::Tensor & x, const at::Scalar & n, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/e8/e89e0dd6bbedd1e8fca60558851eada05674c59cf0e93f6b3cdd58c712de329a/blob b/shared/package-files/e8/e89e0dd6bbedd1e8fca60558851eada05674c59cf0e93f6b3cdd58c712de329a/blob new file mode 100644 index 0000000000000000000000000000000000000000..37990bb89853a1b5bdc96ded1decff382fee9187 --- /dev/null +++ b/shared/package-files/e8/e89e0dd6bbedd1e8fca60558851eada05674c59cf0e93f6b3cdd58c712de329a/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor igamma(const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & igamma_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & igamma_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); +TORCH_API at::Tensor & igamma_(at::Tensor & self, const at::Tensor & other); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/e8/e89eed1074d3a943198ba139b80844f5b445b860bba74a8aeadc0610566164ea/blob b/shared/package-files/e8/e89eed1074d3a943198ba139b80844f5b445b860bba74a8aeadc0610566164ea/blob new file mode 100644 index 0000000000000000000000000000000000000000..ff33b8f7ca0b1c05bb0bdc546aa760c8e78757be --- /dev/null +++ b/shared/package-files/e8/e89eed1074d3a943198ba139b80844f5b445b860bba74a8aeadc0610566164ea/blob @@ -0,0 +1,18 @@ + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/shared/package-files/e8/e89fa66a90e7ae4f40d4bb6cc28137e2da92cbfb9f79d70404dc62c64ac48c8a/blob b/shared/package-files/e8/e89fa66a90e7ae4f40d4bb6cc28137e2da92cbfb9f79d70404dc62c64ac48c8a/blob new file mode 100644 index 0000000000000000000000000000000000000000..04c2df456ff0f879a419331dc3e9f4d4f68f0ecd Binary files /dev/null and b/shared/package-files/e8/e89fa66a90e7ae4f40d4bb6cc28137e2da92cbfb9f79d70404dc62c64ac48c8a/blob differ diff --git a/shared/package-files/e8/e89ff784ad3eb82a53de3d68f26b838eea10a32b636c0fc96ef5fa4d191f71bc/blob b/shared/package-files/e8/e89ff784ad3eb82a53de3d68f26b838eea10a32b636c0fc96ef5fa4d191f71bc/blob new file mode 100644 index 0000000000000000000000000000000000000000..c82c1c36e15944127a1b8ac66505742462fd3716 --- /dev/null +++ b/shared/package-files/e8/e89ff784ad3eb82a53de3d68f26b838eea10a32b636c0fc96ef5fa4d191f71bc/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e89ff784ad3eb82a53de3d68f26b838eea10a32b636c0fc96ef5fa4d191f71bc +size 249986 diff --git a/shared/package-files/e8/e8a4dc6be1c8f72b7214e5b89ef8269cef872cf5bd1179e82df1e8217497ddcf/blob b/shared/package-files/e8/e8a4dc6be1c8f72b7214e5b89ef8269cef872cf5bd1179e82df1e8217497ddcf/blob new file mode 100644 index 0000000000000000000000000000000000000000..7d8c1c188fac6d582d267d585fd0dc6b283d8ffc --- /dev/null +++ b/shared/package-files/e8/e8a4dc6be1c8f72b7214e5b89ef8269cef872cf5bd1179e82df1e8217497ddcf/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8a4dc6be1c8f72b7214e5b89ef8269cef872cf5bd1179e82df1e8217497ddcf +size 828890 diff --git a/shared/package-files/e8/e8a66576fbda472428205cf9b52ca8964817af84dc4bf10534079224e3d7bda7/model_manifest.json b/shared/package-files/e8/e8a66576fbda472428205cf9b52ca8964817af84dc4bf10534079224e3d7bda7/model_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..eef0bac6e5d27cfced94149723ec54609965c3ff --- /dev/null +++ b/shared/package-files/e8/e8a66576fbda472428205cf9b52ca8964817af84dc4bf10534079224e3d7bda7/model_manifest.json @@ -0,0 +1,13 @@ +{ + "schema": "massspecgym-retrieval-model/v1", + "checkpoint": { + "path": ".versions/generation-zvrsxvlv/model.pt", + "sha256": "eaee12e055824283c0868641e12d92ababe593c0683cb6399eb60ca9eadb642e", + "format": "pytorch" + }, + "model_config": ".versions/generation-zvrsxvlv/model_config.json", + "training_provenance": { + "data": "MassSpecGym v1.5 TRAIN and supplied held-out-clean ICEBERG simulations; validation only for selection", + "pretrained_assets": [] + } +} diff --git a/shared/package-files/e8/e8ac71f7a15749da978a62ec7952bf164630cb6bea5a1367c4c54f3114a1bf2e/blob b/shared/package-files/e8/e8ac71f7a15749da978a62ec7952bf164630cb6bea5a1367c4c54f3114a1bf2e/blob new file mode 100644 index 0000000000000000000000000000000000000000..3942b35ec549e5dbd08a3cf1cad2b2ecea733c7a --- /dev/null +++ b/shared/package-files/e8/e8ac71f7a15749da978a62ec7952bf164630cb6bea5a1367c4c54f3114a1bf2e/blob @@ -0,0 +1,124 @@ +""" SymPy interface to Unification engine + +See sympy.unify for module level docstring +See sympy.unify.core for algorithmic docstring """ + +from sympy.core import Basic, Add, Mul, Pow +from sympy.core.operations import AssocOp, LatticeOp +from sympy.matrices import MatAdd, MatMul, MatrixExpr +from sympy.sets.sets import Union, Intersection, FiniteSet +from sympy.unify.core import Compound, Variable, CondVariable +from sympy.unify import core + +basic_new_legal = [MatrixExpr] +eval_false_legal = [AssocOp, Pow, FiniteSet] +illegal = [LatticeOp] + +def sympy_associative(op): + assoc_ops = (AssocOp, MatAdd, MatMul, Union, Intersection, FiniteSet) + return any(issubclass(op, aop) for aop in assoc_ops) + +def sympy_commutative(op): + comm_ops = (Add, MatAdd, Union, Intersection, FiniteSet) + return any(issubclass(op, cop) for cop in comm_ops) + +def is_associative(x): + return isinstance(x, Compound) and sympy_associative(x.op) + +def is_commutative(x): + if not isinstance(x, Compound): + return False + if sympy_commutative(x.op): + return True + if issubclass(x.op, Mul): + return all(construct(arg).is_commutative for arg in x.args) + +def mk_matchtype(typ): + def matchtype(x): + return (isinstance(x, typ) or + isinstance(x, Compound) and issubclass(x.op, typ)) + return matchtype + +def deconstruct(s, variables=()): + """ Turn a SymPy object into a Compound """ + if s in variables: + return Variable(s) + if isinstance(s, (Variable, CondVariable)): + return s + if not isinstance(s, Basic) or s.is_Atom: + return s + return Compound(s.__class__, + tuple(deconstruct(arg, variables) for arg in s.args)) + +def construct(t): + """ Turn a Compound into a SymPy object """ + if isinstance(t, (Variable, CondVariable)): + return t.arg + if not isinstance(t, Compound): + return t + if any(issubclass(t.op, cls) for cls in eval_false_legal): + return t.op(*map(construct, t.args), evaluate=False) + elif any(issubclass(t.op, cls) for cls in basic_new_legal): + return Basic.__new__(t.op, *map(construct, t.args)) + else: + return t.op(*map(construct, t.args)) + +def rebuild(s): + """ Rebuild a SymPy expression. + + This removes harm caused by Expr-Rules interactions. + """ + return construct(deconstruct(s)) + +def unify(x, y, s=None, variables=(), **kwargs): + """ Structural unification of two expressions/patterns. + + Examples + ======== + + >>> from sympy.unify.usympy import unify + >>> from sympy import Basic, S + >>> from sympy.abc import x, y, z, p, q + + >>> next(unify(Basic(S(1), S(2)), Basic(S(1), x), variables=[x])) + {x: 2} + + >>> expr = 2*x + y + z + >>> pattern = 2*p + q + >>> next(unify(expr, pattern, {}, variables=(p, q))) + {p: x, q: y + z} + + Unification supports commutative and associative matching + + >>> expr = x + y + z + >>> pattern = p + q + >>> len(list(unify(expr, pattern, {}, variables=(p, q)))) + 12 + + Symbols not indicated to be variables are treated as literal, + else they are wild-like and match anything in a sub-expression. + + >>> expr = x*y*z + 3 + >>> pattern = x*y + 3 + >>> next(unify(expr, pattern, {}, variables=[x, y])) + {x: y, y: x*z} + + The x and y of the pattern above were in a Mul and matched factors + in the Mul of expr. Here, a single symbol matches an entire term: + + >>> expr = x*y + 3 + >>> pattern = p + 3 + >>> next(unify(expr, pattern, {}, variables=[p])) + {p: x*y} + + """ + decons = lambda x: deconstruct(x, variables) + s = s or {} + s = {decons(k): decons(v) for k, v in s.items()} + + ds = core.unify(decons(x), decons(y), s, + is_associative=is_associative, + is_commutative=is_commutative, + **kwargs) + for d in ds: + yield {construct(k): construct(v) for k, v in d.items()} diff --git a/shared/package-files/e8/e8ae1c518c712c07230bdc46f4db06c6ae050ef9b212b27f7b45d4e2fad55903/blob b/shared/package-files/e8/e8ae1c518c712c07230bdc46f4db06c6ae050ef9b212b27f7b45d4e2fad55903/blob new file mode 100644 index 0000000000000000000000000000000000000000..068482ee300c73d7bd185482f85d109e400e9cc8 --- /dev/null +++ b/shared/package-files/e8/e8ae1c518c712c07230bdc46f4db06c6ae050ef9b212b27f7b45d4e2fad55903/blob @@ -0,0 +1,69 @@ +#pragma once + +#include + +namespace c10 { +class Scalar; +} + +namespace at { + +struct TensorIterator; +struct TensorIteratorBase; + +namespace native { + +#if defined(__CUDACC__) || defined(__HIPCC__) +#define HOST_DEVICE __host__ __device__ +#else +#define HOST_DEVICE +#endif + +// integral power in pytorch allows for negative exponents, giving truncated integral results. +// e.g. since 2**-1==0.5, the truncated integral result is zero. 1**negative_exponent is the +// only non-zero result. +template ::value, T>::type* = nullptr> +static inline HOST_DEVICE __ubsan_ignore_signed_int_overflow__ T powi_impl(T a, T b) { + T result = 1; + while (b) { + if (b & 1) { + result *= a; + } + b /= 2; + a *= a; + } + return result; +} + +template ::value && !std::is_signed::value, T>::type* = nullptr> +static inline HOST_DEVICE T powi(T a, T b) { + return powi_impl(a, b); +} + +template ::value && std::is_signed::value, T>::type* = nullptr> +static inline HOST_DEVICE T powi(T a, T b) { + if ( b < 0 ) { + if ( a == 1 ) { + return 1; + } else if ( a == -1 ) { + auto negative = (-b) % static_cast(2); + return negative ? -1 : 1; + } else { + return 0; + } + } + return powi_impl(a, b); +} + +using pow_tensor_tensor_fn = void (*)(TensorIteratorBase&); +using pow_tensor_scalar_fn = void (*)(TensorIteratorBase&, const c10::Scalar&); + +DECLARE_DISPATCH(pow_tensor_tensor_fn, pow_tensor_tensor_stub); +DECLARE_DISPATCH(pow_tensor_scalar_fn, pow_tensor_scalar_stub); + +} // namespace native + +} // namespace at diff --git a/shared/package-files/e8/e8b0eb5bc9ee0592ec01ef74875518b3dda4ff8d548dcc44f2fa4485cfcb0733/blob b/shared/package-files/e8/e8b0eb5bc9ee0592ec01ef74875518b3dda4ff8d548dcc44f2fa4485cfcb0733/blob new file mode 100644 index 0000000000000000000000000000000000000000..723e991341092632fb8dceec0bb0d20aa3d0aac7 --- /dev/null +++ b/shared/package-files/e8/e8b0eb5bc9ee0592ec01ef74875518b3dda4ff8d548dcc44f2fa4485cfcb0733/blob @@ -0,0 +1,45 @@ +from typing import Any, Optional + +class _TimeoutGarbageCollector: + def __init__(self): ... + +class Condition(_TimeoutGarbageCollector): + io_loop: Any + def __init__(self): ... + def wait(self, timeout: Optional[Any] = ...): ... + def notify(self, n: int = ...): ... + def notify_all(self): ... + +class Event: + def __init__(self): ... + def is_set(self): ... + def set(self): ... + def clear(self): ... + def wait(self, timeout: Optional[Any] = ...): ... + +class _ReleasingContextManager: + def __init__(self, obj): ... + def __enter__(self): ... + def __exit__(self, exc_type, exc_val, exc_tb): ... + +class Semaphore(_TimeoutGarbageCollector): + def __init__(self, value: int = ...): ... + def release(self): ... + def acquire(self, timeout: Optional[Any] = ...): ... + def __enter__(self): ... + __exit__: Any + def __aenter__(self): ... + def __aexit__(self, typ, value, tb): ... + +class BoundedSemaphore(Semaphore): + def __init__(self, value: int = ...): ... + def release(self): ... + +class Lock: + def __init__(self): ... + def acquire(self, timeout: Optional[Any] = ...): ... + def release(self): ... + def __enter__(self): ... + __exit__: Any + def __aenter__(self): ... + def __aexit__(self, typ, value, tb): ... diff --git a/shared/package-files/e8/e8b2a741cf32878f5ff34d9b174b0fbdbcdc938422bcc62aaa85c03da60ff2e5/blob b/shared/package-files/e8/e8b2a741cf32878f5ff34d9b174b0fbdbcdc938422bcc62aaa85c03da60ff2e5/blob new file mode 100644 index 0000000000000000000000000000000000000000..6bb325d0788e0ef98b9f3300533c1da2d8c05aa3 --- /dev/null +++ b/shared/package-files/e8/e8b2a741cf32878f5ff34d9b174b0fbdbcdc938422bcc62aaa85c03da60ff2e5/blob @@ -0,0 +1,83 @@ +""" + pygments.formatters.pangomarkup + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Formatter for Pango markup output. + + :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pip._vendor.pygments.formatter import Formatter + + +__all__ = ['PangoMarkupFormatter'] + + +_escape_table = { + ord('&'): '&', + ord('<'): '<', +} + + +def escape_special_chars(text, table=_escape_table): + """Escape & and < for Pango Markup.""" + return text.translate(table) + + +class PangoMarkupFormatter(Formatter): + """ + Format tokens as Pango Markup code. It can then be rendered to an SVG. + + .. versionadded:: 2.9 + """ + + name = 'Pango Markup' + aliases = ['pango', 'pangomarkup'] + filenames = [] + + def __init__(self, **options): + Formatter.__init__(self, **options) + + self.styles = {} + + for token, style in self.style: + start = '' + end = '' + if style['color']: + start += '' % style['color'] + end = '' + end + if style['bold']: + start += '' + end = '' + end + if style['italic']: + start += '' + end = '' + end + if style['underline']: + start += '' + end = '' + end + self.styles[token] = (start, end) + + def format_unencoded(self, tokensource, outfile): + lastval = '' + lasttype = None + + outfile.write('') + + for ttype, value in tokensource: + while ttype not in self.styles: + ttype = ttype.parent + if ttype == lasttype: + lastval += escape_special_chars(value) + else: + if lastval: + stylebegin, styleend = self.styles[lasttype] + outfile.write(stylebegin + lastval + styleend) + lastval = escape_special_chars(value) + lasttype = ttype + + if lastval: + stylebegin, styleend = self.styles[lasttype] + outfile.write(stylebegin + lastval + styleend) + + outfile.write('') diff --git a/shared/package-files/e8/e8b2e978b433250009649e6ce406afc3388d46ba394293bdb5f0fac75bec4df2/blob b/shared/package-files/e8/e8b2e978b433250009649e6ce406afc3388d46ba394293bdb5f0fac75bec4df2/blob new file mode 100644 index 0000000000000000000000000000000000000000..181d07fe0b6c14146025bc53aba090d3862a4cbb --- /dev/null +++ b/shared/package-files/e8/e8b2e978b433250009649e6ce406afc3388d46ba394293bdb5f0fac75bec4df2/blob @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor max_unpool2d(const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size); +TORCH_API at::Tensor max_unpool2d_symint(const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size); +TORCH_API at::Tensor & max_unpool2d_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size); +TORCH_API at::Tensor & max_unpool2d_outf(const at::Tensor & self, const at::Tensor & indices, at::IntArrayRef output_size, at::Tensor & out); +TORCH_API at::Tensor & max_unpool2d_symint_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size); +TORCH_API at::Tensor & max_unpool2d_symint_outf(const at::Tensor & self, const at::Tensor & indices, c10::SymIntArrayRef output_size, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/e8/e8b3bdf8b7af48279bf5fbfc9679d9bff4b9a4bc3b8fb48c27b5d46f16751dc3/blob b/shared/package-files/e8/e8b3bdf8b7af48279bf5fbfc9679d9bff4b9a4bc3b8fb48c27b5d46f16751dc3/blob new file mode 100644 index 0000000000000000000000000000000000000000..5ae305ce4eb9f1347ef710ddd7c79f2c55865566 --- /dev/null +++ b/shared/package-files/e8/e8b3bdf8b7af48279bf5fbfc9679d9bff4b9a4bc3b8fb48c27b5d46f16751dc3/blob @@ -0,0 +1,104 @@ +#include +#include + +#include + +namespace c10d { + +class TORCH_API Logger { + public: + explicit Logger(std::shared_ptr reducer); + // Set logging data that can be got during DistributedDataParallel + // construction time. + void set_construction_data_and_log( + const std::string& module_name, + const std::vector& device_ids, + int output_device, + bool broadcast_buffers, + bool has_sync_bn, + bool static_graph); + + void set_static_graph(); + + // An interface for users to get DDPLoggingData and log them + // in the applications. Explanation of logging fields are in + // "struct DDPLoggingData" of "torch/c10/util/Logging.h". + at::DDPLoggingData get_ddp_logging_data(); + + // Stream insertion operator for logging data to stream under + // TORCH_DISTRIBUTED_DEBUG. + friend std::ostream& operator<<(std::ostream& output, const Logger& logger); + + ~Logger() noexcept(false) { + // Log if DDP graph is static in Logger dtor instead of Reducer dtor since + // Logger is deleted before Reducer. + log_if_graph_static(reducer_->ddp_graph_static()); + } + + // Set environment variables. + void set_env_variables(); + // Set parameters stats. + void set_parameter_stats(); + // Get size of each bucket (Bytes). + std::vector get_bucket_sizes(); + // Get variable indices for each bucket. + std::vector> get_per_bucket_variable_indices(); + // Set comm. hook, if used + void set_comm_hook(const std::string& hook); + // Set running with uneven input detection (model.join() context manager) + void set_uneven_input_join(); + + // Reset performance stats at current iteration + void reset_performance_stats(); + + // Calculate avg stats using cpu timer and gpu timer + // that has been recorded in reducer. + void calculate_avg_time( + int64_t& avg_time, + int64_t& time_duration, + Timer& timer, + Timer::Event start_event, + Timer::Event end_event); + + // Set the absolute time of the event that has been recorded in reducer. + void set_event_time(int64_t& event_time, Timer& timer, Timer::Event event); + // Set stats that can be collected only during + // training loop. It is called at the beginning of forward call + // to record the run time stats of sampled iterations that previously ran. + // GPU performance stats are collected only for single process + // single device program and single device module right now. + // TODO to support single process multiple devices and multi device modules, + // events need to be created and recorded on multiple devices. + void set_runtime_stats_and_log(); + + // Called when DDP/reducer is failing with an error. The + // logging data structure will have two fields filled: "has_error" indicating + // that this iteration encountered an error and other fields are not valid, + // and "error", a string which contains the error message that DDP failed + // with. + template + void set_error_and_log(const std::string& ddp_error, const Args&... args) { + ddp_logging_data_->ints_map["has_error"] = 1; + auto err = c10::str(ddp_error, args...); + ddp_logging_data_->strs_map["error"] = err; + // Report the iteration we are erroring at so user knows how many examples + // successfully processed before this error was hit. + ddp_logging_data_->ints_map["iteration"] = reducer_->num_iterations_; + at::LogPyTorchDDPUsage(*ddp_logging_data_); + } + + // When running without static graph, called when reducer is destroyed to log + // if graph was actually static and is a candidate for static graph + // optimization. + void log_if_graph_static(bool is_static); + + private: + // ddp_logging_data_ is used to hold all the ddp related logging + // data fields. + std::unique_ptr ddp_logging_data_; + std::shared_ptr reducer_; + // track the number of iterations when runtime stats are collected so far. + long num_iterations_stats_recorded_ = 0; +}; + +} // namespace c10d diff --git a/shared/package-files/e8/e8b670d3ea78ecef740c2b3f9b6b5ee05d4085a95c620e3540d43c7a150989e4/blob b/shared/package-files/e8/e8b670d3ea78ecef740c2b3f9b6b5ee05d4085a95c620e3540d43c7a150989e4/blob new file mode 100644 index 0000000000000000000000000000000000000000..3a3245909f98a59d0fc66e667a46eb1431e5bc90 --- /dev/null +++ b/shared/package-files/e8/e8b670d3ea78ecef740c2b3f9b6b5ee05d4085a95c620e3540d43c7a150989e4/blob @@ -0,0 +1,30 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::special_softmax(Tensor self, int dim, ScalarType? dtype=None) -> Tensor +inline at::Tensor special_softmax(const at::Tensor & self, int64_t dim, c10::optional dtype=c10::nullopt) { + return at::_ops::special_softmax::call(self, dim, dtype); +} + +} diff --git a/shared/package-files/e8/e8b78ca5a8f791b359c94275a103e216d4d4e83082c9f32fd9d9bb85830a73a3/blob b/shared/package-files/e8/e8b78ca5a8f791b359c94275a103e216d4d4e83082c9f32fd9d9bb85830a73a3/blob new file mode 100644 index 0000000000000000000000000000000000000000..5a11a26b925d33fc22b991cf789361a6169d3afc --- /dev/null +++ b/shared/package-files/e8/e8b78ca5a8f791b359c94275a103e216d4d4e83082c9f32fd9d9bb85830a73a3/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8b78ca5a8f791b359c94275a103e216d4d4e83082c9f32fd9d9bb85830a73a3 +size 14648681 diff --git a/shared/package-files/e8/e8b96783e525656ffd1d25858262205b6abd621699f8dce1db327c864aa86990/blob b/shared/package-files/e8/e8b96783e525656ffd1d25858262205b6abd621699f8dce1db327c864aa86990/blob new file mode 100644 index 0000000000000000000000000000000000000000..7ce3ccb32802c455150f38fca49b8f398fccfd61 --- /dev/null +++ b/shared/package-files/e8/e8b96783e525656ffd1d25858262205b6abd621699f8dce1db327c864aa86990/blob @@ -0,0 +1 @@ +from Queue import * diff --git a/shared/package-files/e8/e8b9d58ce17f4a2e0935dd02e5b5e462a4e6d86b449c812a4d0c5e547b4f5130/blob b/shared/package-files/e8/e8b9d58ce17f4a2e0935dd02e5b5e462a4e6d86b449c812a4d0c5e547b4f5130/blob new file mode 100644 index 0000000000000000000000000000000000000000..eeefb35aa48fb38e073359bd77da03cadddda3cf --- /dev/null +++ b/shared/package-files/e8/e8b9d58ce17f4a2e0935dd02e5b5e462a4e6d86b449c812a4d0c5e547b4f5130/blob @@ -0,0 +1,57 @@ +import unittest + +import dis +import struct + +from numba import jit +from numba.core import utils +from numba.tests.support import TestCase + + +class TestExtendedArg(TestCase): + """ + Test support for the EXTENDED_ARG opcode. + """ + bytecode_len = 0xff + + def get_extended_arg_load_const(self): + """ + Get a function with a EXTENDED_ARG opcode before a LOAD_CONST opcode. + """ + def f(): + x = 256 + return x + + b = bytearray(f.__code__.co_code) + consts = f.__code__.co_consts + bytecode_format = " k_states (which usually do not get tested in + other models). + + This is just an AR(1) model with an extra unused state innovation + """ + + def __init__(self, endog, **kwargs): + k_states = 1 + k_posdef = 2 + super().__init__(endog, k_states=k_states, k_posdef=k_posdef, **kwargs) + self["design", 0, 0] = 1 + self["selection", 0, 0] = 1 + self["state_cov", 1, 1] = 1 + self.initialize_stationary() + + @property + def param_names(self): + return ["phi", "sigma2"] + + @property + def start_params(self): + return [0.5, 1] + + def update(self, params, **kwargs): + params = super().update(params, **kwargs) + + self["transition", 0, 0] = params[0] + self["state_cov", 0, 0] = params[1] + + +def test_large_kposdef(): + with pytest.raises(ValueError): + LargeStateCovAR1(np.arange(10)) + + +class TestLargeStateCovAR1: + @classmethod + def setup_class(cls): + pytest.skip( + "TODO: This test is skipped since an exception is currently " + "raised if k_posdef > k_states. However, this test could be " + "used if models of those types were allowed" + ) + + # Data: just some sample data + endog = [0.2, -1.5, -0.3, -0.1, 1.5, 0.2, -0.3, 0.2, 0.5, 0.8] + + # Params + params = [0.5, 1] + + # Desired model: AR(1) + mod_desired = sarimax.SARIMAX(endog) + cls.res_desired = mod_desired.smooth(params) + + # Test class + mod = LargeStateCovAR1(endog) + cls.res = mod.smooth(params) + + def test_dimensions(self): + assert_equal(self.res.filter_results.k_states, 1) + assert_equal(self.res.filter_results.k_posdef, 2) + assert_equal(self.res.smoothed_state_disturbance.shape, (2, 10)) + + assert_equal(self.res_desired.filter_results.k_states, 1) + assert_equal(self.res_desired.filter_results.k_posdef, 1) + assert_equal(self.res_desired.smoothed_state_disturbance.shape, (1, 10)) + + def test_loglike(self): + assert_allclose(self.res.llf_obs, self.res_desired.llf_obs) + + def test_scaled_smoothed_estimator(self): + assert_allclose( + self.res.scaled_smoothed_estimator[0], + self.res_desired.scaled_smoothed_estimator[0], + ) + + def test_scaled_smoothed_estimator_cov(self): + assert_allclose( + self.res.scaled_smoothed_estimator_cov[0], + self.res_desired.scaled_smoothed_estimator_cov[0], + ) + + def test_forecasts(self): + assert_allclose(self.res.forecasts, self.res_desired.forecasts) + + def test_forecasts_error(self): + assert_allclose(self.res.forecasts_error, self.res_desired.forecasts_error) + + def test_forecasts_error_cov(self): + assert_allclose( + self.res.forecasts_error_cov, self.res_desired.forecasts_error_cov + ) + + def test_predicted_states(self): + assert_allclose( + self.res.predicted_state[0], self.res_desired.predicted_state[0] + ) + + def test_predicted_states_cov(self): + assert_allclose( + self.res.predicted_state_cov[0, 0], + self.res_desired.predicted_state_cov[0, 0], + ) + + def test_smoothed_states(self): + assert_allclose(self.res.smoothed_state[0], self.res_desired.smoothed_state[0]) + + def test_smoothed_states_cov(self): + assert_allclose( + self.res.smoothed_state_cov[0, 0], self.res_desired.smoothed_state_cov[0, 0] + ) + + def test_smoothed_state_disturbance(self): + assert_allclose( + self.res.smoothed_state_disturbance[0], + self.res_desired.smoothed_state_disturbance[0], + ) + assert_allclose(self.res.smoothed_state_disturbance[1], 0) + + def test_smoothed_state_disturbance_cov(self): + assert_allclose( + self.res.smoothed_state_disturbance_cov[0, 0], + self.res_desired.smoothed_state_disturbance_cov[0, 0], + ) + assert_allclose(self.res.smoothed_state_disturbance[1, 1], 0) + + def test_smoothed_measurement_disturbance(self): + assert_allclose( + self.res.smoothed_measurement_disturbance, + self.res_desired.smoothed_measurement_disturbance, + ) + + def test_smoothed_measurement_disturbance_cov(self): + assert_allclose( + self.res.smoothed_measurement_disturbance_cov, + self.res_desired.smoothed_measurement_disturbance_cov, + ) diff --git a/shared/package-files/e8/e8bfaab17248c40aff9f7855300cff119e63d2c91c2407e0cee25f0c42121bf2/blob b/shared/package-files/e8/e8bfaab17248c40aff9f7855300cff119e63d2c91c2407e0cee25f0c42121bf2/blob new file mode 100644 index 0000000000000000000000000000000000000000..4f31e951d97513c12234ef7fc2f38f29e5077e42 --- /dev/null +++ b/shared/package-files/e8/e8bfaab17248c40aff9f7855300cff119e63d2c91c2407e0cee25f0c42121bf2/blob @@ -0,0 +1,7 @@ +extern "C" __device__ +int bar(int* out, int a) { + // Explicitly placed to generate a warning for testing the NVRTC program log + int unused; + *out = a * 2; + return 0; +} diff --git a/shared/package-files/e8/e8c0404c084333641f33dd0011a8e39e0b65816344de77aae7fee6f73fa838a7/blob b/shared/package-files/e8/e8c0404c084333641f33dd0011a8e39e0b65816344de77aae7fee6f73fa838a7/blob new file mode 100644 index 0000000000000000000000000000000000000000..17fc3793e84d3abc7f71d81b245fb669911636ad Binary files /dev/null and b/shared/package-files/e8/e8c0404c084333641f33dd0011a8e39e0b65816344de77aae7fee6f73fa838a7/blob differ diff --git a/shared/package-files/e8/e8c1a19e5419e779b1ad8950e498e5a1292cd6d96a5090c0cdced165e67d13c3/blob b/shared/package-files/e8/e8c1a19e5419e779b1ad8950e498e5a1292cd6d96a5090c0cdced165e67d13c3/blob new file mode 100644 index 0000000000000000000000000000000000000000..49614a2b20518f3b31d303b714d0758b535f458a --- /dev/null +++ b/shared/package-files/e8/e8c1a19e5419e779b1ad8950e498e5a1292cd6d96a5090c0cdced165e67d13c3/blob @@ -0,0 +1,42 @@ +import sys +from typing import Any, Iterable, List, Optional, Text + +from .common import _LikeBytes + +if sys.version_info < (3, 0): + from StringIO import StringIO + + BytesIO = StringIO[bytes] +else: + from io import BytesIO + +class Message: + big_int: int + packet: BytesIO + seqno: int # only when packet.Packetizer.read_message() is used + def __init__(self, content: Optional[bytes] = ...) -> None: ... + def asbytes(self) -> bytes: ... + def rewind(self) -> None: ... + def get_remainder(self) -> bytes: ... + def get_so_far(self) -> bytes: ... + def get_bytes(self, n: int) -> bytes: ... + def get_byte(self) -> bytes: ... + def get_boolean(self) -> bool: ... + def get_adaptive_int(self) -> int: ... + def get_int(self) -> int: ... + def get_int64(self) -> int: ... + def get_mpint(self) -> int: ... + def get_string(self) -> bytes: ... + def get_text(self) -> Text: ... + def get_binary(self) -> bytes: ... + def get_list(self) -> List[str]: ... + def add_bytes(self, b: bytes) -> Message: ... + def add_byte(self, b: bytes) -> Message: ... + def add_boolean(self, b: bool) -> Message: ... + def add_int(self, n: int) -> Message: ... + def add_adaptive_int(self, n: int) -> Message: ... + def add_int64(self, n: int) -> Message: ... + def add_mpint(self, z: int) -> Message: ... + def add_string(self, s: _LikeBytes) -> Message: ... + def add_list(self, l: Iterable[str]) -> Message: ... + def add(self, *seq: Any) -> None: ... diff --git a/shared/package-files/e8/e8c1c84ed0bbe94a5247dba1d128944699e4a4f90bcd3e6d6eb7174f8c41171a/blob b/shared/package-files/e8/e8c1c84ed0bbe94a5247dba1d128944699e4a4f90bcd3e6d6eb7174f8c41171a/blob new file mode 100644 index 0000000000000000000000000000000000000000..602b74e7bc437ee4fdfbc375280f423700caa49e --- /dev/null +++ b/shared/package-files/e8/e8c1c84ed0bbe94a5247dba1d128944699e4a4f90bcd3e6d6eb7174f8c41171a/blob @@ -0,0 +1,20 @@ +#if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER) + /* + * Unlike GCC and CLANG, Intel Compiler exposes all supported intrinsics, + * whether or not the build options for those features are specified. + * Therefore, we must test #definitions of CPU features when option native/host + * is enabled via `--cpu-baseline` or through env var `CFLAGS` otherwise + * the test will be broken and leads to enable all possible features. + */ + #ifndef __SSE__ + #error "HOST/ARCH doesn't support SSE" + #endif +#endif + +#include + +int main(void) +{ + __m128 a = _mm_add_ps(_mm_setzero_ps(), _mm_setzero_ps()); + return (int)_mm_cvtss_f32(a); +} diff --git a/shared/package-files/e8/e8c2f19f7047bfc7539fd78839929004d8fe0efba1fbcbd9d712d285e43834ba/blob b/shared/package-files/e8/e8c2f19f7047bfc7539fd78839929004d8fe0efba1fbcbd9d712d285e43834ba/blob new file mode 100644 index 0000000000000000000000000000000000000000..3e3f71ab045573d9438bcbe5da6115b77dc3d7e9 --- /dev/null +++ b/shared/package-files/e8/e8c2f19f7047bfc7539fd78839929004d8fe0efba1fbcbd9d712d285e43834ba/blob @@ -0,0 +1,25 @@ +"""Fix "for x in f.xreadlines()" -> "for x in f". + +This fixer will also convert g(f.xreadlines) into g(f.__iter__).""" +# Author: Collin Winter + +# Local imports +from .. import fixer_base +from ..fixer_util import Name + + +class FixXreadlines(fixer_base.BaseFix): + BM_compatible = True + PATTERN = """ + power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > > + | + power< any+ trailer< '.' no_call='xreadlines' > > + """ + + def transform(self, node, results): + no_call = results.get("no_call") + + if no_call: + no_call.replace(Name("__iter__", prefix=no_call.prefix)) + else: + node.replace([x.clone() for x in results["call"]]) diff --git a/shared/package-files/e8/e8c5bad4c6d50ea387e09510a11df6cfca9851645f3c4095ddf7104ab3a423f3/blob b/shared/package-files/e8/e8c5bad4c6d50ea387e09510a11df6cfca9851645f3c4095ddf7104ab3a423f3/blob new file mode 100644 index 0000000000000000000000000000000000000000..24ec6c8891a89a7af4042df066fec6bc9d7b0e04 --- /dev/null +++ b/shared/package-files/e8/e8c5bad4c6d50ea387e09510a11df6cfca9851645f3c4095ddf7104ab3a423f3/blob @@ -0,0 +1,174 @@ +from datetime import timedelta +from typing import ( + ClassVar, + Literal, + TypeAlias, + TypeVar, + overload, +) + +import numpy as np + +from pandas._libs.tslibs import ( + NaTType, + Tick, +) +from pandas._typing import ( + Frequency, + Self, + npt, +) + +# This should be kept consistent with the keys in the dict timedelta_abbrevs +# in pandas/_libs/tslibs/timedeltas.pyx +UnitChoices: TypeAlias = Literal[ + "Y", + "y", + "M", + "W", + "w", + "D", + "d", + "days", + "day", + "hours", + "hour", + "hr", + "h", + "m", + "minute", + "min", + "minutes", + "T", + "t", + "s", + "seconds", + "sec", + "second", + "ms", + "milliseconds", + "millisecond", + "milli", + "millis", + "L", + "l", + "us", + "microseconds", + "microsecond", + "µs", + "micro", + "micros", + "u", + "ns", + "nanoseconds", + "nano", + "nanos", + "nanosecond", + "n", +] +_S = TypeVar("_S", bound=timedelta) + +def get_unit_for_round(freq, creso: int) -> int: ... +def disallow_ambiguous_unit(unit: str | None) -> None: ... +def ints_to_pytimedelta( + m8values: npt.NDArray[np.timedelta64], + box: bool = ..., +) -> npt.NDArray[np.object_]: ... +def array_to_timedelta64( + values: npt.NDArray[np.object_], + unit: str | None = ..., + errors: str = ..., +) -> np.ndarray: ... # np.ndarray[m8ns] +def parse_timedelta_unit(unit: str | None) -> UnitChoices: ... +def delta_to_nanoseconds( + delta: np.timedelta64 | timedelta | Tick, + reso: int = ..., # NPY_DATETIMEUNIT + round_ok: bool = ..., +) -> int: ... +def floordiv_object_array( + left: np.ndarray, right: npt.NDArray[np.object_] +) -> np.ndarray: ... +def truediv_object_array( + left: np.ndarray, right: npt.NDArray[np.object_] +) -> np.ndarray: ... + +class Timedelta(timedelta): + _creso: int + min: ClassVar[Timedelta] + max: ClassVar[Timedelta] + resolution: ClassVar[Timedelta] + value: int # np.int64 + _value: int # np.int64 + # error: "__new__" must return a class instance (got "Union[Timestamp, NaTType]") + def __new__( # type: ignore[misc] + cls: type[_S], + value=..., + unit: str | None = ..., + **kwargs: float | np.integer | np.floating, + ) -> _S | NaTType: ... + @classmethod + def _from_value_and_reso(cls, value: np.int64, reso: int) -> Timedelta: ... + @property + def days(self) -> int: ... + @property + def seconds(self) -> int: ... + @property + def microseconds(self) -> int: ... + def total_seconds(self) -> float: ... + def to_pytimedelta(self) -> timedelta: ... + def to_timedelta64(self) -> np.timedelta64: ... + @property + def asm8(self) -> np.timedelta64: ... + # TODO: round/floor/ceil could return NaT? + def round(self, freq: Frequency) -> Self: ... + def floor(self, freq: Frequency) -> Self: ... + def ceil(self, freq: Frequency) -> Self: ... + @property + def resolution_string(self) -> str: ... + def __add__(self, other: timedelta) -> Timedelta: ... + def __radd__(self, other: timedelta) -> Timedelta: ... + def __sub__(self, other: timedelta) -> Timedelta: ... + def __rsub__(self, other: timedelta) -> Timedelta: ... + def __neg__(self) -> Timedelta: ... + def __pos__(self) -> Timedelta: ... + def __abs__(self) -> Timedelta: ... + def __mul__(self, other: float) -> Timedelta: ... + def __rmul__(self, other: float) -> Timedelta: ... + # error: Signature of "__floordiv__" incompatible with supertype "timedelta" + @overload # type: ignore[override] + def __floordiv__(self, other: timedelta) -> int: ... + @overload + def __floordiv__(self, other: float) -> Timedelta: ... + @overload + def __floordiv__( + self, other: npt.NDArray[np.timedelta64] + ) -> npt.NDArray[np.intp]: ... + @overload + def __floordiv__( + self, other: npt.NDArray[np.number] + ) -> npt.NDArray[np.timedelta64] | Timedelta: ... + @overload + def __rfloordiv__(self, other: timedelta | str) -> int: ... + @overload + def __rfloordiv__(self, other: None | NaTType) -> NaTType: ... + @overload + def __rfloordiv__(self, other: np.ndarray) -> npt.NDArray[np.timedelta64]: ... + @overload + def __truediv__(self, other: timedelta) -> float: ... + @overload + def __truediv__(self, other: float) -> Timedelta: ... + def __mod__(self, other: timedelta) -> Timedelta: ... + def __divmod__(self, other: timedelta) -> tuple[int, Timedelta]: ... + def __le__(self, other: timedelta) -> bool: ... + def __lt__(self, other: timedelta) -> bool: ... + def __ge__(self, other: timedelta) -> bool: ... + def __gt__(self, other: timedelta) -> bool: ... + def __hash__(self) -> int: ... + def isoformat(self) -> str: ... + def to_numpy( + self, dtype: npt.DTypeLike = ..., copy: bool = False + ) -> np.timedelta64: ... + def view(self, dtype: npt.DTypeLike) -> object: ... + @property + def unit(self) -> str: ... + def as_unit(self, unit: str, round_ok: bool = ...) -> Timedelta: ... diff --git a/shared/package-files/e8/e8c5bb5e207aaf6c4182b3dfb0d5025444a4911673d4e367c6e795ee8118ceeb/blob b/shared/package-files/e8/e8c5bb5e207aaf6c4182b3dfb0d5025444a4911673d4e367c6e795ee8118ceeb/blob new file mode 100644 index 0000000000000000000000000000000000000000..b9e5ae864c27e3e2fc078fe1ea8c48c25cc50739 --- /dev/null +++ b/shared/package-files/e8/e8c5bb5e207aaf6c4182b3dfb0d5025444a4911673d4e367c6e795ee8118ceeb/blob @@ -0,0 +1,21 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor to_sparse_bsc(const at::Tensor & self, at::IntArrayRef blocksize, c10::optional dense_dim=c10::nullopt); +} // namespace native +} // namespace at diff --git a/shared/package-files/e8/e8c7ca520ebea8a9f0e0b84c9e4ec0dab06c064d7f089d4eb23086722a30bd7e/blob b/shared/package-files/e8/e8c7ca520ebea8a9f0e0b84c9e4ec0dab06c064d7f089d4eb23086722a30bd7e/blob new file mode 100644 index 0000000000000000000000000000000000000000..488f68bc62d9caa662bfadce98a4d7b1837e0ae2 --- /dev/null +++ b/shared/package-files/e8/e8c7ca520ebea8a9f0e0b84c9e4ec0dab06c064d7f089d4eb23086722a30bd7e/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API full_like { + using schema = at::Tensor (const at::Tensor &, const at::Scalar &, c10::optional, c10::optional, c10::optional, c10::optional, c10::optional); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::full_like") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "full_like(Tensor self, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None, MemoryFormat? memory_format=None) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Scalar & fill_value, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & fill_value, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory, c10::optional memory_format); +}; + +struct TORCH_API full_like_out { + using schema = at::Tensor & (const at::Tensor &, const at::Scalar &, c10::optional, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::full_like") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "full_like.out(Tensor self, Scalar fill_value, *, MemoryFormat? memory_format=None, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Scalar & fill_value, c10::optional memory_format, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Scalar & fill_value, c10::optional memory_format, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e8/e8c81bb1f025ccdf0c6d5770877ec10c49483c8fb4c2b55cda582b58e9ef975f/blob b/shared/package-files/e8/e8c81bb1f025ccdf0c6d5770877ec10c49483c8fb4c2b55cda582b58e9ef975f/blob new file mode 100644 index 0000000000000000000000000000000000000000..9baf5e47be9147aa33360b039cb9717d8b123bb8 Binary files /dev/null and b/shared/package-files/e8/e8c81bb1f025ccdf0c6d5770877ec10c49483c8fb4c2b55cda582b58e9ef975f/blob differ diff --git a/shared/package-files/e8/e8ca09333701ba41244e20b8c2c37b7ed0499b88c4b2ca82cac51ef89ca9e647/blob b/shared/package-files/e8/e8ca09333701ba41244e20b8c2c37b7ed0499b88c4b2ca82cac51ef89ca9e647/blob new file mode 100644 index 0000000000000000000000000000000000000000..37f86995d6ce00013643f1b4a8aa387cebaeae72 --- /dev/null +++ b/shared/package-files/e8/e8ca09333701ba41244e20b8c2c37b7ed0499b88c4b2ca82cac51ef89ca9e647/blob @@ -0,0 +1,314 @@ +"""Parse a Python module and describe its classes and functions. + +Parse enough of a Python file to recognize imports and class and +function definitions, and to find out the superclasses of a class. + +The interface consists of a single function: + readmodule_ex(module, path=None) +where module is the name of a Python module, and path is an optional +list of directories where the module is to be searched. If present, +path is prepended to the system search path sys.path. The return value +is a dictionary. The keys of the dictionary are the names of the +classes and functions defined in the module (including classes that are +defined via the from XXX import YYY construct). The values are +instances of classes Class and Function. One special key/value pair is +present for packages: the key '__path__' has a list as its value which +contains the package search path. + +Classes and Functions have a common superclass: _Object. Every instance +has the following attributes: + module -- name of the module; + name -- name of the object; + file -- file in which the object is defined; + lineno -- line in the file where the object's definition starts; + end_lineno -- line in the file where the object's definition ends; + parent -- parent of this object, if any; + children -- nested objects contained in this object. +The 'children' attribute is a dictionary mapping names to objects. + +Instances of Function describe functions with the attributes from _Object, +plus the following: + is_async -- if a function is defined with an 'async' prefix + +Instances of Class describe classes with the attributes from _Object, +plus the following: + super -- list of super classes (Class instances if possible); + methods -- mapping of method names to beginning line numbers. +If the name of a super class is not recognized, the corresponding +entry in the list of super classes is not a class instance but a +string giving the name of the super class. Since import statements +are recognized and imported modules are scanned as well, this +shouldn't happen often. +""" + +import ast +import sys +import importlib.util + +__all__ = ["readmodule", "readmodule_ex", "Class", "Function"] + +_modules = {} # Initialize cache of modules we've seen. + + +class _Object: + "Information about Python class or function." + def __init__(self, module, name, file, lineno, end_lineno, parent): + self.module = module + self.name = name + self.file = file + self.lineno = lineno + self.end_lineno = end_lineno + self.parent = parent + self.children = {} + if parent is not None: + parent.children[name] = self + + +# Odd Function and Class signatures are for back-compatibility. +class Function(_Object): + "Information about a Python function, including methods." + def __init__(self, module, name, file, lineno, + parent=None, is_async=False, *, end_lineno=None): + super().__init__(module, name, file, lineno, end_lineno, parent) + self.is_async = is_async + if isinstance(parent, Class): + parent.methods[name] = lineno + + +class Class(_Object): + "Information about a Python class." + def __init__(self, module, name, super_, file, lineno, + parent=None, *, end_lineno=None): + super().__init__(module, name, file, lineno, end_lineno, parent) + self.super = super_ or [] + self.methods = {} + + +# These 2 functions are used in these tests +# Lib/test/test_pyclbr, Lib/idlelib/idle_test/test_browser.py +def _nest_function(ob, func_name, lineno, end_lineno, is_async=False): + "Return a Function after nesting within ob." + return Function(ob.module, func_name, ob.file, lineno, + parent=ob, is_async=is_async, end_lineno=end_lineno) + +def _nest_class(ob, class_name, lineno, end_lineno, super=None): + "Return a Class after nesting within ob." + return Class(ob.module, class_name, super, ob.file, lineno, + parent=ob, end_lineno=end_lineno) + + +def readmodule(module, path=None): + """Return Class objects for the top-level classes in module. + + This is the original interface, before Functions were added. + """ + + res = {} + for key, value in _readmodule(module, path or []).items(): + if isinstance(value, Class): + res[key] = value + return res + +def readmodule_ex(module, path=None): + """Return a dictionary with all functions and classes in module. + + Search for module in PATH + sys.path. + If possible, include imported superclasses. + Do this by reading source, without importing (and executing) it. + """ + return _readmodule(module, path or []) + + +def _readmodule(module, path, inpackage=None): + """Do the hard work for readmodule[_ex]. + + If inpackage is given, it must be the dotted name of the package in + which we are searching for a submodule, and then PATH must be the + package search path; otherwise, we are searching for a top-level + module, and path is combined with sys.path. + """ + # Compute the full module name (prepending inpackage if set). + if inpackage is not None: + fullmodule = "%s.%s" % (inpackage, module) + else: + fullmodule = module + + # Check in the cache. + if fullmodule in _modules: + return _modules[fullmodule] + + # Initialize the dict for this module's contents. + tree = {} + + # Check if it is a built-in module; we don't do much for these. + if module in sys.builtin_module_names and inpackage is None: + _modules[module] = tree + return tree + + # Check for a dotted module name. + i = module.rfind('.') + if i >= 0: + package = module[:i] + submodule = module[i+1:] + parent = _readmodule(package, path, inpackage) + if inpackage is not None: + package = "%s.%s" % (inpackage, package) + if not '__path__' in parent: + raise ImportError('No package named {}'.format(package)) + return _readmodule(submodule, parent['__path__'], package) + + # Search the path for the module. + f = None + if inpackage is not None: + search_path = path + else: + search_path = path + sys.path + spec = importlib.util._find_spec_from_path(fullmodule, search_path) + if spec is None: + raise ModuleNotFoundError(f"no module named {fullmodule!r}", name=fullmodule) + _modules[fullmodule] = tree + # Is module a package? + if spec.submodule_search_locations is not None: + tree['__path__'] = spec.submodule_search_locations + try: + source = spec.loader.get_source(fullmodule) + except (AttributeError, ImportError): + # If module is not Python source, we cannot do anything. + return tree + else: + if source is None: + return tree + + fname = spec.loader.get_filename(fullmodule) + return _create_tree(fullmodule, path, fname, source, tree, inpackage) + + +class _ModuleBrowser(ast.NodeVisitor): + def __init__(self, module, path, file, tree, inpackage): + self.path = path + self.tree = tree + self.file = file + self.module = module + self.inpackage = inpackage + self.stack = [] + + def visit_ClassDef(self, node): + bases = [] + for base in node.bases: + name = ast.unparse(base) + if name in self.tree: + # We know this super class. + bases.append(self.tree[name]) + elif len(names := name.split(".")) > 1: + # Super class form is module.class: + # look in module for class. + *_, module, class_ = names + if module in _modules: + bases.append(_modules[module].get(class_, name)) + else: + bases.append(name) + + parent = self.stack[-1] if self.stack else None + class_ = Class(self.module, node.name, bases, self.file, node.lineno, + parent=parent, end_lineno=node.end_lineno) + if parent is None: + self.tree[node.name] = class_ + self.stack.append(class_) + self.generic_visit(node) + self.stack.pop() + + def visit_FunctionDef(self, node, *, is_async=False): + parent = self.stack[-1] if self.stack else None + function = Function(self.module, node.name, self.file, node.lineno, + parent, is_async, end_lineno=node.end_lineno) + if parent is None: + self.tree[node.name] = function + self.stack.append(function) + self.generic_visit(node) + self.stack.pop() + + def visit_AsyncFunctionDef(self, node): + self.visit_FunctionDef(node, is_async=True) + + def visit_Import(self, node): + if node.col_offset != 0: + return + + for module in node.names: + try: + try: + _readmodule(module.name, self.path, self.inpackage) + except ImportError: + _readmodule(module.name, []) + except (ImportError, SyntaxError): + # If we can't find or parse the imported module, + # too bad -- don't die here. + continue + + def visit_ImportFrom(self, node): + if node.col_offset != 0: + return + try: + module = "." * node.level + if node.module: + module += node.module + module = _readmodule(module, self.path, self.inpackage) + except (ImportError, SyntaxError): + return + + for name in node.names: + if name.name in module: + self.tree[name.asname or name.name] = module[name.name] + elif name.name == "*": + for import_name, import_value in module.items(): + if import_name.startswith("_"): + continue + self.tree[import_name] = import_value + + +def _create_tree(fullmodule, path, fname, source, tree, inpackage): + mbrowser = _ModuleBrowser(fullmodule, path, fname, tree, inpackage) + mbrowser.visit(ast.parse(source)) + return mbrowser.tree + + +def _main(): + "Print module output (default this file) for quick visual check." + import os + try: + mod = sys.argv[1] + except: + mod = __file__ + if os.path.exists(mod): + path = [os.path.dirname(mod)] + mod = os.path.basename(mod) + if mod.lower().endswith(".py"): + mod = mod[:-3] + else: + path = [] + tree = readmodule_ex(mod, path) + lineno_key = lambda a: getattr(a, 'lineno', 0) + objs = sorted(tree.values(), key=lineno_key, reverse=True) + indent_level = 2 + while objs: + obj = objs.pop() + if isinstance(obj, list): + # Value is a __path__ key. + continue + if not hasattr(obj, 'indent'): + obj.indent = 0 + + if isinstance(obj, _Object): + new_objs = sorted(obj.children.values(), + key=lineno_key, reverse=True) + for ob in new_objs: + ob.indent = obj.indent + indent_level + objs.extend(new_objs) + if isinstance(obj, Class): + print("{}class {} {} {}" + .format(' ' * obj.indent, obj.name, obj.super, obj.lineno)) + elif isinstance(obj, Function): + print("{}def {} {}".format(' ' * obj.indent, obj.name, obj.lineno)) + +if __name__ == "__main__": + _main() diff --git a/shared/package-files/e8/e8ca7272abf7224cac75e88cfaf77d6f3c0e902b15e7a8d8afb506eaf799b568/blob b/shared/package-files/e8/e8ca7272abf7224cac75e88cfaf77d6f3c0e902b15e7a8d8afb506eaf799b568/blob new file mode 100644 index 0000000000000000000000000000000000000000..f799a588baa36fb0d2187df78290b3a2901b0b58 --- /dev/null +++ b/shared/package-files/e8/e8ca7272abf7224cac75e88cfaf77d6f3c0e902b15e7a8d8afb506eaf799b568/blob @@ -0,0 +1,30 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::unsafe_chunk(Tensor self, int chunks, int dim=0) -> Tensor[] +inline ::std::vector unsafe_chunk(const at::Tensor & self, int64_t chunks, int64_t dim=0) { + return at::_ops::unsafe_chunk::call(self, chunks, dim); +} + +} diff --git a/shared/package-files/e8/e8cbdf34a8a12bea0de90c06f4714d7a58217a8e259cbd050ab98817fab17680/blob b/shared/package-files/e8/e8cbdf34a8a12bea0de90c06f4714d7a58217a8e259cbd050ab98817fab17680/blob new file mode 100644 index 0000000000000000000000000000000000000000..4254b796df76edcc9705117e906c7f6f1fb5a1c1 --- /dev/null +++ b/shared/package-files/e8/e8cbdf34a8a12bea0de90c06f4714d7a58217a8e259cbd050ab98817fab17680/blob @@ -0,0 +1,150 @@ +import sys +import datetime as dt +from typing import Any, TypeVar +from pathlib import Path + +import numpy as np +import numpy.typing as npt + +if sys.version_info >= (3, 11): + from typing import assert_type +else: + from typing_extensions import assert_type + +_SCT = TypeVar("_SCT", bound=np.generic, covariant=True) + +class SubClass(np.ndarray[Any, np.dtype[_SCT]]): ... + +subclass: SubClass[np.float64] + +AR_f8: npt.NDArray[np.float64] +AR_i8: npt.NDArray[np.int64] +AR_u1: npt.NDArray[np.uint8] +AR_m: npt.NDArray[np.timedelta64] +AR_M: npt.NDArray[np.datetime64] + +AR_LIKE_f: list[float] +AR_LIKE_i: list[int] + +m: np.timedelta64 +M: np.datetime64 + +b_f8 = np.broadcast(AR_f8) +b_i8_f8_f8 = np.broadcast(AR_i8, AR_f8, AR_f8) + +nditer_obj: np.nditer + +date_scalar: dt.date +date_seq: list[dt.date] +timedelta_seq: list[dt.timedelta] + +def func(a: int) -> bool: ... + +assert_type(next(b_f8), tuple[Any, ...]) +assert_type(b_f8.reset(), None) +assert_type(b_f8.index, int) +assert_type(b_f8.iters, tuple[np.flatiter[Any], ...]) +assert_type(b_f8.nd, int) +assert_type(b_f8.ndim, int) +assert_type(b_f8.numiter, int) +assert_type(b_f8.shape, tuple[int, ...]) +assert_type(b_f8.size, int) + +assert_type(next(b_i8_f8_f8), tuple[Any, ...]) +assert_type(b_i8_f8_f8.reset(), None) +assert_type(b_i8_f8_f8.index, int) +assert_type(b_i8_f8_f8.iters, tuple[np.flatiter[Any], ...]) +assert_type(b_i8_f8_f8.nd, int) +assert_type(b_i8_f8_f8.ndim, int) +assert_type(b_i8_f8_f8.numiter, int) +assert_type(b_i8_f8_f8.shape, tuple[int, ...]) +assert_type(b_i8_f8_f8.size, int) + +assert_type(np.inner(AR_f8, AR_i8), Any) + +assert_type(np.where([True, True, False]), tuple[npt.NDArray[np.intp], ...]) +assert_type(np.where([True, True, False], 1, 0), npt.NDArray[Any]) + +assert_type(np.lexsort([0, 1, 2]), Any) + +assert_type(np.can_cast(np.dtype("i8"), int), bool) +assert_type(np.can_cast(AR_f8, "f8"), bool) +assert_type(np.can_cast(AR_f8, np.complex128, casting="unsafe"), bool) + +assert_type(np.min_scalar_type([1]), np.dtype[Any]) +assert_type(np.min_scalar_type(AR_f8), np.dtype[Any]) + +assert_type(np.result_type(int, [1]), np.dtype[Any]) +assert_type(np.result_type(AR_f8, AR_u1), np.dtype[Any]) +assert_type(np.result_type(AR_f8, np.complex128), np.dtype[Any]) + +assert_type(np.dot(AR_LIKE_f, AR_i8), Any) +assert_type(np.dot(AR_u1, 1), Any) +assert_type(np.dot(1.5j, 1), Any) +assert_type(np.dot(AR_u1, 1, out=AR_f8), npt.NDArray[np.float64]) + +assert_type(np.vdot(AR_LIKE_f, AR_i8), np.floating[Any]) +assert_type(np.vdot(AR_u1, 1), np.signedinteger[Any]) +assert_type(np.vdot(1.5j, 1), np.complexfloating[Any, Any]) + +assert_type(np.bincount(AR_i8), npt.NDArray[np.intp]) + +assert_type(np.copyto(AR_f8, [1., 1.5, 1.6]), None) + +assert_type(np.putmask(AR_f8, [True, True, False], 1.5), None) + +assert_type(np.packbits(AR_i8), npt.NDArray[np.uint8]) +assert_type(np.packbits(AR_u1), npt.NDArray[np.uint8]) + +assert_type(np.unpackbits(AR_u1), npt.NDArray[np.uint8]) + +assert_type(np.shares_memory(1, 2), bool) +assert_type(np.shares_memory(AR_f8, AR_f8, max_work=1), bool) + +assert_type(np.may_share_memory(1, 2), bool) +assert_type(np.may_share_memory(AR_f8, AR_f8, max_work=1), bool) + +assert_type(np.geterrobj(), list[Any]) + +assert_type(np.seterrobj([8192, 521, None]), None) + +assert_type(np.promote_types(np.int32, np.int64), np.dtype[Any]) +assert_type(np.promote_types("f4", float), np.dtype[Any]) + +assert_type(np.frompyfunc(func, 1, 1, identity=None), np.ufunc) + +assert_type(np.datetime_data("m8[D]"), tuple[str, int]) +assert_type(np.datetime_data(np.datetime64), tuple[str, int]) +assert_type(np.datetime_data(np.dtype(np.timedelta64)), tuple[str, int]) + +assert_type(np.busday_count("2011-01", "2011-02"), np.int_) +assert_type(np.busday_count(["2011-01"], "2011-02"), npt.NDArray[np.int_]) +assert_type(np.busday_count(["2011-01"], date_scalar), npt.NDArray[np.int_]) + +assert_type(np.busday_offset(M, m), np.datetime64) +assert_type(np.busday_offset(date_scalar, m), np.datetime64) +assert_type(np.busday_offset(M, 5), np.datetime64) +assert_type(np.busday_offset(AR_M, m), npt.NDArray[np.datetime64]) +assert_type(np.busday_offset(M, timedelta_seq), npt.NDArray[np.datetime64]) +assert_type(np.busday_offset("2011-01", "2011-02", roll="forward"), np.datetime64) +assert_type(np.busday_offset(["2011-01"], "2011-02", roll="forward"), npt.NDArray[np.datetime64]) + +assert_type(np.is_busday("2012"), np.bool_) +assert_type(np.is_busday(date_scalar), np.bool_) +assert_type(np.is_busday(["2012"]), npt.NDArray[np.bool_]) + +assert_type(np.datetime_as_string(M), np.str_) +assert_type(np.datetime_as_string(AR_M), npt.NDArray[np.str_]) + +assert_type(np.busdaycalendar(holidays=date_seq), np.busdaycalendar) +assert_type(np.busdaycalendar(holidays=[M]), np.busdaycalendar) + +assert_type(np.compare_chararrays("a", "b", "!=", rstrip=False), npt.NDArray[np.bool_]) +assert_type(np.compare_chararrays(b"a", b"a", "==", True), npt.NDArray[np.bool_]) + +assert_type(np.add_docstring(func, "test"), None) + +assert_type(np.nested_iters([AR_i8, AR_i8], [[0], [1]], flags=["c_index"]), tuple[np.nditer, ...]) +assert_type(np.nested_iters([AR_i8, AR_i8], [[0], [1]], op_flags=[["readonly", "readonly"]]), tuple[np.nditer, ...]) +assert_type(np.nested_iters([AR_i8, AR_i8], [[0], [1]], op_dtypes=np.int_), tuple[np.nditer, ...]) +assert_type(np.nested_iters([AR_i8, AR_i8], [[0], [1]], order="C", casting="no"), tuple[np.nditer, ...]) diff --git a/shared/package-files/e8/e8cc7a94a7547727f084b9db1ce3b6d9c34e47cb2398a630a1e6443a3c76a562/blob b/shared/package-files/e8/e8cc7a94a7547727f084b9db1ce3b6d9c34e47cb2398a630a1e6443a3c76a562/blob new file mode 100644 index 0000000000000000000000000000000000000000..ece1e320f4c1f6dd2fa3acb9572184c8c821ac03 --- /dev/null +++ b/shared/package-files/e8/e8cc7a94a7547727f084b9db1ce3b6d9c34e47cb2398a630a1e6443a3c76a562/blob @@ -0,0 +1,946 @@ +# mypy: ignore-errors + +import collections +import contextlib +import functools +import importlib +import inspect +import itertools +import random +import sys +import threading +import types +from typing import Dict, List + +from ..bytecode_transformation import create_call_function + +try: + import numpy as np +except ModuleNotFoundError: + np = None + +try: + from torch.utils._cxx_pytree import PyTreeSpec +except ImportError: + PyTreeSpec = type(None) + +import torch._dynamo.config + +import torch.nn +from torch._guards import TracingContext + +from .. import variables +from ..exc import unimplemented +from ..guards import GuardBuilder, install_guard +from ..source import AttrSource, GetItemSource, ODictGetItemSource, RandomValueSource +from ..utils import ( + all_hook_names, + build_checkpoint_variable, + check_constant_args, + get_custom_getattr, + has_torch_function, + is_namedtuple_cls, + is_utils_checkpoint, + istype, + namedtuple_fields, + object_has_getattribute, + proxy_args_kwargs, + tensortype_to_dtype, +) +from .base import MutableLocal, VariableTracker +from .ctx_manager import GenericContextWrappingVariable, NullContextVariable +from .dicts import DefaultDictVariable + + +class UserDefinedVariable(VariableTracker): + pass + + +class UserDefinedClassVariable(UserDefinedVariable): + def __init__(self, value, **kwargs): + super().__init__(**kwargs) + self.value = value + + def as_python_constant(self): + return self.value + + def python_type(self): + return type(self.value) + + def as_proxy(self): + return self.value + + def __str__(self): + return f"UserDefinedClassVariable({self.value})" + + @staticmethod + @functools.lru_cache(None) + def _constant_fold_classes(): + return { + torch.device, + torch.finfo, + torch.iinfo, + torch.Size, + } + + @staticmethod + @functools.lru_cache(None) + def _in_graph_classes(): + return set(tensortype_to_dtype.keys()) | { + torch.Tensor, + torch.cuda.Stream, + torch.cuda.Event, + } + + def can_constant_fold_through(self): + return self.value in self._constant_fold_classes() + + def var_getattr(self, tx, name: str) -> "VariableTracker": + from .. import trace_rules + from . import ConstantVariable + from .builder import VariableBuilder + + if name == "__name__": + return ConstantVariable.create(self.value.__name__) + + source = AttrSource(self.source, name) if self.source is not None else None + try: + obj = inspect.getattr_static(self.value, name) + except AttributeError: + obj = None + + if isinstance(obj, staticmethod): + func = obj.__get__(self.value) + if source is not None: + return trace_rules.lookup(func).create_with_source(func, source=source) + else: + return trace_rules.lookup(func)(func) + elif isinstance(obj, classmethod): + return variables.UserMethodVariable(obj.__func__, self, source=source) + elif source and inspect.ismemberdescriptor(obj): + return VariableBuilder(tx, source)(obj.__get__(self.value)) + + # Special handling of collections.OrderedDict.fromkeys() + # Wrap it as GetAttrVariable(collections.OrderedDict, "fromkeys") to make it consistent with + # collections.defaultdict, and both will be handled at UserDefinedClassVariable.call_method(). + # Otherwise, it would be wrapped as UserDefinedObjectVariable(collections.OrderedDict.fromkeys), + # and we need duplicate code to handle both cases. + if self.value is collections.OrderedDict and name == "fromkeys": + return super().var_getattr(tx, name) + + if name in getattr(self.value, "__dict__", {}) or ( + self.value.__module__.startswith("torch.") + or self.value.__module__ == "torch" + ): + if source: + return VariableBuilder(tx, source)(obj) + elif ConstantVariable.is_literal(obj): + return ConstantVariable.create(obj) + + return super().var_getattr(tx, name) + + def _call_cross_entropy_loss(self, tx, args, kwargs): + """ + functional: input, target, weight=None, size_average=None, ignore_index=- 100, reduce=None, reduction='mean', + label_smoothing=0.0 + + non functional ctor: weight=None, size_average=None, ignore_index=- 100, reduce=None, reduction='mean', + label_smoothing=0.0 + + non functional loss call: input, target, optional_output + """ + from . import ConstantVariable + + def normalize_args( + weight=ConstantVariable.create(None), + size_average=ConstantVariable.create(None), + ignore_index=ConstantVariable.create(-100), + reduce=ConstantVariable.create(None), + reduction=ConstantVariable.create("mean"), + label_smoothing=ConstantVariable.create(0.0), + ): + return ( + weight, + size_average, + ignore_index, + reduce, + reduction, + label_smoothing, + ) + + ( + weight, + size_average, + ignore_index, + reduce_arg, + reduction, + label_smoothing, + ) = normalize_args(*args, **kwargs) + + def fake_cross_entropy_loss(input, target): + from .builder import wrap_fx_proxy + + return wrap_fx_proxy( + tx=tx, + proxy=tx.output.create_proxy( + "call_function", + torch.nn.functional.cross_entropy, + *proxy_args_kwargs( + [ + input, + target, + weight, + size_average, + ignore_index, + reduce_arg, + reduction, + label_smoothing, + ], + {}, + ), + ), + ) + + return variables.LambdaVariable(fake_cross_entropy_loss) + + def call_method( + self, + tx, + name, + args: "List[VariableTracker]", + kwargs: "Dict[str, VariableTracker]", + ) -> "VariableTracker": + if ( + name == "__subclasses__" + and len(args) == 0 + and not kwargs + and "__subclasses__" not in self.value.__dict__ + ): + options = {"mutable_local": MutableLocal()} + subs_as_vars: List[VariableTracker] = list() + for sub in self.value.__subclasses__(): + source = AttrSource(tx.import_source(sub.__module__), sub.__name__) + subs_as_vars.append( + variables.UserDefinedClassVariable(sub, source=source) + ) + + return variables.ListVariable(subs_as_vars, **options) + elif ( + self.value in {collections.OrderedDict, collections.defaultdict} + and name == "fromkeys" + ): + from .builtin import BuiltinVariable + + return BuiltinVariable.call_custom_dict_fromkeys( + tx, self.value, *args, **kwargs + ) + + return super().call_method(tx, name, args, kwargs) + + def call_function( + self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]" + ) -> "VariableTracker": + from ..side_effects import SideEffects + from .builder import SourcelessBuilder, wrap_fx_proxy + from .builtin import BuiltinVariable + + constant_args = check_constant_args(args, kwargs) + + if self.can_constant_fold_through() and constant_args: + # constant fold + return variables.ConstantVariable.create( + self.as_python_constant()( + *[x.as_python_constant() for x in args], + **{k: v.as_python_constant() for k, v in kwargs.items()}, + ), + ) + elif self.value is torch.nn.CrossEntropyLoss: + return self._call_cross_entropy_loss(tx, args, kwargs) + elif self.value is contextlib.nullcontext: + return NullContextVariable() + elif self.value is collections.OrderedDict: + return BuiltinVariable.call_custom_dict( + tx, collections.OrderedDict, *args, **kwargs + ) + elif ( + self.value is collections.defaultdict + and len(args) <= 1 + and DefaultDictVariable.is_supported_arg(args[0]) + ): + return DefaultDictVariable( + {}, + collections.defaultdict, + args[0], + mutable_local=MutableLocal(), + ) + elif self.value is collections.deque and not kwargs: + if len(args) == 0: + items = [] + elif len(args) == 1 and args[0].has_unpack_var_sequence(tx): + items = args[0].unpack_var_sequence(tx) + else: + unimplemented("deque() with more than 1 arg not supported") + return variables.lists.DequeVariable(items, mutable_local=MutableLocal()) + elif self.value is functools.partial: + if not args: + unimplemented("functools.partial malformed") + # The first arg, a callable (the ctor below will assert on types) + fn = args[0] + rest_args = args[1:] + # guards for the produced FunctoolsPartialVariable are installed in FunctoolsPartialVariable ctor from the + # args and keywords + return variables.functions.FunctoolsPartialVariable( + fn, args=rest_args, keywords=kwargs + ) + elif ( + issubclass(type(self.value), type) + and hasattr( + self.value, "__enter__" + ) # TODO(voz): These can invoke user code! + and hasattr( + self.value, "__exit__" + ) # TODO(voz): These can invoke user code! + and check_constant_args(args, kwargs) + and self.value.__init__ == object.__init__ + and len(kwargs) == 0 # TODO(ybliang): support kwargs + ): + unwrapped_args = [x.as_python_constant() for x in args] + return GenericContextWrappingVariable( + unwrapped_args, + cm_obj=self.value(*unwrapped_args), + ) + + elif is_namedtuple_cls(self.value): + fields = namedtuple_fields(self.value) + # check if this a quasi-namedtuple or a real one + if self.value.__module__ == "torch.return_types": + # create pseudo-defaults from values of the quasi-namedtuple + field_defaults = dict(zip(fields, args[0].items)) + else: + field_defaults = self.value._field_defaults + + items = list(args) + items.extend([None] * (len(fields) - len(items))) + + var_tracker_kwargs = {} + for field_name, var_tracker in zip(fields, items): + if var_tracker is None: + if field_name in kwargs: + field_var = kwargs[field_name] + else: + assert field_name in field_defaults + field_var = SourcelessBuilder()(tx, field_defaults[field_name]) + var_tracker_kwargs[field_name] = field_var + + for name, value in var_tracker_kwargs.items(): + assert name in fields + items[fields.index(name)] = value + + assert all(x is not None for x in items) + return variables.NamedTupleVariable(items, self.value) + elif ( + inspect.getattr_static(self.value, "__new__", None) in (object.__new__,) + and SideEffects.cls_supports_mutation_side_effects(self.value) + and self.source + ): + var = tx.output.side_effects.track_object_new( + self.source, + self.value, + variables.UnspecializedNNModuleVariable + if issubclass(self.value, torch.nn.Module) + else UserDefinedObjectVariable, + {}, + ) + if ( + inspect.getattr_static(self.value, "__init__", None) + is torch.nn.Module.__init__ + ): + tx.output.side_effects.store_attr( + var, + "__call_nn_module_init", + variables.ConstantVariable.create(True), + ) + return var + else: + var.call_method(tx, "__init__", args, kwargs) + return var + elif variables.CustomizedDictVariable.is_matching_cls(self.value): + options = {"mutable_local": MutableLocal()} + return variables.CustomizedDictVariable.create( + self.value, args, kwargs, options + ) + elif variables.DataClassVariable.is_matching_cls(self.value): + options = {"mutable_local": MutableLocal()} + return variables.DataClassVariable.create(self.value, args, kwargs, options) + elif ( + variables.RestrictedListSubclassVariable.is_matching_cls(self.value) + and self.source + ): + return variables.RestrictedListSubclassVariable( + variables.BuiltinVariable(list).call_function(tx, args, kwargs).items, + user_cls=self.value, + user_cls_source=self.source, + mutable_local=MutableLocal(), + ) + elif self.value in self._in_graph_classes(): + # torch.LongTensor cannot accept a list of FakeTensors. + # So we stack the list of FakeTensors instead. + if ( + np + and self.value in tensortype_to_dtype + and len(args) == 1 + and isinstance(args[0], variables.ListVariable) + and len(args[0].items) > 1 + and all(isinstance(x, variables.TensorVariable) for x in args[0].items) + ): + # Stack FakeTensor + stacked = wrap_fx_proxy( + tx=tx, + proxy=tx.output.create_proxy( + "call_function", + torch.stack, + *proxy_args_kwargs(args, kwargs), + ), + ) + args = [stacked] + + tensor_variable = wrap_fx_proxy( + tx=tx, + proxy=tx.output.create_proxy( + "call_function", + self.value, + *proxy_args_kwargs(args, kwargs), + ), + ) + + return tensor_variable + + return super().call_function(tx, args, kwargs) + + def const_getattr(self, tx, name): + if name == "__name__": + return self.value.__name__ + return super().const_getattr(tx, name) + + +class UserDefinedObjectVariable(UserDefinedVariable): + """ + Mostly objects of defined type. Catch-all for something where we only know the type. + """ + + _nonvar_fields = {"value", "value_type", *UserDefinedVariable._nonvar_fields} + + def __init__(self, value, value_type=None, **kwargs): + super().__init__(**kwargs) + self.value = value + self.value_type = value_type or type(value) + assert type(value) is self.value_type + + def __str__(self): + inner = self.value_type.__name__ + if inner in [ + "builtin_function_or_method", + "getset_descriptor", + "method_descriptor", + "method", + ]: + inner = str(getattr(self.value, "__name__", None)) + return f"{self.__class__.__name__}({inner})" + + def python_type(self): + return self.value_type + + def guard_as_python_constant(self): + if self.source: + install_guard(self.source.make_guard(GuardBuilder.ID_MATCH)) + return self.value + return super().guard_as_python_constant() + + def torch_function_check(self): + assert has_torch_function( + self + ), f"calling torch function on object without __torch_function__ {self}" + + def get_torch_fn(self, tx): + self.torch_function_check() + from .torch_function import build_torch_function_fn + + return build_torch_function_fn(tx, self.value, self.source) + + def call_torch_function(self, tx, fn, types, args, kwargs): + self.torch_function_check() + + from .torch_function import _get_subclass_type_var, call_torch_function + + return call_torch_function( + tx, + _get_subclass_type_var(tx, self), + self.get_torch_fn(tx), + fn, + types, + args, + kwargs, + ) + + @staticmethod + @functools.lru_cache(None) + def _supported_random_functions(): + fns = { + random.random, + random.randint, + random.randrange, + random.uniform, + } + return fns + + def _maybe_get_baseclass_method(self, name): + if name not in getattr(self.value, "__dict__", {}): + try: + return inspect.getattr_static(type(self.value), name) + except AttributeError: + pass + return None + + def call_method( + self, + tx, + name, + args: "List[VariableTracker]", + kwargs: "Dict[str, VariableTracker]", + ) -> "VariableTracker": + from . import ( + BuiltinVariable, + ConstantVariable, + TupleVariable, + UserMethodVariable, + ) + + method = self._maybe_get_baseclass_method(name) + if method is not None: + if method is object.__init__: + return ConstantVariable.create(None) + + # [NOTE] OrderedDict, dict subtypes must always have source + # We cannot instantiate such subtypes in-graph due to builtin __new__ + if method is collections.OrderedDict.keys: + # subclass of OrderedDict + assert not (args or kwargs) + assert self.source # OrderedDict, dict subtypes must always have source + keys = list(self.value.keys()) + assert all(map(ConstantVariable.is_literal, keys)) + install_guard(self.source.make_guard(GuardBuilder.DICT_CONST_KEYS)) + return TupleVariable([ConstantVariable.create(k) for k in keys]) + + if ( + method in (collections.OrderedDict.__contains__, dict.__contains__) + and len(args) == 1 + and isinstance(args[0], (ConstantVariable, BuiltinVariable)) + and inspect.getattr_static(type(self.value), "keys") + in (collections.OrderedDict.keys, dict.keys) + ): + assert not kwargs + assert self.source # OrderedDict, dict subtypes must always have source + install_guard(self.source.make_guard(GuardBuilder.DICT_CONST_KEYS)) + return ConstantVariable.create( + args[0].as_python_constant() in self.value + ) + + if method is collections.OrderedDict.items and isinstance( + self.value, collections.OrderedDict + ): + assert self.source # OrderedDict, dict subtypes must always have source + assert not (args or kwargs) + items = [] + keys = self.call_method(tx, "keys", [], {}) + for key in keys.unpack_var_sequence(tx): + items.append( + TupleVariable( + [key, self.odict_getitem(tx, key)], + ) + ) + return TupleVariable(items) + + if method is collections.OrderedDict.__getitem__ and len(args) == 1: + assert not kwargs + assert self.source # OrderedDict, dict subtypes must always have source + return self.odict_getitem(tx, args[0]) + + # check for methods implemented in C++ + if isinstance(method, types.FunctionType): + source = ( + None + if self.source is None + else AttrSource(AttrSource(self.source, "__class__"), name) + ) + # TODO(jansel): add a guard to check for monkey patching? + return UserMethodVariable(method, self, source=source).call_function( + tx, args, kwargs + ) + + if method is list.__len__ and self.source and not (args or kwargs): + install_guard(self.source.make_guard(GuardBuilder.SEQUENCE_LENGTH)) + return ConstantVariable(len(self.value)) + + return super().call_method(tx, name, args, kwargs) + + def unpack_var_sequence(self, tx): + if ( + self.source + and self._maybe_get_baseclass_method("__iter__") is list.__iter__ + and self._maybe_get_baseclass_method("__len__") is list.__len__ + and self._maybe_get_baseclass_method("__getitem__") is list.__getitem__ + ): + install_guard(self.source.make_guard(GuardBuilder.SEQUENCE_LENGTH)) + return [ + variables.LazyVariableTracker.create( + self.value[k], + source=GetItemSource(self.source, k), + ) + for k in range(len(self.value)) + ] + return super().unpack_var_sequence(tx) + + def is_supported_random(self): + try: + return self.value in self._supported_random_functions() + except TypeError: + # TypeError: unhashable type + return False + + def call_function( + self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]" + ) -> "VariableTracker": + from .. import trace_rules + from .builder import VariableBuilder + + if ( + self.is_supported_random() + and all(k.is_python_constant() for k in args) + and all(v.is_python_constant() for v in kwargs.values()) + ): + args = [x.as_python_constant() for x in args] + kwargs = {k: v.as_python_constant() for k, v in kwargs.items()} + random_call_index = len(tx.output.random_calls) + example_value = self.value(*args, **kwargs) + source = RandomValueSource(random_call_index) + tx.output.random_calls.append((self.value, args, kwargs)) + return VariableBuilder(tx, source).wrap_unspecialized_primitive( + example_value + ) + elif istype(self.value, types.MethodType): + func = self.value.__func__ + obj = self.value.__self__ + if ( + func is torch.utils._contextlib._DecoratorContextManager.clone + and variables.TorchCtxManagerClassVariable.is_matching_cls( + obj.__class__ + ) + and not (args or kwargs) + ): + return variables.TorchCtxManagerClassVariable( + obj.__class__ + ).call_function(tx, args, kwargs) + + if ( + func is torch.autograd.grad_mode.inference_mode.clone + and obj.__class__ is torch.autograd.grad_mode.inference_mode + ): + # simulate the inference_mode.clone implementation + var = variables.ConstantVariable(obj.mode) + return variables.TorchCtxManagerClassVariable( + obj.__class__ + ).call_function(tx, [var], kwargs) + elif ( + istype(self.value, functools.partial) + and trace_rules.lookup(self.value.func) + == variables.TorchInGraphFunctionVariable + and all( + variables.ConstantVariable.is_literal(v) + for v in itertools.chain(self.value.args, self.value.keywords.values()) + ) + ): + if self.source: + install_guard( + AttrSource(self.source, "func").make_guard(GuardBuilder.ID_MATCH), + AttrSource(self.source, "args").make_guard( + GuardBuilder.CONSTANT_MATCH + ), + AttrSource(self.source, "keywords").make_guard( + GuardBuilder.CONSTANT_MATCH + ), + ) + + partial_args = [ + variables.ConstantVariable.create(v) for v in self.value.args + ] + partial_args.extend(args) + partial_kwargs = { + k: variables.ConstantVariable.create(v) + for k, v in self.value.keywords.items() + } + partial_kwargs.update(kwargs) + if is_utils_checkpoint(self.value.func): + return build_checkpoint_variable().call_function( + tx, partial_args, partial_kwargs + ) + return variables.TorchInGraphFunctionVariable( + self.value.func + ).call_function(tx, partial_args, partial_kwargs) + elif callable(self.value): + if self.source: + install_guard(self.source.make_guard(GuardBuilder.FUNCTION_MATCH)) + return self.call_method(tx, "__call__", args, kwargs) + + return super().call_function(tx, args, kwargs) + + def _check_for_getattribute(self): + if object_has_getattribute(self.value): + unimplemented("UserDefinedObjectVariable with custom __getattribute__") + + def _check_for_getattr(self): + return get_custom_getattr(self.value) + + def _getattr_static(self, name): + if ( + isinstance(self.value, (torch.nn.Module, PyTreeSpec)) + or "__slots__" in self.value.__class__.__dict__ + or type(self.value) == threading.local + ): + # getattr_static doesn't work on these + subobj = getattr(self.value, name) + else: + subobj = inspect.getattr_static(self.value, name) + return subobj + + def var_getattr(self, tx, name): + from .. import trace_rules + from . import ConstantVariable + from .builder import VariableBuilder + + value = self.value + source = AttrSource(self.source, name) if self.source else None + self._check_for_getattribute() + getattr_fn = self._check_for_getattr() + + class NO_SUCH_SUBOBJ: + pass + + try: + subobj = self._getattr_static(name) + except AttributeError: + subobj = NO_SUCH_SUBOBJ + if isinstance(getattr_fn, types.FunctionType): + return variables.UserMethodVariable( + getattr_fn, self, source=source + ).call_function(tx, [ConstantVariable.create(name)], {}) + elif getattr_fn is not None: + unimplemented("UserDefined with non-function __getattr__") + + if isinstance(subobj, property): + # Rewrite the source being explicit about reading it statically. + if self.source: + source = AttrSource(self.source, name, get_static=True) + source = AttrSource(source, "fget") + return variables.UserMethodVariable( + subobj.fget, self, source=source + ).call_function(tx, [], {}) + elif isinstance(subobj, torch.distributions.utils.lazy_property): + subobj_var = UserDefinedObjectVariable(subobj, source=source) + return variables.UserMethodVariable( + subobj.__get__.__func__, subobj_var, source=source + ).call_function(tx, [self], {}) + elif isinstance(subobj, staticmethod): + func = subobj.__get__(self.value) + if source is not None: + return trace_rules.lookup(func).create_with_source(func, source=source) + else: + return trace_rules.lookup(func)(func) + elif isinstance(subobj, classmethod): + return variables.UserMethodVariable( + subobj.__func__, self.var_getattr(tx, "__class__"), source=source + ) + elif isinstance(subobj, types.FunctionType) or ( + isinstance(subobj, types.MethodType) + and isinstance(self.value, torch.nn.Module) + ): + # Since we get subobj via self._getattr_static, which may not trigger dynamic lookup. + # Static lookup can't tell us it's a method or function correctly, + # so we trigger dynamic lookup here to get the correct type. + dynamic_subobj = getattr(self.value, name) + + while dynamic_subobj is subobj and hasattr(subobj, "_torchdynamo_inline"): + subobj = subobj._torchdynamo_inline + dynamic_subobj = subobj + source = AttrSource(source, "_torchdynamo_inline") if source else None + + if isinstance(subobj, types.MethodType): + if dynamic_subobj.__self__ is not self.value: + unimplemented("__self__ mismatch for bound method") + func = subobj.__func__ + else: + assert isinstance(subobj, types.FunctionType) + func = subobj + + if inspect.ismethod(dynamic_subobj): + return variables.UserMethodVariable(func, self, source=source) + elif inspect.isfunction(dynamic_subobj): + if is_utils_checkpoint(func): + return build_checkpoint_variable(source=source) + elif source is not None: + return trace_rules.lookup(func).create_with_source( + func, source=source + ) + else: + return trace_rules.lookup(func)(func) + + if ( + name in getattr(value, "__dict__", {}) + or ConstantVariable.is_literal(subobj) + or isinstance( + subobj, + ( + torch.Tensor, + torch.nn.Module, + ), + ) + ): + if source: + return VariableBuilder(tx, source)(subobj) + elif ConstantVariable.is_literal(subobj): + return ConstantVariable.create(subobj) + + if ( + name not in getattr(value, "__dict__", {}) + and type(value).__module__.startswith("torch.") + and "torch.optim" not in type(value).__module__ + and not callable(value) + and not isinstance(subobj, types.MethodDescriptorType) + ): + if not source: + assert getattr( + importlib.import_module(type(value).__module__), + type(value).__name__, + ) is type(value) + source = AttrSource( + AttrSource( + tx.import_source(type(value).__module__), type(value).__name__ + ), + name, + ) + + return VariableBuilder(tx, source)(subobj) + options = {"source": source} + if isinstance( + subobj, + ( + torch.distributions.constraints._Interval, + torch.distributions.constraints._Real, + torch.distributions.constraints.Constraint, + ), + ): + return UserDefinedObjectVariable(subobj, **options) + elif isinstance(self.value, torch.nn.Module) and name in all_hook_names: + assert isinstance(subobj, collections.OrderedDict) + if not subobj: + return variables.ConstDictVariable( + subobj, collections.OrderedDict, **options + ) + + if name == "__class__": + return UserDefinedClassVariable(type(self.value), **options) + + return variables.GetAttrVariable(self, name, **options) + + def call_hasattr(self, tx, name: str) -> "VariableTracker": + if tx.output.side_effects.is_attribute_mutation(self): + try: + result = tx.output.side_effects.load_attr(self, name, deleted_ok=True) + return variables.ConstantVariable.create( + not isinstance(result, variables.DeletedVariable) + ) + except KeyError: + pass + if self.source: + install_guard( + AttrSource(self.source, name).make_guard(GuardBuilder.HASATTR) + ) + if self._check_for_getattribute() or self._check_for_getattr(): + unimplemented("hasattr with custom __getattr__") + + try: + self._getattr_static(name) + return variables.ConstantVariable.create(True) + except AttributeError: + return variables.ConstantVariable.create(False) + + def odict_getitem(self, tx, key): + from .builder import VariableBuilder + from .dicts import is_hashable + + # TODO this should probably be merged with the dict handling + + index = ( + key.source + if is_hashable(key) and key.source is not None + else key.as_python_constant() + ) + + return VariableBuilder( + tx, + ODictGetItemSource(self.source, index), + )(collections.OrderedDict.__getitem__(self.value, key.as_python_constant())) + + +class KeyedJaggedTensorVariable(UserDefinedObjectVariable): + @staticmethod + def is_matching_object(obj): + mod = sys.modules.get("torchrec.sparse.jagged_tensor") + return mod is not None and type(obj) is mod.KeyedJaggedTensor + + def __init__(self, value, **kwargs): + from torchrec.sparse.jagged_tensor import KeyedJaggedTensor + + assert type(value) is KeyedJaggedTensor + super().__init__(value, **kwargs) + + def var_getattr(self, tx, name): + if ( + torch._dynamo.config.force_unspec_int_unbacked_size_like_on_torchrec_kjt + and self.source is not None + and name in ("_length_per_key", "_offset_per_key") + ): + with TracingContext.patch(force_unspec_int_unbacked_size_like=True): + return super().var_getattr(tx, name) + return super().var_getattr(tx, name) + + +class RemovableHandleVariable(VariableTracker): + REMOVED = -1 + + def __init__( + self, + mutable_local=None, + # index of the registration in the side_effects owned register_hook/handle list, used during removal. + idx=None, + **kwargs, + ): + super().__init__(**kwargs) + self.mutable_local = mutable_local + self.idx = idx + + def call_method(self, tx, method_name, args, kwargs): + if method_name == "remove": + if self.idx != self.REMOVED: + tx.output.side_effects.remove_hook(self.idx) + self.idx = self.REMOVED + return variables.ConstantVariable.create(None) + super().call_method(tx, method_name, args, kwargs) + + def reconstruct(self, codegen): + if self.idx == self.REMOVED: + # Hook has already been removed, return a dummy handle + codegen.load_import_from("torch._dynamo.utils", "invalid_removeable_handle") + codegen.extend_output(create_call_function(0, True)) + return + # unreachable due to codegen.add_cache() when the hook is installed + super().reconstruct(codegen) diff --git a/shared/package-files/e8/e8d1c30924fa86112fc77093f2f84fa9a7da1d1fb271ab1aa1ee1fbd8e83afa2/blob b/shared/package-files/e8/e8d1c30924fa86112fc77093f2f84fa9a7da1d1fb271ab1aa1ee1fbd8e83afa2/blob new file mode 100644 index 0000000000000000000000000000000000000000..b2f492701182549dba0a5c3f11947caef69dea4b --- /dev/null +++ b/shared/package-files/e8/e8d1c30924fa86112fc77093f2f84fa9a7da1d1fb271ab1aa1ee1fbd8e83afa2/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautogradnonfunctional { + +TORCH_API at::Tensor linalg_pinv(const at::Tensor & self, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/e8/e8d76579a10b662a8045d8fe102663c6dc0b7f56ea92539c2b8de6f72a1979fb/blob b/shared/package-files/e8/e8d76579a10b662a8045d8fe102663c6dc0b7f56ea92539c2b8de6f72a1979fb/blob new file mode 100644 index 0000000000000000000000000000000000000000..6174c8d08764a4712cea65d3077a93e7c67a6333 --- /dev/null +++ b/shared/package-files/e8/e8d76579a10b662a8045d8fe102663c6dc0b7f56ea92539c2b8de6f72a1979fb/blob @@ -0,0 +1,1211 @@ +import os +import sys +import textwrap +import types +import re +import warnings +import functools +import platform + +from .._utils import set_module +from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype +from numpy.core import ndarray, ufunc, asarray +import numpy as np + +__all__ = [ + 'issubclass_', 'issubsctype', 'issubdtype', 'deprecate', + 'deprecate_with_doc', 'get_include', 'info', 'source', 'who', + 'lookfor', 'byte_bounds', 'safe_eval', 'show_runtime' + ] + + +def show_runtime(): + """ + Print information about various resources in the system + including available intrinsic support and BLAS/LAPACK library + in use + + .. versionadded:: 1.24.0 + + See Also + -------- + show_config : Show libraries in the system on which NumPy was built. + + Notes + ----- + 1. Information is derived with the help of `threadpoolctl `_ + library if available. + 2. SIMD related information is derived from ``__cpu_features__``, + ``__cpu_baseline__`` and ``__cpu_dispatch__`` + + """ + from numpy.core._multiarray_umath import ( + __cpu_features__, __cpu_baseline__, __cpu_dispatch__ + ) + from pprint import pprint + config_found = [{ + "numpy_version": np.__version__, + "python": sys.version, + "uname": platform.uname(), + }] + features_found, features_not_found = [], [] + for feature in __cpu_dispatch__: + if __cpu_features__[feature]: + features_found.append(feature) + else: + features_not_found.append(feature) + config_found.append({ + "simd_extensions": { + "baseline": __cpu_baseline__, + "found": features_found, + "not_found": features_not_found + } + }) + try: + from threadpoolctl import threadpool_info + config_found.extend(threadpool_info()) + except ImportError: + print("WARNING: `threadpoolctl` not found in system!" + " Install it by `pip install threadpoolctl`." + " Once installed, try `np.show_runtime` again" + " for more detailed build information") + pprint(config_found) + + +def get_include(): + """ + Return the directory that contains the NumPy \\*.h header files. + + Extension modules that need to compile against NumPy should use this + function to locate the appropriate include directory. + + Notes + ----- + When using ``distutils``, for example in ``setup.py``:: + + import numpy as np + ... + Extension('extension_name', ... + include_dirs=[np.get_include()]) + ... + + """ + import numpy + if numpy.show_config is None: + # running from numpy source directory + d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') + else: + # using installed numpy core headers + import numpy.core as core + d = os.path.join(os.path.dirname(core.__file__), 'include') + return d + + +class _Deprecate: + """ + Decorator class to deprecate old functions. + + Refer to `deprecate` for details. + + See Also + -------- + deprecate + + """ + + def __init__(self, old_name=None, new_name=None, message=None): + self.old_name = old_name + self.new_name = new_name + self.message = message + + def __call__(self, func, *args, **kwargs): + """ + Decorator call. Refer to ``decorate``. + + """ + old_name = self.old_name + new_name = self.new_name + message = self.message + + if old_name is None: + old_name = func.__name__ + if new_name is None: + depdoc = "`%s` is deprecated!" % old_name + else: + depdoc = "`%s` is deprecated, use `%s` instead!" % \ + (old_name, new_name) + + if message is not None: + depdoc += "\n" + message + + @functools.wraps(func) + def newfunc(*args, **kwds): + warnings.warn(depdoc, DeprecationWarning, stacklevel=2) + return func(*args, **kwds) + + newfunc.__name__ = old_name + doc = func.__doc__ + if doc is None: + doc = depdoc + else: + lines = doc.expandtabs().split('\n') + indent = _get_indent(lines[1:]) + if lines[0].lstrip(): + # Indent the original first line to let inspect.cleandoc() + # dedent the docstring despite the deprecation notice. + doc = indent * ' ' + doc + else: + # Remove the same leading blank lines as cleandoc() would. + skip = len(lines[0]) + 1 + for line in lines[1:]: + if len(line) > indent: + break + skip += len(line) + 1 + doc = doc[skip:] + depdoc = textwrap.indent(depdoc, ' ' * indent) + doc = '\n\n'.join([depdoc, doc]) + newfunc.__doc__ = doc + + return newfunc + + +def _get_indent(lines): + """ + Determines the leading whitespace that could be removed from all the lines. + """ + indent = sys.maxsize + for line in lines: + content = len(line.lstrip()) + if content: + indent = min(indent, len(line) - content) + if indent == sys.maxsize: + indent = 0 + return indent + + +def deprecate(*args, **kwargs): + """ + Issues a DeprecationWarning, adds warning to `old_name`'s + docstring, rebinds ``old_name.__name__`` and returns the new + function object. + + This function may also be used as a decorator. + + Parameters + ---------- + func : function + The function to be deprecated. + old_name : str, optional + The name of the function to be deprecated. Default is None, in + which case the name of `func` is used. + new_name : str, optional + The new name for the function. Default is None, in which case the + deprecation message is that `old_name` is deprecated. If given, the + deprecation message is that `old_name` is deprecated and `new_name` + should be used instead. + message : str, optional + Additional explanation of the deprecation. Displayed in the + docstring after the warning. + + Returns + ------- + old_func : function + The deprecated function. + + Examples + -------- + Note that ``olduint`` returns a value after printing Deprecation + Warning: + + >>> olduint = np.deprecate(np.uint) + DeprecationWarning: `uint64` is deprecated! # may vary + >>> olduint(6) + 6 + + """ + # Deprecate may be run as a function or as a decorator + # If run as a function, we initialise the decorator class + # and execute its __call__ method. + + if args: + fn = args[0] + args = args[1:] + + return _Deprecate(*args, **kwargs)(fn) + else: + return _Deprecate(*args, **kwargs) + + +def deprecate_with_doc(msg): + """ + Deprecates a function and includes the deprecation in its docstring. + + This function is used as a decorator. It returns an object that can be + used to issue a DeprecationWarning, by passing the to-be decorated + function as argument, this adds warning to the to-be decorated function's + docstring and returns the new function object. + + See Also + -------- + deprecate : Decorate a function such that it issues a `DeprecationWarning` + + Parameters + ---------- + msg : str + Additional explanation of the deprecation. Displayed in the + docstring after the warning. + + Returns + ------- + obj : object + + """ + return _Deprecate(message=msg) + + +#-------------------------------------------- +# Determine if two arrays can share memory +#-------------------------------------------- + +def byte_bounds(a): + """ + Returns pointers to the end-points of an array. + + Parameters + ---------- + a : ndarray + Input array. It must conform to the Python-side of the array + interface. + + Returns + ------- + (low, high) : tuple of 2 integers + The first integer is the first byte of the array, the second + integer is just past the last byte of the array. If `a` is not + contiguous it will not use every byte between the (`low`, `high`) + values. + + Examples + -------- + >>> I = np.eye(2, dtype='f'); I.dtype + dtype('float32') + >>> low, high = np.byte_bounds(I) + >>> high - low == I.size*I.itemsize + True + >>> I = np.eye(2); I.dtype + dtype('float64') + >>> low, high = np.byte_bounds(I) + >>> high - low == I.size*I.itemsize + True + + """ + ai = a.__array_interface__ + a_data = ai['data'][0] + astrides = ai['strides'] + ashape = ai['shape'] + bytes_a = asarray(a).dtype.itemsize + + a_low = a_high = a_data + if astrides is None: + # contiguous case + a_high += a.size * bytes_a + else: + for shape, stride in zip(ashape, astrides): + if stride < 0: + a_low += (shape-1)*stride + else: + a_high += (shape-1)*stride + a_high += bytes_a + return a_low, a_high + + +#----------------------------------------------------------------------------- +# Function for output and information on the variables used. +#----------------------------------------------------------------------------- + + +def who(vardict=None): + """ + Print the NumPy arrays in the given dictionary. + + If there is no dictionary passed in or `vardict` is None then returns + NumPy arrays in the globals() dictionary (all NumPy arrays in the + namespace). + + Parameters + ---------- + vardict : dict, optional + A dictionary possibly containing ndarrays. Default is globals(). + + Returns + ------- + out : None + Returns 'None'. + + Notes + ----- + Prints out the name, shape, bytes and type of all of the ndarrays + present in `vardict`. + + Examples + -------- + >>> a = np.arange(10) + >>> b = np.ones(20) + >>> np.who() + Name Shape Bytes Type + =========================================================== + a 10 80 int64 + b 20 160 float64 + Upper bound on total bytes = 240 + + >>> d = {'x': np.arange(2.0), 'y': np.arange(3.0), 'txt': 'Some str', + ... 'idx':5} + >>> np.who(d) + Name Shape Bytes Type + =========================================================== + x 2 16 float64 + y 3 24 float64 + Upper bound on total bytes = 40 + + """ + if vardict is None: + frame = sys._getframe().f_back + vardict = frame.f_globals + sta = [] + cache = {} + for name in vardict.keys(): + if isinstance(vardict[name], ndarray): + var = vardict[name] + idv = id(var) + if idv in cache.keys(): + namestr = name + " (%s)" % cache[idv] + original = 0 + else: + cache[idv] = name + namestr = name + original = 1 + shapestr = " x ".join(map(str, var.shape)) + bytestr = str(var.nbytes) + sta.append([namestr, shapestr, bytestr, var.dtype.name, + original]) + + maxname = 0 + maxshape = 0 + maxbyte = 0 + totalbytes = 0 + for val in sta: + if maxname < len(val[0]): + maxname = len(val[0]) + if maxshape < len(val[1]): + maxshape = len(val[1]) + if maxbyte < len(val[2]): + maxbyte = len(val[2]) + if val[4]: + totalbytes += int(val[2]) + + if len(sta) > 0: + sp1 = max(10, maxname) + sp2 = max(10, maxshape) + sp3 = max(10, maxbyte) + prval = "Name %s Shape %s Bytes %s Type" % (sp1*' ', sp2*' ', sp3*' ') + print(prval + "\n" + "="*(len(prval)+5) + "\n") + + for val in sta: + print("%s %s %s %s %s %s %s" % (val[0], ' '*(sp1-len(val[0])+4), + val[1], ' '*(sp2-len(val[1])+5), + val[2], ' '*(sp3-len(val[2])+5), + val[3])) + print("\nUpper bound on total bytes = %d" % totalbytes) + return + +#----------------------------------------------------------------------------- + + +# NOTE: pydoc defines a help function which works similarly to this +# except it uses a pager to take over the screen. + +# combine name and arguments and split to multiple lines of width +# characters. End lines on a comma and begin argument list indented with +# the rest of the arguments. +def _split_line(name, arguments, width): + firstwidth = len(name) + k = firstwidth + newstr = name + sepstr = ", " + arglist = arguments.split(sepstr) + for argument in arglist: + if k == firstwidth: + addstr = "" + else: + addstr = sepstr + k = k + len(argument) + len(addstr) + if k > width: + k = firstwidth + 1 + len(argument) + newstr = newstr + ",\n" + " "*(firstwidth+2) + argument + else: + newstr = newstr + addstr + argument + return newstr + +_namedict = None +_dictlist = None + +# Traverse all module directories underneath globals +# to see if something is defined +def _makenamedict(module='numpy'): + module = __import__(module, globals(), locals(), []) + thedict = {module.__name__:module.__dict__} + dictlist = [module.__name__] + totraverse = [module.__dict__] + while True: + if len(totraverse) == 0: + break + thisdict = totraverse.pop(0) + for x in thisdict.keys(): + if isinstance(thisdict[x], types.ModuleType): + modname = thisdict[x].__name__ + if modname not in dictlist: + moddict = thisdict[x].__dict__ + dictlist.append(modname) + totraverse.append(moddict) + thedict[modname] = moddict + return thedict, dictlist + + +def _info(obj, output=None): + """Provide information about ndarray obj. + + Parameters + ---------- + obj : ndarray + Must be ndarray, not checked. + output + Where printed output goes. + + Notes + ----- + Copied over from the numarray module prior to its removal. + Adapted somewhat as only numpy is an option now. + + Called by info. + + """ + extra = "" + tic = "" + bp = lambda x: x + cls = getattr(obj, '__class__', type(obj)) + nm = getattr(cls, '__name__', cls) + strides = obj.strides + endian = obj.dtype.byteorder + + if output is None: + output = sys.stdout + + print("class: ", nm, file=output) + print("shape: ", obj.shape, file=output) + print("strides: ", strides, file=output) + print("itemsize: ", obj.itemsize, file=output) + print("aligned: ", bp(obj.flags.aligned), file=output) + print("contiguous: ", bp(obj.flags.contiguous), file=output) + print("fortran: ", obj.flags.fortran, file=output) + print( + "data pointer: %s%s" % (hex(obj.ctypes._as_parameter_.value), extra), + file=output + ) + print("byteorder: ", end=' ', file=output) + if endian in ['|', '=']: + print("%s%s%s" % (tic, sys.byteorder, tic), file=output) + byteswap = False + elif endian == '>': + print("%sbig%s" % (tic, tic), file=output) + byteswap = sys.byteorder != "big" + else: + print("%slittle%s" % (tic, tic), file=output) + byteswap = sys.byteorder != "little" + print("byteswap: ", bp(byteswap), file=output) + print("type: %s" % obj.dtype, file=output) + + +@set_module('numpy') +def info(object=None, maxwidth=76, output=None, toplevel='numpy'): + """ + Get help information for an array, function, class, or module. + + Parameters + ---------- + object : object or str, optional + Input object or name to get information about. If `object` is + an `ndarray` instance, information about the array is printed. + If `object` is a numpy object, its docstring is given. If it is + a string, available modules are searched for matching objects. + If None, information about `info` itself is returned. + maxwidth : int, optional + Printing width. + output : file like object, optional + File like object that the output is written to, default is + ``None``, in which case ``sys.stdout`` will be used. + The object has to be opened in 'w' or 'a' mode. + toplevel : str, optional + Start search at this level. + + See Also + -------- + source, lookfor + + Notes + ----- + When used interactively with an object, ``np.info(obj)`` is equivalent + to ``help(obj)`` on the Python prompt or ``obj?`` on the IPython + prompt. + + Examples + -------- + >>> np.info(np.polyval) # doctest: +SKIP + polyval(p, x) + Evaluate the polynomial p at x. + ... + + When using a string for `object` it is possible to get multiple results. + + >>> np.info('fft') # doctest: +SKIP + *** Found in numpy *** + Core FFT routines + ... + *** Found in numpy.fft *** + fft(a, n=None, axis=-1) + ... + *** Repeat reference found in numpy.fft.fftpack *** + *** Total of 3 references found. *** + + When the argument is an array, information about the array is printed. + + >>> a = np.array([[1 + 2j, 3, -4], [-5j, 6, 0]], dtype=np.complex64) + >>> np.info(a) + class: ndarray + shape: (2, 3) + strides: (24, 8) + itemsize: 8 + aligned: True + contiguous: True + fortran: False + data pointer: 0x562b6e0d2860 # may vary + byteorder: little + byteswap: False + type: complex64 + + """ + global _namedict, _dictlist + # Local import to speed up numpy's import time. + import pydoc + import inspect + + if (hasattr(object, '_ppimport_importer') or + hasattr(object, '_ppimport_module')): + object = object._ppimport_module + elif hasattr(object, '_ppimport_attr'): + object = object._ppimport_attr + + if output is None: + output = sys.stdout + + if object is None: + info(info) + elif isinstance(object, ndarray): + _info(object, output=output) + elif isinstance(object, str): + if _namedict is None: + _namedict, _dictlist = _makenamedict(toplevel) + numfound = 0 + objlist = [] + for namestr in _dictlist: + try: + obj = _namedict[namestr][object] + if id(obj) in objlist: + print("\n " + "*** Repeat reference found in %s *** " % namestr, + file=output + ) + else: + objlist.append(id(obj)) + print(" *** Found in %s ***" % namestr, file=output) + info(obj) + print("-"*maxwidth, file=output) + numfound += 1 + except KeyError: + pass + if numfound == 0: + print("Help for %s not found." % object, file=output) + else: + print("\n " + "*** Total of %d references found. ***" % numfound, + file=output + ) + + elif inspect.isfunction(object) or inspect.ismethod(object): + name = object.__name__ + try: + arguments = str(inspect.signature(object)) + except Exception: + arguments = "()" + + if len(name+arguments) > maxwidth: + argstr = _split_line(name, arguments, maxwidth) + else: + argstr = name + arguments + + print(" " + argstr + "\n", file=output) + print(inspect.getdoc(object), file=output) + + elif inspect.isclass(object): + name = object.__name__ + try: + arguments = str(inspect.signature(object)) + except Exception: + arguments = "()" + + if len(name+arguments) > maxwidth: + argstr = _split_line(name, arguments, maxwidth) + else: + argstr = name + arguments + + print(" " + argstr + "\n", file=output) + doc1 = inspect.getdoc(object) + if doc1 is None: + if hasattr(object, '__init__'): + print(inspect.getdoc(object.__init__), file=output) + else: + print(inspect.getdoc(object), file=output) + + methods = pydoc.allmethods(object) + + public_methods = [meth for meth in methods if meth[0] != '_'] + if public_methods: + print("\n\nMethods:\n", file=output) + for meth in public_methods: + thisobj = getattr(object, meth, None) + if thisobj is not None: + methstr, other = pydoc.splitdoc( + inspect.getdoc(thisobj) or "None" + ) + print(" %s -- %s" % (meth, methstr), file=output) + + elif hasattr(object, '__doc__'): + print(inspect.getdoc(object), file=output) + + +@set_module('numpy') +def source(object, output=sys.stdout): + """ + Print or write to a file the source code for a NumPy object. + + The source code is only returned for objects written in Python. Many + functions and classes are defined in C and will therefore not return + useful information. + + Parameters + ---------- + object : numpy object + Input object. This can be any object (function, class, module, + ...). + output : file object, optional + If `output` not supplied then source code is printed to screen + (sys.stdout). File object must be created with either write 'w' or + append 'a' modes. + + See Also + -------- + lookfor, info + + Examples + -------- + >>> np.source(np.interp) #doctest: +SKIP + In file: /usr/lib/python2.6/dist-packages/numpy/lib/function_base.py + def interp(x, xp, fp, left=None, right=None): + \"\"\".... (full docstring printed)\"\"\" + if isinstance(x, (float, int, number)): + return compiled_interp([x], xp, fp, left, right).item() + else: + return compiled_interp(x, xp, fp, left, right) + + The source code is only returned for objects written in Python. + + >>> np.source(np.array) #doctest: +SKIP + Not available for this object. + + """ + # Local import to speed up numpy's import time. + import inspect + try: + print("In file: %s\n" % inspect.getsourcefile(object), file=output) + print(inspect.getsource(object), file=output) + except Exception: + print("Not available for this object.", file=output) + + +# Cache for lookfor: {id(module): {name: (docstring, kind, index), ...}...} +# where kind: "func", "class", "module", "object" +# and index: index in breadth-first namespace traversal +_lookfor_caches = {} + +# regexp whose match indicates that the string may contain a function +# signature +_function_signature_re = re.compile(r"[a-z0-9_]+\(.*[,=].*\)", re.I) + + +@set_module('numpy') +def lookfor(what, module=None, import_modules=True, regenerate=False, + output=None): + """ + Do a keyword search on docstrings. + + A list of objects that matched the search is displayed, + sorted by relevance. All given keywords need to be found in the + docstring for it to be returned as a result, but the order does + not matter. + + Parameters + ---------- + what : str + String containing words to look for. + module : str or list, optional + Name of module(s) whose docstrings to go through. + import_modules : bool, optional + Whether to import sub-modules in packages. Default is True. + regenerate : bool, optional + Whether to re-generate the docstring cache. Default is False. + output : file-like, optional + File-like object to write the output to. If omitted, use a pager. + + See Also + -------- + source, info + + Notes + ----- + Relevance is determined only roughly, by checking if the keywords occur + in the function name, at the start of a docstring, etc. + + Examples + -------- + >>> np.lookfor('binary representation') # doctest: +SKIP + Search results for 'binary representation' + ------------------------------------------ + numpy.binary_repr + Return the binary representation of the input number as a string. + numpy.core.setup_common.long_double_representation + Given a binary dump as given by GNU od -b, look for long double + numpy.base_repr + Return a string representation of a number in the given base system. + ... + + """ + import pydoc + + # Cache + cache = _lookfor_generate_cache(module, import_modules, regenerate) + + # Search + # XXX: maybe using a real stemming search engine would be better? + found = [] + whats = str(what).lower().split() + if not whats: + return + + for name, (docstring, kind, index) in cache.items(): + if kind in ('module', 'object'): + # don't show modules or objects + continue + doc = docstring.lower() + if all(w in doc for w in whats): + found.append(name) + + # Relevance sort + # XXX: this is full Harrison-Stetson heuristics now, + # XXX: it probably could be improved + + kind_relevance = {'func': 1000, 'class': 1000, + 'module': -1000, 'object': -1000} + + def relevance(name, docstr, kind, index): + r = 0 + # do the keywords occur within the start of the docstring? + first_doc = "\n".join(docstr.lower().strip().split("\n")[:3]) + r += sum([200 for w in whats if w in first_doc]) + # do the keywords occur in the function name? + r += sum([30 for w in whats if w in name]) + # is the full name long? + r += -len(name) * 5 + # is the object of bad type? + r += kind_relevance.get(kind, -1000) + # is the object deep in namespace hierarchy? + r += -name.count('.') * 10 + r += max(-index / 100, -100) + return r + + def relevance_value(a): + return relevance(a, *cache[a]) + found.sort(key=relevance_value) + + # Pretty-print + s = "Search results for '%s'" % (' '.join(whats)) + help_text = [s, "-"*len(s)] + for name in found[::-1]: + doc, kind, ix = cache[name] + + doclines = [line.strip() for line in doc.strip().split("\n") + if line.strip()] + + # find a suitable short description + try: + first_doc = doclines[0].strip() + if _function_signature_re.search(first_doc): + first_doc = doclines[1].strip() + except IndexError: + first_doc = "" + help_text.append("%s\n %s" % (name, first_doc)) + + if not found: + help_text.append("Nothing found.") + + # Output + if output is not None: + output.write("\n".join(help_text)) + elif len(help_text) > 10: + pager = pydoc.getpager() + pager("\n".join(help_text)) + else: + print("\n".join(help_text)) + +def _lookfor_generate_cache(module, import_modules, regenerate): + """ + Generate docstring cache for given module. + + Parameters + ---------- + module : str, None, module + Module for which to generate docstring cache + import_modules : bool + Whether to import sub-modules in packages. + regenerate : bool + Re-generate the docstring cache + + Returns + ------- + cache : dict {obj_full_name: (docstring, kind, index), ...} + Docstring cache for the module, either cached one (regenerate=False) + or newly generated. + + """ + # Local import to speed up numpy's import time. + import inspect + + from io import StringIO + + if module is None: + module = "numpy" + + if isinstance(module, str): + try: + __import__(module) + except ImportError: + return {} + module = sys.modules[module] + elif isinstance(module, list) or isinstance(module, tuple): + cache = {} + for mod in module: + cache.update(_lookfor_generate_cache(mod, import_modules, + regenerate)) + return cache + + if id(module) in _lookfor_caches and not regenerate: + return _lookfor_caches[id(module)] + + # walk items and collect docstrings + cache = {} + _lookfor_caches[id(module)] = cache + seen = {} + index = 0 + stack = [(module.__name__, module)] + while stack: + name, item = stack.pop(0) + if id(item) in seen: + continue + seen[id(item)] = True + + index += 1 + kind = "object" + + if inspect.ismodule(item): + kind = "module" + try: + _all = item.__all__ + except AttributeError: + _all = None + + # import sub-packages + if import_modules and hasattr(item, '__path__'): + for pth in item.__path__: + for mod_path in os.listdir(pth): + this_py = os.path.join(pth, mod_path) + init_py = os.path.join(pth, mod_path, '__init__.py') + if (os.path.isfile(this_py) and + mod_path.endswith('.py')): + to_import = mod_path[:-3] + elif os.path.isfile(init_py): + to_import = mod_path + else: + continue + if to_import == '__init__': + continue + + try: + old_stdout = sys.stdout + old_stderr = sys.stderr + try: + sys.stdout = StringIO() + sys.stderr = StringIO() + __import__("%s.%s" % (name, to_import)) + finally: + sys.stdout = old_stdout + sys.stderr = old_stderr + except KeyboardInterrupt: + # Assume keyboard interrupt came from a user + raise + except BaseException: + # Ignore also SystemExit and pytests.importorskip + # `Skipped` (these are BaseExceptions; gh-22345) + continue + + for n, v in _getmembers(item): + try: + item_name = getattr(v, '__name__', "%s.%s" % (name, n)) + mod_name = getattr(v, '__module__', None) + except NameError: + # ref. SWIG's global cvars + # NameError: Unknown C global variable + item_name = "%s.%s" % (name, n) + mod_name = None + if '.' not in item_name and mod_name: + item_name = "%s.%s" % (mod_name, item_name) + + if not item_name.startswith(name + '.'): + # don't crawl "foreign" objects + if isinstance(v, ufunc): + # ... unless they are ufuncs + pass + else: + continue + elif not (inspect.ismodule(v) or _all is None or n in _all): + continue + stack.append(("%s.%s" % (name, n), v)) + elif inspect.isclass(item): + kind = "class" + for n, v in _getmembers(item): + stack.append(("%s.%s" % (name, n), v)) + elif hasattr(item, "__call__"): + kind = "func" + + try: + doc = inspect.getdoc(item) + except NameError: + # ref SWIG's NameError: Unknown C global variable + doc = None + if doc is not None: + cache[name] = (doc, kind, index) + + return cache + +def _getmembers(item): + import inspect + try: + members = inspect.getmembers(item) + except Exception: + members = [(x, getattr(item, x)) for x in dir(item) + if hasattr(item, x)] + return members + + +def safe_eval(source): + """ + Protected string evaluation. + + Evaluate a string containing a Python literal expression without + allowing the execution of arbitrary non-literal code. + + .. warning:: + + This function is identical to :py:meth:`ast.literal_eval` and + has the same security implications. It may not always be safe + to evaluate large input strings. + + Parameters + ---------- + source : str + The string to evaluate. + + Returns + ------- + obj : object + The result of evaluating `source`. + + Raises + ------ + SyntaxError + If the code has invalid Python syntax, or if it contains + non-literal code. + + Examples + -------- + >>> np.safe_eval('1') + 1 + >>> np.safe_eval('[1, 2, 3]') + [1, 2, 3] + >>> np.safe_eval('{"foo": ("bar", 10.0)}') + {'foo': ('bar', 10.0)} + + >>> np.safe_eval('import os') + Traceback (most recent call last): + ... + SyntaxError: invalid syntax + + >>> np.safe_eval('open("/home/user/.ssh/id_dsa").read()') + Traceback (most recent call last): + ... + ValueError: malformed node or string: <_ast.Call object at 0x...> + + """ + # Local import to speed up numpy's import time. + import ast + return ast.literal_eval(source) + + +def _median_nancheck(data, result, axis): + """ + Utility function to check median result from data for NaN values at the end + and return NaN in that case. Input result can also be a MaskedArray. + + Parameters + ---------- + data : array + Sorted input data to median function + result : Array or MaskedArray + Result of median function. + axis : int + Axis along which the median was computed. + + Returns + ------- + result : scalar or ndarray + Median or NaN in axes which contained NaN in the input. If the input + was an array, NaN will be inserted in-place. If a scalar, either the + input itself or a scalar NaN. + """ + if data.size == 0: + return result + potential_nans = data.take(-1, axis=axis) + n = np.isnan(potential_nans) + # masked NaN values are ok, although for masked the copyto may fail for + # unmasked ones (this was always broken) when the result is a scalar. + if np.ma.isMaskedArray(n): + n = n.filled(False) + + if not n.any(): + return result + + # Without given output, it is possible that the current result is a + # numpy scalar, which is not writeable. If so, just return nan. + if isinstance(result, np.generic): + return potential_nans + + # Otherwise copy NaNs (if there are any) + np.copyto(result, potential_nans, where=n) + return result + +def _opt_info(): + """ + Returns a string contains the supported CPU features by the current build. + + The string format can be explained as follows: + - dispatched features that are supported by the running machine + end with `*`. + - dispatched features that are "not" supported by the running machine + end with `?`. + - remained features are representing the baseline. + """ + from numpy.core._multiarray_umath import ( + __cpu_features__, __cpu_baseline__, __cpu_dispatch__ + ) + + if len(__cpu_baseline__) == 0 and len(__cpu_dispatch__) == 0: + return '' + + enabled_features = ' '.join(__cpu_baseline__) + for feature in __cpu_dispatch__: + if __cpu_features__[feature]: + enabled_features += f" {feature}*" + else: + enabled_features += f" {feature}?" + + return enabled_features + + +def drop_metadata(dtype, /): + """ + Returns the dtype unchanged if it contained no metadata or a copy of the + dtype if it (or any of its structure dtypes) contained metadata. + + This utility is used by `np.save` and `np.savez` to drop metadata before + saving. + + .. note:: + + Due to its limitation this function may move to a more appropriate + home or change in the future and is considered semi-public API only. + + .. warning:: + + This function does not preserve more strange things like record dtypes + and user dtypes may simply return the wrong thing. If you need to be + sure about the latter, check the result with: + ``np.can_cast(new_dtype, dtype, casting="no")``. + + """ + if dtype.fields is not None: + found_metadata = dtype.metadata is not None + + names = [] + formats = [] + offsets = [] + titles = [] + for name, field in dtype.fields.items(): + field_dt = drop_metadata(field[0]) + if field_dt is not field[0]: + found_metadata = True + + names.append(name) + formats.append(field_dt) + offsets.append(field[1]) + titles.append(None if len(field) < 3 else field[2]) + + if not found_metadata: + return dtype + + structure = dict( + names=names, formats=formats, offsets=offsets, titles=titles, + itemsize=dtype.itemsize) + + # NOTE: Could pass (dtype.type, structure) to preserve record dtypes... + return np.dtype(structure, align=dtype.isalignedstruct) + elif dtype.subdtype is not None: + # subarray dtype + subdtype, shape = dtype.subdtype + new_subdtype = drop_metadata(subdtype) + if dtype.metadata is None and new_subdtype is subdtype: + return dtype + + return np.dtype((new_subdtype, shape)) + else: + # Normal unstructured dtype + if dtype.metadata is None: + return dtype + # Note that `dt.str` doesn't round-trip e.g. for user-dtypes. + return np.dtype(dtype.str) diff --git a/shared/package-files/e8/e8d8331aded731a2eeceaaa2818a89cc44566e9bd6fa90c9dfa2fc38055f74ac/blob b/shared/package-files/e8/e8d8331aded731a2eeceaaa2818a89cc44566e9bd6fa90c9dfa2fc38055f74ac/blob new file mode 100644 index 0000000000000000000000000000000000000000..88dca51089c56629aa2e59f98359aa4ee5a39027 --- /dev/null +++ b/shared/package-files/e8/e8d8331aded731a2eeceaaa2818a89cc44566e9bd6fa90c9dfa2fc38055f74ac/blob @@ -0,0 +1,77 @@ +import os +from joblib import cpu_count + + +# Module level cache for cpu_count as we do not expect this to change during +# the lifecycle of a Python program. This dictionary is keyed by +# only_physical_cores. +_CPU_COUNTS = {} + + +def _openmp_parallelism_enabled(): + """Determines whether scikit-learn has been built with OpenMP + + It allows to retrieve at runtime the information gathered at compile time. + """ + # SKLEARN_OPENMP_PARALLELISM_ENABLED is resolved at compile time and defined + # in _openmp_helpers.pxd as a boolean. This function exposes it to Python. + return SKLEARN_OPENMP_PARALLELISM_ENABLED + + +cpdef _openmp_effective_n_threads(n_threads=None, only_physical_cores=True): + """Determine the effective number of threads to be used for OpenMP calls + + - For ``n_threads = None``, + - if the ``OMP_NUM_THREADS`` environment variable is set, return + ``openmp.omp_get_max_threads()`` + - otherwise, return the minimum between ``openmp.omp_get_max_threads()`` + and the number of cpus, taking cgroups quotas into account. Cgroups + quotas can typically be set by tools such as Docker. + The result of ``omp_get_max_threads`` can be influenced by environment + variable ``OMP_NUM_THREADS`` or at runtime by ``omp_set_num_threads``. + + - For ``n_threads > 0``, return this as the maximal number of threads for + parallel OpenMP calls. + + - For ``n_threads < 0``, return the maximal number of threads minus + ``|n_threads + 1|``. In particular ``n_threads = -1`` will use as many + threads as there are available cores on the machine. + + - Raise a ValueError for ``n_threads = 0``. + + Passing the `only_physical_cores=False` flag makes it possible to use extra + threads for SMT/HyperThreading logical cores. It has been empirically + observed that using as many threads as available SMT cores can slightly + improve the performance in some cases, but can severely degrade + performance other times. Therefore it is recommended to use + `only_physical_cores=True` unless an empirical study has been conducted to + assess the impact of SMT on a case-by-case basis (using various input data + shapes, in particular small data shapes). + + If scikit-learn is built without OpenMP support, always return 1. + """ + if n_threads == 0: + raise ValueError("n_threads = 0 is invalid") + + if not SKLEARN_OPENMP_PARALLELISM_ENABLED: + # OpenMP disabled at build-time => sequential mode + return 1 + + if os.getenv("OMP_NUM_THREADS"): + # Fall back to user provided number of threads making it possible + # to exceed the number of cpus. + max_n_threads = omp_get_max_threads() + else: + try: + n_cpus = _CPU_COUNTS[only_physical_cores] + except KeyError: + n_cpus = cpu_count(only_physical_cores=only_physical_cores) + _CPU_COUNTS[only_physical_cores] = n_cpus + max_n_threads = min(omp_get_max_threads(), n_cpus) + + if n_threads is None: + return max_n_threads + elif n_threads < 0: + return max(1, max_n_threads + n_threads + 1) + + return n_threads diff --git a/shared/package-files/e8/e8d92e575cce9acfb8a87421abe70673e72a11580a1e4eea77730b0ccf9ed810/blob b/shared/package-files/e8/e8d92e575cce9acfb8a87421abe70673e72a11580a1e4eea77730b0ccf9ed810/blob new file mode 100644 index 0000000000000000000000000000000000000000..c39331e3aa7d7c3c9f38e8ef83e739f0d09194b3 Binary files /dev/null and b/shared/package-files/e8/e8d92e575cce9acfb8a87421abe70673e72a11580a1e4eea77730b0ccf9ed810/blob differ diff --git a/shared/package-files/e8/e8dc4e0f14d651e67f22fb9ecd433f00c9b973bdf02273bae78b6d89cb206a15/blob b/shared/package-files/e8/e8dc4e0f14d651e67f22fb9ecd433f00c9b973bdf02273bae78b6d89cb206a15/blob new file mode 100644 index 0000000000000000000000000000000000000000..ba7e97f5ea5ae0acd2f32d1c45b0ff4dc1662ee6 --- /dev/null +++ b/shared/package-files/e8/e8dc4e0f14d651e67f22fb9ecd433f00c9b973bdf02273bae78b6d89cb206a15/blob @@ -0,0 +1,52 @@ +"""Test for autolag of adfuller + +Created on Wed May 30 21:39:46 2012 +Author: Josef Perktold +""" +import numpy as np +from numpy.testing import assert_almost_equal, assert_equal + +from statsmodels.datasets import macrodata +import statsmodels.tsa.stattools as tsast + + +def test_adf_autolag(): + # see issue #246 + # this is mostly a unit test + d2 = macrodata.load_pandas().data + x = np.log(d2["realgdp"].values) + for k_trend, tr in enumerate(["n", "c", "ct", "ctt"]): + x = np.log(d2["realgdp"].values) + xd = np.diff(x) + + # check exog + adf3 = tsast.adfuller(x, maxlag=None, autolag="aic", + regression=tr, store=True, regresults=True, + result_object=False) + st2 = adf3[-1] + + assert_equal(len(st2.autolag_results), 15 + 1) # +1 for lagged level + for i, res in sorted(st2.autolag_results.items())[:5]: + lag = i - k_trend + # assert correct design matrices in _autolag + assert_equal(res.model.exog[-10:, k_trend], x[-11:-1]) + assert_equal(res.model.exog[-1, k_trend+1:], xd[-lag:-1][::-1]) + # min-ic lag of dfgls in Stata is also 2, or 9 for maic with notrend + assert_equal(st2.usedlag, 2) + + # same result with lag fixed at lags of autolag + adf2 = tsast.adfuller( + x, maxlag=2, autolag=None, regression=tr, result_object=False + ) + assert_almost_equal(adf3[:2], adf2[:2], decimal=12) + + tr = "c" + # check maxlag with autolag + adf3 = tsast.adfuller(x, maxlag=5, autolag="aic", + regression=tr, store=True, regresults=True, + result_object=False) + assert_equal(len(adf3[-1].autolag_results), 5 + 1) + adf3 = tsast.adfuller(x, maxlag=0, autolag="aic", + regression=tr, store=True, regresults=True, + result_object=False) + assert_equal(len(adf3[-1].autolag_results), 0 + 1) diff --git a/shared/package-files/e8/e8dc9ef797fdc3372a63f31e881dd705132ffd78d0cf054b7d73f1ed9d146ee8/blob b/shared/package-files/e8/e8dc9ef797fdc3372a63f31e881dd705132ffd78d0cf054b7d73f1ed9d146ee8/blob new file mode 100644 index 0000000000000000000000000000000000000000..9580f0d247e5863cc8cfff1aa79f4f71811f782f Binary files /dev/null and b/shared/package-files/e8/e8dc9ef797fdc3372a63f31e881dd705132ffd78d0cf054b7d73f1ed9d146ee8/blob differ diff --git a/shared/package-files/e8/e8dd6d7e5945a274e358aee2561ab704d5e3ecaf84d6675f15fb8bc2d907122d/blob b/shared/package-files/e8/e8dd6d7e5945a274e358aee2561ab704d5e3ecaf84d6675f15fb8bc2d907122d/blob new file mode 100644 index 0000000000000000000000000000000000000000..dcf185911cb86a2b2722acda14cc3b82c8086a0e --- /dev/null +++ b/shared/package-files/e8/e8dd6d7e5945a274e358aee2561ab704d5e3ecaf84d6675f15fb8bc2d907122d/blob @@ -0,0 +1,361 @@ +import unicodedata +import os +from itertools import product +from collections import deque +from typing import Callable, Iterator, List, Optional, Tuple, Type, TypeVar, Union, Dict, Any, Sequence, Iterable, AbstractSet + +###{standalone +import sys, re +import logging + +logger: logging.Logger = logging.getLogger("lark") +logger.addHandler(logging.StreamHandler()) +# Set to highest level, since we have some warnings amongst the code +# By default, we should not output any log messages +logger.setLevel(logging.CRITICAL) + + +NO_VALUE = object() + +T = TypeVar("T") + + +def classify(seq: Iterable, key: Optional[Callable] = None, value: Optional[Callable] = None) -> Dict: + d: Dict[Any, Any] = {} + for item in seq: + k = key(item) if (key is not None) else item + v = value(item) if (value is not None) else item + try: + d[k].append(v) + except KeyError: + d[k] = [v] + return d + + +def _deserialize(data: Any, namespace: Dict[str, Any], memo: Dict) -> Any: + if isinstance(data, dict): + if '__type__' in data: # Object + class_ = namespace[data['__type__']] + return class_.deserialize(data, memo) + elif '@' in data: + return memo[data['@']] + return {key:_deserialize(value, namespace, memo) for key, value in data.items()} + elif isinstance(data, list): + return [_deserialize(value, namespace, memo) for value in data] + return data + + +_T = TypeVar("_T", bound="Serialize") + +class Serialize: + """Safe-ish serialization interface that doesn't rely on Pickle + + Attributes: + __serialize_fields__ (List[str]): Fields (aka attributes) to serialize. + __serialize_namespace__ (list): List of classes that deserialization is allowed to instantiate. + Should include all field types that aren't builtin types. + """ + + def memo_serialize(self, types_to_memoize: List) -> Any: + memo = SerializeMemoizer(types_to_memoize) + return self.serialize(memo), memo.serialize() + + def serialize(self, memo = None) -> Dict[str, Any]: + if memo and memo.in_types(self): + return {'@': memo.memoized.get(self)} + + fields = getattr(self, '__serialize_fields__') + res = {f: _serialize(getattr(self, f), memo) for f in fields} + res['__type__'] = type(self).__name__ + if hasattr(self, '_serialize'): + self._serialize(res, memo) # type: ignore[attr-defined] + return res + + @classmethod + def deserialize(cls: Type[_T], data: Dict[str, Any], memo: Dict[int, Any]) -> _T: + namespace = getattr(cls, '__serialize_namespace__', []) + namespace = {c.__name__:c for c in namespace} + + fields = getattr(cls, '__serialize_fields__') + + if '@' in data: + return memo[data['@']] + + inst = cls.__new__(cls) + for f in fields: + try: + setattr(inst, f, _deserialize(data[f], namespace, memo)) + except KeyError as e: + raise KeyError("Cannot find key for class", cls, e) + + if hasattr(inst, '_deserialize'): + inst._deserialize() # type: ignore[attr-defined] + + return inst + + +class SerializeMemoizer(Serialize): + "A version of serialize that memoizes objects to reduce space" + + __serialize_fields__ = 'memoized', + + def __init__(self, types_to_memoize: List) -> None: + self.types_to_memoize = tuple(types_to_memoize) + self.memoized = Enumerator() + + def in_types(self, value: Serialize) -> bool: + return isinstance(value, self.types_to_memoize) + + def serialize(self) -> Dict[int, Any]: # type: ignore[override] + return _serialize(self.memoized.reversed(), None) + + @classmethod + def deserialize(cls, data: Dict[int, Any], namespace: Dict[str, Any], memo: Dict[Any, Any]) -> Dict[int, Any]: # type: ignore[override] + return _deserialize(data, namespace, memo) + + +try: + import regex + _has_regex = True +except ImportError: + _has_regex = False + +if sys.version_info >= (3, 11): + import re._parser as sre_parse + import re._constants as sre_constants +else: + import sre_parse + import sre_constants + +categ_pattern = re.compile(r'\\p{[A-Za-z_]+}') + +def get_regexp_width(expr: str) -> Union[Tuple[int, int], List[int]]: + if _has_regex: + # Since `sre_parse` cannot deal with Unicode categories of the form `\p{Mn}`, we replace these with + # a simple letter, which makes no difference as we are only trying to get the possible lengths of the regex + # match here below. + regexp_final = re.sub(categ_pattern, 'A', expr) + else: + if re.search(categ_pattern, expr): + raise ImportError('`regex` module must be installed in order to use Unicode categories.', expr) + regexp_final = expr + try: + # Fixed in next version (past 0.960) of typeshed + return [int(x) for x in sre_parse.parse(regexp_final).getwidth()] # type: ignore[attr-defined] + except sre_constants.error: + if not _has_regex: + raise ValueError(expr) + else: + # sre_parse does not support the new features in regex. To not completely fail in that case, + # we manually test for the most important info (whether the empty string is matched) + c = regex.compile(regexp_final) + # Python 3.11.7 introducded sre_parse.MAXWIDTH that is used instead of MAXREPEAT + # See lark-parser/lark#1376 and python/cpython#109859 + MAXWIDTH = getattr(sre_parse, "MAXWIDTH", sre_constants.MAXREPEAT) + if c.match('') is None: + # MAXREPEAT is a none pickable subclass of int, therefore needs to be converted to enable caching + return 1, int(MAXWIDTH) + else: + return 0, int(MAXWIDTH) + +###} + + +_ID_START = 'Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Mn', 'Mc', 'Pc' +_ID_CONTINUE = _ID_START + ('Nd', 'Nl',) + +def _test_unicode_category(s: str, categories: Sequence[str]) -> bool: + if len(s) != 1: + return all(_test_unicode_category(char, categories) for char in s) + return s == '_' or unicodedata.category(s) in categories + +def is_id_continue(s: str) -> bool: + """ + Checks if all characters in `s` are alphanumeric characters (Unicode standard, so diacritics, indian vowels, non-latin + numbers, etc. all pass). Synonymous with a Python `ID_CONTINUE` identifier. See PEP 3131 for details. + """ + return _test_unicode_category(s, _ID_CONTINUE) + +def is_id_start(s: str) -> bool: + """ + Checks if all characters in `s` are alphabetic characters (Unicode standard, so diacritics, indian vowels, non-latin + numbers, etc. all pass). Synonymous with a Python `ID_START` identifier. See PEP 3131 for details. + """ + return _test_unicode_category(s, _ID_START) + + +def dedup_list(l: Sequence[T]) -> List[T]: + """Given a list (l) will removing duplicates from the list, + preserving the original order of the list. Assumes that + the list entries are hashable.""" + dedup = set() + # This returns None, but that's expected + return [x for x in l if not (x in dedup or dedup.add(x))] # type: ignore[func-returns-value] + # 2x faster (ordered in PyPy and CPython 3.6+, guaranteed to be ordered in Python 3.7+) + # return list(dict.fromkeys(l)) + + +class Enumerator(Serialize): + def __init__(self) -> None: + self.enums: Dict[Any, int] = {} + + def get(self, item) -> int: + if item not in self.enums: + self.enums[item] = len(self.enums) + return self.enums[item] + + def __len__(self): + return len(self.enums) + + def reversed(self) -> Dict[int, Any]: + r = {v: k for k, v in self.enums.items()} + assert len(r) == len(self.enums) + return r + + + +def combine_alternatives(lists): + """ + Accepts a list of alternatives, and enumerates all their possible concatenations. + + Examples: + >>> combine_alternatives([range(2), [4,5]]) + [[0, 4], [0, 5], [1, 4], [1, 5]] + + >>> combine_alternatives(["abc", "xy", '$']) + [['a', 'x', '$'], ['a', 'y', '$'], ['b', 'x', '$'], ['b', 'y', '$'], ['c', 'x', '$'], ['c', 'y', '$']] + + >>> combine_alternatives([]) + [[]] + """ + if not lists: + return [[]] + assert all(l for l in lists), lists + return list(product(*lists)) + +try: + # atomicwrites doesn't have type bindings + import atomicwrites # type: ignore[import] + _has_atomicwrites = True +except ImportError: + _has_atomicwrites = False + +class FS: + exists = staticmethod(os.path.exists) + + @staticmethod + def open(name, mode="r", **kwargs): + if _has_atomicwrites and "w" in mode: + return atomicwrites.atomic_write(name, mode=mode, overwrite=True, **kwargs) + else: + return open(name, mode, **kwargs) + + + +def isascii(s: str) -> bool: + """ str.isascii only exists in python3.7+ """ + if sys.version_info >= (3, 7): + return s.isascii() + else: + try: + s.encode('ascii') + return True + except (UnicodeDecodeError, UnicodeEncodeError): + return False + + +class fzset(frozenset): + def __repr__(self): + return '{%s}' % ', '.join(map(repr, self)) + + +def classify_bool(seq: Iterable, pred: Callable) -> Any: + false_elems = [] + true_elems = [elem for elem in seq if pred(elem) or false_elems.append(elem)] # type: ignore[func-returns-value] + return true_elems, false_elems + + +def bfs(initial: Iterable, expand: Callable) -> Iterator: + open_q = deque(list(initial)) + visited = set(open_q) + while open_q: + node = open_q.popleft() + yield node + for next_node in expand(node): + if next_node not in visited: + visited.add(next_node) + open_q.append(next_node) + +def bfs_all_unique(initial, expand): + "bfs, but doesn't keep track of visited (aka seen), because there can be no repetitions" + open_q = deque(list(initial)) + while open_q: + node = open_q.popleft() + yield node + open_q += expand(node) + + +def _serialize(value: Any, memo: Optional[SerializeMemoizer]) -> Any: + if isinstance(value, Serialize): + return value.serialize(memo) + elif isinstance(value, list): + return [_serialize(elem, memo) for elem in value] + elif isinstance(value, frozenset): + return list(value) # TODO reversible? + elif isinstance(value, dict): + return {key:_serialize(elem, memo) for key, elem in value.items()} + # assert value is None or isinstance(value, (int, float, str, tuple)), value + return value + + + + +def small_factors(n: int, max_factor: int) -> List[Tuple[int, int]]: + """ + Splits n up into smaller factors and summands <= max_factor. + Returns a list of [(a, b), ...] + so that the following code returns n: + + n = 1 + for a, b in values: + n = n * a + b + + Currently, we also keep a + b <= max_factor, but that might change + """ + assert n >= 0 + assert max_factor > 2 + if n <= max_factor: + return [(n, 0)] + + for a in range(max_factor, 1, -1): + r, b = divmod(n, a) + if a + b <= max_factor: + return small_factors(r, max_factor) + [(a, b)] + assert False, "Failed to factorize %s" % n + + +class OrderedSet(AbstractSet[T]): + """A minimal OrderedSet implementation, using a dictionary. + + (relies on the dictionary being ordered) + """ + def __init__(self, items: Iterable[T] =()): + self.d = dict.fromkeys(items) + + def __contains__(self, item: Any) -> bool: + return item in self.d + + def add(self, item: T): + self.d[item] = None + + def __iter__(self) -> Iterator[T]: + return iter(self.d) + + def remove(self, item: T): + del self.d[item] + + def __bool__(self): + return bool(self.d) + + def __len__(self) -> int: + return len(self.d) diff --git a/shared/package-files/e8/e8df4f972b2eaa681d901ccc409c98cdb57d943d4e23c2841b2c73e6b47b2703/blob b/shared/package-files/e8/e8df4f972b2eaa681d901ccc409c98cdb57d943d4e23c2841b2c73e6b47b2703/blob new file mode 100644 index 0000000000000000000000000000000000000000..3cf2524f84888562870e6109ea7acabd7ec1c7aa --- /dev/null +++ b/shared/package-files/e8/e8df4f972b2eaa681d901ccc409c98cdb57d943d4e23c2841b2c73e6b47b2703/blob @@ -0,0 +1,485 @@ +import pytest +from IPython.terminal.shortcuts.auto_suggest import ( + accept, + accept_or_jump_to_end, + accept_token, + accept_character, + accept_word, + accept_and_keep_cursor, + discard, + NavigableAutoSuggestFromHistory, + swap_autosuggestion_up, + swap_autosuggestion_down, +) +from IPython.terminal.shortcuts.auto_match import skip_over +from IPython.terminal.shortcuts import create_ipython_shortcuts, reset_search_buffer + +from prompt_toolkit.history import InMemoryHistory +from prompt_toolkit.buffer import Buffer +from prompt_toolkit.document import Document +from prompt_toolkit.auto_suggest import AutoSuggestFromHistory +from prompt_toolkit.enums import DEFAULT_BUFFER + +from unittest.mock import patch, Mock + + +def test_deprected(): + import IPython.terminal.shortcuts.auto_suggest as iptsa + + with pytest.warns(DeprecationWarning, match=r"8\.12.+accept_or_jump_to_end"): + iptsa.accept_in_vi_insert_mode + + +def make_event(text, cursor, suggestion): + event = Mock() + event.current_buffer = Mock() + event.current_buffer.suggestion = Mock() + event.current_buffer.text = text + event.current_buffer.cursor_position = cursor + event.current_buffer.suggestion.text = suggestion + event.current_buffer.document = Document(text=text, cursor_position=cursor) + return event + + +@pytest.mark.parametrize( + "text, suggestion, expected", + [ + ("", "def out(tag: str, n=50):", "def out(tag: str, n=50):"), + ("def ", "out(tag: str, n=50):", "out(tag: str, n=50):"), + ], +) +def test_accept(text, suggestion, expected): + event = make_event(text, len(text), suggestion) + buffer = event.current_buffer + buffer.insert_text = Mock() + accept(event) + assert buffer.insert_text.called + assert buffer.insert_text.call_args[0] == (expected,) + + +@pytest.mark.parametrize( + "text, suggestion", + [ + ("", "def out(tag: str, n=50):"), + ("def ", "out(tag: str, n=50):"), + ], +) +def test_discard(text, suggestion): + event = make_event(text, len(text), suggestion) + buffer = event.current_buffer + buffer.insert_text = Mock() + discard(event) + assert not buffer.insert_text.called + assert buffer.suggestion is None + + +@pytest.mark.parametrize( + "text, cursor, suggestion, called", + [ + ("123456", 6, "123456789", True), + ("123456", 3, "123456789", False), + ("123456 \n789", 6, "123456789", True), + ], +) +def test_autosuggest_at_EOL(text, cursor, suggestion, called): + """ + test that autosuggest is only applied at end of line. + """ + + event = make_event(text, cursor, suggestion) + event.current_buffer.insert_text = Mock() + accept_or_jump_to_end(event) + if called: + event.current_buffer.insert_text.assert_called() + else: + event.current_buffer.insert_text.assert_not_called() + # event.current_buffer.document.get_end_of_line_position.assert_called() + + +@pytest.mark.parametrize( + "text, suggestion, expected", + [ + ("", "def out(tag: str, n=50):", "def "), + ("d", "ef out(tag: str, n=50):", "ef "), + ("de ", "f out(tag: str, n=50):", "f "), + ("def", " out(tag: str, n=50):", " "), + ("def ", "out(tag: str, n=50):", "out("), + ("def o", "ut(tag: str, n=50):", "ut("), + ("def ou", "t(tag: str, n=50):", "t("), + ("def out", "(tag: str, n=50):", "("), + ("def out(", "tag: str, n=50):", "tag: "), + ("def out(t", "ag: str, n=50):", "ag: "), + ("def out(ta", "g: str, n=50):", "g: "), + ("def out(tag", ": str, n=50):", ": "), + ("def out(tag:", " str, n=50):", " "), + ("def out(tag: ", "str, n=50):", "str, "), + ("def out(tag: s", "tr, n=50):", "tr, "), + ("def out(tag: st", "r, n=50):", "r, "), + ("def out(tag: str", ", n=50):", ", n"), + ("def out(tag: str,", " n=50):", " n"), + ("def out(tag: str, ", "n=50):", "n="), + ("def out(tag: str, n", "=50):", "="), + ("def out(tag: str, n=", "50):", "50)"), + ("def out(tag: str, n=5", "0):", "0)"), + ("def out(tag: str, n=50", "):", "):"), + ("def out(tag: str, n=50)", ":", ":"), + ], +) +def test_autosuggest_token(text, suggestion, expected): + event = make_event(text, len(text), suggestion) + event.current_buffer.insert_text = Mock() + accept_token(event) + assert event.current_buffer.insert_text.called + assert event.current_buffer.insert_text.call_args[0] == (expected,) + + +@pytest.mark.parametrize( + "text, suggestion, expected", + [ + ("", "def out(tag: str, n=50):", "d"), + ("d", "ef out(tag: str, n=50):", "e"), + ("de ", "f out(tag: str, n=50):", "f"), + ("def", " out(tag: str, n=50):", " "), + ], +) +def test_accept_character(text, suggestion, expected): + event = make_event(text, len(text), suggestion) + event.current_buffer.insert_text = Mock() + accept_character(event) + assert event.current_buffer.insert_text.called + assert event.current_buffer.insert_text.call_args[0] == (expected,) + + +@pytest.mark.parametrize( + "text, suggestion, expected", + [ + ("", "def out(tag: str, n=50):", "def "), + ("d", "ef out(tag: str, n=50):", "ef "), + ("de", "f out(tag: str, n=50):", "f "), + ("def", " out(tag: str, n=50):", " "), + # (this is why we also have accept_token) + ("def ", "out(tag: str, n=50):", "out(tag: "), + ], +) +def test_accept_word(text, suggestion, expected): + event = make_event(text, len(text), suggestion) + event.current_buffer.insert_text = Mock() + accept_word(event) + assert event.current_buffer.insert_text.called + assert event.current_buffer.insert_text.call_args[0] == (expected,) + + +@pytest.mark.parametrize( + "text, suggestion, expected, cursor", + [ + ("", "def out(tag: str, n=50):", "def out(tag: str, n=50):", 0), + ("def ", "out(tag: str, n=50):", "out(tag: str, n=50):", 4), + ], +) +def test_accept_and_keep_cursor(text, suggestion, expected, cursor): + event = make_event(text, cursor, suggestion) + buffer = event.current_buffer + buffer.insert_text = Mock() + accept_and_keep_cursor(event) + assert buffer.insert_text.called + assert buffer.insert_text.call_args[0] == (expected,) + assert buffer.cursor_position == cursor + + +def test_autosuggest_token_empty(): + full = "def out(tag: str, n=50):" + event = make_event(full, len(full), "") + event.current_buffer.insert_text = Mock() + + with patch( + "prompt_toolkit.key_binding.bindings.named_commands.forward_word" + ) as forward_word: + accept_token(event) + assert not event.current_buffer.insert_text.called + assert forward_word.called + + +def test_reset_search_buffer(): + event_with_text = Mock() + event_with_text.current_buffer.document.text = "some text" + event_with_text.current_buffer.reset = Mock() + + event_empty = Mock() + event_empty.current_buffer.document.text = "" + event_empty.app.layout.focus = Mock() + + reset_search_buffer(event_with_text) + event_with_text.current_buffer.reset.assert_called_once() + + reset_search_buffer(event_empty) + event_empty.app.layout.focus.assert_called_once_with(DEFAULT_BUFFER) + + +def test_other_providers(): + """Ensure that swapping autosuggestions does not break with other providers""" + provider = AutoSuggestFromHistory() + ip = get_ipython() + ip.auto_suggest = provider + event = Mock() + event.current_buffer = Buffer() + assert swap_autosuggestion_up(event) is None + assert swap_autosuggestion_down(event) is None + + +async def test_navigable_provider(): + provider = NavigableAutoSuggestFromHistory() + history = InMemoryHistory(history_strings=["very_a", "very", "very_b", "very_c"]) + buffer = Buffer(history=history) + ip = get_ipython() + ip.auto_suggest = provider + + async for _ in history.load(): + pass + + buffer.cursor_position = 5 + buffer.text = "very" + + up = swap_autosuggestion_up + down = swap_autosuggestion_down + + event = Mock() + event.current_buffer = buffer + + def get_suggestion(): + suggestion = provider.get_suggestion(buffer, buffer.document) + buffer.suggestion = suggestion + return suggestion + + assert get_suggestion().text == "_c" + + # should go up + up(event) + assert get_suggestion().text == "_b" + + # should skip over 'very' which is identical to buffer content + up(event) + assert get_suggestion().text == "_a" + + # should cycle back to beginning + up(event) + assert get_suggestion().text == "_c" + + # should cycle back through end boundary + down(event) + assert get_suggestion().text == "_a" + + down(event) + assert get_suggestion().text == "_b" + + down(event) + assert get_suggestion().text == "_c" + + down(event) + assert get_suggestion().text == "_a" + + +async def test_navigable_provider_multiline_entries(): + provider = NavigableAutoSuggestFromHistory() + history = InMemoryHistory(history_strings=["very_a\nvery_b", "very_c"]) + buffer = Buffer(history=history) + ip = get_ipython() + ip.auto_suggest = provider + + async for _ in history.load(): + pass + + buffer.cursor_position = 5 + buffer.text = "very" + up = swap_autosuggestion_up + down = swap_autosuggestion_down + + event = Mock() + event.current_buffer = buffer + + def get_suggestion(): + suggestion = provider.get_suggestion(buffer, buffer.document) + buffer.suggestion = suggestion + return suggestion + + assert get_suggestion().text == "_c" + + up(event) + assert get_suggestion().text == "_b" + + up(event) + assert get_suggestion().text == "_a" + + down(event) + assert get_suggestion().text == "_b" + + down(event) + assert get_suggestion().text == "_c" + + +def create_session_mock(): + session = Mock() + session.default_buffer = Buffer() + return session + + +def test_navigable_provider_connection(): + provider = NavigableAutoSuggestFromHistory() + provider.skip_lines = 1 + + session_1 = create_session_mock() + provider.connect(session_1) + + assert provider.skip_lines == 1 + session_1.default_buffer.on_text_insert.fire() + assert provider.skip_lines == 0 + + session_2 = create_session_mock() + provider.connect(session_2) + provider.skip_lines = 2 + + assert provider.skip_lines == 2 + session_2.default_buffer.on_text_insert.fire() + assert provider.skip_lines == 0 + + provider.skip_lines = 3 + provider.disconnect() + session_1.default_buffer.on_text_insert.fire() + session_2.default_buffer.on_text_insert.fire() + assert provider.skip_lines == 3 + + +@pytest.fixture +def ipython_with_prompt(): + ip = get_ipython() + ip.pt_app = Mock() + ip.pt_app.key_bindings = create_ipython_shortcuts(ip) + try: + yield ip + finally: + ip.pt_app = None + + +def find_bindings_by_command(command): + ip = get_ipython() + return [ + binding + for binding in ip.pt_app.key_bindings.bindings + if binding.handler == command + ] + + +def test_modify_unique_shortcut(ipython_with_prompt): + original = find_bindings_by_command(accept_token) + assert len(original) == 1 + + ipython_with_prompt.shortcuts = [ + {"command": "IPython:auto_suggest.accept_token", "new_keys": ["a", "b", "c"]} + ] + matched = find_bindings_by_command(accept_token) + assert len(matched) == 1 + assert list(matched[0].keys) == ["a", "b", "c"] + assert list(matched[0].keys) != list(original[0].keys) + assert matched[0].filter == original[0].filter + + ipython_with_prompt.shortcuts = [ + {"command": "IPython:auto_suggest.accept_token", "new_filter": "always"} + ] + matched = find_bindings_by_command(accept_token) + assert len(matched) == 1 + assert list(matched[0].keys) != ["a", "b", "c"] + assert list(matched[0].keys) == list(original[0].keys) + assert matched[0].filter != original[0].filter + + +def test_disable_shortcut(ipython_with_prompt): + matched = find_bindings_by_command(accept_token) + assert len(matched) == 1 + + ipython_with_prompt.shortcuts = [ + {"command": "IPython:auto_suggest.accept_token", "new_keys": []} + ] + matched = find_bindings_by_command(accept_token) + assert len(matched) == 0 + + ipython_with_prompt.shortcuts = [] + matched = find_bindings_by_command(accept_token) + assert len(matched) == 1 + + +def test_modify_shortcut_with_filters(ipython_with_prompt): + matched = find_bindings_by_command(skip_over) + matched_keys = {m.keys[0] for m in matched} + assert matched_keys == {")", "]", "}", "'", '"'} + + with pytest.raises(ValueError, match="Multiple shortcuts matching"): + ipython_with_prompt.shortcuts = [ + {"command": "IPython:auto_match.skip_over", "new_keys": ["x"]} + ] + + ipython_with_prompt.shortcuts = [ + { + "command": "IPython:auto_match.skip_over", + "new_keys": ["x"], + "match_filter": "focused_insert & auto_match & followed_by_single_quote", + } + ] + matched = find_bindings_by_command(skip_over) + matched_keys = {m.keys[0] for m in matched} + assert matched_keys == {")", "]", "}", "x", '"'} + + +def example_command(): + pass + + +def test_add_shortcut_for_new_command(ipython_with_prompt): + matched = find_bindings_by_command(example_command) + assert len(matched) == 0 + + with pytest.raises(ValueError, match="example_command is not a known"): + ipython_with_prompt.shortcuts = [ + {"command": "example_command", "new_keys": ["x"]} + ] + matched = find_bindings_by_command(example_command) + assert len(matched) == 0 + + +def test_modify_shortcut_failure(ipython_with_prompt): + with pytest.raises(ValueError, match="No shortcuts matching"): + ipython_with_prompt.shortcuts = [ + { + "command": "IPython:auto_match.skip_over", + "match_keys": ["x"], + "new_keys": ["y"], + } + ] + + +def test_add_shortcut_for_existing_command(ipython_with_prompt): + matched = find_bindings_by_command(skip_over) + assert len(matched) == 5 + + with pytest.raises(ValueError, match="Cannot add a shortcut without keys"): + ipython_with_prompt.shortcuts = [ + {"command": "IPython:auto_match.skip_over", "new_keys": [], "create": True} + ] + + ipython_with_prompt.shortcuts = [ + {"command": "IPython:auto_match.skip_over", "new_keys": ["x"], "create": True} + ] + matched = find_bindings_by_command(skip_over) + assert len(matched) == 6 + + ipython_with_prompt.shortcuts = [] + matched = find_bindings_by_command(skip_over) + assert len(matched) == 5 + + +def test_setting_shortcuts_before_pt_app_init(): + ipython = get_ipython() + assert ipython.pt_app is None + shortcuts = [ + {"command": "IPython:auto_match.skip_over", "new_keys": ["x"], "create": True} + ] + ipython.shortcuts = shortcuts + assert ipython.shortcuts == shortcuts diff --git a/shared/package-files/e8/e8e124ddbb78d5653b419a22caea153c6b0a394f89fc16c30e1a2e29b2179b46/blob b/shared/package-files/e8/e8e124ddbb78d5653b419a22caea153c6b0a394f89fc16c30e1a2e29b2179b46/blob new file mode 100644 index 0000000000000000000000000000000000000000..4453519ad0202281cfa53b3ca2a0282a9b0a1799 --- /dev/null +++ b/shared/package-files/e8/e8e124ddbb78d5653b419a22caea153c6b0a394f89fc16c30e1a2e29b2179b46/blob @@ -0,0 +1,581 @@ +import functools +import itertools +import logging +import os +import posixpath +import re +import urllib.parse +from dataclasses import dataclass +from typing import ( + TYPE_CHECKING, + Any, + Dict, + List, + Mapping, + NamedTuple, + Optional, + Tuple, + Union, +) + +from pip._internal.utils.deprecation import deprecated +from pip._internal.utils.filetypes import WHEEL_EXTENSION +from pip._internal.utils.hashes import Hashes +from pip._internal.utils.misc import ( + pairwise, + redact_auth_from_url, + split_auth_from_netloc, + splitext, +) +from pip._internal.utils.models import KeyBasedCompareMixin +from pip._internal.utils.urls import path_to_url, url_to_path + +if TYPE_CHECKING: + from pip._internal.index.collector import IndexContent + +logger = logging.getLogger(__name__) + + +# Order matters, earlier hashes have a precedence over later hashes for what +# we will pick to use. +_SUPPORTED_HASHES = ("sha512", "sha384", "sha256", "sha224", "sha1", "md5") + + +@dataclass(frozen=True) +class LinkHash: + """Links to content may have embedded hash values. This class parses those. + + `name` must be any member of `_SUPPORTED_HASHES`. + + This class can be converted to and from `ArchiveInfo`. While ArchiveInfo intends to + be JSON-serializable to conform to PEP 610, this class contains the logic for + parsing a hash name and value for correctness, and then checking whether that hash + conforms to a schema with `.is_hash_allowed()`.""" + + name: str + value: str + + _hash_url_fragment_re = re.compile( + # NB: we do not validate that the second group (.*) is a valid hex + # digest. Instead, we simply keep that string in this class, and then check it + # against Hashes when hash-checking is needed. This is easier to debug than + # proactively discarding an invalid hex digest, as we handle incorrect hashes + # and malformed hashes in the same place. + r"[#&]({choices})=([^&]*)".format( + choices="|".join(re.escape(hash_name) for hash_name in _SUPPORTED_HASHES) + ), + ) + + def __post_init__(self) -> None: + assert self.name in _SUPPORTED_HASHES + + @classmethod + @functools.lru_cache(maxsize=None) + def find_hash_url_fragment(cls, url: str) -> Optional["LinkHash"]: + """Search a string for a checksum algorithm name and encoded output value.""" + match = cls._hash_url_fragment_re.search(url) + if match is None: + return None + name, value = match.groups() + return cls(name=name, value=value) + + def as_dict(self) -> Dict[str, str]: + return {self.name: self.value} + + def as_hashes(self) -> Hashes: + """Return a Hashes instance which checks only for the current hash.""" + return Hashes({self.name: [self.value]}) + + def is_hash_allowed(self, hashes: Optional[Hashes]) -> bool: + """ + Return True if the current hash is allowed by `hashes`. + """ + if hashes is None: + return False + return hashes.is_hash_allowed(self.name, hex_digest=self.value) + + +@dataclass(frozen=True) +class MetadataFile: + """Information about a core metadata file associated with a distribution.""" + + hashes: Optional[Dict[str, str]] + + def __post_init__(self) -> None: + if self.hashes is not None: + assert all(name in _SUPPORTED_HASHES for name in self.hashes) + + +def supported_hashes(hashes: Optional[Dict[str, str]]) -> Optional[Dict[str, str]]: + # Remove any unsupported hash types from the mapping. If this leaves no + # supported hashes, return None + if hashes is None: + return None + hashes = {n: v for n, v in hashes.items() if n in _SUPPORTED_HASHES} + if not hashes: + return None + return hashes + + +def _clean_url_path_part(part: str) -> str: + """ + Clean a "part" of a URL path (i.e. after splitting on "@" characters). + """ + # We unquote prior to quoting to make sure nothing is double quoted. + return urllib.parse.quote(urllib.parse.unquote(part)) + + +def _clean_file_url_path(part: str) -> str: + """ + Clean the first part of a URL path that corresponds to a local + filesystem path (i.e. the first part after splitting on "@" characters). + """ + # We unquote prior to quoting to make sure nothing is double quoted. + # Also, on Windows the path part might contain a drive letter which + # should not be quoted. On Linux where drive letters do not + # exist, the colon should be quoted. We rely on urllib.request + # to do the right thing here. + return urllib.request.pathname2url(urllib.request.url2pathname(part)) + + +# percent-encoded: / +_reserved_chars_re = re.compile("(@|%2F)", re.IGNORECASE) + + +def _clean_url_path(path: str, is_local_path: bool) -> str: + """ + Clean the path portion of a URL. + """ + if is_local_path: + clean_func = _clean_file_url_path + else: + clean_func = _clean_url_path_part + + # Split on the reserved characters prior to cleaning so that + # revision strings in VCS URLs are properly preserved. + parts = _reserved_chars_re.split(path) + + cleaned_parts = [] + for to_clean, reserved in pairwise(itertools.chain(parts, [""])): + cleaned_parts.append(clean_func(to_clean)) + # Normalize %xx escapes (e.g. %2f -> %2F) + cleaned_parts.append(reserved.upper()) + + return "".join(cleaned_parts) + + +def _ensure_quoted_url(url: str) -> str: + """ + Make sure a link is fully quoted. + For example, if ' ' occurs in the URL, it will be replaced with "%20", + and without double-quoting other characters. + """ + # Split the URL into parts according to the general structure + # `scheme://netloc/path;parameters?query#fragment`. + result = urllib.parse.urlparse(url) + # If the netloc is empty, then the URL refers to a local filesystem path. + is_local_path = not result.netloc + path = _clean_url_path(result.path, is_local_path=is_local_path) + return urllib.parse.urlunparse(result._replace(path=path)) + + +class Link(KeyBasedCompareMixin): + """Represents a parsed link from a Package Index's simple URL""" + + __slots__ = [ + "_parsed_url", + "_url", + "_hashes", + "comes_from", + "requires_python", + "yanked_reason", + "metadata_file_data", + "cache_link_parsing", + "egg_fragment", + ] + + def __init__( + self, + url: str, + comes_from: Optional[Union[str, "IndexContent"]] = None, + requires_python: Optional[str] = None, + yanked_reason: Optional[str] = None, + metadata_file_data: Optional[MetadataFile] = None, + cache_link_parsing: bool = True, + hashes: Optional[Mapping[str, str]] = None, + ) -> None: + """ + :param url: url of the resource pointed to (href of the link) + :param comes_from: instance of IndexContent where the link was found, + or string. + :param requires_python: String containing the `Requires-Python` + metadata field, specified in PEP 345. This may be specified by + a data-requires-python attribute in the HTML link tag, as + described in PEP 503. + :param yanked_reason: the reason the file has been yanked, if the + file has been yanked, or None if the file hasn't been yanked. + This is the value of the "data-yanked" attribute, if present, in + a simple repository HTML link. If the file has been yanked but + no reason was provided, this should be the empty string. See + PEP 592 for more information and the specification. + :param metadata_file_data: the metadata attached to the file, or None if + no such metadata is provided. This argument, if not None, indicates + that a separate metadata file exists, and also optionally supplies + hashes for that file. + :param cache_link_parsing: A flag that is used elsewhere to determine + whether resources retrieved from this link should be cached. PyPI + URLs should generally have this set to False, for example. + :param hashes: A mapping of hash names to digests to allow us to + determine the validity of a download. + """ + + # The comes_from, requires_python, and metadata_file_data arguments are + # only used by classmethods of this class, and are not used in client + # code directly. + + # url can be a UNC windows share + if url.startswith("\\\\"): + url = path_to_url(url) + + self._parsed_url = urllib.parse.urlsplit(url) + # Store the url as a private attribute to prevent accidentally + # trying to set a new value. + self._url = url + + link_hash = LinkHash.find_hash_url_fragment(url) + hashes_from_link = {} if link_hash is None else link_hash.as_dict() + if hashes is None: + self._hashes = hashes_from_link + else: + self._hashes = {**hashes, **hashes_from_link} + + self.comes_from = comes_from + self.requires_python = requires_python if requires_python else None + self.yanked_reason = yanked_reason + self.metadata_file_data = metadata_file_data + + super().__init__(key=url, defining_class=Link) + + self.cache_link_parsing = cache_link_parsing + self.egg_fragment = self._egg_fragment() + + @classmethod + def from_json( + cls, + file_data: Dict[str, Any], + page_url: str, + ) -> Optional["Link"]: + """ + Convert an pypi json document from a simple repository page into a Link. + """ + file_url = file_data.get("url") + if file_url is None: + return None + + url = _ensure_quoted_url(urllib.parse.urljoin(page_url, file_url)) + pyrequire = file_data.get("requires-python") + yanked_reason = file_data.get("yanked") + hashes = file_data.get("hashes", {}) + + # PEP 714: Indexes must use the name core-metadata, but + # clients should support the old name as a fallback for compatibility. + metadata_info = file_data.get("core-metadata") + if metadata_info is None: + metadata_info = file_data.get("dist-info-metadata") + + # The metadata info value may be a boolean, or a dict of hashes. + if isinstance(metadata_info, dict): + # The file exists, and hashes have been supplied + metadata_file_data = MetadataFile(supported_hashes(metadata_info)) + elif metadata_info: + # The file exists, but there are no hashes + metadata_file_data = MetadataFile(None) + else: + # False or not present: the file does not exist + metadata_file_data = None + + # The Link.yanked_reason expects an empty string instead of a boolean. + if yanked_reason and not isinstance(yanked_reason, str): + yanked_reason = "" + # The Link.yanked_reason expects None instead of False. + elif not yanked_reason: + yanked_reason = None + + return cls( + url, + comes_from=page_url, + requires_python=pyrequire, + yanked_reason=yanked_reason, + hashes=hashes, + metadata_file_data=metadata_file_data, + ) + + @classmethod + def from_element( + cls, + anchor_attribs: Dict[str, Optional[str]], + page_url: str, + base_url: str, + ) -> Optional["Link"]: + """ + Convert an anchor element's attributes in a simple repository page to a Link. + """ + href = anchor_attribs.get("href") + if not href: + return None + + url = _ensure_quoted_url(urllib.parse.urljoin(base_url, href)) + pyrequire = anchor_attribs.get("data-requires-python") + yanked_reason = anchor_attribs.get("data-yanked") + + # PEP 714: Indexes must use the name data-core-metadata, but + # clients should support the old name as a fallback for compatibility. + metadata_info = anchor_attribs.get("data-core-metadata") + if metadata_info is None: + metadata_info = anchor_attribs.get("data-dist-info-metadata") + # The metadata info value may be the string "true", or a string of + # the form "hashname=hashval" + if metadata_info == "true": + # The file exists, but there are no hashes + metadata_file_data = MetadataFile(None) + elif metadata_info is None: + # The file does not exist + metadata_file_data = None + else: + # The file exists, and hashes have been supplied + hashname, sep, hashval = metadata_info.partition("=") + if sep == "=": + metadata_file_data = MetadataFile(supported_hashes({hashname: hashval})) + else: + # Error - data is wrong. Treat as no hashes supplied. + logger.debug( + "Index returned invalid data-dist-info-metadata value: %s", + metadata_info, + ) + metadata_file_data = MetadataFile(None) + + return cls( + url, + comes_from=page_url, + requires_python=pyrequire, + yanked_reason=yanked_reason, + metadata_file_data=metadata_file_data, + ) + + def __str__(self) -> str: + if self.requires_python: + rp = f" (requires-python:{self.requires_python})" + else: + rp = "" + if self.comes_from: + return "{} (from {}){}".format( + redact_auth_from_url(self._url), self.comes_from, rp + ) + else: + return redact_auth_from_url(str(self._url)) + + def __repr__(self) -> str: + return f"" + + @property + def url(self) -> str: + return self._url + + @property + def filename(self) -> str: + path = self.path.rstrip("/") + name = posixpath.basename(path) + if not name: + # Make sure we don't leak auth information if the netloc + # includes a username and password. + netloc, user_pass = split_auth_from_netloc(self.netloc) + return netloc + + name = urllib.parse.unquote(name) + assert name, f"URL {self._url!r} produced no filename" + return name + + @property + def file_path(self) -> str: + return url_to_path(self.url) + + @property + def scheme(self) -> str: + return self._parsed_url.scheme + + @property + def netloc(self) -> str: + """ + This can contain auth information. + """ + return self._parsed_url.netloc + + @property + def path(self) -> str: + return urllib.parse.unquote(self._parsed_url.path) + + def splitext(self) -> Tuple[str, str]: + return splitext(posixpath.basename(self.path.rstrip("/"))) + + @property + def ext(self) -> str: + return self.splitext()[1] + + @property + def url_without_fragment(self) -> str: + scheme, netloc, path, query, fragment = self._parsed_url + return urllib.parse.urlunsplit((scheme, netloc, path, query, "")) + + _egg_fragment_re = re.compile(r"[#&]egg=([^&]*)") + + # Per PEP 508. + _project_name_re = re.compile( + r"^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$", re.IGNORECASE + ) + + def _egg_fragment(self) -> Optional[str]: + match = self._egg_fragment_re.search(self._url) + if not match: + return None + + # An egg fragment looks like a PEP 508 project name, along with + # an optional extras specifier. Anything else is invalid. + project_name = match.group(1) + if not self._project_name_re.match(project_name): + deprecated( + reason=f"{self} contains an egg fragment with a non-PEP 508 name", + replacement="to use the req @ url syntax, and remove the egg fragment", + gone_in="25.0", + issue=11617, + ) + + return project_name + + _subdirectory_fragment_re = re.compile(r"[#&]subdirectory=([^&]*)") + + @property + def subdirectory_fragment(self) -> Optional[str]: + match = self._subdirectory_fragment_re.search(self._url) + if not match: + return None + return match.group(1) + + def metadata_link(self) -> Optional["Link"]: + """Return a link to the associated core metadata file (if any).""" + if self.metadata_file_data is None: + return None + metadata_url = f"{self.url_without_fragment}.metadata" + if self.metadata_file_data.hashes is None: + return Link(metadata_url) + return Link(metadata_url, hashes=self.metadata_file_data.hashes) + + def as_hashes(self) -> Hashes: + return Hashes({k: [v] for k, v in self._hashes.items()}) + + @property + def hash(self) -> Optional[str]: + return next(iter(self._hashes.values()), None) + + @property + def hash_name(self) -> Optional[str]: + return next(iter(self._hashes), None) + + @property + def show_url(self) -> str: + return posixpath.basename(self._url.split("#", 1)[0].split("?", 1)[0]) + + @property + def is_file(self) -> bool: + return self.scheme == "file" + + def is_existing_dir(self) -> bool: + return self.is_file and os.path.isdir(self.file_path) + + @property + def is_wheel(self) -> bool: + return self.ext == WHEEL_EXTENSION + + @property + def is_vcs(self) -> bool: + from pip._internal.vcs import vcs + + return self.scheme in vcs.all_schemes + + @property + def is_yanked(self) -> bool: + return self.yanked_reason is not None + + @property + def has_hash(self) -> bool: + return bool(self._hashes) + + def is_hash_allowed(self, hashes: Optional[Hashes]) -> bool: + """ + Return True if the link has a hash and it is allowed by `hashes`. + """ + if hashes is None: + return False + return any(hashes.is_hash_allowed(k, v) for k, v in self._hashes.items()) + + +class _CleanResult(NamedTuple): + """Convert link for equivalency check. + + This is used in the resolver to check whether two URL-specified requirements + likely point to the same distribution and can be considered equivalent. This + equivalency logic avoids comparing URLs literally, which can be too strict + (e.g. "a=1&b=2" vs "b=2&a=1") and produce conflicts unexpecting to users. + + Currently this does three things: + + 1. Drop the basic auth part. This is technically wrong since a server can + serve different content based on auth, but if it does that, it is even + impossible to guarantee two URLs without auth are equivalent, since + the user can input different auth information when prompted. So the + practical solution is to assume the auth doesn't affect the response. + 2. Parse the query to avoid the ordering issue. Note that ordering under the + same key in the query are NOT cleaned; i.e. "a=1&a=2" and "a=2&a=1" are + still considered different. + 3. Explicitly drop most of the fragment part, except ``subdirectory=`` and + hash values, since it should have no impact the downloaded content. Note + that this drops the "egg=" part historically used to denote the requested + project (and extras), which is wrong in the strictest sense, but too many + people are supplying it inconsistently to cause superfluous resolution + conflicts, so we choose to also ignore them. + """ + + parsed: urllib.parse.SplitResult + query: Dict[str, List[str]] + subdirectory: str + hashes: Dict[str, str] + + +def _clean_link(link: Link) -> _CleanResult: + parsed = link._parsed_url + netloc = parsed.netloc.rsplit("@", 1)[-1] + # According to RFC 8089, an empty host in file: means localhost. + if parsed.scheme == "file" and not netloc: + netloc = "localhost" + fragment = urllib.parse.parse_qs(parsed.fragment) + if "egg" in fragment: + logger.debug("Ignoring egg= fragment in %s", link) + try: + # If there are multiple subdirectory values, use the first one. + # This matches the behavior of Link.subdirectory_fragment. + subdirectory = fragment["subdirectory"][0] + except (IndexError, KeyError): + subdirectory = "" + # If there are multiple hash values under the same algorithm, use the + # first one. This matches the behavior of Link.hash_value. + hashes = {k: fragment[k][0] for k in _SUPPORTED_HASHES if k in fragment} + return _CleanResult( + parsed=parsed._replace(netloc=netloc, query="", fragment=""), + query=urllib.parse.parse_qs(parsed.query), + subdirectory=subdirectory, + hashes=hashes, + ) + + +@functools.lru_cache(maxsize=None) +def links_equivalent(link1: Link, link2: Link) -> bool: + return _clean_link(link1) == _clean_link(link2) diff --git a/shared/package-files/e8/e8e1782f0dbb48dee5e469b59d66992d8337d9f8cd9d5d6c833c351027c77b8b/blob b/shared/package-files/e8/e8e1782f0dbb48dee5e469b59d66992d8337d9f8cd9d5d6c833c351027c77b8b/blob new file mode 100644 index 0000000000000000000000000000000000000000..360e209a38b494a62fb6dedff9bfab1ccadeda6d --- /dev/null +++ b/shared/package-files/e8/e8e1782f0dbb48dee5e469b59d66992d8337d9f8cd9d5d6c833c351027c77b8b/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API bool is_conj(const at::Tensor & self); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/e8/e8e39ad3526b4c7bf8e46f509a7e25842c4741a6ffc98b252685232eda7d8cbf/blob b/shared/package-files/e8/e8e39ad3526b4c7bf8e46f509a7e25842c4741a6ffc98b252685232eda7d8cbf/blob new file mode 100644 index 0000000000000000000000000000000000000000..2cbaf180220b0af5d71f2ae7b5393947893f7a4c --- /dev/null +++ b/shared/package-files/e8/e8e39ad3526b4c7bf8e46f509a7e25842c4741a6ffc98b252685232eda7d8cbf/blob @@ -0,0 +1,125 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +namespace c10 { + +/** + * A backend-generic movable, not copyable, not thread-safe event. + * + * The design of this event follows that of CUDA and HIP events. These events + * are recorded and waited on by streams and can be rerecorded to, + * each rerecording essentially creating a new version of the event. + * For example, if (in CPU time), stream X is asked to record E, + * stream Y waits on E, and stream X is asked to record E again, then Y will + * wait for X to finish the first call to record and not the second, because + * it's waiting on the first version of event E, not the second. + * Querying an event only returns the status of its most recent version. + * + * Backend-generic events are implemented by this class and + * impl::InlineEvent. In addition to these events there are also + * some backend-specific events, like ATen's CUDAEvent. Each of these + * classes has its own use. + * + * impl::InlineEvent<...> or a backend-specific event should be + * preferred when the backend is known at compile time and known to + * be compiled. Backend-specific events may have additional functionality. + * + * This Event should be used if a particular backend may not be available, + * or the backend required is not known at compile time. + * + * These generic events are built on top of DeviceGuardImpls, analogous + * to DeviceGuard and InlineDeviceGuard. The name "DeviceGuardImpls," + * is no longer entirely accurate, as these classes implement the + * backend-specific logic for a generic backend interface. + * + * See DeviceGuardImplInterface.h for a list of all supported flags. + */ + +struct Event final { + // Constructors + Event() = delete; + Event( + const DeviceType _device_type, + const EventFlag _flag = EventFlag::PYTORCH_DEFAULT) + : impl_{_device_type, _flag} {} + + // Copy constructor and copy assignment operator (deleted) + Event(const Event&) = delete; + Event& operator=(const Event&) = delete; + + // Move constructor and move assignment operator + Event(Event&&) noexcept = default; + Event& operator=(Event&&) noexcept = default; + + // Destructor + ~Event() = default; + + // Getters + Device device() const noexcept { + return Device(device_type(), device_index()); + } + DeviceType device_type() const noexcept { + return impl_.device_type(); + } + DeviceIndex device_index() const noexcept { + return impl_.device_index(); + } + EventFlag flag() const noexcept { + return impl_.flag(); + } + bool was_marked_for_recording() const noexcept { + return impl_.was_marked_for_recording(); + } + + /** + * Calls record() if and only if record() has never been called for this + * event. Note: because Event is not thread-safe recordOnce() may call + * record() multiple times if called from multiple threads. + */ + void recordOnce(const Stream& stream) { + impl_.recordOnce(stream); + } + + /** + * Increments the event's version and enqueues a job with this version + * in the stream's work queue. When the stream process that job + * it notifies all streams waiting on / blocked by that version of the + * event to continue and marks that version as recorded. + * */ + void record(const Stream& stream) { + impl_.record(stream); + } + + /** + * Does nothing if the event has not been scheduled to be recorded. + * If the event was previously enqueued to be recorded, a command + * to wait for the version of the event that exists at the time of this call + * is inserted in the stream's work queue. + * When the stream reaches this command it will stop processing + * additional commands until that version of the event is marked as recorded. + */ + void block(const Stream& stream) const { + impl_.block(stream); + } + + /** + * Returns true if (and only if) + * (1) the event has never been scheduled to be recorded + * (2) the current version is marked as recorded. + * Returns false otherwise. + */ + bool query() const { + return impl_.query(); + } + + private: + impl::InlineEvent impl_; +}; + +} // namespace c10 diff --git a/shared/package-files/e8/e8e43f304d3eac1d237c2903a5b2aaa9be2014cd06d0d530e92dfc86cccd048d/blob b/shared/package-files/e8/e8e43f304d3eac1d237c2903a5b2aaa9be2014cd06d0d530e92dfc86cccd048d/blob new file mode 100644 index 0000000000000000000000000000000000000000..4ad43e70674b8e4c3ba0c9914a7885745adcd6d1 --- /dev/null +++ b/shared/package-files/e8/e8e43f304d3eac1d237c2903a5b2aaa9be2014cd06d0d530e92dfc86cccd048d/blob @@ -0,0 +1,230 @@ +""" +typing.Protocol classes for jsonschema interfaces. +""" + +# for reference material on Protocols, see +# https://www.python.org/dev/peps/pep-0544/ + +from __future__ import annotations + +from collections.abc import Mapping +from typing import ( + TYPE_CHECKING, + Any, + ClassVar, + Iterable, + Protocol, + runtime_checkable, +) + +# in order for Sphinx to resolve references accurately from type annotations, +# it needs to see names like `jsonschema.TypeChecker` +# therefore, only import at type-checking time (to avoid circular references), +# but use `jsonschema` for any types which will otherwise not be resolvable +if TYPE_CHECKING: + from jsonschema import _typing + import jsonschema + import jsonschema.validators + import referencing.jsonschema + +from jsonschema.exceptions import ValidationError + +# For code authors working on the validator protocol, these are the three +# use-cases which should be kept in mind: +# +# 1. As a protocol class, it can be used in type annotations to describe the +# available methods and attributes of a validator +# 2. It is the source of autodoc for the validator documentation +# 3. It is runtime_checkable, meaning that it can be used in isinstance() +# checks. +# +# Since protocols are not base classes, isinstance() checking is limited in +# its capabilities. See docs on runtime_checkable for detail + + +@runtime_checkable +class Validator(Protocol): + """ + The protocol to which all validator classes adhere. + + Arguments: + + schema: + + The schema that the validator object will validate with. + It is assumed to be valid, and providing + an invalid schema can lead to undefined behavior. See + `Validator.check_schema` to validate a schema first. + + registry: + + a schema registry that will be used for looking up JSON references + + resolver: + + a resolver that will be used to resolve :kw:`$ref` + properties (JSON references). If unprovided, one will be created. + + .. deprecated:: v4.18.0 + + `RefResolver <_RefResolver>` has been deprecated in favor of + `referencing`, and with it, this argument. + + format_checker: + + if provided, a checker which will be used to assert about + :kw:`format` properties present in the schema. If unprovided, + *no* format validation is done, and the presence of format + within schemas is strictly informational. Certain formats + require additional packages to be installed in order to assert + against instances. Ensure you've installed `jsonschema` with + its `extra (optional) dependencies ` when + invoking ``pip``. + + .. deprecated:: v4.12.0 + + Subclassing validator classes now explicitly warns this is not part of + their public API. + """ + + #: An object representing the validator's meta schema (the schema that + #: describes valid schemas in the given version). + META_SCHEMA: ClassVar[Mapping] + + #: A mapping of validation keywords (`str`\s) to functions that + #: validate the keyword with that name. For more information see + #: `creating-validators`. + VALIDATORS: ClassVar[Mapping] + + #: A `jsonschema.TypeChecker` that will be used when validating + #: :kw:`type` keywords in JSON schemas. + TYPE_CHECKER: ClassVar[jsonschema.TypeChecker] + + #: A `jsonschema.FormatChecker` that will be used when validating + #: :kw:`format` keywords in JSON schemas. + FORMAT_CHECKER: ClassVar[jsonschema.FormatChecker] + + #: A function which given a schema returns its ID. + ID_OF: _typing.id_of + + #: The schema that will be used to validate instances + schema: Mapping | bool + + def __init__( + self, + schema: Mapping | bool, + registry: referencing.jsonschema.SchemaRegistry, + format_checker: jsonschema.FormatChecker | None = None, + ) -> None: + ... + + @classmethod + def check_schema(cls, schema: Mapping | bool) -> None: + """ + Validate the given schema against the validator's `META_SCHEMA`. + + Raises: + + `jsonschema.exceptions.SchemaError`: + + if the schema is invalid + """ + + def is_type(self, instance: Any, type: str) -> bool: + """ + Check if the instance is of the given (JSON Schema) type. + + Arguments: + + instance: + + the value to check + + type: + + the name of a known (JSON Schema) type + + Returns: + + whether the instance is of the given type + + Raises: + + `jsonschema.exceptions.UnknownType`: + + if ``type`` is not a known type + """ + + def is_valid(self, instance: Any) -> bool: + """ + Check if the instance is valid under the current `schema`. + + Returns: + + whether the instance is valid or not + + >>> schema = {"maxItems" : 2} + >>> Draft202012Validator(schema).is_valid([2, 3, 4]) + False + """ + + def iter_errors(self, instance: Any) -> Iterable[ValidationError]: + r""" + Lazily yield each of the validation errors in the given instance. + + >>> schema = { + ... "type" : "array", + ... "items" : {"enum" : [1, 2, 3]}, + ... "maxItems" : 2, + ... } + >>> v = Draft202012Validator(schema) + >>> for error in sorted(v.iter_errors([2, 3, 4]), key=str): + ... print(error.message) + 4 is not one of [1, 2, 3] + [2, 3, 4] is too long + + .. deprecated:: v4.0.0 + + Calling this function with a second schema argument is deprecated. + Use `Validator.evolve` instead. + """ + + def validate(self, instance: Any) -> None: + """ + Check if the instance is valid under the current `schema`. + + Raises: + + `jsonschema.exceptions.ValidationError`: + + if the instance is invalid + + >>> schema = {"maxItems" : 2} + >>> Draft202012Validator(schema).validate([2, 3, 4]) + Traceback (most recent call last): + ... + ValidationError: [2, 3, 4] is too long + """ + + def evolve(self, **kwargs) -> Validator: + """ + Create a new validator like this one, but with given changes. + + Preserves all other attributes, so can be used to e.g. create a + validator with a different schema but with the same :kw:`$ref` + resolution behavior. + + >>> validator = Draft202012Validator({}) + >>> validator.evolve(schema={"type": "number"}) + Draft202012Validator(schema={'type': 'number'}, format_checker=None) + + The returned object satisfies the validator protocol, but may not + be of the same concrete class! In particular this occurs + when a :kw:`$ref` occurs to a schema with a different + :kw:`$schema` than this one (i.e. for a different draft). + + >>> validator.evolve( + ... schema={"$schema": Draft7Validator.META_SCHEMA["$id"]} + ... ) + Draft7Validator(schema=..., format_checker=None) + """ diff --git a/shared/package-files/e8/e8eba9968d69f00ac3af10b33cdc87f71a5893111134fbdb7780bff9699335de/blob b/shared/package-files/e8/e8eba9968d69f00ac3af10b33cdc87f71a5893111134fbdb7780bff9699335de/blob new file mode 100644 index 0000000000000000000000000000000000000000..c1a56ffb71b020df338721e44d56d7e03479fef6 --- /dev/null +++ b/shared/package-files/e8/e8eba9968d69f00ac3af10b33cdc87f71a5893111134fbdb7780bff9699335de/blob @@ -0,0 +1,23 @@ +import numpy as np +import pytest +import pytz + +from pandas._libs.tslibs.tzconversion import tz_localize_to_utc + + +class TestTZLocalizeToUTC: + def test_tz_localize_to_utc_ambiguous_infer(self): + # val is a timestamp that is ambiguous when localized to US/Eastern + val = 1_320_541_200_000_000_000 + vals = np.array([val, val - 1, val], dtype=np.int64) + + with pytest.raises(pytz.AmbiguousTimeError, match="2011-11-06 01:00:00"): + tz_localize_to_utc(vals, pytz.timezone("US/Eastern"), ambiguous="infer") + + with pytest.raises(pytz.AmbiguousTimeError, match="are no repeated times"): + tz_localize_to_utc(vals[:1], pytz.timezone("US/Eastern"), ambiguous="infer") + + vals[1] += 1 + msg = "There are 2 dst switches when there should only be 1" + with pytest.raises(pytz.AmbiguousTimeError, match=msg): + tz_localize_to_utc(vals, pytz.timezone("US/Eastern"), ambiguous="infer") diff --git a/shared/package-files/e8/e8f2592df9c64718a4af23bb21c234213db01128cf5bdbdae1dfb50504694f58/blob b/shared/package-files/e8/e8f2592df9c64718a4af23bb21c234213db01128cf5bdbdae1dfb50504694f58/blob new file mode 100644 index 0000000000000000000000000000000000000000..048831f6544403cd61a503ffa8ed04d7d4e1f365 --- /dev/null +++ b/shared/package-files/e8/e8f2592df9c64718a4af23bb21c234213db01128cf5bdbdae1dfb50504694f58/blob @@ -0,0 +1,265 @@ +1,0.585528817843856,1.80509751881082,1770.7 +2,0.709466017509524,-0.481647363694637,1768 +3,-0.109303314681054,0.620379801298422,1766.5 +4,-0.453497173462763,0.612123492650849,1793.3 +5,0.605887455840394,-0.162310976918126,1821.8 +6,-1.81795596770373,0.81187317855386,1855.3 +7,0.630098551068391,2.19683354634753,1865.3 +8,-0.276184105225216,2.04919033740619,1868.2 +9,-0.284159743943371,1.63244563948047,1842.2 +10,-0.919322002474128,0.254271192814055,1835.5 +11,-0.116247806352002,0.491188279272559,1856.1 +12,1.81731204370422,-0.324086578737118,1838.7 +13,0.370627864257954,-1.66205024385863,1913 +14,0.520216457554957,1.76773385087297,1971.2 +15,-0.750531994502331,0.0258010486478081,2048.4 +16,0.816899839520583,1.12851083359018,2084.4 +17,-0.886357521243213,-2.38035806139704,2110.7 +18,-0.331577589942552,-1.06026555215253,2145.7 +19,1.12071265166956,0.937140540182908,2188.5 +20,0.298723699267293,0.854451720330554,2192.2 +21,0.779621924555324,1.46072940310409,2214.3 +22,1.45578508247686,-1.41309877788919,2216.7 +23,-0.644328429231302,0.567403253424482,2231.6 +24,-1.55313740522969,0.583187653435685,2305.3 +25,-1.59770951669631,-1.30679883346442,2348.4 +,,0.294465403072536,2366.2 +,,0.617253665579483,2351.8 +,,0.974274127278477,2314.6 +,,0.618212037952617,2303.5 +,,0.521369193447754,2306.4 +,,0.902503795921803,2332.4 +,,0.637454432668164,2379.1 +,,0.864301132969558,2447.7 +,,0.251117740990594,2488.1 +,,0.21506908070296,2521.4 +,,0.609476044774055,2535.5 +,,0.383444635430351,2523.9 +,,0.755271044559777,2543.8 +,,0.379736242815852,2540.6 +,,0.794972063507885,2582.1 +,,0.905691135907546,2597.9 +,,0.984026173362508,2591.7 +,,0.587947973515838,2616.6 +,,0.00946405157446861,2589.1 +,,0.320792069192976,2519 +,,0.559456733288243,2534.5 +,,0.514917560154572,2593.9 +,,0.0897118621505797,2654.3 +,,0.683250573696569,2708 +,,0.709972049575299,2776.4 +,,,2773.1 +,,,2782.8 +,,,2845.3 +,,,2832 +,,,2836.6 +,,,2800.2 +,,,2816.9 +,,,2869.6 +,,,2915.9 +,,,2975.3 +,,,3028.7 +,,,3062.1 +,,,3090.4 +,,,3097.9 +,,,3138.4 +,,,3177.7 +,,,3237.6 +,,,3262.2 +,,,3335.4 +,,,3373.7 +,,,3419.5 +,,,3429 +,,,3513.3 +,,,3560.9 +,,,3633.2 +,,,3720.8 +,,,3812.2 +,,,3824.9 +,,,3850 +,,,3881.2 +,,,3915.4 +,,,3916.2 +,,,3947.5 +,,,3977.6 +,,,4059.5 +,,,4128.5 +,,,4156.7 +,,,4174.7 +,,,4240.5 +,,,4252.8 +,,,4279.7 +,,,4259.6 +,,,4252.9 +,,,4260.7 +,,,4298.6 +,,,4253 +,,,4370.3 +,,,4395.1 +,,,4430.2 +,,,4442.5 +,,,4521.9 +,,,4629.1 +,,,4673.5 +,,,4750.5 +,,,4872 +,,,4928.4 +,,,4902.1 +,,,4948.8 +,,,4905.4 +,,,4918 +,,,4869.4 +,,,4850.2 +,,,4791.2 +,,,4827.8 +,,,4909.1 +,,,4973.3 +,,,5086.3 +,,,5124.6 +,,,5149.7 +,,,5187.1 +,,,5247.3 +,,,5351.6 +,,,5447.3 +,,,5446.1 +,,,5464.7 +,,,5679.7 +,,,5735.4 +,,,5811.3 +,,,5821 +,,,5826.4 +,,,5868.3 +,,,5884.5 +,,,5903.4 +,,,5782.4 +,,,5771.7 +,,,5878.4 +,,,6000.6 +,,,5952.7 +,,,6025 +,,,5950 +,,,5852.3 +,,,5884 +,,,5861.4 +,,,5866 +,,,5938.9 +,,,6072.4 +,,,6192.2 +,,,6320.2 +,,,6442.8 +,,,6554 +,,,6617.7 +,,,6671.6 +,,,6734.5 +,,,6791.5 +,,,6897.6 +,,,6950 +,,,7016.8 +,,,7045 +,,,7112.9 +,,,7147.3 +,,,7186.9 +,,,7263.3 +,,,7326.3 +,,,7451.7 +,,,7490.2 +,,,7586.4 +,,,7625.6 +,,,7727.4 +,,,7799.9 +,,,7858.3 +,,,7920.6 +,,,7937.9 +,,,8020.8 +,,,8052.7 +,,,8052.6 +,,,7982 +,,,7943.4 +,,,7997 +,,,8030.7 +,,,8062.2 +,,,8150.7 +,,,8237.3 +,,,8322.3 +,,,8409.8 +,,,8425.3 +,,,8479.2 +,,,8523.8 +,,,8636.4 +,,,8720.5 +,,,8839.8 +,,,8896.7 +,,,8995.5 +,,,9017.6 +,,,9037 +,,,9112.9 +,,,9176.4 +,,,9239.3 +,,,9399 +,,,9480.8 +,,,9584.3 +,,,9658 +,,,9801.2 +,,,9924.2 +,,,10000.3 +,,,10094.8 +,,,10185.6 +,,,10320 +,,,10498.6 +,,,10592.1 +,,,10674.9 +,,,10810.7 +,,,11004.8 +,,,11033.6 +,,,11248.8 +,,,11258.3 +,,,11325 +,,,11287.8 +,,,11361.7 +,,,11330.4 +,,,11370 +,,,11467.1 +,,,11528.1 +,,,11586.6 +,,,11590.6 +,,,11638.9 +,,,11737.5 +,,,11930.7 +,,,12038.6 +,,,12117.9 +,,,12195.9 +,,,12286.7 +,,,12387.2 +,,,12515 +,,,12570.7 +,,,12670.5 +,,,12735.6 +,,,12896.4 +,,,12948.7 +,,,12950.4 +,,,13038.4 +,,,13056.1 +,,,13173.6 +,,,13269.8 +,,,13326 +,,,13266.8 +,,,13310.5 +,,,13186.9 +,,,12883.5 +,,,12711 +,,,12701 +,,,12746.7 +,,,12873.1 +,,,12947.6 +,,,13019.6 +,,,13103.5 +,,,13181.2 +,,,13183.8 +,,,13264.7 +,,,13306.9 +,,,13441 +,,,13506.4 +,,,13548.5 +,,,13652.5 +,,,13665.4 +,,,13725.7 diff --git a/shared/package-files/e8/e8f5af94045a8128f2ad95b9c42380e581908cbab06a28dcdfa4c55f852b53d8/blob b/shared/package-files/e8/e8f5af94045a8128f2ad95b9c42380e581908cbab06a28dcdfa4c55f852b53d8/blob new file mode 100644 index 0000000000000000000000000000000000000000..97c38f3560625213fbd59d09a9cfd22bad26ba04 --- /dev/null +++ b/shared/package-files/e8/e8f5af94045a8128f2ad95b9c42380e581908cbab06a28dcdfa4c55f852b53d8/blob @@ -0,0 +1,4 @@ +# mypy: ignore-errors + +import torch.testing._internal.opinfo.core +import torch.testing._internal.opinfo.definitions diff --git a/shared/package-files/e8/e8f5fc1f86ed312cbf74c30f8fd8c761d1cb1d42673823c7243ac4930e009924/blob b/shared/package-files/e8/e8f5fc1f86ed312cbf74c30f8fd8c761d1cb1d42673823c7243ac4930e009924/blob new file mode 100644 index 0000000000000000000000000000000000000000..e326b9e0a122042a2b5bd3145ff595f9080409ad Binary files /dev/null and b/shared/package-files/e8/e8f5fc1f86ed312cbf74c30f8fd8c761d1cb1d42673823c7243ac4930e009924/blob differ diff --git a/shared/package-files/e8/e8fbfcff2d9810aecb2d94e8e1f25fd68a6165da45de8f463ad225fbff1aa10e/blob b/shared/package-files/e8/e8fbfcff2d9810aecb2d94e8e1f25fd68a6165da45de8f463ad225fbff1aa10e/blob new file mode 100644 index 0000000000000000000000000000000000000000..631a6652b0b8c057201c1572e36442070afbf23d --- /dev/null +++ b/shared/package-files/e8/e8fbfcff2d9810aecb2d94e8e1f25fd68a6165da45de8f463ad225fbff1aa10e/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8fbfcff2d9810aecb2d94e8e1f25fd68a6165da45de8f463ad225fbff1aa10e +size 163064 diff --git a/shared/package-files/e8/e8fce08b01668e4e0ae04056eed7e252d771234c7e7fcd4de9199b30e6b97b58/blob b/shared/package-files/e8/e8fce08b01668e4e0ae04056eed7e252d771234c7e7fcd4de9199b30e6b97b58/blob new file mode 100644 index 0000000000000000000000000000000000000000..abb18f24b71598205ce0a04b7f665bba485c4e78 --- /dev/null +++ b/shared/package-files/e8/e8fce08b01668e4e0ae04056eed7e252d771234c7e7fcd4de9199b30e6b97b58/blob @@ -0,0 +1,6 @@ +from django.core.handlers.wsgi import WSGIRequest +from django.http.response import HttpResponse +from django.utils.deprecation import MiddlewareMixin + +class FlatpageFallbackMiddleware(MiddlewareMixin): + def process_response(self, request: WSGIRequest, response: HttpResponse) -> HttpResponse: ... diff --git a/shared/package-files/e8/e8fea9e1f97bae312961c41347d369c87d90cec8aba4a36918299ed1c9b76ed0/blob b/shared/package-files/e8/e8fea9e1f97bae312961c41347d369c87d90cec8aba4a36918299ed1c9b76ed0/blob new file mode 100644 index 0000000000000000000000000000000000000000..3a68990beda2559d64476f34038665051fb8213f Binary files /dev/null and b/shared/package-files/e8/e8fea9e1f97bae312961c41347d369c87d90cec8aba4a36918299ed1c9b76ed0/blob differ diff --git a/shared/package-files/e9/e900b190795224ff48e46a1c02b10020d4c986ba142880c02c86f0b472ded3c9/blob b/shared/package-files/e9/e900b190795224ff48e46a1c02b10020d4c986ba142880c02c86f0b472ded3c9/blob new file mode 100644 index 0000000000000000000000000000000000000000..a95a8131dde4ccfb4b23fd9e9d4c200b6ac77a10 Binary files /dev/null and b/shared/package-files/e9/e900b190795224ff48e46a1c02b10020d4c986ba142880c02c86f0b472ded3c9/blob differ diff --git a/shared/package-files/e9/e905b5f13b42d701a9c9377471d1bd3f14984e23f864dde18fa96d256add6a27/blob b/shared/package-files/e9/e905b5f13b42d701a9c9377471d1bd3f14984e23f864dde18fa96d256add6a27/blob new file mode 100644 index 0000000000000000000000000000000000000000..9a41ea68d1bafc0cad55c028e0413e463ddb6d2e --- /dev/null +++ b/shared/package-files/e9/e905b5f13b42d701a9c9377471d1bd3f14984e23f864dde18fa96d256add6a27/blob @@ -0,0 +1,48 @@ +from cython cimport floating + + +cdef floating _euclidean_dense_dense( + const floating*, + const floating*, + int, + bint +) noexcept nogil + +cdef floating _euclidean_sparse_dense( + const floating[::1], + const int[::1], + const floating[::1], + floating, + bint +) noexcept nogil + +cpdef void _relocate_empty_clusters_dense( + const floating[:, ::1], + const floating[::1], + const floating[:, ::1], + floating[:, ::1], + floating[::1], + const int[::1] +) + +cpdef void _relocate_empty_clusters_sparse( + const floating[::1], + const int[::1], + const int[::1], + const floating[::1], + const floating[:, ::1], + floating[:, ::1], + floating[::1], + const int[::1] +) + +cdef void _average_centers( + floating[:, ::1], + const floating[::1] +) + +cdef void _center_shift( + const floating[:, ::1], + const floating[:, ::1], + floating[::1] +) diff --git a/shared/package-files/e9/e90bc22e46e1c7874774f15a718bbc9d412f2855587f7b1692f30d7e95388ec1/blob b/shared/package-files/e9/e90bc22e46e1c7874774f15a718bbc9d412f2855587f7b1692f30d7e95388ec1/blob new file mode 100644 index 0000000000000000000000000000000000000000..6d8778a2471f818e7b8d9001dc0bc9c57fe0a74e --- /dev/null +++ b/shared/package-files/e9/e90bc22e46e1c7874774f15a718bbc9d412f2855587f7b1692f30d7e95388ec1/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor sparse_csr_tensor(const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, at::TensorOptions options); +TORCH_API at::Tensor sparse_csr_tensor(const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::IntArrayRef size, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); +TORCH_API at::Tensor sparse_csr_tensor(const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, at::TensorOptions options); +TORCH_API at::Tensor sparse_csr_tensor(const at::Tensor & crow_indices, const at::Tensor & col_indices, const at::Tensor & values, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/e9/e90c341036cb7203200e293cb3b513267e104a39a594f35e195254e6bc0a17cf/blob b/shared/package-files/e9/e90c341036cb7203200e293cb3b513267e104a39a594f35e195254e6bc0a17cf/blob new file mode 100644 index 0000000000000000000000000000000000000000..0014046d29a38e9b8006f746fea794d7f71eb479 Binary files /dev/null and b/shared/package-files/e9/e90c341036cb7203200e293cb3b513267e104a39a594f35e195254e6bc0a17cf/blob differ diff --git a/shared/package-files/e9/e9114f3f1647fc56a61162ce30b78ce12d0657143166dc1d51dc8213a3400cec/blob b/shared/package-files/e9/e9114f3f1647fc56a61162ce30b78ce12d0657143166dc1d51dc8213a3400cec/blob new file mode 100644 index 0000000000000000000000000000000000000000..28800e0537134db736da295b607d8bea1d7ac5f5 --- /dev/null +++ b/shared/package-files/e9/e9114f3f1647fc56a61162ce30b78ce12d0657143166dc1d51dc8213a3400cec/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9114f3f1647fc56a61162ce30b78ce12d0657143166dc1d51dc8213a3400cec +size 586320859 diff --git a/shared/package-files/e9/e911ba0b61240813d46d178a7e8a0563a15e1760de78a8afb99e727b6fe89c69/blob b/shared/package-files/e9/e911ba0b61240813d46d178a7e8a0563a15e1760de78a8afb99e727b6fe89c69/blob new file mode 100644 index 0000000000000000000000000000000000000000..62056480df9a2d6539203da3154244fdfc916d6d --- /dev/null +++ b/shared/package-files/e9/e911ba0b61240813d46d178a7e8a0563a15e1760de78a8afb99e727b6fe89c69/blob @@ -0,0 +1,230 @@ +"""Low discrepancy sequence tools""" +import numpy as np + + +def discrepancy(sample, bounds=None): + """ + Discrepancy + + Compute the centered discrepancy on a given sample. + It is a measure of the uniformity of the points in the parameter space. + The lower the value is, the better the coverage of the parameter space is. + + Parameters + ---------- + sample : array_like (n_samples, k_vars) + The sample to compute the discrepancy from. + bounds : ndarray, optional + Desired range of transformed data, of shape (2, k_vars) giving the + lower and upper bound for each variable. The transformation applies + the bounds to the sample and not the theoretical space, unit cube. + Thus min and max values of the sample will coincide with the + bounds. If None, the sample is assumed to already lie in the unit + hypercube. + + Returns + ------- + discrepancy : float + Centered discrepancy. + + References + ---------- + .. [1] Fang et al. "Design and modeling for computer experiments", + Computer Science and Data Analysis Series Science and Data Analysis + Series, 2006. + + """ + sample = np.asarray(sample) + n_sample, dim = sample.shape + + # Sample scaling from bounds to unit hypercube + if bounds is not None: + min_ = bounds.min(axis=0) + max_ = bounds.max(axis=0) + sample = (sample - min_) / (max_ - min_) + + abs_ = abs(sample - 0.5) + disc1 = np.sum(np.prod(1 + 0.5 * abs_ - 0.5 * abs_ ** 2, axis=1)) + + prod_arr = 1 + for i in range(dim): + s0 = sample[:, i] + prod_arr *= (1 + + 0.5 * abs(s0[:, None] - 0.5) + 0.5 * abs(s0 - 0.5) - + 0.5 * abs(s0[:, None] - s0)) + disc2 = prod_arr.sum() + + c2 = ((13.0 / 12.0) ** dim - 2.0 / n_sample * disc1 + + 1.0 / (n_sample ** 2) * disc2) + + return c2 + + +def primes_from_2_to(n): + """ + Prime numbers from 2 to *n* + + Parameters + ---------- + n : int + Sup bound with ``n >= 6``. + + Returns + ------- + primes : ndarray + Primes in ``2 <= p < n``. + + References + ---------- + .. [1] `StackOverflow `_. + + """ + sieve = np.ones(n // 3 + (n % 6 == 2), dtype=bool) + for i in range(1, int(n ** 0.5) // 3 + 1): + if sieve[i]: + k = 3 * i + 1 | 1 + sieve[k * k // 3::2 * k] = False + sieve[k * (k - 2 * (i & 1) + 4) // 3::2 * k] = False + return np.r_[2, 3, ((3 * np.nonzero(sieve)[0][1:] + 1) | 1)] + + +def n_primes(n): + """ + List of the n-first prime numbers + + Parameters + ---------- + n : int + Number of prime numbers wanted. + + Returns + ------- + primes : ndarray + List of primes. + + """ + primes = np.array([ + 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, + 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, + 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, + 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, + 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, + 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, + 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, + 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, + 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, + 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, + 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, + 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, + 953, 967, 971, 977, 983, 991, 997])[:n] + + if len(primes) < n: + big_number = 10 + while "Not enough primes": + primes = primes_from_2_to(big_number)[:n] + if len(primes) == n: + break + big_number += 1000 + + return primes + + +def van_der_corput(n_sample, base=2, start_index=0): + """ + Van der Corput sequence + + Pseudo-random number generator based on a b-adic expansion. + + Parameters + ---------- + n_sample : int + Number of element of the sequence. + base : int, optional + Base of the sequence. + start_index : int, optional + Index to start the sequence from. + + Returns + ------- + sequence : list (n_samples,) + Sequence of Van der Corput. + + """ + sequence = [] + for i in range(start_index, start_index + n_sample): + n_th_number, denom = 0., 1. + quotient = i + while quotient > 0: + quotient, remainder = divmod(quotient, base) + denom *= base + n_th_number += remainder / denom + sequence.append(n_th_number) + + return sequence + + +def halton(dim, n_sample, bounds=None, start_index=0): + """ + Halton sequence + + Pseudo-random number generator that generalize the Van der Corput sequence + for multiple dimensions. Halton sequence use base-two Van der Corput + sequence for the first dimension, base-three for its second and base-n for + its n-dimension. + + Parameters + ---------- + dim : int + Dimension of the parameter space. + n_sample : int + Number of samples to generate in the parameter space. + bounds : ndarray, optional + Desired range of transformed data, of shape (2, dim) giving the + lower and upper bound for each variable. The transformation applies + the bounds to the sample and not the theoretical space, unit cube. + Thus min and max values of the sample will coincide with the + bounds. If None, the sample is assumed to already lie in the unit + hypercube. + start_index : int, optional + Index to start the sequence from. + + Returns + ------- + sequence : ndarray of shape (n_sample, dim) + Sequence of Halton. + + References + ---------- + .. [1] Halton, "On the efficiency of certain quasi-random sequences of + points in evaluating multi-dimensional integrals", Numerische + Mathematik, 1960. + + Examples + -------- + Generate samples from a low discrepancy sequence of Halton. + + >>> from statsmodels.tools import sequences + >>> sample = sequences.halton(dim=2, n_sample=5) + + Compute the quality of the sample using the discrepancy criterion. + + >>> uniformity = sequences.discrepancy(sample) + + If one wants to continue an existing design, extra points can be obtained. + + >>> sample_continued = sequences.halton(dim=2, n_sample=5, start_index=5) + + """ + base = n_primes(dim) + + # Generate a sample using a Van der Corput sequence per dimension. + sample = [van_der_corput(n_sample + 1, bdim, start_index) for bdim in base] + sample = np.array(sample).T[1:] + + # Sample scaling from unit hypercube to feature range + if bounds is not None: + min_ = bounds.min(axis=0) + max_ = bounds.max(axis=0) + sample = sample * (max_ - min_) + min_ + + return sample diff --git a/shared/package-files/e9/e914f7fea18a5597d825dcdb847e724d00dde0cde7e063ebe52fd6fe6b18a29d/blob b/shared/package-files/e9/e914f7fea18a5597d825dcdb847e724d00dde0cde7e063ebe52fd6fe6b18a29d/blob new file mode 100644 index 0000000000000000000000000000000000000000..c094f1b32272fe3e61b2aca512f980bfb828b671 --- /dev/null +++ b/shared/package-files/e9/e914f7fea18a5597d825dcdb847e724d00dde0cde7e063ebe52fd6fe6b18a29d/blob @@ -0,0 +1,50 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API addbmm_ { + using schema = at::Tensor & (at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Scalar &, const at::Scalar &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::addbmm_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "addbmm_(Tensor(a!) self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta, const at::Scalar & alpha); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta, const at::Scalar & alpha); +}; + +struct TORCH_API addbmm_out { + using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Scalar &, const at::Scalar &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::addbmm") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "addbmm.out(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out); +}; + +struct TORCH_API addbmm { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &, const at::Scalar &, const at::Scalar &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::addbmm") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "addbmm(Tensor self, Tensor batch1, Tensor batch2, *, Scalar beta=1, Scalar alpha=1) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta, const at::Scalar & alpha); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & batch1, const at::Tensor & batch2, const at::Scalar & beta, const at::Scalar & alpha); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e9/e915f65fe995d47ba12599d57d098398b5612145ac7884f83f9c1fdeb74babd6/blob b/shared/package-files/e9/e915f65fe995d47ba12599d57d098398b5612145ac7884f83f9c1fdeb74babd6/blob new file mode 100644 index 0000000000000000000000000000000000000000..ef411fffc7cb7e1d8fac4872eb31292b9fc5d7bb --- /dev/null +++ b/shared/package-files/e9/e915f65fe995d47ba12599d57d098398b5612145ac7884f83f9c1fdeb74babd6/blob @@ -0,0 +1,28 @@ +from numpy.distutils.fcompiler import FCompiler +from numpy.distutils import customized_fcompiler + +compilers = ['NoneFCompiler'] + +class NoneFCompiler(FCompiler): + + compiler_type = 'none' + description = 'Fake Fortran compiler' + + executables = {'compiler_f77': None, + 'compiler_f90': None, + 'compiler_fix': None, + 'linker_so': None, + 'linker_exe': None, + 'archiver': None, + 'ranlib': None, + 'version_cmd': None, + } + + def find_executables(self): + pass + + +if __name__ == '__main__': + from distutils import log + log.set_verbosity(2) + print(customized_fcompiler(compiler='none').get_version()) diff --git a/shared/package-files/e9/e918d7dd14bc996f8c1c65137990096c08f5840f3a81a15d2d7a4615563f2df3/blob b/shared/package-files/e9/e918d7dd14bc996f8c1c65137990096c08f5840f3a81a15d2d7a4615563f2df3/blob new file mode 100644 index 0000000000000000000000000000000000000000..05061067c6c6e7d8b1bb826cd6a3d54e0b81da62 --- /dev/null +++ b/shared/package-files/e9/e918d7dd14bc996f8c1c65137990096c08f5840f3a81a15d2d7a4615563f2df3/blob @@ -0,0 +1,50 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API silu { + using schema = at::Tensor (const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::silu") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "silu(Tensor self) -> Tensor") + static at::Tensor call(const at::Tensor & self); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self); +}; + +struct TORCH_API silu_ { + using schema = at::Tensor & (at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::silu_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "silu_(Tensor(a!) self) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self); +}; + +struct TORCH_API silu_out { + using schema = at::Tensor & (const at::Tensor &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::silu") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "silu.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e9/e91c6d2eeaf15b00f337e1ad27b328d2a5e83673f798e53c0dc6af21dba65cce/blob b/shared/package-files/e9/e91c6d2eeaf15b00f337e1ad27b328d2a5e83673f798e53c0dc6af21dba65cce/blob new file mode 100644 index 0000000000000000000000000000000000000000..4724c52ccb53460f738ada3fd5d17d1226ad9373 --- /dev/null +++ b/shared/package-files/e9/e91c6d2eeaf15b00f337e1ad27b328d2a5e83673f798e53c0dc6af21dba65cce/blob @@ -0,0 +1,296 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# distutils: language = c++ + +from pyarrow.includes.common cimport * +from pyarrow.includes.libarrow cimport * + + +ctypedef CInvalidRowResult PyInvalidRowCallback(object, + const CCSVInvalidRow&) + + +cdef extern from "arrow/python/csv.h" namespace "arrow::py::csv": + + function[CInvalidRowHandler] MakeInvalidRowHandler( + function[PyInvalidRowCallback], object handler) + + +cdef extern from "arrow/python/api.h" namespace "arrow::py": + # Requires GIL + CResult[shared_ptr[CDataType]] InferArrowType( + object obj, object mask, c_bool pandas_null_sentinels) + + +cdef extern from "arrow/python/api.h" namespace "arrow::py::internal": + object NewMonthDayNanoTupleType() + CResult[PyObject*] MonthDayNanoIntervalArrayToPyList( + const CMonthDayNanoIntervalArray& array) + CResult[PyObject*] MonthDayNanoIntervalScalarToPyObject( + const CMonthDayNanoIntervalScalar& scalar) + + +cdef extern from "arrow/python/arrow_to_pandas.h" namespace "arrow::py::MapConversionType": + cdef enum MapConversionType "arrow::py::MapConversionType": + DEFAULT, + LOSSY, + STRICT_ + + +cdef extern from "arrow/python/api.h" namespace "arrow::py" nogil: + shared_ptr[CDataType] GetPrimitiveType(Type type) + + object PyFloat_FromHalf(uint16_t value) + + cdef cppclass PyConversionOptions: + PyConversionOptions() + + shared_ptr[CDataType] type + int64_t size + CMemoryPool* pool + c_bool from_pandas + c_bool ignore_timezone + c_bool strict + + # TODO Some functions below are not actually "nogil" + + CResult[shared_ptr[CChunkedArray]] ConvertPySequence( + object obj, object mask, const PyConversionOptions& options, + CMemoryPool* pool) + + CResult[shared_ptr[CArray]] Arange(int64_t start, int64_t stop, + int64_t step, CMemoryPool* pool) + + CResult[shared_ptr[CDataType]] NumPyDtypeToArrow(object dtype) + + CStatus NdarrayToArrow(CMemoryPool* pool, object ao, object mo, + c_bool from_pandas, + const shared_ptr[CDataType]& type, + shared_ptr[CChunkedArray]* out) + + CStatus NdarrayToArrow(CMemoryPool* pool, object ao, object mo, + c_bool from_pandas, + const shared_ptr[CDataType]& type, + const CCastOptions& cast_options, + shared_ptr[CChunkedArray]* out) + + CStatus NdarrayToTensor(CMemoryPool* pool, object ao, + const vector[c_string]& dim_names, + shared_ptr[CTensor]* out) + + CStatus TensorToNdarray(const shared_ptr[CTensor]& tensor, object base, + PyObject** out) + + CStatus SparseCOOTensorToNdarray( + const shared_ptr[CSparseCOOTensor]& sparse_tensor, object base, + PyObject** out_data, PyObject** out_coords) + + CStatus SparseCSRMatrixToNdarray( + const shared_ptr[CSparseCSRMatrix]& sparse_tensor, object base, + PyObject** out_data, PyObject** out_indptr, PyObject** out_indices) + + CStatus SparseCSCMatrixToNdarray( + const shared_ptr[CSparseCSCMatrix]& sparse_tensor, object base, + PyObject** out_data, PyObject** out_indptr, PyObject** out_indices) + + CStatus SparseCSFTensorToNdarray( + const shared_ptr[CSparseCSFTensor]& sparse_tensor, object base, + PyObject** out_data, PyObject** out_indptr, PyObject** out_indices) + + CStatus NdarraysToSparseCOOTensor(CMemoryPool* pool, object data_ao, + object coords_ao, + const vector[int64_t]& shape, + const vector[c_string]& dim_names, + shared_ptr[CSparseCOOTensor]* out) + + CStatus NdarraysToSparseCSRMatrix(CMemoryPool* pool, object data_ao, + object indptr_ao, object indices_ao, + const vector[int64_t]& shape, + const vector[c_string]& dim_names, + shared_ptr[CSparseCSRMatrix]* out) + + CStatus NdarraysToSparseCSCMatrix(CMemoryPool* pool, object data_ao, + object indptr_ao, object indices_ao, + const vector[int64_t]& shape, + const vector[c_string]& dim_names, + shared_ptr[CSparseCSCMatrix]* out) + + CStatus NdarraysToSparseCSFTensor(CMemoryPool* pool, object data_ao, + object indptr_ao, object indices_ao, + const vector[int64_t]& shape, + const vector[int64_t]& axis_order, + const vector[c_string]& dim_names, + shared_ptr[CSparseCSFTensor]* out) + + CStatus TensorToSparseCOOTensor(shared_ptr[CTensor], + shared_ptr[CSparseCOOTensor]* out) + + CStatus TensorToSparseCSRMatrix(shared_ptr[CTensor], + shared_ptr[CSparseCSRMatrix]* out) + + CStatus TensorToSparseCSCMatrix(shared_ptr[CTensor], + shared_ptr[CSparseCSCMatrix]* out) + + CStatus TensorToSparseCSFTensor(shared_ptr[CTensor], + shared_ptr[CSparseCSFTensor]* out) + + CStatus ConvertArrayToPandas(const PandasOptions& options, + shared_ptr[CArray] arr, + object py_ref, PyObject** out) + + CStatus ConvertChunkedArrayToPandas(const PandasOptions& options, + shared_ptr[CChunkedArray] arr, + object py_ref, PyObject** out) + + CStatus ConvertTableToPandas(const PandasOptions& options, + shared_ptr[CTable] table, + PyObject** out) + + void c_set_default_memory_pool \ + " arrow::py::set_default_memory_pool"(CMemoryPool* pool)\ + + CMemoryPool* c_get_memory_pool \ + " arrow::py::get_memory_pool"() + + cdef cppclass PyBuffer(CBuffer): + @staticmethod + CResult[shared_ptr[CBuffer]] FromPyObject(object obj) + + cdef cppclass PyForeignBuffer(CBuffer): + @staticmethod + CStatus Make(const uint8_t* data, int64_t size, object base, + shared_ptr[CBuffer]* out) + + cdef cppclass PyReadableFile(CRandomAccessFile): + PyReadableFile(object fo) + + cdef cppclass PyOutputStream(COutputStream): + PyOutputStream(object fo) + + cdef cppclass PandasOptions: + CMemoryPool* pool + c_bool strings_to_categorical + c_bool zero_copy_only + c_bool integer_object_nulls + c_bool date_as_object + c_bool timestamp_as_object + c_bool use_threads + c_bool coerce_temporal_nanoseconds + c_bool ignore_timezone + c_bool deduplicate_objects + c_bool safe_cast + c_bool split_blocks + c_bool self_destruct + MapConversionType maps_as_pydicts + c_bool decode_dictionaries + shared_ptr[const unordered_set[c_string]] categorical_columns + shared_ptr[const unordered_set[c_string]] extension_columns + c_bool to_numpy + + +cdef extern from "arrow/python/api.h" namespace "arrow::py::internal" nogil: + cdef cppclass CTimePoint "arrow::py::internal::TimePoint": + pass + + CTimePoint PyDateTime_to_TimePoint(PyDateTime_DateTime* pydatetime) + int64_t TimePoint_to_ns(CTimePoint val) + CTimePoint TimePoint_from_s(double val) + CTimePoint TimePoint_from_ns(int64_t val) + + CResult[c_string] TzinfoToString(PyObject* pytzinfo) + CResult[PyObject*] StringToTzinfo(c_string) + + +cdef extern from "arrow/python/numpy_init.h" namespace "arrow::py": + int arrow_init_numpy() except -1 + + +cdef extern from "arrow/python/pyarrow.h" namespace "arrow::py": + int import_pyarrow() except -1 + + +cdef extern from "arrow/python/common.h" namespace "arrow::py": + c_bool IsPyError(const CStatus& status) + void RestorePyError(const CStatus& status) except * + + +cdef extern from "arrow/python/common.h" namespace "arrow::py" nogil: + cdef cppclass SharedPtrNoGIL[T](shared_ptr[T]): + # This looks like the only way to satisfy both Cython 2 and Cython 3 + SharedPtrNoGIL& operator=(...) + cdef cppclass UniquePtrNoGIL[T, DELETER=*](unique_ptr[T, DELETER]): + UniquePtrNoGIL& operator=(...) + + +cdef extern from "arrow/python/inference.h" namespace "arrow::py": + c_bool IsPyBool(object o) + c_bool IsPyInt(object o) + c_bool IsPyFloat(object o) + + +cdef extern from "arrow/python/ipc.h" namespace "arrow::py": + cdef cppclass CPyRecordBatchReader" arrow::py::PyRecordBatchReader" \ + (CRecordBatchReader): + @staticmethod + CResult[shared_ptr[CRecordBatchReader]] Make(shared_ptr[CSchema], + object) + + +cdef extern from "arrow/python/ipc.h" namespace "arrow::py" nogil: + cdef cppclass CCastingRecordBatchReader" arrow::py::CastingRecordBatchReader" \ + (CRecordBatchReader): + @staticmethod + CResult[shared_ptr[CRecordBatchReader]] Make(shared_ptr[CRecordBatchReader], + shared_ptr[CSchema]) + + +cdef extern from "arrow/python/extension_type.h" namespace "arrow::py": + cdef cppclass CPyExtensionType \ + " arrow::py::PyExtensionType"(CExtensionType): + @staticmethod + CStatus FromClass(const shared_ptr[CDataType] storage_type, + const c_string extension_name, object typ, + shared_ptr[CExtensionType]* out) + + @staticmethod + CStatus FromInstance(shared_ptr[CDataType] storage_type, + object inst, shared_ptr[CExtensionType]* out) + + object GetInstance() + CStatus SetInstance(object) + + c_string PyExtensionName() + CStatus RegisterPyExtensionType(shared_ptr[CDataType]) + CStatus UnregisterPyExtensionType(c_string type_name) + + +cdef extern from "arrow/python/benchmark.h" namespace "arrow::py::benchmark": + void Benchmark_PandasObjectIsNull(object lst) except * + + +cdef extern from "arrow/python/gdb.h" namespace "arrow::gdb" nogil: + void GdbTestSession "arrow::gdb::TestSession"() + +cdef extern from "arrow/python/helpers.h" namespace "arrow::py::internal": + c_bool IsThreadingEnabled() + +cdef extern from "arrow/python/config.h" namespace "arrow::py": + cdef cppclass CBuildInfo "arrow::py::BuildInfo": + c_string build_type + + const CBuildInfo& GetBuildInfo "arrow::py::GetBuildInfo"() diff --git a/shared/package-files/e9/e91cb3285f1315c05550c368a8a966c46150ad28fc0e11e57551890acddd2353/blob b/shared/package-files/e9/e91cb3285f1315c05550c368a8a966c46150ad28fc0e11e57551890acddd2353/blob new file mode 100644 index 0000000000000000000000000000000000000000..c7cee8417fa457d671da2efbc6a19493762fcffb --- /dev/null +++ b/shared/package-files/e9/e91cb3285f1315c05550c368a8a966c46150ad28fc0e11e57551890acddd2353/blob @@ -0,0 +1,12 @@ +#pragma once + +#include +#include + +namespace torch { +namespace jit { + +TORCH_API void liftClosures(const std::shared_ptr& graph); + +} // namespace jit +} // namespace torch diff --git a/shared/package-files/e9/e9232e3da42effecf566b22d70433dc1588700e5233966c6ff5c9974ee927941/blob b/shared/package-files/e9/e9232e3da42effecf566b22d70433dc1588700e5233966c6ff5c9974ee927941/blob new file mode 100644 index 0000000000000000000000000000000000000000..2099a65eaeef3cd9a9314c64e39f1a6d555e82ce --- /dev/null +++ b/shared/package-files/e9/e9232e3da42effecf566b22d70433dc1588700e5233966c6ff5c9974ee927941/blob @@ -0,0 +1,277 @@ +""" +Author: Josef Perktold +License: BSD-3 + +""" + +import numpy as np +from scipy import stats + + +class NonlinearDeltaCov: + """ + Asymptotic covariance by Deltamethod + + The function is designed for 2d array, with rows equal to + the number of equations or constraints and columns equal to the number + of parameters. 1d params work by chance? + + fun: R^{m*k} -> R^{m} where m is number of equations and k is + the number of parameters. + + equations follow Greene + + This class does not use any caching. The intended usage is as a helper + function. Extra methods have been added for convenience but might move + to calling functions. + + The naming in this class uses params for the original random variable, + and cov_params for its covariance matrix. However, this class is + independent of the use cases in support of the models. + + Parameters + ---------- + func : callable, f(params) + Nonlinear function of the estimation parameters. The return of + the function can be vector valued, i.e., a 1-D array. + params : ndarray + Parameters at which function `func` is evaluated. + cov_params : ndarray + Covariance matrix of the parameters `params`. + deriv : callable or None, optional + First derivative or Jacobian of func. If deriv is None, then a + numerical derivative will be used. If func returns a 1-D array, + then the `deriv` should have rows corresponding to the elements + of the return of func. + func_args : None, optional + Not yet implemented. + """ + def __init__(self, func, params, cov_params, deriv=None, func_args=None): + self.fun = func + self.params = params + self.cov_params = cov_params + self._grad = deriv + self.func_args = func_args if func_args is not None else () + if func_args is not None: + raise NotImplementedError("func_args not yet implemented") + + def grad(self, params=None, **kwds): + """ + First derivative, jacobian of func evaluated at params + + Parameters + ---------- + params : ndarray or None, optional + Values at which gradient is evaluated. If params is None, then + the attached params are used. + TODO: should we drop this + **kwds + These keyword arguments are used without changes in the + calculation of numerical derivatives. These are only used if a + `deriv` function was not provided. + + Returns + ------- + grad : ndarray + Gradient or jacobian of the function. + """ + if params is None: + params = self.params + if self._grad is not None: + return self._grad(params) + else: + # copied from discrete_margins + try: + from statsmodels.tools.numdiff import approx_fprime_cs + jac = approx_fprime_cs(params, self.fun, **kwds) + except TypeError: # norm.cdf doesn't take complex values + from statsmodels.tools.numdiff import approx_fprime + jac = approx_fprime(params, self.fun, **kwds) + + return jac + + def cov(self): + """Covariance matrix of the transformed random variable""" + g = self.grad() + covar = np.dot(np.dot(g, self.cov_params), g.T) + return covar + + def predicted(self): + """ + Value of the function evaluated at the attached params + + Note: This is not equal to the expected value if the transformation + is nonlinear. If params is the maximum likelihood estimate, then + `predicted` is the maximum likelihood estimate of the value of the + nonlinear function. + """ + + predicted = self.fun(self.params) + + # TODO: why do I need to squeeze in poisson example + if predicted.ndim > 1: + predicted = predicted.squeeze() + return predicted + + def wald_test(self, value): + """ + Joint hypothesis tests that H0: f(params) = value + + The alternative hypothesis is two-sided H1: f(params) != value. + + Warning: this might be replaced with more general version that + returns ContrastResults. + currently uses chisquare distribution, use_f option not yet + implemented + + Parameters + ---------- + value : float or ndarray + Value of f(params) under the Null Hypothesis. + + Returns + ------- + statistic : float + Value of the test statistic. + pvalue : float + The p-value for the hypothesis test, based on chisquare + distribution and implies a two-sided hypothesis test. + """ + # TODO: add use_t option or not? + m = self.predicted() + v = self.cov() + df_constraints = np.size(m) + diff = m - value + lmstat = np.dot(np.dot(diff.T, np.linalg.inv(v)), diff) + return lmstat, stats.chi2.sf(lmstat, df_constraints) + + def var(self): + """Standard error for each equation (row) treated separately""" + g = self.grad() + var = (np.dot(g, self.cov_params) * g).sum(-1) + + if var.ndim == 2: + var = var.T + return var + + def se_vectorized(self): + """Standard error for each equation (row) treated separately""" + var = self.var() + return np.sqrt(var) + + def conf_int(self, alpha=0.05, use_t=False, df=None, var_extra=None, + predicted=None, se=None): + """ + Confidence interval for predicted based on delta method + + Parameters + ---------- + alpha : float, optional + The significance level for the confidence interval. + ie., The default `alpha` = .05 returns a 95% confidence interval. + use_t : bool, optional + If use_t is False (default), then the normal distribution is used + for the confidence interval, otherwise the t distribution with + `df` degrees of freedom is used. + df : int or float, optional + degrees of freedom for t distribution. Only used and required if + use_t is True. + var_extra : array_like, optional + Additional variance that is added to the variance based on the + delta method. This can be used to obtain confidence intervals for + new observations (prediction interval). + predicted : ndarray, optional + Predicted value, can be used to avoid repeated calculations if it + is already available. + se : ndarray, optional + Standard error, can be used to avoid repeated calculations if it + is already available. + + Returns + ------- + conf_int : ndarray + Each row contains [lower, upper] limits of the confidence interval + for the corresponding parameter. The first column contains all + lower, the second column contains all upper limits. + """ + + # TODO: predicted and se as arguments to avoid duplicate calculations + # or leave unchanged? + if not use_t: + dist = stats.norm + dist_args = () + else: + if df is None: + raise ValueError("t distribution requires df") + dist = stats.t + dist_args = (df,) + + if predicted is None: + predicted = self.predicted() + if se is None: + se = self.se_vectorized() + if var_extra is not None: + se = np.sqrt(se**2 + var_extra) + + q = dist.ppf(1 - alpha / 2., *dist_args) + lower = predicted - q * se + upper = predicted + q * se + ci = np.column_stack((lower, upper)) + if ci.shape[1] != 2: + raise RuntimeError("something wrong: ci not 2 columns") + return ci + + def summary(self, xname=None, alpha=0.05, title=None, use_t=False, + df=None): + """ + Summarize the Results of the nonlinear transformation + + This provides a parameter table equivalent to `t_test` and reuses + `ContrastResults`. + + Parameters + ---------- + xname : list of str, optional + Default is `c_##` for ## in p the number of regressors. + alpha : float, optional + Significance level for the confidence intervals. Default is + alpha = 0.05 which implies a confidence level of 95%. + title : str, optional + Title for the params table. If not None, then this replaces the + default title. + use_t : bool, optional + If use_t is False (default), then the normal distribution is used + for the confidence interval, otherwise the t distribution with + `df` degrees of freedom is used. + df : int or float, optional + Degrees of freedom for t distribution. Only used and required if + use_t is True. + + Returns + ------- + smry : str or Summary instance + This contains a parameter results table in the case of t or z + test in the same form as the parameter results table in the + model results summary. For F or Wald test, the return is a + string. + """ + # this is an experimental reuse of ContrastResults + from statsmodels.stats.contrast import ContrastResults + predicted = self.predicted() + se = self.se_vectorized() + # TODO check shape for scalar case, ContrastResults requires iterable + predicted = np.atleast_1d(predicted) + if predicted.ndim > 1: + predicted = predicted.squeeze() + se = np.atleast_1d(se) + + statistic = predicted / se + if use_t: + df_resid = df + cr = ContrastResults(effect=predicted, t=statistic, sd=se, + df_denom=df_resid) + else: + cr = ContrastResults(effect=predicted, statistic=statistic, sd=se, + df_denom=None, distribution="norm") + + return cr.summary(xname=xname, alpha=alpha, title=title) diff --git a/shared/package-files/e9/e925b389134f7467c0e3b4a97235c3246ec1eb5ef71074fabd3dfd8ee11f05dd/blob b/shared/package-files/e9/e925b389134f7467c0e3b4a97235c3246ec1eb5ef71074fabd3dfd8ee11f05dd/blob new file mode 100644 index 0000000000000000000000000000000000000000..170079d24905e2ac30705370855aa86551fd6786 --- /dev/null +++ b/shared/package-files/e9/e925b389134f7467c0e3b4a97235c3246ec1eb5ef71074fabd3dfd8ee11f05dd/blob @@ -0,0 +1,20 @@ +# encoding: utf-8 + +def test_import_coloransi(): + from IPython.utils import coloransi + +def test_import_generics(): + from IPython.utils import generics + +def test_import_ipstruct(): + from IPython.utils import ipstruct + +def test_import_PyColorize(): + from IPython.utils import PyColorize + +def test_import_strdispatch(): + from IPython.utils import strdispatch + +def test_import_wildcard(): + from IPython.utils import wildcard + diff --git a/shared/package-files/e9/e929de366a2af3782e7b4b711565b1e00eb9bd58806bcc40d3a173900a68a809/blob b/shared/package-files/e9/e929de366a2af3782e7b4b711565b1e00eb9bd58806bcc40d3a173900a68a809/blob new file mode 100644 index 0000000000000000000000000000000000000000..6cc9e2e393fc07276f01c5c4c14952bd81f04b50 --- /dev/null +++ b/shared/package-files/e9/e929de366a2af3782e7b4b711565b1e00eb9bd58806bcc40d3a173900a68a809/blob @@ -0,0 +1,248 @@ +""" +Expose each GPU devices directly. + +This module implements a API that is like the "CUDA runtime" context manager +for managing CUDA context stack and clean up. It relies on thread-local globals +to separate the context stack management of each thread. Contexts are also +shareable among threads. Only the main thread can destroy Contexts. + +Note: +- This module must be imported by the main-thread. + +""" +import functools +import threading +from contextlib import contextmanager + +from .driver import driver, USE_NV_BINDING + + +class _DeviceList(object): + def __getattr__(self, attr): + # First time looking at "lst" attribute. + if attr == "lst": + # Device list is not initialized. + # Query all CUDA devices. + numdev = driver.get_device_count() + gpus = [_DeviceContextManager(driver.get_device(devid)) + for devid in range(numdev)] + # Define "lst" to avoid re-initialization + self.lst = gpus + return gpus + + # Other attributes + return super(_DeviceList, self).__getattr__(attr) + + def __getitem__(self, devnum): + ''' + Returns the context manager for device *devnum*. + ''' + return self.lst[devnum] + + def __str__(self): + return ', '.join([str(d) for d in self.lst]) + + def __iter__(self): + return iter(self.lst) + + def __len__(self): + return len(self.lst) + + @property + def current(self): + """Returns the active device or None if there's no active device + """ + with driver.get_active_context() as ac: + devnum = ac.devnum + if devnum is not None: + return self[devnum] + + +class _DeviceContextManager(object): + """ + Provides a context manager for executing in the context of the chosen + device. The normal use of instances of this type is from + ``numba.cuda.gpus``. For example, to execute on device 2:: + + with numba.cuda.gpus[2]: + d_a = numba.cuda.to_device(a) + + to copy the array *a* onto device 2, referred to by *d_a*. + """ + + def __init__(self, device): + self._device = device + + def __getattr__(self, item): + return getattr(self._device, item) + + def __enter__(self): + _runtime.get_or_create_context(self._device.id) + + def __exit__(self, exc_type, exc_val, exc_tb): + # this will verify that we are popping the right device context. + self._device.get_primary_context().pop() + + def __str__(self): + return "".format(self=self) + + +class _Runtime(object): + """Emulate the CUDA runtime context management. + + It owns all Devices and Contexts. + Keeps at most one Context per Device + """ + + def __init__(self): + self.gpus = _DeviceList() + + # For caching the attached CUDA Context + self._tls = threading.local() + + # Remember the main thread + # Only the main thread can *actually* destroy + self._mainthread = threading.current_thread() + + # Avoid mutation of runtime state in multithreaded programs + self._lock = threading.RLock() + + @contextmanager + def ensure_context(self): + """Ensure a CUDA context is available inside the context. + + On entrance, queries the CUDA driver for an active CUDA context and + attaches it in TLS for subsequent calls so they do not need to query + the CUDA driver again. On exit, detach the CUDA context from the TLS. + + This will allow us to pickup thirdparty activated CUDA context in + any top-level Numba CUDA API. + """ + with driver.get_active_context(): + oldctx = self._get_attached_context() + newctx = self.get_or_create_context(None) + self._set_attached_context(newctx) + try: + yield + finally: + self._set_attached_context(oldctx) + + def get_or_create_context(self, devnum): + """Returns the primary context and push+create it if needed + for *devnum*. If *devnum* is None, use the active CUDA context (must + be primary) or create a new one with ``devnum=0``. + """ + if devnum is None: + attached_ctx = self._get_attached_context() + if attached_ctx is None: + return self._get_or_create_context_uncached(devnum) + else: + return attached_ctx + else: + if USE_NV_BINDING: + devnum = int(devnum) + return self._activate_context_for(devnum) + + def _get_or_create_context_uncached(self, devnum): + """See also ``get_or_create_context(devnum)``. + This version does not read the cache. + """ + with self._lock: + # Try to get the active context in the CUDA stack or + # activate GPU-0 with the primary context + with driver.get_active_context() as ac: + if not ac: + return self._activate_context_for(0) + else: + # Get primary context for the active device + ctx = self.gpus[ac.devnum].get_primary_context() + # Is active context the primary context? + if USE_NV_BINDING: + ctx_handle = int(ctx.handle) + ac_ctx_handle = int(ac.context_handle) + else: + ctx_handle = ctx.handle.value + ac_ctx_handle = ac.context_handle.value + if ctx_handle != ac_ctx_handle: + msg = ('Numba cannot operate on non-primary' + ' CUDA context {:x}') + raise RuntimeError(msg.format(ac_ctx_handle)) + # Ensure the context is ready + ctx.prepare_for_use() + return ctx + + def _activate_context_for(self, devnum): + with self._lock: + gpu = self.gpus[devnum] + newctx = gpu.get_primary_context() + # Detect unexpected context switch + cached_ctx = self._get_attached_context() + if cached_ctx is not None and cached_ctx is not newctx: + raise RuntimeError('Cannot switch CUDA-context.') + newctx.push() + return newctx + + def _get_attached_context(self): + return getattr(self._tls, 'attached_context', None) + + def _set_attached_context(self, ctx): + self._tls.attached_context = ctx + + def reset(self): + """Clear all contexts in the thread. Destroy the context if and only + if we are in the main thread. + """ + # Pop all active context. + while driver.pop_active_context() is not None: + pass + + # If it is the main thread + if threading.current_thread() == self._mainthread: + self._destroy_all_contexts() + + def _destroy_all_contexts(self): + # Reset all devices + for gpu in self.gpus: + gpu.reset() + + +_runtime = _Runtime() + +# ================================ PUBLIC API ================================ + +gpus = _runtime.gpus + + +def get_context(devnum=None): + """Get the current device or use a device by device number, and + return the CUDA context. + """ + return _runtime.get_or_create_context(devnum) + + +def require_context(fn): + """ + A decorator that ensures a CUDA context is available when *fn* is executed. + + Note: The function *fn* cannot switch CUDA-context. + """ + @functools.wraps(fn) + def _require_cuda_context(*args, **kws): + with _runtime.ensure_context(): + return fn(*args, **kws) + + return _require_cuda_context + + +def reset(): + """Reset the CUDA subsystem for the current thread. + + In the main thread: + This removes all CUDA contexts. Only use this at shutdown or for + cleaning up between tests. + + In non-main threads: + This clear the CUDA context stack only. + + """ + _runtime.reset() diff --git a/shared/package-files/e9/e92a8777366a1ce245132585b6a9e3e8a20a462beb197c513a58277b3ff732dd/blob b/shared/package-files/e9/e92a8777366a1ce245132585b6a9e3e8a20a462beb197c513a58277b3ff732dd/blob new file mode 100644 index 0000000000000000000000000000000000000000..3b014d37b2d64adc70cc76892bbfc96189b6eedf --- /dev/null +++ b/shared/package-files/e9/e92a8777366a1ce245132585b6a9e3e8a20a462beb197c513a58277b3ff732dd/blob @@ -0,0 +1,351 @@ +from __future__ import annotations + + +from typing import TYPE_CHECKING, List, Optional, Tuple, Union + +if TYPE_CHECKING: + from ._typing import ( + Array, + Device, + Dtype, + NestedSequence, + SupportsBufferProtocol, + ) + from collections.abc import Sequence +from ._dtypes import _all_dtypes + +import numpy as np + + +def _check_valid_dtype(dtype): + # Note: Only spelling dtypes as the dtype objects is supported. + + # We use this instead of "dtype in _all_dtypes" because the dtype objects + # define equality with the sorts of things we want to disallow. + for d in (None,) + _all_dtypes: + if dtype is d: + return + raise ValueError("dtype must be one of the supported dtypes") + + +def asarray( + obj: Union[ + Array, + bool, + int, + float, + NestedSequence[bool | int | float], + SupportsBufferProtocol, + ], + /, + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, + copy: Optional[Union[bool, np._CopyMode]] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.asarray `. + + See its docstring for more information. + """ + # _array_object imports in this file are inside the functions to avoid + # circular imports + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + if copy in (False, np._CopyMode.IF_NEEDED): + # Note: copy=False is not yet implemented in np.asarray + raise NotImplementedError("copy=False is not yet implemented") + if isinstance(obj, Array): + if dtype is not None and obj.dtype != dtype: + copy = True + if copy in (True, np._CopyMode.ALWAYS): + return Array._new(np.array(obj._array, copy=True, dtype=dtype)) + return obj + if dtype is None and isinstance(obj, int) and (obj > 2 ** 64 or obj < -(2 ** 63)): + # Give a better error message in this case. NumPy would convert this + # to an object array. TODO: This won't handle large integers in lists. + raise OverflowError("Integer out of bounds for array dtypes") + res = np.asarray(obj, dtype=dtype) + return Array._new(res) + + +def arange( + start: Union[int, float], + /, + stop: Optional[Union[int, float]] = None, + step: Union[int, float] = 1, + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.arange `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.arange(start, stop=stop, step=step, dtype=dtype)) + + +def empty( + shape: Union[int, Tuple[int, ...]], + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.empty `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.empty(shape, dtype=dtype)) + + +def empty_like( + x: Array, /, *, dtype: Optional[Dtype] = None, device: Optional[Device] = None +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.empty_like `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.empty_like(x._array, dtype=dtype)) + + +def eye( + n_rows: int, + n_cols: Optional[int] = None, + /, + *, + k: int = 0, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.eye `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.eye(n_rows, M=n_cols, k=k, dtype=dtype)) + + +def from_dlpack(x: object, /) -> Array: + from ._array_object import Array + + return Array._new(np.from_dlpack(x)) + + +def full( + shape: Union[int, Tuple[int, ...]], + fill_value: Union[int, float], + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.full `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + if isinstance(fill_value, Array) and fill_value.ndim == 0: + fill_value = fill_value._array + res = np.full(shape, fill_value, dtype=dtype) + if res.dtype not in _all_dtypes: + # This will happen if the fill value is not something that NumPy + # coerces to one of the acceptable dtypes. + raise TypeError("Invalid input to full") + return Array._new(res) + + +def full_like( + x: Array, + /, + fill_value: Union[int, float], + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.full_like `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + res = np.full_like(x._array, fill_value, dtype=dtype) + if res.dtype not in _all_dtypes: + # This will happen if the fill value is not something that NumPy + # coerces to one of the acceptable dtypes. + raise TypeError("Invalid input to full_like") + return Array._new(res) + + +def linspace( + start: Union[int, float], + stop: Union[int, float], + /, + num: int, + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, + endpoint: bool = True, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.linspace `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.linspace(start, stop, num, dtype=dtype, endpoint=endpoint)) + + +def meshgrid(*arrays: Array, indexing: str = "xy") -> List[Array]: + """ + Array API compatible wrapper for :py:func:`np.meshgrid `. + + See its docstring for more information. + """ + from ._array_object import Array + + # Note: unlike np.meshgrid, only inputs with all the same dtype are + # allowed + + if len({a.dtype for a in arrays}) > 1: + raise ValueError("meshgrid inputs must all have the same dtype") + + return [ + Array._new(array) + for array in np.meshgrid(*[a._array for a in arrays], indexing=indexing) + ] + + +def ones( + shape: Union[int, Tuple[int, ...]], + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.ones `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.ones(shape, dtype=dtype)) + + +def ones_like( + x: Array, /, *, dtype: Optional[Dtype] = None, device: Optional[Device] = None +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.ones_like `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.ones_like(x._array, dtype=dtype)) + + +def tril(x: Array, /, *, k: int = 0) -> Array: + """ + Array API compatible wrapper for :py:func:`np.tril `. + + See its docstring for more information. + """ + from ._array_object import Array + + if x.ndim < 2: + # Note: Unlike np.tril, x must be at least 2-D + raise ValueError("x must be at least 2-dimensional for tril") + return Array._new(np.tril(x._array, k=k)) + + +def triu(x: Array, /, *, k: int = 0) -> Array: + """ + Array API compatible wrapper for :py:func:`np.triu `. + + See its docstring for more information. + """ + from ._array_object import Array + + if x.ndim < 2: + # Note: Unlike np.triu, x must be at least 2-D + raise ValueError("x must be at least 2-dimensional for triu") + return Array._new(np.triu(x._array, k=k)) + + +def zeros( + shape: Union[int, Tuple[int, ...]], + *, + dtype: Optional[Dtype] = None, + device: Optional[Device] = None, +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.zeros `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.zeros(shape, dtype=dtype)) + + +def zeros_like( + x: Array, /, *, dtype: Optional[Dtype] = None, device: Optional[Device] = None +) -> Array: + """ + Array API compatible wrapper for :py:func:`np.zeros_like `. + + See its docstring for more information. + """ + from ._array_object import Array + + _check_valid_dtype(dtype) + if device not in ["cpu", None]: + raise ValueError(f"Unsupported device {device!r}") + return Array._new(np.zeros_like(x._array, dtype=dtype)) diff --git a/shared/package-files/e9/e930f52be3033390161d24270d8cc1e2f30a4f8d562297dd5c14eba3bd9ffa99/blob b/shared/package-files/e9/e930f52be3033390161d24270d8cc1e2f30a4f8d562297dd5c14eba3bd9ffa99/blob new file mode 100644 index 0000000000000000000000000000000000000000..fb8f018f418f862c0d8aa524e2806d7b08594339 Binary files /dev/null and b/shared/package-files/e9/e930f52be3033390161d24270d8cc1e2f30a4f8d562297dd5c14eba3bd9ffa99/blob differ diff --git a/shared/package-files/e9/e932b25f0415297098e37d8d673e8fabb62c1e256e3271a5121d083942558b77/blob b/shared/package-files/e9/e932b25f0415297098e37d8d673e8fabb62c1e256e3271a5121d083942558b77/blob new file mode 100644 index 0000000000000000000000000000000000000000..76f7a5be365b0a79c55023daf7f34a86fcd516a8 Binary files /dev/null and b/shared/package-files/e9/e932b25f0415297098e37d8d673e8fabb62c1e256e3271a5121d083942558b77/blob differ diff --git a/shared/package-files/e9/e932b801d70f378801d141e8eba1fb70618948539a1cea38c7463fe074a404fa/blob b/shared/package-files/e9/e932b801d70f378801d141e8eba1fb70618948539a1cea38c7463fe074a404fa/blob new file mode 100644 index 0000000000000000000000000000000000000000..d95b8c07e3e5e3943d1c152cb05d0240d9fa87f2 --- /dev/null +++ b/shared/package-files/e9/e932b801d70f378801d141e8eba1fb70618948539a1cea38c7463fe074a404fa/blob @@ -0,0 +1 @@ +libarchive diff --git a/shared/package-files/e9/e93313986fd9d88079b448813abb095ab81ff8ebd77dca64550bac39b80b54f6/blob b/shared/package-files/e9/e93313986fd9d88079b448813abb095ab81ff8ebd77dca64550bac39b80b54f6/blob new file mode 100644 index 0000000000000000000000000000000000000000..3b53f3b19e086c5d911d5391918ebbe03c6da853 --- /dev/null +++ b/shared/package-files/e9/e93313986fd9d88079b448813abb095ab81ff8ebd77dca64550bac39b80b54f6/blob @@ -0,0 +1,5 @@ +from fontTools.ttLib.tables._h_e_a_d import table__h_e_a_d + + +class table__b_h_e_d(table__h_e_a_d): + pass diff --git a/shared/package-files/e9/e9358ad0919a65542ba1f802029e68c7ad7f350136808c21628b8a40c893689f/blob b/shared/package-files/e9/e9358ad0919a65542ba1f802029e68c7ad7f350136808c21628b8a40c893689f/blob new file mode 100644 index 0000000000000000000000000000000000000000..b739ef0966e9b6fac4574f3d6f04051799f75a16 --- /dev/null +++ b/shared/package-files/e9/e9358ad0919a65542ba1f802029e68c7ad7f350136808c21628b8a40c893689f/blob @@ -0,0 +1,32 @@ +import enum +from typing import Sequence, Type, TypeVar + +T = TypeVar("T", bound=enum.Enum) + + +class StrEnumMeta(enum.EnumMeta): + auto = enum.auto + + def from_str(self: Type[T], member: str) -> T: # type: ignore[misc] + try: + return self[member] + except KeyError: + # TODO: use `add_suggestion` from torchvision.prototype.utils._internal to improve the error message as + # soon as it is migrated. + raise ValueError(f"Unknown value '{member}' for {self.__name__}.") from None + + +class StrEnum(enum.Enum, metaclass=StrEnumMeta): + pass + + +def sequence_to_str(seq: Sequence, separate_last: str = "") -> str: + if not seq: + return "" + if len(seq) == 1: + return f"'{seq[0]}'" + + head = "'" + "', '".join([str(item) for item in seq[:-1]]) + "'" + tail = f"{'' if separate_last and len(seq) == 2 else ','} {separate_last}'{seq[-1]}'" + + return head + tail diff --git a/shared/package-files/e9/e93716da6b9c0d5a4a1df60fe695b370f0695603d21f6f83f053e42cfc10caf7/blob b/shared/package-files/e9/e93716da6b9c0d5a4a1df60fe695b370f0695603d21f6f83f053e42cfc10caf7/blob new file mode 100644 index 0000000000000000000000000000000000000000..62b076cdee58ec8f34034141ba0befd9015b0c7e --- /dev/null +++ b/shared/package-files/e9/e93716da6b9c0d5a4a1df60fe695b370f0695603d21f6f83f053e42cfc10caf7/blob @@ -0,0 +1,20 @@ +This package contains a modified version of ca-bundle.crt: + +ca-bundle.crt -- Bundle of CA Root Certificates + +This is a bundle of X.509 certificates of public Certificate Authorities +(CA). These were automatically extracted from Mozilla's root certificates +file (certdata.txt). This file can be found in the mozilla source tree: +https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins/certdata.txt +It contains the certificates in PEM format and therefore +can be directly used with curl / libcurl / php_curl, or with +an Apache+mod_ssl webserver for SSL client authentication. +Just configure this file as the SSLCACertificateFile.# + +***** BEGIN LICENSE BLOCK ***** +This Source Code Form is subject to the terms of the Mozilla Public License, +v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain +one at http://mozilla.org/MPL/2.0/. + +***** END LICENSE BLOCK ***** +@(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $ diff --git a/shared/package-files/e9/e93b48045660c3ebeb398a91cd2c616022019e0a155fcafcfac4f98c582458a3/blob b/shared/package-files/e9/e93b48045660c3ebeb398a91cd2c616022019e0a155fcafcfac4f98c582458a3/blob new file mode 100644 index 0000000000000000000000000000000000000000..cafc69c4d0f20f42dc184366db0ac8933a512f54 --- /dev/null +++ b/shared/package-files/e9/e93b48045660c3ebeb398a91cd2c616022019e0a155fcafcfac4f98c582458a3/blob @@ -0,0 +1,105 @@ +from datetime import timedelta + +import numpy as np +import pytest + +from pandas._libs import iNaT + +import pandas as pd +from pandas import ( + Categorical, + Index, + NaT, + Series, + isna, +) +import pandas._testing as tm + + +class TestSeriesMissingData: + def test_categorical_nan_handling(self): + # NaNs are represented as -1 in labels + s = Series(Categorical(["a", "b", np.nan, "a"])) + tm.assert_index_equal(s.cat.categories, Index(["a", "b"])) + tm.assert_numpy_array_equal( + s.values.codes, np.array([0, 1, -1, 0], dtype=np.int8) + ) + + def test_isna_for_inf(self): + s = Series(["a", np.inf, np.nan, pd.NA, 1.0]) + msg = "use_inf_as_na option is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + with pd.option_context("mode.use_inf_as_na", True): + r = s.isna() + dr = s.dropna() + e = Series([False, True, True, True, False]) + de = Series(["a", 1.0], index=[0, 4]) + tm.assert_series_equal(r, e) + tm.assert_series_equal(dr, de) + + def test_timedelta64_nan(self): + td = Series([timedelta(days=i) for i in range(10)]) + + # nan ops on timedeltas + td1 = td.copy() + td1[0] = np.nan + assert isna(td1[0]) + assert td1[0]._value == iNaT + td1[0] = td[0] + assert not isna(td1[0]) + + # GH#16674 iNaT is treated as an integer when given by the user + with tm.assert_produces_warning(FutureWarning, match="incompatible dtype"): + td1[1] = iNaT + assert not isna(td1[1]) + assert td1.dtype == np.object_ + assert td1[1] == iNaT + td1[1] = td[1] + assert not isna(td1[1]) + + td1[2] = NaT + assert isna(td1[2]) + assert td1[2]._value == iNaT + td1[2] = td[2] + assert not isna(td1[2]) + + # boolean setting + # GH#2899 boolean setting + td3 = np.timedelta64(timedelta(days=3)) + td7 = np.timedelta64(timedelta(days=7)) + td[(td > td3) & (td < td7)] = np.nan + assert isna(td).sum() == 3 + + @pytest.mark.xfail( + reason="Chained inequality raises when trying to define 'selector'" + ) + def test_logical_range_select(self, datetime_series): + # NumPy limitation =( + # https://github.com/pandas-dev/pandas/commit/9030dc021f07c76809848925cb34828f6c8484f3 + + selector = -0.5 <= datetime_series <= 0.5 + expected = (datetime_series >= -0.5) & (datetime_series <= 0.5) + tm.assert_series_equal(selector, expected) + + def test_valid(self, datetime_series): + ts = datetime_series.copy() + ts.index = ts.index._with_freq(None) + ts[::2] = np.nan + + result = ts.dropna() + assert len(result) == ts.count() + tm.assert_series_equal(result, ts[1::2]) + tm.assert_series_equal(result, ts[pd.notna(ts)]) + + +def test_hasnans_uncached_for_series(): + # GH#19700 + # set float64 dtype to avoid upcast when setting nan + idx = Index([0, 1], dtype="float64") + assert idx.hasnans is False + assert "hasnans" in idx._cache + ser = idx.to_series() + assert ser.hasnans is False + assert not hasattr(ser, "_cache") + ser.iloc[-1] = np.nan + assert ser.hasnans is True diff --git a/shared/package-files/e9/e9402d33ff62dd346840fb8ec839d6b574ef35d45865e90aa814e8a5a1d72f14/blob b/shared/package-files/e9/e9402d33ff62dd346840fb8ec839d6b574ef35d45865e90aa814e8a5a1d72f14/blob new file mode 100644 index 0000000000000000000000000000000000000000..ea69fba158d3bfedfe49bffef4b1664117fc3246 --- /dev/null +++ b/shared/package-files/e9/e9402d33ff62dd346840fb8ec839d6b574ef35d45865e90aa814e8a5a1d72f14/blob @@ -0,0 +1,10 @@ +# flake8: noqa: F401 +r"""QAT Modules. + +This file is in the process of migration to `torch/ao/nn/qat/dynamic`, and +is kept here for compatibility while the migration process is ongoing. +If you are adding a new entry/functionality, please, add it to the +appropriate file under the `torch/ao/nn/qat/dynamic/modules`, +while adding an import statement here. +""" +from torch.ao.nn.qat.dynamic.modules.linear import Linear diff --git a/shared/package-files/e9/e943c0fd48422f924f6da40239ab4c9f18469d0f9a20799bde55ea6f0ad2a081/blob b/shared/package-files/e9/e943c0fd48422f924f6da40239ab4c9f18469d0f9a20799bde55ea6f0ad2a081/blob new file mode 100644 index 0000000000000000000000000000000000000000..a0319acabbb7409dfa5c24ceca39e25ff0240618 --- /dev/null +++ b/shared/package-files/e9/e943c0fd48422f924f6da40239ab4c9f18469d0f9a20799bde55ea6f0ad2a081/blob @@ -0,0 +1,29 @@ +from sympy.matrices.expressions.factorizations import lu, LofCholesky, qr, svd +from sympy.assumptions.ask import (Q, ask) +from sympy.core.symbol import Symbol +from sympy.matrices.expressions.matexpr import MatrixSymbol + +n = Symbol('n') +X = MatrixSymbol('X', n, n) + +def test_LU(): + L, U = lu(X) + assert L.shape == U.shape == X.shape + assert ask(Q.lower_triangular(L)) + assert ask(Q.upper_triangular(U)) + +def test_Cholesky(): + LofCholesky(X) + +def test_QR(): + Q_, R = qr(X) + assert Q_.shape == R.shape == X.shape + assert ask(Q.orthogonal(Q_)) + assert ask(Q.upper_triangular(R)) + +def test_svd(): + U, S, V = svd(X) + assert U.shape == S.shape == V.shape == X.shape + assert ask(Q.orthogonal(U)) + assert ask(Q.orthogonal(V)) + assert ask(Q.diagonal(S)) diff --git a/shared/package-files/e9/e943defdb6c64308b39623769424605894257a196ce967501d0c8dcdb8a330b5/blob b/shared/package-files/e9/e943defdb6c64308b39623769424605894257a196ce967501d0c8dcdb8a330b5/blob new file mode 100644 index 0000000000000000000000000000000000000000..6f1c0550e19e7b03a65e40c75144d9c241905423 --- /dev/null +++ b/shared/package-files/e9/e943defdb6c64308b39623769424605894257a196ce967501d0c8dcdb8a330b5/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::_fw_primal_copy(Tensor self, int level) -> Tensor +inline at::Tensor _fw_primal_copy(const at::Tensor & self, int64_t level) { + return at::_ops::_fw_primal_copy::call(self, level); +} + +// aten::_fw_primal_copy.out(Tensor self, int level, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _fw_primal_copy_out(at::Tensor & out, const at::Tensor & self, int64_t level) { + return at::_ops::_fw_primal_copy_out::call(self, level, out); +} +// aten::_fw_primal_copy.out(Tensor self, int level, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & _fw_primal_copy_outf(const at::Tensor & self, int64_t level, at::Tensor & out) { + return at::_ops::_fw_primal_copy_out::call(self, level, out); +} + +} diff --git a/shared/package-files/e9/e94620ec8a974e2f1f7123aeb7c4c4ccd564c480387dff82c86db6a899db2180/blob b/shared/package-files/e9/e94620ec8a974e2f1f7123aeb7c4c4ccd564c480387dff82c86db6a899db2180/blob new file mode 100644 index 0000000000000000000000000000000000000000..136831b96ba16c95edba12ecd47b6f1566b68427 --- /dev/null +++ b/shared/package-files/e9/e94620ec8a974e2f1f7123aeb7c4c4ccd564c480387dff82c86db6a899db2180/blob @@ -0,0 +1,167 @@ +from sympy.functions import bspline_basis_set, interpolating_spline +from sympy.core.numbers import Rational +from sympy.core.singleton import S +from sympy.core.symbol import symbols +from sympy.functions.elementary.piecewise import Piecewise +from sympy.logic.boolalg import And +from sympy.sets.sets import Interval +from sympy.testing.pytest import slow + +x, y = symbols('x,y') + + +def test_basic_degree_0(): + d = 0 + knots = range(5) + splines = bspline_basis_set(d, knots, x) + for i in range(len(splines)): + assert splines[i] == Piecewise((1, Interval(i, i + 1).contains(x)), + (0, True)) + + +def test_basic_degree_1(): + d = 1 + knots = range(5) + splines = bspline_basis_set(d, knots, x) + assert splines[0] == Piecewise((x, Interval(0, 1).contains(x)), + (2 - x, Interval(1, 2).contains(x)), + (0, True)) + assert splines[1] == Piecewise((-1 + x, Interval(1, 2).contains(x)), + (3 - x, Interval(2, 3).contains(x)), + (0, True)) + assert splines[2] == Piecewise((-2 + x, Interval(2, 3).contains(x)), + (4 - x, Interval(3, 4).contains(x)), + (0, True)) + + +def test_basic_degree_2(): + d = 2 + knots = range(5) + splines = bspline_basis_set(d, knots, x) + b0 = Piecewise((x**2/2, Interval(0, 1).contains(x)), + (Rational(-3, 2) + 3*x - x**2, Interval(1, 2).contains(x)), + (Rational(9, 2) - 3*x + x**2/2, Interval(2, 3).contains(x)), + (0, True)) + b1 = Piecewise((S.Half - x + x**2/2, Interval(1, 2).contains(x)), + (Rational(-11, 2) + 5*x - x**2, Interval(2, 3).contains(x)), + (8 - 4*x + x**2/2, Interval(3, 4).contains(x)), + (0, True)) + assert splines[0] == b0 + assert splines[1] == b1 + + +def test_basic_degree_3(): + d = 3 + knots = range(5) + splines = bspline_basis_set(d, knots, x) + b0 = Piecewise( + (x**3/6, Interval(0, 1).contains(x)), + (Rational(2, 3) - 2*x + 2*x**2 - x**3/2, Interval(1, 2).contains(x)), + (Rational(-22, 3) + 10*x - 4*x**2 + x**3/2, Interval(2, 3).contains(x)), + (Rational(32, 3) - 8*x + 2*x**2 - x**3/6, Interval(3, 4).contains(x)), + (0, True) + ) + assert splines[0] == b0 + + +def test_repeated_degree_1(): + d = 1 + knots = [0, 0, 1, 2, 2, 3, 4, 4] + splines = bspline_basis_set(d, knots, x) + assert splines[0] == Piecewise((1 - x, Interval(0, 1).contains(x)), + (0, True)) + assert splines[1] == Piecewise((x, Interval(0, 1).contains(x)), + (2 - x, Interval(1, 2).contains(x)), + (0, True)) + assert splines[2] == Piecewise((-1 + x, Interval(1, 2).contains(x)), + (0, True)) + assert splines[3] == Piecewise((3 - x, Interval(2, 3).contains(x)), + (0, True)) + assert splines[4] == Piecewise((-2 + x, Interval(2, 3).contains(x)), + (4 - x, Interval(3, 4).contains(x)), + (0, True)) + assert splines[5] == Piecewise((-3 + x, Interval(3, 4).contains(x)), + (0, True)) + + +def test_repeated_degree_2(): + d = 2 + knots = [0, 0, 1, 2, 2, 3, 4, 4] + splines = bspline_basis_set(d, knots, x) + + assert splines[0] == Piecewise(((-3*x**2/2 + 2*x), And(x <= 1, x >= 0)), + (x**2/2 - 2*x + 2, And(x <= 2, x >= 1)), + (0, True)) + assert splines[1] == Piecewise((x**2/2, And(x <= 1, x >= 0)), + (-3*x**2/2 + 4*x - 2, And(x <= 2, x >= 1)), + (0, True)) + assert splines[2] == Piecewise((x**2 - 2*x + 1, And(x <= 2, x >= 1)), + (x**2 - 6*x + 9, And(x <= 3, x >= 2)), + (0, True)) + assert splines[3] == Piecewise((-3*x**2/2 + 8*x - 10, And(x <= 3, x >= 2)), + (x**2/2 - 4*x + 8, And(x <= 4, x >= 3)), + (0, True)) + assert splines[4] == Piecewise((x**2/2 - 2*x + 2, And(x <= 3, x >= 2)), + (-3*x**2/2 + 10*x - 16, And(x <= 4, x >= 3)), + (0, True)) + +# Tests for interpolating_spline + + +def test_10_points_degree_1(): + d = 1 + X = [-5, 2, 3, 4, 7, 9, 10, 30, 31, 34] + Y = [-10, -2, 2, 4, 7, 6, 20, 45, 19, 25] + spline = interpolating_spline(d, x, X, Y) + + assert spline == Piecewise((x*Rational(8, 7) - Rational(30, 7), (x >= -5) & (x <= 2)), (4*x - 10, (x >= 2) & (x <= 3)), + (2*x - 4, (x >= 3) & (x <= 4)), (x, (x >= 4) & (x <= 7)), + (-x/2 + Rational(21, 2), (x >= 7) & (x <= 9)), (14*x - 120, (x >= 9) & (x <= 10)), + (x*Rational(5, 4) + Rational(15, 2), (x >= 10) & (x <= 30)), (-26*x + 825, (x >= 30) & (x <= 31)), + (2*x - 43, (x >= 31) & (x <= 34))) + + +def test_3_points_degree_2(): + d = 2 + X = [-3, 10, 19] + Y = [3, -4, 30] + spline = interpolating_spline(d, x, X, Y) + + assert spline == Piecewise((505*x**2/2574 - x*Rational(4921, 2574) - Rational(1931, 429), (x >= -3) & (x <= 19))) + + +def test_5_points_degree_2(): + d = 2 + X = [-3, 2, 4, 5, 10] + Y = [-1, 2, 5, 10, 14] + spline = interpolating_spline(d, x, X, Y) + + assert spline == Piecewise((4*x**2/329 + x*Rational(1007, 1645) + Rational(1196, 1645), (x >= -3) & (x <= 3)), + (2701*x**2/1645 - x*Rational(15079, 1645) + Rational(5065, 329), (x >= 3) & (x <= Rational(9, 2))), + (-1319*x**2/1645 + x*Rational(21101, 1645) - Rational(11216, 329), (x >= Rational(9, 2)) & (x <= 10))) + + +@slow +def test_6_points_degree_3(): + d = 3 + X = [-1, 0, 2, 3, 9, 12] + Y = [-4, 3, 3, 7, 9, 20] + spline = interpolating_spline(d, x, X, Y) + + assert spline == Piecewise((6058*x**3/5301 - 18427*x**2/5301 + x*Rational(12622, 5301) + 3, (x >= -1) & (x <= 2)), + (-8327*x**3/5301 + 67883*x**2/5301 - x*Rational(159998, 5301) + Rational(43661, 1767), (x >= 2) & (x <= 3)), + (5414*x**3/47709 - 1386*x**2/589 + x*Rational(4267, 279) - Rational(12232, 589), (x >= 3) & (x <= 12))) + + +def test_issue_19262(): + Delta = symbols('Delta', positive=True) + knots = [i*Delta for i in range(4)] + basis = bspline_basis_set(1, knots, x) + y = symbols('y', nonnegative=True) + basis2 = bspline_basis_set(1, knots, y) + assert basis[0].subs(x, y) == basis2[0] + assert interpolating_spline(1, x, + [Delta*i for i in [1, 2, 4, 7]], [3, 6, 5, 7] + ) == Piecewise((3*x/Delta, (Delta <= x) & (x <= 2*Delta)), + (7 - x/(2*Delta), (x >= 2*Delta) & (x <= 4*Delta)), + (Rational(7, 3) + 2*x/(3*Delta), (x >= 4*Delta) & (x <= 7*Delta))) diff --git a/shared/package-files/e9/e94703fe0448f665b6f8a360d28bd03486bd6b8b606b83479e0bc49c26cd460b/README.md b/shared/package-files/e9/e94703fe0448f665b6f8a360d28bd03486bd6b8b606b83479e0bc49c26cd460b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7a0c2c868a6d213a3dbb06f80a2c79f63980318e --- /dev/null +++ b/shared/package-files/e9/e94703fe0448f665b6f8a360d28bd03486bd6b8b606b83479e0bc49c26cd460b/README.md @@ -0,0 +1 @@ +Task-trained native2000 GLACIER, with fixed mass-tolerant entropy scoring. Predicted peaks match the nearest measured peak within max(20 ppm, 0.002 Da); matched intensities sum, and unmatched probability remains in the distance. Simulator weights and prediction code are unchanged. All runtime assets are owned and bundled. No network, external cache, labels or parameter fitting are needed. diff --git a/shared/package-files/e9/e94a52afd1416bf4c394c903202f306f3ec7864742228a2efb6803cc16230ff1/blob b/shared/package-files/e9/e94a52afd1416bf4c394c903202f306f3ec7864742228a2efb6803cc16230ff1/blob new file mode 100644 index 0000000000000000000000000000000000000000..5048dfe740544f1984515cd71ce5e6e54d70db0a Binary files /dev/null and b/shared/package-files/e9/e94a52afd1416bf4c394c903202f306f3ec7864742228a2efb6803cc16230ff1/blob differ diff --git a/shared/package-files/e9/e94b76139403f948d71662da7218a39a35e9fc6de3b66ec217450b1709f33f8f/blob b/shared/package-files/e9/e94b76139403f948d71662da7218a39a35e9fc6de3b66ec217450b1709f33f8f/blob new file mode 100644 index 0000000000000000000000000000000000000000..e3f8da6eb7f517370d0369ba08252cda6f332dde --- /dev/null +++ b/shared/package-files/e9/e94b76139403f948d71662da7218a39a35e9fc6de3b66ec217450b1709f33f8f/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor _autocast_to_full_precision(const at::Tensor & self, bool cuda_enabled, bool cpu_enabled); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/e9/e94cf532db2bb91a7418bfe4f23ead60547d73bee3c44bd339abf0c9ae6c3192/blob b/shared/package-files/e9/e94cf532db2bb91a7418bfe4f23ead60547d73bee3c44bd339abf0c9ae6c3192/blob new file mode 100644 index 0000000000000000000000000000000000000000..8a5c9dc085b277442cde8d1f5638bd4f61040e2d --- /dev/null +++ b/shared/package-files/e9/e94cf532db2bb91a7418bfe4f23ead60547d73bee3c44bd339abf0c9ae6c3192/blob @@ -0,0 +1,68 @@ +# coding: utf-8 +"""Tests for the compilerop module. +""" +#----------------------------------------------------------------------------- +# Copyright (C) 2010-2011 The IPython Development Team. +# +# Distributed under the terms of the BSD License. +# +# The full license is in the file COPYING.txt, distributed with this software. +#----------------------------------------------------------------------------- + +#----------------------------------------------------------------------------- +# Imports +#----------------------------------------------------------------------------- + +# Stdlib imports +import linecache +import sys + +# Our own imports +from IPython.core import compilerop + +#----------------------------------------------------------------------------- +# Test functions +#----------------------------------------------------------------------------- + +def test_code_name(): + code = 'x=1' + name = compilerop.code_name(code) + assert name.startswith(" ncache + +def test_proper_default_encoding(): + # Check we're in a proper Python 2 environment (some imports, such + # as GTK, can change the default encoding, which can hide bugs.) + assert sys.getdefaultencoding() == "utf-8" + +def test_cache_unicode(): + cp = compilerop.CachingCompiler() + ncache = len(linecache.cache) + cp.cache(u"t = 'žćčšđ'") + assert len(linecache.cache) > ncache + +def test_compiler_check_cache(): + """Test the compiler properly manages the cache. + """ + # Rather simple-minded tests that just exercise the API + cp = compilerop.CachingCompiler() + cp.cache('x=1', 99) + # Ensure now that after clearing the cache, our entries survive + linecache.checkcache() + assert any( + k.startswith("= parse_version("1.9.0"): + mode = scipy.stats.mode(a, axis=axis, keepdims=True) + if sp_version >= parse_version("1.10.999"): + # scipy.stats.mode has changed returned array shape with axis=None + # and keepdims=True, see https://github.com/scipy/scipy/pull/17561 + if axis is None: + mode = np.ravel(mode) + return mode + return scipy.stats.mode(a, axis=axis) + + +# TODO: Remove when Scipy 1.12 is the minimum supported version +if sp_base_version >= parse_version("1.12.0"): + _sparse_linalg_cg = scipy.sparse.linalg.cg +else: + + def _sparse_linalg_cg(A, b, **kwargs): + if "rtol" in kwargs: + kwargs["tol"] = kwargs.pop("rtol") + if "atol" not in kwargs: + kwargs["atol"] = "legacy" + return scipy.sparse.linalg.cg(A, b, **kwargs) + + +# TODO : remove this when required minimum version of scipy >= 1.9.0 +def _yeojohnson_lambda(_neg_log_likelihood, x): + """Estimate the optimal Yeo-Johnson transformation parameter (lambda). + + This function provides a compatibility workaround for versions of SciPy + older than 1.9.0, where `scipy.stats.yeojohnson` did not return + the estimated lambda directly. + + Parameters + ---------- + _neg_log_likelihood : callable + A function that computes the negative log-likelihood of the Yeo-Johnson + transformation for a given lambda. Used only for SciPy versions < 1.9.0. + + x : array-like + Input data to estimate the Yeo-Johnson transformation parameter. + + Returns + ------- + lmbda : float + The estimated lambda parameter for the Yeo-Johnson transformation. + """ + min_scipy_version = "1.9.0" + + if sp_version < parse_version(min_scipy_version): + # choosing bracket -2, 2 like for boxcox + return optimize.brent(_neg_log_likelihood, brack=(-2, 2)) + + _, lmbda = scipy.stats.yeojohnson(x, lmbda=None) + return lmbda + + +# TODO: Fuse the modern implementations of _sparse_min_max and _sparse_nan_min_max +# into the public min_max_axis function when Scipy 1.11 is the minimum supported +# version and delete the backport in the else branch below. +if sp_base_version >= parse_version("1.11.0"): + + def _sparse_min_max(X, axis): + the_min = X.min(axis=axis) + the_max = X.max(axis=axis) + + if axis is not None: + the_min = the_min.toarray().ravel() + the_max = the_max.toarray().ravel() + + return the_min, the_max + + def _sparse_nan_min_max(X, axis): + the_min = X.nanmin(axis=axis) + the_max = X.nanmax(axis=axis) + + if axis is not None: + the_min = the_min.toarray().ravel() + the_max = the_max.toarray().ravel() + + return the_min, the_max + +else: + # This code is mostly taken from scipy 0.14 and extended to handle nans, see + # https://github.com/scikit-learn/scikit-learn/pull/11196 + def _minor_reduce(X, ufunc): + major_index = np.flatnonzero(np.diff(X.indptr)) + + # reduceat tries casts X.indptr to intp, which errors + # if it is int64 on a 32 bit system. + # Reinitializing prevents this where possible, see #13737 + X = type(X)((X.data, X.indices, X.indptr), shape=X.shape) + value = ufunc.reduceat(X.data, X.indptr[major_index]) + return major_index, value + + def _min_or_max_axis(X, axis, min_or_max): + N = X.shape[axis] + if N == 0: + raise ValueError("zero-size array to reduction operation") + M = X.shape[1 - axis] + mat = X.tocsc() if axis == 0 else X.tocsr() + mat.sum_duplicates() + major_index, value = _minor_reduce(mat, min_or_max) + not_full = np.diff(mat.indptr)[major_index] < N + value[not_full] = min_or_max(value[not_full], 0) + mask = value != 0 + major_index = np.compress(mask, major_index) + value = np.compress(mask, value) + + if axis == 0: + res = scipy.sparse.coo_matrix( + (value, (np.zeros(len(value)), major_index)), + dtype=X.dtype, + shape=(1, M), + ) + else: + res = scipy.sparse.coo_matrix( + (value, (major_index, np.zeros(len(value)))), + dtype=X.dtype, + shape=(M, 1), + ) + return res.toarray().ravel() + + def _sparse_min_or_max(X, axis, min_or_max): + if axis is None: + if 0 in X.shape: + raise ValueError("zero-size array to reduction operation") + zero = X.dtype.type(0) + if X.nnz == 0: + return zero + m = min_or_max.reduce(X.data.ravel()) + if X.nnz != np.prod(X.shape): + m = min_or_max(zero, m) + return m + if axis < 0: + axis += 2 + if (axis == 0) or (axis == 1): + return _min_or_max_axis(X, axis, min_or_max) + else: + raise ValueError("invalid axis, use 0 for rows, or 1 for columns") + + def _sparse_min_max(X, axis): + return ( + _sparse_min_or_max(X, axis, np.minimum), + _sparse_min_or_max(X, axis, np.maximum), + ) + + def _sparse_nan_min_max(X, axis): + return ( + _sparse_min_or_max(X, axis, np.fmin), + _sparse_min_or_max(X, axis, np.fmax), + ) + + +# For +1.25 NumPy versions exceptions and warnings are being moved +# to a dedicated submodule. +if np_version >= parse_version("1.25.0"): + from numpy.exceptions import ComplexWarning, VisibleDeprecationWarning +else: + from numpy import ( # noqa: F401 + ComplexWarning, + VisibleDeprecationWarning, + ) + + +# TODO: Adapt when Pandas > 2.2 is the minimum supported version +def pd_fillna(pd, frame): + pd_version = parse_version(pd.__version__).base_version + if parse_version(pd_version) < parse_version("2.2"): + frame = frame.fillna(value=np.nan) + else: + infer_objects_kwargs = ( + {} if parse_version(pd_version) >= parse_version("3") else {"copy": False} + ) + with pd.option_context("future.no_silent_downcasting", True): + frame = frame.fillna(value=np.nan).infer_objects(**infer_objects_kwargs) + return frame + + +# TODO: remove when SciPy 1.12 is the minimum supported version +def _preserve_dia_indices_dtype( + sparse_container, original_container_format, requested_sparse_format +): + """Preserve indices dtype for SciPy < 1.12 when converting from DIA to CSR/CSC. + + For SciPy < 1.12, DIA arrays indices are upcasted to `np.int64` that is + inconsistent with DIA matrices. We downcast the indices dtype to `np.int32` to + be consistent with DIA matrices. + + The converted indices arrays are affected back inplace to the sparse container. + + Parameters + ---------- + sparse_container : sparse container + Sparse container to be checked. + requested_sparse_format : str or bool + The type of format of `sparse_container`. + + Notes + ----- + See https://github.com/scipy/scipy/issues/19245 for more details. + """ + if original_container_format == "dia_array" and requested_sparse_format in ( + "csr", + "coo", + ): + if requested_sparse_format == "csr": + index_dtype = _smallest_admissible_index_dtype( + arrays=(sparse_container.indptr, sparse_container.indices), + maxval=max(sparse_container.nnz, sparse_container.shape[1]), + check_contents=True, + ) + sparse_container.indices = sparse_container.indices.astype( + index_dtype, copy=False + ) + sparse_container.indptr = sparse_container.indptr.astype( + index_dtype, copy=False + ) + else: # requested_sparse_format == "coo" + index_dtype = _smallest_admissible_index_dtype( + maxval=max(sparse_container.shape) + ) + sparse_container.row = sparse_container.row.astype(index_dtype, copy=False) + sparse_container.col = sparse_container.col.astype(index_dtype, copy=False) + + +# TODO: remove when SciPy 1.12 is the minimum supported version +def _smallest_admissible_index_dtype(arrays=(), maxval=None, check_contents=False): + """Based on input (integer) arrays `a`, determine a suitable index data + type that can hold the data in the arrays. + + This function returns `np.int64` if it either required by `maxval` or based on the + largest precision of the dtype of the arrays passed as argument, or by their + contents (when `check_contents is True`). If none of the condition requires + `np.int64` then this function returns `np.int32`. + + Parameters + ---------- + arrays : ndarray or tuple of ndarrays, default=() + Input arrays whose types/contents to check. + + maxval : float, default=None + Maximum value needed. + + check_contents : bool, default=False + Whether to check the values in the arrays and not just their types. + By default, check only the types. + + Returns + ------- + dtype : {np.int32, np.int64} + Suitable index data type (int32 or int64). + """ + + int32min = np.int32(np.iinfo(np.int32).min) + int32max = np.int32(np.iinfo(np.int32).max) + + if maxval is not None: + if maxval > np.iinfo(np.int64).max: + raise ValueError( + f"maxval={maxval} is to large to be represented as np.int64." + ) + if maxval > int32max: + return np.int64 + + if isinstance(arrays, np.ndarray): + arrays = (arrays,) + + for arr in arrays: + if not isinstance(arr, np.ndarray): + raise TypeError( + f"Arrays should be of type np.ndarray, got {type(arr)} instead." + ) + if not np.issubdtype(arr.dtype, np.integer): + raise ValueError( + f"Array dtype {arr.dtype} is not supported for index dtype. We expect " + "integral values." + ) + if not np.can_cast(arr.dtype, np.int32): + if not check_contents: + # when `check_contents` is False, we stay on the safe side and return + # np.int64. + return np.int64 + if arr.size == 0: + # a bigger type not needed yet, let's look at the next array + continue + else: + maxval = arr.max() + minval = arr.min() + if minval < int32min or maxval > int32max: + # a big index type is actually needed + return np.int64 + + return np.int32 + + +# TODO: Remove when Scipy 1.12 is the minimum supported version +if sp_version < parse_version("1.12"): + from ..externals._scipy.sparse.csgraph import laplacian +else: + from scipy.sparse.csgraph import ( + laplacian, # noqa: F401 # pragma: no cover + ) + + +# TODO: Remove when Python min version >= 3.12. +def tarfile_extractall(tarfile, path): + try: + # Use filter="data" to prevent the most dangerous security issues. + # For more details, see + # https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall + tarfile.extractall(path, filter="data") + except TypeError: + tarfile.extractall(path) + + +def _in_unstable_openblas_configuration(): + """Return True if in an unstable configuration for OpenBLAS""" + + # Import libraries which might load OpenBLAS. + import numpy # noqa: F401 + import scipy # noqa: F401 + + modules_info = _get_threadpool_controller().info() + + open_blas_used = any(info["internal_api"] == "openblas" for info in modules_info) + if not open_blas_used: + return False + + # OpenBLAS 0.3.16 fixed instability for arm64, see: + # https://github.com/xianyi/OpenBLAS/blob/1b6db3dbba672b4f8af935bd43a1ff6cff4d20b7/Changelog.txt#L56-L58 + openblas_arm64_stable_version = parse_version("0.3.16") + for info in modules_info: + if info["internal_api"] != "openblas": + continue + openblas_version = info.get("version") + openblas_architecture = info.get("architecture") + if openblas_version is None or openblas_architecture is None: + # Cannot be sure that OpenBLAS is good enough. Assume unstable: + return True # pragma: no cover + if ( + openblas_architecture == "neoversen1" + and parse_version(openblas_version) < openblas_arm64_stable_version + ): + # See discussions in https://github.com/numpy/numpy/issues/19411 + return True # pragma: no cover + return False + + +# TODO: Remove when Scipy 1.15 is the minimum supported version. In scipy 1.15, +# the internal info details (via 'iprint' and 'disp' options) were dropped, +# following the LBFGS rewrite from Fortran to C, see +# https://github.com/scipy/scipy/issues/23186#issuecomment-2987801035. For +# scipy 1.15, 'iprint' and 'disp' have no effect and for scipy >= 1.16 a +# DeprecationWarning is emitted. +def _get_additional_lbfgs_options_dict(key, value): + return {} if sp_version >= parse_version("1.15") else {key: value} + + +# TODO(pyarrow): Remove when minimum pyarrow version is 17.0.0 +PYARROW_VERSION_BELOW_17 = False +try: + import pyarrow + + pyarrow_version = parse_version(pyarrow.__version__) + if pyarrow_version < parse_version("17.0.0"): + PYARROW_VERSION_BELOW_17 = True +except ModuleNotFoundError: # pragma: no cover + pass diff --git a/shared/package-files/e9/e950d4d26b530441b46c11ea28fd69f31abce3a78c85267f5af059bfc33313b3/blob b/shared/package-files/e9/e950d4d26b530441b46c11ea28fd69f31abce3a78c85267f5af059bfc33313b3/blob new file mode 100644 index 0000000000000000000000000000000000000000..c7ca09594106a765e815a55e942019d17c181270 Binary files /dev/null and b/shared/package-files/e9/e950d4d26b530441b46c11ea28fd69f31abce3a78c85267f5af059bfc33313b3/blob differ diff --git a/shared/package-files/e9/e958397590ee2176a4f4e2eea6f2b26af2c3ae801382953a8a591c95cd0e9496/blob b/shared/package-files/e9/e958397590ee2176a4f4e2eea6f2b26af2c3ae801382953a8a591c95cd0e9496/blob new file mode 100644 index 0000000000000000000000000000000000000000..4dc1af4af03f52131610c7c6313a93aef39b4748 --- /dev/null +++ b/shared/package-files/e9/e958397590ee2176a4f4e2eea6f2b26af2c3ae801382953a8a591c95cd0e9496/blob @@ -0,0 +1,609 @@ +# mypy: allow-untyped-defs +"""Utilities for assertion debugging.""" + +from __future__ import annotations + +import collections.abc +import os +import pprint +from typing import AbstractSet +from typing import Any +from typing import Callable +from typing import Iterable +from typing import Literal +from typing import Mapping +from typing import Protocol +from typing import Sequence +from unicodedata import normalize + +from _pytest import outcomes +import _pytest._code +from _pytest._io.pprint import PrettyPrinter +from _pytest._io.saferepr import saferepr +from _pytest._io.saferepr import saferepr_unlimited +from _pytest.config import Config + + +# The _reprcompare attribute on the util module is used by the new assertion +# interpretation code and assertion rewriter to detect this plugin was +# loaded and in turn call the hooks defined here as part of the +# DebugInterpreter. +_reprcompare: Callable[[str, object, object], str | None] | None = None + +# Works similarly as _reprcompare attribute. Is populated with the hook call +# when pytest_runtest_setup is called. +_assertion_pass: Callable[[int, str, str], None] | None = None + +# Config object which is assigned during pytest_runtest_protocol. +_config: Config | None = None + + +class _HighlightFunc(Protocol): + def __call__(self, source: str, lexer: Literal["diff", "python"] = "python") -> str: + """Apply highlighting to the given source.""" + + +def format_explanation(explanation: str) -> str: + r"""Format an explanation. + + Normally all embedded newlines are escaped, however there are + three exceptions: \n{, \n} and \n~. The first two are intended + cover nested explanations, see function and attribute explanations + for examples (.visit_Call(), visit_Attribute()). The last one is + for when one explanation needs to span multiple lines, e.g. when + displaying diffs. + """ + lines = _split_explanation(explanation) + result = _format_lines(lines) + return "\n".join(result) + + +def _split_explanation(explanation: str) -> list[str]: + r"""Return a list of individual lines in the explanation. + + This will return a list of lines split on '\n{', '\n}' and '\n~'. + Any other newlines will be escaped and appear in the line as the + literal '\n' characters. + """ + raw_lines = (explanation or "").split("\n") + lines = [raw_lines[0]] + for values in raw_lines[1:]: + if values and values[0] in ["{", "}", "~", ">"]: + lines.append(values) + else: + lines[-1] += "\\n" + values + return lines + + +def _format_lines(lines: Sequence[str]) -> list[str]: + """Format the individual lines. + + This will replace the '{', '}' and '~' characters of our mini formatting + language with the proper 'where ...', 'and ...' and ' + ...' text, taking + care of indentation along the way. + + Return a list of formatted lines. + """ + result = list(lines[:1]) + stack = [0] + stackcnt = [0] + for line in lines[1:]: + if line.startswith("{"): + if stackcnt[-1]: + s = "and " + else: + s = "where " + stack.append(len(result)) + stackcnt[-1] += 1 + stackcnt.append(0) + result.append(" +" + " " * (len(stack) - 1) + s + line[1:]) + elif line.startswith("}"): + stack.pop() + stackcnt.pop() + result[stack[-1]] += line[1:] + else: + assert line[0] in ["~", ">"] + stack[-1] += 1 + indent = len(stack) if line.startswith("~") else len(stack) - 1 + result.append(" " * indent + line[1:]) + assert len(stack) == 1 + return result + + +def issequence(x: Any) -> bool: + return isinstance(x, collections.abc.Sequence) and not isinstance(x, str) + + +def istext(x: Any) -> bool: + return isinstance(x, str) + + +def isdict(x: Any) -> bool: + return isinstance(x, dict) + + +def isset(x: Any) -> bool: + return isinstance(x, (set, frozenset)) + + +def isnamedtuple(obj: Any) -> bool: + return isinstance(obj, tuple) and getattr(obj, "_fields", None) is not None + + +def isdatacls(obj: Any) -> bool: + return getattr(obj, "__dataclass_fields__", None) is not None + + +def isattrs(obj: Any) -> bool: + return getattr(obj, "__attrs_attrs__", None) is not None + + +def isiterable(obj: Any) -> bool: + try: + iter(obj) + return not istext(obj) + except Exception: + return False + + +def has_default_eq( + obj: object, +) -> bool: + """Check if an instance of an object contains the default eq + + First, we check if the object's __eq__ attribute has __code__, + if so, we check the equally of the method code filename (__code__.co_filename) + to the default one generated by the dataclass and attr module + for dataclasses the default co_filename is , for attrs class, the __eq__ should contain "attrs eq generated" + """ + # inspired from https://github.com/willmcgugan/rich/blob/07d51ffc1aee6f16bd2e5a25b4e82850fb9ed778/rich/pretty.py#L68 + if hasattr(obj.__eq__, "__code__") and hasattr(obj.__eq__.__code__, "co_filename"): + code_filename = obj.__eq__.__code__.co_filename + + if isattrs(obj): + return "attrs generated eq" in code_filename + + return code_filename == "" # data class + return True + + +def assertrepr_compare( + config, op: str, left: Any, right: Any, use_ascii: bool = False +) -> list[str] | None: + """Return specialised explanations for some operators/operands.""" + verbose = config.get_verbosity(Config.VERBOSITY_ASSERTIONS) + + # Strings which normalize equal are often hard to distinguish when printed; use ascii() to make this easier. + # See issue #3246. + use_ascii = ( + isinstance(left, str) + and isinstance(right, str) + and normalize("NFD", left) == normalize("NFD", right) + ) + + if verbose > 1: + left_repr = saferepr_unlimited(left, use_ascii=use_ascii) + right_repr = saferepr_unlimited(right, use_ascii=use_ascii) + else: + # XXX: "15 chars indentation" is wrong + # ("E AssertionError: assert "); should use term width. + maxsize = ( + 80 - 15 - len(op) - 2 + ) // 2 # 15 chars indentation, 1 space around op + + left_repr = saferepr(left, maxsize=maxsize, use_ascii=use_ascii) + right_repr = saferepr(right, maxsize=maxsize, use_ascii=use_ascii) + + summary = f"{left_repr} {op} {right_repr}" + highlighter = config.get_terminal_writer()._highlight + + explanation = None + try: + if op == "==": + explanation = _compare_eq_any(left, right, highlighter, verbose) + elif op == "not in": + if istext(left) and istext(right): + explanation = _notin_text(left, right, verbose) + elif op == "!=": + if isset(left) and isset(right): + explanation = ["Both sets are equal"] + elif op == ">=": + if isset(left) and isset(right): + explanation = _compare_gte_set(left, right, highlighter, verbose) + elif op == "<=": + if isset(left) and isset(right): + explanation = _compare_lte_set(left, right, highlighter, verbose) + elif op == ">": + if isset(left) and isset(right): + explanation = _compare_gt_set(left, right, highlighter, verbose) + elif op == "<": + if isset(left) and isset(right): + explanation = _compare_lt_set(left, right, highlighter, verbose) + + except outcomes.Exit: + raise + except Exception: + repr_crash = _pytest._code.ExceptionInfo.from_current()._getreprcrash() + explanation = [ + f"(pytest_assertion plugin: representation of details failed: {repr_crash}.", + " Probably an object has a faulty __repr__.)", + ] + + if not explanation: + return None + + if explanation[0] != "": + explanation = ["", *explanation] + return [summary, *explanation] + + +def _compare_eq_any( + left: Any, right: Any, highlighter: _HighlightFunc, verbose: int = 0 +) -> list[str]: + explanation = [] + if istext(left) and istext(right): + explanation = _diff_text(left, right, verbose) + else: + from _pytest.python_api import ApproxBase + + if isinstance(left, ApproxBase) or isinstance(right, ApproxBase): + # Although the common order should be obtained == expected, this ensures both ways + approx_side = left if isinstance(left, ApproxBase) else right + other_side = right if isinstance(left, ApproxBase) else left + + explanation = approx_side._repr_compare(other_side) + elif type(left) is type(right) and ( + isdatacls(left) or isattrs(left) or isnamedtuple(left) + ): + # Note: unlike dataclasses/attrs, namedtuples compare only the + # field values, not the type or field names. But this branch + # intentionally only handles the same-type case, which was often + # used in older code bases before dataclasses/attrs were available. + explanation = _compare_eq_cls(left, right, highlighter, verbose) + elif issequence(left) and issequence(right): + explanation = _compare_eq_sequence(left, right, highlighter, verbose) + elif isset(left) and isset(right): + explanation = _compare_eq_set(left, right, highlighter, verbose) + elif isdict(left) and isdict(right): + explanation = _compare_eq_dict(left, right, highlighter, verbose) + + if isiterable(left) and isiterable(right): + expl = _compare_eq_iterable(left, right, highlighter, verbose) + explanation.extend(expl) + + return explanation + + +def _diff_text(left: str, right: str, verbose: int = 0) -> list[str]: + """Return the explanation for the diff between text. + + Unless --verbose is used this will skip leading and trailing + characters which are identical to keep the diff minimal. + """ + from difflib import ndiff + + explanation: list[str] = [] + + if verbose < 1: + i = 0 # just in case left or right has zero length + for i in range(min(len(left), len(right))): + if left[i] != right[i]: + break + if i > 42: + i -= 10 # Provide some context + explanation = [ + f"Skipping {i} identical leading characters in diff, use -v to show" + ] + left = left[i:] + right = right[i:] + if len(left) == len(right): + for i in range(len(left)): + if left[-i] != right[-i]: + break + if i > 42: + i -= 10 # Provide some context + explanation += [ + f"Skipping {i} identical trailing " + "characters in diff, use -v to show" + ] + left = left[:-i] + right = right[:-i] + keepends = True + if left.isspace() or right.isspace(): + left = repr(str(left)) + right = repr(str(right)) + explanation += ["Strings contain only whitespace, escaping them using repr()"] + # "right" is the expected base against which we compare "left", + # see https://github.com/pytest-dev/pytest/issues/3333 + explanation += [ + line.strip("\n") + for line in ndiff(right.splitlines(keepends), left.splitlines(keepends)) + ] + return explanation + + +def _compare_eq_iterable( + left: Iterable[Any], + right: Iterable[Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + if verbose <= 0 and not running_on_ci(): + return ["Use -v to get more diff"] + # dynamic import to speedup pytest + import difflib + + left_formatting = PrettyPrinter().pformat(left).splitlines() + right_formatting = PrettyPrinter().pformat(right).splitlines() + + explanation = ["", "Full diff:"] + # "right" is the expected base against which we compare "left", + # see https://github.com/pytest-dev/pytest/issues/3333 + explanation.extend( + highlighter( + "\n".join( + line.rstrip() + for line in difflib.ndiff(right_formatting, left_formatting) + ), + lexer="diff", + ).splitlines() + ) + return explanation + + +def _compare_eq_sequence( + left: Sequence[Any], + right: Sequence[Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + comparing_bytes = isinstance(left, bytes) and isinstance(right, bytes) + explanation: list[str] = [] + len_left = len(left) + len_right = len(right) + for i in range(min(len_left, len_right)): + if left[i] != right[i]: + if comparing_bytes: + # when comparing bytes, we want to see their ascii representation + # instead of their numeric values (#5260) + # using a slice gives us the ascii representation: + # >>> s = b'foo' + # >>> s[0] + # 102 + # >>> s[0:1] + # b'f' + left_value = left[i : i + 1] + right_value = right[i : i + 1] + else: + left_value = left[i] + right_value = right[i] + + explanation.append( + f"At index {i} diff:" + f" {highlighter(repr(left_value))} != {highlighter(repr(right_value))}" + ) + break + + if comparing_bytes: + # when comparing bytes, it doesn't help to show the "sides contain one or more + # items" longer explanation, so skip it + + return explanation + + len_diff = len_left - len_right + if len_diff: + if len_diff > 0: + dir_with_more = "Left" + extra = saferepr(left[len_right]) + else: + len_diff = 0 - len_diff + dir_with_more = "Right" + extra = saferepr(right[len_left]) + + if len_diff == 1: + explanation += [ + f"{dir_with_more} contains one more item: {highlighter(extra)}" + ] + else: + explanation += [ + "%s contains %d more items, first extra item: %s" + % (dir_with_more, len_diff, highlighter(extra)) + ] + return explanation + + +def _compare_eq_set( + left: AbstractSet[Any], + right: AbstractSet[Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + explanation = [] + explanation.extend(_set_one_sided_diff("left", left, right, highlighter)) + explanation.extend(_set_one_sided_diff("right", right, left, highlighter)) + return explanation + + +def _compare_gt_set( + left: AbstractSet[Any], + right: AbstractSet[Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + explanation = _compare_gte_set(left, right, highlighter) + if not explanation: + return ["Both sets are equal"] + return explanation + + +def _compare_lt_set( + left: AbstractSet[Any], + right: AbstractSet[Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + explanation = _compare_lte_set(left, right, highlighter) + if not explanation: + return ["Both sets are equal"] + return explanation + + +def _compare_gte_set( + left: AbstractSet[Any], + right: AbstractSet[Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + return _set_one_sided_diff("right", right, left, highlighter) + + +def _compare_lte_set( + left: AbstractSet[Any], + right: AbstractSet[Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + return _set_one_sided_diff("left", left, right, highlighter) + + +def _set_one_sided_diff( + posn: str, + set1: AbstractSet[Any], + set2: AbstractSet[Any], + highlighter: _HighlightFunc, +) -> list[str]: + explanation = [] + diff = set1 - set2 + if diff: + explanation.append(f"Extra items in the {posn} set:") + for item in diff: + explanation.append(highlighter(saferepr(item))) + return explanation + + +def _compare_eq_dict( + left: Mapping[Any, Any], + right: Mapping[Any, Any], + highlighter: _HighlightFunc, + verbose: int = 0, +) -> list[str]: + explanation: list[str] = [] + set_left = set(left) + set_right = set(right) + common = set_left.intersection(set_right) + same = {k: left[k] for k in common if left[k] == right[k]} + if same and verbose < 2: + explanation += [f"Omitting {len(same)} identical items, use -vv to show"] + elif same: + explanation += ["Common items:"] + explanation += highlighter(pprint.pformat(same)).splitlines() + diff = {k for k in common if left[k] != right[k]} + if diff: + explanation += ["Differing items:"] + for k in diff: + explanation += [ + highlighter(saferepr({k: left[k]})) + + " != " + + highlighter(saferepr({k: right[k]})) + ] + extra_left = set_left - set_right + len_extra_left = len(extra_left) + if len_extra_left: + explanation.append( + "Left contains %d more item%s:" + % (len_extra_left, "" if len_extra_left == 1 else "s") + ) + explanation.extend( + highlighter(pprint.pformat({k: left[k] for k in extra_left})).splitlines() + ) + extra_right = set_right - set_left + len_extra_right = len(extra_right) + if len_extra_right: + explanation.append( + "Right contains %d more item%s:" + % (len_extra_right, "" if len_extra_right == 1 else "s") + ) + explanation.extend( + highlighter(pprint.pformat({k: right[k] for k in extra_right})).splitlines() + ) + return explanation + + +def _compare_eq_cls( + left: Any, right: Any, highlighter: _HighlightFunc, verbose: int +) -> list[str]: + if not has_default_eq(left): + return [] + if isdatacls(left): + import dataclasses + + all_fields = dataclasses.fields(left) + fields_to_check = [info.name for info in all_fields if info.compare] + elif isattrs(left): + all_fields = left.__attrs_attrs__ + fields_to_check = [field.name for field in all_fields if getattr(field, "eq")] + elif isnamedtuple(left): + fields_to_check = left._fields + else: + assert False + + indent = " " + same = [] + diff = [] + for field in fields_to_check: + if getattr(left, field) == getattr(right, field): + same.append(field) + else: + diff.append(field) + + explanation = [] + if same or diff: + explanation += [""] + if same and verbose < 2: + explanation.append(f"Omitting {len(same)} identical items, use -vv to show") + elif same: + explanation += ["Matching attributes:"] + explanation += highlighter(pprint.pformat(same)).splitlines() + if diff: + explanation += ["Differing attributes:"] + explanation += highlighter(pprint.pformat(diff)).splitlines() + for field in diff: + field_left = getattr(left, field) + field_right = getattr(right, field) + explanation += [ + "", + f"Drill down into differing attribute {field}:", + f"{indent}{field}: {highlighter(repr(field_left))} != {highlighter(repr(field_right))}", + ] + explanation += [ + indent + line + for line in _compare_eq_any( + field_left, field_right, highlighter, verbose + ) + ] + return explanation + + +def _notin_text(term: str, text: str, verbose: int = 0) -> list[str]: + index = text.find(term) + head = text[:index] + tail = text[index + len(term) :] + correct_text = head + tail + diff = _diff_text(text, correct_text, verbose) + newdiff = [f"{saferepr(term, maxsize=42)} is contained here:"] + for line in diff: + if line.startswith("Skipping"): + continue + if line.startswith("- "): + continue + if line.startswith("+ "): + newdiff.append(" " + line[2:]) + else: + newdiff.append(line) + return newdiff + + +def running_on_ci() -> bool: + """Check if we're currently running on a CI system.""" + env_vars = ["CI", "BUILD_NUMBER"] + return any(var in os.environ for var in env_vars) diff --git a/shared/package-files/e9/e95a2d29b30ce51d0628474a6e219711883ad5a515c01929f140a7269b9bfe1d/blob b/shared/package-files/e9/e95a2d29b30ce51d0628474a6e219711883ad5a515c01929f140a7269b9bfe1d/blob new file mode 100644 index 0000000000000000000000000000000000000000..4ad23ce0577d552682209502825545fe9cfd7ee2 --- /dev/null +++ b/shared/package-files/e9/e95a2d29b30ce51d0628474a6e219711883ad5a515c01929f140a7269b9bfe1d/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API at::Tensor alias(const at::Tensor & self); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/e9/e95b47c89085d0fe04987d0fa69a97719319de457be45b928ca82572fb9e67d3/blob b/shared/package-files/e9/e95b47c89085d0fe04987d0fa69a97719319de457be45b928ca82572fb9e67d3/blob new file mode 100644 index 0000000000000000000000000000000000000000..ac5938a54749ae566f430d673a80cc9a8aee7d91 --- /dev/null +++ b/shared/package-files/e9/e95b47c89085d0fe04987d0fa69a97719319de457be45b928ca82572fb9e67d3/blob @@ -0,0 +1,3 @@ +from django.core.handlers.wsgi import WSGIHandler + +def get_wsgi_application() -> WSGIHandler: ... diff --git a/shared/package-files/e9/e95bcf333dd32ece6ebaf848ca36def83aefeced8d9af92bb1ec418d0d987199/blob b/shared/package-files/e9/e95bcf333dd32ece6ebaf848ca36def83aefeced8d9af92bb1ec418d0d987199/blob new file mode 100644 index 0000000000000000000000000000000000000000..ac27c6f30644706bc1f8bb052062ad45bf665e7d --- /dev/null +++ b/shared/package-files/e9/e95bcf333dd32ece6ebaf848ca36def83aefeced8d9af92bb1ec418d0d987199/blob @@ -0,0 +1,19 @@ +@REM Copyright (C) 2012 Anaconda, Inc +@REM SPDX-License-Identifier: BSD-3-Clause +@REM The file name is conda_hook.bat rather than conda-hook.bat because conda will see +@REM the latter as a 'conda hook' command. + +@IF DEFINED CONDA_SHLVL GOTO :EOF + +@FOR %%F in ("%~dp0") do @SET "__condabin_dir=%%~dpF" +@SET "__condabin_dir=%__condabin_dir:~0,-1%" +@SET "PATH=%__condabin_dir%;%PATH%" +@SET "CONDA_BAT=%__condabin_dir%\conda.bat" +@FOR %%F in ("%__condabin_dir%") do @SET "__conda_root=%%~dpF" +@SET "CONDA_EXE=%__conda_root%Scripts\conda.exe" +@SET __condabin_dir= +@SET __conda_root= + +@DOSKEY conda="%CONDA_BAT%" $* + +@SET CONDA_SHLVL=0 diff --git a/shared/package-files/e9/e95f7efe9d314616af8a336c19d078a313c75208ce5198ddd94d34fb775dd1f0/blob b/shared/package-files/e9/e95f7efe9d314616af8a336c19d078a313c75208ce5198ddd94d34fb775dd1f0/blob new file mode 100644 index 0000000000000000000000000000000000000000..28024aa2338d1f46ce280abeb92a633f89be1385 --- /dev/null +++ b/shared/package-files/e9/e95f7efe9d314616af8a336c19d078a313c75208ce5198ddd94d34fb775dd1f0/blob @@ -0,0 +1,46 @@ +#pragma once + +#include + +#ifdef __cplusplus + +void libshm_init(const char* manager_exec_path); + +// Superclass to run a constructor before at::RefcountedMapAllocator +class THManagedMapAllocatorInit { + protected: + THManagedMapAllocatorInit(const char* manager_handle, const char* filename); + std::string manager_handle_; +}; + +// Like a at::RefcountedMapAllocator, but it also makes use of an external +// shared memory manager process to ensure that shared memory regions actually +// get freed in the end (even if processes lose the memory). +class THManagedMapAllocator : private THManagedMapAllocatorInit, + public at::RefcountedMapAllocator { + public: + THManagedMapAllocator( + const char* manager_handle, + const char* filename, + int flags, + size_t size); + + void close() override; + + ~THManagedMapAllocator() override { + close(); + } + + static at::DataPtr makeDataPtr( + const char* manager_handle, + const char* filename, + int flags, + size_t size); + static THManagedMapAllocator* fromDataPtr(const at::DataPtr&); + + const char* manager_handle() const { + return manager_handle_.c_str(); + } +}; + +#endif diff --git a/shared/package-files/e9/e96142b5e00dfec2617b0c22d7192b340ae2c28ec3ffc3a894c5be746b970a59/blob b/shared/package-files/e9/e96142b5e00dfec2617b0c22d7192b340ae2c28ec3ffc3a894c5be746b970a59/blob new file mode 100644 index 0000000000000000000000000000000000000000..eeb088c224a01f55aacecc6ffec3b9fea8470b0f Binary files /dev/null and b/shared/package-files/e9/e96142b5e00dfec2617b0c22d7192b340ae2c28ec3ffc3a894c5be746b970a59/blob differ diff --git a/shared/package-files/e9/e961b6ff17b5e2f37f851f950c40ccbfc2e79e8fcd0032c0c367b658c614056e/blob b/shared/package-files/e9/e961b6ff17b5e2f37f851f950c40ccbfc2e79e8fcd0032c0c367b658c614056e/blob new file mode 100644 index 0000000000000000000000000000000000000000..fed869c9ae26469b03b48ca9d9de260312501c1d --- /dev/null +++ b/shared/package-files/e9/e961b6ff17b5e2f37f851f950c40ccbfc2e79e8fcd0032c0c367b658c614056e/blob @@ -0,0 +1,281 @@ +import logging +import multiprocessing +import multiprocessing.connection +import os +import pickle +import signal +import sys +import tempfile +import time +import warnings +from typing import Optional + +from . import _prctl_pr_set_pdeathsig # type: ignore[attr-defined] + +log = logging.getLogger(__name__) + + +class ProcessException(Exception): + __slots__ = ["error_index", "error_pid"] + + def __init__(self, msg: str, error_index: int, pid: int): + super().__init__(msg) + self.msg = msg + self.error_index = error_index + self.pid = pid + + def __reduce__(self): + return type(self), (self.msg, self.error_index, self.pid) + + +class ProcessRaisedException(ProcessException): + """Exception raised when a process failed due to an exception raised by the code.""" + + def __init__( + self, + msg: str, + error_index: int, + error_pid: int, + ): + super().__init__(msg, error_index, error_pid) + + +class ProcessExitedException(ProcessException): + """Exception raised when a process failed due to signal or exited with a specific code.""" + + __slots__ = ["exit_code"] + + def __init__( + self, + msg: str, + error_index: int, + error_pid: int, + exit_code: int, + signal_name: Optional[str] = None, + ): + super().__init__(msg, error_index, error_pid) + self.exit_code = exit_code + self.signal_name = signal_name + + def __reduce__(self): + return ( + type(self), + (self.msg, self.error_index, self.pid, self.exit_code, self.signal_name), + ) + + +def _wrap(fn, i, args, error_file): + # prctl(2) is a Linux specific system call. + # On other systems the following function call has no effect. + # This is set to ensure that non-daemonic child processes can + # terminate if their parent terminates before they do. + _prctl_pr_set_pdeathsig(signal.SIGINT) + + try: + fn(i, *args) + except KeyboardInterrupt: + pass # SIGINT; Killed by parent, do nothing + except Exception: + # Propagate exception to parent process, keeping original traceback + import traceback + + with open(error_file, "wb") as fh: + pickle.dump(traceback.format_exc(), fh) + sys.exit(1) + + +class ProcessContext: + def __init__(self, processes, error_files): + self.error_files = error_files + self.processes = processes + self.sentinels = { + process.sentinel: index for index, process in enumerate(processes) + } + + def pids(self): + return [int(process.pid) for process in self.processes] + + def join(self, timeout=None): + r"""Join one or more processes within spawn context. + + Attempt to join one or more processes in this spawn context. + If one of them exited with a non-zero exit status, this function + kills the remaining processes and raises an exception with the cause + of the first process exiting. + + Returns ``True`` if all processes have been joined successfully, + ``False`` if there are more processes that need to be joined. + + Args: + timeout (float): Wait this long before giving up on waiting. + """ + # Ensure this function can be called even when we're done. + if len(self.sentinels) == 0: + return True + + # Wait for any process to fail or all of them to succeed. + ready = multiprocessing.connection.wait( + self.sentinels.keys(), + timeout=timeout, + ) + + error_index = None + for sentinel in ready: + index = self.sentinels.pop(sentinel) + process = self.processes[index] + process.join() + if process.exitcode != 0: + error_index = index + break + + # Return if there was no error. + if error_index is None: + # Return whether or not all processes have been joined. + return len(self.sentinels) == 0 + + # Assume failure. Terminate processes that are still alive. + # Try SIGTERM then SIGKILL if the process isn't going down. + # The reason is related to python signal handling is limited + # to main thread and if that is in c/c++ land and stuck it won't + # to handle it. We have seen processes getting stuck not handling + # SIGTERM for the above reason. + timeout: int = 30 + for process in self.processes: + if process.is_alive(): + log.warning("Terminating process %s via signal SIGTERM", process.pid) + process.terminate() + end = time.monotonic() + timeout + for process in self.processes: + time_to_wait = max(0, end - time.monotonic()) + process.join(time_to_wait) + for process in self.processes: + if process.is_alive(): + log.warning( + "Unable to shutdown process %s via SIGTERM , forcefully exiting via SIGKILL", + process.pid, + ) + process.kill() + process.join() + + # The file will only be created if the process crashed. + failed_process = self.processes[error_index] + if not os.access(self.error_files[error_index], os.R_OK): + exitcode = self.processes[error_index].exitcode + if exitcode < 0: + try: + name = signal.Signals(-exitcode).name + except ValueError: + name = f"" + raise ProcessExitedException( + "process %d terminated with signal %s" % (error_index, name), + error_index=error_index, + error_pid=failed_process.pid, + exit_code=exitcode, + signal_name=name, + ) + else: + raise ProcessExitedException( + "process %d terminated with exit code %d" % (error_index, exitcode), + error_index=error_index, + error_pid=failed_process.pid, + exit_code=exitcode, + ) + + with open(self.error_files[error_index], "rb") as fh: + original_trace = pickle.load(fh) + msg = "\n\n-- Process %d terminated with the following error:\n" % error_index + msg += original_trace + raise ProcessRaisedException(msg, error_index, failed_process.pid) + + +class SpawnContext(ProcessContext): + def __init__(self, processes, error_files): + warnings.warn("SpawnContext is renamed to ProcessContext since 1.4 release.") + super().__init__(processes, error_files) + + +# Note: [start_processes] +# mp.start_processes handles both start_method='spawn' and 'fork'. It's supposed to be a +# more generalized API than mp.spawn. Currently we only document mp.spawn as it's the +# CUDA compatible start_method. However, in environments like Ipython notebooks, 'fork' +# works better than 'spawn'. Every helper function we created for mp.spawn is indeed +# general enough, and backends like XLA can reuse them in Colab notebooks as well. +# Currently we only add this API first, we can consider adding it to documentation as +# needed in the future. +def start_processes( + fn, args=(), nprocs=1, join=True, daemon=False, start_method="spawn" +): + mp = multiprocessing.get_context(start_method) + error_files = [] + processes = [] + for i in range(nprocs): + # Each process is assigned a file to write tracebacks to. We + # use the file being non-empty to indicate an exception + # occurred (vs an expected shutdown). Note: this previously + # used a multiprocessing.Queue but that can be prone to + # deadlocks, so we went with a simpler solution for a one-shot + # message between processes. + tf = tempfile.NamedTemporaryFile( + prefix="pytorch-errorfile-", suffix=".pickle", delete=False + ) + tf.close() + os.unlink(tf.name) + process = mp.Process( + target=_wrap, + args=(fn, i, args, tf.name), + daemon=daemon, + ) + process.start() + error_files.append(tf.name) + processes.append(process) + + context = ProcessContext(processes, error_files) + if not join: + return context + + # Loop on join until it returns True or raises an exception. + while not context.join(): + pass + + +def spawn(fn, args=(), nprocs=1, join=True, daemon=False, start_method="spawn"): + r"""Spawns ``nprocs`` processes that run ``fn`` with ``args``. + + If one of the processes exits with a non-zero exit status, the + remaining processes are killed and an exception is raised with the + cause of termination. In the case an exception was caught in the + child process, it is forwarded and its traceback is included in + the exception raised in the parent process. + + Args: + fn (function): Function is called as the entrypoint of the + spawned process. This function must be defined at the top + level of a module so it can be pickled and spawned. This + is a requirement imposed by multiprocessing. + + The function is called as ``fn(i, *args)``, where ``i`` is + the process index and ``args`` is the passed through tuple + of arguments. + + args (tuple): Arguments passed to ``fn``. + nprocs (int): Number of processes to spawn. + join (bool): Perform a blocking join on all processes. + daemon (bool): The spawned processes' daemon flag. If set to True, + daemonic processes will be created. + start_method (str): (deprecated) this method will always use ``spawn`` + as the start method. To use a different start method + use ``start_processes()``. + + Returns: + None if ``join`` is ``True``, + :class:`~ProcessContext` if ``join`` is ``False`` + + """ + if start_method != "spawn": + msg = ( + "This method only supports start_method=spawn (got: %s).\n" + "To use a different start_method use:\n\t\t" + " torch.multiprocessing.start_processes(...)" % start_method + ) + warnings.warn(msg) + return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") diff --git a/shared/package-files/e9/e961ee5c1f7bb243d2b283205f04653bb6c7c9d14b9e5f620df72d129644d2e1/blob b/shared/package-files/e9/e961ee5c1f7bb243d2b283205f04653bb6c7c9d14b9e5f620df72d129644d2e1/blob new file mode 100644 index 0000000000000000000000000000000000000000..ef30163f55c90850fe32ca600eb47547e4fa5e03 --- /dev/null +++ b/shared/package-files/e9/e961ee5c1f7bb243d2b283205f04653bb6c7c9d14b9e5f620df72d129644d2e1/blob @@ -0,0 +1,205 @@ +# Reference MPMATH implementation: +# +# import mpmath +# from mpmath import nsum +# +# def Wright_Series_MPMATH(a, b, z, dps=50, method='r+s+e', steps=[1000]): +# """Compute Wright' generalized Bessel function as Series. +# +# This uses mpmath for arbitrary precision. +# """ +# with mpmath.workdps(dps): +# res = nsum(lambda k: z**k/mpmath.fac(k) * mpmath.rgamma(a*k+b), +# [0, mpmath.inf], +# tol=dps, method=method, steps=steps +# ) +# +# return res + +from itertools import product + +import pytest +import numpy as np +from numpy.testing import assert_equal, assert_allclose + +import scipy.special as sc +from scipy.special import log_wright_bessel, loggamma, rgamma, wright_bessel + + +@pytest.mark.parametrize('a', [0, 1e-6, 0.1, 0.5, 1, 10]) +@pytest.mark.parametrize('b', [0, 1e-6, 0.1, 0.5, 1, 10]) +def test_wright_bessel_zero(a, b): + """Test at x = 0.""" + assert_equal(wright_bessel(a, b, 0.), rgamma(b)) + assert_allclose(log_wright_bessel(a, b, 0.), -loggamma(b)) + + +@pytest.mark.parametrize('b', [0, 1e-6, 0.1, 0.5, 1, 10]) +@pytest.mark.parametrize('x', [0, 1e-6, 0.1, 0.5, 1]) +def test_wright_bessel_iv(b, x): + """Test relation of wright_bessel and modified bessel function iv. + + iv(z) = (1/2*z)**v * Phi(1, v+1; 1/4*z**2). + See https://dlmf.nist.gov/10.46.E2 + """ + if x != 0: + v = b - 1 + wb = wright_bessel(1, v + 1, x**2 / 4.) + # Note: iv(v, x) has precision of less than 1e-12 for some cases + # e.g v=1-1e-6 and x=1e-06) + assert_allclose(np.power(x / 2., v) * wb, + sc.iv(v, x), + rtol=1e-11, atol=1e-11) + + +@pytest.mark.parametrize('a', [0, 1e-6, 0.1, 0.5, 1, 10]) +@pytest.mark.parametrize('b', [1, 1 + 1e-3, 2, 5, 10]) +@pytest.mark.parametrize('x', [0, 1e-6, 0.1, 0.5, 1, 5, 10, 100]) +def test_wright_functional(a, b, x): + """Test functional relation of wright_bessel. + + Phi(a, b-1, z) = a*z*Phi(a, b+a, z) + (b-1)*Phi(a, b, z) + + Note that d/dx Phi(a, b, x) = Phi(a, b-1, x) + See Eq. (22) of + B. Stankovic, On the Function of E. M. Wright, + Publ. de l' Institut Mathematique, Beograd, + Nouvelle S`er. 10 (1970), 113-124. + """ + assert_allclose(wright_bessel(a, b - 1, x), + a * x * wright_bessel(a, b + a, x) + + (b - 1) * wright_bessel(a, b, x), + rtol=1e-8, atol=1e-8) + + +# grid of rows [a, b, x, value, accuracy] that do not reach 1e-11 accuracy +# see output of: +# cd scipy/scipy/_precompute +# python wright_bessel_data.py +grid_a_b_x_value_acc = np.array([ + [0.1, 100.0, 709.7827128933841, 8.026353022981087e+34, 2e-8], + [0.5, 10.0, 709.7827128933841, 2.680788404494657e+48, 9e-8], + [0.5, 10.0, 1000.0, 2.005901980702872e+64, 1e-8], + [0.5, 100.0, 1000.0, 3.4112367580445246e-117, 6e-8], + [1.0, 20.0, 100000.0, 1.7717158630699857e+225, 3e-11], + [1.0, 100.0, 100000.0, 1.0269334596230763e+22, np.nan], + [1.0000000000000222, 20.0, 100000.0, 1.7717158630001672e+225, 3e-11], + [1.0000000000000222, 100.0, 100000.0, 1.0269334595866202e+22, np.nan], + [1.5, 0.0, 500.0, 15648961196.432373, 3e-11], + [1.5, 2.220446049250313e-14, 500.0, 15648961196.431465, 3e-11], + [1.5, 1e-10, 500.0, 15648961192.344728, 3e-11], + [1.5, 1e-05, 500.0, 15648552437.334162, 3e-11], + [1.5, 0.1, 500.0, 12049870581.10317, 2e-11], + [1.5, 20.0, 100000.0, 7.81930438331405e+43, 3e-9], + [1.5, 100.0, 100000.0, 9.653370857459075e-130, np.nan], + ]) + + +@pytest.mark.xfail +@pytest.mark.parametrize( + 'a, b, x, phi', + grid_a_b_x_value_acc[:, :4].tolist()) +def test_wright_data_grid_failures(a, b, x, phi): + """Test cases of test_data that do not reach relative accuracy of 1e-11""" + assert_allclose(wright_bessel(a, b, x), phi, rtol=1e-11) + + +@pytest.mark.parametrize( + 'a, b, x, phi, accuracy', + grid_a_b_x_value_acc.tolist()) +def test_wright_data_grid_less_accurate(a, b, x, phi, accuracy): + """Test cases of test_data that do not reach relative accuracy of 1e-11 + + Here we test for reduced accuracy or even nan. + """ + if np.isnan(accuracy): + assert np.isnan(wright_bessel(a, b, x)) + else: + assert_allclose(wright_bessel(a, b, x), phi, rtol=accuracy) + + +@pytest.mark.parametrize( + 'a, b, x', + list( + product([0, 0.1, 0.5, 1.5, 5, 10], [1, 2], [1e-3, 1, 1.5, 5, 10]) + ) +) +def test_log_wright_bessel_same_as_wright_bessel(a, b, x): + """Test that log_wright_bessel equals log of wright_bessel.""" + assert_allclose( + log_wright_bessel(a, b, x), + np.log(wright_bessel(a, b, x)), + rtol=1e-8, + ) + + +# Computed with, see also mp_wright_bessel from wright_bessel_data.py: +# +# from functools import lru_cache +# import mpmath as mp +# +# @lru_cache(maxsize=1_000_000) +# def rgamma_cached(x, dps): +# with mp.workdps(dps): +# return mp.rgamma(x) +# +# def mp_log_wright_bessel(a, b, x, dps=100, maxterms=10_000, method="d"): +# """Compute log of Wright's generalized Bessel function as Series with mpmath.""" +# with mp.workdps(dps): +# a, b, x = mp.mpf(a), mp.mpf(b), mp.mpf(x) +# res = mp.nsum(lambda k: x**k / mp.fac(k) +# * rgamma_cached(a * k + b, dps=dps), +# [0, mp.inf], +# tol=dps, method=method, steps=[maxterms] +# ) +# return mp.log(res) +# +# Sometimes, one needs to set maxterms as high as 1_00_000 to get accurate results for +# phi. +# At the end of the day, we can only hope that results are correct for very large x, +# e.g. by the asymptotic series, as there is no way to produce those in "exact" +# arithmetic. +# Note: accuracy = np.nan means log_wright_bessel returns nan. +@pytest.mark.parametrize( + 'a, b, x, phi, accuracy', + [ + (0, 0, 0, -np.inf, 1e-11), + (0, 0, 1, -np.inf, 1e-11), + (0, 1, 1.23, 1.23, 1e-11), + (0, 1, 1e50, 1e50, 1e-11), + (1e-5, 0, 700, 695.0421608273609, 1e-11), + (1e-5, 0, 1e3, 995.40052566540066, 1e-11), + (1e-5, 100, 1e3, 640.8197935670078, 1e-11), + (1e-3, 0, 1e4, 9987.2229532297262, 1e-11), + (1e-3, 0, 1e5, 99641.920687169507, 1e-11), + (1e-3, 0, 1e6, 994118.55560054416, 1e-11), # maxterms=1_000_000 + (1e-3, 10, 1e5, 99595.47710802537, 1e-11), + (1e-3, 50, 1e5, 99401.240922855647, 1e-3), + (1e-3, 100, 1e5, 99143.465191656527, np.nan), + (0.5, 0, 1e5, 4074.1112442197941, 1e-11), + (0.5, 0, 1e7, 87724.552120038896, 1e-11), + (0.5, 100, 1e5, 3350.3928746306163, np.nan), + (0.5, 100, 1e7, 86696.109975301719, 1e-11), + (1, 0, 1e5, 634.06765787997266, 1e-11), + (1, 0, 1e8, 20003.339639312035, 1e-11), + (1.5, 0, 1e5, 197.01777556071194, 1e-11), + (1.5, 0, 1e8, 3108.987414395706, 1e-11), + (1.5, 100, 1e8, 2354.8915946283275, np.nan), + (5, 0, 1e5, 9.8980480013203547, 1e-11), + (5, 0, 1e8, 33.642337258687465, 1e-11), + (5, 0, 1e12, 157.53704288117429, 1e-11), + (5, 100, 1e5, -359.13419630792148, 1e-11), + (5, 100, 1e12, -337.07722086995229, 1e-4), + (5, 100, 1e20, 2588.2471229986845, 2e-6), + (100, 0, 1e5, -347.62127990460517, 1e-11), + (100, 0, 1e20, -313.08250350969449, 1e-11), + (100, 100, 1e5, -359.1342053695754, 1e-11), + (100, 100, 1e20, -359.1342053695754, 1e-11), + ] +) +def test_log_wright_bessel(a, b, x, phi, accuracy): + """Test for log_wright_bessel, in particular for large x.""" + if np.isnan(accuracy): + assert np.isnan(log_wright_bessel(a, b, x)) + else: + assert_allclose(log_wright_bessel(a, b, x), phi, rtol=accuracy) diff --git a/shared/package-files/e9/e96501355a13b1e5637eb1df597b54d7581382645c767c003cb40e234cbfe54f/blob b/shared/package-files/e9/e96501355a13b1e5637eb1df597b54d7581382645c767c003cb40e234cbfe54f/blob new file mode 100644 index 0000000000000000000000000000000000000000..8041658599a6ed5b2cd70def1a92bffe0d851792 --- /dev/null +++ b/shared/package-files/e9/e96501355a13b1e5637eb1df597b54d7581382645c767c003cb40e234cbfe54f/blob @@ -0,0 +1,85 @@ +import numpy as np +from numpy.testing import assert_allclose, assert_equal + +from scipy.stats._tukeylambda_stats import (tukeylambda_variance, + tukeylambda_kurtosis) + + +def test_tukeylambda_stats_known_exact(): + """Compare results with some known exact formulas.""" + # Some exact values of the Tukey Lambda variance and kurtosis: + # lambda var kurtosis + # 0 pi**2/3 6/5 (logistic distribution) + # 0.5 4 - pi (5/3 - pi/2)/(pi/4 - 1)**2 - 3 + # 1 1/3 -6/5 (uniform distribution on (-1,1)) + # 2 1/12 -6/5 (uniform distribution on (-1/2, 1/2)) + + # lambda = 0 + var = tukeylambda_variance(0) + assert_allclose(var, np.pi**2 / 3, atol=1e-12) + kurt = tukeylambda_kurtosis(0) + assert_allclose(kurt, 1.2, atol=1e-10) + + # lambda = 0.5 + var = tukeylambda_variance(0.5) + assert_allclose(var, 4 - np.pi, atol=1e-12) + kurt = tukeylambda_kurtosis(0.5) + desired = (5./3 - np.pi/2) / (np.pi/4 - 1)**2 - 3 + assert_allclose(kurt, desired, atol=1e-10) + + # lambda = 1 + var = tukeylambda_variance(1) + assert_allclose(var, 1.0 / 3, atol=1e-12) + kurt = tukeylambda_kurtosis(1) + assert_allclose(kurt, -1.2, atol=1e-10) + + # lambda = 2 + var = tukeylambda_variance(2) + assert_allclose(var, 1.0 / 12, atol=1e-12) + kurt = tukeylambda_kurtosis(2) + assert_allclose(kurt, -1.2, atol=1e-10) + + +def test_tukeylambda_stats_mpmath(): + """Compare results with some values that were computed using mpmath.""" + a10 = dict(atol=1e-10, rtol=0) + a12 = dict(atol=1e-12, rtol=0) + data = [ + # lambda variance kurtosis + [-0.1, 4.78050217874253547, 3.78559520346454510], + [-0.0649, 4.16428023599895777, 2.52019675947435718], + [-0.05, 3.93672267890775277, 2.13129793057777277], + [-0.001, 3.30128380390964882, 1.21452460083542988], + [0.001, 3.27850775649572176, 1.18560634779287585], + [0.03125, 2.95927803254615800, 0.804487555161819980], + [0.05, 2.78281053405464501, 0.611604043886644327], + [0.0649, 2.65282386754100551, 0.476834119532774540], + [1.2, 0.242153920578588346, -1.23428047169049726], + [10.0, 0.00095237579757703597, 2.37810697355144933], + [20.0, 0.00012195121951131043, 7.37654321002709531], + ] + + for lam, var_expected, kurt_expected in data: + var = tukeylambda_variance(lam) + assert_allclose(var, var_expected, **a12) + kurt = tukeylambda_kurtosis(lam) + assert_allclose(kurt, kurt_expected, **a10) + + # Test with vector arguments (most of the other tests are for single + # values). + lam, var_expected, kurt_expected = zip(*data) + var = tukeylambda_variance(lam) + assert_allclose(var, var_expected, **a12) + kurt = tukeylambda_kurtosis(lam) + assert_allclose(kurt, kurt_expected, **a10) + + +def test_tukeylambda_stats_invalid(): + """Test values of lambda outside the domains of the functions.""" + lam = [-1.0, -0.5] + var = tukeylambda_variance(lam) + assert_equal(var, np.array([np.nan, np.inf])) + + lam = [-1.0, -0.25] + kurt = tukeylambda_kurtosis(lam) + assert_equal(kurt, np.array([np.nan, np.inf])) diff --git a/shared/package-files/e9/e965b4b0ef5f9434129d2022a90c806fe3e0c9c712da5d5e99a70bf509f21a5f/blob b/shared/package-files/e9/e965b4b0ef5f9434129d2022a90c806fe3e0c9c712da5d5e99a70bf509f21a5f/blob new file mode 100644 index 0000000000000000000000000000000000000000..dde85f9f8409d9eb7a5efe2ca61939102dd8f887 --- /dev/null +++ b/shared/package-files/e9/e965b4b0ef5f9434129d2022a90c806fe3e0c9c712da5d5e99a70bf509f21a5f/blob @@ -0,0 +1,348 @@ +import io + +import numpy as np +import pytest + +from pandas._config import using_string_dtype + +from pandas import ( + DataFrame, + date_range, + read_csv, + read_excel, + read_feather, + read_json, + read_parquet, + read_pickle, + read_stata, + read_table, +) +import pandas._testing as tm +from pandas.util import _test_decorators as td + +pytestmark = pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" +) + + +@pytest.fixture +def fsspectest(): + pytest.importorskip("fsspec") + from fsspec import register_implementation + from fsspec.implementations.memory import MemoryFileSystem + from fsspec.registry import _registry as registry + + class TestMemoryFS(MemoryFileSystem): + protocol = "testmem" + test = [None] + + def __init__(self, **kwargs) -> None: + self.test[0] = kwargs.pop("test", None) + super().__init__(**kwargs) + + register_implementation("testmem", TestMemoryFS, clobber=True) + yield TestMemoryFS() + registry.pop("testmem", None) + TestMemoryFS.test[0] = None + TestMemoryFS.store.clear() + + +@pytest.fixture +def df1(): + return DataFrame( + { + "int": [1, 3], + "float": [2.0, np.nan], + "str": ["t", "s"], + "dt": date_range("2018-06-18", periods=2), + } + ) + + +@pytest.fixture +def cleared_fs(): + fsspec = pytest.importorskip("fsspec") + + memfs = fsspec.filesystem("memory") + yield memfs + memfs.store.clear() + + +def test_read_csv(cleared_fs, df1): + text = str(df1.to_csv(index=False)).encode() + with cleared_fs.open("test/test.csv", "wb") as w: + w.write(text) + df2 = read_csv("memory://test/test.csv", parse_dates=["dt"]) + + tm.assert_frame_equal(df1, df2) + + +def test_reasonable_error(monkeypatch, cleared_fs): + from fsspec.registry import known_implementations + + with pytest.raises(ValueError, match="nosuchprotocol"): + read_csv("nosuchprotocol://test/test.csv") + err_msg = "test error message" + monkeypatch.setitem( + known_implementations, + "couldexist", + {"class": "unimportable.CouldExist", "err": err_msg}, + ) + with pytest.raises(ImportError, match=err_msg): + read_csv("couldexist://test/test.csv") + + +def test_to_csv(cleared_fs, df1): + df1.to_csv("memory://test/test.csv", index=True) + + df2 = read_csv("memory://test/test.csv", parse_dates=["dt"], index_col=0) + + tm.assert_frame_equal(df1, df2) + + +def test_to_excel(cleared_fs, df1): + pytest.importorskip("openpyxl") + ext = "xlsx" + path = f"memory://test/test.{ext}" + df1.to_excel(path, index=True) + + df2 = read_excel(path, parse_dates=["dt"], index_col=0) + + tm.assert_frame_equal(df1, df2) + + +@pytest.mark.parametrize("binary_mode", [False, True]) +def test_to_csv_fsspec_object(cleared_fs, binary_mode, df1): + fsspec = pytest.importorskip("fsspec") + + path = "memory://test/test.csv" + mode = "wb" if binary_mode else "w" + with fsspec.open(path, mode=mode).open() as fsspec_object: + df1.to_csv(fsspec_object, index=True) + assert not fsspec_object.closed + + mode = mode.replace("w", "r") + with fsspec.open(path, mode=mode) as fsspec_object: + df2 = read_csv( + fsspec_object, + parse_dates=["dt"], + index_col=0, + ) + assert not fsspec_object.closed + + tm.assert_frame_equal(df1, df2) + + +def test_csv_options(fsspectest): + df = DataFrame({"a": [0]}) + df.to_csv( + "testmem://test/test.csv", storage_options={"test": "csv_write"}, index=False + ) + assert fsspectest.test[0] == "csv_write" + read_csv("testmem://test/test.csv", storage_options={"test": "csv_read"}) + assert fsspectest.test[0] == "csv_read" + + +def test_read_table_options(fsspectest): + # GH #39167 + df = DataFrame({"a": [0]}) + df.to_csv( + "testmem://test/test.csv", storage_options={"test": "csv_write"}, index=False + ) + assert fsspectest.test[0] == "csv_write" + read_table("testmem://test/test.csv", storage_options={"test": "csv_read"}) + assert fsspectest.test[0] == "csv_read" + + +def test_excel_options(fsspectest): + pytest.importorskip("openpyxl") + extension = "xlsx" + + df = DataFrame({"a": [0]}) + + path = f"testmem://test/test.{extension}" + + df.to_excel(path, storage_options={"test": "write"}, index=False) + assert fsspectest.test[0] == "write" + read_excel(path, storage_options={"test": "read"}) + assert fsspectest.test[0] == "read" + + +def test_to_parquet_new_file(cleared_fs, df1): + """Regression test for writing to a not-yet-existent GCS Parquet file.""" + pytest.importorskip("fastparquet") + + df1.to_parquet( + "memory://test/test.csv", index=True, engine="fastparquet", compression=None + ) + + +def test_arrowparquet_options(fsspectest): + """Regression test for writing to a not-yet-existent GCS Parquet file.""" + pytest.importorskip("pyarrow") + df = DataFrame({"a": [0]}) + df.to_parquet( + "testmem://test/test.csv", + engine="pyarrow", + compression=None, + storage_options={"test": "parquet_write"}, + ) + assert fsspectest.test[0] == "parquet_write" + read_parquet( + "testmem://test/test.csv", + engine="pyarrow", + storage_options={"test": "parquet_read"}, + ) + assert fsspectest.test[0] == "parquet_read" + + +@td.skip_array_manager_not_yet_implemented # TODO(ArrayManager) fastparquet +def test_fastparquet_options(fsspectest): + """Regression test for writing to a not-yet-existent GCS Parquet file.""" + pytest.importorskip("fastparquet") + + df = DataFrame({"a": [0]}) + df.to_parquet( + "testmem://test/test.csv", + engine="fastparquet", + compression=None, + storage_options={"test": "parquet_write"}, + ) + assert fsspectest.test[0] == "parquet_write" + read_parquet( + "testmem://test/test.csv", + engine="fastparquet", + storage_options={"test": "parquet_read"}, + ) + assert fsspectest.test[0] == "parquet_read" + + +@pytest.mark.single_cpu +def test_from_s3_csv(s3_public_bucket_with_data, tips_file, s3so): + pytest.importorskip("s3fs") + tm.assert_equal( + read_csv( + f"s3://{s3_public_bucket_with_data.name}/tips.csv", storage_options=s3so + ), + read_csv(tips_file), + ) + # the following are decompressed by pandas, not fsspec + tm.assert_equal( + read_csv( + f"s3://{s3_public_bucket_with_data.name}/tips.csv.gz", storage_options=s3so + ), + read_csv(tips_file), + ) + tm.assert_equal( + read_csv( + f"s3://{s3_public_bucket_with_data.name}/tips.csv.bz2", storage_options=s3so + ), + read_csv(tips_file), + ) + + +@pytest.mark.single_cpu +@pytest.mark.parametrize("protocol", ["s3", "s3a", "s3n"]) +def test_s3_protocols(s3_public_bucket_with_data, tips_file, protocol, s3so): + pytest.importorskip("s3fs") + tm.assert_equal( + read_csv( + f"{protocol}://{s3_public_bucket_with_data.name}/tips.csv", + storage_options=s3so, + ), + read_csv(tips_file), + ) + + +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string) fastparquet") +@pytest.mark.single_cpu +@td.skip_array_manager_not_yet_implemented # TODO(ArrayManager) fastparquet +def test_s3_parquet(s3_public_bucket, s3so, df1): + pytest.importorskip("fastparquet") + pytest.importorskip("s3fs") + + fn = f"s3://{s3_public_bucket.name}/test.parquet" + df1.to_parquet( + fn, index=False, engine="fastparquet", compression=None, storage_options=s3so + ) + df2 = read_parquet(fn, engine="fastparquet", storage_options=s3so) + tm.assert_equal(df1, df2) + + +@td.skip_if_installed("fsspec") +def test_not_present_exception(): + msg = "Missing optional dependency 'fsspec'|fsspec library is required" + with pytest.raises(ImportError, match=msg): + read_csv("memory://test/test.csv") + + +def test_feather_options(fsspectest): + pytest.importorskip("pyarrow") + df = DataFrame({"a": [0]}) + df.to_feather("testmem://mockfile", storage_options={"test": "feather_write"}) + assert fsspectest.test[0] == "feather_write" + out = read_feather("testmem://mockfile", storage_options={"test": "feather_read"}) + assert fsspectest.test[0] == "feather_read" + tm.assert_frame_equal(df, out) + + +def test_pickle_options(fsspectest): + df = DataFrame({"a": [0]}) + df.to_pickle("testmem://mockfile", storage_options={"test": "pickle_write"}) + assert fsspectest.test[0] == "pickle_write" + out = read_pickle("testmem://mockfile", storage_options={"test": "pickle_read"}) + assert fsspectest.test[0] == "pickle_read" + tm.assert_frame_equal(df, out) + + +def test_json_options(fsspectest, compression): + df = DataFrame({"a": [0]}) + df.to_json( + "testmem://mockfile", + compression=compression, + storage_options={"test": "json_write"}, + ) + assert fsspectest.test[0] == "json_write" + out = read_json( + "testmem://mockfile", + compression=compression, + storage_options={"test": "json_read"}, + ) + assert fsspectest.test[0] == "json_read" + tm.assert_frame_equal(df, out) + + +def test_stata_options(fsspectest): + df = DataFrame({"a": [0]}) + df.to_stata( + "testmem://mockfile", storage_options={"test": "stata_write"}, write_index=False + ) + assert fsspectest.test[0] == "stata_write" + out = read_stata("testmem://mockfile", storage_options={"test": "stata_read"}) + assert fsspectest.test[0] == "stata_read" + tm.assert_frame_equal(df, out.astype("int64")) + + +def test_markdown_options(fsspectest): + pytest.importorskip("tabulate") + df = DataFrame({"a": [0]}) + df.to_markdown("testmem://mockfile", storage_options={"test": "md_write"}) + assert fsspectest.test[0] == "md_write" + assert fsspectest.cat("testmem://mockfile") + + +def test_non_fsspec_options(): + pytest.importorskip("pyarrow") + with pytest.raises(ValueError, match="storage_options"): + read_csv("localfile", storage_options={"a": True}) + with pytest.raises(ValueError, match="storage_options"): + # separate test for parquet, which has a different code path + read_parquet("localfile", storage_options={"a": True}) + by = io.BytesIO() + + with pytest.raises(ValueError, match="storage_options"): + read_csv(by, storage_options={"a": True}) + + df = DataFrame({"a": [0]}) + with pytest.raises(ValueError, match="storage_options"): + df.to_parquet("nonfsspecpath", storage_options={"a": True}) diff --git a/shared/package-files/e9/e96672d42ec6daf3694a8d7ae46640a111468b2f4e3202b280020460d6a543e6/blob b/shared/package-files/e9/e96672d42ec6daf3694a8d7ae46640a111468b2f4e3202b280020460d6a543e6/blob new file mode 100644 index 0000000000000000000000000000000000000000..4ceca037f589a3fdb60421cc5366dc208f9edf5a --- /dev/null +++ b/shared/package-files/e9/e96672d42ec6daf3694a8d7ae46640a111468b2f4e3202b280020460d6a543e6/blob @@ -0,0 +1,72 @@ +""" +Tests that work on both the Python and C engines but do not have a +specific classification into the other test modules. +""" +from io import StringIO + +import pytest + +from pandas import DataFrame +import pandas._testing as tm + +pytestmark = pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" +) + + +@pytest.mark.parametrize( + "data,thousands,decimal", + [ + ( + """A|B|C +1|2,334.01|5 +10|13|10. +""", + ",", + ".", + ), + ( + """A|B|C +1|2.334,01|5 +10|13|10, +""", + ".", + ",", + ), + ], +) +def test_1000_sep_with_decimal(all_parsers, data, thousands, decimal): + parser = all_parsers + expected = DataFrame({"A": [1, 10], "B": [2334.01, 13], "C": [5, 10.0]}) + + if parser.engine == "pyarrow": + msg = "The 'thousands' option is not supported with the 'pyarrow' engine" + with pytest.raises(ValueError, match=msg): + parser.read_csv( + StringIO(data), sep="|", thousands=thousands, decimal=decimal + ) + return + + result = parser.read_csv( + StringIO(data), sep="|", thousands=thousands, decimal=decimal + ) + tm.assert_frame_equal(result, expected) + + +def test_euro_decimal_format(all_parsers): + parser = all_parsers + data = """Id;Number1;Number2;Text1;Text2;Number3 +1;1521,1541;187101,9543;ABC;poi;4,738797819 +2;121,12;14897,76;DEF;uyt;0,377320872 +3;878,158;108013,434;GHI;rez;2,735694704""" + + result = parser.read_csv(StringIO(data), sep=";", decimal=",") + expected = DataFrame( + [ + [1, 1521.1541, 187101.9543, "ABC", "poi", 4.738797819], + [2, 121.12, 14897.76, "DEF", "uyt", 0.377320872], + [3, 878.158, 108013.434, "GHI", "rez", 2.735694704], + ], + columns=["Id", "Number1", "Number2", "Text1", "Text2", "Number3"], + ) + tm.assert_frame_equal(result, expected) diff --git a/shared/package-files/e9/e966b83c349ba13d6cac788650e47bf3f713bd2b5681cb77d5c1a42c5bc34f90/blob b/shared/package-files/e9/e966b83c349ba13d6cac788650e47bf3f713bd2b5681cb77d5c1a42c5bc34f90/blob new file mode 100644 index 0000000000000000000000000000000000000000..dafc35982c4d4869ead2136e74466f1c44c64556 --- /dev/null +++ b/shared/package-files/e9/e966b83c349ba13d6cac788650e47bf3f713bd2b5681cb77d5c1a42c5bc34f90/blob @@ -0,0 +1,249 @@ +# This file contains unit tests for iv_ratio() and related functions. + +import pytest +import numpy as np +from numpy.testing import assert_equal, assert_allclose +from scipy.special._ufuncs import ( # type: ignore[attr-defined] + _iv_ratio as iv_ratio, + _iv_ratio_c as iv_ratio_c, +) + + +class TestIvRatio: + + @pytest.mark.parametrize('v,x,r', [ + (0.5, 0.16666666666666666, 0.16514041292462933), + (0.5, 0.3333333333333333, 0.32151273753163434), + (0.5, 0.5, 0.46211715726000974), + (0.5, 0.6666666666666666, 0.5827829453479101), + (0.5, 0.8333333333333335, 0.6822617902381698), + (1, 0.3380952380952381, 0.1666773049170313), + (1, 0.7083333333333333, 0.33366443586989925), + (1, 1.1666666666666667, 0.5023355231537423), + (1, 1.8666666666666665, 0.674616572252164), + (1, 3.560606060606061, 0.844207659503163), + (2.34, 0.7975238095238094, 0.16704903081553285), + (2.34, 1.7133333333333334, 0.3360215931268845), + (2.34, 2.953333333333333, 0.50681909317803), + (2.34, 5.0826666666666656, 0.6755252698800679), + (2.34, 10.869696969696973, 0.8379351104498762), + (56.789, 19.46575238095238, 0.1667020505391409), + (56.789, 42.55008333333333, 0.33353809996933026), + (56.789, 75.552, 0.5003932381177826), + (56.789, 135.76026666666667, 0.6670528221946127), + (56.789, 307.8642424242425, 0.8334999441460798), + ]) + def test_against_reference_values(self, v, x, r): + """The reference values are computed using mpmath as follows. + + from mpmath import mp + mp.dps = 100 + + def iv_ratio_mp(v, x): + return mp.besseli(v, x) / mp.besseli(v - 1, x) + + def _sample(n, *, v): + '''Return n positive real numbers x such that iv_ratio(v, x) are + roughly evenly spaced over (0, 1). The formula is taken from [1]. + + [1] Banerjee A., Dhillon, I. S., Ghosh, J., Sra, S. (2005). + "Clustering on the Unit Hypersphere using von Mises-Fisher + Distributions." Journal of Machine Learning Research, + 6(46):1345-1382. + ''' + r = np.arange(1, n+1) / (n+1) + return r * (2*v-r*r) / (1-r*r) + + for v in (0.5, 1, 2.34, 56.789): + xs = _sample(5, v=v) + for x in xs: + print(f"({v}, {x}, {float(iv_ratio_mp(v,x))}),") + """ + assert_allclose(iv_ratio(v, x), r, rtol=4e-16, atol=0) + + @pytest.mark.parametrize('v,x,r', [ + (1, np.inf, 1), + (np.inf, 1, 0), + ]) + def test_inf(self, v, x, r): + """If exactly one of v or x is inf and the other is within domain, + should return 0 or 1 accordingly.""" + assert_equal(iv_ratio(v, x), r) + + @pytest.mark.parametrize('v', [0.49, -np.inf, np.nan, np.inf]) + @pytest.mark.parametrize('x', [-np.finfo(float).smallest_normal, + -np.finfo(float).smallest_subnormal, + -np.inf, np.nan, np.inf]) + def test_nan(self, v, x): + """If at least one argument is out of domain, or if v = x = inf, + the function should return nan.""" + assert_equal(iv_ratio(v, x), np.nan) + + @pytest.mark.parametrize('v', [0.5, 1, np.finfo(float).max, np.inf]) + def test_zero_x(self, v): + """If x is +/-0.0, return x to ensure iv_ratio is an odd function.""" + assert_equal(iv_ratio(v, 0.0), 0.0) + assert_equal(iv_ratio(v, -0.0), -0.0) + + @pytest.mark.parametrize('v,x', [ + (1, np.finfo(float).smallest_normal), + (1, np.finfo(float).smallest_subnormal), + (1, np.finfo(float).smallest_subnormal*2), + (1e20, 123), + (np.finfo(float).max, 1), + (np.finfo(float).max, np.sqrt(np.finfo(float).max)), + ]) + def test_tiny_x(self, v, x): + """If x is much less than v, the bounds + + x x + --------------------------- <= R <= ----------------------- + v-0.5+sqrt(x**2+(v+0.5)**2) v-1+sqrt(x**2+(v+1)**2) + + collapses to R ~= x/2v. Test against this asymptotic expression. + """ + assert_equal(iv_ratio(v, x), (0.5*x)/v) + + @pytest.mark.parametrize('v,x', [ + (1, 1e16), + (1e20, 1e40), + (np.sqrt(np.finfo(float).max), np.finfo(float).max), + ]) + def test_huge_x(self, v, x): + """If x is much greater than v, the bounds + + x x + --------------------------- <= R <= --------------------------- + v-0.5+sqrt(x**2+(v+0.5)**2) v-0.5+sqrt(x**2+(v-0.5)**2) + + collapses to R ~= 1. Test against this asymptotic expression. + """ + assert_equal(iv_ratio(v, x), 1.0) + + @pytest.mark.parametrize('v,x', [ + (np.finfo(float).max, np.finfo(float).max), + (np.finfo(float).max / 3, np.finfo(float).max), + (np.finfo(float).max, np.finfo(float).max / 3), + ]) + def test_huge_v_x(self, v, x): + """If both x and v are very large, the bounds + + x x + --------------------------- <= R <= ----------------------- + v-0.5+sqrt(x**2+(v+0.5)**2) v-1+sqrt(x**2+(v+1)**2) + + collapses to R ~= x/(v+sqrt(x**2+v**2). Test against this asymptotic + expression, and in particular that no numerical overflow occurs during + intermediate calculations. + """ + t = x / v + expected = t / (1 + np.hypot(1, t)) + assert_allclose(iv_ratio(v, x), expected, rtol=4e-16, atol=0) + + +class TestIvRatioC: + + @pytest.mark.parametrize('v,x,r', [ + (0.5, 0.16666666666666666, 0.8348595870753707), + (0.5, 0.3333333333333333, 0.6784872624683657), + (0.5, 0.5, 0.5378828427399902), + (0.5, 0.6666666666666666, 0.4172170546520899), + (0.5, 0.8333333333333335, 0.3177382097618302), + (1, 0.3380952380952381, 0.8333226950829686), + (1, 0.7083333333333333, 0.6663355641301008), + (1, 1.1666666666666667, 0.4976644768462577), + (1, 1.8666666666666665, 0.325383427747836), + (1, 3.560606060606061, 0.155792340496837), + (2.34, 0.7975238095238094, 0.8329509691844672), + (2.34, 1.7133333333333334, 0.6639784068731155), + (2.34, 2.953333333333333, 0.49318090682197), + (2.34, 5.0826666666666656, 0.3244747301199321), + (2.34, 10.869696969696973, 0.16206488955012377), + (56.789, 19.46575238095238, 0.8332979494608591), + (56.789, 42.55008333333333, 0.6664619000306697), + (56.789, 75.552, 0.4996067618822174), + (56.789, 135.76026666666667, 0.3329471778053873), + (56.789, 307.8642424242425, 0.16650005585392025), + ]) + def test_against_reference_values(self, v, x, r): + """The reference values are one minus those of TestIvRatio.""" + assert_allclose(iv_ratio_c(v, x), r, rtol=1e-15, atol=0) + + @pytest.mark.parametrize('v,x,r', [ + (1, np.inf, 0), + (np.inf, 1, 1), + ]) + def test_inf(self, v, x, r): + """If exactly one of v or x is inf and the other is within domain, + should return 0 or 1 accordingly.""" + assert_equal(iv_ratio_c(v, x), r) + + @pytest.mark.parametrize('v', [0.49, -np.inf, np.nan, np.inf]) + @pytest.mark.parametrize('x', [-np.finfo(float).smallest_normal, + -np.finfo(float).smallest_subnormal, + -np.inf, np.nan, np.inf]) + def test_nan(self, v, x): + """If at least one argument is out of domain, or if v = x = inf, + the function should return nan.""" + assert_equal(iv_ratio_c(v, x), np.nan) + + @pytest.mark.parametrize('v', [0.5, 1, np.finfo(float).max, np.inf]) + def test_zero_x(self, v): + """If x is +/-0.0, return 1.""" + assert_equal(iv_ratio_c(v, 0.0), 1.0) + assert_equal(iv_ratio_c(v, -0.0), 1.0) + + @pytest.mark.parametrize('v,x', [ + (1, np.finfo(float).smallest_normal), + (1, np.finfo(float).smallest_subnormal), + (1, np.finfo(float).smallest_subnormal*2), + (1e20, 123), + (np.finfo(float).max, 1), + (np.finfo(float).max, np.sqrt(np.finfo(float).max)), + ]) + def test_tiny_x(self, v, x): + """If x is much less than v, the bounds + + x x + --------------------------- <= R <= ----------------------- + v-0.5+sqrt(x**2+(v+0.5)**2) v-1+sqrt(x**2+(v+1)**2) + + collapses to 1-R ~= 1-x/2v. Test against this asymptotic expression. + """ + assert_equal(iv_ratio_c(v, x), 1.0-(0.5*x)/v) + + @pytest.mark.parametrize('v,x', [ + (1, 1e16), + (1e20, 1e40), + (np.sqrt(np.finfo(float).max), np.finfo(float).max), + ]) + def test_huge_x(self, v, x): + """If x is much greater than v, the bounds + + x x + --------------------------- <= R <= --------------------------- + v-0.5+sqrt(x**2+(v+0.5)**2) v-0.5+sqrt(x**2+(v-0.5)**2) + + collapses to 1-R ~= (v-0.5)/x. Test against this asymptotic expression. + """ + assert_allclose(iv_ratio_c(v, x), (v-0.5)/x, rtol=1e-15, atol=0) + + @pytest.mark.parametrize('v,x', [ + (np.finfo(float).max, np.finfo(float).max), + (np.finfo(float).max / 3, np.finfo(float).max), + (np.finfo(float).max, np.finfo(float).max / 3), + ]) + def test_huge_v_x(self, v, x): + """If both x and v are very large, the bounds + + x x + --------------------------- <= R <= ----------------------- + v-0.5+sqrt(x**2+(v+0.5)**2) v-1+sqrt(x**2+(v+1)**2) + + collapses to 1 - R ~= 1 - x/(v+sqrt(x**2+v**2). Test against this + asymptotic expression, and in particular that no numerical overflow + occurs during intermediate calculations. + """ + t = x / v + expected = 1 - t / (1 + np.hypot(1, t)) + assert_allclose(iv_ratio_c(v, x), expected, rtol=4e-16, atol=0) diff --git a/shared/package-files/e9/e96f1aaed6d7021a7b96893c2c3871dbc439f8c92ea64c949a67354535c00a74/blob b/shared/package-files/e9/e96f1aaed6d7021a7b96893c2c3871dbc439f8c92ea64c949a67354535c00a74/blob new file mode 100644 index 0000000000000000000000000000000000000000..fe4f0fad208c7678b1461c2fba71d599ba65e2bb --- /dev/null +++ b/shared/package-files/e9/e96f1aaed6d7021a7b96893c2c3871dbc439f8c92ea64c949a67354535c00a74/blob @@ -0,0 +1,242 @@ +import os +import os.path +from pathlib import Path +from typing import Any, Callable, List, Optional, Tuple, Union + +from PIL import Image + +from .utils import download_and_extract_archive, verify_str_arg +from .vision import VisionDataset + + +class Caltech101(VisionDataset): + """`Caltech 101 `_ Dataset. + + .. warning:: + + This class needs `scipy `_ to load target files from `.mat` format. + + Args: + root (str or ``pathlib.Path``): Root directory of dataset where directory + ``caltech101`` exists or will be saved to if download is set to True. + target_type (string or list, optional): Type of target to use, ``category`` or + ``annotation``. Can also be a list to output a tuple with all specified + target types. ``category`` represents the target class, and + ``annotation`` is a list of points from a hand-generated outline. + Defaults to ``category``. + transform (callable, optional): A function/transform that takes in a PIL image + and returns a transformed version. E.g, ``transforms.RandomCrop`` + target_transform (callable, optional): A function/transform that takes in the + target and transforms it. + download (bool, optional): If true, downloads the dataset from the internet and + puts it in root directory. If dataset is already downloaded, it is not + downloaded again. + + .. warning:: + + To download the dataset `gdown `_ is required. + """ + + def __init__( + self, + root: Union[str, Path], + target_type: Union[List[str], str] = "category", + transform: Optional[Callable] = None, + target_transform: Optional[Callable] = None, + download: bool = False, + ) -> None: + super().__init__(os.path.join(root, "caltech101"), transform=transform, target_transform=target_transform) + os.makedirs(self.root, exist_ok=True) + if isinstance(target_type, str): + target_type = [target_type] + self.target_type = [verify_str_arg(t, "target_type", ("category", "annotation")) for t in target_type] + + if download: + self.download() + + if not self._check_integrity(): + raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it") + + self.categories = sorted(os.listdir(os.path.join(self.root, "101_ObjectCategories"))) + self.categories.remove("BACKGROUND_Google") # this is not a real class + + # For some reason, the category names in "101_ObjectCategories" and + # "Annotations" do not always match. This is a manual map between the + # two. Defaults to using same name, since most names are fine. + name_map = { + "Faces": "Faces_2", + "Faces_easy": "Faces_3", + "Motorbikes": "Motorbikes_16", + "airplanes": "Airplanes_Side_2", + } + self.annotation_categories = list(map(lambda x: name_map[x] if x in name_map else x, self.categories)) + + self.index: List[int] = [] + self.y = [] + for (i, c) in enumerate(self.categories): + n = len(os.listdir(os.path.join(self.root, "101_ObjectCategories", c))) + self.index.extend(range(1, n + 1)) + self.y.extend(n * [i]) + + def __getitem__(self, index: int) -> Tuple[Any, Any]: + """ + Args: + index (int): Index + + Returns: + tuple: (image, target) where the type of target specified by target_type. + """ + import scipy.io + + img = Image.open( + os.path.join( + self.root, + "101_ObjectCategories", + self.categories[self.y[index]], + f"image_{self.index[index]:04d}.jpg", + ) + ) + + target: Any = [] + for t in self.target_type: + if t == "category": + target.append(self.y[index]) + elif t == "annotation": + data = scipy.io.loadmat( + os.path.join( + self.root, + "Annotations", + self.annotation_categories[self.y[index]], + f"annotation_{self.index[index]:04d}.mat", + ) + ) + target.append(data["obj_contour"]) + target = tuple(target) if len(target) > 1 else target[0] + + if self.transform is not None: + img = self.transform(img) + + if self.target_transform is not None: + target = self.target_transform(target) + + return img, target + + def _check_integrity(self) -> bool: + # can be more robust and check hash of files + return os.path.exists(os.path.join(self.root, "101_ObjectCategories")) + + def __len__(self) -> int: + return len(self.index) + + def download(self) -> None: + if self._check_integrity(): + print("Files already downloaded and verified") + return + + download_and_extract_archive( + "https://drive.google.com/file/d/137RyRjvTBkBiIfeYBNZBtViDHQ6_Ewsp", + self.root, + filename="101_ObjectCategories.tar.gz", + md5="b224c7392d521a49829488ab0f1120d9", + ) + download_and_extract_archive( + "https://drive.google.com/file/d/175kQy3UsZ0wUEHZjqkUDdNVssr7bgh_m", + self.root, + filename="Annotations.tar", + md5="6f83eeb1f24d99cab4eb377263132c91", + ) + + def extra_repr(self) -> str: + return "Target type: {target_type}".format(**self.__dict__) + + +class Caltech256(VisionDataset): + """`Caltech 256 `_ Dataset. + + Args: + root (str or ``pathlib.Path``): Root directory of dataset where directory + ``caltech256`` exists or will be saved to if download is set to True. + transform (callable, optional): A function/transform that takes in a PIL image + and returns a transformed version. E.g, ``transforms.RandomCrop`` + target_transform (callable, optional): A function/transform that takes in the + target and transforms it. + download (bool, optional): If true, downloads the dataset from the internet and + puts it in root directory. If dataset is already downloaded, it is not + downloaded again. + """ + + def __init__( + self, + root: str, + transform: Optional[Callable] = None, + target_transform: Optional[Callable] = None, + download: bool = False, + ) -> None: + super().__init__(os.path.join(root, "caltech256"), transform=transform, target_transform=target_transform) + os.makedirs(self.root, exist_ok=True) + + if download: + self.download() + + if not self._check_integrity(): + raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it") + + self.categories = sorted(os.listdir(os.path.join(self.root, "256_ObjectCategories"))) + self.index: List[int] = [] + self.y = [] + for (i, c) in enumerate(self.categories): + n = len( + [ + item + for item in os.listdir(os.path.join(self.root, "256_ObjectCategories", c)) + if item.endswith(".jpg") + ] + ) + self.index.extend(range(1, n + 1)) + self.y.extend(n * [i]) + + def __getitem__(self, index: int) -> Tuple[Any, Any]: + """ + Args: + index (int): Index + + Returns: + tuple: (image, target) where target is index of the target class. + """ + img = Image.open( + os.path.join( + self.root, + "256_ObjectCategories", + self.categories[self.y[index]], + f"{self.y[index] + 1:03d}_{self.index[index]:04d}.jpg", + ) + ) + + target = self.y[index] + + if self.transform is not None: + img = self.transform(img) + + if self.target_transform is not None: + target = self.target_transform(target) + + return img, target + + def _check_integrity(self) -> bool: + # can be more robust and check hash of files + return os.path.exists(os.path.join(self.root, "256_ObjectCategories")) + + def __len__(self) -> int: + return len(self.index) + + def download(self) -> None: + if self._check_integrity(): + print("Files already downloaded and verified") + return + + download_and_extract_archive( + "https://drive.google.com/file/d/1r6o0pSROcV1_VwT4oSjA2FBUSCWGuxLK", + self.root, + filename="256_ObjectCategories.tar", + md5="67b4f42ca05d46448c6bb8ecd2220f6d", + ) diff --git a/shared/package-files/e9/e96f40735f6c05764cc641e2c52965d89265634943d49863d4aded9053f31c62/blob b/shared/package-files/e9/e96f40735f6c05764cc641e2c52965d89265634943d49863d4aded9053f31c62/blob new file mode 100644 index 0000000000000000000000000000000000000000..14c6e58de31ff0c660b4f56ba918ff2044091315 --- /dev/null +++ b/shared/package-files/e9/e96f40735f6c05764cc641e2c52965d89265634943d49863d4aded9053f31c62/blob @@ -0,0 +1,10 @@ +prefix=/opt/conda +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include +vendor=MIT + +Name: krb5-gssapi +Description: Kerberos implementation of the GSSAPI +Version: 1.20.1 +Requires: mit-krb5-gssapi diff --git a/shared/package-files/e9/e96f4e90fe20e53677bc954c52d1e7a1197928d82087da05d34b0af6372aa893/blob b/shared/package-files/e9/e96f4e90fe20e53677bc954c52d1e7a1197928d82087da05d34b0af6372aa893/blob new file mode 100644 index 0000000000000000000000000000000000000000..8d4477452a200edb881ae3573ff63db6c9f67e65 --- /dev/null +++ b/shared/package-files/e9/e96f4e90fe20e53677bc954c52d1e7a1197928d82087da05d34b0af6372aa893/blob @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 + +# Copyright (c) Facebook, Inc. and its affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. +from typing import Dict, Tuple + +from torch.distributed.elastic.multiprocessing.subprocess_handler.subprocess_handler import ( + SubprocessHandler, +) + +__all__ = ["get_subprocess_handler"] + + +def get_subprocess_handler( + entrypoint: str, + args: Tuple, + env: Dict[str, str], + stdout: str, + stderr: str, + local_rank_id: int, +): + return SubprocessHandler( + entrypoint=entrypoint, + args=args, + env=env, + stdout=stdout, + stderr=stderr, + local_rank_id=local_rank_id, + ) diff --git a/shared/package-files/e9/e97069fab820f211114ded9cf9b4ca6a160f9640e7dac44e06eaa8f7001db4f1/blob b/shared/package-files/e9/e97069fab820f211114ded9cf9b4ca6a160f9640e7dac44e06eaa8f7001db4f1/blob new file mode 100644 index 0000000000000000000000000000000000000000..cda1c1d225ae261ae433579e56d94a84ae2acd38 Binary files /dev/null and b/shared/package-files/e9/e97069fab820f211114ded9cf9b4ca6a160f9640e7dac44e06eaa8f7001db4f1/blob differ diff --git a/shared/package-files/e9/e974b3d0b4db1514fe9344a59cf858b69ceb97128768bfc265b3f20e185f4f91/blob b/shared/package-files/e9/e974b3d0b4db1514fe9344a59cf858b69ceb97128768bfc265b3f20e185f4f91/blob new file mode 100644 index 0000000000000000000000000000000000000000..c0c46b456d0a1b545b29e0b8b81b39dafb6b0610 --- /dev/null +++ b/shared/package-files/e9/e974b3d0b4db1514fe9344a59cf858b69ceb97128768bfc265b3f20e185f4f91/blob @@ -0,0 +1,108 @@ +import pytest + +from scipy.special._testutils import MissingModule, check_version +from scipy.special._mptestutils import ( + Arg, IntArg, mp_assert_allclose, assert_mpmath_equal) +from scipy.special._precompute.gammainc_asy import ( + compute_g, compute_alpha, compute_d) +from scipy.special._precompute.gammainc_data import gammainc, gammaincc + +try: + import sympy +except ImportError: + sympy = MissingModule('sympy') + +try: + import mpmath as mp +except ImportError: + mp = MissingModule('mpmath') + + +@check_version(mp, '0.19') +def test_g(): + # Test data for the g_k. See DLMF 5.11.4. + with mp.workdps(30): + g = [mp.mpf(1), mp.mpf(1)/12, mp.mpf(1)/288, + -mp.mpf(139)/51840, -mp.mpf(571)/2488320, + mp.mpf(163879)/209018880, mp.mpf(5246819)/75246796800] + mp_assert_allclose(compute_g(7), g) + + +@pytest.mark.slow +@check_version(mp, '0.19') +@check_version(sympy, '0.7') +@pytest.mark.xfail_on_32bit("rtol only 2e-11, see gh-6938") +def test_alpha(): + # Test data for the alpha_k. See DLMF 8.12.14. + with mp.workdps(30): + alpha = [mp.mpf(0), mp.mpf(1), mp.mpf(1)/3, mp.mpf(1)/36, + -mp.mpf(1)/270, mp.mpf(1)/4320, mp.mpf(1)/17010, + -mp.mpf(139)/5443200, mp.mpf(1)/204120] + mp_assert_allclose(compute_alpha(9), alpha) + + +@pytest.mark.xslow +@check_version(mp, '0.19') +@check_version(sympy, '0.7') +def test_d(): + # Compare the d_{k, n} to the results in appendix F of [1]. + # + # Sources + # ------- + # [1] DiDonato and Morris, Computation of the Incomplete Gamma + # Function Ratios and their Inverse, ACM Transactions on + # Mathematical Software, 1986. + + with mp.workdps(50): + dataset = [(0, 0, -mp.mpf('0.333333333333333333333333333333')), + (0, 12, mp.mpf('0.102618097842403080425739573227e-7')), + (1, 0, -mp.mpf('0.185185185185185185185185185185e-2')), + (1, 12, mp.mpf('0.119516285997781473243076536700e-7')), + (2, 0, mp.mpf('0.413359788359788359788359788360e-2')), + (2, 12, -mp.mpf('0.140925299108675210532930244154e-7')), + (3, 0, mp.mpf('0.649434156378600823045267489712e-3')), + (3, 12, -mp.mpf('0.191111684859736540606728140873e-7')), + (4, 0, -mp.mpf('0.861888290916711698604702719929e-3')), + (4, 12, mp.mpf('0.288658297427087836297341274604e-7')), + (5, 0, -mp.mpf('0.336798553366358150308767592718e-3')), + (5, 12, mp.mpf('0.482409670378941807563762631739e-7')), + (6, 0, mp.mpf('0.531307936463992223165748542978e-3')), + (6, 12, -mp.mpf('0.882860074633048352505085243179e-7')), + (7, 0, mp.mpf('0.344367606892377671254279625109e-3')), + (7, 12, -mp.mpf('0.175629733590604619378669693914e-6')), + (8, 0, -mp.mpf('0.652623918595309418922034919727e-3')), + (8, 12, mp.mpf('0.377358774161109793380344937299e-6')), + (9, 0, -mp.mpf('0.596761290192746250124390067179e-3')), + (9, 12, mp.mpf('0.870823417786464116761231237189e-6'))] + d = compute_d(10, 13) + res = [d[k][n] for k, n, std in dataset] + std = [x[2] for x in dataset] + mp_assert_allclose(res, std) + + +@check_version(mp, '0.19') +def test_gammainc(): + # Quick check that the gammainc in + # special._precompute.gammainc_data agrees with mpmath's + # gammainc. + assert_mpmath_equal(gammainc, + lambda a, x: mp.gammainc(a, b=x, regularized=True), + [Arg(0, 100, inclusive_a=False), Arg(0, 100)], + nan_ok=False, rtol=1e-17, n=50, dps=50) + + +@pytest.mark.xslow +@check_version(mp, '0.19') +def test_gammaincc(): + # Check that the gammaincc in special._precompute.gammainc_data + # agrees with mpmath's gammainc. + assert_mpmath_equal(lambda a, x: gammaincc(a, x, dps=1000), + lambda a, x: mp.gammainc(a, a=x, regularized=True), + [Arg(20, 100), Arg(20, 100)], + nan_ok=False, rtol=1e-17, n=50, dps=1000) + + # Test the fast integer path + assert_mpmath_equal(gammaincc, + lambda a, x: mp.gammainc(a, a=x, regularized=True), + [IntArg(1, 100), Arg(0, 100)], + nan_ok=False, rtol=1e-17, n=50, dps=50) diff --git a/shared/package-files/e9/e97519d360848c3884feceac18c0931ee2e4d51fccb5d9061a3000489cc65449/blob b/shared/package-files/e9/e97519d360848c3884feceac18c0931ee2e4d51fccb5d9061a3000489cc65449/blob new file mode 100644 index 0000000000000000000000000000000000000000..79c0a1bc4e9de8ea835cbaffae0c7eaa58a71650 --- /dev/null +++ b/shared/package-files/e9/e97519d360848c3884feceac18c0931ee2e4d51fccb5d9061a3000489cc65449/blob @@ -0,0 +1,18 @@ +from django.db.models.lookups import Exact + +from django.db.models import Lookup, Transform +from .search import SearchVectorExact + +class PostgresSimpleLookup(Lookup): + operator: str + +class DataContains(PostgresSimpleLookup): ... +class ContainedBy(PostgresSimpleLookup): ... +class Overlap(PostgresSimpleLookup): ... +class HasKey(PostgresSimpleLookup): ... +class HasKeys(PostgresSimpleLookup): ... +class HasAnyKeys(HasKeys): ... +class Unaccent(Transform): ... +class SearchLookup(SearchVectorExact): ... +class TrigramSimilar(PostgresSimpleLookup): ... +class JSONExact(Exact): ... diff --git a/shared/package-files/e9/e9758e818b010ddb8a206eb8b7edf2a6d356fc57925a24a8c83fac1e7e1b866c/blob b/shared/package-files/e9/e9758e818b010ddb8a206eb8b7edf2a6d356fc57925a24a8c83fac1e7e1b866c/blob new file mode 100644 index 0000000000000000000000000000000000000000..99b97b488e0d8f57bb7f4a06d259d6c4be04ae6f Binary files /dev/null and b/shared/package-files/e9/e9758e818b010ddb8a206eb8b7edf2a6d356fc57925a24a8c83fac1e7e1b866c/blob differ diff --git a/shared/package-files/e9/e9765e3296637c550ff8c879b44a1ff0ff1400d36027b96c06ad5151b8cbfcce/blob b/shared/package-files/e9/e9765e3296637c550ff8c879b44a1ff0ff1400d36027b96c06ad5151b8cbfcce/blob new file mode 100644 index 0000000000000000000000000000000000000000..f495a4d99baf7521aa240f4ca894203b6d834189 --- /dev/null +++ b/shared/package-files/e9/e9765e3296637c550ff8c879b44a1ff0ff1400d36027b96c06ad5151b8cbfcce/blob @@ -0,0 +1,37 @@ +from typing import Any, Optional + +tproxy: Any +raise_helper: str + +class TracebackFrameProxy: + tb: Any + def __init__(self, tb) -> None: ... + @property + def tb_next(self): ... + def set_next(self, next): ... + @property + def is_jinja_frame(self): ... + def __getattr__(self, name): ... + +def make_frame_proxy(frame): ... + +class ProcessedTraceback: + exc_type: Any + exc_value: Any + frames: Any + def __init__(self, exc_type, exc_value, frames) -> None: ... + def render_as_text(self, limit: Optional[Any] = ...): ... + def render_as_html(self, full: bool = ...): ... + @property + def is_template_syntax_error(self): ... + @property + def exc_info(self): ... + @property + def standard_exc_info(self): ... + +def make_traceback(exc_info, source_hint: Optional[Any] = ...): ... +def translate_syntax_error(error, source: Optional[Any] = ...): ... +def translate_exception(exc_info, initial_skip: int = ...): ... +def fake_exc_info(exc_info, filename, lineno): ... + +tb_set_next: Any diff --git a/shared/package-files/e9/e97acf3b7bef7779a265beb2810b58e52a0978b9363c0c1f1103a5647c19817c/blob b/shared/package-files/e9/e97acf3b7bef7779a265beb2810b58e52a0978b9363c0c1f1103a5647c19817c/blob new file mode 100644 index 0000000000000000000000000000000000000000..59c2f1a499d2b7e4923ea8f60389fb2f2b8fd342 --- /dev/null +++ b/shared/package-files/e9/e97acf3b7bef7779a265beb2810b58e52a0978b9363c0c1f1103a5647c19817c/blob @@ -0,0 +1,4569 @@ +import warnings + +from collections import Counter, defaultdict, deque, abc +from collections.abc import Sequence +from functools import cached_property, partial, reduce, wraps +from heapq import heapify, heapreplace, heappop +from itertools import ( + chain, + compress, + count, + cycle, + dropwhile, + groupby, + islice, + repeat, + starmap, + takewhile, + tee, + zip_longest, + product, +) +from math import exp, factorial, floor, log +from queue import Empty, Queue +from random import random, randrange, uniform +from operator import itemgetter, mul, sub, gt, lt, ge, le +from sys import hexversion, maxsize +from time import monotonic + +from .recipes import ( + _marker, + _zip_equal, + UnequalIterablesError, + consume, + flatten, + pairwise, + powerset, + take, + unique_everseen, + all_equal, + batched, +) + +__all__ = [ + 'AbortThread', + 'SequenceView', + 'UnequalIterablesError', + 'adjacent', + 'all_unique', + 'always_iterable', + 'always_reversible', + 'bucket', + 'callback_iter', + 'chunked', + 'chunked_even', + 'circular_shifts', + 'collapse', + 'combination_index', + 'combination_with_replacement_index', + 'consecutive_groups', + 'constrained_batches', + 'consumer', + 'count_cycle', + 'countable', + 'difference', + 'distinct_combinations', + 'distinct_permutations', + 'distribute', + 'divide', + 'duplicates_everseen', + 'duplicates_justseen', + 'exactly_n', + 'filter_except', + 'first', + 'gray_product', + 'groupby_transform', + 'ichunked', + 'iequals', + 'ilen', + 'interleave', + 'interleave_evenly', + 'interleave_longest', + 'intersperse', + 'is_sorted', + 'islice_extended', + 'iterate', + 'last', + 'locate', + 'longest_common_prefix', + 'lstrip', + 'make_decorator', + 'map_except', + 'map_if', + 'map_reduce', + 'mark_ends', + 'minmax', + 'nth_or_last', + 'nth_permutation', + 'nth_product', + 'nth_combination_with_replacement', + 'numeric_range', + 'one', + 'only', + 'outer_product', + 'padded', + 'partial_product', + 'partitions', + 'peekable', + 'permutation_index', + 'product_index', + 'raise_', + 'repeat_each', + 'repeat_last', + 'replace', + 'rlocate', + 'rstrip', + 'run_length', + 'sample', + 'seekable', + 'set_partitions', + 'side_effect', + 'sliced', + 'sort_together', + 'split_after', + 'split_at', + 'split_before', + 'split_into', + 'split_when', + 'spy', + 'stagger', + 'strip', + 'strictly_n', + 'substrings', + 'substrings_indexes', + 'takewhile_inclusive', + 'time_limited', + 'unique_in_window', + 'unique_to_each', + 'unzip', + 'value_chain', + 'windowed', + 'windowed_complete', + 'with_iter', + 'zip_broadcast', + 'zip_equal', + 'zip_offset', +] + + +def chunked(iterable, n, strict=False): + """Break *iterable* into lists of length *n*: + + >>> list(chunked([1, 2, 3, 4, 5, 6], 3)) + [[1, 2, 3], [4, 5, 6]] + + By the default, the last yielded list will have fewer than *n* elements + if the length of *iterable* is not divisible by *n*: + + >>> list(chunked([1, 2, 3, 4, 5, 6, 7, 8], 3)) + [[1, 2, 3], [4, 5, 6], [7, 8]] + + To use a fill-in value instead, see the :func:`grouper` recipe. + + If the length of *iterable* is not divisible by *n* and *strict* is + ``True``, then ``ValueError`` will be raised before the last + list is yielded. + + """ + iterator = iter(partial(take, n, iter(iterable)), []) + if strict: + if n is None: + raise ValueError('n must not be None when using strict mode.') + + def ret(): + for chunk in iterator: + if len(chunk) != n: + raise ValueError('iterable is not divisible by n.') + yield chunk + + return iter(ret()) + else: + return iterator + + +def first(iterable, default=_marker): + """Return the first item of *iterable*, or *default* if *iterable* is + empty. + + >>> first([0, 1, 2, 3]) + 0 + >>> first([], 'some default') + 'some default' + + If *default* is not provided and there are no items in the iterable, + raise ``ValueError``. + + :func:`first` is useful when you have a generator of expensive-to-retrieve + values and want any arbitrary one. It is marginally shorter than + ``next(iter(iterable), default)``. + + """ + try: + return next(iter(iterable)) + except StopIteration as e: + if default is _marker: + raise ValueError( + 'first() was called on an empty iterable, and no ' + 'default value was provided.' + ) from e + return default + + +def last(iterable, default=_marker): + """Return the last item of *iterable*, or *default* if *iterable* is + empty. + + >>> last([0, 1, 2, 3]) + 3 + >>> last([], 'some default') + 'some default' + + If *default* is not provided and there are no items in the iterable, + raise ``ValueError``. + """ + try: + if isinstance(iterable, Sequence): + return iterable[-1] + # Work around https://bugs.python.org/issue38525 + elif hasattr(iterable, '__reversed__') and (hexversion != 0x030800F0): + return next(reversed(iterable)) + else: + return deque(iterable, maxlen=1)[-1] + except (IndexError, TypeError, StopIteration): + if default is _marker: + raise ValueError( + 'last() was called on an empty iterable, and no default was ' + 'provided.' + ) + return default + + +def nth_or_last(iterable, n, default=_marker): + """Return the nth or the last item of *iterable*, + or *default* if *iterable* is empty. + + >>> nth_or_last([0, 1, 2, 3], 2) + 2 + >>> nth_or_last([0, 1], 2) + 1 + >>> nth_or_last([], 0, 'some default') + 'some default' + + If *default* is not provided and there are no items in the iterable, + raise ``ValueError``. + """ + return last(islice(iterable, n + 1), default=default) + + +class peekable: + """Wrap an iterator to allow lookahead and prepending elements. + + Call :meth:`peek` on the result to get the value that will be returned + by :func:`next`. This won't advance the iterator: + + >>> p = peekable(['a', 'b']) + >>> p.peek() + 'a' + >>> next(p) + 'a' + + Pass :meth:`peek` a default value to return that instead of raising + ``StopIteration`` when the iterator is exhausted. + + >>> p = peekable([]) + >>> p.peek('hi') + 'hi' + + peekables also offer a :meth:`prepend` method, which "inserts" items + at the head of the iterable: + + >>> p = peekable([1, 2, 3]) + >>> p.prepend(10, 11, 12) + >>> next(p) + 10 + >>> p.peek() + 11 + >>> list(p) + [11, 12, 1, 2, 3] + + peekables can be indexed. Index 0 is the item that will be returned by + :func:`next`, index 1 is the item after that, and so on: + The values up to the given index will be cached. + + >>> p = peekable(['a', 'b', 'c', 'd']) + >>> p[0] + 'a' + >>> p[1] + 'b' + >>> next(p) + 'a' + + Negative indexes are supported, but be aware that they will cache the + remaining items in the source iterator, which may require significant + storage. + + To check whether a peekable is exhausted, check its truth value: + + >>> p = peekable(['a', 'b']) + >>> if p: # peekable has items + ... list(p) + ['a', 'b'] + >>> if not p: # peekable is exhausted + ... list(p) + [] + + """ + + def __init__(self, iterable): + self._it = iter(iterable) + self._cache = deque() + + def __iter__(self): + return self + + def __bool__(self): + try: + self.peek() + except StopIteration: + return False + return True + + def peek(self, default=_marker): + """Return the item that will be next returned from ``next()``. + + Return ``default`` if there are no items left. If ``default`` is not + provided, raise ``StopIteration``. + + """ + if not self._cache: + try: + self._cache.append(next(self._it)) + except StopIteration: + if default is _marker: + raise + return default + return self._cache[0] + + def prepend(self, *items): + """Stack up items to be the next ones returned from ``next()`` or + ``self.peek()``. The items will be returned in + first in, first out order:: + + >>> p = peekable([1, 2, 3]) + >>> p.prepend(10, 11, 12) + >>> next(p) + 10 + >>> list(p) + [11, 12, 1, 2, 3] + + It is possible, by prepending items, to "resurrect" a peekable that + previously raised ``StopIteration``. + + >>> p = peekable([]) + >>> next(p) + Traceback (most recent call last): + ... + StopIteration + >>> p.prepend(1) + >>> next(p) + 1 + >>> next(p) + Traceback (most recent call last): + ... + StopIteration + + """ + self._cache.extendleft(reversed(items)) + + def __next__(self): + if self._cache: + return self._cache.popleft() + + return next(self._it) + + def _get_slice(self, index): + # Normalize the slice's arguments + step = 1 if (index.step is None) else index.step + if step > 0: + start = 0 if (index.start is None) else index.start + stop = maxsize if (index.stop is None) else index.stop + elif step < 0: + start = -1 if (index.start is None) else index.start + stop = (-maxsize - 1) if (index.stop is None) else index.stop + else: + raise ValueError('slice step cannot be zero') + + # If either the start or stop index is negative, we'll need to cache + # the rest of the iterable in order to slice from the right side. + if (start < 0) or (stop < 0): + self._cache.extend(self._it) + # Otherwise we'll need to find the rightmost index and cache to that + # point. + else: + n = min(max(start, stop) + 1, maxsize) + cache_len = len(self._cache) + if n >= cache_len: + self._cache.extend(islice(self._it, n - cache_len)) + + return list(self._cache)[index] + + def __getitem__(self, index): + if isinstance(index, slice): + return self._get_slice(index) + + cache_len = len(self._cache) + if index < 0: + self._cache.extend(self._it) + elif index >= cache_len: + self._cache.extend(islice(self._it, index + 1 - cache_len)) + + return self._cache[index] + + +def consumer(func): + """Decorator that automatically advances a PEP-342-style "reverse iterator" + to its first yield point so you don't have to call ``next()`` on it + manually. + + >>> @consumer + ... def tally(): + ... i = 0 + ... while True: + ... print('Thing number %s is %s.' % (i, (yield))) + ... i += 1 + ... + >>> t = tally() + >>> t.send('red') + Thing number 0 is red. + >>> t.send('fish') + Thing number 1 is fish. + + Without the decorator, you would have to call ``next(t)`` before + ``t.send()`` could be used. + + """ + + @wraps(func) + def wrapper(*args, **kwargs): + gen = func(*args, **kwargs) + next(gen) + return gen + + return wrapper + + +def ilen(iterable): + """Return the number of items in *iterable*. + + >>> ilen(x for x in range(1000000) if x % 3 == 0) + 333334 + + This consumes the iterable, so handle with care. + + """ + # This approach was selected because benchmarks showed it's likely the + # fastest of the known implementations at the time of writing. + # See GitHub tracker: #236, #230. + counter = count() + deque(zip(iterable, counter), maxlen=0) + return next(counter) + + +def iterate(func, start): + """Return ``start``, ``func(start)``, ``func(func(start))``, ... + + >>> from itertools import islice + >>> list(islice(iterate(lambda x: 2*x, 1), 10)) + [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] + + """ + while True: + yield start + try: + start = func(start) + except StopIteration: + break + + +def with_iter(context_manager): + """Wrap an iterable in a ``with`` statement, so it closes once exhausted. + + For example, this will close the file when the iterator is exhausted:: + + upper_lines = (line.upper() for line in with_iter(open('foo'))) + + Any context manager which returns an iterable is a candidate for + ``with_iter``. + + """ + with context_manager as iterable: + yield from iterable + + +def one(iterable, too_short=None, too_long=None): + """Return the first item from *iterable*, which is expected to contain only + that item. Raise an exception if *iterable* is empty or has more than one + item. + + :func:`one` is useful for ensuring that an iterable contains only one item. + For example, it can be used to retrieve the result of a database query + that is expected to return a single row. + + If *iterable* is empty, ``ValueError`` will be raised. You may specify a + different exception with the *too_short* keyword: + + >>> it = [] + >>> one(it) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + ValueError: too many items in iterable (expected 1)' + >>> too_short = IndexError('too few items') + >>> one(it, too_short=too_short) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + IndexError: too few items + + Similarly, if *iterable* contains more than one item, ``ValueError`` will + be raised. You may specify a different exception with the *too_long* + keyword: + + >>> it = ['too', 'many'] + >>> one(it) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + ValueError: Expected exactly one item in iterable, but got 'too', + 'many', and perhaps more. + >>> too_long = RuntimeError + >>> one(it, too_long=too_long) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + RuntimeError + + Note that :func:`one` attempts to advance *iterable* twice to ensure there + is only one item. See :func:`spy` or :func:`peekable` to check iterable + contents less destructively. + + """ + it = iter(iterable) + + try: + first_value = next(it) + except StopIteration as e: + raise ( + too_short or ValueError('too few items in iterable (expected 1)') + ) from e + + try: + second_value = next(it) + except StopIteration: + pass + else: + msg = ( + 'Expected exactly one item in iterable, but got {!r}, {!r}, ' + 'and perhaps more.'.format(first_value, second_value) + ) + raise too_long or ValueError(msg) + + return first_value + + +def raise_(exception, *args): + raise exception(*args) + + +def strictly_n(iterable, n, too_short=None, too_long=None): + """Validate that *iterable* has exactly *n* items and return them if + it does. If it has fewer than *n* items, call function *too_short* + with those items. If it has more than *n* items, call function + *too_long* with the first ``n + 1`` items. + + >>> iterable = ['a', 'b', 'c', 'd'] + >>> n = 4 + >>> list(strictly_n(iterable, n)) + ['a', 'b', 'c', 'd'] + + By default, *too_short* and *too_long* are functions that raise + ``ValueError``. + + >>> list(strictly_n('ab', 3)) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + ValueError: too few items in iterable (got 2) + + >>> list(strictly_n('abc', 2)) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + ValueError: too many items in iterable (got at least 3) + + You can instead supply functions that do something else. + *too_short* will be called with the number of items in *iterable*. + *too_long* will be called with `n + 1`. + + >>> def too_short(item_count): + ... raise RuntimeError + >>> it = strictly_n('abcd', 6, too_short=too_short) + >>> list(it) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + RuntimeError + + >>> def too_long(item_count): + ... print('The boss is going to hear about this') + >>> it = strictly_n('abcdef', 4, too_long=too_long) + >>> list(it) + The boss is going to hear about this + ['a', 'b', 'c', 'd'] + + """ + if too_short is None: + too_short = lambda item_count: raise_( + ValueError, + 'Too few items in iterable (got {})'.format(item_count), + ) + + if too_long is None: + too_long = lambda item_count: raise_( + ValueError, + 'Too many items in iterable (got at least {})'.format(item_count), + ) + + it = iter(iterable) + for i in range(n): + try: + item = next(it) + except StopIteration: + too_short(i) + return + else: + yield item + + try: + next(it) + except StopIteration: + pass + else: + too_long(n + 1) + + +def distinct_permutations(iterable, r=None): + """Yield successive distinct permutations of the elements in *iterable*. + + >>> sorted(distinct_permutations([1, 0, 1])) + [(0, 1, 1), (1, 0, 1), (1, 1, 0)] + + Equivalent to ``set(permutations(iterable))``, except duplicates are not + generated and thrown away. For larger input sequences this is much more + efficient. + + Duplicate permutations arise when there are duplicated elements in the + input iterable. The number of items returned is + `n! / (x_1! * x_2! * ... * x_n!)`, where `n` is the total number of + items input, and each `x_i` is the count of a distinct item in the input + sequence. + + If *r* is given, only the *r*-length permutations are yielded. + + >>> sorted(distinct_permutations([1, 0, 1], r=2)) + [(0, 1), (1, 0), (1, 1)] + >>> sorted(distinct_permutations(range(3), r=2)) + [(0, 1), (0, 2), (1, 0), (1, 2), (2, 0), (2, 1)] + + """ + + # Algorithm: https://w.wiki/Qai + def _full(A): + while True: + # Yield the permutation we have + yield tuple(A) + + # Find the largest index i such that A[i] < A[i + 1] + for i in range(size - 2, -1, -1): + if A[i] < A[i + 1]: + break + # If no such index exists, this permutation is the last one + else: + return + + # Find the largest index j greater than j such that A[i] < A[j] + for j in range(size - 1, i, -1): + if A[i] < A[j]: + break + + # Swap the value of A[i] with that of A[j], then reverse the + # sequence from A[i + 1] to form the new permutation + A[i], A[j] = A[j], A[i] + A[i + 1 :] = A[: i - size : -1] # A[i + 1:][::-1] + + # Algorithm: modified from the above + def _partial(A, r): + # Split A into the first r items and the last r items + head, tail = A[:r], A[r:] + right_head_indexes = range(r - 1, -1, -1) + left_tail_indexes = range(len(tail)) + + while True: + # Yield the permutation we have + yield tuple(head) + + # Starting from the right, find the first index of the head with + # value smaller than the maximum value of the tail - call it i. + pivot = tail[-1] + for i in right_head_indexes: + if head[i] < pivot: + break + pivot = head[i] + else: + return + + # Starting from the left, find the first value of the tail + # with a value greater than head[i] and swap. + for j in left_tail_indexes: + if tail[j] > head[i]: + head[i], tail[j] = tail[j], head[i] + break + # If we didn't find one, start from the right and find the first + # index of the head with a value greater than head[i] and swap. + else: + for j in right_head_indexes: + if head[j] > head[i]: + head[i], head[j] = head[j], head[i] + break + + # Reverse head[i + 1:] and swap it with tail[:r - (i + 1)] + tail += head[: i - r : -1] # head[i + 1:][::-1] + i += 1 + head[i:], tail[:] = tail[: r - i], tail[r - i :] + + items = sorted(iterable) + + size = len(items) + if r is None: + r = size + + if 0 < r <= size: + return _full(items) if (r == size) else _partial(items, r) + + return iter(() if r else ((),)) + + +def intersperse(e, iterable, n=1): + """Intersperse filler element *e* among the items in *iterable*, leaving + *n* items between each filler element. + + >>> list(intersperse('!', [1, 2, 3, 4, 5])) + [1, '!', 2, '!', 3, '!', 4, '!', 5] + + >>> list(intersperse(None, [1, 2, 3, 4, 5], n=2)) + [1, 2, None, 3, 4, None, 5] + + """ + if n == 0: + raise ValueError('n must be > 0') + elif n == 1: + # interleave(repeat(e), iterable) -> e, x_0, e, x_1, e, x_2... + # islice(..., 1, None) -> x_0, e, x_1, e, x_2... + return islice(interleave(repeat(e), iterable), 1, None) + else: + # interleave(filler, chunks) -> [e], [x_0, x_1], [e], [x_2, x_3]... + # islice(..., 1, None) -> [x_0, x_1], [e], [x_2, x_3]... + # flatten(...) -> x_0, x_1, e, x_2, x_3... + filler = repeat([e]) + chunks = chunked(iterable, n) + return flatten(islice(interleave(filler, chunks), 1, None)) + + +def unique_to_each(*iterables): + """Return the elements from each of the input iterables that aren't in the + other input iterables. + + For example, suppose you have a set of packages, each with a set of + dependencies:: + + {'pkg_1': {'A', 'B'}, 'pkg_2': {'B', 'C'}, 'pkg_3': {'B', 'D'}} + + If you remove one package, which dependencies can also be removed? + + If ``pkg_1`` is removed, then ``A`` is no longer necessary - it is not + associated with ``pkg_2`` or ``pkg_3``. Similarly, ``C`` is only needed for + ``pkg_2``, and ``D`` is only needed for ``pkg_3``:: + + >>> unique_to_each({'A', 'B'}, {'B', 'C'}, {'B', 'D'}) + [['A'], ['C'], ['D']] + + If there are duplicates in one input iterable that aren't in the others + they will be duplicated in the output. Input order is preserved:: + + >>> unique_to_each("mississippi", "missouri") + [['p', 'p'], ['o', 'u', 'r']] + + It is assumed that the elements of each iterable are hashable. + + """ + pool = [list(it) for it in iterables] + counts = Counter(chain.from_iterable(map(set, pool))) + uniques = {element for element in counts if counts[element] == 1} + return [list(filter(uniques.__contains__, it)) for it in pool] + + +def windowed(seq, n, fillvalue=None, step=1): + """Return a sliding window of width *n* over the given iterable. + + >>> all_windows = windowed([1, 2, 3, 4, 5], 3) + >>> list(all_windows) + [(1, 2, 3), (2, 3, 4), (3, 4, 5)] + + When the window is larger than the iterable, *fillvalue* is used in place + of missing values: + + >>> list(windowed([1, 2, 3], 4)) + [(1, 2, 3, None)] + + Each window will advance in increments of *step*: + + >>> list(windowed([1, 2, 3, 4, 5, 6], 3, fillvalue='!', step=2)) + [(1, 2, 3), (3, 4, 5), (5, 6, '!')] + + To slide into the iterable's items, use :func:`chain` to add filler items + to the left: + + >>> iterable = [1, 2, 3, 4] + >>> n = 3 + >>> padding = [None] * (n - 1) + >>> list(windowed(chain(padding, iterable), 3)) + [(None, None, 1), (None, 1, 2), (1, 2, 3), (2, 3, 4)] + """ + if n < 0: + raise ValueError('n must be >= 0') + if n == 0: + yield tuple() + return + if step < 1: + raise ValueError('step must be >= 1') + + window = deque(maxlen=n) + i = n + for _ in map(window.append, seq): + i -= 1 + if not i: + i = step + yield tuple(window) + + size = len(window) + if size == 0: + return + elif size < n: + yield tuple(chain(window, repeat(fillvalue, n - size))) + elif 0 < i < min(step, n): + window += (fillvalue,) * i + yield tuple(window) + + +def substrings(iterable): + """Yield all of the substrings of *iterable*. + + >>> [''.join(s) for s in substrings('more')] + ['m', 'o', 'r', 'e', 'mo', 'or', 're', 'mor', 'ore', 'more'] + + Note that non-string iterables can also be subdivided. + + >>> list(substrings([0, 1, 2])) + [(0,), (1,), (2,), (0, 1), (1, 2), (0, 1, 2)] + + """ + # The length-1 substrings + seq = [] + for item in iter(iterable): + seq.append(item) + yield (item,) + seq = tuple(seq) + item_count = len(seq) + + # And the rest + for n in range(2, item_count + 1): + for i in range(item_count - n + 1): + yield seq[i : i + n] + + +def substrings_indexes(seq, reverse=False): + """Yield all substrings and their positions in *seq* + + The items yielded will be a tuple of the form ``(substr, i, j)``, where + ``substr == seq[i:j]``. + + This function only works for iterables that support slicing, such as + ``str`` objects. + + >>> for item in substrings_indexes('more'): + ... print(item) + ('m', 0, 1) + ('o', 1, 2) + ('r', 2, 3) + ('e', 3, 4) + ('mo', 0, 2) + ('or', 1, 3) + ('re', 2, 4) + ('mor', 0, 3) + ('ore', 1, 4) + ('more', 0, 4) + + Set *reverse* to ``True`` to yield the same items in the opposite order. + + + """ + r = range(1, len(seq) + 1) + if reverse: + r = reversed(r) + return ( + (seq[i : i + L], i, i + L) for L in r for i in range(len(seq) - L + 1) + ) + + +class bucket: + """Wrap *iterable* and return an object that buckets it iterable into + child iterables based on a *key* function. + + >>> iterable = ['a1', 'b1', 'c1', 'a2', 'b2', 'c2', 'b3'] + >>> s = bucket(iterable, key=lambda x: x[0]) # Bucket by 1st character + >>> sorted(list(s)) # Get the keys + ['a', 'b', 'c'] + >>> a_iterable = s['a'] + >>> next(a_iterable) + 'a1' + >>> next(a_iterable) + 'a2' + >>> list(s['b']) + ['b1', 'b2', 'b3'] + + The original iterable will be advanced and its items will be cached until + they are used by the child iterables. This may require significant storage. + + By default, attempting to select a bucket to which no items belong will + exhaust the iterable and cache all values. + If you specify a *validator* function, selected buckets will instead be + checked against it. + + >>> from itertools import count + >>> it = count(1, 2) # Infinite sequence of odd numbers + >>> key = lambda x: x % 10 # Bucket by last digit + >>> validator = lambda x: x in {1, 3, 5, 7, 9} # Odd digits only + >>> s = bucket(it, key=key, validator=validator) + >>> 2 in s + False + >>> list(s[2]) + [] + + """ + + def __init__(self, iterable, key, validator=None): + self._it = iter(iterable) + self._key = key + self._cache = defaultdict(deque) + self._validator = validator or (lambda x: True) + + def __contains__(self, value): + if not self._validator(value): + return False + + try: + item = next(self[value]) + except StopIteration: + return False + else: + self._cache[value].appendleft(item) + + return True + + def _get_values(self, value): + """ + Helper to yield items from the parent iterator that match *value*. + Items that don't match are stored in the local cache as they + are encountered. + """ + while True: + # If we've cached some items that match the target value, emit + # the first one and evict it from the cache. + if self._cache[value]: + yield self._cache[value].popleft() + # Otherwise we need to advance the parent iterator to search for + # a matching item, caching the rest. + else: + while True: + try: + item = next(self._it) + except StopIteration: + return + item_value = self._key(item) + if item_value == value: + yield item + break + elif self._validator(item_value): + self._cache[item_value].append(item) + + def __iter__(self): + for item in self._it: + item_value = self._key(item) + if self._validator(item_value): + self._cache[item_value].append(item) + + yield from self._cache.keys() + + def __getitem__(self, value): + if not self._validator(value): + return iter(()) + + return self._get_values(value) + + +def spy(iterable, n=1): + """Return a 2-tuple with a list containing the first *n* elements of + *iterable*, and an iterator with the same items as *iterable*. + This allows you to "look ahead" at the items in the iterable without + advancing it. + + There is one item in the list by default: + + >>> iterable = 'abcdefg' + >>> head, iterable = spy(iterable) + >>> head + ['a'] + >>> list(iterable) + ['a', 'b', 'c', 'd', 'e', 'f', 'g'] + + You may use unpacking to retrieve items instead of lists: + + >>> (head,), iterable = spy('abcdefg') + >>> head + 'a' + >>> (first, second), iterable = spy('abcdefg', 2) + >>> first + 'a' + >>> second + 'b' + + The number of items requested can be larger than the number of items in + the iterable: + + >>> iterable = [1, 2, 3, 4, 5] + >>> head, iterable = spy(iterable, 10) + >>> head + [1, 2, 3, 4, 5] + >>> list(iterable) + [1, 2, 3, 4, 5] + + """ + it = iter(iterable) + head = take(n, it) + + return head.copy(), chain(head, it) + + +def interleave(*iterables): + """Return a new iterable yielding from each iterable in turn, + until the shortest is exhausted. + + >>> list(interleave([1, 2, 3], [4, 5], [6, 7, 8])) + [1, 4, 6, 2, 5, 7] + + For a version that doesn't terminate after the shortest iterable is + exhausted, see :func:`interleave_longest`. + + """ + return chain.from_iterable(zip(*iterables)) + + +def interleave_longest(*iterables): + """Return a new iterable yielding from each iterable in turn, + skipping any that are exhausted. + + >>> list(interleave_longest([1, 2, 3], [4, 5], [6, 7, 8])) + [1, 4, 6, 2, 5, 7, 3, 8] + + This function produces the same output as :func:`roundrobin`, but may + perform better for some inputs (in particular when the number of iterables + is large). + + """ + i = chain.from_iterable(zip_longest(*iterables, fillvalue=_marker)) + return (x for x in i if x is not _marker) + + +def interleave_evenly(iterables, lengths=None): + """ + Interleave multiple iterables so that their elements are evenly distributed + throughout the output sequence. + + >>> iterables = [1, 2, 3, 4, 5], ['a', 'b'] + >>> list(interleave_evenly(iterables)) + [1, 2, 'a', 3, 4, 'b', 5] + + >>> iterables = [[1, 2, 3], [4, 5], [6, 7, 8]] + >>> list(interleave_evenly(iterables)) + [1, 6, 4, 2, 7, 3, 8, 5] + + This function requires iterables of known length. Iterables without + ``__len__()`` can be used by manually specifying lengths with *lengths*: + + >>> from itertools import combinations, repeat + >>> iterables = [combinations(range(4), 2), ['a', 'b', 'c']] + >>> lengths = [4 * (4 - 1) // 2, 3] + >>> list(interleave_evenly(iterables, lengths=lengths)) + [(0, 1), (0, 2), 'a', (0, 3), (1, 2), 'b', (1, 3), (2, 3), 'c'] + + Based on Bresenham's algorithm. + """ + if lengths is None: + try: + lengths = [len(it) for it in iterables] + except TypeError: + raise ValueError( + 'Iterable lengths could not be determined automatically. ' + 'Specify them with the lengths keyword.' + ) + elif len(iterables) != len(lengths): + raise ValueError('Mismatching number of iterables and lengths.') + + dims = len(lengths) + + # sort iterables by length, descending + lengths_permute = sorted( + range(dims), key=lambda i: lengths[i], reverse=True + ) + lengths_desc = [lengths[i] for i in lengths_permute] + iters_desc = [iter(iterables[i]) for i in lengths_permute] + + # the longest iterable is the primary one (Bresenham: the longest + # distance along an axis) + delta_primary, deltas_secondary = lengths_desc[0], lengths_desc[1:] + iter_primary, iters_secondary = iters_desc[0], iters_desc[1:] + errors = [delta_primary // dims] * len(deltas_secondary) + + to_yield = sum(lengths) + while to_yield: + yield next(iter_primary) + to_yield -= 1 + # update errors for each secondary iterable + errors = [e - delta for e, delta in zip(errors, deltas_secondary)] + + # those iterables for which the error is negative are yielded + # ("diagonal step" in Bresenham) + for i, e in enumerate(errors): + if e < 0: + yield next(iters_secondary[i]) + to_yield -= 1 + errors[i] += delta_primary + + +def collapse(iterable, base_type=None, levels=None): + """Flatten an iterable with multiple levels of nesting (e.g., a list of + lists of tuples) into non-iterable types. + + >>> iterable = [(1, 2), ([3, 4], [[5], [6]])] + >>> list(collapse(iterable)) + [1, 2, 3, 4, 5, 6] + + Binary and text strings are not considered iterable and + will not be collapsed. + + To avoid collapsing other types, specify *base_type*: + + >>> iterable = ['ab', ('cd', 'ef'), ['gh', 'ij']] + >>> list(collapse(iterable, base_type=tuple)) + ['ab', ('cd', 'ef'), 'gh', 'ij'] + + Specify *levels* to stop flattening after a certain level: + + >>> iterable = [('a', ['b']), ('c', ['d'])] + >>> list(collapse(iterable)) # Fully flattened + ['a', 'b', 'c', 'd'] + >>> list(collapse(iterable, levels=1)) # Only one level flattened + ['a', ['b'], 'c', ['d']] + + """ + + def walk(node, level): + if ( + ((levels is not None) and (level > levels)) + or isinstance(node, (str, bytes)) + or ((base_type is not None) and isinstance(node, base_type)) + ): + yield node + return + + try: + tree = iter(node) + except TypeError: + yield node + return + else: + for child in tree: + yield from walk(child, level + 1) + + yield from walk(iterable, 0) + + +def side_effect(func, iterable, chunk_size=None, before=None, after=None): + """Invoke *func* on each item in *iterable* (or on each *chunk_size* group + of items) before yielding the item. + + `func` must be a function that takes a single argument. Its return value + will be discarded. + + *before* and *after* are optional functions that take no arguments. They + will be executed before iteration starts and after it ends, respectively. + + `side_effect` can be used for logging, updating progress bars, or anything + that is not functionally "pure." + + Emitting a status message: + + >>> from more_itertools import consume + >>> func = lambda item: print('Received {}'.format(item)) + >>> consume(side_effect(func, range(2))) + Received 0 + Received 1 + + Operating on chunks of items: + + >>> pair_sums = [] + >>> func = lambda chunk: pair_sums.append(sum(chunk)) + >>> list(side_effect(func, [0, 1, 2, 3, 4, 5], 2)) + [0, 1, 2, 3, 4, 5] + >>> list(pair_sums) + [1, 5, 9] + + Writing to a file-like object: + + >>> from io import StringIO + >>> from more_itertools import consume + >>> f = StringIO() + >>> func = lambda x: print(x, file=f) + >>> before = lambda: print(u'HEADER', file=f) + >>> after = f.close + >>> it = [u'a', u'b', u'c'] + >>> consume(side_effect(func, it, before=before, after=after)) + >>> f.closed + True + + """ + try: + if before is not None: + before() + + if chunk_size is None: + for item in iterable: + func(item) + yield item + else: + for chunk in chunked(iterable, chunk_size): + func(chunk) + yield from chunk + finally: + if after is not None: + after() + + +def sliced(seq, n, strict=False): + """Yield slices of length *n* from the sequence *seq*. + + >>> list(sliced((1, 2, 3, 4, 5, 6), 3)) + [(1, 2, 3), (4, 5, 6)] + + By the default, the last yielded slice will have fewer than *n* elements + if the length of *seq* is not divisible by *n*: + + >>> list(sliced((1, 2, 3, 4, 5, 6, 7, 8), 3)) + [(1, 2, 3), (4, 5, 6), (7, 8)] + + If the length of *seq* is not divisible by *n* and *strict* is + ``True``, then ``ValueError`` will be raised before the last + slice is yielded. + + This function will only work for iterables that support slicing. + For non-sliceable iterables, see :func:`chunked`. + + """ + iterator = takewhile(len, (seq[i : i + n] for i in count(0, n))) + if strict: + + def ret(): + for _slice in iterator: + if len(_slice) != n: + raise ValueError("seq is not divisible by n.") + yield _slice + + return iter(ret()) + else: + return iterator + + +def split_at(iterable, pred, maxsplit=-1, keep_separator=False): + """Yield lists of items from *iterable*, where each list is delimited by + an item where callable *pred* returns ``True``. + + >>> list(split_at('abcdcba', lambda x: x == 'b')) + [['a'], ['c', 'd', 'c'], ['a']] + + >>> list(split_at(range(10), lambda n: n % 2 == 1)) + [[0], [2], [4], [6], [8], []] + + At most *maxsplit* splits are done. If *maxsplit* is not specified or -1, + then there is no limit on the number of splits: + + >>> list(split_at(range(10), lambda n: n % 2 == 1, maxsplit=2)) + [[0], [2], [4, 5, 6, 7, 8, 9]] + + By default, the delimiting items are not included in the output. + To include them, set *keep_separator* to ``True``. + + >>> list(split_at('abcdcba', lambda x: x == 'b', keep_separator=True)) + [['a'], ['b'], ['c', 'd', 'c'], ['b'], ['a']] + + """ + if maxsplit == 0: + yield list(iterable) + return + + buf = [] + it = iter(iterable) + for item in it: + if pred(item): + yield buf + if keep_separator: + yield [item] + if maxsplit == 1: + yield list(it) + return + buf = [] + maxsplit -= 1 + else: + buf.append(item) + yield buf + + +def split_before(iterable, pred, maxsplit=-1): + """Yield lists of items from *iterable*, where each list ends just before + an item for which callable *pred* returns ``True``: + + >>> list(split_before('OneTwo', lambda s: s.isupper())) + [['O', 'n', 'e'], ['T', 'w', 'o']] + + >>> list(split_before(range(10), lambda n: n % 3 == 0)) + [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]] + + At most *maxsplit* splits are done. If *maxsplit* is not specified or -1, + then there is no limit on the number of splits: + + >>> list(split_before(range(10), lambda n: n % 3 == 0, maxsplit=2)) + [[0, 1, 2], [3, 4, 5], [6, 7, 8, 9]] + """ + if maxsplit == 0: + yield list(iterable) + return + + buf = [] + it = iter(iterable) + for item in it: + if pred(item) and buf: + yield buf + if maxsplit == 1: + yield [item] + list(it) + return + buf = [] + maxsplit -= 1 + buf.append(item) + if buf: + yield buf + + +def split_after(iterable, pred, maxsplit=-1): + """Yield lists of items from *iterable*, where each list ends with an + item where callable *pred* returns ``True``: + + >>> list(split_after('one1two2', lambda s: s.isdigit())) + [['o', 'n', 'e', '1'], ['t', 'w', 'o', '2']] + + >>> list(split_after(range(10), lambda n: n % 3 == 0)) + [[0], [1, 2, 3], [4, 5, 6], [7, 8, 9]] + + At most *maxsplit* splits are done. If *maxsplit* is not specified or -1, + then there is no limit on the number of splits: + + >>> list(split_after(range(10), lambda n: n % 3 == 0, maxsplit=2)) + [[0], [1, 2, 3], [4, 5, 6, 7, 8, 9]] + + """ + if maxsplit == 0: + yield list(iterable) + return + + buf = [] + it = iter(iterable) + for item in it: + buf.append(item) + if pred(item) and buf: + yield buf + if maxsplit == 1: + buf = list(it) + if buf: + yield buf + return + buf = [] + maxsplit -= 1 + if buf: + yield buf + + +def split_when(iterable, pred, maxsplit=-1): + """Split *iterable* into pieces based on the output of *pred*. + *pred* should be a function that takes successive pairs of items and + returns ``True`` if the iterable should be split in between them. + + For example, to find runs of increasing numbers, split the iterable when + element ``i`` is larger than element ``i + 1``: + + >>> list(split_when([1, 2, 3, 3, 2, 5, 2, 4, 2], lambda x, y: x > y)) + [[1, 2, 3, 3], [2, 5], [2, 4], [2]] + + At most *maxsplit* splits are done. If *maxsplit* is not specified or -1, + then there is no limit on the number of splits: + + >>> list(split_when([1, 2, 3, 3, 2, 5, 2, 4, 2], + ... lambda x, y: x > y, maxsplit=2)) + [[1, 2, 3, 3], [2, 5], [2, 4, 2]] + + """ + if maxsplit == 0: + yield list(iterable) + return + + it = iter(iterable) + try: + cur_item = next(it) + except StopIteration: + return + + buf = [cur_item] + for next_item in it: + if pred(cur_item, next_item): + yield buf + if maxsplit == 1: + yield [next_item] + list(it) + return + buf = [] + maxsplit -= 1 + + buf.append(next_item) + cur_item = next_item + + yield buf + + +def split_into(iterable, sizes): + """Yield a list of sequential items from *iterable* of length 'n' for each + integer 'n' in *sizes*. + + >>> list(split_into([1,2,3,4,5,6], [1,2,3])) + [[1], [2, 3], [4, 5, 6]] + + If the sum of *sizes* is smaller than the length of *iterable*, then the + remaining items of *iterable* will not be returned. + + >>> list(split_into([1,2,3,4,5,6], [2,3])) + [[1, 2], [3, 4, 5]] + + If the sum of *sizes* is larger than the length of *iterable*, fewer items + will be returned in the iteration that overruns *iterable* and further + lists will be empty: + + >>> list(split_into([1,2,3,4], [1,2,3,4])) + [[1], [2, 3], [4], []] + + When a ``None`` object is encountered in *sizes*, the returned list will + contain items up to the end of *iterable* the same way that itertools.slice + does: + + >>> list(split_into([1,2,3,4,5,6,7,8,9,0], [2,3,None])) + [[1, 2], [3, 4, 5], [6, 7, 8, 9, 0]] + + :func:`split_into` can be useful for grouping a series of items where the + sizes of the groups are not uniform. An example would be where in a row + from a table, multiple columns represent elements of the same feature + (e.g. a point represented by x,y,z) but, the format is not the same for + all columns. + """ + # convert the iterable argument into an iterator so its contents can + # be consumed by islice in case it is a generator + it = iter(iterable) + + for size in sizes: + if size is None: + yield list(it) + return + else: + yield list(islice(it, size)) + + +def padded(iterable, fillvalue=None, n=None, next_multiple=False): + """Yield the elements from *iterable*, followed by *fillvalue*, such that + at least *n* items are emitted. + + >>> list(padded([1, 2, 3], '?', 5)) + [1, 2, 3, '?', '?'] + + If *next_multiple* is ``True``, *fillvalue* will be emitted until the + number of items emitted is a multiple of *n*:: + + >>> list(padded([1, 2, 3, 4], n=3, next_multiple=True)) + [1, 2, 3, 4, None, None] + + If *n* is ``None``, *fillvalue* will be emitted indefinitely. + + """ + it = iter(iterable) + if n is None: + yield from chain(it, repeat(fillvalue)) + elif n < 1: + raise ValueError('n must be at least 1') + else: + item_count = 0 + for item in it: + yield item + item_count += 1 + + remaining = (n - item_count) % n if next_multiple else n - item_count + for _ in range(remaining): + yield fillvalue + + +def repeat_each(iterable, n=2): + """Repeat each element in *iterable* *n* times. + + >>> list(repeat_each('ABC', 3)) + ['A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C'] + """ + return chain.from_iterable(map(repeat, iterable, repeat(n))) + + +def repeat_last(iterable, default=None): + """After the *iterable* is exhausted, keep yielding its last element. + + >>> list(islice(repeat_last(range(3)), 5)) + [0, 1, 2, 2, 2] + + If the iterable is empty, yield *default* forever:: + + >>> list(islice(repeat_last(range(0), 42), 5)) + [42, 42, 42, 42, 42] + + """ + item = _marker + for item in iterable: + yield item + final = default if item is _marker else item + yield from repeat(final) + + +def distribute(n, iterable): + """Distribute the items from *iterable* among *n* smaller iterables. + + >>> group_1, group_2 = distribute(2, [1, 2, 3, 4, 5, 6]) + >>> list(group_1) + [1, 3, 5] + >>> list(group_2) + [2, 4, 6] + + If the length of *iterable* is not evenly divisible by *n*, then the + length of the returned iterables will not be identical: + + >>> children = distribute(3, [1, 2, 3, 4, 5, 6, 7]) + >>> [list(c) for c in children] + [[1, 4, 7], [2, 5], [3, 6]] + + If the length of *iterable* is smaller than *n*, then the last returned + iterables will be empty: + + >>> children = distribute(5, [1, 2, 3]) + >>> [list(c) for c in children] + [[1], [2], [3], [], []] + + This function uses :func:`itertools.tee` and may require significant + storage. If you need the order items in the smaller iterables to match the + original iterable, see :func:`divide`. + + """ + if n < 1: + raise ValueError('n must be at least 1') + + children = tee(iterable, n) + return [islice(it, index, None, n) for index, it in enumerate(children)] + + +def stagger(iterable, offsets=(-1, 0, 1), longest=False, fillvalue=None): + """Yield tuples whose elements are offset from *iterable*. + The amount by which the `i`-th item in each tuple is offset is given by + the `i`-th item in *offsets*. + + >>> list(stagger([0, 1, 2, 3])) + [(None, 0, 1), (0, 1, 2), (1, 2, 3)] + >>> list(stagger(range(8), offsets=(0, 2, 4))) + [(0, 2, 4), (1, 3, 5), (2, 4, 6), (3, 5, 7)] + + By default, the sequence will end when the final element of a tuple is the + last item in the iterable. To continue until the first element of a tuple + is the last item in the iterable, set *longest* to ``True``:: + + >>> list(stagger([0, 1, 2, 3], longest=True)) + [(None, 0, 1), (0, 1, 2), (1, 2, 3), (2, 3, None), (3, None, None)] + + By default, ``None`` will be used to replace offsets beyond the end of the + sequence. Specify *fillvalue* to use some other value. + + """ + children = tee(iterable, len(offsets)) + + return zip_offset( + *children, offsets=offsets, longest=longest, fillvalue=fillvalue + ) + + +def zip_equal(*iterables): + """``zip`` the input *iterables* together, but raise + ``UnequalIterablesError`` if they aren't all the same length. + + >>> it_1 = range(3) + >>> it_2 = iter('abc') + >>> list(zip_equal(it_1, it_2)) + [(0, 'a'), (1, 'b'), (2, 'c')] + + >>> it_1 = range(3) + >>> it_2 = iter('abcd') + >>> list(zip_equal(it_1, it_2)) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + more_itertools.more.UnequalIterablesError: Iterables have different + lengths + + """ + if hexversion >= 0x30A00A6: + warnings.warn( + ( + 'zip_equal will be removed in a future version of ' + 'more-itertools. Use the builtin zip function with ' + 'strict=True instead.' + ), + DeprecationWarning, + ) + + return _zip_equal(*iterables) + + +def zip_offset(*iterables, offsets, longest=False, fillvalue=None): + """``zip`` the input *iterables* together, but offset the `i`-th iterable + by the `i`-th item in *offsets*. + + >>> list(zip_offset('0123', 'abcdef', offsets=(0, 1))) + [('0', 'b'), ('1', 'c'), ('2', 'd'), ('3', 'e')] + + This can be used as a lightweight alternative to SciPy or pandas to analyze + data sets in which some series have a lead or lag relationship. + + By default, the sequence will end when the shortest iterable is exhausted. + To continue until the longest iterable is exhausted, set *longest* to + ``True``. + + >>> list(zip_offset('0123', 'abcdef', offsets=(0, 1), longest=True)) + [('0', 'b'), ('1', 'c'), ('2', 'd'), ('3', 'e'), (None, 'f')] + + By default, ``None`` will be used to replace offsets beyond the end of the + sequence. Specify *fillvalue* to use some other value. + + """ + if len(iterables) != len(offsets): + raise ValueError("Number of iterables and offsets didn't match") + + staggered = [] + for it, n in zip(iterables, offsets): + if n < 0: + staggered.append(chain(repeat(fillvalue, -n), it)) + elif n > 0: + staggered.append(islice(it, n, None)) + else: + staggered.append(it) + + if longest: + return zip_longest(*staggered, fillvalue=fillvalue) + + return zip(*staggered) + + +def sort_together(iterables, key_list=(0,), key=None, reverse=False): + """Return the input iterables sorted together, with *key_list* as the + priority for sorting. All iterables are trimmed to the length of the + shortest one. + + This can be used like the sorting function in a spreadsheet. If each + iterable represents a column of data, the key list determines which + columns are used for sorting. + + By default, all iterables are sorted using the ``0``-th iterable:: + + >>> iterables = [(4, 3, 2, 1), ('a', 'b', 'c', 'd')] + >>> sort_together(iterables) + [(1, 2, 3, 4), ('d', 'c', 'b', 'a')] + + Set a different key list to sort according to another iterable. + Specifying multiple keys dictates how ties are broken:: + + >>> iterables = [(3, 1, 2), (0, 1, 0), ('c', 'b', 'a')] + >>> sort_together(iterables, key_list=(1, 2)) + [(2, 3, 1), (0, 0, 1), ('a', 'c', 'b')] + + To sort by a function of the elements of the iterable, pass a *key* + function. Its arguments are the elements of the iterables corresponding to + the key list:: + + >>> names = ('a', 'b', 'c') + >>> lengths = (1, 2, 3) + >>> widths = (5, 2, 1) + >>> def area(length, width): + ... return length * width + >>> sort_together([names, lengths, widths], key_list=(1, 2), key=area) + [('c', 'b', 'a'), (3, 2, 1), (1, 2, 5)] + + Set *reverse* to ``True`` to sort in descending order. + + >>> sort_together([(1, 2, 3), ('c', 'b', 'a')], reverse=True) + [(3, 2, 1), ('a', 'b', 'c')] + + """ + if key is None: + # if there is no key function, the key argument to sorted is an + # itemgetter + key_argument = itemgetter(*key_list) + else: + # if there is a key function, call it with the items at the offsets + # specified by the key function as arguments + key_list = list(key_list) + if len(key_list) == 1: + # if key_list contains a single item, pass the item at that offset + # as the only argument to the key function + key_offset = key_list[0] + key_argument = lambda zipped_items: key(zipped_items[key_offset]) + else: + # if key_list contains multiple items, use itemgetter to return a + # tuple of items, which we pass as *args to the key function + get_key_items = itemgetter(*key_list) + key_argument = lambda zipped_items: key( + *get_key_items(zipped_items) + ) + + return list( + zip(*sorted(zip(*iterables), key=key_argument, reverse=reverse)) + ) + + +def unzip(iterable): + """The inverse of :func:`zip`, this function disaggregates the elements + of the zipped *iterable*. + + The ``i``-th iterable contains the ``i``-th element from each element + of the zipped iterable. The first element is used to determine the + length of the remaining elements. + + >>> iterable = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] + >>> letters, numbers = unzip(iterable) + >>> list(letters) + ['a', 'b', 'c', 'd'] + >>> list(numbers) + [1, 2, 3, 4] + + This is similar to using ``zip(*iterable)``, but it avoids reading + *iterable* into memory. Note, however, that this function uses + :func:`itertools.tee` and thus may require significant storage. + + """ + head, iterable = spy(iter(iterable)) + if not head: + # empty iterable, e.g. zip([], [], []) + return () + # spy returns a one-length iterable as head + head = head[0] + iterables = tee(iterable, len(head)) + + def itemgetter(i): + def getter(obj): + try: + return obj[i] + except IndexError: + # basically if we have an iterable like + # iter([(1, 2, 3), (4, 5), (6,)]) + # the second unzipped iterable would fail at the third tuple + # since it would try to access tup[1] + # same with the third unzipped iterable and the second tuple + # to support these "improperly zipped" iterables, + # we create a custom itemgetter + # which just stops the unzipped iterables + # at first length mismatch + raise StopIteration + + return getter + + return tuple(map(itemgetter(i), it) for i, it in enumerate(iterables)) + + +def divide(n, iterable): + """Divide the elements from *iterable* into *n* parts, maintaining + order. + + >>> group_1, group_2 = divide(2, [1, 2, 3, 4, 5, 6]) + >>> list(group_1) + [1, 2, 3] + >>> list(group_2) + [4, 5, 6] + + If the length of *iterable* is not evenly divisible by *n*, then the + length of the returned iterables will not be identical: + + >>> children = divide(3, [1, 2, 3, 4, 5, 6, 7]) + >>> [list(c) for c in children] + [[1, 2, 3], [4, 5], [6, 7]] + + If the length of the iterable is smaller than n, then the last returned + iterables will be empty: + + >>> children = divide(5, [1, 2, 3]) + >>> [list(c) for c in children] + [[1], [2], [3], [], []] + + This function will exhaust the iterable before returning and may require + significant storage. If order is not important, see :func:`distribute`, + which does not first pull the iterable into memory. + + """ + if n < 1: + raise ValueError('n must be at least 1') + + try: + iterable[:0] + except TypeError: + seq = tuple(iterable) + else: + seq = iterable + + q, r = divmod(len(seq), n) + + ret = [] + stop = 0 + for i in range(1, n + 1): + start = stop + stop += q + 1 if i <= r else q + ret.append(iter(seq[start:stop])) + + return ret + + +def always_iterable(obj, base_type=(str, bytes)): + """If *obj* is iterable, return an iterator over its items:: + + >>> obj = (1, 2, 3) + >>> list(always_iterable(obj)) + [1, 2, 3] + + If *obj* is not iterable, return a one-item iterable containing *obj*:: + + >>> obj = 1 + >>> list(always_iterable(obj)) + [1] + + If *obj* is ``None``, return an empty iterable: + + >>> obj = None + >>> list(always_iterable(None)) + [] + + By default, binary and text strings are not considered iterable:: + + >>> obj = 'foo' + >>> list(always_iterable(obj)) + ['foo'] + + If *base_type* is set, objects for which ``isinstance(obj, base_type)`` + returns ``True`` won't be considered iterable. + + >>> obj = {'a': 1} + >>> list(always_iterable(obj)) # Iterate over the dict's keys + ['a'] + >>> list(always_iterable(obj, base_type=dict)) # Treat dicts as a unit + [{'a': 1}] + + Set *base_type* to ``None`` to avoid any special handling and treat objects + Python considers iterable as iterable: + + >>> obj = 'foo' + >>> list(always_iterable(obj, base_type=None)) + ['f', 'o', 'o'] + """ + if obj is None: + return iter(()) + + if (base_type is not None) and isinstance(obj, base_type): + return iter((obj,)) + + try: + return iter(obj) + except TypeError: + return iter((obj,)) + + +def adjacent(predicate, iterable, distance=1): + """Return an iterable over `(bool, item)` tuples where the `item` is + drawn from *iterable* and the `bool` indicates whether + that item satisfies the *predicate* or is adjacent to an item that does. + + For example, to find whether items are adjacent to a ``3``:: + + >>> list(adjacent(lambda x: x == 3, range(6))) + [(False, 0), (False, 1), (True, 2), (True, 3), (True, 4), (False, 5)] + + Set *distance* to change what counts as adjacent. For example, to find + whether items are two places away from a ``3``: + + >>> list(adjacent(lambda x: x == 3, range(6), distance=2)) + [(False, 0), (True, 1), (True, 2), (True, 3), (True, 4), (True, 5)] + + This is useful for contextualizing the results of a search function. + For example, a code comparison tool might want to identify lines that + have changed, but also surrounding lines to give the viewer of the diff + context. + + The predicate function will only be called once for each item in the + iterable. + + See also :func:`groupby_transform`, which can be used with this function + to group ranges of items with the same `bool` value. + + """ + # Allow distance=0 mainly for testing that it reproduces results with map() + if distance < 0: + raise ValueError('distance must be at least 0') + + i1, i2 = tee(iterable) + padding = [False] * distance + selected = chain(padding, map(predicate, i1), padding) + adjacent_to_selected = map(any, windowed(selected, 2 * distance + 1)) + return zip(adjacent_to_selected, i2) + + +def groupby_transform(iterable, keyfunc=None, valuefunc=None, reducefunc=None): + """An extension of :func:`itertools.groupby` that can apply transformations + to the grouped data. + + * *keyfunc* is a function computing a key value for each item in *iterable* + * *valuefunc* is a function that transforms the individual items from + *iterable* after grouping + * *reducefunc* is a function that transforms each group of items + + >>> iterable = 'aAAbBBcCC' + >>> keyfunc = lambda k: k.upper() + >>> valuefunc = lambda v: v.lower() + >>> reducefunc = lambda g: ''.join(g) + >>> list(groupby_transform(iterable, keyfunc, valuefunc, reducefunc)) + [('A', 'aaa'), ('B', 'bbb'), ('C', 'ccc')] + + Each optional argument defaults to an identity function if not specified. + + :func:`groupby_transform` is useful when grouping elements of an iterable + using a separate iterable as the key. To do this, :func:`zip` the iterables + and pass a *keyfunc* that extracts the first element and a *valuefunc* + that extracts the second element:: + + >>> from operator import itemgetter + >>> keys = [0, 0, 1, 1, 1, 2, 2, 2, 3] + >>> values = 'abcdefghi' + >>> iterable = zip(keys, values) + >>> grouper = groupby_transform(iterable, itemgetter(0), itemgetter(1)) + >>> [(k, ''.join(g)) for k, g in grouper] + [(0, 'ab'), (1, 'cde'), (2, 'fgh'), (3, 'i')] + + Note that the order of items in the iterable is significant. + Only adjacent items are grouped together, so if you don't want any + duplicate groups, you should sort the iterable by the key function. + + """ + ret = groupby(iterable, keyfunc) + if valuefunc: + ret = ((k, map(valuefunc, g)) for k, g in ret) + if reducefunc: + ret = ((k, reducefunc(g)) for k, g in ret) + + return ret + + +class numeric_range(abc.Sequence, abc.Hashable): + """An extension of the built-in ``range()`` function whose arguments can + be any orderable numeric type. + + With only *stop* specified, *start* defaults to ``0`` and *step* + defaults to ``1``. The output items will match the type of *stop*: + + >>> list(numeric_range(3.5)) + [0.0, 1.0, 2.0, 3.0] + + With only *start* and *stop* specified, *step* defaults to ``1``. The + output items will match the type of *start*: + + >>> from decimal import Decimal + >>> start = Decimal('2.1') + >>> stop = Decimal('5.1') + >>> list(numeric_range(start, stop)) + [Decimal('2.1'), Decimal('3.1'), Decimal('4.1')] + + With *start*, *stop*, and *step* specified the output items will match + the type of ``start + step``: + + >>> from fractions import Fraction + >>> start = Fraction(1, 2) # Start at 1/2 + >>> stop = Fraction(5, 2) # End at 5/2 + >>> step = Fraction(1, 2) # Count by 1/2 + >>> list(numeric_range(start, stop, step)) + [Fraction(1, 2), Fraction(1, 1), Fraction(3, 2), Fraction(2, 1)] + + If *step* is zero, ``ValueError`` is raised. Negative steps are supported: + + >>> list(numeric_range(3, -1, -1.0)) + [3.0, 2.0, 1.0, 0.0] + + Be aware of the limitations of floating point numbers; the representation + of the yielded numbers may be surprising. + + ``datetime.datetime`` objects can be used for *start* and *stop*, if *step* + is a ``datetime.timedelta`` object: + + >>> import datetime + >>> start = datetime.datetime(2019, 1, 1) + >>> stop = datetime.datetime(2019, 1, 3) + >>> step = datetime.timedelta(days=1) + >>> items = iter(numeric_range(start, stop, step)) + >>> next(items) + datetime.datetime(2019, 1, 1, 0, 0) + >>> next(items) + datetime.datetime(2019, 1, 2, 0, 0) + + """ + + _EMPTY_HASH = hash(range(0, 0)) + + def __init__(self, *args): + argc = len(args) + if argc == 1: + (self._stop,) = args + self._start = type(self._stop)(0) + self._step = type(self._stop - self._start)(1) + elif argc == 2: + self._start, self._stop = args + self._step = type(self._stop - self._start)(1) + elif argc == 3: + self._start, self._stop, self._step = args + elif argc == 0: + raise TypeError( + 'numeric_range expected at least ' + '1 argument, got {}'.format(argc) + ) + else: + raise TypeError( + 'numeric_range expected at most ' + '3 arguments, got {}'.format(argc) + ) + + self._zero = type(self._step)(0) + if self._step == self._zero: + raise ValueError('numeric_range() arg 3 must not be zero') + self._growing = self._step > self._zero + + def __bool__(self): + if self._growing: + return self._start < self._stop + else: + return self._start > self._stop + + def __contains__(self, elem): + if self._growing: + if self._start <= elem < self._stop: + return (elem - self._start) % self._step == self._zero + else: + if self._start >= elem > self._stop: + return (self._start - elem) % (-self._step) == self._zero + + return False + + def __eq__(self, other): + if isinstance(other, numeric_range): + empty_self = not bool(self) + empty_other = not bool(other) + if empty_self or empty_other: + return empty_self and empty_other # True if both empty + else: + return ( + self._start == other._start + and self._step == other._step + and self._get_by_index(-1) == other._get_by_index(-1) + ) + else: + return False + + def __getitem__(self, key): + if isinstance(key, int): + return self._get_by_index(key) + elif isinstance(key, slice): + step = self._step if key.step is None else key.step * self._step + + if key.start is None or key.start <= -self._len: + start = self._start + elif key.start >= self._len: + start = self._stop + else: # -self._len < key.start < self._len + start = self._get_by_index(key.start) + + if key.stop is None or key.stop >= self._len: + stop = self._stop + elif key.stop <= -self._len: + stop = self._start + else: # -self._len < key.stop < self._len + stop = self._get_by_index(key.stop) + + return numeric_range(start, stop, step) + else: + raise TypeError( + 'numeric range indices must be ' + 'integers or slices, not {}'.format(type(key).__name__) + ) + + def __hash__(self): + if self: + return hash((self._start, self._get_by_index(-1), self._step)) + else: + return self._EMPTY_HASH + + def __iter__(self): + values = (self._start + (n * self._step) for n in count()) + if self._growing: + return takewhile(partial(gt, self._stop), values) + else: + return takewhile(partial(lt, self._stop), values) + + def __len__(self): + return self._len + + @cached_property + def _len(self): + if self._growing: + start = self._start + stop = self._stop + step = self._step + else: + start = self._stop + stop = self._start + step = -self._step + distance = stop - start + if distance <= self._zero: + return 0 + else: # distance > 0 and step > 0: regular euclidean division + q, r = divmod(distance, step) + return int(q) + int(r != self._zero) + + def __reduce__(self): + return numeric_range, (self._start, self._stop, self._step) + + def __repr__(self): + if self._step == 1: + return "numeric_range({}, {})".format( + repr(self._start), repr(self._stop) + ) + else: + return "numeric_range({}, {}, {})".format( + repr(self._start), repr(self._stop), repr(self._step) + ) + + def __reversed__(self): + return iter( + numeric_range( + self._get_by_index(-1), self._start - self._step, -self._step + ) + ) + + def count(self, value): + return int(value in self) + + def index(self, value): + if self._growing: + if self._start <= value < self._stop: + q, r = divmod(value - self._start, self._step) + if r == self._zero: + return int(q) + else: + if self._start >= value > self._stop: + q, r = divmod(self._start - value, -self._step) + if r == self._zero: + return int(q) + + raise ValueError("{} is not in numeric range".format(value)) + + def _get_by_index(self, i): + if i < 0: + i += self._len + if i < 0 or i >= self._len: + raise IndexError("numeric range object index out of range") + return self._start + i * self._step + + +def count_cycle(iterable, n=None): + """Cycle through the items from *iterable* up to *n* times, yielding + the number of completed cycles along with each item. If *n* is omitted the + process repeats indefinitely. + + >>> list(count_cycle('AB', 3)) + [(0, 'A'), (0, 'B'), (1, 'A'), (1, 'B'), (2, 'A'), (2, 'B')] + + """ + iterable = tuple(iterable) + if not iterable: + return iter(()) + counter = count() if n is None else range(n) + return ((i, item) for i in counter for item in iterable) + + +def mark_ends(iterable): + """Yield 3-tuples of the form ``(is_first, is_last, item)``. + + >>> list(mark_ends('ABC')) + [(True, False, 'A'), (False, False, 'B'), (False, True, 'C')] + + Use this when looping over an iterable to take special action on its first + and/or last items: + + >>> iterable = ['Header', 100, 200, 'Footer'] + >>> total = 0 + >>> for is_first, is_last, item in mark_ends(iterable): + ... if is_first: + ... continue # Skip the header + ... if is_last: + ... continue # Skip the footer + ... total += item + >>> print(total) + 300 + """ + it = iter(iterable) + + try: + b = next(it) + except StopIteration: + return + + try: + for i in count(): + a = b + b = next(it) + yield i == 0, False, a + + except StopIteration: + yield i == 0, True, a + + +def locate(iterable, pred=bool, window_size=None): + """Yield the index of each item in *iterable* for which *pred* returns + ``True``. + + *pred* defaults to :func:`bool`, which will select truthy items: + + >>> list(locate([0, 1, 1, 0, 1, 0, 0])) + [1, 2, 4] + + Set *pred* to a custom function to, e.g., find the indexes for a particular + item. + + >>> list(locate(['a', 'b', 'c', 'b'], lambda x: x == 'b')) + [1, 3] + + If *window_size* is given, then the *pred* function will be called with + that many items. This enables searching for sub-sequences: + + >>> iterable = [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3] + >>> pred = lambda *args: args == (1, 2, 3) + >>> list(locate(iterable, pred=pred, window_size=3)) + [1, 5, 9] + + Use with :func:`seekable` to find indexes and then retrieve the associated + items: + + >>> from itertools import count + >>> from more_itertools import seekable + >>> source = (3 * n + 1 if (n % 2) else n // 2 for n in count()) + >>> it = seekable(source) + >>> pred = lambda x: x > 100 + >>> indexes = locate(it, pred=pred) + >>> i = next(indexes) + >>> it.seek(i) + >>> next(it) + 106 + + """ + if window_size is None: + return compress(count(), map(pred, iterable)) + + if window_size < 1: + raise ValueError('window size must be at least 1') + + it = windowed(iterable, window_size, fillvalue=_marker) + return compress(count(), starmap(pred, it)) + + +def longest_common_prefix(iterables): + """Yield elements of the longest common prefix amongst given *iterables*. + + >>> ''.join(longest_common_prefix(['abcd', 'abc', 'abf'])) + 'ab' + + """ + return (c[0] for c in takewhile(all_equal, zip(*iterables))) + + +def lstrip(iterable, pred): + """Yield the items from *iterable*, but strip any from the beginning + for which *pred* returns ``True``. + + For example, to remove a set of items from the start of an iterable: + + >>> iterable = (None, False, None, 1, 2, None, 3, False, None) + >>> pred = lambda x: x in {None, False, ''} + >>> list(lstrip(iterable, pred)) + [1, 2, None, 3, False, None] + + This function is analogous to to :func:`str.lstrip`, and is essentially + an wrapper for :func:`itertools.dropwhile`. + + """ + return dropwhile(pred, iterable) + + +def rstrip(iterable, pred): + """Yield the items from *iterable*, but strip any from the end + for which *pred* returns ``True``. + + For example, to remove a set of items from the end of an iterable: + + >>> iterable = (None, False, None, 1, 2, None, 3, False, None) + >>> pred = lambda x: x in {None, False, ''} + >>> list(rstrip(iterable, pred)) + [None, False, None, 1, 2, None, 3] + + This function is analogous to :func:`str.rstrip`. + + """ + cache = [] + cache_append = cache.append + cache_clear = cache.clear + for x in iterable: + if pred(x): + cache_append(x) + else: + yield from cache + cache_clear() + yield x + + +def strip(iterable, pred): + """Yield the items from *iterable*, but strip any from the + beginning and end for which *pred* returns ``True``. + + For example, to remove a set of items from both ends of an iterable: + + >>> iterable = (None, False, None, 1, 2, None, 3, False, None) + >>> pred = lambda x: x in {None, False, ''} + >>> list(strip(iterable, pred)) + [1, 2, None, 3] + + This function is analogous to :func:`str.strip`. + + """ + return rstrip(lstrip(iterable, pred), pred) + + +class islice_extended: + """An extension of :func:`itertools.islice` that supports negative values + for *stop*, *start*, and *step*. + + >>> iterable = iter('abcdefgh') + >>> list(islice_extended(iterable, -4, -1)) + ['e', 'f', 'g'] + + Slices with negative values require some caching of *iterable*, but this + function takes care to minimize the amount of memory required. + + For example, you can use a negative step with an infinite iterator: + + >>> from itertools import count + >>> list(islice_extended(count(), 110, 99, -2)) + [110, 108, 106, 104, 102, 100] + + You can also use slice notation directly: + + >>> iterable = map(str, count()) + >>> it = islice_extended(iterable)[10:20:2] + >>> list(it) + ['10', '12', '14', '16', '18'] + + """ + + def __init__(self, iterable, *args): + it = iter(iterable) + if args: + self._iterable = _islice_helper(it, slice(*args)) + else: + self._iterable = it + + def __iter__(self): + return self + + def __next__(self): + return next(self._iterable) + + def __getitem__(self, key): + if isinstance(key, slice): + return islice_extended(_islice_helper(self._iterable, key)) + + raise TypeError('islice_extended.__getitem__ argument must be a slice') + + +def _islice_helper(it, s): + start = s.start + stop = s.stop + if s.step == 0: + raise ValueError('step argument must be a non-zero integer or None.') + step = s.step or 1 + + if step > 0: + start = 0 if (start is None) else start + + if start < 0: + # Consume all but the last -start items + cache = deque(enumerate(it, 1), maxlen=-start) + len_iter = cache[-1][0] if cache else 0 + + # Adjust start to be positive + i = max(len_iter + start, 0) + + # Adjust stop to be positive + if stop is None: + j = len_iter + elif stop >= 0: + j = min(stop, len_iter) + else: + j = max(len_iter + stop, 0) + + # Slice the cache + n = j - i + if n <= 0: + return + + for index, item in islice(cache, 0, n, step): + yield item + elif (stop is not None) and (stop < 0): + # Advance to the start position + next(islice(it, start, start), None) + + # When stop is negative, we have to carry -stop items while + # iterating + cache = deque(islice(it, -stop), maxlen=-stop) + + for index, item in enumerate(it): + cached_item = cache.popleft() + if index % step == 0: + yield cached_item + cache.append(item) + else: + # When both start and stop are positive we have the normal case + yield from islice(it, start, stop, step) + else: + start = -1 if (start is None) else start + + if (stop is not None) and (stop < 0): + # Consume all but the last items + n = -stop - 1 + cache = deque(enumerate(it, 1), maxlen=n) + len_iter = cache[-1][0] if cache else 0 + + # If start and stop are both negative they are comparable and + # we can just slice. Otherwise we can adjust start to be negative + # and then slice. + if start < 0: + i, j = start, stop + else: + i, j = min(start - len_iter, -1), None + + for index, item in list(cache)[i:j:step]: + yield item + else: + # Advance to the stop position + if stop is not None: + m = stop + 1 + next(islice(it, m, m), None) + + # stop is positive, so if start is negative they are not comparable + # and we need the rest of the items. + if start < 0: + i = start + n = None + # stop is None and start is positive, so we just need items up to + # the start index. + elif stop is None: + i = None + n = start + 1 + # Both stop and start are positive, so they are comparable. + else: + i = None + n = start - stop + if n <= 0: + return + + cache = list(islice(it, n)) + + yield from cache[i::step] + + +def always_reversible(iterable): + """An extension of :func:`reversed` that supports all iterables, not + just those which implement the ``Reversible`` or ``Sequence`` protocols. + + >>> print(*always_reversible(x for x in range(3))) + 2 1 0 + + If the iterable is already reversible, this function returns the + result of :func:`reversed()`. If the iterable is not reversible, + this function will cache the remaining items in the iterable and + yield them in reverse order, which may require significant storage. + """ + try: + return reversed(iterable) + except TypeError: + return reversed(list(iterable)) + + +def consecutive_groups(iterable, ordering=lambda x: x): + """Yield groups of consecutive items using :func:`itertools.groupby`. + The *ordering* function determines whether two items are adjacent by + returning their position. + + By default, the ordering function is the identity function. This is + suitable for finding runs of numbers: + + >>> iterable = [1, 10, 11, 12, 20, 30, 31, 32, 33, 40] + >>> for group in consecutive_groups(iterable): + ... print(list(group)) + [1] + [10, 11, 12] + [20] + [30, 31, 32, 33] + [40] + + For finding runs of adjacent letters, try using the :meth:`index` method + of a string of letters: + + >>> from string import ascii_lowercase + >>> iterable = 'abcdfgilmnop' + >>> ordering = ascii_lowercase.index + >>> for group in consecutive_groups(iterable, ordering): + ... print(list(group)) + ['a', 'b', 'c', 'd'] + ['f', 'g'] + ['i'] + ['l', 'm', 'n', 'o', 'p'] + + Each group of consecutive items is an iterator that shares it source with + *iterable*. When an an output group is advanced, the previous group is + no longer available unless its elements are copied (e.g., into a ``list``). + + >>> iterable = [1, 2, 11, 12, 21, 22] + >>> saved_groups = [] + >>> for group in consecutive_groups(iterable): + ... saved_groups.append(list(group)) # Copy group elements + >>> saved_groups + [[1, 2], [11, 12], [21, 22]] + + """ + for k, g in groupby( + enumerate(iterable), key=lambda x: x[0] - ordering(x[1]) + ): + yield map(itemgetter(1), g) + + +def difference(iterable, func=sub, *, initial=None): + """This function is the inverse of :func:`itertools.accumulate`. By default + it will compute the first difference of *iterable* using + :func:`operator.sub`: + + >>> from itertools import accumulate + >>> iterable = accumulate([0, 1, 2, 3, 4]) # produces 0, 1, 3, 6, 10 + >>> list(difference(iterable)) + [0, 1, 2, 3, 4] + + *func* defaults to :func:`operator.sub`, but other functions can be + specified. They will be applied as follows:: + + A, B, C, D, ... --> A, func(B, A), func(C, B), func(D, C), ... + + For example, to do progressive division: + + >>> iterable = [1, 2, 6, 24, 120] + >>> func = lambda x, y: x // y + >>> list(difference(iterable, func)) + [1, 2, 3, 4, 5] + + If the *initial* keyword is set, the first element will be skipped when + computing successive differences. + + >>> it = [10, 11, 13, 16] # from accumulate([1, 2, 3], initial=10) + >>> list(difference(it, initial=10)) + [1, 2, 3] + + """ + a, b = tee(iterable) + try: + first = [next(b)] + except StopIteration: + return iter([]) + + if initial is not None: + first = [] + + return chain(first, map(func, b, a)) + + +class SequenceView(Sequence): + """Return a read-only view of the sequence object *target*. + + :class:`SequenceView` objects are analogous to Python's built-in + "dictionary view" types. They provide a dynamic view of a sequence's items, + meaning that when the sequence updates, so does the view. + + >>> seq = ['0', '1', '2'] + >>> view = SequenceView(seq) + >>> view + SequenceView(['0', '1', '2']) + >>> seq.append('3') + >>> view + SequenceView(['0', '1', '2', '3']) + + Sequence views support indexing, slicing, and length queries. They act + like the underlying sequence, except they don't allow assignment: + + >>> view[1] + '1' + >>> view[1:-1] + ['1', '2'] + >>> len(view) + 4 + + Sequence views are useful as an alternative to copying, as they don't + require (much) extra storage. + + """ + + def __init__(self, target): + if not isinstance(target, Sequence): + raise TypeError + self._target = target + + def __getitem__(self, index): + return self._target[index] + + def __len__(self): + return len(self._target) + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, repr(self._target)) + + +class seekable: + """Wrap an iterator to allow for seeking backward and forward. This + progressively caches the items in the source iterable so they can be + re-visited. + + Call :meth:`seek` with an index to seek to that position in the source + iterable. + + To "reset" an iterator, seek to ``0``: + + >>> from itertools import count + >>> it = seekable((str(n) for n in count())) + >>> next(it), next(it), next(it) + ('0', '1', '2') + >>> it.seek(0) + >>> next(it), next(it), next(it) + ('0', '1', '2') + >>> next(it) + '3' + + You can also seek forward: + + >>> it = seekable((str(n) for n in range(20))) + >>> it.seek(10) + >>> next(it) + '10' + >>> it.relative_seek(-2) # Seeking relative to the current position + >>> next(it) + '9' + >>> it.seek(20) # Seeking past the end of the source isn't a problem + >>> list(it) + [] + >>> it.seek(0) # Resetting works even after hitting the end + >>> next(it), next(it), next(it) + ('0', '1', '2') + + Call :meth:`peek` to look ahead one item without advancing the iterator: + + >>> it = seekable('1234') + >>> it.peek() + '1' + >>> list(it) + ['1', '2', '3', '4'] + >>> it.peek(default='empty') + 'empty' + + Before the iterator is at its end, calling :func:`bool` on it will return + ``True``. After it will return ``False``: + + >>> it = seekable('5678') + >>> bool(it) + True + >>> list(it) + ['5', '6', '7', '8'] + >>> bool(it) + False + + You may view the contents of the cache with the :meth:`elements` method. + That returns a :class:`SequenceView`, a view that updates automatically: + + >>> it = seekable((str(n) for n in range(10))) + >>> next(it), next(it), next(it) + ('0', '1', '2') + >>> elements = it.elements() + >>> elements + SequenceView(['0', '1', '2']) + >>> next(it) + '3' + >>> elements + SequenceView(['0', '1', '2', '3']) + + By default, the cache grows as the source iterable progresses, so beware of + wrapping very large or infinite iterables. Supply *maxlen* to limit the + size of the cache (this of course limits how far back you can seek). + + >>> from itertools import count + >>> it = seekable((str(n) for n in count()), maxlen=2) + >>> next(it), next(it), next(it), next(it) + ('0', '1', '2', '3') + >>> list(it.elements()) + ['2', '3'] + >>> it.seek(0) + >>> next(it), next(it), next(it), next(it) + ('2', '3', '4', '5') + >>> next(it) + '6' + + """ + + def __init__(self, iterable, maxlen=None): + self._source = iter(iterable) + if maxlen is None: + self._cache = [] + else: + self._cache = deque([], maxlen) + self._index = None + + def __iter__(self): + return self + + def __next__(self): + if self._index is not None: + try: + item = self._cache[self._index] + except IndexError: + self._index = None + else: + self._index += 1 + return item + + item = next(self._source) + self._cache.append(item) + return item + + def __bool__(self): + try: + self.peek() + except StopIteration: + return False + return True + + def peek(self, default=_marker): + try: + peeked = next(self) + except StopIteration: + if default is _marker: + raise + return default + if self._index is None: + self._index = len(self._cache) + self._index -= 1 + return peeked + + def elements(self): + return SequenceView(self._cache) + + def seek(self, index): + self._index = index + remainder = index - len(self._cache) + if remainder > 0: + consume(self, remainder) + + def relative_seek(self, count): + index = len(self._cache) + self.seek(max(index + count, 0)) + + +class run_length: + """ + :func:`run_length.encode` compresses an iterable with run-length encoding. + It yields groups of repeated items with the count of how many times they + were repeated: + + >>> uncompressed = 'abbcccdddd' + >>> list(run_length.encode(uncompressed)) + [('a', 1), ('b', 2), ('c', 3), ('d', 4)] + + :func:`run_length.decode` decompresses an iterable that was previously + compressed with run-length encoding. It yields the items of the + decompressed iterable: + + >>> compressed = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] + >>> list(run_length.decode(compressed)) + ['a', 'b', 'b', 'c', 'c', 'c', 'd', 'd', 'd', 'd'] + + """ + + @staticmethod + def encode(iterable): + return ((k, ilen(g)) for k, g in groupby(iterable)) + + @staticmethod + def decode(iterable): + return chain.from_iterable(repeat(k, n) for k, n in iterable) + + +def exactly_n(iterable, n, predicate=bool): + """Return ``True`` if exactly ``n`` items in the iterable are ``True`` + according to the *predicate* function. + + >>> exactly_n([True, True, False], 2) + True + >>> exactly_n([True, True, False], 1) + False + >>> exactly_n([0, 1, 2, 3, 4, 5], 3, lambda x: x < 3) + True + + The iterable will be advanced until ``n + 1`` truthy items are encountered, + so avoid calling it on infinite iterables. + + """ + return len(take(n + 1, filter(predicate, iterable))) == n + + +def circular_shifts(iterable): + """Return a list of circular shifts of *iterable*. + + >>> circular_shifts(range(4)) + [(0, 1, 2, 3), (1, 2, 3, 0), (2, 3, 0, 1), (3, 0, 1, 2)] + """ + lst = list(iterable) + return take(len(lst), windowed(cycle(lst), len(lst))) + + +def make_decorator(wrapping_func, result_index=0): + """Return a decorator version of *wrapping_func*, which is a function that + modifies an iterable. *result_index* is the position in that function's + signature where the iterable goes. + + This lets you use itertools on the "production end," i.e. at function + definition. This can augment what the function returns without changing the + function's code. + + For example, to produce a decorator version of :func:`chunked`: + + >>> from more_itertools import chunked + >>> chunker = make_decorator(chunked, result_index=0) + >>> @chunker(3) + ... def iter_range(n): + ... return iter(range(n)) + ... + >>> list(iter_range(9)) + [[0, 1, 2], [3, 4, 5], [6, 7, 8]] + + To only allow truthy items to be returned: + + >>> truth_serum = make_decorator(filter, result_index=1) + >>> @truth_serum(bool) + ... def boolean_test(): + ... return [0, 1, '', ' ', False, True] + ... + >>> list(boolean_test()) + [1, ' ', True] + + The :func:`peekable` and :func:`seekable` wrappers make for practical + decorators: + + >>> from more_itertools import peekable + >>> peekable_function = make_decorator(peekable) + >>> @peekable_function() + ... def str_range(*args): + ... return (str(x) for x in range(*args)) + ... + >>> it = str_range(1, 20, 2) + >>> next(it), next(it), next(it) + ('1', '3', '5') + >>> it.peek() + '7' + >>> next(it) + '7' + + """ + + # See https://sites.google.com/site/bbayles/index/decorator_factory for + # notes on how this works. + def decorator(*wrapping_args, **wrapping_kwargs): + def outer_wrapper(f): + def inner_wrapper(*args, **kwargs): + result = f(*args, **kwargs) + wrapping_args_ = list(wrapping_args) + wrapping_args_.insert(result_index, result) + return wrapping_func(*wrapping_args_, **wrapping_kwargs) + + return inner_wrapper + + return outer_wrapper + + return decorator + + +def map_reduce(iterable, keyfunc, valuefunc=None, reducefunc=None): + """Return a dictionary that maps the items in *iterable* to categories + defined by *keyfunc*, transforms them with *valuefunc*, and + then summarizes them by category with *reducefunc*. + + *valuefunc* defaults to the identity function if it is unspecified. + If *reducefunc* is unspecified, no summarization takes place: + + >>> keyfunc = lambda x: x.upper() + >>> result = map_reduce('abbccc', keyfunc) + >>> sorted(result.items()) + [('A', ['a']), ('B', ['b', 'b']), ('C', ['c', 'c', 'c'])] + + Specifying *valuefunc* transforms the categorized items: + + >>> keyfunc = lambda x: x.upper() + >>> valuefunc = lambda x: 1 + >>> result = map_reduce('abbccc', keyfunc, valuefunc) + >>> sorted(result.items()) + [('A', [1]), ('B', [1, 1]), ('C', [1, 1, 1])] + + Specifying *reducefunc* summarizes the categorized items: + + >>> keyfunc = lambda x: x.upper() + >>> valuefunc = lambda x: 1 + >>> reducefunc = sum + >>> result = map_reduce('abbccc', keyfunc, valuefunc, reducefunc) + >>> sorted(result.items()) + [('A', 1), ('B', 2), ('C', 3)] + + You may want to filter the input iterable before applying the map/reduce + procedure: + + >>> all_items = range(30) + >>> items = [x for x in all_items if 10 <= x <= 20] # Filter + >>> keyfunc = lambda x: x % 2 # Evens map to 0; odds to 1 + >>> categories = map_reduce(items, keyfunc=keyfunc) + >>> sorted(categories.items()) + [(0, [10, 12, 14, 16, 18, 20]), (1, [11, 13, 15, 17, 19])] + >>> summaries = map_reduce(items, keyfunc=keyfunc, reducefunc=sum) + >>> sorted(summaries.items()) + [(0, 90), (1, 75)] + + Note that all items in the iterable are gathered into a list before the + summarization step, which may require significant storage. + + The returned object is a :obj:`collections.defaultdict` with the + ``default_factory`` set to ``None``, such that it behaves like a normal + dictionary. + + """ + valuefunc = (lambda x: x) if (valuefunc is None) else valuefunc + + ret = defaultdict(list) + for item in iterable: + key = keyfunc(item) + value = valuefunc(item) + ret[key].append(value) + + if reducefunc is not None: + for key, value_list in ret.items(): + ret[key] = reducefunc(value_list) + + ret.default_factory = None + return ret + + +def rlocate(iterable, pred=bool, window_size=None): + """Yield the index of each item in *iterable* for which *pred* returns + ``True``, starting from the right and moving left. + + *pred* defaults to :func:`bool`, which will select truthy items: + + >>> list(rlocate([0, 1, 1, 0, 1, 0, 0])) # Truthy at 1, 2, and 4 + [4, 2, 1] + + Set *pred* to a custom function to, e.g., find the indexes for a particular + item: + + >>> iterable = iter('abcb') + >>> pred = lambda x: x == 'b' + >>> list(rlocate(iterable, pred)) + [3, 1] + + If *window_size* is given, then the *pred* function will be called with + that many items. This enables searching for sub-sequences: + + >>> iterable = [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3] + >>> pred = lambda *args: args == (1, 2, 3) + >>> list(rlocate(iterable, pred=pred, window_size=3)) + [9, 5, 1] + + Beware, this function won't return anything for infinite iterables. + If *iterable* is reversible, ``rlocate`` will reverse it and search from + the right. Otherwise, it will search from the left and return the results + in reverse order. + + See :func:`locate` to for other example applications. + + """ + if window_size is None: + try: + len_iter = len(iterable) + return (len_iter - i - 1 for i in locate(reversed(iterable), pred)) + except TypeError: + pass + + return reversed(list(locate(iterable, pred, window_size))) + + +def replace(iterable, pred, substitutes, count=None, window_size=1): + """Yield the items from *iterable*, replacing the items for which *pred* + returns ``True`` with the items from the iterable *substitutes*. + + >>> iterable = [1, 1, 0, 1, 1, 0, 1, 1] + >>> pred = lambda x: x == 0 + >>> substitutes = (2, 3) + >>> list(replace(iterable, pred, substitutes)) + [1, 1, 2, 3, 1, 1, 2, 3, 1, 1] + + If *count* is given, the number of replacements will be limited: + + >>> iterable = [1, 1, 0, 1, 1, 0, 1, 1, 0] + >>> pred = lambda x: x == 0 + >>> substitutes = [None] + >>> list(replace(iterable, pred, substitutes, count=2)) + [1, 1, None, 1, 1, None, 1, 1, 0] + + Use *window_size* to control the number of items passed as arguments to + *pred*. This allows for locating and replacing subsequences. + + >>> iterable = [0, 1, 2, 5, 0, 1, 2, 5] + >>> window_size = 3 + >>> pred = lambda *args: args == (0, 1, 2) # 3 items passed to pred + >>> substitutes = [3, 4] # Splice in these items + >>> list(replace(iterable, pred, substitutes, window_size=window_size)) + [3, 4, 5, 3, 4, 5] + + """ + if window_size < 1: + raise ValueError('window_size must be at least 1') + + # Save the substitutes iterable, since it's used more than once + substitutes = tuple(substitutes) + + # Add padding such that the number of windows matches the length of the + # iterable + it = chain(iterable, [_marker] * (window_size - 1)) + windows = windowed(it, window_size) + + n = 0 + for w in windows: + # If the current window matches our predicate (and we haven't hit + # our maximum number of replacements), splice in the substitutes + # and then consume the following windows that overlap with this one. + # For example, if the iterable is (0, 1, 2, 3, 4...) + # and the window size is 2, we have (0, 1), (1, 2), (2, 3)... + # If the predicate matches on (0, 1), we need to zap (0, 1) and (1, 2) + if pred(*w): + if (count is None) or (n < count): + n += 1 + yield from substitutes + consume(windows, window_size - 1) + continue + + # If there was no match (or we've reached the replacement limit), + # yield the first item from the window. + if w and (w[0] is not _marker): + yield w[0] + + +def partitions(iterable): + """Yield all possible order-preserving partitions of *iterable*. + + >>> iterable = 'abc' + >>> for part in partitions(iterable): + ... print([''.join(p) for p in part]) + ['abc'] + ['a', 'bc'] + ['ab', 'c'] + ['a', 'b', 'c'] + + This is unrelated to :func:`partition`. + + """ + sequence = list(iterable) + n = len(sequence) + for i in powerset(range(1, n)): + yield [sequence[i:j] for i, j in zip((0,) + i, i + (n,))] + + +def set_partitions(iterable, k=None): + """ + Yield the set partitions of *iterable* into *k* parts. Set partitions are + not order-preserving. + + >>> iterable = 'abc' + >>> for part in set_partitions(iterable, 2): + ... print([''.join(p) for p in part]) + ['a', 'bc'] + ['ab', 'c'] + ['b', 'ac'] + + + If *k* is not given, every set partition is generated. + + >>> iterable = 'abc' + >>> for part in set_partitions(iterable): + ... print([''.join(p) for p in part]) + ['abc'] + ['a', 'bc'] + ['ab', 'c'] + ['b', 'ac'] + ['a', 'b', 'c'] + + """ + L = list(iterable) + n = len(L) + if k is not None: + if k < 1: + raise ValueError( + "Can't partition in a negative or zero number of groups" + ) + elif k > n: + return + + def set_partitions_helper(L, k): + n = len(L) + if k == 1: + yield [L] + elif n == k: + yield [[s] for s in L] + else: + e, *M = L + for p in set_partitions_helper(M, k - 1): + yield [[e], *p] + for p in set_partitions_helper(M, k): + for i in range(len(p)): + yield p[:i] + [[e] + p[i]] + p[i + 1 :] + + if k is None: + for k in range(1, n + 1): + yield from set_partitions_helper(L, k) + else: + yield from set_partitions_helper(L, k) + + +class time_limited: + """ + Yield items from *iterable* until *limit_seconds* have passed. + If the time limit expires before all items have been yielded, the + ``timed_out`` parameter will be set to ``True``. + + >>> from time import sleep + >>> def generator(): + ... yield 1 + ... yield 2 + ... sleep(0.2) + ... yield 3 + >>> iterable = time_limited(0.1, generator()) + >>> list(iterable) + [1, 2] + >>> iterable.timed_out + True + + Note that the time is checked before each item is yielded, and iteration + stops if the time elapsed is greater than *limit_seconds*. If your time + limit is 1 second, but it takes 2 seconds to generate the first item from + the iterable, the function will run for 2 seconds and not yield anything. + + """ + + def __init__(self, limit_seconds, iterable): + if limit_seconds < 0: + raise ValueError('limit_seconds must be positive') + self.limit_seconds = limit_seconds + self._iterable = iter(iterable) + self._start_time = monotonic() + self.timed_out = False + + def __iter__(self): + return self + + def __next__(self): + item = next(self._iterable) + if monotonic() - self._start_time > self.limit_seconds: + self.timed_out = True + raise StopIteration + + return item + + +def only(iterable, default=None, too_long=None): + """If *iterable* has only one item, return it. + If it has zero items, return *default*. + If it has more than one item, raise the exception given by *too_long*, + which is ``ValueError`` by default. + + >>> only([], default='missing') + 'missing' + >>> only([1]) + 1 + >>> only([1, 2]) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + ValueError: Expected exactly one item in iterable, but got 1, 2, + and perhaps more.' + >>> only([1, 2], too_long=TypeError) # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + TypeError + + Note that :func:`only` attempts to advance *iterable* twice to ensure there + is only one item. See :func:`spy` or :func:`peekable` to check + iterable contents less destructively. + """ + it = iter(iterable) + first_value = next(it, default) + + try: + second_value = next(it) + except StopIteration: + pass + else: + msg = ( + 'Expected exactly one item in iterable, but got {!r}, {!r}, ' + 'and perhaps more.'.format(first_value, second_value) + ) + raise too_long or ValueError(msg) + + return first_value + + +class _IChunk: + def __init__(self, iterable, n): + self._it = islice(iterable, n) + self._cache = deque() + + def fill_cache(self): + self._cache.extend(self._it) + + def __iter__(self): + return self + + def __next__(self): + try: + return next(self._it) + except StopIteration: + if self._cache: + return self._cache.popleft() + else: + raise + + +def ichunked(iterable, n): + """Break *iterable* into sub-iterables with *n* elements each. + :func:`ichunked` is like :func:`chunked`, but it yields iterables + instead of lists. + + If the sub-iterables are read in order, the elements of *iterable* + won't be stored in memory. + If they are read out of order, :func:`itertools.tee` is used to cache + elements as necessary. + + >>> from itertools import count + >>> all_chunks = ichunked(count(), 4) + >>> c_1, c_2, c_3 = next(all_chunks), next(all_chunks), next(all_chunks) + >>> list(c_2) # c_1's elements have been cached; c_3's haven't been + [4, 5, 6, 7] + >>> list(c_1) + [0, 1, 2, 3] + >>> list(c_3) + [8, 9, 10, 11] + + """ + source = peekable(iter(iterable)) + ichunk_marker = object() + while True: + # Check to see whether we're at the end of the source iterable + item = source.peek(ichunk_marker) + if item is ichunk_marker: + return + + chunk = _IChunk(source, n) + yield chunk + + # Advance the source iterable and fill previous chunk's cache + chunk.fill_cache() + + +def iequals(*iterables): + """Return ``True`` if all given *iterables* are equal to each other, + which means that they contain the same elements in the same order. + + The function is useful for comparing iterables of different data types + or iterables that do not support equality checks. + + >>> iequals("abc", ['a', 'b', 'c'], ('a', 'b', 'c'), iter("abc")) + True + + >>> iequals("abc", "acb") + False + + Not to be confused with :func:`all_equals`, which checks whether all + elements of iterable are equal to each other. + + """ + return all(map(all_equal, zip_longest(*iterables, fillvalue=object()))) + + +def distinct_combinations(iterable, r): + """Yield the distinct combinations of *r* items taken from *iterable*. + + >>> list(distinct_combinations([0, 0, 1], 2)) + [(0, 0), (0, 1)] + + Equivalent to ``set(combinations(iterable))``, except duplicates are not + generated and thrown away. For larger input sequences this is much more + efficient. + + """ + if r < 0: + raise ValueError('r must be non-negative') + elif r == 0: + yield () + return + pool = tuple(iterable) + generators = [unique_everseen(enumerate(pool), key=itemgetter(1))] + current_combo = [None] * r + level = 0 + while generators: + try: + cur_idx, p = next(generators[-1]) + except StopIteration: + generators.pop() + level -= 1 + continue + current_combo[level] = p + if level + 1 == r: + yield tuple(current_combo) + else: + generators.append( + unique_everseen( + enumerate(pool[cur_idx + 1 :], cur_idx + 1), + key=itemgetter(1), + ) + ) + level += 1 + + +def filter_except(validator, iterable, *exceptions): + """Yield the items from *iterable* for which the *validator* function does + not raise one of the specified *exceptions*. + + *validator* is called for each item in *iterable*. + It should be a function that accepts one argument and raises an exception + if that item is not valid. + + >>> iterable = ['1', '2', 'three', '4', None] + >>> list(filter_except(int, iterable, ValueError, TypeError)) + ['1', '2', '4'] + + If an exception other than one given by *exceptions* is raised by + *validator*, it is raised like normal. + """ + for item in iterable: + try: + validator(item) + except exceptions: + pass + else: + yield item + + +def map_except(function, iterable, *exceptions): + """Transform each item from *iterable* with *function* and yield the + result, unless *function* raises one of the specified *exceptions*. + + *function* is called to transform each item in *iterable*. + It should accept one argument. + + >>> iterable = ['1', '2', 'three', '4', None] + >>> list(map_except(int, iterable, ValueError, TypeError)) + [1, 2, 4] + + If an exception other than one given by *exceptions* is raised by + *function*, it is raised like normal. + """ + for item in iterable: + try: + yield function(item) + except exceptions: + pass + + +def map_if(iterable, pred, func, func_else=lambda x: x): + """Evaluate each item from *iterable* using *pred*. If the result is + equivalent to ``True``, transform the item with *func* and yield it. + Otherwise, transform the item with *func_else* and yield it. + + *pred*, *func*, and *func_else* should each be functions that accept + one argument. By default, *func_else* is the identity function. + + >>> from math import sqrt + >>> iterable = list(range(-5, 5)) + >>> iterable + [-5, -4, -3, -2, -1, 0, 1, 2, 3, 4] + >>> list(map_if(iterable, lambda x: x > 3, lambda x: 'toobig')) + [-5, -4, -3, -2, -1, 0, 1, 2, 3, 'toobig'] + >>> list(map_if(iterable, lambda x: x >= 0, + ... lambda x: f'{sqrt(x):.2f}', lambda x: None)) + [None, None, None, None, None, '0.00', '1.00', '1.41', '1.73', '2.00'] + """ + for item in iterable: + yield func(item) if pred(item) else func_else(item) + + +def _sample_unweighted(iterable, k): + # Implementation of "Algorithm L" from the 1994 paper by Kim-Hung Li: + # "Reservoir-Sampling Algorithms of Time Complexity O(n(1+log(N/n)))". + + # Fill up the reservoir (collection of samples) with the first `k` samples + reservoir = take(k, iterable) + + # Generate random number that's the largest in a sample of k U(0,1) numbers + # Largest order statistic: https://en.wikipedia.org/wiki/Order_statistic + W = exp(log(random()) / k) + + # The number of elements to skip before changing the reservoir is a random + # number with a geometric distribution. Sample it using random() and logs. + next_index = k + floor(log(random()) / log(1 - W)) + + for index, element in enumerate(iterable, k): + if index == next_index: + reservoir[randrange(k)] = element + # The new W is the largest in a sample of k U(0, `old_W`) numbers + W *= exp(log(random()) / k) + next_index += floor(log(random()) / log(1 - W)) + 1 + + return reservoir + + +def _sample_weighted(iterable, k, weights): + # Implementation of "A-ExpJ" from the 2006 paper by Efraimidis et al. : + # "Weighted random sampling with a reservoir". + + # Log-transform for numerical stability for weights that are small/large + weight_keys = (log(random()) / weight for weight in weights) + + # Fill up the reservoir (collection of samples) with the first `k` + # weight-keys and elements, then heapify the list. + reservoir = take(k, zip(weight_keys, iterable)) + heapify(reservoir) + + # The number of jumps before changing the reservoir is a random variable + # with an exponential distribution. Sample it using random() and logs. + smallest_weight_key, _ = reservoir[0] + weights_to_skip = log(random()) / smallest_weight_key + + for weight, element in zip(weights, iterable): + if weight >= weights_to_skip: + # The notation here is consistent with the paper, but we store + # the weight-keys in log-space for better numerical stability. + smallest_weight_key, _ = reservoir[0] + t_w = exp(weight * smallest_weight_key) + r_2 = uniform(t_w, 1) # generate U(t_w, 1) + weight_key = log(r_2) / weight + heapreplace(reservoir, (weight_key, element)) + smallest_weight_key, _ = reservoir[0] + weights_to_skip = log(random()) / smallest_weight_key + else: + weights_to_skip -= weight + + # Equivalent to [element for weight_key, element in sorted(reservoir)] + return [heappop(reservoir)[1] for _ in range(k)] + + +def sample(iterable, k, weights=None): + """Return a *k*-length list of elements chosen (without replacement) + from the *iterable*. Like :func:`random.sample`, but works on iterables + of unknown length. + + >>> iterable = range(100) + >>> sample(iterable, 5) # doctest: +SKIP + [81, 60, 96, 16, 4] + + An iterable with *weights* may also be given: + + >>> iterable = range(100) + >>> weights = (i * i + 1 for i in range(100)) + >>> sampled = sample(iterable, 5, weights=weights) # doctest: +SKIP + [79, 67, 74, 66, 78] + + The algorithm can also be used to generate weighted random permutations. + The relative weight of each item determines the probability that it + appears late in the permutation. + + >>> data = "abcdefgh" + >>> weights = range(1, len(data) + 1) + >>> sample(data, k=len(data), weights=weights) # doctest: +SKIP + ['c', 'a', 'b', 'e', 'g', 'd', 'h', 'f'] + """ + if k == 0: + return [] + + iterable = iter(iterable) + if weights is None: + return _sample_unweighted(iterable, k) + else: + weights = iter(weights) + return _sample_weighted(iterable, k, weights) + + +def is_sorted(iterable, key=None, reverse=False, strict=False): + """Returns ``True`` if the items of iterable are in sorted order, and + ``False`` otherwise. *key* and *reverse* have the same meaning that they do + in the built-in :func:`sorted` function. + + >>> is_sorted(['1', '2', '3', '4', '5'], key=int) + True + >>> is_sorted([5, 4, 3, 1, 2], reverse=True) + False + + If *strict*, tests for strict sorting, that is, returns ``False`` if equal + elements are found: + + >>> is_sorted([1, 2, 2]) + True + >>> is_sorted([1, 2, 2], strict=True) + False + + The function returns ``False`` after encountering the first out-of-order + item. If there are no out-of-order items, the iterable is exhausted. + """ + + compare = (le if reverse else ge) if strict else (lt if reverse else gt) + it = iterable if key is None else map(key, iterable) + return not any(starmap(compare, pairwise(it))) + + +class AbortThread(BaseException): + pass + + +class callback_iter: + """Convert a function that uses callbacks to an iterator. + + Let *func* be a function that takes a `callback` keyword argument. + For example: + + >>> def func(callback=None): + ... for i, c in [(1, 'a'), (2, 'b'), (3, 'c')]: + ... if callback: + ... callback(i, c) + ... return 4 + + + Use ``with callback_iter(func)`` to get an iterator over the parameters + that are delivered to the callback. + + >>> with callback_iter(func) as it: + ... for args, kwargs in it: + ... print(args) + (1, 'a') + (2, 'b') + (3, 'c') + + The function will be called in a background thread. The ``done`` property + indicates whether it has completed execution. + + >>> it.done + True + + If it completes successfully, its return value will be available + in the ``result`` property. + + >>> it.result + 4 + + Notes: + + * If the function uses some keyword argument besides ``callback``, supply + *callback_kwd*. + * If it finished executing, but raised an exception, accessing the + ``result`` property will raise the same exception. + * If it hasn't finished executing, accessing the ``result`` + property from within the ``with`` block will raise ``RuntimeError``. + * If it hasn't finished executing, accessing the ``result`` property from + outside the ``with`` block will raise a + ``more_itertools.AbortThread`` exception. + * Provide *wait_seconds* to adjust how frequently the it is polled for + output. + + """ + + def __init__(self, func, callback_kwd='callback', wait_seconds=0.1): + self._func = func + self._callback_kwd = callback_kwd + self._aborted = False + self._future = None + self._wait_seconds = wait_seconds + # Lazily import concurrent.future + self._executor = __import__( + 'concurrent.futures' + ).futures.ThreadPoolExecutor(max_workers=1) + self._iterator = self._reader() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._aborted = True + self._executor.shutdown() + + def __iter__(self): + return self + + def __next__(self): + return next(self._iterator) + + @property + def done(self): + if self._future is None: + return False + return self._future.done() + + @property + def result(self): + if not self.done: + raise RuntimeError('Function has not yet completed') + + return self._future.result() + + def _reader(self): + q = Queue() + + def callback(*args, **kwargs): + if self._aborted: + raise AbortThread('canceled by user') + + q.put((args, kwargs)) + + self._future = self._executor.submit( + self._func, **{self._callback_kwd: callback} + ) + + while True: + try: + item = q.get(timeout=self._wait_seconds) + except Empty: + pass + else: + q.task_done() + yield item + + if self._future.done(): + break + + remaining = [] + while True: + try: + item = q.get_nowait() + except Empty: + break + else: + q.task_done() + remaining.append(item) + q.join() + yield from remaining + + +def windowed_complete(iterable, n): + """ + Yield ``(beginning, middle, end)`` tuples, where: + + * Each ``middle`` has *n* items from *iterable* + * Each ``beginning`` has the items before the ones in ``middle`` + * Each ``end`` has the items after the ones in ``middle`` + + >>> iterable = range(7) + >>> n = 3 + >>> for beginning, middle, end in windowed_complete(iterable, n): + ... print(beginning, middle, end) + () (0, 1, 2) (3, 4, 5, 6) + (0,) (1, 2, 3) (4, 5, 6) + (0, 1) (2, 3, 4) (5, 6) + (0, 1, 2) (3, 4, 5) (6,) + (0, 1, 2, 3) (4, 5, 6) () + + Note that *n* must be at least 0 and most equal to the length of + *iterable*. + + This function will exhaust the iterable and may require significant + storage. + """ + if n < 0: + raise ValueError('n must be >= 0') + + seq = tuple(iterable) + size = len(seq) + + if n > size: + raise ValueError('n must be <= len(seq)') + + for i in range(size - n + 1): + beginning = seq[:i] + middle = seq[i : i + n] + end = seq[i + n :] + yield beginning, middle, end + + +def all_unique(iterable, key=None): + """ + Returns ``True`` if all the elements of *iterable* are unique (no two + elements are equal). + + >>> all_unique('ABCB') + False + + If a *key* function is specified, it will be used to make comparisons. + + >>> all_unique('ABCb') + True + >>> all_unique('ABCb', str.lower) + False + + The function returns as soon as the first non-unique element is + encountered. Iterables with a mix of hashable and unhashable items can + be used, but the function will be slower for unhashable items. + """ + seenset = set() + seenset_add = seenset.add + seenlist = [] + seenlist_add = seenlist.append + for element in map(key, iterable) if key else iterable: + try: + if element in seenset: + return False + seenset_add(element) + except TypeError: + if element in seenlist: + return False + seenlist_add(element) + return True + + +def nth_product(index, *args): + """Equivalent to ``list(product(*args))[index]``. + + The products of *args* can be ordered lexicographically. + :func:`nth_product` computes the product at sort position *index* without + computing the previous products. + + >>> nth_product(8, range(2), range(2), range(2), range(2)) + (1, 0, 0, 0) + + ``IndexError`` will be raised if the given *index* is invalid. + """ + pools = list(map(tuple, reversed(args))) + ns = list(map(len, pools)) + + c = reduce(mul, ns) + + if index < 0: + index += c + + if not 0 <= index < c: + raise IndexError + + result = [] + for pool, n in zip(pools, ns): + result.append(pool[index % n]) + index //= n + + return tuple(reversed(result)) + + +def nth_permutation(iterable, r, index): + """Equivalent to ``list(permutations(iterable, r))[index]``` + + The subsequences of *iterable* that are of length *r* where order is + important can be ordered lexicographically. :func:`nth_permutation` + computes the subsequence at sort position *index* directly, without + computing the previous subsequences. + + >>> nth_permutation('ghijk', 2, 5) + ('h', 'i') + + ``ValueError`` will be raised If *r* is negative or greater than the length + of *iterable*. + ``IndexError`` will be raised if the given *index* is invalid. + """ + pool = list(iterable) + n = len(pool) + + if r is None or r == n: + r, c = n, factorial(n) + elif not 0 <= r < n: + raise ValueError + else: + c = factorial(n) // factorial(n - r) + + if index < 0: + index += c + + if not 0 <= index < c: + raise IndexError + + if c == 0: + return tuple() + + result = [0] * r + q = index * factorial(n) // c if r < n else index + for d in range(1, n + 1): + q, i = divmod(q, d) + if 0 <= n - d < r: + result[n - d] = i + if q == 0: + break + + return tuple(map(pool.pop, result)) + + +def nth_combination_with_replacement(iterable, r, index): + """Equivalent to + ``list(combinations_with_replacement(iterable, r))[index]``. + + + The subsequences with repetition of *iterable* that are of length *r* can + be ordered lexicographically. :func:`nth_combination_with_replacement` + computes the subsequence at sort position *index* directly, without + computing the previous subsequences with replacement. + + >>> nth_combination_with_replacement(range(5), 3, 5) + (0, 1, 1) + + ``ValueError`` will be raised If *r* is negative or greater than the length + of *iterable*. + ``IndexError`` will be raised if the given *index* is invalid. + """ + pool = tuple(iterable) + n = len(pool) + if (r < 0) or (r > n): + raise ValueError + + c = factorial(n + r - 1) // (factorial(r) * factorial(n - 1)) + + if index < 0: + index += c + + if (index < 0) or (index >= c): + raise IndexError + + result = [] + i = 0 + while r: + r -= 1 + while n >= 0: + num_combs = factorial(n + r - 1) // ( + factorial(r) * factorial(n - 1) + ) + if index < num_combs: + break + n -= 1 + i += 1 + index -= num_combs + result.append(pool[i]) + + return tuple(result) + + +def value_chain(*args): + """Yield all arguments passed to the function in the same order in which + they were passed. If an argument itself is iterable then iterate over its + values. + + >>> list(value_chain(1, 2, 3, [4, 5, 6])) + [1, 2, 3, 4, 5, 6] + + Binary and text strings are not considered iterable and are emitted + as-is: + + >>> list(value_chain('12', '34', ['56', '78'])) + ['12', '34', '56', '78'] + + + Multiple levels of nesting are not flattened. + + """ + for value in args: + if isinstance(value, (str, bytes)): + yield value + continue + try: + yield from value + except TypeError: + yield value + + +def product_index(element, *args): + """Equivalent to ``list(product(*args)).index(element)`` + + The products of *args* can be ordered lexicographically. + :func:`product_index` computes the first index of *element* without + computing the previous products. + + >>> product_index([8, 2], range(10), range(5)) + 42 + + ``ValueError`` will be raised if the given *element* isn't in the product + of *args*. + """ + index = 0 + + for x, pool in zip_longest(element, args, fillvalue=_marker): + if x is _marker or pool is _marker: + raise ValueError('element is not a product of args') + + pool = tuple(pool) + index = index * len(pool) + pool.index(x) + + return index + + +def combination_index(element, iterable): + """Equivalent to ``list(combinations(iterable, r)).index(element)`` + + The subsequences of *iterable* that are of length *r* can be ordered + lexicographically. :func:`combination_index` computes the index of the + first *element*, without computing the previous combinations. + + >>> combination_index('adf', 'abcdefg') + 10 + + ``ValueError`` will be raised if the given *element* isn't one of the + combinations of *iterable*. + """ + element = enumerate(element) + k, y = next(element, (None, None)) + if k is None: + return 0 + + indexes = [] + pool = enumerate(iterable) + for n, x in pool: + if x == y: + indexes.append(n) + tmp, y = next(element, (None, None)) + if tmp is None: + break + else: + k = tmp + else: + raise ValueError('element is not a combination of iterable') + + n, _ = last(pool, default=(n, None)) + + # Python versions below 3.8 don't have math.comb + index = 1 + for i, j in enumerate(reversed(indexes), start=1): + j = n - j + if i <= j: + index += factorial(j) // (factorial(i) * factorial(j - i)) + + return factorial(n + 1) // (factorial(k + 1) * factorial(n - k)) - index + + +def combination_with_replacement_index(element, iterable): + """Equivalent to + ``list(combinations_with_replacement(iterable, r)).index(element)`` + + The subsequences with repetition of *iterable* that are of length *r* can + be ordered lexicographically. :func:`combination_with_replacement_index` + computes the index of the first *element*, without computing the previous + combinations with replacement. + + >>> combination_with_replacement_index('adf', 'abcdefg') + 20 + + ``ValueError`` will be raised if the given *element* isn't one of the + combinations with replacement of *iterable*. + """ + element = tuple(element) + l = len(element) + element = enumerate(element) + + k, y = next(element, (None, None)) + if k is None: + return 0 + + indexes = [] + pool = tuple(iterable) + for n, x in enumerate(pool): + while x == y: + indexes.append(n) + tmp, y = next(element, (None, None)) + if tmp is None: + break + else: + k = tmp + if y is None: + break + else: + raise ValueError( + 'element is not a combination with replacment of iterable' + ) + + n = len(pool) + occupations = [0] * n + for p in indexes: + occupations[p] += 1 + + index = 0 + for k in range(1, n): + j = l + n - 1 - k - sum(occupations[:k]) + i = n - k + if i <= j: + index += factorial(j) // (factorial(i) * factorial(j - i)) + + return index + + +def permutation_index(element, iterable): + """Equivalent to ``list(permutations(iterable, r)).index(element)``` + + The subsequences of *iterable* that are of length *r* where order is + important can be ordered lexicographically. :func:`permutation_index` + computes the index of the first *element* directly, without computing + the previous permutations. + + >>> permutation_index([1, 3, 2], range(5)) + 19 + + ``ValueError`` will be raised if the given *element* isn't one of the + permutations of *iterable*. + """ + index = 0 + pool = list(iterable) + for i, x in zip(range(len(pool), -1, -1), element): + r = pool.index(x) + index = index * i + r + del pool[r] + + return index + + +class countable: + """Wrap *iterable* and keep a count of how many items have been consumed. + + The ``items_seen`` attribute starts at ``0`` and increments as the iterable + is consumed: + + >>> iterable = map(str, range(10)) + >>> it = countable(iterable) + >>> it.items_seen + 0 + >>> next(it), next(it) + ('0', '1') + >>> list(it) + ['2', '3', '4', '5', '6', '7', '8', '9'] + >>> it.items_seen + 10 + """ + + def __init__(self, iterable): + self._it = iter(iterable) + self.items_seen = 0 + + def __iter__(self): + return self + + def __next__(self): + item = next(self._it) + self.items_seen += 1 + + return item + + +def chunked_even(iterable, n): + """Break *iterable* into lists of approximately length *n*. + Items are distributed such the lengths of the lists differ by at most + 1 item. + + >>> iterable = [1, 2, 3, 4, 5, 6, 7] + >>> n = 3 + >>> list(chunked_even(iterable, n)) # List lengths: 3, 2, 2 + [[1, 2, 3], [4, 5], [6, 7]] + >>> list(chunked(iterable, n)) # List lengths: 3, 3, 1 + [[1, 2, 3], [4, 5, 6], [7]] + + """ + + len_method = getattr(iterable, '__len__', None) + + if len_method is None: + return _chunked_even_online(iterable, n) + else: + return _chunked_even_finite(iterable, len_method(), n) + + +def _chunked_even_online(iterable, n): + buffer = [] + maxbuf = n + (n - 2) * (n - 1) + for x in iterable: + buffer.append(x) + if len(buffer) == maxbuf: + yield buffer[:n] + buffer = buffer[n:] + yield from _chunked_even_finite(buffer, len(buffer), n) + + +def _chunked_even_finite(iterable, N, n): + if N < 1: + return + + # Lists are either size `full_size <= n` or `partial_size = full_size - 1` + q, r = divmod(N, n) + num_lists = q + (1 if r > 0 else 0) + q, r = divmod(N, num_lists) + full_size = q + (1 if r > 0 else 0) + partial_size = full_size - 1 + num_full = N - partial_size * num_lists + num_partial = num_lists - num_full + + # Yield num_full lists of full_size + partial_start_idx = num_full * full_size + if full_size > 0: + for i in range(0, partial_start_idx, full_size): + yield list(islice(iterable, i, i + full_size)) + + # Yield num_partial lists of partial_size + if partial_size > 0: + for i in range( + partial_start_idx, + partial_start_idx + (num_partial * partial_size), + partial_size, + ): + yield list(islice(iterable, i, i + partial_size)) + + +def zip_broadcast(*objects, scalar_types=(str, bytes), strict=False): + """A version of :func:`zip` that "broadcasts" any scalar + (i.e., non-iterable) items into output tuples. + + >>> iterable_1 = [1, 2, 3] + >>> iterable_2 = ['a', 'b', 'c'] + >>> scalar = '_' + >>> list(zip_broadcast(iterable_1, iterable_2, scalar)) + [(1, 'a', '_'), (2, 'b', '_'), (3, 'c', '_')] + + The *scalar_types* keyword argument determines what types are considered + scalar. It is set to ``(str, bytes)`` by default. Set it to ``None`` to + treat strings and byte strings as iterable: + + >>> list(zip_broadcast('abc', 0, 'xyz', scalar_types=None)) + [('a', 0, 'x'), ('b', 0, 'y'), ('c', 0, 'z')] + + If the *strict* keyword argument is ``True``, then + ``UnequalIterablesError`` will be raised if any of the iterables have + different lengths. + """ + + def is_scalar(obj): + if scalar_types and isinstance(obj, scalar_types): + return True + try: + iter(obj) + except TypeError: + return True + else: + return False + + size = len(objects) + if not size: + return + + new_item = [None] * size + iterables, iterable_positions = [], [] + for i, obj in enumerate(objects): + if is_scalar(obj): + new_item[i] = obj + else: + iterables.append(iter(obj)) + iterable_positions.append(i) + + if not iterables: + yield tuple(objects) + return + + zipper = _zip_equal if strict else zip + for item in zipper(*iterables): + for i, new_item[i] in zip(iterable_positions, item): + pass + yield tuple(new_item) + + +def unique_in_window(iterable, n, key=None): + """Yield the items from *iterable* that haven't been seen recently. + *n* is the size of the lookback window. + + >>> iterable = [0, 1, 0, 2, 3, 0] + >>> n = 3 + >>> list(unique_in_window(iterable, n)) + [0, 1, 2, 3, 0] + + The *key* function, if provided, will be used to determine uniqueness: + + >>> list(unique_in_window('abAcda', 3, key=lambda x: x.lower())) + ['a', 'b', 'c', 'd', 'a'] + + The items in *iterable* must be hashable. + + """ + if n <= 0: + raise ValueError('n must be greater than 0') + + window = deque(maxlen=n) + counts = defaultdict(int) + use_key = key is not None + + for item in iterable: + if len(window) == n: + to_discard = window[0] + if counts[to_discard] == 1: + del counts[to_discard] + else: + counts[to_discard] -= 1 + + k = key(item) if use_key else item + if k not in counts: + yield item + counts[k] += 1 + window.append(k) + + +def duplicates_everseen(iterable, key=None): + """Yield duplicate elements after their first appearance. + + >>> list(duplicates_everseen('mississippi')) + ['s', 'i', 's', 's', 'i', 'p', 'i'] + >>> list(duplicates_everseen('AaaBbbCccAaa', str.lower)) + ['a', 'a', 'b', 'b', 'c', 'c', 'A', 'a', 'a'] + + This function is analagous to :func:`unique_everseen` and is subject to + the same performance considerations. + + """ + seen_set = set() + seen_list = [] + use_key = key is not None + + for element in iterable: + k = key(element) if use_key else element + try: + if k not in seen_set: + seen_set.add(k) + else: + yield element + except TypeError: + if k not in seen_list: + seen_list.append(k) + else: + yield element + + +def duplicates_justseen(iterable, key=None): + """Yields serially-duplicate elements after their first appearance. + + >>> list(duplicates_justseen('mississippi')) + ['s', 's', 'p'] + >>> list(duplicates_justseen('AaaBbbCccAaa', str.lower)) + ['a', 'a', 'b', 'b', 'c', 'c', 'a', 'a'] + + This function is analagous to :func:`unique_justseen`. + + """ + return flatten(g for _, g in groupby(iterable, key) for _ in g) + + +def minmax(iterable_or_value, *others, key=None, default=_marker): + """Returns both the smallest and largest items in an iterable + or the largest of two or more arguments. + + >>> minmax([3, 1, 5]) + (1, 5) + + >>> minmax(4, 2, 6) + (2, 6) + + If a *key* function is provided, it will be used to transform the input + items for comparison. + + >>> minmax([5, 30], key=str) # '30' sorts before '5' + (30, 5) + + If a *default* value is provided, it will be returned if there are no + input items. + + >>> minmax([], default=(0, 0)) + (0, 0) + + Otherwise ``ValueError`` is raised. + + This function is based on the + `recipe `__ by + Raymond Hettinger and takes care to minimize the number of comparisons + performed. + """ + iterable = (iterable_or_value, *others) if others else iterable_or_value + + it = iter(iterable) + + try: + lo = hi = next(it) + except StopIteration as e: + if default is _marker: + raise ValueError( + '`minmax()` argument is an empty iterable. ' + 'Provide a `default` value to suppress this error.' + ) from e + return default + + # Different branches depending on the presence of key. This saves a lot + # of unimportant copies which would slow the "key=None" branch + # significantly down. + if key is None: + for x, y in zip_longest(it, it, fillvalue=lo): + if y < x: + x, y = y, x + if x < lo: + lo = x + if hi < y: + hi = y + + else: + lo_key = hi_key = key(lo) + + for x, y in zip_longest(it, it, fillvalue=lo): + x_key, y_key = key(x), key(y) + + if y_key < x_key: + x, y, x_key, y_key = y, x, y_key, x_key + if x_key < lo_key: + lo, lo_key = x, x_key + if hi_key < y_key: + hi, hi_key = y, y_key + + return lo, hi + + +def constrained_batches( + iterable, max_size, max_count=None, get_len=len, strict=True +): + """Yield batches of items from *iterable* with a combined size limited by + *max_size*. + + >>> iterable = [b'12345', b'123', b'12345678', b'1', b'1', b'12', b'1'] + >>> list(constrained_batches(iterable, 10)) + [(b'12345', b'123'), (b'12345678', b'1', b'1'), (b'12', b'1')] + + If a *max_count* is supplied, the number of items per batch is also + limited: + + >>> iterable = [b'12345', b'123', b'12345678', b'1', b'1', b'12', b'1'] + >>> list(constrained_batches(iterable, 10, max_count = 2)) + [(b'12345', b'123'), (b'12345678', b'1'), (b'1', b'12'), (b'1',)] + + If a *get_len* function is supplied, use that instead of :func:`len` to + determine item size. + + If *strict* is ``True``, raise ``ValueError`` if any single item is bigger + than *max_size*. Otherwise, allow single items to exceed *max_size*. + """ + if max_size <= 0: + raise ValueError('maximum size must be greater than zero') + + batch = [] + batch_size = 0 + batch_count = 0 + for item in iterable: + item_len = get_len(item) + if strict and item_len > max_size: + raise ValueError('item size exceeds maximum size') + + reached_count = batch_count == max_count + reached_size = item_len + batch_size > max_size + if batch_count and (reached_size or reached_count): + yield tuple(batch) + batch.clear() + batch_size = 0 + batch_count = 0 + + batch.append(item) + batch_size += item_len + batch_count += 1 + + if batch: + yield tuple(batch) + + +def gray_product(*iterables): + """Like :func:`itertools.product`, but return tuples in an order such + that only one element in the generated tuple changes from one iteration + to the next. + + >>> list(gray_product('AB','CD')) + [('A', 'C'), ('B', 'C'), ('B', 'D'), ('A', 'D')] + + This function consumes all of the input iterables before producing output. + If any of the input iterables have fewer than two items, ``ValueError`` + is raised. + + For information on the algorithm, see + `this section `__ + of Donald Knuth's *The Art of Computer Programming*. + """ + all_iterables = tuple(tuple(x) for x in iterables) + iterable_count = len(all_iterables) + for iterable in all_iterables: + if len(iterable) < 2: + raise ValueError("each iterable must have two or more items") + + # This is based on "Algorithm H" from section 7.2.1.1, page 20. + # a holds the indexes of the source iterables for the n-tuple to be yielded + # f is the array of "focus pointers" + # o is the array of "directions" + a = [0] * iterable_count + f = list(range(iterable_count + 1)) + o = [1] * iterable_count + while True: + yield tuple(all_iterables[i][a[i]] for i in range(iterable_count)) + j = f[0] + f[0] = 0 + if j == iterable_count: + break + a[j] = a[j] + o[j] + if a[j] == 0 or a[j] == len(all_iterables[j]) - 1: + o[j] = -o[j] + f[j] = f[j + 1] + f[j + 1] = j + 1 + + +def partial_product(*iterables): + """Yields tuples containing one item from each iterator, with subsequent + tuples changing a single item at a time by advancing each iterator until it + is exhausted. This sequence guarantees every value in each iterable is + output at least once without generating all possible combinations. + + This may be useful, for example, when testing an expensive function. + + >>> list(partial_product('AB', 'C', 'DEF')) + [('A', 'C', 'D'), ('B', 'C', 'D'), ('B', 'C', 'E'), ('B', 'C', 'F')] + """ + + iterators = list(map(iter, iterables)) + + try: + prod = [next(it) for it in iterators] + except StopIteration: + return + yield tuple(prod) + + for i, it in enumerate(iterators): + for prod[i] in it: + yield tuple(prod) + + +def takewhile_inclusive(predicate, iterable): + """A variant of :func:`takewhile` that yields one additional element. + + >>> list(takewhile_inclusive(lambda x: x < 5, [1, 4, 6, 4, 1])) + [1, 4, 6] + + :func:`takewhile` would return ``[1, 4]``. + """ + for x in iterable: + if predicate(x): + yield x + else: + yield x + break + + +def outer_product(func, xs, ys, *args, **kwargs): + """A generalized outer product that applies a binary function to all + pairs of items. Returns a 2D matrix with ``len(xs)`` rows and ``len(ys)`` + columns. + Also accepts ``*args`` and ``**kwargs`` that are passed to ``func``. + + Multiplication table: + + >>> list(outer_product(mul, range(1, 4), range(1, 6))) + [(1, 2, 3, 4, 5), (2, 4, 6, 8, 10), (3, 6, 9, 12, 15)] + + Cross tabulation: + + >>> xs = ['A', 'B', 'A', 'A', 'B', 'B', 'A', 'A', 'B', 'B'] + >>> ys = ['X', 'X', 'X', 'Y', 'Z', 'Z', 'Y', 'Y', 'Z', 'Z'] + >>> rows = list(zip(xs, ys)) + >>> count_rows = lambda x, y: rows.count((x, y)) + >>> list(outer_product(count_rows, sorted(set(xs)), sorted(set(ys)))) + [(2, 3, 0), (1, 0, 4)] + + Usage with ``*args`` and ``**kwargs``: + + >>> animals = ['cat', 'wolf', 'mouse'] + >>> list(outer_product(min, animals, animals, key=len)) + [('cat', 'cat', 'cat'), ('cat', 'wolf', 'wolf'), ('cat', 'wolf', 'mouse')] + """ + ys = tuple(ys) + return batched( + starmap(lambda x, y: func(x, y, *args, **kwargs), product(xs, ys)), + n=len(ys), + ) diff --git a/shared/package-files/e9/e97c2f997876cc78d4145b13626a0163384051f646da1c2d74a47e60ecdc0c34/blob b/shared/package-files/e9/e97c2f997876cc78d4145b13626a0163384051f646da1c2d74a47e60ecdc0c34/blob new file mode 100644 index 0000000000000000000000000000000000000000..589172827f528799203cb3e93a4a013e07dc5ff8 --- /dev/null +++ b/shared/package-files/e9/e97c2f997876cc78d4145b13626a0163384051f646da1c2d74a47e60ecdc0c34/blob @@ -0,0 +1,178 @@ +""" Sketching-based Matrix Computations """ + +# Author: Jordi Montes +# August 28, 2017 + +import numpy as np + +from scipy._lib._util import (check_random_state, rng_integers, + _transition_to_rng) +from scipy.sparse import csc_matrix + +__all__ = ['clarkson_woodruff_transform'] + + +def cwt_matrix(n_rows, n_columns, rng=None): + r""" + Generate a matrix S which represents a Clarkson-Woodruff transform. + + Given the desired size of matrix, the method returns a matrix S of size + (n_rows, n_columns) where each column has all the entries set to 0 + except for one position which has been randomly set to +1 or -1 with + equal probability. + + Parameters + ---------- + n_rows : int + Number of rows of S + n_columns : int + Number of columns of S + rng : `numpy.random.Generator`, optional + Pseudorandom number generator state. When `rng` is None, a new + `numpy.random.Generator` is created using entropy from the + operating system. Types other than `numpy.random.Generator` are + passed to `numpy.random.default_rng` to instantiate a ``Generator``. + + + Returns + ------- + S : (n_rows, n_columns) csc_matrix + The returned matrix has ``n_columns`` nonzero entries. + + Notes + ----- + Given a matrix A, with probability at least 9/10, + .. math:: \|SA\| = (1 \pm \epsilon)\|A\| + Where the error epsilon is related to the size of S. + """ + rng = check_random_state(rng) + rows = rng_integers(rng, 0, n_rows, n_columns) + cols = np.arange(n_columns+1) + signs = rng.choice([1, -1], n_columns) + S = csc_matrix((signs, rows, cols), shape=(n_rows, n_columns)) + return S + + +@_transition_to_rng("seed", position_num=2) +def clarkson_woodruff_transform(input_matrix, sketch_size, rng=None): + r""" + Applies a Clarkson-Woodruff Transform/sketch to the input matrix. + + Given an input_matrix ``A`` of size ``(n, d)``, compute a matrix ``A'`` of + size (sketch_size, d) so that + + .. math:: \|Ax\| \approx \|A'x\| + + with high probability via the Clarkson-Woodruff Transform, otherwise + known as the CountSketch matrix. + + Parameters + ---------- + input_matrix : array_like + Input matrix, of shape ``(n, d)``. + sketch_size : int + Number of rows for the sketch. + rng : `numpy.random.Generator`, optional + Pseudorandom number generator state. When `rng` is None, a new + `numpy.random.Generator` is created using entropy from the + operating system. Types other than `numpy.random.Generator` are + passed to `numpy.random.default_rng` to instantiate a ``Generator``. + + Returns + ------- + A' : array_like + Sketch of the input matrix ``A``, of size ``(sketch_size, d)``. + + Notes + ----- + To make the statement + + .. math:: \|Ax\| \approx \|A'x\| + + precise, observe the following result which is adapted from the + proof of Theorem 14 of [2]_ via Markov's Inequality. If we have + a sketch size ``sketch_size=k`` which is at least + + .. math:: k \geq \frac{2}{\epsilon^2\delta} + + Then for any fixed vector ``x``, + + .. math:: \|Ax\| = (1\pm\epsilon)\|A'x\| + + with probability at least one minus delta. + + This implementation takes advantage of sparsity: computing + a sketch takes time proportional to ``A.nnz``. Data ``A`` which + is in ``scipy.sparse.csc_matrix`` format gives the quickest + computation time for sparse input. + + >>> import numpy as np + >>> from scipy import linalg + >>> from scipy import sparse + >>> rng = np.random.default_rng() + >>> n_rows, n_columns, density, sketch_n_rows = 15000, 100, 0.01, 200 + >>> A = sparse.rand(n_rows, n_columns, density=density, format='csc') + >>> B = sparse.rand(n_rows, n_columns, density=density, format='csr') + >>> C = sparse.rand(n_rows, n_columns, density=density, format='coo') + >>> D = rng.standard_normal((n_rows, n_columns)) + >>> SA = linalg.clarkson_woodruff_transform(A, sketch_n_rows) # fastest + >>> SB = linalg.clarkson_woodruff_transform(B, sketch_n_rows) # fast + >>> SC = linalg.clarkson_woodruff_transform(C, sketch_n_rows) # slower + >>> SD = linalg.clarkson_woodruff_transform(D, sketch_n_rows) # slowest + + That said, this method does perform well on dense inputs, just slower + on a relative scale. + + References + ---------- + .. [1] Kenneth L. Clarkson and David P. Woodruff. Low rank approximation + and regression in input sparsity time. In STOC, 2013. + .. [2] David P. Woodruff. Sketching as a tool for numerical linear algebra. + In Foundations and Trends in Theoretical Computer Science, 2014. + + Examples + -------- + Create a big dense matrix ``A`` for the example: + + >>> import numpy as np + >>> from scipy import linalg + >>> n_rows, n_columns = 15000, 100 + >>> rng = np.random.default_rng() + >>> A = rng.standard_normal((n_rows, n_columns)) + + Apply the transform to create a new matrix with 200 rows: + + >>> sketch_n_rows = 200 + >>> sketch = linalg.clarkson_woodruff_transform(A, sketch_n_rows, seed=rng) + >>> sketch.shape + (200, 100) + + Now with high probability, the true norm is close to the sketched norm + in absolute value. + + >>> linalg.norm(A) + 1224.2812927123198 + >>> linalg.norm(sketch) + 1226.518328407333 + + Similarly, applying our sketch preserves the solution to a linear + regression of :math:`\min \|Ax - b\|`. + + >>> b = rng.standard_normal(n_rows) + >>> x = linalg.lstsq(A, b)[0] + >>> Ab = np.hstack((A, b.reshape(-1, 1))) + >>> SAb = linalg.clarkson_woodruff_transform(Ab, sketch_n_rows, seed=rng) + >>> SA, Sb = SAb[:, :-1], SAb[:, -1] + >>> x_sketched = linalg.lstsq(SA, Sb)[0] + + As with the matrix norm example, ``linalg.norm(A @ x - b)`` is close + to ``linalg.norm(A @ x_sketched - b)`` with high probability. + + >>> linalg.norm(A @ x - b) + 122.83242365433877 + >>> linalg.norm(A @ x_sketched - b) + 166.58473879945151 + + """ + S = cwt_matrix(sketch_size, input_matrix.shape[0], rng=rng) + return S.dot(input_matrix) diff --git a/shared/package-files/e9/e97dd6d3be6e117e73b102a41f76de03d9ec48d91ba414b051d9388d16db8b6d/blob b/shared/package-files/e9/e97dd6d3be6e117e73b102a41f76de03d9ec48d91ba414b051d9388d16db8b6d/blob new file mode 100644 index 0000000000000000000000000000000000000000..d27d3a3d56664846940721ca7d05a5f534dd9b87 --- /dev/null +++ b/shared/package-files/e9/e97dd6d3be6e117e73b102a41f76de03d9ec48d91ba414b051d9388d16db8b6d/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API retains_grad { + using schema = bool (const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::retains_grad") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "retains_grad(Tensor self) -> bool") + static bool call(const at::Tensor & self); + static bool redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e9/e97f7210ff31034126ad5a3de9f1b4c3842c19f69faa0cbddf7dea8a7b12e185/blob b/shared/package-files/e9/e97f7210ff31034126ad5a3de9f1b4c3842c19f69faa0cbddf7dea8a7b12e185/blob new file mode 100644 index 0000000000000000000000000000000000000000..e3582056ead0160e2537e83e6a9c014f9b170092 --- /dev/null +++ b/shared/package-files/e9/e97f7210ff31034126ad5a3de9f1b4c3842c19f69faa0cbddf7dea8a7b12e185/blob @@ -0,0 +1,2648 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "arrow/result.h" +#include "arrow/type_fwd.h" // IWYU pragma: export +#include "arrow/util/checked_cast.h" +#include "arrow/util/endian.h" +#include "arrow/util/macros.h" +#include "arrow/util/visibility.h" +#include "arrow/visitor.h" // IWYU pragma: keep + +namespace arrow { +namespace detail { + +/// \defgroup numeric-datatypes Datatypes for numeric data +/// @{ +/// @} + +/// \defgroup binary-datatypes Datatypes for binary/string data +/// @{ +/// @} + +/// \defgroup temporal-datatypes Datatypes for temporal data +/// @{ +/// @} + +/// \defgroup nested-datatypes Datatypes for nested data +/// @{ +/// @} + +class ARROW_EXPORT Fingerprintable { + public: + virtual ~Fingerprintable(); + + const std::string& fingerprint() const { + auto p = fingerprint_.load(); + if (ARROW_PREDICT_TRUE(p != NULLPTR)) { + return *p; + } + return LoadFingerprintSlow(); + } + + const std::string& metadata_fingerprint() const { + auto p = metadata_fingerprint_.load(); + if (ARROW_PREDICT_TRUE(p != NULLPTR)) { + return *p; + } + return LoadMetadataFingerprintSlow(); + } + + protected: + const std::string& LoadFingerprintSlow() const; + const std::string& LoadMetadataFingerprintSlow() const; + + virtual std::string ComputeFingerprint() const = 0; + virtual std::string ComputeMetadataFingerprint() const = 0; + + mutable std::atomic fingerprint_{NULLPTR}; + mutable std::atomic metadata_fingerprint_{NULLPTR}; +}; + +} // namespace detail + +/// EXPERIMENTAL: Layout specification for a data type +struct ARROW_EXPORT DataTypeLayout { + enum BufferKind { FIXED_WIDTH, VARIABLE_WIDTH, BITMAP, ALWAYS_NULL }; + + /// Layout specification for a single data type buffer + struct BufferSpec { + BufferKind kind; + int64_t byte_width; // For FIXED_WIDTH + + bool operator==(const BufferSpec& other) const { + return kind == other.kind && + (kind != FIXED_WIDTH || byte_width == other.byte_width); + } + bool operator!=(const BufferSpec& other) const { return !(*this == other); } + }; + + static BufferSpec FixedWidth(int64_t w) { return BufferSpec{FIXED_WIDTH, w}; } + static BufferSpec VariableWidth() { return BufferSpec{VARIABLE_WIDTH, -1}; } + static BufferSpec Bitmap() { return BufferSpec{BITMAP, -1}; } + static BufferSpec AlwaysNull() { return BufferSpec{ALWAYS_NULL, -1}; } + + /// A vector of buffer layout specifications, one for each expected buffer + std::vector buffers; + /// Whether this type expects an associated dictionary array. + bool has_dictionary = false; + /// If this is provided, the number of buffers expected is only lower-bounded by + /// buffers.size(). Buffers beyond this lower bound are expected to conform to + /// variadic_spec. + std::optional variadic_spec; + + explicit DataTypeLayout(std::vector buffers, + std::optional variadic_spec = {}) + : buffers(std::move(buffers)), variadic_spec(variadic_spec) {} +}; + +/// \brief Base class for all data types +/// +/// Data types in this library are all *logical*. They can be expressed as +/// either a primitive physical type (bytes or bits of some fixed size), a +/// nested type consisting of other data types, or another data type (e.g. a +/// timestamp encoded as an int64). +/// +/// Simple datatypes may be entirely described by their Type::type id, but +/// complex datatypes are usually parametric. +class ARROW_EXPORT DataType : public std::enable_shared_from_this, + public detail::Fingerprintable, + public util::EqualityComparable { + public: + explicit DataType(Type::type id) : detail::Fingerprintable(), id_(id) {} + ~DataType() override; + + /// \brief Return whether the types are equal + /// + /// Types that are logically convertible from one to another (e.g. List + /// and Binary) are NOT equal. + bool Equals(const DataType& other, bool check_metadata = false) const; + + /// \brief Return whether the types are equal + bool Equals(const std::shared_ptr& other, bool check_metadata = false) const; + + /// \brief Return the child field at index i. + const std::shared_ptr& field(int i) const { return children_[i]; } + + /// \brief Return the children fields associated with this type. + const FieldVector& fields() const { return children_; } + + /// \brief Return the number of children fields associated with this type. + int num_fields() const { return static_cast(children_.size()); } + + /// \brief Apply the TypeVisitor::Visit() method specialized to the data type + Status Accept(TypeVisitor* visitor) const; + + /// \brief A string representation of the type, including any children + virtual std::string ToString(bool show_metadata = false) const = 0; + + /// \brief Return hash value (excluding metadata in child fields) + size_t Hash() const; + + /// \brief A string name of the type, omitting any child fields + /// + /// \since 0.7.0 + virtual std::string name() const = 0; + + /// \brief Return the data type layout. Children are not included. + /// + /// \note Experimental API + virtual DataTypeLayout layout() const = 0; + + /// \brief Return the type category + constexpr Type::type id() const { return id_; } + + /// \brief Return the type category of the storage type + virtual Type::type storage_id() const { return id_; } + + /// \brief Returns the type's fixed byte width, if any. Returns -1 + /// for non-fixed-width types, and should only be used for + /// subclasses of FixedWidthType + virtual int32_t byte_width() const { + int32_t num_bits = this->bit_width(); + return num_bits > 0 ? num_bits / 8 : -1; + } + + /// \brief Returns the type's fixed bit width, if any. Returns -1 + /// for non-fixed-width types, and should only be used for + /// subclasses of FixedWidthType + virtual int bit_width() const { return -1; } + + // \brief EXPERIMENTAL: Enable retrieving shared_ptr from a const + // context. + std::shared_ptr GetSharedPtr() const { + return const_cast(this)->shared_from_this(); + } + + protected: + // Dummy version that returns a null string (indicating not implemented). + // Subclasses should override for fast equality checks. + std::string ComputeFingerprint() const override; + + // Generic versions that works for all regular types, nested or not. + std::string ComputeMetadataFingerprint() const override; + + Type::type id_; + FieldVector children_; + + private: + ARROW_DISALLOW_COPY_AND_ASSIGN(DataType); +}; + +/// \brief EXPERIMENTAL: Container for a type pointer which can hold a +/// dynamically created shared_ptr if it needs to. +struct ARROW_EXPORT TypeHolder { + const DataType* type = NULLPTR; + std::shared_ptr owned_type; + + TypeHolder() = default; + TypeHolder(const TypeHolder& other) = default; + TypeHolder& operator=(const TypeHolder& other) = default; + TypeHolder(TypeHolder&& other) = default; + TypeHolder& operator=(TypeHolder&& other) = default; + + TypeHolder(std::shared_ptr owned_type) // NOLINT implicit construction + : type(owned_type.get()), owned_type(std::move(owned_type)) {} + + TypeHolder(const DataType* type) // NOLINT implicit construction + : type(type) {} + + Type::type id() const { return this->type->id(); } + + std::shared_ptr GetSharedPtr() const { + return this->type != NULLPTR ? this->type->GetSharedPtr() : NULLPTR; + } + + const DataType& operator*() const { return *this->type; } + + operator bool() const { return this->type != NULLPTR; } + + bool operator==(const TypeHolder& other) const { + if (type == other.type) return true; + if (type == NULLPTR || other.type == NULLPTR) return false; + return type->Equals(*other.type); + } + + bool operator==(decltype(NULLPTR)) const { return this->type == NULLPTR; } + + bool operator==(const DataType& other) const { + if (this->type == NULLPTR) return false; + return other.Equals(*this->type); + } + + bool operator!=(const DataType& other) const { return !(*this == other); } + + bool operator==(const std::shared_ptr& other) const { + return *this == *other; + } + + bool operator!=(const TypeHolder& other) const { return !(*this == other); } + + std::string ToString(bool show_metadata = false) const { + return this->type ? this->type->ToString(show_metadata) : ""; + } + + static std::string ToString(const std::vector&, bool show_metadata = false); + + static std::vector FromTypes( + const std::vector>& types); +}; + +ARROW_EXPORT +std::ostream& operator<<(std::ostream& os, const DataType& type); + +ARROW_EXPORT +std::ostream& operator<<(std::ostream& os, const TypeHolder& type); + +/// \brief Return the compatible physical data type +/// +/// Some types may have distinct logical meanings but the exact same physical +/// representation. For example, TimestampType has Int64Type as a physical +/// type (defined as TimestampType::PhysicalType). +/// +/// The return value is as follows: +/// - if a `PhysicalType` alias exists in the concrete type class, return +/// an instance of `PhysicalType`. +/// - otherwise, return the input type itself. +ARROW_EXPORT +std::shared_ptr GetPhysicalType(const std::shared_ptr& type); + +/// \brief Base class for all fixed-width data types +class ARROW_EXPORT FixedWidthType : public DataType { + public: + using DataType::DataType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~FixedWidthType() override; +}; + +/// \brief Base class for all data types representing primitive values +class ARROW_EXPORT PrimitiveCType : public FixedWidthType { + public: + using FixedWidthType::FixedWidthType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~PrimitiveCType() override; +}; + +/// \brief Base class for all numeric data types +class ARROW_EXPORT NumberType : public PrimitiveCType { + public: + using PrimitiveCType::PrimitiveCType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~NumberType() override; +}; + +/// \brief Base class for all integral data types +class ARROW_EXPORT IntegerType : public NumberType { + public: + using NumberType::NumberType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~IntegerType() override; + virtual bool is_signed() const = 0; +}; + +/// \brief Base class for all floating-point data types +class ARROW_EXPORT FloatingPointType : public NumberType { + public: + using NumberType::NumberType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~FloatingPointType() override; + enum Precision { HALF, SINGLE, DOUBLE }; + virtual Precision precision() const = 0; +}; + +/// \brief Base class for all parametric data types +class ParametricType {}; + +class ARROW_EXPORT NestedType : public DataType, public ParametricType { + public: + using DataType::DataType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~NestedType() override; +}; + +/// \brief The combination of a field name and data type, with optional metadata +/// +/// Fields are used to describe the individual constituents of a +/// nested DataType or a Schema. +/// +/// A field's metadata is represented by a KeyValueMetadata instance, +/// which holds arbitrary key-value pairs. +class ARROW_EXPORT Field : public detail::Fingerprintable, + public util::EqualityComparable { + public: + Field(std::string name, std::shared_ptr type, bool nullable = true, + std::shared_ptr metadata = NULLPTR) + : detail::Fingerprintable(), + name_(std::move(name)), + type_(std::move(type)), + nullable_(nullable), + metadata_(std::move(metadata)) {} + + ~Field() override; + + /// \brief Return the field's attached metadata + std::shared_ptr metadata() const { return metadata_; } + + /// \brief Return whether the field has non-empty metadata + bool HasMetadata() const; + + /// \brief Return a copy of this field with the given metadata attached to it + std::shared_ptr WithMetadata( + const std::shared_ptr& metadata) const; + + /// \brief EXPERIMENTAL: Return a copy of this field with the given metadata + /// merged with existing metadata (any colliding keys will be overridden by + /// the passed metadata) + std::shared_ptr WithMergedMetadata( + const std::shared_ptr& metadata) const; + + /// \brief Return a copy of this field without any metadata attached to it + std::shared_ptr RemoveMetadata() const; + + /// \brief Return a copy of this field with the replaced type. + std::shared_ptr WithType(const std::shared_ptr& type) const; + + /// \brief Return a copy of this field with the replaced name. + std::shared_ptr WithName(const std::string& name) const; + + /// \brief Return a copy of this field with the replaced nullability. + std::shared_ptr WithNullable(bool nullable) const; + + /// \brief Options that control the behavior of `MergeWith`. + /// Options are to be added to allow type conversions, including integer + /// widening, promotion from integer to float, or conversion to or from boolean. + struct ARROW_EXPORT MergeOptions : public util::ToStringOstreamable { + /// If true, a Field of NullType can be unified with a Field of another type. + /// The unified field will be of the other type and become nullable. + /// Nullability will be promoted to the looser option (nullable if one is not + /// nullable). + bool promote_nullability = true; + + /// Allow a decimal to be unified with another decimal of the same + /// width, adjusting scale and precision as appropriate. May fail + /// if the adjustment is not possible. + bool promote_decimal = false; + + /// Allow a decimal to be promoted to a float. The float type will + /// not itself be promoted (e.g. Decimal128 + Float32 = Float32). + bool promote_decimal_to_float = false; + + /// Allow an integer to be promoted to a decimal. + /// + /// May fail if the decimal has insufficient precision to + /// accommodate the integer (see promote_numeric_width). + bool promote_integer_to_decimal = false; + + /// Allow an integer of a given bit width to be promoted to a + /// float; the result will be a float of an equal or greater bit + /// width to both of the inputs. Examples: + /// - int8 + float32 = float32 + /// - int32 + float32 = float64 + /// - int32 + float64 = float64 + /// Because an int32 cannot always be represented exactly in the + /// 24 bits of a float32 mantissa. + bool promote_integer_to_float = false; + + /// Allow an unsigned integer of a given bit width to be promoted + /// to a signed integer that fits into the signed type: + /// uint + int16 = int16 + /// When widening is needed, set promote_numeric_width to true: + /// uint16 + int16 = int32 + bool promote_integer_sign = false; + + /// Allow an integer, float, or decimal of a given bit width to be + /// promoted to an equivalent type of a greater bit width. + bool promote_numeric_width = false; + + /// Allow strings to be promoted to binary types. Promotion of fixed size + /// binary types to variable sized formats, and binary to large binary, + /// and string to large string. + bool promote_binary = false; + + /// Second to millisecond, Time32 to Time64, Time32(SECOND) to Time32(MILLI), etc + bool promote_temporal_unit = false; + + /// Allow promotion from a list to a large-list and from a fixed-size list to a + /// variable sized list + bool promote_list = false; + + /// Unify dictionary index types and dictionary value types. + bool promote_dictionary = false; + + /// Allow merging ordered and non-ordered dictionaries. + /// The result will be ordered if and only if both inputs + /// are ordered. + bool promote_dictionary_ordered = false; + + /// Get default options. Only NullType will be merged with other types. + static MergeOptions Defaults() { return MergeOptions(); } + /// Get permissive options. All options are enabled, except + /// promote_dictionary_ordered. + static MergeOptions Permissive(); + /// Get a human-readable representation of the options. + std::string ToString() const; + }; + + /// \brief Merge the current field with a field of the same name. + /// + /// The two fields must be compatible, i.e: + /// - have the same name + /// - have the same type, or of compatible types according to `options`. + /// + /// The metadata of the current field is preserved; the metadata of the other + /// field is discarded. + Result> MergeWith( + const Field& other, MergeOptions options = MergeOptions::Defaults()) const; + Result> MergeWith( + const std::shared_ptr& other, + MergeOptions options = MergeOptions::Defaults()) const; + + FieldVector Flatten() const; + + /// \brief Indicate if fields are equals. + /// + /// \param[in] other field to check equality with. + /// \param[in] check_metadata controls if it should check for metadata + /// equality. + /// + /// \return true if fields are equal, false otherwise. + bool Equals(const Field& other, bool check_metadata = false) const; + bool Equals(const std::shared_ptr& other, bool check_metadata = false) const; + + /// \brief Indicate if fields are compatibles. + /// + /// See the criteria of MergeWith. + /// + /// \return true if fields are compatible, false otherwise. + bool IsCompatibleWith(const Field& other) const; + bool IsCompatibleWith(const std::shared_ptr& other) const; + + /// \brief Return a string representation ot the field + /// \param[in] show_metadata when true, if KeyValueMetadata is non-empty, + /// print keys and values in the output + std::string ToString(bool show_metadata = false) const; + + /// \brief Return the field name + const std::string& name() const { return name_; } + /// \brief Return the field data type + const std::shared_ptr& type() const { return type_; } + /// \brief Return whether the field is nullable + bool nullable() const { return nullable_; } + + std::shared_ptr Copy() const; + + private: + std::string ComputeFingerprint() const override; + std::string ComputeMetadataFingerprint() const override; + + // Field name + std::string name_; + + // The field's data type + std::shared_ptr type_; + + // Fields can be nullable + bool nullable_; + + // The field's metadata, if any + std::shared_ptr metadata_; + + ARROW_DISALLOW_COPY_AND_ASSIGN(Field); +}; + +ARROW_EXPORT void PrintTo(const Field& field, std::ostream* os); + +namespace detail { + +template +class CTypeImpl : public BASE { + public: + static constexpr Type::type type_id = TYPE_ID; + using c_type = C_TYPE; + using PhysicalType = DERIVED; + + CTypeImpl() : BASE(TYPE_ID) {} + + int bit_width() const override { return static_cast(sizeof(C_TYPE) * CHAR_BIT); } + + DataTypeLayout layout() const override { + return DataTypeLayout( + {DataTypeLayout::Bitmap(), DataTypeLayout::FixedWidth(sizeof(C_TYPE))}); + } + + std::string name() const override { return DERIVED::type_name(); } + + std::string ToString(bool show_metadata = false) const override { return this->name(); } +}; + +template +constexpr Type::type CTypeImpl::type_id; + +template +class IntegerTypeImpl : public detail::CTypeImpl { + bool is_signed() const override { return std::is_signed::value; } +}; + +} // namespace detail + +/// Concrete type class for always-null data +class ARROW_EXPORT NullType : public DataType { + public: + static constexpr Type::type type_id = Type::NA; + + static constexpr const char* type_name() { return "null"; } + + NullType() : DataType(Type::NA) {} + + std::string ToString(bool show_metadata = false) const override; + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::AlwaysNull()}); + } + + std::string name() const override { return "null"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for boolean data +class ARROW_EXPORT BooleanType + : public detail::CTypeImpl { + public: + static constexpr const char* type_name() { return "bool"; } + + // BooleanType within arrow use a single bit instead of the C 8-bits layout. + int bit_width() const final { return 1; } + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap(), DataTypeLayout::Bitmap()}); + } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \addtogroup numeric-datatypes +/// +/// @{ + +/// Concrete type class for unsigned 8-bit integer data +class ARROW_EXPORT UInt8Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "uint8"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for signed 8-bit integer data +class ARROW_EXPORT Int8Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "int8"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for unsigned 16-bit integer data +class ARROW_EXPORT UInt16Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "uint16"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for signed 16-bit integer data +class ARROW_EXPORT Int16Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "int16"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for unsigned 32-bit integer data +class ARROW_EXPORT UInt32Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "uint32"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for signed 32-bit integer data +class ARROW_EXPORT Int32Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "int32"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for unsigned 64-bit integer data +class ARROW_EXPORT UInt64Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "uint64"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for signed 64-bit integer data +class ARROW_EXPORT Int64Type + : public detail::IntegerTypeImpl { + public: + static constexpr const char* type_name() { return "int64"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for 16-bit floating-point data +class ARROW_EXPORT HalfFloatType + : public detail::CTypeImpl { + public: + Precision precision() const override; + static constexpr const char* type_name() { return "halffloat"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for 32-bit floating-point data (C "float") +class ARROW_EXPORT FloatType + : public detail::CTypeImpl { + public: + Precision precision() const override; + static constexpr const char* type_name() { return "float"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for 64-bit floating-point data (C "double") +class ARROW_EXPORT DoubleType + : public detail::CTypeImpl { + public: + Precision precision() const override; + static constexpr const char* type_name() { return "double"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// @} + +/// \brief Base class for all variable-size binary data types +class ARROW_EXPORT BaseBinaryType : public DataType { + public: + using DataType::DataType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~BaseBinaryType() override; +}; + +constexpr int64_t kBinaryMemoryLimit = std::numeric_limits::max() - 1; + +/// \addtogroup binary-datatypes +/// +/// @{ + +/// \brief Concrete type class for variable-size binary data +class ARROW_EXPORT BinaryType : public BaseBinaryType { + public: + static constexpr Type::type type_id = Type::BINARY; + static constexpr bool is_utf8 = false; + using offset_type = int32_t; + using PhysicalType = BinaryType; + + static constexpr const char* type_name() { return "binary"; } + + BinaryType() : BinaryType(Type::BINARY) {} + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap(), + DataTypeLayout::FixedWidth(sizeof(offset_type)), + DataTypeLayout::VariableWidth()}); + } + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "binary"; } + + protected: + std::string ComputeFingerprint() const override; + + // Allow subclasses like StringType to change the logical type. + explicit BinaryType(Type::type logical_type) : BaseBinaryType(logical_type) {} +}; + +/// \brief Concrete type class for variable-size binary view data +class ARROW_EXPORT BinaryViewType : public DataType { + public: + static constexpr Type::type type_id = Type::BINARY_VIEW; + static constexpr bool is_utf8 = false; + using PhysicalType = BinaryViewType; + + static constexpr int kSize = 16; + static constexpr int kInlineSize = 12; + static constexpr int kPrefixSize = 4; + + /// Variable length string or binary with inline optimization for small values (12 bytes + /// or fewer). This is similar to std::string_view except limited in size to INT32_MAX + /// and at least the first four bytes of the string are copied inline (accessible + /// without pointer dereference). This inline prefix allows failing comparisons early. + /// Furthermore when dealing with short strings the CPU cache working set is reduced + /// since many can be inline. + /// + /// This union supports two states: + /// + /// - Entirely inlined string data + /// \code{.unparsed} + /// |----|--------------| + /// ^ ^ + /// | | + /// size in-line string data, zero padded + /// \endcode + /// + /// - Reference into a buffer + /// \code{.unparsed} + /// |----|----|----|----| + /// ^ ^ ^ ^ + /// | | | | + /// size | | `------. + /// prefix | | + /// buffer index | + /// offset in buffer + /// \endcode + /// + /// Adapted from TU Munich's UmbraDB [1], Velox, DuckDB. + /// + /// [1]: https://db.in.tum.de/~freitag/papers/p29-neumann-cidr20.pdf + /// + /// Alignment to 64 bits enables an aligned load of the size and prefix into + /// a single 64 bit integer, which is useful to the comparison fast path. + union alignas(int64_t) c_type { + struct { + int32_t size; + std::array data; + } inlined; + + struct { + int32_t size; + std::array prefix; + int32_t buffer_index; + int32_t offset; + } ref; + + /// The number of bytes viewed. + int32_t size() const { + // Size is in the common initial subsequence of each member of the union, + // so accessing `inlined.size` is legal even if another member is active. + return inlined.size; + } + + /// True if the view's data is entirely stored inline. + bool is_inline() const { return size() <= kInlineSize; } + + /// Return a pointer to the inline data of a view. + /// + /// For inline views, this points to the entire data of the view. + /// For other views, this points to the 4 byte prefix. + const uint8_t* inline_data() const& { + // Since `ref.prefix` has the same address as `inlined.data`, + // the branch will be trivially optimized out. + return is_inline() ? inlined.data.data() : ref.prefix.data(); + } + const uint8_t* inline_data() && = delete; + }; + static_assert(sizeof(c_type) == kSize); + static_assert(std::is_trivial_v); + + static constexpr const char* type_name() { return "binary_view"; } + + BinaryViewType() : BinaryViewType(Type::BINARY_VIEW) {} + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap(), DataTypeLayout::FixedWidth(kSize)}, + DataTypeLayout::VariableWidth()); + } + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "binary_view"; } + + protected: + std::string ComputeFingerprint() const override; + + // Allow subclasses like StringType to change the logical type. + explicit BinaryViewType(Type::type logical_type) : DataType(logical_type) {} +}; + +/// \brief Concrete type class for large variable-size binary data +class ARROW_EXPORT LargeBinaryType : public BaseBinaryType { + public: + static constexpr Type::type type_id = Type::LARGE_BINARY; + static constexpr bool is_utf8 = false; + using offset_type = int64_t; + using PhysicalType = LargeBinaryType; + + static constexpr const char* type_name() { return "large_binary"; } + + LargeBinaryType() : LargeBinaryType(Type::LARGE_BINARY) {} + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap(), + DataTypeLayout::FixedWidth(sizeof(offset_type)), + DataTypeLayout::VariableWidth()}); + } + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "large_binary"; } + + protected: + std::string ComputeFingerprint() const override; + + // Allow subclasses like LargeStringType to change the logical type. + explicit LargeBinaryType(Type::type logical_type) : BaseBinaryType(logical_type) {} +}; + +/// \brief Concrete type class for variable-size string data, utf8-encoded +class ARROW_EXPORT StringType : public BinaryType { + public: + static constexpr Type::type type_id = Type::STRING; + static constexpr bool is_utf8 = true; + using PhysicalType = BinaryType; + + static constexpr const char* type_name() { return "utf8"; } + + StringType() : BinaryType(Type::STRING) {} + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "utf8"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \brief Concrete type class for variable-size string data, utf8-encoded +class ARROW_EXPORT StringViewType : public BinaryViewType { + public: + static constexpr Type::type type_id = Type::STRING_VIEW; + static constexpr bool is_utf8 = true; + using PhysicalType = BinaryViewType; + + static constexpr const char* type_name() { return "utf8_view"; } + + StringViewType() : BinaryViewType(Type::STRING_VIEW) {} + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "utf8_view"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \brief Concrete type class for large variable-size string data, utf8-encoded +class ARROW_EXPORT LargeStringType : public LargeBinaryType { + public: + static constexpr Type::type type_id = Type::LARGE_STRING; + static constexpr bool is_utf8 = true; + using PhysicalType = LargeBinaryType; + + static constexpr const char* type_name() { return "large_utf8"; } + + LargeStringType() : LargeBinaryType(Type::LARGE_STRING) {} + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "large_utf8"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \brief Concrete type class for fixed-size binary data +class ARROW_EXPORT FixedSizeBinaryType : public FixedWidthType, public ParametricType { + public: + static constexpr Type::type type_id = Type::FIXED_SIZE_BINARY; + static constexpr bool is_utf8 = false; + + static constexpr const char* type_name() { return "fixed_size_binary"; } + + explicit FixedSizeBinaryType(int32_t byte_width) + : FixedWidthType(Type::FIXED_SIZE_BINARY), byte_width_(byte_width) {} + explicit FixedSizeBinaryType(int32_t byte_width, Type::type override_type_id) + : FixedWidthType(override_type_id), byte_width_(byte_width) {} + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "fixed_size_binary"; } + + DataTypeLayout layout() const override { + return DataTypeLayout( + {DataTypeLayout::Bitmap(), DataTypeLayout::FixedWidth(byte_width())}); + } + + int byte_width() const override { return byte_width_; } + + int bit_width() const override; + + // Validating constructor + static Result> Make(int32_t byte_width); + + protected: + std::string ComputeFingerprint() const override; + + int32_t byte_width_; +}; + +/// @} + +/// \addtogroup numeric-datatypes +/// +/// @{ + +/// \brief Base type class for (fixed-size) decimal data +class ARROW_EXPORT DecimalType : public FixedSizeBinaryType { + public: + explicit DecimalType(Type::type type_id, int32_t byte_width, int32_t precision, + int32_t scale) + : FixedSizeBinaryType(byte_width, type_id), precision_(precision), scale_(scale) {} + + /// Constructs concrete decimal types + static Result> Make(Type::type type_id, int32_t precision, + int32_t scale); + + int32_t precision() const { return precision_; } + int32_t scale() const { return scale_; } + + /// \brief Returns the number of bytes needed for precision. + /// + /// precision must be >= 1 + static int32_t DecimalSize(int32_t precision); + + protected: + std::string ComputeFingerprint() const override; + + int32_t precision_; + int32_t scale_; +}; + +/// \brief Concrete type class for 32-bit decimal data +/// +/// Arrow decimals are fixed-point decimal numbers encoded as a scaled +/// integer. The precision is the number of significant digits that the +/// decimal type can represent; the scale is the number of digits after +/// the decimal point (note the scale can be negative). +/// +/// As an example, `Decimal32Type(7, 3)` can exactly represent the numbers +/// 1234.567 and -1234.567 (encoded internally as the 32-bit integers +/// 1234567 and -1234567, respectively), but neither 12345.67 nor 123.4567. +/// +/// Decimal32Type has a maximum precision of 9 significant digits +/// (also available as Decimal32Type::kMaxPrecision). +/// If higher precision is needed, consider using Decimal64Type, +/// Decimal128Type or Decimal256Type. +class ARROW_EXPORT Decimal32Type : public DecimalType { + public: + static constexpr Type::type type_id = Type::DECIMAL32; + + static constexpr const char* type_name() { return "decimal32"; } + + /// Decimal32Type constructor that aborts on invalid input. + explicit Decimal32Type(int32_t precision, int32_t scale); + + /// Decimal32Type constructor that returns an error on invalid input + static Result> Make(int32_t precision, int32_t scale); + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "decimal32"; } + + static constexpr int32_t kMinPrecision = 1; + static constexpr int32_t kMaxPrecision = 9; + static constexpr int32_t kByteWidth = 4; +}; + +/// \brief Concrete type class for 64-bit decimal data +/// +/// Arrow decimals are fixed-point decimal numbers encoded as a scaled +/// integer. The precision is the number of significant digits that the +/// decimal type can represent; the scale is the number of digits after +/// the decimal point (note the scale can be negative). +/// +/// As an example, `Decimal64Type(7, 3)` can exactly represent the numbers +/// 1234.567 and -1234.567 (encoded internally as the 64-bit integers +/// 1234567 and -1234567, respectively), but neither 12345.67 nor 123.4567. +/// +/// Decimal64Type has a maximum precision of 18 significant digits +/// (also available as Decimal64Type::kMaxPrecision). +/// If higher precision is needed, consider using Decimal128Type or +/// Decimal256Type. +class ARROW_EXPORT Decimal64Type : public DecimalType { + public: + static constexpr Type::type type_id = Type::DECIMAL64; + + static constexpr const char* type_name() { return "decimal64"; } + + /// Decimal32Type constructor that aborts on invalid input. + explicit Decimal64Type(int32_t precision, int32_t scale); + + /// Decimal32Type constructor that returns an error on invalid input + static Result> Make(int32_t precision, int32_t scale); + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "decimal64"; } + + static constexpr int32_t kMinPrecision = 1; + static constexpr int32_t kMaxPrecision = 18; + static constexpr int32_t kByteWidth = 8; +}; + +/// \brief Concrete type class for 128-bit decimal data +/// +/// Arrow decimals are fixed-point decimal numbers encoded as a scaled +/// integer. The precision is the number of significant digits that the +/// decimal type can represent; the scale is the number of digits after +/// the decimal point (note the scale can be negative). +/// +/// As an example, `Decimal128Type(7, 3)` can exactly represent the numbers +/// 1234.567 and -1234.567 (encoded internally as the 128-bit integers +/// 1234567 and -1234567, respectively), but neither 12345.67 nor 123.4567. +/// +/// Decimal128Type has a maximum precision of 38 significant digits +/// (also available as Decimal128Type::kMaxPrecision). +/// If higher precision is needed, consider using Decimal256Type. +class ARROW_EXPORT Decimal128Type : public DecimalType { + public: + static constexpr Type::type type_id = Type::DECIMAL128; + + static constexpr const char* type_name() { return "decimal128"; } + + /// Decimal128Type constructor that aborts on invalid input. + explicit Decimal128Type(int32_t precision, int32_t scale); + + /// Decimal128Type constructor that returns an error on invalid input. + static Result> Make(int32_t precision, int32_t scale); + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "decimal128"; } + + static constexpr int32_t kMinPrecision = 1; + static constexpr int32_t kMaxPrecision = 38; + static constexpr int32_t kByteWidth = 16; +}; + +/// \brief Concrete type class for 256-bit decimal data +/// +/// Arrow decimals are fixed-point decimal numbers encoded as a scaled +/// integer. The precision is the number of significant digits that the +/// decimal type can represent; the scale is the number of digits after +/// the decimal point (note the scale can be negative). +/// +/// Decimal256Type has a maximum precision of 76 significant digits. +/// (also available as Decimal256Type::kMaxPrecision). +/// +/// For most use cases, the maximum precision offered by Decimal128Type +/// is sufficient, and it will result in a more compact and more efficient +/// encoding. +class ARROW_EXPORT Decimal256Type : public DecimalType { + public: + static constexpr Type::type type_id = Type::DECIMAL256; + + static constexpr const char* type_name() { return "decimal256"; } + + /// Decimal256Type constructor that aborts on invalid input. + explicit Decimal256Type(int32_t precision, int32_t scale); + + /// Decimal256Type constructor that returns an error on invalid input. + static Result> Make(int32_t precision, int32_t scale); + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "decimal256"; } + + static constexpr int32_t kMinPrecision = 1; + static constexpr int32_t kMaxPrecision = 76; + static constexpr int32_t kByteWidth = 32; +}; + +/// @} + +/// \addtogroup nested-datatypes +/// +/// @{ + +/// \brief Base class for all variable-size list data types +class ARROW_EXPORT BaseListType : public NestedType { + public: + using NestedType::NestedType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~BaseListType() override; + const std::shared_ptr& value_field() const { return children_[0]; } + + const std::shared_ptr& value_type() const { return children_[0]->type(); } +}; + +/// \brief Concrete type class for list data +/// +/// List data is nested data where each value is a variable number of +/// child items. Lists can be recursively nested, for example +/// list(list(int32)). +class ARROW_EXPORT ListType : public BaseListType { + public: + static constexpr Type::type type_id = Type::LIST; + using offset_type = int32_t; + + static constexpr const char* type_name() { return "list"; } + + // List can contain any other logical value type + explicit ListType(std::shared_ptr value_type) + : ListType(std::make_shared("item", std::move(value_type))) {} + + explicit ListType(std::shared_ptr value_field) : BaseListType(type_id) { + children_ = {std::move(value_field)}; + } + + DataTypeLayout layout() const override { + return DataTypeLayout( + {DataTypeLayout::Bitmap(), DataTypeLayout::FixedWidth(sizeof(offset_type))}); + } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "list"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \brief Concrete type class for large list data +/// +/// LargeListType is like ListType but with 64-bit rather than 32-bit offsets. +class ARROW_EXPORT LargeListType : public BaseListType { + public: + static constexpr Type::type type_id = Type::LARGE_LIST; + using offset_type = int64_t; + + static constexpr const char* type_name() { return "large_list"; } + + // List can contain any other logical value type + explicit LargeListType(std::shared_ptr value_type) + : LargeListType(std::make_shared("item", std::move(value_type))) {} + + explicit LargeListType(std::shared_ptr value_field) : BaseListType(type_id) { + children_ = {std::move(value_field)}; + } + + DataTypeLayout layout() const override { + return DataTypeLayout( + {DataTypeLayout::Bitmap(), DataTypeLayout::FixedWidth(sizeof(offset_type))}); + } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "large_list"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \brief Type class for array of list views +class ARROW_EXPORT ListViewType : public BaseListType { + public: + static constexpr Type::type type_id = Type::LIST_VIEW; + using offset_type = int32_t; + + static constexpr const char* type_name() { return "list_view"; } + + // ListView can contain any other logical value type + explicit ListViewType(const std::shared_ptr& value_type) + : ListViewType(std::make_shared("item", value_type)) {} + + explicit ListViewType(const std::shared_ptr& value_field) + : BaseListType(type_id) { + children_ = {value_field}; + } + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap(), + DataTypeLayout::FixedWidth(sizeof(offset_type)), + DataTypeLayout::FixedWidth(sizeof(offset_type))}); + } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "list_view"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \brief Concrete type class for large list-view data +/// +/// LargeListViewType is like ListViewType but with 64-bit rather than 32-bit offsets and +/// sizes. +class ARROW_EXPORT LargeListViewType : public BaseListType { + public: + static constexpr Type::type type_id = Type::LARGE_LIST_VIEW; + using offset_type = int64_t; + + static constexpr const char* type_name() { return "large_list_view"; } + + // LargeListView can contain any other logical value type + explicit LargeListViewType(const std::shared_ptr& value_type) + : LargeListViewType(std::make_shared("item", value_type)) {} + + explicit LargeListViewType(const std::shared_ptr& value_field) + : BaseListType(type_id) { + children_ = {value_field}; + } + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap(), + DataTypeLayout::FixedWidth(sizeof(offset_type)), + DataTypeLayout::FixedWidth(sizeof(offset_type))}); + } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "large_list_view"; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// \brief Concrete type class for map data +/// +/// Map data is nested data where each value is a variable number of +/// key-item pairs. Its physical representation is the same as +/// a list of `{key, item}` structs. +/// +/// Maps can be recursively nested, for example map(utf8, map(utf8, int32)). +class ARROW_EXPORT MapType : public ListType { + public: + static constexpr Type::type type_id = Type::MAP; + + static constexpr const char* type_name() { return "map"; } + + MapType(std::shared_ptr key_type, std::shared_ptr item_type, + bool keys_sorted = false); + + MapType(std::shared_ptr key_type, std::shared_ptr item_field, + bool keys_sorted = false); + + MapType(std::shared_ptr key_field, std::shared_ptr item_field, + bool keys_sorted = false); + + explicit MapType(std::shared_ptr value_field, bool keys_sorted = false); + + // Validating constructor + static Result> Make(std::shared_ptr value_field, + bool keys_sorted = false); + + std::shared_ptr key_field() const { return value_type()->field(0); } + std::shared_ptr key_type() const { return key_field()->type(); } + + std::shared_ptr item_field() const { return value_type()->field(1); } + std::shared_ptr item_type() const { return item_field()->type(); } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "map"; } + + bool keys_sorted() const { return keys_sorted_; } + + private: + std::string ComputeFingerprint() const override; + + bool keys_sorted_; +}; + +/// \brief Concrete type class for fixed size list data +class ARROW_EXPORT FixedSizeListType : public BaseListType { + public: + static constexpr Type::type type_id = Type::FIXED_SIZE_LIST; + // While the individual item size is 32-bit, the overall data size + // (item size * list length) may not fit in a 32-bit int. + using offset_type = int64_t; + + static constexpr const char* type_name() { return "fixed_size_list"; } + + // List can contain any other logical value type + FixedSizeListType(std::shared_ptr value_type, int32_t list_size) + : FixedSizeListType(std::make_shared("item", std::move(value_type)), + list_size) {} + + FixedSizeListType(std::shared_ptr value_field, int32_t list_size) + : BaseListType(type_id), list_size_(list_size) { + children_ = {std::move(value_field)}; + } + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap()}); + } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "fixed_size_list"; } + + int32_t list_size() const { return list_size_; } + + protected: + std::string ComputeFingerprint() const override; + + int32_t list_size_; +}; + +/// \brief Concrete type class for struct data +class ARROW_EXPORT StructType : public NestedType { + public: + static constexpr Type::type type_id = Type::STRUCT; + + static constexpr const char* type_name() { return "struct"; } + + explicit StructType(const FieldVector& fields); + + ~StructType() override; + + DataTypeLayout layout() const override { + return DataTypeLayout({DataTypeLayout::Bitmap()}); + } + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "struct"; } + + /// Returns null if name not found + std::shared_ptr GetFieldByName(const std::string& name) const; + + /// Return all fields having this name + FieldVector GetAllFieldsByName(const std::string& name) const; + + /// Returns -1 if name not found or if there are multiple fields having the + /// same name + int GetFieldIndex(const std::string& name) const; + + /// \brief Return the indices of all fields having this name in sorted order + std::vector GetAllFieldIndices(const std::string& name) const; + + /// \brief Create a new StructType with field added at given index + Result> AddField(int i, + const std::shared_ptr& field) const; + /// \brief Create a new StructType by removing the field at given index + Result> RemoveField(int i) const; + /// \brief Create a new StructType by changing the field at given index + Result> SetField(int i, + const std::shared_ptr& field) const; + + private: + std::string ComputeFingerprint() const override; + + class Impl; + std::unique_ptr impl_; +}; + +/// \brief Base type class for union data +class ARROW_EXPORT UnionType : public NestedType { + public: + static constexpr int8_t kMaxTypeCode = 127; + static constexpr int kInvalidChildId = -1; + + static Result> Make( + const FieldVector& fields, const std::vector& type_codes, + UnionMode::type mode = UnionMode::SPARSE) { + if (mode == UnionMode::SPARSE) { + return sparse_union(fields, type_codes); + } else { + return dense_union(fields, type_codes); + } + } + + DataTypeLayout layout() const override; + + std::string ToString(bool show_metadata = false) const override; + + /// The array of logical type ids. + /// + /// For example, the first type in the union might be denoted by the id 5 + /// (instead of 0). + const std::vector& type_codes() const { return type_codes_; } + + /// An array mapping logical type ids to physical child ids. + const std::vector& child_ids() const { return child_ids_; } + + uint8_t max_type_code() const; + + UnionMode::type mode() const; + + protected: + UnionType(FieldVector fields, std::vector type_codes, Type::type id); + + static Status ValidateParameters(const FieldVector& fields, + const std::vector& type_codes, + UnionMode::type mode); + + private: + std::string ComputeFingerprint() const override; + + std::vector type_codes_; + std::vector child_ids_; +}; + +/// \brief Concrete type class for sparse union data +/// +/// A sparse union is a nested type where each logical value is taken from +/// a single child. A buffer of 8-bit type ids indicates which child +/// a given logical value is to be taken from. +/// +/// In a sparse union, each child array should have the same length as the +/// union array, regardless of the actual number of union values that +/// refer to it. +/// +/// Note that, unlike most other types, unions don't have a top-level validity bitmap. +class ARROW_EXPORT SparseUnionType : public UnionType { + public: + static constexpr Type::type type_id = Type::SPARSE_UNION; + + static constexpr const char* type_name() { return "sparse_union"; } + + SparseUnionType(FieldVector fields, std::vector type_codes); + + // A constructor variant that validates input parameters + static Result> Make(FieldVector fields, + std::vector type_codes); + + std::string name() const override { return "sparse_union"; } +}; + +/// \brief Concrete type class for dense union data +/// +/// A dense union is a nested type where each logical value is taken from +/// a single child, at a specific offset. A buffer of 8-bit type ids +/// indicates which child a given logical value is to be taken from, +/// and a buffer of 32-bit offsets indicates at which physical position +/// in the given child array the logical value is to be taken from. +/// +/// Unlike a sparse union, a dense union allows encoding only the child array +/// values which are actually referred to by the union array. This is +/// counterbalanced by the additional footprint of the offsets buffer, and +/// the additional indirection cost when looking up values. +/// +/// Note that, unlike most other types, unions don't have a top-level validity bitmap. +class ARROW_EXPORT DenseUnionType : public UnionType { + public: + static constexpr Type::type type_id = Type::DENSE_UNION; + + static constexpr const char* type_name() { return "dense_union"; } + + DenseUnionType(FieldVector fields, std::vector type_codes); + + // A constructor variant that validates input parameters + static Result> Make(FieldVector fields, + std::vector type_codes); + + std::string name() const override { return "dense_union"; } +}; + +/// \brief Type class for run-end encoded data +class ARROW_EXPORT RunEndEncodedType : public NestedType { + public: + static constexpr Type::type type_id = Type::RUN_END_ENCODED; + + static constexpr const char* type_name() { return "run_end_encoded"; } + + explicit RunEndEncodedType(std::shared_ptr run_end_type, + std::shared_ptr value_type); + ~RunEndEncodedType() override; + + DataTypeLayout layout() const override { + // A lot of existing code expects at least one buffer + return DataTypeLayout({DataTypeLayout::AlwaysNull()}); + } + + const std::shared_ptr& run_end_type() const { return fields()[0]->type(); } + const std::shared_ptr& value_type() const { return fields()[1]->type(); } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "run_end_encoded"; } + + static bool RunEndTypeValid(const DataType& run_end_type); + + private: + std::string ComputeFingerprint() const override; +}; + +/// @} + +// ---------------------------------------------------------------------- +// Date and time types + +/// \addtogroup temporal-datatypes +/// +/// @{ + +/// \brief Base type for all date and time types +class ARROW_EXPORT TemporalType : public FixedWidthType { + public: + using FixedWidthType::FixedWidthType; + // This is only for preventing defining this class in each + // translation unit to avoid one-definition-rule violation. + ~TemporalType() override; + + DataTypeLayout layout() const override { + return DataTypeLayout( + {DataTypeLayout::Bitmap(), DataTypeLayout::FixedWidth(bit_width() / 8)}); + } +}; + +/// \brief Base type class for date data +class ARROW_EXPORT DateType : public TemporalType { + public: + virtual DateUnit unit() const = 0; + + protected: + explicit DateType(Type::type type_id); +}; + +/// Concrete type class for 32-bit date data (as number of days since UNIX epoch) +class ARROW_EXPORT Date32Type : public DateType { + public: + static constexpr Type::type type_id = Type::DATE32; + static constexpr DateUnit UNIT = DateUnit::DAY; + using c_type = int32_t; + using PhysicalType = Int32Type; + + static constexpr const char* type_name() { return "date32"; } + + Date32Type(); + + int bit_width() const override { return static_cast(sizeof(c_type) * CHAR_BIT); } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "date32"; } + DateUnit unit() const override { return UNIT; } + + protected: + std::string ComputeFingerprint() const override; +}; + +/// Concrete type class for 64-bit date data (as number of milliseconds since UNIX epoch) +class ARROW_EXPORT Date64Type : public DateType { + public: + static constexpr Type::type type_id = Type::DATE64; + static constexpr DateUnit UNIT = DateUnit::MILLI; + using c_type = int64_t; + using PhysicalType = Int64Type; + + static constexpr const char* type_name() { return "date64"; } + + Date64Type(); + + int bit_width() const override { return static_cast(sizeof(c_type) * CHAR_BIT); } + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "date64"; } + DateUnit unit() const override { return UNIT; } + + protected: + std::string ComputeFingerprint() const override; +}; + +ARROW_EXPORT +std::ostream& operator<<(std::ostream& os, TimeUnit::type unit); + +/// Base type class for time data +class ARROW_EXPORT TimeType : public TemporalType, public ParametricType { + public: + TimeUnit::type unit() const { return unit_; } + + protected: + TimeType(Type::type type_id, TimeUnit::type unit); + std::string ComputeFingerprint() const override; + + TimeUnit::type unit_; +}; + +/// Concrete type class for 32-bit time data (as number of seconds or milliseconds +/// since midnight) +class ARROW_EXPORT Time32Type : public TimeType { + public: + static constexpr Type::type type_id = Type::TIME32; + using c_type = int32_t; + using PhysicalType = Int32Type; + + static constexpr const char* type_name() { return "time32"; } + + int bit_width() const override { return static_cast(sizeof(c_type) * CHAR_BIT); } + + explicit Time32Type(TimeUnit::type unit = TimeUnit::MILLI); + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "time32"; } +}; + +/// Concrete type class for 64-bit time data (as number of microseconds or nanoseconds +/// since midnight) +class ARROW_EXPORT Time64Type : public TimeType { + public: + static constexpr Type::type type_id = Type::TIME64; + using c_type = int64_t; + using PhysicalType = Int64Type; + + static constexpr const char* type_name() { return "time64"; } + + int bit_width() const override { return static_cast(sizeof(c_type) * CHAR_BIT); } + + explicit Time64Type(TimeUnit::type unit = TimeUnit::NANO); + + std::string ToString(bool show_metadata = false) const override; + + std::string name() const override { return "time64"; } +}; + +/// \brief Concrete type class for datetime data (as number of seconds, milliseconds, +/// microseconds or nanoseconds since UNIX epoch) +/// +/// If supplied, the timezone string should take either the form (i) "Area/Location", +/// with values drawn from the names in the IANA Time Zone Database (such as +/// "Europe/Zurich"); or (ii) "(+|-)HH:MM" indicating an absolute offset from GMT +/// (such as "-08:00"). To indicate a native UTC timestamp, one of the strings "UTC", +/// "Etc/UTC" or "+00:00" should be used. +/// +/// If any non-empty string is supplied as the timezone for a TimestampType, then the +/// Arrow field containing that timestamp type (and by extension the column associated +/// with such a field) is considered "timezone-aware". The integer arrays that comprise +/// a timezone-aware column must contain UTC normalized datetime values, regardless of +/// the contents of their timezone string. More precisely, (i) the producer of a +/// timezone-aware column must populate its constituent arrays with valid UTC values +/// (performing offset conversions from non-UTC values if necessary); and (ii) the +/// consumer of a timezone-aware column may assume that the column's values are directly +/// comparable (that is, with no offset adjustment required) to the values of any other +/// timezone-aware column or to any other valid UTC datetime value (provided all values +/// are expressed in the same units). +/// +/// If a TimestampType is constructed without a timezone (or, equivalently, if the +/// timezone supplied is an empty string) then the resulting Arrow field (column) is +/// considered "timezone-naive". The producer of a timezone-naive column may populate +/// its constituent integer arrays with datetime values from any timezone; the consumer +/// of a timezone-naive column should make no assumptions about the interoperability or +/// comparability of the values of such a column with those of any other timestamp +/// column or datetime value. +/// +/// If a timezone-aware field contains a recognized timezone, its values may be +/// localized to that locale upon display; the values of timezone-naive fields must +/// always be displayed "as is", with no localization performed on them. +class ARROW_EXPORT TimestampType : public TemporalType, public ParametricType { + public: + using Unit = TimeUnit; + + static constexpr Type::type type_id = Type::TIMESTAMP; + using c_type = int64_t; + using PhysicalType = Int64Type; + + static constexpr const char* type_name() { return "timestamp"; } + + int bit_width() const override { return static_cast(sizeof(int64_t) * CHAR_BIT); } + + explicit TimestampType(TimeUnit::type unit = TimeUnit::MILLI) + : TemporalType(Type::TIMESTAMP), unit_(unit) {} + + explicit TimestampType(TimeUnit::type unit, const std::string& timezone) + : TemporalType(Type::TIMESTAMP), unit_(unit), timezone_(timezone) {} + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "timestamp"; } + + TimeUnit::type unit() const { return unit_; } + const std::string& timezone() const { return timezone_; } + + protected: + std::string ComputeFingerprint() const override; + + private: + TimeUnit::type unit_; + std::string timezone_; +}; + +// Base class for the different kinds of calendar intervals. +class ARROW_EXPORT IntervalType : public TemporalType, public ParametricType { + public: + enum type { MONTHS, DAY_TIME, MONTH_DAY_NANO }; + + virtual type interval_type() const = 0; + + protected: + explicit IntervalType(Type::type subtype) : TemporalType(subtype) {} + std::string ComputeFingerprint() const override; +}; + +/// \brief Represents a number of months. +/// +/// Type representing a number of months. Corresponds to YearMonth type +/// in Schema.fbs (years are defined as 12 months). +class ARROW_EXPORT MonthIntervalType : public IntervalType { + public: + static constexpr Type::type type_id = Type::INTERVAL_MONTHS; + using c_type = int32_t; + using PhysicalType = Int32Type; + + static constexpr const char* type_name() { return "month_interval"; } + + IntervalType::type interval_type() const override { return IntervalType::MONTHS; } + + int bit_width() const override { return static_cast(sizeof(c_type) * CHAR_BIT); } + + MonthIntervalType() : IntervalType(type_id) {} + + std::string ToString(bool ARROW_ARG_UNUSED(show_metadata) = false) const override { + return name(); + } + std::string name() const override { return "month_interval"; } +}; + +/// \brief Represents a number of days and milliseconds (fraction of day). +class ARROW_EXPORT DayTimeIntervalType : public IntervalType { + public: + struct DayMilliseconds { + int32_t days = 0; + int32_t milliseconds = 0; + constexpr DayMilliseconds() = default; + constexpr DayMilliseconds(int32_t days, int32_t milliseconds) + : days(days), milliseconds(milliseconds) {} + bool operator==(DayMilliseconds other) const { + return this->days == other.days && this->milliseconds == other.milliseconds; + } + bool operator!=(DayMilliseconds other) const { return !(*this == other); } + bool operator<(DayMilliseconds other) const { + return this->days < other.days || this->milliseconds < other.milliseconds; + } + }; + using c_type = DayMilliseconds; + using PhysicalType = DayTimeIntervalType; + + static_assert(sizeof(DayMilliseconds) == 8, + "DayMilliseconds struct assumed to be of size 8 bytes"); + static constexpr Type::type type_id = Type::INTERVAL_DAY_TIME; + + static constexpr const char* type_name() { return "day_time_interval"; } + + IntervalType::type interval_type() const override { return IntervalType::DAY_TIME; } + + DayTimeIntervalType() : IntervalType(type_id) {} + + int bit_width() const override { return static_cast(sizeof(c_type) * CHAR_BIT); } + + std::string ToString(bool ARROW_ARG_UNUSED(show_metadata) = false) const override { + return name(); + } + std::string name() const override { return "day_time_interval"; } +}; + +ARROW_EXPORT +std::ostream& operator<<(std::ostream& os, DayTimeIntervalType::DayMilliseconds interval); + +/// \brief Represents a number of months, days and nanoseconds between +/// two dates. +/// +/// All fields are independent from one another. +class ARROW_EXPORT MonthDayNanoIntervalType : public IntervalType { + public: + struct MonthDayNanos { + int32_t months; + int32_t days; + int64_t nanoseconds; + bool operator==(MonthDayNanos other) const { + return this->months == other.months && this->days == other.days && + this->nanoseconds == other.nanoseconds; + } + bool operator!=(MonthDayNanos other) const { return !(*this == other); } + }; + using c_type = MonthDayNanos; + using PhysicalType = MonthDayNanoIntervalType; + + static_assert(sizeof(MonthDayNanos) == 16, + "MonthDayNanos struct assumed to be of size 16 bytes"); + static constexpr Type::type type_id = Type::INTERVAL_MONTH_DAY_NANO; + + static constexpr const char* type_name() { return "month_day_nano_interval"; } + + IntervalType::type interval_type() const override { + return IntervalType::MONTH_DAY_NANO; + } + + MonthDayNanoIntervalType() : IntervalType(type_id) {} + + int bit_width() const override { return static_cast(sizeof(c_type) * CHAR_BIT); } + + std::string ToString(bool ARROW_ARG_UNUSED(show_metadata) = false) const override { + return name(); + } + std::string name() const override { return "month_day_nano_interval"; } +}; + +ARROW_EXPORT +std::ostream& operator<<(std::ostream& os, + MonthDayNanoIntervalType::MonthDayNanos interval); + +/// \brief Represents an elapsed time without any relation to a calendar artifact. +class ARROW_EXPORT DurationType : public TemporalType, public ParametricType { + public: + using Unit = TimeUnit; + + static constexpr Type::type type_id = Type::DURATION; + using c_type = int64_t; + using PhysicalType = Int64Type; + + static constexpr const char* type_name() { return "duration"; } + + int bit_width() const override { return static_cast(sizeof(int64_t) * CHAR_BIT); } + + explicit DurationType(TimeUnit::type unit = TimeUnit::MILLI) + : TemporalType(Type::DURATION), unit_(unit) {} + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "duration"; } + + TimeUnit::type unit() const { return unit_; } + + protected: + std::string ComputeFingerprint() const override; + + private: + TimeUnit::type unit_; +}; + +/// @} + +// ---------------------------------------------------------------------- +// Dictionary type (for representing categorical or dictionary-encoded +// in memory) + +/// \brief Dictionary-encoded value type with data-dependent +/// dictionary. Indices are represented by any integer types. +class ARROW_EXPORT DictionaryType : public FixedWidthType { + public: + static constexpr Type::type type_id = Type::DICTIONARY; + + static constexpr const char* type_name() { return "dictionary"; } + + DictionaryType(const std::shared_ptr& index_type, + const std::shared_ptr& value_type, bool ordered = false); + + // A constructor variant that validates its input parameters + static Result> Make( + const std::shared_ptr& index_type, + const std::shared_ptr& value_type, bool ordered = false); + + std::string ToString(bool show_metadata = false) const override; + std::string name() const override { return "dictionary"; } + + int bit_width() const override; + + DataTypeLayout layout() const override; + + const std::shared_ptr& index_type() const { return index_type_; } + const std::shared_ptr& value_type() const { return value_type_; } + + bool ordered() const { return ordered_; } + + protected: + static Status ValidateParameters(const DataType& index_type, + const DataType& value_type); + + std::string ComputeFingerprint() const override; + + // Must be an integer type (not currently checked) + std::shared_ptr index_type_; + std::shared_ptr value_type_; + bool ordered_; +}; + +// ---------------------------------------------------------------------- +// FieldRef + +/// \class FieldPath +/// +/// Represents a path to a nested field using indices of child fields. +/// For example, given indices {5, 9, 3} the field would be retrieved with +/// schema->field(5)->type()->field(9)->type()->field(3) +/// +/// Attempting to retrieve a child field using a FieldPath which is not valid for +/// a given schema will raise an error. Invalid FieldPaths include: +/// - an index is out of range +/// - the path is empty (note: a default constructed FieldPath will be empty) +/// +/// FieldPaths provide a number of accessors for drilling down to potentially nested +/// children. They are overloaded for convenience to support Schema (returns a field), +/// DataType (returns a child field), Field (returns a child field of this field's type) +/// Array (returns a child array), RecordBatch (returns a column). +class ARROW_EXPORT FieldPath { + public: + FieldPath() = default; + + FieldPath(std::vector indices) // NOLINT runtime/explicit + : indices_(std::move(indices)) {} + + FieldPath(std::initializer_list indices) // NOLINT runtime/explicit + : indices_(std::move(indices)) {} + + std::string ToString() const; + + size_t hash() const; + struct Hash { + size_t operator()(const FieldPath& path) const { return path.hash(); } + }; + + bool empty() const { return indices_.empty(); } + bool operator==(const FieldPath& other) const { return indices() == other.indices(); } + bool operator!=(const FieldPath& other) const { return indices() != other.indices(); } + + const std::vector& indices() const { return indices_; } + int operator[](size_t i) const { return indices_[i]; } + std::vector::const_iterator begin() const { return indices_.begin(); } + std::vector::const_iterator end() const { return indices_.end(); } + + /// \brief Retrieve the referenced child Field from a Schema, Field, or DataType + Result> Get(const Schema& schema) const; + Result> Get(const Field& field) const; + Result> Get(const DataType& type) const; + Result> Get(const FieldVector& fields) const; + + static Result> GetAll(const Schema& schema, + const std::vector& paths); + + /// \brief Retrieve the referenced column from a RecordBatch or Table + Result> Get(const RecordBatch& batch) const; + Result> Get(const Table& table) const; + + /// \brief Retrieve the referenced child from an Array or ArrayData + Result> Get(const Array& array) const; + Result> Get(const ArrayData& data) const; + + /// \brief Retrieve the referenced child from a ChunkedArray + Result> Get(const ChunkedArray& chunked_array) const; + + /// \brief Retrieve the referenced child/column from an Array, ArrayData, ChunkedArray, + /// RecordBatch, or Table + /// + /// Unlike `FieldPath::Get`, these variants are not zero-copy and the retrieved child's + /// null bitmap is ANDed with its ancestors' + Result> GetFlattened(const Array& array, + MemoryPool* pool = NULLPTR) const; + Result> GetFlattened(const ArrayData& data, + MemoryPool* pool = NULLPTR) const; + Result> GetFlattened(const ChunkedArray& chunked_array, + MemoryPool* pool = NULLPTR) const; + Result> GetFlattened(const RecordBatch& batch, + MemoryPool* pool = NULLPTR) const; + Result> GetFlattened(const Table& table, + MemoryPool* pool = NULLPTR) const; + + private: + std::vector indices_; +}; + +/// \class FieldRef +/// \brief Descriptor of a (potentially nested) field within a schema. +/// +/// Unlike FieldPath (which exclusively uses indices of child fields), FieldRef may +/// reference a field by name. It is intended to replace parameters like `int field_index` +/// and `const std::string& field_name`; it can be implicitly constructed from either a +/// field index or a name. +/// +/// Nested fields can be referenced as well. Given +/// schema({field("a", struct_({field("n", null())})), field("b", int32())}) +/// +/// the following all indicate the nested field named "n": +/// FieldRef ref1(0, 0); +/// FieldRef ref2("a", 0); +/// FieldRef ref3("a", "n"); +/// FieldRef ref4(0, "n"); +/// ARROW_ASSIGN_OR_RAISE(FieldRef ref5, +/// FieldRef::FromDotPath(".a[0]")); +/// +/// FieldPaths matching a FieldRef are retrieved using the member function FindAll. +/// Multiple matches are possible because field names may be duplicated within a schema. +/// For example: +/// Schema a_is_ambiguous({field("a", int32()), field("a", float32())}); +/// auto matches = FieldRef("a").FindAll(a_is_ambiguous); +/// assert(matches.size() == 2); +/// assert(matches[0].Get(a_is_ambiguous)->Equals(a_is_ambiguous.field(0))); +/// assert(matches[1].Get(a_is_ambiguous)->Equals(a_is_ambiguous.field(1))); +/// +/// Convenience accessors are available which raise a helpful error if the field is not +/// found or ambiguous, and for immediately calling FieldPath::Get to retrieve any +/// matching children: +/// auto maybe_match = FieldRef("struct", "field_i32").FindOneOrNone(schema); +/// auto maybe_column = FieldRef("struct", "field_i32").GetOne(some_table); +class ARROW_EXPORT FieldRef : public util::EqualityComparable { + public: + FieldRef() = default; + + /// Construct a FieldRef using a string of indices. The reference will be retrieved as: + /// schema.fields[self.indices[0]].type.fields[self.indices[1]] ... + /// + /// Empty indices are not valid. + FieldRef(FieldPath indices); // NOLINT runtime/explicit + + /// Construct a by-name FieldRef. Multiple fields may match a by-name FieldRef: + /// [f for f in schema.fields where f.name == self.name] + FieldRef(std::string name) : impl_(std::move(name)) {} // NOLINT runtime/explicit + FieldRef(const char* name) : impl_(std::string(name)) {} // NOLINT runtime/explicit + + /// Equivalent to a single index string of indices. + FieldRef(int index) : impl_(FieldPath({index})) {} // NOLINT runtime/explicit + + /// Construct a nested FieldRef. + explicit FieldRef(std::vector refs) { Flatten(std::move(refs)); } + + /// Convenience constructor for nested FieldRefs: each argument will be used to + /// construct a FieldRef + template + FieldRef(A0&& a0, A1&& a1, A&&... a) { + Flatten({// cpplint thinks the following are constructor decls + FieldRef(std::forward(a0)), // NOLINT runtime/explicit + FieldRef(std::forward(a1)), // NOLINT runtime/explicit + FieldRef(std::forward(a))...}); // NOLINT runtime/explicit + } + + /// Parse a dot path into a FieldRef. + /// + /// dot_path = '.' name + /// | '[' digit+ ']' + /// | dot_path+ + /// + /// Examples: + /// ".alpha" => FieldRef("alpha") + /// "[2]" => FieldRef(2) + /// ".beta[3]" => FieldRef("beta", 3) + /// "[5].gamma.delta[7]" => FieldRef(5, "gamma", "delta", 7) + /// ".hello world" => FieldRef("hello world") + /// R"(.\[y\]\\tho\.\)" => FieldRef(R"([y]\tho.\)") + /// + /// Note: When parsing a name, a '\' preceding any other character will be dropped from + /// the resulting name. Therefore if a name must contain the characters '.', '\', or '[' + /// those must be escaped with a preceding '\'. + static Result FromDotPath(const std::string& dot_path); + std::string ToDotPath() const; + + bool Equals(const FieldRef& other) const { return impl_ == other.impl_; } + + std::string ToString() const; + + size_t hash() const; + struct Hash { + size_t operator()(const FieldRef& ref) const { return ref.hash(); } + }; + + explicit operator bool() const { return Equals(FieldPath{}); } + bool operator!() const { return !Equals(FieldPath{}); } + + bool IsFieldPath() const { return std::holds_alternative(impl_); } + bool IsName() const { return std::holds_alternative(impl_); } + bool IsNested() const { + if (IsName()) return false; + if (IsFieldPath()) return std::get(impl_).indices().size() > 1; + return true; + } + + /// \brief Return true if this ref is a name or a nested sequence of only names + /// + /// Useful for determining if iteration is possible without recursion or inner loops + bool IsNameSequence() const { + if (IsName()) return true; + if (const auto* nested = nested_refs()) { + for (const auto& ref : *nested) { + if (!ref.IsName()) return false; + } + return !nested->empty(); + } + return false; + } + + const FieldPath* field_path() const { + return IsFieldPath() ? &std::get(impl_) : NULLPTR; + } + const std::string* name() const { + return IsName() ? &std::get(impl_) : NULLPTR; + } + const std::vector* nested_refs() const { + return std::holds_alternative>(impl_) + ? &std::get>(impl_) + : NULLPTR; + } + + /// \brief Retrieve FieldPath of every child field which matches this FieldRef. + std::vector FindAll(const Schema& schema) const; + std::vector FindAll(const Field& field) const; + std::vector FindAll(const DataType& type) const; + std::vector FindAll(const FieldVector& fields) const; + + /// \brief Convenience function which applies FindAll to arg's type or schema. + std::vector FindAll(const ArrayData& array) const; + std::vector FindAll(const Array& array) const; + std::vector FindAll(const ChunkedArray& chunked_array) const; + std::vector FindAll(const RecordBatch& batch) const; + std::vector FindAll(const Table& table) const; + + /// \brief Convenience function: raise an error if matches is empty. + template + Status CheckNonEmpty(const std::vector& matches, const T& root) const { + if (matches.empty()) { + return Status::Invalid("No match for ", ToString(), " in ", root.ToString()); + } + return Status::OK(); + } + + /// \brief Convenience function: raise an error if matches contains multiple FieldPaths. + template + Status CheckNonMultiple(const std::vector& matches, const T& root) const { + if (matches.size() > 1) { + return Status::Invalid("Multiple matches for ", ToString(), " in ", + root.ToString()); + } + return Status::OK(); + } + + /// \brief Retrieve FieldPath of a single child field which matches this + /// FieldRef. Emit an error if none or multiple match. + template + Result FindOne(const T& root) const { + auto matches = FindAll(root); + ARROW_RETURN_NOT_OK(CheckNonEmpty(matches, root)); + ARROW_RETURN_NOT_OK(CheckNonMultiple(matches, root)); + return std::move(matches[0]); + } + + /// \brief Retrieve FieldPath of a single child field which matches this + /// FieldRef. Emit an error if multiple match. An empty (invalid) FieldPath + /// will be returned if none match. + template + Result FindOneOrNone(const T& root) const { + auto matches = FindAll(root); + ARROW_RETURN_NOT_OK(CheckNonMultiple(matches, root)); + if (matches.empty()) { + return FieldPath(); + } + return std::move(matches[0]); + } + + template + using GetType = decltype(std::declval().Get(std::declval()).ValueOrDie()); + + /// \brief Get all children matching this FieldRef. + template + std::vector> GetAll(const T& root) const { + std::vector> out; + for (const auto& match : FindAll(root)) { + out.push_back(match.Get(root).ValueOrDie()); + } + return out; + } + /// \brief Get all children matching this FieldRef. + /// + /// Unlike `FieldRef::GetAll`, this variant is not zero-copy and the retrieved + /// children's null bitmaps are ANDed with their ancestors' + template + Result>> GetAllFlattened(const T& root, + MemoryPool* pool = NULLPTR) const { + std::vector> out; + for (const auto& match : FindAll(root)) { + ARROW_ASSIGN_OR_RAISE(auto child, match.GetFlattened(root, pool)); + out.push_back(std::move(child)); + } + return out; + } + + /// \brief Get the single child matching this FieldRef. + /// Emit an error if none or multiple match. + template + Result> GetOne(const T& root) const { + ARROW_ASSIGN_OR_RAISE(auto match, FindOne(root)); + return match.Get(root).ValueOrDie(); + } + /// \brief Get the single child matching this FieldRef. + /// + /// Unlike `FieldRef::GetOne`, this variant is not zero-copy and the retrieved + /// child's null bitmap is ANDed with its ancestors' + template + Result> GetOneFlattened(const T& root, MemoryPool* pool = NULLPTR) const { + ARROW_ASSIGN_OR_RAISE(auto match, FindOne(root)); + return match.GetFlattened(root, pool); + } + + /// \brief Get the single child matching this FieldRef. + /// Return nullptr if none match, emit an error if multiple match. + template + Result> GetOneOrNone(const T& root) const { + ARROW_ASSIGN_OR_RAISE(auto match, FindOneOrNone(root)); + if (match.empty()) { + return static_cast>(NULLPTR); + } + return match.Get(root).ValueOrDie(); + } + /// \brief Get the single child matching this FieldRef. + /// + /// Return nullptr if none match, emit an error if multiple match. + /// Unlike `FieldRef::GetOneOrNone`, this variant is not zero-copy and the + /// retrieved child's null bitmap is ANDed with its ancestors' + template + Result> GetOneOrNoneFlattened(const T& root, + MemoryPool* pool = NULLPTR) const { + ARROW_ASSIGN_OR_RAISE(auto match, FindOneOrNone(root)); + if (match.empty()) { + return static_cast>(NULLPTR); + } + return match.GetFlattened(root, pool); + } + + private: + void Flatten(std::vector children); + + std::variant> impl_; +}; + +ARROW_EXPORT void PrintTo(const FieldRef& ref, std::ostream* os); + +ARROW_EXPORT +std::ostream& operator<<(std::ostream& os, const FieldRef&); + +// ---------------------------------------------------------------------- +// Schema + +enum class Endianness { + Little = 0, + Big = 1, +#if ARROW_LITTLE_ENDIAN + Native = Little +#else + Native = Big +#endif +}; + +/// \class Schema +/// \brief Sequence of arrow::Field objects describing the columns of a record +/// batch or table data structure +class ARROW_EXPORT Schema : public detail::Fingerprintable, + public util::EqualityComparable, + public util::ToStringOstreamable { + public: + explicit Schema(FieldVector fields, Endianness endianness, + std::shared_ptr metadata = NULLPTR); + + explicit Schema(FieldVector fields, + std::shared_ptr metadata = NULLPTR); + + Schema(const Schema&); + + ~Schema() override; + + /// Returns true if all of the schema fields are equal + bool Equals(const Schema& other, bool check_metadata = false) const; + bool Equals(const std::shared_ptr& other, bool check_metadata = false) const; + + /// \brief Set endianness in the schema + /// + /// \return new Schema + std::shared_ptr WithEndianness(Endianness endianness) const; + + /// \brief Return endianness in the schema + Endianness endianness() const; + + /// \brief Indicate if endianness is equal to platform-native endianness + bool is_native_endian() const; + + /// \brief Return the number of fields (columns) in the schema + int num_fields() const; + + /// Return the ith schema element. Does not boundscheck + const std::shared_ptr& field(int i) const; + + const FieldVector& fields() const; + + std::vector field_names() const; + + /// Returns null if name not found + std::shared_ptr GetFieldByName(std::string_view name) const; + + /// \brief Return the indices of all fields having this name in sorted order + FieldVector GetAllFieldsByName(std::string_view name) const; + + /// Returns -1 if name not found + int GetFieldIndex(std::string_view name) const; + + /// Return the indices of all fields having this name + std::vector GetAllFieldIndices(std::string_view name) const; + + /// Indicate if field named `name` can be found unambiguously in the schema. + Status CanReferenceFieldByName(std::string_view name) const; + + /// Indicate if fields named `names` can be found unambiguously in the schema. + Status CanReferenceFieldsByNames(const std::vector& names) const; + + /// \brief The custom key-value metadata, if any + /// + /// \return metadata may be null + const std::shared_ptr& metadata() const; + + /// \brief Render a string representation of the schema suitable for debugging + /// \param[in] show_metadata when true, if KeyValueMetadata is non-empty, + /// print keys and values in the output + std::string ToString(bool show_metadata = false) const; + + Result> AddField(int i, + const std::shared_ptr& field) const; + Result> RemoveField(int i) const; + Result> SetField(int i, + const std::shared_ptr& field) const; + + /// \brief Replace field names with new names + /// + /// \param[in] names new names + /// \return new Schema + Result> WithNames(const std::vector& names) const; + + /// \brief Replace key-value metadata with new metadata + /// + /// \param[in] metadata new KeyValueMetadata + /// \return new Schema + std::shared_ptr WithMetadata( + const std::shared_ptr& metadata) const; + + /// \brief Return copy of Schema without the KeyValueMetadata + std::shared_ptr RemoveMetadata() const; + + /// \brief Indicate that the Schema has non-empty KevValueMetadata + bool HasMetadata() const; + + /// \brief Indicate that the Schema has distinct field names. + bool HasDistinctFieldNames() const; + + protected: + std::string ComputeFingerprint() const override; + std::string ComputeMetadataFingerprint() const override; + + private: + class Impl; + std::unique_ptr impl_; +}; + +ARROW_EXPORT void PrintTo(const Schema& s, std::ostream* os); + +ARROW_EXPORT +std::string EndiannessToString(Endianness endianness); + +// ---------------------------------------------------------------------- + +/// \brief Convenience class to incrementally construct/merge schemas. +/// +/// This class amortizes the cost of validating field name conflicts by +/// maintaining the mapping. The caller also controls the conflict resolution +/// scheme. +class ARROW_EXPORT SchemaBuilder { + public: + // Indicate how field conflict(s) should be resolved when building a schema. A + // conflict arise when a field is added to the builder and one or more field(s) + // with the same name already exists. + enum ConflictPolicy { + // Ignore the conflict and append the field. This is the default behavior of the + // Schema constructor and the `arrow::schema` factory function. + CONFLICT_APPEND = 0, + // Keep the existing field and ignore the newer one. + CONFLICT_IGNORE, + // Replace the existing field with the newer one. + CONFLICT_REPLACE, + // Merge the fields. The merging behavior can be controlled by `Field::MergeOptions` + // specified at construction time. Also see documentation of `Field::MergeWith`. + CONFLICT_MERGE, + // Refuse the new field and error out. + CONFLICT_ERROR + }; + + /// \brief Construct an empty SchemaBuilder + /// `field_merge_options` is only effective when `conflict_policy` == `CONFLICT_MERGE`. + SchemaBuilder( + ConflictPolicy conflict_policy = CONFLICT_APPEND, + Field::MergeOptions field_merge_options = Field::MergeOptions::Defaults()); + /// \brief Construct a SchemaBuilder from a list of fields + /// `field_merge_options` is only effective when `conflict_policy` == `CONFLICT_MERGE`. + SchemaBuilder( + FieldVector fields, ConflictPolicy conflict_policy = CONFLICT_APPEND, + Field::MergeOptions field_merge_options = Field::MergeOptions::Defaults()); + /// \brief Construct a SchemaBuilder from a schema, preserving the metadata + /// `field_merge_options` is only effective when `conflict_policy` == `CONFLICT_MERGE`. + SchemaBuilder( + const std::shared_ptr& schema, + ConflictPolicy conflict_policy = CONFLICT_APPEND, + Field::MergeOptions field_merge_options = Field::MergeOptions::Defaults()); + + /// \brief Return the conflict resolution method. + ConflictPolicy policy() const; + + /// \brief Set the conflict resolution method. + void SetPolicy(ConflictPolicy resolution); + + /// \brief Add a field to the constructed schema. + /// + /// \param[in] field to add to the constructed Schema. + /// \return A failure if encountered. + Status AddField(const std::shared_ptr& field); + + /// \brief Add multiple fields to the constructed schema. + /// + /// \param[in] fields to add to the constructed Schema. + /// \return The first failure encountered, if any. + Status AddFields(const FieldVector& fields); + + /// \brief Add fields of a Schema to the constructed Schema. + /// + /// \param[in] schema to take fields to add to the constructed Schema. + /// \return The first failure encountered, if any. + Status AddSchema(const std::shared_ptr& schema); + + /// \brief Add fields of multiple Schemas to the constructed Schema. + /// + /// \param[in] schemas to take fields to add to the constructed Schema. + /// \return The first failure encountered, if any. + Status AddSchemas(const std::vector>& schemas); + + Status AddMetadata(const KeyValueMetadata& metadata); + + /// \brief Return the constructed Schema. + /// + /// The builder internal state is not affected by invoking this method, i.e. + /// a single builder can yield multiple incrementally constructed schemas. + /// + /// \return the constructed schema. + Result> Finish() const; + + /// \brief Merge schemas in a unified schema according to policy. + static Result> Merge( + const std::vector>& schemas, + ConflictPolicy policy = CONFLICT_MERGE); + + /// \brief Indicate if schemas are compatible to merge according to policy. + static Status AreCompatible(const std::vector>& schemas, + ConflictPolicy policy = CONFLICT_MERGE); + + /// \brief Reset internal state with an empty schema (and metadata). + void Reset(); + + ~SchemaBuilder(); + + private: + class Impl; + std::unique_ptr impl_; + + Status AppendField(const std::shared_ptr& field); +}; + +/// \brief Unifies schemas by merging fields by name. +/// +/// The behavior of field merging can be controlled via `Field::MergeOptions`. +/// +/// The resulting schema will contain the union of fields from all schemas. +/// Fields with the same name will be merged. See `Field::MergeOptions`. +/// - They are expected to be mergeable under provided `field_merge_options`. +/// - The unified field will inherit the metadata from the schema where +/// that field is first defined. +/// - The first N fields in the schema will be ordered the same as the +/// N fields in the first schema. +/// The resulting schema will inherit its metadata from the first input schema. +/// Returns an error if: +/// - Any input schema contains fields with duplicate names. +/// - Fields of the same name are not mergeable. +ARROW_EXPORT +Result> UnifySchemas( + const std::vector>& schemas, + Field::MergeOptions field_merge_options = Field::MergeOptions::Defaults()); + +namespace internal { + +constexpr bool may_have_validity_bitmap(Type::type id) { + switch (id) { + case Type::NA: + case Type::DENSE_UNION: + case Type::SPARSE_UNION: + case Type::RUN_END_ENCODED: + return false; + default: + return true; + } +} + +constexpr bool has_variadic_buffers(Type::type id) { + switch (id) { + case Type::BINARY_VIEW: + case Type::STRING_VIEW: + return true; + default: + return false; + } +} + +ARROW_DEPRECATED("Deprecated in 17.0.0. Use may_have_validity_bitmap() instead.") +constexpr bool HasValidityBitmap(Type::type id) { return may_have_validity_bitmap(id); } + +ARROW_EXPORT +std::string ToString(Type::type id); + +ARROW_EXPORT +std::string ToTypeName(Type::type id); + +ARROW_EXPORT +std::string ToString(TimeUnit::type unit); + +} // namespace internal + +// Helpers to get instances of data types based on general categories + +/// \brief Signed integer types +ARROW_EXPORT +const std::vector>& SignedIntTypes(); +/// \brief Unsigned integer types +ARROW_EXPORT +const std::vector>& UnsignedIntTypes(); +/// \brief Signed and unsigned integer types +ARROW_EXPORT +const std::vector>& IntTypes(); +/// \brief Floating point types +ARROW_EXPORT +const std::vector>& FloatingPointTypes(); +/// \brief Number types without boolean - integer and floating point types +ARROW_EXPORT +const std::vector>& NumericTypes(); +/// \brief Binary and string-like types (except fixed-size binary) +ARROW_EXPORT +const std::vector>& BaseBinaryTypes(); +/// \brief Binary and large-binary types +ARROW_EXPORT +const std::vector>& BinaryTypes(); +/// \brief String and large-string types +ARROW_EXPORT +const std::vector>& StringTypes(); +/// \brief String-view and Binary-view +ARROW_EXPORT +const std::vector>& BinaryViewTypes(); +/// \brief Temporal types including date, time and timestamps for each unit +ARROW_EXPORT +const std::vector>& TemporalTypes(); +/// \brief Interval types +ARROW_EXPORT +const std::vector>& IntervalTypes(); +/// \brief Duration types for each unit +ARROW_EXPORT +const std::vector>& DurationTypes(); +/// \brief Numeric, base binary, date, boolean and null types +ARROW_EXPORT +const std::vector>& PrimitiveTypes(); + +/// \brief Decimal type ids +ARROW_EXPORT +const std::vector& DecimalTypeIds(); + +} // namespace arrow diff --git a/shared/package-files/e9/e97fb997962cb3ff72d742d8c88b032db197efbbedecfb552c3ab13a54913df6/blob b/shared/package-files/e9/e97fb997962cb3ff72d742d8c88b032db197efbbedecfb552c3ab13a54913df6/blob new file mode 100644 index 0000000000000000000000000000000000000000..7075c334ea7dbcffa435bb1e271e721990132933 --- /dev/null +++ b/shared/package-files/e9/e97fb997962cb3ff72d742d8c88b032db197efbbedecfb552c3ab13a54913df6/blob @@ -0,0 +1,362 @@ +from typing import ( + Literal as L, + Any, + TypeVar, + overload, + SupportsIndex, +) + +from numpy import ( + generic, + number, + bool_, + ushort, + ubyte, + uintc, + uint, + ulonglong, + short, + int8, + byte, + intc, + int_, + intp, + longlong, + half, + single, + double, + longdouble, + csingle, + cdouble, + clongdouble, + timedelta64, + datetime64, + object_, + str_, + bytes_, + void, +) + +from numpy._typing import ( + ArrayLike, + NDArray, + _ArrayLike, + _ArrayLikeBool_co, + _ArrayLikeDT64_co, + _ArrayLikeTD64_co, + _ArrayLikeObject_co, + _ArrayLikeNumber_co, +) + +_SCT = TypeVar("_SCT", bound=generic) +_NumberType = TypeVar("_NumberType", bound=number[Any]) + +# Explicitly set all allowed values to prevent accidental castings to +# abstract dtypes (their common super-type). +# +# Only relevant if two or more arguments are parametrized, (e.g. `setdiff1d`) +# which could result in, for example, `int64` and `float64`producing a +# `number[_64Bit]` array +_SCTNoCast = TypeVar( + "_SCTNoCast", + bool_, + ushort, + ubyte, + uintc, + uint, + ulonglong, + short, + byte, + intc, + int_, + longlong, + half, + single, + double, + longdouble, + csingle, + cdouble, + clongdouble, + timedelta64, + datetime64, + object_, + str_, + bytes_, + void, +) + +__all__: list[str] + +@overload +def ediff1d( + ary: _ArrayLikeBool_co, + to_end: None | ArrayLike = ..., + to_begin: None | ArrayLike = ..., +) -> NDArray[int8]: ... +@overload +def ediff1d( + ary: _ArrayLike[_NumberType], + to_end: None | ArrayLike = ..., + to_begin: None | ArrayLike = ..., +) -> NDArray[_NumberType]: ... +@overload +def ediff1d( + ary: _ArrayLikeNumber_co, + to_end: None | ArrayLike = ..., + to_begin: None | ArrayLike = ..., +) -> NDArray[Any]: ... +@overload +def ediff1d( + ary: _ArrayLikeDT64_co | _ArrayLikeTD64_co, + to_end: None | ArrayLike = ..., + to_begin: None | ArrayLike = ..., +) -> NDArray[timedelta64]: ... +@overload +def ediff1d( + ary: _ArrayLikeObject_co, + to_end: None | ArrayLike = ..., + to_begin: None | ArrayLike = ..., +) -> NDArray[object_]: ... + +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[False] = ..., + return_inverse: L[False] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> NDArray[_SCT]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[False] = ..., + return_inverse: L[False] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> NDArray[Any]: ... +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[True] = ..., + return_inverse: L[False] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[_SCT], NDArray[intp]]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[True] = ..., + return_inverse: L[False] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[Any], NDArray[intp]]: ... +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[False] = ..., + return_inverse: L[True] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[_SCT], NDArray[intp]]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[False] = ..., + return_inverse: L[True] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[Any], NDArray[intp]]: ... +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[False] = ..., + return_inverse: L[False] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[_SCT], NDArray[intp]]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[False] = ..., + return_inverse: L[False] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[Any], NDArray[intp]]: ... +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[True] = ..., + return_inverse: L[True] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[_SCT], NDArray[intp], NDArray[intp]]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[True] = ..., + return_inverse: L[True] = ..., + return_counts: L[False] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[Any], NDArray[intp], NDArray[intp]]: ... +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[True] = ..., + return_inverse: L[False] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[_SCT], NDArray[intp], NDArray[intp]]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[True] = ..., + return_inverse: L[False] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[Any], NDArray[intp], NDArray[intp]]: ... +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[False] = ..., + return_inverse: L[True] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[_SCT], NDArray[intp], NDArray[intp]]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[False] = ..., + return_inverse: L[True] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[Any], NDArray[intp], NDArray[intp]]: ... +@overload +def unique( + ar: _ArrayLike[_SCT], + return_index: L[True] = ..., + return_inverse: L[True] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[_SCT], NDArray[intp], NDArray[intp], NDArray[intp]]: ... +@overload +def unique( + ar: ArrayLike, + return_index: L[True] = ..., + return_inverse: L[True] = ..., + return_counts: L[True] = ..., + axis: None | SupportsIndex = ..., + *, + equal_nan: bool = ..., +) -> tuple[NDArray[Any], NDArray[intp], NDArray[intp], NDArray[intp]]: ... + +@overload +def intersect1d( + ar1: _ArrayLike[_SCTNoCast], + ar2: _ArrayLike[_SCTNoCast], + assume_unique: bool = ..., + return_indices: L[False] = ..., +) -> NDArray[_SCTNoCast]: ... +@overload +def intersect1d( + ar1: ArrayLike, + ar2: ArrayLike, + assume_unique: bool = ..., + return_indices: L[False] = ..., +) -> NDArray[Any]: ... +@overload +def intersect1d( + ar1: _ArrayLike[_SCTNoCast], + ar2: _ArrayLike[_SCTNoCast], + assume_unique: bool = ..., + return_indices: L[True] = ..., +) -> tuple[NDArray[_SCTNoCast], NDArray[intp], NDArray[intp]]: ... +@overload +def intersect1d( + ar1: ArrayLike, + ar2: ArrayLike, + assume_unique: bool = ..., + return_indices: L[True] = ..., +) -> tuple[NDArray[Any], NDArray[intp], NDArray[intp]]: ... + +@overload +def setxor1d( + ar1: _ArrayLike[_SCTNoCast], + ar2: _ArrayLike[_SCTNoCast], + assume_unique: bool = ..., +) -> NDArray[_SCTNoCast]: ... +@overload +def setxor1d( + ar1: ArrayLike, + ar2: ArrayLike, + assume_unique: bool = ..., +) -> NDArray[Any]: ... + +def in1d( + ar1: ArrayLike, + ar2: ArrayLike, + assume_unique: bool = ..., + invert: bool = ..., +) -> NDArray[bool_]: ... + +def isin( + element: ArrayLike, + test_elements: ArrayLike, + assume_unique: bool = ..., + invert: bool = ..., + *, + kind: None | str = ..., +) -> NDArray[bool_]: ... + +@overload +def union1d( + ar1: _ArrayLike[_SCTNoCast], + ar2: _ArrayLike[_SCTNoCast], +) -> NDArray[_SCTNoCast]: ... +@overload +def union1d( + ar1: ArrayLike, + ar2: ArrayLike, +) -> NDArray[Any]: ... + +@overload +def setdiff1d( + ar1: _ArrayLike[_SCTNoCast], + ar2: _ArrayLike[_SCTNoCast], + assume_unique: bool = ..., +) -> NDArray[_SCTNoCast]: ... +@overload +def setdiff1d( + ar1: ArrayLike, + ar2: ArrayLike, + assume_unique: bool = ..., +) -> NDArray[Any]: ... diff --git a/shared/package-files/e9/e98091efb646a6d8631e2e4b3c10605100fba135dc1642e4b77140416d7feb85/blob b/shared/package-files/e9/e98091efb646a6d8631e2e4b3c10605100fba135dc1642e4b77140416d7feb85/blob new file mode 100644 index 0000000000000000000000000000000000000000..668849fa6d2078a9da89c5049b0706ac072984a8 --- /dev/null +++ b/shared/package-files/e9/e98091efb646a6d8631e2e4b3c10605100fba135dc1642e4b77140416d7feb85/blob @@ -0,0 +1,150 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + +""" +In the context of Torch Distributed Elastic we use the term *rendezvous* to +refer to a particular functionality that combines a **distributed +synchronization** primitive with **peer discovery**. + +It is used by Torch Distributed Elastic to gather participants of a training +job (i.e. nodes) such that they all agree on the same list of participants and +everyone's roles, as well as make a consistent collective decision on when +training can begin/resume. + +Torch Distributed Elastic rendezvous provides the following critical +functionalities: + +**Barrier**: + +Nodes performing rendezvous will all block until the rendezvous is considered +complete - this happens when at least ``min`` total number of nodes have joined +the rendezvous barrier (for the same job). This also implies the barrier is not +necessarily of fixed size. + +There's an additional small waiting time after reaching ``min`` number of +nodes - this is used to ensure the rendezvous is not completed "too quickly" +(which could potentially exclude additional nodes attempting to join at +approximately the same time). + +If ``max`` number of nodes is gathered at the barrier, the rendezvous is +completed immediately. + +There's also an overall timeout which causes the rendezvous to fail if ``min`` +number of nodes is never reached - this is meant to be a simple fail-safe to +help release partially allocated job resources, in case there's a problem with +the resource manager, and is meant to be interpreted as non-retryable. + +**Exclusivity**: + +A simple distributed barrier would not be sufficient, as we also need to ensure +that only one group of nodes exists at any given time (for a given job). In +other words, new nodes (i.e. joining late) should not be able to form a parallel +independent group of workers for the same job. + +Torch Distributed Elastic rendezvous ensures that if a group of nodes has +already completed a rendezvous (and hence might already be training), then +additional "late" nodes attempting to rendezvous will only announce themselves +as waiting, and will have to wait until the (previously completed) existing +rendezvous is destroyed first. + +**Consistency**: + +When a rendezvous is completed, all its members will agree on the job membership +and everyone's role in it. This role is represented using an integer, called +rank, that is between between 0 and world size. + +Note that ranks are *not stable*, in the sense that the same node can be +assigned a different rank in the next (re-)rendezvous. + +**Fault-tolerance**: + +Torch Distributed Elastic rendezvous is designed to tolerate node failures +during the rendezvous process. Should a process crash (or lose network +connectivity, etc), between joining the rendezvous and it being completed, then +a re-rendezvous with remaining healthy nodes will happen automatically. + +A node can also fail *after* it has completed (or *has been observered* by other +nodes to have completed) the rendezvous - this scenario will be handled by the +Torch Distributed Elastic ``train_loop`` instead (where it will also trigger a +re-rendezvous). + +**Shared key-value store**: + +When the rendezvous is completed, a shared key-value store is created and +returned. This store implements a ``torch.distributed.Store`` API (see +`distributed communication docs +`__). + +This store is only shared by the members of the completed rendezvous. It +is intended to be used by Torch Distributed Elastic to exchange information +necessary to initialize job control and data-planes. + +**Waiting workers and rendezvous closing**: + +Torch Distributed Elastic rendezvous handler object provides additional +functionalities, which are technically not part of the rendezvous process: + +1. Querying how many workers arrived late at the barrier, who can participate in + *next* rendezvous. + +2. Setting the rendezvous *closed* to signal all nodes not to participate in + next rendezvous. + +**DynamicRendezvousHandler**: + +Torch Distributed Elastic comes with the :py:class:`.DynamicRendezvousHandler` +class that implements the rendezvous mechanism described above. It is a backend- +agnostic type that expects a particular :py:class:`.RendezvousBackend` instance +to be specified during construction. + +Torch distributed users can either implement their own backend type or use one +of the following implementations that come with PyTorch: + +- :py:class:`.C10dRendezvousBackend`: Uses a C10d store (by default + ``TCPStore``) as the rendezvous backend. The main advantage of using a C10d + store is that it requires no 3rd-party dependency (such as etcd) to establish + a rendezvous. +- :py:class:`.EtcdRendezvousBackend`: Supersedes the legacy + :py:class:`.EtcdRendezvousHandler` class. Passing an + :py:class:`.EtcdRendezvousBackend` instance to + :py:class:`.DynamicRendezvousHandler` is functionally equivalent to + instantiating an :py:class:`.EtcdRendezvousHandler`. + + :: + + store = TCPStore("localhost") + + backend = C10dRendezvousBackend(store, "my_run_id") + + rdzv_handler = DynamicRendezvousHandler.from_backend( + run_id="my_run_id", + store=store, + backend=backend, + min_nodes=2, + max_nodes=4 + ) +""" + +from .api import * # noqa: F403 +from .registry import _register_default_handlers + + +_register_default_handlers() + + +__all__ = [ + "RendezvousClosedError", + "RendezvousConnectionError", + "RendezvousError", + "RendezvousGracefulExitError", + "RendezvousHandler", + "RendezvousHandlerCreator", + "RendezvousHandlerRegistry", + "RendezvousParameters", + "RendezvousStateError", + "RendezvousTimeoutError", + "rendezvous_handler_registry", +] diff --git a/shared/package-files/e9/e980f9e53c5eb402872712622757abcdae2ab27311924bb726124c24467e8473/blob b/shared/package-files/e9/e980f9e53c5eb402872712622757abcdae2ab27311924bb726124c24467e8473/blob new file mode 100644 index 0000000000000000000000000000000000000000..90d058110c9fac32d089ba905acf632afeed7d03 --- /dev/null +++ b/shared/package-files/e9/e980f9e53c5eb402872712622757abcdae2ab27311924bb726124c24467e8473/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::hspmm.out(Tensor mat1, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & hspmm_out(at::Tensor & out, const at::Tensor & mat1, const at::Tensor & mat2) { + return at::_ops::hspmm_out::call(mat1, mat2, out); +} +// aten::hspmm.out(Tensor mat1, Tensor mat2, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & hspmm_outf(const at::Tensor & mat1, const at::Tensor & mat2, at::Tensor & out) { + return at::_ops::hspmm_out::call(mat1, mat2, out); +} + +// aten::hspmm(Tensor mat1, Tensor mat2) -> Tensor +inline at::Tensor hspmm(const at::Tensor & mat1, const at::Tensor & mat2) { + return at::_ops::hspmm::call(mat1, mat2); +} + +} diff --git a/shared/package-files/e9/e9811540dce2a60402a683bfec1f07edc91a496d8876dd76e38b3b2322d60307/blob b/shared/package-files/e9/e9811540dce2a60402a683bfec1f07edc91a496d8876dd76e38b3b2322d60307/blob new file mode 100644 index 0000000000000000000000000000000000000000..6b24b5377fab564ac951b827e398c744524d711c --- /dev/null +++ b/shared/package-files/e9/e9811540dce2a60402a683bfec1f07edc91a496d8876dd76e38b3b2322d60307/blob @@ -0,0 +1,7 @@ +from .matmul import matmul +from .softmax import softmax + +__all__ = [ + "matmul", + "softmax", +] diff --git a/shared/package-files/e9/e983560c7da500c4c6deadfeeac324fa818e8f0fc924a1d5a09076ff751891f7/blob b/shared/package-files/e9/e983560c7da500c4c6deadfeeac324fa818e8f0fc924a1d5a09076ff751891f7/blob new file mode 100644 index 0000000000000000000000000000000000000000..1171869e1f0759a2e5712c1b2d5270b959115ec8 --- /dev/null +++ b/shared/package-files/e9/e983560c7da500c4c6deadfeeac324fa818e8f0fc924a1d5a09076ff751891f7/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor real(const at::Tensor & self); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/e9/e985e54ebcd60f8ac0d075187d0f2875996c0b36bb967e1b4fdb2b386bfb77e9/blob b/shared/package-files/e9/e985e54ebcd60f8ac0d075187d0f2875996c0b36bb967e1b4fdb2b386bfb77e9/blob new file mode 100644 index 0000000000000000000000000000000000000000..76f7be471b56e46f16d960ed8f0c38f9e782f83a --- /dev/null +++ b/shared/package-files/e9/e985e54ebcd60f8ac0d075187d0f2875996c0b36bb967e1b4fdb2b386bfb77e9/blob @@ -0,0 +1,232 @@ +import sys +from typing import IO, Any, AnyStr, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Type, Union, overload + +# See https://groups.google.com/forum/#!topic/python-ideas/gA1gdj3RZ5g +if sys.version_info >= (3,): + _Text = str +else: + _Text = Union[str, unicode] + +NO_DEFAULT: Tuple[_Text, ...] +SUPPRESS_HELP: _Text +SUPPRESS_USAGE: _Text + +def check_builtin(option: Option, opt: Any, value: _Text) -> Any: ... +def check_choice(option: Option, opt: Any, value: _Text) -> Any: ... + +if sys.version_info < (3,): + def isbasestring(x: Any) -> bool: ... + +class OptParseError(Exception): + msg: _Text + def __init__(self, msg: _Text) -> None: ... + +class BadOptionError(OptParseError): + opt_str: _Text + def __init__(self, opt_str: _Text) -> None: ... + +class AmbiguousOptionError(BadOptionError): + possibilities: Iterable[_Text] + def __init__(self, opt_str: _Text, possibilities: Sequence[_Text]) -> None: ... + +class OptionError(OptParseError): + msg: _Text + option_id: _Text + def __init__(self, msg: _Text, option: Option) -> None: ... + +class OptionConflictError(OptionError): ... +class OptionValueError(OptParseError): ... + +class HelpFormatter: + NO_DEFAULT_VALUE: _Text + _long_opt_fmt: _Text + _short_opt_fmt: _Text + current_indent: int + default_tag: _Text + help_position: Any + help_width: Any + indent_increment: int + level: int + max_help_position: int + option_strings: Dict[Option, _Text] + parser: OptionParser + short_first: Any + width: int + def __init__(self, indent_increment: int, max_help_position: int, width: Optional[int], short_first: int) -> None: ... + def _format__Text(self, _Text: _Text) -> _Text: ... + def dedent(self) -> None: ... + def expand_default(self, option: Option) -> _Text: ... + def format_description(self, description: _Text) -> _Text: ... + def format_epilog(self, epilog: _Text) -> _Text: ... + def format_heading(self, heading: Any) -> _Text: ... + def format_option(self, option: OptionParser) -> _Text: ... + def format_option_strings(self, option: OptionParser) -> Any: ... + def format_usage(self, usage: Any) -> _Text: ... + def indent(self) -> None: ... + def set_long_opt_delimiter(self, delim: _Text) -> None: ... + def set_parser(self, parser: OptionParser) -> None: ... + def set_short_opt_delimiter(self, delim: _Text) -> None: ... + def store_option_strings(self, parser: OptionParser) -> None: ... + +class IndentedHelpFormatter(HelpFormatter): + def __init__( + self, indent_increment: int = ..., max_help_position: int = ..., width: Optional[int] = ..., short_first: int = ... + ) -> None: ... + def format_heading(self, heading: _Text) -> _Text: ... + def format_usage(self, usage: _Text) -> _Text: ... + +class TitledHelpFormatter(HelpFormatter): + def __init__( + self, indent_increment: int = ..., max_help_position: int = ..., width: Optional[int] = ..., short_first: int = ... + ) -> None: ... + def format_heading(self, heading: _Text) -> _Text: ... + def format_usage(self, usage: _Text) -> _Text: ... + +class Option: + ACTIONS: Tuple[_Text, ...] + ALWAYS_TYPED_ACTIONS: Tuple[_Text, ...] + ATTRS: List[_Text] + CHECK_METHODS: Optional[List[Callable[..., Any]]] + CONST_ACTIONS: Tuple[_Text, ...] + STORE_ACTIONS: Tuple[_Text, ...] + TYPED_ACTIONS: Tuple[_Text, ...] + TYPES: Tuple[_Text, ...] + TYPE_CHECKER: Dict[_Text, Callable[..., Any]] + _long_opts: List[_Text] + _short_opts: List[_Text] + action: _Text + dest: Optional[_Text] + nargs: int + type: Any + def __init__(self, *opts: Optional[_Text], **attrs: Any) -> None: ... + def _check_action(self) -> None: ... + def _check_callback(self) -> None: ... + def _check_choice(self) -> None: ... + def _check_const(self) -> None: ... + def _check_dest(self) -> None: ... + def _check_nargs(self) -> None: ... + def _check_opt_strings(self, opts: Iterable[Optional[_Text]]) -> List[_Text]: ... + def _check_type(self) -> None: ... + def _set_attrs(self, attrs: Dict[_Text, Any]) -> None: ... + def _set_opt_strings(self, opts: Iterable[_Text]) -> None: ... + def check_value(self, opt: Any, value: Any) -> Any: ... + def convert_value(self, opt: Any, value: Any) -> Any: ... + def get_opt_string(self) -> _Text: ... + def process(self, opt: Any, value: Any, values: Any, parser: OptionParser) -> int: ... + def take_action(self, action: _Text, dest: _Text, opt: Any, value: Any, values: Any, parser: OptionParser) -> int: ... + def takes_value(self) -> bool: ... + +make_option = Option + +class OptionContainer: + _long_opt: Dict[_Text, Option] + _short_opt: Dict[_Text, Option] + conflict_handler: _Text + defaults: Dict[_Text, Any] + description: Any + option_class: Type[Option] + def __init__(self, option_class: Type[Option], conflict_handler: Any, description: Any) -> None: ... + def _check_conflict(self, option: Any) -> None: ... + def _create_option_mappings(self) -> None: ... + def _share_option_mappings(self, parser: OptionParser) -> None: ... + @overload + def add_option(self, opt: Option) -> Option: ... + @overload + def add_option(self, *args: Optional[_Text], **kwargs: Any) -> Any: ... + def add_options(self, option_list: Iterable[Option]) -> None: ... + def destroy(self) -> None: ... + def format_description(self, formatter: Optional[HelpFormatter]) -> Any: ... + def format_help(self, formatter: Optional[HelpFormatter]) -> _Text: ... + def format_option_help(self, formatter: Optional[HelpFormatter]) -> _Text: ... + def get_description(self) -> Any: ... + def get_option(self, opt_str: _Text) -> Optional[Option]: ... + def has_option(self, opt_str: _Text) -> bool: ... + def remove_option(self, opt_str: _Text) -> None: ... + def set_conflict_handler(self, handler: Any) -> None: ... + def set_description(self, description: Any) -> None: ... + +class OptionGroup(OptionContainer): + option_list: List[Option] + parser: OptionParser + title: _Text + def __init__(self, parser: OptionParser, title: _Text, description: Optional[_Text] = ...) -> None: ... + def _create_option_list(self) -> None: ... + def set_title(self, title: _Text) -> None: ... + +class Values: + def __init__(self, defaults: Optional[Mapping[str, Any]] = ...) -> None: ... + def _update(self, dict: Mapping[_Text, Any], mode: Any) -> None: ... + def _update_careful(self, dict: Mapping[_Text, Any]) -> None: ... + def _update_loose(self, dict: Mapping[_Text, Any]) -> None: ... + def ensure_value(self, attr: _Text, value: Any) -> Any: ... + def read_file(self, filename: _Text, mode: _Text) -> None: ... + def read_module(self, modname: _Text, mode: _Text) -> None: ... + def __getattr__(self, name: str) -> Any: ... + def __setattr__(self, name: str, value: Any) -> None: ... + +class OptionParser(OptionContainer): + allow_interspersed_args: bool + epilog: Optional[_Text] + formatter: HelpFormatter + largs: Optional[List[_Text]] + option_groups: List[OptionParser] + option_list: List[Option] + process_default_values: Any + prog: Optional[_Text] + rargs: Optional[List[Any]] + standard_option_list: List[Option] + usage: Optional[_Text] + values: Optional[Values] + version: _Text + def __init__( + self, + usage: Optional[_Text] = ..., + option_list: Iterable[Option] = ..., + option_class: Type[Option] = ..., + version: Optional[_Text] = ..., + conflict_handler: _Text = ..., + description: Optional[_Text] = ..., + formatter: Optional[HelpFormatter] = ..., + add_help_option: bool = ..., + prog: Optional[_Text] = ..., + epilog: Optional[_Text] = ..., + ) -> None: ... + def _add_help_option(self) -> None: ... + def _add_version_option(self) -> None: ... + def _create_option_list(self) -> None: ... + def _get_all_options(self) -> List[Option]: ... + def _get_args(self, args: Iterable[Any]) -> List[Any]: ... + def _init_parsing_state(self) -> None: ... + def _match_long_opt(self, opt: _Text) -> _Text: ... + def _populate_option_list(self, option_list: Iterable[Option], add_help: bool = ...) -> None: ... + def _process_args(self, largs: List[Any], rargs: List[Any], values: Values) -> None: ... + def _process_long_opt(self, rargs: List[Any], values: Any) -> None: ... + def _process_short_opts(self, rargs: List[Any], values: Any) -> None: ... + @overload + def add_option_group(self, __opt_group: OptionGroup) -> OptionParser: ... + @overload + def add_option_group(self, *args: Any, **kwargs: Any) -> OptionParser: ... + def check_values(self, values: Values, args: List[_Text]) -> Tuple[Values, List[_Text]]: ... + def disable_interspersed_args(self) -> None: ... + def enable_interspersed_args(self) -> None: ... + def error(self, msg: _Text) -> None: ... + def exit(self, status: int = ..., msg: Optional[str] = ...) -> None: ... + def expand_prog_name(self, s: Optional[_Text]) -> Any: ... + def format_epilog(self, formatter: HelpFormatter) -> Any: ... + def format_help(self, formatter: Optional[HelpFormatter] = ...) -> _Text: ... + def format_option_help(self, formatter: Optional[HelpFormatter] = ...) -> _Text: ... + def get_default_values(self) -> Values: ... + def get_option_group(self, opt_str: _Text) -> Any: ... + def get_prog_name(self) -> _Text: ... + def get_usage(self) -> _Text: ... + def get_version(self) -> _Text: ... + def parse_args( + self, args: Optional[Sequence[AnyStr]] = ..., values: Optional[Values] = ... + ) -> Tuple[Values, List[AnyStr]]: ... + def print_usage(self, file: Optional[IO[str]] = ...) -> None: ... + def print_help(self, file: Optional[IO[str]] = ...) -> None: ... + def print_version(self, file: Optional[IO[str]] = ...) -> None: ... + def set_default(self, dest: Any, value: Any) -> None: ... + def set_defaults(self, **kwargs: Any) -> None: ... + def set_process_default_values(self, process: Any) -> None: ... + def set_usage(self, usage: _Text) -> None: ... diff --git a/shared/package-files/e9/e98a4ea748b93d11adc923cd66c790f268d25dbc297c67f3d210c1e247e4e344/blob b/shared/package-files/e9/e98a4ea748b93d11adc923cd66c790f268d25dbc297c67f3d210c1e247e4e344/blob new file mode 100644 index 0000000000000000000000000000000000000000..795ef8f08f6ec212879f528c6a0c2f0bd73037f0 --- /dev/null +++ b/shared/package-files/e9/e98a4ea748b93d11adc923cd66c790f268d25dbc297c67f3d210c1e247e4e344/blob @@ -0,0 +1,105 @@ +from sympy.combinatorics.generators import symmetric, cyclic, alternating, \ + dihedral, rubik +from sympy.combinatorics.permutations import Permutation +from sympy.testing.pytest import raises + +def test_generators(): + + assert list(cyclic(6)) == [ + Permutation([0, 1, 2, 3, 4, 5]), + Permutation([1, 2, 3, 4, 5, 0]), + Permutation([2, 3, 4, 5, 0, 1]), + Permutation([3, 4, 5, 0, 1, 2]), + Permutation([4, 5, 0, 1, 2, 3]), + Permutation([5, 0, 1, 2, 3, 4])] + + assert list(cyclic(10)) == [ + Permutation([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), + Permutation([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]), + Permutation([2, 3, 4, 5, 6, 7, 8, 9, 0, 1]), + Permutation([3, 4, 5, 6, 7, 8, 9, 0, 1, 2]), + Permutation([4, 5, 6, 7, 8, 9, 0, 1, 2, 3]), + Permutation([5, 6, 7, 8, 9, 0, 1, 2, 3, 4]), + Permutation([6, 7, 8, 9, 0, 1, 2, 3, 4, 5]), + Permutation([7, 8, 9, 0, 1, 2, 3, 4, 5, 6]), + Permutation([8, 9, 0, 1, 2, 3, 4, 5, 6, 7]), + Permutation([9, 0, 1, 2, 3, 4, 5, 6, 7, 8])] + + assert list(alternating(4)) == [ + Permutation([0, 1, 2, 3]), + Permutation([0, 2, 3, 1]), + Permutation([0, 3, 1, 2]), + Permutation([1, 0, 3, 2]), + Permutation([1, 2, 0, 3]), + Permutation([1, 3, 2, 0]), + Permutation([2, 0, 1, 3]), + Permutation([2, 1, 3, 0]), + Permutation([2, 3, 0, 1]), + Permutation([3, 0, 2, 1]), + Permutation([3, 1, 0, 2]), + Permutation([3, 2, 1, 0])] + + assert list(symmetric(3)) == [ + Permutation([0, 1, 2]), + Permutation([0, 2, 1]), + Permutation([1, 0, 2]), + Permutation([1, 2, 0]), + Permutation([2, 0, 1]), + Permutation([2, 1, 0])] + + assert list(symmetric(4)) == [ + Permutation([0, 1, 2, 3]), + Permutation([0, 1, 3, 2]), + Permutation([0, 2, 1, 3]), + Permutation([0, 2, 3, 1]), + Permutation([0, 3, 1, 2]), + Permutation([0, 3, 2, 1]), + Permutation([1, 0, 2, 3]), + Permutation([1, 0, 3, 2]), + Permutation([1, 2, 0, 3]), + Permutation([1, 2, 3, 0]), + Permutation([1, 3, 0, 2]), + Permutation([1, 3, 2, 0]), + Permutation([2, 0, 1, 3]), + Permutation([2, 0, 3, 1]), + Permutation([2, 1, 0, 3]), + Permutation([2, 1, 3, 0]), + Permutation([2, 3, 0, 1]), + Permutation([2, 3, 1, 0]), + Permutation([3, 0, 1, 2]), + Permutation([3, 0, 2, 1]), + Permutation([3, 1, 0, 2]), + Permutation([3, 1, 2, 0]), + Permutation([3, 2, 0, 1]), + Permutation([3, 2, 1, 0])] + + assert list(dihedral(1)) == [ + Permutation([0, 1]), Permutation([1, 0])] + + assert list(dihedral(2)) == [ + Permutation([0, 1, 2, 3]), + Permutation([1, 0, 3, 2]), + Permutation([2, 3, 0, 1]), + Permutation([3, 2, 1, 0])] + + assert list(dihedral(3)) == [ + Permutation([0, 1, 2]), + Permutation([2, 1, 0]), + Permutation([1, 2, 0]), + Permutation([0, 2, 1]), + Permutation([2, 0, 1]), + Permutation([1, 0, 2])] + + assert list(dihedral(5)) == [ + Permutation([0, 1, 2, 3, 4]), + Permutation([4, 3, 2, 1, 0]), + Permutation([1, 2, 3, 4, 0]), + Permutation([0, 4, 3, 2, 1]), + Permutation([2, 3, 4, 0, 1]), + Permutation([1, 0, 4, 3, 2]), + Permutation([3, 4, 0, 1, 2]), + Permutation([2, 1, 0, 4, 3]), + Permutation([4, 0, 1, 2, 3]), + Permutation([3, 2, 1, 0, 4])] + + raises(ValueError, lambda: rubik(1)) diff --git a/shared/package-files/e9/e98d49f3b2d70ed65ea8f90b59c1a5ff3705850d6cafd4e5d24d63fd4523c291/blob b/shared/package-files/e9/e98d49f3b2d70ed65ea8f90b59c1a5ff3705850d6cafd4e5d24d63fd4523c291/blob new file mode 100644 index 0000000000000000000000000000000000000000..188579f0915744a3d727213296e8785efa056711 --- /dev/null +++ b/shared/package-files/e9/e98d49f3b2d70ed65ea8f90b59c1a5ff3705850d6cafd4e5d24d63fd4523c291/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor view_as_complex(const at::Tensor & self); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/e9/e98f7353ae8d7dc1a14d794539d163092312c0a5e9ab965f01edc5c29900b26e/blob b/shared/package-files/e9/e98f7353ae8d7dc1a14d794539d163092312c0a5e9ab965f01edc5c29900b26e/blob new file mode 100644 index 0000000000000000000000000000000000000000..e7b10fa9215e88e56794e9c73d0b13872cbd953c --- /dev/null +++ b/shared/package-files/e9/e98f7353ae8d7dc1a14d794539d163092312c0a5e9ab965f01edc5c29900b26e/blob @@ -0,0 +1,12 @@ +python module _char_handling_test + interface + subroutine charint(trans, info) + callstatement (*f2py_func)(&trans, &info) + callprotoargument char*, int* + + character, intent(in), check(*trans=='N'||*trans=='T'||*trans=='C') :: trans = 'N' + integer intent(out) :: info + + end subroutine charint + end interface +end python module _char_handling_test diff --git a/shared/package-files/e9/e9945f11f9695e5e5fa4af9dbb625c4680c628d26307e2f27679d8ea6aba3972/blob b/shared/package-files/e9/e9945f11f9695e5e5fa4af9dbb625c4680c628d26307e2f27679d8ea6aba3972/blob new file mode 100644 index 0000000000000000000000000000000000000000..53a0b4584cdc3f1db237364867ab4ec98e60f980 --- /dev/null +++ b/shared/package-files/e9/e9945f11f9695e5e5fa4af9dbb625c4680c628d26307e2f27679d8ea6aba3972/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor sigmoid_backward(const at::Tensor & grad_output, const at::Tensor & output); +TORCH_API at::Tensor & sigmoid_backward_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & output); +TORCH_API at::Tensor & sigmoid_backward_outf(const at::Tensor & grad_output, const at::Tensor & output, at::Tensor & grad_input); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/e9/e99571084a697210a80a75866df84da4d43020abfcfd6103a72242082ddfa34e/blob b/shared/package-files/e9/e99571084a697210a80a75866df84da4d43020abfcfd6103a72242082ddfa34e/blob new file mode 100644 index 0000000000000000000000000000000000000000..136b072202b9dee4cdaa81a718315450da7a236f --- /dev/null +++ b/shared/package-files/e9/e99571084a697210a80a75866df84da4d43020abfcfd6103a72242082ddfa34e/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor mse_loss(const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean); +TORCH_API at::Tensor & mse_loss_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean); +TORCH_API at::Tensor & mse_loss_outf(const at::Tensor & self, const at::Tensor & target, int64_t reduction, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/e9/e9994bdc489c133a0674c39ab7ceb0f32fd72020a79477428c523deeb3314438/blob b/shared/package-files/e9/e9994bdc489c133a0674c39ab7ceb0f32fd72020a79477428c523deeb3314438/blob new file mode 100644 index 0000000000000000000000000000000000000000..b6c9a5cdc5206997f12d2818e6c751a423e187ea --- /dev/null +++ b/shared/package-files/e9/e9994bdc489c133a0674c39ab7ceb0f32fd72020a79477428c523deeb3314438/blob @@ -0,0 +1,63 @@ +# This file is dual licensed under the terms of the Apache License, Version +# 2.0, and the BSD License. See the LICENSE file in the root of this repository +# for complete details. + +from __future__ import annotations + +from cryptography.hazmat.primitives._serialization import ( + BestAvailableEncryption, + Encoding, + KeySerializationEncryption, + NoEncryption, + ParameterFormat, + PrivateFormat, + PublicFormat, + _KeySerializationEncryption, +) +from cryptography.hazmat.primitives.serialization.base import ( + load_der_parameters, + load_der_private_key, + load_der_public_key, + load_pem_parameters, + load_pem_private_key, + load_pem_public_key, +) +from cryptography.hazmat.primitives.serialization.ssh import ( + SSHCertificate, + SSHCertificateBuilder, + SSHCertificateType, + SSHCertPrivateKeyTypes, + SSHCertPublicKeyTypes, + SSHPrivateKeyTypes, + SSHPublicKeyTypes, + load_ssh_private_key, + load_ssh_public_identity, + load_ssh_public_key, +) + +__all__ = [ + "load_der_parameters", + "load_der_private_key", + "load_der_public_key", + "load_pem_parameters", + "load_pem_private_key", + "load_pem_public_key", + "load_ssh_private_key", + "load_ssh_public_identity", + "load_ssh_public_key", + "Encoding", + "PrivateFormat", + "PublicFormat", + "ParameterFormat", + "KeySerializationEncryption", + "BestAvailableEncryption", + "NoEncryption", + "_KeySerializationEncryption", + "SSHCertificateBuilder", + "SSHCertificate", + "SSHCertificateType", + "SSHCertPublicKeyTypes", + "SSHCertPrivateKeyTypes", + "SSHPrivateKeyTypes", + "SSHPublicKeyTypes", +] diff --git a/shared/package-files/e9/e999bf6f7e81f2e39af11b0af685e76b3fa38401d4e6089f4b95f2118ebaa625/blob b/shared/package-files/e9/e999bf6f7e81f2e39af11b0af685e76b3fa38401d4e6089f4b95f2118ebaa625/blob new file mode 100644 index 0000000000000000000000000000000000000000..4080458b80553ba8663d14ea25b396020aac9d23 --- /dev/null +++ b/shared/package-files/e9/e999bf6f7e81f2e39af11b0af685e76b3fa38401d4e6089f4b95f2118ebaa625/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor index_add(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha=1); +TORCH_API at::Tensor & index_add_out(at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha=1); +TORCH_API at::Tensor & index_add_outf(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha, at::Tensor & out); +TORCH_API at::Tensor & index_add_(at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & source, const at::Scalar & alpha=1); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/e9/e99ac01bd7c062f7557b614aff0d21997a06ed962ca185306a91bc0a20bbd87d/blob b/shared/package-files/e9/e99ac01bd7c062f7557b614aff0d21997a06ed962ca185306a91bc0a20bbd87d/blob new file mode 100644 index 0000000000000000000000000000000000000000..0c21345879b298bb8668201bebe7d289586b17f9 --- /dev/null +++ b/shared/package-files/e9/e99ac01bd7c062f7557b614aff0d21997a06ed962ca185306a91bc0a20bbd87d/blob @@ -0,0 +1,101 @@ + +__all__ = [ + 'CBaseLoader', 'CSafeLoader', 'CFullLoader', 'CUnsafeLoader', 'CLoader', + 'CBaseDumper', 'CSafeDumper', 'CDumper' +] + +from yaml._yaml import CParser, CEmitter + +from .constructor import * + +from .serializer import * +from .representer import * + +from .resolver import * + +class CBaseLoader(CParser, BaseConstructor, BaseResolver): + + def __init__(self, stream): + CParser.__init__(self, stream) + BaseConstructor.__init__(self) + BaseResolver.__init__(self) + +class CSafeLoader(CParser, SafeConstructor, Resolver): + + def __init__(self, stream): + CParser.__init__(self, stream) + SafeConstructor.__init__(self) + Resolver.__init__(self) + +class CFullLoader(CParser, FullConstructor, Resolver): + + def __init__(self, stream): + CParser.__init__(self, stream) + FullConstructor.__init__(self) + Resolver.__init__(self) + +class CUnsafeLoader(CParser, UnsafeConstructor, Resolver): + + def __init__(self, stream): + CParser.__init__(self, stream) + UnsafeConstructor.__init__(self) + Resolver.__init__(self) + +class CLoader(CParser, Constructor, Resolver): + + def __init__(self, stream): + CParser.__init__(self, stream) + Constructor.__init__(self) + Resolver.__init__(self) + +class CBaseDumper(CEmitter, BaseRepresenter, BaseResolver): + + def __init__(self, stream, + default_style=None, default_flow_style=False, + canonical=None, indent=None, width=None, + allow_unicode=None, line_break=None, + encoding=None, explicit_start=None, explicit_end=None, + version=None, tags=None, sort_keys=True): + CEmitter.__init__(self, stream, canonical=canonical, + indent=indent, width=width, encoding=encoding, + allow_unicode=allow_unicode, line_break=line_break, + explicit_start=explicit_start, explicit_end=explicit_end, + version=version, tags=tags) + Representer.__init__(self, default_style=default_style, + default_flow_style=default_flow_style, sort_keys=sort_keys) + Resolver.__init__(self) + +class CSafeDumper(CEmitter, SafeRepresenter, Resolver): + + def __init__(self, stream, + default_style=None, default_flow_style=False, + canonical=None, indent=None, width=None, + allow_unicode=None, line_break=None, + encoding=None, explicit_start=None, explicit_end=None, + version=None, tags=None, sort_keys=True): + CEmitter.__init__(self, stream, canonical=canonical, + indent=indent, width=width, encoding=encoding, + allow_unicode=allow_unicode, line_break=line_break, + explicit_start=explicit_start, explicit_end=explicit_end, + version=version, tags=tags) + SafeRepresenter.__init__(self, default_style=default_style, + default_flow_style=default_flow_style, sort_keys=sort_keys) + Resolver.__init__(self) + +class CDumper(CEmitter, Serializer, Representer, Resolver): + + def __init__(self, stream, + default_style=None, default_flow_style=False, + canonical=None, indent=None, width=None, + allow_unicode=None, line_break=None, + encoding=None, explicit_start=None, explicit_end=None, + version=None, tags=None, sort_keys=True): + CEmitter.__init__(self, stream, canonical=canonical, + indent=indent, width=width, encoding=encoding, + allow_unicode=allow_unicode, line_break=line_break, + explicit_start=explicit_start, explicit_end=explicit_end, + version=version, tags=tags) + Representer.__init__(self, default_style=default_style, + default_flow_style=default_flow_style, sort_keys=sort_keys) + Resolver.__init__(self) + diff --git a/shared/package-files/e9/e99c823bfcfbcf615d6859615d50c58fa93f64e337c561d0362d876984968af3/blob b/shared/package-files/e9/e99c823bfcfbcf615d6859615d50c58fa93f64e337c561d0362d876984968af3/blob new file mode 100644 index 0000000000000000000000000000000000000000..c30169b3a67980b20699a370aff08892ddf05e1a Binary files /dev/null and b/shared/package-files/e9/e99c823bfcfbcf615d6859615d50c58fa93f64e337c561d0362d876984968af3/blob differ diff --git a/shared/package-files/e9/e99d3bf14a1a61496788a4c5bf82bad4b8897bacedfa1be8e844966fe63cfe01/blob b/shared/package-files/e9/e99d3bf14a1a61496788a4c5bf82bad4b8897bacedfa1be8e844966fe63cfe01/blob new file mode 100644 index 0000000000000000000000000000000000000000..75c2a25ccb7cd9e9d3dabd0e4c6904f7b3473e78 --- /dev/null +++ b/shared/package-files/e9/e99d3bf14a1a61496788a4c5bf82bad4b8897bacedfa1be8e844966fe63cfe01/blob @@ -0,0 +1,155 @@ +""" +Handlers for IPythonDirective's @doctest pseudo-decorator. + +The Sphinx extension that provides support for embedded IPython code provides +a pseudo-decorator @doctest, which treats the input/output block as a +doctest, raising a RuntimeError during doc generation if the actual output +(after running the input) does not match the expected output. + +An example usage is: + +.. code-block:: rst + + .. ipython:: + + In [1]: x = 1 + + @doctest + In [2]: x + 2 + Out[3]: 3 + +One can also provide arguments to the decorator. The first argument should be +the name of a custom handler. The specification of any other arguments is +determined by the handler. For example, + +.. code-block:: rst + + .. ipython:: + + @doctest float + In [154]: 0.1 + 0.2 + Out[154]: 0.3 + +allows the actual output ``0.30000000000000004`` to match the expected output +due to a comparison with `np.allclose`. + +This module contains handlers for the @doctest pseudo-decorator. Handlers +should have the following function signature:: + + handler(sphinx_shell, args, input_lines, found, submitted) + +where `sphinx_shell` is the embedded Sphinx shell, `args` contains the list +of arguments that follow: '@doctest handler_name', `input_lines` contains +a list of the lines relevant to the current doctest, `found` is a string +containing the output from the IPython shell, and `submitted` is a string +containing the expected output from the IPython shell. + +Handlers must be registered in the `doctests` dict at the end of this module. + +""" + +def str_to_array(s): + """ + Simplistic converter of strings from repr to float NumPy arrays. + + If the repr representation has ellipsis in it, then this will fail. + + Parameters + ---------- + s : str + The repr version of a NumPy array. + + Examples + -------- + >>> s = "array([ 0.3, inf, nan])" + >>> a = str_to_array(s) + + """ + import numpy as np + + # Need to make sure eval() knows about inf and nan. + # This also assumes default printoptions for NumPy. + from numpy import inf, nan + + if s.startswith(u'array'): + # Remove array( and ) + s = s[6:-1] + + if s.startswith(u'['): + a = np.array(eval(s), dtype=float) + else: + # Assume its a regular float. Force 1D so we can index into it. + a = np.atleast_1d(float(s)) + return a + +def float_doctest(sphinx_shell, args, input_lines, found, submitted): + """ + Doctest which allow the submitted output to vary slightly from the input. + + Here is how it might appear in an rst file: + + .. code-block:: rst + + .. ipython:: + + @doctest float + In [1]: 0.1 + 0.2 + Out[1]: 0.3 + + """ + import numpy as np + + if len(args) == 2: + rtol = 1e-05 + atol = 1e-08 + else: + # Both must be specified if any are specified. + try: + rtol = float(args[2]) + atol = float(args[3]) + except IndexError as e: + e = ("Both `rtol` and `atol` must be specified " + "if either are specified: {0}".format(args)) + raise IndexError(e) from e + + try: + submitted = str_to_array(submitted) + found = str_to_array(found) + except: + # For example, if the array is huge and there are ellipsis in it. + error = True + else: + found_isnan = np.isnan(found) + submitted_isnan = np.isnan(submitted) + error = not np.allclose(found_isnan, submitted_isnan) + error |= not np.allclose(found[~found_isnan], + submitted[~submitted_isnan], + rtol=rtol, atol=atol) + + TAB = ' ' * 4 + directive = sphinx_shell.directive + if directive is None: + source = 'Unavailable' + content = 'Unavailable' + else: + source = directive.state.document.current_source + # Add tabs and make into a single string. + content = '\n'.join([TAB + line for line in directive.content]) + + if error: + + e = ('doctest float comparison failure\n\n' + 'Document source: {0}\n\n' + 'Raw content: \n{1}\n\n' + 'On input line(s):\n{TAB}{2}\n\n' + 'we found output:\n{TAB}{3}\n\n' + 'instead of the expected:\n{TAB}{4}\n\n') + e = e.format(source, content, '\n'.join(input_lines), repr(found), + repr(submitted), TAB=TAB) + raise RuntimeError(e) + +# dict of allowable doctest handlers. The key represents the first argument +# that must be given to @doctest in order to activate the handler. +doctests = { + 'float': float_doctest, +} diff --git a/shared/package-files/e9/e99de06ae21e74aac80a6380697e03cd04048f585b465afee570525087626037/blob b/shared/package-files/e9/e99de06ae21e74aac80a6380697e03cd04048f585b465afee570525087626037/blob new file mode 100644 index 0000000000000000000000000000000000000000..599359b395b6b8ca6a5a34ed3fdce643d947d812 --- /dev/null +++ b/shared/package-files/e9/e99de06ae21e74aac80a6380697e03cd04048f585b465afee570525087626037/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API triplet_margin_loss { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &, double, double, double, bool, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::triplet_margin_loss") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "triplet_margin_loss(Tensor anchor, Tensor positive, Tensor negative, float margin=1.0, float p=2, float eps=1e-06, bool swap=False, int reduction=Mean) -> Tensor") + static at::Tensor call(const at::Tensor & anchor, const at::Tensor & positive, const at::Tensor & negative, double margin, double p, double eps, bool swap, int64_t reduction); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & anchor, const at::Tensor & positive, const at::Tensor & negative, double margin, double p, double eps, bool swap, int64_t reduction); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e9/e9a1748563d71ec3bf996918e624cfbf4793112e8807b23bc693d3b223ac51c5/blob b/shared/package-files/e9/e9a1748563d71ec3bf996918e624cfbf4793112e8807b23bc693d3b223ac51c5/blob new file mode 100644 index 0000000000000000000000000000000000000000..befcc0743b5948e7ca7d9626ce2b3782f5af2869 --- /dev/null +++ b/shared/package-files/e9/e9a1748563d71ec3bf996918e624cfbf4793112e8807b23bc693d3b223ac51c5/blob @@ -0,0 +1,11 @@ +prefix=/opt/conda +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include/webp + +Name: libsharpyuv +Description: Library for sharp RGB to YUV conversion +Version: 1.3.2 +Cflags: -I${includedir} +Libs: -L${libdir} -lsharpyuv +Libs.private: -lm -pthread diff --git a/shared/package-files/e9/e9a2f637e8ba5e7279a7d485a47cbb9978fe89b0c0069b935235a0db4b63e4d9/blob b/shared/package-files/e9/e9a2f637e8ba5e7279a7d485a47cbb9978fe89b0c0069b935235a0db4b63e4d9/blob new file mode 100644 index 0000000000000000000000000000000000000000..a575613b553df8a2f715cec44f17ba087c5d0897 Binary files /dev/null and b/shared/package-files/e9/e9a2f637e8ba5e7279a7d485a47cbb9978fe89b0c0069b935235a0db4b63e4d9/blob differ diff --git a/shared/package-files/e9/e9a9b9d25e5df38e032cf23ee012de98ef50c3ca5411f4480a9f09427ae90152/blob b/shared/package-files/e9/e9a9b9d25e5df38e032cf23ee012de98ef50c3ca5411f4480a9f09427ae90152/blob new file mode 100644 index 0000000000000000000000000000000000000000..3d349695449a433d29cb969a9702fd746fd7e3a7 --- /dev/null +++ b/shared/package-files/e9/e9a9b9d25e5df38e032cf23ee012de98ef50c3ca5411f4480a9f09427ae90152/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9a9b9d25e5df38e032cf23ee012de98ef50c3ca5411f4480a9f09427ae90152 +size 128720 diff --git a/shared/package-files/e9/e9af1324ab64146d4f50c884e3e0a69113529ab6c78bb2169a21a7e3dc846fca/blob b/shared/package-files/e9/e9af1324ab64146d4f50c884e3e0a69113529ab6c78bb2169a21a7e3dc846fca/blob new file mode 100644 index 0000000000000000000000000000000000000000..5baf67805b06c3ef71670379e401820c505e144c --- /dev/null +++ b/shared/package-files/e9/e9af1324ab64146d4f50c884e3e0a69113529ab6c78bb2169a21a7e3dc846fca/blob @@ -0,0 +1,15 @@ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +struct _PytorchRecordFunctionState; +typedef struct _PytorchRecordFunctionState _PytorchRecordFunctionState; + +_PytorchRecordFunctionState* _pytorch_record_function_enter(const char* name); +void _pytorch_record_function_exit(_PytorchRecordFunctionState* state); + +#ifdef __cplusplus +} // extern "C" +#endif diff --git a/shared/package-files/e9/e9b0cccf1dceb3bf4ef0f0c346352913ccab0f89f1e6bb9bf7fde46ff9b3bfb0/blob b/shared/package-files/e9/e9b0cccf1dceb3bf4ef0f0c346352913ccab0f89f1e6bb9bf7fde46ff9b3bfb0/blob new file mode 100644 index 0000000000000000000000000000000000000000..00c5b1ed488e99493bb6926bb159fb55cd7a9af2 --- /dev/null +++ b/shared/package-files/e9/e9b0cccf1dceb3bf4ef0f0c346352913ccab0f89f1e6bb9bf7fde46ff9b3bfb0/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9b0cccf1dceb3bf4ef0f0c346352913ccab0f89f1e6bb9bf7fde46ff9b3bfb0 +size 354928 diff --git a/shared/package-files/e9/e9b2332222f00f857630226ba9004e27687bbb2732d2ac74d66925f824755372/blob b/shared/package-files/e9/e9b2332222f00f857630226ba9004e27687bbb2732d2ac74d66925f824755372/blob new file mode 100644 index 0000000000000000000000000000000000000000..03fe3b128c066adb21406021ec2e34effbf65703 --- /dev/null +++ b/shared/package-files/e9/e9b2332222f00f857630226ba9004e27687bbb2732d2ac74d66925f824755372/blob @@ -0,0 +1,760 @@ +import numpy as np +import operator +import warnings +import numbers +from . import (linear_sum_assignment, OptimizeResult) +from ._optimize import _check_unknown_options + +from scipy._lib._util import check_random_state +import itertools + +QUADRATIC_ASSIGNMENT_METHODS = ['faq', '2opt'] + + +def quadratic_assignment(A, B, method="faq", options=None): + r""" + Approximates solution to the quadratic assignment problem and + the graph matching problem. + + Quadratic assignment solves problems of the following form: + + .. math:: + + \min_P & \ {\ \text{trace}(A^T P B P^T)}\\ + \mbox{s.t. } & {P \ \epsilon \ \mathcal{P}}\\ + + where :math:`\mathcal{P}` is the set of all permutation matrices, + and :math:`A` and :math:`B` are square matrices. + + Graph matching tries to *maximize* the same objective function. + This algorithm can be thought of as finding the alignment of the + nodes of two graphs that minimizes the number of induced edge + disagreements, or, in the case of weighted graphs, the sum of squared + edge weight differences. + + Note that the quadratic assignment problem is NP-hard. The results given + here are approximations and are not guaranteed to be optimal. + + + Parameters + ---------- + A : 2-D array, square + The square matrix :math:`A` in the objective function above. + + B : 2-D array, square + The square matrix :math:`B` in the objective function above. + + method : str in {'faq', '2opt'} (default: 'faq') + The algorithm used to solve the problem. + :ref:`'faq' ` (default) and + :ref:`'2opt' ` are available. + + options : dict, optional + A dictionary of solver options. All solvers support the following: + + maximize : bool (default: False) + Maximizes the objective function if ``True``. + + partial_match : 2-D array of integers, optional (default: None) + Fixes part of the matching. Also known as a "seed" [2]_. + + Each row of `partial_match` specifies a pair of matched nodes: + node ``partial_match[i, 0]`` of `A` is matched to node + ``partial_match[i, 1]`` of `B`. The array has shape ``(m, 2)``, + where ``m`` is not greater than the number of nodes, :math:`n`. + + rng : `numpy.random.Generator`, optional + Pseudorandom number generator state. When `rng` is None, a new + `numpy.random.Generator` is created using entropy from the + operating system. Types other than `numpy.random.Generator` are + passed to `numpy.random.default_rng` to instantiate a ``Generator``. + + .. versionchanged:: 1.15.0 + As part of the `SPEC-007 `_ + transition from use of `numpy.random.RandomState` to + `numpy.random.Generator` is occurring. Supplying + `np.random.RandomState` to this function will now emit a + `DeprecationWarning`. In SciPy 1.17 its use will raise an exception. + In addition relying on global state using `np.random.seed` + will emit a `FutureWarning`. In SciPy 1.17 the global random number + generator will no longer be used. + Use of an int-like seed will raise a `FutureWarning`, in SciPy 1.17 it + will be normalized via `np.random.default_rng` rather than + `np.random.RandomState`. + + For method-specific options, see + :func:`show_options('quadratic_assignment') `. + + Returns + ------- + res : OptimizeResult + `OptimizeResult` containing the following fields. + + col_ind : 1-D array + Column indices corresponding to the best permutation found of the + nodes of `B`. + fun : float + The objective value of the solution. + nit : int + The number of iterations performed during optimization. + + Notes + ----- + The default method :ref:`'faq' ` uses the Fast + Approximate QAP algorithm [1]_; it typically offers the best combination of + speed and accuracy. + Method :ref:`'2opt' ` can be computationally expensive, + but may be a useful alternative, or it can be used to refine the solution + returned by another method. + + References + ---------- + .. [1] J.T. Vogelstein, J.M. Conroy, V. Lyzinski, L.J. Podrazik, + S.G. Kratzer, E.T. Harley, D.E. Fishkind, R.J. Vogelstein, and + C.E. Priebe, "Fast approximate quadratic programming for graph + matching," PLOS one, vol. 10, no. 4, p. e0121002, 2015, + :doi:`10.1371/journal.pone.0121002` + + .. [2] D. Fishkind, S. Adali, H. Patsolic, L. Meng, D. Singh, V. Lyzinski, + C. Priebe, "Seeded graph matching", Pattern Recognit. 87 (2019): + 203-215, :doi:`10.1016/j.patcog.2018.09.014` + + .. [3] "2-opt," Wikipedia. + https://en.wikipedia.org/wiki/2-opt + + Examples + -------- + >>> import numpy as np + >>> from scipy.optimize import quadratic_assignment + >>> rng = np.random.default_rng() + >>> A = np.array([[0, 80, 150, 170], [80, 0, 130, 100], + ... [150, 130, 0, 120], [170, 100, 120, 0]]) + >>> B = np.array([[0, 5, 2, 7], [0, 0, 3, 8], + ... [0, 0, 0, 3], [0, 0, 0, 0]]) + >>> res = quadratic_assignment(A, B, options={'rng': rng}) + >>> print(res) + fun: 3260 + col_ind: [0 3 2 1] + nit: 9 + + The see the relationship between the returned ``col_ind`` and ``fun``, + use ``col_ind`` to form the best permutation matrix found, then evaluate + the objective function :math:`f(P) = trace(A^T P B P^T )`. + + >>> perm = res['col_ind'] + >>> P = np.eye(len(A), dtype=int)[perm] + >>> fun = np.trace(A.T @ P @ B @ P.T) + >>> print(fun) + 3260 + + Alternatively, to avoid constructing the permutation matrix explicitly, + directly permute the rows and columns of the distance matrix. + + >>> fun = np.trace(A.T @ B[perm][:, perm]) + >>> print(fun) + 3260 + + Although not guaranteed in general, ``quadratic_assignment`` happens to + have found the globally optimal solution. + + >>> from itertools import permutations + >>> perm_opt, fun_opt = None, np.inf + >>> for perm in permutations([0, 1, 2, 3]): + ... perm = np.array(perm) + ... fun = np.trace(A.T @ B[perm][:, perm]) + ... if fun < fun_opt: + ... fun_opt, perm_opt = fun, perm + >>> print(np.array_equal(perm_opt, res['col_ind'])) + True + + Here is an example for which the default method, + :ref:`'faq' `, does not find the global optimum. + + >>> A = np.array([[0, 5, 8, 6], [5, 0, 5, 1], + ... [8, 5, 0, 2], [6, 1, 2, 0]]) + >>> B = np.array([[0, 1, 8, 4], [1, 0, 5, 2], + ... [8, 5, 0, 5], [4, 2, 5, 0]]) + >>> res = quadratic_assignment(A, B, options={'rng': rng}) + >>> print(res) + fun: 178 + col_ind: [1 0 3 2] + nit: 13 + + If accuracy is important, consider using :ref:`'2opt' ` + to refine the solution. + + >>> guess = np.array([np.arange(len(A)), res.col_ind]).T + >>> res = quadratic_assignment(A, B, method="2opt", + ... options = {'rng': rng, 'partial_guess': guess}) + >>> print(res) + fun: 176 + col_ind: [1 2 3 0] + nit: 17 + + """ + + if options is None: + options = {} + + method = method.lower() + methods = {"faq": _quadratic_assignment_faq, + "2opt": _quadratic_assignment_2opt} + if method not in methods: + raise ValueError(f"method {method} must be in {methods}.") + + _spec007_transition(options.get("rng", None)) + res = methods[method](A, B, **options) + return res + + +def _spec007_transition(rng): + if isinstance(rng, np.random.RandomState): + warnings.warn( + "Use of `RandomState` with `quadratic_assignment` is deprecated" + " and will result in an exception in SciPy 1.17", + DeprecationWarning, + stacklevel=2 + ) + if ((rng is None or rng is np.random) and + np.random.mtrand._rand._bit_generator._seed_seq is None): + warnings.warn( + "The NumPy global RNG was seeded by calling `np.random.seed`." + " From SciPy 1.17, this function will no longer use the global RNG.", + FutureWarning, + stacklevel=2 + ) + if isinstance(rng, numbers.Integral | np.integer): + warnings.warn( + "The behavior when the rng option is an integer is changing: the value" + " will be normalized using np.random.default_rng beginning in SciPy 1.17," + " and the resulting Generator will be used to generate random numbers.", + FutureWarning, + stacklevel=2 + ) + + +def _calc_score(A, B, perm): + # equivalent to objective function but avoids matmul + return np.sum(A * B[perm][:, perm]) + + +def _common_input_validation(A, B, partial_match): + A = np.atleast_2d(A) + B = np.atleast_2d(B) + + if partial_match is None: + partial_match = np.array([[], []]).T + partial_match = np.atleast_2d(partial_match).astype(int) + + msg = None + if A.shape[0] != A.shape[1]: + msg = "`A` must be square" + elif B.shape[0] != B.shape[1]: + msg = "`B` must be square" + elif A.ndim != 2 or B.ndim != 2: + msg = "`A` and `B` must have exactly two dimensions" + elif A.shape != B.shape: + msg = "`A` and `B` matrices must be of equal size" + elif partial_match.shape[0] > A.shape[0]: + msg = "`partial_match` can have only as many seeds as there are nodes" + elif partial_match.shape[1] != 2: + msg = "`partial_match` must have two columns" + elif partial_match.ndim != 2: + msg = "`partial_match` must have exactly two dimensions" + elif (partial_match < 0).any(): + msg = "`partial_match` must contain only positive indices" + elif (partial_match >= len(A)).any(): + msg = "`partial_match` entries must be less than number of nodes" + elif (not len(set(partial_match[:, 0])) == len(partial_match[:, 0]) or + not len(set(partial_match[:, 1])) == len(partial_match[:, 1])): + msg = "`partial_match` column entries must be unique" + + if msg is not None: + raise ValueError(msg) + + return A, B, partial_match + + +def _quadratic_assignment_faq(A, B, + maximize=False, partial_match=None, rng=None, + P0="barycenter", shuffle_input=False, maxiter=30, + tol=0.03, **unknown_options): + r"""Solve the quadratic assignment problem (approximately). + + This function solves the Quadratic Assignment Problem (QAP) and the + Graph Matching Problem (GMP) using the Fast Approximate QAP Algorithm + (FAQ) [1]_. + + Quadratic assignment solves problems of the following form: + + .. math:: + + \min_P & \ {\ \text{trace}(A^T P B P^T)}\\ + \mbox{s.t. } & {P \ \epsilon \ \mathcal{P}}\\ + + where :math:`\mathcal{P}` is the set of all permutation matrices, + and :math:`A` and :math:`B` are square matrices. + + Graph matching tries to *maximize* the same objective function. + This algorithm can be thought of as finding the alignment of the + nodes of two graphs that minimizes the number of induced edge + disagreements, or, in the case of weighted graphs, the sum of squared + edge weight differences. + + Note that the quadratic assignment problem is NP-hard. The results given + here are approximations and are not guaranteed to be optimal. + + Parameters + ---------- + A : 2-D array, square + The square matrix :math:`A` in the objective function above. + B : 2-D array, square + The square matrix :math:`B` in the objective function above. + method : str in {'faq', '2opt'} (default: 'faq') + The algorithm used to solve the problem. This is the method-specific + documentation for 'faq'. + :ref:`'2opt' ` is also available. + + Options + ------- + maximize : bool (default: False) + Maximizes the objective function if ``True``. + partial_match : 2-D array of integers, optional (default: None) + Fixes part of the matching. Also known as a "seed" [2]_. + + Each row of `partial_match` specifies a pair of matched nodes: + node ``partial_match[i, 0]`` of `A` is matched to node + ``partial_match[i, 1]`` of `B`. The array has shape ``(m, 2)``, where + ``m`` is not greater than the number of nodes, :math:`n`. + + rng : {None, int, `numpy.random.Generator`}, optional + Pseudorandom number generator state. See `quadratic_assignment` for details. + P0 : 2-D array, "barycenter", or "randomized" (default: "barycenter") + Initial position. Must be a doubly-stochastic matrix [3]_. + + If the initial position is an array, it must be a doubly stochastic + matrix of size :math:`m' \times m'` where :math:`m' = n - m`. + + If ``"barycenter"`` (default), the initial position is the barycenter + of the Birkhoff polytope (the space of doubly stochastic matrices). + This is a :math:`m' \times m'` matrix with all entries equal to + :math:`1 / m'`. + + If ``"randomized"`` the initial search position is + :math:`P_0 = (J + K) / 2`, where :math:`J` is the barycenter and + :math:`K` is a random doubly stochastic matrix. + shuffle_input : bool (default: False) + Set to `True` to resolve degenerate gradients randomly. For + non-degenerate gradients this option has no effect. + maxiter : int, positive (default: 30) + Integer specifying the max number of Frank-Wolfe iterations performed. + tol : float (default: 0.03) + Tolerance for termination. Frank-Wolfe iteration terminates when + :math:`\frac{||P_{i}-P_{i+1}||_F}{\sqrt{m'}} \leq tol`, + where :math:`i` is the iteration number. + + Returns + ------- + res : OptimizeResult + `OptimizeResult` containing the following fields. + + col_ind : 1-D array + Column indices corresponding to the best permutation found of the + nodes of `B`. + fun : float + The objective value of the solution. + nit : int + The number of Frank-Wolfe iterations performed. + + Notes + ----- + The algorithm may be sensitive to the initial permutation matrix (or + search "position") due to the possibility of several local minima + within the feasible region. A barycenter initialization is more likely to + result in a better solution than a single random initialization. However, + calling ``quadratic_assignment`` several times with different random + initializations may result in a better optimum at the cost of longer + total execution time. + + Examples + -------- + As mentioned above, a barycenter initialization often results in a better + solution than a single random initialization. + + >>> from scipy.optimize import quadratic_assignment + >>> import numpy as np + >>> rng = np.random.default_rng() + >>> n = 15 + >>> A = rng.random((n, n)) + >>> B = rng.random((n, n)) + >>> options = {"rng": rng} + >>> res = quadratic_assignment(A, B, options=options) # FAQ is default method + >>> print(res.fun) + 47.797048706380636 # may vary + + >>> options = {"rng": rng, "P0": "randomized"} # use randomized initialization + >>> res = quadratic_assignment(A, B, options=options) + >>> print(res.fun) + 47.37287069769966 # may vary + + However, consider running from several randomized initializations and + keeping the best result. + + >>> res = min([quadratic_assignment(A, B, options=options) + ... for i in range(30)], key=lambda x: x.fun) + >>> print(res.fun) + 46.55974835248574 # may vary + + The '2-opt' method can be used to attempt to refine the results. + + >>> options = {"partial_guess": np.array([np.arange(n), res.col_ind]).T, "rng": rng} + >>> res = quadratic_assignment(A, B, method="2opt", options=options) + >>> print(res.fun) + 46.55974835248574 # may vary + + References + ---------- + .. [1] J.T. Vogelstein, J.M. Conroy, V. Lyzinski, L.J. Podrazik, + S.G. Kratzer, E.T. Harley, D.E. Fishkind, R.J. Vogelstein, and + C.E. Priebe, "Fast approximate quadratic programming for graph + matching," PLOS one, vol. 10, no. 4, p. e0121002, 2015, + :doi:`10.1371/journal.pone.0121002` + + .. [2] D. Fishkind, S. Adali, H. Patsolic, L. Meng, D. Singh, V. Lyzinski, + C. Priebe, "Seeded graph matching", Pattern Recognit. 87 (2019): + 203-215, :doi:`10.1016/j.patcog.2018.09.014` + + .. [3] "Doubly stochastic Matrix," Wikipedia. + https://en.wikipedia.org/wiki/Doubly_stochastic_matrix + + """ + + _check_unknown_options(unknown_options) + + maxiter = operator.index(maxiter) + + # ValueError check + A, B, partial_match = _common_input_validation(A, B, partial_match) + + msg = None + if isinstance(P0, str) and P0 not in {'barycenter', 'randomized'}: + msg = "Invalid 'P0' parameter string" + elif maxiter <= 0: + msg = "'maxiter' must be a positive integer" + elif tol <= 0: + msg = "'tol' must be a positive float" + if msg is not None: + raise ValueError(msg) + + rng = check_random_state(rng) + n = len(A) # number of vertices in graphs + n_seeds = len(partial_match) # number of seeds + n_unseed = n - n_seeds + + # [1] Algorithm 1 Line 1 - choose initialization + if not isinstance(P0, str): + P0 = np.atleast_2d(P0) + if P0.shape != (n_unseed, n_unseed): + msg = "`P0` matrix must have shape m' x m', where m'=n-m" + elif ((P0 < 0).any() or not np.allclose(np.sum(P0, axis=0), 1) + or not np.allclose(np.sum(P0, axis=1), 1)): + msg = "`P0` matrix must be doubly stochastic" + if msg is not None: + raise ValueError(msg) + elif P0 == 'barycenter': + P0 = np.ones((n_unseed, n_unseed)) / n_unseed + elif P0 == 'randomized': + J = np.ones((n_unseed, n_unseed)) / n_unseed + # generate a nxn matrix where each entry is a random number [0, 1] + # would use rand, but Generators don't have it + # would use random, but old mtrand.RandomStates don't have it + K = _doubly_stochastic(rng.uniform(size=(n_unseed, n_unseed))) + P0 = (J + K) / 2 + + # check trivial cases + if n == 0 or n_seeds == n: + score = _calc_score(A, B, partial_match[:, 1]) + res = {"col_ind": partial_match[:, 1], "fun": score, "nit": 0} + return OptimizeResult(res) + + obj_func_scalar = 1 + if maximize: + obj_func_scalar = -1 + + nonseed_B = np.setdiff1d(range(n), partial_match[:, 1]) + if shuffle_input: + nonseed_B = rng.permutation(nonseed_B) + + nonseed_A = np.setdiff1d(range(n), partial_match[:, 0]) + perm_A = np.concatenate([partial_match[:, 0], nonseed_A]) + perm_B = np.concatenate([partial_match[:, 1], nonseed_B]) + + # definitions according to Seeded Graph Matching [2]. + A11, A12, A21, A22 = _split_matrix(A[perm_A][:, perm_A], n_seeds) + B11, B12, B21, B22 = _split_matrix(B[perm_B][:, perm_B], n_seeds) + const_sum = A21 @ B21.T + A12.T @ B12 + + P = P0 + # [1] Algorithm 1 Line 2 - loop while stopping criteria not met + for n_iter in range(1, maxiter+1): + # [1] Algorithm 1 Line 3 - compute the gradient of f(P) = -tr(APB^tP^t) + grad_fp = (const_sum + A22 @ P @ B22.T + A22.T @ P @ B22) + # [1] Algorithm 1 Line 4 - get direction Q by solving Eq. 8 + _, cols = linear_sum_assignment(grad_fp, maximize=maximize) + Q = np.eye(n_unseed)[cols] + + # [1] Algorithm 1 Line 5 - compute the step size + # Noting that e.g. trace(Ax) = trace(A)*x, expand and re-collect + # terms as ax**2 + bx + c. c does not affect location of minimum + # and can be ignored. Also, note that trace(A@B) = (A.T*B).sum(); + # apply where possible for efficiency. + R = P - Q + b21 = ((R.T @ A21) * B21).sum() + b12 = ((R.T @ A12.T) * B12.T).sum() + AR22 = A22.T @ R + BR22 = B22 @ R.T + b22a = (AR22 * B22.T[cols]).sum() + b22b = (A22 * BR22[cols]).sum() + a = (AR22.T * BR22).sum() + b = b21 + b12 + b22a + b22b + # critical point of ax^2 + bx + c is at x = -d/(2*e) + # if a * obj_func_scalar > 0, it is a minimum + # if minimum is not in [0, 1], only endpoints need to be considered + if a*obj_func_scalar > 0 and 0 <= -b/(2*a) <= 1: + alpha = -b/(2*a) + else: + alpha = np.argmin([0, (b + a)*obj_func_scalar]) + + # [1] Algorithm 1 Line 6 - Update P + P_i1 = alpha * P + (1 - alpha) * Q + if np.linalg.norm(P - P_i1) / np.sqrt(n_unseed) < tol: + P = P_i1 + break + P = P_i1 + # [1] Algorithm 1 Line 7 - end main loop + + # [1] Algorithm 1 Line 8 - project onto the set of permutation matrices + _, col = linear_sum_assignment(P, maximize=True) + perm = np.concatenate((np.arange(n_seeds), col + n_seeds)) + + unshuffled_perm = np.zeros(n, dtype=int) + unshuffled_perm[perm_A] = perm_B[perm] + + score = _calc_score(A, B, unshuffled_perm) + res = {"col_ind": unshuffled_perm, "fun": score, "nit": n_iter} + return OptimizeResult(res) + + +def _split_matrix(X, n): + # definitions according to Seeded Graph Matching [2]. + upper, lower = X[:n], X[n:] + return upper[:, :n], upper[:, n:], lower[:, :n], lower[:, n:] + + +def _doubly_stochastic(P, tol=1e-3): + # Adapted from @btaba implementation + # https://github.com/btaba/sinkhorn_knopp + # of Sinkhorn-Knopp algorithm + # https://projecteuclid.org/euclid.pjm/1102992505 + + max_iter = 1000 + c = 1 / P.sum(axis=0) + r = 1 / (P @ c) + P_eps = P + + for it in range(max_iter): + if ((np.abs(P_eps.sum(axis=1) - 1) < tol).all() and + (np.abs(P_eps.sum(axis=0) - 1) < tol).all()): + # All column/row sums ~= 1 within threshold + break + + c = 1 / (r @ P) + r = 1 / (P @ c) + P_eps = r[:, None] * P * c + + return P_eps + + +def _quadratic_assignment_2opt(A, B, maximize=False, rng=None, + partial_match=None, + partial_guess=None, + **unknown_options): + r"""Solve the quadratic assignment problem (approximately). + + This function solves the Quadratic Assignment Problem (QAP) and the + Graph Matching Problem (GMP) using the 2-opt algorithm [1]_. + + Quadratic assignment solves problems of the following form: + + .. math:: + + \min_P & \ {\ \text{trace}(A^T P B P^T)}\\ + \mbox{s.t. } & {P \ \epsilon \ \mathcal{P}}\\ + + where :math:`\mathcal{P}` is the set of all permutation matrices, + and :math:`A` and :math:`B` are square matrices. + + Graph matching tries to *maximize* the same objective function. + This algorithm can be thought of as finding the alignment of the + nodes of two graphs that minimizes the number of induced edge + disagreements, or, in the case of weighted graphs, the sum of squared + edge weight differences. + + Note that the quadratic assignment problem is NP-hard. The results given + here are approximations and are not guaranteed to be optimal. + + Parameters + ---------- + A : 2-D array, square + The square matrix :math:`A` in the objective function above. + B : 2-D array, square + The square matrix :math:`B` in the objective function above. + method : str in {'faq', '2opt'} (default: 'faq') + The algorithm used to solve the problem. This is the method-specific + documentation for '2opt'. + :ref:`'faq' ` is also available. + + Options + ------- + maximize : bool (default: False) + Maximizes the objective function if ``True``. + rng : {None, int, `numpy.random.Generator`}, optional + Pseudorandom number generator state. See `quadratic_assignment` for details. + partial_match : 2-D array of integers, optional (default: None) + Fixes part of the matching. Also known as a "seed" [2]_. + + Each row of `partial_match` specifies a pair of matched nodes: node + ``partial_match[i, 0]`` of `A` is matched to node + ``partial_match[i, 1]`` of `B`. The array has shape ``(m, 2)``, + where ``m`` is not greater than the number of nodes, :math:`n`. + + .. note:: + `partial_match` must be sorted by the first column. + + partial_guess : 2-D array of integers, optional (default: None) + A guess for the matching between the two matrices. Unlike + `partial_match`, `partial_guess` does not fix the indices; they are + still free to be optimized. + + Each row of `partial_guess` specifies a pair of matched nodes: node + ``partial_guess[i, 0]`` of `A` is matched to node + ``partial_guess[i, 1]`` of `B`. The array has shape ``(m, 2)``, + where ``m`` is not greater than the number of nodes, :math:`n`. + + .. note:: + `partial_guess` must be sorted by the first column. + + Returns + ------- + res : OptimizeResult + `OptimizeResult` containing the following fields. + + col_ind : 1-D array + Column indices corresponding to the best permutation found of the + nodes of `B`. + fun : float + The objective value of the solution. + nit : int + The number of iterations performed during optimization. + + Notes + ----- + This is a greedy algorithm that works similarly to bubble sort: beginning + with an initial permutation, it iteratively swaps pairs of indices to + improve the objective function until no such improvements are possible. + + References + ---------- + .. [1] "2-opt," Wikipedia. + https://en.wikipedia.org/wiki/2-opt + + .. [2] D. Fishkind, S. Adali, H. Patsolic, L. Meng, D. Singh, V. Lyzinski, + C. Priebe, "Seeded graph matching", Pattern Recognit. 87 (2019): + 203-215, https://doi.org/10.1016/j.patcog.2018.09.014 + + """ + _check_unknown_options(unknown_options) + rng = check_random_state(rng) + A, B, partial_match = _common_input_validation(A, B, partial_match) + + N = len(A) + # check trivial cases + if N == 0 or partial_match.shape[0] == N: + score = _calc_score(A, B, partial_match[:, 1]) + res = {"col_ind": partial_match[:, 1], "fun": score, "nit": 0} + return OptimizeResult(res) + + if partial_guess is None: + partial_guess = np.array([[], []]).T + partial_guess = np.atleast_2d(partial_guess).astype(int) + + msg = None + if partial_guess.shape[0] > A.shape[0]: + msg = ("`partial_guess` can have only as " + "many entries as there are nodes") + elif partial_guess.shape[1] != 2: + msg = "`partial_guess` must have two columns" + elif partial_guess.ndim != 2: + msg = "`partial_guess` must have exactly two dimensions" + elif (partial_guess < 0).any(): + msg = "`partial_guess` must contain only positive indices" + elif (partial_guess >= len(A)).any(): + msg = "`partial_guess` entries must be less than number of nodes" + elif (not len(set(partial_guess[:, 0])) == len(partial_guess[:, 0]) or + not len(set(partial_guess[:, 1])) == len(partial_guess[:, 1])): + msg = "`partial_guess` column entries must be unique" + if msg is not None: + raise ValueError(msg) + + fixed_rows = None + if partial_match.size or partial_guess.size: + # use partial_match and partial_guess for initial permutation, + # but randomly permute the rest. + guess_rows = np.zeros(N, dtype=bool) + guess_cols = np.zeros(N, dtype=bool) + fixed_rows = np.zeros(N, dtype=bool) + fixed_cols = np.zeros(N, dtype=bool) + perm = np.zeros(N, dtype=int) + + rg, cg = partial_guess.T + guess_rows[rg] = True + guess_cols[cg] = True + perm[guess_rows] = cg + + # match overrides guess + rf, cf = partial_match.T + fixed_rows[rf] = True + fixed_cols[cf] = True + perm[fixed_rows] = cf + + random_rows = ~fixed_rows & ~guess_rows + random_cols = ~fixed_cols & ~guess_cols + perm[random_rows] = rng.permutation(np.arange(N)[random_cols]) + else: + perm = rng.permutation(np.arange(N)) + + best_score = _calc_score(A, B, perm) + + i_free = np.arange(N) + if fixed_rows is not None: + i_free = i_free[~fixed_rows] + + better = operator.gt if maximize else operator.lt + n_iter = 0 + done = False + while not done: + # equivalent to nested for loops i in range(N), j in range(i, N) + for i, j in itertools.combinations_with_replacement(i_free, 2): + n_iter += 1 + perm[i], perm[j] = perm[j], perm[i] + score = _calc_score(A, B, perm) + if better(score, best_score): + best_score = score + break + # faster to swap back than to create a new list every time + perm[i], perm[j] = perm[j], perm[i] + else: # no swaps made + done = True + + res = {"col_ind": perm, "fun": best_score, "nit": n_iter} + return OptimizeResult(res) diff --git a/shared/package-files/e9/e9b40df91e3bbbe7c63152ed062ae7f2c57d10d15f0f5dc8a6d27300426a11c7/blob b/shared/package-files/e9/e9b40df91e3bbbe7c63152ed062ae7f2c57d10d15f0f5dc8a6d27300426a11c7/blob new file mode 100644 index 0000000000000000000000000000000000000000..3506aadce83410ce58e921d2c77475bf4130cf7d --- /dev/null +++ b/shared/package-files/e9/e9b40df91e3bbbe7c63152ed062ae7f2c57d10d15f0f5dc8a6d27300426a11c7/blob @@ -0,0 +1,303 @@ +# +# The Python Imaging Library. +# $Id$ +# +# PDF (Acrobat) file handling +# +# History: +# 1996-07-16 fl Created +# 1997-01-18 fl Fixed header +# 2004-02-21 fl Fixes for 1/L/CMYK images, etc. +# 2004-02-24 fl Fixes for 1 and P images. +# +# Copyright (c) 1997-2004 by Secret Labs AB. All rights reserved. +# Copyright (c) 1996-1997 by Fredrik Lundh. +# +# See the README file for information on usage and redistribution. +# + +## +# Image plugin for PDF images (output only). +## +from __future__ import annotations + +import io +import math +import os +import time + +from . import Image, ImageFile, ImageSequence, PdfParser, __version__, features + +# +# -------------------------------------------------------------------- + +# object ids: +# 1. catalogue +# 2. pages +# 3. image +# 4. page +# 5. page contents + + +def _save_all(im, fp, filename): + _save(im, fp, filename, save_all=True) + + +## +# (Internal) Image save plugin for the PDF format. + + +def _write_image(im, filename, existing_pdf, image_refs): + # FIXME: Should replace ASCIIHexDecode with RunLengthDecode + # (packbits) or LZWDecode (tiff/lzw compression). Note that + # PDF 1.2 also supports Flatedecode (zip compression). + + params = None + decode = None + + # + # Get image characteristics + + width, height = im.size + + dict_obj = {"BitsPerComponent": 8} + if im.mode == "1": + if features.check("libtiff"): + filter = "CCITTFaxDecode" + dict_obj["BitsPerComponent"] = 1 + params = PdfParser.PdfArray( + [ + PdfParser.PdfDict( + { + "K": -1, + "BlackIs1": True, + "Columns": width, + "Rows": height, + } + ) + ] + ) + else: + filter = "DCTDecode" + dict_obj["ColorSpace"] = PdfParser.PdfName("DeviceGray") + procset = "ImageB" # grayscale + elif im.mode == "L": + filter = "DCTDecode" + # params = f"<< /Predictor 15 /Columns {width-2} >>" + dict_obj["ColorSpace"] = PdfParser.PdfName("DeviceGray") + procset = "ImageB" # grayscale + elif im.mode == "LA": + filter = "JPXDecode" + # params = f"<< /Predictor 15 /Columns {width-2} >>" + procset = "ImageB" # grayscale + dict_obj["SMaskInData"] = 1 + elif im.mode == "P": + filter = "ASCIIHexDecode" + palette = im.getpalette() + dict_obj["ColorSpace"] = [ + PdfParser.PdfName("Indexed"), + PdfParser.PdfName("DeviceRGB"), + len(palette) // 3 - 1, + PdfParser.PdfBinary(palette), + ] + procset = "ImageI" # indexed color + + if "transparency" in im.info: + smask = im.convert("LA").getchannel("A") + smask.encoderinfo = {} + + image_ref = _write_image(smask, filename, existing_pdf, image_refs)[0] + dict_obj["SMask"] = image_ref + elif im.mode == "RGB": + filter = "DCTDecode" + dict_obj["ColorSpace"] = PdfParser.PdfName("DeviceRGB") + procset = "ImageC" # color images + elif im.mode == "RGBA": + filter = "JPXDecode" + procset = "ImageC" # color images + dict_obj["SMaskInData"] = 1 + elif im.mode == "CMYK": + filter = "DCTDecode" + dict_obj["ColorSpace"] = PdfParser.PdfName("DeviceCMYK") + procset = "ImageC" # color images + decode = [1, 0, 1, 0, 1, 0, 1, 0] + else: + msg = f"cannot save mode {im.mode}" + raise ValueError(msg) + + # + # image + + op = io.BytesIO() + + if filter == "ASCIIHexDecode": + ImageFile._save(im, op, [("hex", (0, 0) + im.size, 0, im.mode)]) + elif filter == "CCITTFaxDecode": + im.save( + op, + "TIFF", + compression="group4", + # use a single strip + strip_size=math.ceil(width / 8) * height, + ) + elif filter == "DCTDecode": + Image.SAVE["JPEG"](im, op, filename) + elif filter == "JPXDecode": + del dict_obj["BitsPerComponent"] + Image.SAVE["JPEG2000"](im, op, filename) + else: + msg = f"unsupported PDF filter ({filter})" + raise ValueError(msg) + + stream = op.getvalue() + if filter == "CCITTFaxDecode": + stream = stream[8:] + filter = PdfParser.PdfArray([PdfParser.PdfName(filter)]) + else: + filter = PdfParser.PdfName(filter) + + image_ref = image_refs.pop(0) + existing_pdf.write_obj( + image_ref, + stream=stream, + Type=PdfParser.PdfName("XObject"), + Subtype=PdfParser.PdfName("Image"), + Width=width, # * 72.0 / x_resolution, + Height=height, # * 72.0 / y_resolution, + Filter=filter, + Decode=decode, + DecodeParms=params, + **dict_obj, + ) + + return image_ref, procset + + +def _save(im, fp, filename, save_all=False): + is_appending = im.encoderinfo.get("append", False) + if is_appending: + existing_pdf = PdfParser.PdfParser(f=fp, filename=filename, mode="r+b") + else: + existing_pdf = PdfParser.PdfParser(f=fp, filename=filename, mode="w+b") + + dpi = im.encoderinfo.get("dpi") + if dpi: + x_resolution = dpi[0] + y_resolution = dpi[1] + else: + x_resolution = y_resolution = im.encoderinfo.get("resolution", 72.0) + + info = { + "title": None + if is_appending + else os.path.splitext(os.path.basename(filename))[0], + "author": None, + "subject": None, + "keywords": None, + "creator": None, + "producer": None, + "creationDate": None if is_appending else time.gmtime(), + "modDate": None if is_appending else time.gmtime(), + } + for k, default in info.items(): + v = im.encoderinfo.get(k) if k in im.encoderinfo else default + if v: + existing_pdf.info[k[0].upper() + k[1:]] = v + + # + # make sure image data is available + im.load() + + existing_pdf.start_writing() + existing_pdf.write_header() + existing_pdf.write_comment(f"created by Pillow {__version__} PDF driver") + + # + # pages + ims = [im] + if save_all: + append_images = im.encoderinfo.get("append_images", []) + for append_im in append_images: + append_im.encoderinfo = im.encoderinfo.copy() + ims.append(append_im) + number_of_pages = 0 + image_refs = [] + page_refs = [] + contents_refs = [] + for im in ims: + im_number_of_pages = 1 + if save_all: + try: + im_number_of_pages = im.n_frames + except AttributeError: + # Image format does not have n_frames. + # It is a single frame image + pass + number_of_pages += im_number_of_pages + for i in range(im_number_of_pages): + image_refs.append(existing_pdf.next_object_id(0)) + if im.mode == "P" and "transparency" in im.info: + image_refs.append(existing_pdf.next_object_id(0)) + + page_refs.append(existing_pdf.next_object_id(0)) + contents_refs.append(existing_pdf.next_object_id(0)) + existing_pdf.pages.append(page_refs[-1]) + + # + # catalog and list of pages + existing_pdf.write_catalog() + + page_number = 0 + for im_sequence in ims: + im_pages = ImageSequence.Iterator(im_sequence) if save_all else [im_sequence] + for im in im_pages: + image_ref, procset = _write_image(im, filename, existing_pdf, image_refs) + + # + # page + + existing_pdf.write_page( + page_refs[page_number], + Resources=PdfParser.PdfDict( + ProcSet=[PdfParser.PdfName("PDF"), PdfParser.PdfName(procset)], + XObject=PdfParser.PdfDict(image=image_ref), + ), + MediaBox=[ + 0, + 0, + im.width * 72.0 / x_resolution, + im.height * 72.0 / y_resolution, + ], + Contents=contents_refs[page_number], + ) + + # + # page contents + + page_contents = b"q %f 0 0 %f 0 0 cm /image Do Q\n" % ( + im.width * 72.0 / x_resolution, + im.height * 72.0 / y_resolution, + ) + + existing_pdf.write_obj(contents_refs[page_number], stream=page_contents) + + page_number += 1 + + # + # trailer + existing_pdf.write_xref_and_trailer() + if hasattr(fp, "flush"): + fp.flush() + existing_pdf.close() + + +# +# -------------------------------------------------------------------- + + +Image.register_save("PDF", _save) +Image.register_save_all("PDF", _save_all) + +Image.register_extension("PDF", ".pdf") + +Image.register_mime("PDF", "application/pdf") diff --git a/shared/package-files/e9/e9b444efad17cef7ebd5ba513dcf0b561499ec240fe9b9d110d99e34e47858a7/blob b/shared/package-files/e9/e9b444efad17cef7ebd5ba513dcf0b561499ec240fe9b9d110d99e34e47858a7/blob new file mode 100644 index 0000000000000000000000000000000000000000..804475b35e1d86246e4d1c3d604b78dec4dadcb2 --- /dev/null +++ b/shared/package-files/e9/e9b444efad17cef7ebd5ba513dcf0b561499ec240fe9b9d110d99e34e47858a7/blob @@ -0,0 +1,550 @@ +import ast +import builtins +import dis +import enum +import inspect +import re +import typing +import warnings + +from textwrap import dedent +from typing import Type + +import torch + +from torch._C import ( + _GeneratorType, + AnyType, + AwaitType, + BoolType, + ComplexType, + DeviceObjType, + DictType, + EnumType, + FloatType, + FutureType, + InterfaceType, + IntType, + ListType, + NoneType, + NumberType, + OptionalType, + StreamObjType, + StringType, + TensorType, + TupleType, + UnionType, +) +from torch._sources import get_source_lines_and_file +from .._jit_internal import ( # type: ignore[attr-defined] + _Await, + _qualified_name, + Any, + BroadcastingList1, + BroadcastingList2, + BroadcastingList3, + Dict, + Future, + is_await, + is_dict, + is_future, + is_ignored_fn, + is_list, + is_optional, + is_tuple, + is_union, + List, + Optional, + Tuple, + Union, +) +from ._state import _get_script_class + +if torch.distributed.rpc.is_available(): + from torch._C import RRefType + from .._jit_internal import is_rref, RRef + +from torch._ops import OpOverloadPacket + + +class Module: + def __init__(self, name, members): + self.name = name + self.members = members + + def __getattr__(self, name): + try: + return self.members[name] + except KeyError: + raise RuntimeError( + f"Module {self.name} has no member called {name}" + ) from None + + +class EvalEnv: + env = { + "torch": Module("torch", {"Tensor": torch.Tensor}), + "Tensor": torch.Tensor, + "typing": Module("typing", {"Tuple": Tuple}), + "Tuple": Tuple, + "List": List, + "Dict": Dict, + "Optional": Optional, + "Union": Union, + "Future": Future, + "Await": _Await, + } + + def __init__(self, rcb): + self.rcb = rcb + if torch.distributed.rpc.is_available(): + self.env["RRef"] = RRef + + def __getitem__(self, name): + if name in self.env: + return self.env[name] + if self.rcb is not None: + return self.rcb(name) + return getattr(builtins, name, None) + + +def get_signature(fn, rcb, loc, is_method): + if isinstance(fn, OpOverloadPacket): + signature = try_real_annotations(fn.op, loc) + else: + signature = try_real_annotations(fn, loc) + if signature is not None and is_method: + # If this is a method, then the signature will include a type for + # `self`, but type comments do not contain a `self`. So strip it + # away here so everything is consistent (`inspect.ismethod` does + # not work here since `fn` is unbound at this point) + param_types, return_type = signature + param_types = param_types[1:] + signature = (param_types, return_type) + + if signature is None: + type_line, source = None, None + try: + source = dedent("".join(get_source_lines_and_file(fn)[0])) + type_line = get_type_line(source) + except TypeError: + pass + # This might happen both because we failed to get the source of fn, or + # because it didn't have any annotations. + if type_line is not None: + signature = parse_type_line(type_line, rcb, loc) + + return signature + + +def is_function_or_method(the_callable): + # A stricter version of `inspect.isroutine` that does not pass for built-in + # functions + return inspect.isfunction(the_callable) or inspect.ismethod(the_callable) + + +def is_vararg(the_callable): + if not is_function_or_method(the_callable) and callable(the_callable): # noqa: B004 + # If `the_callable` is a class, de-sugar the call so we can still get + # the signature + the_callable = the_callable.__call__ + + if is_function_or_method(the_callable): + return inspect.getfullargspec(the_callable).varargs is not None + else: + return False + + +def get_param_names(fn, n_args): + if isinstance(fn, OpOverloadPacket): + fn = fn.op + + if ( + not is_function_or_method(fn) + and callable(fn) + and is_function_or_method(fn.__call__) + ): # noqa: B004 + # De-sugar calls to classes + fn = fn.__call__ + + if is_function_or_method(fn): + if is_ignored_fn(fn): + fn = inspect.unwrap(fn) + return inspect.getfullargspec(fn).args + else: + # The `fn` was not a method or function (maybe a class with a __call__ + # method, so use a default param name list) + return [str(i) for i in range(n_args)] + + +def check_fn(fn, loc): + # Make sure the function definition is not a class instantiation + try: + source = dedent("".join(get_source_lines_and_file(fn)[0])) + except (OSError, TypeError): + return + if source is None: + return + + py_ast = ast.parse(source) + if len(py_ast.body) == 1 and isinstance(py_ast.body[0], ast.ClassDef): + raise torch.jit.frontend.FrontendError( + loc, + f"Cannot instantiate class '{py_ast.body[0].name}' in a script function", + ) + if len(py_ast.body) != 1 or not isinstance(py_ast.body[0], ast.FunctionDef): + raise torch.jit.frontend.FrontendError( + loc, "Expected a single top-level function" + ) + + +def _eval_no_call(stmt, glob, loc): + """Evaluate statement as long as it does not contain any method/function calls.""" + bytecode = compile(stmt, "", mode="eval") + for insn in dis.get_instructions(bytecode): + if "CALL" in insn.opname: + raise RuntimeError( + f"Type annotation should not contain calls, but '{stmt}' does" + ) + return eval(bytecode, glob, loc) # type: ignore[arg-type] # noqa: P204 + + +def parse_type_line(type_line, rcb, loc): + """Parse a type annotation specified as a comment. + + Example inputs: + # type: (Tensor, torch.Tensor) -> Tuple[Tensor] + # type: (Tensor, Tuple[Tensor, Tensor]) -> Tensor + """ + arg_ann_str, ret_ann_str = split_type_line(type_line) + + try: + arg_ann = _eval_no_call(arg_ann_str, {}, EvalEnv(rcb)) + except (NameError, SyntaxError) as e: + raise RuntimeError( + "Failed to parse the argument list of a type annotation" + ) from e + + if not isinstance(arg_ann, tuple): + arg_ann = (arg_ann,) + + try: + ret_ann = _eval_no_call(ret_ann_str, {}, EvalEnv(rcb)) + except (NameError, SyntaxError) as e: + raise RuntimeError( + "Failed to parse the return type of a type annotation" + ) from e + + arg_types = [ann_to_type(ann, loc) for ann in arg_ann] + return arg_types, ann_to_type(ret_ann, loc) + + +def get_type_line(source): + """Try to find the line containing a comment with the type annotation.""" + type_comment = "# type:" + + lines = source.split("\n") + lines = list(enumerate(lines)) + type_lines = list(filter(lambda line: type_comment in line[1], lines)) + # `type: ignore` comments may be needed in JIT'ed functions for mypy, due + # to the hack in torch/_VF.py. + + # An ignore type comment can be of following format: + # 1) type: ignore + # 2) type: ignore[rule-code] + # This ignore statement must be at the end of the line + + # adding an extra backslash before the space, to avoid triggering + # one of the checks in .github/workflows/lint.yml + type_pattern = re.compile("# type:\\ ignore(\\[[a-zA-Z-]+\\])?$") + type_lines = list(filter(lambda line: not type_pattern.search(line[1]), type_lines)) + + if len(type_lines) == 0: + # Catch common typo patterns like extra spaces, typo in 'ignore', etc. + wrong_type_pattern = re.compile("#[\t ]*type[\t ]*(?!: ignore(\\[.*\\])?$):") + wrong_type_lines = list( + filter(lambda line: wrong_type_pattern.search(line[1]), lines) + ) + if len(wrong_type_lines) > 0: + raise RuntimeError( + "The annotation prefix in line " + + str(wrong_type_lines[0][0]) + + " is probably invalid.\nIt must be '# type:'" + + "\nSee PEP 484 (https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code)" # noqa: B950 + + "\nfor examples" + ) + return None + elif len(type_lines) == 1: + # Only 1 type line, quit now + return type_lines[0][1].strip() + + # Parse split up argument types according to PEP 484 + # https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code + return_line = None + parameter_type_lines = [] + for line_num, line in type_lines: + if "# type: (...) -> " in line: + return_line = (line_num, line) + break + elif type_comment in line: + parameter_type_lines.append(line) + if return_line is None: + raise RuntimeError( + "Return type line '# type: (...) -> ...' not found on multiline " + "type annotation\nfor type lines:\n" + + "\n".join([line[1] for line in type_lines]) + + "\n(See PEP 484 https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code)" + ) + + def get_parameter_type(line): + item_type = line[line.find(type_comment) + len(type_comment) :] + return item_type.strip() + + types = map(get_parameter_type, parameter_type_lines) + parameter_types = ", ".join(types) + + return return_line[1].replace("...", parameter_types) + + +def split_type_line(type_line): + """Split the comment with the type annotation into parts for argument and return types. + + For example, for an input of: + # type: (Tensor, torch.Tensor) -> Tuple[Tensor, Tensor] + + This function will return: + ("(Tensor, torch.Tensor)", "Tuple[Tensor, Tensor]") + + """ + start_offset = len("# type:") + try: + arrow_pos = type_line.index("->") + except ValueError: + raise RuntimeError( + "Syntax error in type annotation (cound't find `->`)" + ) from None + return type_line[start_offset:arrow_pos].strip(), type_line[arrow_pos + 2 :].strip() + + +def try_real_annotations(fn, loc): + """Try to use the Py3.5+ annotation syntax to get the type.""" + try: + # Note: anything annotated as `Optional[T]` will automatically + # be returned as `Union[T, None]` per + # https://github.com/python/typing/blob/master/src/typing.py#L850 + sig = inspect.signature(fn) + except ValueError: + return None + + all_annots = [sig.return_annotation] + [ + p.annotation for p in sig.parameters.values() + ] + if all(ann is sig.empty for ann in all_annots): + return None + + arg_types = [ann_to_type(p.annotation, loc) for p in sig.parameters.values()] + return_type = ann_to_type(sig.return_annotation, loc) + return arg_types, return_type + + +# Finds common type for enum values belonging to an Enum class. If not all +# values have the same type, AnyType is returned. +def get_enum_value_type(e: Type[enum.Enum], loc): + enum_values: List[enum.Enum] = list(e) + if not enum_values: + raise ValueError(f"No enum values defined for: '{e.__class__}'") + + types = {type(v.value) for v in enum_values} + ir_types = [try_ann_to_type(t, loc) for t in types] + + # If Enum values are of different types, an exception will be raised here. + # Even though Python supports this case, we chose to not implement it to + # avoid overcomplicate logic here for a rare use case. Please report a + # feature request if you find it necessary. + res = torch._C.unify_type_list(ir_types) + if not res: + return AnyType.get() + return res + + +def is_tensor(ann): + if issubclass(ann, torch.Tensor): + return True + + if issubclass( + ann, + ( + torch.LongTensor, + torch.DoubleTensor, + torch.FloatTensor, + torch.IntTensor, + torch.ShortTensor, + torch.HalfTensor, + torch.CharTensor, + torch.ByteTensor, + torch.BoolTensor, + ), + ): + warnings.warn( + "TorchScript will treat type annotations of Tensor " + "dtype-specific subtypes as if they are normal Tensors. " + "dtype constraints are not enforced in compilation either." + ) + return True + + return False + + +def _fake_rcb(inp): + return None + + +def try_ann_to_type(ann, loc, rcb=None): + ann_args = typing.get_args(ann) # always returns a tuple! + + if ann is inspect.Signature.empty: + return TensorType.getInferred() + if ann is None: + return NoneType.get() + if inspect.isclass(ann) and is_tensor(ann): + return TensorType.get() + if is_tuple(ann): + # Special case for the empty Tuple type annotation `Tuple[()]` + if len(ann_args) == 1 and ann_args[0] == (): + return TupleType([]) + return TupleType([try_ann_to_type(a, loc) for a in ann_args]) + if is_list(ann): + elem_type = try_ann_to_type(ann_args[0], loc) + if elem_type: + return ListType(elem_type) + if is_dict(ann): + key = try_ann_to_type(ann_args[0], loc) + value = try_ann_to_type(ann_args[1], loc) + # Raise error if key or value is None + if key is None: + raise ValueError( + f"Unknown type annotation: '{ann_args[0]}' at {loc.highlight()}" + ) + if value is None: + raise ValueError( + f"Unknown type annotation: '{ann_args[1]}' at {loc.highlight()}" + ) + return DictType(key, value) + if is_optional(ann): + if issubclass(ann_args[1], type(None)): + contained = ann_args[0] + else: + contained = ann_args[1] + valid_type = try_ann_to_type(contained, loc) + msg = "Unsupported annotation {} could not be resolved because {} could not be resolved. At\n{}" + assert valid_type, msg.format(repr(ann), repr(contained), repr(loc)) + return OptionalType(valid_type) + if is_union(ann): + # TODO: this is hack to recognize NumberType + if set(ann_args) == {int, float, complex}: + return NumberType.get() + inner: List = [] + # We need these extra checks because both `None` and invalid + # values will return `None` + # TODO: Determine if the other cases need to be fixed as well + for a in typing.get_args(ann): + if a is None: + inner.append(NoneType.get()) + maybe_type = try_ann_to_type(a, loc) + msg = "Unsupported annotation {} could not be resolved because {} could not be resolved. At\n{}" + assert maybe_type, msg.format(repr(ann), repr(maybe_type), repr(loc)) + inner.append(maybe_type) + return UnionType(inner) # type: ignore[arg-type] + if torch.distributed.rpc.is_available() and is_rref(ann): + return RRefType(try_ann_to_type(ann_args[0], loc)) + if is_future(ann): + return FutureType(try_ann_to_type(ann_args[0], loc)) + if is_await(ann): + elementType = try_ann_to_type(ann_args[0], loc) if ann_args else AnyType.get() + return AwaitType(elementType) + if ann is float: + return FloatType.get() + if ann is complex: + return ComplexType.get() + if ann is int or ann is torch.SymInt: + return IntType.get() + if ann is str: + return StringType.get() + if ann is bool: + return BoolType.get() + if ann is Any: + return AnyType.get() + if ann is type(None): + return NoneType.get() + if inspect.isclass(ann) and hasattr(ann, "__torch_script_interface__"): + return InterfaceType(ann.__torch_script_interface__) + if ann is torch.device: + return DeviceObjType.get() + if ann is torch.Generator: + return _GeneratorType.get() + if ann is torch.Stream: + return StreamObjType.get() + if ann is torch.dtype: + return IntType.get() # dtype not yet bound in as its own type + if inspect.isclass(ann) and issubclass(ann, enum.Enum): + if _get_script_class(ann) is None: + scripted_class = torch.jit._script._recursive_compile_class(ann, loc) + name = scripted_class.qualified_name() + else: + name = _qualified_name(ann) + return EnumType(name, get_enum_value_type(ann, loc), list(ann)) + if inspect.isclass(ann): + maybe_script_class = _get_script_class(ann) + if maybe_script_class is not None: + return maybe_script_class + if torch._jit_internal.can_compile_class(ann): + return torch.jit._script._recursive_compile_class(ann, loc) + + # Maybe resolve a NamedTuple to a Tuple Type + if rcb is None: + rcb = _fake_rcb + return torch._C._resolve_type_from_object(ann, loc, rcb) + + +def ann_to_type(ann, loc, rcb=None): + the_type = try_ann_to_type(ann, loc, rcb) + if the_type is not None: + return the_type + raise ValueError(f"Unknown type annotation: '{ann}' at {loc.highlight()}") + + +__all__ = [ + "Any", + "List", + "BroadcastingList1", + "BroadcastingList2", + "BroadcastingList3", + "Tuple", + "is_tuple", + "is_list", + "Dict", + "is_dict", + "is_optional", + "is_union", + "TensorType", + "TupleType", + "FloatType", + "ComplexType", + "IntType", + "ListType", + "StringType", + "DictType", + "AnyType", + "Module", + # TODO: Consider not exporting these during wildcard import (reserve + # that for the types; for idiomatic typing code.) + "get_signature", + "check_fn", + "get_param_names", + "parse_type_line", + "get_type_line", + "split_type_line", + "try_real_annotations", + "try_ann_to_type", + "ann_to_type", +] diff --git a/shared/package-files/e9/e9b74c16ac87ed4be29af6d8411c5303faccf3785c37e39441d30aa72798d8c3/blob b/shared/package-files/e9/e9b74c16ac87ed4be29af6d8411c5303faccf3785c37e39441d30aa72798d8c3/blob new file mode 100644 index 0000000000000000000000000000000000000000..453987d2376ab6c4813ba1052926510b4c11c114 --- /dev/null +++ b/shared/package-files/e9/e9b74c16ac87ed4be29af6d8411c5303faccf3785c37e39441d30aa72798d8c3/blob @@ -0,0 +1,52 @@ +# bitmap.tcl -- +# +# This demonstration script creates a toplevel window that displays +# all of Tk's built-in bitmaps. + +if {![info exists widgetDemo]} { + error "This script should be run from the \"widget\" demo." +} + +package require Tk + +# bitmapRow -- +# Create a row of bitmap items in a window. +# +# Arguments: +# w - The window that is to contain the row. +# args - The names of one or more bitmaps, which will be displayed +# in a new row across the bottom of w along with their +# names. + +proc bitmapRow {w args} { + frame $w + pack $w -side top -fill both + set i 0 + foreach bitmap $args { + frame $w.$i + pack $w.$i -side left -fill both -pady .25c -padx .25c + label $w.$i.bitmap -bitmap $bitmap + label $w.$i.label -text $bitmap -width 9 + pack $w.$i.label $w.$i.bitmap -side bottom + incr i + } +} + +set w .bitmap +catch {destroy $w} +toplevel $w +wm title $w "Bitmap Demonstration" +wm iconname $w "bitmap" +positionWindow $w + +label $w.msg -font $font -wraplength 4i -justify left -text "This window displays all of Tk's built-in bitmaps, along with the names you can use for them in Tcl scripts." +pack $w.msg -side top + +## See Code / Dismiss buttons +set btns [addSeeDismiss $w.buttons $w] +pack $btns -side bottom -fill x + +frame $w.frame +bitmapRow $w.frame.0 error gray12 gray25 gray50 gray75 +bitmapRow $w.frame.1 hourglass info question questhead warning +pack $w.frame -side top -expand yes -fill both diff --git a/shared/package-files/e9/e9b91889ef7af09c12a3da4b72aae28e46f3fd467c3141ca12a44e41ffe84c7a/blob b/shared/package-files/e9/e9b91889ef7af09c12a3da4b72aae28e46f3fd467c3141ca12a44e41ffe84c7a/blob new file mode 100644 index 0000000000000000000000000000000000000000..e939d12139998dcb0bf944e5e53dbfded9b50ab2 --- /dev/null +++ b/shared/package-files/e9/e9b91889ef7af09c12a3da4b72aae28e46f3fd467c3141ca12a44e41ffe84c7a/blob @@ -0,0 +1,50 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API transpose_int { + using schema = at::Tensor (const at::Tensor &, int64_t, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::transpose") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "int") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "transpose.int(Tensor(a) self, int dim0, int dim1) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, int64_t dim0, int64_t dim1); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim0, int64_t dim1); +}; + +struct TORCH_API transpose_Dimname { + using schema = at::Tensor (const at::Tensor &, at::Dimname, at::Dimname); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::transpose") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "Dimname") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "transpose.Dimname(Tensor(a) self, Dimname dim0, Dimname dim1) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, at::Dimname dim0, at::Dimname dim1); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim0, at::Dimname dim1); +}; + +struct TORCH_API transpose_ { + using schema = at::Tensor & (at::Tensor &, int64_t, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::transpose_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "transpose_(Tensor(a!) self, int dim0, int dim1) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, int64_t dim0, int64_t dim1); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t dim0, int64_t dim1); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e9/e9bb795f8bce93b05fd5007e3abcf43f9daa8feb0db428c08aa4328bd9e87ce9/blob b/shared/package-files/e9/e9bb795f8bce93b05fd5007e3abcf43f9daa8feb0db428c08aa4328bd9e87ce9/blob new file mode 100644 index 0000000000000000000000000000000000000000..e117c35aa644f77bf36f0dc1a616b0d64bd6e5f9 --- /dev/null +++ b/shared/package-files/e9/e9bb795f8bce93b05fd5007e3abcf43f9daa8feb0db428c08aa4328bd9e87ce9/blob @@ -0,0 +1,277 @@ +import copy + +import numpy as np +import pandas as pd +import scipy.sparse +from sklearn.cluster import KMeans +from sklearn.impute import SimpleImputer + + +def kmeans(X, k, round_values=True): + """Summarize a dataset with k mean samples weighted by the number of data points they + each represent. + + Parameters + ---------- + X : numpy.array or pandas.DataFrame or any scipy.sparse matrix + Matrix of data samples to summarize (# samples x # features) + + k : int + Number of means to use for approximation. + + round_values : bool + For all i, round the ith dimension of each mean sample to match the nearest value + from X[:,i]. This ensures discrete features always get a valid value. + + Returns + ------- + DenseData object. + + """ + group_names = [str(i) for i in range(X.shape[1])] + if isinstance(X, pd.DataFrame): + group_names = X.columns + X = X.values + + # in case there are any missing values in data impute them + imp = SimpleImputer(missing_values=np.nan, strategy="mean") + X = imp.fit_transform(X) + + # Specify `n_init` for consistent behaviour between sklearn versions + kmeans = KMeans(n_clusters=k, random_state=0, n_init=10).fit(X) + + if round_values: + for i in range(k): + for j in range(X.shape[1]): + xj = ( + X[:, j].toarray().flatten() if scipy.sparse.issparse(X) else X[:, j] + ) # sparse support courtesy of @PrimozGodec + ind = np.argmin(np.abs(xj - kmeans.cluster_centers_[i, j])) + kmeans.cluster_centers_[i, j] = X[ind, j] + return DenseData(kmeans.cluster_centers_, group_names, None, 1.0 * np.bincount(kmeans.labels_)) + + +class Instance: + def __init__(self, x, group_display_values): + self.x = x + self.group_display_values = group_display_values + + +def convert_to_instance(val): + if isinstance(val, Instance): + return val + else: + return Instance(val, None) + + +class InstanceWithIndex(Instance): + def __init__(self, x, column_name, index_value, index_name, group_display_values): + Instance.__init__(self, x, group_display_values) + self.index_value = index_value + self.index_name = index_name + self.column_name = column_name + + def convert_to_df(self): + index = pd.DataFrame(self.index_value, columns=[self.index_name]) + data = pd.DataFrame(self.x, columns=self.column_name) + df = pd.concat([index, data], axis=1) + df = df.set_index(self.index_name) + return df + + +def convert_to_instance_with_index(val, column_name, index_value, index_name): + return InstanceWithIndex(val, column_name, index_value, index_name, None) + + +def match_instance_to_data(instance, data): + if not isinstance(instance, Instance): + raise TypeError("instance must be of type Instance!") + + if isinstance(data, DenseData): + if instance.group_display_values is None: + instance.group_display_values = [ + instance.x[0, group[0]] if len(group) == 1 else "" for group in data.groups + ] + assert len(instance.group_display_values) == len(data.groups) + + +class Model: + def __init__(self, f, out_names): + self.f = f + self.out_names = out_names + + +def convert_to_model(val, keep_index=False): + """Convert a model to a Model object. + + Parameters + ---------- + val : function or Model object + The model function or a Model object. + + keep_index : bool + If True then the index values will be passed to the model function as the first argument. + When this is False the feature names will be removed from the model object to avoid unnecessary warnings. + + """ + if isinstance(val, Model): + out = val + else: + out = Model(val, None) + + # Fix for the sklearn warning + # 'X does not have valid feature names, but was fitted with feature names' + if not keep_index: # when using keep index, a dataframe with expected features names is expected to be passed + f_self = getattr(out.f, "__self__", None) + if f_self and hasattr(f_self, "feature_names_in_"): + # Make a copy so that the feature names are not removed from the original model + out = copy.deepcopy(out) + out.f.__self__.feature_names_in_ = None + + return out + + +def match_model_to_data(model, data): + if not isinstance(model, Model): + raise TypeError("model must be of type Model!") + + try: + if isinstance(data, DenseDataWithIndex): + out_val = model.f(data.convert_to_df()) + else: + out_val = model.f(data.data) + except Exception: + print("Provided model function fails when applied to the provided data set.") + raise + + if model.out_names is None: + if len(out_val.shape) == 1: + model.out_names = ["output value"] + else: + model.out_names = ["output value " + str(i) for i in range(out_val.shape[0])] + + return out_val + + +class Data: + def __init__(self): + pass + + +class SparseData(Data): + def __init__(self, data, *args): + num_samples = data.shape[0] + self.weights = np.ones(num_samples) + self.weights /= np.sum(self.weights) + self.transposed = False + self.groups = None + self.group_names = None + self.groups_size = data.shape[1] + self.data = data + + +class DenseData(Data): + def __init__(self, data, group_names, *args): + self.groups = ( + args[0] if len(args) > 0 and args[0] is not None else [np.array([i]) for i in range(len(group_names))] + ) + + j = sum(len(g) for g in self.groups) + num_samples = data.shape[0] + t = False + if j != data.shape[1]: + t = True + num_samples = data.shape[1] + + valid = (not t and j == data.shape[1]) or (t and j == data.shape[0]) + if not valid: + raise ValueError("# of names must match data matrix!") + + self.weights = args[1] if len(args) > 1 else np.ones(num_samples) + self.weights /= np.sum(self.weights) + wl = len(self.weights) + valid = (not t and wl == data.shape[0]) or (t and wl == data.shape[1]) + if not valid: + raise ValueError("# of weights must match data matrix!") + + self.transposed = t + self.group_names = group_names + self.data = data + self.groups_size = len(self.groups) + + +class DenseDataWithIndex(DenseData): + def __init__(self, data, group_names, index, index_name, *args): + DenseData.__init__(self, data, group_names, *args) + self.index_value = index + self.index_name = index_name + + def convert_to_df(self): + data = pd.DataFrame(self.data, columns=self.group_names) + index = pd.DataFrame(self.index_value, columns=[self.index_name]) + df = pd.concat([index, data], axis=1) + df = df.set_index(self.index_name) + return df + + +def convert_to_data(val, keep_index=False): + if isinstance(val, Data): + return val + if isinstance(val, np.ndarray): + return DenseData(val, [str(i) for i in range(val.shape[1])]) + if isinstance(val, pd.Series): + return DenseData(val.values.reshape((1, len(val))), list(val.index)) + if isinstance(val, pd.DataFrame): + if keep_index: + return DenseDataWithIndex(val.values, list(val.columns), val.index.values, val.index.name) + else: + return DenseData(val.values, list(val.columns)) + if scipy.sparse.issparse(val): + if not scipy.sparse.isspmatrix_csr(val): + val = val.tocsr() + return SparseData(val) + + emsg = f"Unknown type passed as data object: {type(val)}" + raise TypeError(emsg) + + +class Link: + def __init__(self): + pass + + +class IdentityLink(Link): + def __str__(self): + return "identity" + + @staticmethod + def f(x): + return x + + @staticmethod + def finv(x): + return x + + +class LogitLink(Link): + def __str__(self): + return "logit" + + @staticmethod + def f(x, epsilon=1e-15): + x_clipped = np.clip(x, epsilon, 1 - epsilon) + return np.log(x_clipped / (1 - x_clipped)) + + @staticmethod + def finv(x): + return 1 / (1 + np.exp(-x)) + + +def convert_to_link(val): + if isinstance(val, Link): + return val + if val == "identity": + return IdentityLink() + if val == "logit": + return LogitLink() + raise TypeError("Passed link object must be a subclass of iml.Link") diff --git a/shared/package-files/e9/e9bc4315a68d3bef80f47435ee267bc1855669bb9623812564b5e7d0983782e4/blob b/shared/package-files/e9/e9bc4315a68d3bef80f47435ee267bc1855669bb9623812564b5e7d0983782e4/blob new file mode 100644 index 0000000000000000000000000000000000000000..6cb980fb29dd09cfb6429a8835582f21fe9c082c --- /dev/null +++ b/shared/package-files/e9/e9bc4315a68d3bef80f47435ee267bc1855669bb9623812564b5e7d0983782e4/blob @@ -0,0 +1,2937 @@ +import argparse +import functools +import json +import os +import pathlib +from collections import defaultdict, namedtuple, OrderedDict +from dataclasses import dataclass, field +from typing import ( + Any, + Callable, + Dict, + List, + Literal, + Optional, + Sequence, + Set, + Tuple, + TypeVar, + Union, +) + +import yaml + +import torchgen.api.dispatcher as dispatcher +import torchgen.api.meta as meta +import torchgen.api.native as native +import torchgen.api.structured as structured +import torchgen.dest as dest + +from torchgen.api import cpp +from torchgen.api.translate import translate +from torchgen.api.types import ( + Binding, + CppSignature, + CppSignatureGroup, + DispatcherSignature, + NamedCType, + NativeSignature, + SpecialArgName, +) +from torchgen.context import ( + method_with_native_function, + native_function_manager, + with_native_function, + with_native_function_and_indices, +) +from torchgen.gen_aoti_c_shim import ( + gen_aoti_c_shim, + gen_static_dispatch_backend_call_signature, + get_backend_index_for_aoti, +) +from torchgen.gen_functionalization_type import ( + gen_functionalization_definition, + gen_functionalization_registration, + gen_functionalization_view_inverse_declaration, + GenCompositeViewCopyKernel, +) +from torchgen.gen_vmap_plumbing import gen_all_vmap_plumbing + +from torchgen.model import ( + Argument, + BackendIndex, + BackendMetadata, + BaseOperatorName, + DEFAULT_KERNEL_NAMESPACE, + DispatchKey, + FRAGMENT_NAMESPACES, + FunctionSchema, + is_cuda_dispatch_key, + is_generic_dispatch_key, + is_ufunc_dispatch_key, + Location, + NativeFunction, + NativeFunctionsGroup, + NativeFunctionsViewGroup, + OperatorName, + OptionalType, + SchemaKind, + SelfArgument, + STRUCTURED_DISPATCH_KEYS, + TensorOptionsArguments, + Type, + Variant, + ViewSchemaKind, +) +from torchgen.native_function_generation import ( + add_generated_native_functions, + gen_composite_functional_kernel, + gen_composite_out_kernel, + pre_group_native_functions, +) +from torchgen.selective_build.selector import SelectiveBuilder +from torchgen.utils import ( + assert_never, + concatMap, + context, + FileManager, + make_file_manager, + mapMaybe, + NamespaceHelper, + Target, +) +from torchgen.yaml_utils import YamlDumper, YamlLoader + +T = TypeVar("T") + +# Welcome to the ATen code generator v2! The ATen code generator is +# responsible for parsing native_functions.yaml and then generating +# various generated files (e.g., TypeDefault.cpp) based on the operators +# defined in this file. This means that the code generator knows how to +# parse function schema, and then translate this into various C++ types +# and boilerplate code. +# +# Some things to know about this file when you modify it: +# +# - This file has STRICT mypy typechecking. Typecheck it with +# `mypy --config mypy-strict.ini` in the root source directory +# +# - Most of the heavy lifting lives in external modules: +# - 'model' has the data model for native_functions.yaml. The classes +# in those file represent what you see when you look at +# a native_functions.yaml +# - 'api' has conversions for how to translate JIT schema into +# the various C++ APIs that the codegen interacts with. There +# are in fact THREE different C++ APIs: the public C++ API, +# the dispatcher API, and the legacy dispatcher API. See each +# of these respective files for more information + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # +# +# HELPER FUNCTIONS +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # + + +# A custom loader for YAML to let us also keep track of line numbers +# of each entry in the YAML file +class LineLoader(YamlLoader): + def construct_mapping(self, node, deep=False): # type: ignore[no-untyped-def] + mapping = super().construct_mapping(node, deep=deep) # type: ignore[no-untyped-call] + # Add 1 so line numbering starts at 1 + mapping["__line__"] = node.start_mark.line + 1 + return mapping + + +# Parse native_functions.yaml into a sequence of NativeFunctions and Backend Indices. +ParsedYaml = namedtuple("ParsedYaml", ["native_functions", "backend_indices"]) + + +_GLOBAL_PARSE_NATIVE_YAML_CACHE: Dict[str, ParsedYaml] = {} +_GLOBAL_PARSE_TAGS_YAML_CACHE: Dict[str, Set[str]] = {} + + +def parse_native_yaml_struct( + es: object, + valid_tags: Set[str], + ignore_keys: Optional[Set[DispatchKey]] = None, + path: str = "", + skip_native_fns_gen: bool = False, +) -> ParsedYaml: + assert isinstance(es, list) + rs: List[NativeFunction] = [] + bs: Dict[DispatchKey, Dict[OperatorName, BackendMetadata]] = defaultdict(dict) + for e in es: + assert isinstance(e.get("__line__"), int), e + loc = Location(path, e["__line__"]) + funcs = e.get("func") + with context(lambda: f"in {loc}:\n {funcs}"): + func, m = NativeFunction.from_yaml(e, loc, valid_tags, ignore_keys) + rs.append(func) + BackendIndex.grow_index(bs, m) + error_check_native_functions(rs) + # Default dict is to prevent the codegen from barfing when we have a dispatch key that has no kernels yet. + indices: Dict[DispatchKey, BackendIndex] = defaultdict( + lambda: BackendIndex( + dispatch_key=DispatchKey.Undefined, + use_out_as_primary=True, + external=False, + device_guard=False, + # I'm actually not sure about this; undefined could be hit on + # empty TensorList, hypothetically that could have sizes in it + index={}, + ) + ) + if not skip_native_fns_gen: + add_generated_native_functions(rs, bs) + for k, v in bs.items(): + # All structured in-tree operators are implemented in terms of their out operator. + indices[k] = BackendIndex( + dispatch_key=k, + use_out_as_primary=True, + external=False, + # Only cuda-like devices in tree require device guards + device_guard=is_cuda_dispatch_key(k), + index=v, + ) + return ParsedYaml(rs, indices) + + +def parse_tags_yaml_struct(es: object, path: str = "") -> Set[str]: + assert isinstance(es, list) + rs: Set[str] = set() + for e in es: + assert isinstance(e.get("__line__"), int), e + loc = Location(path, e["__line__"]) + tags = e.get("tag") + with context(lambda: f"in {loc}:\n {tags}"): + e_i = e.copy() + name = e_i.pop("tag") + desc = e_i.pop("desc", "") + # ensure that each tag has a non-empty description + assert desc != "" + rs.add(name) + return rs + + +@functools.lru_cache(maxsize=None) +def parse_tags_yaml(path: str) -> Set[str]: + global _GLOBAL_PARSE_TAGS_YAML_CACHE + if path not in _GLOBAL_PARSE_TAGS_YAML_CACHE: + with open(path) as f: + es = yaml.load(f, Loader=LineLoader) + _GLOBAL_PARSE_TAGS_YAML_CACHE[path] = parse_tags_yaml_struct(es, path=path) + + return _GLOBAL_PARSE_TAGS_YAML_CACHE[path] + + +def parse_native_yaml( + path: str, + tags_yaml_path: str, + ignore_keys: Optional[Set[DispatchKey]] = None, + *, + skip_native_fns_gen: bool = False, + loaded_yaml: Optional[object] = None, +) -> ParsedYaml: + global _GLOBAL_PARSE_NATIVE_YAML_CACHE + if path not in _GLOBAL_PARSE_NATIVE_YAML_CACHE: + valid_tags = parse_tags_yaml(tags_yaml_path) + + # if a loaded yaml is provided, use that instead of reading from path + if loaded_yaml is None: + with open(path) as f: + es = yaml.load(f, Loader=LineLoader) + else: + es = loaded_yaml + + _GLOBAL_PARSE_NATIVE_YAML_CACHE[path] = parse_native_yaml_struct( + es, + valid_tags, + ignore_keys, + path=path, + skip_native_fns_gen=skip_native_fns_gen, + ) + + return _GLOBAL_PARSE_NATIVE_YAML_CACHE[path] + + +# Some assertions are already performed during parsing, but those are only within a single NativeFunction. +# Assertions here are meant to be performed across NativeFunctions. +def error_check_native_functions(funcs: Sequence[NativeFunction]) -> None: + func_map: Dict[OperatorName, NativeFunction] = {} + base_func_map: Dict[BaseOperatorName, List[NativeFunction]] = defaultdict(list) + for f in funcs: + func_map[f.func.name] = f + base_func_map[f.func.name.name].append(f) + for f in funcs: + if f.structured_delegate is not None: + delegate_func = func_map[f.structured_delegate] + assert delegate_func.structured, ( + f"{f.func.name} is marked as a structured_delegate pointing to " + f"{f.structured_delegate}, but {f.structured_delegate} is not marked as structured. " + f"Consider adding 'structured=True' to the delegated operator" + ) + # See Note [resize_ in Functionalization] + # resize_() is technically an inplace view op (and therefore needs the tag), + # but it would be overkill to add a true "view" variant of resize. + # Instead, resize_() gets special treatment in functionalization, + # and we have a resize() op that is non-aliasing + functional. + if ( + "inplace_view" in f.tags + and str(f.func.name) != "resize_" + and str(f.func.name) != "resize_as_" + and str(f.func.name.name) != "set_" + ): + base_name = f.func.name.name + overload_name = f.func.name.overload_name + assert base_name.inplace, ( + f"{f.func.name} is marked with tag: inplace_view, but it doesn't follow the naming " + "convention for inplace ops - the codegen expects the base name to have a trailing underscore. " + ) + out_of_place_base_name = BaseOperatorName( + base_name.base, False, base_name.dunder_method + ) + assert len(base_func_map[out_of_place_base_name]) > 0, ( + f"{f.func.name} is marked with tag: inplace_view. The codegen expects there to be a corresponding " + f"out-of-place view op with the name '{base_name}' and matching schema, but it didn't find one. " + ) + + +def cpp_string(s: str) -> str: + """Convert a python string into a c++ string literal""" + s = s.replace("\\", "\\\\") + s = s.replace('"', '\\"') + s = s.replace("\a", "\\a") + s = s.replace("\b", "\\b") + s = s.replace("\f", "\\f") + s = s.replace("\n", "\\n") + s = s.replace("\v", "\\v") + s = s.replace("\t", "\\t") + return f'"{s}"' + + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # +# +# C++ CODE GENERATION +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # + +# Most functions in this section are curried: they consist of a function +# that takes some parameters (e.g., what is to be generated) which itself +# returns a function that actually maps NativeFunction to the code +# to be generated. This pattern makes it convenient to use map, concatMap +# and similar functional combinators. + + +def static_dispatch_keys(backends: List[BackendIndex]) -> List[DispatchKey]: + if len(backends) == 0: + return [] + else: + return [backend.dispatch_key for backend in backends] + [ + DispatchKey.CompositeImplicitAutograd, + DispatchKey.CompositeImplicitAutogradNestedTensor, + DispatchKey.CompositeExplicitAutograd, + DispatchKey.CompositeExplicitAutogradNonFunctional, + ] + + +def get_static_dispatch_backend( + f: NativeFunction, backend_index: BackendIndex +) -> Optional[DispatchKey]: + if f.structured_delegate is not None or backend_index.has_kernel(f): + # TODO: for ops with structured_delegate it should check the dispatch table of + # the out variant instead. For now, these structured ops all have CPU/CUDA kernels + # so we always dispatch to the `backend`, but this could be wrong when we + # migrate math/default_backend ops to use structured delegate. + return backend_index.dispatch_key + elif f.has_composite_explicit_autograd_kernel: + return DispatchKey.CompositeExplicitAutograd + elif f.has_composite_explicit_autograd_non_functional_kernel: + return DispatchKey.CompositeExplicitAutogradNonFunctional + elif f.has_composite_implicit_autograd_kernel: + return DispatchKey.CompositeImplicitAutograd + elif f.has_composite_implicit_autograd_nested_tensor_kernel: + return DispatchKey.CompositeImplicitAutogradNestedTensor + return None + + +def static_dispatch_ops_header( + f: NativeFunction, backend_index: List[BackendIndex] +) -> Optional[str]: + if backend_index is None or f.manual_kernel_registration: + return None + + output = [] + for index in backend_index: + dispatch_key = get_static_dispatch_backend(f, index) + if dispatch_key is not None: + output.append( + f"#include " + ) + return "\n".join(output) + + +def static_dispatch_extra_headers(backends: List[BackendIndex]) -> List[str]: + return [ + f"#include " + for dispatch_key in static_dispatch_keys(backends) + ] + + +# Translates arguments of `sig` to CppSignature bindings. +# Note that we have a special case for `memory_format` argument and this case is not covered by +# tools.codegen.api.translate() yet as its application is limited to static dispatch. +def translate_args( + sig: Union[CppSignature, DispatcherSignature], + cpp_sig: CppSignature, +) -> str: + # Adds SpecialArgName.possibly_redundant_memory_format NamedCType for memory_format bindings + def add_spl_memory_format_binding(input_bindings: List[Binding]) -> List[Binding]: + output_bindings: List[Binding] = [] + for binding in input_bindings: + if binding.name == "memory_format": + spl_mem_format_binding = Binding( + nctype=NamedCType( + SpecialArgName.possibly_redundant_memory_format, + binding.nctype.type, + ), + name=binding.name, + default=binding.default, + argument=binding.argument, + ) + output_bindings.append(spl_mem_format_binding) + else: + output_bindings.append(binding) + return output_bindings + + src_bindings = list(sig.arguments()) + goal_bindings = list(cpp_sig.arguments()) + # When last argument of CPP signature has SpecialArgName.possibly_redundant_memory_format NCType, + # get memory_format bindings of dispatcher signature to have the same NCType as well + for arg in goal_bindings: + if arg.nctype.name == SpecialArgName.possibly_redundant_memory_format: + src_bindings = add_spl_memory_format_binding(src_bindings) + break + exprs = translate(src_bindings, goal_bindings) + return ", ".join(a.expr for a in exprs) + + +def generate_static_dispatch_backend_call( + sig: Union[CppSignature, DispatcherSignature], + f: NativeFunction, + backend_index: BackendIndex, +) -> str: + cpp_sig = gen_static_dispatch_backend_call_signature(sig, f) + name = cpp_sig.name() + exprs = translate_args(sig, cpp_sig) + backend_metadata = backend_index.get_kernel(f) + kernel_ns = ( + backend_metadata.cpp_namespace + if backend_metadata and backend_metadata.cpp_namespace + else DEFAULT_KERNEL_NAMESPACE + ) + ns = kernel_ns.replace("::native", "") + return f"return {ns}::{backend_index.dispatch_key.lower()}::{name}({exprs});" + + +def generate_static_dispatch_fallback_call( + sig: Union[CppSignature, DispatcherSignature], + f: NativeFunction, + backend_indices: List[BackendIndex], +) -> str: + cpp_sigs = CppSignatureGroup.from_native_function( + f, method=False, fallback_binding=False + ) + if sig.symint and f.func.has_symint(): + cpp_sig = cpp_sigs.symint_signature + else: + cpp_sig = cpp_sigs.signature + assert cpp_sig is not None + name = cpp_sig.name() + exprs = translate_args(sig, cpp_sig) + ns = DEFAULT_KERNEL_NAMESPACE.replace("::native", "") + if f.has_composite_explicit_autograd_kernel: + return f"return {ns}::{DispatchKey.CompositeExplicitAutograd.lower()}::{name}({exprs});" + elif f.has_composite_explicit_autograd_non_functional_kernel: + return f"return {ns}::{DispatchKey.CompositeExplicitAutogradNonFunctional.lower()}::{name}({exprs});" + elif f.has_composite_implicit_autograd_kernel: + return f"return {ns}::{DispatchKey.CompositeImplicitAutograd.lower()}::{name}({exprs});" + elif f.has_composite_implicit_autograd_nested_tensor_kernel: + return f"return {ns}::{DispatchKey.CompositeImplicitAutogradNestedTensor.lower()}::{name}({exprs});" + else: + return f"""TORCH_CHECK(false, "Static dispatch does not support {name} for\ +{', '.join([str(index.dispatch_key)for index in backend_indices])} ");""" + + +def static_dispatch( + sig: Union[CppSignature, DispatcherSignature], + f: NativeFunction, + backend_indices: List[BackendIndex], +) -> str: + """ + For a given `NativeFunction`, find out the corresponding backend and dispatch to it. If more than one + backends exsit, fallback to static dispatch by determining dispatch key from inputs. + Arguments: + sig: A CppSignature or DispatcherSignature for this native function we want to use. + f: NativeFunction to generate static dispatch. + backend_indices: All available backends. + Return: + C++ code to call backend-specific functions, e.g., "return at::cpu::add(self, other, scale);" + """ + if len(backend_indices) == 0 or f.manual_kernel_registration: + return "" + + keys = [ + b + for b in backend_indices + if b.has_kernel(f) + or ( + f.structured_delegate is not None + and b.dispatch_key in STRUCTURED_DISPATCH_KEYS + ) + ] + if len(keys) == 1: + return generate_static_dispatch_backend_call(sig, f, keys[0]) + elif len(keys) == 0: + return generate_static_dispatch_fallback_call(sig, f, backend_indices) + + native_tensor_args = [ + a.name + for a in sig.arguments() + if isinstance(a.argument, SelfArgument) + or isinstance(a.argument, Argument) + and a.argument.type.is_tensor_like() + ] + tensor_args = ", ".join(native_tensor_args) + tensor_opts = f.func.arguments.tensor_options + + stmts = [] + subexprs: List[str] = [] + if tensor_opts is not None: + subexprs.append( + "DispatchKeySet(c10::computeDispatchKey(dtype, layout, device))" + ) + if tensor_args != "": + subexprs.append(f"c10::detail::multi_dispatch_key_set({tensor_args})") + stmts.append(f"""DispatchKeySet _dk_set = {' | '.join(subexprs)};""") + stmts.append("DispatchKey _dk = c10::highestPriorityBackendTypeId(_dk_set);") + + dispatch_code = [] + for index in keys: + dispatch_code.append(f"""case DispatchKey::{index.dispatch_key}:""") + dispatch_code.append( + f"""\t{generate_static_dispatch_backend_call(sig, f, index)};""" + ) + + fallback = generate_static_dispatch_fallback_call(sig, f, backend_indices) + connector = "\n\t\t" + + return f""" + {connector.join(stmts)} + switch (_dk) {{ + {connector.join(dispatch_code)} + default: + {fallback} + }} + """ + + +# Generates RegisterSchema.cpp. Depending on the selector, either +# all schemas are registered, or only some are (in the case of +# selective build) +@dataclass(frozen=True) +class RegisterSchema: + selector: SelectiveBuilder + known_tags: Dict[str, int] = field(default_factory=dict) + + @method_with_native_function + def __call__(self, f: NativeFunction) -> Optional[str]: + if not self.selector.is_native_function_selected(f): + return None + tags = "{" + ", ".join(f"at::Tag::{tag}" for tag in sorted(f.tags)) + "}" + if tags == "{}": + return f"m.def({cpp_string(str(f.func))}, {{}});\n" + maybe_tags = "" + if tags not in self.known_tags: + idx = len(self.known_tags) + self.known_tags[tags] = idx + maybe_tags = f"const std::vector tags_{idx} = {tags};\n" + return f"{maybe_tags}m.def({cpp_string(str(f.func))}, tags_{self.known_tags[tags]});\n" + + +# Generates Operators.h and Operators.cpp. +# These provide macros that, given an operator and overload name, allow users +# to access an "un-overloaded" function version of the operator. This +# is useful for extension writers who want to (1) want to decltype the operator +# and (2) don't want to worry about method-only operators. +@dataclass(frozen=True) +class ComputeOperators: + target: Literal[Target.DECLARATION, Target.DEFINITION] + static_dispatch_backend_indices: List[BackendIndex] + + @method_with_native_function + def __call__(self, f: NativeFunction) -> str: + sig = DispatcherSignature.from_schema(f.func) + name = f.func.name.unambiguous_name() + + if self.target is Target.DECLARATION: + # Note [The ATen Operators API] + # The ATen Operators API lives in the at::_ops namespace, and contains compile-time + # metadata about each operator + entry points into the Dispatcher. + # The C++ function, method, and redispatch API's are all implemented as wrappers + # into various bits of the structs defined here. + # + # Important characteristics about the Operators API: + # (1) It follows the Dispatcher API. + # This is kind of necessary to avoid overhead. + # For example: if it followed the C++ API, then all of the faithful C++ factory functions + # would need to wrap their arguments into TensorOptions only to unwrap them again. + # (2) Overload names are disambiguated. + # This is helpful for pytorch extenders who would like to decltype() an aten operator, + # that has overloads, e.g. decltype(at::_ops::mul_Tensor::call) + # (3) No argument defaulting is allowed. + # This is more of an implementation detail to avoid #include cycles, + # since TensorBody.h (which defines the Tensor class) needs to include this file. + # (4) manual_cpp_bindings and faithful names are not included in the API. + # This applies to stuff like __dispatch__is_complex(), and add_outf(). + # These aren't "real aten ops", they're just additional functions provided by the C++ API. + # They're implemented as wrappers in Functions.h that call into the actual operators + # defined here, i.e. at::_ops::is_complex::call() and at::_ops::add_out::call(). + # This means that ATEN_OP(is_complex) will not fastpath, and will go through the dispatcher. + return f""" +struct TORCH_API {name} {{ + using schema = {sig.type()}; + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::{f.func.name.name}") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "{f.func.name.overload_name}") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, {cpp_string(str(f.func))}) + static {sig.defn(name="call", is_redispatching_fn=False)}; + static {sig.defn(name="redispatch", is_redispatching_fn=True)}; +}};""" + + elif self.target is Target.DEFINITION: + defns = f""" +STATIC_CONST_STR_OUT_OF_LINE_FOR_WIN_CUDA({name}, name, "aten::{f.func.name.name}") +STATIC_CONST_STR_OUT_OF_LINE_FOR_WIN_CUDA({name}, overload_name, "{f.func.name.overload_name}") +STATIC_CONST_STR_OUT_OF_LINE_FOR_WIN_CUDA({name}, schema_str, {cpp_string(str(f.func))}) + +// aten::{f.func} +static C10_NOINLINE c10::TypedOperatorHandle<{name}::schema> create_{name}_typed_handle() {{ + return c10::Dispatcher::singleton() + .findSchemaOrThrow({name}::name, {name}::overload_name) + .typed<{name}::schema>(); +}} +""" + for is_redispatching_fn in [False, True]: + if is_redispatching_fn: + dispatcher_exprs_str = ", ".join( + ["dispatchKeySet"] + [a.name for a in sig.arguments()] + ) + method_base = "redispatch" + else: + dispatcher_exprs_str = ", ".join([a.name for a in sig.arguments()]) + method_base = "call" + + dispatcher_call = method_base + method_name = f"{name}::{method_base}" + + fn_body = f""" + static auto op = create_{name}_typed_handle(); + return op.{dispatcher_call}({dispatcher_exprs_str});""" + + if ( + not is_redispatching_fn + and len(self.static_dispatch_backend_indices) > 0 + ): + # call() should go through static dispatch + fn_body = static_dispatch( + sig, f, backend_indices=self.static_dispatch_backend_indices + ) + defns += f""" +// aten::{f.func} +{sig.defn(name=method_name, is_redispatching_fn=is_redispatching_fn)} {{ + {fn_body} +}} +""" + return defns + else: + assert_never(self.target) + + +# Generates Functions.h, which provides the functional public C++ API, +# and the scaffolding to call into the dispatcher from these functions. +@dataclass(frozen=True) +class ComputeFunction: + @method_with_native_function + def __call__(self, f: NativeFunction) -> Optional[str]: + sig_group = CppSignatureGroup.from_native_function( + f, method=False, fallback_binding=f.manual_cpp_binding + ) + has_symint = f.func.has_symint() + + result = "" + for sig in sig_group.signatures(): + # See Note [The ATen Operators API] + target_sig = DispatcherSignature.from_schema(f.func) + exprs = translate(sig.arguments(), target_sig.arguments()) + exprs_str = ", ".join([e.expr for e in exprs]) + + if sig.symint: + intlike_t = "c10::SymInt" + else: + intlike_t = "int64_t" + + if Variant.function in f.variants: + result += f""" +// aten::{f.func} +inline {sig.decl()} {{ + return at::_ops::{f.func.name.unambiguous_name()}::call({exprs_str}); +}}""" + + # The template function can be used from template situations + # where you want to switch between the symint or not version + # depending on a template argument + # + # NB: we ALWAYS generate this even for methods. But we put it in + # this header so it can take advantage of per-op headers + if has_symint: + result += f""" +namespace symint {{ + template ::value>> + {sig.decl(suppress_symint_suffix=True)} {{ + return at::_ops::{f.func.name.unambiguous_name()}::call({exprs_str}); + }} +}} +""" + return result + + +# Generates TensorBody.h. This file provides the object-oriented (method-based) +# public C++ API, and the scaffolding to call into the dispatcher from these functions. +@dataclass(frozen=True) +class ComputeTensorMethod: + target: Literal[Target.DECLARATION, Target.DEFINITION] + static_dispatch_backend_indices: List[BackendIndex] + + @method_with_native_function + def __call__(self, f: NativeFunction) -> Optional[str]: + if Variant.method not in f.variants: + return None + + assert not f.func.is_out_fn() + assert f.func.arguments.self_arg is not None + + sig_group = CppSignatureGroup.from_native_function( + f, method=True, fallback_binding=f.manual_cpp_binding + ) + + if self.target is Target.DECLARATION: + result = "" + for sig in sig_group.signatures(): + result += f"{sig.decl()} const;\n" + return result + + if self.target is not Target.DEFINITION: + assert_never(self.target) + + result = "" + + for sig in sig_group.signatures(): + target_sig = DispatcherSignature.from_schema(f.func) + exprs = translate(sig.arguments(), target_sig.arguments(), method=True) + exprs_str = ", ".join([e.expr for e in exprs]) + + result += f""" +// aten::{f.func} +inline {sig.defn(prefix="Tensor::")} const {{ + return at::_ops::{f.func.name.unambiguous_name()}::call({exprs_str}); +}} +""" + + return result + + +# Generates RedispatchFunctions.h. +# This is similar to the C++ API defined in Functions.h, but provides access +# to the dispatcher's redispatch API. +@dataclass(frozen=True) +class ComputeRedispatchFunction: + @method_with_native_function + def __call__(self, f: NativeFunction) -> Optional[str]: + # We unconditionally generate function variants of the redispatch API. + # This is mainly because we can namespace functions separately, but not methods, + sig_group = CppSignatureGroup.from_native_function( + f, method=False, fallback_binding=f.manual_cpp_binding + ) + + result = "" + for sig in sig_group.signatures(): + target_sig = DispatcherSignature.from_schema(f.func) + exprs = translate(sig.arguments(), target_sig.arguments()) + exprs_str = ", ".join(["dispatchKeySet"] + [a.expr for a in exprs]) + + result += f""" +// aten::{f.func} +inline {sig.decl(is_redispatching_fn=True)} {{ + return at::_ops::{f.func.name.unambiguous_name()}::redispatch({exprs_str}); +}} +""" + + return result + + +# Generates ATenOpList.cpp, a runtime accessible list of all aten +# operators. +# TODO: This was historically used to help some JIT interop code +# figure out whether or not to treat aten namespace'd operators +# one way or another, we should reevaluate if this is actually needed. +@with_native_function +def compute_aten_op(f: NativeFunction) -> str: + return f'{{"aten::{f.func.name.name}", "{f.func.name.overload_name}"}},' + + +# Generates MetaFunctions.h +def compute_meta_function_declaration(g: NativeFunctionsGroup) -> Optional[str]: + if not g.structured: + return None + with native_function_manager(g.out): + name = meta.name(g) + args = structured.meta_arguments(g) + args_str = ", ".join(a.decl() for a in args) + parent_class = g.out.structured_inherits + if parent_class is None: + parent_class = "at::impl::MetaBase" + meta_return = "void" + precomputed = g.out.precomputed if g.structured else None + + if precomputed: + # Generate the template declaration with one bool parameter for each + # precomputed element. Each parameter is true if the corresponding (in + # terms of position) precomputed element has been set. + precomputed_values = [*precomputed.replace.values(), precomputed.add] + precomputed_elements = [ + elem for replace_list in precomputed_values for elem in replace_list + ] + precomputed_template_parameters = [ + elem.name.upper() for elem in precomputed_elements + ] + precomputed_template_params_str = ", ".join( + f"bool {param} = false" for param in precomputed_template_parameters + ) + precompute_template_decl = f"template <{precomputed_template_params_str}>" + + # Generate a string containing declarations of all precomputed elements. + precomputed_elements_with_cpp_types = [ + structured.argument_type(elem, binds=elem.name) + for elem in precomputed_elements + ] + + precomputed_elements_decl = ";\n".join( + f"{elem.cpp_type(strip_ref=True)} {elem.name}" + for elem in precomputed_elements_with_cpp_types + ) + + # Generate "setter" methods for each precomputed element. Each method will return + # a new instance of precompute_out with the template parameter that corresponds to + # the member set by the method to true (to indicate that it has been set). + setter_methods = [] + for i, elem in enumerate(precomputed_elements): + # Generate the signature. The return type will be the same + # as the type of `this` but with the template parameter + # corresponding to the element set by this method set to true. + # The assert generated below will ensure that this template + # parameter is false on the type of `this`. + return_ty_templates = ", ".join( + precomputed_template_parameters[:i] + + ["true"] + + precomputed_template_parameters[i + 1 :] + ) + return_ty = f"precompute_out<{return_ty_templates}>" + elem_cpp_ty = precomputed_elements_with_cpp_types[i].cpp_type( + strip_ref=True + ) + signature = f"{return_ty} set_{elem.name}({elem_cpp_ty} value)" + + # Generate an assert which checks that the + # template parameter corresponding to the precomputed + # element that is set by this method is false on the + # class corresponding to the object that `this` points to. + # This ensures that each element can be set only once. + assert_msg = f'"{precomputed_elements[i].name} already set"' + assert_stmt = f"static_assert({precomputed_template_parameters[i]} == false, {assert_msg});" + + # Generate the new object construction block. All state + # except the element that this method sets is copied from the + # object that `this` points to. The value for the element that + # the method sets is taken from a method parameter. + construction_stmts = [] + construction_stmts.append(f"{return_ty} ret;") + + for j, elem in enumerate(precomputed_elements): + if i == j: + construction_stmts.append(f"ret.{elem.name} = value;") + else: + construction_stmts.append( + f"ret.{elem.name} = this->{elem.name};" + ) + + construction_stmts.append("return ret;") + construction_block = "\n".join(construction_stmts) + + setter_methods.append( + f""" + {signature} {{ + {assert_stmt} + {construction_block} + }} + """ + ) + setter_methods_decl = "\n".join(setter_methods) + + # Meta should return an instance of the struct containing the precomputed elements. + meta_return_template_params = ", ".join( + ["true"] * len(precomputed_template_parameters) + ) + # This typedef (actually a using statement) is needed so that TORCH_META_FUNC can reuse the return + # type (which has a variable number of template parameters). + meta_return_typedef = f"using meta_return_ty = precompute_out <{meta_return_template_params}>;" + meta_return = "meta_return_ty" + precomputed_decl = f""" + {precompute_template_decl} + struct TORCH_API precompute_out {{ + {setter_methods_decl} + {precomputed_elements_decl}; + }};""" + else: + meta_return_typedef = "" + precomputed_decl = "" + + return f"""\ +struct TORCH_API structured_{name} : public {parent_class} {{ + {precomputed_decl} + {meta_return_typedef} + {meta_return} meta({args_str}); +}}; +""" + + +def needs_backend_select(f: NativeFunction, selector: SelectiveBuilder) -> bool: + name = str(f.func.name.name) + if name.endswith("_like") or name.startswith("new_"): + return False + if f.func.arguments.tensor_options is None: + return False + return selector.is_native_function_selected(f) + + +# Generates RegisterBackendSelect.cpp, a series of kernels which provide +# specialized computation of dispatch key for operator signatures which cannot +# be easily done automatically using templating. +@dataclass(frozen=True) +class ComputeBackendSelect: + target: Literal[Target.DEFINITION, Target.REGISTRATION] + + # Selector object to determine which operators to generate + # registration code for. + selector: SelectiveBuilder + + @method_with_native_function + def __call__(self, f: NativeFunction) -> Optional[str]: + if not needs_backend_select(f, self.selector): + return None + + name = native.name(f.func) + # BackendSelect can go to Meta, so it must preserve symints + native_sig = NativeSignature(f.func, symint=True) + + native_tensor_args = [ + a + for a in native_sig.arguments() + if isinstance(a.argument, Argument) and a.argument.type.is_tensor_like() + ] + + dispatcher_sig = DispatcherSignature.from_schema(f.func) + + sig: Union[NativeSignature, DispatcherSignature] + sig = dispatcher_sig + dispatcher_exprs = dispatcher_sig.exprs() + dispatch_key = "c10::computeDispatchKey(dtype, layout, device)" + + if self.target is Target.DEFINITION: + # I don't think there's actually a good reason to generate + # these two cases differently + # The first case could probably be improved though- it calls computeDispatchKeySet(), + # which looks at TLS dispatch keys- there should not be any by the time we reach backend select. + if native_tensor_args: + assert f.func.arguments.has_tensor_arg() + tensor_args = ", ".join(a.name for a in native_tensor_args) + compute_dk = f"""\ +DispatchKeySet _dk_set = c10::DispatchKeySet({dispatch_key}) | c10::detail::multi_dispatch_key_set({tensor_args}); +DispatchKeySet _dk_mask = c10::DispatchKeySet(DispatchKeySet::FULL_AFTER, DispatchKey::BackendSelect); +DispatchKeySet _dk = c10::impl::computeDispatchKeySet(_dk_set, _dk_mask);""" + else: + assert not f.func.arguments.has_tensor_arg() + compute_dk = ( + f"DispatchKeySet _dk = c10::DispatchKeySet({dispatch_key});" + ) + return f"""\ +// aten::{f.func} +C10_ALWAYS_INLINE +{sig.defn(name)} {{ + {compute_dk} + return at::_ops::{f.func.name.unambiguous_name()}::redispatch( + _dk, {', '.join(a.expr for a in dispatcher_exprs)}); +}} +""" + elif self.target is Target.REGISTRATION: + return f"""m.impl("aten::{f.func.name}", TORCH_FN({name}));""" + else: + assert_never(self.target) + + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # +# +# YAML CODE GENERATION +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # + + +def format_yaml(data: object) -> str: + # Ignore alias in Dumper + YamlDumper.ignore_aliases = lambda self, data: True # type: ignore[assignment] + + # Support serializing OrderedDict + def dict_representer(dumper: Any, data: Any) -> Any: + return dumper.represent_dict(data.items()) + + YamlDumper.add_representer(OrderedDict, dict_representer) # type: ignore[no-untyped-call] + # Some yaml parsers (e.g. Haskell's) don't understand line breaks. + # width=1e9 turns off optional line breaks and improves + # the portability of the outputted yaml. + return yaml.dump(data, default_flow_style=False, Dumper=YamlDumper, width=1e9) # type: ignore[no-any-return, call-overload] + + +# For some reason, some defaults we write to YAML are written as native +# YAML objects, rather than doing them uniformly as strings. This +# function detects those cases and converts them into native Python +# objects. +def pythonify_default(s: str) -> object: + if s == "true": + return True + elif s == "false": + return False + + try: + return int(s) + except ValueError: + try: + return float(s) + except ValueError: + return s + + +# What is a dynamic type? Over time, the semantic meaning of +# dynamic type has degraded to meaninglessness (in the old days, +# it captured dtype-ness of types, but that has gone away with +# the removal of TH). These days, it's mostly the same thing as +# the C++ API argument type, except that Tensor and Tensor? +# arguments simply present as Tensor. +# +# TODO: Get rid of dynamic_type, after getting tools/autograd +# to use the new codegen framework +def dynamic_type(t: Type) -> str: + if isinstance(t, OptionalType): + return dynamic_type(t.elem) + # Note we don't use t.is_tensor_like() here because it would + # also include Tensor[] + if str(t) == "Tensor": + return "at::Tensor" + # This is a legacy concept, so never report SymInt + return cpp.argumenttype_type( + t, mutable=False, binds="__placeholder__", symint=False + ).cpp_type() + + +def compute_method_of_yaml(variants: Set[Variant]) -> List[str]: + # This is written out explicitly to ensure that Tensor and + # namespace are put into the list in the right order + method_of = ["Type"] + if Variant.method in variants: + method_of.append("Tensor") + if Variant.function in variants: + method_of.append("namespace") + return method_of + + +def compute_returns_yaml( + f: NativeFunction, +) -> Tuple[List[Dict[str, str]], Dict[str, str]]: + # Note [name and field_name] + # ~~~~~~~~~~~~~~~~~~~~~~~~~~ + # To understand name_to_field_name, we must first talk about this + # schema: + # + # lstsq.X(Tensor self, Tensor A, *, Tensor(a!) X, Tensor(b!) qr) -> (Tensor(a!) solution, Tensor(b!) QR) + # + # There is something very odd about this schema: it is an out + # variant of the function (that is to say, it will convert into + # at::lstsq_out() in the C++ API), but the names of the output + # return arguments don't match the keyword argument names of + # the inputs. It TURNS OUT that in this situation, the historical + # Declarations.yaml we want to output is this (abbreviated to + # only show relevant fields): + # + # arguments: + # ... + # - field_name: solution + # name: X + # - field_name: QR + # name: qr + # ... + # + # returns: + # - field_name: solution + # name: X + # - field_name: QR + # name: qr + # + # The name of the return fields is stored in 'field_name', and the + # name of the arguments is stored in 'name'. So when we process + # arguments, we need a way to get at the corresponding return. At + # the moment, this is most conveniently done by constructing a + # mapping from name (the argument concept) to field_name (the + # return concept) while processing return arguments, since we don't + # directly maintain this correspondence in the modeling of function + # schema itself. + # + # See also https://github.com/pytorch/pytorch/issues/43114 + name_to_field_name: Dict[str, str] = {} + + # Compute the returns field of the YAML entry + names = cpp.return_names(f) + returns = [] + for i, (r, name) in enumerate(zip(f.func.returns, names)): + ret = { + "dynamic_type": dynamic_type(r.type), + "name": name, + # legacy, report ints + "type": cpp.return_type(r, symint=False).cpp_type(), + } + + if r.name: + # See Note [name and field_name] + ret["field_name"] = r.name + if f.func.is_out_fn(): + name_to_field_name[f.func.arguments.out[i].name] = r.name + + returns.append(ret) + + return returns, name_to_field_name + + +# arguments in yaml roughly corresponds to the public C++ API +def compute_cpp_argument_yaml( + cpp_a: Binding, + *, + schema_order: bool, + kwarg_only_set: Set[str], + out_arg_set: Set[str], + name_to_field_name: Dict[str, str], +) -> object: + if isinstance(cpp_a.argument, TensorOptionsArguments): + arg: Dict[str, object] = { + "annotation": None, + "dynamic_type": "at::TensorOptions", + "is_nullable": False, + "name": cpp_a.name, + "type": cpp_a.type, + "kwarg_only": True, + } + if cpp_a.default is not None: + arg["default"] = cpp_a.default + return arg + elif isinstance(cpp_a.argument, SelfArgument): + raise AssertionError() + elif isinstance(cpp_a.argument, Argument): + return compute_argument_yaml( + cpp_a.argument, + schema_order=schema_order, + kwarg_only_set=kwarg_only_set, + out_arg_set=out_arg_set, + name_to_field_name=name_to_field_name, + ) + + +def compute_argument_yaml( + a: Argument, + *, + schema_order: bool, + kwarg_only_set: Set[str], + out_arg_set: Set[str], + name_to_field_name: Dict[str, str], +) -> object: + arg: Dict[str, object] = { + "annotation": str(a.annotation) if a.annotation else None, + "dynamic_type": dynamic_type(a.type), + "is_nullable": a.type.is_nullable(), + "name": a.name, + # legacy, report ints + "type": cpp.argument_type(a, binds="__placeholder__", symint=False).cpp_type(), + } + if a.default is not None: + arg["default"] = pythonify_default( + cpp.default_expr(a.default, a.type, symint=False) + ) + if a.name in kwarg_only_set: + arg["kwarg_only"] = True + if a.name in out_arg_set: + arg["output"] = True + arg["allocate"] = True + # See Note [name and field_name] + if a.name in name_to_field_name: + arg["field_name"] = name_to_field_name[a.name] + # Historically, booleans don't get their size recorded, because it + # is already built into the cpp type (e.g., std::array) + l = a.type.is_list_like() + if l is not None and l.size is not None and str(l.elem) != "bool": + arg["size"] = l.size + return arg + + +@with_native_function +def compute_declaration_yaml(f: NativeFunction) -> object: + returns, name_to_field_name = compute_returns_yaml(f) + + # These sets are used to conveniently test if an argument is a + # kwarg-only or out argument + kwarg_only_set = {a.name for a in f.func.arguments.flat_kwarg_only} + out_arg_set = {a.name for a in f.func.arguments.out} + + sig_group = CppSignatureGroup.from_native_function( + f, method=False, fallback_binding=False + ) + cpp_args = sig_group.signature.arguments() + arguments = [ + compute_cpp_argument_yaml( + cpp_a, + schema_order=False, + kwarg_only_set=kwarg_only_set, + out_arg_set=out_arg_set, + name_to_field_name=name_to_field_name, + ) + for cpp_a in cpp_args + ] + + schema_order_jit_arguments = list(f.func.schema_order_arguments()) + + schema_order_arguments = [ + compute_argument_yaml( + a, + schema_order=True, + kwarg_only_set=kwarg_only_set, + out_arg_set=out_arg_set, + name_to_field_name=name_to_field_name, + ) + for a in schema_order_jit_arguments + ] + + cpp_schema_order_types = [ + # NB: method here doesn't matter + r.type + for a in schema_order_jit_arguments + for r in cpp.argument( + a, + method=False, + cpp_no_default_args=set(), + faithful=False, + symint=False, + has_tensor_options=False, + ) + ] + + # legacy, report ints + cpp_returns = cpp.returns_type(f.func.returns, symint=False).cpp_type() + schema_order_cpp_signature = f"{cpp_returns} ({', '.join(cpp_schema_order_types)})" + + is_factory_method = ( + any(isinstance(a.argument, TensorOptionsArguments) for a in cpp_args) + and Variant.method not in f.variants + ) + + return OrderedDict( + [ + ("name", cpp.name(f.func)), + ("operator_name", str(f.func.name.name)), + ("overload_name", str(f.func.name.overload_name)), + ("manual_kernel_registration", f.manual_kernel_registration), + ( + "category_override", + f.category_override if f.category_override is not None else "", + ), + ("schema_string", f"aten::{f.func}"), + ("arguments", arguments), + ("schema_order_cpp_signature", schema_order_cpp_signature), + ("schema_order_arguments", schema_order_arguments), + ("method_of", compute_method_of_yaml(f.variants)), + ("mode", "native"), + ("python_module", "" if f.python_module is None else f.python_module), + ("returns", returns), + ("inplace", f.func.name.name.inplace), + ("is_factory_method", is_factory_method), + ("abstract", f.is_abstract), + ("device_guard", f.device_guard), + ("with_gil", False), + ("deprecated", False), + ("has_math_kernel", f.has_composite_implicit_autograd_kernel), + ] + ) + + +# See Note [Auto generated composite kernels] +def has_autogenerated_composite_kernel(f: NativeFunction) -> bool: + return (f.structured or f.structured_delegate is not None) and ( + f.func.kind() == SchemaKind.functional or f.func.kind() == SchemaKind.inplace + ) + + +@with_native_function_and_indices +def compute_registration_declarations( + f: NativeFunction, backend_indices: Dict[DispatchKey, BackendIndex] +) -> str: + name = dispatcher.name(f.func) + returns_type = dispatcher.returns_type( + f.func.returns + ).cpp_type_registration_declarations() + args = dispatcher.arguments(f.func) + args_str = ", ".join(a.no_default().decl_registration_declarations() for a in args) + comment_data: Dict[str, str] = { + "schema": f"aten::{f.func}", + # TODO: What exactly is the semantics of the 'dispatch' field? + "dispatch": str( + {k for k, v in backend_indices.items() if v.has_kernel(f)} + != {DispatchKey.CompositeImplicitAutograd} + and {k for k, v in backend_indices.items() if v.has_kernel(f)} + != { + DispatchKey.CompositeImplicitAutograd, + DispatchKey.CompositeImplicitAutogradNestedTensor, + } + ), + "default": str(f.has_composite_kernel or has_autogenerated_composite_kernel(f)), + } + return f"""{returns_type} {name}({args_str}); // {json.dumps(comment_data)} +""" + + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # +# +# RUN IT ALL +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # + + +def get_custom_build_selector( + provided_op_registration_allowlist: Optional[List[str]], + op_selection_yaml_path: Optional[str], +) -> SelectiveBuilder: + assert not ( + provided_op_registration_allowlist is not None + and op_selection_yaml_path is not None + ), ( + "Both provided_op_registration_allowlist and " + + "op_selection_yaml_path can NOT be provided at the " + + "same time." + ) + + op_registration_allowlist: Optional[Set[str]] = None + if provided_op_registration_allowlist is not None: + op_registration_allowlist = set(provided_op_registration_allowlist) + + if op_registration_allowlist is not None: + selector = SelectiveBuilder.from_legacy_op_registration_allow_list( + op_registration_allowlist, + True, + False, + ) + elif op_selection_yaml_path is not None: + selector = SelectiveBuilder.from_yaml_path(op_selection_yaml_path) + else: + selector = SelectiveBuilder.get_nop_selector() + + return selector + + +def get_grouped_by_view_native_functions( + native_functions: Sequence[NativeFunction], +) -> Sequence[Union[NativeFunction, NativeFunctionsViewGroup]]: + def maybe_create_view_group( + d: Dict[Union[ViewSchemaKind, SchemaKind], NativeFunction] + ) -> List[Union[NativeFunction, NativeFunctionsViewGroup]]: + funcs: List[Union[NativeFunction, NativeFunctionsViewGroup]] = [] + if ViewSchemaKind.aliasing in d: + view = d.pop(ViewSchemaKind.aliasing) + view_inplace = d.pop(ViewSchemaKind.aliasing_inplace, None) + view_copy = d.pop(SchemaKind.functional, None) + + funcs.append( + NativeFunctionsViewGroup( + view=view, + view_copy=view_copy, + view_inplace=view_inplace, + ) + ) + # Take the remaining functions that weren't part of the view group + # and emit them separately + funcs.extend(d.values()) + return funcs + + grouped_by_views: Dict[ + FunctionSchema, Dict[Union[SchemaKind, ViewSchemaKind], NativeFunction] + ] = defaultdict(dict) + for f in native_functions: + schema = f.func.view_signature() + view_kind: ViewSchemaKind = f.view_schema_kind + # We need to group up ops relevant to the same "view", consisting of: + # view op (ViewSchemaKind.aliasing) + # view_inplace op (ViewSchemaKind.aliasing_inplace) + # view_copy op (SchemaKind.functional) + if view_kind == ViewSchemaKind.non_aliasing: + kind = f.func.kind() + assert kind not in grouped_by_views[schema] + grouped_by_views[schema][kind] = f + else: + assert view_kind not in grouped_by_views[schema] + grouped_by_views[schema][view_kind] = f + + return list(concatMap(maybe_create_view_group, grouped_by_views.values())) + + +def get_grouped_native_functions( + native_functions: Sequence[NativeFunction], +) -> Sequence[Union[NativeFunction, NativeFunctionsGroup]]: + def flatten_pre_group( + d: Dict[SchemaKind, NativeFunction] + ) -> Sequence[Union[NativeFunction, NativeFunctionsGroup]]: + r = NativeFunctionsGroup.from_dict(d) + if r is None: + # Invariant: any NativeFunctions that are code-generated + # should have been grouped into NativeFunctionsGroup objects + assert not any("generated" in f.tags for f in d.values()) + return list(d.values()) + else: + return [r] + + # TODO: how come ValuesView isn't a Sequence lol + pre_grouped_native_functions = pre_group_native_functions(native_functions) + return list( + concatMap(flatten_pre_group, list(pre_grouped_native_functions.values())) + ) + + +def get_ns_grouped_kernels( + *, + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + backend_indices: Dict[DispatchKey, BackendIndex], + native_function_decl_gen: Callable[ + [Union[NativeFunctionsGroup, NativeFunction], BackendIndex], List[str] + ] = dest.compute_native_function_declaration, +) -> Dict[str, List[str]]: + ns_grouped_kernels: Dict[str, List[str]] = defaultdict(list) + for f in grouped_native_functions: + native_function_namespaces = set() + dispatch_keys = set() + for dispatch_key, backend_idx in backend_indices.items(): + backend_metadata = backend_idx.get_kernel(f) + if backend_metadata: + namespace = backend_metadata.cpp_namespace + dispatch_keys.add(dispatch_key) + native_function_namespaces.add(namespace) + else: + namespace = DEFAULT_KERNEL_NAMESPACE + assert ( + len(native_function_namespaces) <= 1 + ), f"Codegen only supports one namespace per operator, got {native_function_namespaces} from {dispatch_keys}" + ns_grouped_kernels[namespace].extend( + native_function_decl_gen(f, backend_idx) + ) + return ns_grouped_kernels + + +def get_native_function_declarations_from_ns_grouped_kernels( + *, + ns_grouped_kernels: Dict[str, List[str]], +) -> List[str]: + declarations: List[str] = [] + newline = "\n" + for namespace, kernels in ns_grouped_kernels.items(): + ns_helper = NamespaceHelper( + namespace_str=namespace, + entity_name="", + max_level=4, + ) + # Convert to a set first to remove duplicate kernel names. Backends are + # allowed to repeat kernel names; only generate the declaration once! + ordered_kernels = list(OrderedDict.fromkeys(kernels)) + declarations.extend( + f""" +{ns_helper.prologue} +{newline.join(ordered_kernels)} +{ns_helper.epilogue} + """.split( + newline + ) + ) + return declarations + + +# Return native function declarations grouped by their namespaces. +def get_native_function_declarations( + *, + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + backend_indices: Dict[DispatchKey, BackendIndex], + native_function_decl_gen: Callable[ + [Union[NativeFunctionsGroup, NativeFunction], BackendIndex], List[str] + ] = dest.compute_native_function_declaration, +) -> List[str]: + """ + Generate kernel declarations, in `NativeFunction(s).h`. + :param grouped_native_functions: a sequence of `NativeFunction` or `NativeFunctionGroup`. + :param backend_indices: kernel collections grouped by dispatch key. + :param native_function_decl_gen: callable to generate kernel declaration for each `NativeFunction`. + :return: a list of string, from the string with all declarations, grouped by namespaces, split by newline. + """ + + ns_grouped_kernels = get_ns_grouped_kernels( + grouped_native_functions=grouped_native_functions, + backend_indices=backend_indices, + native_function_decl_gen=native_function_decl_gen, + ) + return get_native_function_declarations_from_ns_grouped_kernels( + ns_grouped_kernels=ns_grouped_kernels + ) + + +def get_kernel_namespace( + *, f: Union[NativeFunction, NativeFunctionsGroup], backend_idx: BackendIndex +) -> str: + backend_metadata = backend_idx.get_kernel(f) + assert not backend_metadata or "::native" in backend_metadata.cpp_namespace, ( + f"The kernel for function {f.func.name if isinstance(f, NativeFunction) else f.functional.func.name} " + f"with dispatch key {backend_idx.dispatch_key}" + f" has a namespace {backend_metadata.cpp_namespace} and it's not ending with '::native'." + ) + return ( + backend_metadata.cpp_namespace if backend_metadata else DEFAULT_KERNEL_NAMESPACE + ) + + +# Return native function definitions grouped by dispatch key and custom namespace. +# Used in RegisterDispatchKey.cpp and etc. +def get_native_function_definitions( + *, + fm: FileManager, + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + dispatch_key: DispatchKey, + backend_idx: BackendIndex, + selector: SelectiveBuilder, + rocm: bool, + symint: bool, + skip_dispatcher_op_registration: bool, + gen_dispatch_helpers: bool, +) -> List[str]: + definitions: List[str] = [] + ns_definitions: Dict[str, List[str]] = defaultdict(list) + anonymous_definitions: Dict[str, List[str]] = defaultdict(list) + registrations: Dict[str, Dict[str, List[str]]] = defaultdict(dict) + newline = "\n" + ns_gen = dest.RegisterDispatchKey( + backend_idx, + Target.NAMESPACED_DEFINITION, + selector, + rocm=rocm, + symint=symint, + class_method_name=None, + skip_dispatcher_op_registration=skip_dispatcher_op_registration, + ) + anonymous_gen = dest.RegisterDispatchKey( + backend_idx, + Target.ANONYMOUS_DEFINITION, + selector, + rocm=rocm, + symint=symint, + class_method_name=None, + skip_dispatcher_op_registration=skip_dispatcher_op_registration, + ) + reg_gen = dest.RegisterDispatchKey( + backend_idx, + Target.REGISTRATION, + selector, + rocm=rocm, + symint=symint, + class_method_name=None, + skip_dispatcher_op_registration=skip_dispatcher_op_registration, + ) + for f in grouped_native_functions: + kernel_namespace = get_kernel_namespace(f=f, backend_idx=backend_idx).replace( + "::native", "" + ) + + ns_definitions[kernel_namespace].extend( + ns_gen(f), + ) + anonymous_definitions[kernel_namespace].extend( + anonymous_gen(f), + ) + namespace = ( + f.namespace if isinstance(f, NativeFunction) else f.functional.namespace + ) + if namespace not in registrations[kernel_namespace]: + registrations[kernel_namespace] = defaultdict(list) + registrations[kernel_namespace][namespace].extend( + reg_gen(f), + ) + + for kernel_namespace in ns_definitions: + if len(ns_definitions[kernel_namespace]) == 0: + continue + ns_helper = NamespaceHelper(namespace_str=kernel_namespace) + registration_body = "" + for namespace in registrations[kernel_namespace]: + if not registrations[kernel_namespace][namespace]: + continue + registration_body += f""" +TORCH_LIBRARY_IMPL({namespace}, {dispatch_key}, m) {{ + {newline.join(registrations[kernel_namespace][namespace])} +}};""" + definitions.extend( + fm.substitute_with_template( + "RegisterDispatchDefinitions.ini", + lambda: { + "ns_prologue": ns_helper.prologue, + "ns_epilogue": ns_helper.epilogue, + "dispatch_helpers": dest.gen_registration_helpers(backend_idx) + if gen_dispatch_helpers + else [], + "dispatch_anonymous_definitions": anonymous_definitions[ + kernel_namespace + ], + "static_init_dispatch_registrations": "" + if skip_dispatcher_op_registration + else registration_body, + "deferred_dispatch_registrations": "", + "dispatch_namespace": dispatch_key.lower(), + "dispatch_namespaced_definitions": ns_definitions[kernel_namespace], + }, + ).split(newline) + ) + + return definitions + + +# Return native function declarations grouped by dispatch key and custom namespace. +# Used in CPUFunctions_inl.h and etc. +def get_namespaced_declaration( + *, + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + dispatch_key: DispatchKey, + backend_idx: BackendIndex, + selector: SelectiveBuilder, + rocm: bool, + symint: bool, +) -> List[str]: + declarations: List[str] = [] + ns_grouped_kernels: Dict[str, List[str]] = defaultdict(list) + newline = "\n" + func = dest.RegisterDispatchKey( + backend_idx, + Target.NAMESPACED_DECLARATION, + selector, + rocm=rocm, + class_method_name=None, + skip_dispatcher_op_registration=False, + symint=symint, + ) + for f in grouped_native_functions: + namespace = get_kernel_namespace(f=f, backend_idx=backend_idx).replace( + "native", dispatch_key.lower() + ) + + ns_grouped_kernels[namespace].extend( + func(f), + ) + + for namespace, kernels in ns_grouped_kernels.items(): + if len(kernels) == 0: + continue + ns_helper = NamespaceHelper( + namespace_str=namespace, entity_name="", max_level=3 + ) + ordered_kernels = list(OrderedDict.fromkeys(kernels)) + declarations.extend( + f""" +{ns_helper.prologue} +{newline.join(ordered_kernels)} +{ns_helper.epilogue} + """.split( + newline + ) + ) + return declarations + + +# Return native function schema registration code for aten and other namespaces. +def get_native_function_schema_registrations( + *, + native_functions: Sequence[NativeFunction], + schema_selector: SelectiveBuilder, +) -> Tuple[List[str], str]: + ns_native_functions: Dict[str, List[NativeFunction]] = defaultdict(list) + for native_function in native_functions: + ns_native_functions[native_function.namespace].append(native_function) + schema_registrations = "" + aten_schema_registrations = [] + custom_namespace = None + for namespace, funcs in ns_native_functions.items(): + schema_registrations_body = list( + mapMaybe(RegisterSchema(schema_selector), funcs) + ) + # NB: we have to separate aten namespace registration from other namespaces, + # because in the template we hardcoded an operator for ATen already. + if namespace == "aten": + aten_schema_registrations = schema_registrations_body + else: + custom_namespace = namespace + tab = "\t" + # if the namespace is predefined, we should use define a library fragment + # instead of a new library + torch_library_macro = ( + "TORCH_LIBRARY_FRAGMENT" + if namespace in FRAGMENT_NAMESPACES + else "TORCH_LIBRARY" + ) + schema_registrations += f""" +{torch_library_macro}({custom_namespace}, m) {{ + {tab.join(schema_registrations_body)} +}};""" + return (aten_schema_registrations, schema_registrations) + + +def gen_aggregated_headers( + *, + native_functions: Sequence[NativeFunction], + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + structured_native_functions: Sequence[NativeFunctionsGroup], + static_dispatch_idx: List[BackendIndex], + selector: SelectiveBuilder, + backend_indices: Dict[DispatchKey, BackendIndex], + cpu_fm: FileManager, + cuda_fm: FileManager, + functions_keys: Set[DispatchKey], + dispatch_keys: Sequence[DispatchKey], + rocm: bool, +) -> None: + # Buck doesn't support dynamic output files, so we aggregate all operator + # headers into a single file + cpu_fm.write( + "NativeMetaFunctions.h", + lambda: { + "NativeMetaFunctions_includes": [], + "NativeMetaFunctions_declarations": list( + mapMaybe(compute_meta_function_declaration, structured_native_functions) + ), + }, + ) + method_native_functions = [ + fn for fn in native_functions if Variant.method in fn.variants + ] + non_method_native_functions = [ + fn for fn in native_functions if fn not in method_native_functions + ] + cpu_fm.write( + "MethodOperators.h", + lambda: { + "MethodOperators_includes": [], + "MethodOperators_declarations": list( + mapMaybe( + ComputeOperators( + Target.DECLARATION, + static_dispatch_backend_indices=static_dispatch_idx, + ), + method_native_functions, + ) + ), + }, + ) + cpu_fm.write( + "Operators.h", + lambda: { + "Operators_includes": ["#include "], + "Operators_declarations": list( + mapMaybe( + ComputeOperators( + Target.DECLARATION, + static_dispatch_backend_indices=static_dispatch_idx, + ), + non_method_native_functions, + ) + ), + }, + ) + cpu_fm.write( + "Functions.h", + lambda: { + "static_dispatch_extra_headers": static_dispatch_extra_headers( + static_dispatch_idx + ), + "Functions_includes": ["#include "], + "Functions_declarations": list( + mapMaybe( + ComputeFunction(), + native_functions, + ) + ), + }, + ) + declarations = get_native_function_declarations( + grouped_native_functions=grouped_native_functions, + backend_indices=backend_indices, + ) + cpu_fm.write( + "NativeFunctions.h", + lambda: { + "NativeFunctions_includes": ["#include "], + "NativeFunctions_declarations": declarations, + }, + ) + + for dispatch_key in dispatch_keys: + fm = cuda_fm if is_cuda_dispatch_key(dispatch_key) else cpu_fm + if dispatch_key in functions_keys: + inl_headers = f"#include " + + fm.write_with_template( + f"{dispatch_key}Functions.h", + "DispatchKeyFunctions.h", + lambda: { + "dispatch_key": str(dispatch_key), + "inline_headers": inl_headers, + }, + ) + fm.write_with_template( + f"{dispatch_key}Functions_inl.h", + "DispatchKeyFunctions_inl.h", + lambda: { + "DispatchKeyFunctions_inl_includes": [], + "dispatch_namespace": dispatch_key.lower(), + "dispatch_namespaced_declarations": get_namespaced_declaration( + grouped_native_functions=grouped_native_functions, + dispatch_key=dispatch_key, + backend_idx=backend_indices[dispatch_key], + selector=selector, + rocm=rocm, + symint=True, + ), + }, + ) + + del fm + + +def gen_per_operator_headers( + *, + native_functions: Sequence[NativeFunction], + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + static_dispatch_idx: List[BackendIndex], + selector: SelectiveBuilder, + backend_indices: Dict[DispatchKey, BackendIndex], + cpu_fm: FileManager, + cuda_fm: FileManager, + ops_fm: FileManager, + functions_keys: Set[DispatchKey], + dispatch_keys: Sequence[DispatchKey], + rocm: bool, +) -> None: + # For CMake builds, split operator declarations into separate headers in + # the ATen/ops folder to split up header dependencies + functions_by_root_name: Dict[str, List[NativeFunction]] = defaultdict(list) + for fn in native_functions: + functions_by_root_name[fn.root_name].append(fn) + + grouped_functions_by_root_name: Dict[ + str, List[Union[NativeFunction, NativeFunctionsGroup]] + ] = defaultdict(list) + for group in grouped_native_functions: + name = group.root_name + grouped_functions_by_root_name[name].append(group) + + for name, functions in functions_by_root_name.items(): + ops_fm.write_with_template( + f"{name}_ops.h", + "Operator.h", + lambda: { + "declarations": list( + mapMaybe( + ComputeOperators( + Target.DECLARATION, + static_dispatch_backend_indices=static_dispatch_idx, + ), + functions, + ) + ), + }, + ) + + ops_fm.write_with_template( + f"{name}.h", + "Function.h", + lambda: { + "static_dispatch_ops_headers": list( + mapMaybe( + lambda fn: static_dispatch_ops_header( + fn, backend_index=static_dispatch_idx + ), + functions, + ) + ), + "operator_includes": f"#include ", + "function_definitions": list( + mapMaybe( + ComputeFunction(), + functions, + ) + ), + }, + ) + + grouped_functions = grouped_functions_by_root_name.get(name, []) + structured_functions = [ + fn + for fn in grouped_functions + if isinstance(fn, NativeFunctionsGroup) and fn.structured + ] + is_structured = len(structured_functions) > 0 + + if is_structured: + ops_fm.write_with_template( + f"{name}_meta.h", + "NativeMetaFunction.h", + lambda: { + "meta_function_declarations": list( + mapMaybe( + compute_meta_function_declaration, structured_functions + ) + ), + }, + ) + declarations = get_native_function_declarations( + grouped_native_functions=grouped_functions, + backend_indices=backend_indices, + native_function_decl_gen=dest.compute_native_function_declaration, + ) + ops_fm.write_with_template( + f"{name}_native.h", + "NativeFunction.h", + lambda: { + "extra_includes": ( + f"#include " if is_structured else [] + ), + "native_function_declarations": declarations, + }, + ) + + for category, suffix in [ + ("Functions", ""), + ("Operators", "_ops"), + ("NativeMetaFunctions", "_meta"), + ("NativeFunctions", "_native"), + ]: + cpu_fm.write( + f"{category}.h", + lambda: { + f"{category}_includes": [ + f"#include " + for name in sorted(functions_by_root_name.keys()) + ], + f"{category}_declarations": [], + }, + ) + + for dispatch_key in dispatch_keys: + if dispatch_key not in functions_keys: + continue + + dispatch_namespace = dispatch_key.lower() + dispatch_names = [] + + for name, functions in functions_by_root_name.items(): + grouped_functions = grouped_functions_by_root_name.get(name, []) + declarations = list( + concatMap( + dest.RegisterDispatchKey( + backend_indices[dispatch_key], + Target.NAMESPACED_DECLARATION, + selector, + rocm=rocm, + symint=True, + class_method_name=None, + skip_dispatcher_op_registration=False, + ), + grouped_functions, + ) + ) + + if len(declarations) == 0: + continue + + dispatch_names.append(name) + ops_fm.write_with_template( + f"{name}_{dispatch_namespace}_dispatch.h", + "DispatchKeyFunction.h", + lambda: { + "dispatch_namespace": dispatch_namespace, + "dispatch_namespaced_declarations": declarations, + }, + ) + + fm = cuda_fm if is_cuda_dispatch_key(dispatch_key) else cpu_fm + inl_headers = f"#include " + + fm.write_with_template( + f"{dispatch_key}Functions.h", + "DispatchKeyFunctions.h", + lambda: { + "dispatch_key": str(dispatch_key), + "inline_headers": inl_headers, + }, + ) + fm.write_with_template( + f"{dispatch_key}Functions_inl.h", + "DispatchKeyFunctions_inl.h", + lambda: { + "dispatch_namespace": dispatch_namespace, + "DispatchKeyFunctions_inl_includes": [ + f"#include " + for name in sorted(dispatch_names) + ], + "dispatch_namespaced_declarations": [], + }, + ) + del fm + + cpu_fm.write( + "MethodOperators.h", + lambda: { + "MethodOperators_includes": sorted( + f"#include " + for name, functions in functions_by_root_name.items() + if any(Variant.method in fn.variants for fn in functions) + ), + "MethodOperators_declarations": [], + }, + ) + + +def gen_headers( + *, + native_functions: Sequence[NativeFunction], + valid_tags: Set[str], + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + structured_native_functions: Sequence[NativeFunctionsGroup], + static_dispatch_idx: List[BackendIndex], + selector: SelectiveBuilder, + backend_indices: Dict[DispatchKey, BackendIndex], + core_fm: FileManager, + cpu_fm: FileManager, + cuda_fm: FileManager, + ops_fm: FileManager, + dispatch_keys: Sequence[DispatchKey], + functions_keys: Set[DispatchKey], + rocm: bool, + per_operator_headers: bool, +) -> None: + if per_operator_headers: + gen_per_operator_headers( + native_functions=native_functions, + grouped_native_functions=grouped_native_functions, + static_dispatch_idx=static_dispatch_idx, + selector=selector, + backend_indices=backend_indices, + cpu_fm=cpu_fm, + cuda_fm=cuda_fm, + ops_fm=ops_fm, + dispatch_keys=dispatch_keys, + functions_keys=functions_keys, + rocm=rocm, + ) + else: + gen_aggregated_headers( + native_functions=native_functions, + grouped_native_functions=grouped_native_functions, + structured_native_functions=structured_native_functions, + static_dispatch_idx=static_dispatch_idx, + selector=selector, + backend_indices=backend_indices, + cpu_fm=cpu_fm, + cuda_fm=cuda_fm, + dispatch_keys=dispatch_keys, + functions_keys=functions_keys, + rocm=rocm, + ) + + core_fm.write( + "TensorBody.h", + lambda: { + "tensor_method_declarations": list( + mapMaybe( + ComputeTensorMethod( + target=Target.DECLARATION, + static_dispatch_backend_indices=static_dispatch_idx, + ), + native_functions, + ) + ), + "tensor_method_definitions": list( + mapMaybe( + ComputeTensorMethod( + target=Target.DEFINITION, + static_dispatch_backend_indices=static_dispatch_idx, + ), + native_functions, + ) + ), + }, + ) + + cpu_fm.write( + "RedispatchFunctions.h", + lambda: { + "function_redispatch_definitions": list( + mapMaybe(ComputeRedispatchFunction(), native_functions) + ), + }, + ) + + cpu_fm.write( + "RegistrationDeclarations.h", + lambda: { + "registration_declarations": [ + compute_registration_declarations(f, backend_indices) + for f in native_functions + ], + }, + ) + + cpu_fm.write( + "VmapGeneratedPlumbing.h", lambda: gen_all_vmap_plumbing(native_functions) + ) + + def gen_aten_interned_strings() -> Dict[str, str]: + attrs = set() # All function argument names + names = set() # All ATen function names + for func in native_functions: + names.add(str(func.func.name.name)) + # Some operators don't have a functional variant but we still create a + # symbol without the underscore + names.add(func.func.name.name.base) + + for arg in func.func.schema_order_arguments(): + attrs.add(arg.name) + + # These are keywords in C++, so aren't valid symbol names + # https://en.cppreference.com/w/cpp/language/operator_alternative + names -= { + "and", + "and_eq", + "bitand", + "bitor", + "compl", + "not", + "not_eq", + "or", + "or_eq", + "xor", + "xor_eq", + } + + return { + "aten_symbols": " \\\n".join( + [f"_(aten, {name})" for name in sorted(names)] + ), + "attr_symbols": " \\\n".join( + [f"_(attr, {name})" for name in sorted(attrs)] + ), + } + + core_fm.write("aten_interned_strings.h", gen_aten_interned_strings) + + def gen_tags_enum() -> Dict[str, str]: + return {"enum_of_valid_tags": (",\n".join(sorted(valid_tags)))} + + core_fm.write("enum_tag.h", gen_tags_enum) + + +def gen_source_files( + *, + native_functions: Sequence[NativeFunction], + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], + structured_native_functions: Sequence[NativeFunctionsGroup], + view_groups: Sequence[NativeFunctionsViewGroup], + selector: SelectiveBuilder, + static_dispatch_idx: List[BackendIndex], + backend_indices: Dict[DispatchKey, BackendIndex], + aoti_fm: FileManager, + core_fm: FileManager, + cpu_fm: FileManager, + cpu_vec_fm: FileManager, + cuda_fm: FileManager, + dispatch_keys: Sequence[DispatchKey], + functions_keys: Set[DispatchKey], + rocm: bool, + force_schema_registration: bool, + per_operator_headers: bool, + skip_dispatcher_op_registration: bool, +) -> None: + extra_cuda_headers = """\ +#include +#include +#include +#include """ + if rocm: + extra_cuda_headers = """\ +#include +#include +#include +#include """ + + for dispatch_key in dispatch_keys: + fm = cuda_fm if is_cuda_dispatch_key(dispatch_key) else cpu_fm + + if per_operator_headers: + + def operator_headers() -> List[str]: + headers = [] + for g in grouped_native_functions: + is_registered = False + if backend_index.has_kernel(g): + is_registered = True + # The above has_kernel test on a group will only test for + # the existence of out dispatch, because that's how + # structured kernels work. But sometimes functions can be + # grouped but not be structured, and then you need to check + # each individual piece, as they may have manual dispatch + # entries. + elif isinstance(g, NativeFunctionsGroup) and any( + backend_index.has_kernel(fn) for fn in g.functions() + ): + is_registered = True + # TODO: this condition is a bit questionable + # (It has to do with the fact that structured kernels get generated kernels + # to the Meta + CompositeExplicitAutogradNonFunctional keys). + elif g.structured and dispatch_key in ( + DispatchKey.Meta, + DispatchKey.CompositeExplicitAutogradNonFunctional, + ): + is_registered = True + if not is_registered: + continue + + headers.append(f"#include ") + if ( + dispatch_key + == DispatchKey.CompositeExplicitAutogradNonFunctional + ): + headers.append(f"#include ") + if dispatch_key in functions_keys: + headers.append( + f"#include " + ) + + return sorted(set(headers)) + + else: + + def operator_headers() -> List[str]: + headers = ["#include "] + if dispatch_key == DispatchKey.CompositeExplicitAutogradNonFunctional: + headers.append("#include ") + if dispatch_key in functions_keys: + headers.append(f"#include ") + return headers + + backend_index = backend_indices[dispatch_key] + ns_grouped_native_functions = defaultdict(list) + for grouped_native_function in grouped_native_functions: + namespace = ( + grouped_native_function.namespace + if isinstance(grouped_native_function, NativeFunction) + else grouped_native_function.functional.namespace + ) + ns_grouped_native_functions[namespace].append(grouped_native_function) + + dispatch_namespace = str(dispatch_key).lower() + + # CompositeImplicitAutogradNestdTensor does not currently user the helpers generated + # compilation will fail when `-Werror=unused-function` flag is set + gen_dispatch_helpers: bool = ( + dispatch_key != DispatchKey.CompositeImplicitAutogradNestedTensor + ) + + dispatch_definitions = get_native_function_definitions( + fm=fm, + grouped_native_functions=grouped_native_functions, + dispatch_key=dispatch_key, + backend_idx=backend_index, + selector=selector, + rocm=rocm, + symint=True, + skip_dispatcher_op_registration=skip_dispatcher_op_registration, + gen_dispatch_helpers=gen_dispatch_helpers, + ) + fm.write_with_template( + f"Register{dispatch_key}.cpp", + "RegisterDispatchKey.cpp", + lambda: { + "extra_cuda_headers": extra_cuda_headers + if is_cuda_dispatch_key(dispatch_key) + else "", + "external_backend_headers": "", + "dispatch_headers": dest.gen_registration_headers( + backend_index, per_operator_headers, rocm + ), + "ops_headers": operator_headers(), + "dispatch_helpers": "", + "dispatch_definitions": dispatch_definitions, + }, + ) + + for g in structured_native_functions: + if not g.out.ufunc_inner_loop or not is_ufunc_dispatch_key(dispatch_key): + continue + name = g.functional.func.name.name + if dispatch_key is DispatchKey.CPU: + assert fm is cpu_fm + fm.write_with_template( + f"UfuncCPU_{name}.cpp", + "UfuncCPU.cpp", + lambda: { + "meta_declaration": compute_meta_function_declaration(g), + "native_declaration": dest.compute_native_function_declaration( + g, backend_indices[dispatch_key] + ), + "native_definitions": dest.compute_ufunc_cpu(g), + }, + ) + cpu_vec_fm.write_with_template( + f"UfuncCPUKernel_{name}.cpp", + "UfuncCPUKernel.cpp", + lambda: { + "name": name, + "native_definitions": dest.compute_ufunc_cpu_kernel(g), + }, + ) + elif dispatch_key is DispatchKey.CUDA: + cuda_headers = "#include " + if rocm: + cuda_headers = "#include " + fm.write_with_template( + f"UfuncCUDA_{name}.cu", + "UfuncCUDA.cu", + lambda: { + "name": name, + "cuda_headers": cuda_headers, + "meta_declaration": compute_meta_function_declaration(g), + "native_declaration": dest.compute_native_function_declaration( + g, backend_indices[dispatch_key] + ), + "native_definitions": dest.compute_ufunc_cuda(g), + }, + ) + else: + raise AssertionError(f"unrecognized {dispatch_key} for ufunc") + + if dispatch_key in (DispatchKey.CPU, DispatchKey.CUDA): + + def get_header( + f: NativeFunction, + ) -> Optional[str]: + backend_index = get_backend_index_for_aoti( + f, dispatch_key, backend_indices + ) + return ( + None + if backend_index is None + else f"#include " + ) + + def headers_for_aoti() -> str: + headers = [] + for g in grouped_native_functions: + if isinstance(g, NativeFunctionsGroup): + for f in g.functions(): + # some variants are registered in the backend, but some are registered as CompositeExplicitAutograd + header = get_header(f) + if header is not None: + headers.append(header) + else: + header = get_header(g) + if header is not None: + headers.append(header) + return "\n".join(sorted(set(headers))) + + extra_headers = ( + extra_cuda_headers if is_cuda_dispatch_key(dispatch_key) else "" + ) + + aoti_fm.write( + f"c_shim_{dispatch_key.lower()}.h", + lambda: gen_aoti_c_shim( + native_functions, + dispatch_key, + backend_indices, + header=True, + includes="", + ), + ) + aoti_fm.write( + f"c_shim_{dispatch_key.lower()}.cpp", + lambda: gen_aoti_c_shim( + native_functions, + dispatch_key, + backend_indices, + header=False, + includes=headers_for_aoti() + "\n" + extra_headers, + ), + ) + + del fm + + # BackendSelect is generated specially + def gen_backend_select() -> Dict[str, List[str]]: + relevant_fns = [ + fn for fn in native_functions if needs_backend_select(fn, selector) + ] + return { + "ops_headers": [ + f"#include " for fn in relevant_fns + ], + "backend_select_method_definitions": list( + mapMaybe( + ComputeBackendSelect(Target.DEFINITION, selector), relevant_fns + ) + ), + "backend_select_function_registrations": list( + mapMaybe( + ComputeBackendSelect(Target.REGISTRATION, selector), relevant_fns + ) + ), + } + + cpu_fm.write("RegisterBackendSelect.cpp", gen_backend_select) + + schema_selector = selector + if force_schema_registration: + schema_selector = SelectiveBuilder.get_nop_selector() + + ( + aten_schema_registrations, + schema_registrations, + ) = get_native_function_schema_registrations( + native_functions=native_functions, schema_selector=schema_selector + ) + cpu_fm.write( + "RegisterSchema.cpp", + lambda: { + "aten_schema_registrations": [] + if skip_dispatcher_op_registration + else aten_schema_registrations, + "schema_registrations": [] + if skip_dispatcher_op_registration + else schema_registrations, + }, + ) + + def key_func( + fn: Union[NativeFunction, NativeFunctionsGroup, NativeFunctionsViewGroup] + ) -> str: + return fn.root_name + + cpu_fm.write_sharded( + "Operators.cpp", + native_functions, + key_fn=key_func, + env_callable=lambda fn: { + "operator_headers": [f"#include "], + "definitions": [ + ComputeOperators( + Target.DEFINITION, + static_dispatch_backend_indices=static_dispatch_idx, + )(fn) + ], + }, + base_env={ + "static_dispatch_extra_headers": static_dispatch_extra_headers( + static_dispatch_idx + ), + }, + num_shards=5, + sharded_keys={ + "operator_headers", + "definitions", + "static_dispatch_extra_headers", + }, + ) + + cpu_fm.write("Functions.cpp", dict) + + core_fm.write("TensorMethods.cpp", dict) + + core_fm.write( + "ATenOpList.cpp", + lambda: { + "aten_ops": list(mapMaybe(compute_aten_op, native_functions)), + }, + ) + + def functionalization_env_callable( + g: Union[NativeFunction, NativeFunctionsGroup, NativeFunctionsViewGroup] + ) -> Dict[str, List[str]]: + def gen_op_headers( + g: Union[NativeFunction, NativeFunctionsGroup, NativeFunctionsViewGroup] + ) -> List[str]: + if isinstance(g, NativeFunctionsViewGroup): + # view ops always get a functionalization kernel + headers = [ + f"#include ", + f"#include ", + ] + if g.view_copy is not None: + headers += [ + f"#include ", + f"#include ", + ] + return headers + elif isinstance(g, NativeFunctionsGroup): + headers = [ + f"#include ", + f"#include ", + f"#include ", + f"#include ", + ] + if g.inplace is not None: + headers += [ + f"#include ", + f"#include ", + ] + if g.mutable is not None: + headers += [ + f"#include ", + f"#include ", + ] + return headers + else: + return [ + f"#include ", + f"#include ", + ] + + return { + "ops_headers": gen_op_headers(g), + "func_definitions": gen_functionalization_definition( + selector, + g, + ), + "func_registrations": gen_functionalization_registration( + selector, + g, + backend_indices[DispatchKey.CompositeImplicitAutograd], + ), + } + + all_groups: List[ + Union[NativeFunction, NativeFunctionsGroup, NativeFunctionsViewGroup] + ] = list(structured_native_functions) + list( + view_groups # type: ignore[assignment, arg-type, operator] + ) + # Note: all operators that functionalization needs to handle (mutable and aliasing ops) should be grouped properly. + # The only reason we really need to deal with direct NativeFunctions here (instead of the groups) is because: + # (1) We can provide better error checking (error out if someone introduces a mutable op that doesn't obey the grouping logic) + # (2) functionalization needs to manually register CompositeImplicitAutograd kernels, which might not be grouped. + # Although this could go away long-term if we add a dedicated dispatch key for decompositions. + structured_map: Dict[OperatorName, NativeFunction] = { + f.func.name: f + for f in concatMap(lambda g: list(g.functions()), structured_native_functions) + } + view_map: Dict[OperatorName, NativeFunction] = { + f.func.name: f for f in concatMap(lambda g: list(g.functions()), view_groups) + } + for f in native_functions: + if f.func.name not in structured_map and f.func.name not in view_map: + all_groups.append(f) + + cpu_fm.write_sharded( + "RegisterFunctionalization.cpp", + all_groups, + key_fn=key_func, + env_callable=functionalization_env_callable, + num_shards=4, + sharded_keys={ + "ops_headers", + "func_definitions", + "func_registrations", + "func_add_back_views_definitions", + "func_add_back_views_registrations", + }, + ) + + cpu_fm.write( + "FunctionalInverses.h", + lambda: { + "view_inverse_declarations": list( + mapMaybe( + lambda g: gen_functionalization_view_inverse_declaration( + selector, g + ), + view_groups, + ) + ) + }, + ) + + # Note [view_copy NativeFunctions] + # Every view operator in native_functions.yaml that is not CompositeImplicitAutograd + # needs to have a corresponding non-aliasing {view}_copy variant. + # Backends that use functionalization and don't know how to handle aliasing ops + # are expected to implement kernels for these {view}_copy kernels instead. + # The code for {view}_copy operators in core is pretty boilerplate-heavy however, + # so we codegen the following: + # (1) A CompositeExplicitAutogradNonFunctional kernel for every {view}_copy operator. + # These are never explicitly invoked by the functionalization pass, + # but they could theoretically be called from user code (I added these kernels for completeness, + # since the ops are part of the public API). + # (2) A derivative formula for every {view}_copy operator + # {view}_copy operators can re-use the same derivative formulas as their {view} op counterparts, + # so rather than stamping all of the entries out in derivatives.yaml, + # we codegen them in. + # This is similar to how autograd codegen doesn't require inplace ops to have a derivatives.yaml entry. + cpu_fm.write( + "CompositeViewCopyKernels.cpp", + lambda: { + "ops_headers": [ + "\n".join( + f"#include \n" + # NB: this include is important as it ensures we + # set the visibility on generated view_copy kernels + # correctly + f"#include " + for f in ( + [g.view] if g.view_copy is None else [g.view, g.view_copy] + ) + ) + for g in view_groups + ] + + [ + "\n".join( + f"#include " + for f in [g.inplace, g.mutable, g.functional] + if f is not None and "generated" not in f.tags + ) + for g in structured_native_functions + ], + "CompositeViewCopyKernel_Definitions": list( + mapMaybe( + GenCompositeViewCopyKernel( + backend_indices[ + DispatchKey.CompositeExplicitAutogradNonFunctional + ] + ), + view_groups, + ) + ), + "GeneratedCompositeFunctional_Definitions": list( + mapMaybe( + gen_composite_functional_kernel, + structured_native_functions, + ) + ), + "GeneratedCompositeOut_Definitions": list( + mapMaybe( + gen_composite_out_kernel, + structured_native_functions, + ) + ), + }, + ) + + +def gen_declarations_yaml( + cpu_fm: FileManager, native_functions: Sequence[NativeFunction] +) -> None: + cpu_fm.write( + "Declarations.yaml", + lambda: format_yaml([compute_declaration_yaml(f) for f in native_functions]), + ) + + +def get_torchgen_root() -> pathlib.Path: + """ + If you're depending on torchgen out-of-tree, you can use the root to figure + out the path to native_functions.yaml + """ + return pathlib.Path(__file__).parent.resolve() + + +def main() -> None: + parser = argparse.ArgumentParser(description="Generate ATen source files") + parser.add_argument( + "-s", + "--source-path", + help="path to source directory for ATen", + default="aten/src/ATen", + ) + parser.add_argument( + "-o", + "--output-dependencies", + help="output a list of dependencies into the given file and exit", + ) + parser.add_argument( + "--dry-run", + action="store_true", + help="run without writing any files (still updates outputs)", + ) + parser.add_argument( + "--per-operator-headers", + action="store_true", + help="generate separate headers per operator in ATen/ops", + ) + parser.add_argument( + "-d", + "--install-dir", + "--install_dir", + help="output directory", + default="build/aten/src/ATen", + ) + parser.add_argument( + "--rocm", + action="store_true", + help="reinterpret CUDA as ROCm/HIP and adjust filepaths accordingly", + ) + parser.add_argument( + "--mps", + action="store_true", + help="Generate MPS registration code when set", + ) + # TODO: --op-registration-whitelist will be removed when all call-sites + # for gen.py are moved over to using the operator YAML file for mobile + # custom build. + parser.add_argument( + "--op-registration-whitelist", + "--op_registration_whitelist", + nargs="*", + help="filter op registrations by the whitelist (if set); " + "each item is `namespace`::`operator name` without overload name; " + "e.g.: aten::empty aten::conv2d ...", + ) + parser.add_argument( + "--op-selection-yaml-path", + "--op_selection_yaml_path", + help="Provide a path to the operator selection (for custom build) YAML " + "that contains the information about the set of selected operators " + "and their categories (training, ...). Each operator is either a " + "full operator name with overload or just a bare operator name. " + "The operator names also contain the namespace prefix (e.g. aten::)", + ) + parser.add_argument( + "--backend-whitelist", + "--backend_whitelist", + nargs="*", + help="filter dispatch backend by the whitelist (if set), " + "e.g.: CPU CUDA QuantizedCPU ...", + ) + parser.add_argument( + "--static-dispatch-backend", + "--static_dispatch_backend", + nargs="*", + help="generate static dispatch code for the specific backend (if set)", + ) + parser.add_argument( + "--skip-dispatcher-op-registration", + "--skip_dispatcher_op_registration", + action="store_true", + help="Avoid registering operators into the dispatcher.", + ) + parser.add_argument( + "--force-schema-registration", + "--force_schema_registration", + action="store_true", + help="force it to generate schema-only registrations for all ops, including" + "those that are not listed on --op-registration-whitelist", + ) + parser.add_argument( + "--generate", + type=str, + nargs="*", + choices=["headers", "sources", "declarations_yaml"], + default=["headers", "sources", "declarations_yaml"], + help="Generate only a subset of files", + ) + + options = parser.parse_args() + + selector = get_custom_build_selector( + options.op_registration_whitelist, + options.op_selection_yaml_path, + ) + + native_yaml_path = os.path.join(options.source_path, "native/native_functions.yaml") + tags_yaml_path = os.path.join(options.source_path, "native/tags.yaml") + + from torchgen.model import dispatch_keys + + # TODO: stop generating CUDA kernels for non-CUDA builds + ignore_keys = set() + if not options.mps: + ignore_keys.add(DispatchKey.MPS) + + if DispatchKey.MPS in dispatch_keys: + del dispatch_keys[dispatch_keys.index(DispatchKey.MPS)] + + parsed_yaml = parse_native_yaml(native_yaml_path, tags_yaml_path, ignore_keys) + valid_tags = _GLOBAL_PARSE_TAGS_YAML_CACHE[tags_yaml_path] + native_functions, backend_indices = ( + parsed_yaml.native_functions, + parsed_yaml.backend_indices, + ) + + grouped_native_functions = get_grouped_native_functions(native_functions) + + structured_native_functions = [ + g for g in grouped_native_functions if isinstance(g, NativeFunctionsGroup) + ] + native_functions_with_view_groups = get_grouped_by_view_native_functions( + native_functions + ) + view_groups = [ + g + for g in native_functions_with_view_groups + if isinstance(g, NativeFunctionsViewGroup) + ] + + # NB: It is mandatory to NOT use os.path.join here, as the install directory + # will eventually be ingested by cmake, which does not respect Windows style + # path slashes. If you switch this to use os.path.join, you'll get an error + # like: + # + # Syntax error in cmake code when parsing string + # + # C:/Jenkins/workspace/pytorch-builds/pytorch-win-ws2016-cuda9-cudnn7-py3-build/build/aten/src/ATen\core/TensorMethods.h + # + # Invalid character escape '\c'. + core_install_dir = f"{options.install_dir}/core" + pathlib.Path(core_install_dir).mkdir(parents=True, exist_ok=True) + ops_install_dir = f"{options.install_dir}/ops" + pathlib.Path(ops_install_dir).mkdir(parents=True, exist_ok=True) + + core_fm = make_file_manager(options=options, install_dir=core_install_dir) + cpu_fm = make_file_manager(options=options) + cpu_vec_fm = make_file_manager(options=options) + cuda_fm = make_file_manager(options=options) + ops_fm = make_file_manager(options=options, install_dir=ops_install_dir) + aoti_fm = make_file_manager( + options=options, install_dir="torch/csrc/inductor/aoti_torch/generated" + ) + + # Only a limited set of dispatch keys get CPUFunctions.h headers generated + # for them; this is the set + functions_keys = { + DispatchKey.CPU, + DispatchKey.CUDA, + DispatchKey.CompositeImplicitAutograd, + DispatchKey.CompositeImplicitAutogradNestedTensor, + DispatchKey.CompositeExplicitAutograd, + DispatchKey.CompositeExplicitAutogradNonFunctional, + DispatchKey.Meta, + } + if options.mps: + functions_keys.add(DispatchKey.MPS) + + if options.backend_whitelist: + dispatch_keys = [ + k + for k in dispatch_keys + if is_generic_dispatch_key(k) or str(k) in options.backend_whitelist + ] + + static_dispatch_idx: List[BackendIndex] = [] + if options.static_dispatch_backend: + static_dispatch_idx = [ + backend_indices[DispatchKey.parse(key)] + for key in options.static_dispatch_backend + ] + for key in options.static_dispatch_backend: + dp_key = DispatchKey.parse(key) + if dp_key not in functions_keys: + functions_keys.add(dp_key) + + if "sources" in options.generate: + gen_source_files( + native_functions=native_functions, + grouped_native_functions=grouped_native_functions, + structured_native_functions=structured_native_functions, + view_groups=view_groups, + selector=selector, + static_dispatch_idx=static_dispatch_idx, + backend_indices=backend_indices, + aoti_fm=aoti_fm, + core_fm=core_fm, + cpu_fm=cpu_fm, + cpu_vec_fm=cpu_vec_fm, + cuda_fm=cuda_fm, + dispatch_keys=dispatch_keys, + functions_keys=functions_keys, + rocm=options.rocm, + force_schema_registration=options.force_schema_registration, + per_operator_headers=options.per_operator_headers, + skip_dispatcher_op_registration=options.skip_dispatcher_op_registration, + ) + + if "headers" in options.generate: + gen_headers( + native_functions=native_functions, + valid_tags=valid_tags, + grouped_native_functions=grouped_native_functions, + structured_native_functions=structured_native_functions, + static_dispatch_idx=static_dispatch_idx, + selector=selector, + backend_indices=backend_indices, + core_fm=core_fm, + cpu_fm=cpu_fm, + cuda_fm=cuda_fm, + ops_fm=ops_fm, + dispatch_keys=dispatch_keys, + functions_keys=functions_keys, + rocm=options.rocm, + per_operator_headers=options.per_operator_headers, + ) + + if "declarations_yaml" in options.generate: + gen_declarations_yaml(native_functions=native_functions, cpu_fm=cpu_fm) + + if options.output_dependencies: + depfile_path = pathlib.Path(options.output_dependencies).resolve() + depfile_name = depfile_path.name + depfile_stem = depfile_path.stem + + for fm, prefix in [ + (cpu_fm, ""), + (cpu_vec_fm, "cpu_vec_"), + (core_fm, "core_"), + (cuda_fm, "cuda_"), + (ops_fm, "ops_"), + ]: + varname = prefix + depfile_stem + path = depfile_path.parent / (prefix + depfile_name) + fm.write_outputs(varname, str(path)) + + +if __name__ == "__main__": + main() diff --git a/shared/package-files/e9/e9bdc3d1580740558b05480e3a7c9324ce25f7aabcb2414d82e819541a715ad5/blob b/shared/package-files/e9/e9bdc3d1580740558b05480e3a7c9324ce25f7aabcb2414d82e819541a715ad5/blob new file mode 100644 index 0000000000000000000000000000000000000000..0942db257863563715e7b24a098ffcbb1a520bb4 --- /dev/null +++ b/shared/package-files/e9/e9bdc3d1580740558b05480e3a7c9324ce25f7aabcb2414d82e819541a715ad5/blob @@ -0,0 +1,125 @@ +""" +Test data from Lilliefors test for normality +An Analytic Approximation to the Distribution of Lilliefors's +Test Statistic for Normality +Author(s): Gerard E. Dallal and Leland WilkinsonSource: The American +Statistician, Vol. 40, No. 4 (Nov., 1986), pp. 294-296 +""" +import numpy as np +from numpy.testing import assert_allclose, assert_almost_equal + +from statsmodels.stats import tabledist +from statsmodels.stats.tabledist import TableDist + + +def test_tabledist(): + # for this test alpha is sf probability, i.e., right tail probability + alpha = np.array([0.2, 0.15, 0.1, 0.05, 0.01, 0.001])[::-1] + size = np.array([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 25, 30, 40, 100, 400, 900], float) + + # critical values, rows are by sample size, columns are by alpha + crit_lf = np.array([[303, 321, 346, 376, 413, 433], + [289, 303, 319, 343, 397, 439], + [269, 281, 297, 323, 371, 424], + [252, 264, 280, 304, 351, 402], + [239, 250, 265, 288, 333, 384], + [227, 238, 252, 274, 317, 365], + [217, 228, 241, 262, 304, 352], + [208, 218, 231, 251, 291, 338], + [200, 210, 222, 242, 281, 325], + [193, 202, 215, 234, 271, 314], + [187, 196, 208, 226, 262, 305], + [181, 190, 201, 219, 254, 296], + [176, 184, 195, 213, 247, 287], + [171, 179, 190, 207, 240, 279], + [167, 175, 185, 202, 234, 273], + [163, 170, 181, 197, 228, 266], + [159, 166, 176, 192, 223, 260], + [143, 150, 159, 173, 201, 236], + [131, 138, 146, 159, 185, 217], + [115, 120, 128, 139, 162, 189], + [74, 77, 82, 89, 104, 122], + [37, 39, 41, 45, 52, 61], + [25, 26, 28, 30, 35, 42]])[:, ::-1] / 1000. + + lf = TableDist(alpha, size, crit_lf) + + assert_almost_equal(lf.prob(0.166, 20), 0.15) + assert_almost_equal(lf.crit(0.15, 20), 0.166) + assert_almost_equal(lf.crit3(0.15, 20), 0.166) + + assert .159 <= lf.crit(0.17, 20) <= 166 + assert .159 <= lf.crit3(0.17, 20) <= .166 + + assert .159 <= lf.crit(0.19, 20) <= .166 + assert .159 <= lf.crit3(0.19, 20) <= .166 + + assert .159 <= lf.crit(0.199, 20) <= .166 + assert .159 <= lf.crit3(0.199, 20) <= .166 + + # testing + vals = [lf.prob(c, size[i]) for i in range(len(size)) for c in crit_lf[i]] + vals = np.array(vals).reshape(-1, lf.n_alpha) + delta = np.abs(vals) - lf.alpha + assert_allclose(delta, np.zeros_like(delta)) + + # 1.6653345369377348e-16 + vals = [lf.crit(c, size[i]) for i in range(len(size)) for c in lf.alpha] + vals = np.array(vals).reshape(-1, lf.n_alpha) + delta = np.abs(vals - crit_lf) + assert_allclose(delta, np.zeros_like(delta)) + + # 6.9388939039072284e-18) + print(np.max(np.abs(np.array( + [lf.crit3(c, size[i]) for i in range(len(size)) for c in + lf.alpha]).reshape(-1, lf.n_alpha) - crit_lf))) + # 4.0615705243496336e-12) + vals = [lf.crit3(c, size[i]) for i in range(len(size)) + for c in lf.alpha[:-1] * 1.1] + vals = np.array(vals).reshape(-1, lf.n_alpha - 1) + assert (vals < crit_lf[:, :-1]).all() + + vals = [lf.crit3(c, size[i]) for i in range(len(size)) for c in + lf.alpha[:-1] * 1.1] + vals = np.array(vals).reshape(-1, lf.n_alpha - 1) + assert (vals > crit_lf[:, 1:]).all() + + vals = [lf.prob(c * 0.9, size[i]) for i in range(len(size)) + for c in crit_lf[i, :-1]] + vals = np.array(vals).reshape(-1, lf.n_alpha - 1) + assert (vals > lf.alpha[:-1]).all() + + vals = [lf.prob(c * 1.1, size[i]) for i in range(len(size)) for c in + crit_lf[i, 1:]] + vals = np.array(vals).reshape(-1, lf.n_alpha - 1) + assert (vals < lf.alpha[1:]).all() + + # start at size_idx=2 because of non-monotonicity of lf_crit + vals = [lf.prob(c, size[i] * 0.9) for i in range(2, len(size)) + for c in crit_lf[i, :-1]] + vals = np.array(vals).reshape(-1, lf.n_alpha - 1) + assert (vals > lf.alpha[:-1]).all() + + +def test_no_interp2d(): + # GH#8909: scipy.interpolate.interp2d was removed in SciPy 1.14.0. Its only + # usage was the unused TableDist.poly2d method, which raised + # NotImplementedError when called. Ensure neither the removed dependency nor + # the dead method is referenced anymore, while the surviving interpolation + # methods still work. + assert not hasattr(tabledist, "interp2d") + assert "poly2d" not in vars(TableDist) + + alpha = np.array([0.2, 0.15, 0.1, 0.05, 0.01, 0.001])[::-1] + size = np.array([4, 5, 6, 7, 8, 9, 10], float) + crit = np.array([[303, 321, 346, 376, 413, 433], + [289, 303, 319, 343, 397, 439], + [269, 281, 297, 323, 371, 424], + [252, 264, 280, 304, 351, 402], + [239, 250, 265, 288, 333, 384], + [227, 238, 252, 274, 317, 365], + [217, 228, 241, 262, 304, 352]])[:, ::-1] / 1000. + lf = TableDist(alpha, size, crit) + assert_almost_equal(lf.crit(0.15, 5), lf.crit3(0.15, 5), decimal=3) + assert 0 < lf.prob(0.30, 5) < 1 diff --git a/shared/package-files/e9/e9bf393eedbc75c6cb01a08264759f851900539fbf27b94c595462f82e909cf7/blob b/shared/package-files/e9/e9bf393eedbc75c6cb01a08264759f851900539fbf27b94c595462f82e909cf7/blob new file mode 100644 index 0000000000000000000000000000000000000000..60f3ec25b381b25f8ec084220b246f5fc6ba0110 --- /dev/null +++ b/shared/package-files/e9/e9bf393eedbc75c6cb01a08264759f851900539fbf27b94c595462f82e909cf7/blob @@ -0,0 +1,74 @@ +# +# The Python Imaging Library +# $Id$ +# +# BUFR stub adapter +# +# Copyright (c) 1996-2003 by Fredrik Lundh +# +# See the README file for information on usage and redistribution. +# +from __future__ import annotations + +from . import Image, ImageFile + +_handler = None + + +def register_handler(handler): + """ + Install application-specific BUFR image handler. + + :param handler: Handler object. + """ + global _handler + _handler = handler + + +# -------------------------------------------------------------------- +# Image adapter + + +def _accept(prefix): + return prefix[:4] == b"BUFR" or prefix[:4] == b"ZCZC" + + +class BufrStubImageFile(ImageFile.StubImageFile): + format = "BUFR" + format_description = "BUFR" + + def _open(self): + offset = self.fp.tell() + + if not _accept(self.fp.read(4)): + msg = "Not a BUFR file" + raise SyntaxError(msg) + + self.fp.seek(offset) + + # make something up + self._mode = "F" + self._size = 1, 1 + + loader = self._load() + if loader: + loader.open(self) + + def _load(self): + return _handler + + +def _save(im, fp, filename): + if _handler is None or not hasattr(_handler, "save"): + msg = "BUFR save handler not installed" + raise OSError(msg) + _handler.save(im, fp, filename) + + +# -------------------------------------------------------------------- +# Registry + +Image.register_open(BufrStubImageFile.format, BufrStubImageFile, _accept) +Image.register_save(BufrStubImageFile.format, _save) + +Image.register_extension(BufrStubImageFile.format, ".bufr") diff --git a/shared/package-files/e9/e9c1df140d370267efbb0ce7a9f540fc05e88ef3e0d1882cb2466c325e5bd13d/blob b/shared/package-files/e9/e9c1df140d370267efbb0ce7a9f540fc05e88ef3e0d1882cb2466c325e5bd13d/blob new file mode 100644 index 0000000000000000000000000000000000000000..c9172f57b18e40848296f21ba2c319ac17340831 --- /dev/null +++ b/shared/package-files/e9/e9c1df140d370267efbb0ce7a9f540fc05e88ef3e0d1882cb2466c325e5bd13d/blob @@ -0,0 +1,30 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor divide(const at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor & divide_out(const at::Tensor & self, const at::Tensor & other, at::Tensor & out); +TORCH_API at::Tensor & divide_(at::Tensor & self, const at::Tensor & other); +TORCH_API at::Tensor divide(const at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor & divide_(at::Tensor & self, const at::Scalar & other); +TORCH_API at::Tensor divide(const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode); +TORCH_API at::Tensor & divide_out(const at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode, at::Tensor & out); +TORCH_API at::Tensor & divide_(at::Tensor & self, const at::Tensor & other, c10::optional rounding_mode); +TORCH_API at::Tensor divide(const at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode); +TORCH_API at::Tensor & divide_(at::Tensor & self, const at::Scalar & other, c10::optional rounding_mode); +} // namespace native +} // namespace at diff --git a/shared/package-files/e9/e9c4270054c8c7886666215faebd2f6e3d0d47d02e938eafa56dbe8243125244/blob b/shared/package-files/e9/e9c4270054c8c7886666215faebd2f6e3d0d47d02e938eafa56dbe8243125244/blob new file mode 100644 index 0000000000000000000000000000000000000000..b189b2cc70a71c6a07ba18eed40349168717edde --- /dev/null +++ b/shared/package-files/e9/e9c4270054c8c7886666215faebd2f6e3d0d47d02e938eafa56dbe8243125244/blob @@ -0,0 +1,24 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::tuple _fused_moving_avg_obs_fq_helper_functional(const at::Tensor & self, const at::Tensor & observer_on, const at::Tensor & fake_quant_on, const at::Tensor & running_min, const at::Tensor & running_max, const at::Tensor & scale, const at::Tensor & zero_point, double averaging_const, int64_t quant_min, int64_t quant_max, int64_t ch_axis, bool per_row_fake_quant=false, bool symmetric_quant=false); +TORCH_API ::std::tuple _fused_moving_avg_obs_fq_helper_out(const at::Tensor & self, const at::Tensor & observer_on, const at::Tensor & fake_quant_on, at::Tensor & running_min, at::Tensor & running_max, at::Tensor & scale, at::Tensor & zero_point, double averaging_const, int64_t quant_min, int64_t quant_max, int64_t ch_axis, bool per_row_fake_quant, bool symmetric_quant, at::Tensor & out0, at::Tensor & out1); +TORCH_API ::std::tuple fused_moving_avg_obs_fake_quant_cpu(const at::Tensor & self, const at::Tensor & observer_on, const at::Tensor & fake_quant_on, at::Tensor & running_min, at::Tensor & running_max, at::Tensor & scale, at::Tensor & zero_point, double averaging_const, int64_t quant_min, int64_t quant_max, int64_t ch_axis, bool per_row_fake_quant=false, bool symmetric_quant=false); +TORCH_API ::std::tuple fused_moving_avg_obs_fake_quant_cuda(const at::Tensor & self, const at::Tensor & observer_on, const at::Tensor & fake_quant_on, at::Tensor & running_min, at::Tensor & running_max, at::Tensor & scale, at::Tensor & zero_point, double averaging_const, int64_t quant_min, int64_t quant_max, int64_t ch_axis, bool per_row_fake_quant=false, bool symmetric_quant=false); +} // namespace native +} // namespace at diff --git a/shared/package-files/e9/e9cb2eb6b86c5da141b8fa9b606a987c843a85acb2bcda4ddcde7759f4a33180/blob b/shared/package-files/e9/e9cb2eb6b86c5da141b8fa9b606a987c843a85acb2bcda4ddcde7759f4a33180/blob new file mode 100644 index 0000000000000000000000000000000000000000..a211838e65490900b4f5ec26cf345103ddb43ee9 --- /dev/null +++ b/shared/package-files/e9/e9cb2eb6b86c5da141b8fa9b606a987c843a85acb2bcda4ddcde7759f4a33180/blob @@ -0,0 +1,7 @@ +name: test +dependencies: + - flask==2.0.2 +variables: + FIXED: fixed + CHANGES: original_value + GETS_DELETED: not_actually_removed_though diff --git a/shared/package-files/e9/e9cf97f0c3d27ce570880ce13f6e3a3a175fcfe4fac5c47ca1c972a61a6716e3/blob b/shared/package-files/e9/e9cf97f0c3d27ce570880ce13f6e3a3a175fcfe4fac5c47ca1c972a61a6716e3/blob new file mode 100644 index 0000000000000000000000000000000000000000..e47c2e9a2bfefb31d47e3d3dc51feebce5ea4523 --- /dev/null +++ b/shared/package-files/e9/e9cf97f0c3d27ce570880ce13f6e3a3a175fcfe4fac5c47ca1c972a61a6716e3/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9cf97f0c3d27ce570880ce13f6e3a3a175fcfe4fac5c47ca1c972a61a6716e3 +size 682784 diff --git a/shared/package-files/e9/e9cff3b124b851a1451826a1823b5dfb958624049a1c7a455fe9fcf5f1e32e45/blob b/shared/package-files/e9/e9cff3b124b851a1451826a1823b5dfb958624049a1c7a455fe9fcf5f1e32e45/blob new file mode 100644 index 0000000000000000000000000000000000000000..3b868da7cf29b29f069787b2228af0550b8129a0 --- /dev/null +++ b/shared/package-files/e9/e9cff3b124b851a1451826a1823b5dfb958624049a1c7a455fe9fcf5f1e32e45/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor cudnn_affine_grid_generator_backward(const at::Tensor & grad, int64_t N, int64_t C, int64_t H, int64_t W); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/e9/e9d0730a34f7f2ecdf8b1c8ce3d713b81eb37d41faf66d8318dd9605554193d2/blob b/shared/package-files/e9/e9d0730a34f7f2ecdf8b1c8ce3d713b81eb37d41faf66d8318dd9605554193d2/blob new file mode 100644 index 0000000000000000000000000000000000000000..c5d323fbd5f04ec56749505bc24feb080a851506 --- /dev/null +++ b/shared/package-files/e9/e9d0730a34f7f2ecdf8b1c8ce3d713b81eb37d41faf66d8318dd9605554193d2/blob @@ -0,0 +1,259 @@ + +ctypedef fused number_t: + double complex + double + +cpdef number_t spherical_jn(Py_ssize_t n, number_t z, bint derivative=*) noexcept nogil +cpdef number_t spherical_yn(Py_ssize_t n, number_t z, bint derivative=*) noexcept nogil +cpdef number_t spherical_in(Py_ssize_t n, number_t z, bint derivative=*) noexcept nogil +cpdef number_t spherical_kn(Py_ssize_t n, number_t z, bint derivative=*) noexcept nogil + +ctypedef fused Dd_number_t: + double complex + double + +ctypedef fused df_number_t: + double + float + +ctypedef fused dfg_number_t: + double + float + long double + +ctypedef fused dlp_number_t: + double + long + Py_ssize_t + +cpdef double voigt_profile(double x0, double x1, double x2) noexcept nogil +cpdef double agm(double x0, double x1) noexcept nogil +cdef void airy(Dd_number_t x0, Dd_number_t *y0, Dd_number_t *y1, Dd_number_t *y2, Dd_number_t *y3) noexcept nogil +cdef void airye(Dd_number_t x0, Dd_number_t *y0, Dd_number_t *y1, Dd_number_t *y2, Dd_number_t *y3) noexcept nogil +cpdef double bdtr(double x0, dlp_number_t x1, double x2) noexcept nogil +cpdef double bdtrc(double x0, dlp_number_t x1, double x2) noexcept nogil +cpdef double bdtri(double x0, dlp_number_t x1, double x2) noexcept nogil +cpdef double bdtrik(double x0, double x1, double x2) noexcept nogil +cpdef double bdtrin(double x0, double x1, double x2) noexcept nogil +cpdef double bei(double x0) noexcept nogil +cpdef double beip(double x0) noexcept nogil +cpdef double ber(double x0) noexcept nogil +cpdef double berp(double x0) noexcept nogil +cpdef double besselpoly(double x0, double x1, double x2) noexcept nogil +cpdef double beta(double x0, double x1) noexcept nogil +cpdef df_number_t betainc(df_number_t x0, df_number_t x1, df_number_t x2) noexcept nogil +cpdef df_number_t betaincc(df_number_t x0, df_number_t x1, df_number_t x2) noexcept nogil +cpdef df_number_t betaincinv(df_number_t x0, df_number_t x1, df_number_t x2) noexcept nogil +cpdef df_number_t betainccinv(df_number_t x0, df_number_t x1, df_number_t x2) noexcept nogil +cpdef double betaln(double x0, double x1) noexcept nogil +cpdef double binom(double x0, double x1) noexcept nogil +cpdef double boxcox(double x0, double x1) noexcept nogil +cpdef double boxcox1p(double x0, double x1) noexcept nogil +cpdef double btdtria(double x0, double x1, double x2) noexcept nogil +cpdef double btdtrib(double x0, double x1, double x2) noexcept nogil +cpdef double cbrt(double x0) noexcept nogil +cpdef double chdtr(double x0, double x1) noexcept nogil +cpdef double chdtrc(double x0, double x1) noexcept nogil +cpdef double chdtri(double x0, double x1) noexcept nogil +cpdef double chdtriv(double x0, double x1) noexcept nogil +cpdef double chndtr(double x0, double x1, double x2) noexcept nogil +cpdef double chndtridf(double x0, double x1, double x2) noexcept nogil +cpdef double chndtrinc(double x0, double x1, double x2) noexcept nogil +cpdef double chndtrix(double x0, double x1, double x2) noexcept nogil +cpdef double cosdg(double x0) noexcept nogil +cpdef double cosm1(double x0) noexcept nogil +cpdef double cotdg(double x0) noexcept nogil +cpdef Dd_number_t dawsn(Dd_number_t x0) noexcept nogil +cpdef double ellipe(double x0) noexcept nogil +cpdef double ellipeinc(double x0, double x1) noexcept nogil +cdef void ellipj(double x0, double x1, double *y0, double *y1, double *y2, double *y3) noexcept nogil +cpdef double ellipkinc(double x0, double x1) noexcept nogil +cpdef double ellipkm1(double x0) noexcept nogil +cpdef double ellipk(double x0) noexcept nogil +cpdef Dd_number_t elliprc(Dd_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t elliprd(Dd_number_t x0, Dd_number_t x1, Dd_number_t x2) noexcept nogil +cpdef Dd_number_t elliprf(Dd_number_t x0, Dd_number_t x1, Dd_number_t x2) noexcept nogil +cpdef Dd_number_t elliprg(Dd_number_t x0, Dd_number_t x1, Dd_number_t x2) noexcept nogil +cpdef Dd_number_t elliprj(Dd_number_t x0, Dd_number_t x1, Dd_number_t x2, Dd_number_t x3) noexcept nogil +cpdef double entr(double x0) noexcept nogil +cpdef Dd_number_t erf(Dd_number_t x0) noexcept nogil +cpdef Dd_number_t erfc(Dd_number_t x0) noexcept nogil +cpdef Dd_number_t erfcx(Dd_number_t x0) noexcept nogil +cpdef Dd_number_t erfi(Dd_number_t x0) noexcept nogil +cpdef df_number_t erfinv(df_number_t x0) noexcept nogil +cpdef double erfcinv(double x0) noexcept nogil +cpdef Dd_number_t eval_chebyc(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_chebys(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_chebyt(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_chebyu(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_gegenbauer(dlp_number_t x0, double x1, Dd_number_t x2) noexcept nogil +cpdef Dd_number_t eval_genlaguerre(dlp_number_t x0, double x1, Dd_number_t x2) noexcept nogil +cpdef double eval_hermite(Py_ssize_t x0, double x1) noexcept nogil +cpdef double eval_hermitenorm(Py_ssize_t x0, double x1) noexcept nogil +cpdef Dd_number_t eval_jacobi(dlp_number_t x0, double x1, double x2, Dd_number_t x3) noexcept nogil +cpdef Dd_number_t eval_laguerre(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_legendre(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_sh_chebyt(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_sh_chebyu(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t eval_sh_jacobi(dlp_number_t x0, double x1, double x2, Dd_number_t x3) noexcept nogil +cpdef Dd_number_t eval_sh_legendre(dlp_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t exp1(Dd_number_t x0) noexcept nogil +cpdef double exp10(double x0) noexcept nogil +cpdef double exp2(double x0) noexcept nogil +cpdef Dd_number_t expi(Dd_number_t x0) noexcept nogil +cpdef dfg_number_t expit(dfg_number_t x0) noexcept nogil +cpdef Dd_number_t expm1(Dd_number_t x0) noexcept nogil +cpdef double expn(dlp_number_t x0, double x1) noexcept nogil +cpdef double exprel(double x0) noexcept nogil +cpdef double fdtr(double x0, double x1, double x2) noexcept nogil +cpdef double fdtrc(double x0, double x1, double x2) noexcept nogil +cpdef double fdtri(double x0, double x1, double x2) noexcept nogil +cpdef double fdtridfd(double x0, double x1, double x2) noexcept nogil +cdef void fresnel(Dd_number_t x0, Dd_number_t *y0, Dd_number_t *y1) noexcept nogil +cpdef Dd_number_t gamma(Dd_number_t x0) noexcept nogil +cpdef double gammainc(double x0, double x1) noexcept nogil +cpdef double gammaincc(double x0, double x1) noexcept nogil +cpdef double gammainccinv(double x0, double x1) noexcept nogil +cpdef double gammaincinv(double x0, double x1) noexcept nogil +cpdef double gammaln(double x0) noexcept nogil +cpdef double gammasgn(double x0) noexcept nogil +cpdef double gdtr(double x0, double x1, double x2) noexcept nogil +cpdef double gdtrc(double x0, double x1, double x2) noexcept nogil +cpdef double gdtria(double x0, double x1, double x2) noexcept nogil +cpdef double gdtrib(double x0, double x1, double x2) noexcept nogil +cpdef double gdtrix(double x0, double x1, double x2) noexcept nogil +cpdef double complex hankel1(double x0, double complex x1) noexcept nogil +cpdef double complex hankel1e(double x0, double complex x1) noexcept nogil +cpdef double complex hankel2(double x0, double complex x1) noexcept nogil +cpdef double complex hankel2e(double x0, double complex x1) noexcept nogil +cpdef double huber(double x0, double x1) noexcept nogil +cpdef Dd_number_t hyp0f1(double x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t hyp1f1(double x0, double x1, Dd_number_t x2) noexcept nogil +cpdef Dd_number_t hyp2f1(double x0, double x1, double x2, Dd_number_t x3) noexcept nogil +cpdef double hyperu(double x0, double x1, double x2) noexcept nogil +cpdef double i0(double x0) noexcept nogil +cpdef double i0e(double x0) noexcept nogil +cpdef double i1(double x0) noexcept nogil +cpdef double i1e(double x0) noexcept nogil +cpdef double inv_boxcox(double x0, double x1) noexcept nogil +cpdef double inv_boxcox1p(double x0, double x1) noexcept nogil +cdef void it2i0k0(double x0, double *y0, double *y1) noexcept nogil +cdef void it2j0y0(double x0, double *y0, double *y1) noexcept nogil +cpdef double it2struve0(double x0) noexcept nogil +cdef void itairy(double x0, double *y0, double *y1, double *y2, double *y3) noexcept nogil +cdef void iti0k0(double x0, double *y0, double *y1) noexcept nogil +cdef void itj0y0(double x0, double *y0, double *y1) noexcept nogil +cpdef double itmodstruve0(double x0) noexcept nogil +cpdef double itstruve0(double x0) noexcept nogil +cpdef Dd_number_t iv(double x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t ive(double x0, Dd_number_t x1) noexcept nogil +cpdef double j0(double x0) noexcept nogil +cpdef double j1(double x0) noexcept nogil +cpdef Dd_number_t jv(double x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t jve(double x0, Dd_number_t x1) noexcept nogil +cpdef double k0(double x0) noexcept nogil +cpdef double k0e(double x0) noexcept nogil +cpdef double k1(double x0) noexcept nogil +cpdef double k1e(double x0) noexcept nogil +cpdef double kei(double x0) noexcept nogil +cpdef double keip(double x0) noexcept nogil +cdef void kelvin(double x0, double complex *y0, double complex *y1, double complex *y2, double complex *y3) noexcept nogil +cpdef double ker(double x0) noexcept nogil +cpdef double kerp(double x0) noexcept nogil +cpdef double kl_div(double x0, double x1) noexcept nogil +cpdef double kn(dlp_number_t x0, double x1) noexcept nogil +cpdef double kolmogi(double x0) noexcept nogil +cpdef double kolmogorov(double x0) noexcept nogil +cpdef Dd_number_t kv(double x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t kve(double x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t log1p(Dd_number_t x0) noexcept nogil +cpdef dfg_number_t log_expit(dfg_number_t x0) noexcept nogil +cpdef Dd_number_t log_ndtr(Dd_number_t x0) noexcept nogil +cpdef Dd_number_t loggamma(Dd_number_t x0) noexcept nogil +cpdef dfg_number_t logit(dfg_number_t x0) noexcept nogil +cpdef double lpmv(double x0, double x1, double x2) noexcept nogil +cpdef double mathieu_a(double x0, double x1) noexcept nogil +cpdef double mathieu_b(double x0, double x1) noexcept nogil +cdef void mathieu_cem(double x0, double x1, double x2, double *y0, double *y1) noexcept nogil +cdef void mathieu_modcem1(double x0, double x1, double x2, double *y0, double *y1) noexcept nogil +cdef void mathieu_modcem2(double x0, double x1, double x2, double *y0, double *y1) noexcept nogil +cdef void mathieu_modsem1(double x0, double x1, double x2, double *y0, double *y1) noexcept nogil +cdef void mathieu_modsem2(double x0, double x1, double x2, double *y0, double *y1) noexcept nogil +cdef void mathieu_sem(double x0, double x1, double x2, double *y0, double *y1) noexcept nogil +cdef void modfresnelm(double x0, double complex *y0, double complex *y1) noexcept nogil +cdef void modfresnelp(double x0, double complex *y0, double complex *y1) noexcept nogil +cpdef double modstruve(double x0, double x1) noexcept nogil +cpdef double nbdtr(dlp_number_t x0, dlp_number_t x1, double x2) noexcept nogil +cpdef double nbdtrc(dlp_number_t x0, dlp_number_t x1, double x2) noexcept nogil +cpdef double nbdtri(dlp_number_t x0, dlp_number_t x1, double x2) noexcept nogil +cpdef double nbdtrik(double x0, double x1, double x2) noexcept nogil +cpdef double nbdtrin(double x0, double x1, double x2) noexcept nogil +cpdef df_number_t ncfdtr(df_number_t x0, df_number_t x1, df_number_t x2, df_number_t x3) noexcept nogil +cpdef df_number_t ncfdtri(df_number_t x0, df_number_t x1, df_number_t x2, df_number_t x3) noexcept nogil +cpdef double ncfdtridfd(double x0, double x1, double x2, double x3) noexcept nogil +cpdef double ncfdtridfn(double x0, double x1, double x2, double x3) noexcept nogil +cpdef double ncfdtrinc(double x0, double x1, double x2, double x3) noexcept nogil +cpdef df_number_t nctdtr(df_number_t x0, df_number_t x1, df_number_t x2) noexcept nogil +cpdef double nctdtridf(double x0, double x1, double x2) noexcept nogil +cpdef double nctdtrinc(double x0, double x1, double x2) noexcept nogil +cpdef double nctdtrit(double x0, double x1, double x2) noexcept nogil +cpdef Dd_number_t ndtr(Dd_number_t x0) noexcept nogil +cpdef double ndtri(double x0) noexcept nogil +cpdef double nrdtrimn(double x0, double x1, double x2) noexcept nogil +cpdef double nrdtrisd(double x0, double x1, double x2) noexcept nogil +cdef void obl_ang1(double x0, double x1, double x2, double x3, double *y0, double *y1) noexcept nogil +cdef void obl_ang1_cv(double x0, double x1, double x2, double x3, double x4, double *y0, double *y1) noexcept nogil +cpdef double obl_cv(double x0, double x1, double x2) noexcept nogil +cdef void obl_rad1(double x0, double x1, double x2, double x3, double *y0, double *y1) noexcept nogil +cdef void obl_rad1_cv(double x0, double x1, double x2, double x3, double x4, double *y0, double *y1) noexcept nogil +cdef void obl_rad2(double x0, double x1, double x2, double x3, double *y0, double *y1) noexcept nogil +cdef void obl_rad2_cv(double x0, double x1, double x2, double x3, double x4, double *y0, double *y1) noexcept nogil +cpdef double owens_t(double x0, double x1) noexcept nogil +cdef void pbdv(double x0, double x1, double *y0, double *y1) noexcept nogil +cdef void pbvv(double x0, double x1, double *y0, double *y1) noexcept nogil +cdef void pbwa(double x0, double x1, double *y0, double *y1) noexcept nogil +cpdef double pdtr(double x0, double x1) noexcept nogil +cpdef double pdtrc(double x0, double x1) noexcept nogil +cpdef double pdtri(dlp_number_t x0, double x1) noexcept nogil +cpdef double pdtrik(double x0, double x1) noexcept nogil +cpdef double poch(double x0, double x1) noexcept nogil +cpdef df_number_t powm1(df_number_t x0, df_number_t x1) noexcept nogil +cdef void pro_ang1(double x0, double x1, double x2, double x3, double *y0, double *y1) noexcept nogil +cdef void pro_ang1_cv(double x0, double x1, double x2, double x3, double x4, double *y0, double *y1) noexcept nogil +cpdef double pro_cv(double x0, double x1, double x2) noexcept nogil +cdef void pro_rad1(double x0, double x1, double x2, double x3, double *y0, double *y1) noexcept nogil +cdef void pro_rad1_cv(double x0, double x1, double x2, double x3, double x4, double *y0, double *y1) noexcept nogil +cdef void pro_rad2(double x0, double x1, double x2, double x3, double *y0, double *y1) noexcept nogil +cdef void pro_rad2_cv(double x0, double x1, double x2, double x3, double x4, double *y0, double *y1) noexcept nogil +cpdef double pseudo_huber(double x0, double x1) noexcept nogil +cpdef Dd_number_t psi(Dd_number_t x0) noexcept nogil +cpdef double radian(double x0, double x1, double x2) noexcept nogil +cpdef double rel_entr(double x0, double x1) noexcept nogil +cpdef Dd_number_t rgamma(Dd_number_t x0) noexcept nogil +cpdef double round(double x0) noexcept nogil +cdef void shichi(Dd_number_t x0, Dd_number_t *y0, Dd_number_t *y1) noexcept nogil +cdef void sici(Dd_number_t x0, Dd_number_t *y0, Dd_number_t *y1) noexcept nogil +cpdef double sindg(double x0) noexcept nogil +cpdef double smirnov(dlp_number_t x0, double x1) noexcept nogil +cpdef double smirnovi(dlp_number_t x0, double x1) noexcept nogil +cpdef Dd_number_t spence(Dd_number_t x0) noexcept nogil +cpdef double complex sph_harm(dlp_number_t x0, dlp_number_t x1, double x2, double x3) noexcept nogil +cpdef double stdtr(double x0, double x1) noexcept nogil +cpdef double stdtridf(double x0, double x1) noexcept nogil +cpdef double stdtrit(double x0, double x1) noexcept nogil +cpdef double struve(double x0, double x1) noexcept nogil +cpdef double tandg(double x0) noexcept nogil +cpdef double tklmbda(double x0, double x1) noexcept nogil +cpdef double complex wofz(double complex x0) noexcept nogil +cpdef Dd_number_t wrightomega(Dd_number_t x0) noexcept nogil +cpdef Dd_number_t xlog1py(Dd_number_t x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t xlogy(Dd_number_t x0, Dd_number_t x1) noexcept nogil +cpdef double y0(double x0) noexcept nogil +cpdef double y1(double x0) noexcept nogil +cpdef double yn(dlp_number_t x0, double x1) noexcept nogil +cpdef Dd_number_t yv(double x0, Dd_number_t x1) noexcept nogil +cpdef Dd_number_t yve(double x0, Dd_number_t x1) noexcept nogil +cpdef double zetac(double x0) noexcept nogil +cpdef double wright_bessel(double x0, double x1, double x2) noexcept nogil +cpdef double log_wright_bessel(double x0, double x1, double x2) noexcept nogil +cpdef double ndtri_exp(double x0) noexcept nogil diff --git a/shared/package-files/e9/e9d088a19a97f26173efb4a94f50ce33f239caf770535b543274db036be360c1/blob b/shared/package-files/e9/e9d088a19a97f26173efb4a94f50ce33f239caf770535b543274db036be360c1/blob new file mode 100644 index 0000000000000000000000000000000000000000..c968b65c8d518b82ed308ba932ea9297a3fe3808 --- /dev/null +++ b/shared/package-files/e9/e9d088a19a97f26173efb4a94f50ce33f239caf770535b543274db036be360c1/blob @@ -0,0 +1,273 @@ +"""Utility functions for classifying and solving +ordinary and partial differential equations. + +Contains +======== +_preprocess +ode_order +_desolve + +""" +from sympy.core import Pow +from sympy.core.function import Derivative, AppliedUndef +from sympy.core.relational import Equality +from sympy.core.symbol import Wild + +def _preprocess(expr, func=None, hint='_Integral'): + """Prepare expr for solving by making sure that differentiation + is done so that only func remains in unevaluated derivatives and + (if hint does not end with _Integral) that doit is applied to all + other derivatives. If hint is None, do not do any differentiation. + (Currently this may cause some simple differential equations to + fail.) + + In case func is None, an attempt will be made to autodetect the + function to be solved for. + + >>> from sympy.solvers.deutils import _preprocess + >>> from sympy import Derivative, Function + >>> from sympy.abc import x, y, z + >>> f, g = map(Function, 'fg') + + If f(x)**p == 0 and p>0 then we can solve for f(x)=0 + >>> _preprocess((f(x).diff(x)-4)**5, f(x)) + (Derivative(f(x), x) - 4, f(x)) + + Apply doit to derivatives that contain more than the function + of interest: + + >>> _preprocess(Derivative(f(x) + x, x)) + (Derivative(f(x), x) + 1, f(x)) + + Do others if the differentiation variable(s) intersect with those + of the function of interest or contain the function of interest: + + >>> _preprocess(Derivative(g(x), y, z), f(y)) + (0, f(y)) + >>> _preprocess(Derivative(f(y), z), f(y)) + (0, f(y)) + + Do others if the hint does not end in '_Integral' (the default + assumes that it does): + + >>> _preprocess(Derivative(g(x), y), f(x)) + (Derivative(g(x), y), f(x)) + >>> _preprocess(Derivative(f(x), y), f(x), hint='') + (0, f(x)) + + Do not do any derivatives if hint is None: + + >>> eq = Derivative(f(x) + 1, x) + Derivative(f(x), y) + >>> _preprocess(eq, f(x), hint=None) + (Derivative(f(x) + 1, x) + Derivative(f(x), y), f(x)) + + If it's not clear what the function of interest is, it must be given: + + >>> eq = Derivative(f(x) + g(x), x) + >>> _preprocess(eq, g(x)) + (Derivative(f(x), x) + Derivative(g(x), x), g(x)) + >>> try: _preprocess(eq) + ... except ValueError: print("A ValueError was raised.") + A ValueError was raised. + + """ + if isinstance(expr, Pow): + # if f(x)**p=0 then f(x)=0 (p>0) + if (expr.exp).is_positive: + expr = expr.base + derivs = expr.atoms(Derivative) + if not func: + funcs = set().union(*[d.atoms(AppliedUndef) for d in derivs]) + if len(funcs) != 1: + raise ValueError('The function cannot be ' + 'automatically detected for %s.' % expr) + func = funcs.pop() + fvars = set(func.args) + if hint is None: + return expr, func + reps = [(d, d.doit()) for d in derivs if not hint.endswith('_Integral') or + d.has(func) or set(d.variables) & fvars] + eq = expr.subs(reps) + return eq, func + + +def ode_order(expr, func): + """ + Returns the order of a given differential + equation with respect to func. + + This function is implemented recursively. + + Examples + ======== + + >>> from sympy import Function + >>> from sympy.solvers.deutils import ode_order + >>> from sympy.abc import x + >>> f, g = map(Function, ['f', 'g']) + >>> ode_order(f(x).diff(x, 2) + f(x).diff(x)**2 + + ... f(x).diff(x), f(x)) + 2 + >>> ode_order(f(x).diff(x, 2) + g(x).diff(x, 3), f(x)) + 2 + >>> ode_order(f(x).diff(x, 2) + g(x).diff(x, 3), g(x)) + 3 + + """ + a = Wild('a', exclude=[func]) + if expr.match(a): + return 0 + + if isinstance(expr, Derivative): + if expr.args[0] == func: + return len(expr.variables) + else: + args = expr.args[0].args + rv = len(expr.variables) + if args: + rv += max(ode_order(_, func) for _ in args) + return rv + else: + return max(ode_order(_, func) for _ in expr.args) if expr.args else 0 + + +def _desolve(eq, func=None, hint="default", ics=None, simplify=True, *, prep=True, **kwargs): + """This is a helper function to dsolve and pdsolve in the ode + and pde modules. + + If the hint provided to the function is "default", then a dict with + the following keys are returned + + 'func' - It provides the function for which the differential equation + has to be solved. This is useful when the expression has + more than one function in it. + + 'default' - The default key as returned by classifier functions in ode + and pde.py + + 'hint' - The hint given by the user for which the differential equation + is to be solved. If the hint given by the user is 'default', + then the value of 'hint' and 'default' is the same. + + 'order' - The order of the function as returned by ode_order + + 'match' - It returns the match as given by the classifier functions, for + the default hint. + + If the hint provided to the function is not "default" and is not in + ('all', 'all_Integral', 'best'), then a dict with the above mentioned keys + is returned along with the keys which are returned when dict in + classify_ode or classify_pde is set True + + If the hint given is in ('all', 'all_Integral', 'best'), then this function + returns a nested dict, with the keys, being the set of classified hints + returned by classifier functions, and the values being the dict of form + as mentioned above. + + Key 'eq' is a common key to all the above mentioned hints which returns an + expression if eq given by user is an Equality. + + See Also + ======== + classify_ode(ode.py) + classify_pde(pde.py) + """ + if isinstance(eq, Equality): + eq = eq.lhs - eq.rhs + + # preprocess the equation and find func if not given + if prep or func is None: + eq, func = _preprocess(eq, func) + prep = False + + # type is an argument passed by the solve functions in ode and pde.py + # that identifies whether the function caller is an ordinary + # or partial differential equation. Accordingly corresponding + # changes are made in the function. + type = kwargs.get('type', None) + xi = kwargs.get('xi') + eta = kwargs.get('eta') + x0 = kwargs.get('x0', 0) + terms = kwargs.get('n') + + if type == 'ode': + from sympy.solvers.ode import classify_ode, allhints + classifier = classify_ode + string = 'ODE ' + dummy = '' + + elif type == 'pde': + from sympy.solvers.pde import classify_pde, allhints + classifier = classify_pde + string = 'PDE ' + dummy = 'p' + + # Magic that should only be used internally. Prevents classify_ode from + # being called more than it needs to be by passing its results through + # recursive calls. + if kwargs.get('classify', True): + hints = classifier(eq, func, dict=True, ics=ics, xi=xi, eta=eta, + n=terms, x0=x0, hint=hint, prep=prep) + + else: + # Here is what all this means: + # + # hint: The hint method given to _desolve() by the user. + # hints: The dictionary of hints that match the DE, along with other + # information (including the internal pass-through magic). + # default: The default hint to return, the first hint from allhints + # that matches the hint; obtained from classify_ode(). + # match: Dictionary containing the match dictionary for each hint + # (the parts of the DE for solving). When going through the + # hints in "all", this holds the match string for the current + # hint. + # order: The order of the DE, as determined by ode_order(). + hints = kwargs.get('hint', + {'default': hint, + hint: kwargs['match'], + 'order': kwargs['order']}) + if not hints['default']: + # classify_ode will set hints['default'] to None if no hints match. + if hint not in allhints and hint != 'default': + raise ValueError("Hint not recognized: " + hint) + elif hint not in hints['ordered_hints'] and hint != 'default': + raise ValueError(string + str(eq) + " does not match hint " + hint) + # If dsolve can't solve the purely algebraic equation then dsolve will raise + # ValueError + elif hints['order'] == 0: + raise ValueError( + str(eq) + " is not a solvable differential equation in " + str(func)) + else: + raise NotImplementedError(dummy + "solve" + ": Cannot solve " + str(eq)) + if hint == 'default': + return _desolve(eq, func, ics=ics, hint=hints['default'], simplify=simplify, + prep=prep, x0=x0, classify=False, order=hints['order'], + match=hints[hints['default']], xi=xi, eta=eta, n=terms, type=type) + elif hint in ('all', 'all_Integral', 'best'): + retdict = {} + gethints = set(hints) - {'order', 'default', 'ordered_hints'} + if hint == 'all_Integral': + for i in hints: + if i.endswith('_Integral'): + gethints.remove(i[:-len('_Integral')]) + # special cases + for k in ["1st_homogeneous_coeff_best", "1st_power_series", + "lie_group", "2nd_power_series_ordinary", "2nd_power_series_regular"]: + if k in gethints: + gethints.remove(k) + for i in gethints: + sol = _desolve(eq, func, ics=ics, hint=i, x0=x0, simplify=simplify, prep=prep, + classify=False, n=terms, order=hints['order'], match=hints[i], type=type) + retdict[i] = sol + retdict['all'] = True + retdict['eq'] = eq + return retdict + elif hint not in allhints: # and hint not in ('default', 'ordered_hints'): + raise ValueError("Hint not recognized: " + hint) + elif hint not in hints: + raise ValueError(string + str(eq) + " does not match hint " + hint) + else: + # Key added to identify the hint needed to solve the equation + hints['hint'] = hint + hints.update({'func': func, 'eq': eq}) + return hints diff --git a/shared/package-files/e9/e9d24d05803fe19fddc8ca61ef5439288d1ac5efb2cdd8d39d1806ff38f6397d/blob b/shared/package-files/e9/e9d24d05803fe19fddc8ca61ef5439288d1ac5efb2cdd8d39d1806ff38f6397d/blob new file mode 100644 index 0000000000000000000000000000000000000000..1157937632afb1deca6568d75655c6195eac564d --- /dev/null +++ b/shared/package-files/e9/e9d24d05803fe19fddc8ca61ef5439288d1ac5efb2cdd8d39d1806ff38f6397d/blob @@ -0,0 +1,58 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include +#include + +#include "arrow/util/base64.h" +#include "arrow/util/secure_string.h" + +namespace parquet::encryption { + +// In the double wrapping mode, each "data encryption key" (DEK) is encrypted with a “key +// encryption key” (KEK), that in turn is encrypted with a "master encryption key" (MEK). +// In a writer process, a random KEK is generated for each MEK ID, and cached in a map. This allows to perform an interaction with a KMS server only once for each +// MEK, in order to wrap its KEK. "Data encryption key" (DEK) wrapping is performed +// locally, and does not involve an interaction with a KMS server. +class KeyEncryptionKey { + public: + KeyEncryptionKey(::arrow::util::SecureString kek_bytes, std::string kek_id, + std::string encoded_wrapped_kek) + : kek_bytes_(std::move(kek_bytes)), + kek_id_(std::move(kek_id)), + encoded_kek_id_(::arrow::util::base64_encode(kek_id_)), + encoded_wrapped_kek_(std::move(encoded_wrapped_kek)) {} + + const ::arrow::util::SecureString& kek_bytes() const { return kek_bytes_; } + + const std::string& kek_id() const { return kek_id_; } + + const std::string& encoded_kek_id() const { return encoded_kek_id_; } + + const std::string& encoded_wrapped_kek() const { return encoded_wrapped_kek_; } + + private: + ::arrow::util::SecureString kek_bytes_; + std::string kek_id_; + std::string encoded_kek_id_; + std::string encoded_wrapped_kek_; +}; + +} // namespace parquet::encryption diff --git a/shared/package-files/e9/e9d26c29eef8f1270bbcc9b88dc08ef6a0ffffc27e5b2d5d3d517e3a8ade578a/blob b/shared/package-files/e9/e9d26c29eef8f1270bbcc9b88dc08ef6a0ffffc27e5b2d5d3d517e3a8ade578a/blob new file mode 100644 index 0000000000000000000000000000000000000000..9211c0b77fd9f62ac78ca8152c89b77801546b42 --- /dev/null +++ b/shared/package-files/e9/e9d26c29eef8f1270bbcc9b88dc08ef6a0ffffc27e5b2d5d3d517e3a8ade578a/blob @@ -0,0 +1,147 @@ +""" +Tracing utils +""" + +from __future__ import annotations + +from collections.abc import Callable +from collections.abc import Sequence +import enum +import os +from typing import Any + + +_Writer = Callable[[str], object] +_Processor = Callable[[tuple[str, ...], tuple[Any, ...]], object] + + +def _describe_failure(exc: Exception, obj: object, func: str) -> str: + try: + exc_info = repr(exc) + except Exception: + exc_info = f"unpresentable {type(exc).__name__}" + name = type(obj).__name__ + return f"<[{exc_info} raised in {func}()] {name} object at 0x{id(obj):x}>" + + +def _escape_surrogates(text: str) -> str: + """Escape lone surrogates so the result survives any text writer. + + A lone surrogate reaching the writer raises :exc:`UnicodeEncodeError` + inside the trace call for any utf-8 target, such as the file behind + pytest's ``--debug``. + """ + if text.isascii(): + return text + return text.encode("utf-8", "backslashreplace").decode("utf-8") + + +def _safe_str(obj: object) -> str: + """``str(obj)`` for tracing, with a failing ``__str__`` rendered, not raised. + + The result has lone surrogates escaped, so any text writer accepts it. + """ + try: + text = str(obj) + except Exception as exc: + text = _describe_failure(exc, obj, "str") + return _escape_surrogates(text) + + +def _is_plain_token(text: str) -> bool: + """Whether ``text`` can be shown bare, without quotes around it.""" + return bool(text) and text.isprintable() and " " not in text + + +def _format_block(indent: str, lines: list[str]) -> list[str]: + """Indent a multi line value under its key, so it reads as one value.""" + return [f"{indent} {line}\n" for line in lines] + + +def _render_value(obj: object) -> str: + """Render a traced value, adding detail only where ``str`` is ambiguous.""" + # Before the str check: a StrEnum member is a str whose str() drops the name. + if isinstance(obj, (enum.Enum, os.PathLike)): + return _safe_repr(obj) + if isinstance(obj, str): + if len(obj.splitlines()) > 1: + return _safe_str(obj) + if _is_plain_token(obj): + return _safe_str(obj) + return _safe_repr(obj) + return _safe_str(obj) + + +def _safe_repr(obj: object) -> str: + """``repr(obj)`` for tracing, with a failing ``__repr__`` rendered, not raised. + + The result has lone surrogates escaped, so any text writer accepts it. + """ + try: + text = repr(obj) + except Exception as exc: + text = _describe_failure(exc, obj, "repr") + return _escape_surrogates(text) + + +class TagTracer: + def __init__(self) -> None: + self._tags2proc: dict[tuple[str, ...], _Processor] = {} + self._writer: _Writer | None = None + self.indent = 0 + + def get(self, name: str) -> TagTracerSub: + return TagTracerSub(self, (name,)) + + def _format_message(self, tags: Sequence[str], args: Sequence[object]) -> str: + if isinstance(args[-1], dict): + extra = args[-1] + args = args[:-1] + else: + extra = {} + + content = " ".join(map(_safe_str, args)) + indent = " " * self.indent + + lines = [f"{indent}{content} [{':'.join(tags)}]\n"] + + for name, value in extra.items(): + rendered = _render_value(value) + # A bare \r is a line break too: inline, the terminal would + # return to column 0 and overwrite the key. + body = rendered.splitlines() + if body in ([], [rendered]): + lines.append(f"{indent} {name}: {rendered}\n") + else: + lines.append(f"{indent} {name}:\n") + lines.extend(_format_block(indent, body)) + + return "".join(lines) + + def _processmessage(self, tags: tuple[str, ...], args: tuple[object, ...]) -> None: + if self._writer is not None and args: + self._writer(self._format_message(tags, args)) + if processor := self._tags2proc.get(tags): + processor(tags, args) + + def setwriter(self, writer: _Writer | None) -> None: + self._writer = writer + + def setprocessor(self, tags: str | tuple[str, ...], processor: _Processor) -> None: + if isinstance(tags, str): + tags = tuple(tags.split(":")) + else: + assert isinstance(tags, tuple) + self._tags2proc[tags] = processor + + +class TagTracerSub: + def __init__(self, root: TagTracer, tags: tuple[str, ...]) -> None: + self.root = root + self.tags = tags + + def __call__(self, *args: object) -> None: + self.root._processmessage(self.tags, args) + + def get(self, name: str) -> TagTracerSub: + return self.__class__(self.root, self.tags + (name,)) diff --git a/shared/package-files/e9/e9d3d25b57a2d00025da323b7c8c6d7ee807ef6825b059f10263934ca2313bb9/blob b/shared/package-files/e9/e9d3d25b57a2d00025da323b7c8c6d7ee807ef6825b059f10263934ca2313bb9/blob new file mode 100644 index 0000000000000000000000000000000000000000..2ccc3560e7c959e6ba24bc137e0f7982b20dae6e --- /dev/null +++ b/shared/package-files/e9/e9d3d25b57a2d00025da323b7c8c6d7ee807ef6825b059f10263934ca2313bb9/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::glu_backward.grad_input(Tensor grad_output, Tensor self, int dim, *, Tensor(a!) grad_input) -> Tensor(a!) +inline at::Tensor & glu_backward_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, int64_t dim) { + return at::_ops::glu_backward_grad_input::call(grad_output, self, dim, grad_input); +} +// aten::glu_backward.grad_input(Tensor grad_output, Tensor self, int dim, *, Tensor(a!) grad_input) -> Tensor(a!) +inline at::Tensor & glu_backward_outf(const at::Tensor & grad_output, const at::Tensor & self, int64_t dim, at::Tensor & grad_input) { + return at::_ops::glu_backward_grad_input::call(grad_output, self, dim, grad_input); +} + +// aten::glu_backward(Tensor grad_output, Tensor self, int dim) -> Tensor +inline at::Tensor glu_backward(const at::Tensor & grad_output, const at::Tensor & self, int64_t dim) { + return at::_ops::glu_backward::call(grad_output, self, dim); +} + +} diff --git a/shared/package-files/e9/e9d45aabf8068bbbbf3d956c035187e107ec097bd41341d0a4d42ecef098a3e8/blob b/shared/package-files/e9/e9d45aabf8068bbbbf3d956c035187e107ec097bd41341d0a4d42ecef098a3e8/blob new file mode 100644 index 0000000000000000000000000000000000000000..400a0c43b0e2438bf15859fafb6bf07003da32e7 --- /dev/null +++ b/shared/package-files/e9/e9d45aabf8068bbbbf3d956c035187e107ec097bd41341d0a4d42ecef098a3e8/blob @@ -0,0 +1,25 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace at { +namespace native { +struct TORCH_API structured_gather_out : public at::meta::structured_gather { +void impl(const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad, const at::Tensor & out); +}; +TORCH_API at::Tensor gather(const at::Tensor & self, at::Dimname dim, const at::Tensor & index, bool sparse_grad=false); +TORCH_API at::Tensor & gather_out(const at::Tensor & self, at::Dimname dim, const at::Tensor & index, bool sparse_grad, at::Tensor & out); +} // namespace native +} // namespace at diff --git a/shared/package-files/e9/e9d5d7488e4eb264d7cbc3aef0a85ac90c1fea7eb06afa838856b8cfc0b67c38/blob b/shared/package-files/e9/e9d5d7488e4eb264d7cbc3aef0a85ac90c1fea7eb06afa838856b8cfc0b67c38/blob new file mode 100644 index 0000000000000000000000000000000000000000..da617ef8fa787402810e17a563ce3152b5e1da89 --- /dev/null +++ b/shared/package-files/e9/e9d5d7488e4eb264d7cbc3aef0a85ac90c1fea7eb06afa838856b8cfc0b67c38/blob @@ -0,0 +1,426 @@ +"""Incremental Principal Components Analysis.""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +from numbers import Integral + +import numpy as np +from scipy import linalg, sparse + +from sklearn.utils import metadata_routing + +from ..base import _fit_context +from ..utils import gen_batches +from ..utils._param_validation import Interval +from ..utils.extmath import _incremental_mean_and_var, svd_flip +from ..utils.validation import validate_data +from ._base import _BasePCA + + +class IncrementalPCA(_BasePCA): + """Incremental principal components analysis (IPCA). + + Linear dimensionality reduction using Singular Value Decomposition of + the data, keeping only the most significant singular vectors to + project the data to a lower dimensional space. The input data is centered + but not scaled for each feature before applying the SVD. + + Depending on the size of the input data, this algorithm can be much more + memory efficient than a PCA, and allows sparse input. + + This algorithm has constant memory complexity, on the order + of ``batch_size * n_features``, enabling use of np.memmap files without + loading the entire file into memory. For sparse matrices, the input + is converted to dense in batches (in order to be able to subtract the + mean) which avoids storing the entire dense matrix at any one time. + + The computational overhead of each SVD is + ``O(batch_size * n_features ** 2)``, but only 2 * batch_size samples + remain in memory at a time. There will be ``n_samples / batch_size`` SVD + computations to get the principal components, versus 1 large SVD of + complexity ``O(n_samples * n_features ** 2)`` for PCA. + + For a usage example, see + :ref:`sphx_glr_auto_examples_decomposition_plot_incremental_pca.py`. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.16 + + Parameters + ---------- + n_components : int, default=None + Number of components to keep. If ``n_components`` is ``None``, + then ``n_components`` is set to ``min(n_samples, n_features)``. + + whiten : bool, default=False + When True (False by default) the ``components_`` vectors are divided + by ``n_samples`` times ``components_`` to ensure uncorrelated outputs + with unit component-wise variances. + + Whitening will remove some information from the transformed signal + (the relative variance scales of the components) but can sometimes + improve the predictive accuracy of the downstream estimators by + making data respect some hard-wired assumptions. + + copy : bool, default=True + If False, X will be overwritten. ``copy=False`` can be used to + save memory but is unsafe for general use. + + batch_size : int, default=None + The number of samples to use for each batch. Only used when calling + ``fit``. If ``batch_size`` is ``None``, then ``batch_size`` + is inferred from the data and set to ``5 * n_features``, to provide a + balance between approximation accuracy and memory consumption. + + Attributes + ---------- + components_ : ndarray of shape (n_components, n_features) + Principal axes in feature space, representing the directions of + maximum variance in the data. Equivalently, the right singular + vectors of the centered input data, parallel to its eigenvectors. + The components are sorted by decreasing ``explained_variance_``. + + explained_variance_ : ndarray of shape (n_components,) + Variance explained by each of the selected components. + + explained_variance_ratio_ : ndarray of shape (n_components,) + Percentage of variance explained by each of the selected components. + If all components are stored, the sum of explained variances is equal + to 1.0. + + singular_values_ : ndarray of shape (n_components,) + The singular values corresponding to each of the selected components. + The singular values are equal to the 2-norms of the ``n_components`` + variables in the lower-dimensional space. + + mean_ : ndarray of shape (n_features,) + Per-feature empirical mean, aggregate over calls to ``partial_fit``. + + var_ : ndarray of shape (n_features,) + Per-feature empirical variance, aggregate over calls to + ``partial_fit``. + + noise_variance_ : float + The estimated noise covariance following the Probabilistic PCA model + from Tipping and Bishop 1999. See "Pattern Recognition and + Machine Learning" by C. Bishop, 12.2.1 p. 574 or + http://www.miketipping.com/papers/met-mppca.pdf. + + n_components_ : int + The estimated number of components. Relevant when + ``n_components=None``. + + n_samples_seen_ : int + The number of samples processed by the estimator. Will be reset on + new calls to fit, but increments across ``partial_fit`` calls. + + batch_size_ : int + Inferred batch size from ``batch_size``. + + n_features_in_ : int + Number of features seen during :term:`fit`. + + .. versionadded:: 0.24 + + feature_names_in_ : ndarray of shape (`n_features_in_`,) + Names of features seen during :term:`fit`. Defined only when `X` + has feature names that are all strings. + + .. versionadded:: 1.0 + + See Also + -------- + PCA : Principal component analysis (PCA). + KernelPCA : Kernel Principal component analysis (KPCA). + SparsePCA : Sparse Principal Components Analysis (SparsePCA). + TruncatedSVD : Dimensionality reduction using truncated SVD. + + Notes + ----- + Implements the incremental PCA model from: + *D. Ross, J. Lim, R. Lin, M. Yang, Incremental Learning for Robust Visual + Tracking, International Journal of Computer Vision, Volume 77, Issue 1-3, + pp. 125-141, May 2008.* + See https://www.cs.toronto.edu/~dross/ivt/RossLimLinYang_ijcv.pdf + + This model is an extension of the Sequential Karhunen-Loeve Transform from: + :doi:`A. Levy and M. Lindenbaum, Sequential Karhunen-Loeve Basis Extraction and + its Application to Images, IEEE Transactions on Image Processing, Volume 9, + Number 8, pp. 1371-1374, August 2000. <10.1109/83.855432>` + + We have specifically abstained from an optimization used by authors of both + papers, a QR decomposition used in specific situations to reduce the + algorithmic complexity of the SVD. The source for this technique is + *Matrix Computations, Third Edition, G. Holub and C. Van Loan, Chapter 5, + section 5.4.4, pp 252-253.*. This technique has been omitted because it is + advantageous only when decomposing a matrix with ``n_samples`` (rows) + >= 5/3 * ``n_features`` (columns), and hurts the readability of the + implemented algorithm. This would be a good opportunity for future + optimization, if it is deemed necessary. + + References + ---------- + D. Ross, J. Lim, R. Lin, M. Yang. Incremental Learning for Robust Visual + Tracking, International Journal of Computer Vision, Volume 77, + Issue 1-3, pp. 125-141, May 2008. + + G. Golub and C. Van Loan. Matrix Computations, Third Edition, Chapter 5, + Section 5.4.4, pp. 252-253. + + Examples + -------- + >>> from sklearn.datasets import load_digits + >>> from sklearn.decomposition import IncrementalPCA + >>> from scipy import sparse + >>> X, _ = load_digits(return_X_y=True) + >>> transformer = IncrementalPCA(n_components=7, batch_size=200) + >>> # either partially fit on smaller batches of data + >>> transformer.partial_fit(X[:100, :]) + IncrementalPCA(batch_size=200, n_components=7) + >>> # or let the fit function itself divide the data into batches + >>> X_sparse = sparse.csr_matrix(X) + >>> X_transformed = transformer.fit_transform(X_sparse) + >>> X_transformed.shape + (1797, 7) + """ + + __metadata_request__partial_fit = {"check_input": metadata_routing.UNUSED} + + _parameter_constraints: dict = { + "n_components": [Interval(Integral, 1, None, closed="left"), None], + "whiten": ["boolean"], + "copy": ["boolean"], + "batch_size": [Interval(Integral, 1, None, closed="left"), None], + } + + def __init__(self, n_components=None, *, whiten=False, copy=True, batch_size=None): + self.n_components = n_components + self.whiten = whiten + self.copy = copy + self.batch_size = batch_size + + @_fit_context(prefer_skip_nested_validation=True) + def fit(self, X, y=None): + """Fit the model with X, using minibatches of size batch_size. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + Training data, where `n_samples` is the number of samples and + `n_features` is the number of features. + + y : Ignored + Not used, present for API consistency by convention. + + Returns + ------- + self : object + Returns the instance itself. + """ + self.components_ = None + self.n_samples_seen_ = 0 + self.mean_ = 0.0 + self.var_ = 0.0 + self.singular_values_ = None + self.explained_variance_ = None + self.explained_variance_ratio_ = None + self.noise_variance_ = None + + X = validate_data( + self, + X, + accept_sparse=["csr", "csc", "lil"], + copy=self.copy, + dtype=[np.float64, np.float32], + force_writeable=True, + ) + n_samples, n_features = X.shape + + if self.batch_size is None: + self.batch_size_ = 5 * n_features + else: + self.batch_size_ = self.batch_size + + for batch in gen_batches( + n_samples, self.batch_size_, min_batch_size=self.n_components or 0 + ): + X_batch = X[batch] + if sparse.issparse(X_batch): + X_batch = X_batch.toarray() + self.partial_fit(X_batch, check_input=False) + + return self + + @_fit_context(prefer_skip_nested_validation=True) + def partial_fit(self, X, y=None, check_input=True): + """Incremental fit with X. All of X is processed as a single batch. + + Parameters + ---------- + X : array-like of shape (n_samples, n_features) + Training data, where `n_samples` is the number of samples and + `n_features` is the number of features. + + y : Ignored + Not used, present for API consistency by convention. + + check_input : bool, default=True + Run check_array on X. + + Returns + ------- + self : object + Returns the instance itself. + """ + first_pass = not hasattr(self, "components_") + + if check_input: + if sparse.issparse(X): + raise TypeError( + "IncrementalPCA.partial_fit does not support " + "sparse input. Either convert data to dense " + "or use IncrementalPCA.fit to do so in batches." + ) + X = validate_data( + self, + X, + copy=self.copy, + dtype=[np.float64, np.float32], + force_writeable=True, + reset=first_pass, + ) + n_samples, n_features = X.shape + if first_pass: + self.components_ = None + + if self.n_components is None: + if self.components_ is None: + self.n_components_ = min(n_samples, n_features) + else: + self.n_components_ = self.components_.shape[0] + elif not self.n_components <= n_features: + raise ValueError( + "n_components=%r invalid for n_features=%d, need " + "more rows than columns for IncrementalPCA " + "processing" % (self.n_components, n_features) + ) + elif self.n_components > n_samples and first_pass: + raise ValueError( + f"n_components={self.n_components} must be less or equal to " + f"the batch number of samples {n_samples} for the first " + "partial_fit call." + ) + else: + self.n_components_ = self.n_components + + if (self.components_ is not None) and ( + self.components_.shape[0] != self.n_components_ + ): + raise ValueError( + "Number of input features has changed from %i " + "to %i between calls to partial_fit! Try " + "setting n_components to a fixed value." + % (self.components_.shape[0], self.n_components_) + ) + + # This is the first partial_fit + if not hasattr(self, "n_samples_seen_"): + self.n_samples_seen_ = 0 + self.mean_ = 0.0 + self.var_ = 0.0 + + # Update stats - they are 0 if this is the first step + col_mean, col_var, n_total_samples = _incremental_mean_and_var( + X, + last_mean=self.mean_, + last_variance=self.var_, + last_sample_count=np.repeat(self.n_samples_seen_, X.shape[1]), + ) + n_total_samples = n_total_samples[0] + + # Whitening + if self.n_samples_seen_ == 0: + # If it is the first step, simply whiten X + X -= col_mean + else: + col_batch_mean = np.mean(X, axis=0) + X -= col_batch_mean + # Build matrix of combined previous basis and new data + mean_correction = np.sqrt( + (self.n_samples_seen_ / n_total_samples) * n_samples + ) * (self.mean_ - col_batch_mean) + X = np.vstack( + ( + self.singular_values_.reshape((-1, 1)) * self.components_, + X, + mean_correction, + ) + ) + + U, S, Vt = linalg.svd(X, full_matrices=False, check_finite=False) + U, Vt = svd_flip(U, Vt, u_based_decision=False) + explained_variance = S**2 / (n_total_samples - 1) + explained_variance_ratio = S**2 / np.sum(col_var * n_total_samples) + + self.n_samples_seen_ = n_total_samples + self.components_ = Vt[: self.n_components_] + self.singular_values_ = S[: self.n_components_] + self.mean_ = col_mean + self.var_ = col_var + self.explained_variance_ = explained_variance[: self.n_components_] + self.explained_variance_ratio_ = explained_variance_ratio[: self.n_components_] + # we already checked `self.n_components <= n_samples` above + if self.n_components_ not in (n_samples, n_features): + self.noise_variance_ = explained_variance[self.n_components_ :].mean() + else: + self.noise_variance_ = 0.0 + return self + + def transform(self, X): + """Apply dimensionality reduction to X. + + X is projected on the first principal components previously extracted + from a training set, using minibatches of size batch_size if X is + sparse. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + New data, where `n_samples` is the number of samples + and `n_features` is the number of features. + + Returns + ------- + X_new : ndarray of shape (n_samples, n_components) + Projection of X in the first principal components. + + Examples + -------- + + >>> import numpy as np + >>> from sklearn.decomposition import IncrementalPCA + >>> X = np.array([[-1, -1], [-2, -1], [-3, -2], + ... [1, 1], [2, 1], [3, 2]]) + >>> ipca = IncrementalPCA(n_components=2, batch_size=3) + >>> ipca.fit(X) + IncrementalPCA(batch_size=3, n_components=2) + >>> ipca.transform(X) # doctest: +SKIP + """ + if sparse.issparse(X): + n_samples = X.shape[0] + output = [] + for batch in gen_batches( + n_samples, self.batch_size_, min_batch_size=self.n_components or 0 + ): + output.append(super().transform(X[batch].toarray())) + return np.vstack(output) + else: + return super().transform(X) + + def __sklearn_tags__(self): + tags = super().__sklearn_tags__() + # Beware that fit accepts sparse data but partial_fit doesn't + tags.input_tags.sparse = True + return tags diff --git a/shared/package-files/e9/e9d5f86e6d6078edc2b72a2dacd1ff8cf07d8963c8a494dc67c3d4bdd340bf25/blob b/shared/package-files/e9/e9d5f86e6d6078edc2b72a2dacd1ff8cf07d8963c8a494dc67c3d4bdd340bf25/blob new file mode 100644 index 0000000000000000000000000000000000000000..40c4bf08033ac7fb96c01587ac48fc47784314c5 --- /dev/null +++ b/shared/package-files/e9/e9d5f86e6d6078edc2b72a2dacd1ff8cf07d8963c8a494dc67c3d4bdd340bf25/blob @@ -0,0 +1,382 @@ +import bz2 +import os +import pickle + +import pytest + +import networkx as nx + + +@pytest.fixture +def simple_flow_graph(): + G = nx.DiGraph() + G.add_node("a", demand=0) + G.add_node("b", demand=-5) + G.add_node("c", demand=50000000) + G.add_node("d", demand=-49999995) + G.add_edge("a", "b", weight=3, capacity=4) + G.add_edge("a", "c", weight=6, capacity=10) + G.add_edge("b", "d", weight=1, capacity=9) + G.add_edge("c", "d", weight=2, capacity=5) + return G + + +@pytest.fixture +def simple_no_flow_graph(): + G = nx.DiGraph() + G.add_node("s", demand=-5) + G.add_node("t", demand=5) + G.add_edge("s", "a", weight=1, capacity=3) + G.add_edge("a", "b", weight=3) + G.add_edge("a", "c", weight=-6) + G.add_edge("b", "d", weight=1) + G.add_edge("c", "d", weight=-2) + G.add_edge("d", "t", weight=1, capacity=3) + return G + + +def get_flowcost_from_flowdict(G, flowDict): + """Returns flow cost calculated from flow dictionary""" + flowCost = 0 + for u in flowDict: + for v in flowDict[u]: + flowCost += flowDict[u][v] * G[u][v]["weight"] + return flowCost + + +def test_infinite_demand_raise(simple_flow_graph): + G = simple_flow_graph + inf = float("inf") + nx.set_node_attributes(G, {"a": {"demand": inf}}) + pytest.raises(nx.NetworkXError, nx.network_simplex, G) + + +def test_neg_infinite_demand_raise(simple_flow_graph): + G = simple_flow_graph + inf = float("inf") + nx.set_node_attributes(G, {"a": {"demand": -inf}}) + pytest.raises(nx.NetworkXError, nx.network_simplex, G) + + +def test_infinite_weight_raise(simple_flow_graph): + G = simple_flow_graph + inf = float("inf") + nx.set_edge_attributes( + G, {("a", "b"): {"weight": inf}, ("b", "d"): {"weight": inf}} + ) + pytest.raises(nx.NetworkXError, nx.network_simplex, G) + + +def test_nonzero_net_demand_raise(simple_flow_graph): + G = simple_flow_graph + nx.set_node_attributes(G, {"b": {"demand": -4}}) + pytest.raises(nx.NetworkXUnfeasible, nx.network_simplex, G) + + +def test_negative_capacity_raise(simple_flow_graph): + G = simple_flow_graph + nx.set_edge_attributes(G, {("a", "b"): {"weight": 1}, ("b", "d"): {"capacity": -9}}) + pytest.raises(nx.NetworkXUnfeasible, nx.network_simplex, G) + + +def test_no_flow_satisfying_demands(simple_no_flow_graph): + G = simple_no_flow_graph + pytest.raises(nx.NetworkXUnfeasible, nx.network_simplex, G) + + +def test_sum_demands_not_zero(simple_no_flow_graph): + G = simple_no_flow_graph + nx.set_node_attributes(G, {"t": {"demand": 4}}) + pytest.raises(nx.NetworkXUnfeasible, nx.network_simplex, G) + + +def test_google_or_tools_example(): + """ + https://developers.google.com/optimization/flow/mincostflow + """ + G = nx.DiGraph() + start_nodes = [0, 0, 1, 1, 1, 2, 2, 3, 4] + end_nodes = [1, 2, 2, 3, 4, 3, 4, 4, 2] + capacities = [15, 8, 20, 4, 10, 15, 4, 20, 5] + unit_costs = [4, 4, 2, 2, 6, 1, 3, 2, 3] + supplies = [20, 0, 0, -5, -15] + answer = 150 + + for i in range(len(supplies)): + G.add_node(i, demand=(-1) * supplies[i]) # supplies are negative of demand + + for i in range(len(start_nodes)): + G.add_edge( + start_nodes[i], end_nodes[i], weight=unit_costs[i], capacity=capacities[i] + ) + + flowCost, flowDict = nx.network_simplex(G) + assert flowCost == answer + assert flowCost == get_flowcost_from_flowdict(G, flowDict) + + +def test_google_or_tools_example2(): + """ + https://developers.google.com/optimization/flow/mincostflow + """ + G = nx.DiGraph() + start_nodes = [0, 0, 1, 1, 1, 2, 2, 3, 4, 3] + end_nodes = [1, 2, 2, 3, 4, 3, 4, 4, 2, 5] + capacities = [15, 8, 20, 4, 10, 15, 4, 20, 5, 10] + unit_costs = [4, 4, 2, 2, 6, 1, 3, 2, 3, 4] + supplies = [23, 0, 0, -5, -15, -3] + answer = 183 + + for i in range(len(supplies)): + G.add_node(i, demand=(-1) * supplies[i]) # supplies are negative of demand + + for i in range(len(start_nodes)): + G.add_edge( + start_nodes[i], end_nodes[i], weight=unit_costs[i], capacity=capacities[i] + ) + + flowCost, flowDict = nx.network_simplex(G) + assert flowCost == answer + assert flowCost == get_flowcost_from_flowdict(G, flowDict) + + +def test_large(): + fname = os.path.join(os.path.dirname(__file__), "netgen-2.gpickle.bz2") + with bz2.BZ2File(fname, "rb") as f: + G = pickle.load(f) + flowCost, flowDict = nx.network_simplex(G) + assert 6749969302 == flowCost + assert 6749969302 == nx.cost_of_flow(G, flowDict) + + +def test_simple_digraph(): + G = nx.DiGraph() + G.add_node("a", demand=-5) + G.add_node("d", demand=5) + G.add_edge("a", "b", weight=3, capacity=4) + G.add_edge("a", "c", weight=6, capacity=10) + G.add_edge("b", "d", weight=1, capacity=9) + G.add_edge("c", "d", weight=2, capacity=5) + flowCost, H = nx.network_simplex(G) + soln = {"a": {"b": 4, "c": 1}, "b": {"d": 4}, "c": {"d": 1}, "d": {}} + assert flowCost == 24 + assert nx.min_cost_flow_cost(G) == 24 + assert H == soln + + +def test_negcycle_infcap(): + G = nx.DiGraph() + G.add_node("s", demand=-5) + G.add_node("t", demand=5) + G.add_edge("s", "a", weight=1, capacity=3) + G.add_edge("a", "b", weight=3) + G.add_edge("c", "a", weight=-6) + G.add_edge("b", "d", weight=1) + G.add_edge("d", "c", weight=-2) + G.add_edge("d", "t", weight=1, capacity=3) + pytest.raises(nx.NetworkXUnfeasible, nx.network_simplex, G) + + +def test_transshipment(): + G = nx.DiGraph() + G.add_node("a", demand=1) + G.add_node("b", demand=-2) + G.add_node("c", demand=-2) + G.add_node("d", demand=3) + G.add_node("e", demand=-4) + G.add_node("f", demand=-4) + G.add_node("g", demand=3) + G.add_node("h", demand=2) + G.add_node("r", demand=3) + G.add_edge("a", "c", weight=3) + G.add_edge("r", "a", weight=2) + G.add_edge("b", "a", weight=9) + G.add_edge("r", "c", weight=0) + G.add_edge("b", "r", weight=-6) + G.add_edge("c", "d", weight=5) + G.add_edge("e", "r", weight=4) + G.add_edge("e", "f", weight=3) + G.add_edge("h", "b", weight=4) + G.add_edge("f", "d", weight=7) + G.add_edge("f", "h", weight=12) + G.add_edge("g", "d", weight=12) + G.add_edge("f", "g", weight=-1) + G.add_edge("h", "g", weight=-10) + flowCost, H = nx.network_simplex(G) + soln = { + "a": {"c": 0}, + "b": {"a": 0, "r": 2}, + "c": {"d": 3}, + "d": {}, + "e": {"r": 3, "f": 1}, + "f": {"d": 0, "g": 3, "h": 2}, + "g": {"d": 0}, + "h": {"b": 0, "g": 0}, + "r": {"a": 1, "c": 1}, + } + assert flowCost == 41 + assert H == soln + + +def test_digraph1(): + # From Bradley, S. P., Hax, A. C. and Magnanti, T. L. Applied + # Mathematical Programming. Addison-Wesley, 1977. + G = nx.DiGraph() + G.add_node(1, demand=-20) + G.add_node(4, demand=5) + G.add_node(5, demand=15) + G.add_edges_from( + [ + (1, 2, {"capacity": 15, "weight": 4}), + (1, 3, {"capacity": 8, "weight": 4}), + (2, 3, {"weight": 2}), + (2, 4, {"capacity": 4, "weight": 2}), + (2, 5, {"capacity": 10, "weight": 6}), + (3, 4, {"capacity": 15, "weight": 1}), + (3, 5, {"capacity": 5, "weight": 3}), + (4, 5, {"weight": 2}), + (5, 3, {"capacity": 4, "weight": 1}), + ] + ) + flowCost, H = nx.network_simplex(G) + soln = { + 1: {2: 12, 3: 8}, + 2: {3: 8, 4: 4, 5: 0}, + 3: {4: 11, 5: 5}, + 4: {5: 10}, + 5: {3: 0}, + } + assert flowCost == 150 + assert nx.min_cost_flow_cost(G) == 150 + assert H == soln + + +def test_zero_capacity_edges(): + """Address issue raised in ticket #617 by arv.""" + G = nx.DiGraph() + G.add_edges_from( + [ + (1, 2, {"capacity": 1, "weight": 1}), + (1, 5, {"capacity": 1, "weight": 1}), + (2, 3, {"capacity": 0, "weight": 1}), + (2, 5, {"capacity": 1, "weight": 1}), + (5, 3, {"capacity": 2, "weight": 1}), + (5, 4, {"capacity": 0, "weight": 1}), + (3, 4, {"capacity": 2, "weight": 1}), + ] + ) + G.nodes[1]["demand"] = -1 + G.nodes[2]["demand"] = -1 + G.nodes[4]["demand"] = 2 + + flowCost, H = nx.network_simplex(G) + soln = {1: {2: 0, 5: 1}, 2: {3: 0, 5: 1}, 3: {4: 2}, 4: {}, 5: {3: 2, 4: 0}} + assert flowCost == 6 + assert nx.min_cost_flow_cost(G) == 6 + assert H == soln + + +def test_digon(): + """Check if digons are handled properly. Taken from ticket + #618 by arv.""" + nodes = [(1, {}), (2, {"demand": -4}), (3, {"demand": 4})] + edges = [ + (1, 2, {"capacity": 3, "weight": 600000}), + (2, 1, {"capacity": 2, "weight": 0}), + (2, 3, {"capacity": 5, "weight": 714285}), + (3, 2, {"capacity": 2, "weight": 0}), + ] + G = nx.DiGraph(edges) + G.add_nodes_from(nodes) + flowCost, H = nx.network_simplex(G) + soln = {1: {2: 0}, 2: {1: 0, 3: 4}, 3: {2: 0}} + assert flowCost == 2857140 + + +def test_deadend(): + """Check if one-node cycles are handled properly. Taken from ticket + #2906 from @sshraven.""" + G = nx.DiGraph() + + G.add_nodes_from(range(5), demand=0) + G.nodes[4]["demand"] = -13 + G.nodes[3]["demand"] = 13 + + G.add_edges_from([(0, 2), (0, 3), (2, 1)], capacity=20, weight=0.1) + pytest.raises(nx.NetworkXUnfeasible, nx.network_simplex, G) + + +def test_infinite_capacity_neg_digon(): + """An infinite capacity negative cost digon results in an unbounded + instance.""" + nodes = [(1, {}), (2, {"demand": -4}), (3, {"demand": 4})] + edges = [ + (1, 2, {"weight": -600}), + (2, 1, {"weight": 0}), + (2, 3, {"capacity": 5, "weight": 714285}), + (3, 2, {"capacity": 2, "weight": 0}), + ] + G = nx.DiGraph(edges) + G.add_nodes_from(nodes) + pytest.raises(nx.NetworkXUnbounded, nx.network_simplex, G) + + +def test_multidigraph(): + """Multidigraphs are acceptable.""" + G = nx.MultiDiGraph() + G.add_weighted_edges_from([(1, 2, 1), (2, 3, 2)], weight="capacity") + flowCost, H = nx.network_simplex(G) + assert flowCost == 0 + assert H == {1: {2: {0: 0}}, 2: {3: {0: 0}}, 3: {}} + + +def test_negative_selfloops(): + """Negative selfloops should cause an exception if uncapacitated and + always be saturated otherwise. + """ + G = nx.DiGraph() + G.add_edge(1, 1, weight=-1) + pytest.raises(nx.NetworkXUnbounded, nx.network_simplex, G) + + G[1][1]["capacity"] = 2 + flowCost, H = nx.network_simplex(G) + assert flowCost == -2 + assert H == {1: {1: 2}} + + G = nx.MultiDiGraph() + G.add_edge(1, 1, "x", weight=-1) + G.add_edge(1, 1, "y", weight=1) + pytest.raises(nx.NetworkXUnbounded, nx.network_simplex, G) + + G[1][1]["x"]["capacity"] = 2 + flowCost, H = nx.network_simplex(G) + assert flowCost == -2 + assert H == {1: {1: {"x": 2, "y": 0}}} + + +def test_bone_shaped(): + # From #1283 + G = nx.DiGraph() + G.add_node(0, demand=-4) + G.add_node(1, demand=2) + G.add_node(2, demand=2) + G.add_node(3, demand=4) + G.add_node(4, demand=-2) + G.add_node(5, demand=-2) + G.add_edge(0, 1, capacity=4) + G.add_edge(0, 2, capacity=4) + G.add_edge(4, 3, capacity=4) + G.add_edge(5, 3, capacity=4) + G.add_edge(0, 3, capacity=0) + flowCost, H = nx.network_simplex(G) + assert flowCost == 0 + assert H == {0: {1: 2, 2: 2, 3: 0}, 1: {}, 2: {}, 3: {}, 4: {3: 2}, 5: {3: 2}} + + +def test_graphs_type_exceptions(): + G = nx.Graph() + pytest.raises(nx.NetworkXNotImplemented, nx.network_simplex, G) + G = nx.MultiGraph() + pytest.raises(nx.NetworkXNotImplemented, nx.network_simplex, G) + G = nx.DiGraph() + pytest.raises(nx.NetworkXError, nx.network_simplex, G) diff --git a/shared/package-files/e9/e9dd91e5ac2e1d14f8c7381f51fc12ec91d3aa184089e497704365b2c0ffd9ce/blob b/shared/package-files/e9/e9dd91e5ac2e1d14f8c7381f51fc12ec91d3aa184089e497704365b2c0ffd9ce/blob new file mode 100644 index 0000000000000000000000000000000000000000..b9aa9fc007cb8efdfdd13138671f0412d45d63a2 --- /dev/null +++ b/shared/package-files/e9/e9dd91e5ac2e1d14f8c7381f51fc12ec91d3aa184089e497704365b2c0ffd9ce/blob @@ -0,0 +1,323 @@ +""" + +Rules for building C/API module with f2py2e. + +Copyright 1999 -- 2011 Pearu Peterson all rights reserved. +Copyright 2011 -- present NumPy Developers. +Permission to use, modify, and distribute this software is given under the +terms of the NumPy License. + +NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. +""" +import copy + +from .auxfuncs import ( + getfortranname, isexternal, isfunction, isfunction_wrap, isintent_in, + isintent_out, islogicalfunction, ismoduleroutine, isscalar, + issubroutine, issubroutine_wrap, outmess, show +) + +from ._isocbind import isoc_kindmap + +def var2fixfortran(vars, a, fa=None, f90mode=None): + if fa is None: + fa = a + if a not in vars: + show(vars) + outmess('var2fixfortran: No definition for argument "%s".\n' % a) + return '' + if 'typespec' not in vars[a]: + show(vars[a]) + outmess('var2fixfortran: No typespec for argument "%s".\n' % a) + return '' + vardef = vars[a]['typespec'] + if vardef == 'type' and 'typename' in vars[a]: + vardef = '%s(%s)' % (vardef, vars[a]['typename']) + selector = {} + lk = '' + if 'kindselector' in vars[a]: + selector = vars[a]['kindselector'] + lk = 'kind' + elif 'charselector' in vars[a]: + selector = vars[a]['charselector'] + lk = 'len' + if '*' in selector: + if f90mode: + if selector['*'] in ['*', ':', '(*)']: + vardef = '%s(len=*)' % (vardef) + else: + vardef = '%s(%s=%s)' % (vardef, lk, selector['*']) + else: + if selector['*'] in ['*', ':']: + vardef = '%s*(%s)' % (vardef, selector['*']) + else: + vardef = '%s*%s' % (vardef, selector['*']) + else: + if 'len' in selector: + vardef = '%s(len=%s' % (vardef, selector['len']) + if 'kind' in selector: + vardef = '%s,kind=%s)' % (vardef, selector['kind']) + else: + vardef = '%s)' % (vardef) + elif 'kind' in selector: + vardef = '%s(kind=%s)' % (vardef, selector['kind']) + + vardef = '%s %s' % (vardef, fa) + if 'dimension' in vars[a]: + vardef = '%s(%s)' % (vardef, ','.join(vars[a]['dimension'])) + return vardef + +def useiso_c_binding(rout): + useisoc = False + for key, value in rout['vars'].items(): + kind_value = value.get('kindselector', {}).get('kind') + if kind_value in isoc_kindmap: + return True + return useisoc + +def createfuncwrapper(rout, signature=0): + assert isfunction(rout) + + extra_args = [] + vars = rout['vars'] + for a in rout['args']: + v = rout['vars'][a] + for i, d in enumerate(v.get('dimension', [])): + if d == ':': + dn = 'f2py_%s_d%s' % (a, i) + dv = dict(typespec='integer', intent=['hide']) + dv['='] = 'shape(%s, %s)' % (a, i) + extra_args.append(dn) + vars[dn] = dv + v['dimension'][i] = dn + rout['args'].extend(extra_args) + need_interface = bool(extra_args) + + ret = [''] + + def add(line, ret=ret): + ret[0] = '%s\n %s' % (ret[0], line) + name = rout['name'] + fortranname = getfortranname(rout) + f90mode = ismoduleroutine(rout) + newname = '%sf2pywrap' % (name) + + if newname not in vars: + vars[newname] = vars[name] + args = [newname] + rout['args'][1:] + else: + args = [newname] + rout['args'] + + l_tmpl = var2fixfortran(vars, name, '@@@NAME@@@', f90mode) + if l_tmpl[:13] == 'character*(*)': + if f90mode: + l_tmpl = 'character(len=10)' + l_tmpl[13:] + else: + l_tmpl = 'character*10' + l_tmpl[13:] + charselect = vars[name]['charselector'] + if charselect.get('*', '') == '(*)': + charselect['*'] = '10' + + l1 = l_tmpl.replace('@@@NAME@@@', newname) + rl = None + + useisoc = useiso_c_binding(rout) + sargs = ', '.join(args) + if f90mode: + # gh-23598 fix warning + # Essentially, this gets called again with modules where the name of the + # function is added to the arguments, which is not required, and removed + sargs = sargs.replace(f"{name}, ", '') + args = [arg for arg in args if arg != name] + rout['args'] = args + add('subroutine f2pywrap_%s_%s (%s)' % + (rout['modulename'], name, sargs)) + if not signature: + add('use %s, only : %s' % (rout['modulename'], fortranname)) + if useisoc: + add('use iso_c_binding') + else: + add('subroutine f2pywrap%s (%s)' % (name, sargs)) + if useisoc: + add('use iso_c_binding') + if not need_interface: + add('external %s' % (fortranname)) + rl = l_tmpl.replace('@@@NAME@@@', '') + ' ' + fortranname + + if need_interface: + for line in rout['saved_interface'].split('\n'): + if line.lstrip().startswith('use ') and '__user__' not in line: + add(line) + + args = args[1:] + dumped_args = [] + for a in args: + if isexternal(vars[a]): + add('external %s' % (a)) + dumped_args.append(a) + for a in args: + if a in dumped_args: + continue + if isscalar(vars[a]): + add(var2fixfortran(vars, a, f90mode=f90mode)) + dumped_args.append(a) + for a in args: + if a in dumped_args: + continue + if isintent_in(vars[a]): + add(var2fixfortran(vars, a, f90mode=f90mode)) + dumped_args.append(a) + for a in args: + if a in dumped_args: + continue + add(var2fixfortran(vars, a, f90mode=f90mode)) + + add(l1) + if rl is not None: + add(rl) + + if need_interface: + if f90mode: + # f90 module already defines needed interface + pass + else: + add('interface') + add(rout['saved_interface'].lstrip()) + add('end interface') + + sargs = ', '.join([a for a in args if a not in extra_args]) + + if not signature: + if islogicalfunction(rout): + add('%s = .not.(.not.%s(%s))' % (newname, fortranname, sargs)) + else: + add('%s = %s(%s)' % (newname, fortranname, sargs)) + if f90mode: + add('end subroutine f2pywrap_%s_%s' % (rout['modulename'], name)) + else: + add('end') + return ret[0] + + +def createsubrwrapper(rout, signature=0): + assert issubroutine(rout) + + extra_args = [] + vars = rout['vars'] + for a in rout['args']: + v = rout['vars'][a] + for i, d in enumerate(v.get('dimension', [])): + if d == ':': + dn = 'f2py_%s_d%s' % (a, i) + dv = dict(typespec='integer', intent=['hide']) + dv['='] = 'shape(%s, %s)' % (a, i) + extra_args.append(dn) + vars[dn] = dv + v['dimension'][i] = dn + rout['args'].extend(extra_args) + need_interface = bool(extra_args) + + ret = [''] + + def add(line, ret=ret): + ret[0] = '%s\n %s' % (ret[0], line) + name = rout['name'] + fortranname = getfortranname(rout) + f90mode = ismoduleroutine(rout) + + args = rout['args'] + + useisoc = useiso_c_binding(rout) + sargs = ', '.join(args) + if f90mode: + add('subroutine f2pywrap_%s_%s (%s)' % + (rout['modulename'], name, sargs)) + if useisoc: + add('use iso_c_binding') + if not signature: + add('use %s, only : %s' % (rout['modulename'], fortranname)) + else: + add('subroutine f2pywrap%s (%s)' % (name, sargs)) + if useisoc: + add('use iso_c_binding') + if not need_interface: + add('external %s' % (fortranname)) + + if need_interface: + for line in rout['saved_interface'].split('\n'): + if line.lstrip().startswith('use ') and '__user__' not in line: + add(line) + + dumped_args = [] + for a in args: + if isexternal(vars[a]): + add('external %s' % (a)) + dumped_args.append(a) + for a in args: + if a in dumped_args: + continue + if isscalar(vars[a]): + add(var2fixfortran(vars, a, f90mode=f90mode)) + dumped_args.append(a) + for a in args: + if a in dumped_args: + continue + add(var2fixfortran(vars, a, f90mode=f90mode)) + + if need_interface: + if f90mode: + # f90 module already defines needed interface + pass + else: + add('interface') + for line in rout['saved_interface'].split('\n'): + if line.lstrip().startswith('use ') and '__user__' in line: + continue + add(line) + add('end interface') + + sargs = ', '.join([a for a in args if a not in extra_args]) + + if not signature: + add('call %s(%s)' % (fortranname, sargs)) + if f90mode: + add('end subroutine f2pywrap_%s_%s' % (rout['modulename'], name)) + else: + add('end') + return ret[0] + + +def assubr(rout): + if isfunction_wrap(rout): + fortranname = getfortranname(rout) + name = rout['name'] + outmess('\t\tCreating wrapper for Fortran function "%s"("%s")...\n' % ( + name, fortranname)) + rout = copy.copy(rout) + fname = name + rname = fname + if 'result' in rout: + rname = rout['result'] + rout['vars'][fname] = rout['vars'][rname] + fvar = rout['vars'][fname] + if not isintent_out(fvar): + if 'intent' not in fvar: + fvar['intent'] = [] + fvar['intent'].append('out') + flag = 1 + for i in fvar['intent']: + if i.startswith('out='): + flag = 0 + break + if flag: + fvar['intent'].append('out=%s' % (rname)) + rout['args'][:] = [fname] + rout['args'] + return rout, createfuncwrapper(rout) + if issubroutine_wrap(rout): + fortranname = getfortranname(rout) + name = rout['name'] + outmess('\t\tCreating wrapper for Fortran subroutine "%s"("%s")...\n' + % (name, fortranname)) + rout = copy.copy(rout) + return rout, createsubrwrapper(rout) + return rout, '' diff --git a/shared/package-files/e9/e9dfeb9574fffef2f3b0ee80bbebdcc10d25ed6c2b73c71edf856f10d06c3ca9/blob b/shared/package-files/e9/e9dfeb9574fffef2f3b0ee80bbebdcc10d25ed6c2b73c71edf856f10d06c3ca9/blob new file mode 100644 index 0000000000000000000000000000000000000000..f21daeb1bfe50734f5646f253d62d86a33406c04 --- /dev/null +++ b/shared/package-files/e9/e9dfeb9574fffef2f3b0ee80bbebdcc10d25ed6c2b73c71edf856f10d06c3ca9/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor i0(const at::Tensor & self); +TORCH_API at::Tensor & i0_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & i0_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & i0_(at::Tensor & self); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/e9/e9e3957289044ad87b87acb279e8558b3c7ad45b700dd55b17cc15f23dedf887/blob b/shared/package-files/e9/e9e3957289044ad87b87acb279e8558b3c7ad45b700dd55b17cc15f23dedf887/blob new file mode 100644 index 0000000000000000000000000000000000000000..27b68ff0f60447e6695d786de9a72ecbb59f7884 --- /dev/null +++ b/shared/package-files/e9/e9e3957289044ad87b87acb279e8558b3c7ad45b700dd55b17cc15f23dedf887/blob @@ -0,0 +1,12 @@ +import pytest + +import pandas.util._test_decorators as td + +from pandas import option_context + + +@td.skip_if_installed("numba") +def test_numba_not_installed_option_context(): + with pytest.raises(ImportError, match="Missing optional"): + with option_context("compute.use_numba", True): + pass diff --git a/shared/package-files/e9/e9e5373530198dde4ab9909568f01e2b32a26f4c2c9287eeffcd79f93e5a33ca/blob b/shared/package-files/e9/e9e5373530198dde4ab9909568f01e2b32a26f4c2c9287eeffcd79f93e5a33ca/blob new file mode 100644 index 0000000000000000000000000000000000000000..cff5cbb1b3b47ba1d200674d326c8c8adafd2279 --- /dev/null +++ b/shared/package-files/e9/e9e5373530198dde4ab9909568f01e2b32a26f4c2c9287eeffcd79f93e5a33ca/blob @@ -0,0 +1,47 @@ +Metadata-Version: 2.1 +Name: lark +Version: 1.1.9 +Summary: a modern parsing library +Author-email: Erez Shinan +License: MIT +Project-URL: Homepage, https://github.com/lark-parser/lark +Project-URL: Download, https://github.com/lark-parser/lark/tarball/master +Keywords: Earley,LALR,parser,parsing,ast +Classifier: Development Status :: 5 - Production/Stable +Classifier: Intended Audience :: Developers +Classifier: Programming Language :: Python :: 3 +Classifier: Topic :: Software Development :: Libraries :: Python Modules +Classifier: Topic :: Text Processing :: General +Classifier: Topic :: Text Processing :: Linguistic +Classifier: License :: OSI Approved :: MIT License +Requires-Python: >=3.6 +Description-Content-Type: text/markdown +License-File: LICENSE +Provides-Extra: atomic_cache +Requires-Dist: atomicwrites ; extra == 'atomic_cache' +Provides-Extra: interegular +Requires-Dist: interegular <0.4.0,>=0.3.1 ; extra == 'interegular' +Provides-Extra: nearley +Requires-Dist: js2py ; extra == 'nearley' +Provides-Extra: regex +Requires-Dist: regex ; extra == 'regex' + +Lark is a modern general-purpose parsing library for Python. +With Lark, you can parse any context-free grammar, efficiently, with very little code. +Main Features: +- Builds a parse-tree (AST) automagically, based on the structure of the grammar +- Earley parser +- Can parse all context-free grammars +- Full support for ambiguous grammars +- LALR(1) parser +- Fast and light, competitive with PLY +- Can generate a stand-alone parser +- CYK parser, for highly ambiguous grammars +- EBNF grammar +- Unicode fully supported +- Automatic line & column tracking +- Standard library of terminals (strings, numbers, names, etc.) +- Import grammars from Nearley.js +- Extensive test suite +- And much more! +Since version 1.0, only Python versions 3.6 and up are supported. diff --git a/shared/package-files/e9/e9e849541b917eeb3e807d96e5fb9588a8ae06e5885bce639512301a4cd0b8d5/blob b/shared/package-files/e9/e9e849541b917eeb3e807d96e5fb9588a8ae06e5885bce639512301a4cd0b8d5/blob new file mode 100644 index 0000000000000000000000000000000000000000..8373799b35a254400d5815eaa852944f9fc0b343 --- /dev/null +++ b/shared/package-files/e9/e9e849541b917eeb3e807d96e5fb9588a8ae06e5885bce639512301a4cd0b8d5/blob @@ -0,0 +1,30 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::instance_norm(Tensor input, Tensor? weight, Tensor? bias, Tensor? running_mean, Tensor? running_var, bool use_input_stats, float momentum, float eps, bool cudnn_enabled) -> Tensor +inline at::Tensor instance_norm(const at::Tensor & input, const c10::optional & weight, const c10::optional & bias, const c10::optional & running_mean, const c10::optional & running_var, bool use_input_stats, double momentum, double eps, bool cudnn_enabled) { + return at::_ops::instance_norm::call(input, weight, bias, running_mean, running_var, use_input_stats, momentum, eps, cudnn_enabled); +} + +} diff --git a/shared/package-files/e9/e9ebeb958eec680c5458b3a5c39aecf0a21c926aee816517b5f9d3bac5815d7f/blob b/shared/package-files/e9/e9ebeb958eec680c5458b3a5c39aecf0a21c926aee816517b5f9d3bac5815d7f/blob new file mode 100644 index 0000000000000000000000000000000000000000..8c30e64c3d640e88ac47fcee4e9dc5401824383b Binary files /dev/null and b/shared/package-files/e9/e9ebeb958eec680c5458b3a5c39aecf0a21c926aee816517b5f9d3bac5815d7f/blob differ diff --git a/shared/package-files/e9/e9ed07d7bee0c76a9d442d091ef1f01668fee7c4f26014c0a868b19fe6c18a95/blob b/shared/package-files/e9/e9ed07d7bee0c76a9d442d091ef1f01668fee7c4f26014c0a868b19fe6c18a95/blob new file mode 100644 index 0000000000000000000000000000000000000000..a8b9ab1992257d721ad627b14f535c3d4b020888 Binary files /dev/null and b/shared/package-files/e9/e9ed07d7bee0c76a9d442d091ef1f01668fee7c4f26014c0a868b19fe6c18a95/blob differ diff --git a/shared/package-files/e9/e9ee99a08b06fa913c150e5a5389d127bd6f54bdd4f64ebdee0ecf60a0ec573e/blob b/shared/package-files/e9/e9ee99a08b06fa913c150e5a5389d127bd6f54bdd4f64ebdee0ecf60a0ec573e/blob new file mode 100644 index 0000000000000000000000000000000000000000..78860e0650e741a95e7f8bc0c5ab35bc1c01cf79 --- /dev/null +++ b/shared/package-files/e9/e9ee99a08b06fa913c150e5a5389d127bd6f54bdd4f64ebdee0ecf60a0ec573e/blob @@ -0,0 +1,489 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include +#include +#include + +#include "arrow/c/abi.h" +#include "arrow/device.h" +#include "arrow/result.h" +#include "arrow/status.h" +#include "arrow/type_fwd.h" +#include "arrow/util/async_generator_fwd.h" +#include "arrow/util/macros.h" +#include "arrow/util/visibility.h" + +namespace arrow { + +/// \defgroup c-data-interface Functions for working with the C data interface. +/// +/// @{ + +/// \brief Export C++ DataType using the C data interface format. +/// +/// The root type is considered to have empty name and metadata. +/// If you want the root type to have a name and/or metadata, pass +/// a Field instead. +/// +/// \param[in] type DataType object to export +/// \param[out] out C struct where to export the datatype +ARROW_EXPORT +Status ExportType(const DataType& type, struct ArrowSchema* out); + +/// \brief Export C++ Field using the C data interface format. +/// +/// \param[in] field Field object to export +/// \param[out] out C struct where to export the field +ARROW_EXPORT +Status ExportField(const Field& field, struct ArrowSchema* out); + +/// \brief Export C++ Schema using the C data interface format. +/// +/// \param[in] schema Schema object to export +/// \param[out] out C struct where to export the field +ARROW_EXPORT +Status ExportSchema(const Schema& schema, struct ArrowSchema* out); + +/// \brief Export C++ Array using the C data interface format. +/// +/// The resulting ArrowArray struct keeps the array data and buffers alive +/// until its release callback is called by the consumer. +/// +/// \param[in] array Array object to export +/// \param[out] out C struct where to export the array +/// \param[out] out_schema optional C struct where to export the array type +ARROW_EXPORT +Status ExportArray(const Array& array, struct ArrowArray* out, + struct ArrowSchema* out_schema = NULLPTR); + +/// \brief Export C++ RecordBatch using the C data interface format. +/// +/// The record batch is exported as if it were a struct array. +/// The resulting ArrowArray struct keeps the record batch data and buffers alive +/// until its release callback is called by the consumer. +/// +/// \param[in] batch Record batch to export +/// \param[out] out C struct where to export the record batch +/// \param[out] out_schema optional C struct where to export the record batch schema +ARROW_EXPORT +Status ExportRecordBatch(const RecordBatch& batch, struct ArrowArray* out, + struct ArrowSchema* out_schema = NULLPTR); + +/// \brief Import C++ DataType from the C data interface. +/// +/// The given ArrowSchema struct is released (as per the C data interface +/// specification), even if this function fails. +/// +/// \param[in,out] schema C data interface struct representing the data type +/// \return Imported type object +ARROW_EXPORT +Result> ImportType(struct ArrowSchema* schema); + +/// \brief Import C++ Field from the C data interface. +/// +/// The given ArrowSchema struct is released (as per the C data interface +/// specification), even if this function fails. +/// +/// \param[in,out] schema C data interface struct representing the field +/// \return Imported field object +ARROW_EXPORT +Result> ImportField(struct ArrowSchema* schema); + +/// \brief Import C++ Schema from the C data interface. +/// +/// The given ArrowSchema struct is released (as per the C data interface +/// specification), even if this function fails. +/// +/// \param[in,out] schema C data interface struct representing the field +/// \return Imported field object +ARROW_EXPORT +Result> ImportSchema(struct ArrowSchema* schema); + +/// \brief Import C++ array from the C data interface. +/// +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting array. +/// +/// \param[in,out] array C data interface struct holding the array data +/// \param[in] type type of the imported array +/// \return Imported array object +ARROW_EXPORT +Result> ImportArray(struct ArrowArray* array, + std::shared_ptr type); + +/// \brief Import C++ array and its type from the C data interface. +/// +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting array. +/// The ArrowSchema struct is released, even if this function fails. +/// +/// \param[in,out] array C data interface struct holding the array data +/// \param[in,out] type C data interface struct holding the array type +/// \return Imported array object +ARROW_EXPORT +Result> ImportArray(struct ArrowArray* array, + struct ArrowSchema* type); + +/// \brief Import C++ record batch from the C data interface. +/// +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting record batch. +/// +/// \param[in,out] array C data interface struct holding the record batch data +/// \param[in] schema schema of the imported record batch +/// \return Imported record batch object +ARROW_EXPORT +Result> ImportRecordBatch(struct ArrowArray* array, + std::shared_ptr schema); + +/// \brief Import C++ record batch and its schema from the C data interface. +/// +/// The type represented by the ArrowSchema struct must be a struct type array. +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting record batch. +/// The ArrowSchema struct is released, even if this function fails. +/// +/// \param[in,out] array C data interface struct holding the record batch data +/// \param[in,out] schema C data interface struct holding the record batch schema +/// \return Imported record batch object +ARROW_EXPORT +Result> ImportRecordBatch(struct ArrowArray* array, + struct ArrowSchema* schema); + +/// @} + +/// \defgroup c-data-device-interface Functions for working with the C data device +/// interface. +/// +/// @{ + +/// \brief EXPERIMENTAL: Export C++ Array as an ArrowDeviceArray. +/// +/// The resulting ArrowDeviceArray struct keeps the array data and buffers alive +/// until its release callback is called by the consumer. All buffers in +/// the provided array MUST have the same device_type, otherwise an error +/// will be returned. +/// +/// If sync is non-null, get_event will be called on it in order to +/// potentially provide an event for consumers to synchronize on. +/// +/// \param[in] array Array object to export +/// \param[in] sync shared_ptr to object derived from Device::SyncEvent or null +/// \param[out] out C struct to export the array to +/// \param[out] out_schema optional C struct to export the array type to +ARROW_EXPORT +Status ExportDeviceArray(const Array& array, std::shared_ptr sync, + struct ArrowDeviceArray* out, + struct ArrowSchema* out_schema = NULLPTR); + +/// \brief EXPERIMENTAL: Export C++ RecordBatch as an ArrowDeviceArray. +/// +/// The record batch is exported as if it were a struct array. +/// The resulting ArrowDeviceArray struct keeps the record batch data and buffers alive +/// until its release callback is called by the consumer. +/// +/// All buffers of all columns in the record batch must have the same device_type +/// otherwise an error will be returned. If columns are on different devices, +/// they should be exported using different ArrowDeviceArray instances. +/// +/// If sync is non-null, get_event will be called on it in order to +/// potentially provide an event for consumers to synchronize on. +/// +/// \param[in] batch Record batch to export +/// \param[in] sync shared_ptr to object derived from Device::SyncEvent or null +/// \param[out] out C struct where to export the record batch +/// \param[out] out_schema optional C struct where to export the record batch schema +ARROW_EXPORT +Status ExportDeviceRecordBatch(const RecordBatch& batch, + std::shared_ptr sync, + struct ArrowDeviceArray* out, + struct ArrowSchema* out_schema = NULLPTR); + +using DeviceMemoryMapper = + std::function>(ArrowDeviceType, int64_t)>; + +ARROW_EXPORT +Result> DefaultDeviceMemoryMapper( + ArrowDeviceType device_type, int64_t device_id); + +/// \brief EXPERIMENTAL: Import C++ device array from the C data interface. +/// +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting array. The +/// buffers of the Array are located on the device indicated by the device_type. +/// +/// \param[in,out] array C data interface struct holding the array data +/// \param[in] type type of the imported array +/// \param[in] mapper A function to map device + id to memory manager. If not +/// specified, defaults to map "cpu" to the built-in default memory manager. +/// \return Imported array object +ARROW_EXPORT +Result> ImportDeviceArray( + struct ArrowDeviceArray* array, std::shared_ptr type, + const DeviceMemoryMapper& mapper = DefaultDeviceMemoryMapper); + +/// \brief EXPERIMENTAL: Import C++ device array and its type from the C data interface. +/// +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting array. +/// The ArrowSchema struct is released, even if this function fails. The +/// buffers of the Array are located on the device indicated by the device_type. +/// +/// \param[in,out] array C data interface struct holding the array data +/// \param[in,out] type C data interface struct holding the array type +/// \param[in] mapper A function to map device + id to memory manager. If not +/// specified, defaults to map "cpu" to the built-in default memory manager. +/// \return Imported array object +ARROW_EXPORT +Result> ImportDeviceArray( + struct ArrowDeviceArray* array, struct ArrowSchema* type, + const DeviceMemoryMapper& mapper = DefaultDeviceMemoryMapper); + +/// \brief EXPERIMENTAL: Import C++ record batch with buffers on a device from the C data +/// interface. +/// +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting record batch. +/// The buffers of all columns of the record batch are located on the device +/// indicated by the device type. +/// +/// \param[in,out] array C data interface struct holding the record batch data +/// \param[in] schema schema of the imported record batch +/// \param[in] mapper A function to map device + id to memory manager. If not +/// specified, defaults to map "cpu" to the built-in default memory manager. +/// \return Imported record batch object +ARROW_EXPORT +Result> ImportDeviceRecordBatch( + struct ArrowDeviceArray* array, std::shared_ptr schema, + const DeviceMemoryMapper& mapper = DefaultDeviceMemoryMapper); + +/// \brief EXPERIMENTAL: Import C++ record batch with buffers on a device and its schema +/// from the C data interface. +/// +/// The type represented by the ArrowSchema struct must be a struct type array. +/// The ArrowArray struct has its contents moved (as per the C data interface +/// specification) to a private object held alive by the resulting record batch. +/// The ArrowSchema struct is released, even if this function fails. The buffers +/// of all columns of the record batch are located on the device indicated by the +/// device type. +/// +/// \param[in,out] array C data interface struct holding the record batch data +/// \param[in,out] schema C data interface struct holding the record batch schema +/// \param[in] mapper A function to map device + id to memory manager. If not +/// specified, defaults to map "cpu" to the built-in default memory manager. +/// \return Imported record batch object +ARROW_EXPORT +Result> ImportDeviceRecordBatch( + struct ArrowDeviceArray* array, struct ArrowSchema* schema, + const DeviceMemoryMapper& mapper = DefaultDeviceMemoryMapper); + +/// @} + +/// \defgroup c-stream-interface Functions for working with the C data interface. +/// +/// @{ + +/// \brief Export C++ RecordBatchReader using the C stream interface. +/// +/// The resulting ArrowArrayStream struct keeps the record batch reader alive +/// until its release callback is called by the consumer. +/// +/// \param[in] reader RecordBatchReader object to export +/// \param[out] out C struct where to export the stream +ARROW_EXPORT +Status ExportRecordBatchReader(std::shared_ptr reader, + struct ArrowArrayStream* out); + +/// \brief Export C++ ChunkedArray using the C data interface format. +/// +/// The resulting ArrowArrayStream struct keeps the chunked array data and buffers alive +/// until its release callback is called by the consumer. +/// +/// \param[in] chunked_array ChunkedArray object to export +/// \param[out] out C struct where to export the stream +ARROW_EXPORT +Status ExportChunkedArray(std::shared_ptr chunked_array, + struct ArrowArrayStream* out); + +/// \brief Export C++ RecordBatchReader using the C device stream interface +/// +/// The resulting ArrowDeviceArrayStream struct keeps the record batch reader +/// alive until its release callback is called by the consumer. The device +/// type is determined by calling device_type() on the RecordBatchReader. +/// +/// \param[in] reader RecordBatchReader object to export +/// \param[out] out C struct to export the stream to +ARROW_EXPORT +Status ExportDeviceRecordBatchReader(std::shared_ptr reader, + struct ArrowDeviceArrayStream* out); + +/// \brief Export C++ ChunkedArray using the C device data interface format. +/// +/// The resulting ArrowDeviceArrayStream keeps the chunked array data and buffers +/// alive until its release callback is called by the consumer. +/// +/// \param[in] chunked_array ChunkedArray object to export +/// \param[in] device_type the device type the data is located on +/// \param[out] out C struct to export the stream to +ARROW_EXPORT +Status ExportDeviceChunkedArray(std::shared_ptr chunked_array, + DeviceAllocationType device_type, + struct ArrowDeviceArrayStream* out); + +/// \brief Import C++ RecordBatchReader from the C stream interface. +/// +/// The ArrowArrayStream struct has its contents moved to a private object +/// held alive by the resulting record batch reader. +/// +/// \param[in,out] stream C stream interface struct +/// \return Imported RecordBatchReader object +ARROW_EXPORT +Result> ImportRecordBatchReader( + struct ArrowArrayStream* stream); + +/// \brief Import C++ ChunkedArray from the C stream interface +/// +/// The ArrowArrayStream struct has its contents moved to a private object, +/// is consumed in its entirity, and released before returning all chunks +/// as a ChunkedArray. +/// +/// \param[in,out] stream C stream interface struct +/// \return Imported ChunkedArray object +ARROW_EXPORT +Result> ImportChunkedArray(struct ArrowArrayStream* stream); + +/// \brief Import C++ RecordBatchReader from the C device stream interface +/// +/// The ArrowDeviceArrayStream struct has its contents moved to a private object +/// held alive by the resulting record batch reader. +/// +/// \note If there was a required sync event, sync events are accessible by individual +/// buffers of columns. We are not yet bubbling the sync events from the buffers up to +/// the `GetSyncEvent` method of an imported RecordBatch. This will be added in a future +/// update. +/// +/// \param[in,out] stream C device stream interface struct +/// \param[in] mapper mapping from device type and ID to memory manager +/// \return Imported RecordBatchReader object +ARROW_EXPORT +Result> ImportDeviceRecordBatchReader( + struct ArrowDeviceArrayStream* stream, + const DeviceMemoryMapper& mapper = DefaultDeviceMemoryMapper); + +/// \brief Import C++ ChunkedArray from the C device stream interface +/// +/// The ArrowDeviceArrayStream struct has its contents moved to a private object, +/// is consumed in its entirety, and released before returning all chunks as a +/// ChunkedArray. +/// +/// \note Any chunks that require synchronization for their device memory will have +/// the SyncEvent objects available by checking the individual buffers of each chunk. +/// These SyncEvents should be checked before accessing the data in those buffers. +/// +/// \param[in,out] stream C device stream interface struct +/// \param[in] mapper mapping from device type and ID to memory manager +/// \return Imported ChunkedArray object +ARROW_EXPORT +Result> ImportDeviceChunkedArray( + struct ArrowDeviceArrayStream* stream, + const DeviceMemoryMapper& mapper = DefaultDeviceMemoryMapper); + +/// @} + +/// \defgroup c-async-stream-interface Functions for working with the async C data +/// interface. +/// +/// @{ + +/// \brief EXPERIMENTAL: AsyncErrorDetail is a StatusDetail that contains an error code +/// and message from an asynchronous operation. +class AsyncErrorDetail : public StatusDetail { + public: + AsyncErrorDetail(int code, std::string message, std::string metadata) + : code_(code), message_(std::move(message)), metadata_(std::move(metadata)) {} + const char* type_id() const override { return "AsyncErrorDetail"; } + // ToString just returns the error message that was returned with the error + std::string ToString() const override { return message_; } + // code is an errno-compatible error code + int code() const { return code_; } + // returns any metadata that was returned with the error, likely in a + // key-value format similar to ArrowSchema metadata + const std::string& ErrorMetadataString() const { return metadata_; } + std::shared_ptr ErrorMetadata() const; + + private: + int code_{0}; + std::string message_; + std::string metadata_; +}; + +struct AsyncRecordBatchGenerator { + std::shared_ptr schema; + DeviceAllocationType device_type; + AsyncGenerator generator; +}; + +namespace internal { +class Executor; +} + +/// \brief EXPERIMENTAL: Create an AsyncRecordBatchReader and populate a corresponding +/// handler to pass to a producer +/// +/// The ArrowAsyncDeviceStreamHandler struct is intended to have its callbacks populated +/// and then be passed to a producer to call the appropriate callbacks when data is ready. +/// This inverts the traditional flow of control, and so we construct a corresponding +/// AsyncRecordBatchGenerator to provide an interface for the consumer to retrieve data as +/// it is pushed to the handler. +/// +/// \param[in,out] handler C struct to be populated +/// \param[in] executor the executor to use for waiting and populating record batches +/// \param[in] queue_size initial number of record batches to request for queueing +/// \param[in] mapper mapping from device type and ID to memory manager +/// \return Future that resolves to either an error or AsyncRecordBatchGenerator once a +/// schema is available or an error is received. +ARROW_EXPORT +Future CreateAsyncDeviceStreamHandler( + struct ArrowAsyncDeviceStreamHandler* handler, internal::Executor* executor, + uint64_t queue_size = 5, DeviceMemoryMapper mapper = DefaultDeviceMemoryMapper); + +/// \brief EXPERIMENTAL: Export an AsyncGenerator of record batches using a provided +/// handler +/// +/// This function calls the callbacks on the consumer-provided async handler as record +/// batches become available from the AsyncGenerator which is provided. It will first call +/// on_schema using the provided schema, and then serially visit each record batch from +/// the generator, calling the on_next_task callback. If an error occurs, on_error will be +/// called appropriately. +/// +/// \param[in] schema the schema of the stream being exported +/// \param[in] generator a generator that asynchronously produces record batches +/// \param[in] device_type the device type that the record batches will be located on +/// \param[in] handler the handler whose callbacks to utilize as data is available +/// \return Future that will resolve once the generator is exhausted or an error occurs +ARROW_EXPORT +Future<> ExportAsyncRecordBatchReader( + std::shared_ptr schema, + AsyncGenerator> generator, + DeviceAllocationType device_type, struct ArrowAsyncDeviceStreamHandler* handler); + +/// @} + +} // namespace arrow diff --git a/shared/package-files/e9/e9f0a6845e13e5de8b4ee9419760ca1517ee3cdd2c41b1b205499122117f0222/blob b/shared/package-files/e9/e9f0a6845e13e5de8b4ee9419760ca1517ee3cdd2c41b1b205499122117f0222/blob new file mode 100644 index 0000000000000000000000000000000000000000..dfa7b08ba4f6fe29c943411bdb2c5e5e72d2263c --- /dev/null +++ b/shared/package-files/e9/e9f0a6845e13e5de8b4ee9419760ca1517ee3cdd2c41b1b205499122117f0222/blob @@ -0,0 +1,157 @@ +Metadata-Version: 2.4 +Name: interface_meta +Version: 2.0.1 +Summary: `interface_meta` provides a convenient way to expose an extensible API with enforced method signatures and consistent documentation. +Project-URL: Homepage, https://github.com/matthewwardrop/interface_meta +Project-URL: Repository, https://github.com/matthewwardrop/interface_meta +Author-email: Matthew Wardrop +License: MIT +License-File: LICENSE +Classifier: Development Status :: 5 - Production/Stable +Classifier: Environment :: Console +Classifier: Intended Audience :: Developers +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: 3.14 +Requires-Python: >=3.10 +Description-Content-Type: text/markdown + +# InterfaceMeta + +[![PyPI - Version](https://img.shields.io/pypi/v/interface_meta.svg)](https://pypi.org/project/interface_meta/) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/interface_meta.svg) +![PyPI - Status](https://img.shields.io/pypi/status/interface_meta.svg) +[![CI](https://github.com/matthewwardrop/interface_meta/actions/workflows/ci.yml/badge.svg)](https://github.com/matthewwardrop/interface_meta/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/matthewwardrop/interface_meta/branch/master/graph/badge.svg?token=W4LD72EQMM)](https://codecov.io/gh/matthewwardrop/interface_meta) +[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) + +`interface_meta` provides a convenient way to expose an extensible API with +enforced method signatures and consistent documentation. + +- **Documentation:** See below (full documentation will come at some point). +- **Source:** https://github.com/matthewwardrop/interface_meta +- **Bug reports:** https://github.com/matthewwardrop/interface_meta/issues + +## Overview + +This library has been extracted (with some modifications) from +[`omniduct`](https://github.com/airbnb/omniduct), a library also principally +written by this author, where it was central to the extensible plugin +architecture. It places an emphasis on the functionality required to create a +well-documented extensible plugin system, whereby the act of subclassing is +sufficient to register the plugin and ensure compliance to the parent API. As +such, this library boasts the following features: + +- All subclasses of an interface must conform to the parent's API. +- Hierarchical runtime property existence and method signature checking. Methods + are permitted to add additional *optional* arguments, but otherwise must + conform to the API of their parent class (which themselves may have extended + the API of the interface). +- Subclass definition time hooks (e.g. for registration of subclasses into a + library of plugins, etc). +- Optional requirement for methods in subclasses to explicity decorate methods + with an `override` decorator when replacing methods on an interface, making + it clearer as to when a class is introducing new methods versus replacing + those that form the part of the interface API. +- Generation of clear docstrings on implementations that stitches together the + base interface documentation with any downstream extensions and quirks. +- Support for extracting the quirks documentation for a method from other method + docstrings, in the event that subclass implementations are done in an internal + method. +- Compatibility with ABCMeta from the standard library. + +## Example code + +```python +from abc import abstractmethod +from interface_meta import InterfaceMeta, inherit_docs, override + + +class MyInterface(metaclass=InterfaceMeta): + """ + An example interface. + """ + + INTERFACE_EXPLICIT_OVERRIDES = True + INTERFACE_RAISE_ON_VIOLATION = False + + @property + @abstractmethod + def name(self) -> str: + """ + The name of this interface. + """ + + @inherit_docs(method="_do_stuff") + def do_stuff(self, a, b, c=1): + """ + Do things with the parameters. + """ + return self._do_stuff(a, b, c) + + @abstractmethod + def _do_stuff(self, a, b, c): + pass + + +class MyImplementation(MyInterface): + """ + This implementation of the example interface works nicely. + """ + + @override + @property + def name(self) -> str: + return "Peter" + + @override + def _do_stuff(self, a, b, c): + """ + In this implementation, we sum the parameters. + """ + return a + b + c +``` + +Running `help(MyImplementation)` reveals how the documentation is generated: + +```python +class MyImplementation(MyInterface) + | This implementation of the example interface works nicely. + | + | Method resolution order: + | MyImplementation + | MyInterface + | builtins.object + | + | do_stuff(self, a, b, c=1) + | Do things with the parameters. + | + | MyImplementation Quirks: + | In this implementation, we sum the parameters. + ... +``` + +## Related projects and prior art + +This library is released into an already crowded space, and the author would +like to recognise some of the already wonderful work done by others. The primary +difference between this and other libraries is typically these other libraries +focus more on abstracting interface definitions and compliance, and less on the +documentation and plugin registration work. While this work overlaps with these +projects, its approach is sufficiently different (in the author's opinion) +to warrant a separate library. + +- [`pure_interface`](https://github.com/seequent/pure_interface) +- [`python-interface`](https://github.com/ssanderson/interface) + +`python-interface` has an emphasis on ensuring that implementations of various +interfaces *strictly* adhere to the methods and properties associated with +the interface, and that helpful errors are raised when this is violated. + +By +comparison this library focusses on functional comformance to parent classes, +whereby methods on subclasses are allowed to include additional parameters. It +also focusses on ensuring that documentation for such quirks in method signatures are correctly composed into the final documentation rendered for that method. diff --git a/shared/package-files/e9/e9f12f475c9a809c5260ca2701b6fe992540212b6569b92aee8a0acab0ce1621/blob b/shared/package-files/e9/e9f12f475c9a809c5260ca2701b6fe992540212b6569b92aee8a0acab0ce1621/blob new file mode 100644 index 0000000000000000000000000000000000000000..489ad17cc5e11f283eabfc5cd106c8a86648944d --- /dev/null +++ b/shared/package-files/e9/e9f12f475c9a809c5260ca2701b6fe992540212b6569b92aee8a0acab0ce1621/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API _pad_enum { + using schema = at::Tensor (const at::Tensor &, c10::SymIntArrayRef, int64_t, c10::optional); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_pad_enum") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_pad_enum(Tensor self, SymInt[] pad, int mode, float? value=None) -> Tensor") + static at::Tensor call(const at::Tensor & self, c10::SymIntArrayRef pad, int64_t mode, c10::optional value); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, c10::SymIntArrayRef pad, int64_t mode, c10::optional value); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/e9/e9f2ba327f8c76243e278a28f014e2fde55556c8657dfa10889cc568b46ba9ca/blob b/shared/package-files/e9/e9f2ba327f8c76243e278a28f014e2fde55556c8657dfa10889cc568b46ba9ca/blob new file mode 100644 index 0000000000000000000000000000000000000000..d5ea1d7c98a0ef8509b4821ab111007d7601996b --- /dev/null +++ b/shared/package-files/e9/e9f2ba327f8c76243e278a28f014e2fde55556c8657dfa10889cc568b46ba9ca/blob @@ -0,0 +1,245 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include +#include +#include + +#include "parquet/metadata.h" +#include "parquet/platform.h" +#include "parquet/properties.h" +#include "parquet/schema.h" + +namespace parquet { + +class ColumnWriter; + +// FIXME: copied from reader-internal.cc +static constexpr uint8_t kParquetMagic[4] = {'P', 'A', 'R', '1'}; +static constexpr uint8_t kParquetEMagic[4] = {'P', 'A', 'R', 'E'}; + +class PARQUET_EXPORT RowGroupWriter { + public: + // Forward declare a virtual class 'Contents' to aid dependency injection and more + // easily create test fixtures + // An implementation of the Contents class is defined in the .cc file + struct Contents { + virtual ~Contents() = default; + virtual int num_columns() const = 0; + virtual int64_t num_rows() const = 0; + + // to be used only with ParquetFileWriter::AppendRowGroup + virtual ColumnWriter* NextColumn() = 0; + // to be used only with ParquetFileWriter::AppendBufferedRowGroup + virtual ColumnWriter* column(int i) = 0; + + virtual int current_column() const = 0; + virtual void Close() = 0; + + /// \brief total uncompressed bytes written by the page writer + virtual int64_t total_bytes_written() const = 0; + /// \brief total bytes still compressed but not written by the page writer + virtual int64_t total_compressed_bytes() const = 0; + /// \brief total compressed bytes written by the page writer + virtual int64_t total_compressed_bytes_written() const = 0; + + virtual bool buffered() const = 0; + }; + + explicit RowGroupWriter(std::unique_ptr contents); + + /// Construct a ColumnWriter for the indicated row group-relative column. + /// + /// To be used only with ParquetFileWriter::AppendRowGroup + /// Ownership is solely within the RowGroupWriter. The ColumnWriter is only + /// valid until the next call to NextColumn or Close. As the contents are + /// directly written to the sink, once a new column is started, the contents + /// of the previous one cannot be modified anymore. + ColumnWriter* NextColumn(); + /// Index of currently written column. Equal to -1 if NextColumn() + /// has not been called yet. + int current_column(); + void Close(); + + int num_columns() const; + + /// Construct a ColumnWriter for the indicated row group column. + /// + /// To be used only with ParquetFileWriter::AppendBufferedRowGroup + /// Ownership is solely within the RowGroupWriter. The ColumnWriter is + /// valid until Close. The contents are buffered in memory and written to sink + /// on Close + ColumnWriter* column(int i); + + /** + * Number of rows that shall be written as part of this RowGroup. + */ + int64_t num_rows() const; + + /// \brief total uncompressed bytes written by the page writer + int64_t total_bytes_written() const; + /// \brief total bytes still compressed but not written by the page writer. + /// It will always return 0 from the SerializedPageWriter. + int64_t total_compressed_bytes() const; + /// \brief total compressed bytes written by the page writer + int64_t total_compressed_bytes_written() const; + + /// Returns whether the current RowGroupWriter is in the buffered mode and is created + /// by calling ParquetFileWriter::AppendBufferedRowGroup. + bool buffered() const; + + private: + // Holds a pointer to an instance of Contents implementation + std::unique_ptr contents_; +}; + +PARQUET_EXPORT +void WriteFileMetaData(const FileMetaData& file_metadata, + ::arrow::io::OutputStream* sink); + +PARQUET_EXPORT +void WriteMetaDataFile(const FileMetaData& file_metadata, + ::arrow::io::OutputStream* sink); + +PARQUET_EXPORT +void WriteEncryptedFileMetadata(const FileMetaData& file_metadata, + ArrowOutputStream* sink, + const std::shared_ptr& encryptor, + bool encrypt_footer); + +PARQUET_EXPORT +void WriteEncryptedFileMetadata(const FileMetaData& file_metadata, + ::arrow::io::OutputStream* sink, + const std::shared_ptr& encryptor = NULLPTR, + bool encrypt_footer = false); +PARQUET_EXPORT +void WriteFileCryptoMetaData(const FileCryptoMetaData& crypto_metadata, + ::arrow::io::OutputStream* sink); + +class PARQUET_EXPORT ParquetFileWriter { + public: + // Forward declare a virtual class 'Contents' to aid dependency injection and more + // easily create test fixtures + // An implementation of the Contents class is defined in the .cc file + struct Contents { + Contents(std::shared_ptr<::parquet::schema::GroupNode> schema, + std::shared_ptr key_value_metadata) + : schema_(), key_value_metadata_(std::move(key_value_metadata)) { + schema_.Init(std::move(schema)); + } + virtual ~Contents() {} + // Perform any cleanup associated with the file contents + virtual void Close() = 0; + + virtual RowGroupWriter* AppendRowGroup() = 0; + virtual RowGroupWriter* AppendBufferedRowGroup() = 0; + + virtual int64_t num_rows() const = 0; + virtual int num_columns() const = 0; + virtual int num_row_groups() const = 0; + + virtual const std::shared_ptr& properties() const = 0; + + const std::shared_ptr& key_value_metadata() const { + return key_value_metadata_; + } + + virtual void AddKeyValueMetadata( + const std::shared_ptr& key_value_metadata) = 0; + + // Return const-pointer to make it clear that this object is not to be copied + const SchemaDescriptor* schema() const { return &schema_; } + + SchemaDescriptor schema_; + + /// This should be the only place this is stored. Everything else is a const reference + std::shared_ptr key_value_metadata_; + + const std::shared_ptr& metadata() const { return file_metadata_; } + std::shared_ptr file_metadata_; + }; + + ParquetFileWriter(); + ~ParquetFileWriter(); + + static std::unique_ptr Open( + std::shared_ptr<::arrow::io::OutputStream> sink, + std::shared_ptr schema, + std::shared_ptr properties = default_writer_properties(), + std::shared_ptr key_value_metadata = NULLPTR); + + void Open(std::unique_ptr contents); + void Close(); + + /// Construct a RowGroupWriter with an arbitrary number of rows. + /// + /// Ownership is solely within the ParquetFileWriter. The RowGroupWriter is only valid + /// until the next call to AppendRowGroup or AppendBufferedRowGroup or Close. + RowGroupWriter* AppendRowGroup(); + + /// Construct a RowGroupWriter that buffers all the values until the RowGroup is ready. + /// Use this if you want to write a RowGroup based on a certain size + /// + /// Ownership is solely within the ParquetFileWriter. The RowGroupWriter is only valid + /// until the next call to AppendRowGroup or AppendBufferedRowGroup or Close. + RowGroupWriter* AppendBufferedRowGroup(); + + /// \brief Add key-value metadata to the file. + /// \param[in] key_value_metadata the metadata to add. + /// \note This will overwrite any existing metadata with the same key(s). + /// \throw ParquetException if Close() has been called. + void AddKeyValueMetadata( + const std::shared_ptr& key_value_metadata); + + /// Number of columns. + /// + /// This number is fixed during the lifetime of the writer as it is determined via + /// the schema. + int num_columns() const; + + /// Number of rows in the yet started RowGroups. + /// + /// Changes on the addition of a new RowGroup. + int64_t num_rows() const; + + /// Number of started RowGroups. + int num_row_groups() const; + + /// Configuration passed to the writer, e.g. the used Parquet format version. + const std::shared_ptr& properties() const; + + /// Returns the file schema descriptor + const SchemaDescriptor* schema() const; + + /// Returns a column descriptor in schema + const ColumnDescriptor* descr(int i) const; + + /// Returns the file custom metadata + const std::shared_ptr& key_value_metadata() const; + + /// Returns the file metadata, only available after calling Close(). + const std::shared_ptr metadata() const; + + private: + // Holds a pointer to an instance of Contents implementation + std::unique_ptr contents_; + std::shared_ptr file_metadata_; +}; + +} // namespace parquet diff --git a/shared/package-files/e9/e9f745a6030cf6f36df28d23ad204220117667bca56f9ff6e7867711844502d5/blob b/shared/package-files/e9/e9f745a6030cf6f36df28d23ad204220117667bca56f9ff6e7867711844502d5/blob new file mode 100644 index 0000000000000000000000000000000000000000..4d0a2f92b662169e98fb9ffd1d25a4d6d0b28309 --- /dev/null +++ b/shared/package-files/e9/e9f745a6030cf6f36df28d23ad204220117667bca56f9ff6e7867711844502d5/blob @@ -0,0 +1,146 @@ +*** Tue, 21 Jun 2016 11:28:38 *** +VEC REPRESENTATION +endogenous variables: Dp R +exogenous variables: +deterministic variables: CONST +endogenous lags (diffs): 3 +exogenous lags: 0 +sample range: [1973 Q2, 1998 Q4], T = 103 +estimation procedure: One stage. Johansen approach + + +Lagged endogenous term: +======================= + d(Dp) d(R) +------------------------------ +d(Dp)(t-1)| -0.515 -0.321 + | (0.153) (0.133) + | {0.001} {0.016} + | [-3.359] [-2.418] +d(R) (t-1)| 0.045 0.253 + | (0.117) (0.101) + | {0.701} {0.012} + | [0.384] [2.507] +d(Dp)(t-2)| -0.655 -0.200 + | (0.105) (0.091) + | {0.000} {0.028} + | [-6.239] [-2.202] +d(R) (t-2)| 0.118 0.013 + | (0.116) (0.101) + | {0.308} {0.900} + | [1.019] [0.126] +d(Dp)(t-3)| -0.803 -0.070 + | (0.056) (0.048) + | {0.000} {0.146} + | [-14.446] [-1.453] +d(R) (t-3)| -0.053 0.220 + | (0.114) (0.098) + | {0.640} {0.025} + | [-0.468] [2.238] +------------------------------ + + +Deterministic term: +=================== + d(Dp) d(R) +----------------------------- +CONST | -0.008 0.005 + | (0.003) (0.002) + | {0.001} {0.028} + | [-3.207] [2.196] +----------------------------- + + +Loading coefficients: +===================== + d(Dp) d(R) +----------------------------- +ec1(t-1)| -0.640 0.423 + | (0.201) (0.174) + | {0.001} {0.015} + | [-3.183] [2.426] +----------------------------- + +Estimated cointegration relation(s): +==================================== + ec1(t-1) +------------------- + Dp(t-1)| 1.000 + | (0.000) + | {0.000} + | [0.000] + R (t-1)| -0.273 + | (0.050) + | {0.000} + | [-5.422] +------------------- + + + +VAR REPRESENTATION + +modulus of the eigenvalues of the reverse characteristic polynomial: +|z| = ( 1.0095 1.0117 1.0117 1.0000 1.3347 1.3347 1.7356 1.7356 ) + +Legend: +======= + Equation 1 Equation 2 ... +------------------------------------------ +Variable 1 | Coefficient ... + | (Std. Dev.) + | {p - Value} + | [t - Value] +Variable 2 | ... +... +------------------------------------------ + + +Lagged endogenous term: +======================= + Dp R +----------------------------- + Dp(t-1)| -0.156 0.101 + | (0.253) (0.219) + | {0.538} {0.644} + | [-0.615] [0.463] + R (t-1)| 0.220 1.138 + | (0.129) (0.112) + | {0.088} {0.000} + | [1.705] [10.193] + Dp(t-2)| -0.139 0.121 + | (0.056) (0.049) + | {0.013} {0.013} + | [-2.482] [2.497] + R (t-2)| 0.074 -0.240 + | (0.170) (0.147) + | {0.664} {0.102} + | [0.434] [-1.635] + Dp(t-3)| -0.148 0.130 + | (0.056) (0.049) + | {0.009} {0.008} + | [-2.624] [2.660] + R (t-3)| -0.172 0.207 + | (0.170) (0.147) + | {0.312} {0.159} + | [-1.011] [1.410] + Dp(t-4)| 0.803 0.070 + | (0.056) (0.048) + | {0.000} {0.146} + | [14.446] [1.453] + R (t-4)| 0.053 -0.220 + | (0.114) (0.098) + | {0.640} {0.025} + | [0.468] [-2.238] +----------------------------- + + +Deterministic term: +=================== + Dp R +----------------------------- +CONST | -0.008 0.005 + | (0.000) (0.000) + | {0.000} {0.000} + | [0.000] [0.000] +----------------------------- + diff --git a/shared/package-files/e9/e9f8611c6620ade5db1a46be56da97f458e33da4b39df3a60c73d50b5ef50c82/blob b/shared/package-files/e9/e9f8611c6620ade5db1a46be56da97f458e33da4b39df3a60c73d50b5ef50c82/blob new file mode 100644 index 0000000000000000000000000000000000000000..8a54437f527b994821133532f26598c951631b28 --- /dev/null +++ b/shared/package-files/e9/e9f8611c6620ade5db1a46be56da97f458e33da4b39df3a60c73d50b5ef50c82/blob @@ -0,0 +1,5 @@ +# Defined in torch/csrc/itt.cpp +def is_available() -> None: ... +def rangePush(message: str) -> None: ... +def rangePop() -> None: ... +def mark(message: str) -> None: ... diff --git a/shared/package-files/e9/e9f9ba1594a05216beeffe5a36df598fb3670214297b9bc441d24c385c19a64d/blob b/shared/package-files/e9/e9f9ba1594a05216beeffe5a36df598fb3670214297b9bc441d24c385c19a64d/blob new file mode 100644 index 0000000000000000000000000000000000000000..04d76d34ea16640c94e3d377e3f7ba70ab1689bf --- /dev/null +++ b/shared/package-files/e9/e9f9ba1594a05216beeffe5a36df598fb3670214297b9bc441d24c385c19a64d/blob @@ -0,0 +1,92 @@ +# Copyright 2019 Kakao Brain +# +# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# +# This source code is licensed under the BSD license found in the +# LICENSE file in the root directory of this source tree. +"""Static skip connection layout of ``@skippable`` modules.""" +from typing import Dict, Iterable, List, Tuple + +from torch import nn + +from .namespace import Namespace + +__all__: List[str] = [] + + +class SkipLayout: + """Represents a skip connection layout across partitions.""" + + # Skip routes indexed by 'ns, name': {(ns, name): (prev_j, next_j), ...} + by_ns_name: Dict[Tuple[Namespace, str], Tuple[int, int]] + + # Skip routes indexed by partition number 'j': [[next_j]: [(prev_j, ns, name), ...], ...] + by_partition: List[List[Tuple[int, Namespace, str]]] + + def __init__(self, num_partitions: int, skip_routes: Dict[Tuple[Namespace, str], Tuple[int, int]],) -> None: + # The skip routes are already indexed by 'ns, name'. + self.by_ns_name = skip_routes + + # Index skip routes by partition number 'j'. + self.by_partition = [[] for _ in range(num_partitions)] + + for (ns, name), (prev_j, next_j) in skip_routes.items(): + self.by_partition[next_j].append((prev_j, ns, name)) + + for p in self.by_partition: + p.sort() + + def copy_policy(self, next_j: int) -> Iterable[Tuple[int, Namespace, str]]: + """Generates skip routes for the given destination partition number. + The skip routes are sorted by source partition number in ascending + order. + + Yields: + Each tuple of (source partition number, namespace, name). + + """ + for prev_j, ns, name in self.by_partition[next_j]: + if prev_j == next_j: + # This skip tensor will be popped at the same partition where + # it is stashed. In this case, copy is not required. + continue + + yield (prev_j, ns, name) + + def requires_copy(self, ns: Namespace, name: str) -> bool: + """Whether the given namespace and name requires partition-to-partition + copy or not. + """ + prev_j, next_j = self.by_ns_name.get((ns, name), (-1, -1)) + return prev_j != next_j + + +def inspect_skip_layout(partitions: List[nn.Sequential]) -> SkipLayout: + """Inspects the skip connection layout in the given partitions.""" + # NOTE(sublee): Hide circular import inside this subroutine. Circular + # import is not ideal but placing this logic near to SkipLayout may + # increase cohesion of code. + from .skippable import Skippable + + skip_routes: Dict[Tuple[Namespace, str], Tuple[int, int]] = {} + stashed_at: Dict[Tuple[Namespace, str], int] = {} + + for j, partition in enumerate(partitions): + def inspect_layer(layer): + if not isinstance(layer, Skippable): + return + + for ns, name in layer.stashable(): + stashed_at[(ns, name)] = j + + for ns, name in layer.poppable(): + prev_j = stashed_at.pop((ns, name)) + skip_routes[(ns, name)] = (prev_j, j) + + if isinstance(partition, nn.Sequential): + for layer in partition: + inspect_layer(layer) + else: + inspect_layer(partition) + + return SkipLayout(len(partitions), skip_routes) diff --git a/shared/package-files/ea/ea0205faaaf9dfb946e1517fcda50df1e5fab752668a5007a53c122b67ad83f4/blob b/shared/package-files/ea/ea0205faaaf9dfb946e1517fcda50df1e5fab752668a5007a53c122b67ad83f4/blob new file mode 100644 index 0000000000000000000000000000000000000000..def73445aa606f253e255ab9ef8d1208835d20af --- /dev/null +++ b/shared/package-files/ea/ea0205faaaf9dfb946e1517fcda50df1e5fab752668a5007a53c122b67ad83f4/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor isfinite(const at::Tensor & self); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/ea/ea059e6e212fc86e4616235370cba2814ed400f11eb1826658a4132ffd464eb3/blob b/shared/package-files/ea/ea059e6e212fc86e4616235370cba2814ed400f11eb1826658a4132ffd464eb3/blob new file mode 100644 index 0000000000000000000000000000000000000000..c6b63c511959616aeb787f4303015241057201de --- /dev/null +++ b/shared/package-files/ea/ea059e6e212fc86e4616235370cba2814ed400f11eb1826658a4132ffd464eb3/blob @@ -0,0 +1,30 @@ +""" +This makes the functions in torch._C._VariableFunctions available as + torch._VF. +without mypy being able to find them. + +A subset of those functions are mapped to ATen functions in +torch/jit/_builtins.py + +See https://github.com/pytorch/pytorch/issues/21478 for the reason for +introducing torch._VF + +""" +import sys +import types + +import torch + + +class VFModule(types.ModuleType): + vf: types.ModuleType + + def __init__(self, name): + super().__init__(name) + self.vf = torch._C._VariableFunctions + + def __getattr__(self, attr): + return getattr(self.vf, attr) + + +sys.modules[__name__] = VFModule(__name__) diff --git a/shared/package-files/ea/ea079a6864ca10a6f8ea7d2d312c71121f5c966dc8e334f713a3bc8eb242ee49/blob b/shared/package-files/ea/ea079a6864ca10a6f8ea7d2d312c71121f5c966dc8e334f713a3bc8eb242ee49/blob new file mode 100644 index 0000000000000000000000000000000000000000..c1bd5fed5c04b646289b84bff910ea811720cb59 --- /dev/null +++ b/shared/package-files/ea/ea079a6864ca10a6f8ea7d2d312c71121f5c966dc8e334f713a3bc8eb242ee49/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea079a6864ca10a6f8ea7d2d312c71121f5c966dc8e334f713a3bc8eb242ee49 +size 125072 diff --git a/shared/package-files/ea/ea12f472ad51b9fa900fe07f6d5de77b5ae1bb683e878ac3385350b126faaa9b/blob b/shared/package-files/ea/ea12f472ad51b9fa900fe07f6d5de77b5ae1bb683e878ac3385350b126faaa9b/blob new file mode 100644 index 0000000000000000000000000000000000000000..aecbba317aecd1b331261ca600058e30e0c4f184 --- /dev/null +++ b/shared/package-files/ea/ea12f472ad51b9fa900fe07f6d5de77b5ae1bb683e878ac3385350b126faaa9b/blob @@ -0,0 +1,134 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# distutils: language = c++ +# cython: language_level = 3 + +from libcpp cimport bool as c_bool +from libc.string cimport const_char +from libcpp.vector cimport vector as std_vector +from pyarrow.includes.common cimport * +from pyarrow.includes.libarrow cimport (CArray, CSchema, CStatus, + CResult, CTable, CMemoryPool, + CKeyValueMetadata, + CRecordBatch, + CTable, CCompressionType, + CRandomAccessFile, COutputStream, + TimeUnit) + +cdef extern from "arrow/adapters/orc/options.h" \ + namespace "arrow::adapters::orc" nogil: + cdef enum CompressionStrategy \ + " arrow::adapters::orc::CompressionStrategy": + _CompressionStrategy_SPEED \ + " arrow::adapters::orc::CompressionStrategy::kSpeed" + _CompressionStrategy_COMPRESSION \ + " arrow::adapters::orc::CompressionStrategy::kCompression" + + cdef enum WriterId" arrow::adapters::orc::WriterId": + _WriterId_ORC_JAVA_WRITER" arrow::adapters::orc::WriterId::kOrcJava" + _WriterId_ORC_CPP_WRITER" arrow::adapters::orc::WriterId::kOrcCpp" + _WriterId_PRESTO_WRITER" arrow::adapters::orc::WriterId::kPresto" + _WriterId_SCRITCHLEY_GO \ + " arrow::adapters::orc::WriterId::kScritchleyGo" + _WriterId_TRINO_WRITER" arrow::adapters::orc::WriterId::kTrino" + _WriterId_UNKNOWN_WRITER" arrow::adapters::orc::WriterId::kUnknown" + + cdef enum WriterVersion" arrow::adapters::orc::WriterVersion": + _WriterVersion_ORIGINAL \ + " arrow::adapters::orc::WriterVersion::kOriginal" + _WriterVersion_HIVE_8732 \ + " arrow::adapters::orc::WriterVersion::kHive8732" + _WriterVersion_HIVE_4243 \ + " arrow::adapters::orc::WriterVersion::kHive4243" + _WriterVersion_HIVE_12055 \ + " arrow::adapters::orc::WriterVersion::kHive12055" + _WriterVersion_HIVE_13083 \ + " arrow::adapters::orc::WriterVersion::kHive13083" + _WriterVersion_ORC_101" arrow::adapters::orc::WriterVersion::kOrc101" + _WriterVersion_ORC_135" arrow::adapters::orc::WriterVersion::kOrc135" + _WriterVersion_ORC_517" arrow::adapters::orc::WriterVersion::kOrc517" + _WriterVersion_ORC_203" arrow::adapters::orc::WriterVersion::kOrc203" + _WriterVersion_ORC_14" arrow::adapters::orc::WriterVersion::kOrc14" + _WriterVersion_MAX" arrow::adapters::orc::WriterVersion::kMax" + + cdef cppclass FileVersion" arrow::adapters::orc::FileVersion": + FileVersion(uint32_t major_version, uint32_t minor_version) + uint32_t major_version() + uint32_t minor_version() + c_string ToString() + + cdef struct WriteOptions" arrow::adapters::orc::WriteOptions": + int64_t batch_size + FileVersion file_version + int64_t stripe_size + CCompressionType compression + int64_t compression_block_size + CompressionStrategy compression_strategy + int64_t row_index_stride + double padding_tolerance + double dictionary_key_size_threshold + std_vector[int64_t] bloom_filter_columns + double bloom_filter_fpp + + +cdef extern from "arrow/adapters/orc/adapter.h" \ + namespace "arrow::adapters::orc" nogil: + + cdef cppclass ORCFileReader: + @staticmethod + CResult[unique_ptr[ORCFileReader]] Open( + const shared_ptr[CRandomAccessFile]& file, + CMemoryPool* pool) + + CResult[shared_ptr[const CKeyValueMetadata]] ReadMetadata() + + CResult[shared_ptr[CSchema]] ReadSchema() + + CResult[shared_ptr[CRecordBatch]] ReadStripe(int64_t stripe) + CResult[shared_ptr[CRecordBatch]] ReadStripe( + int64_t stripe, std_vector[c_string]) + + CResult[shared_ptr[CTable]] Read() + CResult[shared_ptr[CTable]] Read(std_vector[c_string]) + + int64_t NumberOfStripes() + int64_t NumberOfRows() + FileVersion GetFileVersion() + c_string GetSoftwareVersion() + CResult[CCompressionType] GetCompression() + int64_t GetCompressionSize() + int64_t GetRowIndexStride() + WriterId GetWriterId() + int32_t GetWriterIdValue() + WriterVersion GetWriterVersion() + int64_t GetNumberOfStripeStatistics() + int64_t GetContentLength() + int64_t GetStripeStatisticsLength() + int64_t GetFileFooterLength() + int64_t GetFilePostscriptLength() + int64_t GetFileLength() + c_string GetSerializedFileTail() + + cdef cppclass ORCFileWriter: + @staticmethod + CResult[unique_ptr[ORCFileWriter]] Open( + COutputStream* output_stream, const WriteOptions& writer_options) + + CStatus Write(const CTable& table) + + CStatus Close() diff --git a/shared/package-files/ea/ea1301fa89f8622b76d2cf650d1287acdc58e8184ab0fd985aebfa12c8243966/blob b/shared/package-files/ea/ea1301fa89f8622b76d2cf650d1287acdc58e8184ab0fd985aebfa12c8243966/blob new file mode 100644 index 0000000000000000000000000000000000000000..9bbeaafa3c77e61db5aa07001e76226a7840e2c1 --- /dev/null +++ b/shared/package-files/ea/ea1301fa89f8622b76d2cf650d1287acdc58e8184ab0fd985aebfa12c8243966/blob @@ -0,0 +1,83 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API round { + using schema = at::Tensor (const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::round") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "round(Tensor self) -> Tensor") + static at::Tensor call(const at::Tensor & self); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self); +}; + +struct TORCH_API round_ { + using schema = at::Tensor & (at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::round_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "round_(Tensor(a!) self) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self); +}; + +struct TORCH_API round_out { + using schema = at::Tensor & (const at::Tensor &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::round") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "round.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out); +}; + +struct TORCH_API round_decimals { + using schema = at::Tensor (const at::Tensor &, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::round") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "decimals") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "round.decimals(Tensor self, *, int decimals) -> Tensor") + static at::Tensor call(const at::Tensor & self, int64_t decimals); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t decimals); +}; + +struct TORCH_API round__decimals { + using schema = at::Tensor & (at::Tensor &, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::round_") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "decimals") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "round_.decimals(Tensor(a!) self, *, int decimals) -> Tensor(a!)") + static at::Tensor & call(at::Tensor & self, int64_t decimals); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self, int64_t decimals); +}; + +struct TORCH_API round_decimals_out { + using schema = at::Tensor & (const at::Tensor &, int64_t, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::round") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "decimals_out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "round.decimals_out(Tensor self, *, int decimals, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, int64_t decimals, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t decimals, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/ea/ea139c1ea37d1fa8ad61b38c8f755849c6a9976d6248aa7321aa43bc65a95d3f/blob b/shared/package-files/ea/ea139c1ea37d1fa8ad61b38c8f755849c6a9976d6248aa7321aa43bc65a95d3f/blob new file mode 100644 index 0000000000000000000000000000000000000000..b240cd645a58e2794d39e7c0989d76d86f3e894a --- /dev/null +++ b/shared/package-files/ea/ea139c1ea37d1fa8ad61b38c8f755849c6a9976d6248aa7321aa43bc65a95d3f/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea139c1ea37d1fa8ad61b38c8f755849c6a9976d6248aa7321aa43bc65a95d3f +size 57613816 diff --git a/shared/package-files/ea/ea13db0f3cf80ae4a095cc85b29146c9608d556d002b281f3173d30f42ca23c4/blob b/shared/package-files/ea/ea13db0f3cf80ae4a095cc85b29146c9608d556d002b281f3173d30f42ca23c4/blob new file mode 100644 index 0000000000000000000000000000000000000000..370d4d5c1cba638ddc38108a7c8df2077c02c921 --- /dev/null +++ b/shared/package-files/ea/ea13db0f3cf80ae4a095cc85b29146c9608d556d002b281f3173d30f42ca23c4/blob @@ -0,0 +1,12 @@ +from typing import List, Tuple + +class GetoptError(Exception): + opt: str + msg: str + def __init__(self, msg: str, opt: str = ...) -> None: ... + def __str__(self) -> str: ... + +error = GetoptError + +def getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ... +def gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ... diff --git a/shared/package-files/ea/ea143b55d2b05f64605df24bc40e5535a376fee11dd4d637c5cf575f06022739/blob b/shared/package-files/ea/ea143b55d2b05f64605df24bc40e5535a376fee11dd4d637c5cf575f06022739/blob new file mode 100644 index 0000000000000000000000000000000000000000..53a89ddaa57bd0afe30fe1af56939429fefee058 --- /dev/null +++ b/shared/package-files/ea/ea143b55d2b05f64605df24bc40e5535a376fee11dd4d637c5cf575f06022739/blob @@ -0,0 +1,161 @@ +""" +Regression test for issue #5611 / PR #10482. + +CFGraph._find_topo_order must be stack-based (not recursive) so that +functions with large control-flow graphs do not exhaust the Python call +stack. + +The test is run in a subprocess so that sys.setrecursionlimit manipulation +is completely isolated from the rest of the suite. +""" + +import sys +import traceback +import unittest + +from numba.core.controlflow import CFGraph, ControlFlowAnalysis +from numba.tests.support import TestCase +from numba.core.bytecode import FunctionIdentity, ByteCode + + +# --------------------------------------------------------------------------- +# Pure helpers +# --------------------------------------------------------------------------- + +def _generate_large_cfg_source(count): + """ Source for function with unusually large CFG. """ + lines = ["def _large_cfg_func(x):"] + for i in range(count): + lines.append(f" dep_{i} = 1 if True else 0") + lines.append(f" val_{i} = x if dep_{i} else 0") + lines.append(" return x") + return "\n".join(lines) + + +def _create_cfg_from_function(func): + """Create a CFGraph from a Python function for direct testing.""" + func_id = FunctionIdentity.from_function(func) + bc = ByteCode(func_id) + cfa = ControlFlowAnalysis(bc) + cfa.run() + return cfa.graph + + +def _complex_func(x): + """ Test function for probing stack depth during compile. """ + dep_0 = 1 if True else 0 + val_0 = x if dep_0 else 0 # noqa: F841 + dep_1 = 1 if True else 0 + val_1 = x if dep_1 else 0 # noqa: F841 + return x + + +def _measure_trivial_compile_depth(): + """ + Return the Python frame depth at CFGraph._find_topo_order during a trivial + njit compilation. + """ + depth_sample = [0] + cfg = _create_cfg_from_function(_complex_func) + original = CFGraph._find_topo_order + + def _probing_topo_order(self): + f = sys._getframe() + d = 0 + while f is not None: + d += 1 + f = f.f_back + if d > depth_sample[0]: + depth_sample[0] = d + return original(self) + + CFGraph._find_topo_order = _probing_topo_order + + try: + cfg._find_topo_order() + finally: + CFGraph.process = original # always restore + + return depth_sample[0] + + +# --------------------------------------------------------------------------- +# Test class +# --------------------------------------------------------------------------- + +class TestCFGTopoOrderNonRecursive(TestCase): + + @TestCase.run_test_in_subprocess + def test_topo_order_no_recursion_in_large_cfg(self): + """ + Regression tests for PR #10482: _find_topo_order must not use recursive + Python calls, so that large CFGs cannot exhaust the stack. + + Steps + ----- + 1. Measure the frame depth at CFGraph.topo_order() during a trivial + njit compilation by patching the method to walk the frame + chain once; call this bsize. Add 2 for headroom. + 1a. Determine current frame_depth + 2. Lower sys.setrecursionlimit to bsize + frame_depth + 3. Attempt to compile a function with 100 ternary-expression + pairs. + 4. Catch any RecursionError. + 5. Restore sys.setrecursionlimit unconditionally. + 6. Fail the test and print the traceback if a RecursionError was + raised. + """ + + # ---- 1. Derive bsize and setup input -------------------------------- + bsize = int(_measure_trivial_compile_depth() + 2) + + def frames(): + f = sys._getframe(0) + while f is not None: + f = f.f_back + yield 1 + + frame_depth = sum(frames()) + + fun = _generate_large_cfg_source(100) + env = {} + exec( + compile( + fun, + "", + "exec", + ), + env, + ) + cfg = _create_cfg_from_function(env["_large_cfg_func"]) + + # ---- 2. Lower the recursion limit ----------------------------------- + original_limit = sys.getrecursionlimit() + sys.setrecursionlimit(bsize + frame_depth) + + # ---- 3 & 4. Compile large CFG; catch any overflow ------------------- + caught_exc = None + try: + cfg._find_topo_order() + except RecursionError as exc: + caught_exc = exc + finally: + # ---- 5. Restore limit unconditionally --------------------------- + sys.setrecursionlimit(original_limit) + + # ---- 6. Verify the error site (or celebrate clean success) ---------- + if caught_exc is None: + # The entire pipeline is iterative end-to-end: strongest result. + return + else: + # Fail + msg = ( + "Unexpected RecursionError." + "Potential regression related to finding toplogical order.\n\n" + "Full traceback:\n" + + "".join(traceback.format_tb(caught_exc.__traceback__))) + self.fail(msg) + + +if __name__ == "__main__": + unittest.main() diff --git a/shared/package-files/ea/ea1450334722ee1bb01cfb99adcd4bbdd72630551b894bf436ab266ec6fa70b9/blob b/shared/package-files/ea/ea1450334722ee1bb01cfb99adcd4bbdd72630551b894bf436ab266ec6fa70b9/blob new file mode 100644 index 0000000000000000000000000000000000000000..2fa3606c81d5205e1954e8b22856c1d9e728e0b2 Binary files /dev/null and b/shared/package-files/ea/ea1450334722ee1bb01cfb99adcd4bbdd72630551b894bf436ab266ec6fa70b9/blob differ diff --git a/shared/package-files/ea/ea1510c6cb68acd19da369969c20c7bd469ff57c23983c1bd753641e20753e63/blob b/shared/package-files/ea/ea1510c6cb68acd19da369969c20c7bd469ff57c23983c1bd753641e20753e63/blob new file mode 100644 index 0000000000000000000000000000000000000000..2def18a5df6ba0740a83c400b131d56a291b989f Binary files /dev/null and b/shared/package-files/ea/ea1510c6cb68acd19da369969c20c7bd469ff57c23983c1bd753641e20753e63/blob differ diff --git a/shared/package-files/ea/ea170436ee937b69253c489349e2c12113e51fb3c00e527014a6f1f31a673a18/blob b/shared/package-files/ea/ea170436ee937b69253c489349e2c12113e51fb3c00e527014a6f1f31a673a18/blob new file mode 100644 index 0000000000000000000000000000000000000000..9eba0af798f64ac3f8d464e2d3bf231567a48c9b --- /dev/null +++ b/shared/package-files/ea/ea170436ee937b69253c489349e2c12113e51fb3c00e527014a6f1f31a673a18/blob @@ -0,0 +1,291 @@ +""" +Check that the output from irrational functions is accurate for +high-precision input, from 5 to 200 digits. The reference values were +verified with Mathematica. +""" + +import time +from mpmath import * + +precs = [5, 15, 28, 35, 57, 80, 100, 150, 200] + +# sqrt(3) + pi/2 +a = \ +"3.302847134363773912758768033145623809041389953497933538543279275605"\ +"841220051904536395163599428307109666700184672047856353516867399774243594"\ +"67433521615861420725323528325327484262075464241255915238845599752675" + +# e + 1/euler**2 +b = \ +"5.719681166601007617111261398629939965860873957353320734275716220045750"\ +"31474116300529519620938123730851145473473708966080207482581266469342214"\ +"824842256999042984813905047895479210702109260221361437411947323431" + +# sqrt(a) +sqrt_a = \ +"1.817373691447021556327498239690365674922395036495564333152483422755"\ +"144321726165582817927383239308173567921345318453306994746434073691275094"\ +"484777905906961689902608644112196725896908619756404253109722911487" + +# sqrt(a+b*i).real +sqrt_abi_real = \ +"2.225720098415113027729407777066107959851146508557282707197601407276"\ +"89160998185797504198062911768240808839104987021515555650875977724230130"\ +"3584116233925658621288393930286871862273400475179312570274423840384" + +# sqrt(a+b*i).imag +sqrt_abi_imag = \ +"1.2849057639084690902371581529110949983261182430040898147672052833653668"\ +"0629534491275114877090834296831373498336559849050755848611854282001250"\ +"1924311019152914021365263161630765255610885489295778894976075186" + +# log(a) +log_a = \ +"1.194784864491089550288313512105715261520511949410072046160598707069"\ +"4336653155025770546309137440687056366757650909754708302115204338077595203"\ +"83005773986664564927027147084436553262269459110211221152925732612" + +# log(a+b*i).real +log_abi_real = \ +"1.8877985921697018111624077550443297276844736840853590212962006811663"\ +"04949387789489704203167470111267581371396245317618589339274243008242708"\ +"014251531496104028712866224020066439049377679709216784954509456421" + +# log(a+b*i).imag +log_abi_imag = \ +"1.0471204952840802663567714297078763189256357109769672185219334169734948"\ +"4265809854092437285294686651806426649541504240470168212723133326542181"\ +"8300136462287639956713914482701017346851009323172531601894918640" + +# exp(a) +exp_a = \ +"27.18994224087168661137253262213293847994194869430518354305430976149"\ +"382792035050358791398632888885200049857986258414049540376323785711941636"\ +"100358982497583832083513086941635049329804685212200507288797531143" + +# exp(a+b*i).real +exp_abi_real = \ +"22.98606617170543596386921087657586890620262522816912505151109385026"\ +"40160179326569526152851983847133513990281518417211964710397233157168852"\ +"4963130831190142571659948419307628119985383887599493378056639916701" + +# exp(a+b*i).imag +exp_abi_imag = \ +"-14.523557450291489727214750571590272774669907424478129280902375851196283"\ +"3377162379031724734050088565710975758824441845278120105728824497308303"\ +"6065619788140201636218705414429933685889542661364184694108251449" + +# a**b +pow_a_b = \ +"928.7025342285568142947391505837660251004990092821305668257284426997"\ +"361966028275685583421197860603126498884545336686124793155581311527995550"\ +"580229264427202446131740932666832138634013168125809402143796691154" + +# (a**(a+b*i)).real +pow_a_abi_real = \ +"44.09156071394489511956058111704382592976814280267142206420038656267"\ +"67707916510652790502399193109819563864568986234654864462095231138500505"\ +"8197456514795059492120303477512711977915544927440682508821426093455" + +# (a**(a+b*i)).imag +pow_a_abi_imag = \ +"27.069371511573224750478105146737852141664955461266218367212527612279886"\ +"9322304536553254659049205414427707675802193810711302947536332040474573"\ +"8166261217563960235014674118610092944307893857862518964990092301" + +# ((a+b*i)**(a+b*i)).real +pow_abi_abi_real = \ +"-0.15171310677859590091001057734676423076527145052787388589334350524"\ +"8084195882019497779202452975350579073716811284169068082670778986235179"\ +"0813026562962084477640470612184016755250592698408112493759742219150452"\ + +# ((a+b*i)**(a+b*i)).imag +pow_abi_abi_imag = \ +"1.2697592504953448936553147870155987153192995316950583150964099070426"\ +"4736837932577176947632535475040521749162383347758827307504526525647759"\ +"97547638617201824468382194146854367480471892602963428122896045019902" + +# sin(a) +sin_a = \ +"-0.16055653857469062740274792907968048154164433772938156243509084009"\ +"38437090841460493108570147191289893388608611542655654723437248152535114"\ +"528368009465836614227575701220612124204622383149391870684288862269631" + +# sin(1000*a) +sin_1000a = \ +"-0.85897040577443833776358106803777589664322997794126153477060795801"\ +"09151695416961724733492511852267067419573754315098042850381158563024337"\ +"216458577140500488715469780315833217177634490142748614625281171216863" + +# sin(a+b*i) +sin_abi_real = \ +"-24.4696999681556977743346798696005278716053366404081910969773939630"\ +"7149215135459794473448465734589287491880563183624997435193637389884206"\ +"02151395451271809790360963144464736839412254746645151672423256977064" + +sin_abi_imag = \ +"-150.42505378241784671801405965872972765595073690984080160750785565810981"\ +"8314482499135443827055399655645954830931316357243750839088113122816583"\ +"7169201254329464271121058839499197583056427233866320456505060735" + +# cos +cos_a = \ +"-0.98702664499035378399332439243967038895709261414476495730788864004"\ +"05406821549361039745258003422386169330787395654908532996287293003581554"\ +"257037193284199198069707141161341820684198547572456183525659969145501" + +cos_1000a = \ +"-0.51202523570982001856195696460663971099692261342827540426136215533"\ +"52686662667660613179619804463250686852463876088694806607652218586060613"\ +"951310588158830695735537073667299449753951774916401887657320950496820" + +# tan +tan_a = \ +"0.162666873675188117341401059858835168007137819495998960250142156848"\ +"639654718809412181543343168174807985559916643549174530459883826451064966"\ +"7996119428949951351938178809444268785629011625179962457123195557310" + +tan_abi_real = \ +"6.822696615947538488826586186310162599974827139564433912601918442911"\ +"1026830824380070400102213741875804368044342309515353631134074491271890"\ +"467615882710035471686578162073677173148647065131872116479947620E-6" + +tan_abi_imag = \ +"0.9999795833048243692245661011298447587046967777739649018690797625964167"\ +"1446419978852235960862841608081413169601038230073129482874832053357571"\ +"62702259309150715669026865777947502665936317953101462202542168429" + + +def test_hp(): + for dps in precs: + mp.dps = dps + 8 + aa = mpf(a) + bb = mpf(b) + a1000 = 1000*mpf(a) + abi = mpc(aa, bb) + mp.dps = dps + assert (sqrt(3) + pi/2).ae(aa) + assert (e + 1/euler**2).ae(bb) + + assert sqrt(aa).ae(mpf(sqrt_a)) + assert sqrt(abi).ae(mpc(sqrt_abi_real, sqrt_abi_imag)) + + assert log(aa).ae(mpf(log_a)) + assert log(abi).ae(mpc(log_abi_real, log_abi_imag)) + + assert exp(aa).ae(mpf(exp_a)) + assert exp(abi).ae(mpc(exp_abi_real, exp_abi_imag)) + + assert (aa**bb).ae(mpf(pow_a_b)) + assert (aa**abi).ae(mpc(pow_a_abi_real, pow_a_abi_imag)) + assert (abi**abi).ae(mpc(pow_abi_abi_real, pow_abi_abi_imag)) + + assert sin(a).ae(mpf(sin_a)) + assert sin(a1000).ae(mpf(sin_1000a)) + assert sin(abi).ae(mpc(sin_abi_real, sin_abi_imag)) + + assert cos(a).ae(mpf(cos_a)) + assert cos(a1000).ae(mpf(cos_1000a)) + + assert tan(a).ae(mpf(tan_a)) + assert tan(abi).ae(mpc(tan_abi_real, tan_abi_imag)) + + # check that complex cancellation is avoided so that both + # real and imaginary parts have high relative accuracy. + # abs_eps should be 0, but has to be set to 1e-205 to pass the + # 200-digit case, probably due to slight inaccuracy in the + # precomputed input + assert (tan(abi).real).ae(mpf(tan_abi_real), abs_eps=1e-205) + assert (tan(abi).imag).ae(mpf(tan_abi_imag), abs_eps=1e-205) + mp.dps = 460 + assert str(log(3))[-20:] == '02166121184001409826' + mp.dps = 15 + +# Since str(a) can differ in the last digit from rounded a, and I want +# to compare the last digits of big numbers with the results in Mathematica, +# I made this hack to get the last 20 digits of rounded a + +def last_digits(a): + r = repr(a) + s = str(a) + #dps = mp.dps + #mp.dps += 3 + m = 10 + r = r.replace(s[:-m],'') + r = r.replace("mpf('",'').replace("')",'') + num0 = 0 + for c in r: + if c == '0': + num0 += 1 + else: + break + b = float(int(r))/10**(len(r) - m) + if b >= 10**m - 0.5: # pragma: no cover + raise NotImplementedError + n = int(round(b)) + sn = str(n) + s = s[:-m] + '0'*num0 + sn + return s[-20:] + +# values checked with Mathematica +def test_log_hp(): + mp.dps = 2000 + a = mpf(10)**15000/3 + r = log(a) + res = last_digits(r) + # Mathematica N[Log[10^15000/3], 2000] + # ...7443804441768333470331 + assert res == '43804441768333470331' + + # see issue 145 + r = log(mpf(3)/2) + # Mathematica N[Log[3/2], 2000] + # ...69653749808140753263288 + res = last_digits(r) + assert res == '53749808140753263288' + + mp.dps = 10000 + r = log(2) + res = last_digits(r) + # Mathematica N[Log[2], 10000] + # ...695615913401856601359655561 + assert res == '13401856601359655561' + r = log(mpf(10)**10/3) + res = last_digits(r) + # Mathematica N[Log[10^10/3], 10000] + # ...587087654020631943060007154 + assert res == '54020631943060007154', res + r = log(mpf(10)**100/3) + res = last_digits(r) + # Mathematica N[Log[10^100/3], 10000] + # ,,,59246336539088351652334666 + assert res == '36539088351652334666', res + mp.dps += 10 + a = 1 - mpf(1)/10**10 + mp.dps -= 10 + r = log(a) + res = last_digits(r) + # ...3310334360482956137216724048322957404 + # 372167240483229574038733026370 + # Mathematica N[Log[1 - 10^-10]*10^10, 10000] + # ...60482956137216724048322957404 + assert res == '37216724048322957404', res + mp.dps = 10000 + mp.dps += 100 + a = 1 + mpf(1)/10**100 + mp.dps -= 100 + + r = log(a) + res = last_digits(+r) + # Mathematica N[Log[1 + 10^-100]*10^10, 10030] + # ...3994733877377412241546890854692521568292338268273 10^-91 + assert res == '39947338773774122415', res + + mp.dps = 15 + +def test_exp_hp(): + mp.dps = 4000 + r = exp(mpf(1)/10) + # IntegerPart[N[Exp[1/10] * 10^4000, 4000]] + # ...92167105162069688129 + assert int(r * 10**mp.dps) % 10**20 == 92167105162069688129 diff --git a/shared/package-files/ea/ea1888477778cf1cb7e588b0f7ad6bf6c62b365f93e564bcff46ae4a6a5d881d/blob b/shared/package-files/ea/ea1888477778cf1cb7e588b0f7ad6bf6c62b365f93e564bcff46ae4a6a5d881d/blob new file mode 100644 index 0000000000000000000000000000000000000000..92ade55f7c015f4c8740cf6176e80f51f8f771ab --- /dev/null +++ b/shared/package-files/ea/ea1888477778cf1cb7e588b0f7ad6bf6c62b365f93e564bcff46ae4a6a5d881d/blob @@ -0,0 +1,615 @@ +# mypy: allow-untyped-defs +from __future__ import annotations + +import collections.abc +import dataclasses +import inspect +from typing import Any +from typing import Callable +from typing import Collection +from typing import final +from typing import Iterable +from typing import Iterator +from typing import Mapping +from typing import MutableMapping +from typing import NamedTuple +from typing import overload +from typing import Sequence +from typing import TYPE_CHECKING +from typing import TypeVar +from typing import Union +import warnings + +from .._code import getfslineno +from ..compat import ascii_escaped +from ..compat import NOTSET +from ..compat import NotSetType +from _pytest.config import Config +from _pytest.deprecated import check_ispytest +from _pytest.deprecated import MARKED_FIXTURE +from _pytest.outcomes import fail +from _pytest.scope import _ScopeName +from _pytest.warning_types import PytestUnknownMarkWarning + + +if TYPE_CHECKING: + from ..nodes import Node + + +EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark" + + +def istestfunc(func) -> bool: + return callable(func) and getattr(func, "__name__", "") != "" + + +def get_empty_parameterset_mark( + config: Config, argnames: Sequence[str], func +) -> MarkDecorator: + from ..nodes import Collector + + fs, lineno = getfslineno(func) + reason = "got empty parameter set %r, function %s at %s:%d" % ( + argnames, + func.__name__, + fs, + lineno, + ) + + requested_mark = config.getini(EMPTY_PARAMETERSET_OPTION) + if requested_mark in ("", None, "skip"): + mark = MARK_GEN.skip(reason=reason) + elif requested_mark == "xfail": + mark = MARK_GEN.xfail(reason=reason, run=False) + elif requested_mark == "fail_at_collect": + f_name = func.__name__ + _, lineno = getfslineno(func) + raise Collector.CollectError( + "Empty parameter set in '%s' at line %d" % (f_name, lineno + 1) + ) + else: + raise LookupError(requested_mark) + return mark + + +class ParameterSet(NamedTuple): + values: Sequence[object | NotSetType] + marks: Collection[MarkDecorator | Mark] + id: str | None + + @classmethod + def param( + cls, + *values: object, + marks: MarkDecorator | Collection[MarkDecorator | Mark] = (), + id: str | None = None, + ) -> ParameterSet: + if isinstance(marks, MarkDecorator): + marks = (marks,) + else: + assert isinstance(marks, collections.abc.Collection) + + if id is not None: + if not isinstance(id, str): + raise TypeError(f"Expected id to be a string, got {type(id)}: {id!r}") + id = ascii_escaped(id) + return cls(values, marks, id) + + @classmethod + def extract_from( + cls, + parameterset: ParameterSet | Sequence[object] | object, + force_tuple: bool = False, + ) -> ParameterSet: + """Extract from an object or objects. + + :param parameterset: + A legacy style parameterset that may or may not be a tuple, + and may or may not be wrapped into a mess of mark objects. + + :param force_tuple: + Enforce tuple wrapping so single argument tuple values + don't get decomposed and break tests. + """ + if isinstance(parameterset, cls): + return parameterset + if force_tuple: + return cls.param(parameterset) + else: + # TODO: Refactor to fix this type-ignore. Currently the following + # passes type-checking but crashes: + # + # @pytest.mark.parametrize(('x', 'y'), [1, 2]) + # def test_foo(x, y): pass + return cls(parameterset, marks=[], id=None) # type: ignore[arg-type] + + @staticmethod + def _parse_parametrize_args( + argnames: str | Sequence[str], + argvalues: Iterable[ParameterSet | Sequence[object] | object], + *args, + **kwargs, + ) -> tuple[Sequence[str], bool]: + if isinstance(argnames, str): + argnames = [x.strip() for x in argnames.split(",") if x.strip()] + force_tuple = len(argnames) == 1 + else: + force_tuple = False + return argnames, force_tuple + + @staticmethod + def _parse_parametrize_parameters( + argvalues: Iterable[ParameterSet | Sequence[object] | object], + force_tuple: bool, + ) -> list[ParameterSet]: + return [ + ParameterSet.extract_from(x, force_tuple=force_tuple) for x in argvalues + ] + + @classmethod + def _for_parametrize( + cls, + argnames: str | Sequence[str], + argvalues: Iterable[ParameterSet | Sequence[object] | object], + func, + config: Config, + nodeid: str, + ) -> tuple[Sequence[str], list[ParameterSet]]: + argnames, force_tuple = cls._parse_parametrize_args(argnames, argvalues) + parameters = cls._parse_parametrize_parameters(argvalues, force_tuple) + del argvalues + + if parameters: + # Check all parameter sets have the correct number of values. + for param in parameters: + if len(param.values) != len(argnames): + msg = ( + '{nodeid}: in "parametrize" the number of names ({names_len}):\n' + " {names}\n" + "must be equal to the number of values ({values_len}):\n" + " {values}" + ) + fail( + msg.format( + nodeid=nodeid, + values=param.values, + names=argnames, + names_len=len(argnames), + values_len=len(param.values), + ), + pytrace=False, + ) + else: + # Empty parameter set (likely computed at runtime): create a single + # parameter set with NOTSET values, with the "empty parameter set" mark applied to it. + mark = get_empty_parameterset_mark(config, argnames, func) + parameters.append( + ParameterSet(values=(NOTSET,) * len(argnames), marks=[mark], id=None) + ) + return argnames, parameters + + +@final +@dataclasses.dataclass(frozen=True) +class Mark: + """A pytest mark.""" + + #: Name of the mark. + name: str + #: Positional arguments of the mark decorator. + args: tuple[Any, ...] + #: Keyword arguments of the mark decorator. + kwargs: Mapping[str, Any] + + #: Source Mark for ids with parametrize Marks. + _param_ids_from: Mark | None = dataclasses.field(default=None, repr=False) + #: Resolved/generated ids with parametrize Marks. + _param_ids_generated: Sequence[str] | None = dataclasses.field( + default=None, repr=False + ) + + def __init__( + self, + name: str, + args: tuple[Any, ...], + kwargs: Mapping[str, Any], + param_ids_from: Mark | None = None, + param_ids_generated: Sequence[str] | None = None, + *, + _ispytest: bool = False, + ) -> None: + """:meta private:""" + check_ispytest(_ispytest) + # Weirdness to bypass frozen=True. + object.__setattr__(self, "name", name) + object.__setattr__(self, "args", args) + object.__setattr__(self, "kwargs", kwargs) + object.__setattr__(self, "_param_ids_from", param_ids_from) + object.__setattr__(self, "_param_ids_generated", param_ids_generated) + + def _has_param_ids(self) -> bool: + return "ids" in self.kwargs or len(self.args) >= 4 + + def combined_with(self, other: Mark) -> Mark: + """Return a new Mark which is a combination of this + Mark and another Mark. + + Combines by appending args and merging kwargs. + + :param Mark other: The mark to combine with. + :rtype: Mark + """ + assert self.name == other.name + + # Remember source of ids with parametrize Marks. + param_ids_from: Mark | None = None + if self.name == "parametrize": + if other._has_param_ids(): + param_ids_from = other + elif self._has_param_ids(): + param_ids_from = self + + return Mark( + self.name, + self.args + other.args, + dict(self.kwargs, **other.kwargs), + param_ids_from=param_ids_from, + _ispytest=True, + ) + + +# A generic parameter designating an object to which a Mark may +# be applied -- a test function (callable) or class. +# Note: a lambda is not allowed, but this can't be represented. +Markable = TypeVar("Markable", bound=Union[Callable[..., object], type]) + + +@dataclasses.dataclass +class MarkDecorator: + """A decorator for applying a mark on test functions and classes. + + ``MarkDecorators`` are created with ``pytest.mark``:: + + mark1 = pytest.mark.NAME # Simple MarkDecorator + mark2 = pytest.mark.NAME(name1=value) # Parametrized MarkDecorator + + and can then be applied as decorators to test functions:: + + @mark2 + def test_function(): + pass + + When a ``MarkDecorator`` is called, it does the following: + + 1. If called with a single class as its only positional argument and no + additional keyword arguments, it attaches the mark to the class so it + gets applied automatically to all test cases found in that class. + + 2. If called with a single function as its only positional argument and + no additional keyword arguments, it attaches the mark to the function, + containing all the arguments already stored internally in the + ``MarkDecorator``. + + 3. When called in any other case, it returns a new ``MarkDecorator`` + instance with the original ``MarkDecorator``'s content updated with + the arguments passed to this call. + + Note: The rules above prevent a ``MarkDecorator`` from storing only a + single function or class reference as its positional argument with no + additional keyword or positional arguments. You can work around this by + using `with_args()`. + """ + + mark: Mark + + def __init__(self, mark: Mark, *, _ispytest: bool = False) -> None: + """:meta private:""" + check_ispytest(_ispytest) + self.mark = mark + + @property + def name(self) -> str: + """Alias for mark.name.""" + return self.mark.name + + @property + def args(self) -> tuple[Any, ...]: + """Alias for mark.args.""" + return self.mark.args + + @property + def kwargs(self) -> Mapping[str, Any]: + """Alias for mark.kwargs.""" + return self.mark.kwargs + + @property + def markname(self) -> str: + """:meta private:""" + return self.name # for backward-compat (2.4.1 had this attr) + + def with_args(self, *args: object, **kwargs: object) -> MarkDecorator: + """Return a MarkDecorator with extra arguments added. + + Unlike calling the MarkDecorator, with_args() can be used even + if the sole argument is a callable/class. + """ + mark = Mark(self.name, args, kwargs, _ispytest=True) + return MarkDecorator(self.mark.combined_with(mark), _ispytest=True) + + # Type ignored because the overloads overlap with an incompatible + # return type. Not much we can do about that. Thankfully mypy picks + # the first match so it works out even if we break the rules. + @overload + def __call__(self, arg: Markable) -> Markable: # type: ignore[overload-overlap] + pass + + @overload + def __call__(self, *args: object, **kwargs: object) -> MarkDecorator: + pass + + def __call__(self, *args: object, **kwargs: object): + """Call the MarkDecorator.""" + if args and not kwargs: + func = args[0] + is_class = inspect.isclass(func) + if len(args) == 1 and (istestfunc(func) or is_class): + store_mark(func, self.mark, stacklevel=3) + return func + return self.with_args(*args, **kwargs) + + +def get_unpacked_marks( + obj: object | type, + *, + consider_mro: bool = True, +) -> list[Mark]: + """Obtain the unpacked marks that are stored on an object. + + If obj is a class and consider_mro is true, return marks applied to + this class and all of its super-classes in MRO order. If consider_mro + is false, only return marks applied directly to this class. + """ + if isinstance(obj, type): + if not consider_mro: + mark_lists = [obj.__dict__.get("pytestmark", [])] + else: + mark_lists = [ + x.__dict__.get("pytestmark", []) for x in reversed(obj.__mro__) + ] + mark_list = [] + for item in mark_lists: + if isinstance(item, list): + mark_list.extend(item) + else: + mark_list.append(item) + else: + mark_attribute = getattr(obj, "pytestmark", []) + if isinstance(mark_attribute, list): + mark_list = mark_attribute + else: + mark_list = [mark_attribute] + return list(normalize_mark_list(mark_list)) + + +def normalize_mark_list( + mark_list: Iterable[Mark | MarkDecorator], +) -> Iterable[Mark]: + """ + Normalize an iterable of Mark or MarkDecorator objects into a list of marks + by retrieving the `mark` attribute on MarkDecorator instances. + + :param mark_list: marks to normalize + :returns: A new list of the extracted Mark objects + """ + for mark in mark_list: + mark_obj = getattr(mark, "mark", mark) + if not isinstance(mark_obj, Mark): + raise TypeError(f"got {mark_obj!r} instead of Mark") + yield mark_obj + + +def store_mark(obj, mark: Mark, *, stacklevel: int = 2) -> None: + """Store a Mark on an object. + + This is used to implement the Mark declarations/decorators correctly. + """ + assert isinstance(mark, Mark), mark + + from ..fixtures import getfixturemarker + + if getfixturemarker(obj) is not None: + warnings.warn(MARKED_FIXTURE, stacklevel=stacklevel) + + # Always reassign name to avoid updating pytestmark in a reference that + # was only borrowed. + obj.pytestmark = [*get_unpacked_marks(obj, consider_mro=False), mark] + + +# Typing for builtin pytest marks. This is cheating; it gives builtin marks +# special privilege, and breaks modularity. But practicality beats purity... +if TYPE_CHECKING: + + class _SkipMarkDecorator(MarkDecorator): + @overload # type: ignore[override,no-overload-impl] + def __call__(self, arg: Markable) -> Markable: ... + + @overload + def __call__(self, reason: str = ...) -> MarkDecorator: ... + + class _SkipifMarkDecorator(MarkDecorator): + def __call__( # type: ignore[override] + self, + condition: str | bool = ..., + *conditions: str | bool, + reason: str = ..., + ) -> MarkDecorator: ... + + class _XfailMarkDecorator(MarkDecorator): + @overload # type: ignore[override,no-overload-impl] + def __call__(self, arg: Markable) -> Markable: ... + + @overload + def __call__( + self, + condition: str | bool = False, + *conditions: str | bool, + reason: str = ..., + run: bool = ..., + raises: None | type[BaseException] | tuple[type[BaseException], ...] = ..., + strict: bool = ..., + ) -> MarkDecorator: ... + + class _ParametrizeMarkDecorator(MarkDecorator): + def __call__( # type: ignore[override] + self, + argnames: str | Sequence[str], + argvalues: Iterable[ParameterSet | Sequence[object] | object], + *, + indirect: bool | Sequence[str] = ..., + ids: Iterable[None | str | float | int | bool] + | Callable[[Any], object | None] + | None = ..., + scope: _ScopeName | None = ..., + ) -> MarkDecorator: ... + + class _UsefixturesMarkDecorator(MarkDecorator): + def __call__(self, *fixtures: str) -> MarkDecorator: # type: ignore[override] + ... + + class _FilterwarningsMarkDecorator(MarkDecorator): + def __call__(self, *filters: str) -> MarkDecorator: # type: ignore[override] + ... + + +@final +class MarkGenerator: + """Factory for :class:`MarkDecorator` objects - exposed as + a ``pytest.mark`` singleton instance. + + Example:: + + import pytest + + + @pytest.mark.slowtest + def test_function(): + pass + + applies a 'slowtest' :class:`Mark` on ``test_function``. + """ + + # See TYPE_CHECKING above. + if TYPE_CHECKING: + skip: _SkipMarkDecorator + skipif: _SkipifMarkDecorator + xfail: _XfailMarkDecorator + parametrize: _ParametrizeMarkDecorator + usefixtures: _UsefixturesMarkDecorator + filterwarnings: _FilterwarningsMarkDecorator + + def __init__(self, *, _ispytest: bool = False) -> None: + check_ispytest(_ispytest) + self._config: Config | None = None + self._markers: set[str] = set() + + def __getattr__(self, name: str) -> MarkDecorator: + """Generate a new :class:`MarkDecorator` with the given name.""" + if name[0] == "_": + raise AttributeError("Marker name must NOT start with underscore") + + if self._config is not None: + # We store a set of markers as a performance optimisation - if a mark + # name is in the set we definitely know it, but a mark may be known and + # not in the set. We therefore start by updating the set! + if name not in self._markers: + for line in self._config.getini("markers"): + # example lines: "skipif(condition): skip the given test if..." + # or "hypothesis: tests which use Hypothesis", so to get the + # marker name we split on both `:` and `(`. + marker = line.split(":")[0].split("(")[0].strip() + self._markers.add(marker) + + # If the name is not in the set of known marks after updating, + # then it really is time to issue a warning or an error. + if name not in self._markers: + if self._config.option.strict_markers or self._config.option.strict: + fail( + f"{name!r} not found in `markers` configuration option", + pytrace=False, + ) + + # Raise a specific error for common misspellings of "parametrize". + if name in ["parameterize", "parametrise", "parameterise"]: + __tracebackhide__ = True + fail(f"Unknown '{name}' mark, did you mean 'parametrize'?") + + warnings.warn( + f"Unknown pytest.mark.{name} - is this a typo? You can register " + "custom marks to avoid this warning - for details, see " + "https://docs.pytest.org/en/stable/how-to/mark.html", + PytestUnknownMarkWarning, + 2, + ) + + return MarkDecorator(Mark(name, (), {}, _ispytest=True), _ispytest=True) + + +MARK_GEN = MarkGenerator(_ispytest=True) + + +@final +class NodeKeywords(MutableMapping[str, Any]): + __slots__ = ("node", "parent", "_markers") + + def __init__(self, node: Node) -> None: + self.node = node + self.parent = node.parent + self._markers = {node.name: True} + + def __getitem__(self, key: str) -> Any: + try: + return self._markers[key] + except KeyError: + if self.parent is None: + raise + return self.parent.keywords[key] + + def __setitem__(self, key: str, value: Any) -> None: + self._markers[key] = value + + # Note: we could've avoided explicitly implementing some of the methods + # below and use the collections.abc fallback, but that would be slow. + + def __contains__(self, key: object) -> bool: + return ( + key in self._markers + or self.parent is not None + and key in self.parent.keywords + ) + + def update( # type: ignore[override] + self, + other: Mapping[str, Any] | Iterable[tuple[str, Any]] = (), + **kwds: Any, + ) -> None: + self._markers.update(other) + self._markers.update(kwds) + + def __delitem__(self, key: str) -> None: + raise ValueError("cannot delete key in keywords dict") + + def __iter__(self) -> Iterator[str]: + # Doesn't need to be fast. + yield from self._markers + if self.parent is not None: + for keyword in self.parent.keywords: + # self._marks and self.parent.keywords can have duplicates. + if keyword not in self._markers: + yield keyword + + def __len__(self) -> int: + # Doesn't need to be fast. + return sum(1 for keyword in self) + + def __repr__(self) -> str: + return f"" diff --git a/shared/package-files/ea/ea1d34cf994ec0590d810cbe37fa509bc88febd96bd3ba9117b6d6e6e28ab23b/blob b/shared/package-files/ea/ea1d34cf994ec0590d810cbe37fa509bc88febd96bd3ba9117b6d6e6e28ab23b/blob new file mode 100644 index 0000000000000000000000000000000000000000..8082c39182877806f01e4da7d6652b5d35929b2f --- /dev/null +++ b/shared/package-files/ea/ea1d34cf994ec0590d810cbe37fa509bc88febd96bd3ba9117b6d6e6e28ab23b/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea1d34cf994ec0590d810cbe37fa509bc88febd96bd3ba9117b6d6e6e28ab23b +size 415194 diff --git a/shared/package-files/ea/ea1d73c04d1228ffae927cae1393e2e57f6f4d2e0be5906db3f8926ece9c48bf/blob b/shared/package-files/ea/ea1d73c04d1228ffae927cae1393e2e57f6f4d2e0be5906db3f8926ece9c48bf/blob new file mode 100644 index 0000000000000000000000000000000000000000..f783a388d75179e9b68e373da65218dfffb04b55 --- /dev/null +++ b/shared/package-files/ea/ea1d73c04d1228ffae927cae1393e2e57f6f4d2e0be5906db3f8926ece9c48bf/blob @@ -0,0 +1,199 @@ +import numpy as np +import pytest + +from pandas import ( + DataFrame, + Series, +) +import pandas._testing as tm + + +class TestDataFrameClip: + def test_clip(self, float_frame): + median = float_frame.median().median() + original = float_frame.copy() + + double = float_frame.clip(upper=median, lower=median) + assert not (double.values != median).any() + + # Verify that float_frame was not changed inplace + assert (float_frame.values == original.values).all() + + def test_inplace_clip(self, float_frame): + # GH#15388 + median = float_frame.median().median() + frame_copy = float_frame.copy() + + return_value = frame_copy.clip(upper=median, lower=median, inplace=True) + assert return_value is None + assert not (frame_copy.values != median).any() + + def test_dataframe_clip(self): + # GH#2747 + df = DataFrame(np.random.default_rng(2).standard_normal((1000, 2))) + + for lb, ub in [(-1, 1), (1, -1)]: + clipped_df = df.clip(lb, ub) + + lb, ub = min(lb, ub), max(ub, lb) + lb_mask = df.values <= lb + ub_mask = df.values >= ub + mask = ~lb_mask & ~ub_mask + assert (clipped_df.values[lb_mask] == lb).all() + assert (clipped_df.values[ub_mask] == ub).all() + assert (clipped_df.values[mask] == df.values[mask]).all() + + def test_clip_mixed_numeric(self): + # clip on mixed integer or floats + # GH#24162, clipping now preserves numeric types per column + df = DataFrame({"A": [1, 2, 3], "B": [1.0, np.nan, 3.0]}) + result = df.clip(1, 2) + expected = DataFrame({"A": [1, 2, 2], "B": [1.0, np.nan, 2.0]}) + tm.assert_frame_equal(result, expected) + + df = DataFrame([[1, 2, 3.4], [3, 4, 5.6]], columns=["foo", "bar", "baz"]) + expected = df.dtypes + result = df.clip(upper=3).dtypes + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("inplace", [True, False]) + def test_clip_against_series(self, inplace): + # GH#6966 + + df = DataFrame(np.random.default_rng(2).standard_normal((1000, 2))) + lb = Series(np.random.default_rng(2).standard_normal(1000)) + ub = lb + 1 + + original = df.copy() + clipped_df = df.clip(lb, ub, axis=0, inplace=inplace) + + if inplace: + clipped_df = df + + for i in range(2): + lb_mask = original.iloc[:, i] <= lb + ub_mask = original.iloc[:, i] >= ub + mask = ~lb_mask & ~ub_mask + + result = clipped_df.loc[lb_mask, i] + tm.assert_series_equal(result, lb[lb_mask], check_names=False) + assert result.name == i + + result = clipped_df.loc[ub_mask, i] + tm.assert_series_equal(result, ub[ub_mask], check_names=False) + assert result.name == i + + tm.assert_series_equal(clipped_df.loc[mask, i], df.loc[mask, i]) + + @pytest.mark.parametrize("inplace", [True, False]) + @pytest.mark.parametrize("lower", [[2, 3, 4], np.asarray([2, 3, 4])]) + @pytest.mark.parametrize( + "axis,res", + [ + (0, [[2.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 7.0, 7.0]]), + (1, [[2.0, 3.0, 4.0], [4.0, 5.0, 6.0], [5.0, 6.0, 7.0]]), + ], + ) + def test_clip_against_list_like(self, inplace, lower, axis, res): + # GH#15390 + arr = np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]]) + + original = DataFrame( + arr, columns=["one", "two", "three"], index=["a", "b", "c"] + ) + + result = original.clip(lower=lower, upper=[5, 6, 7], axis=axis, inplace=inplace) + + expected = DataFrame(res, columns=original.columns, index=original.index) + if inplace: + result = original + tm.assert_frame_equal(result, expected, check_exact=True) + + @pytest.mark.parametrize("axis", [0, 1, None]) + def test_clip_against_frame(self, axis): + df = DataFrame(np.random.default_rng(2).standard_normal((1000, 2))) + lb = DataFrame(np.random.default_rng(2).standard_normal((1000, 2))) + ub = lb + 1 + + clipped_df = df.clip(lb, ub, axis=axis) + + lb_mask = df <= lb + ub_mask = df >= ub + mask = ~lb_mask & ~ub_mask + + tm.assert_frame_equal(clipped_df[lb_mask], lb[lb_mask]) + tm.assert_frame_equal(clipped_df[ub_mask], ub[ub_mask]) + tm.assert_frame_equal(clipped_df[mask], df[mask]) + + def test_clip_against_unordered_columns(self): + # GH#20911 + df1 = DataFrame( + np.random.default_rng(2).standard_normal((1000, 4)), + columns=["A", "B", "C", "D"], + ) + df2 = DataFrame( + np.random.default_rng(2).standard_normal((1000, 4)), + columns=["D", "A", "B", "C"], + ) + df3 = DataFrame(df2.values - 1, columns=["B", "D", "C", "A"]) + result_upper = df1.clip(lower=0, upper=df2) + expected_upper = df1.clip(lower=0, upper=df2[df1.columns]) + result_lower = df1.clip(lower=df3, upper=3) + expected_lower = df1.clip(lower=df3[df1.columns], upper=3) + result_lower_upper = df1.clip(lower=df3, upper=df2) + expected_lower_upper = df1.clip(lower=df3[df1.columns], upper=df2[df1.columns]) + tm.assert_frame_equal(result_upper, expected_upper) + tm.assert_frame_equal(result_lower, expected_lower) + tm.assert_frame_equal(result_lower_upper, expected_lower_upper) + + def test_clip_with_na_args(self, float_frame): + """Should process np.nan argument as None""" + # GH#17276 + tm.assert_frame_equal(float_frame.clip(np.nan), float_frame) + tm.assert_frame_equal(float_frame.clip(upper=np.nan, lower=np.nan), float_frame) + + # GH#19992 and adjusted in GH#40420 + df = DataFrame({"col_0": [1, 2, 3], "col_1": [4, 5, 6], "col_2": [7, 8, 9]}) + + msg = "Downcasting behavior in Series and DataFrame methods 'where'" + # TODO: avoid this warning here? seems like we should never be upcasting + # in the first place? + with tm.assert_produces_warning(FutureWarning, match=msg): + result = df.clip(lower=[4, 5, np.nan], axis=0) + expected = DataFrame( + {"col_0": [4, 5, 3], "col_1": [4, 5, 6], "col_2": [7, 8, 9]} + ) + tm.assert_frame_equal(result, expected) + + result = df.clip(lower=[4, 5, np.nan], axis=1) + expected = DataFrame( + {"col_0": [4, 4, 4], "col_1": [5, 5, 6], "col_2": [7, 8, 9]} + ) + tm.assert_frame_equal(result, expected) + + # GH#40420 + data = {"col_0": [9, -3, 0, -1, 5], "col_1": [-2, -7, 6, 8, -5]} + df = DataFrame(data) + t = Series([2, -4, np.nan, 6, 3]) + with tm.assert_produces_warning(FutureWarning, match=msg): + result = df.clip(lower=t, axis=0) + expected = DataFrame({"col_0": [9, -3, 0, 6, 5], "col_1": [2, -4, 6, 8, 3]}) + tm.assert_frame_equal(result, expected) + + def test_clip_int_data_with_float_bound(self): + # GH51472 + df = DataFrame({"a": [1, 2, 3]}) + result = df.clip(lower=1.5) + expected = DataFrame({"a": [1.5, 2.0, 3.0]}) + tm.assert_frame_equal(result, expected) + + def test_clip_with_list_bound(self): + # GH#54817 + df = DataFrame([1, 5]) + expected = DataFrame([3, 5]) + result = df.clip([3]) + tm.assert_frame_equal(result, expected) + + expected = DataFrame([1, 3]) + result = df.clip(upper=[3]) + tm.assert_frame_equal(result, expected) diff --git a/shared/package-files/ea/ea1e062d70a21f50a491af04e34131edec1c0ea372507afd78b203e42f99962a/blob b/shared/package-files/ea/ea1e062d70a21f50a491af04e34131edec1c0ea372507afd78b203e42f99962a/blob new file mode 100644 index 0000000000000000000000000000000000000000..7b8dc7bdcd8c7b5b2138aba164ceb3da721ffeda --- /dev/null +++ b/shared/package-files/ea/ea1e062d70a21f50a491af04e34131edec1c0ea372507afd78b203e42f99962a/blob @@ -0,0 +1,4621 @@ +"""Wrapper functions for Tcl/Tk. + +Tkinter provides classes which allow the display, positioning and +control of widgets. Toplevel widgets are Tk and Toplevel. Other +widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton, +Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox +LabelFrame and PanedWindow. + +Properties of the widgets are specified with keyword arguments. +Keyword arguments have the same name as the corresponding resource +under Tk. + +Widgets are positioned with one of the geometry managers Place, Pack +or Grid. These managers can be called with methods place, pack, grid +available in every Widget. + +Actions are bound to events by resources (e.g. keyword argument +command) or with the method bind. + +Example (Hello, World): +import tkinter +from tkinter.constants import * +tk = tkinter.Tk() +frame = tkinter.Frame(tk, relief=RIDGE, borderwidth=2) +frame.pack(fill=BOTH,expand=1) +label = tkinter.Label(frame, text="Hello, World") +label.pack(fill=X, expand=1) +button = tkinter.Button(frame,text="Exit",command=tk.destroy) +button.pack(side=BOTTOM) +tk.mainloop() +""" + +import enum +import sys +import types + +import _tkinter # If this fails your Python may not be configured for Tk +TclError = _tkinter.TclError +from tkinter.constants import * +import re + +wantobjects = 1 + +TkVersion = float(_tkinter.TK_VERSION) +TclVersion = float(_tkinter.TCL_VERSION) + +READABLE = _tkinter.READABLE +WRITABLE = _tkinter.WRITABLE +EXCEPTION = _tkinter.EXCEPTION + + +_magic_re = re.compile(r'([\\{}])') +_space_re = re.compile(r'([\s])', re.ASCII) + + +def _join(value): + """Internal function.""" + return ' '.join(map(_stringify, value)) + + +def _stringify(value): + """Internal function.""" + if isinstance(value, (list, tuple)): + if len(value) == 1: + value = _stringify(value[0]) + if _magic_re.search(value): + value = '{%s}' % value + else: + value = '{%s}' % _join(value) + else: + value = str(value) + if not value: + value = '{}' + elif _magic_re.search(value): + # add '\' before special characters and spaces + value = _magic_re.sub(r'\\\1', value) + value = value.replace('\n', r'\n') + value = _space_re.sub(r'\\\1', value) + if value[0] == '"': + value = '\\' + value + elif value[0] == '"' or _space_re.search(value): + value = '{%s}' % value + return value + + +def _flatten(seq): + """Internal function.""" + res = () + for item in seq: + if isinstance(item, (tuple, list)): + res = res + _flatten(item) + elif item is not None: + res = res + (item,) + return res + + +try: _flatten = _tkinter._flatten +except AttributeError: pass + + +def _cnfmerge(cnfs): + """Internal function.""" + if isinstance(cnfs, dict): + return cnfs + elif isinstance(cnfs, (type(None), str)): + return cnfs + else: + cnf = {} + for c in _flatten(cnfs): + try: + cnf.update(c) + except (AttributeError, TypeError) as msg: + print("_cnfmerge: fallback due to:", msg) + for k, v in c.items(): + cnf[k] = v + return cnf + + +try: _cnfmerge = _tkinter._cnfmerge +except AttributeError: pass + + +def _splitdict(tk, v, cut_minus=True, conv=None): + """Return a properly formatted dict built from Tcl list pairs. + + If cut_minus is True, the supposed '-' prefix will be removed from + keys. If conv is specified, it is used to convert values. + + Tcl list is expected to contain an even number of elements. + """ + t = tk.splitlist(v) + if len(t) % 2: + raise RuntimeError('Tcl list representing a dict is expected ' + 'to contain an even number of elements') + it = iter(t) + dict = {} + for key, value in zip(it, it): + key = str(key) + if cut_minus and key[0] == '-': + key = key[1:] + if conv: + value = conv(value) + dict[key] = value + return dict + + +class EventType(str, enum.Enum): + KeyPress = '2' + Key = KeyPress + KeyRelease = '3' + ButtonPress = '4' + Button = ButtonPress + ButtonRelease = '5' + Motion = '6' + Enter = '7' + Leave = '8' + FocusIn = '9' + FocusOut = '10' + Keymap = '11' # undocumented + Expose = '12' + GraphicsExpose = '13' # undocumented + NoExpose = '14' # undocumented + Visibility = '15' + Create = '16' + Destroy = '17' + Unmap = '18' + Map = '19' + MapRequest = '20' + Reparent = '21' + Configure = '22' + ConfigureRequest = '23' + Gravity = '24' + ResizeRequest = '25' + Circulate = '26' + CirculateRequest = '27' + Property = '28' + SelectionClear = '29' # undocumented + SelectionRequest = '30' # undocumented + Selection = '31' # undocumented + Colormap = '32' + ClientMessage = '33' # undocumented + Mapping = '34' # undocumented + VirtualEvent = '35' # undocumented + Activate = '36' + Deactivate = '37' + MouseWheel = '38' + + __str__ = str.__str__ + + +class Event: + """Container for the properties of an event. + + Instances of this type are generated if one of the following events occurs: + + KeyPress, KeyRelease - for keyboard events + ButtonPress, ButtonRelease, Motion, Enter, Leave, MouseWheel - for mouse events + Visibility, Unmap, Map, Expose, FocusIn, FocusOut, Circulate, + Colormap, Gravity, Reparent, Property, Destroy, Activate, + Deactivate - for window events. + + If a callback function for one of these events is registered + using bind, bind_all, bind_class, or tag_bind, the callback is + called with an Event as first argument. It will have the + following attributes (in braces are the event types for which + the attribute is valid): + + serial - serial number of event + num - mouse button pressed (ButtonPress, ButtonRelease) + focus - whether the window has the focus (Enter, Leave) + height - height of the exposed window (Configure, Expose) + width - width of the exposed window (Configure, Expose) + keycode - keycode of the pressed key (KeyPress, KeyRelease) + state - state of the event as a number (ButtonPress, ButtonRelease, + Enter, KeyPress, KeyRelease, + Leave, Motion) + state - state as a string (Visibility) + time - when the event occurred + x - x-position of the mouse + y - y-position of the mouse + x_root - x-position of the mouse on the screen + (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion) + y_root - y-position of the mouse on the screen + (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion) + char - pressed character (KeyPress, KeyRelease) + send_event - see X/Windows documentation + keysym - keysym of the event as a string (KeyPress, KeyRelease) + keysym_num - keysym of the event as a number (KeyPress, KeyRelease) + type - type of the event as a number + widget - widget in which the event occurred + delta - delta of wheel movement (MouseWheel) + """ + + def __repr__(self): + attrs = {k: v for k, v in self.__dict__.items() if v != '??'} + if not self.char: + del attrs['char'] + elif self.char != '??': + attrs['char'] = repr(self.char) + if not getattr(self, 'send_event', True): + del attrs['send_event'] + if self.state == 0: + del attrs['state'] + elif isinstance(self.state, int): + state = self.state + mods = ('Shift', 'Lock', 'Control', + 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', + 'Button1', 'Button2', 'Button3', 'Button4', 'Button5') + s = [] + for i, n in enumerate(mods): + if state & (1 << i): + s.append(n) + state = state & ~((1<< len(mods)) - 1) + if state or not s: + s.append(hex(state)) + attrs['state'] = '|'.join(s) + if self.delta == 0: + del attrs['delta'] + # widget usually is known + # serial and time are not very interesting + # keysym_num duplicates keysym + # x_root and y_root mostly duplicate x and y + keys = ('send_event', + 'state', 'keysym', 'keycode', 'char', + 'num', 'delta', 'focus', + 'x', 'y', 'width', 'height') + return '<%s event%s>' % ( + getattr(self.type, 'name', self.type), + ''.join(' %s=%s' % (k, attrs[k]) for k in keys if k in attrs) + ) + + +_support_default_root = True +_default_root = None + + +def NoDefaultRoot(): + """Inhibit setting of default root window. + + Call this function to inhibit that the first instance of + Tk is used for windows without an explicit parent window. + """ + global _support_default_root, _default_root + _support_default_root = False + # Delete, so any use of _default_root will immediately raise an exception. + # Rebind before deletion, so repeated calls will not fail. + _default_root = None + del _default_root + + +def _get_default_root(what=None): + if not _support_default_root: + raise RuntimeError("No master specified and tkinter is " + "configured to not support default root") + if _default_root is None: + if what: + raise RuntimeError(f"Too early to {what}: no default root window") + root = Tk() + assert _default_root is root + return _default_root + + +def _get_temp_root(): + global _support_default_root + if not _support_default_root: + raise RuntimeError("No master specified and tkinter is " + "configured to not support default root") + root = _default_root + if root is None: + assert _support_default_root + _support_default_root = False + root = Tk() + _support_default_root = True + assert _default_root is None + root.withdraw() + root._temporary = True + return root + + +def _destroy_temp_root(master): + if getattr(master, '_temporary', False): + try: + master.destroy() + except TclError: + pass + + +def _tkerror(err): + """Internal function.""" + pass + + +def _exit(code=0): + """Internal function. Calling it will raise the exception SystemExit.""" + try: + code = int(code) + except ValueError: + pass + raise SystemExit(code) + + +_varnum = 0 + + +class Variable: + """Class to define value holders for e.g. buttons. + + Subclasses StringVar, IntVar, DoubleVar, BooleanVar are specializations + that constrain the type of the value returned from get().""" + _default = "" + _tk = None + _tclCommands = None + + def __init__(self, master=None, value=None, name=None): + """Construct a variable + + MASTER can be given as master widget. + VALUE is an optional value (defaults to "") + NAME is an optional Tcl name (defaults to PY_VARnum). + + If NAME matches an existing variable and VALUE is omitted + then the existing value is retained. + """ + # check for type of NAME parameter to override weird error message + # raised from Modules/_tkinter.c:SetVar like: + # TypeError: setvar() takes exactly 3 arguments (2 given) + if name is not None and not isinstance(name, str): + raise TypeError("name must be a string") + global _varnum + if master is None: + master = _get_default_root('create variable') + self._root = master._root() + self._tk = master.tk + if name: + self._name = name + else: + self._name = 'PY_VAR' + repr(_varnum) + _varnum += 1 + if value is not None: + self.initialize(value) + elif not self._tk.getboolean(self._tk.call("info", "exists", self._name)): + self.initialize(self._default) + + def __del__(self): + """Unset the variable in Tcl.""" + if self._tk is None: + return + if self._tk.getboolean(self._tk.call("info", "exists", self._name)): + self._tk.globalunsetvar(self._name) + if self._tclCommands is not None: + for name in self._tclCommands: + #print '- Tkinter: deleted command', name + self._tk.deletecommand(name) + self._tclCommands = None + + def __str__(self): + """Return the name of the variable in Tcl.""" + return self._name + + def set(self, value): + """Set the variable to VALUE.""" + return self._tk.globalsetvar(self._name, value) + + initialize = set + + def get(self): + """Return value of variable.""" + return self._tk.globalgetvar(self._name) + + def _register(self, callback): + f = CallWrapper(callback, None, self._root).__call__ + cbname = repr(id(f)) + try: + callback = callback.__func__ + except AttributeError: + pass + try: + cbname = cbname + callback.__name__ + except AttributeError: + pass + self._tk.createcommand(cbname, f) + if self._tclCommands is None: + self._tclCommands = [] + self._tclCommands.append(cbname) + return cbname + + def trace_add(self, mode, callback): + """Define a trace callback for the variable. + + Mode is one of "read", "write", "unset", or a list or tuple of + such strings. + Callback must be a function which is called when the variable is + read, written or unset. + + Return the name of the callback. + """ + cbname = self._register(callback) + self._tk.call('trace', 'add', 'variable', + self._name, mode, (cbname,)) + return cbname + + def trace_remove(self, mode, cbname): + """Delete the trace callback for a variable. + + Mode is one of "read", "write", "unset" or a list or tuple of + such strings. Must be same as were specified in trace_add(). + cbname is the name of the callback returned from trace_add(). + """ + self._tk.call('trace', 'remove', 'variable', + self._name, mode, cbname) + for m, ca in self.trace_info(): + if self._tk.splitlist(ca)[0] == cbname: + break + else: + self._tk.deletecommand(cbname) + try: + self._tclCommands.remove(cbname) + except ValueError: + pass + + def trace_info(self): + """Return all trace callback information.""" + splitlist = self._tk.splitlist + return [(splitlist(k), v) for k, v in map(splitlist, + splitlist(self._tk.call('trace', 'info', 'variable', self._name)))] + + def trace_variable(self, mode, callback): + """Define a trace callback for the variable. + + MODE is one of "r", "w", "u" for read, write, undefine. + CALLBACK must be a function which is called when + the variable is read, written or undefined. + + Return the name of the callback. + + This deprecated method wraps a deprecated Tcl method that will + likely be removed in the future. Use trace_add() instead. + """ + # TODO: Add deprecation warning + cbname = self._register(callback) + self._tk.call("trace", "variable", self._name, mode, cbname) + return cbname + + trace = trace_variable + + def trace_vdelete(self, mode, cbname): + """Delete the trace callback for a variable. + + MODE is one of "r", "w", "u" for read, write, undefine. + CBNAME is the name of the callback returned from trace_variable or trace. + + This deprecated method wraps a deprecated Tcl method that will + likely be removed in the future. Use trace_remove() instead. + """ + # TODO: Add deprecation warning + self._tk.call("trace", "vdelete", self._name, mode, cbname) + cbname = self._tk.splitlist(cbname)[0] + for m, ca in self.trace_info(): + if self._tk.splitlist(ca)[0] == cbname: + break + else: + self._tk.deletecommand(cbname) + try: + self._tclCommands.remove(cbname) + except ValueError: + pass + + def trace_vinfo(self): + """Return all trace callback information. + + This deprecated method wraps a deprecated Tcl method that will + likely be removed in the future. Use trace_info() instead. + """ + # TODO: Add deprecation warning + return [self._tk.splitlist(x) for x in self._tk.splitlist( + self._tk.call("trace", "vinfo", self._name))] + + def __eq__(self, other): + if not isinstance(other, Variable): + return NotImplemented + return (self._name == other._name + and self.__class__.__name__ == other.__class__.__name__ + and self._tk == other._tk) + + +class StringVar(Variable): + """Value holder for strings variables.""" + _default = "" + + def __init__(self, master=None, value=None, name=None): + """Construct a string variable. + + MASTER can be given as master widget. + VALUE is an optional value (defaults to "") + NAME is an optional Tcl name (defaults to PY_VARnum). + + If NAME matches an existing variable and VALUE is omitted + then the existing value is retained. + """ + Variable.__init__(self, master, value, name) + + def get(self): + """Return value of variable as string.""" + value = self._tk.globalgetvar(self._name) + if isinstance(value, str): + return value + return str(value) + + +class IntVar(Variable): + """Value holder for integer variables.""" + _default = 0 + + def __init__(self, master=None, value=None, name=None): + """Construct an integer variable. + + MASTER can be given as master widget. + VALUE is an optional value (defaults to 0) + NAME is an optional Tcl name (defaults to PY_VARnum). + + If NAME matches an existing variable and VALUE is omitted + then the existing value is retained. + """ + Variable.__init__(self, master, value, name) + + def get(self): + """Return the value of the variable as an integer.""" + value = self._tk.globalgetvar(self._name) + try: + return self._tk.getint(value) + except (TypeError, TclError): + return int(self._tk.getdouble(value)) + + +class DoubleVar(Variable): + """Value holder for float variables.""" + _default = 0.0 + + def __init__(self, master=None, value=None, name=None): + """Construct a float variable. + + MASTER can be given as master widget. + VALUE is an optional value (defaults to 0.0) + NAME is an optional Tcl name (defaults to PY_VARnum). + + If NAME matches an existing variable and VALUE is omitted + then the existing value is retained. + """ + Variable.__init__(self, master, value, name) + + def get(self): + """Return the value of the variable as a float.""" + return self._tk.getdouble(self._tk.globalgetvar(self._name)) + + +class BooleanVar(Variable): + """Value holder for boolean variables.""" + _default = False + + def __init__(self, master=None, value=None, name=None): + """Construct a boolean variable. + + MASTER can be given as master widget. + VALUE is an optional value (defaults to False) + NAME is an optional Tcl name (defaults to PY_VARnum). + + If NAME matches an existing variable and VALUE is omitted + then the existing value is retained. + """ + Variable.__init__(self, master, value, name) + + def set(self, value): + """Set the variable to VALUE.""" + return self._tk.globalsetvar(self._name, self._tk.getboolean(value)) + + initialize = set + + def get(self): + """Return the value of the variable as a bool.""" + try: + return self._tk.getboolean(self._tk.globalgetvar(self._name)) + except TclError: + raise ValueError("invalid literal for getboolean()") + + +def mainloop(n=0): + """Run the main loop of Tcl.""" + _get_default_root('run the main loop').tk.mainloop(n) + + +getint = int + +getdouble = float + + +def getboolean(s): + """Convert Tcl object to True or False.""" + try: + return _get_default_root('use getboolean()').tk.getboolean(s) + except TclError: + raise ValueError("invalid literal for getboolean()") + + +# Methods defined on both toplevel and interior widgets + +class Misc: + """Internal class. + + Base class which defines methods common for interior widgets.""" + + # used for generating child widget names + _last_child_ids = None + + # XXX font command? + _tclCommands = None + + def destroy(self): + """Internal function. + + Delete all Tcl commands created for + this widget in the Tcl interpreter.""" + if self._tclCommands is not None: + for name in self._tclCommands: + #print '- Tkinter: deleted command', name + self.tk.deletecommand(name) + self._tclCommands = None + + def deletecommand(self, name): + """Internal function. + + Delete the Tcl command provided in NAME.""" + #print '- Tkinter: deleted command', name + self.tk.deletecommand(name) + try: + self._tclCommands.remove(name) + except ValueError: + pass + + def tk_strictMotif(self, boolean=None): + """Set Tcl internal variable, whether the look and feel + should adhere to Motif. + + A parameter of 1 means adhere to Motif (e.g. no color + change if mouse passes over slider). + Returns the set value.""" + return self.tk.getboolean(self.tk.call( + 'set', 'tk_strictMotif', boolean)) + + def tk_bisque(self): + """Change the color scheme to light brown as used in Tk 3.6 and before.""" + self.tk.call('tk_bisque') + + def tk_setPalette(self, *args, **kw): + """Set a new color scheme for all widget elements. + + A single color as argument will cause that all colors of Tk + widget elements are derived from this. + Alternatively several keyword parameters and its associated + colors can be given. The following keywords are valid: + activeBackground, foreground, selectColor, + activeForeground, highlightBackground, selectBackground, + background, highlightColor, selectForeground, + disabledForeground, insertBackground, troughColor.""" + self.tk.call(('tk_setPalette',) + + _flatten(args) + _flatten(list(kw.items()))) + + def wait_variable(self, name='PY_VAR'): + """Wait until the variable is modified. + + A parameter of type IntVar, StringVar, DoubleVar or + BooleanVar must be given.""" + self.tk.call('tkwait', 'variable', name) + waitvar = wait_variable # XXX b/w compat + + def wait_window(self, window=None): + """Wait until a WIDGET is destroyed. + + If no parameter is given self is used.""" + if window is None: + window = self + self.tk.call('tkwait', 'window', window._w) + + def wait_visibility(self, window=None): + """Wait until the visibility of a WIDGET changes + (e.g. it appears). + + If no parameter is given self is used.""" + if window is None: + window = self + self.tk.call('tkwait', 'visibility', window._w) + + def setvar(self, name='PY_VAR', value='1'): + """Set Tcl variable NAME to VALUE.""" + self.tk.setvar(name, value) + + def getvar(self, name='PY_VAR'): + """Return value of Tcl variable NAME.""" + return self.tk.getvar(name) + + def getint(self, s): + try: + return self.tk.getint(s) + except TclError as exc: + raise ValueError(str(exc)) + + def getdouble(self, s): + try: + return self.tk.getdouble(s) + except TclError as exc: + raise ValueError(str(exc)) + + def getboolean(self, s): + """Return a boolean value for Tcl boolean values true and false given as parameter.""" + try: + return self.tk.getboolean(s) + except TclError: + raise ValueError("invalid literal for getboolean()") + + def focus_set(self): + """Direct input focus to this widget. + + If the application currently does not have the focus + this widget will get the focus if the application gets + the focus through the window manager.""" + self.tk.call('focus', self._w) + focus = focus_set # XXX b/w compat? + + def focus_force(self): + """Direct input focus to this widget even if the + application does not have the focus. Use with + caution!""" + self.tk.call('focus', '-force', self._w) + + def focus_get(self): + """Return the widget which has currently the focus in the + application. + + Use focus_displayof to allow working with several + displays. Return None if application does not have + the focus.""" + name = self.tk.call('focus') + if name == 'none' or not name: return None + return self._nametowidget(name) + + def focus_displayof(self): + """Return the widget which has currently the focus on the + display where this widget is located. + + Return None if the application does not have the focus.""" + name = self.tk.call('focus', '-displayof', self._w) + if name == 'none' or not name: return None + return self._nametowidget(name) + + def focus_lastfor(self): + """Return the widget which would have the focus if top level + for this widget gets the focus from the window manager.""" + name = self.tk.call('focus', '-lastfor', self._w) + if name == 'none' or not name: return None + return self._nametowidget(name) + + def tk_focusFollowsMouse(self): + """The widget under mouse will get automatically focus. Can not + be disabled easily.""" + self.tk.call('tk_focusFollowsMouse') + + def tk_focusNext(self): + """Return the next widget in the focus order which follows + widget which has currently the focus. + + The focus order first goes to the next child, then to + the children of the child recursively and then to the + next sibling which is higher in the stacking order. A + widget is omitted if it has the takefocus resource set + to 0.""" + name = self.tk.call('tk_focusNext', self._w) + if not name: return None + return self._nametowidget(name) + + def tk_focusPrev(self): + """Return previous widget in the focus order. See tk_focusNext for details.""" + name = self.tk.call('tk_focusPrev', self._w) + if not name: return None + return self._nametowidget(name) + + def after(self, ms, func=None, *args): + """Call function once after given time. + + MS specifies the time in milliseconds. FUNC gives the + function which shall be called. Additional parameters + are given as parameters to the function call. Return + identifier to cancel scheduling with after_cancel.""" + if func is None: + # I'd rather use time.sleep(ms*0.001) + self.tk.call('after', ms) + return None + else: + def callit(): + try: + func(*args) + finally: + try: + self.deletecommand(name) + except TclError: + pass + try: + callit.__name__ = func.__name__ + except AttributeError: + # Required for callable classes (bpo-44404) + callit.__name__ = type(func).__name__ + name = self._register(callit) + return self.tk.call('after', ms, name) + + def after_idle(self, func, *args): + """Call FUNC once if the Tcl main loop has no event to + process. + + Return an identifier to cancel the scheduling with + after_cancel.""" + return self.after('idle', func, *args) + + def after_cancel(self, id): + """Cancel scheduling of function identified with ID. + + Identifier returned by after or after_idle must be + given as first parameter. + """ + if not id: + raise ValueError('id must be a valid identifier returned from ' + 'after or after_idle') + try: + data = self.tk.call('after', 'info', id) + script = self.tk.splitlist(data)[0] + self.deletecommand(script) + except TclError: + pass + self.tk.call('after', 'cancel', id) + + def bell(self, displayof=0): + """Ring a display's bell.""" + self.tk.call(('bell',) + self._displayof(displayof)) + + # Clipboard handling: + def clipboard_get(self, **kw): + """Retrieve data from the clipboard on window's display. + + The window keyword defaults to the root window of the Tkinter + application. + + The type keyword specifies the form in which the data is + to be returned and should be an atom name such as STRING + or FILE_NAME. Type defaults to STRING, except on X11, where the default + is to try UTF8_STRING and fall back to STRING. + + This command is equivalent to: + + selection_get(CLIPBOARD) + """ + if 'type' not in kw and self._windowingsystem == 'x11': + try: + kw['type'] = 'UTF8_STRING' + return self.tk.call(('clipboard', 'get') + self._options(kw)) + except TclError: + del kw['type'] + return self.tk.call(('clipboard', 'get') + self._options(kw)) + + def clipboard_clear(self, **kw): + """Clear the data in the Tk clipboard. + + A widget specified for the optional displayof keyword + argument specifies the target display.""" + if 'displayof' not in kw: kw['displayof'] = self._w + self.tk.call(('clipboard', 'clear') + self._options(kw)) + + def clipboard_append(self, string, **kw): + """Append STRING to the Tk clipboard. + + A widget specified at the optional displayof keyword + argument specifies the target display. The clipboard + can be retrieved with selection_get.""" + if 'displayof' not in kw: kw['displayof'] = self._w + self.tk.call(('clipboard', 'append') + self._options(kw) + + ('--', string)) + # XXX grab current w/o window argument + + def grab_current(self): + """Return widget which has currently the grab in this application + or None.""" + name = self.tk.call('grab', 'current', self._w) + if not name: return None + return self._nametowidget(name) + + def grab_release(self): + """Release grab for this widget if currently set.""" + self.tk.call('grab', 'release', self._w) + + def grab_set(self): + """Set grab for this widget. + + A grab directs all events to this and descendant + widgets in the application.""" + self.tk.call('grab', 'set', self._w) + + def grab_set_global(self): + """Set global grab for this widget. + + A global grab directs all events to this and + descendant widgets on the display. Use with caution - + other applications do not get events anymore.""" + self.tk.call('grab', 'set', '-global', self._w) + + def grab_status(self): + """Return None, "local" or "global" if this widget has + no, a local or a global grab.""" + status = self.tk.call('grab', 'status', self._w) + if status == 'none': status = None + return status + + def option_add(self, pattern, value, priority = None): + """Set a VALUE (second parameter) for an option + PATTERN (first parameter). + + An optional third parameter gives the numeric priority + (defaults to 80).""" + self.tk.call('option', 'add', pattern, value, priority) + + def option_clear(self): + """Clear the option database. + + It will be reloaded if option_add is called.""" + self.tk.call('option', 'clear') + + def option_get(self, name, className): + """Return the value for an option NAME for this widget + with CLASSNAME. + + Values with higher priority override lower values.""" + return self.tk.call('option', 'get', self._w, name, className) + + def option_readfile(self, fileName, priority = None): + """Read file FILENAME into the option database. + + An optional second parameter gives the numeric + priority.""" + self.tk.call('option', 'readfile', fileName, priority) + + def selection_clear(self, **kw): + """Clear the current X selection.""" + if 'displayof' not in kw: kw['displayof'] = self._w + self.tk.call(('selection', 'clear') + self._options(kw)) + + def selection_get(self, **kw): + """Return the contents of the current X selection. + + A keyword parameter selection specifies the name of + the selection and defaults to PRIMARY. A keyword + parameter displayof specifies a widget on the display + to use. A keyword parameter type specifies the form of data to be + fetched, defaulting to STRING except on X11, where UTF8_STRING is tried + before STRING.""" + if 'displayof' not in kw: kw['displayof'] = self._w + if 'type' not in kw and self._windowingsystem == 'x11': + try: + kw['type'] = 'UTF8_STRING' + return self.tk.call(('selection', 'get') + self._options(kw)) + except TclError: + del kw['type'] + return self.tk.call(('selection', 'get') + self._options(kw)) + + def selection_handle(self, command, **kw): + """Specify a function COMMAND to call if the X + selection owned by this widget is queried by another + application. + + This function must return the contents of the + selection. The function will be called with the + arguments OFFSET and LENGTH which allows the chunking + of very long selections. The following keyword + parameters can be provided: + selection - name of the selection (default PRIMARY), + type - type of the selection (e.g. STRING, FILE_NAME).""" + name = self._register(command) + self.tk.call(('selection', 'handle') + self._options(kw) + + (self._w, name)) + + def selection_own(self, **kw): + """Become owner of X selection. + + A keyword parameter selection specifies the name of + the selection (default PRIMARY).""" + self.tk.call(('selection', 'own') + + self._options(kw) + (self._w,)) + + def selection_own_get(self, **kw): + """Return owner of X selection. + + The following keyword parameter can + be provided: + selection - name of the selection (default PRIMARY), + type - type of the selection (e.g. STRING, FILE_NAME).""" + if 'displayof' not in kw: kw['displayof'] = self._w + name = self.tk.call(('selection', 'own') + self._options(kw)) + if not name: return None + return self._nametowidget(name) + + def send(self, interp, cmd, *args): + """Send Tcl command CMD to different interpreter INTERP to be executed.""" + return self.tk.call(('send', interp, cmd) + args) + + def lower(self, belowThis=None): + """Lower this widget in the stacking order.""" + self.tk.call('lower', self._w, belowThis) + + def tkraise(self, aboveThis=None): + """Raise this widget in the stacking order.""" + self.tk.call('raise', self._w, aboveThis) + + lift = tkraise + + def winfo_atom(self, name, displayof=0): + """Return integer which represents atom NAME.""" + args = ('winfo', 'atom') + self._displayof(displayof) + (name,) + return self.tk.getint(self.tk.call(args)) + + def winfo_atomname(self, id, displayof=0): + """Return name of atom with identifier ID.""" + args = ('winfo', 'atomname') \ + + self._displayof(displayof) + (id,) + return self.tk.call(args) + + def winfo_cells(self): + """Return number of cells in the colormap for this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'cells', self._w)) + + def winfo_children(self): + """Return a list of all widgets which are children of this widget.""" + result = [] + for child in self.tk.splitlist( + self.tk.call('winfo', 'children', self._w)): + try: + # Tcl sometimes returns extra windows, e.g. for + # menus; those need to be skipped + result.append(self._nametowidget(child)) + except KeyError: + pass + return result + + def winfo_class(self): + """Return window class name of this widget.""" + return self.tk.call('winfo', 'class', self._w) + + def winfo_colormapfull(self): + """Return True if at the last color request the colormap was full.""" + return self.tk.getboolean( + self.tk.call('winfo', 'colormapfull', self._w)) + + def winfo_containing(self, rootX, rootY, displayof=0): + """Return the widget which is at the root coordinates ROOTX, ROOTY.""" + args = ('winfo', 'containing') \ + + self._displayof(displayof) + (rootX, rootY) + name = self.tk.call(args) + if not name: return None + return self._nametowidget(name) + + def winfo_depth(self): + """Return the number of bits per pixel.""" + return self.tk.getint(self.tk.call('winfo', 'depth', self._w)) + + def winfo_exists(self): + """Return true if this widget exists.""" + return self.tk.getint( + self.tk.call('winfo', 'exists', self._w)) + + def winfo_fpixels(self, number): + """Return the number of pixels for the given distance NUMBER + (e.g. "3c") as float.""" + return self.tk.getdouble(self.tk.call( + 'winfo', 'fpixels', self._w, number)) + + def winfo_geometry(self): + """Return geometry string for this widget in the form "widthxheight+X+Y".""" + return self.tk.call('winfo', 'geometry', self._w) + + def winfo_height(self): + """Return height of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'height', self._w)) + + def winfo_id(self): + """Return identifier ID for this widget.""" + return int(self.tk.call('winfo', 'id', self._w), 0) + + def winfo_interps(self, displayof=0): + """Return the name of all Tcl interpreters for this display.""" + args = ('winfo', 'interps') + self._displayof(displayof) + return self.tk.splitlist(self.tk.call(args)) + + def winfo_ismapped(self): + """Return true if this widget is mapped.""" + return self.tk.getint( + self.tk.call('winfo', 'ismapped', self._w)) + + def winfo_manager(self): + """Return the window manager name for this widget.""" + return self.tk.call('winfo', 'manager', self._w) + + def winfo_name(self): + """Return the name of this widget.""" + return self.tk.call('winfo', 'name', self._w) + + def winfo_parent(self): + """Return the name of the parent of this widget.""" + return self.tk.call('winfo', 'parent', self._w) + + def winfo_pathname(self, id, displayof=0): + """Return the pathname of the widget given by ID.""" + args = ('winfo', 'pathname') \ + + self._displayof(displayof) + (id,) + return self.tk.call(args) + + def winfo_pixels(self, number): + """Rounded integer value of winfo_fpixels.""" + return self.tk.getint( + self.tk.call('winfo', 'pixels', self._w, number)) + + def winfo_pointerx(self): + """Return the x coordinate of the pointer on the root window.""" + return self.tk.getint( + self.tk.call('winfo', 'pointerx', self._w)) + + def winfo_pointerxy(self): + """Return a tuple of x and y coordinates of the pointer on the root window.""" + return self._getints( + self.tk.call('winfo', 'pointerxy', self._w)) + + def winfo_pointery(self): + """Return the y coordinate of the pointer on the root window.""" + return self.tk.getint( + self.tk.call('winfo', 'pointery', self._w)) + + def winfo_reqheight(self): + """Return requested height of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'reqheight', self._w)) + + def winfo_reqwidth(self): + """Return requested width of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'reqwidth', self._w)) + + def winfo_rgb(self, color): + """Return a tuple of integer RGB values in range(65536) for color in this widget.""" + return self._getints( + self.tk.call('winfo', 'rgb', self._w, color)) + + def winfo_rootx(self): + """Return x coordinate of upper left corner of this widget on the + root window.""" + return self.tk.getint( + self.tk.call('winfo', 'rootx', self._w)) + + def winfo_rooty(self): + """Return y coordinate of upper left corner of this widget on the + root window.""" + return self.tk.getint( + self.tk.call('winfo', 'rooty', self._w)) + + def winfo_screen(self): + """Return the screen name of this widget.""" + return self.tk.call('winfo', 'screen', self._w) + + def winfo_screencells(self): + """Return the number of the cells in the colormap of the screen + of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'screencells', self._w)) + + def winfo_screendepth(self): + """Return the number of bits per pixel of the root window of the + screen of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'screendepth', self._w)) + + def winfo_screenheight(self): + """Return the number of pixels of the height of the screen of this widget + in pixel.""" + return self.tk.getint( + self.tk.call('winfo', 'screenheight', self._w)) + + def winfo_screenmmheight(self): + """Return the number of pixels of the height of the screen of + this widget in mm.""" + return self.tk.getint( + self.tk.call('winfo', 'screenmmheight', self._w)) + + def winfo_screenmmwidth(self): + """Return the number of pixels of the width of the screen of + this widget in mm.""" + return self.tk.getint( + self.tk.call('winfo', 'screenmmwidth', self._w)) + + def winfo_screenvisual(self): + """Return one of the strings directcolor, grayscale, pseudocolor, + staticcolor, staticgray, or truecolor for the default + colormodel of this screen.""" + return self.tk.call('winfo', 'screenvisual', self._w) + + def winfo_screenwidth(self): + """Return the number of pixels of the width of the screen of + this widget in pixel.""" + return self.tk.getint( + self.tk.call('winfo', 'screenwidth', self._w)) + + def winfo_server(self): + """Return information of the X-Server of the screen of this widget in + the form "XmajorRminor vendor vendorVersion".""" + return self.tk.call('winfo', 'server', self._w) + + def winfo_toplevel(self): + """Return the toplevel widget of this widget.""" + return self._nametowidget(self.tk.call( + 'winfo', 'toplevel', self._w)) + + def winfo_viewable(self): + """Return true if the widget and all its higher ancestors are mapped.""" + return self.tk.getint( + self.tk.call('winfo', 'viewable', self._w)) + + def winfo_visual(self): + """Return one of the strings directcolor, grayscale, pseudocolor, + staticcolor, staticgray, or truecolor for the + colormodel of this widget.""" + return self.tk.call('winfo', 'visual', self._w) + + def winfo_visualid(self): + """Return the X identifier for the visual for this widget.""" + return self.tk.call('winfo', 'visualid', self._w) + + def winfo_visualsavailable(self, includeids=False): + """Return a list of all visuals available for the screen + of this widget. + + Each item in the list consists of a visual name (see winfo_visual), a + depth and if includeids is true is given also the X identifier.""" + data = self.tk.call('winfo', 'visualsavailable', self._w, + 'includeids' if includeids else None) + data = [self.tk.splitlist(x) for x in self.tk.splitlist(data)] + return [self.__winfo_parseitem(x) for x in data] + + def __winfo_parseitem(self, t): + """Internal function.""" + return t[:1] + tuple(map(self.__winfo_getint, t[1:])) + + def __winfo_getint(self, x): + """Internal function.""" + return int(x, 0) + + def winfo_vrootheight(self): + """Return the height of the virtual root window associated with this + widget in pixels. If there is no virtual root window return the + height of the screen.""" + return self.tk.getint( + self.tk.call('winfo', 'vrootheight', self._w)) + + def winfo_vrootwidth(self): + """Return the width of the virtual root window associated with this + widget in pixel. If there is no virtual root window return the + width of the screen.""" + return self.tk.getint( + self.tk.call('winfo', 'vrootwidth', self._w)) + + def winfo_vrootx(self): + """Return the x offset of the virtual root relative to the root + window of the screen of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'vrootx', self._w)) + + def winfo_vrooty(self): + """Return the y offset of the virtual root relative to the root + window of the screen of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'vrooty', self._w)) + + def winfo_width(self): + """Return the width of this widget.""" + return self.tk.getint( + self.tk.call('winfo', 'width', self._w)) + + def winfo_x(self): + """Return the x coordinate of the upper left corner of this widget + in the parent.""" + return self.tk.getint( + self.tk.call('winfo', 'x', self._w)) + + def winfo_y(self): + """Return the y coordinate of the upper left corner of this widget + in the parent.""" + return self.tk.getint( + self.tk.call('winfo', 'y', self._w)) + + def update(self): + """Enter event loop until all pending events have been processed by Tcl.""" + self.tk.call('update') + + def update_idletasks(self): + """Enter event loop until all idle callbacks have been called. This + will update the display of windows but not process events caused by + the user.""" + self.tk.call('update', 'idletasks') + + def bindtags(self, tagList=None): + """Set or get the list of bindtags for this widget. + + With no argument return the list of all bindtags associated with + this widget. With a list of strings as argument the bindtags are + set to this list. The bindtags determine in which order events are + processed (see bind).""" + if tagList is None: + return self.tk.splitlist( + self.tk.call('bindtags', self._w)) + else: + self.tk.call('bindtags', self._w, tagList) + + def _bind(self, what, sequence, func, add, needcleanup=1): + """Internal function.""" + if isinstance(func, str): + self.tk.call(what + (sequence, func)) + elif func: + funcid = self._register(func, self._substitute, + needcleanup) + cmd = ('%sif {"[%s %s]" == "break"} break\n' + % + (add and '+' or '', + funcid, self._subst_format_str)) + self.tk.call(what + (sequence, cmd)) + return funcid + elif sequence: + return self.tk.call(what + (sequence,)) + else: + return self.tk.splitlist(self.tk.call(what)) + + def bind(self, sequence=None, func=None, add=None): + """Bind to this widget at event SEQUENCE a call to function FUNC. + + SEQUENCE is a string of concatenated event + patterns. An event pattern is of the form + where MODIFIER is one + of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4, + Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3, + B3, Alt, Button4, B4, Double, Button5, B5 Triple, + Mod1, M1. TYPE is one of Activate, Enter, Map, + ButtonPress, Button, Expose, Motion, ButtonRelease + FocusIn, MouseWheel, Circulate, FocusOut, Property, + Colormap, Gravity Reparent, Configure, KeyPress, Key, + Unmap, Deactivate, KeyRelease Visibility, Destroy, + Leave and DETAIL is the button number for ButtonPress, + ButtonRelease and DETAIL is the Keysym for KeyPress and + KeyRelease. Examples are + for pressing Control and mouse button 1 or + for pressing A and the Alt key (KeyPress can be omitted). + An event pattern can also be a virtual event of the form + <> where AString can be arbitrary. This + event can be generated by event_generate. + If events are concatenated they must appear shortly + after each other. + + FUNC will be called if the event sequence occurs with an + instance of Event as argument. If the return value of FUNC is + "break" no further bound function is invoked. + + An additional boolean parameter ADD specifies whether FUNC will + be called additionally to the other bound function or whether + it will replace the previous function. + + Bind will return an identifier to allow deletion of the bound function with + unbind without memory leak. + + If FUNC or SEQUENCE is omitted the bound function or list + of bound events are returned.""" + + return self._bind(('bind', self._w), sequence, func, add) + + def unbind(self, sequence, funcid=None): + """Unbind for this widget for event SEQUENCE the + function identified with FUNCID.""" + self.tk.call('bind', self._w, sequence, '') + if funcid: + self.deletecommand(funcid) + + def bind_all(self, sequence=None, func=None, add=None): + """Bind to all widgets at an event SEQUENCE a call to function FUNC. + An additional boolean parameter ADD specifies whether FUNC will + be called additionally to the other bound function or whether + it will replace the previous function. See bind for the return value.""" + return self._bind(('bind', 'all'), sequence, func, add, 0) + + def unbind_all(self, sequence): + """Unbind for all widgets for event SEQUENCE all functions.""" + self.tk.call('bind', 'all' , sequence, '') + + def bind_class(self, className, sequence=None, func=None, add=None): + """Bind to widgets with bindtag CLASSNAME at event + SEQUENCE a call of function FUNC. An additional + boolean parameter ADD specifies whether FUNC will be + called additionally to the other bound function or + whether it will replace the previous function. See bind for + the return value.""" + + return self._bind(('bind', className), sequence, func, add, 0) + + def unbind_class(self, className, sequence): + """Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE + all functions.""" + self.tk.call('bind', className , sequence, '') + + def mainloop(self, n=0): + """Call the mainloop of Tk.""" + self.tk.mainloop(n) + + def quit(self): + """Quit the Tcl interpreter. All widgets will be destroyed.""" + self.tk.quit() + + def _getints(self, string): + """Internal function.""" + if string: + return tuple(map(self.tk.getint, self.tk.splitlist(string))) + + def _getdoubles(self, string): + """Internal function.""" + if string: + return tuple(map(self.tk.getdouble, self.tk.splitlist(string))) + + def _getboolean(self, string): + """Internal function.""" + if string: + return self.tk.getboolean(string) + + def _displayof(self, displayof): + """Internal function.""" + if displayof: + return ('-displayof', displayof) + if displayof is None: + return ('-displayof', self._w) + return () + + @property + def _windowingsystem(self): + """Internal function.""" + try: + return self._root()._windowingsystem_cached + except AttributeError: + ws = self._root()._windowingsystem_cached = \ + self.tk.call('tk', 'windowingsystem') + return ws + + def _options(self, cnf, kw = None): + """Internal function.""" + if kw: + cnf = _cnfmerge((cnf, kw)) + else: + cnf = _cnfmerge(cnf) + res = () + for k, v in cnf.items(): + if v is not None: + if k[-1] == '_': k = k[:-1] + if callable(v): + v = self._register(v) + elif isinstance(v, (tuple, list)): + nv = [] + for item in v: + if isinstance(item, int): + nv.append(str(item)) + elif isinstance(item, str): + nv.append(_stringify(item)) + else: + break + else: + v = ' '.join(nv) + res = res + ('-'+k, v) + return res + + def nametowidget(self, name): + """Return the Tkinter instance of a widget identified by + its Tcl name NAME.""" + name = str(name).split('.') + w = self + + if not name[0]: + w = w._root() + name = name[1:] + + for n in name: + if not n: + break + w = w.children[n] + + return w + + _nametowidget = nametowidget + + def _register(self, func, subst=None, needcleanup=1): + """Return a newly created Tcl function. If this + function is called, the Python function FUNC will + be executed. An optional function SUBST can + be given which will be executed before FUNC.""" + f = CallWrapper(func, subst, self).__call__ + name = repr(id(f)) + try: + func = func.__func__ + except AttributeError: + pass + try: + name = name + func.__name__ + except AttributeError: + pass + self.tk.createcommand(name, f) + if needcleanup: + if self._tclCommands is None: + self._tclCommands = [] + self._tclCommands.append(name) + return name + + register = _register + + def _root(self): + """Internal function.""" + w = self + while w.master is not None: w = w.master + return w + _subst_format = ('%#', '%b', '%f', '%h', '%k', + '%s', '%t', '%w', '%x', '%y', + '%A', '%E', '%K', '%N', '%W', '%T', '%X', '%Y', '%D') + _subst_format_str = " ".join(_subst_format) + + def _substitute(self, *args): + """Internal function.""" + if len(args) != len(self._subst_format): return args + getboolean = self.tk.getboolean + + getint = self.tk.getint + def getint_event(s): + """Tk changed behavior in 8.4.2, returning "??" rather more often.""" + try: + return getint(s) + except (ValueError, TclError): + return s + + nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args + # Missing: (a, c, d, m, o, v, B, R) + e = Event() + # serial field: valid for all events + # number of button: ButtonPress and ButtonRelease events only + # height field: Configure, ConfigureRequest, Create, + # ResizeRequest, and Expose events only + # keycode field: KeyPress and KeyRelease events only + # time field: "valid for events that contain a time field" + # width field: Configure, ConfigureRequest, Create, ResizeRequest, + # and Expose events only + # x field: "valid for events that contain an x field" + # y field: "valid for events that contain a y field" + # keysym as decimal: KeyPress and KeyRelease events only + # x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress, + # KeyRelease, and Motion events + e.serial = getint(nsign) + e.num = getint_event(b) + try: e.focus = getboolean(f) + except TclError: pass + e.height = getint_event(h) + e.keycode = getint_event(k) + e.state = getint_event(s) + e.time = getint_event(t) + e.width = getint_event(w) + e.x = getint_event(x) + e.y = getint_event(y) + e.char = A + try: e.send_event = getboolean(E) + except TclError: pass + e.keysym = K + e.keysym_num = getint_event(N) + try: + e.type = EventType(T) + except ValueError: + e.type = T + try: + e.widget = self._nametowidget(W) + except KeyError: + e.widget = W + e.x_root = getint_event(X) + e.y_root = getint_event(Y) + try: + e.delta = getint(D) + except (ValueError, TclError): + e.delta = 0 + return (e,) + + def _report_exception(self): + """Internal function.""" + exc, val, tb = sys.exc_info() + root = self._root() + root.report_callback_exception(exc, val, tb) + + def _getconfigure(self, *args): + """Call Tcl configure command and return the result as a dict.""" + cnf = {} + for x in self.tk.splitlist(self.tk.call(*args)): + x = self.tk.splitlist(x) + cnf[x[0][1:]] = (x[0][1:],) + x[1:] + return cnf + + def _getconfigure1(self, *args): + x = self.tk.splitlist(self.tk.call(*args)) + return (x[0][1:],) + x[1:] + + def _configure(self, cmd, cnf, kw): + """Internal function.""" + if kw: + cnf = _cnfmerge((cnf, kw)) + elif cnf: + cnf = _cnfmerge(cnf) + if cnf is None: + return self._getconfigure(_flatten((self._w, cmd))) + if isinstance(cnf, str): + return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf))) + self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) + # These used to be defined in Widget: + + def configure(self, cnf=None, **kw): + """Configure resources of a widget. + + The values for resources are specified as keyword + arguments. To get an overview about + the allowed keyword arguments call the method keys. + """ + return self._configure('configure', cnf, kw) + + config = configure + + def cget(self, key): + """Return the resource value for a KEY given as string.""" + return self.tk.call(self._w, 'cget', '-' + key) + + __getitem__ = cget + + def __setitem__(self, key, value): + self.configure({key: value}) + + def keys(self): + """Return a list of all resource names of this widget.""" + splitlist = self.tk.splitlist + return [splitlist(x)[0][1:] for x in + splitlist(self.tk.call(self._w, 'configure'))] + + def __str__(self): + """Return the window path name of this widget.""" + return self._w + + def __repr__(self): + return '<%s.%s object %s>' % ( + self.__class__.__module__, self.__class__.__qualname__, self._w) + + # Pack methods that apply to the master + _noarg_ = ['_noarg_'] + + def pack_propagate(self, flag=_noarg_): + """Set or get the status for propagation of geometry information. + + A boolean argument specifies whether the geometry information + of the slaves will determine the size of this widget. If no argument + is given the current setting will be returned. + """ + if flag is Misc._noarg_: + return self._getboolean(self.tk.call( + 'pack', 'propagate', self._w)) + else: + self.tk.call('pack', 'propagate', self._w, flag) + + propagate = pack_propagate + + def pack_slaves(self): + """Return a list of all slaves of this widget + in its packing order.""" + return [self._nametowidget(x) for x in + self.tk.splitlist( + self.tk.call('pack', 'slaves', self._w))] + + slaves = pack_slaves + + # Place method that applies to the master + def place_slaves(self): + """Return a list of all slaves of this widget + in its packing order.""" + return [self._nametowidget(x) for x in + self.tk.splitlist( + self.tk.call( + 'place', 'slaves', self._w))] + + # Grid methods that apply to the master + + def grid_anchor(self, anchor=None): # new in Tk 8.5 + """The anchor value controls how to place the grid within the + master when no row/column has any weight. + + The default anchor is nw.""" + self.tk.call('grid', 'anchor', self._w, anchor) + + anchor = grid_anchor + + def grid_bbox(self, column=None, row=None, col2=None, row2=None): + """Return a tuple of integer coordinates for the bounding + box of this widget controlled by the geometry manager grid. + + If COLUMN, ROW is given the bounding box applies from + the cell with row and column 0 to the specified + cell. If COL2 and ROW2 are given the bounding box + starts at that cell. + + The returned integers specify the offset of the upper left + corner in the master widget and the width and height. + """ + args = ('grid', 'bbox', self._w) + if column is not None and row is not None: + args = args + (column, row) + if col2 is not None and row2 is not None: + args = args + (col2, row2) + return self._getints(self.tk.call(*args)) or None + + bbox = grid_bbox + + def _gridconvvalue(self, value): + if isinstance(value, (str, _tkinter.Tcl_Obj)): + try: + svalue = str(value) + if not svalue: + return None + elif '.' in svalue: + return self.tk.getdouble(svalue) + else: + return self.tk.getint(svalue) + except (ValueError, TclError): + pass + return value + + def _grid_configure(self, command, index, cnf, kw): + """Internal function.""" + if isinstance(cnf, str) and not kw: + if cnf[-1:] == '_': + cnf = cnf[:-1] + if cnf[:1] != '-': + cnf = '-'+cnf + options = (cnf,) + else: + options = self._options(cnf, kw) + if not options: + return _splitdict( + self.tk, + self.tk.call('grid', command, self._w, index), + conv=self._gridconvvalue) + res = self.tk.call( + ('grid', command, self._w, index) + + options) + if len(options) == 1: + return self._gridconvvalue(res) + + def grid_columnconfigure(self, index, cnf={}, **kw): + """Configure column INDEX of a grid. + + Valid resources are minsize (minimum size of the column), + weight (how much does additional space propagate to this column) + and pad (how much space to let additionally).""" + return self._grid_configure('columnconfigure', index, cnf, kw) + + columnconfigure = grid_columnconfigure + + def grid_location(self, x, y): + """Return a tuple of column and row which identify the cell + at which the pixel at position X and Y inside the master + widget is located.""" + return self._getints( + self.tk.call( + 'grid', 'location', self._w, x, y)) or None + + def grid_propagate(self, flag=_noarg_): + """Set or get the status for propagation of geometry information. + + A boolean argument specifies whether the geometry information + of the slaves will determine the size of this widget. If no argument + is given, the current setting will be returned. + """ + if flag is Misc._noarg_: + return self._getboolean(self.tk.call( + 'grid', 'propagate', self._w)) + else: + self.tk.call('grid', 'propagate', self._w, flag) + + def grid_rowconfigure(self, index, cnf={}, **kw): + """Configure row INDEX of a grid. + + Valid resources are minsize (minimum size of the row), + weight (how much does additional space propagate to this row) + and pad (how much space to let additionally).""" + return self._grid_configure('rowconfigure', index, cnf, kw) + + rowconfigure = grid_rowconfigure + + def grid_size(self): + """Return a tuple of the number of column and rows in the grid.""" + return self._getints( + self.tk.call('grid', 'size', self._w)) or None + + size = grid_size + + def grid_slaves(self, row=None, column=None): + """Return a list of all slaves of this widget + in its packing order.""" + args = () + if row is not None: + args = args + ('-row', row) + if column is not None: + args = args + ('-column', column) + return [self._nametowidget(x) for x in + self.tk.splitlist(self.tk.call( + ('grid', 'slaves', self._w) + args))] + + # Support for the "event" command, new in Tk 4.2. + # By Case Roole. + + def event_add(self, virtual, *sequences): + """Bind a virtual event VIRTUAL (of the form <>) + to an event SEQUENCE such that the virtual event is triggered + whenever SEQUENCE occurs.""" + args = ('event', 'add', virtual) + sequences + self.tk.call(args) + + def event_delete(self, virtual, *sequences): + """Unbind a virtual event VIRTUAL from SEQUENCE.""" + args = ('event', 'delete', virtual) + sequences + self.tk.call(args) + + def event_generate(self, sequence, **kw): + """Generate an event SEQUENCE. Additional + keyword arguments specify parameter of the event + (e.g. x, y, rootx, rooty).""" + args = ('event', 'generate', self._w, sequence) + for k, v in kw.items(): + args = args + ('-%s' % k, str(v)) + self.tk.call(args) + + def event_info(self, virtual=None): + """Return a list of all virtual events or the information + about the SEQUENCE bound to the virtual event VIRTUAL.""" + return self.tk.splitlist( + self.tk.call('event', 'info', virtual)) + + # Image related commands + + def image_names(self): + """Return a list of all existing image names.""" + return self.tk.splitlist(self.tk.call('image', 'names')) + + def image_types(self): + """Return a list of all available image types (e.g. photo bitmap).""" + return self.tk.splitlist(self.tk.call('image', 'types')) + + +class CallWrapper: + """Internal class. Stores function to call when some user + defined Tcl function is called e.g. after an event occurred.""" + + def __init__(self, func, subst, widget): + """Store FUNC, SUBST and WIDGET as members.""" + self.func = func + self.subst = subst + self.widget = widget + + def __call__(self, *args): + """Apply first function SUBST to arguments, than FUNC.""" + try: + if self.subst: + args = self.subst(*args) + return self.func(*args) + except SystemExit: + raise + except: + self.widget._report_exception() + + +class XView: + """Mix-in class for querying and changing the horizontal position + of a widget's window.""" + + def xview(self, *args): + """Query and change the horizontal position of the view.""" + res = self.tk.call(self._w, 'xview', *args) + if not args: + return self._getdoubles(res) + + def xview_moveto(self, fraction): + """Adjusts the view in the window so that FRACTION of the + total width of the canvas is off-screen to the left.""" + self.tk.call(self._w, 'xview', 'moveto', fraction) + + def xview_scroll(self, number, what): + """Shift the x-view according to NUMBER which is measured in "units" + or "pages" (WHAT).""" + self.tk.call(self._w, 'xview', 'scroll', number, what) + + +class YView: + """Mix-in class for querying and changing the vertical position + of a widget's window.""" + + def yview(self, *args): + """Query and change the vertical position of the view.""" + res = self.tk.call(self._w, 'yview', *args) + if not args: + return self._getdoubles(res) + + def yview_moveto(self, fraction): + """Adjusts the view in the window so that FRACTION of the + total height of the canvas is off-screen to the top.""" + self.tk.call(self._w, 'yview', 'moveto', fraction) + + def yview_scroll(self, number, what): + """Shift the y-view according to NUMBER which is measured in + "units" or "pages" (WHAT).""" + self.tk.call(self._w, 'yview', 'scroll', number, what) + + +class Wm: + """Provides functions for the communication with the window manager.""" + + def wm_aspect(self, + minNumer=None, minDenom=None, + maxNumer=None, maxDenom=None): + """Instruct the window manager to set the aspect ratio (width/height) + of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple + of the actual values if no argument is given.""" + return self._getints( + self.tk.call('wm', 'aspect', self._w, + minNumer, minDenom, + maxNumer, maxDenom)) + + aspect = wm_aspect + + def wm_attributes(self, *args): + """This subcommand returns or sets platform specific attributes + + The first form returns a list of the platform specific flags and + their values. The second form returns the value for the specific + option. The third form sets one or more of the values. The values + are as follows: + + On Windows, -disabled gets or sets whether the window is in a + disabled state. -toolwindow gets or sets the style of the window + to toolwindow (as defined in the MSDN). -topmost gets or sets + whether this is a topmost window (displays above all other + windows). + + On Macintosh, XXXXX + + On Unix, there are currently no special attribute values. + """ + args = ('wm', 'attributes', self._w) + args + return self.tk.call(args) + + attributes = wm_attributes + + def wm_client(self, name=None): + """Store NAME in WM_CLIENT_MACHINE property of this widget. Return + current value.""" + return self.tk.call('wm', 'client', self._w, name) + + client = wm_client + + def wm_colormapwindows(self, *wlist): + """Store list of window names (WLIST) into WM_COLORMAPWINDOWS property + of this widget. This list contains windows whose colormaps differ from their + parents. Return current list of widgets if WLIST is empty.""" + if len(wlist) > 1: + wlist = (wlist,) # Tk needs a list of windows here + args = ('wm', 'colormapwindows', self._w) + wlist + if wlist: + self.tk.call(args) + else: + return [self._nametowidget(x) + for x in self.tk.splitlist(self.tk.call(args))] + + colormapwindows = wm_colormapwindows + + def wm_command(self, value=None): + """Store VALUE in WM_COMMAND property. It is the command + which shall be used to invoke the application. Return current + command if VALUE is None.""" + return self.tk.call('wm', 'command', self._w, value) + + command = wm_command + + def wm_deiconify(self): + """Deiconify this widget. If it was never mapped it will not be mapped. + On Windows it will raise this widget and give it the focus.""" + return self.tk.call('wm', 'deiconify', self._w) + + deiconify = wm_deiconify + + def wm_focusmodel(self, model=None): + """Set focus model to MODEL. "active" means that this widget will claim + the focus itself, "passive" means that the window manager shall give + the focus. Return current focus model if MODEL is None.""" + return self.tk.call('wm', 'focusmodel', self._w, model) + + focusmodel = wm_focusmodel + + def wm_forget(self, window): # new in Tk 8.5 + """The window will be unmapped from the screen and will no longer + be managed by wm. toplevel windows will be treated like frame + windows once they are no longer managed by wm, however, the menu + option configuration will be remembered and the menus will return + once the widget is managed again.""" + self.tk.call('wm', 'forget', window) + + forget = wm_forget + + def wm_frame(self): + """Return identifier for decorative frame of this widget if present.""" + return self.tk.call('wm', 'frame', self._w) + + frame = wm_frame + + def wm_geometry(self, newGeometry=None): + """Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return + current value if None is given.""" + return self.tk.call('wm', 'geometry', self._w, newGeometry) + + geometry = wm_geometry + + def wm_grid(self, + baseWidth=None, baseHeight=None, + widthInc=None, heightInc=None): + """Instruct the window manager that this widget shall only be + resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and + height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the + number of grid units requested in Tk_GeometryRequest.""" + return self._getints(self.tk.call( + 'wm', 'grid', self._w, + baseWidth, baseHeight, widthInc, heightInc)) + + grid = wm_grid + + def wm_group(self, pathName=None): + """Set the group leader widgets for related widgets to PATHNAME. Return + the group leader of this widget if None is given.""" + return self.tk.call('wm', 'group', self._w, pathName) + + group = wm_group + + def wm_iconbitmap(self, bitmap=None, default=None): + """Set bitmap for the iconified widget to BITMAP. Return + the bitmap if None is given. + + Under Windows, the DEFAULT parameter can be used to set the icon + for the widget and any descendants that don't have an icon set + explicitly. DEFAULT can be the relative path to a .ico file + (example: root.iconbitmap(default='myicon.ico') ). See Tk + documentation for more information.""" + if default: + return self.tk.call('wm', 'iconbitmap', self._w, '-default', default) + else: + return self.tk.call('wm', 'iconbitmap', self._w, bitmap) + + iconbitmap = wm_iconbitmap + + def wm_iconify(self): + """Display widget as icon.""" + return self.tk.call('wm', 'iconify', self._w) + + iconify = wm_iconify + + def wm_iconmask(self, bitmap=None): + """Set mask for the icon bitmap of this widget. Return the + mask if None is given.""" + return self.tk.call('wm', 'iconmask', self._w, bitmap) + + iconmask = wm_iconmask + + def wm_iconname(self, newName=None): + """Set the name of the icon for this widget. Return the name if + None is given.""" + return self.tk.call('wm', 'iconname', self._w, newName) + + iconname = wm_iconname + + def wm_iconphoto(self, default=False, *args): # new in Tk 8.5 + """Sets the titlebar icon for this window based on the named photo + images passed through args. If default is True, this is applied to + all future created toplevels as well. + + The data in the images is taken as a snapshot at the time of + invocation. If the images are later changed, this is not reflected + to the titlebar icons. Multiple images are accepted to allow + different images sizes to be provided. The window manager may scale + provided icons to an appropriate size. + + On Windows, the images are packed into a Windows icon structure. + This will override an icon specified to wm_iconbitmap, and vice + versa. + + On X, the images are arranged into the _NET_WM_ICON X property, + which most modern window managers support. An icon specified by + wm_iconbitmap may exist simultaneously. + + On Macintosh, this currently does nothing.""" + if default: + self.tk.call('wm', 'iconphoto', self._w, "-default", *args) + else: + self.tk.call('wm', 'iconphoto', self._w, *args) + + iconphoto = wm_iconphoto + + def wm_iconposition(self, x=None, y=None): + """Set the position of the icon of this widget to X and Y. Return + a tuple of the current values of X and X if None is given.""" + return self._getints(self.tk.call( + 'wm', 'iconposition', self._w, x, y)) + + iconposition = wm_iconposition + + def wm_iconwindow(self, pathName=None): + """Set widget PATHNAME to be displayed instead of icon. Return the current + value if None is given.""" + return self.tk.call('wm', 'iconwindow', self._w, pathName) + + iconwindow = wm_iconwindow + + def wm_manage(self, widget): # new in Tk 8.5 + """The widget specified will become a stand alone top-level window. + The window will be decorated with the window managers title bar, + etc.""" + self.tk.call('wm', 'manage', widget) + + manage = wm_manage + + def wm_maxsize(self, width=None, height=None): + """Set max WIDTH and HEIGHT for this widget. If the window is gridded + the values are given in grid units. Return the current values if None + is given.""" + return self._getints(self.tk.call( + 'wm', 'maxsize', self._w, width, height)) + + maxsize = wm_maxsize + + def wm_minsize(self, width=None, height=None): + """Set min WIDTH and HEIGHT for this widget. If the window is gridded + the values are given in grid units. Return the current values if None + is given.""" + return self._getints(self.tk.call( + 'wm', 'minsize', self._w, width, height)) + + minsize = wm_minsize + + def wm_overrideredirect(self, boolean=None): + """Instruct the window manager to ignore this widget + if BOOLEAN is given with 1. Return the current value if None + is given.""" + return self._getboolean(self.tk.call( + 'wm', 'overrideredirect', self._w, boolean)) + + overrideredirect = wm_overrideredirect + + def wm_positionfrom(self, who=None): + """Instruct the window manager that the position of this widget shall + be defined by the user if WHO is "user", and by its own policy if WHO is + "program".""" + return self.tk.call('wm', 'positionfrom', self._w, who) + + positionfrom = wm_positionfrom + + def wm_protocol(self, name=None, func=None): + """Bind function FUNC to command NAME for this widget. + Return the function bound to NAME if None is given. NAME could be + e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".""" + if callable(func): + command = self._register(func) + else: + command = func + return self.tk.call( + 'wm', 'protocol', self._w, name, command) + + protocol = wm_protocol + + def wm_resizable(self, width=None, height=None): + """Instruct the window manager whether this width can be resized + in WIDTH or HEIGHT. Both values are boolean values.""" + return self.tk.call('wm', 'resizable', self._w, width, height) + + resizable = wm_resizable + + def wm_sizefrom(self, who=None): + """Instruct the window manager that the size of this widget shall + be defined by the user if WHO is "user", and by its own policy if WHO is + "program".""" + return self.tk.call('wm', 'sizefrom', self._w, who) + + sizefrom = wm_sizefrom + + def wm_state(self, newstate=None): + """Query or set the state of this widget as one of normal, icon, + iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).""" + return self.tk.call('wm', 'state', self._w, newstate) + + state = wm_state + + def wm_title(self, string=None): + """Set the title of this widget.""" + return self.tk.call('wm', 'title', self._w, string) + + title = wm_title + + def wm_transient(self, master=None): + """Instruct the window manager that this widget is transient + with regard to widget MASTER.""" + return self.tk.call('wm', 'transient', self._w, master) + + transient = wm_transient + + def wm_withdraw(self): + """Withdraw this widget from the screen such that it is unmapped + and forgotten by the window manager. Re-draw it with wm_deiconify.""" + return self.tk.call('wm', 'withdraw', self._w) + + withdraw = wm_withdraw + + +class Tk(Misc, Wm): + """Toplevel widget of Tk which represents mostly the main window + of an application. It has an associated Tcl interpreter.""" + _w = '.' + + def __init__(self, screenName=None, baseName=None, className='Tk', + useTk=True, sync=False, use=None): + """Return a new top level widget on screen SCREENNAME. A new Tcl interpreter will + be created. BASENAME will be used for the identification of the profile file (see + readprofile). + It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME + is the name of the widget class.""" + self.master = None + self.children = {} + self._tkloaded = False + # to avoid recursions in the getattr code in case of failure, we + # ensure that self.tk is always _something_. + self.tk = None + if baseName is None: + import os + baseName = os.path.basename(sys.argv[0]) + baseName, ext = os.path.splitext(baseName) + if ext not in ('.py', '.pyc'): + baseName = baseName + ext + interactive = False + self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) + if useTk: + self._loadtk() + if not sys.flags.ignore_environment: + # Issue #16248: Honor the -E flag to avoid code injection. + self.readprofile(baseName, className) + + def loadtk(self): + if not self._tkloaded: + self.tk.loadtk() + self._loadtk() + + def _loadtk(self): + self._tkloaded = True + global _default_root + # Version sanity checks + tk_version = self.tk.getvar('tk_version') + if tk_version != _tkinter.TK_VERSION: + raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)" + % (_tkinter.TK_VERSION, tk_version)) + # Under unknown circumstances, tcl_version gets coerced to float + tcl_version = str(self.tk.getvar('tcl_version')) + if tcl_version != _tkinter.TCL_VERSION: + raise RuntimeError("tcl.h version (%s) doesn't match libtcl.a version (%s)" \ + % (_tkinter.TCL_VERSION, tcl_version)) + # Create and register the tkerror and exit commands + # We need to inline parts of _register here, _ register + # would register differently-named commands. + if self._tclCommands is None: + self._tclCommands = [] + self.tk.createcommand('tkerror', _tkerror) + self.tk.createcommand('exit', _exit) + self._tclCommands.append('tkerror') + self._tclCommands.append('exit') + if _support_default_root and _default_root is None: + _default_root = self + self.protocol("WM_DELETE_WINDOW", self.destroy) + + def destroy(self): + """Destroy this and all descendants widgets. This will + end the application of this Tcl interpreter.""" + for c in list(self.children.values()): c.destroy() + self.tk.call('destroy', self._w) + Misc.destroy(self) + global _default_root + if _support_default_root and _default_root is self: + _default_root = None + + def readprofile(self, baseName, className): + """Internal function. It reads .BASENAME.tcl and .CLASSNAME.tcl into + the Tcl Interpreter and calls exec on the contents of .BASENAME.py and + .CLASSNAME.py if such a file exists in the home directory.""" + import os + if 'HOME' in os.environ: home = os.environ['HOME'] + else: home = os.curdir + class_tcl = os.path.join(home, '.%s.tcl' % className) + class_py = os.path.join(home, '.%s.py' % className) + base_tcl = os.path.join(home, '.%s.tcl' % baseName) + base_py = os.path.join(home, '.%s.py' % baseName) + dir = {'self': self} + exec('from tkinter import *', dir) + if os.path.isfile(class_tcl): + self.tk.call('source', class_tcl) + if os.path.isfile(class_py): + exec(open(class_py).read(), dir) + if os.path.isfile(base_tcl): + self.tk.call('source', base_tcl) + if os.path.isfile(base_py): + exec(open(base_py).read(), dir) + + def report_callback_exception(self, exc, val, tb): + """Report callback exception on sys.stderr. + + Applications may want to override this internal function, and + should when sys.stderr is None.""" + import traceback + print("Exception in Tkinter callback", file=sys.stderr) + sys.last_type = exc + sys.last_value = val + sys.last_traceback = tb + traceback.print_exception(exc, val, tb) + + def __getattr__(self, attr): + "Delegate attribute access to the interpreter object" + return getattr(self.tk, attr) + +# Ideally, the classes Pack, Place and Grid disappear, the +# pack/place/grid methods are defined on the Widget class, and +# everybody uses w.pack_whatever(...) instead of Pack.whatever(w, +# ...), with pack(), place() and grid() being short for +# pack_configure(), place_configure() and grid_columnconfigure(), and +# forget() being short for pack_forget(). As a practical matter, I'm +# afraid that there is too much code out there that may be using the +# Pack, Place or Grid class, so I leave them intact -- but only as +# backwards compatibility features. Also note that those methods that +# take a master as argument (e.g. pack_propagate) have been moved to +# the Misc class (which now incorporates all methods common between +# toplevel and interior widgets). Again, for compatibility, these are +# copied into the Pack, Place or Grid class. + + +def Tcl(screenName=None, baseName=None, className='Tk', useTk=False): + return Tk(screenName, baseName, className, useTk) + + +class Pack: + """Geometry manager Pack. + + Base class to use the methods pack_* in every widget.""" + + def pack_configure(self, cnf={}, **kw): + """Pack a widget in the parent widget. Use as options: + after=widget - pack it after you have packed widget + anchor=NSEW (or subset) - position widget according to + given direction + before=widget - pack it before you will pack widget + expand=bool - expand widget if parent size grows + fill=NONE or X or Y or BOTH - fill widget if widget grows + in=master - use master to contain this widget + in_=master - see 'in' option description + ipadx=amount - add internal padding in x direction + ipady=amount - add internal padding in y direction + padx=amount - add padding in x direction + pady=amount - add padding in y direction + side=TOP or BOTTOM or LEFT or RIGHT - where to add this widget. + """ + self.tk.call( + ('pack', 'configure', self._w) + + self._options(cnf, kw)) + + pack = configure = config = pack_configure + + def pack_forget(self): + """Unmap this widget and do not use it for the packing order.""" + self.tk.call('pack', 'forget', self._w) + + forget = pack_forget + + def pack_info(self): + """Return information about the packing options + for this widget.""" + d = _splitdict(self.tk, self.tk.call('pack', 'info', self._w)) + if 'in' in d: + d['in'] = self.nametowidget(d['in']) + return d + + info = pack_info + propagate = pack_propagate = Misc.pack_propagate + slaves = pack_slaves = Misc.pack_slaves + + +class Place: + """Geometry manager Place. + + Base class to use the methods place_* in every widget.""" + + def place_configure(self, cnf={}, **kw): + """Place a widget in the parent widget. Use as options: + in=master - master relative to which the widget is placed + in_=master - see 'in' option description + x=amount - locate anchor of this widget at position x of master + y=amount - locate anchor of this widget at position y of master + relx=amount - locate anchor of this widget between 0.0 and 1.0 + relative to width of master (1.0 is right edge) + rely=amount - locate anchor of this widget between 0.0 and 1.0 + relative to height of master (1.0 is bottom edge) + anchor=NSEW (or subset) - position anchor according to given direction + width=amount - width of this widget in pixel + height=amount - height of this widget in pixel + relwidth=amount - width of this widget between 0.0 and 1.0 + relative to width of master (1.0 is the same width + as the master) + relheight=amount - height of this widget between 0.0 and 1.0 + relative to height of master (1.0 is the same + height as the master) + bordermode="inside" or "outside" - whether to take border width of + master widget into account + """ + self.tk.call( + ('place', 'configure', self._w) + + self._options(cnf, kw)) + + place = configure = config = place_configure + + def place_forget(self): + """Unmap this widget.""" + self.tk.call('place', 'forget', self._w) + + forget = place_forget + + def place_info(self): + """Return information about the placing options + for this widget.""" + d = _splitdict(self.tk, self.tk.call('place', 'info', self._w)) + if 'in' in d: + d['in'] = self.nametowidget(d['in']) + return d + + info = place_info + slaves = place_slaves = Misc.place_slaves + + +class Grid: + """Geometry manager Grid. + + Base class to use the methods grid_* in every widget.""" + # Thanks to Masazumi Yoshikawa (yosikawa@isi.edu) + + def grid_configure(self, cnf={}, **kw): + """Position a widget in the parent widget in a grid. Use as options: + column=number - use cell identified with given column (starting with 0) + columnspan=number - this widget will span several columns + in=master - use master to contain this widget + in_=master - see 'in' option description + ipadx=amount - add internal padding in x direction + ipady=amount - add internal padding in y direction + padx=amount - add padding in x direction + pady=amount - add padding in y direction + row=number - use cell identified with given row (starting with 0) + rowspan=number - this widget will span several rows + sticky=NSEW - if cell is larger on which sides will this + widget stick to the cell boundary + """ + self.tk.call( + ('grid', 'configure', self._w) + + self._options(cnf, kw)) + + grid = configure = config = grid_configure + bbox = grid_bbox = Misc.grid_bbox + columnconfigure = grid_columnconfigure = Misc.grid_columnconfigure + + def grid_forget(self): + """Unmap this widget.""" + self.tk.call('grid', 'forget', self._w) + + forget = grid_forget + + def grid_remove(self): + """Unmap this widget but remember the grid options.""" + self.tk.call('grid', 'remove', self._w) + + def grid_info(self): + """Return information about the options + for positioning this widget in a grid.""" + d = _splitdict(self.tk, self.tk.call('grid', 'info', self._w)) + if 'in' in d: + d['in'] = self.nametowidget(d['in']) + return d + + info = grid_info + location = grid_location = Misc.grid_location + propagate = grid_propagate = Misc.grid_propagate + rowconfigure = grid_rowconfigure = Misc.grid_rowconfigure + size = grid_size = Misc.grid_size + slaves = grid_slaves = Misc.grid_slaves + + +class BaseWidget(Misc): + """Internal class.""" + + def _setup(self, master, cnf): + """Internal function. Sets up information about children.""" + if master is None: + master = _get_default_root() + self.master = master + self.tk = master.tk + name = None + if 'name' in cnf: + name = cnf['name'] + del cnf['name'] + if not name: + name = self.__class__.__name__.lower() + if master._last_child_ids is None: + master._last_child_ids = {} + count = master._last_child_ids.get(name, 0) + 1 + master._last_child_ids[name] = count + if count == 1: + name = '!%s' % (name,) + else: + name = '!%s%d' % (name, count) + self._name = name + if master._w=='.': + self._w = '.' + name + else: + self._w = master._w + '.' + name + self.children = {} + if self._name in self.master.children: + self.master.children[self._name].destroy() + self.master.children[self._name] = self + + def __init__(self, master, widgetName, cnf={}, kw={}, extra=()): + """Construct a widget with the parent widget MASTER, a name WIDGETNAME + and appropriate options.""" + if kw: + cnf = _cnfmerge((cnf, kw)) + self.widgetName = widgetName + self._setup(master, cnf) + if self._tclCommands is None: + self._tclCommands = [] + classes = [(k, v) for k, v in cnf.items() if isinstance(k, type)] + for k, v in classes: + del cnf[k] + self.tk.call( + (widgetName, self._w) + extra + self._options(cnf)) + for k, v in classes: + k.configure(self, v) + + def destroy(self): + """Destroy this and all descendants widgets.""" + for c in list(self.children.values()): c.destroy() + self.tk.call('destroy', self._w) + if self._name in self.master.children: + del self.master.children[self._name] + Misc.destroy(self) + + def _do(self, name, args=()): + # XXX Obsolete -- better use self.tk.call directly! + return self.tk.call((self._w, name) + args) + + +class Widget(BaseWidget, Pack, Place, Grid): + """Internal class. + + Base class for a widget which can be positioned with the geometry managers + Pack, Place or Grid.""" + pass + + +class Toplevel(BaseWidget, Wm): + """Toplevel widget, e.g. for dialogs.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a toplevel widget with the parent MASTER. + + Valid resource names: background, bd, bg, borderwidth, class, + colormap, container, cursor, height, highlightbackground, + highlightcolor, highlightthickness, menu, relief, screen, takefocus, + use, visual, width.""" + if kw: + cnf = _cnfmerge((cnf, kw)) + extra = () + for wmkey in ['screen', 'class_', 'class', 'visual', + 'colormap']: + if wmkey in cnf: + val = cnf[wmkey] + # TBD: a hack needed because some keys + # are not valid as keyword arguments + if wmkey[-1] == '_': opt = '-'+wmkey[:-1] + else: opt = '-'+wmkey + extra = extra + (opt, val) + del cnf[wmkey] + BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra) + root = self._root() + self.iconname(root.iconname()) + self.title(root.title()) + self.protocol("WM_DELETE_WINDOW", self.destroy) + + +class Button(Widget): + """Button widget.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a button widget with the parent MASTER. + + STANDARD OPTIONS + + activebackground, activeforeground, anchor, + background, bitmap, borderwidth, cursor, + disabledforeground, font, foreground + highlightbackground, highlightcolor, + highlightthickness, image, justify, + padx, pady, relief, repeatdelay, + repeatinterval, takefocus, text, + textvariable, underline, wraplength + + WIDGET-SPECIFIC OPTIONS + + command, compound, default, height, + overrelief, state, width + """ + Widget.__init__(self, master, 'button', cnf, kw) + + def flash(self): + """Flash the button. + + This is accomplished by redisplaying + the button several times, alternating between active and + normal colors. At the end of the flash the button is left + in the same normal/active state as when the command was + invoked. This command is ignored if the button's state is + disabled. + """ + self.tk.call(self._w, 'flash') + + def invoke(self): + """Invoke the command associated with the button. + + The return value is the return value from the command, + or an empty string if there is no command associated with + the button. This command is ignored if the button's state + is disabled. + """ + return self.tk.call(self._w, 'invoke') + + +class Canvas(Widget, XView, YView): + """Canvas widget to display graphical elements like lines or text.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a canvas widget with the parent MASTER. + + Valid resource names: background, bd, bg, borderwidth, closeenough, + confine, cursor, height, highlightbackground, highlightcolor, + highlightthickness, insertbackground, insertborderwidth, + insertofftime, insertontime, insertwidth, offset, relief, + scrollregion, selectbackground, selectborderwidth, selectforeground, + state, takefocus, width, xscrollcommand, xscrollincrement, + yscrollcommand, yscrollincrement.""" + Widget.__init__(self, master, 'canvas', cnf, kw) + + def addtag(self, *args): + """Internal function.""" + self.tk.call((self._w, 'addtag') + args) + + def addtag_above(self, newtag, tagOrId): + """Add tag NEWTAG to all items above TAGORID.""" + self.addtag(newtag, 'above', tagOrId) + + def addtag_all(self, newtag): + """Add tag NEWTAG to all items.""" + self.addtag(newtag, 'all') + + def addtag_below(self, newtag, tagOrId): + """Add tag NEWTAG to all items below TAGORID.""" + self.addtag(newtag, 'below', tagOrId) + + def addtag_closest(self, newtag, x, y, halo=None, start=None): + """Add tag NEWTAG to item which is closest to pixel at X, Y. + If several match take the top-most. + All items closer than HALO are considered overlapping (all are + closest). If START is specified the next below this tag is taken.""" + self.addtag(newtag, 'closest', x, y, halo, start) + + def addtag_enclosed(self, newtag, x1, y1, x2, y2): + """Add tag NEWTAG to all items in the rectangle defined + by X1,Y1,X2,Y2.""" + self.addtag(newtag, 'enclosed', x1, y1, x2, y2) + + def addtag_overlapping(self, newtag, x1, y1, x2, y2): + """Add tag NEWTAG to all items which overlap the rectangle + defined by X1,Y1,X2,Y2.""" + self.addtag(newtag, 'overlapping', x1, y1, x2, y2) + + def addtag_withtag(self, newtag, tagOrId): + """Add tag NEWTAG to all items with TAGORID.""" + self.addtag(newtag, 'withtag', tagOrId) + + def bbox(self, *args): + """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle + which encloses all items with tags specified as arguments.""" + return self._getints( + self.tk.call((self._w, 'bbox') + args)) or None + + def tag_unbind(self, tagOrId, sequence, funcid=None): + """Unbind for all items with TAGORID for event SEQUENCE the + function identified with FUNCID.""" + self.tk.call(self._w, 'bind', tagOrId, sequence, '') + if funcid: + self.deletecommand(funcid) + + def tag_bind(self, tagOrId, sequence=None, func=None, add=None): + """Bind to all items with TAGORID at event SEQUENCE a call to function FUNC. + + An additional boolean parameter ADD specifies whether FUNC will be + called additionally to the other bound function or whether it will + replace the previous function. See bind for the return value.""" + return self._bind((self._w, 'bind', tagOrId), + sequence, func, add) + + def canvasx(self, screenx, gridspacing=None): + """Return the canvas x coordinate of pixel position SCREENX rounded + to nearest multiple of GRIDSPACING units.""" + return self.tk.getdouble(self.tk.call( + self._w, 'canvasx', screenx, gridspacing)) + + def canvasy(self, screeny, gridspacing=None): + """Return the canvas y coordinate of pixel position SCREENY rounded + to nearest multiple of GRIDSPACING units.""" + return self.tk.getdouble(self.tk.call( + self._w, 'canvasy', screeny, gridspacing)) + + def coords(self, *args): + """Return a list of coordinates for the item given in ARGS.""" + # XXX Should use _flatten on args + return [self.tk.getdouble(x) for x in + self.tk.splitlist( + self.tk.call((self._w, 'coords') + args))] + + def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={}) + """Internal function.""" + args = _flatten(args) + cnf = args[-1] + if isinstance(cnf, (dict, tuple)): + args = args[:-1] + else: + cnf = {} + return self.tk.getint(self.tk.call( + self._w, 'create', itemType, + *(args + self._options(cnf, kw)))) + + def create_arc(self, *args, **kw): + """Create arc shaped region with coordinates x1,y1,x2,y2.""" + return self._create('arc', args, kw) + + def create_bitmap(self, *args, **kw): + """Create bitmap with coordinates x1,y1.""" + return self._create('bitmap', args, kw) + + def create_image(self, *args, **kw): + """Create image item with coordinates x1,y1.""" + return self._create('image', args, kw) + + def create_line(self, *args, **kw): + """Create line with coordinates x1,y1,...,xn,yn.""" + return self._create('line', args, kw) + + def create_oval(self, *args, **kw): + """Create oval with coordinates x1,y1,x2,y2.""" + return self._create('oval', args, kw) + + def create_polygon(self, *args, **kw): + """Create polygon with coordinates x1,y1,...,xn,yn.""" + return self._create('polygon', args, kw) + + def create_rectangle(self, *args, **kw): + """Create rectangle with coordinates x1,y1,x2,y2.""" + return self._create('rectangle', args, kw) + + def create_text(self, *args, **kw): + """Create text with coordinates x1,y1.""" + return self._create('text', args, kw) + + def create_window(self, *args, **kw): + """Create window with coordinates x1,y1,x2,y2.""" + return self._create('window', args, kw) + + def dchars(self, *args): + """Delete characters of text items identified by tag or id in ARGS (possibly + several times) from FIRST to LAST character (including).""" + self.tk.call((self._w, 'dchars') + args) + + def delete(self, *args): + """Delete items identified by all tag or ids contained in ARGS.""" + self.tk.call((self._w, 'delete') + args) + + def dtag(self, *args): + """Delete tag or id given as last arguments in ARGS from items + identified by first argument in ARGS.""" + self.tk.call((self._w, 'dtag') + args) + + def find(self, *args): + """Internal function.""" + return self._getints( + self.tk.call((self._w, 'find') + args)) or () + + def find_above(self, tagOrId): + """Return items above TAGORID.""" + return self.find('above', tagOrId) + + def find_all(self): + """Return all items.""" + return self.find('all') + + def find_below(self, tagOrId): + """Return all items below TAGORID.""" + return self.find('below', tagOrId) + + def find_closest(self, x, y, halo=None, start=None): + """Return item which is closest to pixel at X, Y. + If several match take the top-most. + All items closer than HALO are considered overlapping (all are + closest). If START is specified the next below this tag is taken.""" + return self.find('closest', x, y, halo, start) + + def find_enclosed(self, x1, y1, x2, y2): + """Return all items in rectangle defined + by X1,Y1,X2,Y2.""" + return self.find('enclosed', x1, y1, x2, y2) + + def find_overlapping(self, x1, y1, x2, y2): + """Return all items which overlap the rectangle + defined by X1,Y1,X2,Y2.""" + return self.find('overlapping', x1, y1, x2, y2) + + def find_withtag(self, tagOrId): + """Return all items with TAGORID.""" + return self.find('withtag', tagOrId) + + def focus(self, *args): + """Set focus to the first item specified in ARGS.""" + return self.tk.call((self._w, 'focus') + args) + + def gettags(self, *args): + """Return tags associated with the first item specified in ARGS.""" + return self.tk.splitlist( + self.tk.call((self._w, 'gettags') + args)) + + def icursor(self, *args): + """Set cursor at position POS in the item identified by TAGORID. + In ARGS TAGORID must be first.""" + self.tk.call((self._w, 'icursor') + args) + + def index(self, *args): + """Return position of cursor as integer in item specified in ARGS.""" + return self.tk.getint(self.tk.call((self._w, 'index') + args)) + + def insert(self, *args): + """Insert TEXT in item TAGORID at position POS. ARGS must + be TAGORID POS TEXT.""" + self.tk.call((self._w, 'insert') + args) + + def itemcget(self, tagOrId, option): + """Return the resource value for an OPTION for item TAGORID.""" + return self.tk.call( + (self._w, 'itemcget') + (tagOrId, '-'+option)) + + def itemconfigure(self, tagOrId, cnf=None, **kw): + """Configure resources of an item TAGORID. + + The values for resources are specified as keyword + arguments. To get an overview about + the allowed keyword arguments call the method without arguments. + """ + return self._configure(('itemconfigure', tagOrId), cnf, kw) + + itemconfig = itemconfigure + + # lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift, + # so the preferred name for them is tag_lower, tag_raise + # (similar to tag_bind, and similar to the Text widget); + # unfortunately can't delete the old ones yet (maybe in 1.6) + def tag_lower(self, *args): + """Lower an item TAGORID given in ARGS + (optional below another item).""" + self.tk.call((self._w, 'lower') + args) + + lower = tag_lower + + def move(self, *args): + """Move an item TAGORID given in ARGS.""" + self.tk.call((self._w, 'move') + args) + + def moveto(self, tagOrId, x='', y=''): + """Move the items given by TAGORID in the canvas coordinate + space so that the first coordinate pair of the bottommost + item with tag TAGORID is located at position (X,Y). + X and Y may be the empty string, in which case the + corresponding coordinate will be unchanged. All items matching + TAGORID remain in the same positions relative to each other.""" + self.tk.call(self._w, 'moveto', tagOrId, x, y) + + def postscript(self, cnf={}, **kw): + """Print the contents of the canvas to a postscript + file. Valid options: colormap, colormode, file, fontmap, + height, pageanchor, pageheight, pagewidth, pagex, pagey, + rotate, width, x, y.""" + return self.tk.call((self._w, 'postscript') + + self._options(cnf, kw)) + + def tag_raise(self, *args): + """Raise an item TAGORID given in ARGS + (optional above another item).""" + self.tk.call((self._w, 'raise') + args) + + lift = tkraise = tag_raise + + def scale(self, *args): + """Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE.""" + self.tk.call((self._w, 'scale') + args) + + def scan_mark(self, x, y): + """Remember the current X, Y coordinates.""" + self.tk.call(self._w, 'scan', 'mark', x, y) + + def scan_dragto(self, x, y, gain=10): + """Adjust the view of the canvas to GAIN times the + difference between X and Y and the coordinates given in + scan_mark.""" + self.tk.call(self._w, 'scan', 'dragto', x, y, gain) + + def select_adjust(self, tagOrId, index): + """Adjust the end of the selection near the cursor of an item TAGORID to index.""" + self.tk.call(self._w, 'select', 'adjust', tagOrId, index) + + def select_clear(self): + """Clear the selection if it is in this widget.""" + self.tk.call(self._w, 'select', 'clear') + + def select_from(self, tagOrId, index): + """Set the fixed end of a selection in item TAGORID to INDEX.""" + self.tk.call(self._w, 'select', 'from', tagOrId, index) + + def select_item(self): + """Return the item which has the selection.""" + return self.tk.call(self._w, 'select', 'item') or None + + def select_to(self, tagOrId, index): + """Set the variable end of a selection in item TAGORID to INDEX.""" + self.tk.call(self._w, 'select', 'to', tagOrId, index) + + def type(self, tagOrId): + """Return the type of the item TAGORID.""" + return self.tk.call(self._w, 'type', tagOrId) or None + + +_checkbutton_count = 0 + +class Checkbutton(Widget): + """Checkbutton widget which is either in on- or off-state.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a checkbutton widget with the parent MASTER. + + Valid resource names: activebackground, activeforeground, anchor, + background, bd, bg, bitmap, borderwidth, command, cursor, + disabledforeground, fg, font, foreground, height, + highlightbackground, highlightcolor, highlightthickness, image, + indicatoron, justify, offvalue, onvalue, padx, pady, relief, + selectcolor, selectimage, state, takefocus, text, textvariable, + underline, variable, width, wraplength.""" + Widget.__init__(self, master, 'checkbutton', cnf, kw) + + def _setup(self, master, cnf): + if not cnf.get('name'): + global _checkbutton_count + name = self.__class__.__name__.lower() + _checkbutton_count += 1 + cnf['name'] = f'!{name}{_checkbutton_count}' + super()._setup(master, cnf) + + def deselect(self): + """Put the button in off-state.""" + self.tk.call(self._w, 'deselect') + + def flash(self): + """Flash the button.""" + self.tk.call(self._w, 'flash') + + def invoke(self): + """Toggle the button and invoke a command if given as resource.""" + return self.tk.call(self._w, 'invoke') + + def select(self): + """Put the button in on-state.""" + self.tk.call(self._w, 'select') + + def toggle(self): + """Toggle the button.""" + self.tk.call(self._w, 'toggle') + + +class Entry(Widget, XView): + """Entry widget which allows displaying simple text.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct an entry widget with the parent MASTER. + + Valid resource names: background, bd, bg, borderwidth, cursor, + exportselection, fg, font, foreground, highlightbackground, + highlightcolor, highlightthickness, insertbackground, + insertborderwidth, insertofftime, insertontime, insertwidth, + invalidcommand, invcmd, justify, relief, selectbackground, + selectborderwidth, selectforeground, show, state, takefocus, + textvariable, validate, validatecommand, vcmd, width, + xscrollcommand.""" + Widget.__init__(self, master, 'entry', cnf, kw) + + def delete(self, first, last=None): + """Delete text from FIRST to LAST (not included).""" + self.tk.call(self._w, 'delete', first, last) + + def get(self): + """Return the text.""" + return self.tk.call(self._w, 'get') + + def icursor(self, index): + """Insert cursor at INDEX.""" + self.tk.call(self._w, 'icursor', index) + + def index(self, index): + """Return position of cursor.""" + return self.tk.getint(self.tk.call( + self._w, 'index', index)) + + def insert(self, index, string): + """Insert STRING at INDEX.""" + self.tk.call(self._w, 'insert', index, string) + + def scan_mark(self, x): + """Remember the current X, Y coordinates.""" + self.tk.call(self._w, 'scan', 'mark', x) + + def scan_dragto(self, x): + """Adjust the view of the canvas to 10 times the + difference between X and Y and the coordinates given in + scan_mark.""" + self.tk.call(self._w, 'scan', 'dragto', x) + + def selection_adjust(self, index): + """Adjust the end of the selection near the cursor to INDEX.""" + self.tk.call(self._w, 'selection', 'adjust', index) + + select_adjust = selection_adjust + + def selection_clear(self): + """Clear the selection if it is in this widget.""" + self.tk.call(self._w, 'selection', 'clear') + + select_clear = selection_clear + + def selection_from(self, index): + """Set the fixed end of a selection to INDEX.""" + self.tk.call(self._w, 'selection', 'from', index) + + select_from = selection_from + + def selection_present(self): + """Return True if there are characters selected in the entry, False + otherwise.""" + return self.tk.getboolean( + self.tk.call(self._w, 'selection', 'present')) + + select_present = selection_present + + def selection_range(self, start, end): + """Set the selection from START to END (not included).""" + self.tk.call(self._w, 'selection', 'range', start, end) + + select_range = selection_range + + def selection_to(self, index): + """Set the variable end of a selection to INDEX.""" + self.tk.call(self._w, 'selection', 'to', index) + + select_to = selection_to + + +class Frame(Widget): + """Frame widget which may contain other widgets and can have a 3D border.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a frame widget with the parent MASTER. + + Valid resource names: background, bd, bg, borderwidth, class, + colormap, container, cursor, height, highlightbackground, + highlightcolor, highlightthickness, relief, takefocus, visual, width.""" + cnf = _cnfmerge((cnf, kw)) + extra = () + if 'class_' in cnf: + extra = ('-class', cnf['class_']) + del cnf['class_'] + elif 'class' in cnf: + extra = ('-class', cnf['class']) + del cnf['class'] + Widget.__init__(self, master, 'frame', cnf, {}, extra) + + +class Label(Widget): + """Label widget which can display text and bitmaps.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a label widget with the parent MASTER. + + STANDARD OPTIONS + + activebackground, activeforeground, anchor, + background, bitmap, borderwidth, cursor, + disabledforeground, font, foreground, + highlightbackground, highlightcolor, + highlightthickness, image, justify, + padx, pady, relief, takefocus, text, + textvariable, underline, wraplength + + WIDGET-SPECIFIC OPTIONS + + height, state, width + + """ + Widget.__init__(self, master, 'label', cnf, kw) + + +class Listbox(Widget, XView, YView): + """Listbox widget which can display a list of strings.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a listbox widget with the parent MASTER. + + Valid resource names: background, bd, bg, borderwidth, cursor, + exportselection, fg, font, foreground, height, highlightbackground, + highlightcolor, highlightthickness, relief, selectbackground, + selectborderwidth, selectforeground, selectmode, setgrid, takefocus, + width, xscrollcommand, yscrollcommand, listvariable.""" + Widget.__init__(self, master, 'listbox', cnf, kw) + + def activate(self, index): + """Activate item identified by INDEX.""" + self.tk.call(self._w, 'activate', index) + + def bbox(self, index): + """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle + which encloses the item identified by the given index.""" + return self._getints(self.tk.call(self._w, 'bbox', index)) or None + + def curselection(self): + """Return the indices of currently selected item.""" + return self._getints(self.tk.call(self._w, 'curselection')) or () + + def delete(self, first, last=None): + """Delete items from FIRST to LAST (included).""" + self.tk.call(self._w, 'delete', first, last) + + def get(self, first, last=None): + """Get list of items from FIRST to LAST (included).""" + if last is not None: + return self.tk.splitlist(self.tk.call( + self._w, 'get', first, last)) + else: + return self.tk.call(self._w, 'get', first) + + def index(self, index): + """Return index of item identified with INDEX.""" + i = self.tk.call(self._w, 'index', index) + if i == 'none': return None + return self.tk.getint(i) + + def insert(self, index, *elements): + """Insert ELEMENTS at INDEX.""" + self.tk.call((self._w, 'insert', index) + elements) + + def nearest(self, y): + """Get index of item which is nearest to y coordinate Y.""" + return self.tk.getint(self.tk.call( + self._w, 'nearest', y)) + + def scan_mark(self, x, y): + """Remember the current X, Y coordinates.""" + self.tk.call(self._w, 'scan', 'mark', x, y) + + def scan_dragto(self, x, y): + """Adjust the view of the listbox to 10 times the + difference between X and Y and the coordinates given in + scan_mark.""" + self.tk.call(self._w, 'scan', 'dragto', x, y) + + def see(self, index): + """Scroll such that INDEX is visible.""" + self.tk.call(self._w, 'see', index) + + def selection_anchor(self, index): + """Set the fixed end oft the selection to INDEX.""" + self.tk.call(self._w, 'selection', 'anchor', index) + + select_anchor = selection_anchor + + def selection_clear(self, first, last=None): + """Clear the selection from FIRST to LAST (included).""" + self.tk.call(self._w, + 'selection', 'clear', first, last) + + select_clear = selection_clear + + def selection_includes(self, index): + """Return True if INDEX is part of the selection.""" + return self.tk.getboolean(self.tk.call( + self._w, 'selection', 'includes', index)) + + select_includes = selection_includes + + def selection_set(self, first, last=None): + """Set the selection from FIRST to LAST (included) without + changing the currently selected elements.""" + self.tk.call(self._w, 'selection', 'set', first, last) + + select_set = selection_set + + def size(self): + """Return the number of elements in the listbox.""" + return self.tk.getint(self.tk.call(self._w, 'size')) + + def itemcget(self, index, option): + """Return the resource value for an ITEM and an OPTION.""" + return self.tk.call( + (self._w, 'itemcget') + (index, '-'+option)) + + def itemconfigure(self, index, cnf=None, **kw): + """Configure resources of an ITEM. + + The values for resources are specified as keyword arguments. + To get an overview about the allowed keyword arguments + call the method without arguments. + Valid resource names: background, bg, foreground, fg, + selectbackground, selectforeground.""" + return self._configure(('itemconfigure', index), cnf, kw) + + itemconfig = itemconfigure + + +class Menu(Widget): + """Menu widget which allows displaying menu bars, pull-down menus and pop-up menus.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct menu widget with the parent MASTER. + + Valid resource names: activebackground, activeborderwidth, + activeforeground, background, bd, bg, borderwidth, cursor, + disabledforeground, fg, font, foreground, postcommand, relief, + selectcolor, takefocus, tearoff, tearoffcommand, title, type.""" + Widget.__init__(self, master, 'menu', cnf, kw) + + def tk_popup(self, x, y, entry=""): + """Post the menu at position X,Y with entry ENTRY.""" + self.tk.call('tk_popup', self._w, x, y, entry) + + def activate(self, index): + """Activate entry at INDEX.""" + self.tk.call(self._w, 'activate', index) + + def add(self, itemType, cnf={}, **kw): + """Internal function.""" + self.tk.call((self._w, 'add', itemType) + + self._options(cnf, kw)) + + def add_cascade(self, cnf={}, **kw): + """Add hierarchical menu item.""" + self.add('cascade', cnf or kw) + + def add_checkbutton(self, cnf={}, **kw): + """Add checkbutton menu item.""" + self.add('checkbutton', cnf or kw) + + def add_command(self, cnf={}, **kw): + """Add command menu item.""" + self.add('command', cnf or kw) + + def add_radiobutton(self, cnf={}, **kw): + """Add radio menu item.""" + self.add('radiobutton', cnf or kw) + + def add_separator(self, cnf={}, **kw): + """Add separator.""" + self.add('separator', cnf or kw) + + def insert(self, index, itemType, cnf={}, **kw): + """Internal function.""" + self.tk.call((self._w, 'insert', index, itemType) + + self._options(cnf, kw)) + + def insert_cascade(self, index, cnf={}, **kw): + """Add hierarchical menu item at INDEX.""" + self.insert(index, 'cascade', cnf or kw) + + def insert_checkbutton(self, index, cnf={}, **kw): + """Add checkbutton menu item at INDEX.""" + self.insert(index, 'checkbutton', cnf or kw) + + def insert_command(self, index, cnf={}, **kw): + """Add command menu item at INDEX.""" + self.insert(index, 'command', cnf or kw) + + def insert_radiobutton(self, index, cnf={}, **kw): + """Add radio menu item at INDEX.""" + self.insert(index, 'radiobutton', cnf or kw) + + def insert_separator(self, index, cnf={}, **kw): + """Add separator at INDEX.""" + self.insert(index, 'separator', cnf or kw) + + def delete(self, index1, index2=None): + """Delete menu items between INDEX1 and INDEX2 (included).""" + if index2 is None: + index2 = index1 + + num_index1, num_index2 = self.index(index1), self.index(index2) + if (num_index1 is None) or (num_index2 is None): + num_index1, num_index2 = 0, -1 + + for i in range(num_index1, num_index2 + 1): + if 'command' in self.entryconfig(i): + c = str(self.entrycget(i, 'command')) + if c: + self.deletecommand(c) + self.tk.call(self._w, 'delete', index1, index2) + + def entrycget(self, index, option): + """Return the resource value of a menu item for OPTION at INDEX.""" + return self.tk.call(self._w, 'entrycget', index, '-' + option) + + def entryconfigure(self, index, cnf=None, **kw): + """Configure a menu item at INDEX.""" + return self._configure(('entryconfigure', index), cnf, kw) + + entryconfig = entryconfigure + + def index(self, index): + """Return the index of a menu item identified by INDEX.""" + i = self.tk.call(self._w, 'index', index) + if i == 'none': return None + return self.tk.getint(i) + + def invoke(self, index): + """Invoke a menu item identified by INDEX and execute + the associated command.""" + return self.tk.call(self._w, 'invoke', index) + + def post(self, x, y): + """Display a menu at position X,Y.""" + self.tk.call(self._w, 'post', x, y) + + def type(self, index): + """Return the type of the menu item at INDEX.""" + return self.tk.call(self._w, 'type', index) + + def unpost(self): + """Unmap a menu.""" + self.tk.call(self._w, 'unpost') + + def xposition(self, index): # new in Tk 8.5 + """Return the x-position of the leftmost pixel of the menu item + at INDEX.""" + return self.tk.getint(self.tk.call(self._w, 'xposition', index)) + + def yposition(self, index): + """Return the y-position of the topmost pixel of the menu item at INDEX.""" + return self.tk.getint(self.tk.call( + self._w, 'yposition', index)) + + +class Menubutton(Widget): + """Menubutton widget, obsolete since Tk8.0.""" + + def __init__(self, master=None, cnf={}, **kw): + Widget.__init__(self, master, 'menubutton', cnf, kw) + + +class Message(Widget): + """Message widget to display multiline text. Obsolete since Label does it too.""" + + def __init__(self, master=None, cnf={}, **kw): + Widget.__init__(self, master, 'message', cnf, kw) + + +class Radiobutton(Widget): + """Radiobutton widget which shows only one of several buttons in on-state.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a radiobutton widget with the parent MASTER. + + Valid resource names: activebackground, activeforeground, anchor, + background, bd, bg, bitmap, borderwidth, command, cursor, + disabledforeground, fg, font, foreground, height, + highlightbackground, highlightcolor, highlightthickness, image, + indicatoron, justify, padx, pady, relief, selectcolor, selectimage, + state, takefocus, text, textvariable, underline, value, variable, + width, wraplength.""" + Widget.__init__(self, master, 'radiobutton', cnf, kw) + + def deselect(self): + """Put the button in off-state.""" + + self.tk.call(self._w, 'deselect') + + def flash(self): + """Flash the button.""" + self.tk.call(self._w, 'flash') + + def invoke(self): + """Toggle the button and invoke a command if given as resource.""" + return self.tk.call(self._w, 'invoke') + + def select(self): + """Put the button in on-state.""" + self.tk.call(self._w, 'select') + + +class Scale(Widget): + """Scale widget which can display a numerical scale.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a scale widget with the parent MASTER. + + Valid resource names: activebackground, background, bigincrement, bd, + bg, borderwidth, command, cursor, digits, fg, font, foreground, from, + highlightbackground, highlightcolor, highlightthickness, label, + length, orient, relief, repeatdelay, repeatinterval, resolution, + showvalue, sliderlength, sliderrelief, state, takefocus, + tickinterval, to, troughcolor, variable, width.""" + Widget.__init__(self, master, 'scale', cnf, kw) + + def get(self): + """Get the current value as integer or float.""" + value = self.tk.call(self._w, 'get') + try: + return self.tk.getint(value) + except (ValueError, TypeError, TclError): + return self.tk.getdouble(value) + + def set(self, value): + """Set the value to VALUE.""" + self.tk.call(self._w, 'set', value) + + def coords(self, value=None): + """Return a tuple (X,Y) of the point along the centerline of the + trough that corresponds to VALUE or the current value if None is + given.""" + + return self._getints(self.tk.call(self._w, 'coords', value)) + + def identify(self, x, y): + """Return where the point X,Y lies. Valid return values are "slider", + "though1" and "though2".""" + return self.tk.call(self._w, 'identify', x, y) + + +class Scrollbar(Widget): + """Scrollbar widget which displays a slider at a certain position.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a scrollbar widget with the parent MASTER. + + Valid resource names: activebackground, activerelief, + background, bd, bg, borderwidth, command, cursor, + elementborderwidth, highlightbackground, + highlightcolor, highlightthickness, jump, orient, + relief, repeatdelay, repeatinterval, takefocus, + troughcolor, width.""" + Widget.__init__(self, master, 'scrollbar', cnf, kw) + + def activate(self, index=None): + """Marks the element indicated by index as active. + The only index values understood by this method are "arrow1", + "slider", or "arrow2". If any other value is specified then no + element of the scrollbar will be active. If index is not specified, + the method returns the name of the element that is currently active, + or None if no element is active.""" + return self.tk.call(self._w, 'activate', index) or None + + def delta(self, deltax, deltay): + """Return the fractional change of the scrollbar setting if it + would be moved by DELTAX or DELTAY pixels.""" + return self.tk.getdouble( + self.tk.call(self._w, 'delta', deltax, deltay)) + + def fraction(self, x, y): + """Return the fractional value which corresponds to a slider + position of X,Y.""" + return self.tk.getdouble(self.tk.call(self._w, 'fraction', x, y)) + + def identify(self, x, y): + """Return the element under position X,Y as one of + "arrow1","slider","arrow2" or "".""" + return self.tk.call(self._w, 'identify', x, y) + + def get(self): + """Return the current fractional values (upper and lower end) + of the slider position.""" + return self._getdoubles(self.tk.call(self._w, 'get')) + + def set(self, first, last): + """Set the fractional values of the slider position (upper and + lower ends as value between 0 and 1).""" + self.tk.call(self._w, 'set', first, last) + + +class Text(Widget, XView, YView): + """Text widget which can display text in various forms.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a text widget with the parent MASTER. + + STANDARD OPTIONS + + background, borderwidth, cursor, + exportselection, font, foreground, + highlightbackground, highlightcolor, + highlightthickness, insertbackground, + insertborderwidth, insertofftime, + insertontime, insertwidth, padx, pady, + relief, selectbackground, + selectborderwidth, selectforeground, + setgrid, takefocus, + xscrollcommand, yscrollcommand, + + WIDGET-SPECIFIC OPTIONS + + autoseparators, height, maxundo, + spacing1, spacing2, spacing3, + state, tabs, undo, width, wrap, + + """ + Widget.__init__(self, master, 'text', cnf, kw) + + def bbox(self, index): + """Return a tuple of (x,y,width,height) which gives the bounding + box of the visible part of the character at the given index.""" + return self._getints( + self.tk.call(self._w, 'bbox', index)) or None + + def compare(self, index1, op, index2): + """Return whether between index INDEX1 and index INDEX2 the + relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.""" + return self.tk.getboolean(self.tk.call( + self._w, 'compare', index1, op, index2)) + + def count(self, index1, index2, *args): # new in Tk 8.5 + """Counts the number of relevant things between the two indices. + If index1 is after index2, the result will be a negative number + (and this holds for each of the possible options). + + The actual items which are counted depends on the options given by + args. The result is a list of integers, one for the result of each + counting option given. Valid counting options are "chars", + "displaychars", "displayindices", "displaylines", "indices", + "lines", "xpixels" and "ypixels". There is an additional possible + option "update", which if given then all subsequent options ensure + that any possible out of date information is recalculated.""" + args = ['-%s' % arg for arg in args] + args += [index1, index2] + res = self.tk.call(self._w, 'count', *args) or None + if res is not None and len(args) <= 3: + return (res, ) + else: + return res + + def debug(self, boolean=None): + """Turn on the internal consistency checks of the B-Tree inside the text + widget according to BOOLEAN.""" + if boolean is None: + return self.tk.getboolean(self.tk.call(self._w, 'debug')) + self.tk.call(self._w, 'debug', boolean) + + def delete(self, index1, index2=None): + """Delete the characters between INDEX1 and INDEX2 (not included).""" + self.tk.call(self._w, 'delete', index1, index2) + + def dlineinfo(self, index): + """Return tuple (x,y,width,height,baseline) giving the bounding box + and baseline position of the visible part of the line containing + the character at INDEX.""" + return self._getints(self.tk.call(self._w, 'dlineinfo', index)) + + def dump(self, index1, index2=None, command=None, **kw): + """Return the contents of the widget between index1 and index2. + + The type of contents returned in filtered based on the keyword + parameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are + given and true, then the corresponding items are returned. The result + is a list of triples of the form (key, value, index). If none of the + keywords are true then 'all' is used by default. + + If the 'command' argument is given, it is called once for each element + of the list of triples, with the values of each triple serving as the + arguments to the function. In this case the list is not returned.""" + args = [] + func_name = None + result = None + if not command: + # Never call the dump command without the -command flag, since the + # output could involve Tcl quoting and would be a pain to parse + # right. Instead just set the command to build a list of triples + # as if we had done the parsing. + result = [] + def append_triple(key, value, index, result=result): + result.append((key, value, index)) + command = append_triple + try: + if not isinstance(command, str): + func_name = command = self._register(command) + args += ["-command", command] + for key in kw: + if kw[key]: args.append("-" + key) + args.append(index1) + if index2: + args.append(index2) + self.tk.call(self._w, "dump", *args) + return result + finally: + if func_name: + self.deletecommand(func_name) + + ## new in tk8.4 + def edit(self, *args): + """Internal method + + This method controls the undo mechanism and + the modified flag. The exact behavior of the + command depends on the option argument that + follows the edit argument. The following forms + of the command are currently supported: + + edit_modified, edit_redo, edit_reset, edit_separator + and edit_undo + + """ + return self.tk.call(self._w, 'edit', *args) + + def edit_modified(self, arg=None): + """Get or Set the modified flag + + If arg is not specified, returns the modified + flag of the widget. The insert, delete, edit undo and + edit redo commands or the user can set or clear the + modified flag. If boolean is specified, sets the + modified flag of the widget to arg. + """ + return self.edit("modified", arg) + + def edit_redo(self): + """Redo the last undone edit + + When the undo option is true, reapplies the last + undone edits provided no other edits were done since + then. Generates an error when the redo stack is empty. + Does nothing when the undo option is false. + """ + return self.edit("redo") + + def edit_reset(self): + """Clears the undo and redo stacks + """ + return self.edit("reset") + + def edit_separator(self): + """Inserts a separator (boundary) on the undo stack. + + Does nothing when the undo option is false + """ + return self.edit("separator") + + def edit_undo(self): + """Undoes the last edit action + + If the undo option is true. An edit action is defined + as all the insert and delete commands that are recorded + on the undo stack in between two separators. Generates + an error when the undo stack is empty. Does nothing + when the undo option is false + """ + return self.edit("undo") + + def get(self, index1, index2=None): + """Return the text from INDEX1 to INDEX2 (not included).""" + return self.tk.call(self._w, 'get', index1, index2) + # (Image commands are new in 8.0) + + def image_cget(self, index, option): + """Return the value of OPTION of an embedded image at INDEX.""" + if option[:1] != "-": + option = "-" + option + if option[-1:] == "_": + option = option[:-1] + return self.tk.call(self._w, "image", "cget", index, option) + + def image_configure(self, index, cnf=None, **kw): + """Configure an embedded image at INDEX.""" + return self._configure(('image', 'configure', index), cnf, kw) + + def image_create(self, index, cnf={}, **kw): + """Create an embedded image at INDEX.""" + return self.tk.call( + self._w, "image", "create", index, + *self._options(cnf, kw)) + + def image_names(self): + """Return all names of embedded images in this widget.""" + return self.tk.call(self._w, "image", "names") + + def index(self, index): + """Return the index in the form line.char for INDEX.""" + return str(self.tk.call(self._w, 'index', index)) + + def insert(self, index, chars, *args): + """Insert CHARS before the characters at INDEX. An additional + tag can be given in ARGS. Additional CHARS and tags can follow in ARGS.""" + self.tk.call((self._w, 'insert', index, chars) + args) + + def mark_gravity(self, markName, direction=None): + """Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT). + Return the current value if None is given for DIRECTION.""" + return self.tk.call( + (self._w, 'mark', 'gravity', markName, direction)) + + def mark_names(self): + """Return all mark names.""" + return self.tk.splitlist(self.tk.call( + self._w, 'mark', 'names')) + + def mark_set(self, markName, index): + """Set mark MARKNAME before the character at INDEX.""" + self.tk.call(self._w, 'mark', 'set', markName, index) + + def mark_unset(self, *markNames): + """Delete all marks in MARKNAMES.""" + self.tk.call((self._w, 'mark', 'unset') + markNames) + + def mark_next(self, index): + """Return the name of the next mark after INDEX.""" + return self.tk.call(self._w, 'mark', 'next', index) or None + + def mark_previous(self, index): + """Return the name of the previous mark before INDEX.""" + return self.tk.call(self._w, 'mark', 'previous', index) or None + + def peer_create(self, newPathName, cnf={}, **kw): # new in Tk 8.5 + """Creates a peer text widget with the given newPathName, and any + optional standard configuration options. By default the peer will + have the same start and end line as the parent widget, but + these can be overridden with the standard configuration options.""" + self.tk.call(self._w, 'peer', 'create', newPathName, + *self._options(cnf, kw)) + + def peer_names(self): # new in Tk 8.5 + """Returns a list of peers of this widget (this does not include + the widget itself).""" + return self.tk.splitlist(self.tk.call(self._w, 'peer', 'names')) + + def replace(self, index1, index2, chars, *args): # new in Tk 8.5 + """Replaces the range of characters between index1 and index2 with + the given characters and tags specified by args. + + See the method insert for some more information about args, and the + method delete for information about the indices.""" + self.tk.call(self._w, 'replace', index1, index2, chars, *args) + + def scan_mark(self, x, y): + """Remember the current X, Y coordinates.""" + self.tk.call(self._w, 'scan', 'mark', x, y) + + def scan_dragto(self, x, y): + """Adjust the view of the text to 10 times the + difference between X and Y and the coordinates given in + scan_mark.""" + self.tk.call(self._w, 'scan', 'dragto', x, y) + + def search(self, pattern, index, stopindex=None, + forwards=None, backwards=None, exact=None, + regexp=None, nocase=None, count=None, elide=None): + """Search PATTERN beginning from INDEX until STOPINDEX. + Return the index of the first character of a match or an + empty string.""" + args = [self._w, 'search'] + if forwards: args.append('-forwards') + if backwards: args.append('-backwards') + if exact: args.append('-exact') + if regexp: args.append('-regexp') + if nocase: args.append('-nocase') + if elide: args.append('-elide') + if count: args.append('-count'); args.append(count) + if pattern and pattern[0] == '-': args.append('--') + args.append(pattern) + args.append(index) + if stopindex: args.append(stopindex) + return str(self.tk.call(tuple(args))) + + def see(self, index): + """Scroll such that the character at INDEX is visible.""" + self.tk.call(self._w, 'see', index) + + def tag_add(self, tagName, index1, *args): + """Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS. + Additional pairs of indices may follow in ARGS.""" + self.tk.call( + (self._w, 'tag', 'add', tagName, index1) + args) + + def tag_unbind(self, tagName, sequence, funcid=None): + """Unbind for all characters with TAGNAME for event SEQUENCE the + function identified with FUNCID.""" + self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '') + if funcid: + self.deletecommand(funcid) + + def tag_bind(self, tagName, sequence, func, add=None): + """Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC. + + An additional boolean parameter ADD specifies whether FUNC will be + called additionally to the other bound function or whether it will + replace the previous function. See bind for the return value.""" + return self._bind((self._w, 'tag', 'bind', tagName), + sequence, func, add) + + def tag_cget(self, tagName, option): + """Return the value of OPTION for tag TAGNAME.""" + if option[:1] != '-': + option = '-' + option + if option[-1:] == '_': + option = option[:-1] + return self.tk.call(self._w, 'tag', 'cget', tagName, option) + + def tag_configure(self, tagName, cnf=None, **kw): + """Configure a tag TAGNAME.""" + return self._configure(('tag', 'configure', tagName), cnf, kw) + + tag_config = tag_configure + + def tag_delete(self, *tagNames): + """Delete all tags in TAGNAMES.""" + self.tk.call((self._w, 'tag', 'delete') + tagNames) + + def tag_lower(self, tagName, belowThis=None): + """Change the priority of tag TAGNAME such that it is lower + than the priority of BELOWTHIS.""" + self.tk.call(self._w, 'tag', 'lower', tagName, belowThis) + + def tag_names(self, index=None): + """Return a list of all tag names.""" + return self.tk.splitlist( + self.tk.call(self._w, 'tag', 'names', index)) + + def tag_nextrange(self, tagName, index1, index2=None): + """Return a list of start and end index for the first sequence of + characters between INDEX1 and INDEX2 which all have tag TAGNAME. + The text is searched forward from INDEX1.""" + return self.tk.splitlist(self.tk.call( + self._w, 'tag', 'nextrange', tagName, index1, index2)) + + def tag_prevrange(self, tagName, index1, index2=None): + """Return a list of start and end index for the first sequence of + characters between INDEX1 and INDEX2 which all have tag TAGNAME. + The text is searched backwards from INDEX1.""" + return self.tk.splitlist(self.tk.call( + self._w, 'tag', 'prevrange', tagName, index1, index2)) + + def tag_raise(self, tagName, aboveThis=None): + """Change the priority of tag TAGNAME such that it is higher + than the priority of ABOVETHIS.""" + self.tk.call( + self._w, 'tag', 'raise', tagName, aboveThis) + + def tag_ranges(self, tagName): + """Return a list of ranges of text which have tag TAGNAME.""" + return self.tk.splitlist(self.tk.call( + self._w, 'tag', 'ranges', tagName)) + + def tag_remove(self, tagName, index1, index2=None): + """Remove tag TAGNAME from all characters between INDEX1 and INDEX2.""" + self.tk.call( + self._w, 'tag', 'remove', tagName, index1, index2) + + def window_cget(self, index, option): + """Return the value of OPTION of an embedded window at INDEX.""" + if option[:1] != '-': + option = '-' + option + if option[-1:] == '_': + option = option[:-1] + return self.tk.call(self._w, 'window', 'cget', index, option) + + def window_configure(self, index, cnf=None, **kw): + """Configure an embedded window at INDEX.""" + return self._configure(('window', 'configure', index), cnf, kw) + + window_config = window_configure + + def window_create(self, index, cnf={}, **kw): + """Create a window at INDEX.""" + self.tk.call( + (self._w, 'window', 'create', index) + + self._options(cnf, kw)) + + def window_names(self): + """Return all names of embedded windows in this widget.""" + return self.tk.splitlist( + self.tk.call(self._w, 'window', 'names')) + + def yview_pickplace(self, *what): + """Obsolete function, use see.""" + self.tk.call((self._w, 'yview', '-pickplace') + what) + + +class _setit: + """Internal class. It wraps the command in the widget OptionMenu.""" + + def __init__(self, var, value, callback=None): + self.__value = value + self.__var = var + self.__callback = callback + + def __call__(self, *args): + self.__var.set(self.__value) + if self.__callback is not None: + self.__callback(self.__value, *args) + + +class OptionMenu(Menubutton): + """OptionMenu which allows the user to select a value from a menu.""" + + def __init__(self, master, variable, value, *values, **kwargs): + """Construct an optionmenu widget with the parent MASTER, with + the resource textvariable set to VARIABLE, the initially selected + value VALUE, the other menu values VALUES and an additional + keyword argument command.""" + kw = {"borderwidth": 2, "textvariable": variable, + "indicatoron": 1, "relief": RAISED, "anchor": "c", + "highlightthickness": 2} + Widget.__init__(self, master, "menubutton", kw) + self.widgetName = 'tk_optionMenu' + menu = self.__menu = Menu(self, name="menu", tearoff=0) + self.menuname = menu._w + # 'command' is the only supported keyword + callback = kwargs.get('command') + if 'command' in kwargs: + del kwargs['command'] + if kwargs: + raise TclError('unknown option -'+next(iter(kwargs))) + menu.add_command(label=value, + command=_setit(variable, value, callback)) + for v in values: + menu.add_command(label=v, + command=_setit(variable, v, callback)) + self["menu"] = menu + + def __getitem__(self, name): + if name == 'menu': + return self.__menu + return Widget.__getitem__(self, name) + + def destroy(self): + """Destroy this widget and the associated menu.""" + Menubutton.destroy(self) + self.__menu = None + + +class Image: + """Base class for images.""" + _last_id = 0 + + def __init__(self, imgtype, name=None, cnf={}, master=None, **kw): + self.name = None + if master is None: + master = _get_default_root('create image') + self.tk = getattr(master, 'tk', master) + if not name: + Image._last_id += 1 + name = "pyimage%r" % (Image._last_id,) # tk itself would use image + if kw and cnf: cnf = _cnfmerge((cnf, kw)) + elif kw: cnf = kw + options = () + for k, v in cnf.items(): + if callable(v): + v = self._register(v) + options = options + ('-'+k, v) + self.tk.call(('image', 'create', imgtype, name,) + options) + self.name = name + + def __str__(self): return self.name + + def __del__(self): + if self.name: + try: + self.tk.call('image', 'delete', self.name) + except TclError: + # May happen if the root was destroyed + pass + + def __setitem__(self, key, value): + self.tk.call(self.name, 'configure', '-'+key, value) + + def __getitem__(self, key): + return self.tk.call(self.name, 'configure', '-'+key) + + def configure(self, **kw): + """Configure the image.""" + res = () + for k, v in _cnfmerge(kw).items(): + if v is not None: + if k[-1] == '_': k = k[:-1] + if callable(v): + v = self._register(v) + res = res + ('-'+k, v) + self.tk.call((self.name, 'config') + res) + + config = configure + + def height(self): + """Return the height of the image.""" + return self.tk.getint( + self.tk.call('image', 'height', self.name)) + + def type(self): + """Return the type of the image, e.g. "photo" or "bitmap".""" + return self.tk.call('image', 'type', self.name) + + def width(self): + """Return the width of the image.""" + return self.tk.getint( + self.tk.call('image', 'width', self.name)) + + +class PhotoImage(Image): + """Widget which can display images in PGM, PPM, GIF, PNG format.""" + + def __init__(self, name=None, cnf={}, master=None, **kw): + """Create an image with NAME. + + Valid resource names: data, format, file, gamma, height, palette, + width.""" + Image.__init__(self, 'photo', name, cnf, master, **kw) + + def blank(self): + """Display a transparent image.""" + self.tk.call(self.name, 'blank') + + def cget(self, option): + """Return the value of OPTION.""" + return self.tk.call(self.name, 'cget', '-' + option) + # XXX config + + def __getitem__(self, key): + return self.tk.call(self.name, 'cget', '-' + key) + # XXX copy -from, -to, ...? + + def copy(self): + """Return a new PhotoImage with the same image as this widget.""" + destImage = PhotoImage(master=self.tk) + self.tk.call(destImage, 'copy', self.name) + return destImage + + def zoom(self, x, y=''): + """Return a new PhotoImage with the same image as this widget + but zoom it with a factor of x in the X direction and y in the Y + direction. If y is not given, the default value is the same as x. + """ + destImage = PhotoImage(master=self.tk) + if y=='': y=x + self.tk.call(destImage, 'copy', self.name, '-zoom',x,y) + return destImage + + def subsample(self, x, y=''): + """Return a new PhotoImage based on the same image as this widget + but use only every Xth or Yth pixel. If y is not given, the + default value is the same as x. + """ + destImage = PhotoImage(master=self.tk) + if y=='': y=x + self.tk.call(destImage, 'copy', self.name, '-subsample',x,y) + return destImage + + def get(self, x, y): + """Return the color (red, green, blue) of the pixel at X,Y.""" + return self.tk.call(self.name, 'get', x, y) + + def put(self, data, to=None): + """Put row formatted colors to image starting from + position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))""" + args = (self.name, 'put', data) + if to: + if to[0] == '-to': + to = to[1:] + args = args + ('-to',) + tuple(to) + self.tk.call(args) + # XXX read + + def write(self, filename, format=None, from_coords=None): + """Write image to file FILENAME in FORMAT starting from + position FROM_COORDS.""" + args = (self.name, 'write', filename) + if format: + args = args + ('-format', format) + if from_coords: + args = args + ('-from',) + tuple(from_coords) + self.tk.call(args) + + def transparency_get(self, x, y): + """Return True if the pixel at x,y is transparent.""" + return self.tk.getboolean(self.tk.call( + self.name, 'transparency', 'get', x, y)) + + def transparency_set(self, x, y, boolean): + """Set the transparency of the pixel at x,y.""" + self.tk.call(self.name, 'transparency', 'set', x, y, boolean) + + +class BitmapImage(Image): + """Widget which can display images in XBM format.""" + + def __init__(self, name=None, cnf={}, master=None, **kw): + """Create a bitmap with NAME. + + Valid resource names: background, data, file, foreground, maskdata, maskfile.""" + Image.__init__(self, 'bitmap', name, cnf, master, **kw) + + +def image_names(): + tk = _get_default_root('use image_names()').tk + return tk.splitlist(tk.call('image', 'names')) + + +def image_types(): + tk = _get_default_root('use image_types()').tk + return tk.splitlist(tk.call('image', 'types')) + + +class Spinbox(Widget, XView): + """spinbox widget.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a spinbox widget with the parent MASTER. + + STANDARD OPTIONS + + activebackground, background, borderwidth, + cursor, exportselection, font, foreground, + highlightbackground, highlightcolor, + highlightthickness, insertbackground, + insertborderwidth, insertofftime, + insertontime, insertwidth, justify, relief, + repeatdelay, repeatinterval, + selectbackground, selectborderwidth + selectforeground, takefocus, textvariable + xscrollcommand. + + WIDGET-SPECIFIC OPTIONS + + buttonbackground, buttoncursor, + buttondownrelief, buttonuprelief, + command, disabledbackground, + disabledforeground, format, from, + invalidcommand, increment, + readonlybackground, state, to, + validate, validatecommand values, + width, wrap, + """ + Widget.__init__(self, master, 'spinbox', cnf, kw) + + def bbox(self, index): + """Return a tuple of X1,Y1,X2,Y2 coordinates for a + rectangle which encloses the character given by index. + + The first two elements of the list give the x and y + coordinates of the upper-left corner of the screen + area covered by the character (in pixels relative + to the widget) and the last two elements give the + width and height of the character, in pixels. The + bounding box may refer to a region outside the + visible area of the window. + """ + return self._getints(self.tk.call(self._w, 'bbox', index)) or None + + def delete(self, first, last=None): + """Delete one or more elements of the spinbox. + + First is the index of the first character to delete, + and last is the index of the character just after + the last one to delete. If last isn't specified it + defaults to first+1, i.e. a single character is + deleted. This command returns an empty string. + """ + return self.tk.call(self._w, 'delete', first, last) + + def get(self): + """Returns the spinbox's string""" + return self.tk.call(self._w, 'get') + + def icursor(self, index): + """Alter the position of the insertion cursor. + + The insertion cursor will be displayed just before + the character given by index. Returns an empty string + """ + return self.tk.call(self._w, 'icursor', index) + + def identify(self, x, y): + """Returns the name of the widget at position x, y + + Return value is one of: none, buttondown, buttonup, entry + """ + return self.tk.call(self._w, 'identify', x, y) + + def index(self, index): + """Returns the numerical index corresponding to index + """ + return self.tk.call(self._w, 'index', index) + + def insert(self, index, s): + """Insert string s at index + + Returns an empty string. + """ + return self.tk.call(self._w, 'insert', index, s) + + def invoke(self, element): + """Causes the specified element to be invoked + + The element could be buttondown or buttonup + triggering the action associated with it. + """ + return self.tk.call(self._w, 'invoke', element) + + def scan(self, *args): + """Internal function.""" + return self._getints( + self.tk.call((self._w, 'scan') + args)) or () + + def scan_mark(self, x): + """Records x and the current view in the spinbox window; + + used in conjunction with later scan dragto commands. + Typically this command is associated with a mouse button + press in the widget. It returns an empty string. + """ + return self.scan("mark", x) + + def scan_dragto(self, x): + """Compute the difference between the given x argument + and the x argument to the last scan mark command + + It then adjusts the view left or right by 10 times the + difference in x-coordinates. This command is typically + associated with mouse motion events in the widget, to + produce the effect of dragging the spinbox at high speed + through the window. The return value is an empty string. + """ + return self.scan("dragto", x) + + def selection(self, *args): + """Internal function.""" + return self._getints( + self.tk.call((self._w, 'selection') + args)) or () + + def selection_adjust(self, index): + """Locate the end of the selection nearest to the character + given by index, + + Then adjust that end of the selection to be at index + (i.e including but not going beyond index). The other + end of the selection is made the anchor point for future + select to commands. If the selection isn't currently in + the spinbox, then a new selection is created to include + the characters between index and the most recent selection + anchor point, inclusive. + """ + return self.selection("adjust", index) + + def selection_clear(self): + """Clear the selection + + If the selection isn't in this widget then the + command has no effect. + """ + return self.selection("clear") + + def selection_element(self, element=None): + """Sets or gets the currently selected element. + + If a spinbutton element is specified, it will be + displayed depressed. + """ + return self.tk.call(self._w, 'selection', 'element', element) + + def selection_from(self, index): + """Set the fixed end of a selection to INDEX.""" + self.selection('from', index) + + def selection_present(self): + """Return True if there are characters selected in the spinbox, False + otherwise.""" + return self.tk.getboolean( + self.tk.call(self._w, 'selection', 'present')) + + def selection_range(self, start, end): + """Set the selection from START to END (not included).""" + self.selection('range', start, end) + + def selection_to(self, index): + """Set the variable end of a selection to INDEX.""" + self.selection('to', index) + +########################################################################### + + +class LabelFrame(Widget): + """labelframe widget.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a labelframe widget with the parent MASTER. + + STANDARD OPTIONS + + borderwidth, cursor, font, foreground, + highlightbackground, highlightcolor, + highlightthickness, padx, pady, relief, + takefocus, text + + WIDGET-SPECIFIC OPTIONS + + background, class, colormap, container, + height, labelanchor, labelwidget, + visual, width + """ + Widget.__init__(self, master, 'labelframe', cnf, kw) + +######################################################################## + + +class PanedWindow(Widget): + """panedwindow widget.""" + + def __init__(self, master=None, cnf={}, **kw): + """Construct a panedwindow widget with the parent MASTER. + + STANDARD OPTIONS + + background, borderwidth, cursor, height, + orient, relief, width + + WIDGET-SPECIFIC OPTIONS + + handlepad, handlesize, opaqueresize, + sashcursor, sashpad, sashrelief, + sashwidth, showhandle, + """ + Widget.__init__(self, master, 'panedwindow', cnf, kw) + + def add(self, child, **kw): + """Add a child widget to the panedwindow in a new pane. + + The child argument is the name of the child widget + followed by pairs of arguments that specify how to + manage the windows. The possible options and values + are the ones accepted by the paneconfigure method. + """ + self.tk.call((self._w, 'add', child) + self._options(kw)) + + def remove(self, child): + """Remove the pane containing child from the panedwindow + + All geometry management options for child will be forgotten. + """ + self.tk.call(self._w, 'forget', child) + + forget = remove + + def identify(self, x, y): + """Identify the panedwindow component at point x, y + + If the point is over a sash or a sash handle, the result + is a two element list containing the index of the sash or + handle, and a word indicating whether it is over a sash + or a handle, such as {0 sash} or {2 handle}. If the point + is over any other part of the panedwindow, the result is + an empty list. + """ + return self.tk.call(self._w, 'identify', x, y) + + def proxy(self, *args): + """Internal function.""" + return self._getints( + self.tk.call((self._w, 'proxy') + args)) or () + + def proxy_coord(self): + """Return the x and y pair of the most recent proxy location + """ + return self.proxy("coord") + + def proxy_forget(self): + """Remove the proxy from the display. + """ + return self.proxy("forget") + + def proxy_place(self, x, y): + """Place the proxy at the given x and y coordinates. + """ + return self.proxy("place", x, y) + + def sash(self, *args): + """Internal function.""" + return self._getints( + self.tk.call((self._w, 'sash') + args)) or () + + def sash_coord(self, index): + """Return the current x and y pair for the sash given by index. + + Index must be an integer between 0 and 1 less than the + number of panes in the panedwindow. The coordinates given are + those of the top left corner of the region containing the sash. + pathName sash dragto index x y This command computes the + difference between the given coordinates and the coordinates + given to the last sash coord command for the given sash. It then + moves that sash the computed difference. The return value is the + empty string. + """ + return self.sash("coord", index) + + def sash_mark(self, index): + """Records x and y for the sash given by index; + + Used in conjunction with later dragto commands to move the sash. + """ + return self.sash("mark", index) + + def sash_place(self, index, x, y): + """Place the sash given by index at the given coordinates + """ + return self.sash("place", index, x, y) + + def panecget(self, child, option): + """Query a management option for window. + + Option may be any value allowed by the paneconfigure subcommand + """ + return self.tk.call( + (self._w, 'panecget') + (child, '-'+option)) + + def paneconfigure(self, tagOrId, cnf=None, **kw): + """Query or modify the management options for window. + + If no option is specified, returns a list describing all + of the available options for pathName. If option is + specified with no value, then the command returns a list + describing the one named option (this list will be identical + to the corresponding sublist of the value returned if no + option is specified). If one or more option-value pairs are + specified, then the command modifies the given widget + option(s) to have the given value(s); in this case the + command returns an empty string. The following options + are supported: + + after window + Insert the window after the window specified. window + should be the name of a window already managed by pathName. + before window + Insert the window before the window specified. window + should be the name of a window already managed by pathName. + height size + Specify a height for the window. The height will be the + outer dimension of the window including its border, if + any. If size is an empty string, or if -height is not + specified, then the height requested internally by the + window will be used initially; the height may later be + adjusted by the movement of sashes in the panedwindow. + Size may be any value accepted by Tk_GetPixels. + minsize n + Specifies that the size of the window cannot be made + less than n. This constraint only affects the size of + the widget in the paned dimension -- the x dimension + for horizontal panedwindows, the y dimension for + vertical panedwindows. May be any value accepted by + Tk_GetPixels. + padx n + Specifies a non-negative value indicating how much + extra space to leave on each side of the window in + the X-direction. The value may have any of the forms + accepted by Tk_GetPixels. + pady n + Specifies a non-negative value indicating how much + extra space to leave on each side of the window in + the Y-direction. The value may have any of the forms + accepted by Tk_GetPixels. + sticky style + If a window's pane is larger than the requested + dimensions of the window, this option may be used + to position (or stretch) the window within its pane. + Style is a string that contains zero or more of the + characters n, s, e or w. The string can optionally + contains spaces or commas, but they are ignored. Each + letter refers to a side (north, south, east, or west) + that the window will "stick" to. If both n and s + (or e and w) are specified, the window will be + stretched to fill the entire height (or width) of + its cavity. + width size + Specify a width for the window. The width will be + the outer dimension of the window including its + border, if any. If size is an empty string, or + if -width is not specified, then the width requested + internally by the window will be used initially; the + width may later be adjusted by the movement of sashes + in the panedwindow. Size may be any value accepted by + Tk_GetPixels. + + """ + if cnf is None and not kw: + return self._getconfigure(self._w, 'paneconfigure', tagOrId) + if isinstance(cnf, str) and not kw: + return self._getconfigure1( + self._w, 'paneconfigure', tagOrId, '-'+cnf) + self.tk.call((self._w, 'paneconfigure', tagOrId) + + self._options(cnf, kw)) + + paneconfig = paneconfigure + + def panes(self): + """Returns an ordered list of the child panes.""" + return self.tk.splitlist(self.tk.call(self._w, 'panes')) + +# Test: + + +def _test(): + root = Tk() + text = "This is Tcl/Tk version %s" % TclVersion + text += "\nThis should be a cedilla: \xe7" + label = Label(root, text=text) + label.pack() + test = Button(root, text="Click me!", + command=lambda root=root: root.test.configure( + text="[%s]" % root.test['text'])) + test.pack() + root.test = test + quit = Button(root, text="QUIT", command=root.destroy) + quit.pack() + # The following three commands are needed so the window pops + # up on top on Windows... + root.iconify() + root.update() + root.deiconify() + root.mainloop() + + +__all__ = [name for name, obj in globals().items() + if not name.startswith('_') and not isinstance(obj, types.ModuleType) + and name not in {'wantobjects'}] + +if __name__ == '__main__': + _test() diff --git a/shared/package-files/ea/ea20610d35ead2b6f51690aa69b57f7b920ad8ce4dd255191d2aad207923192a/blob b/shared/package-files/ea/ea20610d35ead2b6f51690aa69b57f7b920ad8ce4dd255191d2aad207923192a/blob new file mode 100644 index 0000000000000000000000000000000000000000..d8b780346f6d577a7d023a2f2d5bd55e1387c7ea --- /dev/null +++ b/shared/package-files/ea/ea20610d35ead2b6f51690aa69b57f7b920ad8ce4dd255191d2aad207923192a/blob @@ -0,0 +1,79 @@ +Metadata-Version: 2.1 +Name: torchelastic +Version: 0.2.2 +Summary: PyTorch Elastic Training +Home-page: https://github.com/pytorch/elastic +Author: PyTorch Elastic Devs +Author-email: torchelastic@fb.com +License: BSD-3 +Keywords: pytorch,machine learning,elastic,distributed +Platform: UNKNOWN +Classifier: Development Status :: 4 - Beta +Classifier: Intended Audience :: Developers +Classifier: Intended Audience :: Science/Research +Classifier: License :: OSI Approved :: BSD License +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Topic :: System :: Distributed Computing +Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence +Requires-Python: >=3.8 +Description-Content-Type: text/markdown +Requires-Dist: numpy +Requires-Dist: python-etcd (>=0.4.5) +Requires-Dist: torch (>=1.8.0dev) + +[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE)[![CircleCI](https://circleci.com/gh/pytorch/elastic.svg?style=svg&circle-token=9bea46e94adbe2f3e0fb2d4054b1b655f2e208c2)](https://circleci.com/gh/pytorch/elastic) + +# TorchElastic + +TorchElastic allows you to launch distributed PyTorch jobs in a +fault-tolerant and elastic manner. +For the latest documentation, please refer to our +[website](https://pytorch.org/elastic). + + +## Requirements +torchelastic requires +* python3 (3.8+) +* torch +* etcd + +## Installation +```bash +pip install torchelastic +``` + +## Quickstart + +**Fault-tolerant** on `4` nodes, `8` trainers/node, total `4 * 8 = 32` trainers. +Run the following on all nodes. +```bash +python -m torchelastic.distributed.launch + --nnodes=4 + --nproc_per_node=8 + --rdzv_id=JOB_ID + --rdzv_backend=etcd + --rdzv_endpoint=ETCD_HOST:ETCD_PORT + YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...) +``` + +**Elastic on** `1 ~ 4` nodes, `8` trainers/node, total `8 ~ 32` trainers. Job +starts as soon as `1` node is healthy, you may add up to `4` nodes. +```bash +python -m torchelastic.distributed.launch + --nnodes=1:4 + --nproc_per_node=8 + --rdzv_id=JOB_ID + --rdzv_backend=etcd + --rdzv_endpoint=ETCD_HOST:ETCD_PORT + YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...) + +``` +## Contributing + +We welcome PRs. See the [CONTRIBUTING](CONTRIBUTING.md) file. + +## License +torchelastic is BSD licensed, as found in the [LICENSE](LICENSE) file. + + diff --git a/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/blob b/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/blob new file mode 100644 index 0000000000000000000000000000000000000000..98594f3c45c89fbb3e0055d6a9ca797b0efb965d Binary files /dev/null and b/shared/package-files/ea/ea215b2de0db90217ad9b85c22380c731c00078eaad30027523432bb71496513/blob differ diff --git a/shared/package-files/ea/ea22fe787310686debc674b912072fac2a84966f5a28bd3b0a3af51592525e5b/blob b/shared/package-files/ea/ea22fe787310686debc674b912072fac2a84966f5a28bd3b0a3af51592525e5b/blob new file mode 100644 index 0000000000000000000000000000000000000000..eb28070e38baf80223fe0178ac0a7c0f5732a2c8 --- /dev/null +++ b/shared/package-files/ea/ea22fe787310686debc674b912072fac2a84966f5a28bd3b0a3af51592525e5b/blob @@ -0,0 +1,32 @@ +"""A crude *bit of everything* smoke test to verify PyInstaller compatibility. + +PyInstaller typically goes wrong by forgetting to package modules, extension +modules or shared libraries. This script should aim to touch as many of those +as possible in an attempt to trip a ModuleNotFoundError or a DLL load failure +due to an uncollected resource. Missing resources are unlikely to lead to +arithmetic errors so there's generally no need to verify any calculation's +output - merely that it made it to the end OK. This script should not +explicitly import any of numpy's submodules as that gives PyInstaller undue +hints that those submodules exist and should be collected (accessing implicitly +loaded submodules is OK). + +""" +import numpy as np + +a = np.arange(1., 10.).reshape((3, 3)) % 5 +np.linalg.det(a) +a @ a +a @ a.T +np.linalg.inv(a) +np.sin(np.exp(a)) +np.linalg.svd(a) +np.linalg.eigh(a) + +np.unique(np.random.randint(0, 10, 100)) +np.sort(np.random.uniform(0, 10, 100)) + +np.fft.fft(np.exp(2j * np.pi * np.arange(8) / 8)) +np.ma.masked_array(np.arange(10), np.random.rand(10) < .5).sum() +np.polynomial.Legendre([7, 8, 9]).roots() + +print("I made it!") diff --git a/shared/package-files/ea/ea23aa05c6a26b97fd519717c59683cbda810380687b7e54cb85b142684559c8/blob b/shared/package-files/ea/ea23aa05c6a26b97fd519717c59683cbda810380687b7e54cb85b142684559c8/blob new file mode 100644 index 0000000000000000000000000000000000000000..6fbe306fabe97f7c262376bdb79ee8ad3ad204b3 --- /dev/null +++ b/shared/package-files/ea/ea23aa05c6a26b97fd519717c59683cbda810380687b7e54cb85b142684559c8/blob @@ -0,0 +1,90 @@ +from typing import Dict + +single_input: int +file_input: int +eval_input: int +decorator: int +decorators: int +decorated: int +async_funcdef: int +funcdef: int +parameters: int +typedargslist: int +tfpdef: int +varargslist: int +vfpdef: int +stmt: int +simple_stmt: int +small_stmt: int +expr_stmt: int +annassign: int +testlist_star_expr: int +augassign: int +del_stmt: int +pass_stmt: int +flow_stmt: int +break_stmt: int +continue_stmt: int +return_stmt: int +yield_stmt: int +raise_stmt: int +import_stmt: int +import_name: int +import_from: int +import_as_name: int +dotted_as_name: int +import_as_names: int +dotted_as_names: int +dotted_name: int +global_stmt: int +nonlocal_stmt: int +assert_stmt: int +compound_stmt: int +async_stmt: int +if_stmt: int +while_stmt: int +for_stmt: int +try_stmt: int +with_stmt: int +with_item: int +except_clause: int +suite: int +test: int +test_nocond: int +lambdef: int +lambdef_nocond: int +or_test: int +and_test: int +not_test: int +comparison: int +comp_op: int +star_expr: int +expr: int +xor_expr: int +and_expr: int +shift_expr: int +arith_expr: int +term: int +factor: int +power: int +atom_expr: int +atom: int +testlist_comp: int +trailer: int +subscriptlist: int +subscript: int +sliceop: int +exprlist: int +testlist: int +dictorsetmaker: int +classdef: int +arglist: int +argument: int +comp_iter: int +comp_for: int +comp_if: int +encoding_decl: int +yield_expr: int +yield_arg: int + +sym_name: Dict[int, str] diff --git a/shared/package-files/ea/ea2528c1ed6195a263ce2584840397e913ab207469c76b5a9d1307669d40b501/blob b/shared/package-files/ea/ea2528c1ed6195a263ce2584840397e913ab207469c76b5a9d1307669d40b501/blob new file mode 100644 index 0000000000000000000000000000000000000000..d94b97a8b790a4d7daa36c508a2c2139aecf11c2 --- /dev/null +++ b/shared/package-files/ea/ea2528c1ed6195a263ce2584840397e913ab207469c76b5a9d1307669d40b501/blob @@ -0,0 +1,1318 @@ +# This file is part of Patsy +# Copyright (C) 2011-2015 Nathaniel Smith +# See file LICENSE.txt for license information. + +# This file defines the main class for storing metadata about a model +# design. It also defines a 'value-added' design matrix type -- a subclass of +# ndarray that represents a design matrix and holds metadata about its +# columns. The intent is that these are useful and usable data structures +# even if you're not using *any* of the rest of patsy to actually build +# your matrices. + + +# XX TMP TODO: +# +# - update design_matrix_builders and build_design_matrices docs +# - add tests and docs for new design info stuff +# - consider renaming design_matrix_builders (and I guess +# build_design_matrices too). Ditto for highlevel dbuilder functions. + +# These are made available in the patsy.* namespace +__all__ = ["DesignInfo", "FactorInfo", "SubtermInfo", "DesignMatrix"] + +import warnings + +import numpy as np + +from patsy import PatsyError +from patsy.util import atleast_2d_column_default +from patsy.compat import OrderedDict +from patsy.util import ( + repr_pretty_delegate, + repr_pretty_impl, + safe_issubdtype, + no_pickling, + assert_no_pickling, +) +from patsy.constraint import linear_constraint +from patsy.contrasts import ContrastMatrix +from patsy.desc import ModelDesc, Term + + +class FactorInfo: + """A FactorInfo object is a simple class that provides some metadata about + the role of a factor within a model. :attr:`DesignInfo.factor_infos` is + a dictionary which maps factor objects to FactorInfo objects for each + factor in the model. + + .. versionadded:: 0.4.0 + + Attributes: + + .. attribute:: factor + + The factor object being described. + + .. attribute:: type + + The type of the factor -- either the string ``"numerical"`` or the + string ``"categorical"``. + + .. attribute:: state + + An opaque object which holds the state needed to evaluate this + factor on new data (e.g., for prediction). See + :meth:`factor_protocol.eval`. + + .. attribute:: num_columns + + For numerical factors, the number of columns this factor produces. For + categorical factors, this attribute will always be ``None``. + + .. attribute:: categories + + For categorical factors, a tuple of the possible categories this factor + takes on, in order. For numerical factors, this attribute will always be + ``None``. + """ + + def __init__(self, factor, type, state, num_columns=None, categories=None): + self.factor = factor + self.type = type + if self.type not in ["numerical", "categorical"]: + raise ValueError( + "FactorInfo.type must be " + "'numerical' or 'categorical', not %r" % (self.type,) + ) + self.state = state + if self.type == "numerical": + if not isinstance(num_columns, int): + raise ValueError( + "For numerical factors, num_columns must be an integer" + ) + if categories is not None: + raise ValueError("For numerical factors, categories must be None") + else: + assert self.type == "categorical" + if num_columns is not None: + raise ValueError("For categorical factors, num_columns must be None") + categories = tuple(categories) + self.num_columns = num_columns + self.categories = categories + + __repr__ = repr_pretty_delegate + + def _repr_pretty_(self, p, cycle): + assert not cycle + + class FactorState(object): + def __repr__(self): + return "" + + kwlist = [ + ("factor", self.factor), + ("type", self.type), + # Don't put the state in people's faces, it will + # just encourage them to pay attention to the + # contents :-). Plus it's a bunch of gobbledygook + # they don't care about. They can always look at + # self.state if they want to know... + ("state", FactorState()), + ] + if self.type == "numerical": + kwlist.append(("num_columns", self.num_columns)) + else: + kwlist.append(("categories", self.categories)) + repr_pretty_impl(p, self, [], kwlist) + + __getstate__ = no_pickling + + +def test_FactorInfo(): + fi1 = FactorInfo("asdf", "numerical", {"a": 1}, num_columns=10) + assert fi1.factor == "asdf" + assert fi1.state == {"a": 1} + assert fi1.type == "numerical" + assert fi1.num_columns == 10 + assert fi1.categories is None + + # smoke test + repr(fi1) + + fi2 = FactorInfo("asdf", "categorical", {"a": 2}, categories=["z", "j"]) + assert fi2.factor == "asdf" + assert fi2.state == {"a": 2} + assert fi2.type == "categorical" + assert fi2.num_columns is None + assert fi2.categories == ("z", "j") + + # smoke test + repr(fi2) + + import pytest + + pytest.raises(ValueError, FactorInfo, "asdf", "non-numerical", {}) + pytest.raises(ValueError, FactorInfo, "asdf", "numerical", {}) + + pytest.raises(ValueError, FactorInfo, "asdf", "numerical", {}, num_columns="asdf") + pytest.raises( + ValueError, FactorInfo, "asdf", "numerical", {}, num_columns=1, categories=1 + ) + + pytest.raises(TypeError, FactorInfo, "asdf", "categorical", {}) + pytest.raises(ValueError, FactorInfo, "asdf", "categorical", {}, num_columns=1) + pytest.raises(TypeError, FactorInfo, "asdf", "categorical", {}, categories=1) + + +class SubtermInfo: + """A SubtermInfo object is a simple metadata container describing a single + primitive interaction and how it is coded in our design matrix. Our final + design matrix is produced by coding each primitive interaction in order + from left to right, and then stacking the resulting columns. For each + :class:`Term`, we have one or more of these objects which describe how + that term is encoded. :attr:`DesignInfo.term_codings` is a dictionary + which maps term objects to lists of SubtermInfo objects. + + To code a primitive interaction, the following steps are performed: + + * Evaluate each factor on the provided data. + * Encode each factor into one or more proto-columns. For numerical + factors, these proto-columns are identical to whatever the factor + evaluates to; for categorical factors, they are encoded using a + specified contrast matrix. + * Form all pairwise, elementwise products between proto-columns generated + by different factors. (For example, if factor 1 generated proto-columns + A and B, and factor 2 generated proto-columns C and D, then our final + columns are ``A * C``, ``B * C``, ``A * D``, ``B * D``.) + * The resulting columns are stored directly into the final design matrix. + + Sometimes multiple primitive interactions are needed to encode a single + term; this occurs, for example, in the formula ``"1 + a:b"`` when ``a`` + and ``b`` are categorical. See :ref:`formulas-building` for full details. + + .. versionadded:: 0.4.0 + + Attributes: + + .. attribute:: factors + + The factors which appear in this subterm's interaction. + + .. attribute:: contrast_matrices + + A dict mapping factor objects to :class:`ContrastMatrix` objects, + describing how each categorical factor in this interaction is coded. + + .. attribute:: num_columns + + The number of design matrix columns which this interaction generates. + + """ + + def __init__(self, factors, contrast_matrices, num_columns): + self.factors = tuple(factors) + factor_set = frozenset(factors) + if not isinstance(contrast_matrices, dict): + raise ValueError("contrast_matrices must be dict") + for factor, contrast_matrix in contrast_matrices.items(): + if factor not in factor_set: + raise ValueError("Unexpected factor in contrast_matrices dict") + if not isinstance(contrast_matrix, ContrastMatrix): + raise ValueError( + "Expected a ContrastMatrix, not %r" % (contrast_matrix,) + ) + self.contrast_matrices = contrast_matrices + if not isinstance(num_columns, int): + raise ValueError("num_columns must be an integer") + self.num_columns = num_columns + + __repr__ = repr_pretty_delegate + + def _repr_pretty_(self, p, cycle): + assert not cycle + repr_pretty_impl( + p, + self, + [], + [ + ("factors", self.factors), + ("contrast_matrices", self.contrast_matrices), + ("num_columns", self.num_columns), + ], + ) + + __getstate__ = no_pickling + + +def test_SubtermInfo(): + cm = ContrastMatrix(np.ones((2, 2)), ["[1]", "[2]"]) + s = SubtermInfo(["a", "x"], {"a": cm}, 4) + assert s.factors == ("a", "x") + assert s.contrast_matrices == {"a": cm} + assert s.num_columns == 4 + + # smoke test + repr(s) + + import pytest + + pytest.raises(TypeError, SubtermInfo, 1, {}, 1) + pytest.raises(ValueError, SubtermInfo, ["a", "x"], 1, 1) + pytest.raises(ValueError, SubtermInfo, ["a", "x"], {"z": cm}, 1) + pytest.raises(ValueError, SubtermInfo, ["a", "x"], {"a": 1}, 1) + pytest.raises(ValueError, SubtermInfo, ["a", "x"], {}, 1.5) + + +class DesignInfo(object): + """A DesignInfo object holds metadata about a design matrix. + + This is the main object that Patsy uses to pass metadata about a design + matrix to statistical libraries, in order to allow further downstream + processing like intelligent tests, prediction on new data, etc. Usually + encountered as the `.design_info` attribute on design matrices. + + """ + + def __init__(self, column_names, factor_infos=None, term_codings=None): + self.column_name_indexes = OrderedDict( + zip(column_names, range(len(column_names))) + ) + + if (factor_infos is None) != (term_codings is None): + raise ValueError( + "Must specify either both or neither of factor_infos= and term_codings=" + ) + + self.factor_infos = factor_infos + self.term_codings = term_codings + + # factor_infos is a dict containing one entry for every factor + # mentioned in our terms + # and mapping each to FactorInfo object + if self.factor_infos is not None: + if not isinstance(self.factor_infos, dict): + raise ValueError("factor_infos should be a dict") + + if not isinstance(self.term_codings, OrderedDict): + raise ValueError("term_codings must be an OrderedDict") + for term, subterms in self.term_codings.items(): + if not isinstance(term, Term): + raise ValueError("expected a Term, not %r" % (term,)) + if not isinstance(subterms, list): + raise ValueError("term_codings must contain lists") + term_factors = set(term.factors) + for subterm in subterms: + if not isinstance(subterm, SubtermInfo): + raise ValueError("expected SubtermInfo, not %r" % (subterm,)) + if not term_factors.issuperset(subterm.factors): + raise ValueError("unexpected factors in subterm") + + all_factors = set() + for term in self.term_codings: + all_factors.update(term.factors) + if all_factors != set(self.factor_infos): + raise ValueError("Provided Term objects and factor_infos do not match") + for factor, factor_info in self.factor_infos.items(): + if not isinstance(factor_info, FactorInfo): + raise ValueError( + "expected FactorInfo object, not %r" % (factor_info,) + ) + if factor != factor_info.factor: + raise ValueError("mismatched factor_info.factor") + + for term, subterms in self.term_codings.items(): + for subterm in subterms: + exp_cols = 1 + cat_factors = set() + for factor in subterm.factors: + fi = self.factor_infos[factor] + if fi.type == "numerical": + exp_cols *= fi.num_columns + else: + assert fi.type == "categorical" + cm = subterm.contrast_matrices[factor].matrix + if cm.shape[0] != len(fi.categories): + raise ValueError( + "Mismatched contrast matrix " + "for factor %r" % (factor,) + ) + cat_factors.add(factor) + exp_cols *= cm.shape[1] + if cat_factors != set(subterm.contrast_matrices): + raise ValueError( + "Mismatch between contrast_matrices and categorical factors" + ) + if exp_cols != subterm.num_columns: + raise ValueError("Unexpected num_columns") + + if term_codings is None: + # Need to invent term information + self.term_slices = None + # We invent one term per column, with the same name as the column + term_names = column_names + slices = [slice(i, i + 1) for i in range(len(column_names))] + self.term_name_slices = OrderedDict(zip(term_names, slices)) + else: + # Need to derive term information from term_codings + self.term_slices = OrderedDict() + idx = 0 + for term, subterm_infos in self.term_codings.items(): + term_columns = 0 + for subterm_info in subterm_infos: + term_columns += subterm_info.num_columns + self.term_slices[term] = slice(idx, idx + term_columns) + idx += term_columns + if idx != len(self.column_names): + raise ValueError( + "mismatch between column_names and columns coded by given terms" + ) + self.term_name_slices = OrderedDict( + [(term.name(), slice_) for (term, slice_) in self.term_slices.items()] + ) + + # Guarantees: + # term_name_slices is never None + # The slices in term_name_slices are in order and exactly cover the + # whole range of columns. + # term_slices may be None + # If term_slices is not None, then its slices match the ones in + # term_name_slices. + assert self.term_name_slices is not None + if self.term_slices is not None: + assert list(self.term_slices.values()) == list( + self.term_name_slices.values() + ) + # These checks probably aren't necessary anymore now that we always + # generate the slices ourselves, but we'll leave them in just to be + # safe. + covered = 0 + for slice_ in self.term_name_slices.values(): + start, stop, step = slice_.indices(len(column_names)) + assert start == covered + assert step == 1 + covered = stop + assert covered == len(column_names) + # If there is any name overlap between terms and columns, they refer + # to the same columns. + for column_name, index in self.column_name_indexes.items(): + if column_name in self.term_name_slices: + slice_ = self.term_name_slices[column_name] + if slice_ != slice(index, index + 1): + raise ValueError("term/column name collision") + + __repr__ = repr_pretty_delegate + + def _repr_pretty_(self, p, cycle): + assert not cycle + repr_pretty_impl( + p, + self, + [self.column_names], + [("factor_infos", self.factor_infos), ("term_codings", self.term_codings)], + ) + + @property + def column_names(self): + "A list of the column names, in order." + return list(self.column_name_indexes) + + @property + def terms(self): + "A list of :class:`Terms`, in order, or else None." + if self.term_slices is None: + return None + return list(self.term_slices) + + @property + def term_names(self): + "A list of terms, in order." + return list(self.term_name_slices) + + @property + def builder(self): + ".. deprecated:: 0.4.0" + warnings.warn( + DeprecationWarning( + "The DesignInfo.builder attribute is deprecated starting in " + "patsy v0.4.0; distinct builder objects have been eliminated " + "and design_info.builder is now just a long-winded way of " + "writing 'design_info' (i.e. the .builder attribute just " + "returns self)" + ), + stacklevel=2, + ) + return self + + @property + def design_info(self): + ".. deprecated:: 0.4.0" + warnings.warn( + DeprecationWarning( + "Starting in patsy v0.4.0, the DesignMatrixBuilder class has " + "been merged into the DesignInfo class. So there's no need to " + "use builder.design_info to access the DesignInfo; 'builder' " + "already *is* a DesignInfo." + ), + stacklevel=2, + ) + return self + + def slice(self, columns_specifier): + """Locate a subset of design matrix columns, specified symbolically. + + A patsy design matrix has two levels of structure: the individual + columns (which are named), and the :ref:`terms ` in + the formula that generated those columns. This is a one-to-many + relationship: a single term may span several columns. This method + provides a user-friendly API for locating those columns. + + (While we talk about columns here, this is probably most useful for + indexing into other arrays that are derived from the design matrix, + such as regression coefficients or covariance matrices.) + + The `columns_specifier` argument can take a number of forms: + + * A term name + * A column name + * A :class:`Term` object + * An integer giving a raw index + * A raw slice object + + In all cases, a Python :func:`slice` object is returned, which can be + used directly for indexing. + + Example:: + + y, X = dmatrices("y ~ a", demo_data("y", "a", nlevels=3)) + betas = np.linalg.lstsq(X, y)[0] + a_betas = betas[X.design_info.slice("a")] + + (If you want to look up a single individual column by name, use + ``design_info.column_name_indexes[name]``.) + """ + if isinstance(columns_specifier, slice): + return columns_specifier + if np.issubdtype(type(columns_specifier), np.integer): + return slice(columns_specifier, columns_specifier + 1) + if self.term_slices is not None and columns_specifier in self.term_slices: + return self.term_slices[columns_specifier] + if columns_specifier in self.term_name_slices: + return self.term_name_slices[columns_specifier] + if columns_specifier in self.column_name_indexes: + idx = self.column_name_indexes[columns_specifier] + return slice(idx, idx + 1) + raise PatsyError("unknown column specified '%s'" % (columns_specifier,)) + + def linear_constraint(self, constraint_likes): + """Construct a linear constraint in matrix form from a (possibly + symbolic) description. + + Possible inputs: + + * A dictionary which is taken as a set of equality constraint. Keys + can be either string column names, or integer column indexes. + * A string giving a arithmetic expression referring to the matrix + columns by name. + * A list of such strings which are ANDed together. + * A tuple (A, b) where A and b are array_likes, and the constraint is + Ax = b. If necessary, these will be coerced to the proper + dimensionality by appending dimensions with size 1. + + The string-based language has the standard arithmetic operators, / * + + - and parentheses, plus "=" is used for equality and "," is used to + AND together multiple constraint equations within a string. You can + If no = appears in some expression, then that expression is assumed to + be equal to zero. Division is always float-based, even if + ``__future__.true_division`` isn't in effect. + + Returns a :class:`LinearConstraint` object. + + Examples:: + + di = DesignInfo(["x1", "x2", "x3"]) + + # Equivalent ways to write x1 == 0: + di.linear_constraint({"x1": 0}) # by name + di.linear_constraint({0: 0}) # by index + di.linear_constraint("x1 = 0") # string based + di.linear_constraint("x1") # can leave out "= 0" + di.linear_constraint("2 * x1 = (x1 + 2 * x1) / 3") + di.linear_constraint(([1, 0, 0], 0)) # constraint matrices + + # Equivalent ways to write x1 == 0 and x3 == 10 + di.linear_constraint({"x1": 0, "x3": 10}) + di.linear_constraint({0: 0, 2: 10}) + di.linear_constraint({0: 0, "x3": 10}) + di.linear_constraint("x1 = 0, x3 = 10") + di.linear_constraint("x1, x3 = 10") + di.linear_constraint(["x1", "x3 = 0"]) # list of strings + di.linear_constraint("x1 = 0, x3 - 10 = x1") + di.linear_constraint([[1, 0, 0], [0, 0, 1]], [0, 10]) + + # You can also chain together equalities, just like Python: + di.linear_constraint("x1 = x2 = 3") + """ + return linear_constraint(constraint_likes, self.column_names) + + def describe(self): + """Returns a human-readable string describing this design info. + + Example: + + .. ipython:: + + In [1]: y, X = dmatrices("y ~ x1 + x2", demo_data("y", "x1", "x2")) + + In [2]: y.design_info.describe() + Out[2]: 'y' + + In [3]: X.design_info.describe() + Out[3]: '1 + x1 + x2' + + .. warning:: + + There is no guarantee that the strings returned by this function + can be parsed as formulas, or that if they can be parsed as a + formula that they will produce a model equivalent to the one you + started with. This function produces a best-effort description + intended for humans to read. + + """ + + names = [] + for name in self.term_names: + if name == "Intercept": + names.append("1") + else: + names.append(name) + return " + ".join(names) + + def subset(self, which_terms): + """Create a new :class:`DesignInfo` for design matrices that contain a + subset of the terms that the current :class:`DesignInfo` does. + + For example, if ``design_info`` has terms ``x``, ``y``, and ``z``, + then:: + + design_info2 = design_info.subset(["x", "z"]) + + will return a new DesignInfo that can be used to construct design + matrices with only the columns corresponding to the terms ``x`` and + ``z``. After we do this, then in general these two expressions will + return the same thing (here we assume that ``x``, ``y``, and ``z`` + each generate a single column of the output):: + + build_design_matrix([design_info], data)[0][:, [0, 2]] + build_design_matrix([design_info2], data)[0] + + However, a critical difference is that in the second case, ``data`` + need not contain any values for ``y``. This is very useful when doing + prediction using a subset of a model, in which situation R usually + forces you to specify dummy values for ``y``. + + If using a formula to specify the terms to include, remember that like + any formula, the intercept term will be included by default, so use + ``0`` or ``-1`` in your formula if you want to avoid this. + + This method can also be used to reorder the terms in your design + matrix, in case you want to do that for some reason. I can't think of + any. + + Note that this method will generally *not* produce the same result as + creating a new model directly. Consider these DesignInfo objects:: + + design1 = dmatrix("1 + C(a)", data) + design2 = design1.subset("0 + C(a)") + design3 = dmatrix("0 + C(a)", data) + + Here ``design2`` and ``design3`` will both produce design matrices + that contain an encoding of ``C(a)`` without any intercept term. But + ``design3`` uses a full-rank encoding for the categorical term + ``C(a)``, while ``design2`` uses the same reduced-rank encoding as + ``design1``. + + :arg which_terms: The terms which should be kept in the new + :class:`DesignMatrixBuilder`. If this is a string, then it is parsed + as a formula, and then the names of the resulting terms are taken as + the terms to keep. If it is a list, then it can contain a mixture of + term names (as strings) and :class:`Term` objects. + + .. versionadded: 0.2.0 + New method on the class DesignMatrixBuilder. + + .. versionchanged: 0.4.0 + Moved from DesignMatrixBuilder to DesignInfo, as part of the + removal of DesignMatrixBuilder. + + """ + if isinstance(which_terms, str): + desc = ModelDesc.from_formula(which_terms) + if desc.lhs_termlist: + raise PatsyError("right-hand-side-only formula required") + which_terms = [term.name() for term in desc.rhs_termlist] + + if self.term_codings is None: + # This is a minimal DesignInfo + # If the name is unknown we just let the KeyError escape + new_names = [] + for t in which_terms: + new_names += self.column_names[self.term_name_slices[t]] + return DesignInfo(new_names) + else: + term_name_to_term = {} + for term in self.term_codings: + term_name_to_term[term.name()] = term + + new_column_names = [] + new_factor_infos = {} + new_term_codings = OrderedDict() + for name_or_term in which_terms: + term = term_name_to_term.get(name_or_term, name_or_term) + # If the name is unknown we just let the KeyError escape + s = self.term_slices[term] + new_column_names += self.column_names[s] + for f in term.factors: + new_factor_infos[f] = self.factor_infos[f] + new_term_codings[term] = self.term_codings[term] + return DesignInfo( + new_column_names, + factor_infos=new_factor_infos, + term_codings=new_term_codings, + ) + + @classmethod + def from_array(cls, array_like, default_column_prefix="column"): + """Find or construct a DesignInfo appropriate for a given array_like. + + If the input `array_like` already has a ``.design_info`` + attribute, then it will be returned. Otherwise, a new DesignInfo + object will be constructed, using names either taken from the + `array_like` (e.g., for a pandas DataFrame with named columns), or + constructed using `default_column_prefix`. + + This is how :func:`dmatrix` (for example) creates a DesignInfo object + if an arbitrary matrix is passed in. + + :arg array_like: An ndarray or pandas container. + :arg default_column_prefix: If it's necessary to invent column names, + then this will be used to construct them. + :returns: a DesignInfo object + """ + if hasattr(array_like, "design_info") and isinstance( + array_like.design_info, cls + ): + return array_like.design_info + arr = atleast_2d_column_default(array_like, preserve_pandas=True) + if arr.ndim > 2: + raise ValueError("design matrix can't have >2 dimensions") + columns = getattr(arr, "columns", range(arr.shape[1])) + if hasattr(columns, "dtype") and not safe_issubdtype(columns.dtype, np.integer): + column_names = [str(obj) for obj in columns] + else: + column_names = ["%s%s" % (default_column_prefix, i) for i in columns] + return DesignInfo(column_names) + + __getstate__ = no_pickling + + +def test_DesignInfo(): + import pytest + + class _MockFactor(object): + def __init__(self, name): + self._name = name + + def name(self): + return self._name + + f_x = _MockFactor("x") + f_y = _MockFactor("y") + t_x = Term([f_x]) + t_y = Term([f_y]) + factor_infos = { + f_x: FactorInfo(f_x, "numerical", {}, num_columns=3), + f_y: FactorInfo(f_y, "numerical", {}, num_columns=1), + } + term_codings = OrderedDict( + [(t_x, [SubtermInfo([f_x], {}, 3)]), (t_y, [SubtermInfo([f_y], {}, 1)])] + ) + di = DesignInfo(["x1", "x2", "x3", "y"], factor_infos, term_codings) + assert di.column_names == ["x1", "x2", "x3", "y"] + assert di.term_names == ["x", "y"] + assert di.terms == [t_x, t_y] + assert di.column_name_indexes == {"x1": 0, "x2": 1, "x3": 2, "y": 3} + assert di.term_name_slices == {"x": slice(0, 3), "y": slice(3, 4)} + assert di.term_slices == {t_x: slice(0, 3), t_y: slice(3, 4)} + assert di.describe() == "x + y" + + assert di.slice(1) == slice(1, 2) + assert di.slice("x1") == slice(0, 1) + assert di.slice("x2") == slice(1, 2) + assert di.slice("x3") == slice(2, 3) + assert di.slice("x") == slice(0, 3) + assert di.slice(t_x) == slice(0, 3) + assert di.slice("y") == slice(3, 4) + assert di.slice(t_y) == slice(3, 4) + assert di.slice(slice(2, 4)) == slice(2, 4) + pytest.raises(PatsyError, di.slice, "asdf") + + # smoke test + repr(di) + + assert_no_pickling(di) + + # One without term objects + di = DesignInfo(["a1", "a2", "a3", "b"]) + assert di.column_names == ["a1", "a2", "a3", "b"] + assert di.term_names == ["a1", "a2", "a3", "b"] + assert di.terms is None + assert di.column_name_indexes == {"a1": 0, "a2": 1, "a3": 2, "b": 3} + assert di.term_name_slices == { + "a1": slice(0, 1), + "a2": slice(1, 2), + "a3": slice(2, 3), + "b": slice(3, 4), + } + assert di.term_slices is None + assert di.describe() == "a1 + a2 + a3 + b" + + assert di.slice(1) == slice(1, 2) + assert di.slice("a1") == slice(0, 1) + assert di.slice("a2") == slice(1, 2) + assert di.slice("a3") == slice(2, 3) + assert di.slice("b") == slice(3, 4) + + # Check intercept handling in describe() + assert DesignInfo(["Intercept", "a", "b"]).describe() == "1 + a + b" + + # Failure modes + # must specify either both or neither of factor_infos and term_codings: + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "x3", "y"], factor_infos=factor_infos + ) + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "x3", "y"], term_codings=term_codings + ) + # factor_infos must be a dict + pytest.raises( + ValueError, + DesignInfo, + ["x1", "x2", "x3", "y"], + list(factor_infos), + term_codings, + ) + # wrong number of column names: + pytest.raises( + ValueError, + DesignInfo, + ["x1", "x2", "x3", "y1", "y2"], + factor_infos, + term_codings, + ) + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "x3"], factor_infos, term_codings + ) + # name overlap problems + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "y", "y2"], factor_infos, term_codings + ) + # duplicate name + pytest.raises( + ValueError, DesignInfo, ["x1", "x1", "x1", "y"], factor_infos, term_codings + ) + + # f_y is in factor_infos, but not mentioned in any term + term_codings_x_only = OrderedDict(term_codings) + del term_codings_x_only[t_y] + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "x3"], factor_infos, term_codings_x_only + ) + + # f_a is in a term, but not in factor_infos + f_a = _MockFactor("a") + t_a = Term([f_a]) + term_codings_with_a = OrderedDict(term_codings) + term_codings_with_a[t_a] = [SubtermInfo([f_a], {}, 1)] + pytest.raises( + ValueError, + DesignInfo, + ["x1", "x2", "x3", "y", "a"], + factor_infos, + term_codings_with_a, + ) + + # bad factor_infos + not_factor_infos = dict(factor_infos) + not_factor_infos[f_x] = "what is this I don't even" + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "x3", "y"], not_factor_infos, term_codings + ) + + mismatch_factor_infos = dict(factor_infos) + mismatch_factor_infos[f_x] = FactorInfo(f_a, "numerical", {}, num_columns=3) + pytest.raises( + ValueError, + DesignInfo, + ["x1", "x2", "x3", "y"], + mismatch_factor_infos, + term_codings, + ) + + # bad term_codings + pytest.raises( + ValueError, + DesignInfo, + ["x1", "x2", "x3", "y"], + factor_infos, + dict(term_codings), + ) + + not_term_codings = OrderedDict(term_codings) + not_term_codings["this is a string"] = term_codings[t_x] + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "x3", "y"], factor_infos, not_term_codings + ) + + non_list_term_codings = OrderedDict(term_codings) + non_list_term_codings[t_y] = tuple(term_codings[t_y]) + pytest.raises( + ValueError, + DesignInfo, + ["x1", "x2", "x3", "y"], + factor_infos, + non_list_term_codings, + ) + + non_subterm_term_codings = OrderedDict(term_codings) + non_subterm_term_codings[t_y][0] = "not a SubtermInfo" + pytest.raises( + ValueError, + DesignInfo, + ["x1", "x2", "x3", "y"], + factor_infos, + non_subterm_term_codings, + ) + + bad_subterm = OrderedDict(term_codings) + # f_x is a factor in this model, but it is not a factor in t_y + term_codings[t_y][0] = SubtermInfo([f_x], {}, 1) + pytest.raises( + ValueError, DesignInfo, ["x1", "x2", "x3", "y"], factor_infos, bad_subterm + ) + + # contrast matrix has wrong number of rows + factor_codings_a = { + f_a: FactorInfo(f_a, "categorical", {}, categories=["a1", "a2"]) + } + term_codings_a_bad_rows = OrderedDict( + [ + ( + t_a, + [ + SubtermInfo( + [f_a], {f_a: ContrastMatrix(np.ones((3, 2)), ["[1]", "[2]"])}, 2 + ) + ], + ) + ] + ) + pytest.raises( + ValueError, + DesignInfo, + ["a[1]", "a[2]"], + factor_codings_a, + term_codings_a_bad_rows, + ) + + # have a contrast matrix for a non-categorical factor + t_ax = Term([f_a, f_x]) + factor_codings_ax = { + f_a: FactorInfo(f_a, "categorical", {}, categories=["a1", "a2"]), + f_x: FactorInfo(f_x, "numerical", {}, num_columns=2), + } + term_codings_ax_extra_cm = OrderedDict( + [ + ( + t_ax, + [ + SubtermInfo( + [f_a, f_x], + { + f_a: ContrastMatrix(np.ones((2, 2)), ["[1]", "[2]"]), + f_x: ContrastMatrix(np.ones((2, 2)), ["[1]", "[2]"]), + }, + 4, + ) + ], + ) + ] + ) + pytest.raises( + ValueError, + DesignInfo, + ["a[1]:x[1]", "a[2]:x[1]", "a[1]:x[2]", "a[2]:x[2]"], + factor_codings_ax, + term_codings_ax_extra_cm, + ) + + # no contrast matrix for a categorical factor + term_codings_ax_missing_cm = OrderedDict([(t_ax, [SubtermInfo([f_a, f_x], {}, 4)])]) + # This actually fails before it hits the relevant check with a KeyError, + # but that's okay... the previous test still exercises the check. + pytest.raises( + (ValueError, KeyError), + DesignInfo, + ["a[1]:x[1]", "a[2]:x[1]", "a[1]:x[2]", "a[2]:x[2]"], + factor_codings_ax, + term_codings_ax_missing_cm, + ) + + # subterm num_columns doesn't match the value computed from the individual + # factors + term_codings_ax_wrong_subterm_columns = OrderedDict( + [ + ( + t_ax, + [ + SubtermInfo( + [f_a, f_x], + {f_a: ContrastMatrix(np.ones((2, 3)), ["[1]", "[2]", "[3]"])}, + # should be 2 * 3 = 6 + 5, + ) + ], + ) + ] + ) + pytest.raises( + ValueError, + DesignInfo, + ["a[1]:x[1]", "a[2]:x[1]", "a[3]:x[1]", "a[1]:x[2]", "a[2]:x[2]", "a[3]:x[2]"], + factor_codings_ax, + term_codings_ax_wrong_subterm_columns, + ) + + +def test_DesignInfo_from_array(): + di = DesignInfo.from_array([1, 2, 3]) + assert di.column_names == ["column0"] + di2 = DesignInfo.from_array([[1, 2], [2, 3], [3, 4]]) + assert di2.column_names == ["column0", "column1"] + di3 = DesignInfo.from_array([1, 2, 3], default_column_prefix="x") + assert di3.column_names == ["x0"] + di4 = DesignInfo.from_array([[1, 2], [2, 3], [3, 4]], default_column_prefix="x") + assert di4.column_names == ["x0", "x1"] + m = DesignMatrix([1, 2, 3], di3) + assert DesignInfo.from_array(m) is di3 + # But weird objects are ignored + m.design_info = "asdf" + di_weird = DesignInfo.from_array(m) + assert di_weird.column_names == ["column0"] + + import pytest + + pytest.raises(ValueError, DesignInfo.from_array, np.ones((2, 2, 2))) + + from patsy.util import have_pandas + + if have_pandas: + import pandas + + # with named columns + di5 = DesignInfo.from_array(pandas.DataFrame([[1, 2]], columns=["a", "b"])) + assert di5.column_names == ["a", "b"] + # with irregularly numbered columns + di6 = DesignInfo.from_array(pandas.DataFrame([[1, 2]], columns=[0, 10])) + assert di6.column_names == ["column0", "column10"] + # with .design_info attr + df = pandas.DataFrame([[1, 2]]) + df.design_info = di6 + assert DesignInfo.from_array(df) is di6 + + +def test_DesignInfo_linear_constraint(): + di = DesignInfo(["a1", "a2", "a3", "b"]) + con = di.linear_constraint(["2 * a1 = b + 1", "a3"]) + assert con.variable_names == ["a1", "a2", "a3", "b"] + assert np.all(con.coefs == [[2, 0, 0, -1], [0, 0, 1, 0]]) + assert np.all(con.constants == [[1], [0]]) + + +def test_DesignInfo_deprecated_attributes(): + d = DesignInfo(["a1", "a2"]) + + def check(attr): + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter("always") + assert getattr(d, attr) is d + assert len(w) == 1 + assert w[0].category is DeprecationWarning + + check("builder") + check("design_info") + + +# Idea: format with a reasonable amount of precision, then if that turns out +# to be higher than necessary, remove as many zeros as we can. But only do +# this while we can do it to *all* the ordinarily-formatted numbers, to keep +# decimal points aligned. +def _format_float_column(precision, col): + format_str = "%." + str(precision) + "f" + assert col.ndim == 1 + # We don't want to look at numbers like "1e-5" or "nan" when stripping. + simple_float_chars = set("+-0123456789.") + col_strs = np.array([format_str % (x,) for x in col], dtype=object) + # Really every item should have a decimal, but just in case, we don't want + # to strip zeros off the end of "10" or something like that. + mask = np.array( + [ + simple_float_chars.issuperset(col_str) and "." in col_str + for col_str in col_strs + ] + ) + mask_idxes = np.nonzero(mask)[0] + strip_char = "0" + if np.any(mask): + while True: + if np.all([s.endswith(strip_char) for s in col_strs[mask]]): + for idx in mask_idxes: + col_strs[idx] = col_strs[idx][:-1] + else: + if strip_char == "0": + strip_char = "." + else: + break + return col_strs + + +def test__format_float_column(): + def t(precision, numbers, expected): + got = _format_float_column(precision, np.asarray(numbers)) + print(got, expected) + assert np.array_equal(got, expected) + + # This acts weird on old python versions (e.g. it can be "-nan"), so don't + # hardcode it: + nan_string = "%.3f" % (np.nan,) + t(3, [1, 2.1234, 2.1239, np.nan], ["1.000", "2.123", "2.124", nan_string]) + t(3, [1, 2, 3, np.nan], ["1", "2", "3", nan_string]) + t(3, [1.0001, 2, 3, np.nan], ["1", "2", "3", nan_string]) + t(4, [1.0001, 2, 3, np.nan], ["1.0001", "2.0000", "3.0000", nan_string]) + + +# http://docs.scipy.org/doc/numpy/user/basics.subclassing.html#slightly-more-realistic-example-attribute-added-to-existing-array +class DesignMatrix(np.ndarray): + """A simple numpy array subclass that carries design matrix metadata. + + .. attribute:: design_info + + A :class:`DesignInfo` object containing metadata about this design + matrix. + + This class also defines a fancy __repr__ method with labeled + columns. Otherwise it is identical to a regular numpy ndarray. + + .. warning:: + + You should never check for this class using + :func:`isinstance`. Limitations of the numpy API mean that it is + impossible to prevent the creation of numpy arrays that have type + DesignMatrix, but that are not actually design matrices (and such + objects will behave like regular ndarrays in every way). Instead, check + for the presence of a ``.design_info`` attribute -- this will be + present only on "real" DesignMatrix objects. + """ + + def __new__(cls, input_array, design_info=None, default_column_prefix="column"): + """Create a DesignMatrix, or cast an existing matrix to a DesignMatrix. + + A call like:: + + DesignMatrix(my_array) + + will convert an arbitrary array_like object into a DesignMatrix. + + The return from this function is guaranteed to be a two-dimensional + ndarray with a real-valued floating point dtype, and a + ``.design_info`` attribute which matches its shape. If the + `design_info` argument is not given, then one is created via + :meth:`DesignInfo.from_array` using the given + `default_column_prefix`. + + Depending on the input array, it is possible this will pass through + its input unchanged, or create a view. + """ + # Pass through existing DesignMatrixes. The design_info check is + # necessary because numpy is sort of annoying and cannot be stopped + # from turning non-design-matrix arrays into DesignMatrix + # instances. (E.g., my_dm.diagonal() will return a DesignMatrix + # object, but one without a design_info attribute.) + if isinstance(input_array, DesignMatrix) and hasattr( + input_array, "design_info" + ): + return input_array + self = atleast_2d_column_default(input_array).view(cls) + # Upcast integer to floating point + if safe_issubdtype(self.dtype, np.integer): + self = np.asarray(self, dtype=float).view(cls) + if self.ndim > 2: + raise ValueError("DesignMatrix must be 2d") + assert self.ndim == 2 + if design_info is None: + design_info = DesignInfo.from_array(self, default_column_prefix) + if len(design_info.column_names) != self.shape[1]: + raise ValueError( + "wrong number of column names for design matrix " + "(got %s, wanted %s)" % (len(design_info.column_names), self.shape[1]) + ) + self.design_info = design_info + if not safe_issubdtype(self.dtype, np.floating): + raise ValueError("design matrix must be real-valued floating point") + return self + + __repr__ = repr_pretty_delegate + + def _repr_pretty_(self, p, cycle): + if not hasattr(self, "design_info"): + # Not a real DesignMatrix + p.pretty(np.asarray(self)) + return + assert not cycle + + # XX: could try calculating width of the current terminal window: + # http://stackoverflow.com/questions/566746/how-to-get-console-window-width-in-python + # sadly it looks like ipython does not actually pass this information + # in, even if we use _repr_pretty_ -- the pretty-printer object has a + # fixed width it always uses. (As of IPython 0.12.) + MAX_TOTAL_WIDTH = 78 + SEP = 2 + INDENT = 2 + MAX_ROWS = 30 + PRECISION = 5 + + names = self.design_info.column_names + column_name_widths = [len(name) for name in names] + min_total_width = ( + INDENT + SEP * (self.shape[1] - 1) + np.sum(column_name_widths) + ) + if min_total_width <= MAX_TOTAL_WIDTH: + printable_part = np.asarray(self)[:MAX_ROWS, :] + formatted_cols = [ + _format_float_column(PRECISION, printable_part[:, i]) + for i in range(self.shape[1]) + ] + + def max_width(col): + assert col.ndim == 1 + if not col.shape[0]: + return 0 + else: + return max([len(s) for s in col]) + + column_num_widths = [max_width(col) for col in formatted_cols] + column_widths = [ + max(name_width, num_width) + for (name_width, num_width) in zip( + column_name_widths, column_num_widths + ) + ] + total_width = INDENT + SEP * (self.shape[1] - 1) + np.sum(column_widths) + print_numbers = total_width < MAX_TOTAL_WIDTH + else: + print_numbers = False + + p.begin_group(INDENT, "DesignMatrix with shape %s" % (self.shape,)) + p.breakable("\n" + " " * p.indentation) + if print_numbers: + # We can fit the numbers on the screen + sep = " " * SEP + # list() is for Py3 compatibility + for row in [names] + list(zip(*formatted_cols)): + cells = [cell.rjust(width) for (width, cell) in zip(column_widths, row)] + p.text(sep.join(cells)) + p.text("\n" + " " * p.indentation) + if MAX_ROWS < self.shape[0]: + p.text("[%s rows omitted]" % (self.shape[0] - MAX_ROWS,)) + p.text("\n" + " " * p.indentation) + else: + p.begin_group(2, "Columns:") + p.breakable("\n" + " " * p.indentation) + p.pretty(names) + p.end_group(2, "") + p.breakable("\n" + " " * p.indentation) + + p.begin_group(2, "Terms:") + p.breakable("\n" + " " * p.indentation) + for term_name, span in self.design_info.term_name_slices.items(): + if span.start != 0: + p.breakable(", ") + p.pretty(term_name) + if span.stop - span.start == 1: + coltext = "column %s" % (span.start,) + else: + coltext = "columns %s:%s" % (span.start, span.stop) + p.text(" (%s)" % (coltext,)) + p.end_group(2, "") + + if not print_numbers or self.shape[0] > MAX_ROWS: + # some data was not shown + p.breakable("\n" + " " * p.indentation) + p.text("(to view full data, use np.asarray(this_obj))") + + p.end_group(INDENT, "") + + # No __array_finalize__ method, because we don't want slices of this + # object to keep the design_info (they may have different columns!), or + # anything fancy like that. + + __reduce__ = no_pickling + + +def test_design_matrix(): + import pytest + + di = DesignInfo(["a1", "a2", "a3", "b"]) + mm = DesignMatrix([[12, 14, 16, 18]], di) + assert mm.design_info.column_names == ["a1", "a2", "a3", "b"] + + bad_di = DesignInfo(["a1"]) + pytest.raises(ValueError, DesignMatrix, [[12, 14, 16, 18]], bad_di) + + mm2 = DesignMatrix([[12, 14, 16, 18]]) + assert mm2.design_info.column_names == ["column0", "column1", "column2", "column3"] + + mm3 = DesignMatrix([12, 14, 16, 18]) + assert mm3.shape == (4, 1) + + # DesignMatrix always has exactly 2 dimensions + pytest.raises(ValueError, DesignMatrix, [[[1]]]) + + # DesignMatrix constructor passes through existing DesignMatrixes + mm4 = DesignMatrix(mm) + assert mm4 is mm + # But not if they are really slices: + mm5 = DesignMatrix(mm.diagonal()) + assert mm5 is not mm + + mm6 = DesignMatrix([[12, 14, 16, 18]], default_column_prefix="x") + assert mm6.design_info.column_names == ["x0", "x1", "x2", "x3"] + + assert_no_pickling(mm6) + + # Only real-valued matrices can be DesignMatrixs + pytest.raises(ValueError, DesignMatrix, [1, 2, 3j]) + pytest.raises(ValueError, DesignMatrix, ["a", "b", "c"]) + pytest.raises(ValueError, DesignMatrix, [1, 2, object()]) + + # Just smoke tests + repr(mm) + repr(DesignMatrix(np.arange(100))) + repr(DesignMatrix(np.arange(100) * 2.0)) + repr(mm[1:, :]) + repr(DesignMatrix(np.arange(100).reshape((1, 100)))) + repr(DesignMatrix([np.nan, np.inf])) + repr(DesignMatrix([np.nan, 0, 1e20, 20.5])) + # handling of zero-size matrices + repr(DesignMatrix(np.zeros((1, 0)))) + repr(DesignMatrix(np.zeros((0, 1)))) + repr(DesignMatrix(np.zeros((0, 0)))) diff --git a/shared/package-files/ea/ea286b287ac71dff35abf9e11331bfab40b8b1a969196d56f4dc8875501cee29/blob b/shared/package-files/ea/ea286b287ac71dff35abf9e11331bfab40b8b1a969196d56f4dc8875501cee29/blob new file mode 100644 index 0000000000000000000000000000000000000000..f338095b878c1d118d1b7fb8b363ad366922f3cf --- /dev/null +++ b/shared/package-files/ea/ea286b287ac71dff35abf9e11331bfab40b8b1a969196d56f4dc8875501cee29/blob @@ -0,0 +1,30 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::_cast_Short(Tensor self, bool non_blocking=False) -> Tensor +inline at::Tensor _cast_Short(const at::Tensor & self, bool non_blocking=false) { + return at::_ops::_cast_Short::call(self, non_blocking); +} + +} diff --git a/shared/package-files/ea/ea2a47c1b794dc4eb54a4e194c0bdf1ae5bb82bd7bafacc366520d3437f6ff89/blob b/shared/package-files/ea/ea2a47c1b794dc4eb54a4e194c0bdf1ae5bb82bd7bafacc366520d3437f6ff89/blob new file mode 100644 index 0000000000000000000000000000000000000000..5f34153f2b4c7bb58186684dffd636a54c37fb07 --- /dev/null +++ b/shared/package-files/ea/ea2a47c1b794dc4eb54a4e194c0bdf1ae5bb82bd7bafacc366520d3437f6ff89/blob @@ -0,0 +1,78 @@ +# Stubs for six.moves +# +# Note: Commented out items means they weren't implemented at the time. +# Uncomment them when the modules have been added to the typeshed. +import __builtin__ +import itertools +import os +import pipes +from __builtin__ import intern as intern, reduce as reduce, xrange as xrange +from cStringIO import StringIO as _cStringIO +from StringIO import StringIO as StringIO +from UserDict import UserDict as UserDict +from UserList import UserList as UserList +from UserString import UserString as UserString + +# import Tkinter as tkinter +# import Dialog as tkinter_dialog +# import FileDialog as tkinter_filedialog +# import ScrolledText as tkinter_scrolledtext +# import SimpleDialog as tkinter_simpledialog +# import Tix as tkinter_tix +# import ttk as tkinter_ttk +# import Tkconstants as tkinter_constants +# import Tkdnd as tkinter_dnd +# import tkColorChooser as tkinter_colorchooser +# import tkCommonDialog as tkinter_commondialog +# import tkFileDialog as tkinter_tkfiledialog +# import tkFont as tkinter_font +# import tkMessageBox as tkinter_messagebox +# import tkSimpleDialog as tkinter_tksimpledialog +# import email.MIMEBase as email_mime_base +# import email.MIMEMultipart as email_mime_multipart +# import email.MIMENonMultipart as email_mime_nonmultipart +# import copy_reg as copyreg +# import gdbm as dbm_gnu +from . import ( + BaseHTTPServer, + CGIHTTPServer, + SimpleHTTPServer, + _dummy_thread, + _thread, + configparser, + cPickle, + email_mime_text, + html_entities, + html_parser, + http_client, + http_cookiejar, + http_cookies, + queue, + reprlib, + socketserver, + urllib, + urllib_error, + urllib_parse, + urllib_robotparser, + xmlrpc_client, +) + +# import SimpleXMLRPCServer as xmlrpc_server + +builtins = __builtin__ +input = __builtin__.raw_input +reload_module = __builtin__.reload +range = __builtin__.xrange + +cStringIO = _cStringIO + +filter = itertools.ifilter +filterfalse = itertools.ifilterfalse +map = itertools.imap +zip = itertools.izip +zip_longest = itertools.izip_longest + +getcwdb = os.getcwd +getcwd = os.getcwdu + +shlex_quote = pipes.quote diff --git a/shared/package-files/ea/ea2a64af593ea793ef7bbcbe3d3b421f4b19a9e155d7d030df74a441d74c266d/blob b/shared/package-files/ea/ea2a64af593ea793ef7bbcbe3d3b421f4b19a9e155d7d030df74a441d74c266d/blob new file mode 100644 index 0000000000000000000000000000000000000000..50fe3c0e0e6c5944450f70fadb228efea031e3d3 --- /dev/null +++ b/shared/package-files/ea/ea2a64af593ea793ef7bbcbe3d3b421f4b19a9e155d7d030df74a441d74c266d/blob @@ -0,0 +1,15 @@ +from typing import Dict, List, Optional, Tuple + +class NetrcParseError(Exception): + filename: Optional[str] + lineno: Optional[int] + msg: str + +# (login, account, password) tuple +_NetrcTuple = Tuple[str, Optional[str], Optional[str]] + +class netrc: + hosts: Dict[str, _NetrcTuple] + macros: Dict[str, List[str]] + def __init__(self, file: str = ...) -> None: ... + def authenticators(self, host: str) -> Optional[_NetrcTuple]: ... diff --git a/shared/package-files/ea/ea2da3547d9f3eb895d5aa1c4d8fdd505bd62b5f2a6bece3a6721203e3a9177c/blob b/shared/package-files/ea/ea2da3547d9f3eb895d5aa1c4d8fdd505bd62b5f2a6bece3a6721203e3a9177c/blob new file mode 100644 index 0000000000000000000000000000000000000000..936a753a2796896667aa782277be41b40af061d3 --- /dev/null +++ b/shared/package-files/ea/ea2da3547d9f3eb895d5aa1c4d8fdd505bd62b5f2a6bece3a6721203e3a9177c/blob @@ -0,0 +1,5 @@ +# See: +# https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e +from numpy.f2py.f2py2e import main + +main() diff --git a/shared/package-files/ea/ea2fa97599dc56188244bfc284acab4cb3619f5e1a0dbb18c36e37f8f7c09c94/blob b/shared/package-files/ea/ea2fa97599dc56188244bfc284acab4cb3619f5e1a0dbb18c36e37f8f7c09c94/blob new file mode 100644 index 0000000000000000000000000000000000000000..26a872a90e4934c929d168228125f2e43936c774 --- /dev/null +++ b/shared/package-files/ea/ea2fa97599dc56188244bfc284acab4cb3619f5e1a0dbb18c36e37f8f7c09c94/blob @@ -0,0 +1,27 @@ +__all__ = [ + "NaT", + "NaTType", + "OutOfBoundsDatetime", + "Period", + "Timedelta", + "Timestamp", + "iNaT", + "Interval", +] + + +# Below imports needs to happen first to ensure pandas top level +# module gets monkeypatched with the pandas_datetime_CAPI +# see pandas_datetime_exec in pd_datetime.c +import pandas._libs.pandas_parser # isort: skip # type: ignore[reportUnusedImport] +import pandas._libs.pandas_datetime # noqa: F401 # isort: skip # type: ignore[reportUnusedImport] +from pandas._libs.interval import Interval +from pandas._libs.tslibs import ( + NaT, + NaTType, + OutOfBoundsDatetime, + Period, + Timedelta, + Timestamp, + iNaT, +) diff --git a/shared/package-files/ea/ea30721bc5a63ae1e71fc26df559b15df25f59556a099ebc783e930062b75a9d/blob b/shared/package-files/ea/ea30721bc5a63ae1e71fc26df559b15df25f59556a099ebc783e930062b75a9d/blob new file mode 100644 index 0000000000000000000000000000000000000000..d89ba00489a28a93d4528b4bfedcc2b1f480c929 --- /dev/null +++ b/shared/package-files/ea/ea30721bc5a63ae1e71fc26df559b15df25f59556a099ebc783e930062b75a9d/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor avg_pool3d_backward(const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, bool ceil_mode, bool count_include_pad, c10::optional divisor_override); +TORCH_API at::Tensor & avg_pool3d_backward_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, bool ceil_mode, bool count_include_pad, c10::optional divisor_override); +TORCH_API at::Tensor & avg_pool3d_backward_outf(const at::Tensor & grad_output, const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, bool ceil_mode, bool count_include_pad, c10::optional divisor_override, at::Tensor & grad_input); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/ea/ea30c7ad18890cc3511ec626aa44ab3a35a6658d55150f22a8c7a9b62fd948e7/blob b/shared/package-files/ea/ea30c7ad18890cc3511ec626aa44ab3a35a6658d55150f22a8c7a9b62fd948e7/blob new file mode 100644 index 0000000000000000000000000000000000000000..4b7d837ae8b47afbc25d137fd90d7e7adbb2f930 --- /dev/null +++ b/shared/package-files/ea/ea30c7ad18890cc3511ec626aa44ab3a35a6658d55150f22a8c7a9b62fd948e7/blob @@ -0,0 +1,276 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace c10 { + +// A storage represents the underlying backing data buffer for a +// tensor. This concept was inherited from the original Torch7 +// codebase; we'd kind of like to get rid of the concept +// (see https://github.com/pytorch/pytorch/issues/14797) but +// it's hard work and no one has gotten around to doing it. +// +// NB: storage is supposed to uniquely own a data pointer; e.g., +// two non-null data pointers alias if and only if they are from +// the same storage. Technically you can violate this invariant +// (e.g., you can create a non-owning StorageImpl with at::from_blob) +// but a lot of things won't work correctly, including: +// +// - An ordinary deleter on such a storage is wrong, because normal deleters +// assume unique ownership, but if you have two storages at the same data, +// that implies there is some sort of shared ownership. So your deleter would +// have to actually be internally doing some sort of refcount thing +// - Deepcopy in Python side relies on storage equality and not data pointer +// equality; so if there are two separate storages pointing to the same data, +// the data will actually get duplicated in that case (one data ptr before, +// two data ptrs after) +// - Version counts won't work correctly, because we do all VC tracking at the +// level of storages (unless you explicitly disconnect the VC with detach); +// mutation because data pointers are the same are totally untracked +struct C10_API StorageImpl : public c10::intrusive_ptr_target { + public: + struct use_byte_size_t {}; + + StorageImpl( + use_byte_size_t /*use_byte_size*/, + SymInt size_bytes, + at::DataPtr data_ptr, + at::Allocator* allocator, + bool resizable) + : data_ptr_(std::move(data_ptr)), + size_bytes_(std::move(size_bytes)), + size_bytes_is_heap_allocated_(size_bytes_.is_heap_allocated()), + resizable_(resizable), + received_cuda_(false), + allocator_(allocator) { + if (resizable) { + TORCH_INTERNAL_ASSERT( + allocator_, "For resizable storage, allocator must be provided"); + } + } + + StorageImpl( + use_byte_size_t /*use_byte_size*/, + const SymInt& size_bytes, + at::Allocator* allocator, + bool resizable) + : StorageImpl( + use_byte_size_t(), + size_bytes, + size_bytes.is_heap_allocated() + ? allocator->allocate(0) + : allocator->allocate(size_bytes.as_int_unchecked()), + allocator, + resizable) {} + + StorageImpl& operator=(StorageImpl&& other) = delete; + StorageImpl& operator=(const StorageImpl&) = delete; + StorageImpl() = delete; + StorageImpl(StorageImpl&& other) = delete; + StorageImpl(const StorageImpl&) = delete; + ~StorageImpl() override = default; + + void reset() { + data_ptr_.clear(); + size_bytes_ = 0; + size_bytes_is_heap_allocated_ = false; + } + + // Destructor doesn't call release_resources because it's + // unnecessary; don't forget to change that if needed! + void release_resources() override { + data_ptr_.clear(); + } + + size_t nbytes() const { + // OK to do this instead of maybe_as_int as nbytes is guaranteed positive + TORCH_CHECK(!size_bytes_is_heap_allocated_); + return size_bytes_.as_int_unchecked(); + } + + SymInt sym_nbytes() const { + return size_bytes_; + } + + // TODO: remove later + void set_nbytes(size_t size_bytes) { + size_bytes_ = static_cast(size_bytes); + size_bytes_is_heap_allocated_ = false; + } + + void set_nbytes(c10::SymInt size_bytes) { + size_bytes_ = std::move(size_bytes); + } + + bool resizable() const { + return resizable_; + } + + at::DataPtr& mutable_data_ptr() { + maybe_materialize_cow(); + return data_ptr_; + } + + const at::DataPtr& data_ptr() const { + return data_ptr_; + } + + // Returns the previous data_ptr + at::DataPtr set_data_ptr(at::DataPtr&& data_ptr) { + // We need to materialize the old COW DataPtr because it is + // being returned as mutable. + maybe_materialize_cow(); + return set_data_ptr_no_materialize_cow(std::move(data_ptr)); + } + + void set_data_ptr_noswap(at::DataPtr&& data_ptr) { + data_ptr_ = std::move(data_ptr); + } + + const void* data() const { + return data_ptr_.get(); + } + + void* mutable_data() { + maybe_materialize_cow(); + return data_ptr_.mutable_get(); + } + + at::DeviceType device_type() const { + return data_ptr_.device().type(); + } + + at::Allocator* allocator() { + return allocator_; + } + + const at::Allocator* allocator() const { + return allocator_; + } + + // You generally shouldn't use this method, but it is occasionally + // useful if you want to override how a tensor will be reallocated, + // after it was already allocated (and its initial allocator was + // set) + void set_allocator(at::Allocator* allocator) { + allocator_ = allocator; + } + + Device device() const { + return data_ptr_.device(); + } + + void set_resizable(bool resizable) { + if (resizable) { + // We need an allocator to be resizable + AT_ASSERT(allocator_); + } + resizable_ = resizable; + } + + /** + * Can only be called when use_count is 1 + */ + void UniqueStorageShareExternalPointer( + void* src, + size_t size_bytes, + DeleterFnPtr d = nullptr) { + UniqueStorageShareExternalPointer( + at::DataPtr(src, src, d, data_ptr_.device()), size_bytes); + } + + /** + * Can only be called when use_count is 1 + */ + void UniqueStorageShareExternalPointer( + at::DataPtr&& data_ptr, + size_t size_bytes) { + data_ptr_ = std::move(data_ptr); + size_bytes_ = static_cast(size_bytes); + size_bytes_is_heap_allocated_ = false; + allocator_ = nullptr; + resizable_ = false; + } + + // This method can be used only after storage construction and cannot be used + // to modify storage status + void set_received_cuda(bool received_cuda) { + received_cuda_ = received_cuda; + } + + bool received_cuda() { + return received_cuda_; + } + + impl::PyObjectSlot* pyobj_slot() { + return &pyobj_slot_; + } + + const impl::PyObjectSlot* pyobj_slot() const { + return &pyobj_slot_; + } + + protected: + // materialize_cow_storage needs to call set_data_ptr_no_materlize_cow + friend void c10::impl::cow::materialize_cow_storage(StorageImpl& storage); + + // Returns the previous data_ptr. If the old data_ptr was COW, + // this avoids materializing it + at::DataPtr set_data_ptr_no_materialize_cow(at::DataPtr&& data_ptr) { + at::DataPtr old_data_ptr(std::move(data_ptr_)); + data_ptr_ = std::move(data_ptr); + return old_data_ptr; + } + + private: + // Triggers a copy if this is a copy-on-write tensor. + void maybe_materialize_cow() { + if (data_ptr_.get_deleter() == impl::cow::cow_deleter) { + impl::cow::materialize_cow_storage(*this); + } + } + + DataPtr data_ptr_; + SymInt size_bytes_; + bool size_bytes_is_heap_allocated_; + bool resizable_; + // Identifies that Storage was received from another process and doesn't have + // local to process cuda memory allocation + bool received_cuda_; + Allocator* allocator_; + impl::PyObjectSlot pyobj_slot_; +}; + +// Declare StorageImpl create function pointer types. +using StorageImplCreateHelper = intrusive_ptr (*)( + StorageImpl::use_byte_size_t, + SymInt size_bytes, + DataPtr data_ptr, + Allocator* allocator, + bool resizable); + +C10_API void SetStorageImplCreate(DeviceType t, StorageImplCreateHelper fptr); + +C10_API StorageImplCreateHelper GetStorageImplCreate(DeviceType t); + +C10_API c10::intrusive_ptr make_storage_impl( + c10::StorageImpl::use_byte_size_t use_byte_size, + c10::SymInt size_bytes, + c10::DataPtr data_ptr, + c10::Allocator* allocator, + bool resizable, + c10::optional device_opt); + +} // namespace c10 diff --git a/shared/package-files/ea/ea34918e89715b70a6ea60973d17d863568dccf354d496c5bee729a3565d43e3/blob b/shared/package-files/ea/ea34918e89715b70a6ea60973d17d863568dccf354d496c5bee729a3565d43e3/blob new file mode 100644 index 0000000000000000000000000000000000000000..48a9af25535f09ea89744c4c2957a0bb843c995c --- /dev/null +++ b/shared/package-files/ea/ea34918e89715b70a6ea60973d17d863568dccf354d496c5bee729a3565d43e3/blob @@ -0,0 +1,605 @@ +import argparse +import os +import pathlib +import re +from collections import Counter, namedtuple +from typing import ( + Any, + Callable, + Dict, + Iterable, + Iterator, + List, + Optional, + Sequence, + Tuple, + Type, + Union, +) + +import yaml + +import torchgen.dest as dest + +from torchgen.api.lazy import setValueT +from torchgen.api.types import BaseCppType +from torchgen.dest.lazy_ir import GenLazyIR, GenLazyNativeFuncDefinition, GenTSLazyIR +from torchgen.gen import get_grouped_native_functions, parse_native_yaml + +from torchgen.model import NativeFunction, NativeFunctionsGroup, OperatorName +from torchgen.selective_build.selector import SelectiveBuilder +from torchgen.utils import concatMap, FileManager, NamespaceHelper +from torchgen.yaml_utils import YamlLoader +from .gen_backend_stubs import ( + error_on_missing_kernels, + gen_dispatcher_registrations, + gen_dispatchkey_nativefunc_headers, + parse_backend_yaml, +) + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # +# +# Lazy Tensor Codegen +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # +# Overview +# ~~~~~~~~ +# +# This codegen script builds on existing data models and helpers used +# by all ATen backends, and adds new functionality specific to lazy +# tensor backends. +# +# Inputs: +# - _native_functions.yaml: controls which operators are +# supported by the backend. +# +# Outputs: +# (for all backends) +# Ir.h defines Lazy IR classes to be constructed during tracing +# - opt-in: also generate 'lowering' methods for the TorchScript backend only +# NativeFunctions.cpp defines implementations of native functions which perform lazy tracing +# - opt-in: 'full_codegen' section of backend yaml; 'supported' section omits these implementations +# NativeFunctions.h declares implementations of native functions for both 'supported' and 'full_codegen' +# ops +# +# Register.cpp registers all op implementations with the dispatcher +# RegisterAutograd.cpp registers all autograd implementations with the dispatcher +# +# Validation Helpers: +# - Shape Inference: errs if any ops in backend yaml require shape inference not provided by meta kernels or +# implementations in torch/csrc/lazy/core/shape_inference.* +# - native function impls: errs if any 'supported' ops do not have an implementation defined in the backend +# (non-codegen) implementation file +# +# +# About the Data Model +# ~~~~~~~~~~~~~~~~~~~~ +# +# Modeled after ATen codegen, the first step is to parse yaml and build a data model for the operators +# we care about. In this case, the _native_functions yaml defines a subset of the core operators +# (defined in more detail in the main native_functions.yaml), which will be supported by your backend. +# Backends can list ops in two categories: +# - `supported` ops require hand-implementations but still get codegenned declarations and registrations +# - `full_codegen` ops get implementations (and IR classes) generated too +# +# Each native function is modeled as an object with a schema, and each schema has objects representing their +# arguments. Much of the codegen is manipulation of the arguments and their types. For example, lazy tensor +# backends need to transform 'at::Tensor' arguments into 'lazy::Value' objects, as well as replacing reference +# types (stringref) with actual string objects, and this is done by manipulating the data model objects. +# - see api/lazy.py for the lazy data model +# +# Once the data model is set up, the rest of this script processes a number of templates for output CPP file +# and fills in the template values using helpers in `dest/lazy_ir.py` and `dest/lazy_ts_lowering.py`. These +# helpers mostly iterate over functions and their arguments, outputting different c++ snippets. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # + + +# Parses the external backend's yaml, and adds a new BackendIndex for the backend's dispatch key. +# Returns a Tuple of (backend_key, autograd_key, cpp_namespace, updated BackendIndex mapping, full_codegen) +ParsedExternalYaml = namedtuple( + "ParsedExternalYaml", + ["backend_key", "autograd_key", "cpp_namespace", "backend_indices", "full_codegen"], +) + + +def parse_native_functions_keys( + backend_yaml_path: str, + grouped_native_functions: Sequence[Union[NativeFunction, NativeFunctionsGroup]], +) -> Tuple[List[OperatorName], List[Any], List[OperatorName]]: + native_functions_map: Dict[OperatorName, NativeFunction] = { + f.func.name: f + for f in concatMap( + lambda f: [f] if isinstance(f, NativeFunction) else list(f.functions()), + grouped_native_functions, + ) + } + + with open(backend_yaml_path) as f: + yaml_values = yaml.load(f, Loader=YamlLoader) + assert isinstance(yaml_values, dict) + + full_codegen = yaml_values.pop("full_codegen", []) + non_native = yaml_values.pop("non_native", []) + ir_gen = yaml_values.pop("ir_gen", []) + assert isinstance(full_codegen, list) + assert isinstance(non_native, list) + assert isinstance(ir_gen, list) + full_codegen_opnames = [OperatorName.parse(name) for name in full_codegen] + ir_gen_opnames = [OperatorName.parse(name) for name in ir_gen] + return full_codegen_opnames, non_native, ir_gen_opnames + + +def validate_shape_inference_header( + shape_inference_hdr: str, expected_shape_infr_decls: List[str] +) -> None: + try: + with open(shape_inference_hdr) as f: + shape_infr_decls = f.read() + shape_infr_decl_lines = set(shape_infr_decls.split("\n")) + except OSError as e: + raise AssertionError( + f"Unable to read from the specified shape_inference_hdr file: {shape_inference_hdr}" + ) from e + + shape_infr_regex = r"compute_shape_(\w+)" + actual_shape_infr_name_counts = Counter( + re.findall(shape_infr_regex, shape_infr_decls) + ) + # TODO(whc) add a check for shape inference functions that have meta kernels implement and should be retired. + + missing_decls = [ + decl for decl in expected_shape_infr_decls if decl not in shape_infr_decl_lines + ] + if missing_decls: + raise Exception( + f"""Missing shape inference function.\n +Please add declare this function in {shape_inference_hdr}:\n +and implement it in the corresponding shape_inference.cpp file.\n +{os.linesep.join(missing_decls)}""" + ) + + +# Some helper functions for the codegen. +def get_ltc_helper_fns() -> str: + return """\ +at::Tensor to_meta(const at::Tensor& tensor) { + // undefined tensors can't be converted to the meta device, since they don't have sizes/strides + if (!tensor.defined()) return tensor; + auto out = at::native::empty_strided_meta_symint(tensor.sym_sizes(), tensor.sym_strides(), \ +/*dtype=*/c10::make_optional(tensor.scalar_type()), /*layout=*/c10::make_optional(tensor.layout()), \ +/*device=*/c10::make_optional(c10::Device(c10::kMeta)), /*pin_memory=*/c10::nullopt); + // needs to handle wrapped numbers, so dtype promotion works properly. + if (tensor.unsafeGetTensorImpl()->is_wrapped_number()) { + out.unsafeGetTensorImpl()->set_wrapped_number(true); + } + return out; +} +c10::optional to_meta(const c10::optional& tensor) { + if (tensor.has_value()) { + return to_meta(*tensor); + } + return c10::nullopt; +} + +std::vector to_meta(at::ITensorListRef t_list) { + std::vector outs; + outs.reserve(t_list.size()); + for (const auto& tensor : t_list) { + outs.push_back(to_meta(tensor)); + } + return outs; +} +""" + + +class default_args: + node_base: str = "Node" + node_base_hdr: Optional[str] = None + shape_inference_hdr: str = "torch/csrc/lazy/core/shape_inference.h" + tensor_class: str = "torch::lazy::LazyTensor" + tensor_class_hdr: str = "torch/csrc/lazy/core/tensor.h" + lazy_ir_generator: Type[GenLazyIR] = GenLazyIR + native_func_definition_generator: Type[ + GenLazyNativeFuncDefinition + ] = GenLazyNativeFuncDefinition + backend_name: str = "TorchScript" + + +def main() -> None: + parser = argparse.ArgumentParser(description="Generate Lazy Tensor backend files") + parser.add_argument( + "-s", + "--source-yaml", + "--source_yaml", + help="path to source yaml file containing operator external definitions", + ) + parser.add_argument("-o", "--output-dir", "--output_dir", help="output directory") + parser.add_argument( + "--dry-run", "--dry_run", type=bool, default=False, help="output directory" + ) + parser.add_argument( + "--impl-path", + "--impl_path", + type=str, + default=None, + help="path to the source C++ file containing kernel definitions", + ) + parser.add_argument( + "--gen-ts-lowerings", + "--gen_ts_lowerings", + action="store_true", + help="Generate TorchScript lowerings in addition to Lazy IR and NativeFunctions", + ) + parser.add_argument( + "--node-base", + "--node_base", + type=str, + default=default_args.node_base, + help="Name of backend specific custom Lazy IR Node base class", + ) + parser.add_argument( + "--node-base-hdr", + "--node_base_hdr", + type=str, + default=default_args.node_base_hdr, + help="Path to header file defining custom Lazy IR Node base class", + ) + parser.add_argument( + "--shape-inference-hdr", + "--shape_inference_hdr", + type=str, + default=default_args.shape_inference_hdr, + help="Path to header file defining custom Lazy shape inference functions", + ) + parser.add_argument( + "--tensor-class", + "--tensor_class", + type=str, + default=default_args.tensor_class, + help="Name of backend specific custom Lazy Tensor class", + ) + parser.add_argument( + "--tensor-class-hdr", + "--tensor_class_hdr", + type=str, + default=default_args.tensor_class_hdr, + help="Path to header file defining custom Lazy Tensor class", + ) + parser.add_argument( + "--backend-name", + "--backend_name", + type=str, + default=default_args.backend_name, + help="Name of the backend to generate", + ) + options = parser.parse_args() + + # Assumes that this file lives at PYTORCH_ROOT/torchgen/gen_backend_stubs.py + torch_root = pathlib.Path(__file__).parent.parent.parent.absolute() + aten_path = str(torch_root / "aten" / "src" / "ATen") + lazy_ir_generator: Type[GenLazyIR] = default_args.lazy_ir_generator + if options.gen_ts_lowerings: + lazy_ir_generator = GenTSLazyIR + native_func_definition_generator: Type[ + GenLazyNativeFuncDefinition + ] = default_args.native_func_definition_generator + + run_gen_lazy_tensor( + aten_path, + options.source_yaml, + options.output_dir, + options.dry_run, + options.impl_path, + options.node_base, + options.node_base_hdr, + options.tensor_class, + options.tensor_class_hdr, + options.shape_inference_hdr, + lazy_ir_generator, + native_func_definition_generator, + options.backend_name, + ) + + +def run_gen_lazy_tensor( + aten_path: str, + source_yaml: str, + output_dir: str, + dry_run: bool, + impl_path: Optional[str], + node_base: str = default_args.node_base, + node_base_hdr: Optional[str] = default_args.node_base_hdr, + tensor_class: str = default_args.tensor_class, + tensor_class_hdr: str = default_args.tensor_class_hdr, + shape_inference_hdr: str = default_args.shape_inference_hdr, + lazy_ir_generator: Type[GenLazyIR] = default_args.lazy_ir_generator, + native_func_definition_generator: Type[ + GenLazyNativeFuncDefinition + ] = default_args.native_func_definition_generator, + # build_in_tree is true for TS backend and affects include paths + build_in_tree: bool = False, + # per_operator_headers changes whether ATen/Functions.h or individual operator headers are used + # it must match how ATen was built + per_operator_headers: bool = False, + backend_name: str = default_args.backend_name, + gen_forced_fallback_code: bool = False, + use_lazy_shape: bool = True, + # the following arguments are temporary customization points for xla backend migration. + # do not rely on them otherwise, they should be removed once migration is complete + backend_namespace: str = "torch::lazy", + get_tensorlist: str = "GetTensorList", + get_tensor_or_wrap_number: str = "GetLtcTensorOrCreateForWrappedNumber", + try_get_tensor: str = "TryGetLtcTensor", + metrics_counter: str = 'TORCH_LAZY_FN_COUNTER("lazy::")', + create_tensor: str = "LazyTensor::Create", + create_from_first_tensor: bool = False, + create_aten_from_ltc_tensor: str = "torch::lazy::CreateAtenFromLtcTensor", + tuple_aten_from_ltc_tensors: str = "torch::lazy::TupleAtenFromLtcTensors", + lazy_value_class: str = "torch::lazy::Value", + lazy_tensor_ptr: str = "LazyTensorPtr", + get_device_fn: str = "torch::lazy::GetBackendDevice", +) -> None: + lv_tokens = lazy_value_class.split("::") + lv_class = lv_tokens[-1] + lv_ns = "::".join(lv_tokens[:-1]) + setValueT(BaseCppType(lv_ns, lv_class)) + template_dir = os.path.join(aten_path, "templates") + + def make_file_manager(install_dir: str) -> FileManager: + return FileManager( + install_dir=install_dir, template_dir=template_dir, dry_run=dry_run + ) + + fm = make_file_manager(output_dir) + + native_yaml_path = os.path.join(aten_path, "native/native_functions.yaml") + tags_yaml_path = os.path.join(aten_path, "native/tags.yaml") + parsed_yaml = parse_native_yaml(native_yaml_path, tags_yaml_path) + native_functions, backend_indices = ( + parsed_yaml.native_functions, + parsed_yaml.backend_indices, + ) + grouped_native_functions = get_grouped_native_functions(native_functions) + + def sort_native_function(f: Union[NativeFunctionsGroup, NativeFunction]) -> str: + """ + We sort the native function because of the note in concat_map_codegen. + TODO(alanwaketan): Remove this sorting hack once all ops are grouped properly. + """ + func = f.functional.func if isinstance(f, NativeFunctionsGroup) else f.func + return str(func.name.name) + + grouped_native_functions = sorted( + grouped_native_functions, key=sort_native_function + ) + + parsed_backend_yaml = parse_backend_yaml( + source_yaml, grouped_native_functions, backend_indices + ) + backend_key = parsed_backend_yaml.backend_key + autograd_key = parsed_backend_yaml.autograd_key + cpp_namespace = parsed_backend_yaml.cpp_namespace + backend_indices = parsed_backend_yaml.backend_indices + # the following 3 keys are all processed differently + # for full_codegen, we generate IR, kernels, etc + # for ir_gen, we generate only IR + # non_native is used to register kernels not declared in + # native_functions.yaml + full_codegen, non_native, ir_gen = parse_native_functions_keys( + source_yaml, grouped_native_functions + ) + + def concat_map_codegen( + func: Callable[[NativeFunction], Sequence[str]], + xs: Iterable[Union[NativeFunctionsGroup, NativeFunction]], + ops_list: List[OperatorName] = full_codegen, + ) -> Iterator[str]: + """ + We code-gen for the functional variant, which is all we need for IR classes/lowerings/shape inferences, but we + only code-gen additional entries for the inplace variant for the native functions. + """ + + for x in xs: + fs = list(x.functions()) if isinstance(x, NativeFunctionsGroup) else [x] + for f in fs: + if f.func.name in ops_list: + yield from func(f) + + selector = SelectiveBuilder.get_nop_selector() + + assert backend_key is not None + class_name = backend_indices[backend_key].native_function_class_name() + + if impl_path is not None: + error_on_missing_kernels( + native_functions, + backend_indices, + backend_key, + autograd_key, + class_name, + impl_path, + full_codegen, + ) + + """ Validate Shape Inference Definitions + + Generated lazy native functions all perform shape inference, by first using a meta:: kernel + if available for that op, and otherwise using a 'compute_shape_{op}' function instead. The generator + knows the call signature for compute_shape_{op} because it matches the nativefunction (and meta::) signature, + so it just has to check whether the op is structured and generate a call for one or the other. It's up to the dev + to supply the missing compute_shape_{op} function, but the codegen at least warns you about this and provides + the expected signature which can be copy-pasted into shape_inference.h. + + compute_shape_{op} functions are handwritten and should be replaced over time as ops get ported + to structured kernels. + + See torch/csrc/lazy/core/shape_inference.cpp #READ THIS! for more information. + """ + if shape_inference_hdr is not None: + expected_shape_infr_decls = list( + concat_map_codegen( + dest.GenLazyShapeInferenceDefinition( + backend_indices[backend_key], tensor_class + ), + grouped_native_functions, + ) + ) + + validate_shape_inference_header(shape_inference_hdr, expected_shape_infr_decls) + assert class_name is not None + + # Generate nativefunction declarations + # Note, eager registrations is set to False for the lazy TS backend as another LTC backend + # may want to register their own lazy kernels instead of registering the TS ones. + # The registration will lazily happen when init_ts_backend is called. + gen_dispatchkey_nativefunc_headers( + fm, + class_name, + cpp_namespace, + backend_indices, + grouped_native_functions, + backend_key, + autograd_key, + backend_name, + ) + + # Generate Dispatcher registrations which hook up the nativefunctions + for dispatch_key in ( + [backend_key] if autograd_key is None else [backend_key, autograd_key] + ): + gen_dispatcher_registrations( + fm, + output_dir, + class_name, + backend_indices, + grouped_native_functions, + backend_key, + dispatch_key, + selector, + build_in_tree=build_in_tree, + per_operator_headers=per_operator_headers, + backend_name=backend_name, + eager_registration=False, + ) + + # Generate native function impls that build IR nodes + ns_helper = NamespaceHelper(cpp_namespace) + fm.write_with_template( + f"{backend_key}NativeFunctions.cpp", + "DispatchKeyNativeFunctions.cpp", + lambda: { + "includes": [ + f"#include <{path}>" + for path in [ + tensor_class_hdr, + shape_inference_hdr, + "ATen/Functions.h", + "ATen/native/TensorConversions.h", + "ATen/NativeFunctions.h", + "ATen/CompositeExplicitAutogradNonFunctionalFunctions.h", + "ATen/MetaFunctions.h", + "ATen/Operators.h", + "ATen/native/CPUFallback.h", + "torch/csrc/lazy/core/ir_builder.h", + "torch/csrc/lazy/core/lazy_graph_executor.h", + "torch/csrc/lazy/core/metrics.h", + "torch/csrc/lazy/core/shape.h", + f"{output_dir}/{backend_key}NativeFunctions.h", + f"{output_dir}/LazyIr.h", + ] + + ( + ["torch/csrc/lazy/ts_backend/ts_eager_fallback.h"] + if gen_forced_fallback_code + else [] + ) + ], + "helper_fns": get_ltc_helper_fns(), + "native_functions_include": "", + "namespace_prologue": ns_helper.prologue, + "namespace_epilogue": ns_helper.epilogue, + "native_function_definitions": list( + concat_map_codegen( + native_func_definition_generator( + f"{backend_key}NativeFunctions", + backend_indices[backend_key], + tensor_class, + gen_forced_fallback_code, + backend_namespace, + get_tensorlist, + get_tensor_or_wrap_number, + try_get_tensor, + metrics_counter, + create_tensor, + create_from_first_tensor, + create_aten_from_ltc_tensor, + tuple_aten_from_ltc_tensors, + lazy_tensor_ptr, + get_device_fn, + ), + grouped_native_functions, + ) + ), + }, + ) + # Generate IR node classes + lazy_ir_obj = lazy_ir_generator( + backend_indices[backend_key], backend_name, node_base, use_lazy_shape + ) + + fm.write_with_template( + "LazyIr.h", + "LazyIr.h", + lambda: { + "lazy_ir_sysinc": [ + f"#include <{path}>" + for path in [ + "ATen/core/Formatting.h", + "c10/core/ScalarType.h", + "c10/util/Optional.h", + "torch/csrc/lazy/core/hash.h", + "torch/csrc/lazy/core/ir.h", + "torch/csrc/lazy/core/shape.h", + "vector", + ] + ], + "lazy_ir_inc": [f'#include "{node_base_hdr}"'] + if node_base_hdr is not None + else [], + "ir_declarations": list( + concat_map_codegen( + lazy_ir_obj, grouped_native_functions, full_codegen + ir_gen + ) + ), + "namespace_prologue": ns_helper.prologue, + "namespace_epilogue": ns_helper.epilogue, + }, + ) + + # Generate Non Native IR Node classes + fm.write_with_template( + "LazyNonNativeIr.h", + "LazyNonNativeIr.h", + lambda: { + "lazy_non_native_ir_inc": [ + f"#include <{path}>" + for path in [ + "torch/csrc/lazy/core/ir.h", + "torch/csrc/lazy/core/ir_builder.h", + "torch/csrc/lazy/core/internal_ops/ltc_ops.h", + "torch/csrc/lazy/core/shape_inference.h", + ] + + ([node_base_hdr] if node_base_hdr else []) + if path + ], + "non_native_ir_nodes": dest.generate_non_native_lazy_ir_nodes( + non_native, lazy_ir_obj + ), + "namespace_prologue": ns_helper.prologue, + "namespace_epilogue": ns_helper.epilogue, + }, + ) + + +if __name__ == "__main__": + main() diff --git a/shared/package-files/ea/ea39572ed5af144022e46767c959d01d1bcb3a596b62dcfd9db6adc77cedd924/blob b/shared/package-files/ea/ea39572ed5af144022e46767c959d01d1bcb3a596b62dcfd9db6adc77cedd924/blob new file mode 100644 index 0000000000000000000000000000000000000000..8ce053e881a3095c87885a8fc682f25ab3cb14ab --- /dev/null +++ b/shared/package-files/ea/ea39572ed5af144022e46767c959d01d1bcb3a596b62dcfd9db6adc77cedd924/blob @@ -0,0 +1,677 @@ +r"""TELNET client class. + +Based on RFC 854: TELNET Protocol Specification, by J. Postel and +J. Reynolds + +Example: + +>>> from telnetlib import Telnet +>>> tn = Telnet('www.python.org', 79) # connect to finger port +>>> tn.write(b'guido\r\n') +>>> print(tn.read_all()) +Login Name TTY Idle When Where +guido Guido van Rossum pts/2 snag.cnri.reston.. + +>>> + +Note that read_all() won't read until eof -- it just reads some data +-- but it guarantees to read at least one byte unless EOF is hit. + +It is possible to pass a Telnet object to a selector in order to wait until +more data is available. Note that in this case, read_eager() may return b'' +even if there was data on the socket, because the protocol negotiation may have +eaten the data. This is why EOFError is needed in some cases to distinguish +between "no data" and "connection closed" (since the socket also appears ready +for reading when it is closed). + +To do: +- option negotiation +- timeout should be intrinsic to the connection object instead of an + option on one of the read calls only + +""" + + +# Imported modules +import sys +import socket +import selectors +from time import monotonic as _time + +__all__ = ["Telnet"] + +# Tunable parameters +DEBUGLEVEL = 0 + +# Telnet protocol defaults +TELNET_PORT = 23 + +# Telnet protocol characters (don't change) +IAC = bytes([255]) # "Interpret As Command" +DONT = bytes([254]) +DO = bytes([253]) +WONT = bytes([252]) +WILL = bytes([251]) +theNULL = bytes([0]) + +SE = bytes([240]) # Subnegotiation End +NOP = bytes([241]) # No Operation +DM = bytes([242]) # Data Mark +BRK = bytes([243]) # Break +IP = bytes([244]) # Interrupt process +AO = bytes([245]) # Abort output +AYT = bytes([246]) # Are You There +EC = bytes([247]) # Erase Character +EL = bytes([248]) # Erase Line +GA = bytes([249]) # Go Ahead +SB = bytes([250]) # Subnegotiation Begin + + +# Telnet protocol options code (don't change) +# These ones all come from arpa/telnet.h +BINARY = bytes([0]) # 8-bit data path +ECHO = bytes([1]) # echo +RCP = bytes([2]) # prepare to reconnect +SGA = bytes([3]) # suppress go ahead +NAMS = bytes([4]) # approximate message size +STATUS = bytes([5]) # give status +TM = bytes([6]) # timing mark +RCTE = bytes([7]) # remote controlled transmission and echo +NAOL = bytes([8]) # negotiate about output line width +NAOP = bytes([9]) # negotiate about output page size +NAOCRD = bytes([10]) # negotiate about CR disposition +NAOHTS = bytes([11]) # negotiate about horizontal tabstops +NAOHTD = bytes([12]) # negotiate about horizontal tab disposition +NAOFFD = bytes([13]) # negotiate about formfeed disposition +NAOVTS = bytes([14]) # negotiate about vertical tab stops +NAOVTD = bytes([15]) # negotiate about vertical tab disposition +NAOLFD = bytes([16]) # negotiate about output LF disposition +XASCII = bytes([17]) # extended ascii character set +LOGOUT = bytes([18]) # force logout +BM = bytes([19]) # byte macro +DET = bytes([20]) # data entry terminal +SUPDUP = bytes([21]) # supdup protocol +SUPDUPOUTPUT = bytes([22]) # supdup output +SNDLOC = bytes([23]) # send location +TTYPE = bytes([24]) # terminal type +EOR = bytes([25]) # end or record +TUID = bytes([26]) # TACACS user identification +OUTMRK = bytes([27]) # output marking +TTYLOC = bytes([28]) # terminal location number +VT3270REGIME = bytes([29]) # 3270 regime +X3PAD = bytes([30]) # X.3 PAD +NAWS = bytes([31]) # window size +TSPEED = bytes([32]) # terminal speed +LFLOW = bytes([33]) # remote flow control +LINEMODE = bytes([34]) # Linemode option +XDISPLOC = bytes([35]) # X Display Location +OLD_ENVIRON = bytes([36]) # Old - Environment variables +AUTHENTICATION = bytes([37]) # Authenticate +ENCRYPT = bytes([38]) # Encryption option +NEW_ENVIRON = bytes([39]) # New - Environment variables +# the following ones come from +# http://www.iana.org/assignments/telnet-options +# Unfortunately, that document does not assign identifiers +# to all of them, so we are making them up +TN3270E = bytes([40]) # TN3270E +XAUTH = bytes([41]) # XAUTH +CHARSET = bytes([42]) # CHARSET +RSP = bytes([43]) # Telnet Remote Serial Port +COM_PORT_OPTION = bytes([44]) # Com Port Control Option +SUPPRESS_LOCAL_ECHO = bytes([45]) # Telnet Suppress Local Echo +TLS = bytes([46]) # Telnet Start TLS +KERMIT = bytes([47]) # KERMIT +SEND_URL = bytes([48]) # SEND-URL +FORWARD_X = bytes([49]) # FORWARD_X +PRAGMA_LOGON = bytes([138]) # TELOPT PRAGMA LOGON +SSPI_LOGON = bytes([139]) # TELOPT SSPI LOGON +PRAGMA_HEARTBEAT = bytes([140]) # TELOPT PRAGMA HEARTBEAT +EXOPL = bytes([255]) # Extended-Options-List +NOOPT = bytes([0]) + + +# poll/select have the advantage of not requiring any extra file descriptor, +# contrarily to epoll/kqueue (also, they require a single syscall). +if hasattr(selectors, 'PollSelector'): + _TelnetSelector = selectors.PollSelector +else: + _TelnetSelector = selectors.SelectSelector + + +class Telnet: + + """Telnet interface class. + + An instance of this class represents a connection to a telnet + server. The instance is initially not connected; the open() + method must be used to establish a connection. Alternatively, the + host name and optional port number can be passed to the + constructor, too. + + Don't try to reopen an already connected instance. + + This class has many read_*() methods. Note that some of them + raise EOFError when the end of the connection is read, because + they can return an empty string for other reasons. See the + individual doc strings. + + read_until(expected, [timeout]) + Read until the expected string has been seen, or a timeout is + hit (default is no timeout); may block. + + read_all() + Read all data until EOF; may block. + + read_some() + Read at least one byte or EOF; may block. + + read_very_eager() + Read all data available already queued or on the socket, + without blocking. + + read_eager() + Read either data already queued or some data available on the + socket, without blocking. + + read_lazy() + Read all data in the raw queue (processing it first), without + doing any socket I/O. + + read_very_lazy() + Reads all data in the cooked queue, without doing any socket + I/O. + + read_sb_data() + Reads available data between SB ... SE sequence. Don't block. + + set_option_negotiation_callback(callback) + Each time a telnet option is read on the input flow, this callback + (if set) is called with the following parameters : + callback(telnet socket, command, option) + option will be chr(0) when there is no option. + No other action is done afterwards by telnetlib. + + """ + + def __init__(self, host=None, port=0, + timeout=socket._GLOBAL_DEFAULT_TIMEOUT): + """Constructor. + + When called without arguments, create an unconnected instance. + With a hostname argument, it connects the instance; port number + and timeout are optional. + """ + self.debuglevel = DEBUGLEVEL + self.host = host + self.port = port + self.timeout = timeout + self.sock = None + self.rawq = b'' + self.irawq = 0 + self.cookedq = b'' + self.eof = 0 + self.iacseq = b'' # Buffer for IAC sequence. + self.sb = 0 # flag for SB and SE sequence. + self.sbdataq = b'' + self.option_callback = None + if host is not None: + self.open(host, port, timeout) + + def open(self, host, port=0, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): + """Connect to a host. + + The optional second argument is the port number, which + defaults to the standard telnet port (23). + + Don't try to reopen an already connected instance. + """ + self.eof = 0 + if not port: + port = TELNET_PORT + self.host = host + self.port = port + self.timeout = timeout + sys.audit("telnetlib.Telnet.open", self, host, port) + self.sock = socket.create_connection((host, port), timeout) + + def __del__(self): + """Destructor -- close the connection.""" + self.close() + + def msg(self, msg, *args): + """Print a debug message, when the debug level is > 0. + + If extra arguments are present, they are substituted in the + message using the standard string formatting operator. + + """ + if self.debuglevel > 0: + print('Telnet(%s,%s):' % (self.host, self.port), end=' ') + if args: + print(msg % args) + else: + print(msg) + + def set_debuglevel(self, debuglevel): + """Set the debug level. + + The higher it is, the more debug output you get (on sys.stdout). + + """ + self.debuglevel = debuglevel + + def close(self): + """Close the connection.""" + sock = self.sock + self.sock = None + self.eof = True + self.iacseq = b'' + self.sb = 0 + if sock: + sock.close() + + def get_socket(self): + """Return the socket object used internally.""" + return self.sock + + def fileno(self): + """Return the fileno() of the socket object used internally.""" + return self.sock.fileno() + + def write(self, buffer): + """Write a string to the socket, doubling any IAC characters. + + Can block if the connection is blocked. May raise + OSError if the connection is closed. + + """ + if IAC in buffer: + buffer = buffer.replace(IAC, IAC+IAC) + sys.audit("telnetlib.Telnet.write", self, buffer) + self.msg("send %r", buffer) + self.sock.sendall(buffer) + + def read_until(self, match, timeout=None): + """Read until a given string is encountered or until timeout. + + When no match is found, return whatever is available instead, + possibly the empty string. Raise EOFError if the connection + is closed and no cooked data is available. + + """ + n = len(match) + self.process_rawq() + i = self.cookedq.find(match) + if i >= 0: + i = i+n + buf = self.cookedq[:i] + self.cookedq = self.cookedq[i:] + return buf + if timeout is not None: + deadline = _time() + timeout + with _TelnetSelector() as selector: + selector.register(self, selectors.EVENT_READ) + while not self.eof: + if selector.select(timeout): + i = max(0, len(self.cookedq)-n) + self.fill_rawq() + self.process_rawq() + i = self.cookedq.find(match, i) + if i >= 0: + i = i+n + buf = self.cookedq[:i] + self.cookedq = self.cookedq[i:] + return buf + if timeout is not None: + timeout = deadline - _time() + if timeout < 0: + break + return self.read_very_lazy() + + def read_all(self): + """Read all data until EOF; block until connection closed.""" + self.process_rawq() + while not self.eof: + self.fill_rawq() + self.process_rawq() + buf = self.cookedq + self.cookedq = b'' + return buf + + def read_some(self): + """Read at least one byte of cooked data unless EOF is hit. + + Return b'' if EOF is hit. Block if no data is immediately + available. + + """ + self.process_rawq() + while not self.cookedq and not self.eof: + self.fill_rawq() + self.process_rawq() + buf = self.cookedq + self.cookedq = b'' + return buf + + def read_very_eager(self): + """Read everything that's possible without blocking in I/O (eager). + + Raise EOFError if connection closed and no cooked data + available. Return b'' if no cooked data available otherwise. + Don't block unless in the midst of an IAC sequence. + + """ + self.process_rawq() + while not self.eof and self.sock_avail(): + self.fill_rawq() + self.process_rawq() + return self.read_very_lazy() + + def read_eager(self): + """Read readily available data. + + Raise EOFError if connection closed and no cooked data + available. Return b'' if no cooked data available otherwise. + Don't block unless in the midst of an IAC sequence. + + """ + self.process_rawq() + while not self.cookedq and not self.eof and self.sock_avail(): + self.fill_rawq() + self.process_rawq() + return self.read_very_lazy() + + def read_lazy(self): + """Process and return data that's already in the queues (lazy). + + Raise EOFError if connection closed and no data available. + Return b'' if no cooked data available otherwise. Don't block + unless in the midst of an IAC sequence. + + """ + self.process_rawq() + return self.read_very_lazy() + + def read_very_lazy(self): + """Return any data available in the cooked queue (very lazy). + + Raise EOFError if connection closed and no data available. + Return b'' if no cooked data available otherwise. Don't block. + + """ + buf = self.cookedq + self.cookedq = b'' + if not buf and self.eof and not self.rawq: + raise EOFError('telnet connection closed') + return buf + + def read_sb_data(self): + """Return any data available in the SB ... SE queue. + + Return b'' if no SB ... SE available. Should only be called + after seeing a SB or SE command. When a new SB command is + found, old unread SB data will be discarded. Don't block. + + """ + buf = self.sbdataq + self.sbdataq = b'' + return buf + + def set_option_negotiation_callback(self, callback): + """Provide a callback function called after each receipt of a telnet option.""" + self.option_callback = callback + + def process_rawq(self): + """Transfer from raw queue to cooked queue. + + Set self.eof when connection is closed. Don't block unless in + the midst of an IAC sequence. + + """ + buf = [b'', b''] + try: + while self.rawq: + c = self.rawq_getchar() + if not self.iacseq: + if c == theNULL: + continue + if c == b"\021": + continue + if c != IAC: + buf[self.sb] = buf[self.sb] + c + continue + else: + self.iacseq += c + elif len(self.iacseq) == 1: + # 'IAC: IAC CMD [OPTION only for WILL/WONT/DO/DONT]' + if c in (DO, DONT, WILL, WONT): + self.iacseq += c + continue + + self.iacseq = b'' + if c == IAC: + buf[self.sb] = buf[self.sb] + c + else: + if c == SB: # SB ... SE start. + self.sb = 1 + self.sbdataq = b'' + elif c == SE: + self.sb = 0 + self.sbdataq = self.sbdataq + buf[1] + buf[1] = b'' + if self.option_callback: + # Callback is supposed to look into + # the sbdataq + self.option_callback(self.sock, c, NOOPT) + else: + # We can't offer automatic processing of + # suboptions. Alas, we should not get any + # unless we did a WILL/DO before. + self.msg('IAC %d not recognized' % ord(c)) + elif len(self.iacseq) == 2: + cmd = self.iacseq[1:2] + self.iacseq = b'' + opt = c + if cmd in (DO, DONT): + self.msg('IAC %s %d', + cmd == DO and 'DO' or 'DONT', ord(opt)) + if self.option_callback: + self.option_callback(self.sock, cmd, opt) + else: + self.sock.sendall(IAC + WONT + opt) + elif cmd in (WILL, WONT): + self.msg('IAC %s %d', + cmd == WILL and 'WILL' or 'WONT', ord(opt)) + if self.option_callback: + self.option_callback(self.sock, cmd, opt) + else: + self.sock.sendall(IAC + DONT + opt) + except EOFError: # raised by self.rawq_getchar() + self.iacseq = b'' # Reset on EOF + self.sb = 0 + pass + self.cookedq = self.cookedq + buf[0] + self.sbdataq = self.sbdataq + buf[1] + + def rawq_getchar(self): + """Get next char from raw queue. + + Block if no data is immediately available. Raise EOFError + when connection is closed. + + """ + if not self.rawq: + self.fill_rawq() + if self.eof: + raise EOFError + c = self.rawq[self.irawq:self.irawq+1] + self.irawq = self.irawq + 1 + if self.irawq >= len(self.rawq): + self.rawq = b'' + self.irawq = 0 + return c + + def fill_rawq(self): + """Fill raw queue from exactly one recv() system call. + + Block if no data is immediately available. Set self.eof when + connection is closed. + + """ + if self.irawq >= len(self.rawq): + self.rawq = b'' + self.irawq = 0 + # The buffer size should be fairly small so as to avoid quadratic + # behavior in process_rawq() above + buf = self.sock.recv(50) + self.msg("recv %r", buf) + self.eof = (not buf) + self.rawq = self.rawq + buf + + def sock_avail(self): + """Test whether data is available on the socket.""" + with _TelnetSelector() as selector: + selector.register(self, selectors.EVENT_READ) + return bool(selector.select(0)) + + def interact(self): + """Interaction function, emulates a very dumb telnet client.""" + if sys.platform == "win32": + self.mt_interact() + return + with _TelnetSelector() as selector: + selector.register(self, selectors.EVENT_READ) + selector.register(sys.stdin, selectors.EVENT_READ) + + while True: + for key, events in selector.select(): + if key.fileobj is self: + try: + text = self.read_eager() + except EOFError: + print('*** Connection closed by remote host ***') + return + if text: + sys.stdout.write(text.decode('ascii')) + sys.stdout.flush() + elif key.fileobj is sys.stdin: + line = sys.stdin.readline().encode('ascii') + if not line: + return + self.write(line) + + def mt_interact(self): + """Multithreaded version of interact().""" + import _thread + _thread.start_new_thread(self.listener, ()) + while 1: + line = sys.stdin.readline() + if not line: + break + self.write(line.encode('ascii')) + + def listener(self): + """Helper for mt_interact() -- this executes in the other thread.""" + while 1: + try: + data = self.read_eager() + except EOFError: + print('*** Connection closed by remote host ***') + return + if data: + sys.stdout.write(data.decode('ascii')) + else: + sys.stdout.flush() + + def expect(self, list, timeout=None): + """Read until one from a list of a regular expressions matches. + + The first argument is a list of regular expressions, either + compiled (re.Pattern instances) or uncompiled (strings). + The optional second argument is a timeout, in seconds; default + is no timeout. + + Return a tuple of three items: the index in the list of the + first regular expression that matches; the re.Match object + returned; and the text read up till and including the match. + + If EOF is read and no text was read, raise EOFError. + Otherwise, when nothing matches, return (-1, None, text) where + text is the text received so far (may be the empty string if a + timeout happened). + + If a regular expression ends with a greedy match (e.g. '.*') + or if more than one expression can match the same input, the + results are undeterministic, and may depend on the I/O timing. + + """ + re = None + list = list[:] + indices = range(len(list)) + for i in indices: + if not hasattr(list[i], "search"): + if not re: import re + list[i] = re.compile(list[i]) + if timeout is not None: + deadline = _time() + timeout + with _TelnetSelector() as selector: + selector.register(self, selectors.EVENT_READ) + while not self.eof: + self.process_rawq() + for i in indices: + m = list[i].search(self.cookedq) + if m: + e = m.end() + text = self.cookedq[:e] + self.cookedq = self.cookedq[e:] + return (i, m, text) + if timeout is not None: + ready = selector.select(timeout) + timeout = deadline - _time() + if not ready: + if timeout < 0: + break + else: + continue + self.fill_rawq() + text = self.read_very_lazy() + if not text and self.eof: + raise EOFError + return (-1, None, text) + + def __enter__(self): + return self + + def __exit__(self, type, value, traceback): + self.close() + + +def test(): + """Test program for telnetlib. + + Usage: python telnetlib.py [-d] ... [host [port]] + + Default host is localhost; default port is 23. + + """ + debuglevel = 0 + while sys.argv[1:] and sys.argv[1] == '-d': + debuglevel = debuglevel+1 + del sys.argv[1] + host = 'localhost' + if sys.argv[1:]: + host = sys.argv[1] + port = 0 + if sys.argv[2:]: + portstr = sys.argv[2] + try: + port = int(portstr) + except ValueError: + port = socket.getservbyname(portstr, 'tcp') + with Telnet() as tn: + tn.set_debuglevel(debuglevel) + tn.open(host, port, timeout=0.5) + tn.interact() + +if __name__ == '__main__': + test() diff --git a/shared/package-files/ea/ea396eef1acea1f51749c71be80d9ef2af98f258b61b27e246c1af80bb944058/blob b/shared/package-files/ea/ea396eef1acea1f51749c71be80d9ef2af98f258b61b27e246c1af80bb944058/blob new file mode 100644 index 0000000000000000000000000000000000000000..6c2b1ef70c9051304efa42ba7af348c7299e5534 --- /dev/null +++ b/shared/package-files/ea/ea396eef1acea1f51749c71be80d9ef2af98f258b61b27e246c1af80bb944058/blob @@ -0,0 +1,104 @@ +""" +Utilities function for keybinding with prompt toolkit. + +This will be bound to specific key press and filter modes, +like whether we are in edit mode, and whether the completer is open. +""" +import re +from prompt_toolkit.key_binding import KeyPressEvent + + +def parenthesis(event: KeyPressEvent): + """Auto-close parenthesis""" + event.current_buffer.insert_text("()") + event.current_buffer.cursor_left() + + +def brackets(event: KeyPressEvent): + """Auto-close brackets""" + event.current_buffer.insert_text("[]") + event.current_buffer.cursor_left() + + +def braces(event: KeyPressEvent): + """Auto-close braces""" + event.current_buffer.insert_text("{}") + event.current_buffer.cursor_left() + + +def double_quote(event: KeyPressEvent): + """Auto-close double quotes""" + event.current_buffer.insert_text('""') + event.current_buffer.cursor_left() + + +def single_quote(event: KeyPressEvent): + """Auto-close single quotes""" + event.current_buffer.insert_text("''") + event.current_buffer.cursor_left() + + +def docstring_double_quotes(event: KeyPressEvent): + """Auto-close docstring (double quotes)""" + event.current_buffer.insert_text('""""') + event.current_buffer.cursor_left(3) + + +def docstring_single_quotes(event: KeyPressEvent): + """Auto-close docstring (single quotes)""" + event.current_buffer.insert_text("''''") + event.current_buffer.cursor_left(3) + + +def raw_string_parenthesis(event: KeyPressEvent): + """Auto-close parenthesis in raw strings""" + matches = re.match( + r".*(r|R)[\"'](-*)", + event.current_buffer.document.current_line_before_cursor, + ) + dashes = matches.group(2) if matches else "" + event.current_buffer.insert_text("()" + dashes) + event.current_buffer.cursor_left(len(dashes) + 1) + + +def raw_string_bracket(event: KeyPressEvent): + """Auto-close bracker in raw strings""" + matches = re.match( + r".*(r|R)[\"'](-*)", + event.current_buffer.document.current_line_before_cursor, + ) + dashes = matches.group(2) if matches else "" + event.current_buffer.insert_text("[]" + dashes) + event.current_buffer.cursor_left(len(dashes) + 1) + + +def raw_string_braces(event: KeyPressEvent): + """Auto-close braces in raw strings""" + matches = re.match( + r".*(r|R)[\"'](-*)", + event.current_buffer.document.current_line_before_cursor, + ) + dashes = matches.group(2) if matches else "" + event.current_buffer.insert_text("{}" + dashes) + event.current_buffer.cursor_left(len(dashes) + 1) + + +def skip_over(event: KeyPressEvent): + """Skip over automatically added parenthesis/quote. + + (rather than adding another parenthesis/quote)""" + event.current_buffer.cursor_right() + + +def delete_pair(event: KeyPressEvent): + """Delete auto-closed parenthesis""" + event.current_buffer.delete() + event.current_buffer.delete_before_cursor() + + +auto_match_parens = {"(": parenthesis, "[": brackets, "{": braces} +auto_match_parens_raw_string = { + "(": raw_string_parenthesis, + "[": raw_string_bracket, + "{": raw_string_braces, +} diff --git a/shared/package-files/ea/ea3a6429c4170c33fb7ce551b9074e8bea8cbb34397ebd9c624a06f3b1a2288a/blob b/shared/package-files/ea/ea3a6429c4170c33fb7ce551b9074e8bea8cbb34397ebd9c624a06f3b1a2288a/blob new file mode 100644 index 0000000000000000000000000000000000000000..8cfa30ca2ce9cefc4845db3e819738f730d08c91 --- /dev/null +++ b/shared/package-files/ea/ea3a6429c4170c33fb7ce551b9074e8bea8cbb34397ebd9c624a06f3b1a2288a/blob @@ -0,0 +1,1153 @@ +#pragma once + +#include +#include +#include +#include + +namespace torch { +namespace nn { +namespace functional { + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor avg_pool1d( + const Tensor& input, + ExpandingArray<1> kernel_size, + ExpandingArray<1> stride, + ExpandingArray<1> padding, + bool ceil_mode, + bool count_include_pad) { + return torch::avg_pool1d( + input, kernel_size, stride, padding, ceil_mode, count_include_pad); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.avg_pool1d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::AvgPool1dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::avg_pool1d(x, F::AvgPool1dFuncOptions(3).stride(2)); +/// ``` +inline Tensor avg_pool1d( + const Tensor& input, + const AvgPool1dFuncOptions& options) { + return avg_pool1d( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.ceil_mode(), + options.count_include_pad()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor avg_pool2d( + const Tensor& input, + ExpandingArray<2> kernel_size, + ExpandingArray<2> stride, + ExpandingArray<2> padding, + bool ceil_mode, + bool count_include_pad, + c10::optional divisor_override) { + return torch::avg_pool2d( + input, + kernel_size, + stride, + padding, + ceil_mode, + count_include_pad, + divisor_override); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.avg_pool2d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::AvgPool2dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::avg_pool2d(x, F::AvgPool2dFuncOptions(3).stride(2)); +/// ``` +inline Tensor avg_pool2d( + const Tensor& input, + const AvgPool2dFuncOptions& options) { + return detail::avg_pool2d( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.ceil_mode(), + options.count_include_pad(), + options.divisor_override()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor avg_pool3d( + const Tensor& input, + ExpandingArray<3> kernel_size, + ExpandingArray<3> stride, + ExpandingArray<3> padding, + bool ceil_mode, + bool count_include_pad, + c10::optional divisor_override) { + return torch::avg_pool3d( + input, + kernel_size, + stride, + padding, + ceil_mode, + count_include_pad, + divisor_override); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.avg_pool3d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::AvgPool3dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::avg_pool3d(x, F::AvgPool3dFuncOptions(3).stride(2)); +/// ``` +inline Tensor avg_pool3d( + const Tensor& input, + const AvgPool3dFuncOptions& options) { + return detail::avg_pool3d( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.ceil_mode(), + options.count_include_pad(), + options.divisor_override()); +} + +// ============================================================================ + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor max_pool1d( + const Tensor& input, + ExpandingArray<1> kernel_size, + ExpandingArray<1> stride, + ExpandingArray<1> padding, + ExpandingArray<1> dilation, + bool ceil_mode) { + return torch::max_pool1d( + input, kernel_size, stride, padding, dilation, ceil_mode); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.max_pool1d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::MaxPool1dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_pool1d(x, F::MaxPool1dFuncOptions(3).stride(2)); +/// ``` +inline Tensor max_pool1d( + const Tensor& input, + const MaxPool1dFuncOptions& options) { + return detail::max_pool1d( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.dilation(), + options.ceil_mode()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple max_pool1d_with_indices( + const Tensor& input, + ExpandingArray<1> kernel_size, + ExpandingArray<1> stride, + ExpandingArray<1> padding, + ExpandingArray<1> dilation, + bool ceil_mode) { + return torch::max_pool1d_with_indices( + input, kernel_size, stride, padding, dilation, ceil_mode); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for `torch::nn::functional::MaxPool1dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_pool1d_with_indices(x, F::MaxPool1dFuncOptions(3).stride(2)); +/// ``` +inline std::tuple max_pool1d_with_indices( + const Tensor& input, + const MaxPool1dFuncOptions& options) { + return detail::max_pool1d_with_indices( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.dilation(), + options.ceil_mode()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor max_pool2d( + const Tensor& input, + ExpandingArray<2> kernel_size, + ExpandingArray<2> stride, + ExpandingArray<2> padding, + ExpandingArray<2> dilation, + bool ceil_mode) { + return torch::max_pool2d( + input, kernel_size, stride, padding, dilation, ceil_mode); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.max_pool2d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::MaxPool2dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_pool2d(x, F::MaxPool2dFuncOptions(3).stride(2)); +/// ``` +inline Tensor max_pool2d( + const Tensor& input, + const MaxPool2dFuncOptions& options) { + return detail::max_pool2d( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.dilation(), + options.ceil_mode()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple max_pool2d_with_indices( + const Tensor& input, + ExpandingArray<2> kernel_size, + ExpandingArray<2> stride, + ExpandingArray<2> padding, + ExpandingArray<2> dilation, + bool ceil_mode) { + return torch::max_pool2d_with_indices( + input, kernel_size, stride, padding, dilation, ceil_mode); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for `torch::nn::functional::MaxPool2dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_pool2d_with_indices(x, F::MaxPool2dFuncOptions(3).stride(2)); +/// ``` +inline std::tuple max_pool2d_with_indices( + const Tensor& input, + const MaxPool2dFuncOptions& options) { + return detail::max_pool2d_with_indices( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.dilation(), + options.ceil_mode()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor max_pool3d( + const Tensor& input, + ExpandingArray<3> kernel_size, + ExpandingArray<3> stride, + ExpandingArray<3> padding, + ExpandingArray<3> dilation, + bool ceil_mode) { + return torch::max_pool3d( + input, kernel_size, stride, padding, dilation, ceil_mode); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.max_pool3d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::MaxPool3dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_pool3d(x, F::MaxPool3dFuncOptions(3).stride(2)); +/// ``` +inline Tensor max_pool3d( + const Tensor& input, + const MaxPool3dFuncOptions& options) { + return detail::max_pool3d( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.dilation(), + options.ceil_mode()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple max_pool3d_with_indices( + const Tensor& input, + ExpandingArray<3> kernel_size, + ExpandingArray<3> stride, + ExpandingArray<3> padding, + ExpandingArray<3> dilation, + bool ceil_mode) { + return torch::max_pool3d_with_indices( + input, kernel_size, stride, padding, dilation, ceil_mode); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for `torch::nn::functional::MaxPool3dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_pool3d_with_indices(x, F::MaxPool3dFuncOptions(3).stride(2)); +/// ``` +inline std::tuple max_pool3d_with_indices( + const Tensor& input, + const MaxPool3dFuncOptions& options) { + return detail::max_pool3d_with_indices( + input, + options.kernel_size(), + options.stride(), + options.padding(), + options.dilation(), + options.ceil_mode()); +} + +// ============================================================================ + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple adaptive_max_pool1d_with_indices( + const Tensor& input, + ExpandingArray<1> output_size) { + return torch::adaptive_max_pool1d(input, output_size); +} +} // namespace detail + +/// See the documentation for +/// `torch::nn::functional::AdaptiveMaxPool1dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_max_pool1d_with_indices(x, F::AdaptiveMaxPool1dFuncOptions(3)); +/// ``` +inline std::tuple adaptive_max_pool1d_with_indices( + const Tensor& input, + const AdaptiveMaxPool1dFuncOptions& options) { + return detail::adaptive_max_pool1d_with_indices(input, options.output_size()); +} + +namespace detail { +inline Tensor adaptive_max_pool1d( + const Tensor& input, + ExpandingArray<1> output_size) { + return std::get<0>(adaptive_max_pool1d_with_indices(input, output_size)); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.adaptive_max_pool1d +/// about the exact behavior of this functional. +/// +/// See the documentation for +/// `torch::nn::functional::AdaptiveMaxPool1dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_max_pool1d(x, F::AdaptiveMaxPool1dFuncOptions(3)); +/// ``` +inline Tensor adaptive_max_pool1d( + const Tensor& input, + const AdaptiveMaxPool1dFuncOptions& options) { + return detail::adaptive_max_pool1d(input, options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple adaptive_max_pool2d_with_indices( + const Tensor& input, + ExpandingArrayWithOptionalElem<2> output_size) { + auto output_size_ = + torch::nn::modules::utils::_list_with_default(output_size, input.sizes()); + return torch::adaptive_max_pool2d(input, output_size_); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for +/// `torch::nn::functional::AdaptiveMaxPool2dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_max_pool2d_with_indices(x, F::AdaptiveMaxPool2dFuncOptions(3)); +/// ``` +inline std::tuple adaptive_max_pool2d_with_indices( + const Tensor& input, + const AdaptiveMaxPool2dFuncOptions& options) { + return detail::adaptive_max_pool2d_with_indices(input, options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor adaptive_max_pool2d( + const Tensor& input, + ExpandingArrayWithOptionalElem<2> output_size) { + return std::get<0>(adaptive_max_pool2d_with_indices(input, output_size)); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.adaptive_max_pool2d +/// about the exact behavior of this functional. +/// +/// See the documentation for +/// `torch::nn::functional::AdaptiveMaxPool2dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_max_pool2d(x, F::AdaptiveMaxPool2dFuncOptions(3)); +/// ``` +inline Tensor adaptive_max_pool2d( + const Tensor& input, + const AdaptiveMaxPool2dFuncOptions& options) { + return detail::adaptive_max_pool2d(input, options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple adaptive_max_pool3d_with_indices( + const Tensor& input, + ExpandingArrayWithOptionalElem<3> output_size) { + auto output_size_ = + torch::nn::modules::utils::_list_with_default(output_size, input.sizes()); + return torch::adaptive_max_pool3d(input, output_size_); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for +/// `torch::nn::functional::AdaptiveMaxPool3dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_max_pool3d_with_indices(x, F::AdaptiveMaxPool3dFuncOptions(3)); +/// ``` +inline std::tuple adaptive_max_pool3d_with_indices( + const Tensor& input, + const AdaptiveMaxPool3dFuncOptions& options) { + return detail::adaptive_max_pool3d_with_indices(input, options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor adaptive_max_pool3d( + const Tensor& input, + ExpandingArrayWithOptionalElem<3> output_size) { + return std::get<0>(adaptive_max_pool3d_with_indices(input, output_size)); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.adaptive_max_pool3d +/// about the exact behavior of this functional. +/// +/// See the documentation for +/// `torch::nn::functional::AdaptiveMaxPool3dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_max_pool3d(x, F::AdaptiveMaxPool3dFuncOptions(3)); +/// ``` +inline Tensor adaptive_max_pool3d( + const Tensor& input, + const AdaptiveMaxPool3dFuncOptions& options) { + return detail::adaptive_max_pool3d(input, options.output_size()); +} + +// ============================================================================ + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor adaptive_avg_pool1d( + const Tensor& input, + ExpandingArray<1> output_size) { + return torch::adaptive_avg_pool1d(input, output_size); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.adaptive_avg_pool1d +/// about the exact behavior of this functional. +/// +/// See the documentation for +/// `torch::nn::functional::AdaptiveAvgPool1dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_avg_pool1d(x, F::AdaptiveAvgPool1dFuncOptions(3)); +/// ``` +inline Tensor adaptive_avg_pool1d( + const Tensor& input, + const AdaptiveAvgPool1dFuncOptions& options) { + return detail::adaptive_avg_pool1d(input, options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor adaptive_avg_pool2d( + const Tensor& input, + ExpandingArrayWithOptionalElem<2> output_size) { + auto output_size_ = + torch::nn::modules::utils::_list_with_default(output_size, input.sizes()); + return torch::adaptive_avg_pool2d(input, output_size_); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.adaptive_avg_pool2d +/// about the exact behavior of this functional. +/// +/// See the documentation for +/// `torch::nn::functional::AdaptiveAvgPool2dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_avg_pool2d(x, F::AdaptiveAvgPool2dFuncOptions(3)); +/// ``` +inline Tensor adaptive_avg_pool2d( + const Tensor& input, + const AdaptiveAvgPool2dFuncOptions& options) { + return detail::adaptive_avg_pool2d(input, options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor adaptive_avg_pool3d( + const Tensor& input, + ExpandingArrayWithOptionalElem<3> output_size) { + auto output_size_ = + torch::nn::modules::utils::_list_with_default(output_size, input.sizes()); + return torch::adaptive_avg_pool3d(input, output_size_); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.adaptive_avg_pool3d +/// about the exact behavior of this functional. +/// +/// See the documentation for +/// `torch::nn::functional::AdaptiveAvgPool3dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::adaptive_avg_pool3d(x, F::AdaptiveAvgPool3dFuncOptions(3)); +/// ``` +inline Tensor adaptive_avg_pool3d( + const Tensor& input, + const AdaptiveAvgPool3dFuncOptions& options) { + return detail::adaptive_avg_pool3d(input, options.output_size()); +} + +// ============================================================================ + +inline std::vector _unpool_output_size( + const Tensor& input, + const IntArrayRef& kernel_size, + const IntArrayRef& stride, + const IntArrayRef& padding, + const c10::optional>& output_size) { + auto input_size = input.sizes(); + std::vector default_size; + for (const auto d : c10::irange(kernel_size.size())) { + default_size.push_back( + (input_size[input_size.size() - kernel_size.size() + d] - 1) * + stride[d] + + kernel_size[d] - 2 * padding[d]); + } + if (!output_size) { + return default_size; + } else { + std::vector output_size_; + if (output_size->size() == kernel_size.size() + 2) { + output_size_ = IntArrayRef(*output_size).slice(2).vec(); + } + if (output_size_.size() != kernel_size.size()) { + TORCH_CHECK( + false, + "output_size should be a sequence containing ", + kernel_size.size(), + " or ", + kernel_size.size() + 2, + " elements, but it has a length of '", + output_size_.size(), + "'"); + } + for (const auto d : c10::irange(kernel_size.size())) { + const auto min_size = default_size[d] - stride[d]; + const auto max_size = default_size[d] + stride[d]; + if (!(min_size <= output_size_[d] && output_size_[d] <= max_size)) { + TORCH_CHECK( + false, + "invalid output_size ", + output_size_, + " (dim ", + d, + " must be between ", + min_size, + " and ", + max_size, + ")"); + } + } + return output_size_; + } +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor max_unpool1d( + const Tensor& input, + const Tensor& indices, + ExpandingArray<1> kernel_size, + ExpandingArray<1> stride, + ExpandingArray<1> padding, + const c10::optional>& output_size) { + auto output_size_ = + _unpool_output_size(input, kernel_size, stride, padding, output_size); + output_size_.push_back(1); + return torch::max_unpool2d( + input.unsqueeze(-1), indices.unsqueeze(-1), output_size_) + .squeeze(-1); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.max_unpool1d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::MaxUnpool1dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_unpool1d(x, indices, +/// F::MaxUnpool1dFuncOptions(3).stride(2).padding(1)); +/// ``` +inline Tensor max_unpool1d( + const Tensor& input, + const Tensor& indices, + const MaxUnpool1dFuncOptions& options) { + return detail::max_unpool1d( + input, + indices, + options.kernel_size(), + options.stride(), + options.padding(), + options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor max_unpool2d( + const Tensor& input, + const Tensor& indices, + ExpandingArray<2> kernel_size, + ExpandingArray<2> stride, + ExpandingArray<2> padding, + const c10::optional>& output_size) { + auto output_size_ = + _unpool_output_size(input, kernel_size, stride, padding, output_size); + + return torch::max_unpool2d(input, indices, output_size_); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.max_unpool2d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::MaxUnpool2dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_unpool2d(x, indices, +/// F::MaxUnpool2dFuncOptions(3).stride(2).padding(1)); +/// ``` +inline Tensor max_unpool2d( + const Tensor& input, + const Tensor& indices, + const MaxUnpool2dFuncOptions& options) { + return detail::max_unpool2d( + input, + indices, + options.kernel_size(), + options.stride(), + options.padding(), + options.output_size()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor max_unpool3d( + const Tensor& input, + const Tensor& indices, + ExpandingArray<3> kernel_size, + ExpandingArray<3> stride, + ExpandingArray<3> padding, + const c10::optional>& output_size) { + auto output_size_ = + _unpool_output_size(input, kernel_size, stride, padding, output_size); + + return torch::max_unpool3d(input, indices, output_size_, stride, padding); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.max_unpool3d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::MaxUnpool3dFuncOptions` +/// class to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::max_unpool3d(x, indices, F::MaxUnpool3dFuncOptions(3)); +/// ``` +inline Tensor max_unpool3d( + const Tensor& input, + const Tensor& indices, + const MaxUnpool3dFuncOptions& options) { + return detail::max_unpool3d( + input, + indices, + options.kernel_size(), + options.stride(), + options.padding(), + options.output_size()); +} + +// ============================================================================ + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple fractional_max_pool2d_with_indices( + const Tensor& input, + const ExpandingArray<2>& kernel_size, + const c10::optional>& output_size, + const c10::optional>& output_ratio, + const Tensor& _random_samples) { + if (output_size == c10::nullopt && output_ratio == c10::nullopt) { + TORCH_CHECK( + false, + "fractional_max_pool2d requires specifying either ", + "an output_size or an output_ratio"); + } + c10::optional> output_size_ = output_size; + if (output_size_ == c10::nullopt) { + TORCH_INTERNAL_ASSERT(output_ratio != c10::nullopt); + output_size_ = { + (int64_t)(static_cast(input.size(-2)) * + (*output_ratio.value())[0]), + (int64_t)(static_cast(input.size(-1)) * + (*output_ratio.value())[1])}; + } + + Tensor _random_samples_ = _random_samples; + if (!_random_samples_.defined()) { + auto n_batch = input.dim() == 3 ? 1 : input.size(0); + _random_samples_ = torch::rand( + {n_batch, input.size(-3), 2}, + torch::TensorOptions().dtype(input.dtype()).device(input.device())); + } + return torch::fractional_max_pool2d( + input, kernel_size, *output_size_, _random_samples_); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for +/// `torch::nn::functional::FractionalMaxPool2dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::fractional_max_pool2d_with_indices(x, +/// F::FractionalMaxPool2dFuncOptions(3).output_size(2)); +/// ``` +inline std::tuple fractional_max_pool2d_with_indices( + const Tensor& input, + const FractionalMaxPool2dFuncOptions& options) { + return detail::fractional_max_pool2d_with_indices( + input, + options.kernel_size(), + options.output_size(), + options.output_ratio(), + options._random_samples()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor fractional_max_pool2d( + const Tensor& input, + ExpandingArray<2> kernel_size, + c10::optional> output_size, + c10::optional> output_ratio, + const Tensor& _random_samples) { + return std::get<0>(fractional_max_pool2d_with_indices( + input, kernel_size, output_size, output_ratio, _random_samples)); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for +/// `torch::nn::functional::FractionalMaxPool2dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::fractional_max_pool2d(x, +/// F::FractionalMaxPool2dFuncOptions(3).output_size(2)); +/// ``` +inline Tensor fractional_max_pool2d( + const Tensor& input, + const FractionalMaxPool2dFuncOptions& options) { + return detail::fractional_max_pool2d( + input, + options.kernel_size(), + options.output_size(), + options.output_ratio(), + options._random_samples()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline std::tuple fractional_max_pool3d_with_indices( + const Tensor& input, + const ExpandingArray<3>& kernel_size, + const c10::optional>& output_size, + const c10::optional>& output_ratio, + const Tensor& _random_samples) { + if (output_size == c10::nullopt && output_ratio == c10::nullopt) { + TORCH_CHECK( + false, + "fractional_max_pool3d requires specifying either ", + "an output_size or an output_ratio"); + } + + c10::optional> output_size_ = output_size; + if (output_size_ == c10::nullopt) { + TORCH_INTERNAL_ASSERT(output_ratio != c10::nullopt); + output_size_ = { + (int64_t)(static_cast(input.size(-3)) * + (*output_ratio.value())[0]), + (int64_t)(static_cast(input.size(-2)) * + (*output_ratio.value())[1]), + (int64_t)(static_cast(input.size(-1)) * + (*output_ratio.value())[2])}; + } + + Tensor _random_samples_ = _random_samples; + if (!_random_samples_.defined()) { + auto n_batch = input.dim() == 4 ? 1 : input.size(0); + _random_samples_ = torch::rand( + {n_batch, input.size(-4), 3}, + torch::TensorOptions().dtype(input.dtype()).device(input.device())); + } + return torch::fractional_max_pool3d( + input, kernel_size, *output_size_, _random_samples_); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for +/// `torch::nn::functional::FractionalMaxPool3dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::fractional_max_pool3d_with_indices(x, +/// F::FractionalMaxPool3dFuncOptions(3).output_size(2)); +/// ``` +inline std::tuple fractional_max_pool3d_with_indices( + const Tensor& input, + const FractionalMaxPool3dFuncOptions& options) { + return detail::fractional_max_pool3d_with_indices( + input, + options.kernel_size(), + options.output_size(), + options.output_ratio(), + options._random_samples()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor fractional_max_pool3d( + const Tensor& input, + ExpandingArray<3> kernel_size, + c10::optional> output_size, + c10::optional> output_ratio, + const Tensor& _random_samples) { + return std::get<0>(fractional_max_pool3d_with_indices( + input, kernel_size, output_size, output_ratio, _random_samples)); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See the documentation for +/// `torch::nn::functional::FractionalMaxPool3dFuncOptions` class to learn what +/// optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::fractional_max_pool3d(x, +/// F::FractionalMaxPool3dFuncOptions(3).output_size(2)); +/// ``` +inline Tensor fractional_max_pool3d( + const Tensor& input, + const FractionalMaxPool3dFuncOptions& options) { + return detail::fractional_max_pool3d( + input, + options.kernel_size(), + options.output_size(), + options.output_ratio(), + options._random_samples()); +} + +// ============================================================================ + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor lp_pool1d( + const Tensor& input, + double norm_type, + ExpandingArray<1> kernel_size, + ExpandingArray<1> stride, + bool ceil_mode) { + Tensor out = detail::avg_pool1d( + input.pow(norm_type), + kernel_size, + stride, + /*padding=*/0, + ceil_mode, + /*count_include_pad=*/true); + + return (torch::sign(out) * relu(torch::abs(out))) + .mul((*kernel_size)[0]) + .pow(1. / norm_type); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.lp_pool1d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::LPPool1dFuncOptions` class +/// to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::lp_pool1d(x, F::LPPool1dFuncOptions(2, 3).stride(2)); +/// ``` +inline Tensor lp_pool1d( + const Tensor& input, + const LPPool1dFuncOptions& options) { + return detail::lp_pool1d( + input, + options.norm_type(), + options.kernel_size(), + options.stride(), + options.ceil_mode()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor lp_pool2d( + const Tensor& input, + double norm_type, + ExpandingArray<2> kernel_size, + ExpandingArray<2> stride, + bool ceil_mode) { + int kw = (*kernel_size)[0]; + int kh = (*kernel_size)[1]; + Tensor out = detail::avg_pool2d( + input.pow(norm_type), + kernel_size, + stride, + /*padding=*/0, + ceil_mode, + /*count_include_pad=*/true, + /*divisor_override=*/c10::nullopt); + + return (torch::sign(out) * relu(torch::abs(out))) + .mul(kw * kh) + .pow(1. / norm_type); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.lp_pool2d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::LPPool2dFuncOptions` class +/// to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::lp_pool2d(x, F::LPPool2dFuncOptions(2, {2, 3}).stride(2)); +/// ``` +inline Tensor lp_pool2d( + const Tensor& input, + const LPPool2dFuncOptions& options) { + return detail::lp_pool2d( + input, + options.norm_type(), + options.kernel_size(), + options.stride(), + options.ceil_mode()); +} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace detail { +inline Tensor lp_pool3d( + const Tensor& input, + double norm_type, + ExpandingArray<3> kernel_size, + ExpandingArray<3> stride, + bool ceil_mode) { + int kd = (*kernel_size)[0]; + int kw = (*kernel_size)[1]; + int kh = (*kernel_size)[2]; + Tensor out = detail::avg_pool3d( + input.pow(norm_type), + kernel_size, + stride, + /*padding=*/0, + ceil_mode, + /*count_include_pad=*/true, + /*divisor_override=*/c10::nullopt); + + return (torch::sign(out) * relu(torch::abs(out))) + .mul(kd * kw * kh) + .pow(1. / norm_type); +} +} // namespace detail +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +/// See +/// https://pytorch.org/docs/master/nn.functional.html#torch.nn.functional.lp_pool3d +/// about the exact behavior of this functional. +/// +/// See the documentation for `torch::nn::functional::LPPool3dFuncOptions` class +/// to learn what optional arguments are supported for this functional. +/// +/// Example: +/// ``` +/// namespace F = torch::nn::functional; +/// F::lp_pool3d(x, F::LPPool3dFuncOptions(3, {3, 3, 5}).stride(3)); +/// ``` +inline Tensor lp_pool3d( + const Tensor& input, + const LPPool3dFuncOptions& options) { + return detail::lp_pool3d( + input, + options.norm_type(), + options.kernel_size(), + options.stride(), + options.ceil_mode()); +} + +} // namespace functional +} // namespace nn +} // namespace torch diff --git a/shared/package-files/ea/ea3b354776becf80ddd5ccd372bb93a2631470d645c0be201e9816f63724e538/blob b/shared/package-files/ea/ea3b354776becf80ddd5ccd372bb93a2631470d645c0be201e9816f63724e538/blob new file mode 100644 index 0000000000000000000000000000000000000000..99d43ed3f6c22dbf08c50d6cd30195e2f482172e --- /dev/null +++ b/shared/package-files/ea/ea3b354776becf80ddd5ccd372bb93a2631470d645c0be201e9816f63724e538/blob @@ -0,0 +1,81 @@ +import torch +import torch.nn as nn +import torch.nn.functional as F +from torch.ao.nn.intrinsic import LinearReLU +from torch.nn.utils.parametrize import ( + is_parametrized, + type_before_parametrizations, + transfer_parametrizations_and_params, +) + +__all__ = [ + "Linear" +] + +class Linear(nn.Linear): + r""" + A linear module attached with FakeQuantize modules for weight, + used for quantization aware training. + + We adopt the same interface as `torch.nn.Linear`, please see + https://pytorch.org/docs/stable/nn.html#torch.nn.Linear + for documentation. + + Similar to `torch.nn.Linear`, with FakeQuantize modules initialized to + default. + + Attributes: + weight: fake quant module for weight + """ + _FLOAT_MODULE = nn.Linear + + def __init__(self, in_features, out_features, bias=True, + qconfig=None, device=None, dtype=None) -> None: + factory_kwargs = {'device': device, 'dtype': dtype} + super().__init__(in_features, out_features, bias, **factory_kwargs) + assert qconfig, 'qconfig must be provided for QAT module' + self.qconfig = qconfig + self.weight_fake_quant = qconfig.weight(factory_kwargs=factory_kwargs) + + def forward(self, input): + return F.linear(input, self.weight_fake_quant(self.weight), self.bias) + + @classmethod + def from_float(cls, mod): + r"""Create a qat module from a float module or qparams_dict + Args: `mod` a float module, either produced by torch.ao.quantization utilities + or directly from user + """ + assert type_before_parametrizations(mod) == cls._FLOAT_MODULE, ( + " qat." + + cls.__name__ + + ".from_float only works for " + + cls._FLOAT_MODULE.__name__ + ) + assert hasattr(mod, "qconfig"), "Input float module must have qconfig defined" + assert mod.qconfig, "Input float module must have a valid qconfig" + if type_before_parametrizations(mod) == LinearReLU: + mod = mod[0] + + qconfig = mod.qconfig + qat_linear = cls(mod.in_features, mod.out_features, bias=mod.bias is not None, qconfig=qconfig) + + if is_parametrized(mod, "weight"): + transfer_parametrizations_and_params(mod, qat_linear, "weight") + else: + qat_linear.weight = mod.weight + + if is_parametrized(mod, "bias"): + transfer_parametrizations_and_params(mod, qat_linear, "bias") + else: + qat_linear.bias = mod.bias + + return qat_linear + + def to_float(self): + linear = torch.nn.Linear(self.in_features, self.out_features, self.bias is not None) + linear.weight = torch.nn.Parameter(self.weight.detach()) + if self.bias is not None: + linear.bias = torch.nn.Parameter(self.bias.detach()) + linear.train(self.training) + return linear diff --git a/shared/package-files/ea/ea3b9711d3096b1852d67bfa6ea526c7e7092d63f273861bded780793c84046e/blob b/shared/package-files/ea/ea3b9711d3096b1852d67bfa6ea526c7e7092d63f273861bded780793c84046e/blob new file mode 100644 index 0000000000000000000000000000000000000000..e8276697eee065a36d1b16e583a5f011f92541c2 --- /dev/null +++ b/shared/package-files/ea/ea3b9711d3096b1852d67bfa6ea526c7e7092d63f273861bded780793c84046e/blob @@ -0,0 +1,38 @@ +#define TORCH_ASSERT_ONLY_METHOD_OPERATORS +#include "torch/csrc/autograd/VariableTypeUtils.h" +#include "torch/csrc/autograd/generated/ViewFuncs.h" + +#include +#include +#include + +// ${generated_comment} + +#ifndef AT_PER_OPERATOR_HEADERS +#include +#else +$ops_headers +#endif + +using namespace at; +using torch::autograd::CreationMeta; +using torch::autograd::as_view; +using torch::autograd::increment_version; + +namespace torch { + +namespace ADInplaceOrView { + +namespace { +${inplace_or_view_method_definitions} +} // namespace +} // namespace ADInplaceOrView + +namespace { + +TORCH_LIBRARY_IMPL(aten, ADInplaceOrView, m) { + ${inplace_or_view_wrapper_registrations}; +} + +} // namespace +} // namespace torch diff --git a/shared/package-files/ea/ea3bb28deaae8b95f10e8fcfe83ae5f1884eac7c3ecfece4ba5669a31d3e304f/blob b/shared/package-files/ea/ea3bb28deaae8b95f10e8fcfe83ae5f1884eac7c3ecfece4ba5669a31d3e304f/blob new file mode 100644 index 0000000000000000000000000000000000000000..9a89dd8c7c9558067b735a30cc35826b4301837a --- /dev/null +++ b/shared/package-files/ea/ea3bb28deaae8b95f10e8fcfe83ae5f1884eac7c3ecfece4ba5669a31d3e304f/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea3bb28deaae8b95f10e8fcfe83ae5f1884eac7c3ecfece4ba5669a31d3e304f +size 585893423 diff --git a/shared/package-files/ea/ea3ce8b8f110ed486d8fcffe5b9c9323aca6369da72e099d1f3c5d77be2356e3/blob b/shared/package-files/ea/ea3ce8b8f110ed486d8fcffe5b9c9323aca6369da72e099d1f3c5d77be2356e3/blob new file mode 100644 index 0000000000000000000000000000000000000000..98860dfdab77665518f22041f2c176b0f27077ea --- /dev/null +++ b/shared/package-files/ea/ea3ce8b8f110ed486d8fcffe5b9c9323aca6369da72e099d1f3c5d77be2356e3/blob @@ -0,0 +1,1043 @@ +import pytest + +import numpy as np +import numpy.ma as ma +from numpy.ma.mrecords import MaskedRecords +from numpy.ma.testutils import assert_equal +from numpy.testing import assert_, assert_raises +from numpy.lib.recfunctions import ( + drop_fields, rename_fields, get_fieldstructure, recursive_fill_fields, + find_duplicates, merge_arrays, append_fields, stack_arrays, join_by, + repack_fields, unstructured_to_structured, structured_to_unstructured, + apply_along_fields, require_fields, assign_fields_by_name) +get_fieldspec = np.lib.recfunctions._get_fieldspec +get_names = np.lib.recfunctions.get_names +get_names_flat = np.lib.recfunctions.get_names_flat +zip_descr = np.lib.recfunctions._zip_descr +zip_dtype = np.lib.recfunctions._zip_dtype + + +class TestRecFunctions: + # Misc tests + + def setup_method(self): + x = np.array([1, 2, ]) + y = np.array([10, 20, 30]) + z = np.array([('A', 1.), ('B', 2.)], + dtype=[('A', '|S3'), ('B', float)]) + w = np.array([(1, (2, 3.0)), (4, (5, 6.0))], + dtype=[('a', int), ('b', [('ba', float), ('bb', int)])]) + self.data = (w, x, y, z) + + def test_zip_descr(self): + # Test zip_descr + (w, x, y, z) = self.data + + # Std array + test = zip_descr((x, x), flatten=True) + assert_equal(test, + np.dtype([('', int), ('', int)])) + test = zip_descr((x, x), flatten=False) + assert_equal(test, + np.dtype([('', int), ('', int)])) + + # Std & flexible-dtype + test = zip_descr((x, z), flatten=True) + assert_equal(test, + np.dtype([('', int), ('A', '|S3'), ('B', float)])) + test = zip_descr((x, z), flatten=False) + assert_equal(test, + np.dtype([('', int), + ('', [('A', '|S3'), ('B', float)])])) + + # Standard & nested dtype + test = zip_descr((x, w), flatten=True) + assert_equal(test, + np.dtype([('', int), + ('a', int), + ('ba', float), ('bb', int)])) + test = zip_descr((x, w), flatten=False) + assert_equal(test, + np.dtype([('', int), + ('', [('a', int), + ('b', [('ba', float), ('bb', int)])])])) + + def test_drop_fields(self): + # Test drop_fields + a = np.array([(1, (2, 3.0)), (4, (5, 6.0))], + dtype=[('a', int), ('b', [('ba', float), ('bb', int)])]) + + # A basic field + test = drop_fields(a, 'a') + control = np.array([((2, 3.0),), ((5, 6.0),)], + dtype=[('b', [('ba', float), ('bb', int)])]) + assert_equal(test, control) + + # Another basic field (but nesting two fields) + test = drop_fields(a, 'b') + control = np.array([(1,), (4,)], dtype=[('a', int)]) + assert_equal(test, control) + + # A nested sub-field + test = drop_fields(a, ['ba', ]) + control = np.array([(1, (3.0,)), (4, (6.0,))], + dtype=[('a', int), ('b', [('bb', int)])]) + assert_equal(test, control) + + # All the nested sub-field from a field: zap that field + test = drop_fields(a, ['ba', 'bb']) + control = np.array([(1,), (4,)], dtype=[('a', int)]) + assert_equal(test, control) + + # dropping all fields results in an array with no fields + test = drop_fields(a, ['a', 'b']) + control = np.array([(), ()], dtype=[]) + assert_equal(test, control) + + def test_rename_fields(self): + # Test rename fields + a = np.array([(1, (2, [3.0, 30.])), (4, (5, [6.0, 60.]))], + dtype=[('a', int), + ('b', [('ba', float), ('bb', (float, 2))])]) + test = rename_fields(a, {'a': 'A', 'bb': 'BB'}) + newdtype = [('A', int), ('b', [('ba', float), ('BB', (float, 2))])] + control = a.view(newdtype) + assert_equal(test.dtype, newdtype) + assert_equal(test, control) + + def test_get_names(self): + # Test get_names + ndtype = np.dtype([('A', '|S3'), ('B', float)]) + test = get_names(ndtype) + assert_equal(test, ('A', 'B')) + + ndtype = np.dtype([('a', int), ('b', [('ba', float), ('bb', int)])]) + test = get_names(ndtype) + assert_equal(test, ('a', ('b', ('ba', 'bb')))) + + ndtype = np.dtype([('a', int), ('b', [])]) + test = get_names(ndtype) + assert_equal(test, ('a', ('b', ()))) + + ndtype = np.dtype([]) + test = get_names(ndtype) + assert_equal(test, ()) + + def test_get_names_flat(self): + # Test get_names_flat + ndtype = np.dtype([('A', '|S3'), ('B', float)]) + test = get_names_flat(ndtype) + assert_equal(test, ('A', 'B')) + + ndtype = np.dtype([('a', int), ('b', [('ba', float), ('bb', int)])]) + test = get_names_flat(ndtype) + assert_equal(test, ('a', 'b', 'ba', 'bb')) + + ndtype = np.dtype([('a', int), ('b', [])]) + test = get_names_flat(ndtype) + assert_equal(test, ('a', 'b')) + + ndtype = np.dtype([]) + test = get_names_flat(ndtype) + assert_equal(test, ()) + + def test_get_fieldstructure(self): + # Test get_fieldstructure + + # No nested fields + ndtype = np.dtype([('A', '|S3'), ('B', float)]) + test = get_fieldstructure(ndtype) + assert_equal(test, {'A': [], 'B': []}) + + # One 1-nested field + ndtype = np.dtype([('A', int), ('B', [('BA', float), ('BB', '|S1')])]) + test = get_fieldstructure(ndtype) + assert_equal(test, {'A': [], 'B': [], 'BA': ['B', ], 'BB': ['B']}) + + # One 2-nested fields + ndtype = np.dtype([('A', int), + ('B', [('BA', int), + ('BB', [('BBA', int), ('BBB', int)])])]) + test = get_fieldstructure(ndtype) + control = {'A': [], 'B': [], 'BA': ['B'], 'BB': ['B'], + 'BBA': ['B', 'BB'], 'BBB': ['B', 'BB']} + assert_equal(test, control) + + # 0 fields + ndtype = np.dtype([]) + test = get_fieldstructure(ndtype) + assert_equal(test, {}) + + def test_find_duplicates(self): + # Test find_duplicates + a = ma.array([(2, (2., 'B')), (1, (2., 'B')), (2, (2., 'B')), + (1, (1., 'B')), (2, (2., 'B')), (2, (2., 'C'))], + mask=[(0, (0, 0)), (0, (0, 0)), (0, (0, 0)), + (0, (0, 0)), (1, (0, 0)), (0, (1, 0))], + dtype=[('A', int), ('B', [('BA', float), ('BB', '|S1')])]) + + test = find_duplicates(a, ignoremask=False, return_index=True) + control = [0, 2] + assert_equal(sorted(test[-1]), control) + assert_equal(test[0], a[test[-1]]) + + test = find_duplicates(a, key='A', return_index=True) + control = [0, 1, 2, 3, 5] + assert_equal(sorted(test[-1]), control) + assert_equal(test[0], a[test[-1]]) + + test = find_duplicates(a, key='B', return_index=True) + control = [0, 1, 2, 4] + assert_equal(sorted(test[-1]), control) + assert_equal(test[0], a[test[-1]]) + + test = find_duplicates(a, key='BA', return_index=True) + control = [0, 1, 2, 4] + assert_equal(sorted(test[-1]), control) + assert_equal(test[0], a[test[-1]]) + + test = find_duplicates(a, key='BB', return_index=True) + control = [0, 1, 2, 3, 4] + assert_equal(sorted(test[-1]), control) + assert_equal(test[0], a[test[-1]]) + + def test_find_duplicates_ignoremask(self): + # Test the ignoremask option of find_duplicates + ndtype = [('a', int)] + a = ma.array([1, 1, 1, 2, 2, 3, 3], + mask=[0, 0, 1, 0, 0, 0, 1]).view(ndtype) + test = find_duplicates(a, ignoremask=True, return_index=True) + control = [0, 1, 3, 4] + assert_equal(sorted(test[-1]), control) + assert_equal(test[0], a[test[-1]]) + + test = find_duplicates(a, ignoremask=False, return_index=True) + control = [0, 1, 2, 3, 4, 6] + assert_equal(sorted(test[-1]), control) + assert_equal(test[0], a[test[-1]]) + + def test_repack_fields(self): + dt = np.dtype('u1,f4,i8', align=True) + a = np.zeros(2, dtype=dt) + + assert_equal(repack_fields(dt), np.dtype('u1,f4,i8')) + assert_equal(repack_fields(a).itemsize, 13) + assert_equal(repack_fields(repack_fields(dt), align=True), dt) + + # make sure type is preserved + dt = np.dtype((np.record, dt)) + assert_(repack_fields(dt).type is np.record) + + def test_structured_to_unstructured(self, tmp_path): + a = np.zeros(4, dtype=[('a', 'i4'), ('b', 'f4,u2'), ('c', 'f4', 2)]) + out = structured_to_unstructured(a) + assert_equal(out, np.zeros((4,5), dtype='f8')) + + b = np.array([(1, 2, 5), (4, 5, 7), (7, 8 ,11), (10, 11, 12)], + dtype=[('x', 'i4'), ('y', 'f4'), ('z', 'f8')]) + out = np.mean(structured_to_unstructured(b[['x', 'z']]), axis=-1) + assert_equal(out, np.array([ 3. , 5.5, 9. , 11. ])) + out = np.mean(structured_to_unstructured(b[['x']]), axis=-1) + assert_equal(out, np.array([ 1. , 4. , 7. , 10. ])) + + c = np.arange(20).reshape((4,5)) + out = unstructured_to_structured(c, a.dtype) + want = np.array([( 0, ( 1., 2), [ 3., 4.]), + ( 5, ( 6., 7), [ 8., 9.]), + (10, (11., 12), [13., 14.]), + (15, (16., 17), [18., 19.])], + dtype=[('a', 'i4'), + ('b', [('f0', 'f4'), ('f1', 'u2')]), + ('c', 'f4', (2,))]) + assert_equal(out, want) + + d = np.array([(1, 2, 5), (4, 5, 7), (7, 8 ,11), (10, 11, 12)], + dtype=[('x', 'i4'), ('y', 'f4'), ('z', 'f8')]) + assert_equal(apply_along_fields(np.mean, d), + np.array([ 8.0/3, 16.0/3, 26.0/3, 11. ])) + assert_equal(apply_along_fields(np.mean, d[['x', 'z']]), + np.array([ 3. , 5.5, 9. , 11. ])) + + # check that for uniform field dtypes we get a view, not a copy: + d = np.array([(1, 2, 5), (4, 5, 7), (7, 8 ,11), (10, 11, 12)], + dtype=[('x', 'i4'), ('y', 'i4'), ('z', 'i4')]) + dd = structured_to_unstructured(d) + ddd = unstructured_to_structured(dd, d.dtype) + assert_(np.shares_memory(dd, d)) + assert_(np.shares_memory(ddd, d)) + + # check that reversing the order of attributes works + dd_attrib_rev = structured_to_unstructured(d[['z', 'x']]) + assert_equal(dd_attrib_rev, [[5, 1], [7, 4], [11, 7], [12, 10]]) + assert_(np.shares_memory(dd_attrib_rev, d)) + + # including uniform fields with subarrays unpacked + d = np.array([(1, [2, 3], [[ 4, 5], [ 6, 7]]), + (8, [9, 10], [[11, 12], [13, 14]])], + dtype=[('x0', 'i4'), ('x1', ('i4', 2)), + ('x2', ('i4', (2, 2)))]) + dd = structured_to_unstructured(d) + ddd = unstructured_to_structured(dd, d.dtype) + assert_(np.shares_memory(dd, d)) + assert_(np.shares_memory(ddd, d)) + + # check that reversing with sub-arrays works as expected + d_rev = d[::-1] + dd_rev = structured_to_unstructured(d_rev) + assert_equal(dd_rev, [[8, 9, 10, 11, 12, 13, 14], + [1, 2, 3, 4, 5, 6, 7]]) + + # check that sub-arrays keep the order of their values + d_attrib_rev = d[['x2', 'x1', 'x0']] + dd_attrib_rev = structured_to_unstructured(d_attrib_rev) + assert_equal(dd_attrib_rev, [[4, 5, 6, 7, 2, 3, 1], + [11, 12, 13, 14, 9, 10, 8]]) + + # with ignored field at the end + d = np.array([(1, [2, 3], [[4, 5], [6, 7]], 32), + (8, [9, 10], [[11, 12], [13, 14]], 64)], + dtype=[('x0', 'i4'), ('x1', ('i4', 2)), + ('x2', ('i4', (2, 2))), ('ignored', 'u1')]) + dd = structured_to_unstructured(d[['x0', 'x1', 'x2']]) + assert_(np.shares_memory(dd, d)) + assert_equal(dd, [[1, 2, 3, 4, 5, 6, 7], + [8, 9, 10, 11, 12, 13, 14]]) + + # test that nested fields with identical names don't break anything + point = np.dtype([('x', int), ('y', int)]) + triangle = np.dtype([('a', point), ('b', point), ('c', point)]) + arr = np.zeros(10, triangle) + res = structured_to_unstructured(arr, dtype=int) + assert_equal(res, np.zeros((10, 6), dtype=int)) + + + # test nested combinations of subarrays and structured arrays, gh-13333 + def subarray(dt, shape): + return np.dtype((dt, shape)) + + def structured(*dts): + return np.dtype([('x{}'.format(i), dt) for i, dt in enumerate(dts)]) + + def inspect(dt, dtype=None): + arr = np.zeros((), dt) + ret = structured_to_unstructured(arr, dtype=dtype) + backarr = unstructured_to_structured(ret, dt) + return ret.shape, ret.dtype, backarr.dtype + + dt = structured(subarray(structured(np.int32, np.int32), 3)) + assert_equal(inspect(dt), ((6,), np.int32, dt)) + + dt = structured(subarray(subarray(np.int32, 2), 2)) + assert_equal(inspect(dt), ((4,), np.int32, dt)) + + dt = structured(np.int32) + assert_equal(inspect(dt), ((1,), np.int32, dt)) + + dt = structured(np.int32, subarray(subarray(np.int32, 2), 2)) + assert_equal(inspect(dt), ((5,), np.int32, dt)) + + dt = structured() + assert_raises(ValueError, structured_to_unstructured, np.zeros(3, dt)) + + # these currently don't work, but we may make it work in the future + assert_raises(NotImplementedError, structured_to_unstructured, + np.zeros(3, dt), dtype=np.int32) + assert_raises(NotImplementedError, unstructured_to_structured, + np.zeros((3,0), dtype=np.int32)) + + # test supported ndarray subclasses + d_plain = np.array([(1, 2), (3, 4)], dtype=[('a', 'i4'), ('b', 'i4')]) + dd_expected = structured_to_unstructured(d_plain, copy=True) + + # recarray + d = d_plain.view(np.recarray) + + dd = structured_to_unstructured(d, copy=False) + ddd = structured_to_unstructured(d, copy=True) + assert_(np.shares_memory(d, dd)) + assert_(type(dd) is np.recarray) + assert_(type(ddd) is np.recarray) + assert_equal(dd, dd_expected) + assert_equal(ddd, dd_expected) + + # memmap + d = np.memmap(tmp_path / 'memmap', + mode='w+', + dtype=d_plain.dtype, + shape=d_plain.shape) + d[:] = d_plain + dd = structured_to_unstructured(d, copy=False) + ddd = structured_to_unstructured(d, copy=True) + assert_(np.shares_memory(d, dd)) + assert_(type(dd) is np.memmap) + assert_(type(ddd) is np.memmap) + assert_equal(dd, dd_expected) + assert_equal(ddd, dd_expected) + + def test_unstructured_to_structured(self): + # test if dtype is the args of np.dtype + a = np.zeros((20, 2)) + test_dtype_args = [('x', float), ('y', float)] + test_dtype = np.dtype(test_dtype_args) + field1 = unstructured_to_structured(a, dtype=test_dtype_args) # now + field2 = unstructured_to_structured(a, dtype=test_dtype) # before + assert_equal(field1, field2) + + def test_field_assignment_by_name(self): + a = np.ones(2, dtype=[('a', 'i4'), ('b', 'f8'), ('c', 'u1')]) + newdt = [('b', 'f4'), ('c', 'u1')] + + assert_equal(require_fields(a, newdt), np.ones(2, newdt)) + + b = np.array([(1,2), (3,4)], dtype=newdt) + assign_fields_by_name(a, b, zero_unassigned=False) + assert_equal(a, np.array([(1,1,2),(1,3,4)], dtype=a.dtype)) + assign_fields_by_name(a, b) + assert_equal(a, np.array([(0,1,2),(0,3,4)], dtype=a.dtype)) + + # test nested fields + a = np.ones(2, dtype=[('a', [('b', 'f8'), ('c', 'u1')])]) + newdt = [('a', [('c', 'u1')])] + assert_equal(require_fields(a, newdt), np.ones(2, newdt)) + b = np.array([((2,),), ((3,),)], dtype=newdt) + assign_fields_by_name(a, b, zero_unassigned=False) + assert_equal(a, np.array([((1,2),), ((1,3),)], dtype=a.dtype)) + assign_fields_by_name(a, b) + assert_equal(a, np.array([((0,2),), ((0,3),)], dtype=a.dtype)) + + # test unstructured code path for 0d arrays + a, b = np.array(3), np.array(0) + assign_fields_by_name(b, a) + assert_equal(b[()], 3) + + +class TestRecursiveFillFields: + # Test recursive_fill_fields. + def test_simple_flexible(self): + # Test recursive_fill_fields on flexible-array + a = np.array([(1, 10.), (2, 20.)], dtype=[('A', int), ('B', float)]) + b = np.zeros((3,), dtype=a.dtype) + test = recursive_fill_fields(a, b) + control = np.array([(1, 10.), (2, 20.), (0, 0.)], + dtype=[('A', int), ('B', float)]) + assert_equal(test, control) + + def test_masked_flexible(self): + # Test recursive_fill_fields on masked flexible-array + a = ma.array([(1, 10.), (2, 20.)], mask=[(0, 1), (1, 0)], + dtype=[('A', int), ('B', float)]) + b = ma.zeros((3,), dtype=a.dtype) + test = recursive_fill_fields(a, b) + control = ma.array([(1, 10.), (2, 20.), (0, 0.)], + mask=[(0, 1), (1, 0), (0, 0)], + dtype=[('A', int), ('B', float)]) + assert_equal(test, control) + + +class TestMergeArrays: + # Test merge_arrays + + def setup_method(self): + x = np.array([1, 2, ]) + y = np.array([10, 20, 30]) + z = np.array( + [('A', 1.), ('B', 2.)], dtype=[('A', '|S3'), ('B', float)]) + w = np.array( + [(1, (2, 3.0, ())), (4, (5, 6.0, ()))], + dtype=[('a', int), ('b', [('ba', float), ('bb', int), ('bc', [])])]) + self.data = (w, x, y, z) + + def test_solo(self): + # Test merge_arrays on a single array. + (_, x, _, z) = self.data + + test = merge_arrays(x) + control = np.array([(1,), (2,)], dtype=[('f0', int)]) + assert_equal(test, control) + test = merge_arrays((x,)) + assert_equal(test, control) + + test = merge_arrays(z, flatten=False) + assert_equal(test, z) + test = merge_arrays(z, flatten=True) + assert_equal(test, z) + + def test_solo_w_flatten(self): + # Test merge_arrays on a single array w & w/o flattening + w = self.data[0] + test = merge_arrays(w, flatten=False) + assert_equal(test, w) + + test = merge_arrays(w, flatten=True) + control = np.array([(1, 2, 3.0), (4, 5, 6.0)], + dtype=[('a', int), ('ba', float), ('bb', int)]) + assert_equal(test, control) + + def test_standard(self): + # Test standard & standard + # Test merge arrays + (_, x, y, _) = self.data + test = merge_arrays((x, y), usemask=False) + control = np.array([(1, 10), (2, 20), (-1, 30)], + dtype=[('f0', int), ('f1', int)]) + assert_equal(test, control) + + test = merge_arrays((x, y), usemask=True) + control = ma.array([(1, 10), (2, 20), (-1, 30)], + mask=[(0, 0), (0, 0), (1, 0)], + dtype=[('f0', int), ('f1', int)]) + assert_equal(test, control) + assert_equal(test.mask, control.mask) + + def test_flatten(self): + # Test standard & flexible + (_, x, _, z) = self.data + test = merge_arrays((x, z), flatten=True) + control = np.array([(1, 'A', 1.), (2, 'B', 2.)], + dtype=[('f0', int), ('A', '|S3'), ('B', float)]) + assert_equal(test, control) + + test = merge_arrays((x, z), flatten=False) + control = np.array([(1, ('A', 1.)), (2, ('B', 2.))], + dtype=[('f0', int), + ('f1', [('A', '|S3'), ('B', float)])]) + assert_equal(test, control) + + def test_flatten_wflexible(self): + # Test flatten standard & nested + (w, x, _, _) = self.data + test = merge_arrays((x, w), flatten=True) + control = np.array([(1, 1, 2, 3.0), (2, 4, 5, 6.0)], + dtype=[('f0', int), + ('a', int), ('ba', float), ('bb', int)]) + assert_equal(test, control) + + test = merge_arrays((x, w), flatten=False) + controldtype = [('f0', int), + ('f1', [('a', int), + ('b', [('ba', float), ('bb', int), ('bc', [])])])] + control = np.array([(1., (1, (2, 3.0, ()))), (2, (4, (5, 6.0, ())))], + dtype=controldtype) + assert_equal(test, control) + + def test_wmasked_arrays(self): + # Test merge_arrays masked arrays + (_, x, _, _) = self.data + mx = ma.array([1, 2, 3], mask=[1, 0, 0]) + test = merge_arrays((x, mx), usemask=True) + control = ma.array([(1, 1), (2, 2), (-1, 3)], + mask=[(0, 1), (0, 0), (1, 0)], + dtype=[('f0', int), ('f1', int)]) + assert_equal(test, control) + test = merge_arrays((x, mx), usemask=True, asrecarray=True) + assert_equal(test, control) + assert_(isinstance(test, MaskedRecords)) + + def test_w_singlefield(self): + # Test single field + test = merge_arrays((np.array([1, 2]).view([('a', int)]), + np.array([10., 20., 30.])),) + control = ma.array([(1, 10.), (2, 20.), (-1, 30.)], + mask=[(0, 0), (0, 0), (1, 0)], + dtype=[('a', int), ('f1', float)]) + assert_equal(test, control) + + def test_w_shorter_flex(self): + # Test merge_arrays w/ a shorter flexndarray. + z = self.data[-1] + + # Fixme, this test looks incomplete and broken + #test = merge_arrays((z, np.array([10, 20, 30]).view([('C', int)]))) + #control = np.array([('A', 1., 10), ('B', 2., 20), ('-1', -1, 20)], + # dtype=[('A', '|S3'), ('B', float), ('C', int)]) + #assert_equal(test, control) + + # Hack to avoid pyflakes warnings about unused variables + merge_arrays((z, np.array([10, 20, 30]).view([('C', int)]))) + np.array([('A', 1., 10), ('B', 2., 20), ('-1', -1, 20)], + dtype=[('A', '|S3'), ('B', float), ('C', int)]) + + def test_singlerecord(self): + (_, x, y, z) = self.data + test = merge_arrays((x[0], y[0], z[0]), usemask=False) + control = np.array([(1, 10, ('A', 1))], + dtype=[('f0', int), + ('f1', int), + ('f2', [('A', '|S3'), ('B', float)])]) + assert_equal(test, control) + + +class TestAppendFields: + # Test append_fields + + def setup_method(self): + x = np.array([1, 2, ]) + y = np.array([10, 20, 30]) + z = np.array( + [('A', 1.), ('B', 2.)], dtype=[('A', '|S3'), ('B', float)]) + w = np.array([(1, (2, 3.0)), (4, (5, 6.0))], + dtype=[('a', int), ('b', [('ba', float), ('bb', int)])]) + self.data = (w, x, y, z) + + def test_append_single(self): + # Test simple case + (_, x, _, _) = self.data + test = append_fields(x, 'A', data=[10, 20, 30]) + control = ma.array([(1, 10), (2, 20), (-1, 30)], + mask=[(0, 0), (0, 0), (1, 0)], + dtype=[('f0', int), ('A', int)],) + assert_equal(test, control) + + def test_append_double(self): + # Test simple case + (_, x, _, _) = self.data + test = append_fields(x, ('A', 'B'), data=[[10, 20, 30], [100, 200]]) + control = ma.array([(1, 10, 100), (2, 20, 200), (-1, 30, -1)], + mask=[(0, 0, 0), (0, 0, 0), (1, 0, 1)], + dtype=[('f0', int), ('A', int), ('B', int)],) + assert_equal(test, control) + + def test_append_on_flex(self): + # Test append_fields on flexible type arrays + z = self.data[-1] + test = append_fields(z, 'C', data=[10, 20, 30]) + control = ma.array([('A', 1., 10), ('B', 2., 20), (-1, -1., 30)], + mask=[(0, 0, 0), (0, 0, 0), (1, 1, 0)], + dtype=[('A', '|S3'), ('B', float), ('C', int)],) + assert_equal(test, control) + + def test_append_on_nested(self): + # Test append_fields on nested fields + w = self.data[0] + test = append_fields(w, 'C', data=[10, 20, 30]) + control = ma.array([(1, (2, 3.0), 10), + (4, (5, 6.0), 20), + (-1, (-1, -1.), 30)], + mask=[( + 0, (0, 0), 0), (0, (0, 0), 0), (1, (1, 1), 0)], + dtype=[('a', int), + ('b', [('ba', float), ('bb', int)]), + ('C', int)],) + assert_equal(test, control) + + +class TestStackArrays: + # Test stack_arrays + def setup_method(self): + x = np.array([1, 2, ]) + y = np.array([10, 20, 30]) + z = np.array( + [('A', 1.), ('B', 2.)], dtype=[('A', '|S3'), ('B', float)]) + w = np.array([(1, (2, 3.0)), (4, (5, 6.0))], + dtype=[('a', int), ('b', [('ba', float), ('bb', int)])]) + self.data = (w, x, y, z) + + def test_solo(self): + # Test stack_arrays on single arrays + (_, x, _, _) = self.data + test = stack_arrays((x,)) + assert_equal(test, x) + assert_(test is x) + + test = stack_arrays(x) + assert_equal(test, x) + assert_(test is x) + + def test_unnamed_fields(self): + # Tests combinations of arrays w/o named fields + (_, x, y, _) = self.data + + test = stack_arrays((x, x), usemask=False) + control = np.array([1, 2, 1, 2]) + assert_equal(test, control) + + test = stack_arrays((x, y), usemask=False) + control = np.array([1, 2, 10, 20, 30]) + assert_equal(test, control) + + test = stack_arrays((y, x), usemask=False) + control = np.array([10, 20, 30, 1, 2]) + assert_equal(test, control) + + def test_unnamed_and_named_fields(self): + # Test combination of arrays w/ & w/o named fields + (_, x, _, z) = self.data + + test = stack_arrays((x, z)) + control = ma.array([(1, -1, -1), (2, -1, -1), + (-1, 'A', 1), (-1, 'B', 2)], + mask=[(0, 1, 1), (0, 1, 1), + (1, 0, 0), (1, 0, 0)], + dtype=[('f0', int), ('A', '|S3'), ('B', float)]) + assert_equal(test, control) + assert_equal(test.mask, control.mask) + + test = stack_arrays((z, x)) + control = ma.array([('A', 1, -1), ('B', 2, -1), + (-1, -1, 1), (-1, -1, 2), ], + mask=[(0, 0, 1), (0, 0, 1), + (1, 1, 0), (1, 1, 0)], + dtype=[('A', '|S3'), ('B', float), ('f2', int)]) + assert_equal(test, control) + assert_equal(test.mask, control.mask) + + test = stack_arrays((z, z, x)) + control = ma.array([('A', 1, -1), ('B', 2, -1), + ('A', 1, -1), ('B', 2, -1), + (-1, -1, 1), (-1, -1, 2), ], + mask=[(0, 0, 1), (0, 0, 1), + (0, 0, 1), (0, 0, 1), + (1, 1, 0), (1, 1, 0)], + dtype=[('A', '|S3'), ('B', float), ('f2', int)]) + assert_equal(test, control) + + def test_matching_named_fields(self): + # Test combination of arrays w/ matching field names + (_, x, _, z) = self.data + zz = np.array([('a', 10., 100.), ('b', 20., 200.), ('c', 30., 300.)], + dtype=[('A', '|S3'), ('B', float), ('C', float)]) + test = stack_arrays((z, zz)) + control = ma.array([('A', 1, -1), ('B', 2, -1), + ( + 'a', 10., 100.), ('b', 20., 200.), ('c', 30., 300.)], + dtype=[('A', '|S3'), ('B', float), ('C', float)], + mask=[(0, 0, 1), (0, 0, 1), + (0, 0, 0), (0, 0, 0), (0, 0, 0)]) + assert_equal(test, control) + assert_equal(test.mask, control.mask) + + test = stack_arrays((z, zz, x)) + ndtype = [('A', '|S3'), ('B', float), ('C', float), ('f3', int)] + control = ma.array([('A', 1, -1, -1), ('B', 2, -1, -1), + ('a', 10., 100., -1), ('b', 20., 200., -1), + ('c', 30., 300., -1), + (-1, -1, -1, 1), (-1, -1, -1, 2)], + dtype=ndtype, + mask=[(0, 0, 1, 1), (0, 0, 1, 1), + (0, 0, 0, 1), (0, 0, 0, 1), (0, 0, 0, 1), + (1, 1, 1, 0), (1, 1, 1, 0)]) + assert_equal(test, control) + assert_equal(test.mask, control.mask) + + def test_defaults(self): + # Test defaults: no exception raised if keys of defaults are not fields. + (_, _, _, z) = self.data + zz = np.array([('a', 10., 100.), ('b', 20., 200.), ('c', 30., 300.)], + dtype=[('A', '|S3'), ('B', float), ('C', float)]) + defaults = {'A': '???', 'B': -999., 'C': -9999., 'D': -99999.} + test = stack_arrays((z, zz), defaults=defaults) + control = ma.array([('A', 1, -9999.), ('B', 2, -9999.), + ( + 'a', 10., 100.), ('b', 20., 200.), ('c', 30., 300.)], + dtype=[('A', '|S3'), ('B', float), ('C', float)], + mask=[(0, 0, 1), (0, 0, 1), + (0, 0, 0), (0, 0, 0), (0, 0, 0)]) + assert_equal(test, control) + assert_equal(test.data, control.data) + assert_equal(test.mask, control.mask) + + def test_autoconversion(self): + # Tests autoconversion + adtype = [('A', int), ('B', bool), ('C', float)] + a = ma.array([(1, 2, 3)], mask=[(0, 1, 0)], dtype=adtype) + bdtype = [('A', int), ('B', float), ('C', float)] + b = ma.array([(4, 5, 6)], dtype=bdtype) + control = ma.array([(1, 2, 3), (4, 5, 6)], mask=[(0, 1, 0), (0, 0, 0)], + dtype=bdtype) + test = stack_arrays((a, b), autoconvert=True) + assert_equal(test, control) + assert_equal(test.mask, control.mask) + with assert_raises(TypeError): + stack_arrays((a, b), autoconvert=False) + + def test_checktitles(self): + # Test using titles in the field names + adtype = [(('a', 'A'), int), (('b', 'B'), bool), (('c', 'C'), float)] + a = ma.array([(1, 2, 3)], mask=[(0, 1, 0)], dtype=adtype) + bdtype = [(('a', 'A'), int), (('b', 'B'), bool), (('c', 'C'), float)] + b = ma.array([(4, 5, 6)], dtype=bdtype) + test = stack_arrays((a, b)) + control = ma.array([(1, 2, 3), (4, 5, 6)], mask=[(0, 1, 0), (0, 0, 0)], + dtype=bdtype) + assert_equal(test, control) + assert_equal(test.mask, control.mask) + + def test_subdtype(self): + z = np.array([ + ('A', 1), ('B', 2) + ], dtype=[('A', '|S3'), ('B', float, (1,))]) + zz = np.array([ + ('a', [10.], 100.), ('b', [20.], 200.), ('c', [30.], 300.) + ], dtype=[('A', '|S3'), ('B', float, (1,)), ('C', float)]) + + res = stack_arrays((z, zz)) + expected = ma.array( + data=[ + (b'A', [1.0], 0), + (b'B', [2.0], 0), + (b'a', [10.0], 100.0), + (b'b', [20.0], 200.0), + (b'c', [30.0], 300.0)], + mask=[ + (False, [False], True), + (False, [False], True), + (False, [False], False), + (False, [False], False), + (False, [False], False) + ], + dtype=zz.dtype + ) + assert_equal(res.dtype, expected.dtype) + assert_equal(res, expected) + assert_equal(res.mask, expected.mask) + + +class TestJoinBy: + def setup_method(self): + self.a = np.array(list(zip(np.arange(10), np.arange(50, 60), + np.arange(100, 110))), + dtype=[('a', int), ('b', int), ('c', int)]) + self.b = np.array(list(zip(np.arange(5, 15), np.arange(65, 75), + np.arange(100, 110))), + dtype=[('a', int), ('b', int), ('d', int)]) + + def test_inner_join(self): + # Basic test of join_by + a, b = self.a, self.b + + test = join_by('a', a, b, jointype='inner') + control = np.array([(5, 55, 65, 105, 100), (6, 56, 66, 106, 101), + (7, 57, 67, 107, 102), (8, 58, 68, 108, 103), + (9, 59, 69, 109, 104)], + dtype=[('a', int), ('b1', int), ('b2', int), + ('c', int), ('d', int)]) + assert_equal(test, control) + + def test_join(self): + a, b = self.a, self.b + + # Fixme, this test is broken + #test = join_by(('a', 'b'), a, b) + #control = np.array([(5, 55, 105, 100), (6, 56, 106, 101), + # (7, 57, 107, 102), (8, 58, 108, 103), + # (9, 59, 109, 104)], + # dtype=[('a', int), ('b', int), + # ('c', int), ('d', int)]) + #assert_equal(test, control) + + # Hack to avoid pyflakes unused variable warnings + join_by(('a', 'b'), a, b) + np.array([(5, 55, 105, 100), (6, 56, 106, 101), + (7, 57, 107, 102), (8, 58, 108, 103), + (9, 59, 109, 104)], + dtype=[('a', int), ('b', int), + ('c', int), ('d', int)]) + + def test_join_subdtype(self): + # tests the bug in https://stackoverflow.com/q/44769632/102441 + foo = np.array([(1,)], + dtype=[('key', int)]) + bar = np.array([(1, np.array([1,2,3]))], + dtype=[('key', int), ('value', 'uint16', 3)]) + res = join_by('key', foo, bar) + assert_equal(res, bar.view(ma.MaskedArray)) + + def test_outer_join(self): + a, b = self.a, self.b + + test = join_by(('a', 'b'), a, b, 'outer') + control = ma.array([(0, 50, 100, -1), (1, 51, 101, -1), + (2, 52, 102, -1), (3, 53, 103, -1), + (4, 54, 104, -1), (5, 55, 105, -1), + (5, 65, -1, 100), (6, 56, 106, -1), + (6, 66, -1, 101), (7, 57, 107, -1), + (7, 67, -1, 102), (8, 58, 108, -1), + (8, 68, -1, 103), (9, 59, 109, -1), + (9, 69, -1, 104), (10, 70, -1, 105), + (11, 71, -1, 106), (12, 72, -1, 107), + (13, 73, -1, 108), (14, 74, -1, 109)], + mask=[(0, 0, 0, 1), (0, 0, 0, 1), + (0, 0, 0, 1), (0, 0, 0, 1), + (0, 0, 0, 1), (0, 0, 0, 1), + (0, 0, 1, 0), (0, 0, 0, 1), + (0, 0, 1, 0), (0, 0, 0, 1), + (0, 0, 1, 0), (0, 0, 0, 1), + (0, 0, 1, 0), (0, 0, 0, 1), + (0, 0, 1, 0), (0, 0, 1, 0), + (0, 0, 1, 0), (0, 0, 1, 0), + (0, 0, 1, 0), (0, 0, 1, 0)], + dtype=[('a', int), ('b', int), + ('c', int), ('d', int)]) + assert_equal(test, control) + + def test_leftouter_join(self): + a, b = self.a, self.b + + test = join_by(('a', 'b'), a, b, 'leftouter') + control = ma.array([(0, 50, 100, -1), (1, 51, 101, -1), + (2, 52, 102, -1), (3, 53, 103, -1), + (4, 54, 104, -1), (5, 55, 105, -1), + (6, 56, 106, -1), (7, 57, 107, -1), + (8, 58, 108, -1), (9, 59, 109, -1)], + mask=[(0, 0, 0, 1), (0, 0, 0, 1), + (0, 0, 0, 1), (0, 0, 0, 1), + (0, 0, 0, 1), (0, 0, 0, 1), + (0, 0, 0, 1), (0, 0, 0, 1), + (0, 0, 0, 1), (0, 0, 0, 1)], + dtype=[('a', int), ('b', int), ('c', int), ('d', int)]) + assert_equal(test, control) + + def test_different_field_order(self): + # gh-8940 + a = np.zeros(3, dtype=[('a', 'i4'), ('b', 'f4'), ('c', 'u1')]) + b = np.ones(3, dtype=[('c', 'u1'), ('b', 'f4'), ('a', 'i4')]) + # this should not give a FutureWarning: + j = join_by(['c', 'b'], a, b, jointype='inner', usemask=False) + assert_equal(j.dtype.names, ['b', 'c', 'a1', 'a2']) + + def test_duplicate_keys(self): + a = np.zeros(3, dtype=[('a', 'i4'), ('b', 'f4'), ('c', 'u1')]) + b = np.ones(3, dtype=[('c', 'u1'), ('b', 'f4'), ('a', 'i4')]) + assert_raises(ValueError, join_by, ['a', 'b', 'b'], a, b) + + def test_same_name_different_dtypes_key(self): + a_dtype = np.dtype([('key', 'S5'), ('value', ' 1`): + #assert expr3.subs(Derivative(f(x), x), y) == Derivative(y, (x, n-1)) + assert expr3 == Derivative(f(x), (x, n)) + + assert diff(x, (x, n)) == Piecewise((x, Eq(n, 0)), (1, Eq(n, 1)), (0, True)) + assert diff(2*x, (x, n)).dummy_eq( + Sum(Piecewise((2*x*factorial(n)/(factorial(y)*factorial(-y + n)), + Eq(y, 0) & Eq(Max(0, -y + n), 0)), + (2*factorial(n)/(factorial(y)*factorial(-y + n)), Eq(y, 0) & Eq(Max(0, + -y + n), 1)), (0, True)), (y, 0, n))) + # TODO: assert diff(x**2, (x, n)) == x**(2-n)*ff(2, n) + exprm = x*sin(x) + mul_diff = diff(exprm, (x, n)) + assert isinstance(mul_diff, Sum) + for i in range(5): + assert mul_diff.subs(n, i).doit() == exprm.diff((x, i)).expand() + + exprm2 = 2*y*x*sin(x)*cos(x)*log(x)*exp(x) + dex = exprm2.diff((x, n)) + assert isinstance(dex, Sum) + for i in range(7): + assert dex.subs(n, i).doit().expand() == \ + exprm2.diff((x, i)).expand() + + assert (cos(x)*sin(y)).diff([[x, y, z]]) == NDimArray([ + -sin(x)*sin(y), cos(x)*cos(y), 0]) + + +def test_issue_16160(): + assert Derivative(x**3, (x, x)).subs(x, 2) == Subs( + Derivative(x**3, (x, 2)), x, 2) + assert Derivative(1 + x**3, (x, x)).subs(x, 0 + ) == Derivative(1 + y**3, (y, 0)).subs(y, 0) diff --git a/shared/package-files/ea/ea40329aec9126d43ac9a8b60984ffaf6b9d8762d26acf4c4edd1dff95ab8725/blob b/shared/package-files/ea/ea40329aec9126d43ac9a8b60984ffaf6b9d8762d26acf4c4edd1dff95ab8725/blob new file mode 100644 index 0000000000000000000000000000000000000000..eb0ea998728cff73afd785f8cdcdfcff5d835d53 --- /dev/null +++ b/shared/package-files/ea/ea40329aec9126d43ac9a8b60984ffaf6b9d8762d26acf4c4edd1dff95ab8725/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API ::std::tuple mps_convolution_transpose_backward_out(at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, ::std::array output_mask); +TORCH_API ::std::tuple mps_convolution_transpose_backward_outf(const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef stride, at::IntArrayRef dilation, int64_t groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1); +TORCH_API ::std::tuple mps_convolution_transpose_backward_symint_out(at::Tensor & out0, at::Tensor & out1, const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, ::std::array output_mask); +TORCH_API ::std::tuple mps_convolution_transpose_backward_symint_outf(const at::Tensor & self, const at::Tensor & grad_output, const at::Tensor & weight, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef stride, c10::SymIntArrayRef dilation, c10::SymInt groups, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/ea/ea434201b8c6ea7e1baf887599b1bcf2c2646940879322084eb384b1f79982a7/blob b/shared/package-files/ea/ea434201b8c6ea7e1baf887599b1bcf2c2646940879322084eb384b1f79982a7/blob new file mode 100644 index 0000000000000000000000000000000000000000..c458b0bb996c932f10eeeb8f60fb0b1e1d13a3f4 --- /dev/null +++ b/shared/package-files/ea/ea434201b8c6ea7e1baf887599b1bcf2c2646940879322084eb384b1f79982a7/blob @@ -0,0 +1,27 @@ +""" +Generate data sets for testing OLS.fit_regularized + +After running this script, rerun lasso_r_results.R in R to rebuild the +results file "glmnet_r_results.py". + +Currently only tests OLS. Our implementation covers GLS, but it's not +clear if glmnet does. +""" + +import numpy as np + +n = 300 +p = 5 + +rs = np.random.RandomState(83423) + +exog = rs.normal(size=(n, p)) +params = (-1.0) ** np.arange(p) +params[::3] = 0 +expval = np.dot(exog, params) +endog = expval + rs.normal(size=n) +data = np.concatenate((endog[:, None], exog), axis=1) +data = np.around(100 * data) + +fname = "lasso_data.csv" +np.savetxt(fname, data, fmt="%.0f", delimiter=",") diff --git a/shared/package-files/ea/ea43cb0d4193f04bacb00df2f602abfe6ae06393cdbfb61a2b557491e3170fdc/blob b/shared/package-files/ea/ea43cb0d4193f04bacb00df2f602abfe6ae06393cdbfb61a2b557491e3170fdc/blob new file mode 100644 index 0000000000000000000000000000000000000000..48e7fd67cf0f89e5dc6057e5cbae7f07324a0402 --- /dev/null +++ b/shared/package-files/ea/ea43cb0d4193f04bacb00df2f602abfe6ae06393cdbfb61a2b557491e3170fdc/blob @@ -0,0 +1,13 @@ +from .otBase import BaseTTXConverter + + +class table_H_V_A_R_(BaseTTXConverter): + """Horizontal Metrics Variations table + + The ``HVAR`` table contains variations in horizontal glyph metrics + in variable fonts. + + See also https://learn.microsoft.com/en-us/typography/opentype/spec/hvar + """ + + pass diff --git a/shared/package-files/ea/ea44b9937ca3d25a204aa5bb8ca00966109bddadb3ecaf17abe9a4559404718a/blob b/shared/package-files/ea/ea44b9937ca3d25a204aa5bb8ca00966109bddadb3ecaf17abe9a4559404718a/blob new file mode 100644 index 0000000000000000000000000000000000000000..79a2fe58ad007f0c8892d4923d97be3131c4c74e --- /dev/null +++ b/shared/package-files/ea/ea44b9937ca3d25a204aa5bb8ca00966109bddadb3ecaf17abe9a4559404718a/blob @@ -0,0 +1,391 @@ +#pragma once + +#include + +#include +#include + +#include +#include +#include +#include +#include +#include + +#ifndef AT_PER_OPERATOR_HEADERS +#include +#else +#include +#endif + +#if defined(CUDNN_VERSION) && CUDNN_VERSION >= 8907 +#define USE_CUDNN_RNN_V8_API +#endif + +namespace at { namespace native { + +std::string cudnnTypeToString(cudnnDataType_t dtype); + +// TODO: Add constructors for all of the descriptors + +inline int dataSize(cudnnDataType_t dataType) +{ + switch (dataType) { +#if defined(CUDNN_VERSION) && CUDNN_VERSION >= 8200 + case CUDNN_DATA_BFLOAT16: +#endif + case CUDNN_DATA_HALF: return 2; + case CUDNN_DATA_FLOAT: return 4; + default: return 8; + } +} + +// The stride for a size-1 dimensions is not uniquely determined; in +// fact, it can be anything you want, because the fact that the +// tensor is size 1 at this dimension means that you will never actually +// try advancing your pointer by this stride. +// +// However, CuDNN has a much more stringent requirement on strides: +// if you are passing a contiguous input, it better be the case +// that the stride for dim i is the product of the sizes of dims +// i+1 to the end. This stride is indeed uniquely determined. This +// function modifies 'stride' in place so this invariant holds. +template +static inline void fixSizeOneDimStride(int dim, const T *size, T *stride, bool nhwc) { + int64_t z = 1; + int index = 0; + std::vector permutation(dim); + + if (nhwc) { + permutation[index++] = 1; + } + for (int d = dim-1; d > 1; d--) { + permutation[index++] = d; + } + if (!nhwc) { + permutation[index++] = 1; + } + permutation[index++] = 0; + for (int d : permutation) { + if (size[d] == 1) { + stride[d] = z; + } else { + z *= size[d]; + } + } +} + +template +struct DescriptorDeleter { + void operator()(T* x) { + if (x != nullptr) { + AT_CUDNN_CHECK(dtor(x)); + } + } +}; + +// A generic class for wrapping cuDNN descriptor types. All you need +// is to give the underlying type the Descriptor_t points to (usually, +// if it's cudnnTensorDescriptor_t it points to cudnnTensorStruct), +// the constructor and the destructor. Subclasses are responsible +// for defining a set() function to actually set the descriptor. +// +// Descriptors default construct to a nullptr, and have a descriptor +// initialized the first time you call set() or any other initializing +// function. +template +class TORCH_CUDA_CPP_API Descriptor { + public: + // TODO: Figure out why const-correctness doesn't work here + + // Use desc() to access the underlying descriptor pointer in + // a read-only fashion. Most client code should use this. + // If the descriptor was never initialized, this will return + // nullptr. + T* desc() const { return desc_.get(); } + T* desc() { return desc_.get(); } + + // Use mut_desc() to access the underlying descriptor pointer + // if you intend to modify what it points to (e.g., using + // cudnnSetFooDescriptor). This will ensure that the descriptor + // is initialized. Code in this file will use this function. + T* mut_desc() { init(); return desc_.get(); } +protected: + void init() { + if (desc_ == nullptr) { + T* raw_desc; + AT_CUDNN_CHECK(ctor(&raw_desc)); + desc_.reset(raw_desc); + } + } +private: + std::unique_ptr> desc_; +}; + +class TORCH_CUDA_CPP_API RNNDataDescriptor : public Descriptor< + cudnnRNNDataStruct, + &cudnnCreateRNNDataDescriptor, + &cudnnDestroyRNNDataDescriptor> { +public: + void set(const at::Tensor &t, cudnnRNNDataLayout_t layout, int maxSeqLength, int batchSize, int vectorSize, const int* seqLengthArray); +private: + void set(cudnnDataType_t dataType, cudnnRNNDataLayout_t layout, int maxSeqLength, int batchSize, int vectorSize, const int* seqLengthArray) { + AT_CUDNN_CHECK(cudnnSetRNNDataDescriptor(mut_desc(), dataType, layout, maxSeqLength, batchSize, vectorSize, seqLengthArray, NULL)); + } +}; + +class TORCH_CUDA_CPP_API TensorDescriptor : public Descriptor< + cudnnTensorStruct, + &cudnnCreateTensorDescriptor, + &cudnnDestroyTensorDescriptor> { + public: + TensorDescriptor() = default; + explicit TensorDescriptor(const at::Tensor &t, size_t pad = 0) { + set(t, pad); + } + + // Note [CuDNN broadcast padding] + // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + // pad specifies the minimum dimensionality of the tensor descriptor + // we produce (it doesn't have anything to do with, e.g., convolution + // padding). If 't' is lower-dimensional than 'pad', the remaining + // dimensions (on the right) are padded with ones. This doesn't + // affect the underlying data layout. This is particularly useful for + // dealing with a peculiarity of the CuDNN API, which is that broadcasting in CuDNN is + // done in two steps: first, the client code is expected to pad out + // (the dimensions) input tensors to be the same dimension as the + // target broadcast, and then second, CuDNN takes of actually + // broadcasting size 1 dimensions. + + void set(const at::Tensor &t, size_t pad = 0); + void set(const at::Tensor &t, at::MemoryFormat memory_format, size_t pad = 0); + void set(cudnnDataType_t dataType, IntArrayRef sizes, IntArrayRef strides, size_t pad = 0); + + void print(); + +private: + void set(cudnnDataType_t dataType, IntArrayRef sizes, IntArrayRef strides, size_t pad, bool nhwc); + + void set(cudnnDataType_t dataType, int dim, int* size, int* stride, bool nhwc) { + fixSizeOneDimStride(dim, size, stride, nhwc); + AT_CUDNN_CHECK(cudnnSetTensorNdDescriptor(mut_desc(), dataType, dim, size, stride)); + } +}; + +std::ostream& operator<<(std::ostream & out, const TensorDescriptor& d); + +class TORCH_CUDA_CPP_API FilterDescriptor : public Descriptor< + cudnnFilterStruct, + &cudnnCreateFilterDescriptor, + &cudnnDestroyFilterDescriptor> { + public: + void set(const at::Tensor &t, int64_t pad = 0) { + set(t, at::MemoryFormat::Contiguous, pad); + } + + void set(const at::Tensor &t, const at::MemoryFormat memory_format, int64_t pad = 0); + + void print(); +private: + void set(cudnnDataType_t dataType, int dim, int* size, cudnnTensorFormat_t filter_format) { + AT_CUDNN_CHECK(cudnnSetFilterNdDescriptor(mut_desc(), dataType, filter_format, dim, size)); + } +}; + +std::ostream& operator<<(std::ostream & out, const FilterDescriptor& d); + +struct TORCH_CUDA_CPP_API ConvolutionDescriptor + : public Descriptor< + cudnnConvolutionStruct, + &cudnnCreateConvolutionDescriptor, + &cudnnDestroyConvolutionDescriptor> { + void set(cudnnDataType_t dataType, int dim, int* pad, int* stride, int * upscale /* aka dilation */, int groups, bool allow_tf32) { + cudnnDataType_t mathType = dataType; + if (dataType == CUDNN_DATA_HALF) mathType = CUDNN_DATA_FLOAT; + AT_CUDNN_CHECK(cudnnSetConvolutionNdDescriptor(mut_desc(), dim, pad, stride, upscale, + CUDNN_CROSS_CORRELATION, mathType)); + AT_CUDNN_CHECK(cudnnSetConvolutionGroupCount(mut_desc(), groups)); + // See Note [behavior of cudnnFind and cudnnGet] + AT_CUDNN_CHECK(cudnnSetConvolutionMathType(mut_desc(), CUDNN_DEFAULT_MATH)); + if(dataType == CUDNN_DATA_HALF) { + AT_CUDNN_CHECK(cudnnSetConvolutionMathType(mut_desc(), CUDNN_TENSOR_OP_MATH)); + } else if (dataType == CUDNN_DATA_FLOAT && !allow_tf32) { + AT_CUDNN_CHECK(cudnnSetConvolutionMathType(mut_desc(), CUDNN_FMA_MATH)); + } + } +}; + +struct TORCH_CUDA_CPP_API SpatialTransformerDescriptor + : public Descriptor< + cudnnSpatialTransformerStruct, + &cudnnCreateSpatialTransformerDescriptor, + &cudnnDestroySpatialTransformerDescriptor> { + void set(cudnnDataType_t dataType, int dim, int* size) { + AT_CUDNN_CHECK(cudnnSetSpatialTransformerNdDescriptor(mut_desc(), CUDNN_SAMPLER_BILINEAR, dataType, dim, size)); + } +}; + +struct TORCH_CUDA_CPP_API DropoutDescriptor + : public Descriptor< + cudnnDropoutStruct, + &cudnnCreateDropoutDescriptor, + &cudnnDestroyDropoutDescriptor> { + at::Tensor state; + + // Initialize a dropout descriptor's RNG state. + // WARNING: This function is very expensive, avoid calling this function! + void initialize_rng(cudnnHandle_t handle, float dropout, long long int seed, const TensorOptions& options) { + TORCH_INTERNAL_ASSERT(dropout > 0, "dropout must be nonzero; otherwise call set_no_dropout"); + size_t state_size; + AT_CUDNN_CHECK(cudnnDropoutGetStatesSize(handle, &state_size)); + AT_ASSERT(options.device().type() == kCUDA); + AT_ASSERT(options.dtype() == kByte); + state = at::empty({static_cast(state_size)}, options); + AT_CUDNN_CHECK(cudnnSetDropoutDescriptor(mut_desc(), handle, dropout, state.data_ptr(), state_size, seed)); + } + + // Restore a dropout descriptor given a dropout probability and existing RNG state. + void set(cudnnHandle_t handle, float dropout, at::Tensor state_) { + TORCH_INTERNAL_ASSERT(dropout > 0, "dropout must be nonzero; otherwise call set_no_dropout"); + state = state_; + void *state_ptr = state.data_ptr(); + size_t state_size = state.size(0); + // NB: The seed doesn't actually matter, so we give a dummy value + AT_CUDNN_CHECK(cudnnRestoreDropoutDescriptor(mut_desc(), handle, dropout, state_ptr, state_size, 0 /* seed */)); + } + + // Restore a dropout descriptor corresponding to no dropout + void set_no_dropout(cudnnHandle_t handle) { + // NB: seed doesn't matter when dropout = 0, because no random number + // initialization actually takes place when there is no dropout. + // NB: Empirically, cudnnSetDropoutDescriptor is cheap when + // dropout == 0 + AT_CUDNN_CHECK(cudnnSetDropoutDescriptor(mut_desc(), handle, 0 /* dropout */, nullptr, 0 /* state_size */, 0 /* seed */)); + } +}; + +struct TORCH_CUDA_CPP_API RNNDescriptor : public Descriptor< + cudnnRNNStruct, + &cudnnCreateRNNDescriptor, + &cudnnDestroyRNNDescriptor> { + DropoutDescriptor dropout_desc_; + void set(cudnnHandle_t handle, +#ifdef USE_CUDNN_RNN_V8_API + int input_size, + bool packed, +#endif + int hidden_size, int proj_size, int num_layers, DropoutDescriptor&& dropout_desc, + cudnnRNNInputMode_t input_mode, cudnnDirectionMode_t bidirectional, + cudnnRNNMode_t mode, cudnnDataType_t datatype, cudnnDataType_t input_type, cudnnRNNAlgo_t algo, bool allow_tf32) { + dropout_desc_ = std::move(dropout_desc); +#ifndef USE_CUDNN_RNN_V8_API + AT_CUDNN_CHECK(cudnnSetRNNDescriptor_v6( + handle, + mut_desc(), + hidden_size, + num_layers, + dropout_desc_.desc(), + input_mode, + bidirectional, + mode, + algo, + datatype)); + if (proj_size != 0) { + AT_CUDNN_CHECK(cudnnSetRNNProjectionLayers( + handle, + /*rnnDesc=*/mut_desc(), + /*recProjSize=*/proj_size, + /*outProjSize=*/0)); + } + cudaDeviceProp* prop = at::cuda::getCurrentDeviceProperties(); + if (prop->major >= 7) { + if (input_type == CUDNN_DATA_HALF) { + cudnnSetRNNMatrixMathType(mut_desc(), CUDNN_TENSOR_OP_MATH); + } + else if (input_type == CUDNN_DATA_FLOAT && !allow_tf32) { + cudnnSetRNNMatrixMathType(mut_desc(), CUDNN_FMA_MATH); + } + else { + // Technically, as the default it's not necessary to explicitly + // set this. + cudnnSetRNNMatrixMathType(mut_desc(), CUDNN_DEFAULT_MATH); + } + } +#else + cudaDeviceProp* prop = at::cuda::getCurrentDeviceProperties(); + auto math_type = CUDNN_DEFAULT_MATH; + if (prop->major >= 7) { + if (input_type == CUDNN_DATA_HALF) { + math_type = CUDNN_TENSOR_OP_MATH; + } else if (!allow_tf32) { + math_type = CUDNN_FMA_MATH; + } + } + AT_CUDNN_CHECK(cudnnSetRNNDescriptor_v8( + mut_desc(), + algo, + mode, + CUDNN_RNN_DOUBLE_BIAS, + bidirectional, + input_mode, + input_type, + datatype, + math_type, + input_size, + hidden_size, + proj_size ? proj_size : hidden_size, + num_layers, + dropout_desc_.desc(), + packed ? CUDNN_RNN_PADDED_IO_DISABLED : CUDNN_RNN_PADDED_IO_ENABLED)); +#endif + } +}; + +struct TORCH_CUDA_CPP_API CTCLossDescriptor + : public Descriptor< + cudnnCTCLossStruct, + &cudnnCreateCTCLossDescriptor, + &cudnnDestroyCTCLossDescriptor> { + void set(cudnnDataType_t datatype) { + AT_CUDNN_CHECK(cudnnSetCTCLossDescriptor(mut_desc(), datatype)); + } + void setEx( + cudnnDataType_t datatype, + cudnnLossNormalizationMode_t normMode, + cudnnNanPropagation_t gradMode) { + AT_CUDNN_CHECK( + cudnnSetCTCLossDescriptorEx(mut_desc(), datatype, normMode, gradMode)); + } +}; + +struct TORCH_CUDA_CPP_API ActivationDescriptor + : public Descriptor< + cudnnActivationStruct, + &cudnnCreateActivationDescriptor, + &cudnnDestroyActivationDescriptor> { + void set(cudnnActivationMode_t mode) { + AT_ASSERT( + mode == CUDNN_ACTIVATION_RELU, + "TODO: support more cuDNN activation modes"); + AT_CUDNN_CHECK(cudnnSetActivationDescriptor( + mut_desc(), + mode, + cudnnNanPropagation_t::CUDNN_NOT_PROPAGATE_NAN, + std::numeric_limits::max())); + } +}; + +union Constant +{ + float f; + double d; + Constant(cudnnDataType_t dataType, double value) { + if (dataType == CUDNN_DATA_HALF || dataType == CUDNN_DATA_FLOAT) { + f = static_cast(value); + } else { + d = value; + } + } +}; + +}} // namespace diff --git a/shared/package-files/ea/ea47f7dfcd51d5f471999243c2a438123a16bcf7c1d14454c589825669a11787/blob b/shared/package-files/ea/ea47f7dfcd51d5f471999243c2a438123a16bcf7c1d14454c589825669a11787/blob new file mode 100644 index 0000000000000000000000000000000000000000..e8df8b56215729c8c08fb798eb5d8ec0a36d1e72 --- /dev/null +++ b/shared/package-files/ea/ea47f7dfcd51d5f471999243c2a438123a16bcf7c1d14454c589825669a11787/blob @@ -0,0 +1,23 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::vector unbind(const at::Tensor & self, int64_t dim=0); +TORCH_API ::std::vector NestedTensor_unbind(const at::Tensor & self, int64_t dim=0); +TORCH_API ::std::vector unbind(const at::Tensor & self, at::Dimname dim); +} // namespace native +} // namespace at diff --git a/shared/package-files/ea/ea481ce0b034bea73825583443d1919070ee2abffa21f1f0c55028605972dbe2/blob b/shared/package-files/ea/ea481ce0b034bea73825583443d1919070ee2abffa21f1f0c55028605972dbe2/blob new file mode 100644 index 0000000000000000000000000000000000000000..ae03ea71fc1eeffd2717b7ae9dca92077ae4229f --- /dev/null +++ b/shared/package-files/ea/ea481ce0b034bea73825583443d1919070ee2abffa21f1f0c55028605972dbe2/blob @@ -0,0 +1,243 @@ +from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type, TypeVar, Union, overload +from uuid import UUID + +from django.db import models +from django.db.models.base import Model +from django.db.models.fields import Field +from django.db.models.query_utils import Q, PathInfo +from django.db.models.manager import RelatedManager +from django.db.models.expressions import Combinable +from django.db.models.fields.mixins import FieldCacheMixin +from django.db.models.fields.related_descriptors import ( # noqa: F401 + ForwardOneToOneDescriptor as ForwardOneToOneDescriptor, + ForwardManyToOneDescriptor as ForwardManyToOneDescriptor, + ManyToManyDescriptor as ManyToManyDescriptor, + ReverseOneToOneDescriptor as ReverseOneToOneDescriptor, + ReverseManyToOneDescriptor as ReverseManyToOneDescriptor, +) +from django.db.models.fields.reverse_related import ( # noqa: F401 + ForeignObjectRel as ForeignObjectRel, + OneToOneRel as OneToOneRel, + ManyToOneRel as ManyToOneRel, + ManyToManyRel as ManyToManyRel, +) + +_T = TypeVar("_T", bound=models.Model) +_F = TypeVar("_F", bound=models.Field) +_Choice = Tuple[Any, str] +_ChoiceNamedGroup = Tuple[str, Iterable[_Choice]] +_FieldChoices = Iterable[Union[_Choice, _ChoiceNamedGroup]] + +_ValidatorCallable = Callable[..., None] +_ErrorMessagesToOverride = Dict[str, Any] + +RECURSIVE_RELATIONSHIP_CONSTANT: str = ... + +# __set__ value type +_ST = TypeVar("_ST") +# __get__ return type +_GT = TypeVar("_GT") + +class RelatedField(FieldCacheMixin, Field[_ST, _GT]): + one_to_many: bool = ... + one_to_one: bool = ... + many_to_many: bool = ... + many_to_one: bool = ... + related_model: Type[Model] + opts: Any = ... + def get_forward_related_filter(self, obj: Model) -> Dict[str, Union[int, UUID]]: ... + def get_reverse_related_filter(self, obj: Model) -> Q: ... + @property + def swappable_setting(self) -> Optional[str]: ... + def set_attributes_from_rel(self) -> None: ... + def do_related_class(self, other: Type[Model], cls: Type[Model]) -> None: ... + def get_limit_choices_to(self) -> Dict[str, int]: ... + def related_query_name(self) -> str: ... + @property + def target_field(self) -> Field: ... + +class ForeignObject(RelatedField[_ST, _GT]): + def __init__( + self, + to: Union[Type[Model], str], + on_delete: Callable[..., None], + from_fields: Sequence[str], + to_fields: Sequence[str], + rel: Optional[ForeignObjectRel] = ..., + related_name: Optional[str] = ..., + related_query_name: Optional[str] = ..., + limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any]]] = ..., + parent_link: bool = ..., + db_constraint: bool = ..., + swappable: bool = ..., + verbose_name: Optional[str] = ..., + name: Optional[str] = ..., + primary_key: bool = ..., + unique: bool = ..., + blank: bool = ..., + null: bool = ..., + db_index: bool = ..., + default: Any = ..., + editable: bool = ..., + auto_created: bool = ..., + serialize: bool = ..., + choices: Optional[_FieldChoices] = ..., + help_text: str = ..., + db_column: Optional[str] = ..., + db_tablespace: Optional[str] = ..., + validators: Iterable[_ValidatorCallable] = ..., + error_messages: Optional[_ErrorMessagesToOverride] = ..., + ): ... + +class ForeignKey(ForeignObject[_ST, _GT]): + _pyi_private_set_type: Union[Any, Combinable] + _pyi_private_get_type: Any + def __init__( + self, + to: Union[Type[Model], str], + on_delete: Callable[..., None], + to_field: Optional[str] = ..., + related_name: Optional[str] = ..., + related_query_name: Optional[str] = ..., + limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any], Q]] = ..., + parent_link: bool = ..., + db_constraint: bool = ..., + verbose_name: Optional[Union[str, bytes]] = ..., + name: Optional[str] = ..., + primary_key: bool = ..., + max_length: Optional[int] = ..., + unique: bool = ..., + blank: bool = ..., + null: bool = ..., + db_index: bool = ..., + default: Any = ..., + editable: bool = ..., + auto_created: bool = ..., + serialize: bool = ..., + unique_for_date: Optional[str] = ..., + unique_for_month: Optional[str] = ..., + unique_for_year: Optional[str] = ..., + choices: Optional[_FieldChoices] = ..., + help_text: str = ..., + db_column: Optional[str] = ..., + db_tablespace: Optional[str] = ..., + validators: Iterable[_ValidatorCallable] = ..., + error_messages: Optional[_ErrorMessagesToOverride] = ..., + ): ... + # class access + @overload # type: ignore + def __get__(self, instance: None, owner) -> ForwardManyToOneDescriptor: ... + # Model instance access + @overload + def __get__(self, instance: Model, owner) -> _GT: ... + # non-Model instances + @overload + def __get__(self: _F, instance, owner) -> _F: ... + +class OneToOneField(RelatedField[_ST, _GT]): + _pyi_private_set_type: Union[Any, Combinable] + _pyi_private_get_type: Any + def __init__( + self, + to: Union[Type[Model], str], + on_delete: Any, + to_field: Optional[str] = ..., + related_name: Optional[str] = ..., + related_query_name: Optional[str] = ..., + limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any], Q]] = ..., + parent_link: bool = ..., + db_constraint: bool = ..., + verbose_name: Optional[Union[str, bytes]] = ..., + name: Optional[str] = ..., + primary_key: bool = ..., + max_length: Optional[int] = ..., + unique: bool = ..., + blank: bool = ..., + null: bool = ..., + db_index: bool = ..., + default: Any = ..., + editable: bool = ..., + auto_created: bool = ..., + serialize: bool = ..., + unique_for_date: Optional[str] = ..., + unique_for_month: Optional[str] = ..., + unique_for_year: Optional[str] = ..., + choices: Optional[_FieldChoices] = ..., + help_text: str = ..., + db_column: Optional[str] = ..., + db_tablespace: Optional[str] = ..., + validators: Iterable[_ValidatorCallable] = ..., + error_messages: Optional[_ErrorMessagesToOverride] = ..., + ): ... + # class access + @overload # type: ignore + def __get__(self, instance: None, owner) -> ForwardOneToOneDescriptor: ... + # Model instance access + @overload + def __get__(self, instance: Model, owner) -> _GT: ... + # non-Model instances + @overload + def __get__(self: _F, instance, owner) -> _F: ... + +class ManyToManyField(RelatedField[_ST, _GT]): + _pyi_private_set_type: Sequence[Any] + _pyi_private_get_type: RelatedManager[Any] + + rel_class: Any = ... + description: Any = ... + has_null_arg: Any = ... + swappable: bool = ... + def __init__( + self, + to: Union[Type[_T], str], + related_name: Optional[str] = ..., + related_query_name: Optional[str] = ..., + limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any], Q]] = ..., + symmetrical: Optional[bool] = ..., + through: Optional[Union[str, Type[Model]]] = ..., + through_fields: Optional[Tuple[str, str]] = ..., + db_constraint: bool = ..., + db_table: Optional[str] = ..., + swappable: bool = ..., + verbose_name: Optional[Union[str, bytes]] = ..., + name: Optional[str] = ..., + primary_key: bool = ..., + max_length: Optional[int] = ..., + unique: bool = ..., + blank: bool = ..., + null: bool = ..., + db_index: bool = ..., + default: Any = ..., + editable: bool = ..., + auto_created: bool = ..., + serialize: bool = ..., + unique_for_date: Optional[str] = ..., + unique_for_month: Optional[str] = ..., + unique_for_year: Optional[str] = ..., + choices: Optional[_FieldChoices] = ..., + help_text: str = ..., + db_column: Optional[str] = ..., + db_tablespace: Optional[str] = ..., + validators: Iterable[_ValidatorCallable] = ..., + error_messages: Optional[_ErrorMessagesToOverride] = ..., + ) -> None: ... + # class access + @overload # type: ignore + def __get__(self, instance: None, owner) -> ManyToManyDescriptor: ... + # Model instance access + @overload + def __get__(self, instance: Model, owner) -> _GT: ... + # non-Model instances + @overload + def __get__(self: _F, instance, owner) -> _F: ... + def get_path_info(self, filtered_relation: None = ...) -> List[PathInfo]: ... + def get_reverse_path_info(self, filtered_relation: None = ...) -> List[PathInfo]: ... + def contribute_to_related_class(self, cls: Type[Model], related: RelatedField) -> None: ... + def m2m_db_table(self) -> str: ... + def m2m_column_name(self) -> str: ... + def m2m_reverse_name(self) -> str: ... + def m2m_reverse_field_name(self) -> str: ... + def m2m_target_field_name(self) -> str: ... + def m2m_reverse_target_field_name(self) -> str: ... + +def create_many_to_many_intermediary_model(field: Type[Field], klass: Type[Model]) -> Type[Model]: ... diff --git a/shared/package-files/ea/ea4a3f895c1c67e3620823f7a0e77679044adc375828047c65220bb90037afc4/blob b/shared/package-files/ea/ea4a3f895c1c67e3620823f7a0e77679044adc375828047c65220bb90037afc4/blob new file mode 100644 index 0000000000000000000000000000000000000000..66f56f721e2af1d242fb33db1ad306c412f574e7 --- /dev/null +++ b/shared/package-files/ea/ea4a3f895c1c67e3620823f7a0e77679044adc375828047c65220bb90037afc4/blob @@ -0,0 +1,1046 @@ +"""A base class for a configurable application.""" + +# Copyright (c) IPython Development Team. +# Distributed under the terms of the Modified BSD License. + + +import functools +import json +import logging +import os +import pprint +import re +import sys +import typing as t +from collections import OrderedDict, defaultdict +from contextlib import suppress +from copy import deepcopy +from logging.config import dictConfig +from textwrap import dedent +from typing import Any, Callable, TypeVar, cast + +from traitlets.config.configurable import Configurable, SingletonConfigurable +from traitlets.config.loader import ( + ArgumentError, + Config, + ConfigFileNotFound, + JSONFileConfigLoader, + KVArgParseConfigLoader, + PyFileConfigLoader, +) +from traitlets.traitlets import ( + Bool, + Dict, + Enum, + Instance, + List, + TraitError, + Unicode, + default, + observe, + observe_compat, +) +from traitlets.utils.nested_update import nested_update +from traitlets.utils.text import indent, wrap_paragraphs + +from ..utils import cast_unicode +from ..utils.importstring import import_item + +# ----------------------------------------------------------------------------- +# Descriptions for the various sections +# ----------------------------------------------------------------------------- +# merge flags&aliases into options +option_description = """ +The options below are convenience aliases to configurable class-options, +as listed in the "Equivalent to" description-line of the aliases. +To see all configurable class-options for some , use: + --help-all +""".strip() # trim newlines of front and back + +keyvalue_description = """ +The command-line option below sets the respective configurable class-parameter: + --Class.parameter=value +This line is evaluated in Python, so simple expressions are allowed. +For instance, to set `C.a=[0,1,2]`, you may type this: + --C.a='range(3)' +""".strip() # trim newlines of front and back + +# sys.argv can be missing, for example when python is embedded. See the docs +# for details: http://docs.python.org/2/c-api/intro.html#embedding-python +if not hasattr(sys, "argv"): + sys.argv = [""] + +subcommand_description = """ +Subcommands are launched as `{app} cmd [args]`. For information on using +subcommand 'cmd', do: `{app} cmd -h`. +""" +# get running program name + +# ----------------------------------------------------------------------------- +# Application class +# ----------------------------------------------------------------------------- + + +_envvar = os.environ.get("TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR", "") +if _envvar.lower() in {"1", "true"}: + TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = True +elif _envvar.lower() in {"0", "false", ""}: + TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = False +else: + raise ValueError( + "Unsupported value for environment variable: 'TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR' is set to '%s' which is none of {'0', '1', 'false', 'true', ''}." + % _envvar + ) + + +IS_PYTHONW = sys.executable and sys.executable.endswith("pythonw.exe") + +T = TypeVar("T", bound=Callable[..., Any]) + + +def catch_config_error(method: T) -> T: + """Method decorator for catching invalid config (Trait/ArgumentErrors) during init. + + On a TraitError (generally caused by bad config), this will print the trait's + message, and exit the app. + + For use on init methods, to prevent invoking excepthook on invalid input. + """ + + @functools.wraps(method) + def inner(app, *args, **kwargs): + try: + return method(app, *args, **kwargs) + except (TraitError, ArgumentError) as e: + app.log.fatal("Bad config encountered during initialization: %s", e) + app.log.debug("Config at the time: %s", app.config) + app.exit(1) + + return cast(T, inner) + + +class ApplicationError(Exception): + pass + + +class LevelFormatter(logging.Formatter): + """Formatter with additional `highlevel` record + + This field is empty if log level is less than highlevel_limit, + otherwise it is formatted with self.highlevel_format. + + Useful for adding 'WARNING' to warning messages, + without adding 'INFO' to info, etc. + """ + + highlevel_limit = logging.WARN + highlevel_format = " %(levelname)s |" + + def format(self, record): + if record.levelno >= self.highlevel_limit: + record.highlevel = self.highlevel_format % record.__dict__ + else: + record.highlevel = "" + return super().format(record) + + +class Application(SingletonConfigurable): + """A singleton application with full configuration support.""" + + # The name of the application, will usually match the name of the command + # line application + name: t.Union[str, Unicode] = Unicode("application") + + # The description of the application that is printed at the beginning + # of the help. + description: t.Union[str, Unicode] = Unicode("This is an application.") + # default section descriptions + option_description: t.Union[str, Unicode] = Unicode(option_description) + keyvalue_description: t.Union[str, Unicode] = Unicode(keyvalue_description) + subcommand_description: t.Union[str, Unicode] = Unicode(subcommand_description) + + python_config_loader_class = PyFileConfigLoader + json_config_loader_class = JSONFileConfigLoader + + # The usage and example string that goes at the end of the help string. + examples: t.Union[str, Unicode] = Unicode() + + # A sequence of Configurable subclasses whose config=True attributes will + # be exposed at the command line. + classes: t.List[t.Type[t.Any]] = [] + + def _classes_inc_parents(self, classes=None): + """Iterate through configurable classes, including configurable parents + + :param classes: + The list of classes to iterate; if not set, uses :attr:`classes`. + + Children should always be after parents, and each class should only be + yielded once. + """ + if classes is None: + classes = self.classes + + seen = set() + for c in classes: + # We want to sort parents before children, so we reverse the MRO + for parent in reversed(c.mro()): + if issubclass(parent, Configurable) and (parent not in seen): + seen.add(parent) + yield parent + + # The version string of this application. + version: t.Union[str, Unicode] = Unicode("0.0") + + # the argv used to initialize the application + argv: t.Union[t.List[str], List] = List() + + # Whether failing to load config files should prevent startup + raise_config_file_errors: t.Union[bool, Bool] = Bool( + TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR + ) + + # The log level for the application + log_level: t.Union[str, int, Enum] = Enum( + (0, 10, 20, 30, 40, 50, "DEBUG", "INFO", "WARN", "ERROR", "CRITICAL"), + default_value=logging.WARN, + help="Set the log level by value or name.", + ).tag(config=True) + + _log_formatter_cls = LevelFormatter + + log_datefmt: t.Union[str, Unicode] = Unicode( + "%Y-%m-%d %H:%M:%S", help="The date format used by logging formatters for %(asctime)s" + ).tag(config=True) + + log_format: t.Union[str, Unicode] = Unicode( + "[%(name)s]%(highlevel)s %(message)s", + help="The Logging format template", + ).tag(config=True) + + def get_default_logging_config(self): + """Return the base logging configuration. + + The default is to log to stderr using a StreamHandler, if no default + handler already exists. + + The log handler level starts at logging.WARN, but this can be adjusted + by setting the ``log_level`` attribute. + + The ``logging_config`` trait is merged into this allowing for finer + control of logging. + + """ + config: t.Dict[str, t.Any] = { + "version": 1, + "handlers": { + "console": { + "class": "logging.StreamHandler", + "formatter": "console", + "level": logging.getLevelName(self.log_level), + "stream": "ext://sys.stderr", + }, + }, + "formatters": { + "console": { + "class": ( + f"{self._log_formatter_cls.__module__}" + f".{self._log_formatter_cls.__name__}" + ), + "format": self.log_format, + "datefmt": self.log_datefmt, + }, + }, + "loggers": { + self.__class__.__name__: { + "level": "DEBUG", + "handlers": ["console"], + } + }, + "disable_existing_loggers": False, + } + + if IS_PYTHONW: + # disable logging + # (this should really go to a file, but file-logging is only + # hooked up in parallel applications) + del config["handlers"] + del config["loggers"] + + return config + + @observe("log_datefmt", "log_format", "log_level", "logging_config") + def _observe_logging_change(self, change): + # convert log level strings to ints + log_level = self.log_level + if isinstance(log_level, str): + self.log_level = getattr(logging, log_level) + self._configure_logging() + + @observe("log", type="default") + def _observe_logging_default(self, change): + self._configure_logging() + + def _configure_logging(self): + config = self.get_default_logging_config() + nested_update(config, self.logging_config or {}) + dictConfig(config) + # make a note that we have configured logging + self._logging_configured = True + + @default("log") + def _log_default(self): + """Start logging for this application.""" + log = logging.getLogger(self.__class__.__name__) + log.propagate = False + _log = log # copied from Logger.hasHandlers() (new in Python 3.2) + while _log: + if _log.handlers: + return log + if not _log.propagate: + break + else: + _log = _log.parent # type:ignore[assignment] + return log + + logging_config = Dict( + help=""" + Configure additional log handlers. + + The default stderr logs handler is configured by the + log_level, log_datefmt and log_format settings. + + This configuration can be used to configure additional handlers + (e.g. to output the log to a file) or for finer control over the + default handlers. + + If provided this should be a logging configuration dictionary, for + more information see: + https://docs.python.org/3/library/logging.config.html#logging-config-dictschema + + This dictionary is merged with the base logging configuration which + defines the following: + + * A logging formatter intended for interactive use called + ``console``. + * A logging handler that writes to stderr called + ``console`` which uses the formatter ``console``. + * A logger with the name of this application set to ``DEBUG`` + level. + + This example adds a new handler that writes to a file: + + .. code-block:: python + + c.Application.logging_config = { + 'handlers': { + 'file': { + 'class': 'logging.FileHandler', + 'level': 'DEBUG', + 'filename': '', + } + }, + 'loggers': { + '': { + 'level': 'DEBUG', + # NOTE: if you don't list the default "console" + # handler here then it will be disabled + 'handlers': ['console', 'file'], + }, + } + } + + """, + ).tag(config=True) + + #: the alias map for configurables + #: Keys might strings or tuples for additional options; single-letter alias accessed like `-v`. + #: Values might be like "Class.trait" strings of two-tuples: (Class.trait, help-text), + # or just the "Class.trait" string, in which case the help text is inferred from the + # corresponding trait + aliases: t.Dict[t.Union[str, t.Tuple[str, ...]], t.Union[str, t.Tuple[str, str]]] = { + "log-level": "Application.log_level" + } + + # flags for loading Configurables or store_const style flags + # flags are loaded from this dict by '--key' flags + # this must be a dict of two-tuples, the first element being the Config/dict + # and the second being the help string for the flag + flags: t.Dict[ + t.Union[str, t.Tuple[str, ...]], t.Tuple[t.Union[t.Dict[str, t.Any], Config], str] + ] = { + "debug": ( + { + "Application": { + "log_level": logging.DEBUG, + }, + }, + "Set log-level to debug, for the most verbose logging.", + ), + "show-config": ( + { + "Application": { + "show_config": True, + }, + }, + "Show the application's configuration (human-readable format)", + ), + "show-config-json": ( + { + "Application": { + "show_config_json": True, + }, + }, + "Show the application's configuration (json format)", + ), + } + + # subcommands for launching other applications + # if this is not empty, this will be a parent Application + # this must be a dict of two-tuples, + # the first element being the application class/import string + # and the second being the help string for the subcommand + subcommands: t.Union[t.Dict[str, t.Tuple[str, str]], Dict] = Dict() + # parse_command_line will initialize a subapp, if requested + subapp = Instance("traitlets.config.application.Application", allow_none=True) + + # extra command-line arguments that don't set config values + extra_args: t.Union[t.List[str], List] = List(Unicode()) + + cli_config = Instance( + Config, + (), + {}, + help="""The subset of our configuration that came from the command-line + + We re-load this configuration after loading config files, + to ensure that it maintains highest priority. + """, + ) + + _loaded_config_files = List() + + show_config: t.Union[bool, Bool] = Bool( + help="Instead of starting the Application, dump configuration to stdout" + ).tag(config=True) + + show_config_json: t.Union[bool, Bool] = Bool( + help="Instead of starting the Application, dump configuration to stdout (as JSON)" + ).tag(config=True) + + @observe("show_config_json") + def _show_config_json_changed(self, change): + self.show_config = change.new + + @observe("show_config") + def _show_config_changed(self, change): + if change.new: + self._save_start = self.start + self.start = self.start_show_config # type:ignore[assignment] + + def __init__(self, **kwargs): + SingletonConfigurable.__init__(self, **kwargs) + # Ensure my class is in self.classes, so my attributes appear in command line + # options and config files. + cls = self.__class__ + if cls not in self.classes: + if self.classes is cls.classes: + # class attr, assign instead of insert + self.classes = [cls] + self.classes + else: + self.classes.insert(0, self.__class__) + + @observe("config") + @observe_compat + def _config_changed(self, change): + super()._config_changed(change) + self.log.debug("Config changed: %r", change.new) + + @catch_config_error + def initialize(self, argv=None): + """Do the basic steps to configure me. + + Override in subclasses. + """ + self.parse_command_line(argv) + + def start(self): + """Start the app mainloop. + + Override in subclasses. + """ + if self.subapp is not None: + return self.subapp.start() + + def start_show_config(self): + """start function used when show_config is True""" + config = self.config.copy() + # exclude show_config flags from displayed config + for cls in self.__class__.mro(): + if cls.__name__ in config: + cls_config = config[cls.__name__] + cls_config.pop("show_config", None) + cls_config.pop("show_config_json", None) + + if self.show_config_json: + json.dump(config, sys.stdout, indent=1, sort_keys=True, default=repr) + # add trailing newline + sys.stdout.write("\n") + return + + if self._loaded_config_files: + print("Loaded config files:") + for f in self._loaded_config_files: + print(" " + f) + print() + + for classname in sorted(config): + class_config = config[classname] + if not class_config: + continue + print(classname) + pformat_kwargs: t.Dict[str, t.Any] = dict(indent=4, compact=True) + + for traitname in sorted(class_config): + value = class_config[traitname] + print( + " .{} = {}".format( + traitname, + pprint.pformat(value, **pformat_kwargs), + ) + ) + + def print_alias_help(self): + """Print the alias parts of the help.""" + print("\n".join(self.emit_alias_help())) + + def emit_alias_help(self): + """Yield the lines for alias part of the help.""" + if not self.aliases: + return + + classdict = {} + for cls in self.classes: + # include all parents (up to, but excluding Configurable) in available names + for c in cls.mro()[:-3]: + classdict[c.__name__] = c + + for alias, longname in self.aliases.items(): + try: + if isinstance(longname, tuple): + longname, fhelp = longname + else: + fhelp = None + classname, traitname = longname.split(".")[-2:] + longname = classname + "." + traitname + cls = classdict[classname] + + trait = cls.class_traits(config=True)[traitname] + fhelp = cls.class_get_trait_help(trait, helptext=fhelp).splitlines() + + if not isinstance(alias, tuple): + alias = (alias,) + alias = sorted(alias, key=len) # type:ignore[assignment] + alias = ", ".join(("--%s" if len(m) > 1 else "-%s") % m for m in alias) + + # reformat first line + assert fhelp is not None + fhelp[0] = fhelp[0].replace("--" + longname, alias) # type:ignore + yield from fhelp + yield indent("Equivalent to: [--%s]" % longname) + except Exception as ex: + self.log.error("Failed collecting help-message for alias %r, due to: %s", alias, ex) + raise + + def print_flag_help(self): + """Print the flag part of the help.""" + print("\n".join(self.emit_flag_help())) + + def emit_flag_help(self): + """Yield the lines for the flag part of the help.""" + if not self.flags: + return + + for flags, (cfg, fhelp) in self.flags.items(): + try: + if not isinstance(flags, tuple): + flags = (flags,) + flags = sorted(flags, key=len) # type:ignore[assignment] + flags = ", ".join(("--%s" if len(m) > 1 else "-%s") % m for m in flags) + yield flags + yield indent(dedent(fhelp.strip())) + cfg_list = " ".join( + f"--{clname}.{prop}={val}" + for clname, props_dict in cfg.items() + for prop, val in props_dict.items() + ) + cfg_txt = "Equivalent to: [%s]" % cfg_list + yield indent(dedent(cfg_txt)) + except Exception as ex: + self.log.error("Failed collecting help-message for flag %r, due to: %s", flags, ex) + raise + + def print_options(self): + """Print the options part of the help.""" + print("\n".join(self.emit_options_help())) + + def emit_options_help(self): + """Yield the lines for the options part of the help.""" + if not self.flags and not self.aliases: + return + header = "Options" + yield header + yield "=" * len(header) + for p in wrap_paragraphs(self.option_description): + yield p + yield "" + + yield from self.emit_flag_help() + yield from self.emit_alias_help() + yield "" + + def print_subcommands(self): + """Print the subcommand part of the help.""" + print("\n".join(self.emit_subcommands_help())) + + def emit_subcommands_help(self): + """Yield the lines for the subcommand part of the help.""" + if not self.subcommands: + return + + header = "Subcommands" + yield header + yield "=" * len(header) + for p in wrap_paragraphs(self.subcommand_description.format(app=self.name)): + yield p + yield "" + for subc, (_, help) in self.subcommands.items(): + yield subc + if help: + yield indent(dedent(help.strip())) + yield "" + + def emit_help_epilogue(self, classes): + """Yield the very bottom lines of the help message. + + If classes=False (the default), print `--help-all` msg. + """ + if not classes: + yield "To see all available configurables, use `--help-all`." + yield "" + + def print_help(self, classes=False): + """Print the help for each Configurable class in self.classes. + + If classes=False (the default), only flags and aliases are printed. + """ + print("\n".join(self.emit_help(classes=classes))) + + def emit_help(self, classes=False): + """Yield the help-lines for each Configurable class in self.classes. + + If classes=False (the default), only flags and aliases are printed. + """ + yield from self.emit_description() + yield from self.emit_subcommands_help() + yield from self.emit_options_help() + + if classes: + help_classes = self._classes_with_config_traits() + if help_classes: + yield "Class options" + yield "=============" + for p in wrap_paragraphs(self.keyvalue_description): + yield p + yield "" + + for cls in help_classes: + yield cls.class_get_help() + yield "" + yield from self.emit_examples() + + yield from self.emit_help_epilogue(classes) + + def document_config_options(self): + """Generate rST format documentation for the config options this application + + Returns a multiline string. + """ + return "\n".join(c.class_config_rst_doc() for c in self._classes_inc_parents()) + + def print_description(self): + """Print the application description.""" + print("\n".join(self.emit_description())) + + def emit_description(self): + """Yield lines with the application description.""" + for p in wrap_paragraphs(self.description or self.__doc__ or ""): + yield p + yield "" + + def print_examples(self): + """Print usage and examples (see `emit_examples()`).""" + print("\n".join(self.emit_examples())) + + def emit_examples(self): + """Yield lines with the usage and examples. + + This usage string goes at the end of the command line help string + and should contain examples of the application's usage. + """ + if self.examples: + yield "Examples" + yield "--------" + yield "" + yield indent(dedent(self.examples.strip())) + yield "" + + def print_version(self): + """Print the version string.""" + print(self.version) + + @catch_config_error + def initialize_subcommand(self, subc, argv=None): + """Initialize a subcommand with argv.""" + val = self.subcommands.get(subc) + assert val is not None + subapp, _ = val + + if isinstance(subapp, str): + subapp = import_item(subapp) + + # Cannot issubclass() on a non-type (SOhttp://stackoverflow.com/questions/8692430) + if isinstance(subapp, type) and issubclass(subapp, Application): + # Clear existing instances before... + self.__class__.clear_instance() + # instantiating subapp... + self.subapp = subapp.instance(parent=self) + elif callable(subapp): + # or ask factory to create it... + self.subapp = subapp(self) # type:ignore[call-arg] + else: + raise AssertionError("Invalid mappings for subcommand '%s'!" % subc) + + # ... and finally initialize subapp. + self.subapp.initialize(argv) + + def flatten_flags(self): + """Flatten flags and aliases for loaders, so cl-args override as expected. + + This prevents issues such as an alias pointing to InteractiveShell, + but a config file setting the same trait in TerminalInteraciveShell + getting inappropriate priority over the command-line arg. + Also, loaders expect ``(key: longname)`` and not ````key: (longname, help)`` items. + + Only aliases with exactly one descendent in the class list + will be promoted. + + """ + # build a tree of classes in our list that inherit from a particular + # it will be a dict by parent classname of classes in our list + # that are descendents + mro_tree = defaultdict(list) + for cls in self.classes: + clsname = cls.__name__ + for parent in cls.mro()[1:-3]: + # exclude cls itself and Configurable,HasTraits,object + mro_tree[parent.__name__].append(clsname) + # flatten aliases, which have the form: + # { 'alias' : 'Class.trait' } + aliases: t.Dict[str, str] = {} + for alias, longname in self.aliases.items(): + if isinstance(longname, tuple): + longname, _ = longname + cls, trait = longname.split(".", 1) # type:ignore + children = mro_tree[cls] # type:ignore[index] + if len(children) == 1: + # exactly one descendent, promote alias + cls = children[0] # type:ignore[assignment] + if not isinstance(aliases, tuple): + alias = (alias,) # type:ignore[assignment] + for al in alias: + aliases[al] = ".".join([cls, trait]) # type:ignore[list-item] + + # flatten flags, which are of the form: + # { 'key' : ({'Cls' : {'trait' : value}}, 'help')} + flags = {} + for key, (flagdict, help) in self.flags.items(): + newflag: t.Dict[t.Any, t.Any] = {} + for cls, subdict in flagdict.items(): # type:ignore + children = mro_tree[cls] # type:ignore[index] + # exactly one descendent, promote flag section + if len(children) == 1: + cls = children[0] # type:ignore[assignment] + + if cls in newflag: + newflag[cls].update(subdict) + else: + newflag[cls] = subdict + + if not isinstance(key, tuple): + key = (key,) + for k in key: + flags[k] = (newflag, help) + return flags, aliases + + def _create_loader(self, argv, aliases, flags, classes): + return KVArgParseConfigLoader(argv, aliases, flags, classes=classes, log=self.log) + + @catch_config_error + def parse_command_line(self, argv=None): + """Parse the command line arguments.""" + assert not isinstance(argv, str) + argv = sys.argv[1:] if argv is None else argv + self.argv = [cast_unicode(arg) for arg in argv] + + if argv and argv[0] == "help": + # turn `ipython help notebook` into `ipython notebook -h` + argv = argv[1:] + ["-h"] + + if self.subcommands and len(argv) > 0: + # we have subcommands, and one may have been specified + subc, subargv = argv[0], argv[1:] + if re.match(r"^\w(\-?\w)*$", subc) and subc in self.subcommands: + # it's a subcommand, and *not* a flag or class parameter + return self.initialize_subcommand(subc, subargv) + + # Arguments after a '--' argument are for the script IPython may be + # about to run, not IPython iteslf. For arguments parsed here (help and + # version), we want to only search the arguments up to the first + # occurrence of '--', which we're calling interpreted_argv. + try: + interpreted_argv = argv[: argv.index("--")] + except ValueError: + interpreted_argv = argv + + if any(x in interpreted_argv for x in ("-h", "--help-all", "--help")): + self.print_help("--help-all" in interpreted_argv) + self.exit(0) + + if "--version" in interpreted_argv or "-V" in interpreted_argv: + self.print_version() + self.exit(0) + + # flatten flags&aliases, so cl-args get appropriate priority: + flags, aliases = self.flatten_flags() + classes = tuple(self._classes_with_config_traits()) + loader = self._create_loader(argv, aliases, flags, classes=classes) + try: + self.cli_config = deepcopy(loader.load_config()) + except SystemExit: + # traitlets 5: no longer print help output on error + # help output is huge, and comes after the error + raise + self.update_config(self.cli_config) + # store unparsed args in extra_args + self.extra_args = loader.extra_args + + @classmethod + def _load_config_files(cls, basefilename, path=None, log=None, raise_config_file_errors=False): + """Load config files (py,json) by filename and path. + + yield each config object in turn. + """ + + if not isinstance(path, list): + path = [path] + for current in reversed(path): + # path list is in descending priority order, so load files backwards: + pyloader = cls.python_config_loader_class(basefilename + ".py", path=current, log=log) + if log: + log.debug("Looking for %s in %s", basefilename, current or os.getcwd()) + jsonloader = cls.json_config_loader_class(basefilename + ".json", path=current, log=log) + loaded: t.List[t.Any] = [] + filenames: t.List[str] = [] + for loader in [pyloader, jsonloader]: + config = None + try: + config = loader.load_config() + except ConfigFileNotFound: + pass + except Exception: + # try to get the full filename, but it will be empty in the + # unlikely event that the error raised before filefind finished + filename = loader.full_filename or basefilename + # problem while running the file + if raise_config_file_errors: + raise + if log: + log.error("Exception while loading config file %s", filename, exc_info=True) + else: + if log: + log.debug("Loaded config file: %s", loader.full_filename) + if config: + for filename, earlier_config in zip(filenames, loaded): + collisions = earlier_config.collisions(config) + if collisions and log: + log.warning( + "Collisions detected in {0} and {1} config files." + " {1} has higher priority: {2}".format( + filename, + loader.full_filename, + json.dumps(collisions, indent=2), + ) + ) + yield (config, loader.full_filename) + loaded.append(config) + filenames.append(loader.full_filename) + + @property + def loaded_config_files(self): + """Currently loaded configuration files""" + return self._loaded_config_files[:] + + @catch_config_error + def load_config_file(self, filename, path=None): + """Load config files by filename and path.""" + filename, ext = os.path.splitext(filename) + new_config = Config() + for (config, fname) in self._load_config_files( + filename, + path=path, + log=self.log, + raise_config_file_errors=self.raise_config_file_errors, + ): + new_config.merge(config) + if ( + fname not in self._loaded_config_files + ): # only add to list of loaded files if not previously loaded + self._loaded_config_files.append(fname) + # add self.cli_config to preserve CLI config priority + new_config.merge(self.cli_config) + self.update_config(new_config) + + def _classes_with_config_traits(self, classes=None): + """ + Yields only classes with configurable traits, and their subclasses. + + :param classes: + The list of classes to iterate; if not set, uses :attr:`classes`. + + Thus, produced sample config-file will contain all classes + on which a trait-value may be overridden: + + - either on the class owning the trait, + - or on its subclasses, even if those subclasses do not define + any traits themselves. + """ + if classes is None: + classes = self.classes + + cls_to_config = OrderedDict( + (cls, bool(cls.class_own_traits(config=True))) + for cls in self._classes_inc_parents(classes) + ) + + def is_any_parent_included(cls): + return any(b in cls_to_config and cls_to_config[b] for b in cls.__bases__) + + # Mark "empty" classes for inclusion if their parents own-traits, + # and loop until no more classes gets marked. + # + while True: + to_incl_orig = cls_to_config.copy() + cls_to_config = OrderedDict( + (cls, inc_yes or is_any_parent_included(cls)) + for cls, inc_yes in cls_to_config.items() + ) + if cls_to_config == to_incl_orig: + break + for cl, inc_yes in cls_to_config.items(): + if inc_yes: + yield cl + + def generate_config_file(self, classes=None): + """generate default config file from Configurables""" + lines = ["# Configuration file for %s." % self.name] + lines.append("") + lines.append("c = get_config() #" + "noqa") + lines.append("") + classes = self.classes if classes is None else classes + config_classes = list(self._classes_with_config_traits(classes)) + for cls in config_classes: + lines.append(cls.class_config_section(config_classes)) + return "\n".join(lines) + + def close_handlers(self): + if getattr(self, "_logging_configured", False): + # don't attempt to close handlers unless they have been opened + # (note accessing self.log.handlers will create handlers if they + # have not yet been initialised) + for handler in self.log.handlers: + with suppress(Exception): + handler.close() + self._logging_configured = False + + def exit(self, exit_status=0): + self.log.debug("Exiting application: %s" % self.name) + self.close_handlers() + sys.exit(exit_status) + + def __del__(self): + self.close_handlers() + + @classmethod + def launch_instance(cls, argv=None, **kwargs): + """Launch a global instance of this Application + + If a global instance already exists, this reinitializes and starts it + """ + app = cls.instance(**kwargs) + app.initialize(argv) + app.start() + + +# ----------------------------------------------------------------------------- +# utility functions, for convenience +# ----------------------------------------------------------------------------- + +default_aliases = Application.aliases +default_flags = Application.flags + + +def boolean_flag(name, configurable, set_help="", unset_help=""): + """Helper for building basic --trait, --no-trait flags. + + Parameters + ---------- + name : str + The name of the flag. + configurable : str + The 'Class.trait' string of the trait to be set/unset with the flag + set_help : unicode + help string for --name flag + unset_help : unicode + help string for --no-name flag + + Returns + ------- + cfg : dict + A dict with two keys: 'name', and 'no-name', for setting and unsetting + the trait, respectively. + """ + # default helpstrings + set_help = set_help or "set %s=True" % configurable + unset_help = unset_help or "set %s=False" % configurable + + cls, trait = configurable.split(".") + + setter = {cls: {trait: True}} + unsetter = {cls: {trait: False}} + return {name: (setter, set_help), "no-" + name: (unsetter, unset_help)} + + +def get_config(): + """Get the config object for the global Application instance, if there is one + + otherwise return an empty config object + """ + if Application.initialized(): + return Application.instance().config + else: + return Config() + + +if __name__ == "__main__": + Application.launch_instance() diff --git a/shared/package-files/ea/ea4d1f1eabd325a0261f9d7795431c6ea6ddcb71e7cb4f4165979d3f443541c5/blob b/shared/package-files/ea/ea4d1f1eabd325a0261f9d7795431c6ea6ddcb71e7cb4f4165979d3f443541c5/blob new file mode 100644 index 0000000000000000000000000000000000000000..a08ca6217cf5350103697dfe05fc07552ec38752 --- /dev/null +++ b/shared/package-files/ea/ea4d1f1eabd325a0261f9d7795431c6ea6ddcb71e7cb4f4165979d3f443541c5/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API affine_grid_generator { + using schema = at::Tensor (const at::Tensor &, c10::SymIntArrayRef, bool); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::affine_grid_generator") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "affine_grid_generator(Tensor theta, SymInt[] size, bool align_corners) -> Tensor") + static at::Tensor call(const at::Tensor & theta, c10::SymIntArrayRef size, bool align_corners); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, c10::SymIntArrayRef size, bool align_corners); +}; + +struct TORCH_API affine_grid_generator_out { + using schema = at::Tensor & (const at::Tensor &, c10::SymIntArrayRef, bool, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::affine_grid_generator") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "affine_grid_generator.out(Tensor theta, SymInt[] size, bool align_corners, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & theta, c10::SymIntArrayRef size, bool align_corners, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & theta, c10::SymIntArrayRef size, bool align_corners, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/ea/ea4ec3637cf0b2016e1a43fdc2026563586650c9282c777d80f21728cd9c3378/blob b/shared/package-files/ea/ea4ec3637cf0b2016e1a43fdc2026563586650c9282c777d80f21728cd9c3378/blob new file mode 100644 index 0000000000000000000000000000000000000000..1c974407a360ae6a05d5bda170e4c5521009b229 --- /dev/null +++ b/shared/package-files/ea/ea4ec3637cf0b2016e1a43fdc2026563586650c9282c777d80f21728cd9c3378/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea4ec3637cf0b2016e1a43fdc2026563586650c9282c777d80f21728cd9c3378 +size 1245008 diff --git a/shared/package-files/ea/ea52ba3d46efb0f8cdbd068c3fa28fe8f377eb796d318b11051d8c479f5f81cf/blob b/shared/package-files/ea/ea52ba3d46efb0f8cdbd068c3fa28fe8f377eb796d318b11051d8c479f5f81cf/blob new file mode 100644 index 0000000000000000000000000000000000000000..880e75b76c9eebf2108e74f757e824dc88989b5e --- /dev/null +++ b/shared/package-files/ea/ea52ba3d46efb0f8cdbd068c3fa28fe8f377eb796d318b11051d8c479f5f81cf/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API _autocast_to_full_precision { + using schema = at::Tensor (const at::Tensor &, bool, bool); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_autocast_to_full_precision") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_autocast_to_full_precision(Tensor(a) self, bool cuda_enabled, bool cpu_enabled) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self, bool cuda_enabled, bool cpu_enabled); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool cuda_enabled, bool cpu_enabled); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/ea/ea5344b7da63c4ebbd967b99f8e5bae04d5e24be6cdf913188f437267cbc6bd8/blob b/shared/package-files/ea/ea5344b7da63c4ebbd967b99f8e5bae04d5e24be6cdf913188f437267cbc6bd8/blob new file mode 100644 index 0000000000000000000000000000000000000000..e2280786dd6a6351113c8ed71d80fa76063a34b4 --- /dev/null +++ b/shared/package-files/ea/ea5344b7da63c4ebbd967b99f8e5bae04d5e24be6cdf913188f437267cbc6bd8/blob @@ -0,0 +1,47 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::affine_grid_generator_backward(Tensor grad, SymInt[] size, bool align_corners) -> Tensor +inline at::Tensor affine_grid_generator_backward(const at::Tensor & grad, at::IntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_backward::call(grad, c10::fromIntArrayRefSlow(size), align_corners); +} +namespace symint { + template ::value>> + at::Tensor affine_grid_generator_backward(const at::Tensor & grad, at::IntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_backward::call(grad, c10::fromIntArrayRefSlow(size), align_corners); + } +} + +// aten::affine_grid_generator_backward(Tensor grad, SymInt[] size, bool align_corners) -> Tensor +inline at::Tensor affine_grid_generator_backward_symint(const at::Tensor & grad, c10::SymIntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_backward::call(grad, size, align_corners); +} +namespace symint { + template ::value>> + at::Tensor affine_grid_generator_backward(const at::Tensor & grad, c10::SymIntArrayRef size, bool align_corners) { + return at::_ops::affine_grid_generator_backward::call(grad, size, align_corners); + } +} + +} diff --git a/shared/package-files/ea/ea5434de057ef020f4fb4dad254ede573e0e44d822d3459fc43b870e18f60f54/blob b/shared/package-files/ea/ea5434de057ef020f4fb4dad254ede573e0e44d822d3459fc43b870e18f60f54/blob new file mode 100644 index 0000000000000000000000000000000000000000..907de11702af286650d9c1894df140f096fda799 --- /dev/null +++ b/shared/package-files/ea/ea5434de057ef020f4fb4dad254ede573e0e44d822d3459fc43b870e18f60f54/blob @@ -0,0 +1,1121 @@ +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import itertools + +import numpy as np +import pytest +from scipy import linalg, sparse +from scipy.linalg import eigh +from scipy.sparse.linalg import eigsh + +from sklearn import config_context +from sklearn.datasets import make_low_rank_matrix, make_sparse_spd_matrix +from sklearn.utils import gen_batches +from sklearn.utils._arpack import _init_arpack_v0 +from sklearn.utils._array_api import ( + _convert_to_numpy, + _get_namespace_device_dtype_ids, + get_namespace, + yield_namespace_device_dtype_combinations, +) +from sklearn.utils._testing import ( + _array_api_for_tests, + assert_allclose, + assert_allclose_dense_sparse, + assert_almost_equal, + assert_array_almost_equal, + assert_array_equal, + skip_if_32bit, +) +from sklearn.utils.extmath import ( + _approximate_mode, + _deterministic_vector_sign_flip, + _incremental_mean_and_var, + _randomized_eigsh, + _safe_accumulator_op, + cartesian, + density, + randomized_range_finder, + randomized_svd, + row_norms, + safe_sparse_dot, + softmax, + stable_cumsum, + svd_flip, + weighted_mode, +) +from sklearn.utils.fixes import ( + COO_CONTAINERS, + CSC_CONTAINERS, + CSR_CONTAINERS, + DOK_CONTAINERS, + LIL_CONTAINERS, + _mode, +) + + +@pytest.mark.parametrize( + "sparse_container", + COO_CONTAINERS + CSC_CONTAINERS + CSR_CONTAINERS + LIL_CONTAINERS, +) +def test_density(sparse_container): + rng = np.random.RandomState(0) + X = rng.randint(10, size=(10, 5)) + X[1, 2] = 0 + X[5, 3] = 0 + + assert density(sparse_container(X)) == density(X) + + +def test_uniform_weights(): + # with uniform weights, results should be identical to stats.mode + rng = np.random.RandomState(0) + x = rng.randint(10, size=(10, 5)) + weights = np.ones(x.shape) + + for axis in (None, 0, 1): + mode, score = _mode(x, axis) + mode2, score2 = weighted_mode(x, weights, axis=axis) + + assert_array_equal(mode, mode2) + assert_array_equal(score, score2) + + +def test_random_weights(): + # set this up so that each row should have a weighted mode of 6, + # with a score that is easily reproduced + mode_result = 6 + + rng = np.random.RandomState(0) + x = rng.randint(mode_result, size=(100, 10)) + w = rng.random_sample(x.shape) + + x[:, :5] = mode_result + w[:, :5] += 1 + + mode, score = weighted_mode(x, w, axis=1) + + assert_array_equal(mode, mode_result) + assert_array_almost_equal(score.ravel(), w[:, :5].sum(1)) + + +@pytest.mark.parametrize("dtype", (np.int32, np.int64, np.float32, np.float64)) +def test_randomized_svd_low_rank_all_dtypes(dtype): + # Check that extmath.randomized_svd is consistent with linalg.svd + n_samples = 100 + n_features = 500 + rank = 5 + k = 10 + decimal = 5 if dtype == np.float32 else 7 + dtype = np.dtype(dtype) + + # generate a matrix X of approximate effective rank `rank` and no noise + # component (very structured signal): + X = make_low_rank_matrix( + n_samples=n_samples, + n_features=n_features, + effective_rank=rank, + tail_strength=0.0, + random_state=0, + ).astype(dtype, copy=False) + assert X.shape == (n_samples, n_features) + + # compute the singular values of X using the slow exact method + U, s, Vt = linalg.svd(X, full_matrices=False) + + # Convert the singular values to the specific dtype + U = U.astype(dtype, copy=False) + s = s.astype(dtype, copy=False) + Vt = Vt.astype(dtype, copy=False) + + for normalizer in ["auto", "LU", "QR"]: # 'none' would not be stable + # compute the singular values of X using the fast approximate method + Ua, sa, Va = randomized_svd( + X, k, power_iteration_normalizer=normalizer, random_state=0 + ) + + # If the input dtype is float, then the output dtype is float of the + # same bit size (f32 is not upcast to f64) + # But if the input dtype is int, the output dtype is float64 + if dtype.kind == "f": + assert Ua.dtype == dtype + assert sa.dtype == dtype + assert Va.dtype == dtype + else: + assert Ua.dtype == np.float64 + assert sa.dtype == np.float64 + assert Va.dtype == np.float64 + + assert Ua.shape == (n_samples, k) + assert sa.shape == (k,) + assert Va.shape == (k, n_features) + + # ensure that the singular values of both methods are equal up to the + # real rank of the matrix + assert_almost_equal(s[:k], sa, decimal=decimal) + + # check the singular vectors too (while not checking the sign) + assert_almost_equal( + np.dot(U[:, :k], Vt[:k, :]), np.dot(Ua, Va), decimal=decimal + ) + + # check the sparse matrix representation + for csr_container in CSR_CONTAINERS: + X = csr_container(X) + + # compute the singular values of X using the fast approximate method + Ua, sa, Va = randomized_svd( + X, k, power_iteration_normalizer=normalizer, random_state=0 + ) + if dtype.kind == "f": + assert Ua.dtype == dtype + assert sa.dtype == dtype + assert Va.dtype == dtype + else: + assert Ua.dtype.kind == "f" + assert sa.dtype.kind == "f" + assert Va.dtype.kind == "f" + + assert_almost_equal(s[:rank], sa[:rank], decimal=decimal) + + +@pytest.mark.parametrize("dtype", (np.int32, np.int64, np.float32, np.float64)) +def test_randomized_eigsh(dtype): + """Test that `_randomized_eigsh` returns the appropriate components""" + + rng = np.random.RandomState(42) + X = np.diag(np.array([1.0, -2.0, 0.0, 3.0], dtype=dtype)) + # random rotation that preserves the eigenvalues of X + rand_rot = np.linalg.qr(rng.normal(size=X.shape))[0] + X = rand_rot @ X @ rand_rot.T + + # with 'module' selection method, the negative eigenvalue shows up + eigvals, eigvecs = _randomized_eigsh(X, n_components=2, selection="module") + # eigenvalues + assert eigvals.shape == (2,) + assert_array_almost_equal(eigvals, [3.0, -2.0]) # negative eigenvalue here + # eigenvectors + assert eigvecs.shape == (4, 2) + + # with 'value' selection method, the negative eigenvalue does not show up + with pytest.raises(NotImplementedError): + _randomized_eigsh(X, n_components=2, selection="value") + + +@pytest.mark.parametrize("k", (10, 50, 100, 199, 200)) +def test_randomized_eigsh_compared_to_others(k): + """Check that `_randomized_eigsh` is similar to other `eigsh` + + Tests that for a random PSD matrix, `_randomized_eigsh` provides results + comparable to LAPACK (scipy.linalg.eigh) and ARPACK + (scipy.sparse.linalg.eigsh). + + Note: some versions of ARPACK do not support k=n_features. + """ + + # make a random PSD matrix + n_features = 200 + X = make_sparse_spd_matrix(n_features, random_state=0) + + # compare two versions of randomized + # rough and fast + eigvals, eigvecs = _randomized_eigsh( + X, n_components=k, selection="module", n_iter=25, random_state=0 + ) + # more accurate but slow (TODO find realistic settings here) + eigvals_qr, eigvecs_qr = _randomized_eigsh( + X, + n_components=k, + n_iter=25, + n_oversamples=20, + random_state=0, + power_iteration_normalizer="QR", + selection="module", + ) + + # with LAPACK + eigvals_lapack, eigvecs_lapack = eigh( + X, subset_by_index=(n_features - k, n_features - 1) + ) + indices = eigvals_lapack.argsort()[::-1] + eigvals_lapack = eigvals_lapack[indices] + eigvecs_lapack = eigvecs_lapack[:, indices] + + # -- eigenvalues comparison + assert eigvals_lapack.shape == (k,) + # comparison precision + assert_array_almost_equal(eigvals, eigvals_lapack, decimal=6) + assert_array_almost_equal(eigvals_qr, eigvals_lapack, decimal=6) + + # -- eigenvectors comparison + assert eigvecs_lapack.shape == (n_features, k) + # flip eigenvectors' sign to enforce deterministic output + dummy_vecs = np.zeros_like(eigvecs).T + eigvecs, _ = svd_flip(eigvecs, dummy_vecs) + eigvecs_qr, _ = svd_flip(eigvecs_qr, dummy_vecs) + eigvecs_lapack, _ = svd_flip(eigvecs_lapack, dummy_vecs) + assert_array_almost_equal(eigvecs, eigvecs_lapack, decimal=4) + assert_array_almost_equal(eigvecs_qr, eigvecs_lapack, decimal=6) + + # comparison ARPACK ~ LAPACK (some ARPACK implems do not support k=n) + if k < n_features: + v0 = _init_arpack_v0(n_features, random_state=0) + # "LA" largest algebraic <=> selection="value" in randomized_eigsh + eigvals_arpack, eigvecs_arpack = eigsh( + X, k, which="LA", tol=0, maxiter=None, v0=v0 + ) + indices = eigvals_arpack.argsort()[::-1] + # eigenvalues + eigvals_arpack = eigvals_arpack[indices] + assert_array_almost_equal(eigvals_lapack, eigvals_arpack, decimal=10) + # eigenvectors + eigvecs_arpack = eigvecs_arpack[:, indices] + eigvecs_arpack, _ = svd_flip(eigvecs_arpack, dummy_vecs) + assert_array_almost_equal(eigvecs_arpack, eigvecs_lapack, decimal=8) + + +@pytest.mark.parametrize( + "n,rank", + [ + (10, 7), + (100, 10), + (100, 80), + (500, 10), + (500, 250), + (500, 400), + ], +) +def test_randomized_eigsh_reconst_low_rank(n, rank): + """Check that randomized_eigsh is able to reconstruct a low rank psd matrix + + Tests that the decomposition provided by `_randomized_eigsh` leads to + orthonormal eigenvectors, and that a low rank PSD matrix can be effectively + reconstructed with good accuracy using it. + """ + assert rank < n + + # create a low rank PSD + rng = np.random.RandomState(69) + X = rng.randn(n, rank) + A = X @ X.T + + # approximate A with the "right" number of components + S, V = _randomized_eigsh(A, n_components=rank, random_state=rng) + # orthonormality checks + assert_array_almost_equal(np.linalg.norm(V, axis=0), np.ones(S.shape)) + assert_array_almost_equal(V.T @ V, np.diag(np.ones(S.shape))) + # reconstruction + A_reconstruct = V @ np.diag(S) @ V.T + + # test that the approximation is good + assert_array_almost_equal(A_reconstruct, A, decimal=6) + + +@pytest.mark.parametrize("dtype", (np.float32, np.float64)) +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_row_norms(dtype, csr_container): + X = np.random.RandomState(42).randn(100, 100) + if dtype is np.float32: + precision = 4 + else: + precision = 5 + + X = X.astype(dtype, copy=False) + sq_norm = (X**2).sum(axis=1) + + assert_array_almost_equal(sq_norm, row_norms(X, squared=True), precision) + assert_array_almost_equal(np.sqrt(sq_norm), row_norms(X), precision) + + for csr_index_dtype in [np.int32, np.int64]: + Xcsr = csr_container(X, dtype=dtype) + # csr_matrix will use int32 indices by default, + # up-casting those to int64 when necessary + if csr_index_dtype is np.int64: + Xcsr.indptr = Xcsr.indptr.astype(csr_index_dtype, copy=False) + Xcsr.indices = Xcsr.indices.astype(csr_index_dtype, copy=False) + assert Xcsr.indices.dtype == csr_index_dtype + assert Xcsr.indptr.dtype == csr_index_dtype + assert_array_almost_equal(sq_norm, row_norms(Xcsr, squared=True), precision) + assert_array_almost_equal(np.sqrt(sq_norm), row_norms(Xcsr), precision) + + +def test_randomized_svd_low_rank_with_noise(): + # Check that extmath.randomized_svd can handle noisy matrices + n_samples = 100 + n_features = 500 + rank = 5 + k = 10 + + # generate a matrix X wity structure approximate rank `rank` and an + # important noisy component + X = make_low_rank_matrix( + n_samples=n_samples, + n_features=n_features, + effective_rank=rank, + tail_strength=0.1, + random_state=0, + ) + assert X.shape == (n_samples, n_features) + + # compute the singular values of X using the slow exact method + _, s, _ = linalg.svd(X, full_matrices=False) + + for normalizer in ["auto", "none", "LU", "QR"]: + # compute the singular values of X using the fast approximate + # method without the iterated power method + _, sa, _ = randomized_svd( + X, k, n_iter=0, power_iteration_normalizer=normalizer, random_state=0 + ) + + # the approximation does not tolerate the noise: + assert np.abs(s[:k] - sa).max() > 0.01 + + # compute the singular values of X using the fast approximate + # method with iterated power method + _, sap, _ = randomized_svd( + X, k, power_iteration_normalizer=normalizer, random_state=0 + ) + + # the iterated power method is helping getting rid of the noise: + assert_almost_equal(s[:k], sap, decimal=3) + + +def test_randomized_svd_infinite_rank(): + # Check that extmath.randomized_svd can handle noisy matrices + n_samples = 100 + n_features = 500 + rank = 5 + k = 10 + + # let us try again without 'low_rank component': just regularly but slowly + # decreasing singular values: the rank of the data matrix is infinite + X = make_low_rank_matrix( + n_samples=n_samples, + n_features=n_features, + effective_rank=rank, + tail_strength=1.0, + random_state=0, + ) + assert X.shape == (n_samples, n_features) + + # compute the singular values of X using the slow exact method + _, s, _ = linalg.svd(X, full_matrices=False) + for normalizer in ["auto", "none", "LU", "QR"]: + # compute the singular values of X using the fast approximate method + # without the iterated power method + _, sa, _ = randomized_svd( + X, k, n_iter=0, power_iteration_normalizer=normalizer, random_state=0 + ) + + # the approximation does not tolerate the noise: + assert np.abs(s[:k] - sa).max() > 0.1 + + # compute the singular values of X using the fast approximate method + # with iterated power method + _, sap, _ = randomized_svd( + X, k, n_iter=5, power_iteration_normalizer=normalizer, random_state=0 + ) + + # the iterated power method is still managing to get most of the + # structure at the requested rank + assert_almost_equal(s[:k], sap, decimal=3) + + +def test_randomized_svd_transpose_consistency(): + # Check that transposing the design matrix has limited impact + n_samples = 100 + n_features = 500 + rank = 4 + k = 10 + + X = make_low_rank_matrix( + n_samples=n_samples, + n_features=n_features, + effective_rank=rank, + tail_strength=0.5, + random_state=0, + ) + assert X.shape == (n_samples, n_features) + + U1, s1, V1 = randomized_svd(X, k, n_iter=3, transpose=False, random_state=0) + U2, s2, V2 = randomized_svd(X, k, n_iter=3, transpose=True, random_state=0) + U3, s3, V3 = randomized_svd(X, k, n_iter=3, transpose="auto", random_state=0) + U4, s4, V4 = linalg.svd(X, full_matrices=False) + + assert_almost_equal(s1, s4[:k], decimal=3) + assert_almost_equal(s2, s4[:k], decimal=3) + assert_almost_equal(s3, s4[:k], decimal=3) + + assert_almost_equal(np.dot(U1, V1), np.dot(U4[:, :k], V4[:k, :]), decimal=2) + assert_almost_equal(np.dot(U2, V2), np.dot(U4[:, :k], V4[:k, :]), decimal=2) + + # in this case 'auto' is equivalent to transpose + assert_almost_equal(s2, s3) + + +def test_randomized_svd_power_iteration_normalizer(): + # randomized_svd with power_iteration_normalized='none' diverges for + # large number of power iterations on this dataset + rng = np.random.RandomState(42) + X = make_low_rank_matrix(100, 500, effective_rank=50, random_state=rng) + X += 3 * rng.randint(0, 2, size=X.shape) + n_components = 50 + + # Check that it diverges with many (non-normalized) power iterations + U, s, Vt = randomized_svd( + X, n_components, n_iter=2, power_iteration_normalizer="none", random_state=0 + ) + A = X - U.dot(np.diag(s).dot(Vt)) + error_2 = linalg.norm(A, ord="fro") + U, s, Vt = randomized_svd( + X, n_components, n_iter=20, power_iteration_normalizer="none", random_state=0 + ) + A = X - U.dot(np.diag(s).dot(Vt)) + error_20 = linalg.norm(A, ord="fro") + assert np.abs(error_2 - error_20) > 100 + + for normalizer in ["LU", "QR", "auto"]: + U, s, Vt = randomized_svd( + X, + n_components, + n_iter=2, + power_iteration_normalizer=normalizer, + random_state=0, + ) + A = X - U.dot(np.diag(s).dot(Vt)) + error_2 = linalg.norm(A, ord="fro") + + for i in [5, 10, 50]: + U, s, Vt = randomized_svd( + X, + n_components, + n_iter=i, + power_iteration_normalizer=normalizer, + random_state=0, + ) + A = X - U.dot(np.diag(s).dot(Vt)) + error = linalg.norm(A, ord="fro") + assert 15 > np.abs(error_2 - error) + + +@pytest.mark.parametrize("sparse_container", DOK_CONTAINERS + LIL_CONTAINERS) +def test_randomized_svd_sparse_warnings(sparse_container): + # randomized_svd throws a warning for lil and dok matrix + rng = np.random.RandomState(42) + X = make_low_rank_matrix(50, 20, effective_rank=10, random_state=rng) + n_components = 5 + + X = sparse_container(X) + warn_msg = ( + "Calculating SVD of a {} is expensive. csr_matrix is more efficient.".format( + sparse_container.__name__ + ) + ) + with pytest.warns(sparse.SparseEfficiencyWarning, match=warn_msg): + randomized_svd(X, n_components, n_iter=1, power_iteration_normalizer="none") + + +def test_svd_flip(): + # Check that svd_flip works in both situations, and reconstructs input. + rs = np.random.RandomState(1999) + n_samples = 20 + n_features = 10 + X = rs.randn(n_samples, n_features) + + # Check matrix reconstruction + U, S, Vt = linalg.svd(X, full_matrices=False) + U1, V1 = svd_flip(U, Vt, u_based_decision=False) + assert_almost_equal(np.dot(U1 * S, V1), X, decimal=6) + + # Check transposed matrix reconstruction + XT = X.T + U, S, Vt = linalg.svd(XT, full_matrices=False) + U2, V2 = svd_flip(U, Vt, u_based_decision=True) + assert_almost_equal(np.dot(U2 * S, V2), XT, decimal=6) + + # Check that different flip methods are equivalent under reconstruction + U_flip1, V_flip1 = svd_flip(U, Vt, u_based_decision=True) + assert_almost_equal(np.dot(U_flip1 * S, V_flip1), XT, decimal=6) + U_flip2, V_flip2 = svd_flip(U, Vt, u_based_decision=False) + assert_almost_equal(np.dot(U_flip2 * S, V_flip2), XT, decimal=6) + + +@pytest.mark.parametrize("n_samples, n_features", [(3, 4), (4, 3)]) +def test_svd_flip_max_abs_cols(n_samples, n_features, global_random_seed): + rs = np.random.RandomState(global_random_seed) + X = rs.randn(n_samples, n_features) + U, _, Vt = linalg.svd(X, full_matrices=False) + + U1, _ = svd_flip(U, Vt, u_based_decision=True) + max_abs_U1_row_idx_for_col = np.argmax(np.abs(U1), axis=0) + assert (U1[max_abs_U1_row_idx_for_col, np.arange(U1.shape[1])] >= 0).all() + + _, V2 = svd_flip(U, Vt, u_based_decision=False) + max_abs_V2_col_idx_for_row = np.argmax(np.abs(V2), axis=1) + assert (V2[np.arange(V2.shape[0]), max_abs_V2_col_idx_for_row] >= 0).all() + + +def test_randomized_svd_sign_flip(): + a = np.array([[2.0, 0.0], [0.0, 1.0]]) + u1, s1, v1 = randomized_svd(a, 2, flip_sign=True, random_state=41) + for seed in range(10): + u2, s2, v2 = randomized_svd(a, 2, flip_sign=True, random_state=seed) + assert_almost_equal(u1, u2) + assert_almost_equal(v1, v2) + assert_almost_equal(np.dot(u2 * s2, v2), a) + assert_almost_equal(np.dot(u2.T, u2), np.eye(2)) + assert_almost_equal(np.dot(v2.T, v2), np.eye(2)) + + +def test_randomized_svd_sign_flip_with_transpose(): + # Check if the randomized_svd sign flipping is always done based on u + # irrespective of transpose. + # See https://github.com/scikit-learn/scikit-learn/issues/5608 + # for more details. + def max_loading_is_positive(u, v): + """ + returns bool tuple indicating if the values maximising np.abs + are positive across all rows for u and across all columns for v. + """ + u_based = (np.abs(u).max(axis=0) == u.max(axis=0)).all() + v_based = (np.abs(v).max(axis=1) == v.max(axis=1)).all() + return u_based, v_based + + mat = np.arange(10 * 8).reshape(10, -1) + + # Without transpose + u_flipped, _, v_flipped = randomized_svd(mat, 3, flip_sign=True, random_state=0) + u_based, v_based = max_loading_is_positive(u_flipped, v_flipped) + assert u_based + assert not v_based + + # With transpose + u_flipped_with_transpose, _, v_flipped_with_transpose = randomized_svd( + mat, 3, flip_sign=True, transpose=True, random_state=0 + ) + u_based, v_based = max_loading_is_positive( + u_flipped_with_transpose, v_flipped_with_transpose + ) + assert u_based + assert not v_based + + +@pytest.mark.parametrize("n", [50, 100, 300]) +@pytest.mark.parametrize("m", [50, 100, 300]) +@pytest.mark.parametrize("k", [10, 20, 50]) +@pytest.mark.parametrize("seed", range(5)) +def test_randomized_svd_lapack_driver(n, m, k, seed): + # Check that different SVD drivers provide consistent results + + # Matrix being compressed + rng = np.random.RandomState(seed) + X = rng.rand(n, m) + + # Number of components + u1, s1, vt1 = randomized_svd(X, k, svd_lapack_driver="gesdd", random_state=0) + u2, s2, vt2 = randomized_svd(X, k, svd_lapack_driver="gesvd", random_state=0) + + # Check shape and contents + assert u1.shape == u2.shape + assert_allclose(u1, u2, atol=0, rtol=1e-3) + + assert s1.shape == s2.shape + assert_allclose(s1, s2, atol=0, rtol=1e-3) + + assert vt1.shape == vt2.shape + assert_allclose(vt1, vt2, atol=0, rtol=1e-3) + + +def test_cartesian(): + # Check if cartesian product delivers the right results + + axes = (np.array([1, 2, 3]), np.array([4, 5]), np.array([6, 7])) + + true_out = np.array( + [ + [1, 4, 6], + [1, 4, 7], + [1, 5, 6], + [1, 5, 7], + [2, 4, 6], + [2, 4, 7], + [2, 5, 6], + [2, 5, 7], + [3, 4, 6], + [3, 4, 7], + [3, 5, 6], + [3, 5, 7], + ] + ) + + out = cartesian(axes) + assert_array_equal(true_out, out) + + # check single axis + x = np.arange(3) + assert_array_equal(x[:, np.newaxis], cartesian((x,))) + + +@pytest.mark.parametrize( + "arrays, output_dtype", + [ + ( + [np.array([1, 2, 3], dtype=np.int32), np.array([4, 5], dtype=np.int64)], + np.dtype(np.int64), + ), + ( + [np.array([1, 2, 3], dtype=np.int32), np.array([4, 5], dtype=np.float64)], + np.dtype(np.float64), + ), + ( + [np.array([1, 2, 3], dtype=np.int32), np.array(["x", "y"], dtype=object)], + np.dtype(object), + ), + ], +) +def test_cartesian_mix_types(arrays, output_dtype): + """Check that the cartesian product works with mixed types.""" + output = cartesian(arrays) + + assert output.dtype == output_dtype + + +@pytest.fixture() +def rng(): + return np.random.RandomState(42) + + +@pytest.mark.parametrize("dtype", [np.float32, np.float64]) +def test_incremental_weighted_mean_and_variance_simple(rng, dtype): + mult = 10 + X = rng.rand(1000, 20).astype(dtype) * mult + sample_weight = rng.rand(X.shape[0]) * mult + mean, var, _ = _incremental_mean_and_var(X, 0, 0, 0, sample_weight=sample_weight) + + expected_mean = np.average(X, weights=sample_weight, axis=0) + expected_var = np.average(X**2, weights=sample_weight, axis=0) - expected_mean**2 + assert_almost_equal(mean, expected_mean) + assert_almost_equal(var, expected_var) + + +@pytest.mark.parametrize("mean", [0, 1e7, -1e7]) +@pytest.mark.parametrize("var", [1, 1e-8, 1e5]) +@pytest.mark.parametrize( + "weight_loc, weight_scale", [(0, 1), (0, 1e-8), (1, 1e-8), (10, 1), (1e7, 1)] +) +def test_incremental_weighted_mean_and_variance( + mean, var, weight_loc, weight_scale, rng +): + # Testing of correctness and numerical stability + def _assert(X, sample_weight, expected_mean, expected_var): + n = X.shape[0] + for chunk_size in [1, n // 10 + 1, n // 4 + 1, n // 2 + 1, n]: + last_mean, last_weight_sum, last_var = 0, 0, 0 + for batch in gen_batches(n, chunk_size): + last_mean, last_var, last_weight_sum = _incremental_mean_and_var( + X[batch], + last_mean, + last_var, + last_weight_sum, + sample_weight=sample_weight[batch], + ) + assert_allclose(last_mean, expected_mean) + assert_allclose(last_var, expected_var, atol=1e-6) + + size = (100, 20) + weight = rng.normal(loc=weight_loc, scale=weight_scale, size=size[0]) + + # Compare to weighted average: np.average + X = rng.normal(loc=mean, scale=var, size=size) + expected_mean = _safe_accumulator_op(np.average, X, weights=weight, axis=0) + expected_var = _safe_accumulator_op( + np.average, (X - expected_mean) ** 2, weights=weight, axis=0 + ) + _assert(X, weight, expected_mean, expected_var) + + # Compare to unweighted mean: np.mean + X = rng.normal(loc=mean, scale=var, size=size) + ones_weight = np.ones(size[0]) + expected_mean = _safe_accumulator_op(np.mean, X, axis=0) + expected_var = _safe_accumulator_op(np.var, X, axis=0) + _assert(X, ones_weight, expected_mean, expected_var) + + +@pytest.mark.parametrize("dtype", [np.float32, np.float64]) +def test_incremental_weighted_mean_and_variance_ignore_nan(dtype): + old_means = np.array([535.0, 535.0, 535.0, 535.0]) + old_variances = np.array([4225.0, 4225.0, 4225.0, 4225.0]) + old_weight_sum = np.array([2, 2, 2, 2], dtype=np.int32) + sample_weights_X = np.ones(3) + sample_weights_X_nan = np.ones(4) + + X = np.array( + [[170, 170, 170, 170], [430, 430, 430, 430], [300, 300, 300, 300]] + ).astype(dtype) + + X_nan = np.array( + [ + [170, np.nan, 170, 170], + [np.nan, 170, 430, 430], + [430, 430, np.nan, 300], + [300, 300, 300, np.nan], + ] + ).astype(dtype) + + X_means, X_variances, X_count = _incremental_mean_and_var( + X, old_means, old_variances, old_weight_sum, sample_weight=sample_weights_X + ) + X_nan_means, X_nan_variances, X_nan_count = _incremental_mean_and_var( + X_nan, + old_means, + old_variances, + old_weight_sum, + sample_weight=sample_weights_X_nan, + ) + + assert_allclose(X_nan_means, X_means) + assert_allclose(X_nan_variances, X_variances) + assert_allclose(X_nan_count, X_count) + + +def test_incremental_variance_update_formulas(): + # Test Youngs and Cramer incremental variance formulas. + # Doggie data from https://www.mathsisfun.com/data/standard-deviation.html + A = np.array( + [ + [600, 470, 170, 430, 300], + [600, 470, 170, 430, 300], + [600, 470, 170, 430, 300], + [600, 470, 170, 430, 300], + ] + ).T + idx = 2 + X1 = A[:idx, :] + X2 = A[idx:, :] + + old_means = X1.mean(axis=0) + old_variances = X1.var(axis=0) + old_sample_count = np.full(X1.shape[1], X1.shape[0], dtype=np.int32) + final_means, final_variances, final_count = _incremental_mean_and_var( + X2, old_means, old_variances, old_sample_count + ) + assert_almost_equal(final_means, A.mean(axis=0), 6) + assert_almost_equal(final_variances, A.var(axis=0), 6) + assert_almost_equal(final_count, A.shape[0]) + + +def test_incremental_mean_and_variance_ignore_nan(): + old_means = np.array([535.0, 535.0, 535.0, 535.0]) + old_variances = np.array([4225.0, 4225.0, 4225.0, 4225.0]) + old_sample_count = np.array([2, 2, 2, 2], dtype=np.int32) + + X = np.array([[170, 170, 170, 170], [430, 430, 430, 430], [300, 300, 300, 300]]) + + X_nan = np.array( + [ + [170, np.nan, 170, 170], + [np.nan, 170, 430, 430], + [430, 430, np.nan, 300], + [300, 300, 300, np.nan], + ] + ) + + X_means, X_variances, X_count = _incremental_mean_and_var( + X, old_means, old_variances, old_sample_count + ) + X_nan_means, X_nan_variances, X_nan_count = _incremental_mean_and_var( + X_nan, old_means, old_variances, old_sample_count + ) + + assert_allclose(X_nan_means, X_means) + assert_allclose(X_nan_variances, X_variances) + assert_allclose(X_nan_count, X_count) + + +@skip_if_32bit +def test_incremental_variance_numerical_stability(): + # Test Youngs and Cramer incremental variance formulas. + + def np_var(A): + return A.var(axis=0) + + # Naive one pass variance computation - not numerically stable + # https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance + def one_pass_var(X): + n = X.shape[0] + exp_x2 = (X**2).sum(axis=0) / n + expx_2 = (X.sum(axis=0) / n) ** 2 + return exp_x2 - expx_2 + + # Two-pass algorithm, stable. + # We use it as a benchmark. It is not an online algorithm + # https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Two-pass_algorithm + def two_pass_var(X): + mean = X.mean(axis=0) + Y = X.copy() + return np.mean((Y - mean) ** 2, axis=0) + + # Naive online implementation + # https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Online_algorithm + # This works only for chunks for size 1 + def naive_mean_variance_update(x, last_mean, last_variance, last_sample_count): + updated_sample_count = last_sample_count + 1 + samples_ratio = last_sample_count / float(updated_sample_count) + updated_mean = x / updated_sample_count + last_mean * samples_ratio + updated_variance = ( + last_variance * samples_ratio + + (x - last_mean) * (x - updated_mean) / updated_sample_count + ) + return updated_mean, updated_variance, updated_sample_count + + # We want to show a case when one_pass_var has error > 1e-3 while + # _batch_mean_variance_update has less. + tol = 200 + n_features = 2 + n_samples = 10000 + x1 = np.array(1e8, dtype=np.float64) + x2 = np.log(1e-5, dtype=np.float64) + A0 = np.full((n_samples // 2, n_features), x1, dtype=np.float64) + A1 = np.full((n_samples // 2, n_features), x2, dtype=np.float64) + A = np.vstack((A0, A1)) + + # Naive one pass var: >tol (=1063) + assert np.abs(np_var(A) - one_pass_var(A)).max() > tol + + # Starting point for online algorithms: after A0 + + # Naive implementation: >tol (436) + mean, var, n = A0[0, :], np.zeros(n_features), n_samples // 2 + for i in range(A1.shape[0]): + mean, var, n = naive_mean_variance_update(A1[i, :], mean, var, n) + assert n == A.shape[0] + # the mean is also slightly unstable + assert np.abs(A.mean(axis=0) - mean).max() > 1e-6 + assert np.abs(np_var(A) - var).max() > tol + + # Robust implementation: np.abs(np_var(A) - var).max() + + +def test_incremental_variance_ddof(): + # Test that degrees of freedom parameter for calculations are correct. + rng = np.random.RandomState(1999) + X = rng.randn(50, 10) + n_samples, n_features = X.shape + for batch_size in [11, 20, 37]: + steps = np.arange(0, X.shape[0], batch_size) + if steps[-1] != X.shape[0]: + steps = np.hstack([steps, n_samples]) + + for i, j in itertools.pairwise(steps): + batch = X[i:j, :] + if i == 0: + incremental_means = batch.mean(axis=0) + incremental_variances = batch.var(axis=0) + # Assign this twice so that the test logic is consistent + incremental_count = batch.shape[0] + sample_count = np.full(batch.shape[1], batch.shape[0], dtype=np.int32) + else: + result = _incremental_mean_and_var( + batch, incremental_means, incremental_variances, sample_count + ) + (incremental_means, incremental_variances, incremental_count) = result + sample_count += batch.shape[0] + + calculated_means = np.mean(X[:j], axis=0) + calculated_variances = np.var(X[:j], axis=0) + assert_almost_equal(incremental_means, calculated_means, 6) + assert_almost_equal(incremental_variances, calculated_variances, 6) + assert_array_equal(incremental_count, sample_count) + + +def test_vector_sign_flip(): + # Testing that sign flip is working & largest value has positive sign + data = np.random.RandomState(36).randn(5, 5) + max_abs_rows = np.argmax(np.abs(data), axis=1) + data_flipped = _deterministic_vector_sign_flip(data) + max_rows = np.argmax(data_flipped, axis=1) + assert_array_equal(max_abs_rows, max_rows) + signs = np.sign(data[range(data.shape[0]), max_abs_rows]) + assert_array_equal(data, data_flipped * signs[:, np.newaxis]) + + +def test_softmax(): + rng = np.random.RandomState(0) + X = rng.randn(3, 5) + exp_X = np.exp(X) + sum_exp_X = np.sum(exp_X, axis=1).reshape((-1, 1)) + assert_array_almost_equal(softmax(X), exp_X / sum_exp_X) + + +def test_stable_cumsum(): + assert_array_equal(stable_cumsum([1, 2, 3]), np.cumsum([1, 2, 3])) + r = np.random.RandomState(0).rand(100000) + with pytest.warns(RuntimeWarning): + stable_cumsum(r, rtol=0, atol=0) + + # test axis parameter + A = np.random.RandomState(36).randint(1000, size=(5, 5, 5)) + assert_array_equal(stable_cumsum(A, axis=0), np.cumsum(A, axis=0)) + assert_array_equal(stable_cumsum(A, axis=1), np.cumsum(A, axis=1)) + assert_array_equal(stable_cumsum(A, axis=2), np.cumsum(A, axis=2)) + + +@pytest.mark.parametrize( + "A_container", + [np.array, *CSR_CONTAINERS], + ids=["dense"] + [container.__name__ for container in CSR_CONTAINERS], +) +@pytest.mark.parametrize( + "B_container", + [np.array, *CSR_CONTAINERS], + ids=["dense"] + [container.__name__ for container in CSR_CONTAINERS], +) +def test_safe_sparse_dot_2d(A_container, B_container): + rng = np.random.RandomState(0) + + A = rng.random_sample((30, 10)) + B = rng.random_sample((10, 20)) + expected = np.dot(A, B) + + A = A_container(A) + B = B_container(B) + actual = safe_sparse_dot(A, B, dense_output=True) + + assert_allclose(actual, expected) + + +@pytest.mark.parametrize("csr_container", CSR_CONTAINERS) +def test_safe_sparse_dot_nd(csr_container): + rng = np.random.RandomState(0) + + # dense ND / sparse + A = rng.random_sample((2, 3, 4, 5, 6)) + B = rng.random_sample((6, 7)) + expected = np.dot(A, B) + B = csr_container(B) + actual = safe_sparse_dot(A, B) + assert_allclose(actual, expected) + + # sparse / dense ND + A = rng.random_sample((2, 3)) + B = rng.random_sample((4, 5, 3, 6)) + expected = np.dot(A, B) + A = csr_container(A) + actual = safe_sparse_dot(A, B) + assert_allclose(actual, expected) + + +@pytest.mark.parametrize( + "container", + [np.array, *CSR_CONTAINERS], + ids=["dense"] + [container.__name__ for container in CSR_CONTAINERS], +) +def test_safe_sparse_dot_2d_1d(container): + rng = np.random.RandomState(0) + B = rng.random_sample((10)) + + # 2D @ 1D + A = rng.random_sample((30, 10)) + expected = np.dot(A, B) + actual = safe_sparse_dot(container(A), B) + assert_allclose(actual, expected) + + # 1D @ 2D + A = rng.random_sample((10, 30)) + expected = np.dot(B, A) + actual = safe_sparse_dot(B, container(A)) + assert_allclose(actual, expected) + + +@pytest.mark.parametrize("dense_output", [True, False]) +def test_safe_sparse_dot_dense_output(dense_output): + rng = np.random.RandomState(0) + + A = sparse.random(30, 10, density=0.1, random_state=rng) + B = sparse.random(10, 20, density=0.1, random_state=rng) + + expected = A.dot(B) + actual = safe_sparse_dot(A, B, dense_output=dense_output) + + assert sparse.issparse(actual) == (not dense_output) + + if dense_output: + expected = expected.toarray() + assert_allclose_dense_sparse(actual, expected) + + +def test_approximate_mode(): + """Make sure sklearn.utils.extmath._approximate_mode returns valid + results for cases where "class_counts * n_draws" is enough + to overflow 32-bit signed integer. + + Non-regression test for: + https://github.com/scikit-learn/scikit-learn/issues/20774 + """ + X = np.array([99000, 1000], dtype=np.int32) + ret = _approximate_mode(class_counts=X, n_draws=25000, rng=0) + + # Draws 25% of the total population, so in this case a fair draw means: + # 25% * 99.000 = 24.750 + # 25% * 1.000 = 250 + assert_array_equal(ret, [24750, 250]) + + +@pytest.mark.parametrize( + "array_namespace, device, dtype", + yield_namespace_device_dtype_combinations(), + ids=_get_namespace_device_dtype_ids, +) +def test_randomized_svd_array_api_compliance(array_namespace, device, dtype): + xp = _array_api_for_tests(array_namespace, device) + + rng = np.random.RandomState(0) + X = rng.normal(size=(30, 10)).astype(dtype) + X_xp = xp.asarray(X, device=device) + n_components = 5 + atol = 1e-5 if dtype == "float32" else 0 + + with config_context(array_api_dispatch=True): + u_np, s_np, vt_np = randomized_svd(X, n_components, random_state=0) + u_xp, s_xp, vt_xp = randomized_svd(X_xp, n_components, random_state=0) + + assert get_namespace(u_xp)[0].__name__ == xp.__name__ + assert get_namespace(s_xp)[0].__name__ == xp.__name__ + assert get_namespace(vt_xp)[0].__name__ == xp.__name__ + + assert_allclose(_convert_to_numpy(u_xp, xp), u_np, atol=atol) + assert_allclose(_convert_to_numpy(s_xp, xp), s_np, atol=atol) + assert_allclose(_convert_to_numpy(vt_xp, xp), vt_np, atol=atol) + + +@pytest.mark.parametrize( + "array_namespace, device, dtype", + yield_namespace_device_dtype_combinations(), + ids=_get_namespace_device_dtype_ids, +) +def test_randomized_range_finder_array_api_compliance(array_namespace, device, dtype): + xp = _array_api_for_tests(array_namespace, device) + + rng = np.random.RandomState(0) + X = rng.normal(size=(30, 10)).astype(dtype) + X_xp = xp.asarray(X, device=device) + size = 5 + n_iter = 10 + atol = 1e-5 if dtype == "float32" else 0 + + with config_context(array_api_dispatch=True): + Q_np = randomized_range_finder(X, size=size, n_iter=n_iter, random_state=0) + Q_xp = randomized_range_finder(X_xp, size=size, n_iter=n_iter, random_state=0) + + assert get_namespace(Q_xp)[0].__name__ == xp.__name__ + assert_allclose(_convert_to_numpy(Q_xp, xp), Q_np, atol=atol) diff --git a/shared/package-files/ea/ea551e65f99a056befb3376a9562cc1e05cf8d5b31bd6d56669778fa31560a95/blob b/shared/package-files/ea/ea551e65f99a056befb3376a9562cc1e05cf8d5b31bd6d56669778fa31560a95/blob new file mode 100644 index 0000000000000000000000000000000000000000..c704cadeb953793ac0a887aa09c4278cf68a2824 --- /dev/null +++ b/shared/package-files/ea/ea551e65f99a056befb3376a9562cc1e05cf8d5b31bd6d56669778fa31560a95/blob @@ -0,0 +1,143 @@ +from mpmath.libmp import * +from mpmath import mpf, mp + +from random import randint, choice, seed + +all_modes = [round_floor, round_ceiling, round_down, round_up, round_nearest] + +fb = from_bstr +fi = from_int +ff = from_float + + +def test_div_1_3(): + a = fi(1) + b = fi(3) + c = fi(-1) + + # floor rounds down, ceiling rounds up + assert mpf_div(a, b, 7, round_floor) == fb('0.01010101') + assert mpf_div(a, b, 7, round_ceiling) == fb('0.01010110') + assert mpf_div(a, b, 7, round_down) == fb('0.01010101') + assert mpf_div(a, b, 7, round_up) == fb('0.01010110') + assert mpf_div(a, b, 7, round_nearest) == fb('0.01010101') + + # floor rounds up, ceiling rounds down + assert mpf_div(c, b, 7, round_floor) == fb('-0.01010110') + assert mpf_div(c, b, 7, round_ceiling) == fb('-0.01010101') + assert mpf_div(c, b, 7, round_down) == fb('-0.01010101') + assert mpf_div(c, b, 7, round_up) == fb('-0.01010110') + assert mpf_div(c, b, 7, round_nearest) == fb('-0.01010101') + +def test_mpf_divi_1_3(): + a = 1 + b = fi(3) + c = -1 + assert mpf_rdiv_int(a, b, 7, round_floor) == fb('0.01010101') + assert mpf_rdiv_int(a, b, 7, round_ceiling) == fb('0.01010110') + assert mpf_rdiv_int(a, b, 7, round_down) == fb('0.01010101') + assert mpf_rdiv_int(a, b, 7, round_up) == fb('0.01010110') + assert mpf_rdiv_int(a, b, 7, round_nearest) == fb('0.01010101') + assert mpf_rdiv_int(c, b, 7, round_floor) == fb('-0.01010110') + assert mpf_rdiv_int(c, b, 7, round_ceiling) == fb('-0.01010101') + assert mpf_rdiv_int(c, b, 7, round_down) == fb('-0.01010101') + assert mpf_rdiv_int(c, b, 7, round_up) == fb('-0.01010110') + assert mpf_rdiv_int(c, b, 7, round_nearest) == fb('-0.01010101') + + +def test_div_300(): + + q = fi(1000000) + a = fi(300499999) # a/q is a little less than a half-integer + b = fi(300500000) # b/q exactly a half-integer + c = fi(300500001) # c/q is a little more than a half-integer + + # Check nearest integer rounding (prec=9 as 2**8 < 300 < 2**9) + + assert mpf_div(a, q, 9, round_down) == fi(300) + assert mpf_div(b, q, 9, round_down) == fi(300) + assert mpf_div(c, q, 9, round_down) == fi(300) + assert mpf_div(a, q, 9, round_up) == fi(301) + assert mpf_div(b, q, 9, round_up) == fi(301) + assert mpf_div(c, q, 9, round_up) == fi(301) + + # Nearest even integer is down + assert mpf_div(a, q, 9, round_nearest) == fi(300) + assert mpf_div(b, q, 9, round_nearest) == fi(300) + assert mpf_div(c, q, 9, round_nearest) == fi(301) + + # Nearest even integer is up + a = fi(301499999) + b = fi(301500000) + c = fi(301500001) + assert mpf_div(a, q, 9, round_nearest) == fi(301) + assert mpf_div(b, q, 9, round_nearest) == fi(302) + assert mpf_div(c, q, 9, round_nearest) == fi(302) + + +def test_tight_integer_division(): + # Test that integer division at tightest possible precision is exact + N = 100 + seed(1) + for i in range(N): + a = choice([1, -1]) * randint(1, 1< 1: + difference = [x for x in pids_psutil if x not in pids_ps] + \ + [x for x in pids_ps if x not in pids_psutil] + self.fail("difference: " + str(difference)) + + # for some reason ifconfig -a does not report all interfaces + # returned by psutil + @unittest.skipIf(SUNOS, "unreliable on SUNOS") + @unittest.skipIf(not which('ifconfig'), "no ifconfig cmd") + @unittest.skipIf(not HAS_NET_IO_COUNTERS, "not supported") + def test_nic_names(self): + output = sh("ifconfig -a") + for nic in psutil.net_io_counters(pernic=True).keys(): + for line in output.split(): + if line.startswith(nic): + break + else: + self.fail( + "couldn't find %s nic in 'ifconfig -a' output\n%s" % ( + nic, output)) + + @unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI") + @retry_on_failure() + def test_users(self): + out = sh("who") + if not out.strip(): + raise self.skipTest("no users on this system") + lines = out.split('\n') + users = [x.split()[0] for x in lines] + terminals = [x.split()[1] for x in lines] + self.assertEqual(len(users), len(psutil.users())) + for u in psutil.users(): + self.assertIn(u.name, users) + self.assertIn(u.terminal, terminals) + + def test_pid_exists_let_raise(self): + # According to "man 2 kill" possible error values for kill + # are (EINVAL, EPERM, ESRCH). Test that any other errno + # results in an exception. + with mock.patch("psutil._psposix.os.kill", + side_effect=OSError(errno.EBADF, "")) as m: + self.assertRaises(OSError, psutil._psposix.pid_exists, os.getpid()) + assert m.called + + def test_os_waitpid_let_raise(self): + # os.waitpid() is supposed to catch EINTR and ECHILD only. + # Test that any other errno results in an exception. + with mock.patch("psutil._psposix.os.waitpid", + side_effect=OSError(errno.EBADF, "")) as m: + self.assertRaises(OSError, psutil._psposix.wait_pid, os.getpid()) + assert m.called + + def test_os_waitpid_eintr(self): + # os.waitpid() is supposed to "retry" on EINTR. + with mock.patch("psutil._psposix.os.waitpid", + side_effect=OSError(errno.EINTR, "")) as m: + self.assertRaises( + psutil._psposix.TimeoutExpired, + psutil._psposix.wait_pid, os.getpid(), timeout=0.01) + assert m.called + + def test_os_waitpid_bad_ret_status(self): + # Simulate os.waitpid() returning a bad status. + with mock.patch("psutil._psposix.os.waitpid", + return_value=(1, -1)) as m: + self.assertRaises(ValueError, + psutil._psposix.wait_pid, os.getpid()) + assert m.called + + # AIX can return '-' in df output instead of numbers, e.g. for /proc + @unittest.skipIf(AIX, "unreliable on AIX") + @retry_on_failure() + def test_disk_usage(self): + def df(device): + out = sh("df -k %s" % device).strip() + line = out.split('\n')[1] + fields = line.split() + total = int(fields[1]) * 1024 + used = int(fields[2]) * 1024 + free = int(fields[3]) * 1024 + percent = float(fields[4].replace('%', '')) + return (total, used, free, percent) + + tolerance = 4 * 1024 * 1024 # 4MB + for part in psutil.disk_partitions(all=False): + usage = psutil.disk_usage(part.mountpoint) + try: + total, used, free, percent = df(part.device) + except RuntimeError as err: + # see: + # https://travis-ci.org/giampaolo/psutil/jobs/138338464 + # https://travis-ci.org/giampaolo/psutil/jobs/138343361 + err = str(err).lower() + if "no such file or directory" in err or \ + "raw devices not supported" in err or \ + "permission denied" in err: + continue + else: + raise + else: + self.assertAlmostEqual(usage.total, total, delta=tolerance) + self.assertAlmostEqual(usage.used, used, delta=tolerance) + self.assertAlmostEqual(usage.free, free, delta=tolerance) + self.assertAlmostEqual(usage.percent, percent, delta=1) + + +@unittest.skipIf(not POSIX, "POSIX only") +class TestMisc(PsutilTestCase): + + def test_getpagesize(self): + pagesize = getpagesize() + self.assertGreater(pagesize, 0) + self.assertEqual(pagesize, resource.getpagesize()) + self.assertEqual(pagesize, mmap.PAGESIZE) + + +if __name__ == '__main__': + from psutil.tests.runner import run_from_name + run_from_name(__file__) diff --git a/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/blob b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/blob new file mode 100644 index 0000000000000000000000000000000000000000..6be8eac0e3759ed96a628290c38fe7a926269c2e Binary files /dev/null and b/shared/package-files/ea/ea56eb3271dac2dc9197e2c323f6c6f137af340c5c91669911d8f863aeccc6fe/blob differ diff --git a/shared/package-files/ea/ea59181cda533e9daaabca8a04d88af55fb136a2e0d0c61ca22fe4b0a68d05c8/blob b/shared/package-files/ea/ea59181cda533e9daaabca8a04d88af55fb136a2e0d0c61ca22fe4b0a68d05c8/blob new file mode 100644 index 0000000000000000000000000000000000000000..a3d9bdb9dd708d59afb2932ff587bfbb8c4a8129 --- /dev/null +++ b/shared/package-files/ea/ea59181cda533e9daaabca8a04d88af55fb136a2e0d0c61ca22fe4b0a68d05c8/blob @@ -0,0 +1,1875 @@ +"""Arithmetics for dense recursive polynomials in ``K[x]`` or ``K[X]``. """ + + +from sympy.polys.densebasic import ( + dup_slice, + dup_LC, dmp_LC, + dup_degree, dmp_degree, + dup_strip, dmp_strip, + dmp_zero_p, dmp_zero, + dmp_one_p, dmp_one, + dmp_ground, dmp_zeros) +from sympy.polys.polyerrors import (ExactQuotientFailed, PolynomialDivisionFailed) + +def dup_add_term(f, c, i, K): + """ + Add ``c*x**i`` to ``f`` in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_add_term(x**2 - 1, ZZ(2), 4) + 2*x**4 + x**2 - 1 + + """ + if not c: + return f + + n = len(f) + m = n - i - 1 + + if i == n - 1: + return dup_strip([f[0] + c] + f[1:]) + else: + if i >= n: + return [c] + [K.zero]*(i - n) + f + else: + return f[:m] + [f[m] + c] + f[m + 1:] + + +def dmp_add_term(f, c, i, u, K): + """ + Add ``c(x_2..x_u)*x_0**i`` to ``f`` in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_add_term(x*y + 1, 2, 2) + 2*x**2 + x*y + 1 + + """ + if not u: + return dup_add_term(f, c, i, K) + + v = u - 1 + + if dmp_zero_p(c, v): + return f + + n = len(f) + m = n - i - 1 + + if i == n - 1: + return dmp_strip([dmp_add(f[0], c, v, K)] + f[1:], u) + else: + if i >= n: + return [c] + dmp_zeros(i - n, v, K) + f + else: + return f[:m] + [dmp_add(f[m], c, v, K)] + f[m + 1:] + + +def dup_sub_term(f, c, i, K): + """ + Subtract ``c*x**i`` from ``f`` in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_sub_term(2*x**4 + x**2 - 1, ZZ(2), 4) + x**2 - 1 + + """ + if not c: + return f + + n = len(f) + m = n - i - 1 + + if i == n - 1: + return dup_strip([f[0] - c] + f[1:]) + else: + if i >= n: + return [-c] + [K.zero]*(i - n) + f + else: + return f[:m] + [f[m] - c] + f[m + 1:] + + +def dmp_sub_term(f, c, i, u, K): + """ + Subtract ``c(x_2..x_u)*x_0**i`` from ``f`` in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_sub_term(2*x**2 + x*y + 1, 2, 2) + x*y + 1 + + """ + if not u: + return dup_add_term(f, -c, i, K) + + v = u - 1 + + if dmp_zero_p(c, v): + return f + + n = len(f) + m = n - i - 1 + + if i == n - 1: + return dmp_strip([dmp_sub(f[0], c, v, K)] + f[1:], u) + else: + if i >= n: + return [dmp_neg(c, v, K)] + dmp_zeros(i - n, v, K) + f + else: + return f[:m] + [dmp_sub(f[m], c, v, K)] + f[m + 1:] + + +def dup_mul_term(f, c, i, K): + """ + Multiply ``f`` by ``c*x**i`` in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_mul_term(x**2 - 1, ZZ(3), 2) + 3*x**4 - 3*x**2 + + """ + if not c or not f: + return [] + else: + return [ cf * c for cf in f ] + [K.zero]*i + + +def dmp_mul_term(f, c, i, u, K): + """ + Multiply ``f`` by ``c(x_2..x_u)*x_0**i`` in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_mul_term(x**2*y + x, 3*y, 2) + 3*x**4*y**2 + 3*x**3*y + + """ + if not u: + return dup_mul_term(f, c, i, K) + + v = u - 1 + + if dmp_zero_p(f, u): + return f + if dmp_zero_p(c, v): + return dmp_zero(u) + else: + return [ dmp_mul(cf, c, v, K) for cf in f ] + dmp_zeros(i, v, K) + + +def dup_add_ground(f, c, K): + """ + Add an element of the ground domain to ``f``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_add_ground(x**3 + 2*x**2 + 3*x + 4, ZZ(4)) + x**3 + 2*x**2 + 3*x + 8 + + """ + return dup_add_term(f, c, 0, K) + + +def dmp_add_ground(f, c, u, K): + """ + Add an element of the ground domain to ``f``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_add_ground(x**3 + 2*x**2 + 3*x + 4, ZZ(4)) + x**3 + 2*x**2 + 3*x + 8 + + """ + return dmp_add_term(f, dmp_ground(c, u - 1), 0, u, K) + + +def dup_sub_ground(f, c, K): + """ + Subtract an element of the ground domain from ``f``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_sub_ground(x**3 + 2*x**2 + 3*x + 4, ZZ(4)) + x**3 + 2*x**2 + 3*x + + """ + return dup_sub_term(f, c, 0, K) + + +def dmp_sub_ground(f, c, u, K): + """ + Subtract an element of the ground domain from ``f``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_sub_ground(x**3 + 2*x**2 + 3*x + 4, ZZ(4)) + x**3 + 2*x**2 + 3*x + + """ + return dmp_sub_term(f, dmp_ground(c, u - 1), 0, u, K) + + +def dup_mul_ground(f, c, K): + """ + Multiply ``f`` by a constant value in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_mul_ground(x**2 + 2*x - 1, ZZ(3)) + 3*x**2 + 6*x - 3 + + """ + if not c or not f: + return [] + else: + return [ cf * c for cf in f ] + + +def dmp_mul_ground(f, c, u, K): + """ + Multiply ``f`` by a constant value in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_mul_ground(2*x + 2*y, ZZ(3)) + 6*x + 6*y + + """ + if not u: + return dup_mul_ground(f, c, K) + + v = u - 1 + + return [ dmp_mul_ground(cf, c, v, K) for cf in f ] + + +def dup_quo_ground(f, c, K): + """ + Quotient by a constant in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x = ring("x", ZZ) + >>> R.dup_quo_ground(3*x**2 + 2, ZZ(2)) + x**2 + 1 + + >>> R, x = ring("x", QQ) + >>> R.dup_quo_ground(3*x**2 + 2, QQ(2)) + 3/2*x**2 + 1 + + """ + if not c: + raise ZeroDivisionError('polynomial division') + if not f: + return f + + if K.is_Field: + return [ K.quo(cf, c) for cf in f ] + else: + return [ cf // c for cf in f ] + + +def dmp_quo_ground(f, c, u, K): + """ + Quotient by a constant in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x,y = ring("x,y", ZZ) + >>> R.dmp_quo_ground(2*x**2*y + 3*x, ZZ(2)) + x**2*y + x + + >>> R, x,y = ring("x,y", QQ) + >>> R.dmp_quo_ground(2*x**2*y + 3*x, QQ(2)) + x**2*y + 3/2*x + + """ + if not u: + return dup_quo_ground(f, c, K) + + v = u - 1 + + return [ dmp_quo_ground(cf, c, v, K) for cf in f ] + + +def dup_exquo_ground(f, c, K): + """ + Exact quotient by a constant in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, QQ + >>> R, x = ring("x", QQ) + + >>> R.dup_exquo_ground(x**2 + 2, QQ(2)) + 1/2*x**2 + 1 + + """ + if not c: + raise ZeroDivisionError('polynomial division') + if not f: + return f + + return [ K.exquo(cf, c) for cf in f ] + + +def dmp_exquo_ground(f, c, u, K): + """ + Exact quotient by a constant in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, QQ + >>> R, x,y = ring("x,y", QQ) + + >>> R.dmp_exquo_ground(x**2*y + 2*x, QQ(2)) + 1/2*x**2*y + x + + """ + if not u: + return dup_exquo_ground(f, c, K) + + v = u - 1 + + return [ dmp_exquo_ground(cf, c, v, K) for cf in f ] + + +def dup_lshift(f, n, K): + """ + Efficiently multiply ``f`` by ``x**n`` in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_lshift(x**2 + 1, 2) + x**4 + x**2 + + """ + if not f: + return f + else: + return f + [K.zero]*n + + +def dup_rshift(f, n, K): + """ + Efficiently divide ``f`` by ``x**n`` in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_rshift(x**4 + x**2, 2) + x**2 + 1 + >>> R.dup_rshift(x**4 + x**2 + 2, 2) + x**2 + 1 + + """ + return f[:-n] + + +def dup_abs(f, K): + """ + Make all coefficients positive in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_abs(x**2 - 1) + x**2 + 1 + + """ + return [ K.abs(coeff) for coeff in f ] + + +def dmp_abs(f, u, K): + """ + Make all coefficients positive in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_abs(x**2*y - x) + x**2*y + x + + """ + if not u: + return dup_abs(f, K) + + v = u - 1 + + return [ dmp_abs(cf, v, K) for cf in f ] + + +def dup_neg(f, K): + """ + Negate a polynomial in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_neg(x**2 - 1) + -x**2 + 1 + + """ + return [ -coeff for coeff in f ] + + +def dmp_neg(f, u, K): + """ + Negate a polynomial in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_neg(x**2*y - x) + -x**2*y + x + + """ + if not u: + return dup_neg(f, K) + + v = u - 1 + + return [ dmp_neg(cf, v, K) for cf in f ] + + +def dup_add(f, g, K): + """ + Add dense polynomials in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_add(x**2 - 1, x - 2) + x**2 + x - 3 + + """ + if not f: + return g + if not g: + return f + + df = dup_degree(f) + dg = dup_degree(g) + + if df == dg: + return dup_strip([ a + b for a, b in zip(f, g) ]) + else: + k = abs(df - dg) + + if df > dg: + h, f = f[:k], f[k:] + else: + h, g = g[:k], g[k:] + + return h + [ a + b for a, b in zip(f, g) ] + + +def dmp_add(f, g, u, K): + """ + Add dense polynomials in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_add(x**2 + y, x**2*y + x) + x**2*y + x**2 + x + y + + """ + if not u: + return dup_add(f, g, K) + + df = dmp_degree(f, u) + + if df < 0: + return g + + dg = dmp_degree(g, u) + + if dg < 0: + return f + + v = u - 1 + + if df == dg: + return dmp_strip([ dmp_add(a, b, v, K) for a, b in zip(f, g) ], u) + else: + k = abs(df - dg) + + if df > dg: + h, f = f[:k], f[k:] + else: + h, g = g[:k], g[k:] + + return h + [ dmp_add(a, b, v, K) for a, b in zip(f, g) ] + + +def dup_sub(f, g, K): + """ + Subtract dense polynomials in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_sub(x**2 - 1, x - 2) + x**2 - x + 1 + + """ + if not f: + return dup_neg(g, K) + if not g: + return f + + df = dup_degree(f) + dg = dup_degree(g) + + if df == dg: + return dup_strip([ a - b for a, b in zip(f, g) ]) + else: + k = abs(df - dg) + + if df > dg: + h, f = f[:k], f[k:] + else: + h, g = dup_neg(g[:k], K), g[k:] + + return h + [ a - b for a, b in zip(f, g) ] + + +def dmp_sub(f, g, u, K): + """ + Subtract dense polynomials in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_sub(x**2 + y, x**2*y + x) + -x**2*y + x**2 - x + y + + """ + if not u: + return dup_sub(f, g, K) + + df = dmp_degree(f, u) + + if df < 0: + return dmp_neg(g, u, K) + + dg = dmp_degree(g, u) + + if dg < 0: + return f + + v = u - 1 + + if df == dg: + return dmp_strip([ dmp_sub(a, b, v, K) for a, b in zip(f, g) ], u) + else: + k = abs(df - dg) + + if df > dg: + h, f = f[:k], f[k:] + else: + h, g = dmp_neg(g[:k], u, K), g[k:] + + return h + [ dmp_sub(a, b, v, K) for a, b in zip(f, g) ] + + +def dup_add_mul(f, g, h, K): + """ + Returns ``f + g*h`` where ``f, g, h`` are in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_add_mul(x**2 - 1, x - 2, x + 2) + 2*x**2 - 5 + + """ + return dup_add(f, dup_mul(g, h, K), K) + + +def dmp_add_mul(f, g, h, u, K): + """ + Returns ``f + g*h`` where ``f, g, h`` are in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_add_mul(x**2 + y, x, x + 2) + 2*x**2 + 2*x + y + + """ + return dmp_add(f, dmp_mul(g, h, u, K), u, K) + + +def dup_sub_mul(f, g, h, K): + """ + Returns ``f - g*h`` where ``f, g, h`` are in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_sub_mul(x**2 - 1, x - 2, x + 2) + 3 + + """ + return dup_sub(f, dup_mul(g, h, K), K) + + +def dmp_sub_mul(f, g, h, u, K): + """ + Returns ``f - g*h`` where ``f, g, h`` are in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_sub_mul(x**2 + y, x, x + 2) + -2*x + y + + """ + return dmp_sub(f, dmp_mul(g, h, u, K), u, K) + + +def dup_mul(f, g, K): + """ + Multiply dense polynomials in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_mul(x - 2, x + 2) + x**2 - 4 + + """ + if f == g: + return dup_sqr(f, K) + + if not (f and g): + return [] + + df = dup_degree(f) + dg = dup_degree(g) + + n = max(df, dg) + 1 + + if n < 100: + h = [] + + for i in range(0, df + dg + 1): + coeff = K.zero + + for j in range(max(0, i - dg), min(df, i) + 1): + coeff += f[j]*g[i - j] + + h.append(coeff) + + return dup_strip(h) + else: + # Use Karatsuba's algorithm (divide and conquer), see e.g.: + # Joris van der Hoeven, Relax But Don't Be Too Lazy, + # J. Symbolic Computation, 11 (2002), section 3.1.1. + n2 = n//2 + + fl, gl = dup_slice(f, 0, n2, K), dup_slice(g, 0, n2, K) + + fh = dup_rshift(dup_slice(f, n2, n, K), n2, K) + gh = dup_rshift(dup_slice(g, n2, n, K), n2, K) + + lo, hi = dup_mul(fl, gl, K), dup_mul(fh, gh, K) + + mid = dup_mul(dup_add(fl, fh, K), dup_add(gl, gh, K), K) + mid = dup_sub(mid, dup_add(lo, hi, K), K) + + return dup_add(dup_add(lo, dup_lshift(mid, n2, K), K), + dup_lshift(hi, 2*n2, K), K) + + +def dmp_mul(f, g, u, K): + """ + Multiply dense polynomials in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_mul(x*y + 1, x) + x**2*y + x + + """ + if not u: + return dup_mul(f, g, K) + + if f == g: + return dmp_sqr(f, u, K) + + df = dmp_degree(f, u) + + if df < 0: + return f + + dg = dmp_degree(g, u) + + if dg < 0: + return g + + h, v = [], u - 1 + + for i in range(0, df + dg + 1): + coeff = dmp_zero(v) + + for j in range(max(0, i - dg), min(df, i) + 1): + coeff = dmp_add(coeff, dmp_mul(f[j], g[i - j], v, K), v, K) + + h.append(coeff) + + return dmp_strip(h, u) + + +def dup_sqr(f, K): + """ + Square dense polynomials in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_sqr(x**2 + 1) + x**4 + 2*x**2 + 1 + + """ + df, h = len(f) - 1, [] + + for i in range(0, 2*df + 1): + c = K.zero + + jmin = max(0, i - df) + jmax = min(i, df) + + n = jmax - jmin + 1 + + jmax = jmin + n // 2 - 1 + + for j in range(jmin, jmax + 1): + c += f[j]*f[i - j] + + c += c + + if n & 1: + elem = f[jmax + 1] + c += elem**2 + + h.append(c) + + return dup_strip(h) + + +def dmp_sqr(f, u, K): + """ + Square dense polynomials in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_sqr(x**2 + x*y + y**2) + x**4 + 2*x**3*y + 3*x**2*y**2 + 2*x*y**3 + y**4 + + """ + if not u: + return dup_sqr(f, K) + + df = dmp_degree(f, u) + + if df < 0: + return f + + h, v = [], u - 1 + + for i in range(0, 2*df + 1): + c = dmp_zero(v) + + jmin = max(0, i - df) + jmax = min(i, df) + + n = jmax - jmin + 1 + + jmax = jmin + n // 2 - 1 + + for j in range(jmin, jmax + 1): + c = dmp_add(c, dmp_mul(f[j], f[i - j], v, K), v, K) + + c = dmp_mul_ground(c, K(2), v, K) + + if n & 1: + elem = dmp_sqr(f[jmax + 1], v, K) + c = dmp_add(c, elem, v, K) + + h.append(c) + + return dmp_strip(h, u) + + +def dup_pow(f, n, K): + """ + Raise ``f`` to the ``n``-th power in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_pow(x - 2, 3) + x**3 - 6*x**2 + 12*x - 8 + + """ + if not n: + return [K.one] + if n < 0: + raise ValueError("Cannot raise polynomial to a negative power") + if n == 1 or not f or f == [K.one]: + return f + + g = [K.one] + + while True: + n, m = n//2, n + + if m % 2: + g = dup_mul(g, f, K) + + if not n: + break + + f = dup_sqr(f, K) + + return g + + +def dmp_pow(f, n, u, K): + """ + Raise ``f`` to the ``n``-th power in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_pow(x*y + 1, 3) + x**3*y**3 + 3*x**2*y**2 + 3*x*y + 1 + + """ + if not u: + return dup_pow(f, n, K) + + if not n: + return dmp_one(u, K) + if n < 0: + raise ValueError("Cannot raise polynomial to a negative power") + if n == 1 or dmp_zero_p(f, u) or dmp_one_p(f, u, K): + return f + + g = dmp_one(u, K) + + while True: + n, m = n//2, n + + if m & 1: + g = dmp_mul(g, f, u, K) + + if not n: + break + + f = dmp_sqr(f, u, K) + + return g + + +def dup_pdiv(f, g, K): + """ + Polynomial pseudo-division in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_pdiv(x**2 + 1, 2*x - 4) + (2*x + 4, 20) + + """ + df = dup_degree(f) + dg = dup_degree(g) + + q, r, dr = [], f, df + + if not g: + raise ZeroDivisionError("polynomial division") + elif df < dg: + return q, r + + N = df - dg + 1 + lc_g = dup_LC(g, K) + + while True: + lc_r = dup_LC(r, K) + j, N = dr - dg, N - 1 + + Q = dup_mul_ground(q, lc_g, K) + q = dup_add_term(Q, lc_r, j, K) + + R = dup_mul_ground(r, lc_g, K) + G = dup_mul_term(g, lc_r, j, K) + r = dup_sub(R, G, K) + + _dr, dr = dr, dup_degree(r) + + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + c = lc_g**N + + q = dup_mul_ground(q, c, K) + r = dup_mul_ground(r, c, K) + + return q, r + + +def dup_prem(f, g, K): + """ + Polynomial pseudo-remainder in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_prem(x**2 + 1, 2*x - 4) + 20 + + """ + df = dup_degree(f) + dg = dup_degree(g) + + r, dr = f, df + + if not g: + raise ZeroDivisionError("polynomial division") + elif df < dg: + return r + + N = df - dg + 1 + lc_g = dup_LC(g, K) + + while True: + lc_r = dup_LC(r, K) + j, N = dr - dg, N - 1 + + R = dup_mul_ground(r, lc_g, K) + G = dup_mul_term(g, lc_r, j, K) + r = dup_sub(R, G, K) + + _dr, dr = dr, dup_degree(r) + + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + return dup_mul_ground(r, lc_g**N, K) + + +def dup_pquo(f, g, K): + """ + Polynomial exact pseudo-quotient in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_pquo(x**2 - 1, 2*x - 2) + 2*x + 2 + + >>> R.dup_pquo(x**2 + 1, 2*x - 4) + 2*x + 4 + + """ + return dup_pdiv(f, g, K)[0] + + +def dup_pexquo(f, g, K): + """ + Polynomial pseudo-quotient in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_pexquo(x**2 - 1, 2*x - 2) + 2*x + 2 + + >>> R.dup_pexquo(x**2 + 1, 2*x - 4) + Traceback (most recent call last): + ... + ExactQuotientFailed: [2, -4] does not divide [1, 0, 1] + + """ + q, r = dup_pdiv(f, g, K) + + if not r: + return q + else: + raise ExactQuotientFailed(f, g) + + +def dmp_pdiv(f, g, u, K): + """ + Polynomial pseudo-division in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_pdiv(x**2 + x*y, 2*x + 2) + (2*x + 2*y - 2, -4*y + 4) + + """ + if not u: + return dup_pdiv(f, g, K) + + df = dmp_degree(f, u) + dg = dmp_degree(g, u) + + if dg < 0: + raise ZeroDivisionError("polynomial division") + + q, r, dr = dmp_zero(u), f, df + + if df < dg: + return q, r + + N = df - dg + 1 + lc_g = dmp_LC(g, K) + + while True: + lc_r = dmp_LC(r, K) + j, N = dr - dg, N - 1 + + Q = dmp_mul_term(q, lc_g, 0, u, K) + q = dmp_add_term(Q, lc_r, j, u, K) + + R = dmp_mul_term(r, lc_g, 0, u, K) + G = dmp_mul_term(g, lc_r, j, u, K) + r = dmp_sub(R, G, u, K) + + _dr, dr = dr, dmp_degree(r, u) + + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + c = dmp_pow(lc_g, N, u - 1, K) + + q = dmp_mul_term(q, c, 0, u, K) + r = dmp_mul_term(r, c, 0, u, K) + + return q, r + + +def dmp_prem(f, g, u, K): + """ + Polynomial pseudo-remainder in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_prem(x**2 + x*y, 2*x + 2) + -4*y + 4 + + """ + if not u: + return dup_prem(f, g, K) + + df = dmp_degree(f, u) + dg = dmp_degree(g, u) + + if dg < 0: + raise ZeroDivisionError("polynomial division") + + r, dr = f, df + + if df < dg: + return r + + N = df - dg + 1 + lc_g = dmp_LC(g, K) + + while True: + lc_r = dmp_LC(r, K) + j, N = dr - dg, N - 1 + + R = dmp_mul_term(r, lc_g, 0, u, K) + G = dmp_mul_term(g, lc_r, j, u, K) + r = dmp_sub(R, G, u, K) + + _dr, dr = dr, dmp_degree(r, u) + + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + c = dmp_pow(lc_g, N, u - 1, K) + + return dmp_mul_term(r, c, 0, u, K) + + +def dmp_pquo(f, g, u, K): + """ + Polynomial exact pseudo-quotient in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> f = x**2 + x*y + >>> g = 2*x + 2*y + >>> h = 2*x + 2 + + >>> R.dmp_pquo(f, g) + 2*x + + >>> R.dmp_pquo(f, h) + 2*x + 2*y - 2 + + """ + return dmp_pdiv(f, g, u, K)[0] + + +def dmp_pexquo(f, g, u, K): + """ + Polynomial pseudo-quotient in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> f = x**2 + x*y + >>> g = 2*x + 2*y + >>> h = 2*x + 2 + + >>> R.dmp_pexquo(f, g) + 2*x + + >>> R.dmp_pexquo(f, h) + Traceback (most recent call last): + ... + ExactQuotientFailed: [[2], [2]] does not divide [[1], [1, 0], []] + + """ + q, r = dmp_pdiv(f, g, u, K) + + if dmp_zero_p(r, u): + return q + else: + raise ExactQuotientFailed(f, g) + + +def dup_rr_div(f, g, K): + """ + Univariate division with remainder over a ring. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_rr_div(x**2 + 1, 2*x - 4) + (0, x**2 + 1) + + """ + df = dup_degree(f) + dg = dup_degree(g) + + q, r, dr = [], f, df + + if not g: + raise ZeroDivisionError("polynomial division") + elif df < dg: + return q, r + + lc_g = dup_LC(g, K) + + while True: + lc_r = dup_LC(r, K) + + if lc_r % lc_g: + break + + c = K.exquo(lc_r, lc_g) + j = dr - dg + + q = dup_add_term(q, c, j, K) + h = dup_mul_term(g, c, j, K) + r = dup_sub(r, h, K) + + _dr, dr = dr, dup_degree(r) + + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + return q, r + + +def dmp_rr_div(f, g, u, K): + """ + Multivariate division with remainder over a ring. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_rr_div(x**2 + x*y, 2*x + 2) + (0, x**2 + x*y) + + """ + if not u: + return dup_rr_div(f, g, K) + + df = dmp_degree(f, u) + dg = dmp_degree(g, u) + + if dg < 0: + raise ZeroDivisionError("polynomial division") + + q, r, dr = dmp_zero(u), f, df + + if df < dg: + return q, r + + lc_g, v = dmp_LC(g, K), u - 1 + + while True: + lc_r = dmp_LC(r, K) + c, R = dmp_rr_div(lc_r, lc_g, v, K) + + if not dmp_zero_p(R, v): + break + + j = dr - dg + + q = dmp_add_term(q, c, j, u, K) + h = dmp_mul_term(g, c, j, u, K) + r = dmp_sub(r, h, u, K) + + _dr, dr = dr, dmp_degree(r, u) + + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + return q, r + + +def dup_ff_div(f, g, K): + """ + Polynomial division with remainder over a field. + + Examples + ======== + + >>> from sympy.polys import ring, QQ + >>> R, x = ring("x", QQ) + + >>> R.dup_ff_div(x**2 + 1, 2*x - 4) + (1/2*x + 1, 5) + + """ + df = dup_degree(f) + dg = dup_degree(g) + + q, r, dr = [], f, df + + if not g: + raise ZeroDivisionError("polynomial division") + elif df < dg: + return q, r + + lc_g = dup_LC(g, K) + + while True: + lc_r = dup_LC(r, K) + + c = K.exquo(lc_r, lc_g) + j = dr - dg + + q = dup_add_term(q, c, j, K) + h = dup_mul_term(g, c, j, K) + r = dup_sub(r, h, K) + + _dr, dr = dr, dup_degree(r) + + if dr < dg: + break + elif dr == _dr and not K.is_Exact: + # remove leading term created by rounding error + r = dup_strip(r[1:]) + dr = dup_degree(r) + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + return q, r + + +def dmp_ff_div(f, g, u, K): + """ + Polynomial division with remainder over a field. + + Examples + ======== + + >>> from sympy.polys import ring, QQ + >>> R, x,y = ring("x,y", QQ) + + >>> R.dmp_ff_div(x**2 + x*y, 2*x + 2) + (1/2*x + 1/2*y - 1/2, -y + 1) + + """ + if not u: + return dup_ff_div(f, g, K) + + df = dmp_degree(f, u) + dg = dmp_degree(g, u) + + if dg < 0: + raise ZeroDivisionError("polynomial division") + + q, r, dr = dmp_zero(u), f, df + + if df < dg: + return q, r + + lc_g, v = dmp_LC(g, K), u - 1 + + while True: + lc_r = dmp_LC(r, K) + c, R = dmp_ff_div(lc_r, lc_g, v, K) + + if not dmp_zero_p(R, v): + break + + j = dr - dg + + q = dmp_add_term(q, c, j, u, K) + h = dmp_mul_term(g, c, j, u, K) + r = dmp_sub(r, h, u, K) + + _dr, dr = dr, dmp_degree(r, u) + + if dr < dg: + break + elif not (dr < _dr): + raise PolynomialDivisionFailed(f, g, K) + + return q, r + + +def dup_div(f, g, K): + """ + Polynomial division with remainder in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x = ring("x", ZZ) + >>> R.dup_div(x**2 + 1, 2*x - 4) + (0, x**2 + 1) + + >>> R, x = ring("x", QQ) + >>> R.dup_div(x**2 + 1, 2*x - 4) + (1/2*x + 1, 5) + + """ + if K.is_Field: + return dup_ff_div(f, g, K) + else: + return dup_rr_div(f, g, K) + + +def dup_rem(f, g, K): + """ + Returns polynomial remainder in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x = ring("x", ZZ) + >>> R.dup_rem(x**2 + 1, 2*x - 4) + x**2 + 1 + + >>> R, x = ring("x", QQ) + >>> R.dup_rem(x**2 + 1, 2*x - 4) + 5 + + """ + return dup_div(f, g, K)[1] + + +def dup_quo(f, g, K): + """ + Returns exact polynomial quotient in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x = ring("x", ZZ) + >>> R.dup_quo(x**2 + 1, 2*x - 4) + 0 + + >>> R, x = ring("x", QQ) + >>> R.dup_quo(x**2 + 1, 2*x - 4) + 1/2*x + 1 + + """ + return dup_div(f, g, K)[0] + + +def dup_exquo(f, g, K): + """ + Returns polynomial quotient in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_exquo(x**2 - 1, x - 1) + x + 1 + + >>> R.dup_exquo(x**2 + 1, 2*x - 4) + Traceback (most recent call last): + ... + ExactQuotientFailed: [2, -4] does not divide [1, 0, 1] + + """ + q, r = dup_div(f, g, K) + + if not r: + return q + else: + raise ExactQuotientFailed(f, g) + + +def dmp_div(f, g, u, K): + """ + Polynomial division with remainder in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x,y = ring("x,y", ZZ) + >>> R.dmp_div(x**2 + x*y, 2*x + 2) + (0, x**2 + x*y) + + >>> R, x,y = ring("x,y", QQ) + >>> R.dmp_div(x**2 + x*y, 2*x + 2) + (1/2*x + 1/2*y - 1/2, -y + 1) + + """ + if K.is_Field: + return dmp_ff_div(f, g, u, K) + else: + return dmp_rr_div(f, g, u, K) + + +def dmp_rem(f, g, u, K): + """ + Returns polynomial remainder in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x,y = ring("x,y", ZZ) + >>> R.dmp_rem(x**2 + x*y, 2*x + 2) + x**2 + x*y + + >>> R, x,y = ring("x,y", QQ) + >>> R.dmp_rem(x**2 + x*y, 2*x + 2) + -y + 1 + + """ + return dmp_div(f, g, u, K)[1] + + +def dmp_quo(f, g, u, K): + """ + Returns exact polynomial quotient in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ, QQ + + >>> R, x,y = ring("x,y", ZZ) + >>> R.dmp_quo(x**2 + x*y, 2*x + 2) + 0 + + >>> R, x,y = ring("x,y", QQ) + >>> R.dmp_quo(x**2 + x*y, 2*x + 2) + 1/2*x + 1/2*y - 1/2 + + """ + return dmp_div(f, g, u, K)[0] + + +def dmp_exquo(f, g, u, K): + """ + Returns polynomial quotient in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> f = x**2 + x*y + >>> g = x + y + >>> h = 2*x + 2 + + >>> R.dmp_exquo(f, g) + x + + >>> R.dmp_exquo(f, h) + Traceback (most recent call last): + ... + ExactQuotientFailed: [[2], [2]] does not divide [[1], [1, 0], []] + + """ + q, r = dmp_div(f, g, u, K) + + if dmp_zero_p(r, u): + return q + else: + raise ExactQuotientFailed(f, g) + + +def dup_max_norm(f, K): + """ + Returns maximum norm of a polynomial in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_max_norm(-x**2 + 2*x - 3) + 3 + + """ + if not f: + return K.zero + else: + return max(dup_abs(f, K)) + + +def dmp_max_norm(f, u, K): + """ + Returns maximum norm of a polynomial in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_max_norm(2*x*y - x - 3) + 3 + + """ + if not u: + return dup_max_norm(f, K) + + v = u - 1 + + return max([ dmp_max_norm(c, v, K) for c in f ]) + + +def dup_l1_norm(f, K): + """ + Returns l1 norm of a polynomial in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_l1_norm(2*x**3 - 3*x**2 + 1) + 6 + + """ + if not f: + return K.zero + else: + return sum(dup_abs(f, K)) + + +def dmp_l1_norm(f, u, K): + """ + Returns l1 norm of a polynomial in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_l1_norm(2*x*y - x - 3) + 6 + + """ + if not u: + return dup_l1_norm(f, K) + + v = u - 1 + + return sum([ dmp_l1_norm(c, v, K) for c in f ]) + + +def dup_l2_norm_squared(f, K): + """ + Returns squared l2 norm of a polynomial in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_l2_norm_squared(2*x**3 - 3*x**2 + 1) + 14 + + """ + return sum([coeff**2 for coeff in f], K.zero) + + +def dmp_l2_norm_squared(f, u, K): + """ + Returns squared l2 norm of a polynomial in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_l2_norm_squared(2*x*y - x - 3) + 14 + + """ + if not u: + return dup_l2_norm_squared(f, K) + + v = u - 1 + + return sum([ dmp_l2_norm_squared(c, v, K) for c in f ]) + + +def dup_expand(polys, K): + """ + Multiply together several polynomials in ``K[x]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x = ring("x", ZZ) + + >>> R.dup_expand([x**2 - 1, x, 2]) + 2*x**3 - 2*x + + """ + if not polys: + return [K.one] + + f = polys[0] + + for g in polys[1:]: + f = dup_mul(f, g, K) + + return f + + +def dmp_expand(polys, u, K): + """ + Multiply together several polynomials in ``K[X]``. + + Examples + ======== + + >>> from sympy.polys import ring, ZZ + >>> R, x,y = ring("x,y", ZZ) + + >>> R.dmp_expand([x**2 + y**2, x + 1]) + x**3 + x**2 + x*y**2 + y**2 + + """ + if not polys: + return dmp_one(u, K) + + f = polys[0] + + for g in polys[1:]: + f = dmp_mul(f, g, u, K) + + return f diff --git a/shared/package-files/ea/ea5cb9a1d29faabcad293f7fed4ae51a49479dfd4348adabf42e9c48ce2c6b6f/blob b/shared/package-files/ea/ea5cb9a1d29faabcad293f7fed4ae51a49479dfd4348adabf42e9c48ce2c6b6f/blob new file mode 100644 index 0000000000000000000000000000000000000000..1ca9ba62c208527b796b49306f4b8c95eb868a51 --- /dev/null +++ b/shared/package-files/ea/ea5cb9a1d29faabcad293f7fed4ae51a49479dfd4348adabf42e9c48ce2c6b6f/blob @@ -0,0 +1,112 @@ +from .core import encode, decode, alabel, ulabel, IDNAError +import codecs +import re +from typing import Tuple, Optional + +_unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]') + +class Codec(codecs.Codec): + + def encode(self, data: str, errors: str = 'strict') -> Tuple[bytes, int]: + if errors != 'strict': + raise IDNAError('Unsupported error handling \"{}\"'.format(errors)) + + if not data: + return b"", 0 + + return encode(data), len(data) + + def decode(self, data: bytes, errors: str = 'strict') -> Tuple[str, int]: + if errors != 'strict': + raise IDNAError('Unsupported error handling \"{}\"'.format(errors)) + + if not data: + return '', 0 + + return decode(data), len(data) + +class IncrementalEncoder(codecs.BufferedIncrementalEncoder): + def _buffer_encode(self, data: str, errors: str, final: bool) -> Tuple[str, int]: # type: ignore + if errors != 'strict': + raise IDNAError('Unsupported error handling \"{}\"'.format(errors)) + + if not data: + return "", 0 + + labels = _unicode_dots_re.split(data) + trailing_dot = '' + if labels: + if not labels[-1]: + trailing_dot = '.' + del labels[-1] + elif not final: + # Keep potentially unfinished label until the next call + del labels[-1] + if labels: + trailing_dot = '.' + + result = [] + size = 0 + for label in labels: + result.append(alabel(label)) + if size: + size += 1 + size += len(label) + + # Join with U+002E + result_str = '.'.join(result) + trailing_dot # type: ignore + size += len(trailing_dot) + return result_str, size + +class IncrementalDecoder(codecs.BufferedIncrementalDecoder): + def _buffer_decode(self, data: str, errors: str, final: bool) -> Tuple[str, int]: # type: ignore + if errors != 'strict': + raise IDNAError('Unsupported error handling \"{}\"'.format(errors)) + + if not data: + return ('', 0) + + labels = _unicode_dots_re.split(data) + trailing_dot = '' + if labels: + if not labels[-1]: + trailing_dot = '.' + del labels[-1] + elif not final: + # Keep potentially unfinished label until the next call + del labels[-1] + if labels: + trailing_dot = '.' + + result = [] + size = 0 + for label in labels: + result.append(ulabel(label)) + if size: + size += 1 + size += len(label) + + result_str = '.'.join(result) + trailing_dot + size += len(trailing_dot) + return (result_str, size) + + +class StreamWriter(Codec, codecs.StreamWriter): + pass + + +class StreamReader(Codec, codecs.StreamReader): + pass + + +def getregentry() -> codecs.CodecInfo: + # Compatibility as a search_function for codecs.register() + return codecs.CodecInfo( + name='idna', + encode=Codec().encode, # type: ignore + decode=Codec().decode, # type: ignore + incrementalencoder=IncrementalEncoder, + incrementaldecoder=IncrementalDecoder, + streamwriter=StreamWriter, + streamreader=StreamReader, + ) diff --git a/shared/package-files/ea/ea5e0483147d25304af2e2b46f2fe7ba7bc0821156887309aa06dd590df2bc53/blob b/shared/package-files/ea/ea5e0483147d25304af2e2b46f2fe7ba7bc0821156887309aa06dd590df2bc53/blob new file mode 100644 index 0000000000000000000000000000000000000000..1806cc86209fa11e997311de204c69a3f31ed532 Binary files /dev/null and b/shared/package-files/ea/ea5e0483147d25304af2e2b46f2fe7ba7bc0821156887309aa06dd590df2bc53/blob differ diff --git a/shared/package-files/ea/ea5f6a4db82151745a053fab5d0d3634ac15d8cbd8b175d91a6c704e6b994822/blob b/shared/package-files/ea/ea5f6a4db82151745a053fab5d0d3634ac15d8cbd8b175d91a6c704e6b994822/blob new file mode 100644 index 0000000000000000000000000000000000000000..3b1103f4e1a095bde4fefdab730d8b99f7562412 --- /dev/null +++ b/shared/package-files/ea/ea5f6a4db82151745a053fab5d0d3634ac15d8cbd8b175d91a6c704e6b994822/blob @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +curl -SLO https://raw.githubusercontent.com/python/cpython/3.7/PC/launcher.c -O launcher.c +patch -p0 < $(dirname ${BASH_SOURCE[0]})/cpython-launcher-c-mods-for-setuptools.3.7.patch +RCFILE=$(dirname ${BASH_SOURCE[0]})/resources.rc +[[ -f ${RCFILE} ]] && rm -f ${RCFILE} +echo "#include \"winuser.h\"" > ${RCFILE} +echo "1 RT_MANIFEST manifest.xml" >> ${RCFILE} +for _BITS in 64 32; do + [[ -f resources-${_BITS}.res ]] && rm -f resources-${_BITS}.res + PATH=/mingw${_BITS}/bin:$PATH windres --input ${RCFILE} --output resources-${_BITS}.res --output-format=coff + for _TYPE in cli gui; do + if [[ ${_TYPE} == cli ]]; then + CPPFLAGS= + LDFLAGS= + else + CPPFLAGS="-D_WINDOWS -mwindows" + LDFLAGS="-mwindows" + fi + # You *could* use MSVC 2008 here, but you'd end up with much larger (~230k) executables. + # cl.exe -opt:nowin98 -D NDEBUG -D "GUI=0" -D "WIN32_LEAN_AND_MEAN" -ZI -Gy -MT -MERGE launcher.c -Os -link -MACHINE:x64 -SUBSYSTEM:CONSOLE version.lib advapi32.lib shell32.lib + PATH=/mingw${_BITS}/bin:$PATH gcc -O2 -DSCRIPT_WRAPPER -DUNICODE -D_UNICODE -DMINGW_HAS_SECURE_API ${CPPFLAGS} launcher.c -c -o ${_TYPE}-${_BITS}.o + PATH=/mingw${_BITS}/bin:$PATH gcc -Wl,-s --static -static-libgcc -municode ${LDFLAGS} ${_TYPE}-${_BITS}.o resources-${_BITS}.res -o ${_TYPE}-${_BITS}.exe + done +done +ls -l *.exe +echo "Debug this from cmd.exe via:" +echo "set PYLAUNCH_DEBUG=1" diff --git a/shared/package-files/ea/ea61826a499f1a92222289d3dbc96655a1440b40b6c72e6fe0cd141a1075b4c6/energy_prior.json b/shared/package-files/ea/ea61826a499f1a92222289d3dbc96655a1440b40b6c72e6fe0cd141a1075b4c6/energy_prior.json new file mode 100644 index 0000000000000000000000000000000000000000..0cd0a839cd84a97602bfe1a28e4446fc55d0b518 --- /dev/null +++ b/shared/package-files/ea/ea61826a499f1a92222289d3dbc96655a1440b40b6c72e6fe0cd141a1075b4c6/energy_prior.json @@ -0,0 +1 @@ +{"family":"TRAIN-selected three-atom conditional collision-energy distribution","selected":"spectral_quantiles","models":[{"intercept":20.0,"trees":[{"value":[0.0,-0.14586303028743716,0.02206617050110031,-0.062293808826558154,0.0,-0.34570494611626074,-0.7000000000000001,-0.7000000000000001,0.0,-0.3233081959326094,-0.5198858955066102,-0.6271060222102653,-0.5,-0.5,-0.5,-0.24339041931919367,-0.17354994158463377,-0.5,-0.5,-0.7000000000000001,0.07165869258656393,0.25,0.010712855423988305,-0.06981281220540501,-0.39813475000000004,-0.030949498229751824,-0.25,0.0,0.0],"feature_idx":[3,13,2,28,0,11,0,0,0,9,19,24,0,0,0,1,11,0,0,0,1,0,58,35,0,7,0,0,0],"num_threshold":[0.5,0.722727408552394,0.5,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.0,0.666885678291477,493.351639733,0.9999850744102411,0.0,0.0,0.0,0.5,293.4522187809763,0.0,0.0,0.0,0.5,0.0,0.004617592436265406,0.04118523394598714,0.0,3.4339872044851463,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,12,0,0,0,16,17,0,0,0,21,0,23,24,0,26,0,0,0],"right":[20,9,8,5,0,7,0,0,0,15,14,13,0,0,0,19,18,0,0,0,22,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,1,1]},{"value":[0.0,0.06119306122142813,-0.0017501936536714066,0.0125,-0.08800142121377741,-0.23750000000000002,0.0,0.7375,-0.22838120466313921,-0.28870923554564215,-0.20885095350735605,-0.23351754920829848,-0.23750000000000002,-0.26897774981494305,-0.47500000000000003,-0.0125,0.019906737500000028,-0.4360427900817032,-0.5110347702035103,-0.6029103049292356,-0.47500000000000003,-0.4495594969792137,-0.47500000000000003,-0.47500000000000003,-0.47500000000000003,-0.26321981207640277,-0.23750000000000002,-0.47500000000000003,0.525],"feature_idx":[13,7,32,0,59,0,0,0,7,28,11,27,0,37,0,0,0,1,16,24,0,43,0,0,0,4,0,0,0],"num_threshold":[0.722727408552394,3.6109179126442243,0.0006555605727950821,0.0,0.04143164784941809,0.0,0.0,0.0,4.07753744390572,0.7572430295779127,507.4688515850144,0.04626256292836808,0.0,0.0,0.0,0.0,0.0,0.5,507.319763,1.0000012317805025,0.0,0.03171954947694822,0.0,0.0,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,1,1,1,0,0,1,0,0,0,0,1,1,0,1,0,0,0,1,0,0,0],"left":[1,2,3,0,5,0,0,0,9,10,11,12,0,14,0,0,0,18,19,20,0,22,0,0,0,26,0,0,0],"right":[8,7,4,0,6,0,0,0,28,17,16,13,0,15,0,0,0,25,24,21,0,23,0,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1,1]},{"value":[0.0,-0.24781049338082337,-0.059145998573042285,0.0,-0.23812499999999998,-0.36230587429408556,-0.45863572894935106,-0.40897291601370805,-0.34070419367676535,-0.453125,-0.0925400904205375,-0.64125,-0.44125,-0.45124999999999993,-0.45124999999999993,-0.18955470601742236,-0.13808008587135212,0.0,-0.45124999999999993,-0.665,0.043711188868342646,-0.008084001350781139,0.024375000000000036,-0.056820570313609424,-0.46777725,-0.027085522979586735,-0.03687500000000004,0.011250000000000072,0.7112500000000002],"feature_idx":[3,28,13,0,0,0,28,9,44,0,18,0,0,0,0,1,32,0,0,0,7,13,0,0,0,25,0,0,0],"num_threshold":[0.5,0.05059215882649337,0.5564877177250878,0.0,0.0,6.2189144864367965,0.831356879344328,2.8512511998698615,0.5792910212289751,0.0,283.0962,0.0,0.0,0.0,0.0,0.5,0.3613796585700042,0.0,0.0,0.0,3.9318256327243257,0.5031587400618472,0.0,5.4934823424044295,0.0,1.0000006015549192,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0],"left":[1,2,3,0,0,6,7,8,9,0,11,0,0,0,0,16,17,0,0,0,21,22,0,24,0,26,0,0,0],"right":[20,5,4,0,0,15,14,13,10,0,12,0,0,0,0,19,18,0,0,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,-0.22480815072318322,-0.33433284449822775,-0.41379432606062444,-0.3580964996611031,-0.31975174100552245,-0.35815584448963517,-0.44121875,-0.43046875,-0.42859374999999994,-0.5886236996056708,-0.4286874999999999,-0.014312500000000129,-0.4286874999999999,-0.17877742728088364,-0.1321801862560182,-0.03687500000000004,-0.4286874999999999,-0.6317500000000001,-0.0006249999999999646,0.0495656293275006,0.1756875000000001,-0.018514280067803857,0.07134032060101266,1.1775625,-0.0018437499999999218,-0.07833537147936848,-0.22378125000000004,6.249999999994316e-05],"feature_idx":[3,33,0,28,9,44,28,0,0,0,36,0,0,0,1,28,0,0,0,0,1,0,31,15,0,0,58,0,0],"num_threshold":[0.5,0.9345451379918451,6.2189144864367965,0.831356879344328,3.0961100743307,0.42920077891535846,0.04110006753375561,0.0,0.0,0.0,0.4826586402399128,0.0,0.0,0.0,0.5,0.7572430295779127,0.0,0.0,0.0,0.0,0.5,0.0,0.0015783733461941529,67.0542,0.0,0.0,0.004617592436265406,0.0,0.0],"missing_go_to_left":[0,0,1,1,1,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,6,7,0,0,0,11,0,0,0,15,16,0,0,0,0,21,0,23,24,0,0,27,0,0],"right":[20,19,14,13,10,9,8,0,0,0,12,0,0,0,18,17,0,0,0,0,22,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,0,0,1,1,1,0,1,1,1,0,0,1,1,1,1,0,1,0,0,1,1,0,1,1]},{"value":[0.0,-0.1949248938368404,-0.31614207211721146,-0.5281206412090745,-0.40725312499999994,-0.40725312499999994,-0.24651748025408793,-0.5970703125,-0.16525082304321367,-0.4071640624999999,-0.4070703125,-0.04085044347878438,3.124999999997158e-05,-0.13251426940669736,-0.0035343750000000895,-0.4511875,0.03774172599268962,-0.017247333718260538,0.06135547805804087,0.44234062499999993,-0.020065624999999976,-0.06293707535321244,-0.107617547484651,-0.21498273908135956,-0.4059620055,-0.1933104499999999,-0.03809687499999992,0.0019031250000001165,0.6669031250000002],"feature_idx":[3,33,9,16,0,0,2,0,20,0,0,29,0,22,0,0,7,31,45,0,0,11,12,7,0,0,0,0,0],"num_threshold":[0.5,0.8393763744354164,0.666885678291477,498.582374,0.0,0.0,0.5,0.0,349.165802,0.0,0.0,0.015160393057308133,0.0,0.3064671542339517,0.0,0.0,3.8918202981106265,0.0,0.5101173326447734,0.0,0.0,293.4522187809763,31.632838381012487,3.091042453358316,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,0,14,0,0,17,18,19,0,0,22,23,24,0,0,0,0,0],"right":[16,11,6,5,0,0,8,0,10,0,0,13,0,15,0,0,28,21,20,0,0,27,26,25,0,0,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,1,0,1,1,0,0,0,1,1,0,0,0,1,1,1,1,1]},{"value":[0.0,-0.18428211789843058,-0.062472023418029994,2.9687500000008528e-05,-0.13444286202338776,-0.0023781250000000755,-0.33489049662321485,-0.46479203125,-0.5910605468750001,-0.33820465304575303,-0.5249544664593194,-0.3868904687499999,-0.3868904687499999,-0.25236902166686864,-0.3965984375,-0.19358025537581064,-0.5672167968749999,-0.3868105468749999,0.032916627517383674,-0.024382075528949776,0.4167260062500002,-0.06448392231252983,0.024409161826774734,0.0018079687500001996,-0.005660781249999936,-0.10750964291405123,-0.21068734374999992,-0.03174681499999981,0.6335579687500001],"feature_idx":[3,13,29,0,1,0,11,0,0,9,19,0,0,0,0,2,0,0,7,13,0,1,35,0,0,9,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.015160393057308133,0.0,0.5,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.8918202981106265,0.46278016445467784,0.0,0.5,0.446360153256705,0.0,0.0,1.4830953563178617,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,14,0,16,0,0,19,20,0,22,23,0,0,26,0,0,0],"right":[18,9,4,0,6,0,8,0,0,13,12,0,0,15,0,17,0,0,28,21,0,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.18322474269670277,-0.06057799847258063,0.11605561718749993,-0.09291244847587689,-0.0005967968749999386,-0.17460867542833555,-0.058619918295721614,-0.386597890625,0.008003671874999797,-0.3445351907852405,-0.44229477343750007,-0.5677313476562501,-0.33820465304575303,-0.5249544664593194,-0.3675459453124999,-0.3675459453124999,-0.25236902166686864,-0.376768515625,-0.19358025537581064,-0.5388559570312499,-0.36747001953124986,0.03274333607760447,-0.023647488436467665,0.0017175703125001719,-0.06157927326222143,-0.19068422656250006,0.003538855937500074,0.6018800703125001],"feature_idx":[3,13,8,0,29,0,1,17,0,0,11,0,0,9,19,0,0,0,0,2,0,0,7,1,0,9,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.15217391304347827,0.0,0.015160393057308133,0.0,0.5,135.11591,0.0,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,0.5,0.0,1.4830953563178617,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,1,0,0,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,8,0,0,11,0,0,14,15,0,0,18,0,20,0,0,23,24,0,26,0,0,0],"right":[22,13,4,0,6,0,10,9,0,0,12,0,0,17,16,0,0,19,0,21,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,0,1,1,1]},{"value":[0.0,-0.1715651933797562,-0.03969281294628068,0.04570377338269055,-0.4761607070312499,0.011339292968750136,-0.12809123885787302,-0.0005669570312498706,-0.35683409006214356,-0.45631269101562516,-0.5393447802734377,-0.33820465304575303,-0.5249544664593194,-0.3491686480468749,-0.3491686480468749,-0.25236902166686864,-0.3579300898437501,-0.19358025537581064,-0.5119131591796874,-0.3490965185546873,0.03589425445443131,-0.018779698783968554,0.0016316917968751455,-0.0545406221068267,-0.1852120277343751,0.029200853657176208,0.019649136290625258,-0.20886849579687522,0.571786066796875],"feature_idx":[3,13,1,0,0,0,28,0,11,0,0,9,19,0,0,0,0,2,0,0,7,1,0,58,0,15,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,5.4934823424044295,0.0,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,0.5,0.0,0.004617592436265406,0.0,71.048668,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,13,0,0,16,0,18,0,0,21,22,0,24,0,26,0,0,0],"right":[20,11,6,5,0,0,8,0,10,0,0,15,14,0,0,17,0,19,0,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,-0.16922059784240737,-0.035493052608160776,0.007036523632812397,-0.12809123885787302,-0.0005386091796873771,-0.49904682208984374,-0.33820465304575303,-0.5249544664593194,-0.33171021564453124,-0.33171021564453124,-0.25236902166686864,-0.3400335853515625,-0.19358025537581064,-0.48631750122070305,-0.3316416926269529,0.03793814096098269,-0.015584687005352654,-0.4813560656601561,-0.0010027327769381975,0.07010180783358953,0.0015501072070314593,-0.06624891966796867,-0.03433989515009907,-0.18135816384765616,-0.005000606265215734,0.518666679476094,-0.03499623547265625,0.5431967634570313],"feature_idx":[3,13,1,0,28,0,0,9,19,0,0,0,0,2,0,0,7,0,0,1,40,0,0,9,0,21,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,5.327842187629703,0.0,0.5,0.584843929613582,0.0,0.0,0.814848252185423,0.0,204.138611,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,12,0,14,0,0,17,18,0,20,21,0,0,24,0,26,0,0,0],"right":[16,7,4,0,6,0,0,11,10,0,0,13,0,15,0,0,28,19,0,23,22,0,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,0,0,1,1,0,1,0,1,1,1]},{"value":[0.0,-0.16920104489324916,-0.035493052608160776,0.006684697451171751,-0.12809123885787302,-0.0005116787207029461,-0.35683409006214356,-0.40854471536035164,-0.48742520015527363,-0.3381603917614078,-0.5249544664593194,-0.3151247048623047,-0.3151247048623047,-0.2523044292677471,-0.32303190608398435,-0.1934968009663648,-0.46200162615966783,-0.3150596079956053,0.039049931927742414,-0.013878117506768891,0.001472601846679922,-0.049450161540113925,-0.10350905866501624,-0.1781335181552736,-0.14618823957402327,0.03448518972008906,1.7235822139772896,-0.01956291940027324,0.5160369252841797],"feature_idx":[3,13,1,0,28,0,11,0,0,9,19,0,0,0,0,2,0,0,7,1,0,58,9,0,0,16,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,0.5,0.0,0.004617592436265406,0.814848252185423,0.0,0.0,279.157288,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,14,0,16,0,0,19,20,0,22,23,0,0,26,0,0,0],"right":[18,9,4,0,6,0,8,0,0,13,12,0,0,15,0,17,0,0,28,21,0,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.16862857707083476,-0.03548668456258494,0.006350462578613225,-0.12807827930130847,-0.0004860947846678343,-0.3567929505746021,-0.38811747959233395,-0.46305394014750995,-0.33687256513334,-0.5249544664593194,-0.29936846961918945,-0.29936846961918945,-0.25042504838691587,-0.30688031077978517,-0.19106861090582128,-0.4389015448516845,-0.299306627595825,0.03637845156606516,-0.01224322473267606,0.05610346373502139,0.42094199263224025,-0.019097903245654104,-0.0523871397810378,-0.369177272623447,-0.019460238196564488,-0.0351329549878999,0.001398971754345979,0.4902350790199707],"feature_idx":[3,13,1,0,28,0,11,0,0,9,19,0,0,0,0,2,0,0,7,31,45,0,0,0,0,11,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,0.0,0.5101173326447734,0.0,0.0,5.576295255349941,0.0,293.4522187809763,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,14,0,16,0,0,19,20,21,0,0,24,0,26,0,0,0],"right":[18,9,4,0,6,0,8,0,0,13,12,0,0,15,0,17,0,0,28,23,22,0,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,1]},{"value":[0.0,-0.16844903964387803,-0.035165087872268935,0.0060329394496825735,-0.1274238005527676,-0.00046179004543436266,-0.3547153393393966,-0.3687116056127172,-0.4399012431401344,-0.33687256513334,-0.5249544664593194,-0.28440004613823,-0.28440004613823,-0.25042504838691587,-0.2915362952407959,-0.19106861090582128,-0.4169564676091002,-0.2843412962160337,0.032694496162309086,-0.028670660742878534,0.05886943039421236,1.1625528452477338,0.001329023166628751,-0.07371187586180994,-0.1772375782766499,-0.02941633940003985,0.5179505706208781,-0.06762304234592698,0.4657233250689721],"feature_idx":[3,13,1,0,28,0,11,0,0,9,19,0,0,0,0,2,0,0,7,1,13,0,0,36,0,16,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.4965075614664802,0.5,0.5031587400618472,0.0,0.0,0.018413305885056783,0.0,249.1962,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,14,0,16,0,0,19,20,21,0,0,24,0,26,0,0,0],"right":[18,9,4,0,6,0,8,0,0,13,12,0,0,15,0,17,0,0,28,23,22,0,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,1]},{"value":[0.0,-0.17254830938712878,-0.043461449862351606,0.00573129247719848,-0.12493469047916024,-0.0004387005431626179,-0.34681377940926994,-0.35027602533208135,-0.4179061809831277,-0.3356675471272189,-0.5249544664593194,-0.27018004383131844,-0.27018004383131844,-0.2486665136956747,-0.27695948047875607,-0.19106861090582128,-0.3961086442286452,-0.270124231405232,0.0315698811935773,-0.019247330575162373,0.06110527273234783,1.1044252029853472,0.0012625720082972691,-0.05508366429238693,-0.15048510113081834,0.023112585169204416,0.023914167498931604,-0.18702954345601963,0.4424371588155236],"feature_idx":[3,13,1,0,28,0,11,0,0,9,19,0,0,0,0,2,0,0,7,1,13,0,0,58,0,15,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,0.5,0.5031587400618472,0.0,0.0,0.004617592436265406,0.0,71.048668,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,14,0,16,0,0,19,20,21,0,0,24,0,26,0,0,0],"right":[18,9,4,0,6,0,8,0,0,13,12,0,0,15,0,17,0,0,28,23,22,0,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,1]},{"value":[0.0,-0.1724266465931824,-0.04324352119683063,-0.12449118566528546,-0.00041676551600442483,-0.345405894758732,-0.3327622240654773,-0.39701087193397133,0.005444727853338627,-0.3356675471272189,-0.5249544664593194,-0.2566710416397525,-0.2566710416397525,-0.2486665136956747,-0.26311150645481834,-0.19106861090582128,-0.37630321201721295,-0.2566180198349704,0.03345562418620307,-0.016398834564865798,0.06110527273234783,1.0492039428360798,0.0011994434078824057,-0.050964840110303,-0.10057733877727397,-0.1545481211613897,-0.12019113070522974,0.010843459123985256,0.42031530087474744],"feature_idx":[3,13,2,28,0,11,0,0,0,9,19,0,0,0,0,2,0,0,7,1,13,0,0,58,9,0,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,0.5,0.5031587400618472,0.0,0.0,0.004617592436265406,0.814848252185423,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,1,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,0,0,14,0,16,0,0,19,20,21,0,0,24,25,0,0,0,0],"right":[18,9,8,5,0,7,0,0,0,13,12,0,0,15,0,17,0,0,28,23,22,0,0,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,0,1,1,1,1]},{"value":[0.0,-0.1691116051362148,-0.043014711459769914,0.005172491460671758,-0.12402553687325868,-0.0003959272402042302,-0.34392771511709874,-0.31612411286220343,-0.3771603283372727,-0.32845256529032457,-0.51431302813387,-0.2438374895577649,-0.2438374895577649,-0.2430265333521667,-0.24995593113207742,-0.18578307123082274,-0.24378711884322188,-0.3574880514163523,0.03531741795549975,-0.013528085093040106,-0.14890077143176356,-0.3801832439866399,0.06401290248137795,0.005615598624428284,0.0011394712374883653,-0.026563274125125,0.671385393784623,-0.07716446014283528,0.3992995358310101],"feature_idx":[3,13,1,0,28,0,11,0,0,9,19,0,0,0,0,1,0,0,7,0,59,0,0,1,0,16,0,0,0],"num_threshold":[0.5,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0,3.9318256327243257,5.4934823424044295,0.006662965019433649,0.0,0.0,0.5,0.0,241.131485,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,14,0,16,0,0,19,20,21,0,0,24,0,26,0,0,0],"right":[18,9,4,0,6,0,8,0,0,13,12,0,0,15,0,17,0,0,28,23,22,0,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,1]},{"value":[0.0,0.03651924047370967,-0.011538563458813914,0.06540389873827027,0.9966867721324015,0.0010824976756140358,-0.04575306574073137,-0.09319502086092138,-0.15283160562968645,-0.05510630033173634,0.01415950917492772,0.3793345590394596,-0.169330727461069,-0.04303584911241199,-0.12467841962236975,-0.00037613087819394765,-0.3515473602352501,-0.36586767284409344,-0.3583023119204091,0.004913866887638108,-0.3286826670355115,-0.5146188668635102,-0.2316456150798767,-0.2316456150798767,-0.24316074155581907,-0.23686282207547357,-0.18578307123082274,-0.23159776290106074,-0.3396136488455347],"feature_idx":[4,7,1,13,0,0,58,59,0,0,0,0,13,2,28,0,11,0,0,0,9,19,0,0,0,0,1,0,0],"num_threshold":[0.5,3.9318256327243257,0.5,0.5031587400618472,0.0,0.0,0.004617592436265406,0.0040189571011550514,0.0,0.0,0.0,0.0,0.7488689987498993,0.5,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,0,1,0,0,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,8,0,0,0,0,13,14,15,0,17,0,0,0,21,22,0,0,25,0,27,0,0],"right":[12,11,6,5,0,0,10,9,0,0,0,0,20,19,16,0,18,0,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.03729909467099645,-0.010240268015745123,-0.043877483496482475,-0.1413903110516661,-0.001966426755599903,0.9598043486366455,-0.03741685007520328,0.06540389873827027,0.9468524335257813,0.0010283727918332986,0.3603678310874866,-0.16927773505908006,-0.04302108506100364,0.004668173543256238,-0.12464825840820412,-0.00035732433428421474,-0.351450523293997,-0.34757428920188876,-0.34038719632438863,-0.3285814403221757,-0.5144031149385802,-0.22006333432588285,-0.22006333432588285,-0.24311218074421967,-0.22501968097169991,-0.18578307123082274,-0.22001787475600773,-0.3226329664032579],"feature_idx":[4,7,2,36,0,16,0,0,13,0,0,0,13,1,0,28,0,11,0,0,9,19,0,0,0,0,1,0,0],"num_threshold":[0.5,3.9318256327243257,0.5,0.018413305885056783,0.0,264.064728,0.0,0.0,0.5031587400618472,0.0,0.0,0.0,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,0,13,14,0,16,0,18,0,0,21,22,0,0,25,0,27,0,0],"right":[12,11,8,5,0,7,0,0,10,0,0,0,20,15,0,17,0,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.03837712000024946,-0.008598039324460264,-0.4172340719532403,0.0037800551872275885,0.07149512094319455,0.0009769541522416604,-0.17071663616689606,-0.027959408493789015,0.3521801798007209,-0.07944749313019024,0.34234943953311225,-0.16927773505908006,-0.04302108506100364,0.0044347648660934885,-0.12464825840820412,-0.00033945811756996846,-0.351450523293997,-0.33019557474179434,-0.32336783650816914,-0.3285814403221757,-0.5144031149385802,-0.20906016760958873,-0.20906016760958873,-0.24311218074421967,-0.21376869692311493,-0.18578307123082274,-0.20901698101820732,-0.306501318083095],"feature_idx":[4,7,0,0,1,40,0,0,17,0,0,0,13,1,0,28,0,11,0,0,9,19,0,0,0,0,1,0,0],"num_threshold":[0.5,3.9318256327243257,5.2634225631404385,0.0,0.5,0.584843929613582,0.0,0.0,71.04873,0.0,0.0,0.0,0.7488689987498993,0.5,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,0,5,6,0,0,9,0,0,0,13,14,0,16,0,18,0,0,21,22,0,0,25,0,27,0,0],"right":[12,11,4,0,8,7,0,0,10,0,0,0,20,15,0,17,0,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.04100603202309565,-0.01849796137691268,-0.07345208221009951,-0.13589787471185044,-0.03157363291493365,0.05926965963839445,-0.006191390186049084,0.9083172823668744,0.06065786612632458,-0.16927773505908006,-0.04302108506100364,0.03524586285160249,-0.003957418689710934,0.023356932872788862,-0.12464825840820412,-0.0003224852116915145,-0.351450523293997,-0.31368579600470464,-0.3071994446827607,-0.3285814403221757,-0.5144031149385802,-0.19860715922910926,-0.19860715922910926,-0.24311218074421967,-0.20308026207695917,-0.18578307123082274,-0.19856613196729694,-0.2911762521789402],"feature_idx":[4,2,7,36,0,0,34,0,0,0,13,1,0,0,0,28,0,11,0,0,9,19,0,0,0,0,1,0,0],"num_threshold":[0.5,0.5,3.258096538021482,0.018413305885056783,0.0,0.0,0.9925203945939561,0.0,0.0,0.0,0.7488689987498993,0.5,6.0643077698031815,0.0,0.0,0.027150632753383225,0.0,300.5464721990183,0.0,0.0,0.666885678291477,493.351639733,0.0,0.0,5.7367253180290145,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,0,0,11,12,13,0,0,16,0,18,0,0,21,22,0,0,25,0,27,0,0],"right":[10,9,6,5,0,0,8,0,0,0,20,15,14,0,0,17,0,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,1,0,0,0,1,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.03201440807795838,-0.01215317375570498,0.06409994069291668,-0.10210779872520348,0.7904723534381128,-0.1733396469159744,-0.06149838816431903,-0.12553101038521441,-0.11147737349604457,-0.04226814483869763,-0.2586337050350764,-0.0021047868616866695,-0.0021047868616866695,-0.4956685560511042,0.0017218094754253956,-0.025229786861686955,0.32219907425014044,-0.30477425637015987,-0.5182927296988088,-0.6277058902883836,-0.18867680126765382,-0.18867680126765382,-0.18867680126765382,-0.22398532682042543,-0.2773049395699933,-0.13779392370092003,-0.37046058681772537,-0.18854407536893217],"feature_idx":[31,7,23,0,0,0,4,7,25,23,0,42,0,0,0,0,0,0,9,16,44,0,0,0,2,0,11,0,0],"num_threshold":[0.2338767684158726,3.9889840465642745,0.3872367449370163,0.0,0.0,0.0,0.5,4.1588830833596715,1.0000052771857328,1.000000743293265,0.0,0.001348433592849519,0.0,0.0,5.817752918277993,0.0,0.0,0.0,0.666885678291477,498.582374,0.0,0.0,0.0,0.0,0.5,0.0,293.4522187809763,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,1,1,1,0,1,0,0,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0],"left":[1,2,3,0,0,0,7,8,9,10,0,12,0,0,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[6,5,4,0,0,0,18,17,14,11,0,13,0,0,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,1,0,0,0,0,1,0,1,1,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.029755294488360118,-0.0320918011420974,-0.017935824418887417,0.05950408100326487,0.8932230738009181,8.620380248203218e-06,-0.05422838693868738,-0.1239975910399977,-0.020957047232937856,-0.31434423058593863,-0.001999547518602363,-0.001999547518602363,0.3060891205376335,-0.1741562765193357,0.0013770921810348114,-0.29192674616552533,-0.4097827949409536,-0.33122259304927015,-0.22453327511399906,-0.1792429612042711,0.27636435402451437,-0.27583564501236246,-0.5514383676581578,-0.1792429612042711,-0.1792429612042711,-0.1545414614266699,-0.17911687160048553,-0.2680690788582684],"feature_idx":[4,7,23,1,13,0,0,36,0,0,12,0,0,0,28,0,36,28,40,25,0,0,0,0,0,0,1,0,0],"num_threshold":[0.5,3.4965075614664802,1.000000743293265,0.5,0.5031587400618472,0.0,0.0,0.018413305885056783,0.0,0.0,40.39307848302357,0.0,0.0,0.0,0.06057645334636053,0.0,0.07592648388068696,0.831356879344328,0.015599343185550119,1.0000052771857328,0.0,0.0,0.0,6.021366539135289,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,0,1,0,0,0,1,0,1,1,0,1,0,0,0,1,0,0,0,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,0,0,0,15,0,17,18,19,20,0,0,0,24,0,0,27,0,0],"right":[14,13,10,7,6,0,0,9,0,0,12,0,0,0,16,0,26,23,22,21,0,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,1,1,1,0,1,0,0,0,0,1,1,1,0,1,1,0,1,1]},{"value":[0.0,0.02859159653325446,-0.019395609261755098,0.057869932865141915,0.2806202358346271,-0.016471859194439276,-0.06532167384617499,-0.04859188711376355,-0.24029391324761973,-0.01406610766786927,-0.0022685441073267754,-0.025215627912614915,-0.0018995701426723244,0.2907846645107517,-0.171647823890443,-0.3002056727889279,-0.4076972634915941,-0.3284056290377762,-0.25957935632714885,-0.2206431892314021,-0.1702808131440576,0.2625461363232887,-0.5645422412017973,-0.1702808131440576,-0.1702808131440576,-0.1496469185803474,-0.1702808131440576,-0.24934873864858018,-0.0035802125948045218],"feature_idx":[4,7,31,45,0,0,23,0,0,25,0,0,0,0,33,12,28,20,0,25,0,0,0,0,0,1,0,0,0],"num_threshold":[0.5,4.07753744390572,0.0,0.5101173326447734,0.0,0.0,1.000000743293265,5.697280046283255,0.0,1.0000052771857328,0.0,0.0,0.0,0.0,0.8393763744354164,85.39735557424694,0.831356879344328,326.0516,0.0,1.0000052771857328,0.0,0.0,6.021366539135289,0.0,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,1,1,0,1,0,0,0,0,0,1,1,1,0,1,0,0,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,8,0,10,0,0,0,0,15,16,17,18,0,20,0,0,23,0,0,26,0,0,0],"right":[14,13,6,5,0,0,12,9,0,11,0,0,0,0,28,25,22,19,0,21,0,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,1,0,1,1,0,1,1,1]},{"value":[0.0,-0.0008478743142040471,-0.04069643466044133,0.0408749766540454,0.037737248201723445,-0.015648266234717313,-0.0990244722285172,-0.02843895703891235,-0.18284670411259385,-0.09386064272016288,-0.3008808699098635,-0.15681104869266457,-0.3440538529982982,-0.25491323632240875,-0.2453697538740771,0.27624543128521406,-0.29305165347489665,-0.11234912630152452,-0.04638283664929963,-0.29862513384524475,-0.013678452820619837,-0.4092976441796365,-0.0018045916355386993,-0.0018045916355386993,-0.47249524920373276,-0.16176677248685475,-0.2871778042130095,-0.16176677248685475,-0.1409261474868548],"feature_idx":[28,7,27,45,0,0,4,0,1,16,0,0,28,0,0,0,4,23,0,11,0,12,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,4.356708826689592,0.0006085402801874821,0.5101173326447734,0.0,0.0,0.5,0.0,0.5,311.2005,0.0,0.0,0.10479178503160763,0.0,0.0,0.0,0.5,1.000000743293265,0.0,293.4522187809763,0.0,22.292233006695596,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,10,0,0,13,0,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[16,15,6,5,0,0,8,0,12,11,0,0,14,0,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,0,1,1,0,1,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,-0.0013321954137118944,-0.041300327187274846,0.03163303032623469,0.05045820669019818,-0.1407340972622526,-0.10124129788359641,-0.0454956412904652,-0.16636519601435903,-0.3049855628387733,-0.16133892307239173,-0.23286114018075832,-0.08913249120228446,-0.15214977383159312,-0.1489704962580313,0.2624331597209533,-0.2930366495495123,-0.11231902021072095,-0.044063694816834614,-0.29862513384524475,-0.012994530179588805,-0.4092976441796365,-0.0017143620537616755,-0.0017143620537616755,-0.47249524920373276,-0.153678433862512,-0.2871778042130095,-0.153678433862512,-0.13387984011251206],"feature_idx":[28,7,13,8,0,0,4,0,2,28,0,0,0,0,0,0,4,23,0,11,0,12,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,4.356708826689592,0.5564877177250878,0.8947344875408224,0.0,0.0,0.5,0.0,0.5,0.027150632753383225,0.0,0.0,5.749801182839326,0.0,0.0,0.0,0.5,1.000000743293265,0.0,293.4522187809763,0.0,22.292233006695596,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,10,0,0,13,0,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[16,15,6,5,0,0,8,0,12,11,0,0,14,0,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,0,1,1,0,1,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0008169660518148993,-0.0361751027712311,0.03424911265146021,0.4116546620044327,0.004174786030616871,0.04816785996170429,0.8912636271442426,-0.046722952631181695,-0.1087363728557575,-0.09480310533572289,-0.041387034660228576,-0.15941402424807574,-0.29909443923820417,-0.1532719769187721,-0.22136445917133543,-0.08228624537114758,-0.14454228514001352,-0.14152197144512976,0.24931150173490568,-0.2930366495495123,-0.11231902021072095,-0.041860510075992875,-0.0016286439510736273,-0.47249524920373276,-0.14599451216938641,-0.2871778042130095,-0.14599451216938641,-0.12718584810688646],"feature_idx":[28,7,13,1,0,15,31,0,0,0,4,0,2,28,0,0,0,0,0,0,4,23,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,4.465908118654584,0.5564877177250878,0.5,0.0,67.0542,0.0,0.0,0.0,0.0,0.5,0.0,0.5,0.027150632753383225,0.0,0.0,5.749801182839326,0.0,0.0,0.0,0.5,1.000000743293265,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,7,0,0,0,11,0,13,14,0,0,17,0,0,0,21,22,0,0,25,0,27,0,0],"right":[20,19,10,5,0,9,8,0,0,0,12,0,16,15,0,0,18,0,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,0,1,0,0,1,1,0,1,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.029783347595039717,-0.016387706559544076,-0.004688735621861659,0.27690601274806215,-0.03607329146862222,-0.1927049385031742,-0.005072859723386181,-0.001547211753520017,0.23684592664816045,-0.16767798177378643,-0.10226973482308971,-0.21070442481891088,-0.34771101195566256,-0.21905295792669044,-0.2461357414976857,-0.1196059772014358,-0.13928181154346717,-0.20190153405484257,-0.028139569024565627,0.023421005018389174,-0.10214824093288917,-0.04141998648977037,-0.23513764523155833,-0.47348804108708104,-0.13869478656091713,-0.3313209946149353,-0.13869478656091713,-0.13869478656091713],"feature_idx":[4,7,23,13,0,0,0,0,0,0,27,34,11,29,0,0,1,0,0,1,0,26,0,0,0,0,43,0,0],"num_threshold":[0.5,4.07753744390572,1.000000743293265,0.4422446168741961,0.0,5.697280046283255,0.0,0.0,0.0,0.0,0.7542013180376982,0.6729002233982252,293.4522187809763,0.024280119788067264,0.0,0.0,0.5,0.0,0.0,0.5,0.0,0.948689108839599,0.0,0.0,6.021366539135289,0.0,0.0020291743329254874,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,0,0,11,12,13,14,0,0,17,0,0,20,0,22,0,0,25,0,27,0,0],"right":[10,9,8,5,0,7,0,0,0,0,24,19,16,15,0,0,18,0,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.030400216463634427,-0.015388679948286507,-0.0036470164063834966,0.008547591202251681,-0.033594912487188995,-0.0986596624339839,0.028681752336778395,1.038473874228204,-0.03511197249142297,-0.008113234890534393,-0.2919721119293785,-0.2899999906800333,-0.012186010885379695,-0.001469851165844105,0.22500363031575238,-0.16855187445340306,-0.10348840385782322,-0.17636874532320673,-0.21007895442280136,-0.11453637665280911,-0.12748178229569992,-0.20029490951002682,-0.008642944864919677,-0.4727496564860613,-0.13176004723287127,-0.3300786554789885,-0.13176004723287127,-0.13176004723287127],"feature_idx":[4,7,23,1,0,58,0,16,0,0,0,0,11,0,0,0,27,33,21,0,1,0,0,0,0,0,43,0,0],"num_threshold":[0.5,4.07753744390572,1.000000743293265,0.5,0.0,0.004617592436265406,0.0,301.144531,0.0,6.429919135525609,0.0,0.0,293.4522187809763,0.0,0.0,0.0,0.7542013180376982,0.9244353323082182,313.07079,0.0,0.5,0.0,0.0,0.0,6.021366539135289,0.0,0.0020291743329254874,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,0,1,0,1,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,8,0,10,0,0,13,0,0,0,17,18,19,0,21,0,0,0,25,0,27,0,0],"right":[16,15,12,5,0,7,0,9,0,11,0,0,14,0,0,0,24,23,20,0,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,0,1,1,0,1,1,1,0,0,0,1,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.0033131699874775562,-0.042640207601954555,0.06340060365728616,-0.08392206557200885,-0.03472578182360371,-0.15184625731950435,0.03062616883629339,-0.1731962989980499,-0.20172319930761987,-0.1241517824553589,-0.23896145664225948,-0.19957500670166128,-0.14571706935150885,0.2851221850188739,0.11346063463258135,0.21375344879996483,0.02560491594538367,-0.0833731841872682,0.8813011986252319,-0.2906879466234586,-0.1092681077258123,-0.03208659119252211,-0.0013963586075519175,-0.4708444795154769,-0.12517204487122768,-0.283902863300247,-0.12517204487122768,-0.1073038140118527],"feature_idx":[28,7,32,0,4,0,10,0,11,29,0,0,0,0,0,1,0,33,0,0,4,23,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,3.9889840465642745,0.0006555605727950821,0.0,0.5,0.0,0.06572995876712409,0.0,507.4688515850144,0.019065776930409915,0.0,5.7367253180290145,0.0,0.0,0.0,0.5,0.0,0.9982637659564576,0.0,0.0,0.5,1.000000743293265,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,12,0,0,0,16,0,18,0,0,21,22,0,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,11,0,13,0,0,0,17,0,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,0,1,1,1,0,1,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0003486788350706928,-0.03452338709073334,0.03724542033659197,0.041214513428589845,-0.010716092494795682,0.5518698532858165,-0.01386548588225427,-0.08307048234276035,-0.18359212166529532,-0.17665595455900096,-0.3136726751241658,-0.13216562396024126,-0.21334625636657834,-0.03875591367105429,0.2030657763599667,-0.2898087317709141,-0.10920909294658818,-0.030482261632895913,-0.29862513384524475,-0.011506892410733105,-0.4092976441796365,-0.0013265406771743927,-0.0013265406771743927,-0.46915069918537294,-0.1189134426276663,-0.283902863300247,-0.1189134426276663,-0.10193862331126002],"feature_idx":[28,7,29,45,9,0,0,0,16,4,0,25,0,0,0,0,4,23,0,11,0,12,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.0,0.5101173326447734,1.676687818925278,0.0,0.0,0.0,307.1152,0.5,0.0,0.8638722189581011,0.0,0.0,0.0,0.0,0.5,1.000000743293265,0.0,293.4522187809763,0.0,22.292233006695596,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,0,9,10,0,12,0,0,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[16,15,8,7,6,0,0,0,14,11,0,13,0,0,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,0,1,0,1,1,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0019918689267043764,-0.03249730903850804,0.1662521719516491,-0.06866668976293794,-0.12332884316522397,0.032326687517162965,-0.15031252839472053,-0.1716563676745973,-0.13706470497910034,-0.25475777048419956,-0.11630453073185026,-0.11734445532397696,0.2728038714514828,-0.020338464283956803,0.19291248754196832,-0.2888342751203116,-0.10920909294658818,-0.02895814855125103,-0.29862513384524475,-0.010931547790196472,-0.4092976441796365,-0.001260213643315744,-0.001260213643315744,-0.46720846780708886,-0.11296777049628295,-0.28379577149479646,-0.11296777049628295,-0.09684169214569707],"feature_idx":[28,7,13,0,3,10,0,11,13,0,0,0,0,0,0,0,4,23,0,11,0,12,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.46278016445467784,0.0,0.5,0.05902416247526847,0.0,507.4688515850144,0.7488689987498993,0.0,5.7367253180290145,0.0,0.0,0.0,0.0,0.0,0.5,1.000000743293265,0.0,293.4522187809763,0.0,22.292233006695596,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,1,0,1,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,11,0,0,0,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[16,15,4,0,14,7,0,13,10,0,12,0,0,0,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,0,1,1,1,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.005339100899326548,-0.028372012865744714,0.03071035314130484,-0.07378270074885632,-0.1347822677611579,0.0018212183456951083,-0.19259033634475636,-0.1845006131126007,-0.12403949878386893,-0.06926964420298536,-0.11085275993418185,0.04140308227129968,-0.1885644598005646,-0.03294272836075498,0.010404969631069783,-0.0860006575613518,0.18326686316486995,-0.28869361332282506,-0.108983297270363,-0.027510241123688495,-0.29862513384524475,-0.010384970400686644,-0.0011972029611499126,-0.4671523959938101,-0.1073193819714688,-0.2836529824197456,-0.1073193819714688,-0.09199960753841224],"feature_idx":[28,7,22,0,3,27,0,21,0,1,36,0,0,0,1,0,0,0,4,23,0,11,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.29011361940542385,0.0,0.5,0.004392685667586066,0.0,313.07079,0.0,0.5,0.196502669111103,0.0,0.0,0.0,0.5,0.0,0.0,0.0,0.5,1.000000743293265,0.0,293.4522187809763,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,10,11,0,0,0,15,0,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[18,17,4,0,14,7,0,9,0,13,12,0,0,0,16,0,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,0,0,1,1,1,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.000922979286524109,-0.04445173031767917,0.01917869516223219,0.02845702565899604,-0.01267553685549725,-0.09269490498591722,-0.033368201275469925,-0.10849520841456517,0.007607987680953877,-0.17864341728627853,-0.32176285967291396,-0.1651247880525622,-0.21146715961176865,-0.12090697878443402,-0.07839641351410603,-0.15845813147165616,-0.10531012193747272,0.13787069123308573,0.03335198483184367,-0.18063301006971325,0.1120447706376148,0.04444820518857178,0.17410352000662643,-0.3351559429547766,-0.018211168124285138,-0.5116601967242872,-0.10195341287289539,-0.10195341287289539],"feature_idx":[27,7,27,45,0,0,4,21,0,0,0,2,0,0,1,36,26,0,0,0,0,7,0,0,4,0,0,0,0],"num_threshold":[0.8229775327133568,3.9889840465642745,0.004392685667586066,0.5101173326447734,0.0,0.0,0.5,313.07079,0.0,0.0,5.790384178852501,0.5,0.0,0.0,0.5,0.196502669111103,1.0000032763379485,0.0,0.0,0.0,0.0,5.111987788356544,0.0,0.0,0.5,0.0,6.021366539135289,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,1,0,0,1,1,0,0,0,1,1,0,0,0,0,1,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,12,0,0,15,16,17,0,0,0,0,22,0,0,25,0,27,0,0],"right":[24,21,6,5,0,0,10,9,0,0,14,13,0,0,20,19,18,0,0,0,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,1,1,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.00731610393297995,-0.025935455401254796,0.04261781120900444,-0.012041760012722414,0.7532312218920553,-0.0634987566257496,-0.15049679874695648,-0.16377770134495506,-0.24239594840212364,-0.103829875430357,-0.13551747554805268,-0.027697157834031573,0.0007564444008943739,-0.07029230796467406,-0.03855327438538865,-0.17540633303042386,0.16539834400629516,-0.2860468846289541,-0.10393597811088474,-0.026515128451551642,-0.28798055266789263,-0.0002267844068780889,-0.0015177421971399596,-0.4668906880782886,-0.09685574222925064,-0.2836529824197456,-0.09685574222925064,-0.08230195651784689],"feature_idx":[28,7,31,9,0,0,0,4,0,13,0,0,1,0,4,0,0,0,4,23,0,19,0,0,21,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.0,1.5756647124863217,0.0,0.0,5.7367253180290145,0.5,0.0,0.7362067137752183,0.0,0.0,0.5,0.0,0.5,0.0,0.0,0.0,0.5,1.000000743293265,0.0,353.1237,0.0,0.0,469.2033,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,1,0,1,0,0,0,0,1,0,0,0,1,1,0,1,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,8,0,10,0,0,13,0,15,0,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[18,17,6,5,0,0,12,9,0,11,0,0,14,0,16,0,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.007621254811488059,-0.025559372189358755,0.3139045602878421,-0.05454289880684774,-0.214517813697221,-0.03563194489313903,0.005245685387154729,-0.029278612130441674,0.026175382583471143,-0.06978901915578153,-0.04947506706469138,-0.19374815509875515,-0.09129389839314968,-0.16967144040510523,0.1571284268059804,-0.2860381502010115,-0.10391845206526511,-0.025189372028973978,-0.28798055266789263,-0.0002154451865342466,-0.0014418550872829174,-0.4668906880782886,-0.5852029321697322,-0.09172533454096295,-0.09201295511778813,-0.2836529824197456,-0.09201295511778813,-0.07818685869195452],"feature_idx":[28,7,13,0,0,0,1,62,0,0,4,0,29,0,0,0,4,23,0,19,0,0,21,28,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.4422446168741961,0.0,5.4934823424044295,0.0,0.5,0.06524749048113543,0.0,0.0,0.5,0.0,0.024280119788067264,0.0,0.0,0.0,0.5,1.000000743293265,0.0,353.1237,0.0,0.0,469.2033,0.831356879344328,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,0,1,0,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,8,0,0,11,0,13,0,0,0,17,18,0,20,0,0,23,24,0,0,27,0,0],"right":[16,15,4,0,6,0,10,9,0,0,12,0,14,0,0,0,22,19,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,0,1,0,1,1,1,0,0,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.007071801266821833,-0.02623654623151131,0.05006242789738825,-0.023642711866834355,0.6998744327830604,-0.0588648406173756,-0.12375538337270357,-0.09440959495201957,-0.21379103247505035,-0.18993463066013538,-0.37773041035962307,-0.032223731325181415,-0.18339203716891658,-0.02653732147483048,0.14927200546568145,-0.28595043752135463,-0.10374245239646264,-0.02392990342752519,-0.28798055266789263,-0.00020467292720756093,-0.0013697623329187892,-0.4668906880782886,-0.5852029321697322,-0.08713906781391484,-0.08741230736189874,-0.2836529824197456,-0.08741230736189874,-0.07427751575735685],"feature_idx":[28,7,32,9,0,0,0,29,0,4,0,19,0,0,0,0,4,23,0,19,0,0,21,28,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.0,1.2583385261380777,0.0,0.0,5.7367253180290145,0.12905940714245254,0.0,0.5,0.0,146.9967,0.0,0.0,0.0,0.0,0.5,1.000000743293265,0.0,353.1237,0.0,0.0,469.2033,0.831356879344328,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,1,0,1,0,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,7,8,0,10,0,12,0,0,0,0,17,18,0,20,0,0,23,24,0,0,27,0,0],"right":[16,15,6,5,0,0,14,9,0,11,0,13,0,0,0,0,22,19,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,0,1,0,1,1,1,1,0,0,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.010850108774868656,-0.021161832853520406,0.027487510967170614,-0.05828028227483972,-0.027117368228738992,-0.07437444468528298,0.012257296225687497,-0.10522066243041486,0.0012392972429019268,-0.15036946913574634,-0.11222914020978632,0.26056575577418245,0.14180840519239732,-0.2859335581058543,-0.10370858304542625,-0.022733408256148915,-0.28798055266789263,-0.00019443928084719177,-0.4846424975919281,-0.0013012742162729297,-1.0316426011058867e-05,-0.4668906880782886,-0.5852029321697322,-0.08278211442321909,-0.08304169199380383,-0.2836529824197456,-0.08304169199380383,-0.07056363996948899],"feature_idx":[28,7,22,0,4,2,0,0,27,0,19,0,0,0,4,23,0,19,0,27,0,0,21,28,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.29011361940542385,0.0,0.5,0.5,0.0,0.0,0.004392685667586066,0.0,543.22052,0.0,0.0,0.0,0.5,1.000000743293265,0.0,353.1237,0.0,0.9008115419296664,0.0,0.0,469.2033,0.831356879344328,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,1,0,0,0,0,1,0,0,0,1,1,0,1,0,1,0,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,0,9,0,11,0,0,0,15,16,0,18,0,20,0,0,23,24,0,0,27,0,0],"right":[14,13,4,0,8,7,0,0,10,0,12,0,0,0,22,17,0,19,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,0,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.01069282551306504,-0.021292713116318456,0.3489941694196171,-0.04464782225500827,-0.016673841990187593,0.011644431414403123,-0.04229638858054355,-0.09725236569975415,-0.043965033655163493,-0.08513252436344086,0.040874718492066364,-0.10939328400611832,-0.09777257892178844,-0.11694573440603771,0.1347179849327773,-0.2594277351114249,-0.00018471731680484995,-0.4668906880782886,-0.5852029321697322,-0.36915615683380065,-0.07864300870205812,-0.0755013369190424,-0.6624558686458238,-0.07888960739411362,-0.07888960739411362,-0.2836529824197456,-0.07888960739411362,-0.06703545797101454],"feature_idx":[28,7,13,0,4,1,0,9,0,0,10,0,65,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.4198935889086777,0.0,0.5,0.5,0.0,0.814848252185423,0.0,0.0,0.05902416247526847,0.0,0.6806434693463983,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,0,11,0,13,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,4,0,10,7,0,9,0,0,12,0,14,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,1,0,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.012510828883877355,-0.03007284390162729,0.3821471065635329,-0.04965230899386024,-0.021027154639106434,0.011062209843682958,-0.060727570446899116,-0.09714008500747492,0.02406939949420881,-0.11243104097277129,-0.13014099907690757,-0.12437032874047632,-0.20880997450207284,-0.09895059608232942,-0.0985023132636615,0.2524260969315627,0.1145809600333843,0.12798208568613845,0.09889022006407373,-0.25941449635395614,-0.00017548145096455415,-0.4668643013425119,-0.5851594962697598,-0.07471085826695525,-0.07494512702440792,-0.2836529824197456,-0.07494512702440792,-0.0636836850724638],"feature_idx":[28,7,13,0,4,1,0,0,10,0,11,13,0,9,0,0,0,1,0,0,4,0,21,28,0,0,44,0,0],"num_threshold":[0.7572430295779127,3.9889840465642745,0.38259848842844774,0.0,0.5,0.5,0.0,0.0,0.06572995876712409,0.0,507.4688515850144,0.7488689987498993,0.0,3.011549122295114,0.0,0.0,0.0,0.5,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,0,9,0,11,12,0,14,0,0,0,18,0,0,21,0,23,24,0,0,27,0,0],"right":[20,17,4,0,8,7,0,0,10,0,16,13,0,15,0,0,0,19,0,0,22,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,0,0,1,0,1,1,1,0,1,1,0,1,0,0,1,1,0,1,1]},{"value":[0.0,0.01080781153102658,-0.021150998594081014,0.02774250864332166,-0.011631617206584973,0.0762064780229471,-0.05158635862286278,-0.00016788153498090708,-0.2127192073570754,0.7818125400204462,-0.054224442705650466,0.022865929519498354,-0.06477827984503418,0.12158298140183135,-0.25626603326702896,-0.04420584582075847,-0.0001667073784163975,-0.21357279066632212,-0.4668643013425119,-0.5851594962697598,-0.3689916574795238,-0.07097531535360746,-0.06799072715974246,-0.6624558686458238,-0.0711978706731875,-0.0711978706731875,-0.2836529824197456,-0.0711978706731875,-0.06049950081884062],"feature_idx":[28,7,29,7,1,0,16,0,0,0,10,0,0,0,4,10,0,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.0,3.258096538021482,0.5,0.0,301.144531,0.0,0.0,0.0,0.05902416247526847,0.0,0.0,0.0,0.5,0.9501058893515764,0.0,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,0,7,0,0,0,11,0,0,0,15,16,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[14,13,10,9,6,0,8,0,0,0,12,0,0,0,18,17,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,0,1,1,1,0,1,1,1,0,0,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.013333231272958131,-0.018037389642893902,-0.04990729947716115,-0.09134461860117662,-0.023051600817004747,-0.09120406291182644,-0.024091330274121706,-0.3308018113559734,-0.01027781055965151,0.013748013343750465,-0.03855879083022007,-0.08200874390883205,-0.016822024968120797,0.030789789859459307,0.11550383233173989,-0.2506615057545109,-0.00015837200949562203,-0.4668643013425119,-0.5851594962697598,-0.3689916574795238,-0.06742654958592711,-0.06459119080175535,-0.6624558686458238,-0.06763797713952809,-0.06763797713952809,-0.2836529824197456,-0.06763797713952809,-0.05747452577789858],"feature_idx":[28,7,59,3,25,0,0,0,0,1,0,9,0,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.04143164784941809,0.5,0.8401959468281885,0.0,0.0,5.2634225631404385,0.0,0.5,0.0,0.814848252185423,0.0,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,0,0,8,0,10,0,12,0,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,14,7,6,0,0,9,0,11,0,13,0,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,0,1,0,1,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.012286638520012041,-0.019327262921317468,0.1320701412499435,-0.037760774118158556,-0.013100874409074434,-0.1516523036422921,0.12290774017484463,-0.3332154907340747,-0.0024861615504418325,0.013060612676562933,-0.04454433830845055,-0.07478946592857424,0.03763679615762801,-0.08629769914036985,0.1097286407151529,-0.2506615057545109,-0.000150453409020912,-0.4668643013425119,-0.5851594962697598,-0.3689916574795238,-0.0640552221066308,-0.061361631261667604,-0.6624558686458238,-0.06425607828255168,-0.06425607828255168,-0.2836529824197456,-0.06425607828255168,-0.05460079948900365],"feature_idx":[28,7,23,0,4,0,15,0,0,10,0,0,10,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.2937800223896626,0.0,0.5,5.2634225631404385,50.025397,0.0,0.0,0.5630832215996614,0.0,0.0,0.05902416247526847,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,7,0,0,10,0,0,13,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,4,0,12,9,8,0,0,11,0,0,14,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,0,1,1,0,1,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.015586371554878938,-0.015260506816208507,0.06755140920879554,0.05312184125270658,0.048478650022253156,-0.03213738712433457,0.01937195068214049,0.027696555774190727,-0.008392537077677887,1.0103712775049913,-0.20664579050382167,-0.05329229000389919,-0.000751562967529118,-0.07621323700264951,0.10424220867939518,-0.2506615057545109,-0.00014293073856990192,-0.4668643013425119,-0.5851594962697598,-0.3689916574795238,-0.06085246100129922,-0.058293549698584184,-0.6624558686458238,-0.06104327436842408,-0.06104327436842408,-0.2836529824197456,-0.06104327436842408,-0.05187075951455347],"feature_idx":[28,7,8,1,0,0,32,19,7,0,0,0,7,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.22147368742212792,0.5,0.0,0.0,0.0,389.068146,3.258096538021482,0.0,0.0,0.0,2.1972245773362196,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,0,0,7,8,9,0,0,0,13,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,6,5,0,0,12,11,10,0,0,0,14,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,0,1,1,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.017043398787352032,-0.013450352378070194,0.05046574919007121,-0.02936263047246456,0.022178347491189205,-0.01099012107803254,0.05915694661674973,-0.10524829920871612,0.034298635267793996,-0.21804908411408094,0.924344707442978,-0.05053059272671206,0.0009302232536678723,-0.07115275912343089,0.09903009824542544,-0.2506615057545109,-0.00013578420164144235,-0.4668643013425119,-0.5851594962697598,-0.3689916574795238,-0.057809837951234226,-0.055378872213654964,-0.6624558686458238,-0.05799111065000284,-0.05799111065000284,-0.2836529824197456,-0.05799111065000284,-0.04927722153882579],"feature_idx":[28,7,8,0,32,7,16,0,1,0,0,0,7,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.22147368742212792,0.0,0.0,3.258096538021482,287.054901,0.0,0.5,0.0,0.0,0.0,2.0794415416798357,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,7,0,9,0,0,0,13,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,4,0,12,11,8,0,10,0,0,0,14,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,0,1,0,1,1,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.017272770815818315,-0.013155965465562046,0.03969550951653772,-0.004194952577522316,0.7624527802328457,-0.035757330187890395,-0.06108190933935863,-0.06308329658505514,-0.15335530357952704,0.0015503050586206915,0.02450372560911589,-0.03490934151137261,-0.0601972015036527,-0.028960240106174776,-0.228563620521759,0.015178336528427927,0.094078593333154,-0.2506615057545109,-0.00012899499155931695,-0.4668643013425119,-0.5851594962697598,-0.054919346053672505,-0.6624558686458238,-0.05509155511750272,-0.05509155511750272,-0.2836529824197456,-0.05509155511750272,-0.04681336046188447],"feature_idx":[28,7,32,7,0,0,2,16,0,0,32,0,15,65,0,0,0,0,4,0,21,28,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.0,3.1780538303479458,0.0,0.0,0.5,545.2381,0.0,0.0,0.13985024001839658,0.0,188.447861,0.37068645640074205,0.0,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,0,13,14,0,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,6,5,0,0,10,9,0,0,12,0,16,15,0,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,1,0,0,1,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.01823725465477336,-0.011959311857214426,0.04248742192832808,-0.025204102693916753,0.33381933300260674,-0.033168046274568506,-0.06368641144890637,-0.009420037812054654,-0.2846187316159142,0.0030553575513979385,0.014419419702006487,-0.02391574084628603,-0.07389380073948466,-0.009115637396865139,0.08937466366649645,-0.2506615057545109,-0.00012254524198134222,-0.4668643013425119,-0.5851594962697598,-0.3689916574795238,-0.05217337875098887,-0.04986396130028856,-0.6624558686458238,-0.05233697736162757,-0.05233697736162757,-0.2836529824197456,-0.05233697736162757,-0.04447269243879024],"feature_idx":[28,7,23,9,0,0,3,0,0,0,1,0,9,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.346666535366157,1.5756647124863217,0.0,0.0,0.5,0.0,5.2634225631404385,0.0,0.5,0.0,0.7585381952988652,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,0,13,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,6,5,0,0,8,0,10,0,12,0,14,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.020120691551457473,-0.009620740578319653,0.05257479430832177,-0.02504497539849579,-0.06849852603306848,-0.003533959056387393,-0.2989519755976185,0.004911518796367062,0.06969557866432277,0.016690431411231544,-0.17668925775492889,-0.019013664152916988,-0.1096937043733485,-0.005162549219639615,0.23185424449042805,-0.035751830352462745,-0.034663707787654464,-0.3141699281595363,0.08490593048317159,-0.250640406485053,-0.00011641797988222181,-0.46682224748288176,-0.585090270305025,-0.04956470981343939,-0.049720128493546234,-0.2836529824197456,-0.049720128493546234,-0.04224905781685076],"feature_idx":[28,7,8,0,3,0,0,0,1,40,0,0,9,0,21,0,0,0,0,0,4,0,21,28,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.22147368742212792,0.0,0.5,0.0,5.188074585895738,0.0,0.5,0.6623989584964587,0.0,0.0,0.6295746779268971,0.0,212.105194,0.0,6.429919135525609,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,13,0,15,0,17,0,0,0,21,0,23,24,0,0,27,0,0],"right":[20,19,4,0,6,0,8,0,12,11,0,0,14,0,16,0,18,0,0,0,22,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,0,1,0,1,0,1,1,1,0,1,0,0,1,1,0,1,1]},{"value":[0.0,0.021146377909454898,-0.0083566333871507,0.049946054592905756,-0.022623350059003847,-0.06442620426075503,0.004016018060432814,-0.09724573738372057,-0.08461807824660524,-0.031014141303804966,0.057799593626937984,-0.1440690659985922,-0.0007306684597300008,0.012863927146344701,-0.025832962976368792,0.05587395462663008,-0.06556710232184422,0.08066063395901289,-0.250640406485053,-0.00011059708088811959,-0.46682224748288176,-0.585090270305025,-0.047086474322767385,-0.6624558686458238,-0.04723412206886888,-0.04723412206886888,-0.2836529824197456,-0.04723412206886888,-0.04013660492600826],"feature_idx":[28,7,8,0,3,12,0,36,0,1,0,0,1,0,15,0,0,0,4,0,21,28,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.22147368742212792,0.0,0.5,34.54766532152135,0.0,0.196502669111103,0.0,0.5,0.0,0.0,0.5,0.0,50.025397,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,10,0,0,13,0,15,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,4,0,12,7,0,9,0,11,0,0,14,0,16,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,0,1,1,0,1,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.019897788308409416,-0.009895457688745177,0.039768201765585466,-0.007001742733003625,0.5994839524744281,-0.03113363544937587,0.004362626930834014,-0.019310895010873422,-0.2850898981213664,0.006410602721208925,0.2346910854333892,-0.05522874153884087,-0.055938076592602574,-0.13530813746901318,0.07662760226106223,-0.250640406485053,-0.00010506722684375803,-0.46682224748288176,-0.585090270305025,-0.36872948663684924,-0.04473215060662899,-0.04253820402846369,-0.6624558686458238,-0.04487241596542546,-0.04487241596542546,-0.2836529824197456,-0.04487241596542546,-0.038129774679707844],"feature_idx":[28,7,32,9,0,0,1,36,22,0,0,0,16,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.0,1.5291844228587117,0.0,0.0,0.5,0.611042145436638,0.2298143937101611,0.0,0.0,0.0,545.2381,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,0,0,7,8,9,0,0,0,13,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,6,5,0,0,12,11,10,0,0,0,14,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,0,1,1,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.020559823167911436,-0.008998611890477714,0.05248522504456253,0.5422433938445714,-0.017707150825051296,0.018438307125977715,-0.12419001686320141,-0.08032071056380713,-0.40180844236882973,-0.02561455241297183,-0.0399818331187184,-0.008621874174638578,-0.08604782609092393,-0.003962476818028193,-0.07793907461306762,0.012307684217162596,0.0727962221480091,-0.24557416832525594,-9.981386550155236e-05,-0.46755470857370207,-0.5922564836269232,-0.04249554307629753,-0.6625292485025948,-0.04262879516715419,-0.04262879516715419,-0.27689965529296473,-0.04262879516715419,0.19293608905427764],"feature_idx":[27,7,22,16,0,1,0,0,0,0,7,4,0,12,0,0,0,0,4,0,21,28,0,61,0,0,44,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.2168682963420513,385.189265,0.0,0.5,0.0,6.545841464666197,0.0,0.0,3.6109179126442243,0.5,0.0,34.54766532152135,0.0,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,1,0,0,1,1,0,1,0,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,0,6,0,8,0,0,11,12,0,14,0,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,10,5,0,7,0,9,0,0,16,13,0,15,0,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,1,0,0,1,0,1,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.020049447458246144,-0.009708545363724608,0.3925399413230782,-0.024482689615560403,0.011692300006304458,-0.03471901924702353,-0.010300037087773934,0.011866083506984282,-0.04242365558909844,-0.0780041280206735,0.00245401000687977,-0.11250747622419695,-0.07355561250939609,0.2844000140657502,0.06915641104060875,-0.24537957514323375,-0.0009169724104548749,-0.4617155188421835,-0.5766839499363278,-0.33689328033338833,-0.040370765922482656,-0.03828651667322563,-0.6624558686458238,-0.04049735540879649,-0.04049735540879649,-0.2836529824197456,-0.04049735540879649,-0.04587009039843633],"feature_idx":[28,7,13,0,10,0,4,1,0,0,12,0,11,0,0,0,4,0,21,28,44,0,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.38259848842844774,0.0,0.09228018782910684,0.0,0.5,0.5,0.0,0.0,34.54766532152135,0.0,507.4688515850144,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.03601379173305563,0.0,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,0,7,8,0,0,11,0,13,0,0,0,17,0,19,20,21,0,0,24,0,0,27,0,0],"right":[16,15,4,0,6,0,10,9,0,0,12,0,14,0,0,0,18,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,0,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.01980199331341932,-0.010013520233986982,0.0380643182092141,-0.00012910288661195776,0.08236910271987573,-0.04575755806072465,-0.02048473140954119,-0.296636609841409,0.6613123672633665,-0.030573528709522988,-0.04039931990435609,-0.017464231829067634,-0.047558686963479785,0.011272779331635086,-0.06259279420671904,0.011107685005989154,0.06569859048857829,-0.2452670457052445,-0.0008711237899321489,-0.4617155188421835,-0.5766839499363278,-0.03835222762635855,-0.6624558686458238,-0.038472487638356694,-0.038472487638356694,-0.2836529824197456,-0.038472487638356694,-0.04357658587851452],"feature_idx":[28,7,32,7,1,0,16,0,0,0,9,4,11,0,0,0,0,0,4,0,21,28,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.0,3.1780538303479458,0.5,0.0,370.129639,0.0,0.0,0.0,3.272006118111984,0.5,241.6146207776906,0.0,0.0,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,1,0,0,0,1,1,1,0,0,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,0,7,0,0,0,11,12,13,0,0,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,10,9,6,0,8,0,0,0,16,15,14,0,0,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,0,1,1,1,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.020057824715738085,-0.009698220812408051,0.04902906852858298,-0.024014587697258966,-0.06369319724239543,0.00336887985937393,-0.06260034560017332,-0.00323433620773671,-0.2729989070356543,0.005000830114540693,0.06403748272107909,0.01577189654037898,-0.16660279747900333,-0.01680181601002066,-0.04248363140636391,0.09721849665325505,0.06241366096414929,-0.24498005570931636,-0.0008275676004355859,-0.4611435067624253,-0.5757423458027363,-0.03643461624504063,-0.6624558686458238,-0.03654886325643885,-0.03654886325643885,-0.2836529824197456,-0.03654886325643885,-0.04139775658458875],"feature_idx":[28,7,8,0,3,12,0,0,0,0,1,40,0,0,7,0,0,0,4,0,21,28,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.22147368742212792,0.0,0.5,34.54766532152135,0.0,0.0,5.188074585895738,0.0,0.5,0.6623989584964587,0.0,0.0,3.4339872044851463,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,0,9,0,11,12,0,0,15,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,4,0,8,7,0,0,10,0,14,13,0,0,16,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,0,0,1,1,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.021081849538981744,-0.008436161379809966,0.04657761510215384,-0.021935751098122507,-0.06308378148704756,0.003200435866405194,-0.09477915300232843,-0.0647921832665999,-0.03727034821156701,-0.000386017321814433,-0.25934896168387156,0.00794596764128989,0.01221924772447931,-0.015676342839204913,-0.010105499271336705,-0.2286126189010437,0.05929297791594195,-0.2337947707688264,-0.0007861892204138244,-0.4578365517190184,-0.5702986801028966,-0.0346128854327886,-0.6624558686458238,-0.034721420093616916,-0.034721420093616916,-0.2836529824197456,-0.034721420093616916,-0.03932786875535932],"feature_idx":[28,7,8,0,3,12,0,36,0,0,0,0,1,0,0,0,0,0,4,0,21,28,0,61,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.22147368742212792,0.0,0.5,34.54766532152135,0.0,0.196502669111103,0.0,0.0,5.188074585895738,0.0,0.5,0.0,6.375905181769884,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,0,11,0,13,0,15,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,4,0,10,7,0,9,0,0,12,0,14,0,16,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,1,0,1,0,1,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.02102368412045931,-0.008507847352094042,0.37320255518631423,-0.022281955546717507,-0.017787391920050098,0.020230791323574398,-0.15472276067672333,0.03317250190422276,0.015531218865671015,-0.02477660688364769,0.009774794006525056,-0.07716675330223637,0.016579268158866258,-0.08139730222420392,-0.04185731697693651,-0.0425178121044322,-0.14441540895335586,-0.036092790288739976,0.05632832902014471,-0.233748604844859,-0.0007468797593931598,-0.4577445364343143,-0.5702986801028966,-0.03288224116114913,-0.03298534908893611,-0.2834186618828279,-0.03298534908893611,-0.037361475317591354],"feature_idx":[28,7,13,0,45,1,17,0,32,0,7,0,65,0,0,0,0,0,0,0,4,0,21,28,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.38259848842844774,0.0,0.5101173326447734,0.5,73.027985,0.0,0.32709977660177475,0.0,2.0794415416798357,0.0,0.053030303030303025,0.0,0.0,6.339164922307818,0.0,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,6,7,0,9,0,11,0,13,0,0,16,0,0,0,0,21,0,23,24,0,0,27,0,0],"right":[20,19,4,0,18,15,8,0,10,0,12,0,14,0,0,17,0,0,0,0,22,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,0,1,0,1,0,1,0,1,1,0,1,1,1,1,0,1,0,0,1,1,0,1,1]},{"value":[0.0,0.020658071486539212,-0.008958446656761581,-0.021436208567892464,-0.014905453371683565,-0.2084433564442865,-0.14244638047476435,0.008799746020962118,-0.036027788980118915,-0.1360549974512326,0.24925319142085184,0.05351191256913737,-0.2336814501805879,-0.008204652403029242,0.00011261346680484508,-0.3939710057382222,-0.1645513231700706,0.017350416202555508,-0.4576106875903818,-0.5700783479994618,-0.031238129103091695,-0.6621566026287897,-0.03133608163448933,-0.24551992670306472,-0.03133608163448933,0.4686071954692963,-0.2834186618828279,-0.03133608163448933,-0.03549340155171175],"feature_idx":[28,7,58,45,0,35,60,0,0,0,0,0,4,36,0,35,0,0,21,28,0,61,0,64,0,0,44,0,0],"num_threshold":[0.7572430295779127,4.787491742782046,0.06441200386149815,0.5101173326447734,0.0,0.9712945075097198,0.005719733079122974,0.0,0.0,0.0,0.0,0.0,0.5,0.13735421796540243,0.0,0.18130080669580811,0.0,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,1,1,0,0,0,0,0,1,1,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0],"left":[1,2,3,4,0,6,7,0,0,0,0,0,13,14,0,16,0,0,19,20,0,22,0,24,0,0,27,0,0],"right":[12,11,10,5,0,9,8,0,0,0,0,0,18,15,0,17,0,0,26,21,0,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,1,1,0,0,1,0,1,1,0,0,1,0,1,0,1,1,0,1,1]},{"value":[0.0,0.021619655831930696,-0.007693029610620535,0.03791623836462103,0.0017668700396633596,0.6256287833727314,-0.02717829186758451,0.007973345470985237,0.012220036325331486,-0.0416130651392992,-0.09825627614346029,-0.03422639953111295,-0.10906358858958667,0.008530268541804099,-0.051084513868843655,-0.050443335118775856,-0.11202099432872821,0.05083631694068061,-0.23112902493707826,0.00010698279346463835,-0.45809636711327517,-0.5767588483322031,-0.029676222647937147,-0.6622784899177618,-0.029769277552764886,-0.029769277552764886,-0.27666887807076795,-0.029769277552764886,0.1954406435258739],"feature_idx":[27,7,32,7,0,0,1,32,0,3,63,0,0,0,16,0,0,0,4,0,21,28,0,61,0,0,44,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.0,3.1780538303479458,0.0,0.0,0.5,0.32709977660177475,0.0,0.5,0.12937173138458413,0.0,0.0,0.0,545.2381,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.023532081465932886,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,0,0,7,8,0,10,11,0,0,0,15,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,6,5,0,0,14,9,0,13,12,0,0,0,16,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,0,0,1,1,1,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.017250081288420864,-0.012165496722517937,0.02730300254039709,-0.006831225954778804,0.03148876291671687,-0.10954411529991025,-0.05494009057643528,-0.3221948063485991,0.5321784157016921,-0.037311843874239956,-0.07371887150801178,0.0038356450440552694,-0.11193559600243153,-0.01835660509626722,-0.05942514034875149,-0.010342274622108743,-0.12454208235508464,0.004693223127892843,0.048294501093646504,-0.2701392083397611,-0.008626745413768334,-0.507371530825402,-0.02828081367512665,-0.35471940857609613,-0.02828081367512665,-0.1581792194044434,-0.02828081367512665,0.43560558397317656],"feature_idx":[27,7,29,9,14,0,39,0,0,0,3,22,0,35,0,0,19,0,0,0,4,0,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.787491742782046,0.0,2.1788623895092316,0.14106576850734703,0.0,0.5325471698113207,0.0,0.0,0.0,0.5,0.3064671542339517,0.0,0.10812480691998762,0.0,0.0,142.8475,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,4,5,0,7,0,0,0,11,12,0,14,0,0,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,19,10,9,6,0,8,0,0,0,16,13,0,15,0,0,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,0,1,1,1,0,0,1,0,1,1,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.023217539456683225,-0.0057246353380385135,0.03877120998934051,0.06214000510630456,0.4049807624288754,-0.18556706530936307,-0.058349644397214,0.2668811832175441,-0.2341429714582821,-0.020651355544013053,0.04587977603896434,-0.225776634518684,-2.8270691257681337e-05,-0.4421872690164035,-0.5228088790980718,-0.639358510884018,-0.5365984277545628,-0.026866772991370347,-0.026866772991370347,-0.026866772991370347,-0.297879980956877,-0.026866772991370347,-0.026866772991370347,-0.2138938962832501,-0.34218814061897457,-0.0734143642146849,-0.02836148337031501,0.0013388040459972217],"feature_idx":[27,7,32,20,8,0,0,1,0,0,0,0,4,0,9,16,44,36,0,0,0,62,0,0,15,17,0,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.0,255.102112,0.8947344875408224,0.0,0.0,0.5,0.0,0.0,0.0,0.0,0.5,0.0,0.666885678291477,498.582374,0.0,0.018413305885056783,0.0,0.0,0.0,0.0014388210107920407,0.0,0.0,173.541687,213.69889,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,1,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0,0],"left":[1,2,3,4,5,0,0,8,0,0,0,0,13,0,15,16,17,18,0,0,0,22,0,0,25,26,0,0,0],"right":[12,11,10,7,6,0,0,9,0,0,0,0,14,0,24,21,20,19,0,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,1,1,0,1,0,0,0,0,1,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,0.02217373496202739,-0.007010472902895043,0.044447229781077985,-0.01990740450252123,0.0016274853815993662,-0.2337285116749786,0.009908951519039595,0.010402720168498726,-0.01379901097371066,-0.003414128774052472,-0.17977187554211033,-0.0398476771797375,0.04358578723701605,-0.225776634518684,-2.6857156694859444e-05,-0.4421872690164035,-0.5228088790980718,-0.639358510884018,-0.02552343434180182,-0.02552343434180182,-0.297879980956877,-0.02552343434180182,-0.02552343434180182,-0.2138938962832501,-0.34218814061897457,-0.06974364600395067,-0.026943409201799273,0.0012718638436973963],"feature_idx":[27,7,8,0,4,0,0,1,0,0,0,0,0,0,4,0,9,16,44,0,0,62,0,0,15,17,0,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.22147368742212792,0.0,0.5,5.188074585895738,0.0,0.5,0.0,6.27316432375719,0.0,0.0,0.0,0.0,0.5,0.0,0.666885678291477,498.582374,0.0,0.0,0.0,0.0014388210107920407,0.0,0.0,173.541687,213.69889,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,1,0,0,0,0,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0],"left":[1,2,3,0,5,6,0,8,0,10,0,0,0,0,15,0,17,18,19,0,0,22,0,0,25,26,0,0,0],"right":[14,13,4,0,12,7,0,9,0,11,0,0,0,0,16,0,24,21,20,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,0,1,1,1,1,0,1,0,0,0,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,0.022461289544113607,-0.006656241353322156,0.0422248682920241,-0.01937699077508665,0.0016443231343987,-0.22204208609122966,0.009864182961058015,0.009882584160073727,-0.015788424467883467,-0.059945448407494585,0.011254421404045268,-0.09249526603786075,-0.051310971322984636,-0.02170981730968662,0.04140649787516537,-0.22571792149825068,-2.5514298860152e-05,-0.44207131971572095,-0.5226519566291742,-0.024247262624711753,-0.297420811680568,-0.024247262624711753,-0.024247262624711753,-0.2138938962832501,-0.34218814061897457,-0.06625646370375318,-0.025596238741709333,0.0012082706515124998],"feature_idx":[27,7,8,0,4,0,0,1,0,0,12,0,36,0,0,0,4,0,9,16,0,62,0,0,15,17,0,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.22147368742212792,0.0,0.5,5.188074585895738,0.0,0.5,0.0,0.0,34.54766532152135,0.0,0.196502669111103,0.0,0.0,0.0,0.5,0.0,0.666885678291477,498.582374,0.0,0.0014388210107920407,0.0,0.0,173.541687,213.69889,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,1,1,0,1,0,0,1,1,0,0,0],"left":[1,2,3,0,5,6,0,8,0,0,11,0,13,0,0,0,17,0,19,20,0,22,0,0,25,26,0,0,0],"right":[16,15,4,0,10,7,0,9,0,0,12,0,14,0,0,0,18,0,24,21,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,1,0,1,0,1,1,1,0,1,0,0,1,0,1,1,0,0,1,1,1]},{"value":[0.0,0.021809835709285005,-0.0074414341102343965,0.10990552937252113,-0.021251422929754772,-0.013935866216199955,-0.1980656728093872,-0.13251821452734105,0.006875158364367096,-0.023953322334782978,-0.10510842297841877,0.039336172981407104,-0.22571792149825068,-2.4238583917224334e-05,-0.44207131971572095,-0.5226519566291742,-0.639358510884018,-0.5365984277545628,-0.023034899493476146,-0.023034899493476146,-0.023034899493476146,-0.297420811680568,-0.023034899493476146,-0.023034899493476146,-0.2138938962832501,-0.34218814061897457,-0.06294364051856549,-0.02431642680462387,0.0011478571189369013],"feature_idx":[27,7,23,0,45,0,35,60,0,0,0,0,4,0,9,16,44,36,0,0,0,62,0,0,15,17,0,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.2937800223896626,0.0,0.5101173326447734,0.0,0.9712945075097198,0.005719733079122974,0.0,0.0,0.0,0.0,0.5,0.0,0.666885678291477,498.582374,0.0,0.018413305885056783,0.0,0.0,0.0,0.0014388210107920407,0.0,0.0,173.541687,213.69889,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,1,1,0,0,0,0,1,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0,0],"left":[1,2,3,0,5,0,7,8,0,0,0,0,13,0,15,16,17,18,0,0,0,22,0,0,25,26,0,0,0],"right":[12,11,4,0,6,0,10,9,0,0,0,0,14,0,24,21,20,19,0,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,0,0,0,1,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,0.021563862021941608,-0.007600694794372728,-0.0037075832851199133,0.032804951347300965,-0.13238754574813583,-0.4292981960163227,-0.01141548217824493,0.04844118622725064,0.0016035684597788702,0.42150457574820044,-0.024987474790555755,0.06514439641312411,-0.05743547212045224,-0.05369222422271154,-0.16659182200680808,-0.0210160180122279,0.03736936433233673,-0.22571792149825068,-2.3026654721292063e-05,-0.44207131971572095,-0.5226519566291742,-0.02188315451880234,-0.02188315451880234,-0.2138938962832501,-0.34218814061897457,-0.05979645849263724,-0.023100605464392656,0.001090464262990043],"feature_idx":[27,7,45,1,0,17,0,0,35,0,0,15,0,0,0,0,0,0,4,0,9,16,0,0,15,17,0,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.5101173326447734,0.5,5.4934823424044295,71.04873,0.0,0.0,0.8761463343318011,0.0,0.0,51.374322,0.0,6.339164922307818,0.0,0.0,0.0,0.0,0.5,0.0,0.666885678291477,498.582374,0.0,0.0,173.541687,213.69889,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,4,5,6,0,0,9,0,0,12,0,14,0,0,0,0,19,0,21,22,0,0,25,26,0,0,0],"right":[18,17,16,11,8,7,0,0,10,0,0,13,0,15,0,0,0,0,20,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1,1,0,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,0.022395922831294636,-0.006575699165029495,-0.002661324918949496,0.032804951347300965,-0.13238754574813583,-0.4078332862155065,-0.010844708069332755,0.04844118622725064,0.0015233900367899623,0.40042934696079036,-0.023331466686781783,0.061887176592467875,-0.054243882916935555,-0.05261078448973158,-0.1001607653716425,-0.01996521711161652,0.035500896115719986,-0.2246175864957808,-2.1875321985298514e-05,-0.43989832515486665,-0.5505590053557393,-0.020847681101395565,-0.6568238978017431,-0.020788996792862238,-0.020788996792862238,-0.2706994660120349,-0.020788996792862238,0.1699661083494295],"feature_idx":[27,7,45,1,0,17,0,0,35,0,0,15,0,16,0,0,0,0,4,0,21,28,0,44,0,0,44,0,0],"num_threshold":[0.7542013180376982,4.787491742782046,0.5101173326447734,0.5,5.4934823424044295,71.04873,0.0,0.0,0.8761463343318011,0.0,0.0,51.374322,0.0,446.230713,0.0,0.0,0.0,0.0,0.5,0.0,469.2033,0.831356879344328,0.0,0.014826227470324582,0.0,0.0,0.0013830361228546195,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,6,0,0,9,0,0,12,0,14,0,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,17,16,11,8,7,0,0,10,0,0,13,0,15,0,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.0088828417170055,-0.01763266848990806,-0.004046221250100964,-0.011719215683856319,0.011982303946208896,-0.017754320039497975,0.09836650224650123,-0.4768991486900664,0.033725851309933934,-0.07347946062109457,-0.01980529704632579,-0.03196185798323086,0.0854043599456797,0.026647065058280253,0.49968718735053524,-0.009578094400441906,0.49968718735053524,-0.26856641323106495,-0.0081879190077081,-0.5044056503360618,-0.6998832785168531,1.480250453046781,-0.01974954695321909,-0.3494062536075692,-0.01974954695321909,-0.1581792194044434,-0.01974954695321909,0.4050241363608896],"feature_idx":[27,58,10,26,66,0,0,32,0,0,48,0,0,9,21,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.03846120431265909,0.5630832215996614,1.0003477759487711,0.005667398650869848,0.0,0.0,0.2961627607519959,0.0,0.0,0.0,0.0,0.0,2.6845398749516156,257.139343,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,0,0,14,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,13,10,7,6,0,0,9,0,0,12,0,0,17,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,1,1,0,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.016742362186197773,-0.009896057807776385,0.019120175531169115,0.30810112412407115,-0.011013241183588996,-0.042649686469502346,-0.007163644572653994,-0.09656958994121523,-0.028488011022268014,-0.3100496768136899,-0.6431079521883604,0.15191904301820133,-0.062341151461980805,-0.125428323773201,-0.274634712271145,0.3036898411411625,0.03203955874443736,-0.26861893970223943,-0.007778523057322673,-0.5045047015317127,-0.7001073664063994,1.406237930394442,-0.01876206960555811,-0.3494062536075692,-0.01876206960555811,-0.1581792194044434,-0.01876206960555811,0.3847729295428451],"feature_idx":[27,7,8,14,0,0,4,0,46,0,33,12,0,0,18,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.787491742782046,0.4807507218479307,0.1373783802003202,0.0,0.0,0.5,0.0,0.0854530332671708,0.0,0.274116911449824,63.163097630662044,0.0,0.0,367.2461,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,0,0,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,17,6,5,0,0,8,0,10,0,14,13,0,0,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,1,1,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.009038741594261752,-0.025489811178435788,-0.00402247305392706,-0.1927328710089138,0.0032794958660729615,0.009824613631217716,-0.024645455374683857,-0.06875387480275552,-0.02597226020310415,-0.2452161940404403,-0.5869200342290437,-0.05922409388888177,0.138567413574622,-0.05848450796206653,0.06254139997376225,0.4731008500457865,0.014888316436762437,-0.0010270745847115847,0.030437580807215526,-0.2685559079371998,-0.007389596904456575,-0.5045047015317127,-0.017823966125280234,-0.3494062536075692,-0.017823966125280234,-0.1581792194044434,-0.017823966125280234,0.3655342830657029],"feature_idx":[27,7,4,0,0,1,0,0,46,0,33,32,0,0,0,27,0,26,0,0,4,0,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,3.6109179126442243,0.5,5.188074585895738,0.0,0.5,0.0,0.0,0.052189233498031284,0.0,0.274116911449824,0.8144714920765266,0.0,0.0,0.0,0.002354099624242684,0.0,1.0003477759487711,0.0,0.0,0.5,0.0,6.021366539135289,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,11,12,0,0,0,16,0,18,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,8,5,0,7,0,0,10,0,14,13,0,0,0,17,0,19,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,0,0,1,1,1,0,1,0,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.007350348640641279,-0.017797698794009068,-0.025004401832022467,-0.00589792865068688,-0.13162474043703298,-0.24505577094334025,-0.027680772248760466,0.11563734249166342,-0.02648372911306414,0.07432996337163994,-0.05871404521477946,0.028915701766854696,0.07992552967564259,0.11593555629959126,-0.07716327303434092,0.44944580754349706,-0.0063511712406391745,0.319735969295008,-0.16185361903896284,-0.26837517568799746,-0.007020117059233755,-0.5047424243946507,-0.016932767819016183,-0.349832116488724,-0.016932767819016183,-0.15938570062964882,-0.016932767819016183,0.34725756891241777],"feature_idx":[27,58,26,18,0,62,32,0,0,0,12,0,0,15,59,0,0,1,0,0,4,0,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.03846120431265909,1.0003477759487711,383.1508,0.0,0.019703931320221635,0.8460201679056903,0.0,0.0,0.0,4.369050499619275,0.0,0.0,55.0544,0.006662965019433649,0.0,0.0,0.5,0.0,0.0,0.5,0.0,6.021366539135289,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,4,0,6,7,0,0,0,11,0,0,14,15,0,0,18,0,0,21,0,23,0,25,0,27,0,0],"right":[20,13,10,5,0,9,8,0,0,0,12,0,0,17,16,0,0,19,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,0,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.007065699347583709,-0.02023738197399116,-0.015089465171167467,0.031076653753410392,0.37503628848221954,-0.05820683359886214,-0.020609250685817315,-0.21129565837166475,-0.015061330260257844,-0.09651770384071484,0.07393018050236039,0.01700323697628263,0.0183211868437958,-0.26914775098568006,-0.002167655622227116,0.005801941317961124,0.42697351716632215,-0.26837517568799746,-0.00666911120627205,-0.5047424243946507,-0.7001073664063994,1.3376638705719348,-0.016086129428065376,-0.349832116488724,-0.016086129428065376,-0.15938570062964882,-0.016086129428065376,0.3298946904667968],"feature_idx":[27,7,45,32,17,0,0,0,35,0,0,58,62,0,59,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,3.9889840465642745,0.5101173326447734,0.0,105.03318,0.0,0.0,0.0,0.9712945075097198,0.0,0.0,0.024432154161883893,0.6254117647058826,0.0,0.0040189571011550514,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,0,0,1,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,0,9,0,0,12,13,0,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,11,8,7,6,0,0,0,10,0,0,17,14,0,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,1,1,0,0,1,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.006745425121518256,0.09294829730717091,0.4056248413080059,0.02335655241027835,0.43493263250645886,-0.17723902570150188,-0.013366305503709578,0.008449719663648507,-0.15725104043161375,0.01644502893700606,0.010973544348069986,-0.07033120023594926,-0.05464967395299283,-0.04359602000760453,-0.025266271102031546,-0.01816889972591449,-0.025286102532856614,-0.2683608502868521,-0.006335655645958483,-0.5047424243946507,-0.7001073664063994,1.270780677043338,-0.015281822956662073,-0.349832116488724,-0.015281822956662073,-0.15938570062964882,-0.015281822956662073,0.31339995594345704],"feature_idx":[27,22,1,0,21,0,0,4,0,0,8,0,0,27,45,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,0.0,313.07079,0.0,0.0,0.5,5.2634225631404385,0.0,0.8947344875408224,0.0,0.0,0.7542013180376982,0.5101173326447734,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,11,0,0,14,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,7,4,0,6,0,0,13,10,0,12,0,0,17,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.007628145303896033,0.06454366963360963,0.012972038286741249,0.02600518011891886,-0.04163891513544212,-0.0017985542253580178,-0.4006220752489995,-0.45908856988108193,0.008479439017464686,0.38534359924260575,-0.02343658431904982,0.007007493421560089,0.03984598301061535,-0.058438878824077216,0.005572563602792258,-0.10785888185712668,-0.142299314572487,-0.16223644079533495,-0.09766068198266852,-0.18310762931596242,-0.013399818760949245,0.013293740968250135,-0.0573171383665148,-0.2683460772172965,-0.00601887286366054,-0.5047424243946507,-0.014517731808828939,-0.014517731808828939],"feature_idx":[27,15,58,35,0,18,0,22,0,0,0,1,23,0,66,0,42,66,0,17,0,0,0,0,4,0,0,0,0],"num_threshold":[0.8229775327133568,51.374322,0.029190659640492278,0.4883446254908294,0.0,283.0962,0.0,0.3988255443541859,0.0,0.0,0.0,0.5,0.5493036494767665,0.0,0.005667398650869848,0.0,0.2315566565878936,0.03245318893124438,0.0,122.096433,0.0,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,8,0,0,0,12,13,0,15,0,17,18,0,20,0,0,0,0,25,0,27,0,0],"right":[24,11,10,5,0,7,0,9,0,0,0,23,14,0,16,0,22,19,0,21,0,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,1,1,0,0,1,0,1,0,0,1,0,1,1,1,1,0,1,0,1,1]},{"value":[0.0,0.011142698210552105,-0.0163367034566043,0.004402840137020626,-0.1244002629764381,0.3150078215492159,-0.18410878275200337,0.01180351069043093,0.29628098138736336,-0.0032733157986413633,-0.053970035506792906,-0.046644631522850526,-0.022497560941601515,-0.03735979752347101,-0.016590463801571344,0.0843708080393803,0.38580898412847237,0.024704921112972757,-0.2683139440892318,-0.005717929220477558,-0.5047136675974737,-0.7000423086355452,1.2079675297816124,-0.013791845218387522,-0.349832116488724,-0.013791845218387522,-0.15938570062964882,-0.013791845218387522,0.2984558447367256],"feature_idx":[27,7,4,0,15,0,0,16,0,0,45,46,0,0,0,17,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.07753744390572,0.5,5.2634225631404385,50.025397,0.0,0.0,234.1131,0.0,0.0,0.5101173326447734,0.0854530332671708,0.0,0.0,0.0,73.027985,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,12,0,0,0,16,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,15,10,7,6,0,0,9,0,0,14,13,0,0,0,17,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,0,1,1,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.00935847381115444,-0.017661448690181054,0.0441234494398221,0.3901076535462673,-0.08105532514267007,0.3797434957982677,-0.24680191593816955,-0.030281239846375017,-0.011993582138564919,-0.09421759074827163,-0.02694632087241411,0.0028106097235310657,0.08136220943069397,0.0032944352643287547,0.3467859700740519,-0.2683139440892318,-0.0014179908337272047,0.0035358109097131775,-0.1531343934969261,-0.5047136675974737,-0.7000423086355452,1.1475691532925318,-0.013102252957468164,-0.349832116488724,-0.013102252957468164,-0.15938570062964882,-0.013102252957468164,0.2835330524998893],"feature_idx":[27,7,13,16,0,1,0,0,19,0,15,0,0,58,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.07753744390572,0.38259848842844774,375.134155,0.0,0.5,0.0,0.0,401.230164,0.0,161.0573,0.0,0.0,0.004617592436265406,0.0,0.0,0.5,0.000786740772050141,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,0,1,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,11,0,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,13,8,5,0,7,0,0,10,0,12,0,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.008864632071448456,-0.012928115733616616,-0.029041498344941883,-0.007309772429358331,-0.1735939295454228,0.00037635642650766247,-0.06177614262322437,-0.05309787930896659,-0.025112078689612006,-0.014413624567872053,-0.4240446442064274,0.03476069137117861,-0.24441250090091673,0.044464732579198876,0.08643877105533501,0.004292380993367928,0.3475018747211245,-0.267737535199142,-0.001532770306467679,-0.5047136675974737,-0.7000423086355452,1.090190695627905,-0.012447140309594752,-0.349832116488724,-0.012447140309594752,-0.15938570062964882,-0.012447140309594752,0.26935639987489485],"feature_idx":[27,7,59,4,0,0,0,59,45,0,0,0,0,0,0,58,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.356708826689592,0.10182623132263421,0.5,5.188074585895738,0.0,0.0,0.09059147717117637,0.5101173326447734,0.0,0.0,6.3084910602352755,0.0,0.0,0.0,0.033573439678831855,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,1,1,0,0,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,8,9,0,0,12,0,0,0,16,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,15,14,7,6,0,0,11,10,0,0,13,0,0,0,17,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.008760340009881035,-0.013023058943098817,0.04710762324423914,0.3951701690581857,-0.08345389915837381,-0.02518260308194342,-0.011106381104876207,-0.16593123599295037,-0.04426125360250489,-0.020178546395855437,0.002651261416029094,-0.013692943339478438,0.0863012054285428,0.004077761943699443,0.3301267809850682,-0.267737535199142,-0.00019113967348899182,0.0034356588795509072,-0.1454010353067563,-0.5047136675974737,-0.7000423086355452,1.03568116084651,-0.011824783294115005,-0.349832116488724,-0.011824783294115005,-0.15938570062964882,-0.011824783294115005,0.25588857988115016],"feature_idx":[27,7,13,8,0,0,45,0,60,22,0,0,0,58,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.356708826689592,0.38259848842844774,0.5821975629210017,0.0,0.0,0.5101173326447734,0.0,0.005719733079122974,0.2168682963420513,0.0,0.0,0.0,0.033573439678831855,0.0,0.0,0.5,0.000786740772050141,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,10,0,0,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,13,6,5,0,0,8,0,12,11,0,0,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.009113921221245179,-0.012563941680501386,0.046057544783052705,0.3807575756788927,-0.06844011476882468,-0.23666106215987917,0.3387745759264853,-0.024418300505575894,-0.010551062049632343,-0.16593123599295037,-0.04426125360250489,-0.019169619076062717,0.002518698345227577,-0.01300829617250452,0.08627909792291094,0.003873873846514542,0.3136204419358148,-0.26658231749045885,0.003024411333965915,-0.5059311065634937,-0.7001095350020148,0.9838971028041844,-0.011233544129409268,-0.35195983525861424,-0.011233544129409268,-0.16541358627544425,-0.011233544129409268,0.24309415088709266],"feature_idx":[27,7,13,16,0,2,0,0,45,0,60,22,0,0,0,58,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.356708826689592,0.38259848842844774,375.134155,0.0,0.5,0.0,0.0,0.5101173326447734,0.0,0.005719733079122974,0.2168682963420513,0.0,0.0,0.0,0.033573439678831855,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,11,12,0,0,0,16,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,15,8,5,0,7,0,0,10,0,14,13,0,0,0,17,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,0,0,1,1,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.011268274237339728,-0.009763289388796814,0.0469574582786838,0.3617196968949481,-0.034664281322919425,0.005060628617062868,-0.331240938144839,-0.021233322744128903,-0.010023508947150718,-0.012357881363879298,0.08613274623759981,0.0036801801541887615,0.1344196551005408,-0.14461566896378528,0.2996167815362455,-0.2669038085029412,0.0030119127401667667,-0.13828220410811679,0.0031126553688750392,-0.5059792936286565,-0.7002185507252959,0.9347022476639751,-0.010671866922938823,-0.35195983525861424,-0.010671866922938823,-0.16541358627544425,-0.010671866922938823,0.23093944334273805],"feature_idx":[27,7,13,8,0,65,0,0,45,0,0,58,0,39,0,0,4,11,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,4.356708826689592,0.38259848842844774,0.5821975629210017,0.0,0.0,0.0,0.0,0.5101173326447734,0.0,0.0,0.033573439678831855,0.0,0.007845854695137522,0.0,0.0,0.5,293.4522187809763,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,1,0,0,1,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,12,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,11,8,5,0,7,0,0,10,0,0,13,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.010789188861774627,0.09152477524602966,0.019616701675422593,0.4837348781525179,-0.07359893625523126,-0.054442215124813315,-0.4133816902261243,0.28295858076221164,-0.008047044846555034,0.010913573173234993,-0.1230056991149811,0.1785103096251371,-0.18590987539970785,0.004983002345764831,-0.04392714414209385,-0.017956075410250794,-0.011739987295685329,-0.2663749358332854,0.00271755799882385,-0.5059792936286565,-0.7002185507252959,0.8879671352807764,-0.010138273576791867,-0.35195983525861424,-0.010138273576791867,-0.16541358627544425,-0.010138273576791867,0.21939247117560115],"feature_idx":[27,22,2,16,0,0,0,0,0,4,0,15,0,0,0,45,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,311.2005,0.0,6.545841464666197,0.0,0.0,0.0,0.5,5.188074585895738,51.374322,0.0,0.0,0.0,0.5101173326447734,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,12,0,0,0,16,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,9,8,5,0,7,0,0,0,15,14,13,0,0,0,17,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,0,1,1,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.01141850300095957,0.09195720253247641,0.02075276661542996,0.42806209955797,-0.13740876378340677,0.26881065172410107,-0.007371804132383588,0.01054407068299581,-0.12988581564041288,0.1695847941438803,-0.1766143816297225,0.004733852228476465,-0.041274893909589654,-0.033867624073885695,-0.009103509705156122,-0.07581727082003527,-0.011152987930901049,-0.2663749358332854,0.002581680098882622,-0.5059792936286565,-0.7002185507252959,0.8435687785167376,-0.00963135989795223,-0.35195983525861424,-0.00963135989795223,-0.16541358627544425,-0.00963135989795223,0.20842284761682112],"feature_idx":[27,22,2,21,0,0,0,4,0,15,0,0,0,45,14,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,270.278625488,0.0,0.0,0.0,0.5,5.188074585895738,51.374322,0.0,0.0,0.0,0.5101173326447734,0.24144128854617036,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,1,0,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,0,8,9,10,0,0,0,14,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,7,6,5,0,0,0,13,12,11,0,0,0,17,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.012639923056112485,-0.009985806869939787,0.007175519589211353,-0.14371567652328876,0.013430804539994647,0.00484832397802073,-0.010308345755668986,0.00022167469193892233,-0.17931263712330558,-0.05238120167389734,-0.024263262177191082,-0.010595338534356014,0.07750756468862638,0.12029641227270167,0.26102131221864583,0.25445782533233363,0.0009522703765671992,-0.2662217986098434,0.0024525960939385527,-0.5056905168511302,-0.6995652382821639,0.8013903395909008,-0.009149791903054627,-0.35195983525861424,-0.009149791903054627,-0.16541358627544425,-0.009149791903054627,0.19800170523598004],"feature_idx":[27,9,4,0,0,1,0,0,0,0,45,0,0,25,1,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,2.7621796641165557,0.5,5.188074585895738,0.0,0.5,0.0,6.27316432375719,0.0,0.0,0.5101173326447734,0.0,0.0,0.7111930907231728,0.5,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,8,0,0,11,0,0,14,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,13,10,5,0,7,0,9,0,0,12,0,0,17,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.013347297801726986,0.09168316217362191,0.24639701383811713,0.02003281287153048,0.43550306554075713,-0.0705511607683224,-0.02024999855127554,-0.3529166813002112,-0.00492910024236092,-0.010065571607638192,0.0375751536548082,-0.09736069505776777,-0.012043546267261718,-0.027559475122516375,0.004605907779119534,-0.266284830374883,0.0041375859550340935,0.002329966289241625,-0.13175568561229323,-0.505809378285214,-0.6998341437480419,0.7613208226113557,-0.008692302307901923,-0.35195983525861424,-0.008692302307901923,-0.16541358627544425,-0.008692302307901923,0.18810161997418096],"feature_idx":[27,22,1,0,16,0,0,0,0,7,0,59,41,0,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,0.0,311.2005,0.0,6.403844525631401,0.0,0.0,3.9889840465642745,0.0,0.0021077020568742895,0.5751265190017631,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,1,0,0,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,0,10,0,12,13,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,9,4,0,6,0,8,0,0,11,0,15,14,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.014017640609902219,0.09187100098915124,0.23407716314621113,0.020526299520925013,0.41372791226371924,-0.06788435723198005,-0.001003844835278578,-0.27662557116173886,-0.0041461952261886625,-0.009562293027256264,0.037503610656616344,-0.09736069505776777,-0.01144136895389849,-0.026181501366390594,0.004375612390163397,-0.2659915496628434,0.004120816046684261,0.002213467974779526,-0.12516790133167852,-0.5052414698386104,-0.6992216030689777,0.7232547814807879,-0.008257687192506857,-0.3514275066548287,-0.008257687192506857,-0.16541358627544425,-0.008257687192506857,0.17869653897547197],"feature_idx":[27,22,1,0,16,0,17,0,0,7,0,59,41,0,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,0.0,311.2005,0.0,73.027985,0.0,0.0,3.9889840465642745,0.0,0.0021077020568742895,0.5751265190017631,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,1,0,0,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,0,10,0,12,13,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,9,4,0,6,0,8,0,0,11,0,15,14,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.01426276247873225,0.092123989777913,0.22237330498890062,0.021190946970647283,0.360292441761634,-0.11425079736810134,-0.0039029119879278925,-0.0165536711842723,-0.0076462863273604855,-0.14203587450191782,0.037503610656616344,-0.09736069505776777,-0.010869300506203673,-0.024872426298071206,0.004156831770655245,-0.2659915496628434,0.004120816046684261,0.0021027945760405233,-0.11890950626509458,-0.5052414698386104,-0.6992216030689777,0.6870920424067486,-0.00784480283288147,-0.3514275066548287,-0.00784480283288147,-0.16541358627544425,-0.00784480283288147,0.16976171202669832],"feature_idx":[27,22,1,0,21,0,0,7,21,0,0,59,41,0,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,0.0,270.278625488,0.0,0.0,3.9889840465642745,779.1893,0.0,0.0,0.0021077020568742895,0.5751265190017631,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,12,13,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,7,4,0,6,0,0,11,10,0,0,15,14,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.015043092495385262,0.09173417504686406,0.21125463973945566,0.02016683294518413,0.3029189909667899,-0.1932682357153661,-0.0028495905439056015,-0.007974845298129552,0.037448577581035716,-0.09719167645725807,-0.01032583548089363,-0.023628804983167485,0.003948990182122358,-0.2659915496628434,0.004120816046684261,0.0019976548472385503,-0.11296403095183988,-0.5052414698386104,-0.6992216030689777,0.652737440286411,-0.0074525626912373966,-0.3514275066548287,-0.4526133742046717,-0.0074525626912373966,-0.0074525626912373966,-0.16541358627544425,-0.0074525626912373966,0.16127362642536341],"feature_idx":[27,22,1,0,15,0,0,7,0,59,41,0,0,0,4,60,0,0,0,23,0,0,44,15,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,0.0,56.05026,0.0,0.0,3.9889840465642745,0.0,0.0021077020568742895,0.5751265190017631,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,173.541687,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,8,0,10,11,0,0,0,15,16,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[14,7,4,0,6,0,0,9,0,13,12,0,0,0,18,17,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.015111590655147899,0.10098281888481277,0.2022651405220792,0.024788205224775296,0.3110511921977235,-0.21382738009277988,-0.000644996155533641,-0.007576103033223092,0.04411532069744486,0.2882998701644606,0.018970821682789782,-0.2387692938288991,0.02686243303797497,0.0037515406730161517,-0.11708275035871836,-0.2659915496628434,0.004120816046684261,0.001897772104876694,-0.10731582940424787,-0.5052414698386104,-0.6992216030689777,0.6201005682720905,-0.007079934556675483,-0.3514275066548287,-0.007079934556675483,-0.16541358627544425,-0.007079934556675483,0.15320994510409527],"feature_idx":[27,22,1,0,15,0,0,7,0,27,0,63,0,1,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,56.05026,0.0,0.0,3.9889840465642745,0.0,0.0,0.0,0.0006123612509062459,0.0,0.5,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,0,10,0,12,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,7,4,0,6,0,0,9,0,11,0,13,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,0,1,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.01606780636849183,0.10211342578480317,0.1921518834959752,0.027909347050629457,0.1952077268038316,-0.29474867158845264,0.00027920865794012705,-0.014544814070771125,0.007137158482696147,0.003433490031834907,-0.009445608312834076,-0.03769202168635919,-0.1432941167703406,-0.007501032028112676,0.0035639636393653973,-0.26587336510639853,0.004372364665537147,0.0018028834996329124,-0.23628153710479538,-0.5052414698386104,-0.6992216030689777,0.589095539858486,-0.006725937828841744,-0.3514275066548287,-0.006725937828841744,-0.16541358627544425,-0.006725937828841744,0.14554944784889054],"feature_idx":[27,22,1,0,17,0,0,7,65,45,0,0,17,0,0,0,4,39,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,81.0464,0.0,0.0,3.9889840465642745,0.0,0.8176145556674907,0.0,0.0,91.053802,0.0,0.0,0.0,0.5,0.1004968017395997,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,1,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,10,0,0,13,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,7,4,0,6,0,0,15,12,11,0,0,14,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.01622381576435725,0.003860061027530028,0.043929655570971574,0.0536392078935296,-0.04929631145811815,0.023648711864399277,-0.1136725458558624,-0.3875862779559244,-0.45745329704260346,0.049749825461956124,0.0033857654573971278,-0.014867495079457818,-0.04480579863598595,0.018213285830065207,0.2849543354812495,0.0033620338313995837,-0.04161280560603711,0.0029557247606864403,0.194167977052026,-0.266277341408298,0.0017127393246513024,-0.5052414698386104,-0.006389640937399666,-0.3514275066548287,-0.006389640937399666,-0.16541358627544425,-0.006389640937399666,0.13827197545644607],"feature_idx":[27,9,15,21,9,0,0,32,35,0,0,0,2,0,13,0,17,0,0,0,4,0,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,3.580871947050632,51.374322,469.2033,0.8687410333758591,0.0,0.0,0.2961627607519959,0.8560376711464008,0.0,0.0,0.0,0.5,0.0,0.38259848842844774,0.0,79.053993,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,8,9,0,0,0,13,0,15,0,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,19,12,7,6,0,0,11,10,0,0,0,14,0,16,0,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,0,1,1,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.018108060073904347,-0.0012570883094277076,-0.00744529476149682,-0.001557960187040841,-0.05335986702800746,0.07587626119253514,0.003216477184527378,-0.24871866892955494,-0.009872484099449963,-0.4345806321904732,0.08553780666262857,0.17283589046857523,0.015043945533449583,0.3506311098781666,-0.11763482729545888,-0.26645855772978244,0.003126817864811165,0.0018665669600261836,-0.0972327956448834,-0.5052414698386104,-0.6992216030689777,0.5599602449124316,-0.006070158890529687,-0.3514275066548287,-0.006070158890529687,-0.16541358627544425,-0.006070158890529687,0.13135837668362368],"feature_idx":[27,58,26,26,0,0,34,0,63,0,0,1,0,16,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.053640588690937255,1.0003477759487711,1.0000057779117788,0.0,0.0,0.7037599696164072,0.0,0.08723863420094163,0.0,0.0,0.5,0.0,311.2005,0.0,0.0,0.5,0.000786740772050141,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,0,1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,11,6,5,0,0,8,0,10,0,0,13,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.01743471456047916,0.0007402910433590853,-0.006307920727140548,0.0392313076055537,0.09230767805894279,0.024037233591680085,0.09842525075595619,0.028221446545363196,0.0029077958318801224,-0.08044643066109204,0.026554206392736934,-0.049046591665229046,0.1855287086165589,-0.28028833476311127,0.16419409594514642,-0.2658289499129418,0.004466899695376973,-0.09014003764321608,0.001773238612024919,-0.5052414698386104,-0.6992216030689777,0.53196223266681,-0.0057666509460031715,-0.3514275066548287,-0.0057666509460031715,-0.16541358627544425,-0.0057666509460031715,0.12479045784944241],"feature_idx":[27,7,59,0,1,0,0,9,35,0,29,39,0,0,0,0,4,11,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,5.111987788356544,0.10182623132263421,0.0,0.5,0.0,0.0,2.612577625847441,0.6668560303637011,0.0,0.07801988800993247,0.007845854695137522,0.0,0.0,0.0,0.0,0.5,293.4522187809763,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,11,12,0,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,7,4,0,6,0,0,15,10,0,14,13,0,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,0,0,1,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.01879613601402337,-0.0005336707667744674,0.16661618899794384,-0.007820393769722133,-0.070126415253835,0.0010107064708214572,0.027953590125353617,-0.00348692427226025,0.1486164598631791,-0.022307973007512763,0.001984571345880326,-0.06448993671787523,-0.04077840514231355,-0.07776368248310149,0.019071692953842857,-0.26411638349896466,0.008111992836888956,0.0016200287919106771,-0.22013942368162864,-0.5052414698386104,-0.6992216030689777,0.5053641210334695,-0.005478318398703053,-0.3514275066548287,-0.005478318398703053,-0.16541358627544425,-0.005478318398703053,0.11855093495697028],"feature_idx":[27,7,22,0,0,0,12,9,0,0,1,0,4,0,0,0,4,39,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,5.111987788356544,0.16776325133681755,0.0,5.4934823424044295,0.0,54.22550284847555,1.3052950725665382,0.0,0.0,0.5,0.0,0.5,0.0,0.0,0.0,0.5,0.1004968017395997,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,0,0,11,0,13,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,15,4,0,6,0,10,9,0,0,12,0,14,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,0,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.019206526963376474,0.0002558451268232892,0.049253969824760165,-0.013965400704620913,0.0837867325050566,0.34363308777451707,0.12101833764311146,-0.009577617509482507,0.011668102319597714,0.00492964567907439,-0.008827048656811698,-0.034368806412751904,-0.04713525789722617,0.02593535364096394,0.011482299655262374,-0.13710603666460913,0.01811810830615066,-0.2637635842094051,0.001364110640220595,-0.5052414698386104,-0.6992216030689777,0.480095914981796,-0.005204402478767901,-0.3514275066548287,-0.005204402478767901,-0.16541358627544425,-0.005204402478767901,0.11262338820912171],"feature_idx":[27,7,8,35,0,1,0,0,65,45,0,0,15,0,0,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,5.111987788356544,0.22147368742212792,0.723514569428618,0.0,0.5,0.0,0.0,0.0010831044372991983,0.8176145556674907,0.0,0.0,109.044647,0.0,6.690120057975518,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,1,1,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,10,0,0,13,0,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,17,8,5,0,7,0,0,12,11,0,0,14,0,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,0,1,1,0,1,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0195029927467206,0.0008752061748691535,0.042655804619837666,0.34964378861436923,-0.0018644440094245864,0.14983777819522645,-0.10520794698253849,-0.009023488453234588,0.008113634091488424,-0.1229777461182232,0.2093088569253607,-0.14645851755250736,0.00530778281507871,-0.015064803757012513,0.017212202890843287,-0.2637635842094051,0.008862904603117717,0.0012959051082095385,-0.06991419072855294,-0.5052414698386104,-0.6992216030689777,0.4560911192327062,-0.004944182354829518,-0.3514275066548287,-0.004944182354829518,-0.16541358627544425,-0.004944182354829518,0.10699221879866556],"feature_idx":[27,7,23,16,0,1,0,0,4,0,15,0,0,0,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,5.111987788356544,0.2937800223896626,271.191879,0.0,0.5,0.0,0.0,0.5,5.188074585895738,51.374322,0.0,0.0,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,10,11,0,0,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,15,8,5,0,7,0,0,14,13,12,0,0,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,0,0,1,1,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.014280519011848822,0.0017665013047170471,0.018597316114852862,0.06524873205215526,0.17551412134005595,0.010568191061387467,0.0010295792069160423,-0.11917839023944472,0.006560430785683641,0.003989566760389707,-0.007340999555096418,-0.014593505612643477,0.12305122022301003,0.1710461341560343,0.014979671020820895,-0.2637635842094051,0.008862904603117717,0.0012311098527991505,-0.06641848119212526,-0.5052414698386104,-0.6992216030689777,0.4332865632710709,-0.00469697323708802,-0.3514275066548287,-0.00469697323708802,-0.16541358627544425,-0.00469697323708802,0.10164260785873225],"feature_idx":[27,9,4,10,64,0,0,0,0,45,0,0,0,1,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,3.580871947050632,0.5,0.1815640422353183,0.02429659683305735,0.0,0.0,5.188074585895738,0.0,0.005353355387384573,0.0,0.0,0.0,0.5,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,8,0,10,0,0,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,13,12,7,6,0,0,9,0,11,0,0,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.011069285186418995,0.08788871517299415,0.017901458663403137,0.2995378537728847,-0.10697129434863833,0.14471198423254528,-0.006853289684252103,0.012271996706939363,-0.0010224623322045545,0.26709958716813204,-0.025471248958718724,-0.023470376277957693,-0.08706495675438611,-0.004247410010224151,-0.14787008169474342,-0.2637635842094051,0.008862904603117717,0.0011695543601591752,-0.06309755713251892,-0.5052414698386104,-0.6992216030689777,0.41162223510751733,-0.004462124575233606,-0.3514275066548287,-0.004462124575233606,-0.16541358627544425,-0.004462124575233606,0.09656047746579564],"feature_idx":[27,22,2,16,0,0,0,14,9,0,0,45,23,0,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.18046025610206365,0.5,311.2005,0.0,0.0,0.0,0.15138779116270304,2.0481560870031212,0.0,0.0,0.8176145556674907,0.2394759540754636,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,1,1,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,0,8,9,0,0,12,13,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,7,6,5,0,0,0,11,10,0,0,15,14,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.013563730517348892,0.09809405838392464,0.1374763850209181,0.02299706501015731,0.1806826527697755,-0.27451370113445484,-0.0019467967162039225,0.013033591150622085,-0.12815045545334525,0.0027183655225684333,-0.0312282913061398,-0.002025021757507872,-0.08618885534469471,-0.014214748659781763,-0.10191252938832669,-0.2624697509906969,0.008862904603117717,0.0011110766421511542,-0.05994267927589299,-0.5028016385607728,-0.6947522770910602,0.3910411233521416,-0.004239018346471913,-0.35059574321375586,-0.004239018346471913,-0.16362271570111228,-0.004239018346471913,0.0917324535925058],"feature_idx":[27,22,1,0,17,0,0,4,0,0,0,38,0,12,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,81.0464,0.0,0.0,0.5,4.934869538321876,0.0,0.0,0.0,0.0,34.54766532152135,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.135642095893578,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,12,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,7,4,0,6,0,0,11,10,0,0,13,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.013142105057040668,0.09623328656940354,0.13060256576987223,0.01786023740126722,0.23552700677231828,-0.14287291755324052,-0.0021043498227212003,0.012034063869414581,0.09630400766203416,-0.00029934595835570124,-0.02974006514800569,-0.0019237706696324964,-0.08501240567414724,-0.013504011226792657,-0.09681690291891037,-0.26270724015569963,0.008862904603117717,0.001055522810043641,-0.05694554531209839,-0.5032494810527901,-0.695639401483314,0.3714890671845346,-0.004027067429148357,-0.350695554826185,-0.004027067429148357,-0.16390548473730215,-0.004027067429148357,0.08714583091288049],"feature_idx":[27,22,1,0,21,0,0,4,10,0,0,38,0,12,0,0,4,60,0,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,313.07079,0.0,0.0,0.5,0.1815640422353183,0.0,0.0,0.0,0.0,34.54766532152135,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,12,0,14,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,7,4,0,6,0,0,11,10,0,0,13,0,15,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.013149499735483688,0.0969721043020607,0.01989981006538112,0.2130367512404984,-0.1987558816137467,0.12407243748137874,-0.002231163065760241,0.1503071095773752,-0.008170450751304854,0.0017375737705337625,-0.029071744548538066,-0.018986245960679327,0.004532942005661145,-0.26251026589341747,0.008862904603117717,0.001002746669541388,-0.054098268046493383,-0.5028780390778154,-0.695639401483314,0.3529146138253079,-0.7236548531196948,-0.005688320755724608,-0.003825714057690899,-0.350030144071453,-0.003825714057690899,-0.16277440858369557,-0.003825714057690899,0.08278853936723643],"feature_idx":[27,22,2,17,0,0,0,8,0,65,0,15,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,71.04873,0.0,0.0,0.0,0.1661166033736106,0.0,0.004128215699476523,0.0,109.044647,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,0,8,0,10,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,7,6,5,0,0,0,9,0,11,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.015542714123662626,-0.00032827865336457765,0.08060480357982336,0.12052018642674014,0.010949103672318718,0.20858994298694605,-0.1409199958755183,-0.26251026589341747,0.008862904603117717,0.0009526093360642918,-0.05139335464416864,-0.5028780390778154,-0.695639401483314,0.3352688831340427,-0.7236548531196948,-0.005403904717938346,-0.7501343772481166,-0.003634428354806385,-0.003634428354806385,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.003634428354806385,-0.0036407328349956636,-0.003634428354806385,-0.16277440858369557,-0.003634428354806385,0.07864911239887462],"feature_idx":[27,58,0,1,0,21,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.053640588690937255,0.0,0.5,0.0,313.07079,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,0,4,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,3,0,5,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015439215494879449,0.09688875257837536,0.049382386065463635,0.11184280628597279,0.0004939546734796719,0.032713806220657025,0.01615120498353626,-0.03589327638729891,-0.013372112847073842,-0.08223383172833985,-0.06261271354283214,-0.0047470369588261015,-0.13397301736960385,-0.058373853067888164,-0.000549177650633006,0.004322708838046374,-0.02932345592384511,-0.26251026589341747,0.0009049788692610861,-0.5028780390778154,-0.695639401483314,0.31850543897734057,-0.003452706937066097,-0.350030144071453,-0.003452706937066097,-0.16277440858369557,-0.003452706937066097,0.0747166567789309],"feature_idx":[27,22,2,0,0,15,46,0,0,17,26,65,0,0,0,1,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,51.374322,0.0027197405192288526,0.0,0.0,86.0971,1.0000057779117788,0.0006205072502056264,0.0,0.0,0.0,0.5,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,7,0,0,10,11,12,0,0,0,16,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,5,4,0,0,9,8,0,0,15,14,13,0,0,0,17,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,0,1,1,0,0,0,1,1,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.013123027490906056,0.09651795656539994,0.10625066597167426,0.018646094475974293,0.19950179880076604,-0.18902212195061097,-0.0021791613772723685,0.13595818452799266,-0.007974257599721797,0.006649603926497515,0.002501564332436779,-0.051297930720448554,-0.012918306091210675,-0.26251026589341747,0.008862904603117717,0.000859729925798014,-0.04886893585542325,-0.5028780390778154,-0.695639401483314,0.30258016702847357,-0.7236548531196948,-0.004961074135188071,-0.0032800715902127743,-0.350030144071453,-0.0032800715902127743,-0.16277440858369557,-0.0032800715902127743,0.07098082393998428],"feature_idx":[27,22,1,0,15,0,0,8,0,4,57,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,56.05026,0.0,0.0,0.1661166033736106,0.0,0.5,0.0,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,0,1,1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,0,10,11,0,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,7,4,0,6,0,0,9,0,13,12,0,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.014316895353737112,0.0961730138905576,0.10093813267309067,0.017693849261495632,0.21385585761499898,-0.11458265760162263,-0.000702954351189194,0.015143432771634923,-0.0020835175123023577,0.01524043070892489,-0.02282127624430471,-0.018605411653722117,0.008635635189431312,-0.26251026589341747,0.008862904603117717,0.0008167434295081933,-0.04642548906265205,-0.5028780390778154,-0.695639401483314,0.2874511586770499,-0.7236548531196948,-0.004713020428428649,-0.0031160680107021224,-0.350030144071453,-0.0031160680107021224,-0.16277440858369557,-0.0031160680107021224,0.06743178274298511],"feature_idx":[27,22,1,0,12,0,0,65,7,0,0,15,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,70.31216361563328,0.0,0.0,0.012932819959101116,3.4339872044851463,0.0,0.0,109.044647,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,7,4,0,6,0,0,11,10,0,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.015036911197505259,0.09612114258257472,0.095891226039436,0.04541993747534576,0.00015868491449217068,0.00517825298152701,-0.013247650369026283,-0.07784896304561009,-0.10287509636648454,-0.023292496968908696,-0.0012180423611135905,0.02679777991627229,0.006953117022850286,-0.07971792295931578,-0.36213975208136556,0.00294908966193983,-0.02787818546865957,-0.26251026589341747,0.0007759062580328547,-0.5028780390778154,-0.695639401483314,0.27307860074319734,-0.0029602646101670516,-0.350030144071453,-0.0029602646101670516,-0.16277440858369557,-0.0029602646101670516,0.06406019360583581],"feature_idx":[27,22,1,0,0,15,0,17,59,0,0,1,14,0,17,0,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,51.374322,0.0,86.0971,0.04143164784941809,0.0,0.0,0.5,0.24144128854617036,0.0,120.966554275,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,0,8,9,0,0,12,13,0,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,5,4,0,0,7,0,11,10,0,0,17,14,0,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.015414518914109256,0.09584312976913115,0.0910966647374643,0.016783174535312716,0.22659593078646978,-0.0625809218459121,-0.028848841614151424,-0.3881304328170634,0.00019521845590819709,-0.26251026589341747,0.008862904603117717,0.0007371109451312918,-0.04414300992242098,-0.5028780390778154,-0.695639401483314,0.2594246707060375,-0.7236548531196948,-0.004329356176498856,-0.7501343772481166,-0.002812251379658726,-0.002812251379658726,-0.350030144071453,-0.45189394440196395,-0.002812251379658726,-0.002812251379658726,-0.16277440858369557,-0.002812251379658726,0.060857183925543984],"feature_idx":[27,22,1,0,16,0,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,322.2655,0.0,6.641515926048202,0.0,0.0,0.0,0.5,0.0699852073811375,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,0,0,11,12,0,0,15,16,0,18,0,20,0,0,23,24,0,0,27,0,0],"right":[10,9,4,0,6,0,8,0,0,0,14,13,0,0,22,17,0,19,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.015297885819794518,0.09581925840207031,0.08654183150059112,0.016717275483949665,0.21526613424714613,-0.08841015243516939,0.0005229344365082077,0.013191588475868498,-0.07941616312373855,0.0034960473565919695,-0.009282500711272413,-0.2624117787618142,0.009072528454785216,0.0007002553978747273,-0.041935859426299876,-0.5028780390778154,-0.695639401483314,0.24645343717073553,-0.7236548531196948,-0.004112888367673939,-0.7501343772481166,-0.0026716388106757805,-0.0026716388106757805,-0.350030144071453,-0.0026716388106757805,-0.16277440858369557,-0.0026716388106757805,0.05781432472926671],"feature_idx":[27,22,1,0,16,0,0,4,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,322.2655,0.0,0.0,0.5,5.2634225631404385,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,0,13,14,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[12,7,4,0,6,0,0,11,10,0,0,0,16,15,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.015896863992214724,0.09631335435817581,0.08221473992556164,0.018081271718714716,0.16041401406534775,-0.17024993014430034,0.0001553679137586528,-0.2624117787618142,0.009072528454785216,0.0006652426279810443,-0.039839066454984896,-0.5028780390778154,-0.695639401483314,0.23413076531219873,-0.7236548531196948,-0.003907243949290251,-0.7501343772481166,-0.002538056870142036,-0.002538056870142036,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.002538056870142036,-0.002544046126321753,-0.002538056870142036,-0.16277440858369557,-0.002538056870142036,0.05492360849280331],"feature_idx":[27,22,1,0,15,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,56.05026,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,4,0,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015842969082186933,0.0959657397626371,0.07810400292928357,0.01712165042733355,0.1964821268315216,-0.08099614547173589,0.00014759951807086225,-0.26239489525358556,0.009108463972115552,0.0006319804965819742,-0.03784711313223568,-0.5028780390778154,-0.695639401483314,0.22242422704658865,-0.7236548531196948,-0.003711881751825708,-0.7501343772481166,-0.002411154026634943,-0.002411154026634943,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.002411154026634943,-0.0024168438200057097,-0.002411154026634943,-0.16277440858369557,-0.002411154026634943,0.05217742806816315],"feature_idx":[27,22,1,0,16,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,322.2655,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,4,0,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015851326010583273,0.0960738465009849,0.07419880278281923,0.01742008878174022,0.14646161322628545,-0.15768762636349845,0.00014021954216723032,-0.26239489525358556,0.009108463972115552,0.0006003814717528756,-0.03595475747562382,-0.5028780390778154,-0.695639401483314,0.21130301569425924,-0.7236548531196948,-0.0035262876642343957,-0.7501343772481166,-0.0022905963253031735,-0.0022905963253031735,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0022905963253031735,-0.0022960016290054066,-0.0022905963253031735,-0.16277440858369557,-0.0022905963253031735,0.049568556664755015],"feature_idx":[27,22,1,0,15,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,56.05026,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,4,0,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.01565099701336562,0.09505757635778203,0.07048886264367837,0.04888903471994848,0.0010805930679554051,0.0021420429843217906,-0.017513284412114593,-0.26239489525358556,0.009108463972115552,0.0005703623981652584,-0.034157019601842545,-0.5028780390778154,-0.695639401483314,0.20073786490954648,-0.7236548531196948,-0.003349973281022667,-0.7501343772481166,-0.002176066509038055,-0.002176066509038055,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.002176066509038055,-0.002181201547555123,-0.002176066509038055,-0.16277440858369557,-0.002176066509038055,0.047090128831517225],"feature_idx":[27,22,1,0,0,1,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,0.5,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015496455991752858,0.0946255984403873,0.06696441951149446,0.017286784114939068,0.17894500688955084,-0.07539415675801919,0.00016568445515829922,-0.26239489525358556,0.009108463972115552,0.000541844278257031,-0.03244916862175042,-0.5028780390778154,-0.695639401483314,0.19070097166406905,-0.7236548531196948,-0.003182474616971565,-0.7501343772481166,-0.0020672631835861213,-0.0020672631835861213,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0020672631835861213,-0.0020721414701773354,-0.0020672631835861213,-0.16277440858369557,-0.0020672631835861213,0.04473562238994138],"feature_idx":[27,22,1,0,16,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,311.2005,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,4,0,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015525418058827487,0.09489996279417408,0.06361619853591982,0.050214290821852005,0.0009608936891953607,-0.001254654926843557,0.03499805207768896,-0.2628603371282979,0.008117799334855413,0.000514752064344215,-0.030826710190662965,-0.5028780390778154,-0.695639401483314,0.18116592308086546,-0.7236548531196948,-0.0030233508861229556,-0.7501343772481166,-0.0019639000244068504,-0.0019639000244068504,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0019639000244068504,-0.001968534396668442,-0.0019639000244068504,-0.16277440858369557,-0.0019639000244068504,0.04249884127044439],"feature_idx":[27,22,1,0,0,59,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,0.10182623132263421,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014678585407495165,0.09455554796812925,0.060435388609123925,0.047703576280759385,2.1883782865513464e-05,0.002622536396835429,-0.008893188650040518,-0.2628603371282979,0.008117799334855413,0.0004890144611270131,-0.02928537468112982,-0.5028780390778154,-0.695639401483314,0.17210762692682202,-0.7236548531196948,-0.0028721833418168252,-0.7501343772481166,-0.0018657050231865036,-0.0018657050231865036,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0018657050231865036,-0.001870107676834998,-0.0018657050231865036,-0.16277440858369557,-0.0018657050231865036,0.040373899206922206],"feature_idx":[27,22,1,0,0,4,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,0.5,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014380715590892303,0.09411773251343439,0.05741361917866783,0.015884774639716187,0.16510186318994294,-0.07652034227524851,-2.7275467994769544e-05,-0.2628603371282979,0.008117799334855413,0.00046456373807064467,-0.0278211059470733,-0.5028780390778154,-0.695639401483314,0.16350224558048085,-0.7236548531196948,-0.0027285741747260063,-0.7501343772481166,-0.0017724197720271563,-0.0017724197720271563,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0017724197720271563,-0.0017766022929932568,-0.0017724197720271563,-0.16277440858369557,-0.0017724197720271563,0.03835520424657606],"feature_idx":[27,22,1,0,16,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,311.2005,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,4,0,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014440215037686822,0.0945014955834829,0.04822689745146374,0.05454293821973444,-0.00025030382947477896,0.12593756645544438,-0.0007769838066909785,-0.2628603371282979,0.008117799334855413,0.00044133555116712133,-0.026430050649719664,-0.5028780390778154,-0.695639401483314,0.15532713330145675,-0.7236548531196948,-0.0025921454659896706,-0.7501343772481166,-0.0016837987834257718,-0.0016837987834257718,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0016837987834257718,-0.0016877721783435718,-0.0016837987834257718,-0.16277440858369557,-0.0016837987834257718,0.036437444034247334],"feature_idx":[27,22,2,0,0,8,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,0.1661166033736106,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014650818018461473,0.09423270342715856,0.04581555257889054,0.051815791308747805,4.826005301213945e-05,-0.0007381346163565895,0.16975750994659045,-0.2628603371282979,0.008117799334855413,0.00041926877360882743,-0.02510854811723373,-0.5028780390778154,-0.695639401483314,0.147560776636384,-0.7236548531196948,-0.0024625381926902004,-0.7501343772481166,-0.0015996088442545187,-0.0015996088442545187,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0015996088442545187,-0.00160338356942642,-0.0015996088442545187,-0.16277440858369557,-0.0015996088442545187,0.0346155718325349],"feature_idx":[27,22,2,0,0,9,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,3.580871947050632,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.0148103447414007,0.09375773999349026,0.01489098297702439,0.15214464752892776,-0.07739644766300416,0.04922500174331042,2.6547814136890226e-05,-0.2628603371282979,0.008117799334855413,0.00039830533492839497,-0.023853120711372,-0.5028780390778154,-0.695639401483314,0.1401827378045649,-0.7236548531196948,-0.0023394112830557034,-0.7501343772481166,-0.0015196284020418283,-0.0015196284020418283,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0015196284020418283,-0.0015232143909551079,-0.0015196284020418283,-0.16277440858369557,-0.0015196284020418283,0.032884793240908115],"feature_idx":[27,22,2,16,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,311.2005,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,6,5,0,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014889543769987247,0.09426856259760955,0.04389841097852845,0.04676375165614495,0.0003242064993756725,0.0025672018808386102,-0.008372736913693224,-0.2628603371282979,0.008117799334855413,0.0003783900681819219,-0.022660464675803384,-0.5028780390778154,-0.695639401483314,0.13317360091433664,-0.7236548531196948,-0.002222440718902874,-0.7501343772481166,-0.0014436469819397502,-0.0014436469819397502,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0014436469819397502,-0.001447053671407339,-0.0014436469819397502,-0.16277440858369557,-0.0014436469819397502,0.031240553578862774],"feature_idx":[27,22,2,0,0,4,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,0.5,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015338570558387719,0.0937490215909196,0.014866915044201684,0.14234249460355494,-0.07572154582878028,0.04442556407333775,0.00014326322941329294,-0.2628603371282979,0.008117799334855413,0.0003594705647728347,-0.021527441442013285,-0.5028780390778154,-0.695639401483314,0.12651492086861965,-0.7236548531196948,-0.0021113186829577303,-0.7501343772481166,-0.001371464632842745,-0.001371464632842745,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.001371464632842745,-0.0013747009878369632,-0.001371464632842745,-0.16277440858369557,-0.001371464632842745,0.029678525899919705],"feature_idx":[27,22,2,16,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,311.2005,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,6,5,0,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015444333820318087,0.09443117976689248,0.01675007391656958,0.08161615415237976,-0.24398920144469508,0.042204285869670954,0.00013610006794264606,-0.2628355554090337,0.008170545712565395,0.00034149703653412193,-0.020451069369912568,-0.5028780390778154,-0.695639401483314,0.12018917482518852,-0.7236548531196948,-0.0020057527488098084,-0.7501343772481166,-0.00130289140120059,-0.00130289140120059,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.00130289140120059,-0.0013059659384451194,-0.00130289140120059,-0.16277440858369557,-0.00130289140120059,0.02819459960492381],"feature_idx":[27,22,2,17,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,81.0464,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,6,5,0,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015405955600632426,0.09418364564341686,0.04009407157618732,0.0160667337511129,0.13114456216575832,-0.07282537914366198,0.00012929506454550932,-0.2628355554090337,0.008170545712565395,0.00032442218470745137,-0.019428515901416966,-0.5028780390778154,-0.695639401483314,0.11417971608392925,-0.7236548531196948,-0.0019054651113693311,-0.7501343772481166,-0.0012377468311405516,-0.0012377468311405516,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0012377468311405516,-0.0012406676415228192,-0.0012377468311405516,-0.16277440858369557,-0.0012377468311405516,0.026784869624677656],"feature_idx":[27,22,1,0,16,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,311.2005,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,4,0,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015521351335605027,0.09501549500815898,0.04133401423053016,0.03808936799737808,0.0009348819700304709,0.0021245788857445548,-0.016834922348091298,-0.26274074067911074,0.008170545712565395,0.0003082010754720699,-0.018457090106346108,-0.50269924327916,-0.6952349038604725,0.10847073027973267,-0.7232341332294825,-0.0018101918558008911,-0.7501343772481166,-0.0011758594895835196,-0.0011758594895835196,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0011758594895835196,-0.0011786342594466426,-0.0011758594895835196,-0.16277440858369557,-0.0011758594895835196,0.02544562614344379],"feature_idx":[27,22,2,0,0,1,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,0.0,0.5,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.015518496232510804,0.09462146109811172,0.036184899597509104,0.01727536261023722,0.12252063334594397,-0.07125081089800532,7.944313819248096e-05,-0.26274074067911074,0.008170545712565395,0.0002927910216984131,-0.017534235601028847,-0.50269924327916,-0.6952349038604725,0.10304719376574596,-0.7232341332294825,-0.0017196822630108244,-0.7501343772481166,-0.001117066515104348,-0.001117066515104348,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.001117066515104348,-0.0011197025464743328,-0.001117066515104348,-0.16277440858369557,-0.001117066515104348,0.024173344836271583],"feature_idx":[27,22,1,0,16,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.0,311.2005,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,4,0,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014709951156887724,0.08940645898951549,0.12975886067984052,0.03087174354492177,0.0343756546176337,0.03849818428453986,7.547098128277697e-05,-0.26274074067911074,0.008170545712565395,0.00027815147061343025,-0.01665752382097736,-0.50269924327916,-0.6952349038604725,0.09789483407745864,-0.7232341332294825,-0.0016336981498603189,-0.7501343772481166,-0.001061213189349175,-0.001061213189349175,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.001061213189349175,-0.001063717419150656,-0.001061213189349175,-0.16277440858369557,-0.001061213189349175,0.02296467759445804],"feature_idx":[27,22,1,41,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.017133965324230616,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,6,5,0,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014676980946747646,0.08919380576759231,0.12975886067984052,0.029328156367675717,0.032656871886752016,0.036573275070312765,7.169743221862035e-05,-0.2627159589598465,0.008223292090275378,0.0002642438970827499,-0.015824647629928457,-0.50269924327916,-0.6952349038604725,0.09300009237358574,-0.7232341332294825,-0.001552013242367334,-0.7501343772481166,-0.001008152529881734,-0.001008152529881734,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.001008152529881734,-0.0010105315481931498,-0.001008152529881734,-0.16277440858369557,-0.001008152529881734,0.021816443714735102],"feature_idx":[27,22,1,41,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.017133965324230616,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,6,5,0,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014629465055839097,0.08888733494889496,0.12975886067984052,0.027861748549291934,0.031024028292414487,0.03474461131679725,6.811256060768045e-05,-0.2627159589598465,0.008223292090275378,0.00025103170222866565,-0.015033415248432115,-0.50269924327916,-0.6952349038604725,0.08835008775490644,-0.7232341332294825,-0.0014744125802489628,-0.7501343772481166,-0.0009577449033876918,-0.0009577449033876918,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0009577449033876918,-0.0009600049707835013,-0.0009577449033876918,-0.16277440858369557,-0.0009577449033876918,0.020725621528998418],"feature_idx":[27,22,1,41,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.16776325133681755,0.5,0.017133965324230616,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,7,6,5,0,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.014548009242898521,0.003814652273850356,0.06819625713213578,0.14670163047170776,-0.6543377985341717,-0.00044017524184756244,0.10784113140269708,0.06053148212067292,-0.10588808190000931,0.41430265861757576,-0.07887096105723455,-0.2627159589598465,0.008223292090275378,0.00023848011711731233,-0.014281744486010517,-0.50269924327916,-0.6952349038604725,0.08393258336716124,-0.7232341332294825,-0.0014006919512365103,-0.7501343772481166,-0.0009098576582182716,-0.0009098576582182716,-0.350030144071453,-0.0009098576582182716,-0.16277440858369557,-0.0009098576582182716,0.019689340452548443],"feature_idx":[27,9,13,40,0,0,0,22,0,28,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,3.580871947050632,0.3173871534785336,0.7542056012253933,0.0,0.0,0.0,0.29011361940542385,0.0,0.01651192409981308,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,0,8,0,10,0,0,13,14,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[12,7,6,5,0,0,0,9,0,11,0,0,16,15,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.014496715775502104,0.0037475418277965965,0.1038033197698443,-0.0004181664797551221,0.10792732485597885,0.13467510226300966,0.08804115846437953,0.057504908014639255,-0.10463877846034582,0.3935875256866972,-0.07492741300437285,-0.2627159589598465,0.008223292090275378,0.00022655611126136678,-0.013567657261710053,-0.50269924327916,-0.6952349038604725,0.07973595419880333,-0.7232341332294825,-0.0013306573536747024,-0.7501343772481166,-0.0008643647753073581,-0.0008643647753073581,-0.350030144071453,-0.0008643647753073581,-0.16277440858369557,-0.0008643647753073581,0.018704873429921064],"feature_idx":[27,9,13,0,0,22,2,0,0,28,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,3.580871947050632,0.3173871534785336,0.0,0.0,0.29011361940542385,0.5,0.0,0.0,0.01651192409981308,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,7,0,0,10,0,0,13,14,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[12,5,4,0,0,9,8,0,0,11,0,0,16,15,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.009149993576147883,0.07177845053539249,0.10655314034542798,0.004656153155391785,0.0005356884463446958,0.11522748383427626,-0.0062438331223158925,0.0038014713223491372,-0.016589802554931095,-0.0001353888604967324,-0.07371778518705968,-0.0026447321365466792,-0.39833369664013674,-0.2627159589598465,0.008223292090275378,0.00021522830569828955,-0.012889274398624551,-0.50269924327916,-0.6952349038604725,0.07574915648886318,-0.7232341332294825,-0.0012641244859909586,-0.0008211465365420168,-0.350030144071453,-0.0008211465365420168,-0.16277440858369557,-0.0008211465365420168,0.017769629758424978],"feature_idx":[27,8,1,0,0,13,0,39,0,18,0,40,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.1661166033736106,0.5,0.0,0.0,0.3173871534785336,0.0,0.0021300280538451297,0.0,303.0297,0.0,0.13571687109133287,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,0,8,0,10,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,5,4,0,0,7,0,9,0,11,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.00826263482683093,0.07177845053539249,0.10122548332815669,0.0044233454976222225,-0.00047371074468745104,0.020480975371376817,0.0010339835382288775,0.07356885467391834,0.04075011195531282,-0.10748408073300024,-0.017311683088843923,0.005669433780060729,-0.0011079276667722126,-0.2627159589598465,0.008223292090275378,0.00020446689041335732,-0.012244810678693341,-0.50269924327916,-0.6952349038604725,0.07196169866442013,-0.7232341332294825,-0.0012009182616914416,-0.0007800892097149514,-0.350030144071453,-0.0007800892097149514,-0.16277440858369557,-0.0007800892097149514,0.016881148270503667],"feature_idx":[27,8,1,0,0,64,7,0,20,0,46,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.1661166033736106,0.5,0.0,0.0,0.00635088948825735,3.4339872044851463,0.0,393.2103,0.0,0.0060500414109310174,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,7,0,9,0,11,0,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,5,4,0,0,13,8,0,10,0,12,0,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,0,1,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.008920042488042434,0.06639318311232373,-0.040221388223146096,0.12734167349978343,0.0010148250740380188,0.022045586038452757,0.0021220881205416143,0.005167923843309968,-0.015053467091536278,0.006494322716482337,-0.03420000190321031,0.017809529465325723,-0.0010525312834335665,-0.2627159589598465,0.008223292090275378,0.000194243545892725,-0.011632570144758603,-0.50269924327916,-0.6952349038604725,0.06836361373119929,-0.7232341332294825,-0.0011408723486068695,-0.0007410847492291595,-0.350030144071453,-0.0007410847492291595,-0.16277440858369557,-0.0007410847492291595,0.01603709085697851],"feature_idx":[27,8,35,0,0,64,7,12,27,0,0,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.1661166033736106,0.6950007358067429,0.0,0.0,0.00635088948825735,3.4339872044851463,183.357216172695,0.13126566924036592,0.0,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,7,8,9,0,0,0,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,5,4,0,0,13,12,11,10,0,0,0,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,0,0,0,1,1,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.007869033087191604,0.07027721771689315,0.20883778540555334,-0.01271257133943351,0.0006571461616784647,0.09094845496949007,-0.16783586954982926,-0.05075564279627934,0.042647830542635747,0.28694268121810895,-2.0596469961375877e-05,-0.2627159589598465,0.008223292090275378,0.0001845313685981509,-0.011050941637520673,-0.50269924327916,-0.6952349038604725,0.06494543304463925,-0.7232341332294825,-0.0010838287311765171,-0.7501343772481166,-0.0007040305117676838,-0.0007040305117676838,-0.350030144071453,-0.0007040305117676838,-0.16277440858369557,-0.0007040305117676838,0.01523523631412953],"feature_idx":[27,13,15,0,0,10,35,59,0,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.3173871534785336,55.0544,0.0,0.0,0.03691718057179998,0.6950007358067429,0.0012667998263320192,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,7,8,0,0,0,0,13,14,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[12,5,4,0,0,11,10,9,0,0,0,0,16,15,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.006861621144998599,0.030362111623873877,-0.005208219375538903,0.07372648654341028,0.20110673440389704,-0.11722222192694905,-0.0014275467939146818,-0.39904518642025977,0.005604223111292228,-0.0038869218035635813,-0.010940821582617163,-0.04820619655749622,-0.026152920573487927,-0.02733329298944298,0.0003600286937313513,-0.2627159589598465,0.00017530480016816343,-0.50269924327916,-0.6952349038604725,0.061698161392407164,-0.7232341332294825,-0.0010296372946177357,-0.0006688289861792818,-0.350030144071453,-0.0006688289861792818,-0.16277440858369557,-0.0006688289861792818,0.014473474498423046],"feature_idx":[27,28,7,0,20,0,41,64,0,0,0,11,47,0,0,0,4,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.004414856341976173,3.367295829986474,0.0,333.1805,0.0,0.17653690460335802,0.013527575442247697,0.0,0.0,0.0,205.4515016883532,0.005345484521546595,0.0,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,0,0,0,12,13,0,0,0,17,0,19,20,0,22,0,0,25,0,27,0,0],"right":[16,11,4,0,6,0,10,9,0,0,0,15,14,0,0,0,18,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.00882902968871406,-0.004764168393843148,-0.01694043830355052,0.011889047046613577,-0.03598315059087338,-0.00979014848608415,-0.3470323680920473,0.025309881503826553,0.007274636541269697,-0.021869778036364765,0.048057671266784154,0.037805158273092235,-0.01852667797780665,-0.2627159589598465,0.008223292090275378,0.0001665395601596842,-0.01050715979565311,-0.50269924327916,-0.6952349038604725,0.05861325332278682,-0.7232341332294825,-0.00097815542988684,-0.0006353875368703577,-0.350030144071453,-0.0006353875368703577,-0.16277440858369557,-0.0006353875368703577,0.013749800773501875],"feature_idx":[27,58,15,65,0,38,0,0,1,0,0,15,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.03846120431265909,109.044647,0.0,0.0,0.8180824911226441,0.0,0.0,0.5,0.0,0.0,55.0544,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,11,8,5,0,7,0,0,10,0,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.007054031402856002,0.06263800152428516,0.12793758615193873,-0.02889302130175163,-0.08336786226985318,-0.004460282288789525,-0.21113601702601426,-0.09578255904371479,-0.08746452139970701,0.005888949905016184,-0.000591318488040058,0.007716596960594658,-0.0019319367690936674,-0.2627159589598465,0.008223292090275378,0.00015821258215176215,-0.009981801805870383,-0.50269924327916,-0.6952349038604725,0.05568259065664734,-0.7232341332294825,-0.0009292476583924625,-0.0006036181600268087,-0.350030144071453,-0.0006036181600268087,-0.16277440858369557,-0.0006036181600268087,0.01306231073482671],"feature_idx":[27,8,13,0,62,0,59,12,0,0,0,14,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.1661166033736106,0.5564877177250878,0.0,0.017020333341605957,0.0,0.0021077020568742895,57.85962078752631,0.0,0.0,0.0,0.14453039404292575,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,0,0,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,11,4,0,6,0,10,9,0,0,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0035765626404549687,0.027965388431529237,-0.006328434584552311,0.008157792148574218,-0.08341966017737439,0.025530794255518963,-0.177812157323066,0.18005342219382925,-0.013637730212020608,-0.0004880216947602101,-0.15220240796182063,-0.0005055816929889545,-0.40016414837299685,-0.002963125265523914,0.026198614944727083,-0.2627159589598465,0.00015030195304426288,-0.50269924327916,-0.6952349038604725,0.05289846112381511,-0.7232341332294825,-0.0008827852754728305,-0.0005734372520254993,-0.350030144071453,-0.0005734372520254993,-0.16277440858369557,-0.0005734372520254993,0.012409195198085322],"feature_idx":[27,28,9,14,0,39,0,0,0,58,0,46,0,15,0,0,4,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.0026171889052775477,2.261144220846778,0.14106576850734703,0.0,0.06760670051512219,0.0,0.0,0.0,0.13461595191952183,0.0,0.012194152701834382,0.0,50.830913,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,0,10,0,12,0,14,0,0,17,0,19,20,0,22,0,0,25,0,27,0,0],"right":[16,9,8,5,0,7,0,0,0,11,0,13,0,15,0,0,18,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.00394678901104316,0.028073290091592967,5.066615098920033e-05,0.024745425729071947,-0.08068857964024545,0.1420696468828652,-0.15557006989762456,0.06893320725880182,0.11391564619695416,-0.049333964465865424,-0.013082355418152591,-0.0004636206100221863,-0.15220240796182063,-0.0004803026083394002,-0.40016414837299685,-0.002814969002247736,0.02488868419749082,-0.2627159589598465,0.00014278685539199644,-0.50269924327916,-0.6952349038604725,0.050253538067624254,-0.0005447653894242066,-0.350030144071453,-0.0005447653894242066,-0.16277440858369557,-0.0005447653894242066,0.011788735438181064],"feature_idx":[27,28,2,21,9,0,0,0,64,0,0,58,0,46,0,15,0,0,4,0,0,23,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.0026171889052775477,0.5,289.119629,1.3052950725665382,0.0,0.0,0.0,0.41506721135632285,0.0,0.0,0.13461595191952183,0.0,0.012194152701834382,0.0,50.830913,0.0,0.0,0.5,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,1,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,0,9,0,0,12,0,14,0,16,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,11,8,7,6,0,0,0,10,0,0,13,0,15,0,17,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,1,1,0,1,0,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.001875191550281562,0.21484108821090875,-0.002492013217584903,0.005112200384600385,-0.021561856497271197,-0.14419679172317276,-0.03233149370583119,0.001085069993647636,-0.11726448626478643,-0.5082215743911243,0.058382084069846844,-0.016317335051024173,-0.0021074228681897014,-0.2627159589598465,0.008223292090275378,0.00013564751262240549,-0.009497366155998678,-0.50269924327916,-0.6952349038604725,0.04774086116424314,-0.7232341332294825,-0.0008114077422280097,-0.0005175271199529874,-0.350030144071453,-0.0005175271199529874,-0.16277440858369557,-0.0005175271199529874,0.011199298666272029],"feature_idx":[27,10,0,64,0,22,41,64,0,0,21,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.03691718057179998,0.0,0.0077742325577133675,0.0,0.14200179853641448,0.19444229129524837,0.23602652492743664,0.0,0.0,328.125857,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,1,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,0,4,0,6,7,8,0,0,11,0,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,3,0,5,0,13,10,9,0,0,12,0,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,1,0,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0024790071881536143,0.1527604294377543,-0.0030428578458768975,-0.10288616256257098,0.0010308164939651476,-0.30731790782163376,-0.0015414804222267265,-0.024090741085665713,0.00071391159361072,0.08698552285374682,-0.05274195342880788,0.40638130685235585,-0.0003697846608833544,-0.2627159589598465,0.008223292090275378,0.00012886513699132964,-0.009022497848198797,-0.50269924327916,-0.6952349038604725,0.04535381810603099,-0.7232341332294825,-0.0007708373551166049,-0.0004916507639553203,-0.350030144071453,-0.0004916507639553203,-0.16277440858369557,-0.0004916507639553203,0.010639333732958356],"feature_idx":[27,13,0,22,9,0,63,0,0,10,35,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.30261964618503995,0.0,0.134876418650859,3.580871947050632,0.0,0.04926894182689601,0.0,0.0,0.03691718057179998,0.6950007358067429,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,0,4,5,0,7,0,0,10,11,0,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,3,0,9,6,0,8,0,0,13,12,0,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0038130858332697513,0.03939165028644054,-0.09181177302029903,0.0376195575232547,-0.005443198270622464,-0.09847806141768768,-0.06587527333640679,-0.048286362888946145,-0.0011499394594870161,0.0006529550089208414,-0.08621241975704248,-0.014296931244189537,-0.2563256986437827,-0.2627159589598465,0.008223292090275378,0.0001224218801418431,-0.008571372955788803,-0.50269924327916,-0.6952349038604725,0.04308612720072951,-0.7232341332294825,-0.0007322954873608012,-0.00046706822575757204,-0.350030144071453,-0.00046706822575757204,-0.16277440858369557,-0.00046706822575757204,0.010107367046310501],"feature_idx":[27,17,59,0,0,18,26,0,0,57,0,12,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,68.99773,0.006662965019433649,0.0,0.0,87.0264,1.0000057779117788,0.0,0.0,0.000985391957046787,0.0,183.357216172695,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,1,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,7,0,0,10,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,5,4,0,0,9,8,0,0,11,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,0,1,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.002773647008427426,0.14461205383510886,-0.0024486277556190583,-0.10077672308176806,-0.0025679090857849475,-0.2803182767651119,0.053530461165493294,-0.013582084681980078,0.0025832921749419486,0.0019047047188589517,-0.015350901838519558,-0.010046770366666725,-0.0976839693997082,-0.2627159589598465,0.008223292090275378,0.0001163007861347154,-0.008142804307999364,-0.50269924327916,-0.6952349038604725,0.04093182084069298,-0.7232341332294825,-0.0006956807129927967,-0.0004437148144696757,-0.350030144071453,-0.0004437148144696757,-0.16277440858369557,-0.0004437148144696757,0.009601998693995029],"feature_idx":[27,13,0,22,41,0,46,0,0,1,0,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.30261964618503995,0.0,0.14200179853641448,0.17653690460335802,0.0,0.0027197405192288526,0.0,0.0,0.5,0.0,6.27316432375719,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,0,4,5,0,7,0,0,10,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,3,0,9,6,0,8,0,0,11,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,1,0,0,1,0,1,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.002420197874410357,0.022646360832508733,-0.0053175149478345675,0.16789615605694266,-0.01186169761866875,-4.44306342396672e-05,-0.09103798646558983,-0.3759306101386192,0.0008447022242886959,-0.043792830947815276,-0.04741418942990158,-0.009797271544689679,0.000525072022531603,-0.2627159589598465,0.008223292090275378,0.00011048574682792633,-0.007735664092599315,-0.50269924327916,-0.6952349038604725,0.03888522979865847,-0.7232341332294825,-0.0006608966773431924,-0.00042152907374619635,-0.350030144071453,-0.00042152907374619635,-0.16277440858369557,-0.00042152907374619635,0.009121898759295278],"feature_idx":[27,29,9,0,0,7,0,32,26,0,0,66,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.004523554526147955,2.1788623895092316,0.0,0.0,5.407171771460119,0.0,0.032144429766622636,0.6648930362993282,0.0,0.0,0.17442972681974112,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,0,8,9,0,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,5,4,0,0,7,0,11,10,0,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.004144475233115031,0.014638685324281314,0.003501586146576941,-0.008860862220179778,0.020406468910387422,-0.046288210439334954,-0.02654839729095879,-0.008201080215054547,-0.21205075873961962,0.00010818213531287313,-0.4169251637188884,-0.16118691100938848,-0.02129778825072819,-0.2627159589598465,0.008223292090275378,0.00010496145948657443,-0.0073488808879693225,-0.50269924327916,-0.6952349038604725,0.03694096830872553,-0.7232341332294825,-0.0006278518434760017,-0.0004004526200588998,-0.350030144071453,-0.0004004526200588998,-0.16277440858369557,-0.0004004526200588998,0.008665803821330443],"feature_idx":[27,64,1,0,12,0,0,57,0,35,0,67,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.07499999999999996,0.5,0.0,50.915078443345536,0.0,0.0,0.000985391957046787,0.0,0.921682071544486,0.0,0.0003990057915974621,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,0,8,0,10,0,12,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,7,4,0,6,0,0,9,0,11,0,13,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0032239573697295494,0.019598908004319744,0.0033265068392481115,-0.006562631133762587,-0.012111246445806382,0.01319770083299261,-0.04485414015091127,-0.2627159589598465,0.008223292090275378,9.971338651233453e-05,-0.006981436843570776,-0.50269924327916,-0.6952349038604725,0.03509391989328919,-0.7232341332294825,-0.0005964592513022283,-0.7501343772481166,-0.0003804299890559193,-0.0003804299890559193,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0003804299890559193,-0.00038257705308204494,-0.0003804299890559193,-0.16277440858369557,-0.0003804299890559193,0.008232513630263939],"feature_idx":[27,1,64,0,0,12,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.5,0.07499999999999996,0.0,0.0,50.915078443345536,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.003946603324410052,0.0014059715005132036,-0.011552493793578046,-0.005295368447741245,0.07932347350734369,-0.01809336493681446,-0.1254932792338048,-0.2627159589598465,0.008223292090275378,9.472771718677109e-05,-0.006632365001392238,-0.50269924327916,-0.6952349038604725,0.033339223898624586,-0.7232341332294825,-0.0005666362887371435,-0.7501343772481166,-0.00036140848960313225,-0.00036140848960313225,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.00036140848960313225,-0.0003634482004279072,-0.00036140848960313225,-0.16277440858369557,-0.00036140848960313225,0.007820887948750688],"feature_idx":[27,1,0,0,15,0,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.5,0.0,6.375905181769884,42.033974,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,0,4,5,0,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,3,0,7,6,0,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.004351458275525578,0.020496544229891344,0.050399999771687125,1.395545478430904e-05,-0.010768500664659985,0.07422978514808402,-0.02556903325862212,-0.2627159589598465,0.008223292090275378,8.999133132743254e-05,-0.006300746751322706,-0.50269924327916,-0.6952349038604725,0.03167226270369348,-0.7232341332294825,-0.0005383044743003219,-0.7501343772481166,-0.0003433380651229889,-0.0003433380651229889,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0003433380651229889,-0.00034527579040650737,-0.0003433380651229889,-0.16277440858369557,-0.0003433380651229889,0.007429843551313198],"feature_idx":[27,1,29,0,0,15,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.5,0.015160393057308133,0.0,0.0,42.033974,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,5,4,0,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.0014886864329641239,0.009243050276329967,-0.010410089609330712,0.39374221421991007,-0.015379066043290944,0.0015365915814357616,0.0003836827907013785,-0.017654845960870615,-0.0484319695528349,-0.18197154522310227,-0.024498257138790436,-0.025674975724014004,-0.005580219518613427,-0.2627159589598465,0.008223292090275378,8.549176476098098e-05,-0.005985709413756624,-0.50269924327916,-0.6952349038604725,0.030088649568508787,-0.7232341332294825,-0.0005113892505852924,-0.0003261711618668173,-0.350030144071453,-0.0003261711618668173,-0.16277440858369557,-0.0003261711618668173,0.007058351373747485],"feature_idx":[27,64,0,10,0,14,47,0,0,13,7,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.0,0.0,0.029863856792394346,0.0,0.20238499972126855,0.32583170254403127,0.0,0.0,0.4933500606057139,5.480638923341991,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,1,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,0,4,0,6,7,0,0,10,11,0,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,3,0,5,0,9,8,0,0,13,12,0,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,1,0,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0020302746326848605,0.06827103508020578,-0.0032865500972947626,0.0061410134760686574,-0.020340360533775217,-0.012830469346922158,-0.0016230833936170088,-0.2627159589598465,0.008223292090275378,8.121717652294081e-05,-0.005686423943068775,-0.50269924327916,-0.6952349038604725,0.028584217090083186,-0.7232341332294825,-0.0004858197880560411,-0.7501343772481166,-0.0003098626037735031,-0.0003098626037735031,-0.350030144071453,-0.45189394440196395,-0.271409020567191,-0.0003098626037735031,-0.00031170344279285445,-0.0003098626037735031,-0.16277440858369557,-0.0003098626037735031,0.006705433805060146],"feature_idx":[27,17,0,14,0,22,0,0,4,60,0,0,0,23,0,28,0,1,0,0,44,15,7,0,0,0,0,0,0],"num_threshold":[0.8229775327133568,57.069672,0.0,0.15138779116270304,0.0,0.14200179853641448,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.5,0.0,0.0,0.0,173.541687,1.9459101490553132,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,0,4,0,6,0,0,9,10,0,0,13,14,0,16,0,18,0,0,21,22,23,0,0,0,27,0,0],"right":[8,3,0,5,0,7,0,0,12,11,0,0,20,15,0,17,0,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.0025587365053638513,0.012400415981865224,0.037026874017947624,-0.00018970821856818533,-0.026225595645032566,-0.007953561191286873,-0.13617910516810683,-0.04992751550998753,0.010807200979182571,-0.009105072438764595,0.01174145792407373,-0.11408566542910742,-0.020569793591566566,-0.2627159589598465,0.008223292090275378,7.715631769684707e-05,-0.005402102745915372,-0.50269924327916,-0.6952349038604725,0.02715500623557894,-0.7232341332294825,-0.0004615287986532657,-0.00029436947358485455,-0.350030144071453,-0.00029436947358485455,-0.16277440858369557,-0.00029436947358485455,0.006370162114807166],"feature_idx":[27,64,8,0,0,7,0,35,62,62,0,0,0,0,4,60,0,0,0,23,0,28,0,0,44,0,0,0,0],"num_threshold":[0.8229775327133568,0.07499999999999996,0.27074033769361094,0.0,0.0,5.342334251964811,0.0,0.921682071544486,0.221963882542556,0.017020333341605957,0.0,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.831356879344328,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,1,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,0,6,0,8,9,10,0,0,0,0,15,16,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[14,5,4,0,0,7,0,13,12,11,0,0,0,0,18,17,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,0,0,0,1,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.0002585407435479826,-0.04539030415363765,0.004912569151442192,0.07149562310854095,-0.00858757659845575,8.581934260654123e-05,-0.002191195329928064,-0.24256090990020618,0.008223292090275378,7.329850181196918e-05,-0.005131997608619621,-0.46469208873171547,-0.527587560902069,-0.654716090679326,-0.544980297415237,-0.6361841280704976,0.010705243987060076,-0.00027965099990563403,-0.12513815904397993,-0.00027965099990563403,0.47472318514490514,-0.00027965099990563403,-0.29550253243990743,-0.4202712384646295,-0.00027965099990563403,-0.00027965099990563403,-0.00027965099990563403,1.758084513880931e-06],"feature_idx":[27,0,0,11,0,7,0,0,4,60,0,0,9,16,44,36,10,0,0,66,0,0,0,62,0,0,0,0,0],"num_threshold":[0.8229775327133568,5.327842187629703,0.0,162.55961335466864,0.0,5.480638923341991,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,0.666885678291477,498.582374,0.0,0.018413305885056783,0.706441234269404,0.0,0.0,0.005667398650869848,0.0,0.0,0.0,0.0014388210107920407,6.403844525631401,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,1,0,0,1,1,0,0,1,1,1,1,0,0,0,1,0,0,0,1,1,0,0,0,0],"left":[1,2,0,4,0,6,0,0,9,10,0,0,13,14,15,16,17,0,0,20,0,0,0,24,25,0,0,0,0],"right":[8,3,0,5,0,7,0,0,12,11,0,0,28,23,22,19,18,0,0,21,0,0,0,27,26,0,0,0,0],"is_leaf":[0,0,1,0,1,0,1,1,0,0,1,1,0,0,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1]},{"value":[0.0,0.0008078102636504437,0.1268261199774244,-0.0038325912732930546,-0.0950134611576625,3.085835990468411e-05,-0.013138490875634547,8.152837547612535e-05,-0.2451393833700465,0.008223292090275378,6.963357672145065e-05,-0.004875397728188702,-0.46955441575333257,-0.5277115672605196,-0.6549080872842747,-0.5453031011054146,-0.6361841280704976,0.010169981787707096,-0.00026566844991036124,-0.12693842625480026,-0.00026566844991036124,0.4509870258876599,-0.00026566844991036124,-0.29550253243990743,-0.4202712384646295,-0.00026566844991036124,-0.00026566844991036124,-0.00026566844991036124,1.670180288204648e-06],"feature_idx":[27,13,0,22,66,0,0,0,4,60,0,0,9,16,44,36,10,0,0,66,0,0,0,62,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.30261964618503995,0.0,0.14200179853641448,0.002388910735351968,0.0,0.0,0.0,0.5,0.07671528415213621,0.0,0.0,0.666885678291477,498.582374,0.0,0.018413305885056783,0.706441234269404,0.0,0.0,0.005667398650869848,0.0,0.0,0.0,0.0014388210107920407,6.403844525631401,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,1,1,0,0,1,1,1,1,0,0,0,1,0,0,0,1,1,0,0,0,0],"left":[1,2,0,4,5,0,0,0,9,10,0,0,13,14,15,16,17,0,0,20,0,0,0,24,25,0,0,0,0],"right":[8,3,0,7,6,0,0,0,12,11,0,0,28,23,22,19,18,0,0,21,0,0,0,27,26,0,0,0,0],"is_leaf":[0,0,1,0,0,1,1,1,0,0,1,1,0,0,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1]},{"value":[0.0,0.001182912791545257,0.07828839334845342,-0.06877997386002264,0.38474677105064253,-0.0002881669635552697,-0.2451393833700465,0.008223292090275378,0.02182182633518264,0.00030561649949287787,-0.06166598687066856,-0.0046316278417792844,-0.46955441575333257,-0.5277115672605196,-0.6549080872842747,-0.5453031011054146,-0.6361841280704976,0.009661482698321767,-0.00025238502741480316,-0.12693842625480026,-0.00025238502741480316,0.4284376745932769,-0.00025238502741480316,-0.29550253243990743,-0.4202712384646295,-0.00025238502741480316,-0.00025238502741480316,-0.00025238502741480316,1.5866712738343836e-06],"feature_idx":[27,10,35,0,0,0,4,60,1,0,0,0,9,16,44,36,10,0,0,66,0,0,0,62,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.029863856792394346,0.6950007358067429,0.0,0.0,0.0,0.5,0.07671528415213621,0.5,0.0,0.0,0.0,0.666885678291477,498.582374,0.0,0.018413305885056783,0.706441234269404,0.0,0.0,0.005667398650869848,0.0,0.0,0.0,0.0014388210107920407,6.403844525631401,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,0,0,1,0,0,0,1,1,0,0,0,0],"left":[1,2,3,0,0,0,7,8,9,0,0,0,13,14,15,16,17,0,0,20,0,0,0,24,25,0,0,0,0],"right":[6,5,4,0,0,0,12,11,10,0,0,0,28,23,22,19,18,0,0,21,0,0,0,27,26,0,0,0,0],"is_leaf":[0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1]},{"value":[0.0,0.0012208831002981982,0.01600740597712506,-0.0016951903984482543,0.10631499960993543,-0.002142832092381397,-0.24444210875677752,0.009707398569202861,0.023339675566205545,0.0002903356745182606,-0.058582687527135135,-0.004400046449690365,-0.46955441575333257,-0.5277115672605196,-0.6549080872842747,-0.5453031011054146,-0.6361841280704976,0.009178408563405682,-0.00023976577604409855,-0.12693842625480026,-0.00023976577604409855,0.4070157908636131,-0.00023976577604409855,-0.29550253243990743,-0.4202712384646295,-0.00023976577604409855,-0.00023976577604409855,-0.00023976577604409855,1.5073377101160191e-06],"feature_idx":[27,14,9,0,0,0,4,60,1,0,0,0,9,16,44,36,10,0,0,66,0,0,0,62,0,0,0,0,0],"num_threshold":[0.8229775327133568,0.15138779116270304,1.7242682818995994,0.0,0.0,0.0,0.5,0.07671528415213621,0.5,0.0,0.0,0.0,0.666885678291477,498.582374,0.0,0.018413305885056783,0.706441234269404,0.0,0.0,0.005667398650869848,0.0,0.0,0.0,0.0014388210107920407,6.403844525631401,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,1,1,0,0,0,0,1,1,1,1,0,0,0,1,0,0,0,1,1,0,0,0,0],"left":[1,2,3,0,0,0,7,8,9,0,0,0,13,14,15,16,17,0,0,20,0,0,0,24,25,0,0,0,0],"right":[6,5,4,0,0,0,12,11,10,0,0,0,28,23,22,19,18,0,0,21,0,0,0,27,26,0,0,0,0],"is_leaf":[0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1]}]},{"intercept":30.0,"trees":[{"value":[0.0,0.27784277267168966,0.14611930988874358,0.23152456409246028,0.060593250000000154,0.5,0.01546215259516181,-0.5,0.5,0.40715886568862936,0.31169122333879545,1.5,0.0,1.5,-0.158327069150225,-0.2749863603569586,-0.36558591716192623,-0.75,-0.5,-0.1819037152700306,0.0008893050947122969,0.0,-0.5,-0.5,0.39945573405313123,0.022609247523145068,-0.5,0.5,0.25],"feature_idx":[27,58,28,9,0,0,7,0,0,7,32,0,0,0,7,3,12,0,0,8,1,0,0,0,3,58,0,0,0],"num_threshold":[0.055610774407242394,0.006003062020516372,0.0011890600799207202,1.676687818925278,0.0,0.0,3.9889840465642745,0.0,0.0,3.6109179126442243,0.0,0.0,0.0,0.0,4.248495242049359,0.5,127.44888023279483,0.0,0.0,0.4669493266590709,0.5,0.0,0.0,0.0,0.5,0.0028018976516534047,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,0,0],"left":[1,2,3,4,0,0,7,0,0,10,11,0,0,0,15,16,17,0,0,20,21,0,0,0,25,26,0,0,0],"right":[14,9,6,5,0,0,8,0,0,13,12,0,0,0,24,19,18,0,0,23,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,0,1,1,1,0,0,0,1,1,0,0,1,1,1,0,0,1,1,1]},{"value":[0.0,-0.05641656626619899,0.1463318454707886,0.29037295601731083,1.425,0.15000000000000002,0.027317187984560492,-0.056810662500000046,0.19692113779120704,0.47500000000000003,0.3104564,-0.2758542043671683,-0.1764842542253522,-0.27265412262660216,-0.4625,0.525,-0.10218474101045139,0.0,-0.17376733302571684,-0.47500000000000003,0.42500000000000004,-0.34943132208739963,-0.48249999999999993,-0.47500000000000003,0.43898953598916596,0.18624962329282949,-0.47500000000000003,0.47500000000000003,0.7375],"feature_idx":[7,31,13,10,0,0,9,0,32,0,0,29,3,16,0,0,1,0,9,0,0,3,0,0,3,36,0,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.4529616348038239,0.5197130939738867,0.0,0.0,1.9330382724727093,0.0,0.05562432597177288,0.0,0.0,0.3757442819508616,0.5,721.3366,0.0,0.0,0.5,0.0,2.39558143179016,0.0,0.0,0.5,0.0,0.0,0.5,0.33679963006594954,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,13,14,0,0,17,0,19,0,0,22,0,0,25,26,0,0,0],"right":[24,11,6,5,0,0,8,0,10,0,0,21,16,15,0,0,18,0,20,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.06603958591953533,-0.27521373613325667,-0.17534843262839936,-0.2707830646986975,-0.43937500000000007,0.4987500000000001,-0.10153091822770154,0.0,-0.17282597819872142,-0.45124999999999993,0.0037499999999999647,-0.45124999999999993,0.12733735114778513,0.2870709252420756,1.3537500000000002,0.04243533551439988,-0.07125000000000004,0.6037500000000002,0.03175505026101334,-0.04793890217022965,0.0028405331249999224,-0.4721594668750001,0.45124999999999993,0.4388895894299971,0.18540612291236183,-0.45124999999999993,0.45124999999999993,0.700625],"feature_idx":[7,33,29,3,16,0,0,1,0,9,0,0,0,13,32,0,9,0,0,7,10,0,0,0,3,36,0,0,0],"num_threshold":[4.248495242049359,0.9108376498533068,0.3757442819508616,0.5,721.3366,0.0,0.0,0.5,0.0,2.0481560870031212,0.0,0.0,0.0,0.4198935889086777,0.0,0.0,2.0481560870031212,0.0,0.0,3.367295829986474,0.5197130939738867,0.0,0.0,0.0,0.5,0.33679963006594954,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,0,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,1,1,0,0,0,0,1,0,0,0],"left":[1,2,3,4,5,0,0,8,0,10,0,0,0,14,15,0,17,0,0,20,21,0,0,0,25,26,0,0,0],"right":[24,13,12,7,6,0,0,9,0,11,0,0,0,19,16,0,18,0,0,23,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,0,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,1]},{"value":[0.0,-0.0610530923309138,0.22543341251684026,0.3193416148715126,1.2860625000000003,0.20687228118304896,1.2860625000000003,0.33606249999999993,0.10264013811393949,0.02341884396874985,0.45368749999999985,-0.21605498476827825,-0.3153938020434304,-0.39050310952694256,-0.6658124999999999,-0.4283124999999999,-0.22746049467976256,-0.09407100444011768,0.0,-0.4286874999999999,-0.4286874999999999,-0.0708445000746909,0.43691467999999994,-0.4174062500000002,0.4391706852284584,0.19081722121622396,-0.4286874999999999,0.4286874999999999,0.6655937500000001],"feature_idx":[7,29,13,15,0,1,0,0,7,0,0,33,3,0,0,0,1,29,0,0,0,8,0,0,3,36,0,0,0],"num_threshold":[4.248495242049359,0.0,0.46278016445467784,67.0542,0.0,0.5,0.0,0.0,3.258096538021482,0.0,0.0,0.7946609839634144,0.5,6.47413063670009,0.0,0.0,0.5,0.6618440598894667,0.0,0.0,0.0,0.1661166033736106,0.0,0.0,0.5,0.33679963006594954,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,0,1,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,12,13,14,0,0,17,18,0,0,0,22,0,0,25,26,0,0,0],"right":[24,11,8,5,0,7,0,0,10,0,0,21,16,15,0,0,20,19,0,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,0,0,0,1,1,0,0,1,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.058863821503928,0.1402805906281945,0.25868862987569285,0.35079609978872717,1.2217593750000004,0.18726796427031245,0.10412805341807178,0.02224790177031242,1.266884375,0.01828475937933834,-0.2014311810312501,0.4060031249999998,-0.27440070616212153,-0.17429189335845388,-0.0016156250000001649,-0.40725312499999994,-0.34852506510227216,-0.2759442045927889,-0.40725312499999994,-0.40725312499999994,-0.4068968749999998,0.43916284989064885,0.1910213412111994,-0.1301586755853929,0.5427468750000001,-0.40725312499999994,0.40725312499999994,0.6323140625000001],"feature_idx":[7,31,32,17,25,0,0,7,0,0,9,0,0,29,17,0,0,4,58,0,0,0,3,36,31,0,0,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.0,105.03318,0.6788252172488726,0.0,0.0,3.1780538303479458,0.0,0.0,2.1788623895092316,0.0,0.0,0.3757442819508616,83.049753,0.0,0.0,0.5,0.004617592436265406,0.0,0.0,0.0,0.5,0.33679963006594954,0.044179486126832014,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,0,0,14,15,0,0,18,19,0,0,0,23,24,25,0,0,0,0],"right":[22,13,10,7,6,0,0,9,0,0,12,0,0,17,16,0,0,21,20,0,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,1,1,0,0,1,1,0,0,1,1,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.05833840964840622,0.17516680460719994,0.3172808715735385,1.1606714062500003,0.23895921875000037,0.08707964567786201,0.019003589051562388,0.43748483625,-0.24074481894722158,-0.3165818874552909,-0.22981414965468952,-0.09407100444011768,0.020362656250000024,-0.3868904687499999,-0.3868904687499999,-0.3902674100668326,-0.6121770312499998,-0.18017433913778397,-0.38655203124999976,0.6134479687500003,-0.08110915148369187,0.47232942225,-0.3874545312499999,0.43913396567077434,0.19085584958487645,-0.3868904687499999,0.3868904687499999,0.600698359375],"feature_idx":[7,28,13,32,0,0,9,0,0,33,4,1,29,0,0,0,0,0,64,0,0,8,0,0,3,36,0,0,0],"num_threshold":[4.248495242049359,0.01651192409981308,0.4074721160065626,0.0006555605727950821,0.0,0.0,2.1788623895092316,0.0,0.0,0.7946609839634144,0.5,0.5,0.6618440598894667,0.0,0.0,0.0,6.47413063670009,0.0,0.06549767921609062,0.0,0.0,0.12260662383584903,0.0,0.0,0.5,0.33679963006594954,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,1,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0],"left":[1,2,3,4,0,0,7,0,0,10,11,12,13,0,0,0,17,0,19,0,0,22,0,0,25,26,0,0,0],"right":[24,9,6,5,0,0,8,0,0,21,16,15,14,0,0,0,18,0,20,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,0,0,0,1,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.05936555501972157,0.14103472311309842,0.2250874092685138,0.1426431178966164,1.1026378359375002,0.07405808136929704,1.1026378359375002,-0.01785920744981211,0.3629251386375,-0.09774158556250008,-0.27626167822533276,-0.3675459453124999,-0.3311729521283606,-0.2574199580039603,-0.3706980910345494,-0.3675459453124999,-0.3675459453124999,-0.12951261042551734,-0.3675459453124999,-0.3675459453124999,-0.3924902401077284,-0.8315681796874999,-0.36722442968749985,0.43912759019756326,0.19079242850661468,-0.3675459453124999,0.36754594531250007,0.5706634414062499],"feature_idx":[7,31,29,7,13,0,0,0,8,0,0,28,0,4,2,0,0,0,58,0,0,0,0,0,3,36,0,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.0,3.1354942159291497,0.38259848842844774,0.0,0.0,0.0,0.1661166033736106,0.0,0.0,0.21046200613272398,0.0,0.5,0.5,5.447475891996474,0.0,0.0,0.004617592436265406,0.0,0.0,6.47413063670009,0.0,0.0,0.5,0.33679963006594954,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0],"left":[1,2,3,4,5,0,0,0,9,0,0,12,0,14,15,16,0,0,19,0,0,22,0,0,25,26,0,0,0],"right":[24,11,8,7,6,0,0,0,10,0,0,13,0,21,18,17,0,0,20,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,0,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.0712341285077974,0.20510272078481967,1.0475059441406251,0.10993356899883582,0.02766637730083197,0.5237902726406247,-0.22025602217998047,-0.08495200434757083,0.07876417739218732,-0.11805462235663702,-0.3933498161390627,-0.34970450742187487,-0.32548803794484504,-0.25120997866421146,-0.11350120934802732,0.037721820703125,-0.3491686480468749,-0.3491686480468749,-0.3886682932784985,-0.7899897707031247,-0.3488632082031249,0.3765021952506249,0.08847481886510038,-0.17649870626211153,-0.31476681992187516,0.3491686480468751,0.344778881705625,0.5421302693359372],"feature_idx":[7,29,13,0,7,0,0,29,22,0,3,0,0,4,1,29,0,0,0,0,0,0,3,35,36,0,0,0,0],"num_threshold":[3.9889840465642745,0.0,0.4074721160065626,0.0,3.258096538021482,0.0,0.0,0.19622641509433963,0.223763146855637,0.0,0.5,0.0,0.0,0.5,0.5,0.6618440598894667,0.0,0.0,0.0,6.47413063670009,0.0,0.0,0.5,0.7814664324538524,0.4826586402399128,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,0,11,0,0,14,15,16,0,0,0,20,0,0,23,24,25,0,0,0,0],"right":[22,7,4,0,6,0,0,13,10,0,12,0,0,19,18,17,0,0,0,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,0,1,1,0,0,0,1,1,1,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.07591314412089908,0.10287734396868135,0.22155782490988485,0.1536945429058177,0.3050483399102847,0.995130646933594,0.21188373235234403,-0.00950991062656898,0.29906785283601567,-0.08348513083452219,-0.2930521952035097,-0.28484809466796895,-0.3211288738239057,-0.25233399673024964,-0.33171021564453124,-0.33171021564453124,-0.38298202735718173,-0.7504902821679686,-0.16372802436407985,-0.3314200477929687,0.6185799522070314,0.37616958670993794,0.08835725099410381,-0.17631985527264313,-0.2990284789257814,0.33171021564453124,0.32753993762034384,0.5150237558691405],"feature_idx":[7,29,32,9,0,16,0,0,8,0,0,17,0,4,15,0,0,0,0,64,0,0,3,35,36,0,0,0,0],"num_threshold":[3.9889840465642745,0.07801988800993247,0.0,1.2583385261380777,0.0,385.189265,0.0,0.0,0.1661166033736106,0.0,0.0,83.049753,0.0,0.5,124.9811,0.0,0.0,6.47413063670009,0.0,0.06549767921609062,0.0,0.0,0.5,0.7814664324538524,0.4826586402399128,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0,1,0,0,0,0,1,0,0,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,12,0,14,15,0,0,18,0,20,0,0,23,24,25,0,0,0,0],"right":[22,11,8,5,0,7,0,0,10,0,0,13,0,17,16,0,0,19,0,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,0.18157416515211994,0.047543674489673574,0.1383932969020915,0.1194845990509542,0.47677256807568363,-0.060177516390496504,0.3155527070805768,-0.09581822138360617,-0.4135809748054614,-0.043390955196060954,-0.37169033422624287,0.06181628641492907,0.32660069988303536,0.20096644549961676,0.9453741145869142,0.08552382033730668,-0.012249774935695968,0.5956523973765325,0.984536460315977,-0.26571443201141287,0.07100093210605395,0.48927256807568364,-0.31746781091113285,-0.3147423648819414,-0.3151247048623047,-0.184475640409083,-0.3151247048623047,0.3155527070805768],"feature_idx":[27,58,28,7,0,0,8,0,3,0,9,0,0,7,16,0,2,0,0,0,17,1,0,0,33,0,16,0,0],"num_threshold":[0.09828279240175608,0.007737367870196339,0.0011890600799207202,3.4965075614664802,0.0,0.0,0.18726823390764974,0.0,0.5,0.0,1.4337801296631965,0.0,0.0,3.6888794541139363,271.191879,0.0,0.5,0.0,0.0,0.0,83.049753,0.5,0.0,0.0,0.6600351977963119,0.0,721.3366,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,0,1,0,0,1,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,0,0,14,15,0,17,0,0,0,21,22,0,0,25,0,27,0,0],"right":[20,13,6,5,0,0,8,0,10,0,12,0,0,19,16,0,18,0,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,1,1,0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,-0.07603047655231181,0.11350851817410133,0.21437599190436885,0.27297668141290843,0.8981054088575686,0.5658697775077058,0.0061828281755605735,0.0028770289466544413,0.25194248046300877,-0.04782778560003109,-0.2732669041327726,-0.29936846961918934,-0.17351387345022135,0.005332630997582833,-0.21614946682911368,-0.29936846961918934,-0.044920832333233865,0.09317747569331054,-0.3406945632744302,0.3423648751433091,0.11504922180058842,0.1900867552995685,0.21407945327054245,-0.03519106032810058,-0.3230983443944887,0.46099493272165476,-0.26832081973637706,0.46480893967189946],"feature_idx":[7,28,32,4,17,0,0,0,8,0,0,33,0,17,0,15,0,1,0,0,58,45,14,0,0,10,0,0,0],"num_threshold":[3.9889840465642745,0.05059215882649337,0.0,0.5,105.03318,0.0,0.0,0.0,0.1661166033736106,0.0,0.0,0.4986952150146195,0.0,83.049753,0.0,161.0573,0.0,0.5,0.0,0.0,0.0020811160103390604,0.050545706113766964,0.22088948311851703,0.0,0.0,0.07872188766952941,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0],"left":[1,2,3,4,5,0,0,0,9,0,0,12,0,14,0,16,0,18,0,0,21,22,23,0,0,26,0,0,0],"right":[20,11,8,7,6,0,0,0,10,0,0,13,0,15,0,17,0,19,0,0,28,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,1,1,0,1,0,1,0,1,0,1,1,0,0,0,1,1,0,1,1,1]},{"value":[0.0,0.16346881042904432,0.02388274972957065,0.11935084019481995,0.11232062726712222,0.4296934926883047,-0.2268501562824488,0.3188967090758172,0.18779020811841646,0.34636651995938833,0.2536180726501794,0.8532001384146902,0.07003082400689828,0.5157130287755088,-0.018242612210472055,0.8512420211282369,-0.28279173230944327,0.05709525080780541,0.3368954294785425,-0.2866259968846167,-0.3266412604093988,-0.3478675779986272,-0.2910966942150032,-0.2844000461382299,-0.2844000461382299,-0.3089373751577611,-0.1109858530045847,-0.2841243866792455,0.27653462474295304],"feature_idx":[27,58,28,7,0,0,0,7,16,3,0,0,1,0,0,0,17,1,0,0,0,4,15,0,0,0,35,0,0],"num_threshold":[0.13126566924036592,0.007737367870196339,0.0011890600799207202,3.4965075614664802,0.0,0.0,0.0,3.6888794541139363,271.191879,0.5,0.0,0.0,0.5,0.0,0.0,0.0,83.049753,0.5,0.0,0.0,6.47413063670009,0.5,102.9987,0.0,0.0,0.0,0.30601415094339623,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,0,8,9,10,0,0,13,0,0,0,17,18,0,0,21,22,23,0,0,0,27,0,0],"right":[16,7,6,5,0,0,0,15,12,11,0,0,14,0,0,0,20,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.1622928294942737,0.02492376144966402,0.10315142390581364,0.0639472429416145,0.40820881805388964,-0.2391640859683264,0.3152520790687559,0.17421211644107862,0.26332340032719587,-0.03965445379838606,0.8105401314939557,-0.03335823807276075,0.8086799200718251,-0.2650708802406982,-0.013147226692278672,-0.2722946970403859,0.4247237212143773,-0.30798413758415255,-0.32864116910054975,-0.25154547322801724,-0.16771192150600203,-0.2701800438313184,0.008544832962183335,-0.2647498706933559,-0.28861439796208405,-0.09993922205995504,-0.26991816734528323,0.39063166793712245],"feature_idx":[27,58,28,7,0,0,0,7,16,3,0,0,0,0,17,7,0,0,0,4,58,7,0,0,0,0,35,0,0],"num_threshold":[0.13126566924036592,0.007737367870196339,0.004414856341976173,3.4965075614664802,0.0,0.0,0.0,3.6109179126442243,380.160217,0.5,0.0,0.0,0.0,0.0,91.053802,3.6109179126442243,0.0,0.0,6.47413063670009,0.5,0.0020811160103390604,5.111987788356544,0.0,0.0,0.0,0.0,0.30601415094339623,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0],"left":[1,2,3,4,0,0,0,8,9,10,0,0,0,0,15,16,0,0,19,20,21,22,0,0,0,0,27,0,0],"right":[14,7,6,5,0,0,0,13,12,11,0,0,0,0,18,17,0,0,26,25,24,23,0,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,0,1,1,1,1,0,0,1,1,0,0,0,0,1,1,1,1,0,1,1]},{"value":[0.0,-0.0834241404899652,0.08434329197440797,0.22161261208002334,0.2903095406844617,0.08786621179015093,0.7701061354903644,0.0708361005464761,0.7292197707027092,-0.16580159060192462,-0.007700655594411112,-0.1465569192054664,0.10506127891016732,0.27428534386733683,-0.04366248846536706,-0.39562198708413254,0.10057041972055121,-0.28717545038945336,-0.18234365004245992,0.0018359628257959672,-0.2569425502966505,-0.2566710416397525,0.3354187727509967,0.09967977758134282,-0.0614773212401312,0.008117591314073991,-0.21190662884522934,0.31237181117555934,0.36794693479397084],"feature_idx":[7,29,13,16,3,0,0,1,0,0,9,0,29,0,3,0,0,24,17,0,0,0,58,33,15,0,0,0,0],"num_threshold":[3.9889840465642745,0.07801988800993247,0.4422446168741961,322.2655,0.5,0.0,0.0,0.5,0.0,0.0,1.8783209336005964,0.0,0.015160393057308133,0.0,0.5,0.0,0.0,0.8907352285956615,83.049753,0.0,0.0,0.0,0.0020811160103390604,0.9244353323082182,51.022927,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,0,13,0,15,0,0,18,19,0,0,0,23,24,25,0,0,0,0],"right":[22,17,10,7,6,0,0,9,0,0,12,0,14,0,16,0,0,21,20,0,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,1,1,1]},{"value":[0.0,0.160206245905438,0.06421752312035452,0.21020704825010106,0.03992618182703254,0.25748566862504224,0.7316008287158461,0.14369201024100048,0.7666094311854158,0.03343343605513829,-0.27261096295034015,0.7297406172937155,-0.02275221278873795,-0.23398605142070253,0.07864414144777987,0.2605710766739701,-0.2143587541550776,0.3719017594458862,0.8207875290812763,0.25291185427658824,-0.2637888149777187,0.05731106572314544,0.31164802402588415,-0.25357981536049506,-0.3052146826021672,-0.2438374895577649,-0.3663309399787865,-0.27295370042665007,-0.1520163931646705],"feature_idx":[27,7,13,3,0,16,0,1,0,7,0,0,9,0,29,0,0,22,0,0,17,1,0,0,4,0,36,0,0],"num_threshold":[0.13126566924036592,3.9889840465642745,0.4422446168741961,0.5,0.0,249.1962,0.0,0.5,0.0,3.367295829986474,0.0,0.0,1.8783209336005964,0.0,0.015160393057308133,0.0,0.0,0.29011361940542385,0.0,0.0,83.049753,0.5,0.0,0.0,0.5,0.0,0.4441143163482063,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,8,0,10,0,0,13,0,15,0,0,18,0,0,21,22,0,0,25,0,27,0,0],"right":[20,17,12,5,0,7,0,9,0,11,0,0,14,0,16,0,0,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,-0.08634082468469967,0.08202391890589956,0.2096484549064633,0.037929872735680804,0.25680428404428773,0.6950207872800537,0.14210583283388703,0.7275377879279468,0.04084737085333292,0.6899315629500529,-0.3823553488590243,-0.003553006659433548,-0.1275297706741579,0.10000764141846678,0.4014815866152933,0.013967750170052185,-0.29081748293232856,-0.20730608342231327,0.11627303296699837,-0.2319035483039297,-0.2316456150798766,0.33008966261353634,0.09868226331360513,0.17037899429729786,-0.18766361238163523,0.39766874446170275,1.1782374678672116,0.21187247782252427],"feature_idx":[7,29,13,3,0,16,0,1,0,15,0,0,9,0,32,0,0,24,7,0,0,0,58,20,0,0,17,0,0],"num_threshold":[3.9889840465642745,0.07801988800993247,0.4422446168741961,0.5,0.0,249.1962,0.0,0.5,0.0,67.0542,0.0,0.0,1.8783209336005964,0.0,0.05562432597177288,0.0,0.0,0.9999850744102411,1.3862943611198906,0.0,0.0,0.0,0.0020811160103390604,333.1805,0.0,0.0,71.04873,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,4,0,6,0,8,0,10,0,0,13,0,15,0,0,18,19,0,0,0,23,24,0,0,27,0,0],"right":[22,17,12,5,0,7,0,9,0,11,0,0,14,0,16,0,0,21,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,0,1,1,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.1535421349053524,0.03799285676256016,0.12336969331978874,0.09978337909889667,0.40649456139493323,-0.05526753735174838,0.2402237990411784,-0.22263851146267993,0.32098427447026523,0.17615354128570984,0.2537154781323594,-0.015366221610053543,0.6601767373449445,-0.05859784403162607,0.7208362792338516,-0.2656868544723079,0.02355709936840904,-0.22158513858436032,0.31059591381930507,-0.3030020569141277,-0.23994964046928458,-0.15923149537698525,-0.22006333432588276,-0.040434834325882824,-0.17284693729498316,-0.3661919532682021,-0.2499228347862358,-0.1328203960912404],"feature_idx":[27,58,28,7,0,0,8,0,0,7,16,3,0,0,0,0,17,9,0,0,4,58,2,0,0,0,36,0,0],"num_threshold":[0.13126566924036592,0.01689875801798617,0.0026171889052775477,3.4965075614664802,0.0,0.0,0.18726823390764974,0.0,0.0,3.6888794541139363,391.0986,0.5,0.0,0.0,0.0,0.0,83.049753,2.1788623895092316,0.0,0.0,0.5,0.0020811160103390604,0.5,0.0,0.0,0.0,0.4441143163482063,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,7,0,0,10,11,12,0,0,0,0,17,18,0,0,21,22,23,0,0,0,27,0,0],"right":[16,9,6,5,0,0,8,0,0,15,14,13,0,0,0,0,20,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,0,0,1,1,1,1,0,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,-0.07355212347260859,0.07792004701454013,0.18113253479978156,0.10085957751510029,0.6271679004776971,-0.015252267077877236,0.3292502670112424,0.7189687042726924,0.12208143247517214,-0.03350208951927363,0.14968430429743407,-0.19955964586133687,-0.29806848326617374,-0.21049298499393976,-0.3232902078526721,-0.3444661287756883,-0.26540061178698965,-0.2116924961180315,-0.14860977830265076,-0.21804159260958864,-0.20906016760958865,-0.35179096442167457,-0.12100278645584463,-0.20586259938139317,0.5383252936927017,0.36668325200870405,0.01340637822768791,0.34338436763057417],"feature_idx":[7,29,31,7,13,0,0,4,0,0,8,0,0,17,0,16,4,15,0,1,0,0,0,64,0,0,58,0,0],"num_threshold":[4.248495242049359,0.12905940714245254,0.0,3.1354942159291497,0.4529616348038239,0.0,0.0,0.5,0.0,0.0,0.1661166033736106,0.0,0.0,83.049753,0.0,647.1507,0.5,102.9987,0.0,0.5,0.0,0.0,0.0,0.06549767921609062,0.0,0.0,0.024432154161883893,0.0,0.0],"missing_go_to_left":[1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,0,0,14,0,16,17,18,0,20,0,0,0,24,0,0,27,0,0],"right":[26,13,10,7,6,0,0,9,0,0,12,0,0,15,0,23,22,19,0,21,0,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,1,1,0,1,0,0,0,1,0,1,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.07491196235965607,0.07543601074789935,0.17287723605999622,0.08950018998851635,0.1692864419552036,0.5958095054538124,-0.13845533458233988,-0.01448965372398341,0.326724328028165,0.6830202690590579,0.11597736085141364,-0.02975589237864789,-0.2589301935060437,0.11459721726030025,-0.2977619450489364,-0.1999683357442427,-0.32310048649637285,-0.3442565426116953,-0.2651431329000554,-0.20110787131212984,-0.19860715922910918,-0.33420141620059085,-0.12100278645584463,-0.19556946941232348,0.5114090290080666,0.3589534795459655,0.012736059316303639,0.3262151492490453],"feature_idx":[7,29,31,7,13,16,0,0,0,4,0,0,9,0,0,17,0,16,4,15,0,0,0,64,0,0,58,0,0],"num_threshold":[4.248495242049359,0.12905940714245254,0.0,3.1354942159291497,0.4529616348038239,452.34558,0.0,0.0,0.0,0.5,0.0,0.0,2.0481560870031212,0.0,0.0,83.049753,0.0,647.1507,0.5,102.9987,0.0,0.0,0.0,0.06549767921609062,0.0,0.0,0.029190659640492278,0.0,0.0],"missing_go_to_left":[1,1,1,1,1,1,0,0,0,1,0,0,1,0,0,0,0,1,1,1,0,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,6,0,0,0,10,0,0,13,0,0,16,0,18,19,20,0,0,0,24,0,0,27,0,0],"right":[26,15,12,9,8,7,0,0,0,11,0,0,14,0,0,17,0,23,22,21,0,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,0,1,1,1,0,1,1,0,1,1,0,1,0,0,0,1,1,1,0,1,1,0,1,1]},{"value":[0.0,0.1487611870449984,0.05759121331199381,0.1461475990010686,0.07686170525777934,0.5660190301811217,-0.013765171037784185,0.5570684518111098,-0.19141037538937378,0.3498295007280432,0.2338765826185945,0.4442055483803767,-0.0053594834445377165,0.8334388146234901,-0.2593886368887354,0.06342326444213303,0.26158614228435867,-0.2028952691803081,-0.30103555338636967,-0.32143760222395945,-0.2443410226747321,-0.16555825622666884,-0.2058664636173692,-0.1972091550176538,-0.1886639046064511,0.012099256350488474,-0.19064876433512445,-0.25463319020089553,-0.17329099594170733],"feature_idx":[27,7,29,7,13,0,0,0,0,58,0,3,0,0,17,1,0,0,0,4,58,7,1,0,0,0,0,0,0],"num_threshold":[0.13126566924036592,3.9889840465642745,0.0,3.1354942159291497,0.4529616348038239,0.0,0.0,0.0,0.0,0.029190659640492278,0.0,0.5,0.0,0.0,83.049753,0.5,0.0,0.0,6.47413063670009,0.5,0.0020811160103390604,5.111987788356544,0.5,0.0,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0],"left":[1,2,3,4,5,0,0,0,0,10,0,12,0,0,15,16,0,0,19,20,21,22,23,0,0,0,0,0,0],"right":[14,9,8,7,6,0,0,0,0,11,0,13,0,0,18,17,0,0,28,27,26,25,24,0,0,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,1,1,0,1,0,1,1,0,0,1,1,0,0,0,0,0,1,1,1,1,1,1]},{"value":[0.0,-0.07711856597194354,0.07140340901798012,-0.03168168827633253,-0.2583831427464022,0.06799830451675107,0.16611707010233162,0.08200938443618534,0.13737489574235096,0.5687022398586706,0.043746614006965424,0.5377180786720654,-0.5042841977578174,-0.07101876663465845,0.5730230758743972,-0.2972619052945999,-0.17982515549801514,-0.32273462011718085,-0.34385236812947245,-0.2646197136545575,-0.18152003952976728,-0.17924360603733122,-0.30475968588051644,-0.16462644614462205,0.35880037480217625,0.25212634185004595,-0.005813904661582825,0.029396423866910482,0.302020634275852],"feature_idx":[7,29,33,9,0,0,7,4,1,0,16,0,0,0,0,17,0,16,4,15,0,0,0,0,58,59,0,0,0],"num_threshold":[4.248495242049359,0.12905940714245254,0.9992535852339767,1.4337801296631965,0.0,0.0,3.1354942159291497,0.5,0.5,0.0,301.144531,0.0,0.0,0.0,0.0,83.049753,0.0,647.1507,0.5,102.9987,0.0,0.0,0.0,0.0,0.029190659640492278,0.0021077020568742895,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,8,9,0,11,0,0,0,0,16,0,18,19,20,0,0,0,0,25,26,0,0,0],"right":[24,15,6,5,0,0,14,13,10,0,12,0,0,0,0,17,0,23,22,21,0,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,0,1,0,1,1,1,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1]},{"value":[0.0,-0.07760337339704823,0.07026553553584038,0.16387812468523583,0.22798268577777817,0.32764684198279515,-0.03996281641949828,0.5529039799398511,0.07775900969021393,0.5092829666791318,-0.11655017164847586,-0.044673809489117394,-0.030793096656577704,-0.245463985609082,0.06745271376280275,-0.29677869448220473,-0.17083389772311436,-0.3223632946024829,-0.34344216291200863,-0.2637697524386077,-0.17244403755327886,-0.17028142573546462,-0.28952170158649065,-0.12100278645584463,-0.16889512383739086,0.5027344496619798,0.35594687612671455,0.027926602673564817,0.22633379104329165],"feature_idx":[7,29,31,4,15,38,0,0,1,0,0,0,9,0,0,17,0,16,4,15,0,0,0,64,0,0,58,0,0],"num_threshold":[4.248495242049359,0.12905940714245254,0.0,0.5,71.048668,0.011026564264471997,0.0,0.0,0.5,0.0,0.0,0.0,1.4337801296631965,0.0,0.0,83.049753,0.0,647.1507,0.5,102.9987,0.0,0.0,0.0,0.06549767921609062,0.0,0.0,0.0020811160103390604,0.0,0.0],"missing_go_to_left":[1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0],"left":[1,2,3,4,5,6,0,0,9,0,0,0,13,0,0,16,0,18,19,20,0,0,0,24,0,0,27,0,0],"right":[26,15,12,11,8,7,0,0,10,0,0,0,14,0,0,17,0,23,22,21,0,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0,0,1,1,1,0,1,1,0,1,1]},{"value":[0.0,0.14202618835079311,0.06791723640172145,0.15299760847946298,0.07182568749376404,0.4816377676821393,-0.021408713038463034,0.29041566647802036,0.07424138289275213,0.5730002824387725,-0.13775395844566224,0.3797008753008963,0.7653491526263587,0.16614002708378345,-0.2592910819999791,0.06441363406438676,0.22208911390418395,-0.17521755306023615,-0.301053208000839,-0.2365587046864957,-0.1543603787103217,-0.19532832163332373,-0.16984291263304546,-0.16175445778748881,0.008628142205940038,-0.1163339299878171,-0.3656888774373506,-0.2215108099807516,-0.04943402837216997],"feature_idx":[27,7,29,7,13,0,0,3,0,0,0,17,0,0,17,1,0,0,4,58,7,1,0,0,0,0,36,0,0],"num_threshold":[0.13126566924036592,4.356708826689592,0.0,3.1780538303479458,0.4529616348038239,0.0,0.0,0.5,0.0,0.0,0.0,119.0352,0.0,0.0,83.049753,0.5,0.0,0.0,0.5,0.0020811160103390604,5.111987788356544,0.5,0.0,0.0,0.0,0.0,0.4441143163482063,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0],"left":[1,2,3,4,5,0,0,8,0,0,0,12,0,0,15,16,0,0,19,20,21,22,0,0,0,0,27,0,0],"right":[14,11,10,7,6,0,0,9,0,0,0,13,0,0,18,17,0,0,26,25,24,23,0,0,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,1,0,1,1,0,0,1,1,0,0,0,0,1,1,1,1,0,1,1]},{"value":[0.0,0.19076291972308831,0.07117324751727946,-0.0748449919131005,0.11932556752342668,0.2572705859528251,0.5089848670264427,0.030510878821620582,0.049013057618824976,0.3413985980218443,0.09073893935793756,0.7775639610642255,-0.1291627669712877,-0.2096130727430205,-0.3052823869486063,-0.2203148405130332,-0.15797866708217648,-0.091807175922006,0.14245033730907847,-0.16135076700139328,-0.20971575989889202,-0.053732878610783366,-0.21372605420538698,0.039632786215910265,0.1922490272170819,0.025399944497274875,0.36015899146191827,0.004105121408458245,0.0009790301857833584],"feature_idx":[28,7,3,0,16,22,0,0,0,3,0,0,7,33,4,2,0,29,0,0,0,9,0,0,27,0,15,0,0],"num_threshold":[0.004414856341976173,3.4965075614664802,0.5,0.0,234.1131,0.38992749063888654,0.0,0.0,0.0,0.5,0.0,0.0,4.248495242049359,0.7946609839634144,0.5,0.5,0.0,0.6618440598894667,0.0,0.0,0.0,1.4337801296631965,0.0,0.0,0.15238212990438513,0.0,55.0205,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,0,0,10,0,0,13,14,15,16,0,18,0,0,0,22,0,0,25,0,27,0,0],"right":[12,9,4,0,8,7,0,0,0,11,0,0,24,21,20,17,0,19,0,0,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,1,0,1,1,0,0,0,0,1,0,1,1,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.16820926883833393,0.061100078001750845,0.11096631804969122,0.1877181073031189,-0.009210621643942573,0.49997489992339017,-0.009685243493884955,-0.06743128110194281,0.28025517423005725,0.7271599316564586,0.08617355181996862,0.2528644245757544,-0.013478253555936348,-0.12906001085680155,-0.20947904574508266,-0.3048170105309623,-0.2197234238234864,-0.15007973372806768,-0.091807175922006,0.13532782044362454,-0.15328322865132354,-0.19922997190394742,-0.05413870887775513,-0.20303975149511758,0.03765114690511471,0.19222684688518898,0.024129947272411204,0.002139348911610739],"feature_idx":[28,7,22,16,3,0,0,0,0,11,0,16,0,0,7,33,4,2,0,29,0,0,0,9,0,0,27,0,0],"num_threshold":[0.004414856341976173,3.332204510175204,0.3800133188304368,271.191879,0.5,0.0,0.0,0.0,0.0,190.65678120765847,0.0,471.3762,0.0,0.0,4.248495242049359,0.7946609839634144,0.5,0.5,0.0,0.6618440598894667,0.0,0.0,0.0,1.4337801296631965,0.0,0.0,0.15238212990438513,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,1,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0],"left":[1,2,3,4,5,0,0,0,0,10,0,12,0,0,15,16,17,18,0,20,0,0,0,24,0,0,27,0,0],"right":[14,9,8,7,6,0,0,0,0,11,0,13,0,0,26,23,22,19,0,21,0,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,1,1,0,1,0,1,1,0,0,0,0,1,0,1,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.08337561193114382,0.06630662073629737,-0.07247635946924831,0.11462454721237243,0.40928894161357693,0.06762806496202778,-0.1600478914375864,-0.1193745643451814,0.004901273082013269,-0.18972666148203668,-0.20546479812131954,-0.14260221913571183,-0.14564860026384335,0.16141424848443897,0.23666171408623976,0.35817318885606236,0.7097811933706201,0.07248083470491024,0.723878525215276,-0.012804340878139442,0.16050840866705815,0.06186839501857087,0.3496882865763952,0.002032381466030131,-0.13779810722371907,-0.04060499401733689,-0.04743556454914018,0.08095201737369173],"feature_idx":[7,29,3,0,16,0,0,28,1,0,28,0,0,0,4,28,11,0,16,0,0,27,0,1,0,0,9,0,0],"num_threshold":[3.332204510175204,0.0,0.5,0.0,234.1131,0.0,0.0,0.7572430295779127,0.5,0.0,0.16104342324683554,0.0,0.0,0.0,0.5,0.0,210.01868785000144,0.0,471.3762,0.0,0.0,0.31125754450547904,0.0,0.5,0.0,0.0,3.580871947050632,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,1,0,0,1,0,0,0,1,1,1,0,1,0,0,1,0,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,0,11,0,0,0,15,16,17,0,19,0,0,22,0,24,0,0,27,0,0],"right":[14,7,4,0,6,0,0,13,10,0,12,0,0,0,26,21,18,0,20,0,0,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,1,0,1,1,0,1,1]},{"value":[0.0,-0.08169676925120699,0.026989251266939553,0.38664344386986227,-0.0845241641275246,-0.18518726090305299,-0.11610924269435335,-0.006280749733289782,-0.13836617025065118,-0.13545921151772353,0.15263590862996237,0.22549002529904036,0.6163564406904758,0.16038162147362203,0.11502512115610898,0.8663564406904758,0.06085795026301258,0.2371438621684277,-0.0010610382848984302,0.3496914182237264,-0.13090820186253307,0.0019307623927286245,-0.04295753092233913,-0.13651890517166332,-0.18174717732686269,-0.14280332082691416,0.008836092148267837,0.2272576545882192,0.054536241292826665],"feature_idx":[7,26,13,0,0,1,28,0,0,0,4,29,0,27,8,0,21,0,0,2,0,0,33,50,13,0,0,0,0],"num_threshold":[3.332204510175204,0.9999895305240649,0.4529616348038239,0.0,0.0,0.5,0.7572430295779127,0.0,0.0,0.0,0.5,0.0,0.0,0.31125754450547904,0.15217391304347827,0.0,276.207397,0.0,0.0,0.5,0.0,0.0,0.9345451379918451,0.0,0.8423403575709557,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,0,0,0,1,1,0,1,0,0,1,0,0,1,0,0,0,1,1,0,0,0,0],"left":[1,2,3,0,0,6,7,0,0,0,11,12,0,14,15,0,17,0,0,20,0,0,23,24,25,0,0,0,0],"right":[10,5,4,0,0,9,8,0,0,0,22,13,0,19,16,0,18,0,0,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.08213515333847927,0.06490213282583063,-0.08635056545527889,0.367311271676369,-0.15745259605335132,-0.13144786173811857,-0.08971442128106882,0.006533287753374673,-0.1633856222689318,-0.14887510892810862,-0.12868625094183736,0.155262445872297,0.3088955148324083,0.5855386186559521,0.059891866524688454,0.0730416442595466,0.03324702518419734,0.09062898800497834,-0.0010079863706536686,0.08632939480963914,-0.0810193240950808,-0.1856984186100625,0.15190608053965562,-0.1951192157922554,0.0035027302836610377,0.31354487662840125,0.0018342242730920333,-0.12436279176940648],"feature_idx":[7,29,3,0,0,9,0,1,0,28,0,0,28,20,0,0,24,4,9,0,0,12,13,0,0,0,1,0,0],"num_threshold":[3.332204510175204,0.0,0.5,0.0,0.0,1.0774937534322335,0.0,0.5,0.0,0.16104342324683554,0.0,0.0,0.0,263.08136,0.0,0.0,0.9999954124126351,0.5,2.39558143179016,0.0,0.0,113.64988273456954,0.5343072604323563,0.0,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,0,1,0,0,1,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0],"left":[1,2,3,0,0,6,0,8,0,10,0,0,13,14,0,0,17,18,19,0,0,22,23,0,0,0,27,0,0],"right":[12,5,4,0,0,7,0,9,0,11,0,0,16,15,0,0,26,21,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,1,0,1,0,1,1,0,0,1,1,0,0,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,-0.08324127274071602,0.016691113096310436,0.054156967600757715,0.37574012540537965,-0.01846341695641982,-0.19491126048213803,-0.18934299590231704,-0.2792786223416321,-0.12819099534770081,-0.12212675451613429,-0.11687074846121506,-0.007842842040246724,-0.12487546865121271,0.1536143186003406,0.3009223893315036,0.34585057163339417,0.02253249829538753,0.6141973807347679,0.056897273198454106,0.07477834245388994,0.0352636526484759,-0.05627606374112281,-0.051368771209474674,0.16619536947147218,0.02974836282939073,0.3135892406782645,-0.11814465218093613,0.001742513059437556],"feature_idx":[7,29,10,26,0,0,0,2,20,0,0,8,0,0,28,20,3,0,0,0,24,58,33,0,0,0,2,0,0],"num_threshold":[3.332204510175204,0.07801988800993247,0.6774280200260546,0.5435371512431498,0.0,0.0,0.0,0.5,255.102112,0.0,0.0,0.7630908230697618,0.0,0.0,0.0,263.08136,0.5,0.0,0.0,0.0,0.9999954124126351,0.0036022928462495834,0.9244353323082182,0.0,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,1,0,0,1,0,0,1,1,0,0,0,0,1,1,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,8,9,0,0,12,0,0,15,16,17,0,0,0,21,22,23,0,0,0,27,0,0],"right":[14,7,6,5,0,0,0,11,10,0,0,13,0,0,20,19,18,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,-0.08214156680955441,0.018683867328367607,0.1064011479302567,0.15743864902363822,0.37441155768670636,0.029882185252400037,0.5371931873950058,-0.2442777102109359,-0.07379299325228442,-0.11112917511715743,-0.18919153694351926,-0.2789391882339882,-0.12178144558031577,-0.11602041679032755,-0.11687074846121506,-0.007450699938234351,-0.11863169521865213,0.15166960743177443,0.21857671599909462,0.5255518186864162,0.1531304602567922,0.10580222713663721,0.7630518186864162,0.028260944687921355,0.3506731265742175,0.003415903832890166,-0.11223741957188925,-0.013435885802558546],"feature_idx":[7,29,13,4,16,0,1,0,0,0,0,2,20,0,0,8,0,0,4,29,0,27,8,0,0,1,0,0,0],"num_threshold":[3.332204510175204,0.07801988800993247,0.4529616348038239,0.5,249.1962,0.0,0.5,0.0,0.0,0.0,0.0,0.5,255.102112,0.0,0.0,0.7630908230697618,0.0,0.0,0.5,0.0,0.0,0.31125754450547904,0.1344100474198647,0.0,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,1,0,0,0,0,0,0,1,1,0,0,1,0,0,1,1,0,1,0,0,0,0,0,0,0],"left":[1,2,3,4,5,0,7,0,0,0,0,12,13,0,0,16,0,0,19,20,0,22,23,0,0,26,0,0,0],"right":[18,11,10,9,6,0,8,0,0,0,0,15,14,0,0,17,0,0,28,21,0,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,0,0,1,0,1,1,1,1,0,0,1,1,0,1,1,0,0,1,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.08166363955988157,0.019201927835937486,0.06916867920047495,0.3383601593704437,0.024775943111541212,-0.16278954074782492,-0.1887562389537852,-0.11033100439657773,-0.11687074846121506,-0.007078164941322563,-0.1127001104577195,0.14354271357509715,0.290260979917917,0.03029298768525166,0.34345174513613136,0.5588985026252676,0.049500465097505254,0.6234008420026961,-0.06768182564277474,0.06502271578297632,0.02371817325324626,0.7661586246412517,-0.0008589450186452291,-0.035814726778610154,0.012666146955759317,0.3146539778895564,0.0014845922148211345,-0.10662554859329472],"feature_idx":[7,29,10,26,0,0,0,2,0,8,0,0,28,3,0,11,0,16,0,0,24,11,0,58,0,0,1,0,0],"num_threshold":[3.332204510175204,0.07801988800993247,0.5197130939738867,0.5602944555803165,0.0,0.0,0.0,0.5,0.0,0.7630908230697618,0.0,0.0,0.0,0.5,0.0,210.01868785000144,0.0,461.275464,0.0,0.0,0.9999954124126351,128.74882839311144,0.0,0.0028018976516534047,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,0,0,0],"left":[1,2,3,4,0,0,0,8,0,10,0,0,13,14,0,16,0,18,0,0,21,22,0,24,0,0,27,0,0],"right":[12,7,6,5,0,0,0,9,0,11,0,0,20,15,0,17,0,19,0,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,1,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.154451063030788,0.03612597700844952,0.1107751367248812,-0.1579780862865782,0.20440594287780683,-0.0663048551221415,0.38603073800079246,-0.0682702364032302,0.24505134097302975,0.3078308620847296,0.048956802026717844,0.5981573014724727,0.07316675762321757,0.1656577826797598,-0.059350358807170524,-0.07499760872889034,-0.1573296099850813,-0.10706510493483351,-0.08745633150347794,0.007325208711696263,-0.16373183452831247,-0.1275284901296427,-0.10482802960959355,0.048500973314040165,-0.0004068970892770807,0.3146539778895564,0.0014103626040800066,-0.1012942711636299],"feature_idx":[28,9,16,3,0,9,0,0,0,11,3,0,0,16,0,0,7,9,0,1,0,28,0,0,24,0,1,0,0],"num_threshold":[0.004414856341976173,1.8257268158064972,249.1962,0.5,0.0,0.5674509442539184,0.0,0.0,0.0,186.10645143825207,0.5,0.0,0.0,507.319763,0.0,0.0,3.332204510175204,1.0774937534322335,0.0,0.5,0.0,0.16104342324683554,0.0,0.0,0.9999954124126351,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,0,0,14,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[16,9,8,5,0,7,0,0,0,13,12,0,0,15,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,1,1,0,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.1521520896688092,0.03601569265520581,0.1099129658121409,-0.1500791819722494,0.2021371323828684,0.32587900700128786,0.3188395923301037,-0.06485672458306872,0.24107648694949962,0.3026066339624378,0.04650896192538206,0.568249436398849,0.07261242794945313,0.15737489354577186,-0.05638284086681189,-0.07465642116291446,-0.15676096875408269,-0.10171184968809187,-0.08636076142350069,0.006958948276111521,-0.16200476582455942,-0.12115206562316061,-0.09958662812911392,0.048500973314040165,-0.0003865522348132089,0.3146539778895564,0.001339844473876184,-0.09622955760544834],"feature_idx":[28,9,16,3,0,58,0,0,0,11,3,0,0,16,0,0,7,9,0,1,0,28,0,0,24,0,1,0,0],"num_threshold":[0.004414856341976173,1.8257268158064972,249.1962,0.5,0.0,0.004617592436265406,0.0,0.0,0.0,186.10645143825207,0.5,0.0,0.0,507.319763,0.0,0.0,3.332204510175204,1.0774937534322335,0.0,0.5,0.0,0.16104342324683554,0.0,0.0,0.9999954124126351,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,0,0,14,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[16,9,8,5,0,7,0,0,0,13,12,0,0,15,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,1,1,0,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.15205239201475484,0.2513475335120037,0.28083690959437074,-0.0426674891072377,0.328332958336895,0.5272378839176103,0.05607644655479334,-0.01790829119525945,0.05017838607935946,0.11715150665122334,-0.08820072828156818,-0.07412233416212646,-0.15598091895593907,-0.09662625720368734,-0.08574160160950108,0.04486490376242447,0.008966232770024797,-0.15637014862918727,-0.16102871549521627,-0.11509446234200259,-0.09460729672265825,0.04866610173933185,-0.004787330574462988,-0.05740189751240728,0.007597936820183904,0.3156438507714863,-0.09141807972517597,0.0012728522501824103],"feature_idx":[28,15,11,3,0,27,0,0,0,10,0,0,7,9,0,1,66,0,0,28,0,0,24,59,0,0,2,0,0],"num_threshold":[0.004414856341976173,55.0544,229.90777958753736,0.5,0.0,0.0,0.0,0.0,0.0,0.5197130939738867,0.0,0.0,3.332204510175204,1.0774937534322335,0.0,0.5,0.17442972681974112,0.0,0.0,0.16104342324683554,0.0,0.0,0.9999954124126351,0.013419501733050527,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,6,0,0,0,10,0,0,13,14,0,16,17,0,0,20,0,0,23,24,0,0,27,0,0],"right":[12,9,8,5,0,7,0,0,0,11,0,0,22,15,0,19,18,0,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,1,1,0,0,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.1501324006703884,0.250375532579681,0.27979456830047855,-0.0405341146518758,0.3270502476016198,0.50087598972173,0.05327262422705381,-0.017012876635496357,0.0454860832162364,-0.070440545511252,-0.15003037396684107,-0.0972256060187579,0.023172268763994208,-0.05963713301180767,-0.1444558729933936,-0.21335111671973783,0.006162689223804741,0.02949442677760139,0.014429508293765282,-0.18061347140302728,-0.12201653851989391,-0.0898633564536807,-0.09179494434350294,0.048944674014724146,-0.00021762978949944057,0.3157603064046546,-0.08684717573891715,0.0012092096376733253],"feature_idx":[28,15,11,3,0,27,0,0,0,0,7,8,1,62,15,61,0,0,0,0,28,0,0,0,24,0,2,0,0],"num_threshold":[0.004414856341976173,55.0544,229.90777958753736,0.5,0.0,0.0,0.0,0.0,0.0,0.0,3.332204510175204,0.7630908230697618,0.5,0.024797492365824358,188.447861,0.029651594882406353,0.0,0.0,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.9999954124126351,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,0,0,1,1,0,1,1,1,0,0,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,0,0,11,12,13,14,15,16,0,0,0,0,21,0,0,0,25,0,27,0,0],"right":[10,9,8,5,0,7,0,0,0,0,24,23,20,19,18,17,0,0,0,0,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.14841218820180405,0.24741736035508857,0.2870306729643577,-0.014163549621610583,0.6057752026740142,-0.20573545815779504,0.3376884795010832,0.47680217957063076,0.09447549966977427,-0.07268054150878044,0.4487036576529011,-0.023375744734351757,0.04321177905542442,-0.07001240057234877,-0.14931680498197084,-0.09611322421837235,0.0240791101438553,-0.10857577070081065,0.17165281209511374,-0.1793588001105345,-0.11591571159389923,-0.08537018863099669,-0.08720519712632786,0.048944674014724146,-0.0002067483000246284,0.3157603064046546,-0.08250481695197127,0.00114874915578973],"feature_idx":[28,15,11,3,15,0,0,27,0,0,16,0,0,0,7,8,1,62,0,0,28,0,0,0,24,0,2,0,0],"num_threshold":[0.004414856341976173,55.0544,210.01868785000144,0.5,40.679588,0.0,0.0,0.0,0.0,0.0,416.0237,0.0,0.0,0.0,3.332204510175204,0.7630908230697618,0.5,0.11471751587602574,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.9999954124126351,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,0,1,0,0,1,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,0,0,0,15,16,17,18,0,0,21,0,0,0,25,0,27,0,0],"right":[14,13,10,7,6,0,0,9,0,0,12,0,0,0,24,23,20,19,0,0,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,1,1,1,0,0,0,0,1,1,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.14611460889255543,0.24485724154193766,0.2844636619011309,-0.04130999411834573,0.3358443299010553,0.4529620705920991,0.08975172468628544,-0.07518384811636471,0.42626847477025614,-0.022206957497634152,0.04105119010265312,-0.07280234355446619,-0.15396667141901238,-0.21774921188164365,-0.2835029602353194,-0.16397277720997377,-0.08281540422492562,-0.08284493727001152,-0.08209590039164924,0.010116756419965256,-0.156022051458308,-0.09744312671921272,-0.08111525463229158,0.048944674014724146,-0.00019641088502346806,0.3157603064046546,-0.07837957610437273,0.0010913116980002969],"feature_idx":[28,15,11,3,0,27,0,0,16,0,0,0,7,9,15,11,0,0,0,1,0,28,0,0,24,0,2,0,0],"num_threshold":[0.004414856341976173,55.0544,210.01868785000144,0.5,0.0,0.0,0.0,0.0,416.0237,0.0,0.0,0.0,3.332204510175204,1.0774937534322335,124.9811,195.11836568669509,0.0,0.0,0.0,0.5,0.0,0.16104342324683554,0.0,0.0,0.9999954124126351,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,0,0,0,1,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,0,13,14,15,16,0,0,0,20,0,22,0,0,25,0,27,0,0],"right":[12,11,8,5,0,7,0,0,10,0,0,0,24,19,18,17,0,0,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,1,0,0,0,0,1,1,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,-0.07940940852244864,0.019791875273588732,0.10870087419585221,0.2263409571654439,0.031226978672816586,-0.11250019341883899,-0.18473501075780688,-0.11535599443753748,-0.002933448844019182,-0.078702690406511,-0.2708317615468694,-0.0799044038640055,-0.07669514724452836,0.13503763508738614,0.27585794416409537,0.3334089748467095,0.4070119891702355,0.021131134116065323,0.518845652645426,-0.06190304902025865,0.010108707670624995,0.05967417350327488,0.01730187812791807,0.6169556054415501,-0.0005597774542206224,0.3157603064046546,-0.07446059729915415,0.0010367461131004063],"feature_idx":[7,29,13,16,0,0,0,1,8,0,0,20,0,0,28,4,11,0,67,0,0,0,24,11,0,0,2,0,0],"num_threshold":[3.332204510175204,0.07801988800993247,0.4529616348038239,249.1962,0.0,0.0,0.0,0.5,0.7630908230697618,0.0,0.0,255.102112,0.0,0.0,0.0,0.5,210.01868785000144,0.0,0.0,0.0,0.0,0.0,0.9999954124126351,128.74882839311144,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,0,1,0,0,1,0,0,1,1,1,0,1,0,0,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,0,8,9,0,0,12,0,0,15,16,17,0,19,0,0,0,23,24,0,0,27,0,0],"right":[14,7,6,5,0,0,0,11,10,0,0,13,0,0,22,21,18,0,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.14461233128578282,0.2433527217906838,0.2830874932716445,-0.04364235107950912,0.33496122846188914,0.4144647405388924,0.08501009995939608,-0.07772449211447252,0.3855769736033736,-0.021068620750041234,0.038493195213989397,-0.07243198023439915,-0.15285695571873503,-0.10186803923627846,0.00603296680387401,-0.09885953951232303,0.23145314969441932,-0.17659947896966322,-0.10120982080352281,-0.0732111591056059,-0.07476755588618537,0.04820601591897947,-0.005362822015473042,-0.2024405243508051,0.002561898573986099,0.3157603064046546,-0.07073756743419644,0.0009849088074453504],"feature_idx":[28,15,11,3,0,27,0,0,16,0,0,0,7,8,1,36,0,0,28,0,0,0,24,59,0,0,2,0,0],"num_threshold":[0.004414856341976173,55.0544,210.01868785000144,0.5,0.0,0.0,0.0,0.0,416.0237,0.0,0.0,0.0,3.332204510175204,0.7630908230697618,0.5,0.196502669111103,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.9999954124126351,0.0012667998263320192,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,1,0,0,1,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,0,13,14,15,16,0,0,19,0,0,0,23,24,0,0,27,0,0],"right":[12,11,8,5,0,7,0,0,10,0,0,0,22,21,18,17,0,0,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,1,0,0,0,0,1,1,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,-0.07768740843498001,0.020685031933922085,0.16373897695737707,-0.10527184265466794,-0.18213303555945654,-0.1112727445413581,-0.006779958495149608,-0.07102917809187606,-0.2700685196035135,-0.07093668161635858,-0.06918693526581876,0.11609469176269355,0.172473607358284,0.27379355733197186,0.31039729744358946,0.09014014822688132,0.49966622305170605,0.024738909360305695,0.48629956345960323,-0.05775446553174355,0.1089759286244247,0.043541334088513045,0.07412354862590576,-0.012801677781908794,0.33650864470752395,-0.0672006890624866,0.0026961797934976772,-0.015336833428503028],"feature_idx":[7,29,13,0,0,1,8,0,0,20,0,0,4,28,11,7,0,0,67,0,0,27,0,0,0,2,0,0,0],"num_threshold":[3.332204510175204,0.07801988800993247,0.4529616348038239,0.0,0.0,0.5,0.7630908230697618,0.0,0.0,255.102112,0.0,0.0,0.5,0.0,210.01868785000144,3.9889840465642745,0.0,0.0,0.0,0.0,0.0,0.31125754450547904,6.080245933904923,0.0,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,0],"left":[1,2,3,0,0,6,7,0,0,10,0,0,13,14,15,16,0,0,19,0,0,22,23,0,0,26,0,0,0],"right":[12,5,4,0,0,9,8,0,0,11,0,0,28,21,18,17,0,0,20,0,0,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,1,0,0,1,1,0,1,1,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.07863211331619163,0.018208953615645215,0.052455042865630824,0.22768396569779734,-0.005050683413222502,-0.1342285779963884,-0.18145174772306344,-0.1112727445413581,-0.006440960570392207,-0.06747771918728222,-0.26854168797446837,-0.0673898475355406,-0.06572758850252783,0.11774175648504914,0.17367663957279403,0.33934566161713314,0.10740293236588845,0.04136478567124624,0.561678410711233,0.015427160290108835,0.07041737119461047,-0.012161593892813372,0.33703493544299545,0.0025613708038228823,-0.06384065460936235,-0.03242820002518322,0.008702538215525024,-0.025548432472727714],"feature_idx":[7,29,8,26,0,0,0,1,8,0,0,20,0,0,4,28,0,27,18,0,7,0,0,1,0,0,39,0,0],"num_threshold":[3.332204510175204,0.07801988800993247,0.814783430564156,0.5435371512431498,0.0,0.0,0.0,0.5,0.7630908230697618,0.0,0.0,255.102112,0.0,0.0,0.5,0.0,0.0,0.31125754450547904,79.0572,0.0,5.407171771460119,0.0,0.0,0.5,0.0,0.0,0.038601151503399087,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,0,0,1,0,0,1,1,0,1,0,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,4,0,0,0,8,9,0,0,12,0,0,15,16,0,18,19,0,21,0,0,24,0,0,27,0,0],"right":[14,7,6,5,0,0,0,11,10,0,0,13,0,0,26,17,0,23,20,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.04727317411307693,0.05344907827569069,-0.12177041529090965,0.078696916826169,0.11928291191028711,0.30338324978464226,0.10434808288521467,-0.04147098876965565,-0.1326671495202117,-0.08704477977954615,-0.00192870887599833,0.007634007924207076,-0.04470282970694637,-0.16801045647422644,-0.09119829412799998,-0.06283134705595561,-0.0641038332279182,0.1733529184409923,0.12916654633970726,0.31054541233725164,0.48209062881826414,-0.07878727444256277,0.30842780870513775,-0.0718340253360129,0.024251481637126822,0.5335944901756715,-0.0005199659875231077,0.0021709261154207126],"feature_idx":[7,31,9,0,4,1,0,0,0,8,1,9,0,0,28,0,0,0,27,28,19,0,16,0,0,18,0,0,0],"num_threshold":[4.248495242049359,0.044179486126832014,0.666885678291477,0.0,0.5,0.5,0.0,0.0,0.0,0.7630908230697618,0.5,2.8512511998698615,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.31125754450547904,0.0,207.099457,0.0,416.0237,0.0,0.0,79.0572,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,6,0,0,0,10,11,12,0,0,15,0,0,0,19,20,21,0,23,0,0,26,0,0,0],"right":[18,9,4,0,8,7,0,0,0,17,14,13,0,0,16,0,0,0,28,25,22,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,1,1,0,0,0,1,1,0,1,1,1,0,0,0,1,0,1,1,0,1,1,1]},{"value":[0.0,-0.04733230686892946,0.05328931172436497,-0.10545776019179486,0.08497282543699672,0.12848843124648013,0.2902211257741259,0.10610306515986992,-0.03939743933117299,-0.1326409608125459,-0.08729554305672864,-0.003951293360050883,0.007252307527996749,-0.042467688221599076,-0.16657566504288213,-0.08663837942160005,-0.05968977970315788,-0.0608986415665223,0.16825976637273013,0.12412238996011747,0.2970592681240522,0.457986097377351,-0.04475907008965119,0.3221878253159101,-0.0682423240692124,0.024090346491231165,0.5069147656668879,-0.0004939676881470234,0.002062379809649784],"feature_idx":[7,31,9,0,4,1,0,0,0,8,1,9,0,0,28,0,0,0,27,28,11,0,16,0,0,18,0,0,0],"num_threshold":[4.248495242049359,0.044179486126832014,0.8687410333758591,0.0,0.5,0.5,0.0,0.0,0.0,0.7630908230697618,0.5,2.8512511998698615,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.31125754450547904,0.0,186.10645143825207,0.0,416.0237,0.0,0.0,79.0572,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,6,0,0,0,10,11,12,0,0,15,0,0,0,19,20,21,0,23,0,0,26,0,0,0],"right":[18,9,4,0,8,7,0,0,0,17,14,13,0,0,16,0,0,0,28,25,22,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,1,1,0,0,0,1,1,0,1,1,1,0,0,0,1,0,1,1,0,1,1,1]},{"value":[0.0,-0.049720085647037095,0.04898329144039259,-0.11040900651677443,0.07264317057381356,0.14286971710326526,-0.037427567364614237,-0.13340234625278874,-0.08846468022693535,-0.00799646232815599,0.006889692151596983,-0.04034430381051912,-0.16500875061822248,-0.08230646045052002,-0.0567052907179999,-0.057853709488196264,0.16467057971100038,0.1214331655738518,0.2897545480290819,0.4350867925084835,-0.046010253961973654,0.30607843405011476,-0.06483020786575189,0.024070814958204362,0.4815690273835436,-0.0004692693037398499,0.3764792254236114,0.00222163696737816,-0.0012907308974622112],"feature_idx":[7,31,9,0,4,0,0,8,1,9,0,0,28,0,0,0,27,28,11,0,16,0,0,18,0,0,15,0,0],"num_threshold":[4.248495242049359,0.044179486126832014,0.666885678291477,0.0,0.5,0.0,0.0,0.7630908230697618,0.5,2.8512511998698615,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.31125754450547904,0.0,186.10645143825207,0.0,416.0237,0.0,0.0,79.0572,0.0,0.0,52.8314590454,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,1,0,1,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,8,9,10,0,0,13,0,0,0,17,18,19,0,21,0,0,24,0,0,27,0,0],"right":[16,7,4,0,6,0,0,15,12,11,0,0,14,0,0,0,26,23,20,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,0,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.04871274674449568,0.038389296564407906,0.06108302430131277,-0.038309577896140826,0.0976637968804809,0.058925394494851395,0.14719088061207622,-0.09413373668764838,0.2685665836302564,-0.110635289996595,-0.14298394685298044,-0.09646099542243972,-0.00107623399277621,-0.19083937414147364,-0.060244874235318414,-0.053870026182099906,-0.05496102401378647,0.1658224684985605,0.12118778810474032,0.28908494971553783,0.4133324528830592,-0.04598070703644223,0.29077451234760904,-0.061588697472464204,0.024070814958204362,0.4574905760143665,-0.0004458058385527153,0.0018481789707983866],"feature_idx":[7,31,8,3,0,2,16,0,0,0,0,8,1,0,20,0,0,0,27,28,11,0,16,0,0,18,0,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.814783430564156,0.5,0.0,0.5,317.104309,0.0,0.0,0.0,0.0,0.7630908230697618,0.5,0.0,299.0906,0.0,0.0,0.0,0.31125754450547904,0.0,186.10645143825207,0.0,416.0237,0.0,0.0,79.0572,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,1,0,0,0,0,1,0,0,1,0,0,0,1,1,1,0,1,0,0,0,0,0,0],"left":[1,2,3,4,0,6,7,0,0,0,0,12,13,0,15,0,0,0,19,20,21,0,23,0,0,26,0,0,0],"right":[18,11,10,5,0,9,8,0,0,0,0,17,14,0,16,0,0,0,28,25,22,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,1,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,1,1,1]},{"value":[0.0,-0.04841271371579112,0.0387789837752951,0.06081268908319187,-0.03639409900133366,0.09695866085745375,0.2551382544487435,0.05800415182336706,0.13983133658147226,-0.08942704985326594,-0.1051035254967653,-0.14278095643673178,-0.096323739570251,-0.0010224222931373816,-0.051176524872994913,-0.052212972813097204,0.16517847992615445,0.12204469727440168,0.29142332632747137,0.3926658302389061,-0.07937559618547964,0.24705437968419908,-0.05850926259884091,0.024070814958204362,0.4346160472136482,-0.0004235155466250973,0.3764792254236114,0.0020181461704694924,-0.0013186033011290733],"feature_idx":[7,31,8,3,0,1,0,16,0,0,0,8,1,0,0,0,27,28,19,0,16,0,0,18,0,0,15,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.814783430564156,0.5,0.0,0.5,0.0,317.104309,0.0,0.0,0.0,0.7630908230697618,0.5,0.0,0.0,0.0,0.31125754450547904,0.0,207.099457,0.0,416.0237,0.0,0.0,79.0572,0.0,0.0,52.8314590454,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,1,0,0,0,0,0,1,0,0],"left":[1,2,3,4,0,6,0,8,0,0,0,12,13,0,0,0,17,18,19,0,21,0,0,24,0,0,27,0,0],"right":[16,11,10,5,0,7,0,9,0,0,0,15,14,0,0,0,26,23,20,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.04797739545799873,0.03927926296176154,0.0618088773350361,-0.03457439405126692,0.09684352425565611,0.24238134172630624,0.05827660540015204,0.12137512038842431,-0.16387948142920816,-0.09984834922192701,-0.1424159582924473,-0.09594825132974236,-0.005558241649064581,0.00665014035831284,-0.055384209750508444,-0.18979427903721913,-0.05467380427990261,-0.04861769862934509,-0.049602324172442286,0.17139247013812486,0.12789428767508443,0.30749742208479836,0.3730325387269609,0.00015161817979425507,0.024006360899846098,0.4128852448529656,-0.0004023397692940023,0.0016548627137350281],"feature_idx":[7,31,10,3,0,1,0,16,0,0,0,8,1,9,0,0,20,0,0,0,27,28,11,0,0,18,0,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.6774280200260546,0.5,0.0,0.5,0.0,370.129639,0.0,0.0,0.0,0.7630908230697618,0.5,2.8512511998698615,0.0,0.0,299.0906,0.0,0.0,0.0,0.31125754450547904,0.0,186.10645143825207,0.0,0.0,79.0572,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,0,1,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,6,0,8,0,0,0,12,13,14,0,0,17,0,0,0,21,22,23,0,0,26,0,0,0],"right":[20,11,10,5,0,7,0,9,0,0,0,19,16,15,0,0,18,0,0,0,28,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,1,1,0,0,0,1,1,0,1,1,1,0,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.04922131447672549,0.03648757687613658,0.057912988010349796,-0.03284567434870347,0.09075185483914792,0.23026227463999085,0.06510378138282001,-0.09485593176083072,-0.14198466180885766,-0.09536384747695627,-0.005558241649064581,0.006317633340397144,-0.0526149992629831,-0.1886031242015949,-0.0519401140659074,-0.04618681369787776,-0.0471222079638201,0.16997549269553683,0.1278204880476544,0.30738890132192176,0.35438091179061293,0.00014403727080463115,0.02395264918622804,0.39224098261031737,-0.0003822227808292667,0.3764792254236114,0.0018344957262591778,-0.001335416271759371],"feature_idx":[7,31,8,3,0,1,0,0,0,8,1,9,0,0,20,0,0,0,27,28,11,0,0,18,0,0,15,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.814783430564156,0.5,0.0,0.5,0.0,0.0,0.0,0.7630908230697618,0.5,2.8512511998698615,0.0,0.0,299.0906,0.0,0.0,0.0,0.31125754450547904,0.0,186.10645143825207,0.0,0.0,79.0572,0.0,0.0,52.8314590454,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,1,1,1,0,0,0,0,0,1,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,12,0,0,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,9,8,5,0,7,0,0,0,17,14,13,0,0,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,0,1,1,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.10259159472656103,0.06791771926112453,0.07805723940010738,0.10963152487725517,0.012465929638452522,-0.10391683174366301,0.34685626416300713,0.02274386285960084,0.33666186620108224,-0.09050528969365078,-0.006167611197622809,0.05870845069316642,-0.15153899475837218,-0.03963594426724768,0.013028566555377097,0.09854472468822474,0.06320068453880978,-0.03940365902070671,-0.04976821800202499,0.027747428469028,-0.03904688900694353,-0.18001448455916932,-0.1920004930597003,-0.1593674825612662,-0.04476609756562908,-1.7745486478304428e-05,-0.04476609756562908,0.01372935771923114],"feature_idx":[28,9,12,10,0,0,0,38,0,0,10,22,27,18,0,0,1,0,0,14,0,0,48,28,59,0,0,0,0],"num_threshold":[0.004414856341976173,3.6669079894665684,113.64988273456954,0.31390688696305474,0.0,0.0,0.0,0.14976307004664305,0.0,0.0,0.36760847059601903,0.26674778243058417,0.010021697626857468,137.1034,0.0,0.0,0.5,0.0,0.0,0.17179030368637607,0.0,0.0,0.05137328417103748,0.831356879344328,0.02882146195993042,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0],"left":[1,2,3,4,0,0,0,8,0,0,11,12,13,14,0,0,17,0,0,20,0,0,23,24,25,0,0,0,0],"right":[10,7,6,5,0,0,0,9,0,0,22,19,16,15,0,0,18,0,0,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,1,1,0,1,1,0,0,0,0,1,1,0,1,1,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.051038213211837435,0.03029703477829018,0.05133970634245427,-0.03668496687513106,0.08252662332709623,0.21875004818231522,0.05011392444463005,0.11666604583544925,-0.12357559400789331,-0.08787483029450788,-0.1390678211023542,-0.09123884784112914,0.0011349815886504942,0.005650403202975163,-0.04803190484948683,-0.1871450640223988,-0.04793622872119716,-0.043334434850951634,-0.0425277926873477,0.16367535811422165,0.3311802899572193,0.129528861637798,0.07515838476179611,0.24338656680122228,-0.005344740836598661,0.2954537728910282,-0.0015432883780214014,0.0022205593918030787],"feature_idx":[7,31,10,3,0,1,0,16,0,0,0,8,1,9,0,0,20,0,0,0,18,0,27,28,39,0,0,0,0],"num_threshold":[4.248495242049359,0.08912957095024149,0.6774280200260546,0.5,0.0,0.5,0.0,342.067107,0.0,0.0,0.0,0.7630908230697618,0.5,2.8512511998698615,0.0,0.0,299.0906,0.0,0.0,0.0,79.0572,0.0,0.31125754450547904,0.0,0.08238095238095239,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0],"left":[1,2,3,4,0,6,0,8,0,0,0,12,13,14,0,0,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,11,10,5,0,7,0,9,0,0,0,19,16,15,0,0,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,1,1,0,0,0,1,1,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.048615388828998914,-0.12598460110366833,-0.07929057116995007,0.0008286936661027548,-0.025087751864604883,0.00449623070154388,-0.13310912511562112,0.21680749335733546,-0.15839432333508588,-0.06374914945440402,-0.26068009611860776,-0.05655209584979115,-0.039745510158886256,-0.04040140305298028,0.04260898050153423,0.058664491562838,-0.08348108877978255,0.17221997551025814,0.3146212754593585,0.1361372968979759,0.07789890748513337,0.23087204755733362,0.30505608424647657,-0.006633966487050458,0.0028310526889774533,-0.03323072131459348,0.005816748492966539,0.002109531422212996],"feature_idx":[7,33,8,1,36,9,0,0,0,28,0,16,0,0,0,10,0,0,18,0,27,28,11,0,0,22,0,0,0],"num_threshold":[4.356708826689592,0.9555683250537554,0.7630908230697618,0.5,0.611042145436638,2.8512511998698615,0.0,0.0,0.0,0.16104342324683554,0.0,301.144531,0.0,0.0,0.0,0.6774280200260546,0.0,0.0,79.0572,0.0,0.31125754450547904,0.0,186.10645143825207,0.0,0.0,0.14200179853641448,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,0,1,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0],"left":[1,2,3,4,5,6,0,0,0,10,0,12,0,0,0,16,0,0,19,0,21,22,23,0,0,26,0,0,0],"right":[18,15,14,9,8,7,0,0,0,11,0,13,0,0,0,17,0,0,20,0,28,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,0,0,0,1,1,1,0,1,0,1,1,1,0,1,1,0,1,0,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.055245191101326745,-0.02182470940645222,0.045053233308248154,-0.07239462357597072,0.023886139032557166,-0.09070642113756389,-0.3188293782843751,0.03518030524248863,0.22606493155257842,-0.10867276104407218,0.08723031964457069,-0.12190288786684499,0.013666335464640335,-0.13497701100625517,-0.07064978791084435,-0.03777113131214467,-0.03838133290033135,0.14443495657925873,-0.006033726304805498,0.18294019918772766,0.14507129151488524,0.29115379650434486,0.2875386946201992,-0.004745805470416187,0.04661862883881313,0.3235057618989185,0.0016606418933648116,0.003717186168104192],"feature_idx":[7,28,29,0,1,20,3,0,8,0,0,15,0,0,28,0,0,0,3,0,27,28,19,0,0,18,0,0,0],"num_threshold":[3.9889840465642745,0.7572430295779127,0.0,0.0,0.5,326.0516,0.5,0.0,0.4669493266590709,0.0,0.0,101.1566,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.5,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,79.0572,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0,0,0,0,0],"left":[1,2,3,0,5,6,7,0,9,0,0,12,0,0,15,0,0,0,19,0,21,22,23,0,0,26,0,0,0],"right":[18,17,4,0,14,11,8,0,10,0,0,13,0,0,16,0,0,0,20,0,28,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,0,1,0,1,1,0,1,1,0,1,1,1,0,1,0,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.0557738785554812,-0.022441243813887533,0.042800571642835905,-0.07217465245459213,0.020467899452132808,-0.10030752434622717,0.2508189439614032,-0.15739001099485464,0.08723031964457069,-0.11580774347350271,0.012983018691408256,-0.13239209690870749,-0.06711729851530208,-0.03588257474653744,-0.03646226625531473,0.14314151756971802,-0.0057320399895651524,0.18137674611661417,0.14427096589878027,0.28926699041270365,0.27316175988918945,-0.010572222528008933,0.3705358309103648,-0.05589954974470573,0.04655051449923546,0.3073304738039724,0.0015776097986965,0.0035313268596990355],"feature_idx":[7,28,29,0,1,20,13,0,0,15,0,0,28,0,0,0,3,0,27,28,19,0,67,0,0,18,0,0,0],"num_threshold":[3.9889840465642745,0.7572430295779127,0.0,0.0,0.5,326.0516,0.5138499259719574,0.0,0.0,101.1566,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.5,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0,79.0572,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,6,7,0,0,10,0,0,13,0,0,0,17,0,19,20,21,0,23,0,0,26,0,0,0],"right":[16,15,4,0,12,9,8,0,0,11,0,0,14,0,0,0,18,0,28,25,22,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,0,1,1,0,1,1,0,1,1,1,0,1,0,0,0,1,0,1,1,0,1,1,1]},{"value":[0.0,-0.05687956679703828,-0.023740617185456888,0.04066054306069411,-0.07053671521449262,0.01923733319804271,-0.1058314970516964,0.008410510584678833,-0.1288896129093512,-0.06376143358953694,-0.03408844600921057,-0.034639152942549066,0.14209746152665523,-0.005445437990086788,0.18011473637753822,0.14274963643361724,0.285617398928936,0.335048505345269,0.03153355874006536,0.25950367189472984,-0.0011818772590718885,0.3520090393648467,-0.0531045722574703,0.04646347950947911,0.2919639501137738,0.014410065345877661,0.06788460622233893,-0.008519130518412155,0.003354760516713995],"feature_idx":[7,28,29,0,1,20,0,0,28,0,0,0,3,0,27,28,19,7,0,0,67,0,0,18,0,7,0,0,0],"num_threshold":[3.9889840465642745,0.7572430295779127,0.0,0.0,0.5,326.0516,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,0.5,0.0,0.31125754450547904,0.0,207.099457,4.248495242049359,0.0,0.0,0.0,0.0,0.0,79.0572,0.0,5.407171771460119,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,1,0,0,0],"left":[1,2,3,0,5,6,0,0,9,0,0,0,13,0,15,16,17,18,0,0,21,0,0,24,0,26,0,0,0],"right":[12,11,4,0,8,7,0,0,10,0,0,0,14,0,28,23,20,19,0,0,22,0,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,1,1,0,1,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1]},{"value":[0.0,-0.05882726622700532,-0.02607172800563653,-0.08428802717083757,0.0012147958947162252,-0.16221035317424576,-0.05880073649711335,-0.2579390605644071,-0.03156138272383942,-0.03238402370875004,0.025698555162393694,0.07532909734616701,0.11226929288118158,-0.03212944684939885,-0.04375329025239516,-0.2559350596436608,0.9811346607671263,-0.03290719529542159,0.13753026910855565,-0.005173166090582271,0.17453784803547712,0.13711118861832244,0.22441807371394695,0.04128714345819657,0.277365752608085,0.009064375679455308,-0.03130514130754598,0.007388715016444181,0.0031870224908782776],"feature_idx":[7,28,33,1,0,28,0,36,0,0,16,4,0,0,0,26,0,0,3,0,27,28,0,18,0,22,0,0,0],"num_threshold":[3.9889840465642745,0.7572430295779127,0.9555683250537554,0.5,0.0,0.16104342324683554,0.0,0.0,0.0,0.0,271.191879,0.5,0.0,0.0,0.0,0.9999895305240649,0.0,0.0,0.5,0.0,0.31125754450547904,0.0,0.0,79.0572,0.0,0.14200179853641448,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0],"left":[1,2,3,4,0,6,0,8,0,0,11,12,0,0,0,16,0,0,19,0,21,22,0,24,0,26,0,0,0],"right":[18,15,10,5,0,7,0,9,0,0,14,13,0,0,0,17,0,0,20,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,0,1,0,1,0,1,1,0,0,1,1,1,0,1,1,0,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,-0.057261178589527534,-0.024259755545326212,0.03502892752351805,-0.07519568518274475,-0.005108090660728468,-0.12335909253120932,-0.3250268955579779,-0.005500451656497063,0.05981799751007394,-0.20049304135196844,0.011852602432868231,-0.12933506868816622,-0.05991856832151008,-0.03075192586210971,-0.03126183553065048,0.12228575166531337,0.3559946040594655,-0.003340898319512675,0.24665910168048732,0.09486703518636164,0.049409476709697885,0.15367469374656567,0.21319717002824953,-0.010279212782484138,-0.0004540380307187064,0.3008163320198548,-0.13607170507952324,0.004083468331081796],"feature_idx":[7,28,13,0,1,20,3,0,0,15,0,0,28,0,0,0,18,2,0,0,27,28,11,0,0,0,67,0,0],"num_threshold":[3.9889840465642745,0.7572430295779127,0.5564877177250878,0.0,0.5,326.0516,0.5,0.0,0.0,101.1566,0.0,0.0,0.16104342324683554,0.0,0.0,0.0,79.0572,0.5,0.0,0.0,0.31125754450547904,0.0,205.4515016883532,0.0,0.0,0.0,0.022178811477917226,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,0],"left":[1,2,3,0,5,6,7,0,0,10,0,0,13,0,0,0,17,18,0,0,21,22,23,0,0,0,27,0,0],"right":[16,15,4,0,12,9,8,0,0,11,0,0,14,0,0,0,20,19,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,0,1,1,0,1,1,0,1,1,1,0,0,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,-0.05521801939862367,-0.010719016553234062,0.032229346464958335,-0.04798284180081894,0.05589407531925233,-0.06292373609395319,-0.039674143360074514,0.23204062893431845,-0.04377344237366146,0.12292137696628949,-0.20288823311288892,-0.2424456149246195,-0.26342499402220626,-0.029249832300359914,-0.08986376480145175,0.006362384656066489,0.006076424228132283,0.1306948659870193,0.23432614659646306,0.09841162027142902,0.045413399634814854,0.1628437640250644,0.20253731152683693,-0.07543181023556615,0.2294477941898645,-0.05977270196449709,-0.0018396512917373542,0.002823497949780318],"feature_idx":[7,24,66,9,0,0,9,0,31,0,0,47,9,15,0,0,0,0,18,0,27,28,11,0,16,0,0,0,0],"num_threshold":[4.1588830833596715,0.9999850744102411,0.0,0.8687410333758591,0.0,0.0,3.580871947050632,0.0,0.01615218951902369,0.0,0.0,0.0,1.7242682818995994,91.053696,0.0,0.0,0.0,0.0,79.0572,0.0,0.31125754450547904,0.0,190.65678120765847,0.0,409.723069,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,13,14,0,0,0,0,19,0,21,22,23,0,25,0,0,0,0],"right":[18,11,6,5,0,0,8,0,10,0,0,17,16,15,0,0,0,0,20,0,28,27,24,0,26,0,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0,0,1,0,1,1,1,1]},{"value":[0.0,-0.053614694248191985,-0.011045992197887558,-0.03967418150590546,0.030529706733190064,-0.050519192817154314,0.20356208316201663,-0.07345715193378444,-0.03565810338930198,-0.11052436081789399,0.033881149944881984,-0.037030172891344824,0.06846313359957677,-0.18815759209559083,-0.027478774187254907,-0.12019552002346984,-0.08061197304043369,0.004003012345404855,0.11951606410093218,0.08327342088703375,0.3557195726873875,-0.004274689745050609,0.22260983926663977,0.04431220346721449,0.05861403150946289,0.06346117163384761,-0.0007573833627773752,-0.02962519977604572,0.0021813715855692807],"feature_idx":[7,24,35,1,15,0,0,28,38,0,0,0,0,15,0,9,0,0,27,18,2,0,0,31,43,0,0,0,0],"num_threshold":[3.9889840465642745,0.9999850744102411,0.9991236739072364,0.5,117.058,0.0,0.0,0.16104342324683554,0.011026564264471997,0.0,0.0,0.0,0.0,91.053696,0.0,1.0774937534322335,0.0,0.0,0.31125754450547904,79.0572,0.5,0.0,0.0,0.37434204073626054,0.016417535306360587,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,0,0,1,1,0,0,0,0],"left":[1,2,3,4,5,0,0,8,9,0,0,0,0,14,0,16,0,0,19,20,21,0,0,24,25,0,0,0,0],"right":[18,13,12,7,6,0,0,11,10,0,0,0,0,15,0,17,0,0,28,23,22,0,0,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,0,1,1,1,1,0,1,0,1,1,0,0,0,1,1,0,0,1,1,1,1]},{"value":[0.0,-0.056029582094984924,-0.014790558270583972,0.025506442016238574,-0.0676763092083978,0.019030869700388288,0.11601304979293697,-0.03905881061412053,0.1582899073166079,-0.16028013438338462,-0.11260844296054404,-0.08924198012876428,-0.03875458483116319,-0.1863696619494392,-0.026104835477892153,-0.11764792680793458,-0.07658137438841202,0.0038028617281346657,0.11163944035339553,0.07476285721108643,0.3450728656360467,-0.004060955257797971,0.21147934730330784,0.03610751215158997,0.050024075251727855,-0.012521341994091273,0.04108977718700473,-0.028143939787243256,0.00207230300629071],"feature_idx":[7,24,66,0,1,65,17,0,0,0,28,0,0,15,0,9,0,0,27,18,2,0,0,31,9,0,0,0,0],"num_threshold":[3.9889840465642745,0.9999850744102411,0.0,0.0,0.5,0.05903692336295066,122.096433,0.0,0.0,0.0,0.16104342324683554,0.0,0.0,91.053696,0.0,1.0774937534322335,0.0,0.0,0.31125754450547904,79.0572,0.5,0.0,0.0,0.37434204073626054,1.8783209336005964,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,6,7,0,0,0,11,0,0,14,0,16,0,0,19,20,21,0,0,24,25,0,0,0,0],"right":[18,13,4,0,10,9,8,0,0,0,12,0,0,15,0,17,0,0,28,23,22,0,0,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,0,0,1,1,1,0,1,1,0,1,0,1,1,0,0,0,1,1,0,0,1,1,1,1]},{"value":[0.0,-0.06248238312373535,0.008043696556637697,0.06376465481878597,-0.04534422525941189,-0.15386867630136014,-0.2570642821817676,-0.06454408272359728,-0.02552901526301117,-0.08956444933638784,-0.03672578234264643,0.00664250022398214,-0.020270660906846063,-0.0422182004417353,0.09101166472159493,0.05847133609145411,0.29543399573537604,0.41002218704812343,0.2177437432353358,-0.5141814659378604,-0.08122240846188654,0.02738696278298961,0.04541676858616983,0.04275149358139636,-0.026312748067270776,-0.013269671125819116,0.25653232290927436,0.006024544557919143,0.0010015890530548077],"feature_idx":[7,31,17,0,0,15,11,0,0,1,28,0,0,0,27,18,37,66,0,0,0,26,44,0,0,0,15,0,0],"num_threshold":[3.7612001156935624,0.16028859319594138,98.0603,0.0,0.0,91.053696,224.76139392710408,0.0,0.0,0.5,0.7572430295779127,0.0,0.0,0.0,0.31125754450547904,79.0572,0.0,0.03868701142190856,0.0,0.0,0.0,1.0000117624123401,0.09350319500703722,0.0,0.0,0.0,52.8314590454,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,1,0,0,0,1,0,0,0,1,0,1,1,0,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,0,0,6,7,0,0,10,11,0,0,0,15,16,17,18,0,0,0,22,23,0,0,0,27,0,0],"right":[14,5,4,0,0,9,8,0,0,13,12,0,0,0,26,21,20,19,0,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,0,0,1,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,-0.04835438429512152,-0.021369811275220387,-0.07041871264645769,0.00704572028881873,-0.019699849139858165,0.003280593630528728,-0.14620914534777682,0.14595959088372973,-0.14298014173078175,-0.04415950398074475,-0.25210306654812936,-0.04105284208810574,-0.025652234008033584,0.02246908343725244,-0.063935009559723,0.041027113542368814,-0.22745270912669943,-0.022047515118328143,0.00038722795798662446,0.13067385199690743,0.19001819277637538,0.09220716869958992,0.03194835995120987,-0.0032191145956531387,0.13078248929114147,0.18825625158021353,-0.042012721773295784,0.00045528077780048197],"feature_idx":[7,28,33,1,36,9,0,0,0,28,0,16,0,0,9,0,0,16,0,0,18,0,27,39,0,29,0,0,0],"num_threshold":[4.356708826689592,0.7572430295779127,0.9555683250537554,0.5,0.524077589120882,3.011549122295114,0.0,0.0,0.0,0.16104342324683554,0.0,301.144531,0.0,0.0,0.666885678291477,0.0,0.0,507.319763,0.0,0.0,79.0572,0.0,0.31125754450547904,0.1368125785224714,0.0,0.11133211688918819,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0],"left":[1,2,3,4,5,6,0,0,0,10,0,12,0,0,15,0,0,18,0,0,21,0,23,24,0,26,0,0,0],"right":[20,17,14,9,8,7,0,0,0,11,0,13,0,0,16,0,0,19,0,0,22,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,0,0,0,1,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,0,1,0,1,1,1]},{"value":[0.0,-0.06035326003087561,0.010435049822466699,-0.0785286624676326,0.027979778568386387,0.07238852675650201,-0.07736227613982934,-0.15207942529927454,-0.25002260545117494,-0.07258712998696364,-0.33593090193551584,-0.023150188743944256,-0.031079863392664997,-0.08242437488725442,-0.033332203407686216,-0.144303006085007,-0.015229979341344624,-0.3631170651566903,0.006146345531256614,-0.04187998678283727,0.08647917190749728,0.05304803537103161,0.26118599363548567,-0.019913167698942403,0.19735564643474995,0.006530752000561968,0.25653232290927436,0.005700553291133304,0.000787479918875711],"feature_idx":[7,31,9,0,66,0,0,15,11,0,9,0,0,1,12,41,0,0,0,0,27,18,7,0,0,0,15,0,0],"num_threshold":[3.7612001156935624,0.16028859319594138,0.5674509442539184,0.0,0.0,0.0,0.0,100.2141,195.11836568669509,0.0,1.676687818925278,0.0,0.0,0.5,54.22550284847555,0.004438563894675562,0.0,0.0,0.0,0.0,0.31125754450547904,82.065,5.111987788356544,0.0,0.0,0.0,52.8314590454,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,1,1,0,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,0,11,0,0,14,15,16,0,0,0,0,21,22,23,0,0,0,27,0,0],"right":[20,7,4,0,6,0,0,13,10,0,12,0,0,19,18,17,0,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,-0.04383528760593197,-0.11733327372193422,-0.03558701300898318,0.002809246672439514,-0.1340466591279005,-0.021992679306747046,-0.015538773270161422,-0.23245877857094185,-0.06316766345351361,-0.021553942751639178,0.008978669022753792,-0.061770824308257845,0.036965509494703924,0.07798246043992414,-0.047658280865708315,0.11531198896877572,0.17064950081581892,0.07647666813351814,0.02062275899265594,0.15811331080072447,0.24734179546875115,0.00935074021976874,0.2110324907175347,-0.15539868034490625,0.2344884154322145,-0.062487427833472255,-0.0033846964658987844,0.00039232955810746266],"feature_idx":[7,33,1,28,0,15,0,0,20,0,0,3,0,8,0,0,18,0,27,28,19,7,0,0,16,0,0,0,0],"num_threshold":[4.356708826689592,0.8393763744354164,0.5,0.7572430295779127,0.0,104.6213,0.0,0.0,243.065414,0.0,0.0,0.5,0.0,0.7477544910179639,0.0,0.0,79.0572,0.0,0.31125754450547904,0.0,196.050781,5.111987788356544,0.0,0.0,402.964439,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,1,0,0,1,0,0,0,0],"left":[1,2,3,4,0,6,0,0,9,0,0,12,0,14,0,0,17,0,19,20,21,22,0,0,25,0,0,0,0],"right":[16,11,8,5,0,7,0,0,10,0,0,13,0,15,0,0,18,0,28,27,24,23,0,0,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,1,1,1,1]},{"value":[0.0,-0.051373211299703486,0.0034865822907082303,-0.07221931530096555,0.01818291449778949,0.13894757927390505,-0.0003657017567416432,-0.12456317106239045,-0.042706934117725776,-0.2205189951672171,0.027625025809162197,-0.08954314937799435,0.000837487947032578,-0.2335872799246184,-0.0650581074686631,-0.3087681174132457,-0.0617615680835085,-0.02000532466566618,0.1003736835352799,0.34383767940702037,0.16211702577502793,-0.016772566523740196,0.07181160012012207,0.026848911112337927,0.1269398544127816,-0.03662114501655154,0.16796527686529786,-0.0024059340951509967,0.0013400524467279242],"feature_idx":[7,31,9,0,14,0,0,1,15,24,0,0,0,20,0,28,0,0,18,1,0,0,27,28,3,0,0,0,0],"num_threshold":[3.9889840465642745,0.16028859319594138,0.5674509442539184,0.0,0.0689996869976547,0.0,0.0,0.5,100.2141,0.8083182340893338,0.0,0.0,0.0,243.065414,0.0,0.16104342324683554,0.0,0.0,79.0572,0.5,0.0,0.0,0.31125754450547904,0.0,0.5,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,10,0,0,0,14,0,16,0,0,19,20,0,0,23,24,25,0,0,0,0],"right":[18,7,4,0,6,0,0,13,12,11,0,0,0,15,0,17,0,0,22,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,0,1,1,1,0,1,0,1,1,0,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.05024590734519607,-0.12201558391284625,-0.042706934117725776,-0.2205189951672171,0.026243774518704122,-0.08506599190909458,0.0007956135496810291,-0.2276997162576767,-0.062073324022476055,-0.019123606636033588,0.0029640580767521744,0.09981090808519372,0.3442810344006264,0.15401117448627666,-0.015933938197553132,0.07113083007315481,0.02601792978026008,0.124510688961128,-0.09359602433801446,0.1323802454289183,-0.06739985267145024,0.17663924355132882,0.04418539629065006,-0.03851872934011738,0.08068093455505441,0.19030485358099514,-0.002285637390393447,0.0012730498243914924],"feature_idx":[7,33,1,15,24,0,0,0,20,0,0,0,18,1,0,0,27,28,39,16,0,0,7,22,0,0,0,0,0],"num_threshold":[3.9889840465642745,0.8393763744354164,0.5,100.2141,0.8083182340893338,0.0,0.0,0.0,243.065414,0.0,0.0,0.0,79.0572,0.5,0.0,0.0,0.31125754450547904,0.0,0.07468209297477602,471.3762,0.0,0.0,5.111987788356544,0.2298143937101611,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,1,0,0,0,0,0,0],"left":[1,2,3,4,5,0,0,0,9,0,0,0,13,14,0,0,17,18,19,20,0,0,23,24,0,0,0,0,0],"right":[12,11,8,7,6,0,0,0,10,0,0,0,16,15,0,0,28,27,22,21,0,0,26,25,0,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,1]},{"value":[0.0,0.03950680711035979,0.013641553846436227,0.06978547453767803,-0.036529234339426585,0.03792012154989344,-0.016294185179022768,0.1692336243527429,0.05990672344042863,0.020199739294636327,0.0462451700998944,-0.16359870429621068,-0.30714379111679113,0.00784692552105426,-0.039834809887086924,0.18078961090194526,0.2329732390934016,0.3512276399874592,0.16314897905915623,-0.06988544268386186,-0.10076586807604526,0.01325103803665826,-0.139080679683013,-0.20232666267178576,-0.044019200781156446,-0.01270261530088046,-0.07156924721520828,-0.013773196785604826,-0.049293686209993304],"feature_idx":[10,9,14,0,17,0,0,38,28,7,0,36,36,0,0,0,0,29,0,0,29,0,15,20,0,0,1,0,0],"num_threshold":[0.35362201424367734,3.580871947050632,0.16420539205513687,0.0,81.0464,0.0,0.0,0.29903233419872555,0.13985024001839658,5.407171771460119,0.0,0.9148193997845863,0.22105308989579403,0.0,0.0,0.0,0.0,0.019065776930409915,0.0,0.0,0.0001946027857047913,0.0,100.2141,305.7556,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,1,1,0,1,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,10,0,12,13,0,0,0,0,18,0,0,21,0,23,24,0,0,27,0,0],"right":[20,7,4,0,6,0,0,17,16,11,0,15,14,0,0,0,0,19,0,0,22,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,0,1,0,0,1,1,1,1,0,1,1,0,1,0,0,1,1,0,1,1]},{"value":[0.0,-0.03567427158671662,-0.10157682939007068,-0.19469698980010952,-0.01920296924172256,-0.30599540144479814,-0.35004523155982054,-0.017125049451524533,-0.023062282945523552,0.0006323482479363208,-0.0369139044973229,-0.0017239874281179013,-0.08588274978865496,0.009846780332364965,-0.04231340822036032,0.03446125577965586,0.05953972073210679,0.15916516821397764,0.029945128139864788,-0.04375261329885358,0.14907005535362847,0.1549915301061983,0.09367310310774224,0.0096154733400279,0.19848926446445417,0.1790780859324592,-0.06239958715713634,-0.005934607453769659,0.0020241065921229764],"feature_idx":[7,33,15,11,0,7,9,0,0,0,1,0,0,3,0,8,1,0,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.8393763744354164,100.2141,224.76139392710408,0.0,3.7612001156935624,1.676687818925278,0.0,0.0,0.0,0.5,0.0,0.0,0.5,0.0,0.7477544910179639,0.5,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,6,7,0,0,0,11,0,0,14,0,16,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,13,10,5,0,9,8,0,0,0,12,0,0,15,0,19,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,0,1,1,0,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.033553842807582515,0.009274794801178817,0.021988595522926476,-0.046187619380318255,0.014578323302756858,-0.13173209308410103,0.06115618010210433,-0.061982525241438685,-0.09553029462331475,-0.19075359557862634,-0.018242820779636484,-0.30430270095529893,-0.3480738857606581,-0.016268796978948254,-0.021909168798247336,0.0006007308355396646,-0.02940610251998418,-0.02256531860924991,0.0043129758684120395,0.15284991783813212,0.1472419536008882,0.09827278072036627,0.015658283437506516,0.2192715957760711,0.1701241816358362,-0.05927960779927943,-0.0056378770810813,0.0019229012625167742],"feature_idx":[7,31,10,3,8,0,0,0,0,15,11,0,7,9,0,0,0,67,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.16028859319594138,0.706441234269404,0.5,0.25990632975875494,0.0,0.0,0.0,0.0,100.2141,224.76139392710408,0.0,3.7612001156935624,1.676687818925278,0.0,0.0,0.0,0.23548278489536267,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,1,1,0,1,1,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,5,0,0,0,0,10,11,0,13,14,0,0,0,18,0,0,21,0,23,24,25,0,0,0,0],"right":[20,9,8,7,6,0,0,0,0,17,12,0,16,15,0,0,0,19,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,1,1,0,0,1,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.03382999570804091,-0.09466932470433455,-0.1896030190925073,-0.017330679740654633,-0.3041978734307958,-0.3480086714073849,-0.015455357130000813,-0.02081371035833506,0.0005706942937628413,-0.028747507330192216,-0.02143705267878744,0.028409424830216776,-0.01321398636833937,0.01482624507435535,0.008193736220044111,0.020676278435198463,-0.03685670635197607,0.0580983710969992,-0.058883398979366675,0.15521108033729752,0.1398798559208437,0.1011460562248863,0.01943303890817232,0.22186801093876,0.16161797255404445,-0.05631562740931528,-0.005355983227027395,0.0018267561993909],"feature_idx":[7,33,15,11,0,7,9,0,0,0,67,0,43,0,0,10,3,0,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.8393763744354164,100.2141,224.76139392710408,0.0,3.7612001156935624,1.676687818925278,0.0,0.0,0.0,0.23548278489536267,0.0,0.0914361360179313,0.0,0.0,0.706441234269404,0.5,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,1,1,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,6,7,0,0,0,11,0,13,0,0,16,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,15,10,5,0,9,8,0,0,0,12,0,14,0,0,19,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,0,1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.03342276060808996,0.0066073282035817,0.023164902161595283,-0.03972164189109194,0.04716250115837859,-0.1094668463665304,0.05017222671210057,0.11980141452086245,-0.0202143227002038,0.07223574107332276,-0.0670311332078466,-0.04301096238479012,-0.09134943027729103,-0.1811376646644277,-0.013419924041639143,-0.30432217419440954,-0.015077669091540536,0.0005421595790746636,-0.004787326559744543,0.15523733515178503,0.1328858631248014,0.10117800545132426,0.019475012090726683,0.22201236440543798,0.15353707392634208,-0.053499846038849344,-0.005088184065676061,0.001735418389421284],"feature_idx":[7,31,8,3,8,0,0,59,0,7,0,0,0,15,11,0,7,0,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.16028859319594138,0.7477544910179639,0.5,0.15217391304347827,0.0,0.0,0.169191775605604,0.0,3.4339872044851463,0.0,0.0,0.0,101.1566,253.45218885913764,0.0,3.828641396489095,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,1,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,5,0,0,8,0,10,0,0,0,14,15,0,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,13,12,7,6,0,0,9,0,11,0,0,0,19,16,0,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,0,1,1,1,0,0,1,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.032977870534322024,0.005718786601873487,0.01765828859621914,0.11206514871627143,0.0026670308961473494,-0.04873975415554159,-0.1888233564625068,-0.008125803744494675,0.04480437610045982,-0.053788680911158696,-0.08897494113341745,-0.17966688617357887,-0.012748927839557212,-0.30324099217211076,-0.01432378563696357,0.0004986379783860329,-0.32827506577421595,0.0005150516001208417,-0.004547960231757387,0.16160556784110278,0.1262415699685615,0.10896338827788989,0.029703031077968015,0.22494876313531165,0.14586022023002485,-0.05082485373690702,-0.004833774862392204,0.0016486474699501487],"feature_idx":[7,31,10,14,0,62,3,0,0,0,0,15,11,0,7,0,23,0,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.16028859319594138,0.706441234269404,0.0689996869976547,0.0,0.06524749048113543,0.5,0.0,0.0,0.0,0.0,101.1566,253.45218885913764,0.0,3.828641396489095,0.0,0.6607903671283483,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,0,1,1,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,6,7,0,0,0,0,12,13,0,15,0,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,11,10,5,0,9,8,0,0,0,0,19,14,0,16,0,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.03267778707806238,-0.01567990895952384,0.031232755531546207,0.10057231876125997,0.18638171137691284,0.0063150564170976866,-0.019673490693729076,-0.04747881018859044,-0.0868964092475995,0.017660908593780535,0.017582522288333458,-0.04420305681456069,-0.005302012981478122,-0.04632856789648337,-0.15217508484355047,-0.33785535579774406,-0.0030987067921808276,-0.011360041124236454,-0.013488534282482157,0.16155634006717315,0.11992949147013335,0.10890348348225468,0.02962433136584942,0.2246781004030739,0.1385672092185235,-0.04828361105006174,-0.004592086119272665,0.0015662150964526945],"feature_idx":[7,28,1,39,8,0,0,13,35,0,0,0,20,0,0,15,20,0,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.7572430295779127,0.5,0.025597640003012012,0.5091743119266056,0.0,0.0,0.8423403575709557,0.7814664324538524,0.0,0.0,0.0,318.218384,0.0,0.0,104.6213,243.065414,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,5,0,0,8,9,0,0,0,13,0,0,16,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,15,12,7,6,0,0,11,10,0,0,0,14,0,0,19,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.03567839456627616,-0.09553156912273905,-0.20028660174969715,-0.010118926329358225,-0.0116378204868429,-0.02482636198339446,0.03364362493513153,-0.011412095996223216,0.01670339617391683,-0.07889260622466251,-0.010725844200447733,-0.1480058916942852,0.0005951536055923584,0.027974186735321996,-0.037426168615497,0.060567385811008734,-0.05059006510977859,0.16273686237248722,0.11393301689662678,0.11034004950581187,0.04359083218487989,0.24501636132487506,0.13163884875759743,-0.04586943049755874,-0.03898280644791189,0.0005829830664886515,-0.03627094375227174,0.001487904341630042],"feature_idx":[7,33,15,19,0,0,66,43,0,0,9,0,0,16,0,8,0,0,18,0,27,28,19,0,0,59,0,0,0],"num_threshold":[5.111987788356544,0.7946609839634144,100.2141,265.046837,0.0,0.0,0.1240298753623934,0.0914361360179313,0.0,0.0,3.011549122295114,0.0,0.0,317.104309,0.0,0.1661166033736106,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.10182623132263421,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,0,0,14,0,16,0,0,19,0,21,22,23,0,0,26,0,0,0],"right":[18,13,6,5,0,0,10,9,0,0,12,0,0,15,0,17,0,0,20,0,28,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,1,1,0,1,0,1,1,0,1,0,0,0,1,1,0,1,1,1]},{"value":[0.0,-0.03178962421083525,-0.014716333955583501,0.027901351672889235,-0.009844163627771827,0.03496330601776499,-0.044642452869010925,0.0003074749845982439,-0.29088683838371915,0.09746010333527942,-0.09196876413608593,0.019239385839424552,-0.040628101831135494,-0.002167384750151058,-0.03701945508050475,-0.15181717617127108,-0.33748633041364595,-0.0024378251361039105,-0.010210148043682388,-0.013649277377053792,0.16330806243243853,0.1082363660517956,0.11109264586737494,0.04457955297707135,0.24798369293937667,0.1250569063197176,-0.0435759589726807,-0.004391630966633287,0.00141350912454854],"feature_idx":[7,28,1,44,64,3,38,0,0,0,0,0,20,0,0,15,20,0,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.7572430295779127,0.5,0.05375264541964486,0.07499999999999996,0.5,0.0,0.0,0.0,0.0,0.0,0.0,299.0906,0.0,0.0,104.6213,243.065414,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,5,6,7,0,0,0,0,0,13,0,0,16,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,15,12,11,10,9,8,0,0,0,0,0,14,0,0,19,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,0,0,1,1,1,1,1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,0.04911117475637435,0.012163501538544605,0.09848276776092736,0.12423269233231729,0.005974185815803779,-0.004435495917385524,0.1701120074347185,0.358294262681022,0.10278436871146646,-0.012022612314715532,0.08151499076733551,0.008201451312301067,0.10282454774920567,-0.07014854157508262,0.04215310524259763,-0.027827032607850202,0.30006621663353245,-0.00015530660989284686,0.19454293210588497,-0.07370111433207624,0.016248691714421958,-0.10776572357578414,-0.18297658158733804,-0.023411451997485247,-0.0057413101483239975,-0.035107626085917526,-0.06559975744373646,0.004427540782566197],"feature_idx":[10,7,39,1,0,0,0,28,19,0,0,27,18,0,58,0,0,41,0,0,29,0,15,19,0,0,43,0,0],"num_threshold":[0.31390688696305474,5.111987788356544,0.029375349426184402,0.5,0.0,0.0,0.0,0.0,179.079076,0.0,0.0,0.15238212990438513,82.065,0.0,0.04535307879576269,0.0,0.0,0.017133965324230616,0.0,0.0,0.0009379740817168257,0.0,91.053696,306.079681,0.0,0.0,0.03171954947694822,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0,0],"left":[1,2,3,4,0,0,0,8,9,0,0,12,13,0,15,0,0,18,0,0,21,0,23,24,0,0,27,0,0],"right":[20,7,6,5,0,0,0,11,10,0,0,17,14,0,16,0,0,19,0,0,22,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,0,1,0,0,1,1,0,1,1]},{"value":[0.0,-0.030915634400534932,-0.006321621259937601,-0.004463757809904223,0.18597478729894057,-0.11274575038020564,-0.2805996043896565,0.020122599844908464,-0.2423419793415084,0.040965732040593394,-0.009062577223203583,-0.03393805493939664,-0.10712513141980438,0.0274071549746851,0.006101434100147074,-0.0801375288255677,-0.19513155097058021,0.03848893872879857,-0.33565249218258875,0.021872222304299884,0.14668585527317093,0.09768332036174528,0.09086524488219809,0.03430148816718748,0.24707566311062468,0.11366484256815818,-0.04079603040831081,-0.006762460928990422,0.0002381408315507372],"feature_idx":[7,29,11,0,0,15,21,7,0,0,0,43,0,66,0,10,0,16,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.46860230453167234,507.4688515850144,0.0,0.0,91.053696,245.1159,2.9444389791664403,0.0,0.0,0.0,0.0020291743329254874,0.0,0.1240298753623934,0.0,0.4381770794715394,0.0,402.964439,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,0,0,6,7,8,0,0,0,12,0,14,0,16,0,18,0,0,21,0,23,24,25,0,0,0,0],"right":[20,5,4,0,0,11,10,9,0,0,0,13,0,15,0,17,0,19,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,1,0,0,0,1,1,1,0,1,0,1,0,1,0,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.02759747249502808,-0.012063074237303061,0.02731194940741405,-0.005041452623991561,0.01857348008593469,-0.036003320215261966,-0.003226373673485128,-0.04024725184698337,-0.1368065291035819,-0.32530458594614337,0.009796942423628963,-0.009427986374388731,-0.04674662605519081,0.11853275455548967,-0.00560360539222966,0.01579000721120263,-0.1254510545546508,-0.33767684268495834,0.020778611189084906,0.1503921112359787,0.09279915434365799,0.09537535143995556,0.04022662461003779,0.24664260273091468,0.10798160043975039,-0.038756228887895365,-0.006424337882540954,0.0002262337899733069],"feature_idx":[7,28,1,15,0,0,20,0,0,15,19,0,0,4,8,0,0,12,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.7572430295779127,0.5,107.0494,0.0,0.0,318.218384,0.0,0.0,104.6213,249.111837,0.0,0.0,0.5,0.8531169940222032,0.0,0.0,90.9301493042536,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,0,10,11,0,0,14,15,0,0,18,0,0,21,0,23,24,25,0,0,0,0],"right":[20,9,6,5,0,0,8,0,0,13,12,0,0,17,16,0,0,19,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.026132482514233515,-0.010372752079155487,0.02838824915551682,-0.004789379992791965,0.01764480608163801,-0.03393970109541047,0.0038993843212777437,-0.06566351682746632,-0.1369258319943417,-0.3256736113302415,0.009307095302447443,-0.008956587055669374,-0.04674662605519081,0.11853275455548967,-0.005323425122618098,0.01500050685064256,-0.1254510545546508,-0.3207930005507105,0.019739680629630742,0.1503921112359787,0.08815919662647503,0.09537535143995556,0.04022662461003779,0.24664260273091468,0.10258252041776289,-0.03681841744350045,-0.006103120988413835,0.0002149221004746238],"feature_idx":[7,28,1,15,0,0,16,0,0,15,19,0,0,4,8,0,0,12,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.7572430295779127,0.5,107.0494,0.0,0.0,352.164535,0.0,0.0,104.6213,249.111837,0.0,0.0,0.5,0.8531169940222032,0.0,0.0,90.9301493042536,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,0,10,11,0,0,14,15,0,0,18,0,0,21,0,23,24,25,0,0,0,0],"right":[20,9,6,5,0,0,8,0,0,13,12,0,0,17,16,0,0,19,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.024529931173695348,-0.002174038557889446,-0.1368860643622221,-0.3255506028631025,0.008841740537325116,-0.008508757702885816,-0.04674662605519081,0.11853275455548967,-0.005057253866487166,0.014250481508110369,-0.1254510545546508,-0.18959883266738764,0.07883812701066813,-0.3047548271754293,0.018752696598149224,0.15220700266180162,0.08375123679515113,0.09758387502908744,0.04312806461711525,0.24620954235120468,0.09745339439687478,-0.03497749657132552,-0.04012430914583823,0.03628886565873692,-0.10160153495642708,-0.005752082362128164,-0.04030391987694664,0.00020417599545083931],"feature_idx":[7,28,0,15,19,0,0,4,8,0,0,12,15,0,0,0,18,0,27,28,19,0,0,7,0,59,0,0,0],"num_threshold":[5.111987788356544,0.7572430295779127,0.0,104.6213,249.111837,0.0,0.0,0.5,0.8531169940222032,0.0,0.0,90.9301493042536,109.044647,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,5.407171771460119,0.0,0.11449935084710444,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0],"left":[1,2,0,4,5,0,0,8,9,0,0,12,13,0,0,0,17,0,19,20,21,0,0,24,0,26,0,0,0],"right":[16,3,0,7,6,0,0,11,10,0,0,15,14,0,0,0,18,0,28,23,22,0,0,25,0,27,0,0,0],"is_leaf":[0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,1,0,0,0,1,1,0,1,0,1,1,1]},{"value":[0.0,-0.02461257996441581,-0.008367485119302137,0.004928110888542392,-0.03071524991342218,0.0005062552303730427,-0.0875485565426363,-0.13881833490739726,-0.3256274831572292,0.008399653510458904,-0.008083319817741597,-0.04956490299456062,0.11853275455548967,-0.00480439117316287,0.013537957432704851,-0.1296109534084286,-0.2895869783790099,0.026214674492289716,0.04882650430867184,-0.2930169740757185,0.14841954624551967,0.07956367495539354,0.09297495643530715,0.03707311421352291,0.24620954235120468,0.09258072467703116,-0.0332286217427594,-0.005874347758491894,0.00019396719567836841],"feature_idx":[7,28,1,0,16,0,0,15,19,0,0,4,8,0,0,12,0,41,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.7572430295779127,0.5,0.0,380.160217,0.0,0.0,104.6213,249.111837,0.0,0.0,0.5,0.8531169940222032,0.0,0.0,38.900282328344574,0.0,0.020410050158333887,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,12,13,0,0,16,0,18,0,0,21,0,23,24,25,0,0,0,0],"right":[20,7,4,0,6,0,0,11,10,0,0,15,14,0,0,17,0,19,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.01991838683646978,-0.004198888021942191,-0.022560818304789978,0.018023332406877535,0.07884230920279266,-0.0008087609279030517,-0.13042947924232404,-0.317379182590379,0.008270245842924595,-0.00721061372538756,-0.04111007191172379,0.14473694243667637,0.004858961620973545,-0.005522023430399337,-0.1296109534084286,-0.2751076294600594,0.026214674492289716,0.04638517909323828,-0.2783661253719325,0.14840829418210186,0.0755854912076238,0.09296126390961056,0.03705512570660837,0.2461476765794083,0.08795168844317942,-0.0315671906556215,-0.005580630370567264,0.0001842688358944855],"feature_idx":[7,28,3,0,1,0,0,15,21,0,0,4,21,0,0,12,0,41,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.7572430295779127,0.5,0.0,0.5,0.0,0.0,104.6213,245.1159,0.0,0.0,0.5,414.239746,0.0,0.0,38.900282328344574,0.0,0.020410050158333887,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,12,13,0,0,16,0,18,0,0,21,0,23,24,25,0,0,0,0],"right":[20,7,4,0,6,0,0,11,10,0,0,15,14,0,0,17,0,19,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.016249486953748945,0.0017691084234834808,-0.020907644743228815,0.02565514237212657,0.029959473414839982,0.040628311364074285,0.10916889760122091,0.16071717044963663,-0.0036179884391877694,0.014267405996450667,-0.022349183010574578,0.01462160668798731,-0.009947862610177617,0.09895790700592787,-0.03614267904062274,0.27692213208583033,-0.060055622655277224,-0.1689026349240127,-0.010094375968290237,0.14841073019581005,0.0718062166472425,0.09296422827081775,0.03705902012559684,0.2461476765794083,0.08355410402102059,-0.029988831122840412,-0.005301598852038936,0.00017505539409974348],"feature_idx":[7,8,3,0,24,57,1,64,0,0,9,12,0,0,13,0,0,0,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.7630908230697618,0.5,0.0,1.000002878139116,0.0,0.5,0.02429659683305735,0.0,0.0,2.324186113537742,52.58785089052342,0.0,0.0,0.4074721160065626,0.0,0.0,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,207.099457,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,1,1,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,0,5,6,7,8,0,0,11,12,0,0,15,0,0,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,19,4,0,18,17,10,9,0,0,14,13,0,0,16,0,0,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,0,0,0,1,1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.014494578033173534,-0.056507354337160885,-0.16930300543851692,-0.25950951935419725,-0.27224077602955143,-0.03253471124825989,-0.09328569361624517,0.005133689105338135,0.011152926713453968,-0.011160504570234143,0.003960116896179236,-0.06380142820888172,-0.049981227558241414,0.0004044439908621911,0.008380770614599343,-0.026721345932404897,0.10342233077353861,0.01027343043255975,0.2535963580803355,0.15029966019514238,0.06821590581488053,0.09526284867443378,0.04007882450212948,0.2565333372301639,0.07937639881996966,0.0008851591426328299,-0.005036518909437149,0.00016630262439463195],"feature_idx":[7,3,9,44,0,0,19,0,0,15,43,38,9,0,0,0,0,44,0,0,18,0,27,28,19,0,0,0,0],"num_threshold":[5.111987788356544,0.5,0.666885678291477,0.7491316023514039,0.0,0.0,306.079681,0.0,0.0,124.9811,0.5251549207016071,0.011026564264471997,1.0062248835032563,0.0,0.0,0.0,0.0,0.3008502105617592,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,179.079076,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,1,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,0,10,11,12,13,0,0,0,0,18,0,0,21,0,23,24,25,0,0,0,0],"right":[20,9,6,5,0,0,8,0,0,17,16,15,14,0,0,0,0,19,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,0,0,0,1,1,1,1,0,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.014056255543298462,0.0005014507752051145,-0.07492004525195588,-0.004692084281609965,-0.08239785774524862,0.15211698615861785,0.06480511052413647,0.09747433482857522,0.042984156568447146,0.2561002768504539,0.0754075788789713,0.0008409011855011529,-0.0443815575457225,0.03556407717032641,-0.10160153495642708,-0.030859499158557915,0.004965090802757213,-0.04610193748254013,0.08450110406036487,0.0387622966810028,-0.004857986895366296,-0.03341872885774855,-0.037199069088572755,0.2710645216165212,0.32018762780437443,0.008459453973255648,0.0001579874931749714,-0.001984565886687406],"feature_idx":[7,8,0,65,0,0,18,0,27,28,19,0,0,7,0,59,31,38,0,42,0,0,0,0,40,11,0,0,0],"num_threshold":[5.111987788356544,0.7630908230697618,0.0,0.0,0.0,0.0,82.065,0.0,0.31125754450547904,0.0,179.079076,0.0,0.0,5.407171771460119,0.0,0.11449935084710444,0.37434204073626054,0.026235690581209326,0.0,0.10466591813251236,0.0,0.0,0.0,0.0,0.07011459830003491,346.9437504200824,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,0,0,0,1,0,1,0,0,0,0,1,1,0,0,1,0,0,0,0,1,1,0,0,0],"left":[1,2,0,4,0,0,7,0,9,10,11,0,0,14,0,16,17,18,0,20,0,0,0,0,25,26,0,0,0],"right":[6,3,0,5,0,0,8,0,24,13,12,0,0,15,0,23,22,19,0,21,0,0,0,0,28,27,0,0,0],"is_leaf":[0,0,1,0,1,1,0,1,0,0,0,1,1,0,1,0,0,0,1,0,1,1,1,1,0,0,1,1,1]},{"value":[0.0,-0.004267347487988808,-0.0637717114124683,-0.08670661025393117,-0.2547772543000651,0.02451327386598063,0.06742639052007056,0.005176731451743955,-0.05314423644012079,0.054165702404185015,-0.04750723871908953,-0.004618459829228809,-0.02931595208838223,0.00290956943488645,-0.009971452640748524,0.07454497499535565,-0.03477965615808181,0.2542260609582197,0.1697335162990592,0.06114968440990621,0.02160760437996175,0.04029862584055195,-0.011517088715015689,0.2118214922119755,0.35049010619877546,0.42693896277965177,0.06156485499792979,-0.06824555400909027,-0.07795951752859942],"feature_idx":[9,3,44,0,0,1,64,0,19,0,0,9,12,0,0,13,0,0,38,28,67,0,0,0,29,37,0,0,0],"num_threshold":[3.580871947050632,0.5,0.8958807403558439,0.0,0.0,0.5,0.13739149665505612,0.0,282.036835,0.0,0.0,2.324186113537742,52.58785089052342,0.0,0.0,0.4074721160065626,0.0,0.0,0.29903233419872555,0.13985024001839658,0.010871948853764302,0.0,0.0,0.0,0.019065776930409915,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,1,0,1,0,0,1,1,0,0,0,0,0,1,1,1,0,0,0,1,1,0,0,0],"left":[1,2,3,0,0,6,7,0,9,0,0,12,13,0,0,16,0,0,19,20,21,0,0,0,25,26,0,0,0],"right":[18,5,4,0,0,11,8,0,10,0,0,15,14,0,0,17,0,0,24,23,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1]},{"value":[0.0,-0.008073547834154062,-0.05839745937930536,-0.1666613827279406,-0.23841324456695753,-0.24565527029899015,-0.033090201917049276,-0.08239205782108346,-0.010887719851318423,-0.2133261895794771,0.039471743505735,0.08978534096577012,0.016242977925950797,-0.04692336367109782,-0.433828765420188,0.01626681367691499,0.00290438393658814,-0.1936660432762451,-0.00010874845407080614,-0.0026144773536007195,0.16609689855107607,0.05532965215820086,0.00228696538865627,0.20123041760137675,0.35049010619877546,0.42693896277965177,0.05848661224803316,-0.06483327630863585,-0.07406154165216954],"feature_idx":[9,3,9,44,0,0,19,29,0,0,1,58,0,0,0,18,0,15,0,0,38,28,0,0,29,37,0,0,0],"num_threshold":[3.580871947050632,0.5,0.666885678291477,0.7491316023514039,0.0,0.0,321.0579,0.015160393057308133,0.0,0.0,0.5,0.009364525380973775,0.0,0.0,0.0,433.310974,0.0,55.0205,0.0,0.0,0.29903233419872555,0.13985024001839658,0.0,0.0,0.019065776930409915,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,12,0,0,0,16,0,18,0,0,21,22,0,0,25,26,0,0,0],"right":[20,15,6,5,0,0,10,9,0,0,14,13,0,0,0,17,0,19,0,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,0,1,1,1,0,1,0,1,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.007147513622085918,-0.05310347650563625,-0.08145568998927308,-0.08266466518894725,-0.23310221171542392,0.05888611623016988,0.01614857699347603,-0.33202658209325175,0.015080181581285023,0.02087058971222253,0.006286673246999791,-0.0017869104054129893,0.0324542229318217,0.01828181673054736,-0.022554029765985462,0.019925514458155116,-0.19328713781257226,-0.0001033110313674257,-0.002483753485920737,0.16604127725997214,0.05532965215820086,0.0021726171192234744,0.19116889672130777,0.3503418849898999,0.4267692180333374,0.05556228163563155,-0.0615916124932042,-0.070358464569561],"feature_idx":[9,3,20,28,0,0,38,0,0,18,15,38,0,43,0,0,0,15,0,0,38,28,0,0,29,37,0,0,0],"num_threshold":[3.580871947050632,0.5,507.2326,0.831356879344328,0.0,0.0,0.0015558223909310398,0.0,0.0,433.310974,124.9811,0.011026564264471997,0.0,0.3541000814030404,0.0,0.0,0.0,55.0205,0.0,0.0,0.29903233419872555,0.13985024001839658,0.0,0.0,0.019065776930409915,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,4,0,0,7,0,0,10,11,12,0,14,0,0,0,18,0,0,21,22,0,0,25,26,0,0,0],"right":[20,9,6,5,0,0,8,0,0,17,16,13,0,15,0,0,0,19,0,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.010295763951166059,0.018340847792465153,0.048078529272753204,-0.019853583484846386,-0.006141229070393806,0.055767492572188535,-0.022018293967309255,0.1126035155513415,-0.0988965673028931,-0.10527126464618952,0.01200649843034114,0.18102200705622915,0.027842411030331606,-0.24415027441623424,-0.04446920844694613,-0.036081596012522275,-0.009986167883935693,0.005977493310289007,-0.0005796954546337219,0.16590970001166827,0.05511907632048905,0.0020639862632624074,0.18161045188524236,0.3503418849898999,0.4267692180333374,0.05278416755385003,-0.05851203186854406,-0.06684054134108308],"feature_idx":[9,10,14,0,19,0,59,0,26,8,0,0,40,0,0,7,59,0,0,0,38,28,0,0,29,37,0,0,0],"num_threshold":[3.580871947050632,0.36760847059601903,0.16420539205513687,0.0,321.0579,0.0,0.006662965019433649,0.0,0.9999941667285102,0.41739188506697056,0.0,0.0,0.11451863556351441,0.0,0.0,5.53338948872752,0.018051874574251257,0.0,0.0,0.0,0.29903233419872555,0.13985024001839658,0.0,0.0,0.019065776930409915,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,0,0,0,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,13,0,0,16,17,0,0,0,21,22,0,0,25,26,0,0,0],"right":[20,15,4,0,6,0,8,0,12,11,0,0,14,0,0,19,18,0,0,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.0069402100416902455,-0.05268233521245833,-0.16362488565249847,-0.21433816335864161,-0.22121808780407265,-0.026749229330808307,-0.07346076380653141,0.45385900912085086,-0.12199347318110831,0.04199984052699905,0.09218723878338785,0.018187410508041246,-0.040121061104906985,-0.40704234037440445,0.015184054654499377,0.0005189340423033974,0.0005780694710036727,-0.000763093423420358,0.01689056984649149,0.1227649665415691,0.04867258694033083,0.08092581269336765,0.05710370300005181,0.03795751610996661,-0.048785445636116184,0.11612252982410709,-0.02815196794197128,0.1725299292909803],"feature_idx":[9,3,9,44,0,0,19,15,0,0,1,58,0,0,0,15,18,0,0,0,13,0,27,28,0,58,0,0,0],"num_threshold":[3.580871947050632,0.5,0.666885678291477,0.7491316023514039,0.0,0.0,321.0579,40.679588,0.0,0.0,0.5,0.009364525380973775,0.0,0.0,0.0,124.9811,433.310974,0.0,0.0,0.0,0.30261964618503995,0.0,0.13126566924036592,0.004414856341976173,0.0,0.04535307879576269,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,1,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,1,1,0,1,0,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,12,0,0,0,16,17,0,0,0,21,0,23,24,0,26,0,0,0],"right":[20,15,6,5,0,0,10,9,0,0,14,13,0,0,0,19,18,0,0,0,22,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,1,1]},{"value":[0.0,-0.02381686938400893,-0.016802099555215444,-0.0035517794768423986,0.0580534844714805,0.08514899803905358,-0.5370208567451983,-0.24392675155440355,-0.05306177821764165,0.022865984502456273,-0.09371881304158088,-0.0005796141554522905,0.05175962661915781,0.1812517822169296,-0.0318781943388462,0.2897485051343202,0.04771132982914068,-0.004315788040837276,0.03507648410470378,0.025845957266938537,0.07489835746366438,0.1593138428403421,0.005837709931350685,-0.06907443302483143,0.015468395064985608,-0.1033131210828401,0.1162081523927519,-0.0029740093863104278,0.18157348883254124],"feature_idx":[9,7,35,0,16,0,0,31,41,0,0,0,24,32,0,26,0,0,14,36,29,0,58,41,0,0,0,0,0],"num_threshold":[2.1788623895092316,5.53338948872752,0.9991236739072364,0.0,422.85127,0.0,0.0,0.6316539812707084,0.03125548545644169,0.0,0.0,0.0,0.2618704211372824,0.0,0.0,0.7904444850474709,0.0,0.0,0.29699403370244676,0.30484589610546714,0.015160393057308133,0.0,0.0036022928462495834,0.06805317009162404,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,0,1,1,0,0,0,0,1,0,1,0,0,1,1,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,0,0,0,13,14,0,16,0,0,19,20,21,0,23,24,0,0,0,0,0],"right":[12,7,4,0,6,0,0,11,10,0,0,0,18,15,0,17,0,0,28,27,22,0,26,25,0,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,0,0,0,1,0,0,1,1,1,1,1]},{"value":[0.0,0.07534476363374723,-0.03553328650459359,-0.13942615008677425,1.668010322092447,-0.2207504720037905,-0.09706256904141385,0.09024505445300442,0.11100086667061149,0.12898455885748855,0.21682152634486362,0.09057210765668273,0.04582328830940696,0.007442540307312744,-0.09498989047652927,0.2503823693443334,-0.26894989532801306,0.02128436423463356,-0.030982095058011083,0.13426948811423056,-0.003933171786859191,0.16936419965715502,-0.011787008671930199,-0.04726523971104114,-0.036003081274143645,-0.20092940251827018,6.829843985514118e-05,-0.0010337032839284888,0.0035168507527068016],"feature_idx":[17,15,32,15,0,24,0,0,0,29,7,0,0,27,16,0,7,0,0,19,0,0,61,7,3,0,0,0,0],"num_threshold":[68.99773,44.0498,0.0019160537935704151,40.679588,0.0,0.4652020557450208,0.0,0.0,0.0,0.004523554526147955,5.111987788356544,0.0,0.0,0.055610774407242394,357.159454,0.0,5.342334251964811,0.0,0.0,207.099457,0.0,0.0,0.017363124128681462,5.53338948872752,0.5,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,0,1,0,0,1,0,0,0,1,1,0,0,0,1,0,1,0,0,1,0,0,0,1,0,0,0,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,0,0,14,15,0,17,0,0,20,0,0,23,24,25,0,0,0,0],"right":[22,9,8,5,0,7,0,0,0,13,12,0,0,19,16,0,18,0,0,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.009144011200949227,0.0006357267127265587,-0.07971829046072157,-0.0006165297404868042,-0.16951215509255033,-0.27323473711005336,-0.20277716184335076,-0.2007205051610507,0.026030410487351954,-0.22645677617181842,0.2150632770436193,0.09531132842541246,0.23828450614626212,0.046323458500928893,-0.10042354484944774,0.013556209132015341,-0.04927495946456091,0.021077145671900967,-0.052440309663059445,-0.005487696997032356,-0.02504656432265691,0.011350127966954206,-0.010710746871541233,0.19409619659106633,0.180295310165279,0.09131278948361655,0.0006134916374183064,-0.000311402661310467],"feature_idx":[7,10,0,4,0,0,44,0,0,44,0,0,29,11,0,67,0,0,27,26,32,0,0,0,17,0,7,0,0],"num_threshold":[5.111987788356544,0.706441234269404,0.0,0.5,0.0,6.153178914282275,0.014826227470324582,0.0,0.0,0.0,0.0,0.0,0.0029473268239941473,190.65678120765847,0.0,0.0010955156691060397,0.0,0.0,0.31125754450547904,1.0000018411832912,0.026158928291452187,0.0,0.0,0.0,119.0352,0.0,5.53338948872752,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,1,1,0,0,1,0,0,1,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0,0],"left":[1,2,0,4,0,6,7,0,0,10,0,0,13,14,0,16,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[12,3,0,5,0,9,8,0,0,11,0,0,18,15,0,17,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,1,0,1,0,0,1,1,0,1,1,0,0,1,0,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,-0.008992356755249148,-0.0393834015955169,0.03164820149178765,0.03248171531669133,-0.17454719432736301,-0.06368679396772492,-0.08864518767855074,-0.04848781595318229,0.005195565603546371,-0.045851250943383985,0.0184563903591084,0.0026070141896509472,0.05935481996563041,0.09531132842541246,0.24933862457762063,0.04400728557588245,-0.04856101194310143,-0.08212461268341294,0.11193566877233882,-0.08674496695390879,0.026704502568440702,0.015338347628425533,-0.005205923770859756,0.14806229960686845,0.03531410762917262,0.007818088329663199,-0.00029583252824494366,0.1633042063450148],"feature_idx":[7,62,14,28,0,0,9,0,7,0,0,11,0,0,29,11,0,61,0,11,0,0,27,0,58,12,0,0,0],"num_threshold":[5.111987788356544,0.024797492365824358,0.06419149592026152,0.9661508704061895,0.0,0.0,0.5015697266584318,0.0,2.0794415416798357,0.0,0.0,507.4688515850144,0.0,0.0,0.0029473268239941473,190.65678120765847,0.0,0.04596976215246307,0.0,214.00454050644188,0.0,0.0,0.15238212990438513,0.0,0.024432154161883893,31.632838381012487,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,0,0,15,16,0,18,0,20,0,0,23,0,25,26,0,0,0],"right":[14,11,6,5,0,0,8,0,10,0,0,13,0,0,22,17,0,19,0,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,0,1,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,-0.041965890563981124,-0.16029253211131925,-0.1854754648869803,-0.18321418890176205,-0.016886231067558235,-0.07076049231358965,0.051370745718952865,0.10710037692413654,-0.006428721424544115,0.16156554620092742,0.017193608660336503,0.024429520617409575,-0.4625666419928031,0.038471768505648735,0.07954457750258362,0.17775789695950278,0.06778923267650737,0.14656651646740143,0.06936030720309176,0.4640157019027029,-0.06583006806431016,0.29591248885016885,0.019352738637179814,0.04493525806312491,0.026318759081969192,8.002159555076105e-05,0.0038465561304651175,0.0008331347489578533],"feature_idx":[3,9,44,0,0,11,0,1,26,0,62,0,0,0,1,29,38,12,43,0,0,0,41,0,0,27,0,0,0],"num_threshold":[0.5,0.666885678291477,0.7491316023514039,0.0,0.0,316.05434274407463,0.0,0.5,0.9999941667285102,0.0,0.019703931320221635,0.0,0.0,0.0,0.5,0.0029473268239941473,0.19149163667097957,78.631154902243,0.04325654976800575,0.0,0.0,0.0,0.0,0.0,0.0,0.8626943005181347,0.0,0.0,0.0],"missing_go_to_left":[0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,0,0],"left":[1,2,3,0,0,6,0,8,9,0,11,0,0,0,15,16,17,18,19,0,0,0,23,0,0,26,0,0,0],"right":[14,5,4,0,0,7,0,13,10,0,12,0,0,0,28,25,22,21,20,0,0,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,1,0,1,0,0,1,0,1,1,1,0,0,0,0,0,1,1,1,0,1,1,0,1,1,1]},{"value":[0.0,-0.040138030805085295,-0.018859714703045864,-0.06877595131468386,0.04380780770101239,0.015896173342856736,-0.3245009638657521,-0.1802548649264305,-0.17893227112290663,-0.17471270692290003,0.038239274492617756,0.07926290137689627,0.17695645371950497,0.06624222819960875,-0.06708168153851615,-0.0630948809466613,0.06953956593799795,0.24258763363704683,0.29591248885016885,0.01838510170532075,0.04268849515996891,0.026318759081969192,0.006175130191188879,-0.01124151090391074,0.0014331288280097,-0.0014760239605809745,0.14684262750276425,0.003654228323941844,0.0007914780115099163],"feature_idx":[3,27,19,0,1,0,0,0,0,0,1,29,38,17,10,0,0,0,41,0,0,27,14,7,0,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,306.079681,0.0,0.5,0.0,0.0,6.021366539135289,0.0,0.0,0.5,0.0029473268239941473,0.19149163667097957,109.0106,0.19139155024817492,0.0,0.0,0.0,0.0,0.0,0.0,0.8626943005181347,0.29699403370244676,5.53338948872752,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,0,0,11,12,13,14,15,0,0,0,19,0,0,22,23,24,0,0,0,0,0],"right":[10,7,4,0,6,0,0,9,0,0,28,21,18,17,16,0,0,0,20,0,0,27,26,25,0,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,1,0,0,0,0,0,1,1,1,0,1,1,0,0,0,1,1,1,1,1]},{"value":[0.0,-0.03525739868780491,-0.01323812642107423,0.007525649112063469,0.020396599094410443,-0.06098169958416524,-0.07076878581549124,-0.13405819435149022,0.06402720141341442,0.018639631685137558,-0.22798414581080337,-0.3537395519099047,-0.15549766721802474,-0.1802548649264305,-0.1699856575667613,-0.165977071576755,0.03471348773387231,0.02449719010597996,0.01638869262985072,-0.041872423418090325,0.0022518311073161713,0.003471516907744743,0.1622761957037755,0.034136874057218596,-0.11760003676372224,-0.2779428707152349,-0.027079614668886268,0.8062564802284407,0.09321581685677707],"feature_idx":[3,27,42,65,15,16,0,0,1,0,0,0,0,0,0,0,9,27,9,0,0,0,28,0,32,22,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.16536463737756213,0.37068645640074205,100.2141,429.22583,0.0,0.0,0.5,0.0,0.0,0.0,0.0,6.021366539135289,0.0,0.0,3.8118960927112364,0.8626943005181347,0.5015697266584318,0.0,0.0,0.0,0.004414856341976173,0.0,0.16072804085532832,0.20915209910446533,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,5,6,0,0,9,0,0,0,0,14,0,0,17,18,19,0,0,0,23,0,25,26,0,0,0],"right":[16,13,12,11,8,7,0,0,10,0,0,0,0,15,0,0,22,21,20,0,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,0,1,1,0,1,1,1,1,0,1,1,0,0,0,1,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.00010049073960407421,-0.04481590587421813,-0.022248538432473437,-0.0018580818780529777,0.0013875306380992216,-0.3360525743144095,-0.17755748529960444,-0.18025058668532357,-0.16148637468842325,-0.15767821799791726,0.021825260644434064,0.0012733111995643755,0.0032979410623575236,0.11067067958131983,0.19449622142919099,0.03243003035435734,-0.02467399626224953,-0.015569537390132546,-0.08363413049537757,0.19770616796968227,0.1716606095197104,-0.0770308698843067,-0.2179507465715773,0.13604295833548885,-0.045496650927864125,0.09612643847865457,-0.022445512894734777,0.1393505243592461],"feature_idx":[9,3,27,42,65,0,0,0,0,0,0,27,0,0,28,40,0,0,27,58,22,0,0,41,15,0,0,0,0],"num_threshold":[3.580871947050632,0.5,0.8229775327133568,0.16536463737756213,0.37068645640074205,0.0,0.0,0.0,6.021366539135289,0.0,0.0,0.8626943005181347,0.0,0.0,0.004414856341976173,0.2587782587782588,0.0,0.0,0.13126566924036592,0.009364525380973775,0.29011361940542385,0.0,0.0,0.09102826669832692,55.0205,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,1,1,0,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0,0,0,1,0,0,0,0],"left":[1,2,3,4,5,0,0,0,9,0,0,12,0,0,15,16,0,0,19,20,21,0,0,24,25,0,0,0,0],"right":[14,11,8,7,6,0,0,0,10,0,0,13,0,0,18,17,0,0,28,23,22,0,0,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,1,1,0,1,1,0,0,1,1,0,0,0,1,1,0,0,1,1,1,1]},{"value":[0.0,0.0748858040008832,0.09355561730901407,0.0249317162379383,-0.031161111631170968,0.06162957254097066,0.16843959443107182,0.2788683498322068,0.03134428237815783,0.07782250369044626,0.035077547837893394,0.1696110059769987,0.11217074570574433,-0.00782832986957196,-0.008349630324074297,-0.17305498049681362,0.03733913855737292,-0.017545896857902223,-0.007496209303351194,-0.04888184871209692,-0.013979607548770902,-0.18024310074013253,-0.15341205595400212,-0.1497943070980214,0.012297624367801916,0.0024590885671351165,0.0011852152712652497,-0.0008185622923804203,0.003133044009239683],"feature_idx":[8,48,67,24,0,0,14,22,0,0,7,26,0,0,0,7,0,0,3,27,0,0,0,0,27,18,0,0,0],"num_threshold":[0.22147368742212792,0.024524054411650564,0.0003990057915974621,0.4396806218767351,0.0,0.0,0.20930580589950362,0.154079847288703,0.0,0.0,5.407171771460119,1.0000117624123401,0.0,0.0,0.0,4.07753744390572,0.0,0.0,0.5,0.8229775327133568,0.0,6.021366539135289,0.0,0.0,0.8626943005181347,433.310974,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,0,0,1,1,0,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,12,0,0,0,16,0,0,19,20,0,22,0,0,25,26,0,0,0],"right":[18,15,6,5,0,0,10,9,0,0,14,13,0,0,0,17,0,0,24,21,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,0,1,1,1,0,1,1,0,0,1,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.04266389777278301,-0.021770834121325307,-0.009713749738366674,0.18677724905006332,-0.4315891645466957,0.04907410286194818,-0.18024310074013253,-0.14574145315630202,-0.14230459174312032,0.03154148494629225,0.02093541219302944,0.013532876410496945,0.07318836725542717,0.009215905081836426,0.018653160679583766,-0.02659513403024647,0.0027323324153396555,-0.09896893535864205,-0.0031295555666520872,-0.002910280051165515,0.17243666560754928,0.0008053353321976431,0.00695349755344683,0.1639718791990176,0.029039162073162574,-0.12962459008362412,-0.024417173715575304,0.07288137367155301],"feature_idx":[3,27,44,0,18,0,0,0,0,0,9,27,23,0,57,9,0,0,18,0,0,24,0,0,29,0,23,0,0],"num_threshold":[0.5,0.8229775327133568,0.5792910212289751,0.0,283.0962,0.0,0.0,6.021366539135289,0.0,0.0,3.8118960927112364,0.8626943005181347,0.13711113112243356,0.0,0.0,0.5674509442539184,0.0,0.0,433.310974,0.0,0.0,1.0000004179368531,0.0,0.0,0.015160393057308133,0.0,0.3366109213639749,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,0,8,0,0,11,12,13,0,15,16,0,0,19,0,0,22,0,0,25,0,27,0,0],"right":[10,7,4,0,6,0,0,9,0,0,24,21,14,0,18,17,0,0,20,0,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,1,1,0,1,1,0,1,0,1,1]},{"value":[0.0,-0.03159106650507677,-0.08804390285630831,-0.048701843784451554,-0.005278058479427728,-0.29025347196834067,-0.19307150988629176,-0.13845438049848688,0.0018433925405471508,-0.1710371591196398,0.16759426897542262,0.002811294662000382,-0.016898301800649114,0.15747794582397534,-0.0018161219126195506,0.002932493911278833,0.02897154360322517,0.031201494839014104,0.016830110773484466,0.028535466050750104,-0.023803659850257654,0.05482917774880464,0.00014067329109401783,0.13912836162795195,-0.00421178894038512,0.09906762561792276,0.022596545667591353,-0.19362109953878495,-0.176709829323596],"feature_idx":[59,3,28,14,0,0,11,0,44,0,0,27,8,0,0,0,44,15,21,0,17,27,0,0,0,1,0,0,0],"num_threshold":[0.006662965019433649,0.5,0.7572430295779127,0.20238499972126855,0.0,0.0,507.4688515850144,0.0,0.0,0.0,0.0,0.8626943005181347,0.3600393039066345,0.0,0.0,0.0,0.8958807403558439,102.9987,270.278625488,0.0,81.0464,0.15238212990438513,0.0,0.0,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[0,0,1,1,0,0,1,0,1,0,0,1,0,0,0,0,1,1,1,0,0,1,0,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,13,0,0,0,17,18,19,0,21,22,0,0,0,26,0,0,0],"right":[16,11,6,5,0,0,8,0,10,0,0,15,14,0,0,0,28,25,20,0,24,23,0,0,0,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,0,0,1,1,1,0,1,1,1]},{"value":[0.0,-0.03163161892644886,-0.08669729258024123,-0.046851024013975735,-0.005014155555456413,-0.27574079836992366,-0.19307150988629176,-0.13153166147356252,0.0018433925405471508,-0.16248530116365778,0.1592145555266516,0.0019254365733936572,-0.017831596413627242,-0.006528937665588498,0.07676840792114348,-0.003325995171186591,-0.000753555161586661,0.0027858692157149536,0.030260561550497205,0.059318038678192526,0.03484312278997737,0.0004780245096199565,0.13217194354655426,0.16984568933712965,0.2375077749812994,0.0044183419333919,-0.0005918491820508571,0.008435134427302949,-0.1977678779323238],"feature_idx":[59,3,28,14,0,0,11,0,44,0,0,27,7,8,0,0,0,0,1,15,14,0,0,66,0,0,16,0,0],"num_threshold":[0.006662965019433649,0.5,0.7572430295779127,0.20238499972126855,0.0,0.0,507.4688515850144,0.0,0.0,0.0,0.0,0.8626943005181347,5.480638923341991,0.4669493266590709,0.0,0.0,0.0,0.0,0.5,107.0494,0.28090365307033527,0.0,0.0,0.03868701142190856,0.0,0.0,429.22583,0.0,0.0],"missing_go_to_left":[0,0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,13,14,0,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,11,6,5,0,0,8,0,10,0,0,17,16,15,0,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,0,0,1,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.04142634395215719,-0.020345400306777544,-0.01000007791641906,0.1870145732858511,-0.3817099928024476,0.0452696533388016,-0.18024310074013253,-0.12495507839988439,-0.022980868913714043,-0.13353049025929584,0.09456127263103938,0.025837789516028352,0.021398154393497605,-0.0007857985229195082,0.02411502717332148,-0.0009839434407080462,0.06528794405834938,0.14602812493859396,0.03970538531315296,-0.08028296185537982,-0.14887327087882618,-0.10257026890197772,0.012926064289195897,0.026725632793945665,-0.03213813809003341,0.08653309884602933,0.026338682086054634,0.007754084832927078],"feature_idx":[3,27,44,0,18,0,0,0,0,44,0,0,13,9,16,0,0,60,0,63,15,32,0,41,0,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.5792910212289751,0.0,283.0962,0.0,0.0,6.021366539135289,0.0,0.0,0.0,0.0,0.9894146852851597,2.324186113537742,271.191879,0.0,0.0,0.02244327770158845,0.0,0.005878876938050136,55.0544,0.0,0.0,0.09102826669832692,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,0,10,0,0,13,14,15,0,0,18,0,20,21,22,0,24,0,0,0,0,0],"right":[12,7,4,0,6,0,0,9,0,11,0,0,28,17,16,0,0,19,0,27,26,23,0,25,0,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,0,0,1,0,1,1,1,1,1]},{"value":[0.0,-0.04069205117129907,-0.019499630416071553,-0.00950007402059807,0.18719278923579893,-0.36262449316232515,0.04300617067186146,-0.18024310074013253,-0.11870732447989019,-0.022980868913714043,-0.126853965746331,0.08983320899948738,0.023702364352808796,0.019218562104084666,-0.0009382745542482231,0.02290927581465532,-0.000934746268672626,0.05909781822054996,0.13872671869166417,0.03276827046639787,-0.07610574165521035,-0.1432916032236066,-0.09744175545687882,0.013879537422161983,0.025389351154248632,-0.030531231185531738,0.08220644390372787,0.025021747981752187,0.00736638059128083],"feature_idx":[3,27,44,0,18,0,0,0,0,44,0,0,13,9,16,0,0,60,0,63,15,32,0,41,0,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.5792910212289751,0.0,283.0962,0.0,0.0,6.021366539135289,0.0,0.0,0.0,0.0,0.9894146852851597,2.324186113537742,271.191879,0.0,0.0,0.02244327770158845,0.0,0.005878876938050136,55.0544,0.0,0.0,0.09102826669832692,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,0,10,0,0,13,14,15,0,0,18,0,20,21,22,0,24,0,0,0,0,0],"right":[12,7,4,0,6,0,0,9,0,11,0,0,28,17,16,0,0,19,0,27,26,23,0,25,0,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,0,1,1,0,0,0,1,1,0,1,0,0,0,1,0,1,1,1,1,1]},{"value":[0.0,-0.032468052283106535,-0.08394982360029085,-0.04307640944878397,-0.0037884401808327087,-0.26097875085457656,-0.193067276226017,-0.11817204099378867,0.0018433925405471508,-0.1413418133051935,0.14203410366879263,-0.0010949179709923698,-0.0004989381359640888,0.1468531111911639,-0.00027687286197242145,0.0060574284362711955,0.02693798466647524,0.03277630996309407,0.002505265304339833,0.048952159480272074,-0.037400391345082086,0.10026810734228125,0.0330974505578034,-0.021680996911416242,-0.016757182342132994,0.12299532486583616,-0.012826164308138745,0.013331585947387837,-0.01575606220328325],"feature_idx":[59,3,28,14,0,0,11,0,44,0,0,27,0,24,0,0,43,22,17,15,0,29,0,27,0,0,0,0,0],"num_threshold":[0.006662965019433649,0.5,0.7572430295779127,0.20238499972126855,0.0,0.0,507.4688515850144,0.0,0.0,0.0,0.0,0.8626943005181347,0.0,1.0000004179368531,0.0,0.0,0.5251549207016071,0.24309272626663617,71.04873,44.0498,0.0,0.004523554526147955,0.0,0.15238212990438513,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,0,1,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,0,14,0,0,17,18,19,20,0,22,0,24,0,0,0,0,0],"right":[16,11,6,5,0,0,8,0,10,0,0,13,0,15,0,0,28,27,26,21,0,23,0,25,0,0,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,1,0,1,1,0,0,0,0,1,0,1,0,1,1,1,1,1]},{"value":[0.0,-0.03214452187448376,-0.0833353482191684,-0.04223185686808212,-0.0035990181717910023,-0.2479298133118477,-0.193067276226017,-0.11226343894409921,0.0018433925405471508,-0.13427472263993387,0.13493239848535304,-0.0009486956103609701,-0.017990428850966765,0.2533527961679464,-0.00101146642099188,0.14732591063745235,-0.00026302921887371155,0.005754557014457618,0.023317619320576046,0.017840644896921554,0.0027592678948547447,-0.043335091825656674,0.1689187897902719,0.2942751809504486,0.14980021208792246,-0.5734276245473557,-0.021411124173131416,0.6374755260301334,-0.12767249403222855],"feature_idx":[59,3,28,14,0,0,11,0,44,0,0,27,10,0,0,24,0,0,16,17,0,0,20,1,0,0,51,0,0],"num_threshold":[0.006662965019433649,0.5,0.7572430295779127,0.20238499972126855,0.0,0.0,507.4688515850144,0.0,0.0,0.0,0.0,0.8626943005181347,0.09228018782910684,0.0,0.0,1.0000004179368531,0.0,0.0,721.3366,356.168762,0.0,0.0,745.231,0.5,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,0,1,1,0,0,1,0,1,0,0,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,0,12,13,0,0,16,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[18,11,6,5,0,0,8,0,10,0,0,15,14,0,0,17,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,-0.03849173410814219,-0.016965270865580077,0.0014114627223236712,0.012659418207510868,0.0008028202053859278,-0.06596391258416032,-0.2572602539152321,-0.0290839132115015,0.03315803335891542,0.014104394948598477,-0.17716280578667815,0.2371689121593924,-0.3190478402958876,0.05860412302739437,-0.316206286518106,-0.11241896717489724,-0.18024310074013253,-0.10125018425900123,-0.022980868913714043,-0.10898949346212002,0.17317479852717668,-0.12165375049381524,0.21073099979010426,0.02262449355323849,0.0016606740932306964,0.18185511832623164,-0.002139718657091194,0.005291276563449365],"feature_idx":[3,27,42,65,44,15,1,0,0,1,0,0,18,0,0,0,0,0,0,44,0,0,0,0,23,0,8,0,0],"num_threshold":[0.5,0.8229775327133568,0.16536463737756213,0.37068645640074205,0.5792910212289751,91.053696,0.5,0.0,0.0,0.5,0.0,0.0,283.0962,0.0,0.0,0.0,0.0,6.021366539135289,0.0,0.0,0.0,6.153178914282275,0.0,0.0,1.000000743293265,0.0,0.83275844548015,0.0,0.0],"missing_go_to_left":[0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,0,0],"left":[1,2,3,4,5,6,7,0,0,10,0,0,13,0,0,0,0,18,0,20,0,22,0,0,25,0,27,0,0],"right":[24,17,16,15,12,9,8,0,0,11,0,0,14,0,0,0,0,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,0,0,1,1,0,1,1,0,1,1,1,1,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,-0.03976359802277545,-0.004745674077875784,-0.18024310074013253,-0.09618767504605118,-0.09413589217166081,0.01987479678892687,0.015004440432162962,-0.004687612955045352,0.035847717156245976,0.10498135899010416,0.034298243223373555,0.01969627569733632,-0.01025630205128838,0.19072970821829816,0.11637755843814866,0.0006846054828997695,-0.0006514775991472987,-0.003535881356486215,0.053419370106385596,0.1250551975651298,0.026727267791136874,-0.02818923923328356,0.054771590052242594,0.06646406780001517,0.021894790955369815,0.1710077673293572,-0.010240073653647387,0.0035561562054443386],"feature_idx":[3,27,0,0,0,0,23,9,64,1,60,39,0,0,14,0,0,0,0,60,0,63,0,13,8,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.0,0.0,1.000000743293265,2.324186113537742,0.002496993380146084,0.5,0.0026285704748950645,0.0021300280538451297,0.0,0.0,0.15414133763343435,0.0,0.0,0.0,0.0,0.02244327770158845,0.0,0.005878876938050136,0.0,0.7810468046424883,0.41739188506697056,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,1,1,1,0,1,1,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0],"left":[1,2,0,4,0,0,7,8,9,10,11,12,0,0,15,0,0,0,0,20,0,22,0,24,25,0,0,0,0],"right":[6,3,0,5,0,0,28,19,18,17,14,13,0,0,16,0,0,0,0,21,0,23,0,27,26,0,0,0,0],"is_leaf":[0,0,1,0,1,1,0,0,0,0,0,0,1,1,0,1,1,1,1,0,1,0,1,0,0,1,1,1,1]},{"value":[0.0,-0.03898158200156044,-0.004508390373982075,-0.18024310074013253,-0.0913782912937486,-0.022980868913714043,-0.09883322418043097,0.17317479852717668,-0.11086426836054147,0.20490124440918206,0.020505512623399245,0.015971033950840558,0.06473899403706823,-0.0412422772766399,0.09847239060172407,-0.14465412534705357,-0.2076587014526367,-0.0948572647284653,-0.003937867124036743,0.20040206996336743,0.10876396682303956,0.06221499286653174,0.019000310280903265,0.020019124981761394,-0.09789682708541302,0.026995341610358284,-0.026273148953288583,5.3854464066205314e-05,0.003378348395172104],"feature_idx":[3,27,0,0,0,44,0,0,0,0,23,17,32,9,0,13,15,0,0,0,41,0,7,0,30,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.0,0.0,0.0,6.153178914282275,0.0,0.0,1.000000743293265,68.99773,0.0,1.628436915249817,0.0,0.4422446168741961,45.987015,0.0,0.0,0.0,0.06174747349903875,0.0,5.480638923341991,0.0,0.006120982445935149,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0],"left":[1,2,0,4,0,6,0,8,0,0,11,12,13,14,0,16,17,0,0,0,21,0,23,0,25,0,0,0,0],"right":[10,3,0,5,0,7,0,9,0,0,28,27,20,15,0,19,18,0,0,0,22,0,24,0,26,0,0,0,0],"is_leaf":[0,0,1,0,1,0,1,0,1,1,0,0,0,0,1,0,0,1,1,1,0,1,0,1,0,1,1,1,1]},{"value":[0.0,-0.03958725451969928,-0.004282970855282997,-0.18498553955090857,-0.37795251219856313,1.3301783948897299,-0.08758080399620766,-0.031491743593551884,0.14946761312015355,0.2648619397055569,-0.10532105494251437,-0.1417903004090221,-0.0979977458724176,-0.09822632186184183,0.01976662833013033,0.015259003871553304,0.061759353129117775,-0.03968708162402314,0.09354877107163802,-0.1408585087679548,-0.05243007304083669,0.1903819664651991,0.10390055871536118,0.05845420758090967,0.0184824151911549,5.116174086303716e-05,0.16866967975507474,0.004679987505245897,0.0010370661803836612],"feature_idx":[3,27,0,0,23,0,0,15,60,0,0,16,0,0,23,17,32,9,0,13,0,0,14,0,0,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,173.541687,0.011405525971193533,0.0,0.0,498.582374,0.0,0.0,1.000000743293265,68.99773,0.0,1.628436915249817,0.0,0.4422446168741961,0.0,0.0,0.14106576850734703,0.0,0.0,0.0,5.864075395099821,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,1,0,0],"left":[1,2,0,4,5,0,0,8,9,0,0,12,0,0,15,16,17,18,0,20,0,0,23,0,0,0,27,0,0],"right":[14,3,0,7,6,0,0,11,10,0,0,13,0,0,26,25,22,19,0,21,0,0,24,0,0,0,28,0,0],"is_leaf":[0,0,1,0,0,1,1,0,0,1,1,0,1,1,0,0,0,0,1,0,1,1,0,1,1,1,0,1,1]},{"value":[0.0,-0.03831875471015919,-0.01568581377709334,-0.07753538569546865,-0.2835368529786622,-0.05737880678592014,-0.4077301420539701,-0.06582505987118807,0.010873637436800818,0.044087512681501184,-0.04305870472179905,0.09165824957802687,0.07701305989952907,0.0376086520372281,-0.0587464829088594,0.09393442095150145,0.02158491408139636,-0.0367999163860495,-0.07822285362287823,0.04168986098194232,-0.08365394889686963,-0.0038764365373307186,-0.34627113829548795,-0.1873567591790308,-0.08243033652925079,-0.07958754906043533,0.01892319527430551,0.0006451243985083011,0.003157577666394218],"feature_idx":[3,27,15,1,22,0,0,0,1,16,0,65,0,41,0,59,0,40,0,0,21,0,0,0,0,0,23,0,0],"num_threshold":[0.5,0.8229775327133568,91.053696,0.5,0.2168682963420513,0.0,0.0,0.0,0.5,385.189265,0.0,0.020341225840611266,0.0,0.02330681595009787,0.0,0.07185205904200126,0.0,0.0993116327168706,0.0,0.0,351.0468,0.0,0.0,6.021366539135289,0.0,0.0,1.000000743293265,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,4,5,0,0,0,9,10,0,12,0,14,0,16,0,18,0,0,21,0,0,24,0,0,27,0,0],"right":[26,23,8,7,6,0,0,0,20,11,0,13,0,15,0,17,0,19,0,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.03780268617609455,-0.015091397981335993,-0.021729952288558386,0.08871998011034621,0.012034222685861807,0.1352549963162545,-0.036057167968837345,0.36631904390672326,-0.04490164205209355,-0.12006806178896459,-0.2649191411240825,-0.1124811332837144,-0.001887533464149982,0.06674037473763957,-0.1873567591790308,-0.37795251219856313,1.267790991971706,-0.07908024696993472,-0.07560817160741361,0.018778415275323396,0.014297672183671993,0.00033636535333450015,0.1241071170520721,0.07450150833679814,0.036699559267690064,0.16679390692275026,-0.0025891901466064127,0.004288109246664007],"feature_idx":[3,27,44,8,20,0,0,15,0,15,1,0,0,0,0,0,23,0,0,0,23,38,0,7,0,0,8,0,0],"num_threshold":[0.5,0.8229775327133568,0.7491316023514039,0.15217391304347827,432.3108,0.0,0.0,40.679588,0.0,91.053696,0.5,0.0,0.0,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,1.000000743293265,0.7190577125139171,0.0,5.111987788356544,0.0,0.0,0.83275844548015,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,1,0,1,0,0,0,0,0],"left":[1,2,3,4,5,0,0,8,0,10,11,0,0,0,0,16,17,0,0,0,21,22,0,24,0,0,27,0,0],"right":[20,15,14,7,6,0,0,9,0,13,12,0,0,0,0,19,18,0,0,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,-0.04275028733567271,-0.005053691343381317,-0.1873567591790308,-0.37795251219856313,1.2044014423731206,-0.07512623462143796,-0.07182776302704293,0.01751858697242568,0.013087976281644974,-0.00024400165090447958,0.049045791243751094,0.1187481123890347,0.02210574544703511,0.03135911573091352,0.014644108833539443,-0.032126658497404995,0.006871930640924122,-0.1407926925569897,-0.08605323074776017,-0.006857915225594269,0.07830917971071166,0.027120322112210715,-0.005311650201720042,-0.019209211368437097,0.18143654247146337,0.11355567047913376,-0.009782395268803513,0.0031291582904049878],"feature_idx":[3,27,0,0,23,0,0,0,23,9,0,60,0,13,27,22,66,32,15,0,0,43,0,0,0,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,1.000000743293265,2.324186113537742,0.0,0.02244327770158845,0.0,0.7810468046424883,0.15238212990438513,0.23679783816924374,0.03245318893124438,0.0,44.012932,0.0,0.0,0.016417535306360587,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,0,0,1,1,0,0,0,1,1,1,1,1,0,0,0,1,0,0,0,0,0,0,0],"left":[1,2,0,4,5,0,0,0,9,10,0,12,0,14,15,16,17,18,19,0,0,22,0,0,0,0,0,0,0],"right":[8,3,0,7,6,0,0,0,28,11,0,13,0,27,26,25,24,21,20,0,0,23,0,0,0,0,0,0,0],"is_leaf":[0,0,1,0,0,1,1,1,0,0,1,0,1,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1]},{"value":[0.0,-0.038938320276079984,-0.017479655787090747,-0.07527204426727903,-0.19042995231923643,-0.06280887096832473,0.012291208105682398,0.04451157148300101,0.013334752866548411,-0.2827716608744685,0.047654838576686495,0.1397642615463219,0.05978947507511095,-0.0024091918910031044,-0.004801006776212269,0.16972737134786128,0.007442700034322236,0.14669943663251248,-0.08524078785463646,0.04342307468359152,-0.2824541500880692,-0.18024310074013253,-0.07059849562321956,-0.022980868913714043,-0.07764050149304397,0.17317479852717668,-0.08870382801064408,0.19276425938818953,0.0009235319833983624],"feature_idx":[3,27,15,1,0,0,1,61,21,0,65,46,0,0,0,65,0,0,16,0,0,0,0,44,0,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,100.2141,0.5,0.0,0.0,0.5,0.13926017956011527,313.07079,0.0,0.04024576522297796,0.03357804704112988,0.0,0.0,0.0,0.04024576522297796,0.0,0.0,317.104309,0.0,0.0,6.021366539135289,0.0,0.0,0.0,6.153178914282275,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,0,0,1,0,1,0,1,0,0,0],"left":[1,2,3,4,0,0,7,8,9,0,11,12,0,0,0,16,0,0,19,0,0,22,0,24,0,26,0,0,0],"right":[28,21,6,5,0,0,18,15,10,0,14,13,0,0,0,17,0,0,20,0,0,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,0,1,0,0,1,1,1,0,1,1,0,1,1,0,1,0,1,0,1,1,1]},{"value":[0.0,-0.04222315641984256,-0.004436008895789811,-0.1873567591790308,-0.37795251219856313,1.1477112950356254,-0.06783999810920509,-0.0643543498010386,0.017288718919850635,0.013646271587160816,-0.004881767369427113,0.030057679806542482,-0.026721693676547132,-0.002768875279059202,0.008525424215442712,0.05030321265313537,0.11276453017041313,0.02445252452615163,-0.024407596618966743,0.05148420341686703,0.03539366839811762,0.020262892815693337,-0.12475508590633978,0.004048536233236888,-0.025018402783522478,0.23777985190635617,-0.01829492739918521,0.11184550605779614,0.007079040338264165],"feature_idx":[3,27,0,0,23,0,0,0,13,9,16,0,15,0,0,60,0,63,0,14,14,0,7,0,0,27,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.9894146852851597,2.324186113537742,256.075317,0.0,124.9811,0.0,0.0,0.02244327770158845,0.0,0.005878876938050136,0.0,0.28090365307033527,0.22088948311851703,0.0,5.407171771460119,0.0,0.0,0.13126566924036592,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0],"left":[1,2,0,4,5,0,0,0,9,10,11,0,13,0,0,16,0,18,0,20,21,0,23,0,0,26,0,0,0],"right":[8,3,0,7,6,0,0,0,28,15,12,0,14,0,0,17,0,19,0,25,22,0,24,0,0,27,0,0,0],"is_leaf":[0,0,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,0,1,0,0,1,0,1,1,0,1,1,1]},{"value":[0.0,-0.04213542074576114,-0.004214208451000445,-0.1873567591790308,-0.37795251219856313,1.090325730283844,-0.06444799820374483,-0.06113663231098663,0.018282116275945205,0.013997629920209939,-0.005981091642579982,0.023733193471688237,0.08698159391369337,0.007131458612982301,-0.029386648099289127,-0.0021775910683885513,-0.007199156560659148,0.05297184097331083,0.10712630366189231,0.027763504366931344,0.037178111958068805,0.0208879814016965,0.18134121242266055,-0.006105388931588607,0.2686550687577087,-0.28452461929240375,0.11245162869673885,-0.00808853196535715,0.0023606128565848653],"feature_idx":[3,27,0,0,23,0,0,0,23,9,64,1,46,0,0,0,0,60,0,13,27,58,0,0,41,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,1.000000743293265,2.324186113537742,0.010380856774087843,0.5,0.0007869329337983899,0.0,0.0,0.0,0.0,0.02244327770158845,0.0,0.7810468046424883,0.15238212990438513,0.024432154161883893,0.0,0.0,0.017133965324230616,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0],"left":[1,2,0,4,5,0,0,0,9,10,11,12,13,0,0,0,0,18,0,20,21,22,0,0,25,0,0,0,0],"right":[8,3,0,7,6,0,0,0,28,17,16,15,14,0,0,0,0,19,0,27,24,23,0,0,26,0,0,0,0],"is_leaf":[0,0,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,1,0,0,0,1,1,0,1,1,1,1]},{"value":[0.0,0.034612327455316,0.01576518037922159,-0.02248871209020216,0.05791264329347961,0.11841837149239355,0.1871285626894404,0.04362863067199285,0.006598424535776815,-0.02150663168735747,-0.025379662526429803,-0.035538058721263255,-0.019129239250542895,-0.033745296607760426,-0.08552802547397721,-0.1979532990006251,-0.06155454523696307,0.052648482779423134,-0.046812617456796206,-0.06832023281879245,0.1447357652376131,-0.2084735333933786,0.05723251218869496,-0.00011637515872191529,0.05969018521808242,0.07801970159648684,-0.04816119785143052,0.02380515405248911,-0.023462213197766958],"feature_idx":[28,7,22,0,0,19,43,0,0,0,27,0,12,3,9,19,0,0,25,0,11,0,0,0,9,59,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.24309272626663617,0.0,0.0,196.050781,0.011080688528984584,0.0,0.0,0.0,0.004392685667586066,0.0,113.64988273456954,0.5,0.666885678291477,493.351639733,0.0,0.0,1.000003340587977,0.0,316.05434274407463,0.0,0.0,0.0,3.97503525506725,0.006662965019433649,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,1,1,0,0,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,0],"left":[1,2,3,0,0,6,7,0,0,0,11,0,13,14,15,16,0,0,19,0,21,0,0,0,25,26,0,0,0],"right":[10,5,4,0,0,9,8,0,0,0,12,0,24,23,18,17,0,0,20,0,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,1,0,0,1,1,1,0,1,0,0,0,0,1,1,0,1,0,1,1,1,0,0,1,1,1]},{"value":[0.0,0.021882058624737365,0.0637016843023625,0.03906653438829899,-0.04924360984836362,-0.1302340224625086,1.688588572864628,-0.20011186251254942,-0.08331937325924771,0.17764158527403567,0.15587108009741935,-0.0010065044469712348,-0.03373242722140575,-0.08767316108789712,-0.15859898826059488,-0.07834193094596202,-0.15866904167995655,-0.2885328344723508,-0.16708393833015844,0.03690965016879346,-0.39552445054219715,1.0388871710315,-0.058147871031709465,-0.010707770244927584,-0.05502364788659034,0.013371862248074785,-0.007120944768207441,0.002287664125864275,-0.001955148582958799],"feature_idx":[10,14,37,0,22,15,0,31,0,0,0,0,3,0,28,0,1,0,0,0,23,0,0,62,0,0,64,0,0],"num_threshold":[0.36760847059601903,0.16420539205513687,0.0053937631162328335,0.0,0.25466721840303697,40.679588,0.0,0.0,0.0,0.0,0.0,0.0,0.5,6.021366539135289,0.831356879344328,5.790384178852501,0.5,0.0,0.0,0.0,0.9999908814745883,0.0,0.0,0.03352268126977476,0.0,0.0,0.0017411491584445743,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,0,1,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,0,0,0,13,14,15,16,17,0,0,0,21,0,0,24,0,0,27,0,0],"right":[12,11,4,0,10,7,0,9,0,0,0,0,26,23,20,19,18,0,0,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,-0.02227825217525828,0.028184076935442493,0.039946913745614,-0.05716111667435016,0.05885894510330125,-0.26264935099187314,-0.04361993927108043,-0.024608045296129016,-0.04922319975288943,-0.0027835437181011006,-0.1966297486297286,0.031554499467587566,-0.15147530048635957,-0.02230177242718927,-0.05323436296141218,0.07682523421182438,0.17180440685553738,0.057861674516338196,0.08404920911037571,-0.014050888865530454,0.019208847146617816,-0.013195586134616733,-0.04185293616419337,0.0335495165251526,0.12750915380623037,0.07879493005904942,-0.28261317570426325,0.0029772240460189895],"feature_idx":[9,26,46,9,0,0,0,40,62,12,0,0,14,13,0,0,1,63,0,41,0,0,0,0,60,17,0,0,0],"num_threshold":[2.1788623895092316,0.6996597541553241,0.0027197405192288526,0.5674509442539184,0.0,0.0,0.0,0.09105691056910568,0.024797492365824358,183.357216172695,0.0,0.0,0.13342676345947577,0.9613025083810082,0.0,0.0,0.5,0.008681543804404557,0.0,0.02330681595009787,0.0,0.0,0.0,0.0,0.02244327770158845,262.1605,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],"left":[1,2,3,4,0,0,0,8,9,10,0,0,13,14,0,0,17,18,0,20,0,0,0,0,25,26,0,0,0],"right":[24,7,6,5,0,0,0,23,12,11,0,0,16,15,0,0,22,19,0,21,0,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,1,0,0,0,1,1,0,0,1,1,0,0,1,0,1,1,1,1,0,0,1,1,1]},{"value":[0.0,0.012338172698779265,0.015087336925773456,0.0106302296143281,0.039803317554980566,0.0025589410232307714,0.0002672095395728182,0.01069991676486879,-0.002057664985410668,0.252255934377527,-0.4159697107567099,0.40808969151060226,0.11843043290103986,-0.2141770135047492,0.6210125470755916,-0.18678101950650616,-0.06905421484174842,-0.00677696718675776,0.04174569125958563,-6.589621049553074e-05,0.2587000015130143,-0.059234915687003564,0.004023492157679698,-0.05430306084063261,-0.14004636431195697,-0.045954286308407526,-0.0020292225201235504,-0.0517011697216983,0.1252677228149958],"feature_idx":[10,19,51,14,0,20,8,0,0,18,0,0,0,7,0,0,16,62,25,0,3,0,0,0,21,0,44,0,0],"num_threshold":[0.6774280200260546,699.2251,0.0,0.07707070796642963,0.0,639.0982,0.22147368742212792,0.0,0.0,343.1654,0.0,0.0,0.0,2.302585092994046,0.0,0.0,352.164535,0.012482950602611453,1.0000008896495525,0.0,0.5,0.0,0.0,0.0,455.0919,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,7,0,0,10,0,0,0,14,0,0,17,18,19,0,21,0,0,0,25,0,27,0,0],"right":[16,13,12,5,0,9,8,0,0,11,0,0,0,15,0,0,24,23,20,0,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,0,0,0,1,0,1,1,1,0,1,0,1,1]},{"value":[0.0,-0.03974375871832336,-0.017319851409207016,-0.006788324230048946,-0.038704206803030085,0.012891834218372013,-0.10884036281021166,0.0449180273895327,0.016563372280705303,-0.2506310797303041,-0.16197107214385548,0.0725179940315232,0.052016828584644695,-0.3462474377849134,-0.2963984189119687,0.20543484893371622,-0.17738701994519115,-0.18740486048595437,-0.3780610899704193,0.9870852844763549,-0.05171684618237391,-0.04983557399093535,0.020666668939391633,0.014663909253337777,0.019645487609058872,0.0015305009633211242,0.060971871530016486,-0.02599795366817457,0.004551995146037058],"feature_idx":[3,27,14,19,25,0,0,1,0,0,66,26,0,0,19,0,0,0,23,0,0,0,13,10,53,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.26990964967765896,306.079681,0.6476330393237649,0.0,0.0,0.5,0.0,0.0,0.06256762777671698,1.0000057779117788,0.0,0.0,273.0292,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.9805675611306245,0.84242260691837,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,1,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,1,1,1,0,0,0,0],"left":[1,2,3,4,5,0,0,8,0,0,11,12,0,0,15,0,0,18,19,0,0,0,23,24,25,0,0,0,0],"right":[22,17,10,7,6,0,0,9,0,0,14,13,0,0,16,0,0,21,20,0,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,1,1,1,0,0,0,1,1,1,1]},{"value":[0.0,-0.03967923423920914,-0.003627562519958083,-0.18743452295948532,-0.3781280462651589,0.9377310202525373,-0.049131003873255176,-0.03574718133319405,-0.056439003285076166,0.1370074852186177,-0.06723650764746081,0.17943488710598637,0.01872028400730231,0.016732476115525235,0.0131517624249581,0.05658165930321713,-0.04831953137946662,0.11974283124754806,-0.13156249172929033,-0.19289904098697996,-0.08328422152764255,-0.009691971284064495,0.21577082864515873,0.10043372111589749,0.03671332791904689,0.016511387586573535,8.557672743769729e-06,0.006388096287188994,0.057923277953515755],"feature_idx":[3,27,0,0,23,0,0,44,0,0,0,0,53,13,17,32,9,0,13,15,0,0,0,14,0,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0,0.0,0.9894146852851597,68.99773,0.0,1.5291844228587117,0.0,0.4422446168741961,45.987015,0.0,0.0,0.0,0.14106576850734703,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,0,1,0,1,0,0,1,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,0,4,5,0,0,8,0,10,0,0,13,14,15,16,17,0,19,20,0,0,0,24,0,0,0,0,0],"right":[12,3,0,7,6,0,0,9,0,11,0,0,28,27,26,23,18,0,22,21,0,0,0,25,0,0,0,0,0],"is_leaf":[0,0,1,0,0,1,1,0,1,0,1,1,0,0,0,0,0,1,0,0,1,1,1,0,1,1,1,1,1]},{"value":[0.0,-0.03966644102412171,-0.003446184393960117,-0.18743452295948532,-0.3781280462651589,0.8908444692399103,-0.04667445367959244,-0.0445218451271348,0.01823920575181517,0.01624868212332793,0.01267676332508266,0.016841601662650873,0.0063702868638997705,0.02478101155642115,-0.00026084731997499944,0.07755633950164019,-0.0281939101984059,-0.07697317554857158,-0.026552374680792214,-0.0507942071694366,-0.07459669921661485,0.09851596597042267,-0.017944227823582893,0.006867237809782445,0.0181781485700712,-0.2334199865429886,0.009245477086588494,0.006068691472829535,0.05502711405584009],"feature_idx":[3,27,0,0,23,0,0,0,53,13,18,0,36,9,0,0,36,23,0,27,10,0,0,0,9,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,0.9894146852851597,70.994591,0.0,0.524077589120882,2.0481560870031212,0.0,0.0,0.9148193997845863,0.2042080082312273,0.0,0.13126566924036592,0.024079827366316565,0.0,0.0,0.0,0.3772110179866293,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0],"left":[1,2,0,4,5,0,0,0,9,10,11,0,13,14,0,0,17,18,0,20,21,0,0,0,25,0,0,0,0],"right":[8,3,0,7,6,0,0,0,28,27,12,0,16,15,0,0,24,19,0,23,22,0,0,0,26,0,0,0,0],"is_leaf":[0,0,1,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,1,1,1,0,1,1,1,1]},{"value":[0.0,-0.01993745007431806,0.006037370492244706,0.0009634008564781027,-0.1753558570332157,-0.15837678536268848,-0.026197349660975366,-0.13811620478056072,0.0604885317703662,-0.06044124446143433,-0.14636339570403223,-0.03258776759966089,-0.0010047291997906883,-0.03132024557710764,0.031826579970115045,0.0678833050295129,0.01614788781571107,0.022754716095960394,-0.051189895720729524,-0.04067932740832454,0.14634364366415156,0.04264602158936385,0.0284550972836918,0.005454125235322404,0.020957433651262108,0.007613736322540277,-0.023947576125971537,-0.011107333303679212,-0.017706982067776166],"feature_idx":[9,65,24,0,18,0,24,0,0,13,0,44,0,0,60,0,23,32,13,0,0,20,0,38,42,0,0,0,0],"num_threshold":[2.1788623895092316,0.002439523680035416,1.000002878139116,0.0,322.155304,0.0,1.0000052771857328,0.0,0.0,0.6474182072099889,0.0,0.8958807403558439,0.0,0.0,0.02244327770158845,0.0,0.720664210557472,0.0,0.4422446168741961,0.0,0.0,183.1153,0.0,0.37577925396014306,0.16536463737756213,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,1,0,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,0,12,0,0,15,0,17,18,19,0,0,22,0,24,25,0,0,0,0],"right":[14,9,4,0,6,0,8,0,0,11,0,13,0,0,16,0,28,21,20,0,0,23,0,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,1]},{"value":[0.0,0.010263159273009418,0.042975032252576234,0.008537897940255735,-0.08948571522014716,1.4688606568477827,-0.125285403321487,-0.0699479278151408,0.11866433206491643,0.049413043764888254,0.11846638963314243,0.018088072716518157,-0.02275019731967305,-0.07033376126660218,-0.06715996719524142,0.012584951162829228,0.0896199451150757,-0.009331641793913149,-0.0003282983160190156,-0.04505372157130836,-0.06129452883204965,-0.007405610871514532,-0.007582090258966012,0.0041103853197689945,-0.1500595972621011,-0.08542042359983039,-0.050494972975653064,0.03588895221926176,-0.05998396371054682],"feature_idx":[10,26,22,15,15,0,32,0,0,17,29,0,0,15,0,0,0,35,0,0,4,22,0,0,44,36,0,0,0],"num_threshold":[0.6774280200260546,0.7697413242213694,0.24309272626663617,50.000158,40.679588,0.0,0.0019160537935704151,0.0,0.0,79.053993,0.004523554526147955,0.0,0.0,55.0544,0.0,0.0,0.0,0.9554616859853552,0.0,0.0,0.5,0.8078933209186053,0.0,0.0,0.06515157937773552,0.002457002457002457,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,1,0,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,4,5,0,7,0,0,10,11,0,0,14,0,0,0,18,0,0,21,22,0,0,25,26,0,0,0],"right":[20,17,16,9,6,0,8,0,0,13,12,0,0,15,0,0,0,19,0,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,1,0,1,1,0,0,1,1,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.0366689642092748,-0.0032051970130352104,-0.18654464878835952,-0.04412000786712538,-0.04167478886471905,0.019300589685973032,0.011726337407363886,-0.030045076668696078,0.2089376747743323,-0.040943884090039045,0.0003304131620016193,-0.025042568757871565,0.029602079932133735,0.022767710908813316,0.04589698087760641,0.03985110011220796,0.02257183744379865,-0.009262735007331813,0.03993057426226834,0.013361009801370472,0.0015265787520540642,-0.004717690270268804,0.21339922112653814,0.03215993831789529,-0.03926489905494819,0.08106735485016081,0.09028675988207091,0.0020681529207404736],"feature_idx":[3,27,0,0,0,0,13,60,10,0,39,0,0,14,14,27,9,22,0,0,0,0,0,61,11,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.0,0.0,0.9502825823209181,0.005719733079122974,0.1344354272338704,0.0,0.0,0.0,0.0,0.29699403370244676,0.2130261657230065,0.5826975694961831,3.470011336461873,0.223763146855637,0.0,0.0,0.0,0.0,0.0,0.02654686754568522,322.22368619429506,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0],"left":[1,2,0,4,0,0,7,8,9,0,11,0,0,14,15,16,17,18,0,0,0,0,0,24,25,0,0,0,0],"right":[6,3,0,5,0,0,28,13,10,0,12,0,0,23,22,21,20,19,0,0,0,0,0,27,26,0,0,0,0],"is_leaf":[0,0,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1]},{"value":[0.0,-0.03479190754183786,-0.011746855978113743,-0.07014516683622563,-0.25511724653298257,-0.022400594333289447,-0.3372959466033491,-0.06132269442066072,0.013330398956654351,0.0463726581641551,-0.05535850491272054,0.010451558243548577,-0.08070925340296038,-0.0008211763138074702,-0.3009375168382297,-0.18654464878835952,-0.3761193575015302,0.8509848247772299,-0.041914007473769124,-0.03959104942148306,0.017778866988366553,0.010250086955270124,0.013004312589438884,0.00289492918469018,0.0075635149410878495,0.0007354288273701215,-0.14584377491569,-0.03830302485965564,0.001964745274703361],"feature_idx":[3,27,15,1,22,0,0,0,1,21,0,0,21,0,0,0,23,0,0,0,13,18,0,10,24,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,91.053696,0.5,0.2168682963420513,0.0,0.0,0.0,0.5,313.07079,0.0,0.0,351.0468,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.9502825823209181,70.994591,0.0,0.84242260691837,1.000002878139116,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,1,0,0,0,0],"left":[1,2,3,4,5,0,0,0,9,10,0,0,13,0,0,16,17,0,0,0,21,22,0,24,25,0,0,0,0],"right":[20,15,8,7,6,0,0,0,12,11,0,0,14,0,0,19,18,0,0,0,28,23,0,27,26,0,0,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,0,1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,1]},{"value":[0.0,-0.04097254645059769,-0.018880826643430042,-0.06012141175876462,-0.045626881393192195,-0.057839216960435286,-0.03599955715745118,0.14432649913112708,-0.17377109684064518,0.057118202036123125,0.27396217975624304,-0.48519442373192345,0.08155459370081922,-0.2691968209045778,0.01506941872096139,-0.0007581720249156377,0.17577082791471066,-0.1864457738789099,-0.3758961698576355,0.8084355835383685,-0.039818307100080656,-0.03574718133319405,-0.046920408844521866,0.1370074852186177,-0.05942791574820783,0.17500831577038023,0.015001191883937356,0.0008185453504840013,0.005309922680603308],"feature_idx":[3,27,35,14,14,26,0,12,0,0,15,0,0,0,16,0,0,0,23,0,0,44,0,0,0,0,13,0,0],"num_threshold":[0.5,0.8229775327133568,0.4883446254908294,0.26990964967765896,0.25221150700844475,1.0003477759487711,0.0,4.369050499619275,0.0,0.0,85.028076,0.0,0.0,0.0,721.3366,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.0,6.153178914282275,0.0,0.0,0.9894146852851597,0.0,0.0],"missing_go_to_left":[0,1,0,1,1,1,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,1,0,0,1,0,0],"left":[1,2,3,4,5,6,0,8,0,0,11,0,0,0,15,0,0,18,19,0,0,22,0,24,0,0,27,0,0],"right":[26,17,14,13,10,7,0,9,0,0,12,0,0,0,16,0,0,21,20,0,0,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,0,1,0,1,1,0,1,1,1,0,1,1,0,0,1,1,0,1,0,1,1,0,1,1]},{"value":[0.0,0.007775334245749079,0.03378620994371548,0.03085885414095499,0.061732484587135934,-0.012394041858726773,-0.02608353681005582,0.009663241931272638,0.12789142005853157,-0.0002978459712799975,0.054262291934317024,-0.01331575104747012,-0.08971116671339514,-0.07103870625039678,0.0028068575213548996,-0.05949367905466368,-0.14887169023377825,0.003666408693583613,-0.0002988016861763754,0.0741028876348782,-0.06096135131593755,-0.004499868517645994,-0.0057229532533702,0.0037193315687456875,-0.15396450734051095,-0.09016145385033938,-0.04167760820482167,0.02940738073408955,-0.05069214940297071],"feature_idx":[10,14,24,10,22,7,0,0,0,0,0,62,25,63,0,0,0,14,0,0,4,22,0,0,44,36,0,0,0],"num_threshold":[0.6774280200260546,0.15138779116270304,1.0000052771857328,0.3289503437532118,0.24309272626663617,5.247024072160486,0.0,0.0,0.0,0.0,0.0,0.005318669431172811,1.0000052771857328,0.0,0.0,0.0,0.0,0.29699403370244676,0.0,0.0,0.5,0.8078933209186053,0.0,0.0,0.06515157937773552,0.002457002457002457,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,4,5,6,0,0,0,0,0,12,13,14,0,0,0,18,0,0,21,22,0,0,25,26,0,0,0],"right":[20,11,10,9,8,7,0,0,0,0,0,17,16,15,0,0,0,19,0,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,0,1,1,1,1,1,0,0,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.035369951227446676,-0.011645525458297933,-0.07000753660092798,-0.25707048354464446,-0.02122771593107018,-0.315656487462576,-0.0585325171989112,0.013416136977891943,0.0463726581641551,-0.05253777876727472,0.009520585513737601,-0.08037952484374014,-0.0064304069023094716,-0.2841916679089203,-0.19159650790396052,-0.37681780353997874,0.7700976847716912,-0.03883533918537836,-0.04425805601303189,-0.042365253122593316,0.21073759639909292,0.019447590667482594,0.013021937056066102,-0.024735085276279812,0.001709197962790121,0.1619999049109912,-0.00543680559070161,0.0025029016962443864],"feature_idx":[3,27,15,1,22,0,0,0,1,21,0,0,21,0,0,0,23,0,0,64,0,0,27,9,0,0,22,0,0],"num_threshold":[0.5,0.8229775327133568,91.053696,0.5,0.2168682963420513,0.0,0.0,0.0,0.5,313.07079,0.0,0.0,351.0468,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0035221881914564435,0.0,0.0,0.8626943005181347,0.5015697266584318,0.0,0.0,0.29011361940542385,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0],"left":[1,2,3,4,5,0,0,0,9,10,0,0,13,0,0,16,17,0,0,20,0,0,23,24,0,0,27,0,0],"right":[22,15,8,7,6,0,0,0,12,11,0,0,14,0,0,19,18,0,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,-0.0360001592516798,-0.011133377177176784,-0.0028664779276586405,-0.002983472768811524,0.1967953332429438,-0.28496216999805174,0.04300691186379382,-0.23114342041902775,-0.199749441183674,-0.37648748583628444,0.7315928005331065,-0.03689357222610941,-0.059152087102471364,0.11577463243503211,0.3432344882792358,-0.05580862634137223,-0.16575426229714976,-0.09190196721256819,-0.03820452033278646,0.017910308003091156,0.01185534551728116,-0.023498331012465814,0.017680297265047364,0.05374067569742245,0.0012552395320092559,0.15223902572032763,-0.005164965311166548,0.002377756611432247],"feature_idx":[3,27,65,44,0,18,0,0,0,0,23,0,0,15,9,0,0,15,0,0,27,9,0,19,0,0,22,0,0],"num_threshold":[0.5,0.8229775327133568,0.37068645640074205,0.5792910212289751,0.0,283.0962,0.0,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,173.541687,0.4402133317622271,0.0,0.0,261.132,0.0,0.0,0.8626943005181347,0.5015697266584318,0.0,62.0158,0.0,0.0,0.29011361940542385,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,4,0,6,0,0,0,10,11,0,0,14,15,0,0,18,0,0,21,22,0,24,0,0,27,0,0],"right":[20,9,8,5,0,7,0,0,0,13,12,0,0,17,16,0,0,19,0,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,-0.03933024431013952,-0.0028342991303709655,-0.199481445386378,-0.03387619564552651,-0.059152087102471364,0.11577463243503211,0.326072763865274,-0.053018195024303605,-0.0375963643562196,0.014208200492720396,0.03344738866164907,0.13383638414025512,0.1896620789306166,-0.011208344264210269,0.0009278734229621222,-0.017946126009371965,-0.062046379478327605,-0.004220451160772499,-0.18933384437827314,0.046168471808753254,-0.013618839221952684,0.0391045417034852,-0.007024451775493981,0.04018504075464971,0.06342320759110401,-0.3163837139732259,-0.05832227436010556,0.012528807892559968],"feature_idx":[3,27,0,0,0,15,9,0,0,0,36,8,26,0,0,0,36,7,0,64,0,0,7,7,46,0,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.0,6.021366539135289,0.0,173.541687,0.4402133317622271,0.0,0.0,0.0,0.4826586402399128,0.22147368742212792,1.0000117624123401,0.0,0.0,0.0,0.9337969486752774,5.53338948872752,0.0,0.002496993380146084,0.0,0.0,5.111987788356544,3.5553480614894135,0.012194152701834382,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,1,1,1,0,0,0,0],"left":[1,2,0,4,0,6,7,0,0,0,11,12,13,0,0,0,17,18,0,20,0,0,23,24,25,0,0,0,0],"right":[10,3,0,5,0,9,8,0,0,0,16,15,14,0,0,0,22,19,0,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,1,0,1,0,0,1,1,1,0,0,0,1,1,1,0,0,1,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,0.00813544438177572,0.01093888066453124,0.006929202725706162,0.003334943992144214,0.03347956580943205,0.1861169179793155,0.01841450902559004,-0.003510281161800322,0.07180951275408681,-0.08129169366711438,0.1236773714854824,0.12994775778949866,0.08933309559062366,-0.0009418824221739897,0.0031015843156595225,0.24022527308148994,0.11727705952350008,-0.01181192133629665,-0.10495013540867558,-0.06535264439443494,-0.011782605294271897,-0.004560868714385791,0.0035011264438955083,-0.15159611042325793,-0.08872044223624281,-0.03411347244172989,0.01812889562023994,-0.042677286579971434],"feature_idx":[8,19,51,18,26,39,0,22,0,61,0,1,0,0,0,0,59,0,0,0,4,22,0,0,44,36,0,0,0],"num_threshold":[0.814783430564156,699.2251,0.0,473.105835,0.7697413242213694,0.0,0.0,0.24309272626663617,0.0,0.04197910907944058,0.0,0.5,0.0,0.0,0.0,0.0,0.07185205904200126,0.0,0.0,0.0,0.5,0.8078933209186053,0.0,0.0,0.06515157937773552,0.002457002457002457,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,4,5,6,0,8,0,10,0,12,0,0,0,0,17,0,0,0,21,22,0,0,25,26,0,0,0],"right":[20,19,16,15,14,7,0,9,0,11,0,13,0,0,0,0,18,0,0,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,0,1,0,1,0,1,0,1,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.03959422440693907,-0.016089620360164907,-0.00807794005233755,0.007033500077417024,0.0013436548880211064,-0.21240849384145047,0.6101086731150176,-0.1506331596142367,-0.09527007904105896,-0.2193974403204491,-0.19437218066627696,-0.37505452006384943,0.698412643910814,-0.03164941021044117,-0.05064121242263352,0.11577463243503211,0.30886268089099833,-0.05127373005410041,-0.15206057015715702,-0.041930466096745445,-0.03401087251632218,0.015385972151554853,0.0007612103937621129,0.19151423755113547,0.25094560066881977,0.004264751332132555,-0.012447583502863858,-0.00763711774576894],"feature_idx":[3,27,65,42,19,0,7,0,0,0,0,0,23,0,0,15,9,0,0,16,0,0,23,0,26,63,0,0,0],"num_threshold":[0.5,0.8229775327133568,0.37068645640074205,0.16536463737756213,699.2251,0.0,2.4849066497880004,0.0,0.0,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,173.541687,0.4402133317622271,0.0,0.0,498.582374,0.0,0.0,1.000000743293265,0.0,1.00000425023117,0.021932825668348976,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,1,1,0,0,0],"left":[1,2,3,4,5,0,7,0,0,0,0,12,13,0,0,16,17,0,0,20,0,0,23,0,25,26,0,0,0],"right":[22,11,10,9,6,0,8,0,0,0,0,15,14,0,0,19,18,0,0,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,1,0,1,1,1,1,0,0,1,1,0,0,1,1,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.0063488627515458735,0.00913767817693926,0.006549991327955027,0.00334177941277853,0.03277596335670381,0.1767730115606616,0.019154568628054702,-0.00013659817993563194,0.06693532709977283,-0.015478757639787403,-0.019895530162849798,-0.0005186160856439414,0.0029084445801885296,0.2996107960341841,0.4984332737491352,-0.011288508013882748,-0.09217097065752995,-0.06111839487181473,-0.011871296194441652,-0.004370885798354607,0.003288009602012565,-0.1404020865558185,-0.0887106367629342,-0.030612279171412383,0.0022409390181270085,-0.4158999812068776,0.00020612668106032573,-0.040304174251100826],"feature_idx":[8,19,51,18,26,39,0,40,0,0,23,0,0,0,59,0,0,0,4,22,0,0,44,36,0,0,33,0,0],"num_threshold":[0.814783430564156,699.2251,0.014141329584487106,473.105835,0.7697413242213694,0.0,0.0,0.3758994803925687,0.0,0.0,0.1905964407393624,0.0,0.0,0.0,0.08158919521142312,0.0,0.0,0.0,0.5,0.8078933209186053,0.0,0.0,0.06515157937773552,0.002457002457002457,0.0,0.0,0.014634146341463414,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,0,0,0],"left":[1,2,3,4,5,6,0,8,0,0,11,0,0,0,15,0,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[18,17,14,13,10,7,0,9,0,0,12,0,0,0,16,0,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,0,0,1,0,1,1,0,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,-0.03792770944896862,-0.016411048699770114,-0.017037081147931767,0.06441521739904427,0.0955612305042694,0.15650477649193953,0.026781023324957975,0.020404355166038002,-0.014713017554526253,-0.3368525042105128,-0.17961465447785277,-0.34174275757484246,0.0001958203470072917,-0.031100050682587723,-0.05064121242263352,0.11577463243503211,0.293307499895542,-0.048822090502301754,-0.15206057015715702,-0.038303328833337515,-0.03077971493193541,0.014136137189726655,0.00876665030537756,0.0018844905305716254,-0.0013359570762876416,0.19151423755113547,0.003826847623233576,-0.007036717568562701],"feature_idx":[3,27,47,0,1,65,0,66,0,0,0,0,33,0,0,15,9,0,0,16,0,0,23,10,0,0,26,0,0],"num_threshold":[0.5,0.8229775327133568,0.013681592039800993,0.0,0.5,0.020341225840611266,0.0,0.17442972681974112,0.0,0.0,0.0,6.021366539135289,0.014634146341463414,0.0,0.0,173.541687,0.4402133317622271,0.0,0.0,498.582374,0.0,0.0,1.000000743293265,0.5197130939738867,0.0,0.0,1.00000425023117,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,0,0,12,13,0,0,16,17,0,0,20,0,0,23,24,0,0,27,0,0],"right":[22,11,4,0,10,7,0,9,0,0,0,15,14,0,0,19,18,0,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.009275890191414246,0.0033496315460784134,-0.02591065217754819,-0.007710516251486866,0.049021458722345305,0.08262900598591486,0.12895055837985608,0.15622467412381988,0.026512194202345185,-0.23010570169070432,-0.05738166757340757,-0.0869933766619898,-0.005617259497238259,-0.04915489712223467,-0.009644960830536271,-0.06222939428342142,0.00015117741424930387,-0.06359988698617851,0.0014425524835791849,-0.12012918727809406,0.020762826043393724,-0.1712907397374269,-0.28579748557203605,-0.03539074049376634,0.03980187978585554,-0.16439509414239029,0.023807154796045185,-0.01735182802216535],"feature_idx":[10,14,0,19,0,18,40,64,39,0,0,0,0,0,4,27,64,0,0,0,24,0,11,26,0,24,0,0,0],"num_threshold":[0.5630832215996614,0.20544736305408123,0.0,321.0579,0.0,433.310974,0.11451863556351441,0.2797153650180093,0.19303537153825068,0.0,0.0,0.0,0.0,0.0,0.5,0.7542013180376982,0.001125577281307466,0.0,0.0,0.0,0.9999850744102411,0.0,392.56011114923706,1.0000057779117788,0.0,1.0000052771857328,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,1,0,1,1,0,1,0,0,0],"left":[1,2,0,4,0,6,7,8,9,0,0,0,0,0,15,16,17,0,0,0,21,0,23,24,0,26,0,0,0],"right":[14,3,0,5,0,13,12,11,10,0,0,0,0,0,20,19,18,0,0,0,22,0,28,25,0,27,0,0,0],"is_leaf":[0,0,1,0,1,0,0,0,0,1,1,1,1,1,0,0,0,1,1,1,0,1,0,0,1,0,1,1,1]},{"value":[0.0,-0.04452025932205638,-0.02078672822421675,-0.026486254933784724,-0.041194994729357504,0.005307253610153909,-0.013381309784537972,0.005322435442948682,-0.10497933014753008,-0.03154488875169643,-0.10388055897423919,-0.032941881329681524,0.36615151068628404,0.0764741099737222,-0.15852847149924987,0.19423105114603276,0.05594563265524464,-0.3465868209393408,0.050789805064737695,-0.20080464113512522,-0.3601356472325282,0.6639746933543238,-0.025539691156361767,-0.01915772047909217,0.01335826579140604,0.0006109216484343705,0.14413323107965229,0.0030036518147579017,-3.064734011477555e-05],"feature_idx":[3,27,44,35,0,67,64,0,42,60,19,0,0,0,0,1,0,0,0,0,23,0,0,0,13,0,62,0,0],"num_threshold":[0.5,0.8229775327133568,0.7491316023514039,0.4883446254908294,0.0,0.23548278489536267,0.0853841315722563,0.0,0.16536463737756213,0.1648532901010832,493.351639733,0.0,0.0,0.0,0.0,0.5,0.0,0.0,0.0,6.021366539135289,0.9999908814745883,0.0,0.0,0.0,0.9805675611306245,0.0,0.024797492365824358,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,1,1,0,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,7,0,9,10,11,0,0,0,0,16,0,0,0,20,21,0,0,0,25,0,27,0,0],"right":[24,19,18,5,0,15,8,0,14,13,12,0,0,0,0,17,0,0,0,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,0,1,0,0,0,1,1,1,1,0,1,1,1,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.008969879762850172,0.011329221282984414,0.008779458253563481,0.000487184309592692,0.17564579712095388,0.2970134034533799,0.4492050256354949,-0.03137748561592204,-0.18542462684960434,0.01675500587645118,-0.23688098385992884,-0.06565956899521311,-0.014709335622092432,-0.03581502632444007,0.0016107278096182398,-0.1495826705385479,-0.09925683912459164,-0.17096006395106045,-0.2376290964087767,-0.06554181825375842,-0.02534102134611196,0.16804315260427016,0.019598063894714034,-0.044555508552123785,0.2372443656464186,-0.41320692933755837,0.00027265614767273404,-0.033687441421909894],"feature_idx":[10,19,51,61,0,0,59,0,0,58,0,0,4,24,0,0,44,36,0,24,0,0,0,10,0,0,33,0,0],"num_threshold":[0.6774280200260546,699.2251,0.014141329584487106,0.8662963977001604,0.0,0.0,0.08158919521142312,0.0,0.0,0.009364525380973775,0.0,0.0,0.5,0.8624330129622345,0.0,0.0,0.06515157937773552,0.018413305885056783,6.2189144864367965,0.9999850744102411,0.0,0.0,0.0,0.84242260691837,0.0,0.0,0.014634146341463414,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,0,10,0,0,13,14,0,0,17,18,19,20,0,0,0,24,0,0,27,0,0],"right":[12,9,6,5,0,0,8,0,0,11,0,0,16,15,0,0,26,23,22,21,0,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,1,0,1,1,0,0,1,1,0,0,0,0,1,1,1,0,1,1,0,1,1]},{"value":[0.0,0.0007448003799137127,-0.047043213912069386,-0.011891463976904602,-0.03137100567569402,0.029958384200173188,0.05999287382816976,0.011496380636214255,0.2226878917221324,-0.024659822178634806,0.002988780983082151,-0.12745492948004652,-0.0011430398897154248,0.003954467308037124,-0.11018819735100421,0.01943420375359697,-0.15814682040175457,-0.26560928652921645,-0.030659846840164387,0.053533176697819776,-0.1541399489142825,0.024652187577231113,-0.07315583609500446,-0.1620500159429911,-0.1028471513684836,-0.035817409390489274,0.05007084167864875,-0.309313456926926,0.05040653567886864],"feature_idx":[10,0,4,13,16,64,29,22,0,0,0,0,0,0,24,0,11,26,0,24,0,0,43,7,62,0,0,0,0],"num_threshold":[0.5630832215996614,0.0,0.5,0.9894146852851597,322.2655,0.07499999999999996,0.7567665791778915,0.29011361940542385,0.0,0.0,0.0,0.0,0.0,0.0,0.9999850744102411,0.0,392.56011114923706,1.0000057779117788,0.0,1.0000052771857328,0.0,0.0,0.011080688528984584,2.1972245773362196,0.0014388210107920407,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,1,1,1,1,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,1,1,1,0,0,0,0],"left":[1,0,3,4,5,6,7,8,0,0,0,0,0,0,15,0,17,18,0,20,0,0,23,24,25,0,0,0,0],"right":[2,0,14,13,12,11,10,9,0,0,0,0,0,0,16,0,22,19,0,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,1,0,0,0,0,0,0,1,1,1,1,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,0.00918465068172065,0.03866991022101303,0.003842536869588987,0.024891724804648525,-0.01695228964184015,-0.18094191490387354,2.2145087110203578e-05,0.015393704498065475,-0.006136496790130508,-0.051407892202175336,-0.003065612709655079,-0.07954985303061538,-0.04589125867525006,-0.00018875143687129283,0.06524859562457667,0.0012225968715453561,0.006176920564332989,-0.1310372687664797,-0.08531096628101732,-0.10929987772609782,-0.008186551373506391,-0.21903756877659214,-0.12496918948740077,-0.03671141126495386,0.27039625451303134,-0.03288236698821905,0.2517843120571893,-0.029126854498156177],"feature_idx":[10,14,0,1,15,3,0,0,0,0,4,22,9,0,0,25,0,0,44,44,24,0,40,63,0,0,0,0,0],"num_threshold":[0.6774280200260546,0.06419149592026152,0.0,0.5,85.028076,0.5,0.0,0.0,0.0,0.0,0.5,0.5561480939902755,0.316159793008418,0.0,0.0,1.0000008896495525,0.0,0.0,0.06515157937773552,0.02947290285746751,0.9999994395308948,0.0,0.002928351546782724,0.008681543804404557,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,1,1,1,0,1,1,0,0,0,0,0],"left":[1,2,0,4,5,6,0,0,0,0,11,12,13,0,0,16,0,0,19,20,21,0,23,24,0,0,0,0,0],"right":[10,3,0,9,8,7,0,0,0,0,18,15,14,0,0,17,0,0,28,27,22,0,26,25,0,0,0,0,0],"is_leaf":[0,0,1,0,0,0,1,1,1,1,0,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,1,1,1]},{"value":[0.0,-0.038075092523881984,-0.009381073432377688,-0.006201443145984343,0.15503754687472718,0.04105212309474045,-0.292117132428898,-0.11693709699957162,-0.19946557999764425,0.6334906669802911,-0.22101104394495552,-0.2629978237972827,-0.08059385705146926,0.013597174009743453,0.017380668097258047,-0.041508944288147734,-0.06846957105425215,0.05350525064208472,0.14070653457232382,-0.14836644697961907,0.07576769599308762,-0.015124243390749826,-0.1942411830050166,-0.10800098092413413,-0.30175564154745693,0.0017640987149956544,-0.0705001546871599,0.16064729352322937,0.0008728813745975117],"feature_idx":[3,28,25,0,1,0,0,43,26,0,48,26,0,0,0,64,42,45,12,0,0,0,10,8,0,0,0,0,0],"num_threshold":[0.5,0.5916949694093702,1.000003340587977,0.0,0.5,0.0,0.0,0.006944002201518917,0.9999895305240649,0.0,0.05137328417103748,1.0019918719534193,0.0,0.0,0.0,0.10890879141755694,0.0033735454839434187,0.01272350530825106,12.771109938455362,0.0,0.0,0.0,0.6774280200260546,0.657275756047213,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,0,8,9,0,11,12,0,0,0,16,17,18,19,0,0,0,23,24,0,0,0,0,0],"right":[28,7,4,0,6,0,0,15,10,0,14,13,0,0,0,27,22,21,20,0,0,0,26,25,0,0,0,0,0],"is_leaf":[0,0,0,1,0,1,1,0,0,1,0,0,1,1,1,0,0,0,0,1,1,1,0,0,1,1,1,1,1]},{"value":[0.0,0.009111307225424473,0.004570303136517832,0.0058734416481994066,0.0016935312609081877,-0.061157073279289056,0.23980316029011875,-0.2825301670839499,0.16274057336278513,-0.016550706854641106,-0.0857775022539606,0.10087750851251893,0.1777087473841871,0.0411359817290478,0.0008292373058676362,-0.008668100788617572,-0.041435566952777614,-0.001973932578113796,-0.0004360096869849173,0.0024354552117653583,-0.08593933220877278,-0.03164310770830878,-0.002352924894556097,0.41382979429695727,-0.17027734966267125,-0.0033056281133190704,-0.08095033707335098,-0.01799615201089022,0.09682588282368165],"feature_idx":[10,44,28,44,0,7,13,0,0,0,0,1,26,0,0,0,16,7,0,0,41,7,0,0,35,0,31,0,0],"num_threshold":[0.5630832215996614,0.42920077891535846,0.7572430295779127,0.09350319500703722,0.0,1.6094379124341003,0.6715195957436104,0.0,0.0,0.0,0.0,0.5,0.9999988535494605,0.0,0.0,0.0,352.164535,5.111987788356544,0.0,0.0,0.004438563894675562,3.1780538303479458,0.0,0.0,0.152521951419401,0.0,0.7984937514446623,0.0,0.0],"missing_go_to_left":[1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,1,0,0],"left":[1,2,3,4,0,6,7,0,0,0,0,12,13,0,0,0,17,18,0,0,21,22,0,0,25,0,27,0,0],"right":[16,11,10,5,0,9,8,0,0,0,0,15,14,0,0,0,20,19,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,-0.0032037799951300226,-0.03380277880329776,-0.003144659499967162,-0.1634423875134912,-0.10469765604815104,-0.007670377200258472,-0.027691440420100924,-0.37617967149505377,0.00013216418554975461,-0.024818760025658995,0.010762951922855644,0.028084661249593974,0.1262720425352498,0.17794197146561289,-0.01054323456227877,0.0007373891860577687,-0.01805314758018523,-0.007998925415993341,0.028577700805796302,0.04604645618438034,0.012332276371023455,-0.01459320837423448,-0.042740532209672825,0.1538957306427214,0.20469239161033012,-0.03562722786184134,0.07143008543715759,-0.10869305590804634],"feature_idx":[48,3,27,0,44,24,0,0,12,0,0,36,8,26,0,0,0,36,0,23,1,0,0,0,45,36,0,0,0],"num_threshold":[0.2683656806025092,0.5,0.8229775327133568,0.0,0.06515157937773552,1.000001694420057,0.0,0.0,12.771109938455362,0.0,0.0,0.4826586402399128,0.22147368742212792,1.0000117624123401,0.0,0.0,0.0,0.9148193997845863,0.0,0.48210054862099233,0.5,0.0,0.0,0.0,0.12471691600093393,0.002457002457002457,0.0,0.0,0.0],"missing_go_to_left":[1,0,1,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0],"left":[1,2,3,0,5,6,0,0,9,0,0,12,13,14,0,0,0,18,0,20,21,0,0,0,25,26,0,0,0],"right":[24,11,4,0,8,7,0,0,10,0,0,17,16,15,0,0,0,19,0,23,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,1,0,0,0,1,1,1,0,1,0,0,1,1,1,0,0,1,1,1]},{"value":[0.0,0.001807775344475767,-0.0019154670726468626,0.03646002715448342,0.047445072546669895,0.0138563656641052,0.02632513345652406,-0.01278683250037318,0.08413119734286746,0.12440528061402596,0.07969221210402395,0.060460261769288995,0.010946757819917963,-0.11551791504179293,-0.07875812853913776,-0.055779905720741145,0.17340868823792788,-0.23194502745014312,-0.0005221317556030058,0.22936203590981605,-0.003374427731745122,0.34893138006564817,-0.5133103516966718,0.17663795895775466,-0.14120055295662184,-0.27319148308096575,0.2070558413205811,-0.07068543469698536,0.10037050276356788],"feature_idx":[21,16,8,11,23,26,30,0,42,44,0,63,0,0,0,0,0,0,0,64,0,2,0,0,47,46,0,0,0],"num_threshold":[779.1893,721.3366,0.22147368742212792,392.56011114923706,0.4724454296026261,1.0000117624123401,0.0001709355951085762,0.0,0.16536463737756213,0.0026560701836315648,0.0,0.17973533713008427,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.001125577281307466,0.0,0.5,0.0,0.0,0.013681592039800993,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,1,1,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0],"left":[1,2,3,4,5,6,7,0,9,10,0,12,0,0,0,0,0,0,0,20,0,22,0,0,25,26,0,0,0],"right":[24,19,18,17,16,15,8,0,14,11,0,13,0,0,0,0,0,0,0,21,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,1,1,1,0,1,0,1,1,0,0,1,1,1]},{"value":[0.0,0.007048754510341482,-0.013331704079031444,-0.004806892110895866,-0.009854874575933613,-0.03409889890485786,-0.027028128665468262,-0.02036440451734052,-0.0017295973482109872,-0.05568146204286215,0.0008461146160978928,0.08178806734712286,0.19459180559896722,0.025163808246544052,-0.020422767893750127,-0.02195084219331985,-0.00517479551696276,0.0586058155616026,-0.00636690447045325,0.11683144804905789,-0.008245458620709379,0.3055523869674546,0.049534991873041,-0.03388582348403659,-0.10323708167988417,-0.07400909255587211,-0.006808830331832461,0.0034046140439263797,-0.0185307952094135],"feature_idx":[14,0,8,44,62,21,8,0,0,0,0,25,1,0,0,25,0,20,0,26,0,40,0,0,24,25,0,0,0],"num_threshold":[0.0689996869976547,0.0,0.814783430564156,0.42920077891535846,0.030612244897959183,779.1893,0.08825712477704044,0.0,0.0,0.0,0.0,0.999999051312616,0.5,0.0,0.0,0.9999996835577558,0.0,355.172809,0.0,1.000001537745334,0.0,0.057556124301904196,0.0,0.0,1.0000012317805025,1.0000008896495525,0.0,0.0,0.0],"missing_go_to_left":[0,0,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,1,0,0,0],"left":[1,0,3,4,5,6,7,0,0,0,0,12,13,0,0,16,0,18,0,20,0,22,0,0,25,26,0,0,0],"right":[2,0,24,11,10,9,8,0,0,0,0,15,14,0,0,17,0,19,0,21,0,23,0,0,28,27,0,0,0],"is_leaf":[0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,0,1,0,1,0,1,1,0,0,1,1,1]},{"value":[0.0,-0.034870229701602494,-0.009750106100948074,-0.0063596594342319795,0.19864739264380274,0.26496535156017453,-0.035293738878755934,-0.0964240631664164,-0.021868051409354286,0.008740376453432041,0.012360204130751694,0.0018736298820947513,-0.005515709865635543,0.010271072830721832,-0.0005163657841515453,-0.13840041646360515,0.0015086637714837538,0.10990236814795255,-0.0005306520979207364,0.001989703662220421,-0.006048559246930552,0.12081099792473658,0.16503582687240817,0.0014624876499439666,0.0775779968818,-0.09736328992664554,0.07199902165662683,0.009517085727775765,0.3908997399665129],"feature_idx":[3,23,50,0,39,0,0,24,0,0,15,14,14,28,9,0,0,66,0,0,0,25,7,0,0,0,0,0,0],"num_threshold":[0.5,0.7877210572573068,0.0,0.0,0.033732441556142786,0.0,0.0,1.0000052771857328,0.0,0.0,124.9811,0.28090365307033527,0.20930580589950362,0.6389671897595295,0.5674509442539184,0.0,0.0,0.005667398650869848,0.0,0.0,0.0,1.0000015942208758,5.247024072160486,0.0,0.0,0.0,6.47413063670009,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,0,8,0,0,11,12,13,14,15,0,0,18,0,0,0,22,23,0,0,0,27,0,0],"right":[10,7,4,0,6,0,0,9,0,0,26,21,20,17,16,0,0,19,0,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,1,0,1,1,0,0,0,0,0,1,1,0,1,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,-0.006041676462520407,0.010229974215652492,0.0019886249819229818,-0.027188422213046542,-0.012851017386441661,-0.021485370647479227,-0.00827373692833631,0.014079969586316424,0.04468587479065196,0.05833138656333447,0.0043403584821057,0.3407285442448831,-0.010992890105131893,0.022405025000528413,-0.023888083604823862,-0.0808137490985009,-0.11388409457999124,-0.010411167332349258,-0.018400164466133618,0.07845245552872059,-0.1145019311974944,-0.0720802341981404,0.018195093018452548,-0.02128845101236614,0.3709395787836449,-0.1786731972434741,-0.040712811781206254,-0.01147409011809657],"feature_idx":[3,0,36,0,24,15,63,37,29,14,67,0,65,0,0,0,46,7,0,0,0,32,0,0,0,0,7,0,0],"num_threshold":[0.5,0.0,0.524077589120882,0.0,0.4969891389325011,173.541687,0.1611587962082558,0.0018858327790602135,0.006331785563528914,0.2130261657230065,0.00466398321248962,0.0,0.00537967580323051,0.0,0.0,0.0,0.0854530332671708,5.53338948872752,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,4.787491742782046,0.0,0.0],"missing_go_to_left":[0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,0,1,1,0,0,0,1,0,0,0,0,1,0,0],"left":[1,0,3,0,5,6,7,8,9,10,11,0,13,0,0,0,17,18,0,0,0,22,0,0,0,0,27,0,0],"right":[2,0,4,0,26,25,24,21,16,15,12,0,14,0,0,0,20,19,0,0,0,23,0,0,0,0,28,0,0],"is_leaf":[0,1,0,1,0,0,0,0,0,0,0,1,0,1,1,1,0,0,1,1,1,0,1,1,1,1,0,1,1]},{"value":[0.0,-0.0005546378177963227,0.007559319472224502,-0.008388278288689266,-0.011306734614757057,-0.012929955357072132,-0.006254126026733612,0.18726851618226967,-0.2582544508179893,0.1528579961454254,-0.008688913779742628,-0.0009360386780745245,0.09673435821662386,-0.002323436474762097,0.2616204554431192,0.01956529772092921,0.07628590612017377,0.15451995893592235,0.2229032650742293,-0.049109032213165885,0.35239259984446253,-0.2301263239586321,0.3293882646379778,-0.12435470626830317,-0.16624684701937628,-0.001186293851528014,0.1990250754086164,-0.0874646721968233,-0.2300406449280711],"feature_idx":[19,14,0,20,9,0,7,0,0,0,14,0,9,0,27,0,0,59,62,50,0,0,0,0,58,46,0,0,0],"num_threshold":[699.2251,0.0689996869976547,0.0,639.0982,0.5674509442539184,0.0,1.0986122886681098,5.4934823424044295,0.0,0.0,0.29699403370244676,0.0,2.324186113537742,0.0,0.31125754450547904,0.0,0.0,0.07185205904200126,0.02753284481233531,0.021117858011792334,0.0,0.0,0.0,0.0,0.009364525380973775,0.012194152701834382,0.0,0.0,0.0],"missing_go_to_left":[1,0,0,1,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,0,0,0,0,1,1,0,0,0],"left":[1,2,0,4,5,0,7,8,0,0,11,0,13,0,15,0,0,18,19,20,0,0,0,0,25,26,0,0,0],"right":[24,3,0,17,6,0,10,9,0,0,12,0,14,0,16,0,0,23,22,21,0,0,0,0,28,27,0,0,0],"is_leaf":[0,0,1,0,0,1,0,0,1,1,0,1,0,1,0,1,1,0,0,0,1,1,1,1,0,0,1,1,1]},{"value":[0.0,-0.005692790705490758,0.010663272919755346,0.030947525270580332,0.022367657066887436,0.018595218082409257,0.03393686620514544,0.14475661596646416,-0.04674258806645071,0.213881511991476,0.0011722533774168654,-0.050931251497676466,-0.008918035612361309,0.0011150232227841173,0.0036357464688807186,0.1681956540660749,0.24612973562556337,0.002803674216220209,0.38575194166376314,0.15048843722392463,0.0037545590010990893,-0.2475525697579224,-0.023237495568299564,-0.00983361026588498,-0.20876766121444348,-0.0002771499414038203,-0.14776446400605586,-0.020489498154374175,0.018587032834882677],"feature_idx":[3,0,36,12,23,12,8,23,0,0,0,66,0,0,0,40,60,0,1,0,0,0,66,9,0,0,66,0,0],"num_threshold":[0.5,0.0,0.4826586402399128,107.81920695255869,1.000001537745334,74.15447841438163,0.22147368742212792,0.24938211789685955,0.0,0.0,0.0,0.06256762777671698,0.0,0.0,0.0,0.12368397105334294,0.016512844203361708,0.0,0.5,0.0,0.0,0.0,0.03868701142190856,0.3772110179866293,0.0,0.0,0.20783909231562658,0.0,0.0],"missing_go_to_left":[0,0,1,1,1,1,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,1,0,0,0,1,0,0],"left":[1,0,3,4,5,6,7,8,0,0,0,12,0,0,0,16,17,0,19,0,0,0,23,24,0,0,27,0,0],"right":[2,0,22,15,14,11,10,9,0,0,0,13,0,0,0,21,18,0,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,1,0,0,0,0,0,0,1,1,1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.006445392641355952,-0.006933944833337585,-0.030599784889874106,-0.01957797597317921,-0.026491838812739008,-0.003971971155720411,0.07164447810732383,0.0004037882518044168,0.0947020360951979,0.024337161497561512,-0.001687318592688314,-0.02664694584392251,0.29975835197681006,-0.05727288372572517,0.06494718895296857,0.011523180965859593,0.00013074969172741647,0.11612425777245254,0.18574659095675783,0.008222212344715684,0.18346426321669354,0.0016308027605580477,-0.07429981947633113,-0.07734451581370952,0.07733633521144051,-0.06800881877149308,-0.04254763506535433,0.016319099469112253],"feature_idx":[14,0,62,10,0,9,0,66,61,15,0,0,0,59,0,0,24,0,61,39,64,38,0,0,0,0,19,0,0],"num_threshold":[0.0689996869976547,0.0,0.030612244897959183,0.029863856792394346,0.0,2.7621796641165557,0.0,0.14834291195292348,0.09156401415867838,50.363778,0.0,0.0,0.0,0.003027827763506206,0.0,0.0,0.9999994395308948,0.0,0.029651594882406353,0.005668367819925181,0.0077742325577133675,0.003983983681554111,0.0,0.0,0.0,0.0,401.230164,0.0,0.0],"missing_go_to_left":[0,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,1,0,1,0,1,1,0,0,0,0,1,0,0],"left":[1,0,3,4,0,6,0,8,9,10,0,0,0,14,0,0,17,0,19,20,21,22,0,0,0,0,27,0,0],"right":[2,0,16,5,0,7,0,13,12,11,0,0,0,15,0,0,18,0,26,25,24,23,0,0,0,0,28,0,0],"is_leaf":[0,1,0,0,1,0,1,0,0,0,1,1,1,0,1,1,0,1,0,0,0,0,1,1,1,1,0,1,1]}]},{"intercept":60.0,"trees":[{"value":[0.0,0.31732360499626716,0.08915528557102513,-1.0,0.2050374430516691,0.05132943459061671,0.0,-0.25,0.3430607882735685,0.0,0.0,0.4962320134545203,0.585760986510451,0.15678830361381688,3.5,0.0,0.6342916962056188,0.6699739046006126,0.25,0.0,0.0,0.10656533276237237,-0.5,0.3093194441140744,0.0,-0.75,-0.1321022322401082,-0.75,-1.25],"feature_idx":[28,58,3,0,59,10,0,0,16,0,0,11,3,15,0,0,27,15,0,0,0,42,0,45,0,0,28,0,0],"num_threshold":[0.004414856341976173,0.004617592436265406,0.5,0.0,0.005169124200400927,0.277321685267496,0.0,0.0,287.054901,0.0,0.0,210.01868785000144,0.5,40.679588,0.0,0.0,0.0,55.0544,0.0,0.0,0.0,0.1218896263069904,0.0,0.0031707604856220373,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,6,0,0,9,0,0,12,13,14,0,0,17,18,0,0,0,22,0,24,0,0,27,0,0],"right":[26,11,4,0,8,7,0,0,10,0,0,21,16,15,0,0,20,19,0,0,0,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,1,0,0,0,1,1,0,0,1,1,1,0,1,0,1,1,0,1,1]},{"value":[0.0,0.17482808756619997,0.0974597962210332,-0.06559856422502253,2.825,-0.9500000000000001,0.15730274633347685,-0.016900331821053393,0.0,-0.08903604307362536,-0.0125,0.0,0.21538103332309091,0.2826899700368422,0.4217778692828057,1.4875,0.0,0.0,0.032153178496040304,-0.7375,0.0,0.5188508219796966,0.6837506232003674,0.23750000000000002,0.23750000000000002,0.23750000000000002,-0.13207905447815857,-0.7125,-1.1875],"feature_idx":[28,7,3,15,0,0,15,58,0,11,0,0,22,16,15,0,0,0,9,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,40.679588,0.0,0.0,45.987015,0.004617592436265406,0.0,210.01868785000144,0.0,0.0,0.3800133188304368,249.1962,55.0544,0.0,0.0,0.0,1.3052950725665382,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,8,0,10,0,0,13,14,15,0,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,12,9,0,11,0,0,18,17,16,0,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,0,1,1,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.16734319676929324,0.08915968278963111,-0.06719238382317126,2.68375,-0.9024999999999999,0.1465415794018067,0.2035008027300566,0.2632027729925704,0.23750000000000002,0.33339156417983146,0.0,0.13847139264469518,0.0,0.0,0.03729966565147989,-0.7006250000000002,0.0,-0.03675262390698596,0.0,-0.011874999999999858,0.5149921272585543,0.6815957588579252,0.22562500000000016,0.22562500000000016,0.22562500000000016,-0.13207041475850306,-0.6768750000000001,-1.128125],"feature_idx":[28,7,3,15,0,0,37,22,15,0,16,0,9,0,0,9,0,0,58,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,40.679588,0.0,0.0,0.0018858327790602135,0.3800133188304368,55.0544,0.0,322.2655,0.0,2.4682310915421004,0.0,0.0,1.3052950725665382,0.0,0.0,0.004617592436265406,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,1,1,0,0,1,0,1,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,8,9,0,11,0,13,0,0,16,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,18,15,10,0,12,0,14,0,0,17,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,0,1,0,1,0,1,1,0,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.1604233434460103,0.08068392018105328,-0.06719238382317126,2.5495625,-0.8573749999999998,0.13495532585898212,0.009764000963508298,0.6762500000000004,-0.011281249999999687,0.2330270266568503,0.40013917164210583,0.0,0.4642698142254484,0.490399198133733,0.0,0.0,-0.7250000000000001,0.085162022094354,0.0,0.0,0.5149921272585543,0.6815957588579252,0.2143437500000001,0.2143437500000001,0.2143437500000001,-0.13206951377650736,-0.6430312499999999,-1.0717187500000003],"feature_idx":[28,7,3,15,0,0,15,0,0,0,13,35,0,20,10,0,0,0,9,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,40.679588,0.0,0.0,55.0544,5.447475891996474,0.0,0.0,0.4422446168741961,0.9991236739072364,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,2.120160087413339,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,12,0,14,15,0,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,10,9,0,0,18,13,0,17,16,0,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.1534639667445809,0.07215974747546786,-0.07098537722228919,2.16049375,-0.8145062499999999,0.12469503144979696,-0.010717187499999881,0.19969052218716368,0.30462633397022226,0.07673954616914402,1.4018140625000002,-0.023810937500000053,0.40013917164210583,0.0,0.4642698142254484,0.0,-0.68875,0.08994334147900303,-0.16559375000000004,0.0,0.5149921272585543,0.6815957588579252,0.20362656250000022,0.20362656250000022,0.20362656250000022,-0.13206861279451165,-0.6108796875,-1.0181328125],"feature_idx":[28,7,3,13,0,0,15,0,13,15,17,0,0,35,0,20,0,0,9,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,0.3173871534785336,0.0,0.0,50.000158,0.0,0.4422446168741961,55.0544,67.053925,0.0,0.0,0.9991236739072364,0.0,318.218384,0.0,0.0,1.5291844228587117,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,10,11,0,0,14,0,16,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,8,0,18,13,12,0,0,15,0,17,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.1532705543536564,0.07203858391443672,-0.07098537722228919,2.0524690625,-0.7737809374999998,0.12452940249071813,-0.010181328124999924,0.1994638744929389,0.3041758955742063,0.07521510392731301,1.3317233593750002,-0.022620390624999945,0.40013917164210583,0.0,0.4642698142254484,0.0,-0.6543125000000001,0.08995072226723086,-0.15731406250000007,0.0,0.514477460197691,0.6815957588579252,0.1934452343750003,0.1934452343750003,0.1934452343750003,-0.13183489591571435,-0.5803357031249998,-0.9672261718750002],"feature_idx":[28,7,3,13,0,0,15,0,13,15,17,0,0,35,0,20,0,0,9,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,0.3173871534785336,0.0,0.0,50.000158,0.0,0.4422446168741961,55.0544,67.053925,0.0,0.0,0.9991236739072364,0.0,318.218384,0.0,0.0,1.5291844228587117,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,10,11,0,0,14,0,16,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,8,0,18,13,12,0,0,15,0,17,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.15319777802519638,0.07194944403607025,-0.07164561973910001,2.2114362343750003,-0.7350918906249998,0.12464987701873957,-0.009672261718749908,0.19962873258382313,0.30391345773490197,0.07432692181044885,1.2651371914062501,-0.02148937109374991,0.40013917164210583,0.0,0.4642698142254484,0.0,-0.6215968749999998,0.0905623543884482,-0.1494483593750001,0.0,0.514477460197691,0.6815957588579252,0.1837729726562504,0.1837729726562504,0.1837729726562504,-0.1318312886507336,-0.5513189179687498,-0.9188648632812502],"feature_idx":[28,7,3,15,0,0,15,0,13,15,17,0,0,35,0,20,0,0,9,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,40.679588,0.0,0.0,50.000158,0.0,0.4422446168741961,55.0544,67.053925,0.0,0.0,0.9991236739072364,0.0,318.218384,0.0,0.0,1.5291844228587117,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,10,11,0,0,14,0,16,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,8,0,18,13,12,0,0,15,0,17,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.15316166113222993,0.07190520636272059,-0.07168577977293712,2.1008644226562505,-0.6983372960937498,0.1246041445740951,-0.009188648632812503,0.19956615202310732,0.30374397644902223,0.07375333742314957,1.2018803318359375,-0.020414902539062398,0.40013917164210583,0.0,0.4642698142254484,0.0,-0.5905170312499998,0.09061155964358909,-0.14197594140625008,0.0,0.514477460197691,0.6815957588579252,0.1745843240234379,0.1745843240234379,0.1745843240234379,-0.13182584069814943,-0.5237529720703122,-0.8729216201171877],"feature_idx":[28,7,3,15,0,0,15,0,13,15,17,0,0,35,0,20,0,0,9,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,40.679588,0.0,0.0,50.000158,0.0,0.4422446168741961,55.0544,67.053925,0.0,0.0,0.9991236739072364,0.0,318.218384,0.0,0.0,1.5291844228587117,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,10,11,0,0,14,0,16,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,8,0,18,13,12,0,0,15,0,17,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.14969895267025277,0.0676648986007437,-0.6634204312890625,0.11965263332790524,-0.008729216201171753,0.23306066766387853,0.40013917164210583,0.0,0.4642698142254484,0.490399198133733,0.0,0.0,-0.5609911796874997,0.08522541826460113,0.0,0.0,0.5144730986123186,0.6815957588579252,0.16585510782226615,0.16585510782226615,0.044336793598467636,0.25685558861003494,-0.7966448921777339,0.17835510782226616,-0.7841448921777339,-0.13165960501460738,-0.49756532346679666,-0.8292755391113282],"feature_idx":[28,7,3,0,15,0,13,35,0,20,10,0,0,0,9,0,0,19,17,0,0,44,39,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,0.0,55.0544,0.0,0.4422446168741961,0.9991236739072364,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,2.120160087413339,0.0,0.0,179.079076,70.0287,0.0,0.0,0.006564005713130254,0.018366181200333166,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,0,10,11,0,0,0,15,0,0,18,19,0,0,22,23,0,0,0,27,0,0],"right":[26,17,4,0,6,0,14,9,0,13,12,0,0,0,16,0,0,21,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.15077508526291547,0.06886725948348045,-0.015122541867352884,-0.6302494097246094,0.0,0.15755942300120399,-0.0024382869697260876,-0.008292755391113005,2.528992223087892,0.25775913169366615,-0.13024940972460933,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.5329416207031248,0.0919988787071518,0.0,0.0,0.5149877656731818,0.6815957588579252,0.1575623524311528,0.1575623524311528,0.169437352431153,-0.131656631773976,-0.47268705729345695,-0.7878117621557618],"feature_idx":[28,7,35,3,0,0,15,4,0,0,3,0,13,20,10,0,0,0,9,0,0,19,17,0,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.5,0.0,0.0,55.0544,0.5,0.0,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,1.8257268158064972,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.07292334452396611,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0],"left":[1,2,3,4,0,0,7,8,0,0,11,0,13,14,15,0,0,0,19,0,0,22,23,0,0,0,27,0,0],"right":[26,21,6,5,0,0,10,9,0,0,12,0,18,17,16,0,0,0,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.14979325059775025,0.06778039914831462,-0.5987369392383787,0.11965263332790524,-0.00787811762155748,0.23306066766387853,0.40013917164210583,0.0,0.4642698142254484,0.490399198133733,0.0,0.0,-0.5062945396679684,0.08522541826460113,0.0,0.0,0.5144730986123186,0.6815957588579252,0.1496842348095953,0.1496842348095953,0.16096548480959535,-0.1276476655793685,-0.024862079972452173,-0.49842117404797365,0.08411071320969908,-0.24842117404797365,0.3009472955712159,-0.6990527044287842],"feature_idx":[28,7,3,0,15,0,13,35,0,20,10,0,0,0,9,0,0,19,17,0,0,0,8,3,0,1,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,0.0,55.0544,0.0,0.4422446168741961,0.9991236739072364,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,2.120160087413339,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.21110163128743356,0.5,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,0,10,11,0,0,0,15,0,0,18,19,0,0,0,23,24,0,26,0,0,0],"right":[22,17,4,0,6,0,14,9,0,13,12,0,0,0,16,0,0,21,20,0,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,1]},{"value":[0.0,0.14982595486885006,0.06782045688150325,-0.5688000922764598,0.11965263332790524,-0.007484211740479552,0.23306066766387853,0.40013917164210583,0.0,0.4642698142254484,0.490399198133733,0.0,0.0,-0.4809798126845699,0.08522541826460113,0.0,0.0,0.5144730986123186,0.6815957588579252,0.1422000230691154,0.1422000230691154,0.15291721056911564,-0.12769284886300125,-0.025315486658518176,-0.47350011534557485,0.08330138599414826,-0.23600011534557483,0.28589993079265524,-0.6641000692073448],"feature_idx":[28,7,3,0,15,0,13,35,0,20,10,0,0,0,9,0,0,19,17,0,0,0,8,3,0,1,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,0.0,55.0544,0.0,0.4422446168741961,0.9991236739072364,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,2.120160087413339,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.21110163128743356,0.5,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,0,10,11,0,0,0,15,0,0,18,19,0,0,0,23,24,0,26,0,0,0],"right":[22,17,4,0,6,0,14,9,0,13,12,0,0,0,16,0,0,21,20,0,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,1]},{"value":[0.0,0.14985220237441185,0.06785260606383643,-0.5403600876626368,0.11965263332790524,-0.0071100011534554145,0.23306066766387853,0.40013917164210583,0.0,0.4642698142254484,0.490399198133733,0.0,0.0,-0.45693082205034163,0.08522541826460113,0.0,0.0,0.5144730986123186,0.6815957588579252,0.13509002191565964,0.13509002191565964,0.1452713500406599,-0.12769284886300125,-0.025315486658518176,-0.4498251095782962,0.08330138599414826,-0.22420010957829606,0.2716049342530226,-0.6308950657469776],"feature_idx":[28,7,3,0,15,0,13,35,0,20,10,0,0,0,9,0,0,19,17,0,0,0,8,3,0,1,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,0.0,55.0544,0.0,0.4422446168741961,0.9991236739072364,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,2.120160087413339,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.21110163128743356,0.5,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,0,10,11,0,0,0,15,0,0,18,19,0,0,0,23,24,0,26,0,0,0],"right":[22,17,4,0,6,0,14,9,0,13,12,0,0,0,16,0,0,21,20,0,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,1]},{"value":[0.0,0.14985220237441185,0.06785260606383643,-0.513342083279505,0.11965263332790524,-0.006754501095782572,0.23306066766387853,0.40013917164210583,0.0,0.4642698142254484,0.490399198133733,0.0,0.0,-0.4340842809478247,0.08522541826460113,0.0,0.0,0.5144730986123186,0.6815957588579252,0.1283355208198767,0.1283355208198767,0.13800778253862697,-0.12769374984499696,-0.0253233719921912,-0.42733385409938124,0.0832873107382215,-0.21299010409938113,0.25802468754037167,-0.5993503124596288],"feature_idx":[28,7,3,0,15,0,13,35,0,20,10,0,0,0,9,0,0,19,17,0,0,0,8,3,0,1,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.5,0.0,55.0544,0.0,0.4422446168741961,0.9991236739072364,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,2.120160087413339,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.21110163128743356,0.5,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,0,10,11,0,0,0,15,0,0,18,19,0,0,0,23,24,0,26,0,0,0],"right":[22,17,4,0,6,0,14,9,0,13,12,0,0,0,16,0,0,21,20,0,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,1]},{"value":[0.0,0.15535564778590305,0.07459348548105166,-0.006831413810548881,0.1575713206317836,-0.0024073963060908476,2.5136045720563462,-0.006416776040993355,0.25775913169366615,-0.012674979115529795,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.4123800669004336,0.0919988787071518,0.0,0.0,0.5144730986123186,0.6815957588579252,0.12191874477888298,0.12191874477888298,0.044336793598467636,0.1311073934116955,-0.7832676065883046,-0.12772721355910752,-0.3193827968366474,-0.618751266455837],"feature_idx":[28,7,35,0,15,3,0,0,3,0,13,20,10,0,0,0,9,0,0,19,17,0,0,44,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.5,0.0,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,1.8257268158064972,0.0,0.0,179.079076,70.0287,0.0,0.0,0.006564005713130254,0.0,0.0,0.12276479085808319,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,6,0,0,9,0,11,12,13,0,0,0,17,0,0,20,21,0,0,24,0,0,27,0,0],"right":[26,19,4,0,8,7,0,0,10,0,16,15,14,0,0,0,18,0,0,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.15456279515753077,0.07350662514588582,-0.006489843120021277,0.1553367618076978,-0.008209140152979735,2.387924343453528,-0.006095937238943705,0.25775913169366615,-0.01204123015975327,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.39176106355541196,0.0,0.5149877656731818,0.6815957588579252,0.11582280753993893,0.11582280753993893,0.12455202374111068,-0.1276725669301691,-0.025315486658518176,-0.3899980215525798,0.08330138599414826,-0.17140303557162007,0.2610925930051856,-0.5534136569948149],"feature_idx":[28,7,35,0,15,3,0,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,8,3,0,1,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.5,0.0,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.21110163128743356,0.5,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,6,0,0,9,0,11,12,13,0,0,0,0,18,19,0,0,0,23,24,0,26,0,0,0],"right":[22,17,4,0,8,7,0,0,10,0,16,15,14,0,0,0,0,21,20,0,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,1,1]},{"value":[0.0,0.15445705520813965,0.07349284692483739,-0.006165350964020178,0.15530843411514353,-0.00828268935392342,2.268528126280852,-0.005791140376996396,0.25775913169366615,-0.011439168651765641,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.3721730103776413,0.0919988787071518,0.0,0.0,0.5144730986123186,0.6815957588579252,0.11003166716294183,0.11003166716294183,0.044336793598467636,0.11832442255405518,-0.750331827445945,-0.12769445715528377,-0.27574297414507426,-0.5601430202833043],"feature_idx":[28,7,35,0,15,3,0,0,3,0,13,20,10,0,0,0,9,0,0,19,17,0,0,44,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.5,0.0,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,1.8257268158064972,0.0,0.0,179.079076,70.0287,0.0,0.0,0.006564005713130254,0.0,0.0,0.12276479085808319,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,6,0,0,9,0,11,12,13,0,0,0,17,0,0,20,21,0,0,24,0,0,27,0,0],"right":[26,19,4,0,8,7,0,0,10,0,16,15,14,0,0,0,18,0,0,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.15402296525738854,0.0728454160322153,-0.005857083415819276,0.15397733170273126,-0.0055015833581464335,0.25775913169366615,-0.010867210219177538,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.35356435985875906,0.0919988787071518,0.0,0.0,0.5149877656731818,0.6815957588579252,0.10453008380479467,0.10453008380479467,0.11240820142635251,-0.12664975530180847,-0.025315486658518176,-0.35671097176769706,0.08330138599414826,-0.1348257327788737,0.26182511206217995,-0.5119558254378206],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,9,0,0,19,17,0,0,0,8,3,0,1,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,1.8257268158064972,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.21110163128743356,0.5,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,15,0,0,18,19,0,0,0,23,24,0,26,0,0,0],"right":[22,17,4,0,6,0,8,0,14,13,12,0,0,0,16,0,0,21,20,0,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,1]},{"value":[0.0,0.15405091885061414,0.07287965491115798,-0.003918897171029149,-0.48640779455000926,0.0012671845655205516,0.15397733170273126,-0.0052265041902391125,0.25775913169366615,-0.010323849708218803,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.33588614186582116,0.0919988787071518,0.0,0.0,0.5149877656731818,0.6815957588579252,0.09930357961455485,0.09930357961455485,0.04629820095133497,0.10678779135503476,-0.7184356461449654,-0.12548116725656724,-0.23635803416592938,-0.5065380779972479],"feature_idx":[28,7,35,3,0,0,15,0,3,0,13,20,10,0,0,0,9,0,0,19,17,0,0,44,0,0,28,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.5,0.0,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,1.8257268158064972,0.0,0.0,179.079076,70.0287,0.0,0.0,0.006564005713130254,0.0,0.0,0.12276479085808319,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,17,0,0,20,21,0,0,24,0,0,27,0,0],"right":[26,19,6,5,0,0,8,0,10,0,16,15,14,0,0,0,18,0,0,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,0,1,1,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.15429791284407984,0.07297262787207562,-0.005627588473304357,0.15397733170273126,-0.0049651789807271035,0.25775913169366615,-0.009807657222807721,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.3190918347725301,0.0,0.5159196370479668,0.6815957588579252,0.09433840063382704,0.09433840063382704,0.10144840178728316,-0.09186712631029245,0.03365187038764426,-0.48121117409738545,0.14800266668052176,0.10454502978049547,0.6127760438489511,-0.48121117409738545,0.018788825902614548,-0.48121117409738545],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,17,9,0,29,0,58,0,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,83.049753,2.324186113537742,0.0,0.2981803680341397,0.0,0.024432154161883893,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,1,0,1,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,0,24,0,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,0.15429791284407984,0.07297262787207562,-0.005346209049639228,0.15397733170273126,-0.0047169200316908196,0.25775913169366615,-0.009317274361667316,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.30313724303390366,0.0,0.5159196370479668,0.6815957588579252,0.08962148060213551,0.08962148060213551,0.09637598169791915,-0.08567524155973538,-0.4571506153925164,0.003665857433974706,-0.4571506153925164,0.11496587869667388,0.017849384607483643,0.5197668346310969,0.042849384607483644,0.042849384607483644],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,19,0,27,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,321.0579,0.0,0.31125754450547904,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15429791284407984,0.07297262787207562,-0.005078898597157178,0.15397733170273126,-0.004481074030106314,0.25775913169366615,-0.008851410643583791,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.28798038088220856,0.0,0.5159196370479668,0.6815957588579252,0.08514040657202884,0.08514040657202884,0.09155718261302326,-0.08819560488566398,-0.4342930846228907,-0.004573026213160598,-0.4342930846228907,0.0984616495546147,0.016956915377109284,0.5083356682208029,-0.45804308462289073,0.040706915377109354],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15429791284407984,0.07297262787207562,-0.004824953667299426,0.15397733170273126,-0.004257020328601158,0.25775913169366615,-0.00840884011140446,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.27358136183809806,0.0,0.5159196370479668,0.6815957588579252,0.08088338624342734,0.08088338624342734,0.0869793234823721,-0.08819353262702828,-0.41257843039174597,-0.004573026213160598,-0.41257843039174597,0.0984616495546147,0.016109069608253892,0.5083356682208029,-0.43514093039174606,0.03867156960825398],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15426641583770132,0.07297262787207562,-0.004583705983934295,0.15397733170273126,-0.004044169312171064,0.25775913169366615,-0.007988398105834094,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.25990229374619317,0.0,0.5157480813596705,0.6815957588579252,0.07683921693125591,0.07683921693125591,0.08263035730825337,-0.08818931786370142,-0.3919495088721586,-0.004573026213160598,-0.3919495088721586,0.0984616495546147,0.015303616127841126,0.5083356682208029,-0.41338388387215874,0.03673799112784124],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15426641583770132,0.07297262787207562,-0.004354520684737651,0.15397733170273126,-0.0038419608465623868,0.25775913169366615,-0.007588978200542229,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.24690717905888349,0.0,0.5157480813596705,0.6815957588579252,0.07299725608469317,0.07299725608469317,0.07849883944284067,-0.08818931786370142,-0.37235203342855067,-0.004573026213160598,-0.37235203342855067,0.0984616495546147,0.014538435321449229,0.5083356682208029,-0.3927146896785509,0.03490109157144907],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15426641583770132,0.07297262787207562,-0.004136794650500875,0.15397733170273126,-0.003649862804234161,0.25775913169366615,-0.007209529290514993,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.2345618201059395,0.0,0.5157480813596705,0.6815957588579252,0.06934739328045865,0.06934739328045865,0.07457389747069847,-0.08818008127274658,-0.35373443175712327,-0.0045520178210234396,-0.35373443175712327,0.0984616495546147,0.01381151355537682,0.5083356682208029,-0.3730789551946234,0.033156036992876635],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15412682461653662,0.07297262787207562,-0.0039299549179759195,0.15397733170273126,-0.0034673696640226126,0.25775913169366615,-0.006849052825989333,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.22283372910064259,0.0,0.5149877656731818,0.6815957588579252,0.06588002361643568,0.06588002361643568,0.0708452025971635,-0.0881789711342091,-0.336047710169267,-0.004548629487981715,-0.336047710169267,0.098468437103429,0.013120937877608086,0.5083957315303261,-0.35442500743489236,0.03149823514323274],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15412682461653662,0.07297262787207562,-0.003733457172076982,0.15397733170273126,-0.0032940011808214823,0.25775913169366615,-0.0065066001846897596,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.21169204264561048,0.0,0.5149877656731818,0.6815957588579252,0.06258602243561384,0.06258602243561384,0.06730294246730538,-0.08818439955098015,-0.3192453246608036,-0.004652596402407071,-0.3192453246608036,0.09826016935110243,0.012464890983727628,0.5083957315303261,-0.3367037570631478,0.029923323386071135],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15412500748155858,0.07297262787207562,-0.0035467843134732394,0.15397733170273126,-0.0031293011217805146,0.25775913169366615,-0.006181270175455111,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.20110744051333002,0.0,0.5149778682296553,0.6815957588579252,0.05945672131383333,0.05945672131383333,0.06393779534394,-0.08814813502564547,-0.3032830584277633,-0.004652596402407071,-0.3032830584277633,0.09826016935110243,0.011841646434541176,0.5083957315303261,-0.3198685692099904,0.028427157216767543],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15412500748155858,0.07297262787207562,-0.0033694450977996837,0.15397733170273126,-0.0029728360656914535,0.25775913169366615,-0.005872206666682445,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.19105206848766337,0.0,0.5149778682296553,0.6815957588579252,0.05648388524814152,0.05648388524814152,0.06074090557674303,-0.08814302946081068,-0.28811890550637503,-0.004637013343678422,-0.28811890550637503,0.09824915188063331,0.011249564112814171,0.5083957315303261,-0.30387514074949107,0.02700579935592913],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15412500748155858,0.07297262787207562,-0.003200972842909522,0.15397733170273126,-0.002824194262406721,0.25775913169366615,-0.0055785963333484295,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.18149946506328016,0.0,0.5149778682296553,0.6815957588579252,0.05365969098573445,0.05365969098573445,0.05770386029790586,-0.08814302946081068,-0.27371296023105635,-0.004637013343678422,-0.27371296023105635,0.09824915188063331,0.010687085907173356,0.5083957315303261,-0.2886813837120165,0.025655509388132814],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,0,19,17,0,0,0,38,0,9,0,29,0,44,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.026235690581209326,0.0,2.0481560870031212,0.0,0.4204545454545454,0.0,0.0,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.15412500748155858,0.07297262787207562,-0.0030409242007639393,0.15397733170273126,-0.0026829845492862604,0.25775913169366615,-0.005299666516680901,0.35318926214479585,0.4583893676489366,0.4844141636155235,0.0,0.0,-0.17242449181011602,0.0919988787071518,0.0,0.0,0.5149778682296553,0.6815957588579252,0.05097670643644783,0.05097670643644783,0.054818667283010575,-0.09479912757724131,-0.5100273122195035,-0.05392407823194767,-0.2600273122195034,0.06595220706562488,0.2399726877804966,-0.11568144672476102],"feature_idx":[28,7,35,0,15,0,3,0,13,20,10,0,0,0,9,0,0,19,17,0,0,0,3,0,9,0,36,0,0],"num_threshold":[0.004414856341976173,5.111987788356544,0.9991236739072364,0.0,55.0544,0.0,0.5,0.0,0.4529616348038239,318.218384,0.773901756003333,0.0,0.0,0.0,1.8257268158064972,0.0,0.0,179.079076,70.0287,0.0,0.0,0.0,0.5,0.0,1.9885422512810749,0.0,0.56681833216263,0.0,0.0],"missing_go_to_left":[1,1,1,0,0,0,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,15,0,0,18,19,0,0,0,23,0,25,0,27,0,0],"right":[22,17,4,0,6,0,8,0,14,13,12,0,0,0,16,0,0,21,20,0,0,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,0,1,0,1,1]},{"value":[0.0,0.21850757328499473,0.12342766737953102,-0.0010538192016635861,0.2479588245592729,0.0039425358198226235,0.3726157245390657,-0.005034683190847034,0.4642698142254484,0.0,-0.16380326721961005,0.5232542594102999,0.6422363999183306,0.04842787111462528,0.04842787111462528,-0.10989737438852282,-0.04375150430347627,0.02182513747932606,-0.2810038243629684,0.07758989337954389,0.002427801756487469,0.23962300948013082,0.235629219293649,0.0039425358198226235,-0.08691098670415609,-0.2470259466085281,0.11366574878434536,0.015474053391471898,0.015474053391471898],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,28,3,0,9,0,16,0,0,16,0,64,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.05059215882649337,0.5,0.0,2.5386488524544086,0.0,397.1576,0.0,0.0,647.1507,0.0,0.06549767921609062,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,0,20,0,22,0,0,25,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,24,19,0,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.21850757328499473,0.12342766737953102,-0.001001128241580318,0.2479588245592729,0.0037454090288314037,0.3726157245390657,-0.0047829490313045404,0.4642698142254484,0.0,-0.1556131038586294,0.5232542594102999,0.6422363999183306,0.04600647755889398,0.04600647755889398,-0.10440250566909662,-0.044331610373725135,0.10249269454032331,-0.0030102680785503823,0.04914641014994317,-0.0638801689091498,-0.07271485540297105,-0.44529850312178176,-0.04116510896247462,-0.23467464927810155,0.008864731921449476,0.12266289538894981,0.014700350721898304,0.286195286249373],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,17,9,0,0,21,3,0,9,0,0,47,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,70.0287,2.612577625847441,0.0,0.0,677.417143,0.5,0.0,1.5756647124863217,0.0,0.0,0.04368158916003251,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,0,0,21,22,0,24,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,20,19,0,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.21850757328499473,0.12342766737953102,-0.00095107182950116,0.2479588245592729,0.003558138577389869,0.3726157245390657,-0.004543801579739437,0.4642698142254484,0.0,-0.14783244866569803,0.5232542594102999,0.6422363999183306,0.04370615368094946,0.04370615368094946,-0.09918238038564163,-0.044775766003594474,0.08667760638284827,-0.0028597546746230054,0.04668908964244594,-0.06227772377215396,-0.07103653490112898,-0.42303357796569263,-0.03884592195716445,-0.2229409168141963,0.00816778799428093,0.12266289538894981,0.01396533318580353,0.27188552193690435],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,17,9,0,0,21,3,0,9,0,0,47,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,70.0287,2.612577625847441,0.0,0.0,677.417143,0.5,0.0,1.4830953563178617,0.0,0.0,0.04368158916003251,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,0,0,21,22,0,24,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,20,19,0,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.21850757328499473,0.12342766737953102,-0.0009035182380259243,0.2479588245592729,0.0033802316485203932,0.3726157245390657,-0.0043166115007522874,0.4642698142254484,0.490399198133733,0.0,0.0,-0.14044082623241325,0.5232542594102999,0.6422363999183306,0.04152084599690227,0.04152084599690227,-0.09422326136635953,-0.042632162739423406,0.09651425361267292,-0.471881148140443,0.16840689310658197,0.43235002252881544,0.21905598333934684,-0.12012055877297884,0.034831252533719236,-0.06115845856326619,-0.01632792105238643,-0.23552627527388809],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,17,3,0,10,26,0,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,70.0287,0.5,0.0,0.05202561252861214,0.948689108839599,0.0,0.0,0.0,0.4861070602189426,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,22,23,0,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,21,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.21850757328499473,0.12342766737953102,-0.0008583423261246282,0.2479588245592729,0.003211220066094356,0.3726157245390657,-0.004100780925714531,0.4642698142254484,0.0,-0.13341878492079254,0.5232542594102999,0.6422363999183306,0.0394448036970573,0.0394448036970573,-0.08951209829804158,-0.04426480381447687,-0.07768928138401951,-0.04808141770477991,-0.169571713643634,0.08301826853996666,-0.237456619709792,0.021251460025293892,0.3151670805426702,0.2531003385796932,-0.11411453083432975,0.0003361140340291214,-0.448287090733421,0.010470164610049439],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,38,24,29,0,0,0,10,26,0,0,3,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.026235690581209326,0.9999850744102411,0.7078392703706056,0.0,0.0,0.0,0.05202561252861214,0.948689108839599,0.0,0.0,0.5,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,1,1,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,19,0,0,0,23,24,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,22,21,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.21850757328499473,0.12342766737953102,-0.0008154252098183435,0.2479588245592729,0.0030506590627897624,0.3726157245390657,-0.003895741879428982,0.0,0.5232542594102999,0.6422363999183306,0.03747256351220472,0.03747256351220472,-0.08503649338313934,-0.03705070876477452,-0.07753079838768508,-0.03792346067214804,-0.24519631721812196,0.07886735511296834,-0.22427346974069595,0.025889741401639372,-0.21424204735564523,0.10437510338943058,0.3311405463904508,0.4859266400571324,0.048739628693191865,0.5207468190643717,-0.10840880429261333,0.017967060682414628],"feature_idx":[13,7,15,0,35,0,3,0,0,28,17,0,0,0,9,24,29,0,0,0,3,0,10,26,67,0,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,1.8783209336005964,0.9999850744102411,0.7078392703706056,0.0,0.0,0.0,0.5,0.0,0.05202561252861214,0.948689108839599,0.0010955156691060397,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,0,1,1,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,0,15,16,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[14,9,4,0,6,0,8,0,0,13,12,0,0,0,20,19,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,0.21850757328499473,0.12342766737953102,-0.0007746539493275862,0.2479588245592729,0.002898126109650434,0.3726157245390657,-0.0037009547854573556,0.4642698142254484,0.0,-0.12674784567475292,0.5232542594102999,0.6422363999183306,0.035598935336594195,0.035598935336594195,-0.08078466871398221,-0.04028744475314203,-0.012739514806365945,-0.07841225304612919,-0.3818748149648247,0.28278071467724014,0.03716996705165698,-0.01987476876509611,0.020474386333012087,-0.4402390733777793,0.021224782630636697,-0.1207296764039616,0.0749239873573199,-0.21437011523726782],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,27,3,16,0,58,0,0,9,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,721.3366,0.0,0.033573439678831855,0.0,0.0,1.4830953563178617,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,19,0,21,0,0,24,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,26,23,20,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0007359212518611713,0.2479588245592729,0.0027532198041679834,0.3726157245390657,-0.0035159070461844525,0.4642698142254484,0.0,-0.12041045339101544,0.526563153194835,0.6422363999183306,0.03381898856976449,0.03381898856976449,-0.07674543527828313,-0.0379123536632982,-0.009551122498878042,-0.06835044324360387,-0.3627810742165835,0.034267889067351835,0.020186507301775198,-0.4182271197088902,0.06320202678505994,0.031279834941717155,-0.004205765025054475,-0.1207296764039616,0.07117778798945373,-0.20365160947540453],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,27,3,21,0,0,9,0,16,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,617.1497,0.0,0.0,1.4830953563178617,0.0,397.1576,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,19,0,0,22,0,24,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,26,21,20,0,0,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0006991251892682016,0.2479588245592729,0.0026155588139594958,0.3726157245390657,-0.0033401116938751585,0.4642698142254484,0.0,-0.1143899307214646,0.526563153194835,0.6422363999183306,0.032128039141276335,0.032128039141276335,-0.07290816351436895,-0.04027136708347217,-0.012717931668558344,-0.01897881768724548,-0.34464202050575427,0.015371504058490356,-0.3973157637234458,0.01859955175201904,0.24814303981254157,0.03359807424570676,-0.0205944247802087,-0.1207296764039616,0.06761889858998096,-0.19346902900163415],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,27,16,3,0,9,0,0,58,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,721.3366,0.5,0.0,1.4830953563178617,0.0,0.0,0.033573439678831855,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,19,0,21,0,0,24,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,26,23,20,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0006641689298046316,0.2479588245592729,0.0024847808732616273,0.3726157245390657,-0.0031731061091814896,0.0,0.526563153194835,0.6422363999183306,0.030521637184212837,0.030521637184212837,-0.06926275533865045,-0.04136339014315445,-0.014183895621679541,-0.020479940739123,-0.32740991948046666,0.013153651162962948,-0.3774499755372734,0.05078646695653891,0.03884863713707958,-0.0010050127939308596,0.24814303981254157,0.031918170533421275,-0.01956470354119837,-0.1207296764039616,0.06423795366048175,-0.18379557755155249],"feature_idx":[13,7,15,0,35,0,3,0,0,28,17,0,0,0,27,16,3,0,9,0,12,0,0,58,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,721.3366,0.5,0.0,1.4830953563178617,0.0,63.163097630662044,0.0,0.0,0.033573439678831855,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,1,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,0,15,16,17,0,19,0,21,0,0,24,0,0,27,0,0],"right":[14,9,4,0,6,0,8,0,0,13,12,0,0,0,26,23,18,0,20,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,0,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0006309604833145244,0.2479588245592729,0.002360541829598617,0.3726157245390657,-0.0030144508037224685,0.4642698142254484,0.490399198133733,0.0,0.0,-0.10867043418539134,0.526563153194835,0.6422363999183306,0.028995555325002444,0.028995555325002444,-0.06579961757171802,-0.0448311516233512,-0.16089914047437653,-0.007386230878562276,-0.06392577591714184,-0.2971036546519539,0.08908306277884713,0.018267120500760424,0.15163283000106845,-0.012749037232228715,-0.36757957067309377,0.007861190610369917],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,33,0,3,20,0,0,16,0,9,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.6600351977963119,0.0,0.5,460.155487,0.0,0.0,271.191879,0.0,1.3052950725665382,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,0,21,22,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,20,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0005994124591488514,0.2479588245592729,0.0022425147381188284,0.3726157245390657,-0.0028637282635362027,0.4642698142254484,0.490399198133733,0.0,0.0,-0.10323691247612175,0.526563153194835,0.6422363999183306,0.027545777558752607,0.027545777558752607,-0.06250963669313202,-0.04151601314740338,-0.014388781242603224,-0.07102694175865897,-0.29618424077384553,0.04260740805377346,0.014255984785180656,-0.017795637242840456,0.022800511415423587,-0.1207296764039616,0.0690710130011766,-0.16656084165025611],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,3,21,0,0,7,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,617.1497,0.0,0.0,3.4965075614664802,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0005694418361912312,0.2479588245592729,0.0021303890012127624,0.3726157245390657,-0.0027205418503594815,0.4642698142254484,0.490399198133733,0.0,0.0,-0.09807506685231573,0.526563153194835,0.6422363999183306,0.026168488680814762,0.026168488680814762,-0.05938415485847557,-0.04271898010437932,-0.016003679554581828,-0.07229512085962742,-0.2813750287351532,0.04047703765108466,0.012465778542253331,-0.10577353787724882,0.0216604858446523,-0.1207296764039616,0.06561746235111769,-0.15823279956774317],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,3,21,0,0,7,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,503.1518,0.0,0.0,3.258096538021482,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0005409697443816697,0.2479588245592729,0.002023869551152302,0.3726157245390657,-0.0025845147578415608,0.4642698142254484,0.0,-0.09317131350969987,0.526563153194835,0.6422363999183306,0.024860064246774272,0.024860064246774272,-0.056414947115551686,-0.04140036320593366,-0.014235485139223038,-0.07204975060177804,-0.2673062772983954,0.09793927643375708,0.0038464241087368123,0.08047468735466162,0.0150040842498921,-0.33402003947075054,0.015738983793859164,-0.12072396519367747,0.06233658923356167,-0.15032115958935607],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,28,17,0,0,0,27,3,12,0,62,0,0,9,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,127.44888023279483,0.0,0.221963882542556,0.0,0.0,1.4830953563178617,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,19,0,21,0,0,24,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,26,23,20,0,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0005139212571627638,0.2479588245592729,0.0019226760735946869,0.3726157245390657,-0.0024552890199494473,0.4642698142254484,0.490399198133733,0.0,0.0,-0.08851274783421488,0.526563153194835,0.6422363999183306,0.02361706103443524,0.02361706103443524,-0.053594199759774246,-0.04130251549329435,-0.01410413148478068,-0.07036317690606628,-0.25394096343347566,0.04757831061014564,0.014348891952400451,-0.317319037497213,0.014952034604166187,-0.12072396519367747,0.05921975977188368,-0.1428051016098884],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,3,21,0,0,9,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,617.1497,0.0,0.0,1.4830953563178617,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.00048822519430444803,0.2479588245592729,0.0018265422699148106,0.3726157245390657,-0.0023325245689520104,0.4642698142254484,0.490399198133733,0.0,0.0,-0.08408711044250411,0.526563153194835,0.6422363999183306,0.0224362079827138,0.0224362079827138,-0.050914489771785656,-0.04321733967561444,-0.015595862030428525,-0.0693845161527005,-0.2412439152618017,0.17613567869583446,0.07407203745642121,0.01296313375488758,0.01160781680624739,-0.3014530856223523,0.014204432873957985,-0.13435452754578742],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,3,21,0,66,0,0,9,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,617.1497,0.0,0.03868701142190856,0.0,0.0,1.4830953563178617,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,23,0,0,26,0,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,28,25,22,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.00046381393458929667,0.2479588245592729,0.0017352151564189455,0.3726157245390657,-0.002215898340504552,0.4642698142254484,0.490399198133733,0.0,0.0,-0.07988275492037894,0.526563153194835,0.6422363999183306,0.021314397583578427,0.021314397583578427,-0.048368765283196426,-0.04176740180424739,-0.014732867541889273,-0.06455432629463613,-0.22918171949871147,0.09951633514181744,-0.0024284145000287084,0.09530479954783361,0.0031466524412202546,-0.1207103602747043,0.06297649816057885,-0.1289471201521046],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,3,0,0,62,0,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,6.403844525631401,0.0,0.221963882542556,0.0,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,23,0,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,25,22,0,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0004406232378599384,0.2479588245592729,0.0016484543985981759,0.3726157245390657,-0.0021051034234794487,0.4642698142254484,0.490399198133733,0.0,0.0,-0.07588861717436012,0.526563153194835,0.6422363999183306,0.0202486777043994,0.21367210448514362,-0.760063725116368,0.03274867770439869,-0.045950327019036764,-0.04273652289660127,-0.01603384427036017,-0.06478094805037586,-0.21772263352377585,0.0416172139318185,0.00298931981915942,-0.1207103602747043,0.05982767325254983,-0.12249976414449933],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,36,0,0,0,27,3,21,0,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,0.5,503.1518,0.0,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,17,0,0,0,21,22,23,0,0,0,27,0,0],"right":[20,13,4,0,6,0,8,0,12,11,0,0,0,19,16,0,18,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.21929439809959284,0.12342766737953102,-0.0014651515911856987,-0.0019136081961253382,0.2536092805171681,0.2479588245592729,0.0015660316786682673,0.3726157245390657,-0.0019998482523053696,0.4642698142254484,0.490399198133733,0.0,0.0,-0.07209418631564227,0.526563153194835,0.6422363999183306,0.01923624381917932,0.21367210448514362,-0.7220605388605496,0.031111243819178472,-0.043652810668085,-0.04298833312076405,-0.015293095845366745,-0.06232824024620762,-0.20683650184758698,0.024657287523567818,0.0028398538282015553,-0.11506445695366772],"feature_idx":[13,7,15,45,0,0,35,0,3,0,20,10,0,0,0,28,17,0,36,0,0,0,27,3,16,0,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.09254436421579904,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,0.5,507.319763,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,0,0,0,16,17,0,19,0,0,0,23,24,25,0,0,0,0],"right":[22,15,6,5,0,0,8,0,10,0,14,13,0,0,0,21,18,0,20,0,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,0,0,0,1,1,1,1]},{"value":[0.0,0.21669702654566655,0.12002015164878098,-0.0018179277863190181,0.24731412422162946,0.0014877300947347294,0.3726157245390657,-0.00189985583969019,0.4642698142254484,0.490399198133733,0.0,0.0,-0.06848947699986,0.526563153194835,0.6422363999183306,0.018274431628220355,0.21367210448514362,-0.6859575119175223,0.029555681628219335,-0.04147017013468073,-0.04228940269516859,-0.015433616928820969,-0.06222904204187372,-0.1964946767552075,0.02342442314738946,0.0026978611367916017,-0.1207103602747043,0.06258951243760578,-0.11062155308959093],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,36,0,0,0,27,3,16,0,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,0.5,507.319763,0.0,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,17,0,0,0,21,22,23,0,0,0,27,0,0],"right":[20,13,4,0,6,0,8,0,12,11,0,0,0,19,16,0,18,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.21669702654566655,0.12002015164878098,-0.0017270313970030315,0.24731412422162946,0.001413343589997851,0.3726157245390657,-0.0018048630477057515,0.4642698142254484,0.490399198133733,0.0,0.0,-0.0650650031498671,0.526563153194835,0.6422363999183306,0.017360710046809658,0.21367210448514362,-0.6516596363216461,0.028077897546808117,-0.03939666162794673,-0.04231575047524868,-0.015468986965652807,-0.06212843679239901,-0.1866699429174471,0.02225320199001999,0.0025629680799518443,-0.1207103602747043,0.059460036815725564,-0.10509047543511124],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,36,0,0,0,27,3,16,0,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,0.5,507.319763,0.0,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,17,0,0,0,21,22,23,0,0,0,27,0,0],"right":[20,13,4,0,6,0,8,0,12,11,0,0,0,19,16,0,18,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.21669702654566655,0.12002015164878098,-0.007642880749659531,-0.00164067982715288,0.2411060644504758,0.24731412422162946,0.0013426764104981005,0.3726157245390657,-0.0017146198953206238,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.061811752992373674,0.526563153194835,0.6422363999183306,0.016492674544468854,0.21367210448514362,-0.6190766545055638,0.026674002669467713,-0.03742682854654938,-0.03957442489243028,-0.01071016478211865,-0.030479297858112278,0.010182927349092452,-0.09852563267974901],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,36,0,0,0,27,7,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,3.9889840465642745,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,21,0,0,0,25,26,0,0,0],"right":[24,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,23,20,0,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,0,1,1,1]},{"value":[0.0,0.21669702654566655,0.12002015164878098,-0.0015586458357951473,0.24731412422162946,0.0012755425899733553,0.3726157245390657,-0.001628888900554415,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.058721165342754844,0.526563153194835,0.6422363999183306,0.015668040817245554,0.21367210448514362,-0.5881228217802857,0.025340302535994397,-0.03555548711922185,-0.0383005200222326,-0.01007882321827863,-0.02895533296520654,0.009673780981637847,-0.1207103602747043,0.06141331660892675,-0.094909670029368],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,36,0,0,0,27,7,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,3.9889840465642745,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,19,0,0,0,23,24,0,0,27,0,0],"right":[22,15,4,0,6,0,8,0,14,13,12,0,0,0,0,21,18,0,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.21769798789055803,0.12133332208195777,-0.0014807135440054965,0.24731412422162946,0.001211765460474723,0.3726157245390657,-0.0015474444555266587,0.4642698142254484,0.490399198133733,0.0,0.0,-0.055785107075617194,0.526563153194835,0.6422363999183306,0.014884638776383241,0.21367210448514362,-0.5587166806912712,0.024073287409194677,-0.03377771276326058,-0.036787120290214644,-0.008047190796114307,-0.02803289141382729,0.03837305371725286,-0.17436471423040878,0.009190091932556044,-0.1207103602747043,0.05834265077848038,-0.09016418652789966],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,36,0,0,0,27,7,32,0,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,3.9889840465642745,0.0,0.0,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,17,0,0,0,21,22,23,0,0,0,27,0,0],"right":[20,13,4,0,6,0,8,0,12,11,0,0,0,19,16,0,18,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.2178245367100874,0.12133332208195777,-0.0014066778668052394,0.24731412422162946,0.0011511771874509692,0.3726157245390657,-0.0014700722327503969,0.4642698142254484,0.490399198133733,0.0,0.0,-0.052995851721836476,0.5270953384978555,0.6428825247166565,0.014140406837564257,0.2169233293595883,-0.5307808466567078,0.022869623038734944,-0.03208882712509755,-0.03774000931112403,-0.00824759121886328,-0.013112493427282249,-0.16564647851888845,0.007136227355577063,0.19444822215434027,0.033311568547025064,-0.037342762829814545,-0.08434565821789804],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,36,0,0,0,27,16,3,0,0,58,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.9729350835479949,0.0,0.0,0.0,0.5368723961688786,721.3366,0.5,0.0,0.0,0.029190659640492278,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,17,0,0,0,21,22,23,0,0,26,0,0,0],"right":[20,13,4,0,6,0,8,0,12,11,0,0,0,19,16,0,18,0,0,0,28,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,0,0,0,1,1,0,1,1,1]},{"value":[0.0,0.21798076558532875,0.12139582783772485,-0.0013363439734650484,0.24731412422162946,0.0010936183280783496,0.3726157245390657,-0.0013965686211129481,0.4642698142254484,0.490399198133733,0.0,0.0,-0.050346059135744525,0.527551974976796,0.6434369258832974,0.013433386495685797,0.012876004691034382,-0.030484385768842517,-0.03403014210885819,-0.004349693296365816,-0.00948932956589817,0.04650292626652863,-0.012624438451458532,0.20978959883397658,0.031645990119673686,-0.03547562468832375,-0.12069998991916304,0.059642801150451424,-0.08143869429060971],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,16,8,0,0,58,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,721.3366,0.21110163128743356,0.0,0.0,0.033573439678831855,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.21745453594793496,0.12139582783772485,-0.001269526774791885,0.24731412422162946,0.0010389374116744677,0.3726157245390657,-0.0013267401900574072,0.4642698142254484,0.490399198133733,0.0,0.0,-0.04782875617895713,0.5253389817614005,0.6407501365509378,0.012761717170901223,0.012232204456482522,-0.02896016648040032,-0.034952689862703994,-0.004555400122104915,-0.009331750281804165,-0.056259981605028556,-0.16159489188507017,0.06451042687602318,0.007410637910371421,0.19444822215434027,0.030063690613690144,-0.033701843453907546,-0.07605644059247255],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,16,3,36,0,0,0,58,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,721.3366,0.5,0.611042145436638,0.0,0.0,0.0,0.029190659640492278,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,1,0,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,22,0,0,0,26,0,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,28,25,24,23,0,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,0,1,1,1,0,1,1,1]},{"value":[0.0,0.21745453594793496,0.12139582783772485,-0.0048878120200537695,-0.014390690547288042,1.9494597528889017,-0.0012060504360523084,0.2294033566276948,0.24731412422162946,0.0009869905410909042,0.3726157245390657,-0.0012604031805544481,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.045437318370009194,0.5253389817614005,0.6407501365509378,0.012123631312356054,0.011620594233658466,-0.027512158156380195,-0.03662866843996308,-0.002777922665400112,-0.12056555338315235,0.06046348312255248,-0.07356393754645545],"feature_idx":[13,7,15,67,15,0,0,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,0,0,27,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,40.679588,0.0,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0],"left":[1,2,3,4,5,0,0,0,9,0,11,0,13,14,15,0,0,0,0,20,21,0,0,0,25,0,27,0,0],"right":[24,19,8,7,6,0,0,0,10,0,12,0,18,17,16,0,0,0,0,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,0,1,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.2168209130391206,0.12056457209155146,-0.006552569127135488,-0.0011457479142496397,0.21793318879631018,0.24731412422162946,0.0009376410140362169,0.3726157245390657,-0.0011973830215268322,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.043165452451508914,0.5253389817614005,0.6407501365509378,0.011517449746737896,0.2061933999956034,0.01988970171773943,-0.5185782444929309,-0.02613655024856101,-0.036103579979526346,-0.006254644418022704,-0.02428841961766075,0.010260332067273127,-0.0685754216855262],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,26,0,0,0,27,7,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.5368723961688786,3.9889840465642745,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,1,0,0,0,1,1,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,21,0,0,0,25,26,0,0,0],"right":[24,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,23,20,0,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,0,1,1,1]},{"value":[0.0,0.2168209130391206,0.12056457209155146,-0.006552569127135488,-0.0010884605185371044,0.20703652935649475,0.24731412422162946,0.0008907589633345482,0.3726157245390657,-0.0011375138704504907,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.041007179828933364,0.5253389817614005,0.6407501365509378,0.010941577259401215,0.2061933999956034,0.01889521663185221,-0.4926493322682845,-0.024829722736133066,-0.03588411652147854,-0.0025196521679777817,-0.1201151030000356,0.060869080050700936,-0.06645696958485665],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,26,0,0,0,27,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.5368723961688786,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,1,0,0,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,21,0,0,0,25,0,27,0,0],"right":[24,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,23,20,0,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.2168209130391206,0.12056457209155146,-0.006552569127135488,-0.001034037492610196,0.19668470288867007,0.24731412422162946,0.0008462210151677142,0.3726157245390657,-0.0010806381769278063,0.4642698142254484,0.490399198133733,0.5233546607321341,0.6006874460137299,0.0,0.0,0.0,0.0,-0.03895682083748682,0.5253389817614005,0.6407501365509378,0.010394498396431119,0.2061933999956034,0.017950455800259845,-0.4680168656548702,-0.023588236599326254,-0.03499622584744721,-0.0023936695595789814,-0.06182380212200727],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,1,0,0,0,0,0,28,17,0,26,0,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.5,0.0,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.5368723961688786,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,14,0,0,0,0,0,20,21,0,23,0,0,0,27,0,0],"right":[26,19,6,5,0,0,8,0,10,0,18,17,16,15,0,0,0,0,0,25,22,0,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,0,1,1,1,1,1,0,0,1,0,1,1,1,0,1,1]},{"value":[0.0,0.2168209130391206,0.12056457209155146,-0.006552569127135488,-0.0009823356179797572,0.1868504677442367,0.24731412422162946,0.0008039099644093995,0.3726157245390657,-0.0010266062680813093,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.03700897979561262,0.5253389817614005,0.6407501365509378,0.009874773476609278,0.2061933999956034,0.01705293301024682,-0.44461602237212683,-0.022408824769360083,-0.03410429194256864,-0.002273986081599944,-0.1201151030000356,0.06091681615426623,-0.06004293099951355],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,26,0,0,0,27,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.5368723961688786,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,1,0,0,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,21,0,0,0,25,0,27,0,0],"right":[24,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,23,20,0,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.2168209130391206,0.12056457209155146,-0.006552569127135488,-0.0009332188370809292,0.17750794435702488,0.24731412422162946,0.0007637144661888584,0.3726157245390657,-0.0009752759546771018,0.4642698142254484,0.490399198133733,0.5233546607321341,0.6006874460137299,0.0,0.0,0.0,0.0,-0.035158530805831846,0.5253389817614005,0.6407501365509378,0.009381034802778743,0.2061933999956034,0.016200286359734407,-0.4223852212535206,-0.02128838353089222,-0.03479061846890598,-0.002160286777520071,-0.05573046546593119],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,1,0,0,0,0,0,28,17,0,26,0,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.5,0.0,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.5368723961688786,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,14,0,0,0,0,0,20,21,0,23,0,0,0,27,0,0],"right":[26,19,6,5,0,0,8,0,10,0,18,17,16,15,0,0,0,0,0,25,22,0,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,0,1,1,1,1,1,0,0,1,0,1,1,1,0,1,1]},{"value":[0.0,0.2168209130391206,0.12056457209155146,-0.006552569127135488,-0.0008865578952267583,0.16863254713917364,0.24731412422162946,0.0007255287428794333,0.3726157245390657,-0.0009265121569431046,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.033400604265540326,0.5253389817614005,0.6407501365509378,0.00891198306264016,0.2061933999956034,0.015390272041747722,-0.4012659601908446,-0.020223964354347503,-0.0339597854945228,-0.0020522724386442094,-0.1201151030000356,0.06065749861984955,-0.054254261176241415],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,26,0,0,0,27,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.5368723961688786,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,1,0,0,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,21,0,0,0,25,0,27,0,0],"right":[24,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,23,20,0,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.21518984777777367,0.12056457209155146,-0.0008422300004653493,0.24731412422162946,0.0006892523057356215,0.3726157245390657,-0.0008801865490958961,0.4642698142254484,0.490399198133733,0.0,0.0,-0.03173057405226345,0.5184797399005567,0.6324223487694034,0.00846638390950787,0.005770621243896557,-0.019212766136629967,-0.03351382716043091,-0.0027808953211524447,-0.00788290616147707,-0.05617471716892121,-0.15159183682539742,0.06148077841339408,0.00723597889602523,0.20978959883397658,0.030483816548424872,-0.03182087840004009,-0.05023122913382281],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,16,3,36,0,0,0,58,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,721.3366,0.5,0.611042145436638,0.0,0.0,0.0,0.033573439678831855,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,1,0,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,22,0,0,0,26,0,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,28,25,24,23,0,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,0,1,1,1,0,1,1,1]},{"value":[0.0,0.21518984777777367,0.12056457209155146,-0.0008001185004420819,0.24731412422162946,0.0006547896904489647,0.3726157245390657,-0.0008361772216410658,0.4642698142254484,0.490399198133733,0.0,0.0,-0.030144045349650386,0.5184797399005567,0.6324223487694034,0.008043064714032511,0.005482090181701694,-0.018252127829798327,-0.03759041365101013,-0.00935171428890992,-0.07889114893193785,0.014743635729292307,-0.037195251353842926,0.1745306558102044,-0.28427092818385663,0.015906468806037567,-0.12004994078624123,0.060136185145548283,-0.04902998666073835],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,3,0,9,16,0,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,0.0,1.4830953563178617,249.1962,0.0,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,22,23,0,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,21,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.2152046118066009,0.12058394115732948,-0.0007601125754199246,0.24731412422162946,0.0006220502059264277,0.3726157245390657,-0.0007943683605589058,0.4642698142254484,0.490399198133733,0.0,0.0,-0.02863684308216783,0.5184797399005567,0.6324223487694034,0.007640911478330992,0.005207985672616645,-0.01733952143830848,-0.03658459249004711,-0.0069226844118337,-0.012124030281070241,0.04201865001650021,-0.027650486370101344,-0.16849154718697434,0.0009568238250260209,0.20978959883397658,0.032904183167600465,-0.02628527703344119,-0.04526816834409467],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,16,8,0,3,0,0,58,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,721.3366,0.21110163128743356,0.0,0.5,0.0,0.0,0.033573439678831855,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,23,0,0,26,0,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,28,25,22,0,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,0,1,1,1]},{"value":[0.0,0.2152046118066009,0.12058394115732948,-0.0007221069466488928,0.24731412422162946,0.0005909476956301063,0.3726157245390657,-0.0007546499425309605,0.4642698142254484,0.490399198133733,0.0,0.0,-0.02720500092805942,0.5184797399005567,0.6324223487694034,0.007258865904414336,0.004947586388986025,-0.01647254536639302,-0.035651734098104654,-0.006749173696003919,-0.011946358152962789,0.039917717515675126,-0.011598559121247477,0.20978959883397658,0.031258974009220356,-0.024971013181769308,-0.12004994078624123,0.059392784305475746,-0.044315078910496554],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,28,17,0,0,0,27,16,8,0,0,58,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,721.3366,0.21110163128743356,0.0,0.0,0.033573439678831855,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.2152046118066009,0.12058394115732948,-0.006513778670576334,-0.0006860015993165547,0.16035714818336366,0.24731412422162946,0.0005614003108487253,0.3726157245390657,-0.0007169174454045191,0.4642698142254484,0.490399198133733,0.5233546607321341,0.6006874460137299,0.0,0.0,0.0,0.0,-0.02584475088165661,0.5184797399005567,0.6324223487694034,0.006895922609193406,0.2061933999956034,0.013550344265301106,-0.38227307635566277,-0.015648918098073495,-0.03903170987693463,-0.002574694437004155,-0.040789005981365284],"feature_idx":[13,7,15,67,0,0,35,0,3,0,20,10,42,1,0,0,0,0,0,28,17,0,26,0,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.5,0.0,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.5368723961688786,0.0,0.0],"missing_go_to_left":[0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,1,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,14,0,0,0,0,0,20,21,0,23,0,0,0,27,0,0],"right":[26,19,6,5,0,0,8,0,10,0,18,17,16,15,0,0,0,0,0,25,22,0,24,0,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,0,1,1,1,1,1,0,0,1,0,1,1,1,0,1,1]},{"value":[0.0,0.21441778699200276,0.11955169841599558,-0.0006517015193505671,0.24731412422162946,0.0005333302953062002,0.3726157245390657,-0.0006810715731344175,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.024552513337573603,0.5184797399005567,0.6324223487694034,0.006551126478733949,0.004022689856272166,-0.014866472193169855,-0.03677818483746595,-0.008265852693759554,-0.05055407556957254,-0.14213018021348986,0.03805056636174129,0.006739677997583016,-0.12003680500229878,0.058462595389270434,-0.04005987466590355],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,0,0,27,3,16,0,0,0,24,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.0,0.0,0.5368723961688786,0.5,507.319763,0.0,0.0,0.0,0.9999850744102411,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,23,0,0,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.21441778699200276,0.11955169841599558,-0.00061911644338295,0.24731412422162946,0.0005066637805409613,0.3726157245390657,-0.0006470179944777499,0.4642698142254484,0.490399198133733,0.5233546607321341,0.0,0.0,0.0,-0.02332488767069485,0.5184797399005567,0.6324223487694034,0.006223570154796932,0.2061933999956034,0.012671692559222692,-0.36336055703069337,-0.01412314858351138,-0.03888251431335643,0.0036562827471903416,-0.4057808720037841,0.012979664970491456,-0.09651966439538141,-0.21878968944044105,-0.0006178184326088854],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,28,17,0,26,0,0,0,28,9,0,0,58,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.004414856341976173,70.0287,0.0,0.5602944555803165,0.0,0.0,0.0,0.21046200613272398,0.9211649591136601,0.0,0.0,0.006003062020516372,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,1,0,0,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,19,0,0,0,23,24,0,0,27,0,0],"right":[22,15,4,0,6,0,8,0,14,13,12,0,0,0,0,21,18,0,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.20647469044394054,0.11955169841599558,-0.0005881606212138735,0.24731412422162946,0.00048133059151389546,0.3726157245390657,-0.0006146670947536848,0.4642698142254484,0.490399198133733,0.0,0.0,-0.02215864328716002,0.48507603642017066,0.6239221565500465,0.005912391647056836,0.018412391647056835,0.012038107931261522,-0.016862136914495555,-0.031078038939005823,0.003328587809282269,-0.08462955086598163,-0.27870474717893606,0.046334335344975136,0.19345349498032227,-0.26461739646058646,0.2719901208397447,0.010321666039413202,0.006433585019334132],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,28,0,0,0,26,28,0,0,0,0,3,0,9,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,1.0019918719534193,0.21046200613272398,0.0,6.47413063670009,0.0,0.0,0.5,0.0,1.4830953563178617,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,1,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.20647469044394054,0.11955169841599558,-0.0005587525901532331,0.24731412422162946,0.00045726406193828954,0.3726157245390657,-0.0005839337400161071,0.4642698142254484,0.490399198133733,0.0,0.0,-0.02105071112280186,0.48507603642017066,0.6239221565500465,0.0056167720647039236,0.017491772064703783,0.011436202534698481,-0.01109585586122519,-0.040514648206385936,-0.0010595970081269002,-0.07887041712625455,-0.45601750084697734,0.12820166047814255,0.11247502804068363,0.01234571496667556,0.4289136514711689,0.009805582737442364,0.009805582737442364],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,28,0,0,0,7,31,0,16,0,0,30,0,8,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,4.248495242049359,0.20511646229073632,0.0,647.1507,0.0,0.0,0.5183521962239332,0.0,0.6906142212385419,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,1,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.20647469044394054,0.11955169841599558,-0.0005308149606456425,0.24731412422162946,0.00043440085884149937,0.3726157245390657,-0.0005547370530152307,0.4642698142254484,0.490399198133733,0.0,0.0,-0.01999817556666166,0.48507603642017066,0.6239221565500465,0.005335933461469012,0.0166171834614687,0.010864392407963663,-0.01100804811652986,-0.041603059604993,-0.0023621920352969285,-0.3146993607752828,0.10611699347441195,0.012059556488661373,0.41615608729645204,0.009315303600570247,0.2224600769120165,0.030621626631495147,-0.00018515019492753028],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,28,0,0,0,7,30,0,0,30,0,9,0,32,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,4.1588830833596715,0.17683624824308464,0.0,0.0,0.5183521962239332,0.0,1.4830953563178617,0.0,0.7135122941574554,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,22,21,0,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,1,0,1,1]},{"value":[0.0,0.20647469044394054,0.11955169841599558,-0.0005042742126132538,0.24731412422162946,0.00041268081589933563,0.3726157245390657,-0.0005270002003644692,0.4642698142254484,0.490399198133733,0.0,0.0,-0.018998266788328524,0.48507603642017066,0.6239221565500465,0.0050691367883956675,0.015786324288395548,0.010321172787565303,-0.008135675340159585,-0.03998324532421042,-0.04952050894324173,-0.00617278491489941,-0.5627983861693243,0.13302545434028634,0.004204834287021697,0.25674753249151294,0.09273092451151757,0.011125451393908747,0.008849538420541592],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,28,0,0,0,7,16,27,0,0,64,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,3.9889840465642745,647.1507,0.1782893862238829,0.0,0.0,0.06549767921609062,0.0,0.0,0.6635625167893758,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.20647469044394054,0.11955169841599558,-0.0004790605019824312,0.24731412422162946,0.00039204677510440433,0.3726157245390657,-0.0005006501903462634,0.4642698142254484,0.490399198133733,0.0,0.0,-0.018048353448912025,0.48507603642017066,0.6239221565500465,0.004815679948976026,0.014997008073975594,0.00980511414818679,-0.009145189076806172,-0.04131148631636635,-0.017327960340749786,-0.016036287213345803,0.14708994984035506,-0.626031508462302,0.09273092451151757,0.053013933363437876,0.010660710981403554,0.008841681023045568,0.008407061499514512],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,28,0,0,0,7,24,29,0,0,0,27,30,0,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,3.9889840465642745,0.9999850744102411,0.7078392703706056,0.0,0.0,0.0,0.6635625167893758,0.5183521962239332,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,0,1,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,26,0,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,24,23,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,0,1,1,1]},{"value":[0.0,0.20647469044394054,0.11955169841599558,-0.0004551074768833985,0.24731412422162946,0.00037244443634918415,0.3726157245390657,-0.0004756176808289325,0.4642698142254484,0.490399198133733,0.0,0.0,-0.017145935776466458,0.48507603642017066,0.6239221565500465,0.004574895951527225,0.014247157670276778,0.00931485844077713,-0.007506627670802266,-0.03915559249480366,-0.08060704390347335,-0.19088041803152012,0.22297404970198897,-0.008828649231892624,0.18753211787478463,-0.10893302809020754,0.09273092451151757,0.010036143275143418,0.007986708424538946],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,28,0,0,0,7,3,0,0,0,16,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,3.9889840465642745,0.5,6.47413063670009,0.0,0.0,226.1226,0.0,0.0,0.6635625167893758,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,21,0,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,23,22,0,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,1,1]},{"value":[0.0,0.20634500043753642,0.11955169841599558,-0.00043235210303933514,0.24731412422162946,0.00035382221453161833,0.3726157245390657,-0.0004518367967875747,0.4642698142254484,0.490399198133733,0.0,0.0,-0.016288638987643014,0.4845306412468803,0.6239221565500465,0.004346151153951184,0.01353479978676262,0.008849115518738416,-0.007185678855049397,-0.038643813453442574,-0.1354256584274868,-0.0060869997608153596,-0.05842851562466097,0.1781555119810456,-0.290611090179679,0.021144675226150156,0.09244746700795851,0.00953433611138621,0.0075873730033119815],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,28,0,0,0,7,3,0,9,16,0,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,3.9889840465642745,0.5,0.0,1.1148938268812547,208.097565,0.0,0.0,0.0,0.6635625167893758,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,22,23,0,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,26,21,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.20634500043753642,0.11955169841599558,-0.00041073449788733287,0.24731412422162946,0.0003361311038048598,0.3726157245390657,-0.00042924495694833813,0.4642698142254484,0.0,-0.015474207038260702,0.4845306412468803,0.6239221565500465,0.004128843596253518,0.012858059797424205,0.008406659742801281,-0.006802148749794598,-0.03811616269352995,-0.08035282583161205,-0.17456511420856985,0.21859663013826386,-0.007214791954998811,-0.058656820145788074,0.16924773638199328,-0.27608053567069496,0.02008744146484247,0.09237452374928716,0.0090576193058169,0.007208004353146436],"feature_idx":[13,7,15,0,35,0,3,0,20,0,0,17,28,0,0,0,7,3,0,0,0,9,16,0,0,0,27,0,0],"num_threshold":[0.4422446168741961,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.0,0.0,70.0287,0.0026171889052775477,0.0,0.0,0.0,3.9889840465642745,0.5,6.47413063670009,0.0,0.0,1.1148938268812547,208.097565,0.0,0.0,0.0,0.6635625167893758,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,0,0,12,13,0,0,0,17,18,19,0,0,22,23,0,0,0,27,0,0],"right":[16,11,4,0,6,0,8,0,10,0,0,15,14,0,0,0,26,21,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.23692316059260302,0.13195432060160667,0.0011048183471654483,0.2719560458423266,-0.2846270356341769,0.3571003967847557,0.0,-0.10684954401997829,0.5401586661981972,0.6606200959378443,0.003922401416441091,0.003922401416441091,-0.0008638104401029524,0.0003010903650477294,-0.030185960731449895,0.010652925361848632,-0.0507817370415702,-0.13326599139970163,0.06342483846789441,0.09356162452035433,0.058242274778794234,0.008604738340525843,0.23894682901323208,0.09434408790156146,-0.002605654240645805,0.006419776865076799,0.028201122585776874,0.00684760413548915],"feature_idx":[13,7,15,0,3,0,32,0,0,17,29,0,0,0,7,32,0,16,0,0,27,30,0,38,22,0,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.5,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.9889840465642745,0.0,0.0,647.1507,0.0,0.0,0.6635625167893758,0.5183521962239332,0.0,0.04270152505446623,0.6337611578340091,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,0,0,1,1,0,1,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,0,10,11,0,0,0,15,16,0,18,0,0,21,22,0,24,25,0,0,0,0],"right":[14,9,4,0,6,0,8,0,0,13,12,0,0,0,20,17,0,19,0,0,28,23,0,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,1,0,0,1,1,1,0,0,1,0,1,1,0,0,1,0,0,1,1,1,1]},{"value":[0.0,0.23916274479305286,0.13496888802026585,0.001049577429807158,0.27817331752721913,0.36412148358636887,-0.02623893092739209,0.0,-0.12158772624427527,0.5401586661981972,0.6606200959378443,0.003726281345618787,0.003726281345618787,-0.0008206199180975205,-0.00591042338329923,-0.03743171293392117,-0.12068351591531688,-0.007030958028315792,-0.05807273113831374,0.16025270329480146,-0.24024826112205988,0.014062814913579302,0.09051417509641752,0.05498759599436987,0.008174501423499693,0.23894682901323208,0.006098788021822799,0.026791066456488013,0.006505223928714799],"feature_idx":[13,7,15,0,32,3,0,0,0,17,29,0,0,0,7,3,0,9,16,0,0,0,27,30,0,38,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.9889840465642745,0.5,0.0,1.1148938268812547,208.097565,0.0,0.0,0.0,0.6635625167893758,0.5183521962239332,0.0,0.04270152505446623,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0],"left":[1,2,3,0,5,6,0,0,0,10,11,0,0,0,15,16,0,18,19,0,0,0,23,24,0,26,0,0,0],"right":[14,9,4,0,8,7,0,0,0,13,12,0,0,0,22,17,0,21,20,0,0,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,1,1,1]},{"value":[0.0,0.2392660158955179,0.13510789493981706,0.0009970985583166226,0.2784600066818821,0.36412148358636887,-0.024926984381022522,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.01470049668634772,-0.1155083399320617,0.5401586661981972,0.6606200959378443,0.0035399672783377415,0.0035399672783377415,-0.0007795889221924313,-0.006217660932502199,-0.035873397852276334,-0.11464934011955102,-0.005258070282646235,-0.05301316409498494,0.15224006813006136,-0.22823584806595676,0.013359674167900338,0.08450018684173784,0.0071709471917056795,0.006179962732279165],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,3,0,9,16,0,0,0,27,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.9889840465642745,0.5,0.0,1.1148938268812547,208.097565,0.0,0.0,0.0,0.6635625167893758,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,0,22,23,0,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,26,21,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.2392660158955179,0.13510789493981706,0.0009472436304008625,0.2784600066818821,0.36412148358636887,-0.023680635161971254,0.4486143415479906,0.0,-0.013965471852030476,-0.10973292293545854,0.5401586661981972,0.6606200959378443,0.0033629689144206057,0.0033629689144206057,-0.0007406094760824544,-0.005621938944900079,-0.03502005082487542,-0.07751681855576138,-0.15895635324344184,0.21626219950969913,-0.005739522172541389,-0.05289391144416193,0.14462806472355824,-0.21682405566265894,0.012691690459505267,0.08430779886135295,0.006812399832120519,0.005870964595665384],"feature_idx":[13,7,15,0,32,3,0,20,0,0,0,17,29,0,0,0,7,3,0,0,0,9,16,0,0,0,27,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.9889840465642745,0.5,6.47413063670009,0.0,0.0,1.1148938268812547,208.097565,0.0,0.0,0.0,0.6635625167893758,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,0,0,12,13,0,0,0,17,18,19,0,0,22,23,0,0,0,27,0,0],"right":[16,11,4,0,10,7,0,9,0,0,0,15,14,0,0,0,26,21,20,0,0,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,0,1,1,1,0,1,1]},{"value":[0.0,0.2392660158955179,0.13510789493981706,0.0008998814488808904,0.2784600066818821,0.36412148358636887,-0.022496603403872585,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.013267198259428882,-0.10424627678868569,0.5401586661981972,0.6606200959378443,0.0031948204686997883,0.0031948204686997883,-0.0007035790022783318,-0.0061085405474372335,-0.03828843374332461,-0.0025383552451415884,-0.07849724888807354,0.06689839144573605,-0.0991568879182185,-0.5069528857143432,0.03350426266530206,0.07823074169577277,0.006471779840514458,0.005577416365882115],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,28,0,35,0,16,0,0,27,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.8918202981106265,0.1867595509606425,0.0,0.0,0.0,647.1507,0.0,0.0,0.6635625167893758,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,0,22,0,24,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,26,21,0,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,0,1,1]},{"value":[0.0,0.2392660158955179,0.13510789493981706,0.000176709936944689,2.062429884414985,-0.000640128743721391,0.2784600066818821,0.36412148358636887,-0.021371773233678937,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.012603838346457508,-0.09903396294925138,0.5401586661981972,0.6606200959378443,0.003035079445264444,0.003035079445264444,-0.0006684000521644863,-0.005355500870844948,-0.03724808136652186,-0.002411437482884438,-0.5179609691861904,0.07823074169577277,0.04550516880554227,0.005580489707976,0.019222412938432146,0.005298545547588063],"feature_idx":[13,7,15,15,0,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,28,0,0,27,24,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,40.679588,0.0,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.8918202981106265,0.44498886414253896,0.0,0.0,0.6635625167893758,0.9999954124126351,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,1,1,0,0,0],"left":[1,2,3,4,0,0,7,8,0,10,11,0,0,0,0,16,17,0,0,0,21,22,0,0,25,26,0,0,0],"right":[20,15,6,5,0,0,14,9,0,13,12,0,0,0,0,19,18,0,0,0,24,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1]},{"value":[0.0,0.23797262851803797,0.13336694523715667,-0.0006081223065354636,0.2784600066818821,0.36412148358636887,-0.02030318457199485,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.011973646429134633,-0.0940822648017889,0.5401586661981972,0.6606200959378443,0.0028833254730010085,0.0028833254730010085,-0.0006349800495563329,-0.004765352732147426,-0.02601551115673991,-0.00020457485790110753,-0.418839581042187,0.10233242276243684,0.049501910671356154,0.1286858993654118,0.015520268614325162,0.09993295427299494,-0.005923561367385944,0.0050336182702086065],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,10,0,0,29,0,35,0,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,4.465908118654584,0.5197130939738867,0.0,0.0,0.8373972262652913,5.908395943138149,0.947211720797652,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,1,1,1,0,0,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,24,25,0,0,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,0,1,1,1,1]},{"value":[0.0,0.23797262851803797,0.13336694523715667,-0.000577716191208566,0.2784600066818821,0.36412148358636887,-0.019288025343395177,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.011374964107677955,-0.08937815156169933,0.5401586661981972,0.6606200959378443,0.002739159199350638,0.002739159199350638,-0.0006032310470786229,-0.002536191463554792,-0.04957234355176965,0.0546922198027473,0.02826383981994743,0.02797026612006839,-0.006917290581010374,-0.0668208109087253,0.005093152932373713,0.5833413561720693,0.004781937356698052,0.004781937356698052],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,0,27,12,0,58,0,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.4965075614664802,0.0,0.6635625167893758,63.163097630662044,0.0,0.004617592436265406,0.0,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,1,0,0,0,0,0,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.23797262851803797,0.13336694523715667,-0.0005488303816481022,0.2784600066818821,0.36412148358636887,-0.018323624076225543,0.0,-0.0849092439836145,0.5401586661981972,0.6606200959378443,0.0026022012393831064,0.0026022012393831064,-0.0005730694947246207,0.004639603145748796,-0.05607894993207819,-0.1226267488187844,0.06596808721087015,0.0035902490648254573,0.34534814896559746,0.14732720138653158,-0.2696609554418114,0.039023961035161044,0.026800989782508295,0.1252684557784484,0.0002521892582727503,0.29156681096353854,0.00454284048886322,0.0040185079716575705],"feature_idx":[13,7,15,0,32,3,0,0,0,17,29,0,0,0,3,12,0,62,0,46,0,0,26,16,0,0,33,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.5,127.44888023279483,0.0,0.20168223528795914,0.0,0.0854530332671708,0.0,0.0,1.0026186950817755,271.191879,0.0,0.0,0.20150609087905139,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,0,0,1,1,0,0,0,0,1,0,1,0,1,0,0,1,1,0,0,0,0,0],"left":[1,2,3,0,5,6,0,0,0,10,11,0,0,0,15,16,0,18,0,20,0,0,23,24,0,0,27,0,0],"right":[14,9,4,0,8,7,0,0,0,13,12,0,0,0,22,17,0,19,0,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.23797262851803797,0.13336694523715667,-0.0005213888625657858,0.2784600066818821,0.36412148358636887,-0.017407442872414337,0.4486143415479906,0.0,-0.010806215902293914,-0.08066378178443366,0.5401586661981972,0.6606200959378443,0.0024720911774139156,0.0024720911774139156,-0.0005444160199886028,-0.0010348687782974566,-0.02263001608393611,-0.06350099026212995,-0.1316615609095461,0.05734987353507934,0.03788644981803557,0.39231322436730337,-0.5749949862862046,0.13996084131720501,0.0010896829091848303,0.08643165478144028,0.0053303761814142096,0.004530231025949405],"feature_idx":[13,7,15,0,32,3,0,20,0,0,0,17,29,0,0,0,7,3,12,0,62,0,44,0,0,0,29,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,4.248495242049359,0.5,127.44888023279483,0.0,0.221963882542556,0.0,0.02947290285746751,0.0,0.0,0.0,0.8373972262652913,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,0,0,0,12,13,0,0,0,17,18,19,0,21,0,23,0,0,0,27,0,0],"right":[16,11,4,0,10,7,0,9,0,0,0,15,14,0,0,0,26,25,20,0,22,0,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,1,1,1,0,0,1,1,1,0,0,0,1,0,1,0,1,1,1,0,1,1]},{"value":[0.0,0.23797262851803797,0.13336694523715667,-0.0004953194194374788,0.2784600066818821,0.36412148358636887,-0.01653707072879378,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.010265905107179308,-0.07663059269521214,0.5401586661981972,0.6606200959378443,0.002348486618543433,0.002348486618543433,-0.0005171952189890306,-0.0012867765609417604,-0.02263424728335108,-0.06351109654155837,-0.1250784828640686,0.049866813342467564,0.014154998253314944,0.13296279925134477,0.001035198763725731,0.08517660218757322,0.005063857372343605,0.004303719474651757],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,3,12,0,62,0,0,0,29,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,4.248495242049359,0.5,127.44888023279483,0.0,0.20168223528795914,0.0,0.0,0.0,0.8373972262652913,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,23,0,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,26,25,22,0,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1]},{"value":[0.0,0.23797262851803797,0.13336694523715667,-0.0004705534484656937,0.2784600066818821,0.36412148358636887,-0.015710217192354037,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.009752609851820183,-0.07279906306045163,0.5401586661981972,0.6606200959378443,0.0022310622876162258,0.0022310622876162258,-0.0004913354580395435,-0.0007578486593742948,-0.021970294219594608,-0.06180830387634503,-0.11882455872086517,0.04984062903593637,0.013447248340649054,0.12631465928877753,0.000983438825539551,0.08515860748307663,0.004810664503726515,0.004088533500919311],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,3,12,0,62,0,0,0,29,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,4.248495242049359,0.5,127.44888023279483,0.0,0.20168223528795914,0.0,0.0,0.0,0.8373972262652913,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,23,0,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,26,25,22,0,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1]},{"value":[0.0,0.23801520843124138,0.13342425945602224,-0.00044702577604240903,0.27857821205618855,0.36427095062141407,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.009264979359229032,-0.014924706332736194,-0.06915910990742909,0.5401586661981972,0.6606200959378443,0.0021195091732352012,0.0021195091732352012,-0.00046676868513770845,-0.0009498466273131583,-0.012007214395723092,-0.22463769936203448,0.001569835485121729,0.17744264247206326,0.0036695742643438225,0.425655724769312,0.5859060880744557,0.0036695742643438225,0.0036695742643438225,-0.005020908500502586],"feature_idx":[13,7,15,0,32,4,20,10,0,0,0,0,0,17,29,0,0,0,26,9,0,0,66,0,9,7,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,1.0774937534322335,0.0,0.0,0.5678440735607473,0.0,1.4830953563178617,5.111987788356544,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,1,0,0,0],"left":[1,2,3,0,5,6,7,8,0,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,12,11,10,9,0,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23801520843124138,0.13342425945602224,-0.00042467448724039516,0.27857821205618855,0.36427095062141407,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.008801730391267526,-0.014178471016099438,-0.06570115441205751,0.5401586661981972,0.6606200959378443,0.002013533714573157,0.002013533714573157,-0.0004434302508805388,-0.000968723763989547,-0.01202726135853983,-0.04814312672772307,-0.10148222753298307,0.030174853546416358,0.0039817663175886866,0.17744264247206326,0.0034860955511266667,0.425655724769312,0.0034860955511266667,-0.004769863075477332],"feature_idx":[13,7,15,0,32,4,20,10,0,0,0,0,0,17,29,0,0,0,26,3,36,0,0,0,66,0,9,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.5,0.611042145436638,0.0,0.0,0.0,0.5678440735607473,0.0,1.4830953563178617,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,7,8,0,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,12,11,10,9,0,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.23801520843124138,0.13342425945602224,-0.00040344076287830434,0.27857821205618855,0.36427095062141407,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.008361643871704062,-0.013469547465294341,-0.062416096691454474,0.5401586661981972,0.6606200959378443,0.0019128570288444282,0.0019128570288444282,-0.0004212587383364053,7.392515363464848e-05,-0.010919998936232467,0.006930552516918454,-0.029941583486111513,0.17744264247206326,0.0033117907735704223,0.425655724769312,0.5859060880744557,0.0033117907735704223,0.0033117907735704223,-0.004531369921703288],"feature_idx":[13,7,15,0,32,4,20,10,0,0,0,0,0,17,29,0,0,0,26,8,0,0,66,0,9,7,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.3600393039066345,0.0,0.0,0.5678440735607473,0.0,1.4830953563178617,5.111987788356544,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,1,0,0,0],"left":[1,2,3,0,5,6,7,8,0,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,12,11,10,9,0,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23801520843124138,0.13342425945602224,-0.00038326872473426477,0.27857821205618855,0.36427095062141407,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.007943561678118983,-0.012796070092029765,-0.05929529185688161,0.5401586661981972,0.6606200959378443,0.0018172141774023488,0.0018172141774023488,-0.0004001958014193008,0.0031793423042089835,-0.007622137442974658,-0.05077276162423488,0.0042383374782989595,0.17744264247206326,0.003146201234891777,0.425655724769312,0.5859060880744557,0.003146201234891777,0.003146201234891777,-0.004304801425618266],"feature_idx":[13,7,15,0,32,4,20,10,0,0,0,0,0,17,29,0,0,0,26,3,0,0,66,0,9,7,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.5,0.0,0.0,0.5678440735607473,0.0,1.4830953563178617,5.111987788356544,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,1,0,0,0],"left":[1,2,3,0,5,6,7,8,0,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,12,11,10,9,0,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23801520843124138,0.13342425945602224,-0.00036410528849764037,0.27857821205618855,0.36427095062141407,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.007546383594213069,-0.012156266587428279,-0.0563305272640374,0.5401586661981972,0.6606200959378443,0.0017263534685319827,0.0017263534685319827,-0.00038018601134837127,0.0031300624437989497,-0.007568579805303122,0.0025042559994084,-0.38326905134771216,0.17573426039181864,-0.005745227167784962,0.33700604193718886,0.4956001096128633,0.003203423734676747,0.003203423734676747,-0.4451178075586336],"feature_idx":[13,7,15,0,32,4,20,10,0,0,0,0,0,17,29,0,0,0,26,10,0,0,8,0,15,64,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.541011619365819,0.0,0.0,0.5252100840336135,0.0,52.8314590454,0.00635088948825735,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,6,7,8,0,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,12,11,10,9,0,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23801520843124138,0.13342425945602224,-0.0003459000240727761,0.27857821205618855,0.36427095062141407,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0071690644145025574,-0.011548453258057024,-0.053514000900835516,0.5401586661981972,0.6606200959378443,0.0016400357951056321,0.0016400357951056321,-0.000361176710781308,0.0035075452642591176,-0.007225309517386111,-0.048359336342993234,0.004030359961037533,0.17666362705966268,-0.00545796580939566,0.33867468130864803,0.4956001096128633,0.0030432525479429985,0.0030432525479429985,-0.4228619171807019],"feature_idx":[13,7,15,0,32,4,20,10,0,0,0,0,0,17,29,0,0,0,26,3,0,0,8,0,15,64,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.5,0.0,0.0,0.5252100840336135,0.0,52.8314590454,0.00635088948825735,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,6,7,8,0,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,12,11,10,9,0,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23803981458640713,0.13345738029767054,-0.00032860502286915507,0.27864652078588725,0.0003193245486144747,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.006810611193777305,0.029091469404845683,0.5401586661981972,0.6606200959378443,0.0015580340053503506,0.0015580340053503506,-0.00034311787524217153,0.0031640433711549935,-0.007600804790426298,-0.04594136952584371,0.003828841962985763,0.1768363568422823,-0.005185067518925735,0.33898481048142254,0.4956001096128633,0.0028910899205460087,0.0028910899205460087,-0.40171882132166686],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,3,0,0,8,0,15,64,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.5,0.0,0.0,0.5252100840336135,0.0,52.8314590454,0.00635088948825735,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23803981458640713,0.13345738029767054,-0.00031217477172553745,0.27864652078588725,0.00030335832118382204,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.006470080634088405,0.027636895934603348,0.5401586661981972,0.6606200959378443,0.001480132305082549,0.001480132305082549,-0.0003259619814798498,0.002502188666147842,-0.008314637659439116,-0.043644301049551616,0.0036373998648365105,0.17701322147128273,-0.0049258141429795906,0.3393023635996695,0.4956001096128633,0.0027465354245187258,0.0027465354245187258,-0.38163288025558356],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,3,0,0,8,0,15,64,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.5,0.0,0.0,0.5252100840336135,0.0,52.8314590454,0.00635088948825735,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23803981458640713,0.13345738029767054,-0.0002965660331391007,0.27864652078588725,0.0002881904051246664,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.006146576602384002,0.026255051137873055,0.5401586661981972,0.6606200959378443,0.0014061256898287413,0.0014061256898287413,-0.00030966388240614154,0.0025264252438115956,-0.008288899128243439,-0.04146208599707393,0.003455529871594365,0.17701322147128273,-0.004679523435830646,0.3393023635996695,0.4956001096128633,0.002609208653292683,0.002609208653292683,-0.3625512362428044],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,3,0,0,8,0,15,64,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.5,0.0,0.0,0.5252100840336135,0.0,52.8314590454,0.00635088948825735,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.2379972346732037,0.13340006607880497,-0.00028173773148196804,0.27852831541158085,0.36412148358636887,-0.015120201419020419,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.005839247772264855,-0.050883844519539784,0.5401586661981972,0.6606200959378443,0.0013358194053374461,0.0013358194053374461,-0.0002941806882859055,0.000525744001007648,-0.004802361746181561,0.16432476416415373,0.08471367141702268,-0.004445547264039007,0.2107886636085799,0.002478748220628191,-0.34442367443066413,0.5706955683796614,-0.3642449656217691,0.0022642156590986675],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,0,66,8,0,15,0,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.0,0.756528058770403,0.5252100840336135,0.0,52.8314590454,0.0,0.0,5.111987788356544,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.23803981458640713,0.13345738029767054,-0.00026765084490776303,0.27864652078588725,0.00027378088486855744,0.37958844971179534,0.45630405711059085,0.0,-0.005547285383651613,0.025698308651930547,0.5401586661981972,0.6606200959378443,0.0012690284350703963,0.0012690284350703963,-0.0002794716538716102,0.0017898275817130643,-0.0048750819429539405,0.13574386536576843,0.0769908668399858,-0.014093618828760413,0.14429395139248366,-0.01649661130279867,0.22488099677320647,-0.004223269900836968,0.017051795294764107,0.5253096106199122,-0.35339407051379973,0.002151004876143858],"feature_idx":[13,7,15,0,35,0,4,20,0,0,0,17,29,0,0,0,26,0,66,18,0,40,0,67,0,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0003477759487711,0.0,0.756528058770403,186.065155,0.0,0.0014580897067673904,0.0,0.11301837978470197,0.0,0.0,5.111987788356544,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,8,0,0,0,12,13,0,0,0,17,0,19,20,0,22,0,24,0,0,27,0,0],"right":[16,11,4,0,6,0,10,9,0,0,0,15,14,0,0,0,18,0,26,21,0,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,1,1,0,1,1]},{"value":[0.0,0.2379972346732037,0.13340006607880497,-0.0002542683026625525,0.27852831541158085,0.36412148358636887,-0.01564910678066589,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.005269921114469157,-0.0483533413378062,0.5401586661981972,0.6606200959378443,0.0012055770133166277,0.0012055770133166277,-0.00026549807117817183,0.002251543050105242,-0.006137823968124153,-0.04050385069108991,-0.11600077107150356,0.031135236811786628,0.0025117418941928097,0.20963291872134227,0.001287688483329319,0.4919838908630281,0.0020434546323365057,-0.008865138918054783],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,3,36,0,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.5,0.4441143163482063,0.0,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.23803981458640713,0.13345738029767054,-0.00024155488752946043,0.27864652078588725,0.0002600918406251651,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.005006425058745734,0.02519584855836712,0.5401586661981972,0.6606200959378443,0.0011452981626504765,0.0011452981626504765,-0.00025222316761954746,0.0019779420182566916,-0.006422489706129387,-0.2893499938762247,0.009406511550179483,0.03780626918832333,-0.004507478836444534,0.20963291872134227,0.0012233040591627998,0.4919838908630281,0.0019412819007197158,-0.008421881972152078],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,9,0,14,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.9667064823665896,0.0,0.14106576850734703,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.2379972346732037,0.13340006607880497,-0.00022947714315293413,0.27852831541158085,0.36412148358636887,-0.016126443869551112,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.004756103805808465,-0.045948678862946936,0.5401586661981972,0.6606200959378443,0.0010880332545177395,0.0010880332545177395,-0.000239612009238499,0.0023009928526199286,-0.0060863743649119525,0.001247810307940256,-0.3590295144924756,0.20963291872134227,0.06534486486263626,-0.004137656032919779,0.016073655902901506,0.4919838908630281,0.0018442178056837122,-0.00800078787354437],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,8,0,0,66,42,0,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.7630908230697618,0.0,0.0,0.6688487323523675,0.016905650704135078,0.0,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,1,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.2379972346732037,0.13340006607880497,-0.00021800328599539399,0.27852831541158085,0.36412148358636887,-0.015320121676073484,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.004518298615517935,-0.043651244919799485,0.5401586661981972,0.6606200959378443,0.001033631591791817,0.001033631591791817,-0.00022763140877657406,0.0019941388406706406,-0.005641992856012522,-0.03903882604637418,-0.11203492086679177,0.029741458397622725,0.0026765638106198255,0.19075589375670762,0.0013690216578506665,0.49248719534212093,0.001752006915399562,-0.007600748479867293],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,3,36,0,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.5,0.4441143163482063,0.0,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.23804202637561092,0.13346035745194287,-0.00020710312169569534,0.2786526608963537,0.00024708724859401343,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.004292383684742163,0.025508384407730136,0.5401586661981972,0.6606200959378443,0.0009819500122020487,0.0009819500122020487,-0.00021624983833774537,0.0019838489976030317,-0.005652698830880411,-0.01142759798776835,-0.05213593535176458,0.00204921817369268,0.05531600320052413,0.19075589375670762,0.0013005705749581154,0.49248719534212093,0.0016644065696297618,-0.007220711055873963],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,0,3,0,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,6.47413063670009,0.5,0.0,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.23799944646240748,0.13340304323307733,-0.00019674796561091059,0.27853445552204725,0.36412148358636887,-0.015829534812656122,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.004077764500505054,-0.041481037036239246,0.5401586661981972,0.6606200959378443,0.0009328525115918752,0.0009328525115918752,-0.00020543734642117784,0.0013254267033733463,-0.006337748397541926,-0.012150705001766075,-0.04952913858417638,0.0019467572650079036,0.052550203040497935,0.19075589375670762,0.0012355420462103696,0.49248719534212093,0.0015811862411482026,-0.006859675503080354],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,0,3,0,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,6.47413063670009,0.5,0.0,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.23804202637561092,0.13346035745194287,-0.00018691056733040058,0.2786526608963537,0.00023473288616422395,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.00387387627547966,0.02502444192797633,0.5401586661981972,0.6606200959378443,0.0008862098860120682,0.0008862098860120682,-0.00019516547910001237,0.0010716920637800186,-0.00660174432602698,0.03415190022841941,-0.007455018355472732,0.19075589375670762,0.0011737649438998687,0.49248719534212093,0.0015021269290908636,-0.006516691727926372],"feature_idx":[13,7,15,0,35,0,4,20,10,42,0,0,0,0,0,17,29,0,0,0,26,21,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,240.909012,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,9,10,0,0,0,0,0,16,17,0,0,0,21,22,0,0,25,0,27,0,0],"right":[20,15,4,0,6,0,14,13,12,11,0,0,0,0,0,19,18,0,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.23799944646240748,0.13340304323307733,-0.00017756503896393383,0.27853445552204725,0.36412148358636887,-0.016289280168422238,0.4486143415479906,0.47255301656891013,0.5079014477829923,0.0,0.0,0.0,-0.0036801824617057836,-0.03941872182873532,0.5401586661981972,0.6606200959378443,0.0008418993917118201,0.0008418993917118201,-0.00018540720514508281,3.440587047900183e-05,-0.006910449533719003,0.0012245437478508592,-0.3431192607417387,0.1717086768125781,-3.4388314277578046e-05,0.3964671419752038,-0.3265502719306156,0.0014270205826363736],"feature_idx":[13,7,15,0,32,3,0,20,10,42,0,0,0,0,0,17,29,0,0,0,26,8,0,0,8,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0033735454839434187,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.7630908230697618,0.0,0.0,0.657275756047213,0.0,3.332204510175204,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,10,0,0,0,0,0,16,17,0,0,0,21,22,0,0,25,0,27,0,0],"right":[20,15,4,0,14,7,0,13,12,11,0,0,0,0,0,19,18,0,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.23799944646240748,0.13340304323307733,-0.003202464460178361,1.9597478257137553,-0.00016868678701555952,0.27853445552204725,0.36412148358636887,-0.015474816160001126,0.4486143415479906,0.47255301656891013,0.5079014477829923,0.0,0.0,0.0,-0.0034961733386204234,-0.03744778573729839,0.5401586661981972,0.6606200959378443,0.0007998044221260159,0.0007998044221260159,-0.00017613684488750894,0.00040799150025271096,-0.002220364796972518,0.1717086768125781,-3.26688985637702e-05,0.3964671419752038,-0.31022275833408486,0.0013556695535044128],"feature_idx":[13,7,15,15,0,0,32,3,0,20,10,42,0,0,0,0,0,17,29,0,0,0,26,0,8,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,40.679588,0.0,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0033735454839434187,0.0,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.0,0.657275756047213,0.0,3.332204510175204,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,0],"left":[1,2,3,4,0,0,7,8,0,10,11,12,0,0,0,0,0,18,19,0,0,0,23,0,25,0,27,0,0],"right":[22,17,6,5,0,0,16,9,0,15,14,13,0,0,0,0,0,21,20,0,0,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,0,1,0,0,0,1,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,1]},{"value":[0.0,0.23768869811576723,0.1329847638752413,-0.00016025244766488812,0.2786526608963537,0.00022299624185606604,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.0033213646716895085,0.02536142464799873,0.5401586661981972,0.6606200959378443,0.0007598142010195375,0.0007598142010195375,-0.00016733000264324005,-0.0002119200783193452,-0.00210934655712407,0.15267224636208673,0.03635154776347126,-0.003005751723858552,0.19046012820262964,0.010727761188979203,0.004248135792823149,0.5519484794600337,-0.30272135319213,0.0012878860758291921],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,0,66,62,0,8,0,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.0,0.756528058770403,0.019703931320221635,0.0,0.6906142212385419,0.0,0.0,5.111987788356544,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,1,0,1,0,0,1,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,0,21,22,0,24,0,0,27,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,20,0,26,23,0,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-0.00015223982528169702,0.27853445552204725,0.36412148358636887,-0.015969146584400917,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0031552964381049266,-0.035586546262526046,0.5401586661981972,0.6606200959378443,0.0007218234909686317,0.0007218234909686317,-0.0001589635025112557,0.001646643710769046,-0.006010001677851086,0.07217850749539274,-0.004150113074400253,0.19033231368109718,-0.0057398510592317825,0.19091559823094775,0.000763535400256643,0.4926776348670235,0.0012234917720377325,-0.006394385952128801],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,8,28,0,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.1661166033736106,0.004414856341976173,0.0,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-0.0001446278340175411,0.27853445552204725,0.36412148358636887,-0.015170689255180747,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0029975316161998224,-0.0338072189493996,0.5401586661981972,0.6606200959378443,0.0006857323164204843,0.0006857323164204843,-0.0001510153273855508,0.0017967255599382606,-0.0058538503648743355,0.0728305543351465,-0.003942607420680133,0.18081569799704234,-0.005452858506270176,0.19091559823094775,0.0007253586302439886,0.4926776348670235,0.0011623171834358459,-0.006074666654522432],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,8,28,0,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,0.1661166033736106,0.004414856341976173,0.0,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.23768869811576723,0.1329847638752413,-0.00013739644231662852,0.2786526608963537,0.0002118464297630851,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.002847655035389707,0.025650345207577988,0.5401586661981972,0.6606200959378443,0.0006514457005991404,0.0006514457005991404,-0.0001434645610160601,0.002742115465916396,-0.007463675494987032,-0.04526864496643473,-0.32756451522064867,0.1403036926994588,0.0040031240932421495,0.12381510927722104,0.0019394376064383323,0.5259592457086735,-0.28948537231274224,0.0011042013242640537],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,33,0,0,0,0,66,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0003477759487711,0.6600351977963119,6.47413063670009,0.0,0.0,0.0,0.756528058770403,0.0,5.111987788356544,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-0.00013052662020065497,0.27853445552204725,0.36412148358636887,-0.01569467205280084,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0027052722836202747,-0.032127450323417864,0.5401586661981972,0.6606200959378443,0.0006188734155692544,0.0006188734155692544,-0.00013629133296504394,0.0038508351942836113,-0.007524328950841763,0.07049559441392639,0.03402947954786956,0.0928648197552788,0.02195021791927694,0.018792964274329905,-0.04380678859509216,0.011461660295130117,-0.012694495622034197,0.001048991258050691],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,0,27,7,29,0,0,44,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,4.1588830833596715,0.0,0.6635625167893758,5.407171771460119,0.5768201924251026,0.0,0.0,0.004219308358727358,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,1,1,0,0,1,0,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,0,21,22,23,0,0,26,0,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,20,0,28,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,0,1,1,0,1,1,1]},{"value":[0.0,0.23768869811576723,0.1329847638752413,-0.00012400028919046235,0.2786526608963537,0.00020125410827489534,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.0025700086694392613,0.025152561549839095,0.5401586661981972,0.6606200959378443,0.000587929744790472,0.000587929744790472,-0.00012947676631682725,0.0033928950628869274,-0.005150603482789781,-0.03660854884351815,-0.10155994345092019,0.017309751754620708,0.0059459971707863,0.14122736872988587,0.0005396692555073912,0.4726886817400711,0.0009965416951480677,0.00214421374724445],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,26,3,36,0,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.5,0.4441143163482063,0.0,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,21,0,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,24,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-0.00011780027473093924,0.27853445552204725,0.36412148358636887,-0.01616756652765261,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0024415082359674047,-0.030531140512660926,0.5401586661981972,0.6606200959378443,0.0005585332575506641,0.0005585332575506641,-0.00012300292800091484,0.004909526137652629,-0.0035399859784641615,0.002513480717913375,-0.050842309289284314,0.09841093434601299,-0.30573207583952833,0.14122736872988587,0.0005126857927319151,0.4726886817400711,0.000946714610390842,0.002037003059882281],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,8,0,12,0,0,66,0,64,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.7630908230697618,0.0,20.882269471264934,0.0,0.0,0.6688487323523675,0.0,0.0077742325577133675,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0,1,0,0,1,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-0.00011191026099446334,0.27853445552204725,0.36412148358636887,-0.015359188201269802,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.002319432824168999,-0.029004583487027703,0.5401586661981972,0.6606200959378443,0.0005306065946733441,0.0005306065946733441,-0.00011685278160058488,0.0026242178957713164,-0.01109736312691183,0.0458598846606406,0.003206827140707702,0.37711090971674804,0.43571653021856704,0.013204860453076962,0.23250386750228774,0.004300699349933624,-2.4091406406157036e-05,-4.6161569094493875e-05],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,7,0,27,0,40,23,0,61,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.5553480614894135,0.0,0.5368723961688786,0.0,0.06430899023109182,0.9999990525718411,0.0,0.005076142131979696,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,1,0,1,0,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,0,21,0,23,24,0,26,0,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,20,0,22,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,0,1,0,1,1,1]},{"value":[0.0,0.23768869811576723,0.1329847638752413,-0.00010631474794458029,0.2786526608963537,0.00019119140286107952,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.002203461182960709,0.025471271208793667,0.5401586661981972,0.6606200959378443,0.0005040762649393571,0.0005040762649393571,-0.00011101014252048459,0.003571531532831709,-0.020020851507143438,0.01877744869948437,-0.15616034354432706,0.044330885191212546,0.003736562534443877,0.45519431704578056,0.5605078083263278,0.0029656140691940894,0.00650790087152906,0.0012749098842341766],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,7,29,0,0,27,0,61,64,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.4965075614664802,0.0,0.0,0.0,0.6635625167893758,0.0,0.010356761300443641,0.011873463615569402,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,1,0,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,0,25,26,0,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-0.00010099901054729799,0.27853445552204725,0.36412148358636887,-0.01586479235164582,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0020932881238127977,-0.027563913882819337,0.5401586661981972,0.6606200959378443,0.0004788724516920695,0.0004788724516920695,-0.00010545963539456694,0.0026257280772979254,-0.036532701766508385,-0.06267902667439494,0.1011028454261652,0.024800793548155432,0.015930905401136012,0.0023607394932660952,0.21815102548523768,0.20806593597418813,0.002817333365734243,0.0005360632089146833],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,3,12,0,0,26,24,0,0,27,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.5,127.44888023279483,0.0,0.0,1.0026186950817755,1.0000012317805025,0.0,0.0,0.7542013180376982,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-9.594906001986203e-05,0.27853445552204725,0.36412148358636887,-0.015071552734063687,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0019886237176223176,-0.02618571818867821,0.5401586661981972,0.6606200959378443,0.00045492882910735943,0.00045492882910735943,-0.00010018665362494518,0.0036084095397682886,-0.0020029297638155573,0.023295796193747977,-0.00736501592838863,0.1423175334325965,0.024058750081633606,-0.00036422731004002177,0.013012768150142762,0.5482642114320593,-0.26082357201208634,0.0005092600484690735],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,26,16,0,0,66,65,0,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0026186950817755,317.104309,0.0,0.0,0.756528058770403,0.026192628291802245,0.0,0.0,5.111987788356544,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,1,1,0,0,1,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.23768869811576723,0.1329847638752413,-9.115160701895776e-05,0.2786526608963537,0.00018163183271795448,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.001889192531741202,0.0257445249026393,0.5401586661981972,0.6606200959378443,0.0004321823876523468,0.0004321823876523468,-9.517732094366238e-05,0.004094676416189951,-0.03354498029729307,-0.06487769865107751,0.037628120154440836,0.025409644457817047,0.013827393018568909,0.1747161603360418,0.0013258174411099333,0.17093307418387785,-0.35671843601164677,0.33359233532147353],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,3,36,0,0,13,18,0,0,26,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.5,0.611042145436638,0.0,0.0,0.9613025083810082,82.065,0.0,0.0,1.0000012577868092,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.2376461182025638,0.13292744965637573,-8.659402666815197e-05,0.27853445552204725,0.36412148358636887,-0.015605201342492592,0.4486143415479906,0.47255301656891013,0.0,0.0,-0.0017947329051541062,-0.02488551387088016,0.5401586661981972,0.6606200959378443,0.00041057326826958733,0.00041057326826958733,-9.041845489647926e-05,-0.0043766214950051565,0.019646459504049574,-0.025260887872948962,-0.1696369150610444,-0.004040479083021147,-0.0027891732474593315,0.12405632325360909,0.3128223277362189,0.23469812651871963,0.009530246961363531,-0.011556577589693263],"feature_idx":[13,7,15,0,32,3,0,20,10,0,0,0,0,17,29,0,0,0,16,0,9,0,15,0,66,1,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,317.104309,0.0,1.0774937534322335,0.0,150.9483,0.0,0.03245318893124438,0.5,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0],"left":[1,2,3,0,5,6,0,8,9,0,0,0,0,14,15,0,0,0,19,0,21,0,23,0,25,26,0,0,0],"right":[18,13,4,0,12,7,0,11,10,0,0,0,0,17,16,0,0,0,20,0,22,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,0,1,1,1]},{"value":[0.0,0.2377044460557431,0.13300596121479774,-8.226432533469108e-05,0.2786963784852202,0.00017255024108209227,0.37958844971179534,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.0017049962598964187,0.025237558724631983,0.5401586661981972,0.6606200959378443,0.00039004460485614345,0.00039004460485614345,-8.589753215133556e-05,-0.004525918598795835,0.018664136528846954,-0.02427171522153733,-0.006984520411853048,0.07097560491002285,-0.010282460101232009,-0.009713827087536587,0.04033280971885265,0.0006930754216444513,0.14035815405007349,-0.26685465389824453],"feature_idx":[13,7,15,0,35,0,4,20,10,0,0,0,0,17,29,0,0,0,16,0,10,9,0,26,0,47,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,318.218384,0.773901756003333,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,317.104309,0.0,0.584907960600502,0.666885678291477,0.0,1.00000059978088,0.0,0.013681592039800993,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,1,0,1,0,0,0],"left":[1,2,3,0,5,0,7,8,9,0,0,0,0,14,15,0,0,0,19,0,21,22,0,24,0,26,0,0,0],"right":[18,13,4,0,6,0,12,11,10,0,0,0,0,17,16,0,0,0,20,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-7.815110906790325e-05,0.2785781731109138,0.00016392272902798766,0.37942679951890784,0.023975680788400313,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.0016197464469016156,0.5401586661981972,0.6606200959378443,0.0003705423746133363,0.0003705423746133363,-8.160265554408853e-05,-0.0011737326702565235,-0.032437371301736344,-0.06263219796813183,0.036371864163468715,0.01653064604405664,0.007772711251535418,0.015615242301166177,-0.005618922471076715,0.20797549935697837,-0.02960774851616659,0.3387372970033644],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,29,0,0,0,3,36,0,0,13,36,0,0,26,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.5,0.611042145436638,0.0,0.0,0.9805675611306245,0.30484589610546714,0.0,0.0,1.0000012577868092,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,0,23,24,0,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,22,21,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-7.424355361465019e-05,0.2785781731109138,0.00015572659257649947,0.37942679951890784,0.022776896748980136,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.0015387591245566768,0.5401586661981972,0.6606200959378443,0.0003520152558827761,0.0003520152558827761,-7.752252276702621e-05,-0.0030697144237876077,-0.006670144308374442,0.018699306897254075,-0.02778331076657654,-0.012898944877738532,0.0001440203484079916,-0.008841733144129194,-0.09903032589058935,-0.25038031130492566,0.3218004321531961,0.18590539261414918],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,29,0,0,0,50,16,0,8,7,0,0,32,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.021117858011792334,317.104309,0.0,0.7953669999511565,5.480638923341991,0.0,0.0,0.9999999999999999,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,1,1,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,22,23,0,0,26,0,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,28,21,0,25,24,0,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,1,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-7.053137593402426e-05,0.2785781731109138,0.00014794026294779884,0.37942679951890784,0.021638051911531165,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0014618211683288251,0.5401586661981972,0.6606200959378443,0.0003344144930885307,0.0003344144930885307,-7.364639662839069e-05,-0.0022040849935820645,0.008664581609014376,-0.024866971553915013,-0.027690968515617698,0.023969592036032737,0.0472659878516438,0.0008435588741750877,0.30571041054553627,-0.2503875123223461],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,16,0,26,0,23,15,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,352.164535,0.0,1.00000059978088,0.0,1.000001537745334,188.447861,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-6.70048071373941e-05,0.2785781731109138,0.00014054324980037337,0.37942679951890784,0.020556149315954644,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0013887301099124727,0.5401586661981972,0.6606200959378443,0.0003176937684344239,0.0003176937684344239,-6.996407679693561e-05,-0.00154253079634454,0.015842598357396775,0.0005753030457299246,0.1877181323402239,0.7191784785580883,0.0754715279194844,-0.3324006272194227,0.12402965832567006,-0.015427891422181261],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,4,24,0,14,0,7,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.5,1.0000012317805025,0.0,0.0689996869976547,0.0,3.4339872044851463,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,0,24,0,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-6.365456678061322e-05,0.2785781731109138,0.00013351608731042576,0.37942679951890784,0.01952834185015675,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0013192936044170269,0.5401586661981972,0.6606200959378443,0.0003018090800125606,0.0003018090800125606,-6.64658729569112e-05,-0.0024753264585610497,0.009142008288673153,-0.02420406364877403,-0.03252584868739455,0.017249174678298767,0.06000470531952721,0.2830750032632611,0.005219140174089177,-0.22457052555245305],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,21,0,26,0,25,12,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,318.146301,0.0,1.0000008075172075,0.0,1.0000024319975194,19.353972328574073,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,28,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-6.047183844160031e-05,0.2785781731109138,0.00012684028294494,0.37942679951890784,0.01855192475764902,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.00125332892419614,0.5401586661981972,0.6606200959378443,0.0002867186260118615,0.0002867186260118615,-6.314257930881695e-05,-0.003114540953460579,0.004939389804654937,-0.027147885644789586,-0.013029697560050835,0.09043587204539309,0.005302493824839872,0.298760372260601,0.30003726883897885,-0.0032488826201767297],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,28,0,16,0,64,0,66,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.10479178503160763,0.0,647.1507,0.0,0.06549767921609062,0.0,0.08954547231015753,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-5.7448246519697935e-05,0.2785781731109138,0.00012049826879767522,0.37942679951890784,0.01762432851976641,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0011906624779864927,0.5401586661981972,0.6606200959378443,0.0002723826947111263,0.0002723826947111263,-5.998545034344716e-05,-0.002847946067428507,0.013730663359075971,0.15277722190419604,0.0832161916818615,0.6910014669256909,0.001031513871837575,-0.03227479107128792,-0.23342757543041712,0.008226933021534677],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,4,7,44,0,0,0,35,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.5,1.0986122886681098,0.15752861650235558,0.0,0.0,0.0,0.5610074110912133,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,23,0,0,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,26,25,24,0,0,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-5.457583419357093e-05,0.2785781731109138,0.00011447335535770265,0.37942679951890784,0.016743112093778125,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0011311293540870794,0.5401586661981972,0.6606200959378443,0.00025876355997525027,0.00025876355997525027,-5.6986177825990586e-05,-0.001717162001947339,0.07803552836341865,-0.012893269896096583,-0.05260292230891972,-0.06536550954841687,-0.3154416436827454,-0.03560068853407668,0.0049762272458433905,0.0009799381782457318],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,16,0,9,7,15,0,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,241.131485,0.0,1.0774937534322335,3.6888794541139363,109.044647,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,0.23766186614253965,0.1329486469959322,-0.004125589140558453,1.8618688398332495,-0.02573092396184699,-5.1847042483998965e-05,0.15293914525106198,0.2785781731109138,0.00010874968758969318,0.37942679951890784,0.015905956489089237,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0010745728863827964,0.5401586661981972,0.6606200959378443,0.00024582538197677196,0.00024582538197677196,-5.413686893476211e-05,-0.0012961301704302753,0.008055470112350673,0.02074067649929248,-0.0012755188491929915,-0.21997616223219227],"feature_idx":[13,7,15,15,0,67,0,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,10,14,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,40.679588,0.0,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.6774280200260546,0.12653657896539194,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0],"left":[1,2,3,4,0,6,0,0,9,0,11,0,13,14,15,0,0,0,0,20,21,0,0,0,25,26,0,0,0],"right":[24,19,8,5,0,7,0,0,10,0,12,0,18,17,16,0,0,0,0,23,22,0,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,1]},{"value":[0.0,0.23761405989801967,0.13288429793189188,-0.004250490342098926,1.768775397841587,-0.02573092396184699,-4.925469035974573e-05,0.14529218798850893,0.2785781731109138,0.00010331220321013745,0.37942679951890784,0.015110658664634614,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0010208442420637455,0.5401586661981972,0.6606200959378443,0.0002335341128777202,0.0002335341128777202,-5.1430025487775316e-05,-0.0033325421045681198,0.0045902136812237876,-0.026651741738045232,-0.012415009342092987,0.07911444786405825],"feature_idx":[13,7,15,15,0,67,0,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,28,0,16,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,40.679588,0.0,0.07556466769178205,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.10479178503160763,0.0,647.1507,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0],"left":[1,2,3,4,0,6,0,0,9,0,11,0,13,14,15,0,0,0,0,20,21,0,0,0,25,0,27,0,0],"right":[24,19,8,5,0,7,0,0,10,0,12,0,18,17,16,0,0,0,0,23,22,0,0,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,1]},{"value":[0.0,0.23421872742460742,0.1283140483972648,-0.013121321126167795,1.237237598418946,-4.679195584174068e-05,0.2785781731109138,9.81465930497194e-05,0.37942679951890784,0.014355125731403007,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0009698020299605759,0.5401586661981972,0.6606200959378443,0.00022185740723372762,0.00022185740723372762,-4.885852421310233e-05,-0.002750388853353585,0.004360702997162492,-0.02510426494407969,-0.12034690336561803,0.007483681810399292,0.2650547756733458,-0.00021857879505517987],"feature_idx":[13,7,15,16,0,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,28,0,26,0,7,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,141.079803,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.10479178503160763,0.0,1.00000059978088,0.0,1.0986122886681098,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,0,0,23,0,25,0,27,0,0],"right":[22,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,21,20,0,0,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,1]},{"value":[0.0,0.23377766361778282,0.12772035936278417,-4.445235804979575e-05,0.2785781731109138,9.323926339739331e-05,0.37942679951890784,0.013637369444832716,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0009213119284623872,0.5401586661981972,0.6606200959378443,0.00021076453687172148,0.00021076453687172148,-4.641559800262485e-05,-0.002195586627440314,0.07482920729456488,-0.012938264859599863,-0.06035594394721806,0.0491638062859583,-0.007354889415515942,0.26555878261575855,-0.21217067219937694,0.0009561533510918708],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,16,0,9,7,26,0,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,241.131485,0.0,0.9667064823665896,1.0986122886681098,1.0000012577868092,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,24,25,0,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,28,27,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1]},{"value":[0.0,0.23377766361778282,0.12772035936278417,-0.014273668481237269,1.6184769706464637,-4.222974014744807e-05,0.2785781731109138,8.85773002273993e-05,0.37942679951890784,0.012955500972591238,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0008752463320391258,0.5401586661981972,0.6606200959378443,0.00020022631002802882,0.00020022631002802882,-0.000570454705318099,0.2631504989877545,-0.0036939576223375074,-0.002237152709018834,0.0006317634011865329,-0.0002095146676186488,0.2496964758661731,-0.20696732795243042],"feature_idx":[13,7,15,15,0,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,29,0,0,67,22,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,40.679588,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.0,0.0,0.9578139980824547,1.0000004988924633,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,0,22,0,0,25,26,0,0,0],"right":[24,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,21,20,0,0,23,0,0,28,27,0,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,0,1,1,0,0,1,1,1]},{"value":[0.0,0.23165542759894475,0.12760716281790818,-0.014493382391238922,1.53755312211414,-4.011825314016449e-05,0.2785781731109138,8.414843521613591e-05,0.37942679951890784,0.0123077259239615,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0008314840154373115,0.5322322031418781,0.6606200959378443,0.00019021499452662738,0.00019021499452662738,-0.003509259741220916,-0.002319279863698392,0.0028551679966289643,0.0016902069425007939,-0.19552749029305688,-0.08546331096529987,0.6312949424671758,-0.19172024914184718],"feature_idx":[13,7,15,15,0,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,45,67,0,0,35,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,40.679588,0.0,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.31065074851639585,0.9578139980824547,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0],"left":[1,2,3,4,0,0,7,0,9,0,11,12,13,0,0,0,0,18,19,0,0,0,23,24,0,0,27,0,0],"right":[22,17,6,5,0,0,8,0,10,0,16,15,14,0,0,0,0,21,20,0,0,0,26,25,0,0,28,0,0],"is_leaf":[0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,1]},{"value":[0.0,0.23063287933136456,0.126230773088585,-3.8112340483209556e-05,0.2785781731109138,7.994101345545347e-05,0.37942679951890784,0.01169233962776346,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0007899098146655348,0.5322322031418781,0.6606200959378443,0.00018070424480001181,0.00018070424480001181,-0.003333796754159835,-0.0015826436204240543,-0.006978428986095289,0.0054482473989903475,-0.03389839968116559,-0.0797037807095185,0.046495290796821284,0.23712714172573934,-0.17708248966717,0.005015318189527562],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,26,30,0,15,0,66,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,1.0019918719534193,0.13110444800914917,0.0,188.447861,0.0,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,0,1,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,0,24,0,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,0.23063287933136456,0.126230773088585,-3.620672345903131e-05,0.2785781731109138,7.594396278278737e-05,0.37942679951890784,0.011107722646375252,0.45630405711059085,0.4819516830475451,0.0,0.0,-0.0007504143239323469,0.5322322031418781,0.6606200959378443,0.0001716690325601178,0.0001716690325601178,-0.003167106916451701,0.001180900048117121,-0.01731201598770805,-0.024638528314213204,0.15110694676829015,0.358868116900452,0.2150926691188044,0.03313021902638121,0.002705739623367265,0.23252968810924485,0.010663277773916846,0.014720785846310492],"feature_idx":[13,7,15,0,35,0,3,0,20,10,0,0,0,17,29,0,0,0,7,16,0,28,0,0,27,0,42,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.4965075614664802,721.3366,0.0,0.2833238797504254,0.0,0.0,0.5368723961688786,0.0,0.004997730852638327,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,1,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,0,0,0,14,15,0,0,0,19,20,0,22,0,0,25,0,27,0,0],"right":[18,13,4,0,6,0,8,0,12,11,0,0,0,17,16,0,0,0,24,21,0,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1]},{"value":[0.0,0.23063287933136456,0.126230773088585,-3.43963872861508e-05,0.2785781731109138,7.214676464357694e-05,0.37942679951890784,0.010552336514056649,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0007128936077357651,0.5322322031418781,0.6606200959378443,0.00016308558093243165,0.00016308558093243165,-0.0030087515706291867,-0.0003905687744816628,-0.021972109472591473,0.05617072513913577,-0.10908710794396442,0.028604047830443638,0.0028485516758674835,0.2806434854182765,-0.0036151367924205148,0.013814156956079772],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,7,16,0,0,31,0,15,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.258096538021482,249.1962,0.0,0.0,0.8364314391095735,0.0,50.076049,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,0,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.23063287933136456,0.126230773088585,-3.267656792189655e-05,0.2785781731109138,6.853942641136257e-05,0.37942679951890784,0.010024719688353657,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0006772489273490835,0.5322322031418781,0.6606200959378443,0.0001549313018855969,0.0001549313018855969,-0.00285831399209755,0.0013576570759996135,-0.01888837351457133,0.010293838532526679,-0.17480867291481134,0.0285579780773111,0.0027061240920740917,0.2806434854182765,-0.00343437995279956,0.013123449108275766],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,7,66,0,0,31,0,15,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,3.258096538021482,0.000907441016333943,0.0,0.0,0.8364314391095735,0.0,50.076049,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,0,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,0,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,24,23,0,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,1,1]},{"value":[0.0,0.23066568753850886,0.12627493421112815,-3.104273952594383e-05,0.2785781731109138,6.511245509095431e-05,0.37942679951890784,0.00952348370393601,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0006433864809817891,0.5322322031418781,0.6606200959378443,0.00014718473679096178,0.00014718473679096178,-0.0027153982924929213,0.0020365425984288535,0.08417577027081195,-0.0033697466695826964,0.18730067105093465,0.21124132160177034,0.10786212476056412,0.3935583103199818,0.11326861169667879,-0.0013396368578021624],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,8,28,0,26,0,61,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.15217391304347827,0.004414856341976173,0.0,0.928853488646382,0.0,0.019876076704965683,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,0,24,0,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,0.23066568753850886,0.12627493421112815,-2.9490602549486767e-05,0.2785781731109138,6.185683233645989e-05,0.37942679951890784,0.009047309518739156,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.000611217156932753,0.5322322031418781,0.6606200959378443,0.00013982549995148475,0.00013982549995148475,-0.0025796283778682042,0.00011278991787653977,0.002718256029597299,-0.05434996846892653,0.059887294358777446,-0.2265974412105484,0.3422807067101451,-0.7185773722044528,0.6984915742048458,-0.20568214376509655],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,8,0,35,24,0,3,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.83275844548015,0.0,0.0,1.0000012317805025,0.0,0.5,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,0,1,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,24,0,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,28,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,1,1]},{"value":[0.0,0.23066568753850886,0.12627493421112815,-2.80160724219769e-05,0.2785781731109138,5.876399071951255e-05,0.37942679951890784,0.008594944042802055,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0005806562990862574,0.5322322031418781,0.6606200959378443,0.0001328342249536263,0.0001328342249536263,-0.002450646958974545,-0.0005968525093532563,-0.0038977963914725742,0.012398345694272096,-0.02921818817727676,-0.02385061819153336,0.08446641326464083,0.0034324077162029456,0.11211634673035215,0.2165445121081657],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,50,16,0,26,0,48,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.021117858011792334,352.164535,0.0,1.0003477759487711,0.0,0.2683656806025092,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,0,1,0,1,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,0,24,0,26,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,28,23,0,25,0,27,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1]},{"value":[0.0,0.23066568753850886,0.12627493421112815,-2.6615268800966876e-05,0.2785781731109138,5.5825791183394816e-05,0.37942679951890784,0.008165196840661793,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0005516234841319801,0.5322322031418781,0.6606200959378443,0.00012619251370580287,0.00012619251370580287,-0.0023281146110257114,-0.003375292362176369,0.011778428409558473,-0.02636625015620252,-0.022236794925134265,0.01518351162964244,-0.0006596023330086354,0.1477998906581537,0.026400328506836247,0.22967694438656494],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,16,0,26,0,62,0,47,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,352.164535,0.0,1.0000008075172075,0.0,0.10331800971166866,0.0,0.013681592039800993,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,0,23,0,25,0,27,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,22,0,24,0,26,0,28,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1]},{"value":[0.0,0.23066568753850886,0.12627493421112815,-2.5284505360900768e-05,0.2785781731109138,5.3034501624082964e-05,0.37942679951890784,0.007756936998628561,0.45630405711059085,0.4819516830475451,0.5181167307260504,0.0,0.0,0.0,-0.0005240423099252212,0.5322322031418781,0.6606200959378443,0.00011988288802058379,0.00011988288802058379,-0.002211708880474106,-0.0023593668416906897,0.005121933737855463,0.015345188934352409,0.0032300954298470686,0.12775540952492462,0.12840191360591113,0.04664948254142268,-0.15973739530786857,-0.03433975521146628],"feature_idx":[13,7,15,0,35,0,3,0,20,10,42,0,0,0,0,17,29,0,0,0,46,8,16,0,62,0,0,0,0],"num_threshold":[0.3950962752764673,5.111987788356544,55.0544,0.0,0.9991236739072364,0.0,0.5,0.0,318.218384,0.773901756003333,0.004997730852638327,0.0,0.0,0.0,0.0,70.0287,0.004523554526147955,0.0,0.0,0.0,0.052189233498031284,0.83275844548015,617.1497,0.0,0.30463595403323496,0.0,0.0,0.0,0.0],"missing_go_to_left":[0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,1,1,0,1,0,0,0,0],"left":[1,2,3,0,5,0,7,0,9,10,11,0,0,0,0,16,17,0,0,0,21,22,23,0,25,0,0,0,0],"right":[20,15,4,0,6,0,8,0,14,13,12,0,0,0,0,19,18,0,0,0,28,27,24,0,26,0,0,0,0],"is_leaf":[0,0,0,1,0,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,1,1]}]}],"centroid_prior":{"family":"TRAIN instrument-specific three energy-bin centroids, shrunk toward exact E585 adduct parent","TRAIN_source_sha256":"de7f46e91f7b67eb5ca67468381abbdb20a8f739a0ae4b27070276798ecad0fc","parent_energy_config_sha256":"450064948741c393bcf65e9af491e3c5b1d0a295c9da736c1b4c642cea1c6be0","selected_TRAIN_shrink_strength":0.0,"selection_rule":"Equal-adduct, uniform target-SMILES within adduct, uniform known-CE spectrum; alias-group-disjoint TRAIN holdout CRPS, identity first on ties","adducts":{"[M+H]+":{"energy_nodes":[14.915044905982805,29.192200736632046,61.4252289740876],"known_TRAIN_rows":99377,"known_TRAIN_target_SMILES":13334,"known_TRAIN_molecule_groups":12342,"mean_energy":35.177491538744114,"range":[0.0,358.40016],"independent_max_error":4.906084427602764e-10},"[M+Na]+":{"energy_nodes":[16.363794085778295,34.20348958982241,54.540765136140934],"known_TRAIN_rows":2232,"known_TRAIN_target_SMILES":834,"known_TRAIN_molecule_groups":817,"mean_energy":35.03601627058084,"range":[0.0,150.0],"independent_max_error":1.4921397450962104e-12}},"instrument_cells":{"[M+H]+":{"Orbitrap":{"energy_nodes":[16.605896394909983,31.828790600280854,63.23152933770765],"local_weight":1.0,"known_TRAIN_molecule_groups":10676},"QTOF":{"energy_nodes":[9.074770389629204,24.358224756735087,50.76374858508345],"local_weight":1.0,"known_TRAIN_molecule_groups":3876},"":{"energy_nodes":[11.346131470588235,18.210821617647056,29.05411176470588],"local_weight":1.0,"known_TRAIN_molecule_groups":33}},"[M+Na]+":{"Orbitrap":{"energy_nodes":[26.07900942398969,42.31869320971121,59.94343500590242],"local_weight":1.0,"known_TRAIN_molecule_groups":540},"QTOF":{"energy_nodes":[11.400337837837867,20.0,38.4277027027049],"local_weight":1.0,"known_TRAIN_molecule_groups":367},"":{"energy_nodes":[16.363794085778295,34.20348958982241,54.540765136140934],"local_weight":0.0,"known_TRAIN_molecule_groups":0}}},"known_instrument_values":["Orbitrap","QTOF",""],"unknown_instrument_fallback":"adduct parent","view_weights":[0.3333333333333333,0.3333333333333333,0.3333333333333333],"half_blend":0.5,"precursor_rule":"Retain E594 independent mixture and original precursor in all energy views; no joint integral","validation_fitted_parameters":false,"no_query_fitted_parameters":true},"quantile_prior":{"adducts":{"[M+H]+":{"energy_nodes":[15.0,30.0,60.0],"known_TRAIN_rows":99377},"[M+Na]+":{"energy_nodes":[20.0,35.0,55.0],"known_TRAIN_rows":2232}},"instrument_cells":{"[M+H]+":{"Orbitrap":{"energy_nodes":[18.105845,30.0,60.0],"known_TRAIN_rows":64738},"QTOF":{"energy_nodes":[10.0,20.0,40.0],"known_TRAIN_rows":34603},"":{"energy_nodes":[14.956405,15.0,28.0],"known_TRAIN_rows":36}},"[M+Na]+":{"Orbitrap":{"energy_nodes":[30.0,45.0,65.0],"known_TRAIN_rows":1369},"QTOF":{"energy_nodes":[10.0,20.0,40.0],"known_TRAIN_rows":863},"":{"energy_nodes":[20.0,35.0,55.0],"known_TRAIN_rows":0}}}},"quantiles":[0.16666666666666666,0.5,0.8333333333333334],"feature_dimension":73,"runtime_feature_sha256":"e447cb17fdb8a3f9e926f0069d6281a6c76f7b2ca79a8e8d8600e6787df435fe","TRAIN_source_sha256":"de7f46e91f7b67eb5ca67468381abbdb20a8f739a0ae4b27070276798ecad0fc","view_weights":[0.3333333333333333,0.3333333333333333,0.3333333333333333],"half_blend":0.5,"original_precursor_in_energy_views":true,"validation_fitted_parameters":false,"selection":"TRAIN connectivity-disjoint holdout CRPS only; fixed architecture and control-first ties"} \ No newline at end of file diff --git a/shared/package-files/ea/ea658b1afa873fc2612d18418c6a1fe149e0c7e4836acaaef86d0cda95f439ec/blob b/shared/package-files/ea/ea658b1afa873fc2612d18418c6a1fe149e0c7e4836acaaef86d0cda95f439ec/blob new file mode 100644 index 0000000000000000000000000000000000000000..ed20dd066aabb6edc0c0a7c1d16736a59d2056fc --- /dev/null +++ b/shared/package-files/ea/ea658b1afa873fc2612d18418c6a1fe149e0c7e4836acaaef86d0cda95f439ec/blob @@ -0,0 +1,41 @@ +from __future__ import annotations + +# ruff: noqa: ARG004 +from enum import Enum +from typing import Any + + +class NoAutoEnum(Enum): + """Enum base class that prohibits the use of enum.auto() for value assignment. + + This behavior is achieved by overriding the value generation mechanism. + + Examples: + >>> from enum import auto + >>> + >>> class Colors(NoAutoEnum): + ... RED = 1 + ... GREEN = 2 + >>> Colors.RED + + + >>> class ColorsWithAuto(NoAutoEnum): + ... RED = 1 + ... GREEN = auto() + Traceback (most recent call last): + ... + ValueError: Creating values with `auto()` is not allowed. Please provide a value manually instead. + + Raises: + ValueError: If `auto()` is attempted to be used for any enum member value. + """ + + @staticmethod + def _generate_next_value_( + name: str, start: int, count: int, last_values: list[Any] + ) -> Any: + msg = "Creating values with `auto()` is not allowed. Please provide a value manually instead." + raise ValueError(msg) + + +__all__ = ["NoAutoEnum"] diff --git a/shared/package-files/ea/ea6a9112a25674d10f2c84748df9222e738577a2ab7015fb7c9ec8389cdf4322/blob b/shared/package-files/ea/ea6a9112a25674d10f2c84748df9222e738577a2ab7015fb7c9ec8389cdf4322/blob new file mode 100644 index 0000000000000000000000000000000000000000..320d700b2b6c340d1cb52e708aa8defcad7e60bb --- /dev/null +++ b/shared/package-files/ea/ea6a9112a25674d10f2c84748df9222e738577a2ab7015fb7c9ec8389cdf4322/blob @@ -0,0 +1,73 @@ +import numpy as np +import pytest + +from pandas.compat import HAS_PYARROW + +from pandas.core.dtypes.cast import find_common_type + +import pandas as pd +import pandas._testing as tm +from pandas.util.version import Version + + +@pytest.mark.parametrize( + "to_concat_dtypes, result_dtype", + [ + # same types + ([("pyarrow", pd.NA), ("pyarrow", pd.NA)], ("pyarrow", pd.NA)), + ([("pyarrow", np.nan), ("pyarrow", np.nan)], ("pyarrow", np.nan)), + ([("python", pd.NA), ("python", pd.NA)], ("python", pd.NA)), + ([("python", np.nan), ("python", np.nan)], ("python", np.nan)), + # pyarrow preference + ([("pyarrow", pd.NA), ("python", pd.NA)], ("pyarrow", pd.NA)), + # NA preference + ([("python", pd.NA), ("python", np.nan)], ("python", pd.NA)), + ], +) +def test_concat_series(request, to_concat_dtypes, result_dtype): + if any(storage == "pyarrow" for storage, _ in to_concat_dtypes) and not HAS_PYARROW: + pytest.skip("Could not import 'pyarrow'") + + ser_list = [ + pd.Series(["a", "b", None], dtype=pd.StringDtype(storage, na_value)) + for storage, na_value in to_concat_dtypes + ] + + result = pd.concat(ser_list, ignore_index=True) + expected = pd.Series( + ["a", "b", None, "a", "b", None], dtype=pd.StringDtype(*result_dtype) + ) + tm.assert_series_equal(result, expected) + + # order doesn't matter for result + result = pd.concat(ser_list[::1], ignore_index=True) + tm.assert_series_equal(result, expected) + + +def test_concat_with_object(string_dtype_arguments): + # _get_common_dtype cannot inspect values, so object dtype with strings still + # results in object dtype + result = pd.concat( + [ + pd.Series(["a", "b", None], dtype=pd.StringDtype(*string_dtype_arguments)), + pd.Series(["a", "b", None], dtype=object), + ] + ) + assert result.dtype == np.dtype("object") + + +def test_concat_with_numpy(string_dtype_arguments): + # common type with a numpy string dtype always preserves the pandas string dtype + dtype = pd.StringDtype(*string_dtype_arguments) + assert find_common_type([dtype, np.dtype("U")]) == dtype + assert find_common_type([np.dtype("U"), dtype]) == dtype + assert find_common_type([dtype, np.dtype("U10")]) == dtype + assert find_common_type([np.dtype("U10"), dtype]) == dtype + + # with any other numpy dtype -> object + assert find_common_type([dtype, np.dtype("S")]) == np.dtype("object") + assert find_common_type([dtype, np.dtype("int64")]) == np.dtype("object") + + if Version(np.__version__) >= Version("2"): + assert find_common_type([dtype, np.dtypes.StringDType()]) == dtype + assert find_common_type([np.dtypes.StringDType(), dtype]) == dtype diff --git a/shared/package-files/ea/ea6a94152cf601947a7b9e92ff9580d23f128a700883532688e8baa68e28329d/blob b/shared/package-files/ea/ea6a94152cf601947a7b9e92ff9580d23f128a700883532688e8baa68e28329d/blob new file mode 100644 index 0000000000000000000000000000000000000000..f627e136ab0516b19e9c91539577766acc686380 --- /dev/null +++ b/shared/package-files/ea/ea6a94152cf601947a7b9e92ff9580d23f128a700883532688e8baa68e28329d/blob @@ -0,0 +1,24 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautogradnonfunctional { + +TORCH_API at::Tensor scatter_reduce(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, bool include_self=true); +TORCH_API at::Tensor & scatter_reduce_(at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, bool include_self=true); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/ea/ea71e58b975d4e6e55375d63a9d0fbb03b67bd5b650967431920b881046072d7/blob b/shared/package-files/ea/ea71e58b975d4e6e55375d63a9d0fbb03b67bd5b650967431920b881046072d7/blob new file mode 100644 index 0000000000000000000000000000000000000000..31d89dd3f7094c1034a255b643f80f36a363ca5a --- /dev/null +++ b/shared/package-files/ea/ea71e58b975d4e6e55375d63a9d0fbb03b67bd5b650967431920b881046072d7/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::grid_sampler_3d(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners) -> Tensor +inline at::Tensor grid_sampler_3d(const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { + return at::_ops::grid_sampler_3d::call(input, grid, interpolation_mode, padding_mode, align_corners); +} + +// aten::grid_sampler_3d.out(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & grid_sampler_3d_out(at::Tensor & out, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { + return at::_ops::grid_sampler_3d_out::call(input, grid, interpolation_mode, padding_mode, align_corners, out); +} +// aten::grid_sampler_3d.out(Tensor input, Tensor grid, int interpolation_mode, int padding_mode, bool align_corners, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & grid_sampler_3d_outf(const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, at::Tensor & out) { + return at::_ops::grid_sampler_3d_out::call(input, grid, interpolation_mode, padding_mode, align_corners, out); +} + +} diff --git a/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/blob b/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/blob new file mode 100644 index 0000000000000000000000000000000000000000..79ccaab756dea70c29ac40c9d1b981fe30942146 Binary files /dev/null and b/shared/package-files/ea/ea72a2f5d844d07e3110755206c2d74958ad9022238d90760f52ac2b976fb0b2/blob differ diff --git a/shared/package-files/ea/ea74b2fcbf92aeef4dae100d1ff20c80ce4d3a40ba083874aa1efc586b4c9855/blob b/shared/package-files/ea/ea74b2fcbf92aeef4dae100d1ff20c80ce4d3a40ba083874aa1efc586b4c9855/blob new file mode 100644 index 0000000000000000000000000000000000000000..e82fa6f8a1e55202fd6e364a439ac50a580e5f44 --- /dev/null +++ b/shared/package-files/ea/ea74b2fcbf92aeef4dae100d1ff20c80ce4d3a40ba083874aa1efc586b4c9855/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API conj { + using schema = at::Tensor (const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::conj") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "conj(Tensor(a) self) -> Tensor(a)") + static at::Tensor call(const at::Tensor & self); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/ea/ea76e9f22ef2c76988a5633d162a89de337b8b472908d4d69f755eeb61afa2dc/blob b/shared/package-files/ea/ea76e9f22ef2c76988a5633d162a89de337b8b472908d4d69f755eeb61afa2dc/blob new file mode 100644 index 0000000000000000000000000000000000000000..75bff1e52f0a0f78e0cf52be311104f35aec4dc1 Binary files /dev/null and b/shared/package-files/ea/ea76e9f22ef2c76988a5633d162a89de337b8b472908d4d69f755eeb61afa2dc/blob differ diff --git a/shared/package-files/ea/ea7cb0f1939f7934f6f689c6eb3cf1838746b1648394880abad86c164c341c0d/blob b/shared/package-files/ea/ea7cb0f1939f7934f6f689c6eb3cf1838746b1648394880abad86c164c341c0d/blob new file mode 100644 index 0000000000000000000000000000000000000000..197f2618686331f84e882ec4eb55d63c1c4885ab --- /dev/null +++ b/shared/package-files/ea/ea7cb0f1939f7934f6f689c6eb3cf1838746b1648394880abad86c164c341c0d/blob @@ -0,0 +1,23 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API void _foreach_norm_Scalar_out(at::TensorList self, const at::Scalar & ord, at::TensorList out); +TORCH_API ::std::vector foreach_tensor_norm_slow(at::TensorList self, const at::Scalar & ord=2); +TORCH_API ::std::vector foreach_tensor_norm_cuda(at::TensorList self, const at::Scalar & ord=2); +} // namespace native +} // namespace at diff --git a/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/blob b/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/blob new file mode 100644 index 0000000000000000000000000000000000000000..683de7a63aebd1d5a5b4f5e3fa39debcd3d21a36 Binary files /dev/null and b/shared/package-files/ea/ea7f8afcd5b0f02292d8ba1f841e927dbb80b71f5e5d2a7435be1d97ddf621bf/blob differ diff --git a/shared/package-files/ea/ea8003688db5bd62d23e01d5a9c9282e23c55acac65f0ef57de97b1c7c49c997/blob b/shared/package-files/ea/ea8003688db5bd62d23e01d5a9c9282e23c55acac65f0ef57de97b1c7c49c997/blob new file mode 100644 index 0000000000000000000000000000000000000000..69120160699c24cc86670522f84ec6c7014c20ee --- /dev/null +++ b/shared/package-files/ea/ea8003688db5bd62d23e01d5a9c9282e23c55acac65f0ef57de97b1c7c49c997/blob @@ -0,0 +1,563 @@ +""" +Module consolidating common testing functions for checking plotting. +""" + +from __future__ import annotations + +from typing import TYPE_CHECKING + +import numpy as np + +from pandas.core.dtypes.api import is_list_like + +import pandas as pd +from pandas import Series +import pandas._testing as tm + +if TYPE_CHECKING: + from collections.abc import Sequence + + from matplotlib.axes import Axes + + +def _check_legend_labels(axes, labels=None, visible=True): + """ + Check each axes has expected legend labels + + Parameters + ---------- + axes : matplotlib Axes object, or its list-like + labels : list-like + expected legend labels + visible : bool + expected legend visibility. labels are checked only when visible is + True + """ + if visible and (labels is None): + raise ValueError("labels must be specified when visible is True") + axes = _flatten_visible(axes) + for ax in axes: + if visible: + assert ax.get_legend() is not None + _check_text_labels(ax.get_legend().get_texts(), labels) + else: + assert ax.get_legend() is None + + +def _check_legend_marker(ax, expected_markers=None, visible=True): + """ + Check ax has expected legend markers + + Parameters + ---------- + ax : matplotlib Axes object + expected_markers : list-like + expected legend markers + visible : bool + expected legend visibility. labels are checked only when visible is + True + """ + if visible and (expected_markers is None): + raise ValueError("Markers must be specified when visible is True") + if visible: + handles, _ = ax.get_legend_handles_labels() + markers = [handle.get_marker() for handle in handles] + assert markers == expected_markers + else: + assert ax.get_legend() is None + + +def _check_data(xp, rs): + """ + Check each axes has identical lines + + Parameters + ---------- + xp : matplotlib Axes object + rs : matplotlib Axes object + """ + import matplotlib.pyplot as plt + + xp_lines = xp.get_lines() + rs_lines = rs.get_lines() + + assert len(xp_lines) == len(rs_lines) + for xpl, rsl in zip(xp_lines, rs_lines): + xpdata = xpl.get_xydata() + rsdata = rsl.get_xydata() + tm.assert_almost_equal(xpdata, rsdata) + + plt.close("all") + + +def _check_visible(collections, visible=True): + """ + Check each artist is visible or not + + Parameters + ---------- + collections : matplotlib Artist or its list-like + target Artist or its list or collection + visible : bool + expected visibility + """ + from matplotlib.collections import Collection + + if not isinstance(collections, Collection) and not is_list_like(collections): + collections = [collections] + + for patch in collections: + assert patch.get_visible() == visible + + +def _check_patches_all_filled(axes: Axes | Sequence[Axes], filled: bool = True) -> None: + """ + Check for each artist whether it is filled or not + + Parameters + ---------- + axes : matplotlib Axes object, or its list-like + filled : bool + expected filling + """ + + axes = _flatten_visible(axes) + for ax in axes: + for patch in ax.patches: + assert patch.fill == filled + + +def _get_colors_mapped(series, colors): + unique = series.unique() + # unique and colors length can be differed + # depending on slice value + mapped = dict(zip(unique, colors)) + return [mapped[v] for v in series.values] + + +def _check_colors(collections, linecolors=None, facecolors=None, mapping=None): + """ + Check each artist has expected line colors and face colors + + Parameters + ---------- + collections : list-like + list or collection of target artist + linecolors : list-like which has the same length as collections + list of expected line colors + facecolors : list-like which has the same length as collections + list of expected face colors + mapping : Series + Series used for color grouping key + used for andrew_curves, parallel_coordinates, radviz test + """ + from matplotlib import colors + from matplotlib.collections import ( + Collection, + LineCollection, + PolyCollection, + ) + from matplotlib.lines import Line2D + + conv = colors.ColorConverter + if linecolors is not None: + if mapping is not None: + linecolors = _get_colors_mapped(mapping, linecolors) + linecolors = linecolors[: len(collections)] + + assert len(collections) == len(linecolors) + for patch, color in zip(collections, linecolors): + if isinstance(patch, Line2D): + result = patch.get_color() + # Line2D may contains string color expression + result = conv.to_rgba(result) + elif isinstance(patch, (PolyCollection, LineCollection)): + result = tuple(patch.get_edgecolor()[0]) + else: + result = patch.get_edgecolor() + + expected = conv.to_rgba(color) + assert result == expected + + if facecolors is not None: + if mapping is not None: + facecolors = _get_colors_mapped(mapping, facecolors) + facecolors = facecolors[: len(collections)] + + assert len(collections) == len(facecolors) + for patch, color in zip(collections, facecolors): + if isinstance(patch, Collection): + # returned as list of np.array + result = patch.get_facecolor()[0] + else: + result = patch.get_facecolor() + + if isinstance(result, np.ndarray): + result = tuple(result) + + expected = conv.to_rgba(color) + assert result == expected + + +def _check_text_labels(texts, expected): + """ + Check each text has expected labels + + Parameters + ---------- + texts : matplotlib Text object, or its list-like + target text, or its list + expected : str or list-like which has the same length as texts + expected text label, or its list + """ + if not is_list_like(texts): + assert texts.get_text() == expected + else: + labels = [t.get_text() for t in texts] + assert len(labels) == len(expected) + for label, e in zip(labels, expected): + assert label == e + + +def _check_ticks_props(axes, xlabelsize=None, xrot=None, ylabelsize=None, yrot=None): + """ + Check each axes has expected tick properties + + Parameters + ---------- + axes : matplotlib Axes object, or its list-like + xlabelsize : number + expected xticks font size + xrot : number + expected xticks rotation + ylabelsize : number + expected yticks font size + yrot : number + expected yticks rotation + """ + from matplotlib.ticker import NullFormatter + + axes = _flatten_visible(axes) + for ax in axes: + if xlabelsize is not None or xrot is not None: + if isinstance(ax.xaxis.get_minor_formatter(), NullFormatter): + # If minor ticks has NullFormatter, rot / fontsize are not + # retained + labels = ax.get_xticklabels() + else: + labels = ax.get_xticklabels() + ax.get_xticklabels(minor=True) + + for label in labels: + if xlabelsize is not None: + tm.assert_almost_equal(label.get_fontsize(), xlabelsize) + if xrot is not None: + tm.assert_almost_equal(label.get_rotation(), xrot) + + if ylabelsize is not None or yrot is not None: + if isinstance(ax.yaxis.get_minor_formatter(), NullFormatter): + labels = ax.get_yticklabels() + else: + labels = ax.get_yticklabels() + ax.get_yticklabels(minor=True) + + for label in labels: + if ylabelsize is not None: + tm.assert_almost_equal(label.get_fontsize(), ylabelsize) + if yrot is not None: + tm.assert_almost_equal(label.get_rotation(), yrot) + + +def _check_ax_scales(axes, xaxis="linear", yaxis="linear"): + """ + Check each axes has expected scales + + Parameters + ---------- + axes : matplotlib Axes object, or its list-like + xaxis : {'linear', 'log'} + expected xaxis scale + yaxis : {'linear', 'log'} + expected yaxis scale + """ + axes = _flatten_visible(axes) + for ax in axes: + assert ax.xaxis.get_scale() == xaxis + assert ax.yaxis.get_scale() == yaxis + + +def _check_axes_shape(axes, axes_num=None, layout=None, figsize=None): + """ + Check expected number of axes is drawn in expected layout + + Parameters + ---------- + axes : matplotlib Axes object, or its list-like + axes_num : number + expected number of axes. Unnecessary axes should be set to + invisible. + layout : tuple + expected layout, (expected number of rows , columns) + figsize : tuple + expected figsize. default is matplotlib default + """ + from pandas.plotting._matplotlib.tools import flatten_axes + + if figsize is None: + figsize = (6.4, 4.8) + visible_axes = _flatten_visible(axes) + + if axes_num is not None: + assert len(visible_axes) == axes_num + for ax in visible_axes: + # check something drawn on visible axes + assert len(ax.get_children()) > 0 + + if layout is not None: + x_set = set() + y_set = set() + for ax in flatten_axes(axes): + # check axes coordinates to estimate layout + points = ax.get_position().get_points() + x_set.add(points[0][0]) + y_set.add(points[0][1]) + result = (len(y_set), len(x_set)) + assert result == layout + + tm.assert_numpy_array_equal( + visible_axes[0].figure.get_size_inches(), + np.array(figsize, dtype=np.float64), + ) + + +def _flatten_visible(axes: Axes | Sequence[Axes]) -> Sequence[Axes]: + """ + Flatten axes, and filter only visible + + Parameters + ---------- + axes : matplotlib Axes object, or its list-like + + """ + from pandas.plotting._matplotlib.tools import flatten_axes + + axes_ndarray = flatten_axes(axes) + axes = [ax for ax in axes_ndarray if ax.get_visible()] + return axes + + +def _check_has_errorbars(axes, xerr=0, yerr=0): + """ + Check axes has expected number of errorbars + + Parameters + ---------- + axes : matplotlib Axes object, or its list-like + xerr : number + expected number of x errorbar + yerr : number + expected number of y errorbar + """ + axes = _flatten_visible(axes) + for ax in axes: + containers = ax.containers + xerr_count = 0 + yerr_count = 0 + for c in containers: + has_xerr = getattr(c, "has_xerr", False) + has_yerr = getattr(c, "has_yerr", False) + if has_xerr: + xerr_count += 1 + if has_yerr: + yerr_count += 1 + assert xerr == xerr_count + assert yerr == yerr_count + + +def _check_box_return_type( + returned, return_type, expected_keys=None, check_ax_title=True +): + """ + Check box returned type is correct + + Parameters + ---------- + returned : object to be tested, returned from boxplot + return_type : str + return_type passed to boxplot + expected_keys : list-like, optional + group labels in subplot case. If not passed, + the function checks assuming boxplot uses single ax + check_ax_title : bool + Whether to check the ax.title is the same as expected_key + Intended to be checked by calling from ``boxplot``. + Normal ``plot`` doesn't attach ``ax.title``, it must be disabled. + """ + from matplotlib.axes import Axes + + types = {"dict": dict, "axes": Axes, "both": tuple} + if expected_keys is None: + # should be fixed when the returning default is changed + if return_type is None: + return_type = "dict" + + assert isinstance(returned, types[return_type]) + if return_type == "both": + assert isinstance(returned.ax, Axes) + assert isinstance(returned.lines, dict) + else: + # should be fixed when the returning default is changed + if return_type is None: + for r in _flatten_visible(returned): + assert isinstance(r, Axes) + return + + assert isinstance(returned, Series) + + assert sorted(returned.keys()) == sorted(expected_keys) + for key, value in returned.items(): + assert isinstance(value, types[return_type]) + # check returned dict has correct mapping + if return_type == "axes": + if check_ax_title: + assert value.get_title() == key + elif return_type == "both": + if check_ax_title: + assert value.ax.get_title() == key + assert isinstance(value.ax, Axes) + assert isinstance(value.lines, dict) + elif return_type == "dict": + line = value["medians"][0] + axes = line.axes + if check_ax_title: + assert axes.get_title() == key + else: + raise AssertionError + + +def _check_grid_settings(obj, kinds, kws={}): + # Make sure plot defaults to rcParams['axes.grid'] setting, GH 9792 + + import matplotlib as mpl + + def is_grid_on(): + xticks = mpl.pyplot.gca().xaxis.get_major_ticks() + yticks = mpl.pyplot.gca().yaxis.get_major_ticks() + xoff = all(not g.gridline.get_visible() for g in xticks) + yoff = all(not g.gridline.get_visible() for g in yticks) + + return not (xoff and yoff) + + spndx = 1 + for kind in kinds: + mpl.pyplot.subplot(1, 4 * len(kinds), spndx) + spndx += 1 + mpl.rc("axes", grid=False) + obj.plot(kind=kind, **kws) + assert not is_grid_on() + mpl.pyplot.clf() + + mpl.pyplot.subplot(1, 4 * len(kinds), spndx) + spndx += 1 + mpl.rc("axes", grid=True) + obj.plot(kind=kind, grid=False, **kws) + assert not is_grid_on() + mpl.pyplot.clf() + + if kind not in ["pie", "hexbin", "scatter"]: + mpl.pyplot.subplot(1, 4 * len(kinds), spndx) + spndx += 1 + mpl.rc("axes", grid=True) + obj.plot(kind=kind, **kws) + assert is_grid_on() + mpl.pyplot.clf() + + mpl.pyplot.subplot(1, 4 * len(kinds), spndx) + spndx += 1 + mpl.rc("axes", grid=False) + obj.plot(kind=kind, grid=True, **kws) + assert is_grid_on() + mpl.pyplot.clf() + + +def _unpack_cycler(rcParams, field="color"): + """ + Auxiliary function for correctly unpacking cycler after MPL >= 1.5 + """ + return [v[field] for v in rcParams["axes.prop_cycle"]] + + +def get_x_axis(ax): + return ax._shared_axes["x"] + + +def get_y_axis(ax): + return ax._shared_axes["y"] + + +def _check_plot_works(f, default_axes=False, **kwargs): + """ + Create plot and ensure that plot return object is valid. + + Parameters + ---------- + f : func + Plotting function. + default_axes : bool, optional + If False (default): + - If `ax` not in `kwargs`, then create subplot(211) and plot there + - Create new subplot(212) and plot there as well + - Mind special corner case for bootstrap_plot (see `_gen_two_subplots`) + If True: + - Simply run plotting function with kwargs provided + - All required axes instances will be created automatically + - It is recommended to use it when the plotting function + creates multiple axes itself. It helps avoid warnings like + 'UserWarning: To output multiple subplots, + the figure containing the passed axes is being cleared' + **kwargs + Keyword arguments passed to the plotting function. + + Returns + ------- + Plot object returned by the last plotting. + """ + import matplotlib.pyplot as plt + + if default_axes: + gen_plots = _gen_default_plot + else: + gen_plots = _gen_two_subplots + + ret = None + try: + fig = kwargs.get("figure", plt.gcf()) + plt.clf() + + for ret in gen_plots(f, fig, **kwargs): + tm.assert_is_valid_plot_return_object(ret) + + finally: + plt.close(fig) + + return ret + + +def _gen_default_plot(f, fig, **kwargs): + """ + Create plot in a default way. + """ + yield f(**kwargs) + + +def _gen_two_subplots(f, fig, **kwargs): + """ + Create plot on two subplots forcefully created. + """ + if "ax" not in kwargs: + fig.add_subplot(211) + yield f(**kwargs) + + if f is pd.plotting.bootstrap_plot: + assert "ax" not in kwargs + else: + kwargs["ax"] = fig.add_subplot(212) + yield f(**kwargs) diff --git a/shared/package-files/ea/ea8071769b0a63c6c7dfa9d09d13622c1f42d5b36b8bc6f63c7cfd22c508afec/blob b/shared/package-files/ea/ea8071769b0a63c6c7dfa9d09d13622c1f42d5b36b8bc6f63c7cfd22c508afec/blob new file mode 100644 index 0000000000000000000000000000000000000000..772752ef536f4a3b47fb6f9b5d250c5d7f198d85 --- /dev/null +++ b/shared/package-files/ea/ea8071769b0a63c6c7dfa9d09d13622c1f42d5b36b8bc6f63c7cfd22c508afec/blob @@ -0,0 +1,18 @@ +# This file is not meant for public use and will be removed in SciPy v2.0.0. +# Use the `scipy.interpolate` namespace for importing the functions +# included below. + +from scipy._lib.deprecation import _sub_module_deprecation + + +__all__ = ["Rbf"] # noqa: F822 + + +def __dir__(): + return __all__ + + +def __getattr__(name): + return _sub_module_deprecation(sub_package="interpolate", module="rbf", + private_modules=["_rbf"], all=__all__, + attribute=name) diff --git a/shared/package-files/ea/ea81d663559ddf0085ed0c7eb895858a2d0f048e6382a46f549d268e0890c274/blob b/shared/package-files/ea/ea81d663559ddf0085ed0c7eb895858a2d0f048e6382a46f549d268e0890c274/blob new file mode 100644 index 0000000000000000000000000000000000000000..1f8822c072f1f7a7f31a06157ab3a09712ae494e --- /dev/null +++ b/shared/package-files/ea/ea81d663559ddf0085ed0c7eb895858a2d0f048e6382a46f549d268e0890c274/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor elu_backward(const at::Tensor & grad_output, const at::Scalar & alpha, const at::Scalar & scale, const at::Scalar & input_scale, bool is_result, const at::Tensor & self_or_result); +TORCH_API at::Tensor & elu_backward_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Scalar & alpha, const at::Scalar & scale, const at::Scalar & input_scale, bool is_result, const at::Tensor & self_or_result); +TORCH_API at::Tensor & elu_backward_outf(const at::Tensor & grad_output, const at::Scalar & alpha, const at::Scalar & scale, const at::Scalar & input_scale, bool is_result, const at::Tensor & self_or_result, at::Tensor & grad_input); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/ea/ea82d52789edd4b2944c6d65beb2951e9f260d211d98a578005b3a64aa92a3fb/blob b/shared/package-files/ea/ea82d52789edd4b2944c6d65beb2951e9f260d211d98a578005b3a64aa92a3fb/blob new file mode 100644 index 0000000000000000000000000000000000000000..f0ddd8e2d40a2e9fea6d61fc10ea69b12e9b03b7 --- /dev/null +++ b/shared/package-files/ea/ea82d52789edd4b2944c6d65beb2951e9f260d211d98a578005b3a64aa92a3fb/blob @@ -0,0 +1,13 @@ +"""TSI{B,C,D,J,P,S,V} are private tables used by Microsoft Visual TrueType (VTT) +tool to store its table source data. + +TSIS contains the source text for the ``GSUB`` table. + +See also https://learn.microsoft.com/en-us/typography/tools/vtt/tsi-tables +""" + +from .T_S_I_V_ import table_T_S_I_V_ + + +class table_T_S_I_S_(table_T_S_I_V_): + pass diff --git a/shared/package-files/ea/ea8734e0cdc31f2ff0ba3f634836587074a25e7de30dccab48729f3634f3041b/blob b/shared/package-files/ea/ea8734e0cdc31f2ff0ba3f634836587074a25e7de30dccab48729f3634f3041b/blob new file mode 100644 index 0000000000000000000000000000000000000000..31d3229215072b768b61fc8a9c9c0573d327056d --- /dev/null +++ b/shared/package-files/ea/ea8734e0cdc31f2ff0ba3f634836587074a25e7de30dccab48729f3634f3041b/blob @@ -0,0 +1,2021 @@ +error(0.00677714769454514001) D0 +error(0.005018021900114244538) D0 D1 +error(0.02591677776222675589) D0 D4 +error(0.001363790157889865386) D0 D4 ^ D5 +error(0.004381357478640280842) D0 D7 +error(0.002560183846662592629) D0 D7 ^ D5 +error(0.005415727615892283742) D0 D8 +error(0.00512180232199106137) D0 D8 ^ D5 +error(0.005605430011728217143) D1 D2 +error(0.003311782549502318741) D1 D2 ^ D10 +error(0.01565295714834718729) D1 D7 +error(0.002923570928361780581) D1 D7 ^ D9 +error(0.002344199612268013568) D1 D7 ^ D9 D10 +error(0.0007740627705062746175) D1 D7 ^ D10 +error(0.001793139478613848224) D1 D8 +error(0.0002240608742751306909) D1 D8 ^ D9 +error(0.003080055354449755083) D1 D8 ^ D10 +error(0.001045759700308869326) D1 D11 +error(0.001038971893103425278) D1 D11 ^ D10 +error(0.01276824661387635472) D1 L0 +error(0.006296705434024943253) D1 L0 ^ D9 +error(0.01299065739204021547) D2 +error(0.008813411552329841747) D2 D3 +error(0.02834728497270999972) D2 D8 +error(0.003271423685269771349) D2 D8 ^ D10 +error(0.009849271348206269094) D2 D11 +error(0.004100767575947508389) D2 D11 ^ D10 +error(0.02172056388956838946) D3 D11 +error(0.006096522976296760502) D3 L0 +error(0.005000000000000000104) D4 +error(0.01205841601400119319) D4 D7 +error(0.01522341103814952266) D4 D7 ^ D5 +error(0.02871156280340753097) D4 D12 +error(0.00780815846828183599) D4 D12 ^ D13 +error(0.007153231238404039044) D4 D15 +error(0.005375979670614491369) D4 D15 ^ D5 +error(0.005058268074058409891) D4 D15 ^ D13 +error(0.00394717350721251678) D4 D15 ^ D13 ^ D5 +error(0.003465850790784312518) D4 D16 +error(0.0005143833321292933447) D4 D16 ^ D5 +error(0.002876529674571028442) D4 D16 ^ D5 D13 +error(0.0007942128998157770969) D4 D16 ^ D13 +error(0.005000000000000000104) D4 ^ D5 +error(0.005750209958349530859) D5 D13 ^ D4 +error(0.02615897451123899708) D5 +error(0.005000000000000000104) D5 D6 +error(5.931652555679689314e-05) D5 D6 ^ D7 D8 +error(0.0007828344655542978509) D5 D6 ^ D7 D16 +error(0.0106148474475429612) D5 D6 ^ D8 +error(0.00494375633750265657) D5 D6 ^ D8 D16 +error(0.003393827644446323864) D5 D6 ^ D16 +error(0.0006534034225632598739) D5 D6 ^ D16 ^ D4 +error(0.0238012686489314923) D5 D10 +error(0.01261579689773421019) D5 D10 ^ D7 D8 +error(0.04396706115112597457) D5 D13 +error(0.003148640825778311041) D5 D13 ^ D15 D16 +error(0.004457305918183190885) D5 D13 ^ D16 +error(0.002592037799150079605) D5 D17 +error(0.002361773227960759381) D5 D17 ^ D7 D15 +error(0.0001938228754241966094) D5 D17 ^ D7 D16 +error(1.621830662966448254e-05) D5 D17 ^ D15 D16 +error(0.003802769585386780397) D5 D18 +error(0.001746806706075307867) D5 D18 ^ D7 D8 +error(0.0005311637132062851235) D5 D18 ^ D7 D15 +error(0.001817391512378880875) D5 D18 ^ D7 D16 +error(0.0006222692603779620855) D5 D18 ^ D8 D16 +error(0.002045304987410750779) D5 D18 ^ D15 D16 +error(0.005301905799293911425) D5 ^ D0 +error(0.005652806609562956337) D5 ^ D8 +error(0.00857253409893688964) D7 D15 ^ D5 +error(0.01726089173581500658) D6 +error(0.006606796944896995566) D6 D13 +error(0.000704960016748328879) D6 D13 ^ D4 +error(0.006287543697248259601) D6 D13 ^ D16 +error(0.000449692248015587197) D6 D13 ^ D16 ^ D4 +error(0.02663509319854607052) D6 D14 +error(0.01148756595076530843) D6 D14 ^ D16 +error(0.002334482549926380178) D6 D18 +error(0.0003978826477665259754) D6 D18 ^ D7 D8 +error(0.0002737165648862705924) D6 D18 ^ D7 D16 +error(0.002068033714909272777) D6 D18 ^ D8 D16 +error(0.02536489522203171434) D6 ^ D8 +error(0.002443183151416508051) D6 ^ D16 ^ D8 +error(0.008159475304167536011) D7 D8 +error(0.003811007427231726495) D7 D8 ^ D5 +error(0.0006278589888549294907) D7 D8 ^ D9 +error(0.002965481999156325665) D7 D8 ^ D10 +error(0.001492505153860175342) D7 D8 ^ D10 D18 +error(0.0004924974353153731017) D7 D8 ^ D18 +error(0.02705246472289643891) D7 D15 +error(0.003366488634455377504) D7 D15 ^ D17 D18 +error(0.003526255318013517704) D7 D16 +error(0.0001435589488185642817) D7 D16 ^ D17 D18 +error(0.001347669444277145795) D7 D19 +error(0.0002232335845856165768) D7 D19 ^ D10 +error(0.001354163541712518617) D7 D19 ^ D10 D18 +error(0.0002151159521495095081) D7 D19 ^ D18 +error(0.01000000000000000021) D7 L0 +error(0.007999329547426728415) D7 L0 ^ D9 +error(0.003908352668093685763) D9 D17 ^ D7 L0 +error(0.01000000000000000021) D8 +error(0.02061198899801907833) D8 D11 +error(0.01983933725237827309) D8 D11 ^ D10 +error(0.03381280047858732651) D8 D16 +error(0.002570324767123230523) D8 D16 ^ D18 +error(0.0108162808865761486) D8 D19 +error(0.002409659071988749356) D8 D19 ^ D10 +error(0.00556538258508117601) D8 D19 ^ D18 +error(0.0008915217994390704347) D8 D19 ^ D18 ^ D10 +error(0.03747785869971773792) D9 +error(0.009813055774794819663) D9 D10 +error(0.00290330184072507512) D9 D10 ^ D1 L0 +error(0.01246075186430113668) D9 D10 ^ D7 L0 +error(0.02813785258089051763) D9 D17 +error(0.03517767880437629169) D10 +error(0.002884869361548767028) D10 D17 +error(0.002580466891419589195) D10 D17 ^ D7 L0 +error(0.0001650804436761054155) D10 D17 ^ D19 L0 +error(0.0002393782181347870049) D10 D17 ^ D19 L0 ^ D7 L0 +error(0.03294067098300872132) D10 D18 +error(0.001943074169913701745) D10 D18 ^ D7 L0 +error(0.001599991943626082698) D10 D18 ^ D19 L0 +error(0.001692851175938386897) D10 ^ D2 +error(0.003279400572434924138) D10 ^ D8 +error(0.01493172994203846062) D10 ^ D11 L0 +error(0.0004199660566767523997) D10 ^ D11 L0 ^ D1 L0 ^ D9 +error(0.001908195929330935891) D10 ^ D19 L0 +error(0.00279910853068579546) D11 D19 ^ D10 +error(0.02328219348452528065) D11 D19 +error(0.01015397607361435105) D11 L0 +error(0.0005577016791697227052) D11 L0 ^ D1 L0 ^ D9 +error(0.005000000000000000104) D12 +error(0.01758233121581995531) D12 D15 +error(0.018630937368897732) D12 D15 ^ D13 +error(0.02871156280340753097) D12 D20 +error(0.00780815846828183599) D12 D20 ^ D21 +error(0.007153231238404039044) D12 D23 +error(0.005375979670614491369) D12 D23 ^ D13 +error(0.005058268074058409891) D12 D23 ^ D21 +error(0.00394717350721251678) D12 D23 ^ D21 ^ D13 +error(0.003465850790784312518) D12 D24 +error(0.0005143833321292933447) D12 D24 ^ D13 +error(0.002876529674571028442) D12 D24 ^ D13 D21 +error(0.0007942128998157770969) D12 D24 ^ D21 +error(0.005000000000000000104) D12 ^ D13 +error(0.005750209958349530859) D13 D21 ^ D12 +error(0.01000000000000000021) D13 +error(0.007086946948513330596) D13 D14 +error(0.0006238927402069643219) D13 D14 ^ D12 +error(0.0004105847966655892627) D13 D14 ^ D15 D16 +error(0.0007828344655542978509) D13 D14 ^ D15 D24 +error(0.01581328579132421433) D13 D14 ^ D16 +error(0.00494375633750265657) D13 D14 ^ D16 D24 +error(0.003393827644446323864) D13 D14 ^ D24 +error(0.0006534034225632598739) D13 D14 ^ D24 ^ D12 +error(0.02062339933464504491) D13 D18 +error(0.01288188014151966237) D13 D18 ^ D15 D16 +error(0.04396706115112597457) D13 D21 +error(0.003148640825778311041) D13 D21 ^ D23 D24 +error(0.004457305918183190885) D13 D21 ^ D24 +error(0.002592037799150079605) D13 D25 +error(0.002361773227960759381) D13 D25 ^ D15 D23 +error(0.0001938228754241966094) D13 D25 ^ D15 D24 +error(1.621830662966448254e-05) D13 D25 ^ D23 D24 +error(0.003802769585386780397) D13 D26 +error(0.001746806706075307867) D13 D26 ^ D15 D16 +error(0.0005311637132062851235) D13 D26 ^ D15 D23 +error(0.001817391512378880875) D13 D26 ^ D15 D24 +error(0.0006222692603779620855) D13 D26 ^ D16 D24 +error(0.002045304987410750779) D13 D26 ^ D23 D24 +error(0.00857253409893688964) D15 D23 ^ D13 +error(0.005000000000000000104) D14 +error(0.006606796944896995566) D14 D21 +error(0.000704960016748328879) D14 D21 ^ D12 +error(0.006287543697248259601) D14 D21 ^ D24 +error(0.000449692248015587197) D14 D21 ^ D24 ^ D12 +error(0.02663509319854607052) D14 D22 +error(0.01148756595076530843) D14 D22 ^ D24 +error(0.002334482549926380178) D14 D26 +error(0.0003978826477665259754) D14 D26 ^ D15 D16 +error(0.0002737165648862705924) D14 D26 ^ D15 D24 +error(0.002068033714909272777) D14 D26 ^ D16 D24 +error(0.01424208680070905043) D14 ^ D16 +error(0.002443183151416508051) D14 ^ D24 ^ D16 +error(0.008784999497050870881) D15 D16 +error(0.0006857174321991492665) D15 D16 ^ D5 +error(0.0003139585944870919645) D15 D16 ^ D13 +error(0.0004579355063318815591) D15 D16 ^ D18 +error(0.001492505153860175342) D15 D16 ^ D18 D26 +error(0.0004924974353153731017) D15 D16 ^ D26 +error(0.02705246472289643891) D15 D23 +error(0.003366488634455377504) D15 D23 ^ D25 D26 +error(0.003526255318013517704) D15 D24 +error(0.0001435589488185642817) D15 D24 ^ D25 D26 +error(0.001347669444277145795) D15 D27 +error(0.0002232335845856165768) D15 D27 ^ D18 +error(0.001354163541712518617) D15 D27 ^ D18 D26 +error(0.0002151159521495095081) D15 D27 ^ D26 +error(0.01000000000000000021) D15 L0 +error(0.008786260643692726455) D15 L0 ^ D17 +error(0.003908352668093685763) D17 D25 ^ D15 L0 +error(0.01000000000000000021) D16 +error(0.02105258409621241916) D16 D19 +error(0.02067786399216172549) D16 D19 ^ D18 +error(0.03381280047858732651) D16 D24 +error(0.002570324767123230523) D16 D24 ^ D26 +error(0.0108162808865761486) D16 D27 +error(0.002409659071988749356) D16 D27 ^ D18 +error(0.00556538258508117601) D16 D27 ^ D26 +error(0.0008915217994390704347) D16 D27 ^ D26 ^ D18 +error(0.005000000000000000104) D17 +error(0.009070665716435149378) D17 D18 +error(0.003740932971020226663) D17 D18 ^ D7 L0 +error(0.01250289484782928472) D17 D18 ^ D15 L0 +error(8.082310329996922739e-05) D17 D18 ^ D19 L0 ^ D7 L0 +error(0.02813785258089051763) D17 D25 +error(0.0003388902238148529386) D17 ^ D5 ^ D7 L0 +error(0.0006832900745178635852) D17 ^ D5 ^ D15 L0 +error(0.001350035395769679913) D17 ^ D15 L0 ^ D7 L0 +error(0.01000000000000000021) D18 +error(0.002884869361548767028) D18 D25 +error(0.002580466891419589195) D18 D25 ^ D15 L0 +error(0.0001650804436761054155) D18 D25 ^ D27 L0 +error(0.0002393782181347870049) D18 D25 ^ D27 L0 ^ D15 L0 +error(0.03294067098300872132) D18 D26 +error(0.001943074169913701745) D18 D26 ^ D15 L0 +error(0.001599991943626082698) D18 D26 ^ D27 L0 +error(0.0001515230753416762089) D18 ^ D6 ^ D8 +error(0.000788341572716253023) D18 ^ D6 ^ D16 +error(0.0008276414227760997729) D18 ^ D16 +error(0.01315587053214196597) D18 ^ D19 L0 +error(0.001908195929330935891) D18 ^ D27 L0 +error(0.00279910853068579546) D19 D27 ^ D18 +error(0.02328219348452528065) D19 D27 +error(0.006831311480691601608) D19 L0 +error(0.005000000000000000104) D20 +error(0.01758233121581995531) D20 D23 +error(0.018630937368897732) D20 D23 ^ D21 +error(0.02871156280340753097) D20 D28 +error(0.00780815846828183599) D20 D28 ^ D29 +error(0.007153231238404039044) D20 D31 +error(0.005375979670614491369) D20 D31 ^ D21 +error(0.005058268074058409891) D20 D31 ^ D29 +error(0.00394717350721251678) D20 D31 ^ D29 ^ D21 +error(0.003465850790784312518) D20 D32 +error(0.0005143833321292933447) D20 D32 ^ D21 +error(0.002876529674571028442) D20 D32 ^ D21 D29 +error(0.0007942128998157770969) D20 D32 ^ D29 +error(0.005000000000000000104) D20 ^ D21 +error(0.005750209958349530859) D21 D29 ^ D20 +error(0.01000000000000000021) D21 +error(0.007086946948513330596) D21 D22 +error(0.0006238927402069643219) D21 D22 ^ D20 +error(0.0004105847966655892627) D21 D22 ^ D23 D24 +error(0.0007828344655542978509) D21 D22 ^ D23 D32 +error(0.01581328579132421433) D21 D22 ^ D24 +error(0.00494375633750265657) D21 D22 ^ D24 D32 +error(0.003393827644446323864) D21 D22 ^ D32 +error(0.0006534034225632598739) D21 D22 ^ D32 ^ D20 +error(0.02062339933464504491) D21 D26 +error(0.01288188014151966237) D21 D26 ^ D23 D24 +error(0.04396706115112597457) D21 D29 +error(0.003148640825778311041) D21 D29 ^ D31 D32 +error(0.004457305918183190885) D21 D29 ^ D32 +error(0.002592037799150079605) D21 D33 +error(0.002361773227960759381) D21 D33 ^ D23 D31 +error(0.0001938228754241966094) D21 D33 ^ D23 D32 +error(1.621830662966448254e-05) D21 D33 ^ D31 D32 +error(0.003802769585386780397) D21 D34 +error(0.001746806706075307867) D21 D34 ^ D23 D24 +error(0.0005311637132062851235) D21 D34 ^ D23 D31 +error(0.001817391512378880875) D21 D34 ^ D23 D32 +error(0.0006222692603779620855) D21 D34 ^ D24 D32 +error(0.002045304987410750779) D21 D34 ^ D31 D32 +error(0.00857253409893688964) D23 D31 ^ D21 +error(0.005000000000000000104) D22 +error(0.006606796944896995566) D22 D29 +error(0.000704960016748328879) D22 D29 ^ D20 +error(0.006287543697248259601) D22 D29 ^ D32 +error(0.000449692248015587197) D22 D29 ^ D32 ^ D20 +error(0.02663509319854607052) D22 D30 +error(0.01148756595076530843) D22 D30 ^ D32 +error(0.002334482549926380178) D22 D34 +error(0.0003978826477665259754) D22 D34 ^ D23 D24 +error(0.0002737165648862705924) D22 D34 ^ D23 D32 +error(0.002068033714909272777) D22 D34 ^ D24 D32 +error(0.01424208680070905043) D22 ^ D24 +error(0.002443183151416508051) D22 ^ D32 ^ D24 +error(0.008784999497050870881) D23 D24 +error(0.0006857174321991492665) D23 D24 ^ D13 +error(0.0003139585944870919645) D23 D24 ^ D21 +error(0.0004579355063318815591) D23 D24 ^ D26 +error(0.001492505153860175342) D23 D24 ^ D26 D34 +error(0.0004924974353153731017) D23 D24 ^ D34 +error(0.02705246472289643891) D23 D31 +error(0.003366488634455377504) D23 D31 ^ D33 D34 +error(0.003526255318013517704) D23 D32 +error(0.0001435589488185642817) D23 D32 ^ D33 D34 +error(0.001347669444277145795) D23 D35 +error(0.0002232335845856165768) D23 D35 ^ D26 +error(0.001354163541712518617) D23 D35 ^ D26 D34 +error(0.0002151159521495095081) D23 D35 ^ D34 +error(0.01000000000000000021) D23 L0 +error(0.008786260643692726455) D23 L0 ^ D25 +error(0.003908352668093685763) D25 D33 ^ D23 L0 +error(0.01000000000000000021) D24 +error(0.02105258409621241916) D24 D27 +error(0.02067786399216172549) D24 D27 ^ D26 +error(0.03381280047858732651) D24 D32 +error(0.002570324767123230523) D24 D32 ^ D34 +error(0.0108162808865761486) D24 D35 +error(0.002409659071988749356) D24 D35 ^ D26 +error(0.00556538258508117601) D24 D35 ^ D34 +error(0.0008915217994390704347) D24 D35 ^ D34 ^ D26 +error(0.005000000000000000104) D25 +error(0.009070665716435149378) D25 D26 +error(0.003740932971020226663) D25 D26 ^ D15 L0 +error(0.01250289484782928472) D25 D26 ^ D23 L0 +error(8.082310329996922739e-05) D25 D26 ^ D27 L0 ^ D15 L0 +error(0.02813785258089051763) D25 D33 +error(0.0003388902238148529386) D25 ^ D13 ^ D15 L0 +error(0.0006832900745178635852) D25 ^ D13 ^ D23 L0 +error(0.001350035395769679913) D25 ^ D23 L0 ^ D15 L0 +error(0.01000000000000000021) D26 +error(0.002884869361548767028) D26 D33 +error(0.002580466891419589195) D26 D33 ^ D23 L0 +error(0.0001650804436761054155) D26 D33 ^ D35 L0 +error(0.0002393782181347870049) D26 D33 ^ D35 L0 ^ D23 L0 +error(0.03294067098300872132) D26 D34 +error(0.001943074169913701745) D26 D34 ^ D23 L0 +error(0.001599991943626082698) D26 D34 ^ D35 L0 +error(0.0001515230753416762089) D26 ^ D14 ^ D16 +error(0.000788341572716253023) D26 ^ D14 ^ D24 +error(0.0008276414227760997729) D26 ^ D24 +error(0.01315587053214196597) D26 ^ D27 L0 +error(0.001908195929330935891) D26 ^ D35 L0 +error(0.00279910853068579546) D27 D35 ^ D26 +error(0.02328219348452528065) D27 D35 +error(0.006831311480691601608) D27 L0 +error(0.005000000000000000104) D28 +error(0.01758233121581995531) D28 D31 +error(0.018630937368897732) D28 D31 ^ D29 +error(0.02871156280340753097) D28 D36 +error(0.00780815846828183599) D28 D36 ^ D37 +error(0.007153231238404039044) D28 D39 +error(0.005375979670614491369) D28 D39 ^ D29 +error(0.005058268074058409891) D28 D39 ^ D37 +error(0.00394717350721251678) D28 D39 ^ D37 ^ D29 +error(0.003465850790784312518) D28 D40 +error(0.0005143833321292933447) D28 D40 ^ D29 +error(0.002876529674571028442) D28 D40 ^ D29 D37 +error(0.0007942128998157770969) D28 D40 ^ D37 +error(0.005000000000000000104) D28 ^ D29 +error(0.005750209958349530859) D29 D37 ^ D28 +error(0.01000000000000000021) D29 +error(0.007086946948513330596) D29 D30 +error(0.0006238927402069643219) D29 D30 ^ D28 +error(0.0004105847966655892627) D29 D30 ^ D31 D32 +error(0.0007828344655542978509) D29 D30 ^ D31 D40 +error(0.01581328579132421433) D29 D30 ^ D32 +error(0.00494375633750265657) D29 D30 ^ D32 D40 +error(0.003393827644446323864) D29 D30 ^ D40 +error(0.0006534034225632598739) D29 D30 ^ D40 ^ D28 +error(0.02062339933464504491) D29 D34 +error(0.01288188014151966237) D29 D34 ^ D31 D32 +error(0.04396706115112597457) D29 D37 +error(0.003148640825778311041) D29 D37 ^ D39 D40 +error(0.004457305918183190885) D29 D37 ^ D40 +error(0.002592037799150079605) D29 D41 +error(0.002361773227960759381) D29 D41 ^ D31 D39 +error(0.0001938228754241966094) D29 D41 ^ D31 D40 +error(1.621830662966448254e-05) D29 D41 ^ D39 D40 +error(0.003802769585386780397) D29 D42 +error(0.001746806706075307867) D29 D42 ^ D31 D32 +error(0.0005311637132062851235) D29 D42 ^ D31 D39 +error(0.001817391512378880875) D29 D42 ^ D31 D40 +error(0.0006222692603779620855) D29 D42 ^ D32 D40 +error(0.002045304987410750779) D29 D42 ^ D39 D40 +error(0.00857253409893688964) D31 D39 ^ D29 +error(0.005000000000000000104) D30 +error(0.006606796944896995566) D30 D37 +error(0.000704960016748328879) D30 D37 ^ D28 +error(0.006287543697248259601) D30 D37 ^ D40 +error(0.000449692248015587197) D30 D37 ^ D40 ^ D28 +error(0.02663509319854607052) D30 D38 +error(0.01148756595076530843) D30 D38 ^ D40 +error(0.002334482549926380178) D30 D42 +error(0.0003978826477665259754) D30 D42 ^ D31 D32 +error(0.0002737165648862705924) D30 D42 ^ D31 D40 +error(0.002068033714909272777) D30 D42 ^ D32 D40 +error(0.01424208680070905043) D30 ^ D32 +error(0.002443183151416508051) D30 ^ D40 ^ D32 +error(0.008784999497050870881) D31 D32 +error(0.0006857174321991492665) D31 D32 ^ D21 +error(0.0003139585944870919645) D31 D32 ^ D29 +error(0.0004579355063318815591) D31 D32 ^ D34 +error(0.001492505153860175342) D31 D32 ^ D34 D42 +error(0.0004924974353153731017) D31 D32 ^ D42 +error(0.02705246472289643891) D31 D39 +error(0.003366488634455377504) D31 D39 ^ D41 D42 +error(0.003526255318013517704) D31 D40 +error(0.0001435589488185642817) D31 D40 ^ D41 D42 +error(0.001347669444277145795) D31 D43 +error(0.0002232335845856165768) D31 D43 ^ D34 +error(0.001354163541712518617) D31 D43 ^ D34 D42 +error(0.0002151159521495095081) D31 D43 ^ D42 +error(0.01000000000000000021) D31 L0 +error(0.008786260643692726455) D31 L0 ^ D33 +error(0.003908352668093685763) D33 D41 ^ D31 L0 +error(0.01000000000000000021) D32 +error(0.02105258409621241916) D32 D35 +error(0.02067786399216172549) D32 D35 ^ D34 +error(0.03381280047858732651) D32 D40 +error(0.002570324767123230523) D32 D40 ^ D42 +error(0.0108162808865761486) D32 D43 +error(0.002409659071988749356) D32 D43 ^ D34 +error(0.00556538258508117601) D32 D43 ^ D42 +error(0.0008915217994390704347) D32 D43 ^ D42 ^ D34 +error(0.005000000000000000104) D33 +error(0.009070665716435149378) D33 D34 +error(0.003740932971020226663) D33 D34 ^ D23 L0 +error(0.01250289484782928472) D33 D34 ^ D31 L0 +error(8.082310329996922739e-05) D33 D34 ^ D35 L0 ^ D23 L0 +error(0.02813785258089051763) D33 D41 +error(0.0003388902238148529386) D33 ^ D21 ^ D23 L0 +error(0.0006832900745178635852) D33 ^ D21 ^ D31 L0 +error(0.001350035395769679913) D33 ^ D31 L0 ^ D23 L0 +error(0.01000000000000000021) D34 +error(0.002884869361548767028) D34 D41 +error(0.002580466891419589195) D34 D41 ^ D31 L0 +error(0.0001650804436761054155) D34 D41 ^ D43 L0 +error(0.0002393782181347870049) D34 D41 ^ D43 L0 ^ D31 L0 +error(0.03294067098300872132) D34 D42 +error(0.001943074169913701745) D34 D42 ^ D31 L0 +error(0.001599991943626082698) D34 D42 ^ D43 L0 +error(0.0001515230753416762089) D34 ^ D22 ^ D24 +error(0.000788341572716253023) D34 ^ D22 ^ D32 +error(0.0008276414227760997729) D34 ^ D32 +error(0.01315587053214196597) D34 ^ D35 L0 +error(0.001908195929330935891) D34 ^ D43 L0 +error(0.00279910853068579546) D35 D43 ^ D34 +error(0.02328219348452528065) D35 D43 +error(0.006831311480691601608) D35 L0 +error(0.005000000000000000104) D36 +error(0.01758233121581995531) D36 D39 +error(0.018630937368897732) D36 D39 ^ D37 +error(0.02871156280340753097) D36 D44 +error(0.00780815846828183599) D36 D44 ^ D45 +error(0.007153231238404039044) D36 D47 +error(0.005375979670614491369) D36 D47 ^ D37 +error(0.005058268074058409891) D36 D47 ^ D45 +error(0.00394717350721251678) D36 D47 ^ D45 ^ D37 +error(0.003465850790784312518) D36 D48 +error(0.0005143833321292933447) D36 D48 ^ D37 +error(0.002876529674571028442) D36 D48 ^ D37 D45 +error(0.0007942128998157770969) D36 D48 ^ D45 +error(0.005000000000000000104) D36 ^ D37 +error(0.005750209958349530859) D37 D45 ^ D36 +error(0.01000000000000000021) D37 +error(0.007086946948513330596) D37 D38 +error(0.0006238927402069643219) D37 D38 ^ D36 +error(0.0004105847966655892627) D37 D38 ^ D39 D40 +error(0.0007828344655542978509) D37 D38 ^ D39 D48 +error(0.01581328579132421433) D37 D38 ^ D40 +error(0.00494375633750265657) D37 D38 ^ D40 D48 +error(0.003393827644446323864) D37 D38 ^ D48 +error(0.0006534034225632598739) D37 D38 ^ D48 ^ D36 +error(0.02062339933464504491) D37 D42 +error(0.01288188014151966237) D37 D42 ^ D39 D40 +error(0.04396706115112597457) D37 D45 +error(0.003148640825778311041) D37 D45 ^ D47 D48 +error(0.004457305918183190885) D37 D45 ^ D48 +error(0.002592037799150079605) D37 D49 +error(0.002361773227960759381) D37 D49 ^ D39 D47 +error(0.0001938228754241966094) D37 D49 ^ D39 D48 +error(1.621830662966448254e-05) D37 D49 ^ D47 D48 +error(0.003802769585386780397) D37 D50 +error(0.001746806706075307867) D37 D50 ^ D39 D40 +error(0.0005311637132062851235) D37 D50 ^ D39 D47 +error(0.001817391512378880875) D37 D50 ^ D39 D48 +error(0.0006222692603779620855) D37 D50 ^ D40 D48 +error(0.002045304987410750779) D37 D50 ^ D47 D48 +error(0.00857253409893688964) D39 D47 ^ D37 +error(0.005000000000000000104) D38 +error(0.006606796944896995566) D38 D45 +error(0.000704960016748328879) D38 D45 ^ D36 +error(0.006287543697248259601) D38 D45 ^ D48 +error(0.000449692248015587197) D38 D45 ^ D48 ^ D36 +error(0.02663509319854607052) D38 D46 +error(0.01148756595076530843) D38 D46 ^ D48 +error(0.002334482549926380178) D38 D50 +error(0.0003978826477665259754) D38 D50 ^ D39 D40 +error(0.0002737165648862705924) D38 D50 ^ D39 D48 +error(0.002068033714909272777) D38 D50 ^ D40 D48 +error(0.01424208680070905043) D38 ^ D40 +error(0.002443183151416508051) D38 ^ D48 ^ D40 +error(0.008784999497050870881) D39 D40 +error(0.0006857174321991492665) D39 D40 ^ D29 +error(0.0003139585944870919645) D39 D40 ^ D37 +error(0.0004579355063318815591) D39 D40 ^ D42 +error(0.001492505153860175342) D39 D40 ^ D42 D50 +error(0.0004924974353153731017) D39 D40 ^ D50 +error(0.02705246472289643891) D39 D47 +error(0.003366488634455377504) D39 D47 ^ D49 D50 +error(0.003526255318013517704) D39 D48 +error(0.0001435589488185642817) D39 D48 ^ D49 D50 +error(0.001347669444277145795) D39 D51 +error(0.0002232335845856165768) D39 D51 ^ D42 +error(0.001354163541712518617) D39 D51 ^ D42 D50 +error(0.0002151159521495095081) D39 D51 ^ D50 +error(0.01000000000000000021) D39 L0 +error(0.008786260643692726455) D39 L0 ^ D41 +error(0.003908352668093685763) D41 D49 ^ D39 L0 +error(0.01000000000000000021) D40 +error(0.02105258409621241916) D40 D43 +error(0.02067786399216172549) D40 D43 ^ D42 +error(0.03381280047858732651) D40 D48 +error(0.002570324767123230523) D40 D48 ^ D50 +error(0.0108162808865761486) D40 D51 +error(0.002409659071988749356) D40 D51 ^ D42 +error(0.00556538258508117601) D40 D51 ^ D50 +error(0.0008915217994390704347) D40 D51 ^ D50 ^ D42 +error(0.005000000000000000104) D41 +error(0.009070665716435149378) D41 D42 +error(0.003740932971020226663) D41 D42 ^ D31 L0 +error(0.01250289484782928472) D41 D42 ^ D39 L0 +error(8.082310329996922739e-05) D41 D42 ^ D43 L0 ^ D31 L0 +error(0.02813785258089051763) D41 D49 +error(0.0003388902238148529386) D41 ^ D29 ^ D31 L0 +error(0.0006832900745178635852) D41 ^ D29 ^ D39 L0 +error(0.001350035395769679913) D41 ^ D39 L0 ^ D31 L0 +error(0.01000000000000000021) D42 +error(0.002884869361548767028) D42 D49 +error(0.002580466891419589195) D42 D49 ^ D39 L0 +error(0.0001650804436761054155) D42 D49 ^ D51 L0 +error(0.0002393782181347870049) D42 D49 ^ D51 L0 ^ D39 L0 +error(0.03294067098300872132) D42 D50 +error(0.001943074169913701745) D42 D50 ^ D39 L0 +error(0.001599991943626082698) D42 D50 ^ D51 L0 +error(0.0001515230753416762089) D42 ^ D30 ^ D32 +error(0.000788341572716253023) D42 ^ D30 ^ D40 +error(0.0008276414227760997729) D42 ^ D40 +error(0.01315587053214196597) D42 ^ D43 L0 +error(0.001908195929330935891) D42 ^ D51 L0 +error(0.00279910853068579546) D43 D51 ^ D42 +error(0.02328219348452528065) D43 D51 +error(0.006831311480691601608) D43 L0 +error(0.005000000000000000104) D44 +error(0.01758233121581995531) D44 D47 +error(0.018630937368897732) D44 D47 ^ D45 +error(0.02871156280340753097) D44 D52 +error(0.00780815846828183599) D44 D52 ^ D53 +error(0.007153231238404039044) D44 D55 +error(0.005375979670614491369) D44 D55 ^ D45 +error(0.005058268074058409891) D44 D55 ^ D53 +error(0.00394717350721251678) D44 D55 ^ D53 ^ D45 +error(0.003465850790784312518) D44 D56 +error(0.0005143833321292933447) D44 D56 ^ D45 +error(0.002876529674571028442) D44 D56 ^ D45 D53 +error(0.0007942128998157770969) D44 D56 ^ D53 +error(0.005000000000000000104) D44 ^ D45 +error(0.005750209958349530859) D45 D53 ^ D44 +error(0.01000000000000000021) D45 +error(0.007086946948513330596) D45 D46 +error(0.0006238927402069643219) D45 D46 ^ D44 +error(0.0004105847966655892627) D45 D46 ^ D47 D48 +error(0.0007828344655542978509) D45 D46 ^ D47 D56 +error(0.01581328579132421433) D45 D46 ^ D48 +error(0.00494375633750265657) D45 D46 ^ D48 D56 +error(0.003393827644446323864) D45 D46 ^ D56 +error(0.0006534034225632598739) D45 D46 ^ D56 ^ D44 +error(0.02062339933464504491) D45 D50 +error(0.01288188014151966237) D45 D50 ^ D47 D48 +error(0.04396706115112597457) D45 D53 +error(0.003148640825778311041) D45 D53 ^ D55 D56 +error(0.004457305918183190885) D45 D53 ^ D56 +error(0.002592037799150079605) D45 D57 +error(0.002361773227960759381) D45 D57 ^ D47 D55 +error(0.0001938228754241966094) D45 D57 ^ D47 D56 +error(1.621830662966448254e-05) D45 D57 ^ D55 D56 +error(0.003802769585386780397) D45 D58 +error(0.001746806706075307867) D45 D58 ^ D47 D48 +error(0.0005311637132062851235) D45 D58 ^ D47 D55 +error(0.001817391512378880875) D45 D58 ^ D47 D56 +error(0.0006222692603779620855) D45 D58 ^ D48 D56 +error(0.002045304987410750779) D45 D58 ^ D55 D56 +error(0.00857253409893688964) D47 D55 ^ D45 +error(0.005000000000000000104) D46 +error(0.006606796944896995566) D46 D53 +error(0.000704960016748328879) D46 D53 ^ D44 +error(0.006287543697248259601) D46 D53 ^ D56 +error(0.000449692248015587197) D46 D53 ^ D56 ^ D44 +error(0.02663509319854607052) D46 D54 +error(0.01148756595076530843) D46 D54 ^ D56 +error(0.002334482549926380178) D46 D58 +error(0.0003978826477665259754) D46 D58 ^ D47 D48 +error(0.0002737165648862705924) D46 D58 ^ D47 D56 +error(0.002068033714909272777) D46 D58 ^ D48 D56 +error(0.01424208680070905043) D46 ^ D48 +error(0.002443183151416508051) D46 ^ D56 ^ D48 +error(0.008784999497050870881) D47 D48 +error(0.0006857174321991492665) D47 D48 ^ D37 +error(0.0003139585944870919645) D47 D48 ^ D45 +error(0.0004579355063318815591) D47 D48 ^ D50 +error(0.001492505153860175342) D47 D48 ^ D50 D58 +error(0.0004924974353153731017) D47 D48 ^ D58 +error(0.02705246472289643891) D47 D55 +error(0.003366488634455377504) D47 D55 ^ D57 D58 +error(0.003526255318013517704) D47 D56 +error(0.0001435589488185642817) D47 D56 ^ D57 D58 +error(0.001347669444277145795) D47 D59 +error(0.0002232335845856165768) D47 D59 ^ D50 +error(0.001354163541712518617) D47 D59 ^ D50 D58 +error(0.0002151159521495095081) D47 D59 ^ D58 +error(0.01000000000000000021) D47 L0 +error(0.008786260643692726455) D47 L0 ^ D49 +error(0.003908352668093685763) D49 D57 ^ D47 L0 +error(0.01000000000000000021) D48 +error(0.02105258409621241916) D48 D51 +error(0.02067786399216172549) D48 D51 ^ D50 +error(0.03381280047858732651) D48 D56 +error(0.002570324767123230523) D48 D56 ^ D58 +error(0.0108162808865761486) D48 D59 +error(0.002409659071988749356) D48 D59 ^ D50 +error(0.00556538258508117601) D48 D59 ^ D58 +error(0.0008915217994390704347) D48 D59 ^ D58 ^ D50 +error(0.005000000000000000104) D49 +error(0.009070665716435149378) D49 D50 +error(0.003740932971020226663) D49 D50 ^ D39 L0 +error(0.01250289484782928472) D49 D50 ^ D47 L0 +error(8.082310329996922739e-05) D49 D50 ^ D51 L0 ^ D39 L0 +error(0.02813785258089051763) D49 D57 +error(0.0003388902238148529386) D49 ^ D37 ^ D39 L0 +error(0.0006832900745178635852) D49 ^ D37 ^ D47 L0 +error(0.001350035395769679913) D49 ^ D47 L0 ^ D39 L0 +error(0.01000000000000000021) D50 +error(0.002884869361548767028) D50 D57 +error(0.002580466891419589195) D50 D57 ^ D47 L0 +error(0.0001650804436761054155) D50 D57 ^ D59 L0 +error(0.0002393782181347870049) D50 D57 ^ D59 L0 ^ D47 L0 +error(0.03294067098300872132) D50 D58 +error(0.001943074169913701745) D50 D58 ^ D47 L0 +error(0.001599991943626082698) D50 D58 ^ D59 L0 +error(0.0001515230753416762089) D50 ^ D38 ^ D40 +error(0.000788341572716253023) D50 ^ D38 ^ D48 +error(0.0008276414227760997729) D50 ^ D48 +error(0.01315587053214196597) D50 ^ D51 L0 +error(0.001908195929330935891) D50 ^ D59 L0 +error(0.00279910853068579546) D51 D59 ^ D50 +error(0.02328219348452528065) D51 D59 +error(0.006831311480691601608) D51 L0 +error(0.005000000000000000104) D52 +error(0.01758233121581995531) D52 D55 +error(0.018630937368897732) D52 D55 ^ D53 +error(0.02871156280340753097) D52 D60 +error(0.00780815846828183599) D52 D60 ^ D61 +error(0.007153231238404039044) D52 D63 +error(0.005375979670614491369) D52 D63 ^ D53 +error(0.005058268074058409891) D52 D63 ^ D61 +error(0.00394717350721251678) D52 D63 ^ D61 ^ D53 +error(0.003465850790784312518) D52 D64 +error(0.0005143833321292933447) D52 D64 ^ D53 +error(0.002876529674571028442) D52 D64 ^ D53 D61 +error(0.0007942128998157770969) D52 D64 ^ D61 +error(0.005000000000000000104) D52 ^ D53 +error(0.005750209958349530859) D53 D61 ^ D52 +error(0.01000000000000000021) D53 +error(0.007086946948513330596) D53 D54 +error(0.0006238927402069643219) D53 D54 ^ D52 +error(0.0004105847966655892627) D53 D54 ^ D55 D56 +error(0.0007828344655542978509) D53 D54 ^ D55 D64 +error(0.01581328579132421433) D53 D54 ^ D56 +error(0.00494375633750265657) D53 D54 ^ D56 D64 +error(0.003393827644446323864) D53 D54 ^ D64 +error(0.0006534034225632598739) D53 D54 ^ D64 ^ D52 +error(0.02062339933464504491) D53 D58 +error(0.01288188014151966237) D53 D58 ^ D55 D56 +error(0.04396706115112597457) D53 D61 +error(0.003148640825778311041) D53 D61 ^ D63 D64 +error(0.004457305918183190885) D53 D61 ^ D64 +error(0.002592037799150079605) D53 D65 +error(0.002361773227960759381) D53 D65 ^ D55 D63 +error(0.0001938228754241966094) D53 D65 ^ D55 D64 +error(1.621830662966448254e-05) D53 D65 ^ D63 D64 +error(0.003802769585386780397) D53 D66 +error(0.001746806706075307867) D53 D66 ^ D55 D56 +error(0.0005311637132062851235) D53 D66 ^ D55 D63 +error(0.001817391512378880875) D53 D66 ^ D55 D64 +error(0.0006222692603779620855) D53 D66 ^ D56 D64 +error(0.002045304987410750779) D53 D66 ^ D63 D64 +error(0.00857253409893688964) D55 D63 ^ D53 +error(0.005000000000000000104) D54 +error(0.006606796944896995566) D54 D61 +error(0.000704960016748328879) D54 D61 ^ D52 +error(0.006287543697248259601) D54 D61 ^ D64 +error(0.000449692248015587197) D54 D61 ^ D64 ^ D52 +error(0.02663509319854607052) D54 D62 +error(0.01148756595076530843) D54 D62 ^ D64 +error(0.002334482549926380178) D54 D66 +error(0.0003978826477665259754) D54 D66 ^ D55 D56 +error(0.0002737165648862705924) D54 D66 ^ D55 D64 +error(0.002068033714909272777) D54 D66 ^ D56 D64 +error(0.01424208680070905043) D54 ^ D56 +error(0.002443183151416508051) D54 ^ D64 ^ D56 +error(0.008784999497050870881) D55 D56 +error(0.0006857174321991492665) D55 D56 ^ D45 +error(0.0003139585944870919645) D55 D56 ^ D53 +error(0.0004579355063318815591) D55 D56 ^ D58 +error(0.001492505153860175342) D55 D56 ^ D58 D66 +error(0.0004924974353153731017) D55 D56 ^ D66 +error(0.02705246472289643891) D55 D63 +error(0.003366488634455377504) D55 D63 ^ D65 D66 +error(0.003526255318013517704) D55 D64 +error(0.0001435589488185642817) D55 D64 ^ D65 D66 +error(0.001347669444277145795) D55 D67 +error(0.0002232335845856165768) D55 D67 ^ D58 +error(0.001354163541712518617) D55 D67 ^ D58 D66 +error(0.0002151159521495095081) D55 D67 ^ D66 +error(0.01000000000000000021) D55 L0 +error(0.008786260643692726455) D55 L0 ^ D57 +error(0.003908352668093685763) D57 D65 ^ D55 L0 +error(0.01000000000000000021) D56 +error(0.02105258409621241916) D56 D59 +error(0.02067786399216172549) D56 D59 ^ D58 +error(0.03381280047858732651) D56 D64 +error(0.002570324767123230523) D56 D64 ^ D66 +error(0.0108162808865761486) D56 D67 +error(0.002409659071988749356) D56 D67 ^ D58 +error(0.00556538258508117601) D56 D67 ^ D66 +error(0.0008915217994390704347) D56 D67 ^ D66 ^ D58 +error(0.005000000000000000104) D57 +error(0.009070665716435149378) D57 D58 +error(0.003740932971020226663) D57 D58 ^ D47 L0 +error(0.01250289484782928472) D57 D58 ^ D55 L0 +error(8.082310329996922739e-05) D57 D58 ^ D59 L0 ^ D47 L0 +error(0.02813785258089051763) D57 D65 +error(0.0003388902238148529386) D57 ^ D45 ^ D47 L0 +error(0.0006832900745178635852) D57 ^ D45 ^ D55 L0 +error(0.001350035395769679913) D57 ^ D55 L0 ^ D47 L0 +error(0.01000000000000000021) D58 +error(0.002884869361548767028) D58 D65 +error(0.002580466891419589195) D58 D65 ^ D55 L0 +error(0.0001650804436761054155) D58 D65 ^ D67 L0 +error(0.0002393782181347870049) D58 D65 ^ D67 L0 ^ D55 L0 +error(0.03294067098300872132) D58 D66 +error(0.001943074169913701745) D58 D66 ^ D55 L0 +error(0.001599991943626082698) D58 D66 ^ D67 L0 +error(0.0001515230753416762089) D58 ^ D46 ^ D48 +error(0.000788341572716253023) D58 ^ D46 ^ D56 +error(0.0008276414227760997729) D58 ^ D56 +error(0.01315587053214196597) D58 ^ D59 L0 +error(0.001908195929330935891) D58 ^ D67 L0 +error(0.00279910853068579546) D59 D67 ^ D58 +error(0.02328219348452528065) D59 D67 +error(0.006831311480691601608) D59 L0 +error(0.005000000000000000104) D60 +error(0.01758233121581995531) D60 D63 +error(0.018630937368897732) D60 D63 ^ D61 +error(0.02871156280340753097) D60 D68 +error(0.00780815846828183599) D60 D68 ^ D69 +error(0.007153231238404039044) D60 D71 +error(0.005375979670614491369) D60 D71 ^ D61 +error(0.005058268074058409891) D60 D71 ^ D69 +error(0.00394717350721251678) D60 D71 ^ D69 ^ D61 +error(0.003465850790784312518) D60 D72 +error(0.0005143833321292933447) D60 D72 ^ D61 +error(0.002876529674571028442) D60 D72 ^ D61 D69 +error(0.0007942128998157770969) D60 D72 ^ D69 +error(0.005000000000000000104) D60 ^ D61 +error(0.005750209958349530859) D61 D69 ^ D60 +error(0.01000000000000000021) D61 +error(0.007086946948513330596) D61 D62 +error(0.0006238927402069643219) D61 D62 ^ D60 +error(0.0004105847966655892627) D61 D62 ^ D63 D64 +error(0.0007828344655542978509) D61 D62 ^ D63 D72 +error(0.01581328579132421433) D61 D62 ^ D64 +error(0.00494375633750265657) D61 D62 ^ D64 D72 +error(0.003393827644446323864) D61 D62 ^ D72 +error(0.0006534034225632598739) D61 D62 ^ D72 ^ D60 +error(0.02062339933464504491) D61 D66 +error(0.01288188014151966237) D61 D66 ^ D63 D64 +error(0.04396706115112597457) D61 D69 +error(0.003148640825778311041) D61 D69 ^ D71 D72 +error(0.004457305918183190885) D61 D69 ^ D72 +error(0.002592037799150079605) D61 D73 +error(0.002361773227960759381) D61 D73 ^ D63 D71 +error(0.0001938228754241966094) D61 D73 ^ D63 D72 +error(1.621830662966448254e-05) D61 D73 ^ D71 D72 +error(0.003802769585386780397) D61 D74 +error(0.001746806706075307867) D61 D74 ^ D63 D64 +error(0.0005311637132062851235) D61 D74 ^ D63 D71 +error(0.001817391512378880875) D61 D74 ^ D63 D72 +error(0.0006222692603779620855) D61 D74 ^ D64 D72 +error(0.002045304987410750779) D61 D74 ^ D71 D72 +error(0.00857253409893688964) D63 D71 ^ D61 +error(0.005000000000000000104) D62 +error(0.006606796944896995566) D62 D69 +error(0.000704960016748328879) D62 D69 ^ D60 +error(0.006287543697248259601) D62 D69 ^ D72 +error(0.000449692248015587197) D62 D69 ^ D72 ^ D60 +error(0.02663509319854607052) D62 D70 +error(0.01148756595076530843) D62 D70 ^ D72 +error(0.002334482549926380178) D62 D74 +error(0.0003978826477665259754) D62 D74 ^ D63 D64 +error(0.0002737165648862705924) D62 D74 ^ D63 D72 +error(0.002068033714909272777) D62 D74 ^ D64 D72 +error(0.01424208680070905043) D62 ^ D64 +error(0.002443183151416508051) D62 ^ D72 ^ D64 +error(0.008784999497050870881) D63 D64 +error(0.0006857174321991492665) D63 D64 ^ D53 +error(0.0003139585944870919645) D63 D64 ^ D61 +error(0.0004579355063318815591) D63 D64 ^ D66 +error(0.001492505153860175342) D63 D64 ^ D66 D74 +error(0.0004924974353153731017) D63 D64 ^ D74 +error(0.02705246472289643891) D63 D71 +error(0.003366488634455377504) D63 D71 ^ D73 D74 +error(0.003526255318013517704) D63 D72 +error(0.0001435589488185642817) D63 D72 ^ D73 D74 +error(0.001347669444277145795) D63 D75 +error(0.0002232335845856165768) D63 D75 ^ D66 +error(0.001354163541712518617) D63 D75 ^ D66 D74 +error(0.0002151159521495095081) D63 D75 ^ D74 +error(0.01000000000000000021) D63 L0 +error(0.008786260643692726455) D63 L0 ^ D65 +error(0.003908352668093685763) D65 D73 ^ D63 L0 +error(0.01000000000000000021) D64 +error(0.02105258409621241916) D64 D67 +error(0.02067786399216172549) D64 D67 ^ D66 +error(0.03381280047858732651) D64 D72 +error(0.002570324767123230523) D64 D72 ^ D74 +error(0.0108162808865761486) D64 D75 +error(0.002409659071988749356) D64 D75 ^ D66 +error(0.00556538258508117601) D64 D75 ^ D74 +error(0.0008915217994390704347) D64 D75 ^ D74 ^ D66 +error(0.005000000000000000104) D65 +error(0.009070665716435149378) D65 D66 +error(0.003740932971020226663) D65 D66 ^ D55 L0 +error(0.01250289484782928472) D65 D66 ^ D63 L0 +error(8.082310329996922739e-05) D65 D66 ^ D67 L0 ^ D55 L0 +error(0.02813785258089051763) D65 D73 +error(0.0003388902238148529386) D65 ^ D53 ^ D55 L0 +error(0.0006832900745178635852) D65 ^ D53 ^ D63 L0 +error(0.001350035395769679913) D65 ^ D63 L0 ^ D55 L0 +error(0.01000000000000000021) D66 +error(0.002884869361548767028) D66 D73 +error(0.002580466891419589195) D66 D73 ^ D63 L0 +error(0.0001650804436761054155) D66 D73 ^ D75 L0 +error(0.0002393782181347870049) D66 D73 ^ D75 L0 ^ D63 L0 +error(0.03294067098300872132) D66 D74 +error(0.001943074169913701745) D66 D74 ^ D63 L0 +error(0.001599991943626082698) D66 D74 ^ D75 L0 +error(0.0001515230753416762089) D66 ^ D54 ^ D56 +error(0.000788341572716253023) D66 ^ D54 ^ D64 +error(0.0008276414227760997729) D66 ^ D64 +error(0.01315587053214196597) D66 ^ D67 L0 +error(0.001908195929330935891) D66 ^ D75 L0 +error(0.00279910853068579546) D67 D75 ^ D66 +error(0.02328219348452528065) D67 D75 +error(0.006831311480691601608) D67 L0 +error(0.005000000000000000104) D68 +error(0.01758233121581995531) D68 D71 +error(0.018630937368897732) D68 D71 ^ D69 +error(0.02871156280340753097) D68 D76 +error(0.00780815846828183599) D68 D76 ^ D77 +error(0.007153231238404039044) D68 D79 +error(0.005375979670614491369) D68 D79 ^ D69 +error(0.005058268074058409891) D68 D79 ^ D77 +error(0.00394717350721251678) D68 D79 ^ D77 ^ D69 +error(0.003465850790784312518) D68 D80 +error(0.0005143833321292933447) D68 D80 ^ D69 +error(0.002876529674571028442) D68 D80 ^ D69 D77 +error(0.0007942128998157770969) D68 D80 ^ D77 +error(0.005000000000000000104) D68 ^ D69 +error(0.005750209958349530859) D69 D77 ^ D68 +error(0.01000000000000000021) D69 +error(0.007086946948513330596) D69 D70 +error(0.0006238927402069643219) D69 D70 ^ D68 +error(0.0004105847966655892627) D69 D70 ^ D71 D72 +error(0.0007828344655542978509) D69 D70 ^ D71 D80 +error(0.01581328579132421433) D69 D70 ^ D72 +error(0.00494375633750265657) D69 D70 ^ D72 D80 +error(0.003393827644446323864) D69 D70 ^ D80 +error(0.0006534034225632598739) D69 D70 ^ D80 ^ D68 +error(0.02062339933464504491) D69 D74 +error(0.01288188014151966237) D69 D74 ^ D71 D72 +error(0.04396706115112597457) D69 D77 +error(0.003148640825778311041) D69 D77 ^ D79 D80 +error(0.004457305918183190885) D69 D77 ^ D80 +error(0.002592037799150079605) D69 D81 +error(0.002361773227960759381) D69 D81 ^ D71 D79 +error(0.0001938228754241966094) D69 D81 ^ D71 D80 +error(1.621830662966448254e-05) D69 D81 ^ D79 D80 +error(0.003802769585386780397) D69 D82 +error(0.001746806706075307867) D69 D82 ^ D71 D72 +error(0.0005311637132062851235) D69 D82 ^ D71 D79 +error(0.001817391512378880875) D69 D82 ^ D71 D80 +error(0.0006222692603779620855) D69 D82 ^ D72 D80 +error(0.002045304987410750779) D69 D82 ^ D79 D80 +error(0.00857253409893688964) D71 D79 ^ D69 +error(0.005000000000000000104) D70 +error(0.006606796944896995566) D70 D77 +error(0.000704960016748328879) D70 D77 ^ D68 +error(0.006287543697248259601) D70 D77 ^ D80 +error(0.000449692248015587197) D70 D77 ^ D80 ^ D68 +error(0.02663509319854607052) D70 D78 +error(0.01148756595076530843) D70 D78 ^ D80 +error(0.002334482549926380178) D70 D82 +error(0.0003978826477665259754) D70 D82 ^ D71 D72 +error(0.0002737165648862705924) D70 D82 ^ D71 D80 +error(0.002068033714909272777) D70 D82 ^ D72 D80 +error(0.01424208680070905043) D70 ^ D72 +error(0.002443183151416508051) D70 ^ D80 ^ D72 +error(0.008784999497050870881) D71 D72 +error(0.0006857174321991492665) D71 D72 ^ D61 +error(0.0003139585944870919645) D71 D72 ^ D69 +error(0.0004579355063318815591) D71 D72 ^ D74 +error(0.001492505153860175342) D71 D72 ^ D74 D82 +error(0.0004924974353153731017) D71 D72 ^ D82 +error(0.02705246472289643891) D71 D79 +error(0.003366488634455377504) D71 D79 ^ D81 D82 +error(0.003526255318013517704) D71 D80 +error(0.0001435589488185642817) D71 D80 ^ D81 D82 +error(0.001347669444277145795) D71 D83 +error(0.0002232335845856165768) D71 D83 ^ D74 +error(0.001354163541712518617) D71 D83 ^ D74 D82 +error(0.0002151159521495095081) D71 D83 ^ D82 +error(0.01000000000000000021) D71 L0 +error(0.008786260643692726455) D71 L0 ^ D73 +error(0.003908352668093685763) D73 D81 ^ D71 L0 +error(0.01000000000000000021) D72 +error(0.02105258409621241916) D72 D75 +error(0.02067786399216172549) D72 D75 ^ D74 +error(0.03381280047858732651) D72 D80 +error(0.002570324767123230523) D72 D80 ^ D82 +error(0.0108162808865761486) D72 D83 +error(0.002409659071988749356) D72 D83 ^ D74 +error(0.00556538258508117601) D72 D83 ^ D82 +error(0.0008915217994390704347) D72 D83 ^ D82 ^ D74 +error(0.005000000000000000104) D73 +error(0.009070665716435149378) D73 D74 +error(0.003740932971020226663) D73 D74 ^ D63 L0 +error(0.01250289484782928472) D73 D74 ^ D71 L0 +error(8.082310329996922739e-05) D73 D74 ^ D75 L0 ^ D63 L0 +error(0.02813785258089051763) D73 D81 +error(0.0003388902238148529386) D73 ^ D61 ^ D63 L0 +error(0.0006832900745178635852) D73 ^ D61 ^ D71 L0 +error(0.001350035395769679913) D73 ^ D71 L0 ^ D63 L0 +error(0.01000000000000000021) D74 +error(0.002884869361548767028) D74 D81 +error(0.002580466891419589195) D74 D81 ^ D71 L0 +error(0.0001650804436761054155) D74 D81 ^ D83 L0 +error(0.0002393782181347870049) D74 D81 ^ D83 L0 ^ D71 L0 +error(0.03294067098300872132) D74 D82 +error(0.001943074169913701745) D74 D82 ^ D71 L0 +error(0.001599991943626082698) D74 D82 ^ D83 L0 +error(0.0001515230753416762089) D74 ^ D62 ^ D64 +error(0.000788341572716253023) D74 ^ D62 ^ D72 +error(0.0008276414227760997729) D74 ^ D72 +error(0.01315587053214196597) D74 ^ D75 L0 +error(0.001908195929330935891) D74 ^ D83 L0 +error(0.00279910853068579546) D75 D83 ^ D74 +error(0.02328219348452528065) D75 D83 +error(0.006831311480691601608) D75 L0 +error(0.005000000000000000104) D76 +error(0.01758233121581995531) D76 D79 +error(0.018630937368897732) D76 D79 ^ D77 +error(0.02871156280340753097) D76 D84 +error(0.00780815846828183599) D76 D84 ^ D85 +error(0.007153231238404039044) D76 D87 +error(0.005375979670614491369) D76 D87 ^ D77 +error(0.005058268074058409891) D76 D87 ^ D85 +error(0.00394717350721251678) D76 D87 ^ D85 ^ D77 +error(0.003465850790784312518) D76 D88 +error(0.0005143833321292933447) D76 D88 ^ D77 +error(0.002876529674571028442) D76 D88 ^ D77 D85 +error(0.0007942128998157770969) D76 D88 ^ D85 +error(0.005000000000000000104) D76 ^ D77 +error(0.005750209958349530859) D77 D85 ^ D76 +error(0.01000000000000000021) D77 +error(0.007086946948513330596) D77 D78 +error(0.0006238927402069643219) D77 D78 ^ D76 +error(0.0004105847966655892627) D77 D78 ^ D79 D80 +error(0.0007828344655542978509) D77 D78 ^ D79 D88 +error(0.01581328579132421433) D77 D78 ^ D80 +error(0.00494375633750265657) D77 D78 ^ D80 D88 +error(0.003393827644446323864) D77 D78 ^ D88 +error(0.0006534034225632598739) D77 D78 ^ D88 ^ D76 +error(0.02062339933464504491) D77 D82 +error(0.01288188014151966237) D77 D82 ^ D79 D80 +error(0.04396706115112597457) D77 D85 +error(0.003148640825778311041) D77 D85 ^ D87 D88 +error(0.004457305918183190885) D77 D85 ^ D88 +error(0.002592037799150079605) D77 D89 +error(0.002361773227960759381) D77 D89 ^ D79 D87 +error(0.0001938228754241966094) D77 D89 ^ D79 D88 +error(1.621830662966448254e-05) D77 D89 ^ D87 D88 +error(0.003802769585386780397) D77 D90 +error(0.001746806706075307867) D77 D90 ^ D79 D80 +error(0.0005311637132062851235) D77 D90 ^ D79 D87 +error(0.001817391512378880875) D77 D90 ^ D79 D88 +error(0.0006222692603779620855) D77 D90 ^ D80 D88 +error(0.002045304987410750779) D77 D90 ^ D87 D88 +error(0.00857253409893688964) D79 D87 ^ D77 +error(0.005000000000000000104) D78 +error(0.006606796944896995566) D78 D85 +error(0.000704960016748328879) D78 D85 ^ D76 +error(0.006287543697248259601) D78 D85 ^ D88 +error(0.000449692248015587197) D78 D85 ^ D88 ^ D76 +error(0.02663509319854607052) D78 D86 +error(0.01148756595076530843) D78 D86 ^ D88 +error(0.002334482549926380178) D78 D90 +error(0.0003978826477665259754) D78 D90 ^ D79 D80 +error(0.0002737165648862705924) D78 D90 ^ D79 D88 +error(0.002068033714909272777) D78 D90 ^ D80 D88 +error(0.01424208680070905043) D78 ^ D80 +error(0.002443183151416508051) D78 ^ D88 ^ D80 +error(0.008784999497050870881) D79 D80 +error(0.0006857174321991492665) D79 D80 ^ D69 +error(0.0003139585944870919645) D79 D80 ^ D77 +error(0.0004579355063318815591) D79 D80 ^ D82 +error(0.001492505153860175342) D79 D80 ^ D82 D90 +error(0.0004924974353153731017) D79 D80 ^ D90 +error(0.02705246472289643891) D79 D87 +error(0.003366488634455377504) D79 D87 ^ D89 D90 +error(0.003526255318013517704) D79 D88 +error(0.0001435589488185642817) D79 D88 ^ D89 D90 +error(0.001347669444277145795) D79 D91 +error(0.0002232335845856165768) D79 D91 ^ D82 +error(0.001354163541712518617) D79 D91 ^ D82 D90 +error(0.0002151159521495095081) D79 D91 ^ D90 +error(0.01000000000000000021) D79 L0 +error(0.008786260643692726455) D79 L0 ^ D81 +error(0.003908352668093685763) D81 D89 ^ D79 L0 +error(0.01000000000000000021) D80 +error(0.02105258409621241916) D80 D83 +error(0.02067786399216172549) D80 D83 ^ D82 +error(0.03381280047858732651) D80 D88 +error(0.002570324767123230523) D80 D88 ^ D90 +error(0.0108162808865761486) D80 D91 +error(0.002409659071988749356) D80 D91 ^ D82 +error(0.00556538258508117601) D80 D91 ^ D90 +error(0.0008915217994390704347) D80 D91 ^ D90 ^ D82 +error(0.005000000000000000104) D81 +error(0.009070665716435149378) D81 D82 +error(0.003740932971020226663) D81 D82 ^ D71 L0 +error(0.01250289484782928472) D81 D82 ^ D79 L0 +error(8.082310329996922739e-05) D81 D82 ^ D83 L0 ^ D71 L0 +error(0.02813785258089051763) D81 D89 +error(0.0003388902238148529386) D81 ^ D69 ^ D71 L0 +error(0.0006832900745178635852) D81 ^ D69 ^ D79 L0 +error(0.001350035395769679913) D81 ^ D79 L0 ^ D71 L0 +error(0.01000000000000000021) D82 +error(0.002884869361548767028) D82 D89 +error(0.002580466891419589195) D82 D89 ^ D79 L0 +error(0.0001650804436761054155) D82 D89 ^ D91 L0 +error(0.0002393782181347870049) D82 D89 ^ D91 L0 ^ D79 L0 +error(0.03294067098300872132) D82 D90 +error(0.001943074169913701745) D82 D90 ^ D79 L0 +error(0.001599991943626082698) D82 D90 ^ D91 L0 +error(0.0001515230753416762089) D82 ^ D70 ^ D72 +error(0.000788341572716253023) D82 ^ D70 ^ D80 +error(0.0008276414227760997729) D82 ^ D80 +error(0.01315587053214196597) D82 ^ D83 L0 +error(0.001908195929330935891) D82 ^ D91 L0 +error(0.00279910853068579546) D83 D91 ^ D82 +error(0.02328219348452528065) D83 D91 +error(0.006831311480691601608) D83 L0 +error(0.005000000000000000104) D84 +error(0.01758233121581995531) D84 D87 +error(0.018630937368897732) D84 D87 ^ D85 +error(0.02871156280340753097) D84 D92 +error(0.00780815846828183599) D84 D92 ^ D93 +error(0.007153231238404039044) D84 D95 +error(0.005375979670614491369) D84 D95 ^ D85 +error(0.005058268074058409891) D84 D95 ^ D93 +error(0.00394717350721251678) D84 D95 ^ D93 ^ D85 +error(0.003465850790784312518) D84 D96 +error(0.0005143833321292933447) D84 D96 ^ D85 +error(0.002876529674571028442) D84 D96 ^ D85 D93 +error(0.0007942128998157770969) D84 D96 ^ D93 +error(0.005000000000000000104) D84 ^ D85 +error(0.005750209958349530859) D85 D93 ^ D84 +error(0.01000000000000000021) D85 +error(0.007086946948513330596) D85 D86 +error(0.0006238927402069643219) D85 D86 ^ D84 +error(0.0004105847966655892627) D85 D86 ^ D87 D88 +error(0.0007828344655542978509) D85 D86 ^ D87 D96 +error(0.01581328579132421433) D85 D86 ^ D88 +error(0.00494375633750265657) D85 D86 ^ D88 D96 +error(0.003393827644446323864) D85 D86 ^ D96 +error(0.0006534034225632598739) D85 D86 ^ D96 ^ D84 +error(0.02062339933464504491) D85 D90 +error(0.01288188014151966237) D85 D90 ^ D87 D88 +error(0.04396706115112597457) D85 D93 +error(0.003148640825778311041) D85 D93 ^ D95 D96 +error(0.004457305918183190885) D85 D93 ^ D96 +error(0.002592037799150079605) D85 D97 +error(0.002361773227960759381) D85 D97 ^ D87 D95 +error(0.0001938228754241966094) D85 D97 ^ D87 D96 +error(1.621830662966448254e-05) D85 D97 ^ D95 D96 +error(0.003802769585386780397) D85 D98 +error(0.001746806706075307867) D85 D98 ^ D87 D88 +error(0.0005311637132062851235) D85 D98 ^ D87 D95 +error(0.001817391512378880875) D85 D98 ^ D87 D96 +error(0.0006222692603779620855) D85 D98 ^ D88 D96 +error(0.002045304987410750779) D85 D98 ^ D95 D96 +error(0.00857253409893688964) D87 D95 ^ D85 +error(0.005000000000000000104) D86 +error(0.006606796944896995566) D86 D93 +error(0.000704960016748328879) D86 D93 ^ D84 +error(0.006287543697248259601) D86 D93 ^ D96 +error(0.000449692248015587197) D86 D93 ^ D96 ^ D84 +error(0.02663509319854607052) D86 D94 +error(0.01148756595076530843) D86 D94 ^ D96 +error(0.002334482549926380178) D86 D98 +error(0.0003978826477665259754) D86 D98 ^ D87 D88 +error(0.0002737165648862705924) D86 D98 ^ D87 D96 +error(0.002068033714909272777) D86 D98 ^ D88 D96 +error(0.01424208680070905043) D86 ^ D88 +error(0.002443183151416508051) D86 ^ D96 ^ D88 +error(0.008784999497050870881) D87 D88 +error(0.0006857174321991492665) D87 D88 ^ D77 +error(0.0003139585944870919645) D87 D88 ^ D85 +error(0.0004579355063318815591) D87 D88 ^ D90 +error(0.001492505153860175342) D87 D88 ^ D90 D98 +error(0.0004924974353153731017) D87 D88 ^ D98 +error(0.02705246472289643891) D87 D95 +error(0.003366488634455377504) D87 D95 ^ D97 D98 +error(0.003526255318013517704) D87 D96 +error(0.0001435589488185642817) D87 D96 ^ D97 D98 +error(0.001347669444277145795) D87 D99 +error(0.0002232335845856165768) D87 D99 ^ D90 +error(0.001354163541712518617) D87 D99 ^ D90 D98 +error(0.0002151159521495095081) D87 D99 ^ D98 +error(0.01000000000000000021) D87 L0 +error(0.008786260643692726455) D87 L0 ^ D89 +error(0.003908352668093685763) D89 D97 ^ D87 L0 +error(0.01000000000000000021) D88 +error(0.02105258409621241916) D88 D91 +error(0.02067786399216172549) D88 D91 ^ D90 +error(0.03381280047858732651) D88 D96 +error(0.002570324767123230523) D88 D96 ^ D98 +error(0.0108162808865761486) D88 D99 +error(0.002409659071988749356) D88 D99 ^ D90 +error(0.00556538258508117601) D88 D99 ^ D98 +error(0.0008915217994390704347) D88 D99 ^ D98 ^ D90 +error(0.005000000000000000104) D89 +error(0.009070665716435149378) D89 D90 +error(0.003740932971020226663) D89 D90 ^ D79 L0 +error(0.01250289484782928472) D89 D90 ^ D87 L0 +error(8.082310329996922739e-05) D89 D90 ^ D91 L0 ^ D79 L0 +error(0.02813785258089051763) D89 D97 +error(0.0003388902238148529386) D89 ^ D77 ^ D79 L0 +error(0.0006832900745178635852) D89 ^ D77 ^ D87 L0 +error(0.001350035395769679913) D89 ^ D87 L0 ^ D79 L0 +error(0.01000000000000000021) D90 +error(0.002884869361548767028) D90 D97 +error(0.002580466891419589195) D90 D97 ^ D87 L0 +error(0.0001650804436761054155) D90 D97 ^ D99 L0 +error(0.0002393782181347870049) D90 D97 ^ D99 L0 ^ D87 L0 +error(0.03294067098300872132) D90 D98 +error(0.001943074169913701745) D90 D98 ^ D87 L0 +error(0.001599991943626082698) D90 D98 ^ D99 L0 +error(0.0001515230753416762089) D90 ^ D78 ^ D80 +error(0.000788341572716253023) D90 ^ D78 ^ D88 +error(0.0008276414227760997729) D90 ^ D88 +error(0.01315587053214196597) D90 ^ D91 L0 +error(0.001908195929330935891) D90 ^ D99 L0 +error(0.00279910853068579546) D91 D99 ^ D90 +error(0.02328219348452528065) D91 D99 +error(0.006831311480691601608) D91 L0 +error(0.005000000000000000104) D92 +error(0.01758233121581995531) D92 D95 +error(0.018630937368897732) D92 D95 ^ D93 +error(0.02871156280340753097) D92 D100 +error(0.00780815846828183599) D92 D100 ^ D101 +error(0.007153231238404039044) D92 D103 +error(0.005375979670614491369) D92 D103 ^ D93 +error(0.005058268074058409891) D92 D103 ^ D101 +error(0.00394717350721251678) D92 D103 ^ D101 ^ D93 +error(0.003465850790784312518) D92 D104 +error(0.0005143833321292933447) D92 D104 ^ D93 +error(0.002876529674571028442) D92 D104 ^ D93 D101 +error(0.0007942128998157770969) D92 D104 ^ D101 +error(0.005000000000000000104) D92 ^ D93 +error(0.005750209958349530859) D93 D101 ^ D92 +error(0.01000000000000000021) D93 +error(0.007086946948513330596) D93 D94 +error(0.0006238927402069643219) D93 D94 ^ D92 +error(0.0004105847966655892627) D93 D94 ^ D95 D96 +error(0.0007828344655542978509) D93 D94 ^ D95 D104 +error(0.01581328579132421433) D93 D94 ^ D96 +error(0.00494375633750265657) D93 D94 ^ D96 D104 +error(0.003393827644446323864) D93 D94 ^ D104 +error(0.0006534034225632598739) D93 D94 ^ D104 ^ D92 +error(0.02062339933464504491) D93 D98 +error(0.01288188014151966237) D93 D98 ^ D95 D96 +error(0.04396706115112597457) D93 D101 +error(0.003148640825778311041) D93 D101 ^ D103 D104 +error(0.004457305918183190885) D93 D101 ^ D104 +error(0.002592037799150079605) D93 D105 +error(0.002361773227960759381) D93 D105 ^ D95 D103 +error(0.0001938228754241966094) D93 D105 ^ D95 D104 +error(1.621830662966448254e-05) D93 D105 ^ D103 D104 +error(0.003802769585386780397) D93 D106 +error(0.001746806706075307867) D93 D106 ^ D95 D96 +error(0.0005311637132062851235) D93 D106 ^ D95 D103 +error(0.001817391512378880875) D93 D106 ^ D95 D104 +error(0.0006222692603779620855) D93 D106 ^ D96 D104 +error(0.002045304987410750779) D93 D106 ^ D103 D104 +error(0.00857253409893688964) D95 D103 ^ D93 +error(0.005000000000000000104) D94 +error(0.006606796944896995566) D94 D101 +error(0.000704960016748328879) D94 D101 ^ D92 +error(0.006287543697248259601) D94 D101 ^ D104 +error(0.000449692248015587197) D94 D101 ^ D104 ^ D92 +error(0.02663509319854607052) D94 D102 +error(0.01148756595076530843) D94 D102 ^ D104 +error(0.002334482549926380178) D94 D106 +error(0.0003978826477665259754) D94 D106 ^ D95 D96 +error(0.0002737165648862705924) D94 D106 ^ D95 D104 +error(0.002068033714909272777) D94 D106 ^ D96 D104 +error(0.01424208680070905043) D94 ^ D96 +error(0.002443183151416508051) D94 ^ D104 ^ D96 +error(0.008784999497050870881) D95 D96 +error(0.0006857174321991492665) D95 D96 ^ D85 +error(0.0003139585944870919645) D95 D96 ^ D93 +error(0.0004579355063318815591) D95 D96 ^ D98 +error(0.001492505153860175342) D95 D96 ^ D98 D106 +error(0.0004924974353153731017) D95 D96 ^ D106 +error(0.02705246472289643891) D95 D103 +error(0.003366488634455377504) D95 D103 ^ D105 D106 +error(0.003526255318013517704) D95 D104 +error(0.0001435589488185642817) D95 D104 ^ D105 D106 +error(0.001347669444277145795) D95 D107 +error(0.0002232335845856165768) D95 D107 ^ D98 +error(0.001354163541712518617) D95 D107 ^ D98 D106 +error(0.0002151159521495095081) D95 D107 ^ D106 +error(0.01000000000000000021) D95 L0 +error(0.008786260643692726455) D95 L0 ^ D97 +error(0.003908352668093685763) D97 D105 ^ D95 L0 +error(0.01000000000000000021) D96 +error(0.02105258409621241916) D96 D99 +error(0.02067786399216172549) D96 D99 ^ D98 +error(0.03381280047858732651) D96 D104 +error(0.002570324767123230523) D96 D104 ^ D106 +error(0.0108162808865761486) D96 D107 +error(0.002409659071988749356) D96 D107 ^ D98 +error(0.00556538258508117601) D96 D107 ^ D106 +error(0.0008915217994390704347) D96 D107 ^ D106 ^ D98 +error(0.005000000000000000104) D97 +error(0.009070665716435149378) D97 D98 +error(0.003740932971020226663) D97 D98 ^ D87 L0 +error(0.01250289484782928472) D97 D98 ^ D95 L0 +error(8.082310329996922739e-05) D97 D98 ^ D99 L0 ^ D87 L0 +error(0.02813785258089051763) D97 D105 +error(0.0003388902238148529386) D97 ^ D85 ^ D87 L0 +error(0.0006832900745178635852) D97 ^ D85 ^ D95 L0 +error(0.001350035395769679913) D97 ^ D95 L0 ^ D87 L0 +error(0.01000000000000000021) D98 +error(0.002884869361548767028) D98 D105 +error(0.002580466891419589195) D98 D105 ^ D95 L0 +error(0.0001650804436761054155) D98 D105 ^ D107 L0 +error(0.0002393782181347870049) D98 D105 ^ D107 L0 ^ D95 L0 +error(0.03294067098300872132) D98 D106 +error(0.001943074169913701745) D98 D106 ^ D95 L0 +error(0.001599991943626082698) D98 D106 ^ D107 L0 +error(0.0001515230753416762089) D98 ^ D86 ^ D88 +error(0.000788341572716253023) D98 ^ D86 ^ D96 +error(0.0008276414227760997729) D98 ^ D96 +error(0.01315587053214196597) D98 ^ D99 L0 +error(0.001908195929330935891) D98 ^ D107 L0 +error(0.00279910853068579546) D99 D107 ^ D98 +error(0.02328219348452528065) D99 D107 +error(0.006831311480691601608) D99 L0 +error(0.005000000000000000104) D100 +error(0.01758233121581995531) D100 D103 +error(0.018630937368897732) D100 D103 ^ D101 +error(0.02871156280340753097) D100 D108 +error(0.00780815846828183599) D100 D108 ^ D109 +error(0.007153231238404039044) D100 D111 +error(0.005375979670614491369) D100 D111 ^ D101 +error(0.005058268074058409891) D100 D111 ^ D109 +error(0.00394717350721251678) D100 D111 ^ D109 ^ D101 +error(0.003465850790784312518) D100 D112 +error(0.0005143833321292933447) D100 D112 ^ D101 +error(0.002876529674571028442) D100 D112 ^ D101 D109 +error(0.0007942128998157770969) D100 D112 ^ D109 +error(0.005000000000000000104) D100 ^ D101 +error(0.005750209958349530859) D101 D109 ^ D100 +error(0.01000000000000000021) D101 +error(0.007086946948513330596) D101 D102 +error(0.0006238927402069643219) D101 D102 ^ D100 +error(0.0004105847966655892627) D101 D102 ^ D103 D104 +error(0.0007828344655542978509) D101 D102 ^ D103 D112 +error(0.01581328579132421433) D101 D102 ^ D104 +error(0.00494375633750265657) D101 D102 ^ D104 D112 +error(0.003393827644446323864) D101 D102 ^ D112 +error(0.0006534034225632598739) D101 D102 ^ D112 ^ D100 +error(0.02062339933464504491) D101 D106 +error(0.01288188014151966237) D101 D106 ^ D103 D104 +error(0.04396706115112597457) D101 D109 +error(0.003148640825778311041) D101 D109 ^ D111 D112 +error(0.004457305918183190885) D101 D109 ^ D112 +error(0.002592037799150079605) D101 D113 +error(0.002361773227960759381) D101 D113 ^ D103 D111 +error(0.0001938228754241966094) D101 D113 ^ D103 D112 +error(1.621830662966448254e-05) D101 D113 ^ D111 D112 +error(0.003802769585386780397) D101 D114 +error(0.001746806706075307867) D101 D114 ^ D103 D104 +error(0.0005311637132062851235) D101 D114 ^ D103 D111 +error(0.001817391512378880875) D101 D114 ^ D103 D112 +error(0.0006222692603779620855) D101 D114 ^ D104 D112 +error(0.002045304987410750779) D101 D114 ^ D111 D112 +error(0.00857253409893688964) D103 D111 ^ D101 +error(0.005000000000000000104) D102 +error(0.006606796944896995566) D102 D109 +error(0.000704960016748328879) D102 D109 ^ D100 +error(0.006287543697248259601) D102 D109 ^ D112 +error(0.000449692248015587197) D102 D109 ^ D112 ^ D100 +error(0.02663509319854607052) D102 D110 +error(0.01148756595076530843) D102 D110 ^ D112 +error(0.002334482549926380178) D102 D114 +error(0.0003978826477665259754) D102 D114 ^ D103 D104 +error(0.0002737165648862705924) D102 D114 ^ D103 D112 +error(0.002068033714909272777) D102 D114 ^ D104 D112 +error(0.01424208680070905043) D102 ^ D104 +error(0.002443183151416508051) D102 ^ D112 ^ D104 +error(0.008784999497050870881) D103 D104 +error(0.0006857174321991492665) D103 D104 ^ D93 +error(0.0003139585944870919645) D103 D104 ^ D101 +error(0.0004579355063318815591) D103 D104 ^ D106 +error(0.001492505153860175342) D103 D104 ^ D106 D114 +error(0.0004924974353153731017) D103 D104 ^ D114 +error(0.02705246472289643891) D103 D111 +error(0.003366488634455377504) D103 D111 ^ D113 D114 +error(0.003526255318013517704) D103 D112 +error(0.0001435589488185642817) D103 D112 ^ D113 D114 +error(0.001347669444277145795) D103 D115 +error(0.0002232335845856165768) D103 D115 ^ D106 +error(0.001354163541712518617) D103 D115 ^ D106 D114 +error(0.0002151159521495095081) D103 D115 ^ D114 +error(0.01000000000000000021) D103 L0 +error(0.008786260643692726455) D103 L0 ^ D105 +error(0.003908352668093685763) D105 D113 ^ D103 L0 +error(0.01000000000000000021) D104 +error(0.02105258409621241916) D104 D107 +error(0.02067786399216172549) D104 D107 ^ D106 +error(0.03381280047858732651) D104 D112 +error(0.002570324767123230523) D104 D112 ^ D114 +error(0.0108162808865761486) D104 D115 +error(0.002409659071988749356) D104 D115 ^ D106 +error(0.00556538258508117601) D104 D115 ^ D114 +error(0.0008915217994390704347) D104 D115 ^ D114 ^ D106 +error(0.005000000000000000104) D105 +error(0.009070665716435149378) D105 D106 +error(0.003740932971020226663) D105 D106 ^ D95 L0 +error(0.01250289484782928472) D105 D106 ^ D103 L0 +error(8.082310329996922739e-05) D105 D106 ^ D107 L0 ^ D95 L0 +error(0.02813785258089051763) D105 D113 +error(0.0003388902238148529386) D105 ^ D93 ^ D95 L0 +error(0.0006832900745178635852) D105 ^ D93 ^ D103 L0 +error(0.001350035395769679913) D105 ^ D103 L0 ^ D95 L0 +error(0.01000000000000000021) D106 +error(0.002884869361548767028) D106 D113 +error(0.002580466891419589195) D106 D113 ^ D103 L0 +error(0.0001650804436761054155) D106 D113 ^ D115 L0 +error(0.0002393782181347870049) D106 D113 ^ D115 L0 ^ D103 L0 +error(0.03294067098300872132) D106 D114 +error(0.001943074169913701745) D106 D114 ^ D103 L0 +error(0.001599991943626082698) D106 D114 ^ D115 L0 +error(0.0001515230753416762089) D106 ^ D94 ^ D96 +error(0.000788341572716253023) D106 ^ D94 ^ D104 +error(0.0008276414227760997729) D106 ^ D104 +error(0.01315587053214196597) D106 ^ D107 L0 +error(0.001908195929330935891) D106 ^ D115 L0 +error(0.00279910853068579546) D107 D115 ^ D106 +error(0.02328219348452528065) D107 D115 +error(0.006831311480691601608) D107 L0 +error(0.005000000000000000104) D108 +error(0.01758233121581995531) D108 D111 +error(0.018630937368897732) D108 D111 ^ D109 +error(0.02871156280340753097) D108 D116 +error(0.00780815846828183599) D108 D116 ^ D117 +error(0.007153231238404039044) D108 D119 +error(0.005375979670614491369) D108 D119 ^ D109 +error(0.005058268074058409891) D108 D119 ^ D117 +error(0.00394717350721251678) D108 D119 ^ D117 ^ D109 +error(0.003465850790784312518) D108 D120 +error(0.0005143833321292933447) D108 D120 ^ D109 +error(0.002876529674571028442) D108 D120 ^ D109 D117 +error(0.0007942128998157770969) D108 D120 ^ D117 +error(0.005000000000000000104) D108 ^ D109 +error(0.005750209958349530859) D109 D117 ^ D108 +error(0.01000000000000000021) D109 +error(0.007086946948513330596) D109 D110 +error(0.0006238927402069643219) D109 D110 ^ D108 +error(0.0004105847966655892627) D109 D110 ^ D111 D112 +error(0.0007828344655542978509) D109 D110 ^ D111 D120 +error(0.01581328579132421433) D109 D110 ^ D112 +error(0.00494375633750265657) D109 D110 ^ D112 D120 +error(0.003393827644446323864) D109 D110 ^ D120 +error(0.0006534034225632598739) D109 D110 ^ D120 ^ D108 +error(0.02062339933464504491) D109 D114 +error(0.01288188014151966237) D109 D114 ^ D111 D112 +error(0.04396706115112597457) D109 D117 +error(0.003148640825778311041) D109 D117 ^ D119 D120 +error(0.004457305918183190885) D109 D117 ^ D120 +error(0.002592037799150079605) D109 D121 +error(0.002361773227960759381) D109 D121 ^ D111 D119 +error(0.0001938228754241966094) D109 D121 ^ D111 D120 +error(1.621830662966448254e-05) D109 D121 ^ D119 D120 +error(0.003802769585386780397) D109 D122 +error(0.001746806706075307867) D109 D122 ^ D111 D112 +error(0.0005311637132062851235) D109 D122 ^ D111 D119 +error(0.001817391512378880875) D109 D122 ^ D111 D120 +error(0.0006222692603779620855) D109 D122 ^ D112 D120 +error(0.002045304987410750779) D109 D122 ^ D119 D120 +error(0.00857253409893688964) D111 D119 ^ D109 +error(0.005000000000000000104) D110 +error(0.006606796944896995566) D110 D117 +error(0.000704960016748328879) D110 D117 ^ D108 +error(0.006287543697248259601) D110 D117 ^ D120 +error(0.000449692248015587197) D110 D117 ^ D120 ^ D108 +error(0.02663509319854607052) D110 D118 +error(0.01148756595076530843) D110 D118 ^ D120 +error(0.002334482549926380178) D110 D122 +error(0.0003978826477665259754) D110 D122 ^ D111 D112 +error(0.0002737165648862705924) D110 D122 ^ D111 D120 +error(0.002068033714909272777) D110 D122 ^ D112 D120 +error(0.01424208680070905043) D110 ^ D112 +error(0.002443183151416508051) D110 ^ D120 ^ D112 +error(0.008784999497050870881) D111 D112 +error(0.0006857174321991492665) D111 D112 ^ D101 +error(0.0003139585944870919645) D111 D112 ^ D109 +error(0.0004579355063318815591) D111 D112 ^ D114 +error(0.001492505153860175342) D111 D112 ^ D114 D122 +error(0.0004924974353153731017) D111 D112 ^ D122 +error(0.02705246472289643891) D111 D119 +error(0.003366488634455377504) D111 D119 ^ D121 D122 +error(0.003526255318013517704) D111 D120 +error(0.0001435589488185642817) D111 D120 ^ D121 D122 +error(0.001347669444277145795) D111 D123 +error(0.0002232335845856165768) D111 D123 ^ D114 +error(0.001354163541712518617) D111 D123 ^ D114 D122 +error(0.0002151159521495095081) D111 D123 ^ D122 +error(0.01000000000000000021) D111 L0 +error(0.008786260643692726455) D111 L0 ^ D113 +error(0.003908352668093685763) D113 D121 ^ D111 L0 +error(0.01000000000000000021) D112 +error(0.02105258409621241916) D112 D115 +error(0.02067786399216172549) D112 D115 ^ D114 +error(0.03381280047858732651) D112 D120 +error(0.002570324767123230523) D112 D120 ^ D122 +error(0.0108162808865761486) D112 D123 +error(0.002409659071988749356) D112 D123 ^ D114 +error(0.00556538258508117601) D112 D123 ^ D122 +error(0.0008915217994390704347) D112 D123 ^ D122 ^ D114 +error(0.005000000000000000104) D113 +error(0.009070665716435149378) D113 D114 +error(0.003740932971020226663) D113 D114 ^ D103 L0 +error(0.01250289484782928472) D113 D114 ^ D111 L0 +error(8.082310329996922739e-05) D113 D114 ^ D115 L0 ^ D103 L0 +error(0.02813785258089051763) D113 D121 +error(0.0003388902238148529386) D113 ^ D101 ^ D103 L0 +error(0.0006832900745178635852) D113 ^ D101 ^ D111 L0 +error(0.001350035395769679913) D113 ^ D111 L0 ^ D103 L0 +error(0.01000000000000000021) D114 +error(0.002884869361548767028) D114 D121 +error(0.002580466891419589195) D114 D121 ^ D111 L0 +error(0.0001650804436761054155) D114 D121 ^ D123 L0 +error(0.0002393782181347870049) D114 D121 ^ D123 L0 ^ D111 L0 +error(0.03294067098300872132) D114 D122 +error(0.001943074169913701745) D114 D122 ^ D111 L0 +error(0.001599991943626082698) D114 D122 ^ D123 L0 +error(0.0001515230753416762089) D114 ^ D102 ^ D104 +error(0.000788341572716253023) D114 ^ D102 ^ D112 +error(0.0008276414227760997729) D114 ^ D112 +error(0.01315587053214196597) D114 ^ D115 L0 +error(0.001908195929330935891) D114 ^ D123 L0 +error(0.00279910853068579546) D115 D123 ^ D114 +error(0.02328219348452528065) D115 D123 +error(0.006831311480691601608) D115 L0 +error(0.005000000000000000104) D116 +error(0.01758233121581995531) D116 D119 +error(0.018630937368897732) D116 D119 ^ D117 +error(0.02871156280340753097) D116 D124 +error(0.00780815846828183599) D116 D124 ^ D125 +error(0.007153231238404039044) D116 D127 +error(0.005375979670614491369) D116 D127 ^ D117 +error(0.005058268074058409891) D116 D127 ^ D125 +error(0.00394717350721251678) D116 D127 ^ D125 ^ D117 +error(0.003465850790784312518) D116 D128 +error(0.0005143833321292933447) D116 D128 ^ D117 +error(0.002876529674571028442) D116 D128 ^ D117 D125 +error(0.0007942128998157770969) D116 D128 ^ D125 +error(0.005000000000000000104) D116 ^ D117 +error(0.005750209958349530859) D117 D125 ^ D116 +error(0.01000000000000000021) D117 +error(0.007086946948513330596) D117 D118 +error(0.0006238927402069643219) D117 D118 ^ D116 +error(0.0004105847966655892627) D117 D118 ^ D119 D120 +error(0.0007828344655542978509) D117 D118 ^ D119 D128 +error(0.01581328579132421433) D117 D118 ^ D120 +error(0.00494375633750265657) D117 D118 ^ D120 D128 +error(0.003393827644446323864) D117 D118 ^ D128 +error(0.0006534034225632598739) D117 D118 ^ D128 ^ D116 +error(0.02062339933464504491) D117 D122 +error(0.01288188014151966237) D117 D122 ^ D119 D120 +error(0.04396706115112597457) D117 D125 +error(0.003148640825778311041) D117 D125 ^ D127 D128 +error(0.004457305918183190885) D117 D125 ^ D128 +error(0.002592037799150079605) D117 D129 +error(0.002361773227960759381) D117 D129 ^ D119 D127 +error(0.0001938228754241966094) D117 D129 ^ D119 D128 +error(1.621830662966448254e-05) D117 D129 ^ D127 D128 +error(0.003802769585386780397) D117 D130 +error(0.001746806706075307867) D117 D130 ^ D119 D120 +error(0.0005311637132062851235) D117 D130 ^ D119 D127 +error(0.001817391512378880875) D117 D130 ^ D119 D128 +error(0.0006222692603779620855) D117 D130 ^ D120 D128 +error(0.002045304987410750779) D117 D130 ^ D127 D128 +error(0.00857253409893688964) D119 D127 ^ D117 +error(0.005000000000000000104) D118 +error(0.006606796944896995566) D118 D125 +error(0.000704960016748328879) D118 D125 ^ D116 +error(0.006287543697248259601) D118 D125 ^ D128 +error(0.000449692248015587197) D118 D125 ^ D128 ^ D116 +error(0.02663509319854607052) D118 D126 +error(0.01148756595076530843) D118 D126 ^ D128 +error(0.002334482549926380178) D118 D130 +error(0.0003978826477665259754) D118 D130 ^ D119 D120 +error(0.0002737165648862705924) D118 D130 ^ D119 D128 +error(0.002068033714909272777) D118 D130 ^ D120 D128 +error(0.01424208680070905043) D118 ^ D120 +error(0.002443183151416508051) D118 ^ D128 ^ D120 +error(0.008784999497050870881) D119 D120 +error(0.0006857174321991492665) D119 D120 ^ D109 +error(0.0003139585944870919645) D119 D120 ^ D117 +error(0.0004579355063318815591) D119 D120 ^ D122 +error(0.001492505153860175342) D119 D120 ^ D122 D130 +error(0.0004924974353153731017) D119 D120 ^ D130 +error(0.02705246472289643891) D119 D127 +error(0.003366488634455377504) D119 D127 ^ D129 D130 +error(0.003526255318013517704) D119 D128 +error(0.0001435589488185642817) D119 D128 ^ D129 D130 +error(0.001347669444277145795) D119 D131 +error(0.0002232335845856165768) D119 D131 ^ D122 +error(0.001354163541712518617) D119 D131 ^ D122 D130 +error(0.0002151159521495095081) D119 D131 ^ D130 +error(0.01000000000000000021) D119 L0 +error(0.008786260643692726455) D119 L0 ^ D121 +error(0.003908352668093685763) D121 D129 ^ D119 L0 +error(0.01000000000000000021) D120 +error(0.02105258409621241916) D120 D123 +error(0.02067786399216172549) D120 D123 ^ D122 +error(0.03381280047858732651) D120 D128 +error(0.002570324767123230523) D120 D128 ^ D130 +error(0.0108162808865761486) D120 D131 +error(0.002409659071988749356) D120 D131 ^ D122 +error(0.00556538258508117601) D120 D131 ^ D130 +error(0.0008915217994390704347) D120 D131 ^ D130 ^ D122 +error(0.005000000000000000104) D121 +error(0.009070665716435149378) D121 D122 +error(0.003740932971020226663) D121 D122 ^ D111 L0 +error(0.01250289484782928472) D121 D122 ^ D119 L0 +error(8.082310329996922739e-05) D121 D122 ^ D123 L0 ^ D111 L0 +error(0.02813785258089051763) D121 D129 +error(0.0003388902238148529386) D121 ^ D109 ^ D111 L0 +error(0.0006832900745178635852) D121 ^ D109 ^ D119 L0 +error(0.001350035395769679913) D121 ^ D119 L0 ^ D111 L0 +error(0.01000000000000000021) D122 +error(0.002884869361548767028) D122 D129 +error(0.002580466891419589195) D122 D129 ^ D119 L0 +error(0.0001650804436761054155) D122 D129 ^ D131 L0 +error(0.0002393782181347870049) D122 D129 ^ D131 L0 ^ D119 L0 +error(0.03294067098300872132) D122 D130 +error(0.001943074169913701745) D122 D130 ^ D119 L0 +error(0.001599991943626082698) D122 D130 ^ D131 L0 +error(0.0001515230753416762089) D122 ^ D110 ^ D112 +error(0.000788341572716253023) D122 ^ D110 ^ D120 +error(0.0008276414227760997729) D122 ^ D120 +error(0.01315587053214196597) D122 ^ D123 L0 +error(0.001908195929330935891) D122 ^ D131 L0 +error(0.00279910853068579546) D123 D131 ^ D122 +error(0.02328219348452528065) D123 D131 +error(0.006831311480691601608) D123 L0 +error(0.005000000000000000104) D124 +error(0.01758233121581995531) D124 D127 +error(0.018630937368897732) D124 D127 ^ D125 +error(0.02871156280340753097) D124 D132 +error(0.00780815846828183599) D124 D132 ^ D133 +error(0.007153231238404039044) D124 D135 +error(0.005375979670614491369) D124 D135 ^ D125 +error(0.005058268074058409891) D124 D135 ^ D133 +error(0.00394717350721251678) D124 D135 ^ D133 ^ D125 +error(0.003465850790784312518) D124 D136 +error(0.0005143833321292933447) D124 D136 ^ D125 +error(0.002876529674571028442) D124 D136 ^ D125 D133 +error(0.0007942128998157770969) D124 D136 ^ D133 +error(0.005000000000000000104) D124 ^ D125 +error(0.005750209958349530859) D125 D133 ^ D124 +error(0.01000000000000000021) D125 +error(0.007086946948513330596) D125 D126 +error(0.0006238927402069643219) D125 D126 ^ D124 +error(0.0004105847966655892627) D125 D126 ^ D127 D128 +error(0.0007828344655542978509) D125 D126 ^ D127 D136 +error(0.01581328579132421433) D125 D126 ^ D128 +error(0.00494375633750265657) D125 D126 ^ D128 D136 +error(0.003393827644446323864) D125 D126 ^ D136 +error(0.0006534034225632598739) D125 D126 ^ D136 ^ D124 +error(0.02062339933464504491) D125 D130 +error(0.01288188014151966237) D125 D130 ^ D127 D128 +error(0.04396706115112597457) D125 D133 +error(0.003148640825778311041) D125 D133 ^ D135 D136 +error(0.004457305918183190885) D125 D133 ^ D136 +error(0.002592037799150079605) D125 D137 +error(0.002361773227960759381) D125 D137 ^ D127 D135 +error(0.0001938228754241966094) D125 D137 ^ D127 D136 +error(1.621830662966448254e-05) D125 D137 ^ D135 D136 +error(0.003802769585386780397) D125 D138 +error(0.001746806706075307867) D125 D138 ^ D127 D128 +error(0.0005311637132062851235) D125 D138 ^ D127 D135 +error(0.001817391512378880875) D125 D138 ^ D127 D136 +error(0.0006222692603779620855) D125 D138 ^ D128 D136 +error(0.002045304987410750779) D125 D138 ^ D135 D136 +error(0.00857253409893688964) D127 D135 ^ D125 +error(0.005000000000000000104) D126 +error(0.006606796944896995566) D126 D133 +error(0.000704960016748328879) D126 D133 ^ D124 +error(0.006287543697248259601) D126 D133 ^ D136 +error(0.000449692248015587197) D126 D133 ^ D136 ^ D124 +error(0.02663509319854607052) D126 D134 +error(0.01148756595076530843) D126 D134 ^ D136 +error(0.002334482549926380178) D126 D138 +error(0.0003978826477665259754) D126 D138 ^ D127 D128 +error(0.0002737165648862705924) D126 D138 ^ D127 D136 +error(0.002068033714909272777) D126 D138 ^ D128 D136 +error(0.01424208680070905043) D126 ^ D128 +error(0.002443183151416508051) D126 ^ D136 ^ D128 +error(0.008784999497050870881) D127 D128 +error(0.0006857174321991492665) D127 D128 ^ D117 +error(0.0003139585944870919645) D127 D128 ^ D125 +error(0.0004579355063318815591) D127 D128 ^ D130 +error(0.001492505153860175342) D127 D128 ^ D130 D138 +error(0.0004924974353153731017) D127 D128 ^ D138 +error(0.02705246472289643891) D127 D135 +error(0.003366488634455377504) D127 D135 ^ D137 D138 +error(0.003526255318013517704) D127 D136 +error(0.0001435589488185642817) D127 D136 ^ D137 D138 +error(0.001347669444277145795) D127 D139 +error(0.0002232335845856165768) D127 D139 ^ D130 +error(0.001354163541712518617) D127 D139 ^ D130 D138 +error(0.0002151159521495095081) D127 D139 ^ D138 +error(0.01000000000000000021) D127 L0 +error(0.008786260643692726455) D127 L0 ^ D129 +error(0.003908352668093685763) D129 D137 ^ D127 L0 +error(0.01000000000000000021) D128 +error(0.02105258409621241916) D128 D131 +error(0.02067786399216172549) D128 D131 ^ D130 +error(0.03381280047858732651) D128 D136 +error(0.002570324767123230523) D128 D136 ^ D138 +error(0.0108162808865761486) D128 D139 +error(0.002409659071988749356) D128 D139 ^ D130 +error(0.00556538258508117601) D128 D139 ^ D138 +error(0.0008915217994390704347) D128 D139 ^ D138 ^ D130 +error(0.005000000000000000104) D129 +error(0.009070665716435149378) D129 D130 +error(0.003740932971020226663) D129 D130 ^ D119 L0 +error(0.01250289484782928472) D129 D130 ^ D127 L0 +error(8.082310329996922739e-05) D129 D130 ^ D131 L0 ^ D119 L0 +error(0.02813785258089051763) D129 D137 +error(0.0003388902238148529386) D129 ^ D117 ^ D119 L0 +error(0.0006832900745178635852) D129 ^ D117 ^ D127 L0 +error(0.001350035395769679913) D129 ^ D127 L0 ^ D119 L0 +error(0.01000000000000000021) D130 +error(0.002884869361548767028) D130 D137 +error(0.002580466891419589195) D130 D137 ^ D127 L0 +error(0.0001650804436761054155) D130 D137 ^ D139 L0 +error(0.0002393782181347870049) D130 D137 ^ D139 L0 ^ D127 L0 +error(0.03294067098300872132) D130 D138 +error(0.001943074169913701745) D130 D138 ^ D127 L0 +error(0.001599991943626082698) D130 D138 ^ D139 L0 +error(0.0001515230753416762089) D130 ^ D118 ^ D120 +error(0.000788341572716253023) D130 ^ D118 ^ D128 +error(0.0008276414227760997729) D130 ^ D128 +error(0.01315587053214196597) D130 ^ D131 L0 +error(0.001908195929330935891) D130 ^ D139 L0 +error(0.00279910853068579546) D131 D139 ^ D130 +error(0.02328219348452528065) D131 D139 +error(0.006831311480691601608) D131 L0 +error(0.005000000000000000104) D132 +error(0.01758233121581995531) D132 D135 +error(0.018630937368897732) D132 D135 ^ D133 +error(0.02871156280340753097) D132 D140 +error(0.00780815846828183599) D132 D140 ^ D141 +error(0.007153231238404039044) D132 D143 +error(0.005375979670614491369) D132 D143 ^ D133 +error(0.005058268074058409891) D132 D143 ^ D141 +error(0.00394717350721251678) D132 D143 ^ D141 ^ D133 +error(0.003465850790784312518) D132 D144 +error(0.0005143833321292933447) D132 D144 ^ D133 +error(0.002876529674571028442) D132 D144 ^ D133 D141 +error(0.0007942128998157770969) D132 D144 ^ D141 +error(0.005000000000000000104) D132 ^ D133 +error(0.005750209958349530859) D133 D141 ^ D132 +error(0.01000000000000000021) D133 +error(0.007086946948513330596) D133 D134 +error(0.0006238927402069643219) D133 D134 ^ D132 +error(0.0004105847966655892627) D133 D134 ^ D135 D136 +error(0.0007828344655542978509) D133 D134 ^ D135 D144 +error(0.01581328579132421433) D133 D134 ^ D136 +error(0.00494375633750265657) D133 D134 ^ D136 D144 +error(0.003393827644446323864) D133 D134 ^ D144 +error(0.0006534034225632598739) D133 D134 ^ D144 ^ D132 +error(0.02062339933464504491) D133 D138 +error(0.01288188014151966237) D133 D138 ^ D135 D136 +error(0.04396706115112597457) D133 D141 +error(0.003148640825778311041) D133 D141 ^ D143 D144 +error(0.004457305918183190885) D133 D141 ^ D144 +error(0.002592037799150079605) D133 D145 +error(0.002361773227960759381) D133 D145 ^ D135 D143 +error(0.0001938228754241966094) D133 D145 ^ D135 D144 +error(1.621830662966448254e-05) D133 D145 ^ D143 D144 +error(0.003802769585386780397) D133 D146 +error(0.001746806706075307867) D133 D146 ^ D135 D136 +error(0.0005311637132062851235) D133 D146 ^ D135 D143 +error(0.001817391512378880875) D133 D146 ^ D135 D144 +error(0.0006222692603779620855) D133 D146 ^ D136 D144 +error(0.002045304987410750779) D133 D146 ^ D143 D144 +error(0.00857253409893688964) D135 D143 ^ D133 +error(0.005000000000000000104) D134 +error(0.006606796944896995566) D134 D141 +error(0.000704960016748328879) D134 D141 ^ D132 +error(0.006287543697248259601) D134 D141 ^ D144 +error(0.000449692248015587197) D134 D141 ^ D144 ^ D132 +error(0.02663509319854607052) D134 D142 +error(0.01148756595076530843) D134 D142 ^ D144 +error(0.002334482549926380178) D134 D146 +error(0.0003978826477665259754) D134 D146 ^ D135 D136 +error(0.0002737165648862705924) D134 D146 ^ D135 D144 +error(0.002068033714909272777) D134 D146 ^ D136 D144 +error(0.01424208680070905043) D134 ^ D136 +error(0.002443183151416508051) D134 ^ D144 ^ D136 +error(0.008784999497050870881) D135 D136 +error(0.0006857174321991492665) D135 D136 ^ D125 +error(0.0003139585944870919645) D135 D136 ^ D133 +error(0.0004579355063318815591) D135 D136 ^ D138 +error(0.001492505153860175342) D135 D136 ^ D138 D146 +error(0.0004924974353153731017) D135 D136 ^ D146 +error(0.02705246472289643891) D135 D143 +error(0.003366488634455377504) D135 D143 ^ D145 D146 +error(0.003526255318013517704) D135 D144 +error(0.0001435589488185642817) D135 D144 ^ D145 D146 +error(0.001347669444277145795) D135 D147 +error(0.0002232335845856165768) D135 D147 ^ D138 +error(0.001354163541712518617) D135 D147 ^ D138 D146 +error(0.0002151159521495095081) D135 D147 ^ D146 +error(0.01000000000000000021) D135 L0 +error(0.008786260643692726455) D135 L0 ^ D137 +error(0.003908352668093685763) D137 D145 ^ D135 L0 +error(0.01000000000000000021) D136 +error(0.02105258409621241916) D136 D139 +error(0.02067786399216172549) D136 D139 ^ D138 +error(0.03381280047858732651) D136 D144 +error(0.002570324767123230523) D136 D144 ^ D146 +error(0.0108162808865761486) D136 D147 +error(0.002409659071988749356) D136 D147 ^ D138 +error(0.00556538258508117601) D136 D147 ^ D146 +error(0.0008915217994390704347) D136 D147 ^ D146 ^ D138 +error(0.005000000000000000104) D137 +error(0.009070665716435149378) D137 D138 +error(0.003740932971020226663) D137 D138 ^ D127 L0 +error(0.01250289484782928472) D137 D138 ^ D135 L0 +error(8.082310329996922739e-05) D137 D138 ^ D139 L0 ^ D127 L0 +error(0.02813785258089051763) D137 D145 +error(0.0003388902238148529386) D137 ^ D125 ^ D127 L0 +error(0.0006832900745178635852) D137 ^ D125 ^ D135 L0 +error(0.001350035395769679913) D137 ^ D135 L0 ^ D127 L0 +error(0.01000000000000000021) D138 +error(0.002884869361548767028) D138 D145 +error(0.002580466891419589195) D138 D145 ^ D135 L0 +error(0.0001650804436761054155) D138 D145 ^ D147 L0 +error(0.0002393782181347870049) D138 D145 ^ D147 L0 ^ D135 L0 +error(0.03294067098300872132) D138 D146 +error(0.001943074169913701745) D138 D146 ^ D135 L0 +error(0.001599991943626082698) D138 D146 ^ D147 L0 +error(0.0001515230753416762089) D138 ^ D126 ^ D128 +error(0.000788341572716253023) D138 ^ D126 ^ D136 +error(0.0008276414227760997729) D138 ^ D136 +error(0.01315587053214196597) D138 ^ D139 L0 +error(0.001908195929330935891) D138 ^ D147 L0 +error(0.00279910853068579546) D139 D147 ^ D138 +error(0.02328219348452528065) D139 D147 +error(0.006831311480691601608) D139 L0 +error(0.005000000000000000104) D140 +error(0.02052683238970772622) D140 D143 +error(0.01907983745964121278) D140 D143 ^ D141 +error(0.04847148698325226546) D140 D148 +error(0.0109774473833447548) D140 D149 +error(0.01093180479605840826) D140 D149 ^ D141 +error(0.003308719251141417888) D140 D150 +error(0.005746379186089213727) D140 D150 ^ D141 +error(0.009909195756505832786) D140 ^ D141 +error(0.00060745549554961449) D140 ^ D142 +error(0.03475744863181830235) D141 +error(0.007612616211767028393) D141 D142 +error(0.01607138848762620226) D141 D142 ^ D144 +error(0.00776989833022502345) D141 D142 ^ D144 D150 +error(0.006089036299156575308) D141 D142 ^ D150 +error(0.02509198120328706011) D141 D146 +error(0.01208373369865412689) D141 D146 ^ D143 D144 +error(0.0007925051326377314078) D141 ^ D140 ^ D142 +error(0.01435519752668232632) D143 D149 ^ D141 +error(0.00105845310718356996) D141 ^ D150 +error(9.900324363556511941e-05) D141 ^ D150 ^ D140 ^ D142 +error(0.03901685038406289135) D142 +error(0.01394366697824103891) D142 ^ D144 +error(0.01247267367999018925) D142 ^ D150 +error(0.006511744728221865487) D144 D150 ^ D142 +error(0.00810161328543855877) D143 D144 +error(0.0006857174321991492665) D143 D144 ^ D133 +error(0.00213855801210932053) D143 D144 ^ D141 +error(0.002875092877093445281) D143 D144 ^ D142 +error(0.001871482012574328131) D143 D144 ^ D142 ^ D141 +error(2.432879714034532613e-06) D143 D144 ^ D145 D146 +error(0.002915303934833642086) D143 D144 ^ D146 +error(0.02751922428533337683) D143 D149 +error(0.0003849353239824988555) D143 D150 +error(0.003223674569938689283) D143 D150 ^ D141 +error(0.001160861002547565034) D143 D150 ^ D142 +error(0.0004047898649347916118) D143 D151 +error(0.002062947640157799904) D143 D151 ^ D146 +error(0.01000000000000000021) D143 L0 +error(0.01411702152581816201) D143 L0 ^ D145 +error(0.00458125274675752394) D143 L0 ^ D146 +error(0.01000000000000000021) D144 +error(0.02110902632998081299) D144 D147 +error(0.02432237371939241152) D144 D147 ^ D146 +error(0.03527783518464427948) D144 D150 +error(0.0009018356841323849939) D144 D150 ^ D141 +error(0.01603405417326845411) D144 D151 +error(0.001989911093886875728) D144 D151 ^ D146 +error(0.03201757602897907506) D145 +error(0.01245450378186997546) D145 D146 +error(0.003740932971020226663) D145 D146 ^ D135 L0 +error(0.0120395555419215497) D145 D146 ^ D143 L0 +error(8.082310329996922739e-05) D145 D146 ^ D147 L0 ^ D135 L0 +error(0.0003388902238148529386) D145 ^ D133 ^ D135 L0 +error(0.0006832900745178635852) D145 ^ D133 ^ D143 L0 +error(0.001350035395769679913) D145 ^ D143 L0 ^ D135 L0 +error(0.04058541042655858938) D146 +error(0.0001515230753416762089) D146 ^ D134 ^ D136 +error(0.000788341572716253023) D146 ^ D134 ^ D144 +error(0.0007792783519982698351) D146 ^ D144 +error(0.01564491074254385425) D146 ^ D147 L0 +error(0.005509800726297205999) D146 ^ D151 L0 +error(0.002878810436957802716) D147 D151 ^ D146 +error(0.02255773806803930762) D147 D151 +error(0.006745516140951990543) D147 L0 +error(0.02658745653026841835) D148 +error(0.03106125480779098336) D148 D149 +error(0.01341792840552933144) D149 D150 +error(0.006632585026767919348) D149 D150 ^ D141 +error(0.01000000000000000021) D149 L0 +error(0.02423326106847275424) D150 +error(0.01966797870506697965) D150 D151 +error(0.0006213482089820433416) D150 ^ D140 ^ D142 +error(0.01952065638923524207) D151 L0 +detector(1, 4, 0) D0 +detector(3, 4, 0) D1 +detector(3, 6, 0) D2 +detector(5, 6, 0) D3 +detector(1, 4, 1) D4 +detector(2, 5, 1) D5 +detector(2, 7, 1) D6 +detector(3, 4, 1) D7 +detector(3, 6, 1) D8 +detector(4, 3, 1) D9 +detector(4, 5, 1) D10 +detector(5, 6, 1) D11 +detector(1, 4, 2) D12 +detector(2, 5, 2) D13 +detector(2, 7, 2) D14 +detector(3, 4, 2) D15 +detector(3, 6, 2) D16 +detector(4, 3, 2) D17 +detector(4, 5, 2) D18 +detector(5, 6, 2) D19 +detector(1, 4, 3) D20 +detector(2, 5, 3) D21 +detector(2, 7, 3) D22 +detector(3, 4, 3) D23 +detector(3, 6, 3) D24 +detector(4, 3, 3) D25 +detector(4, 5, 3) D26 +detector(5, 6, 3) D27 +detector(1, 4, 4) D28 +detector(2, 5, 4) D29 +detector(2, 7, 4) D30 +detector(3, 4, 4) D31 +detector(3, 6, 4) D32 +detector(4, 3, 4) D33 +detector(4, 5, 4) D34 +detector(5, 6, 4) D35 +detector(1, 4, 5) D36 +detector(2, 5, 5) D37 +detector(2, 7, 5) D38 +detector(3, 4, 5) D39 +detector(3, 6, 5) D40 +detector(4, 3, 5) D41 +detector(4, 5, 5) D42 +detector(5, 6, 5) D43 +detector(1, 4, 6) D44 +detector(2, 5, 6) D45 +detector(2, 7, 6) D46 +detector(3, 4, 6) D47 +detector(3, 6, 6) D48 +detector(4, 3, 6) D49 +detector(4, 5, 6) D50 +detector(5, 6, 6) D51 +detector(1, 4, 7) D52 +detector(2, 5, 7) D53 +detector(2, 7, 7) D54 +detector(3, 4, 7) D55 +detector(3, 6, 7) D56 +detector(4, 3, 7) D57 +detector(4, 5, 7) D58 +detector(5, 6, 7) D59 +detector(1, 4, 8) D60 +detector(2, 5, 8) D61 +detector(2, 7, 8) D62 +detector(3, 4, 8) D63 +detector(3, 6, 8) D64 +detector(4, 3, 8) D65 +detector(4, 5, 8) D66 +detector(5, 6, 8) D67 +detector(1, 4, 9) D68 +detector(2, 5, 9) D69 +detector(2, 7, 9) D70 +detector(3, 4, 9) D71 +detector(3, 6, 9) D72 +detector(4, 3, 9) D73 +detector(4, 5, 9) D74 +detector(5, 6, 9) D75 +detector(1, 4, 10) D76 +detector(2, 5, 10) D77 +detector(2, 7, 10) D78 +detector(3, 4, 10) D79 +detector(3, 6, 10) D80 +detector(4, 3, 10) D81 +detector(4, 5, 10) D82 +detector(5, 6, 10) D83 +detector(1, 4, 11) D84 +detector(2, 5, 11) D85 +detector(2, 7, 11) D86 +detector(3, 4, 11) D87 +detector(3, 6, 11) D88 +detector(4, 3, 11) D89 +detector(4, 5, 11) D90 +detector(5, 6, 11) D91 +detector(1, 4, 12) D92 +detector(2, 5, 12) D93 +detector(2, 7, 12) D94 +detector(3, 4, 12) D95 +detector(3, 6, 12) D96 +detector(4, 3, 12) D97 +detector(4, 5, 12) D98 +detector(5, 6, 12) D99 +detector(1, 4, 13) D100 +detector(2, 5, 13) D101 +detector(2, 7, 13) D102 +detector(3, 4, 13) D103 +detector(3, 6, 13) D104 +detector(4, 3, 13) D105 +detector(4, 5, 13) D106 +detector(5, 6, 13) D107 +detector(1, 4, 14) D108 +detector(2, 5, 14) D109 +detector(2, 7, 14) D110 +detector(3, 4, 14) D111 +detector(3, 6, 14) D112 +detector(4, 3, 14) D113 +detector(4, 5, 14) D114 +detector(5, 6, 14) D115 +detector(1, 4, 15) D116 +detector(2, 5, 15) D117 +detector(2, 7, 15) D118 +detector(3, 4, 15) D119 +detector(3, 6, 15) D120 +detector(4, 3, 15) D121 +detector(4, 5, 15) D122 +detector(5, 6, 15) D123 +detector(1, 4, 16) D124 +detector(2, 5, 16) D125 +detector(2, 7, 16) D126 +detector(3, 4, 16) D127 +detector(3, 6, 16) D128 +detector(4, 3, 16) D129 +detector(4, 5, 16) D130 +detector(5, 6, 16) D131 +detector(1, 4, 17) D132 +detector(2, 5, 17) D133 +detector(2, 7, 17) D134 +detector(3, 4, 17) D135 +detector(3, 6, 17) D136 +detector(4, 3, 17) D137 +detector(4, 5, 17) D138 +detector(5, 6, 17) D139 +detector(1, 4, 18) D140 +detector(2, 5, 18) D141 +detector(2, 7, 18) D142 +detector(3, 4, 18) D143 +detector(3, 6, 18) D144 +detector(4, 3, 18) D145 +detector(4, 5, 18) D146 +detector(5, 6, 18) D147 +detector(1, 4, 19) D148 +detector(3, 4, 19) D149 +detector(3, 6, 19) D150 +detector(5, 6, 19) D151 diff --git a/shared/package-files/ea/ea8841a03587c242309491d7d2444e25fb586f442d2a177694a72930aef7d970/blob b/shared/package-files/ea/ea8841a03587c242309491d7d2444e25fb586f442d2a177694a72930aef7d970/blob new file mode 100644 index 0000000000000000000000000000000000000000..19c73a6a933f9b307b97f8342c1d0c7be627ff6f --- /dev/null +++ b/shared/package-files/ea/ea8841a03587c242309491d7d2444e25fb586f442d2a177694a72930aef7d970/blob @@ -0,0 +1,44 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::_foreach_cosh(Tensor[] self) -> Tensor[] +inline ::std::vector _foreach_cosh(at::TensorList self) { + return at::_ops::_foreach_cosh::call(self); +} + +// aten::_foreach_cosh_(Tensor(a!)[] self) -> () +inline void _foreach_cosh_(at::TensorList self) { + return at::_ops::_foreach_cosh_::call(self); +} + +// aten::_foreach_cosh.out(Tensor[] self, *, Tensor(a!)[] out) -> () +inline void _foreach_cosh_out(at::TensorList out, at::TensorList self) { + return at::_ops::_foreach_cosh_out::call(self, out); +} +// aten::_foreach_cosh.out(Tensor[] self, *, Tensor(a!)[] out) -> () +inline void _foreach_cosh_outf(at::TensorList self, at::TensorList out) { + return at::_ops::_foreach_cosh_out::call(self, out); +} + +} diff --git a/shared/package-files/ea/ea89336b1ee1469deeedee83cd483e6681bf8c452f0763fde0229d7e4696d148/blob b/shared/package-files/ea/ea89336b1ee1469deeedee83cd483e6681bf8c452f0763fde0229d7e4696d148/blob new file mode 100644 index 0000000000000000000000000000000000000000..ff484b19f1bf1e3cea32192a2e4cad37162776ed --- /dev/null +++ b/shared/package-files/ea/ea89336b1ee1469deeedee83cd483e6681bf8c452f0763fde0229d7e4696d148/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API at::Tensor sub(const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1); +TORCH_API at::Tensor & sub_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1); +TORCH_API at::Tensor & sub_outf(const at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha, at::Tensor & out); +TORCH_API at::Tensor & sub_(at::Tensor & self, const at::Scalar & other, const at::Scalar & alpha=1); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/ea/ea8d24b0aed8a9288c344ade848ad284032c970382aadb25620fea66959584ba/blob b/shared/package-files/ea/ea8d24b0aed8a9288c344ade848ad284032c970382aadb25620fea66959584ba/blob new file mode 100644 index 0000000000000000000000000000000000000000..31b72937714058aa9c33310ab800daab956f6a25 --- /dev/null +++ b/shared/package-files/ea/ea8d24b0aed8a9288c344ade848ad284032c970382aadb25620fea66959584ba/blob @@ -0,0 +1,558 @@ +""" +Values are the "values" that Python would return. However Values are at the +same time also the "values" that a user is currently sitting in. + +A ValueSet is typically used to specify the return of a function or any other +static analysis operation. In jedi there are always multiple returns and not +just one. +""" +from functools import reduce +from operator import add +from itertools import zip_longest + +from parso.python.tree import Name + +from jedi import debug +from jedi.parser_utils import clean_scope_docstring +from jedi.inference.helpers import SimpleGetItemNotFound +from jedi.inference.utils import safe_property +from jedi.inference.cache import inference_state_as_method_param_cache +from jedi.cache import memoize_method + +sentinel = object() + + +class HasNoContext(Exception): + pass + + +class HelperValueMixin: + def get_root_context(self): + value = self + if value.parent_context is None: + return value.as_context() + + while True: + if value.parent_context is None: + return value + value = value.parent_context + + def execute(self, arguments): + return self.inference_state.execute(self, arguments=arguments) + + def execute_with_values(self, *value_list): + from jedi.inference.arguments import ValuesArguments + arguments = ValuesArguments([ValueSet([value]) for value in value_list]) + return self.inference_state.execute(self, arguments) + + def execute_annotation(self): + return self.execute_with_values() + + def gather_annotation_classes(self): + return ValueSet([self]) + + def merge_types_of_iterate(self, contextualized_node=None, is_async=False): + return ValueSet.from_sets( + lazy_value.infer() + for lazy_value in self.iterate(contextualized_node, is_async) + ) + + def _get_value_filters(self, name_or_str): + origin_scope = name_or_str if isinstance(name_or_str, Name) else None + yield from self.get_filters(origin_scope=origin_scope) + # This covers the case where a stub files are incomplete. + if self.is_stub(): + from jedi.inference.gradual.conversion import convert_values + for c in convert_values(ValueSet({self})): + yield from c.get_filters() + + def goto(self, name_or_str, name_context=None, analysis_errors=True): + from jedi.inference import finder + filters = self._get_value_filters(name_or_str) + names = finder.filter_name(filters, name_or_str) + debug.dbg('context.goto %s in (%s): %s', name_or_str, self, names) + return names + + def py__getattribute__(self, name_or_str, name_context=None, position=None, + analysis_errors=True): + """ + :param position: Position of the last statement -> tuple of line, column + """ + if name_context is None: + name_context = self + names = self.goto(name_or_str, name_context, analysis_errors) + values = ValueSet.from_sets(name.infer() for name in names) + if not values: + n = name_or_str.value if isinstance(name_or_str, Name) else name_or_str + values = self.py__getattribute__alternatives(n) + + if not names and not values and analysis_errors: + if isinstance(name_or_str, Name): + from jedi.inference import analysis + analysis.add_attribute_error( + name_context, self, name_or_str) + debug.dbg('context.names_to_types: %s -> %s', names, values) + return values + + def py__await__(self): + await_value_set = self.py__getattribute__("__await__") + if not await_value_set: + debug.warning('Tried to run __await__ on value %s', self) + return await_value_set.execute_with_values() + + def py__name__(self): + return self.name.string_name + + def iterate(self, contextualized_node=None, is_async=False): + debug.dbg('iterate %s', self) + if is_async: + from jedi.inference.lazy_value import LazyKnownValues + # TODO if no __aiter__ values are there, error should be: + # TypeError: 'async for' requires an object with __aiter__ method, got int + return iter([ + LazyKnownValues( + self.py__getattribute__('__aiter__').execute_with_values() + .py__getattribute__('__anext__').execute_with_values() + .py__getattribute__('__await__').execute_with_values() + .py__stop_iteration_returns() + ) # noqa: E124 + ]) + return self.py__iter__(contextualized_node) + + def is_sub_class_of(self, class_value): + with debug.increase_indent_cm('subclass matching of %s <=> %s' % (self, class_value), + color='BLUE'): + for cls in self.py__mro__(): + if cls.is_same_class(class_value): + debug.dbg('matched subclass True', color='BLUE') + return True + debug.dbg('matched subclass False', color='BLUE') + return False + + def is_same_class(self, class2): + # Class matching should prefer comparisons that are not this function. + if type(class2).is_same_class != HelperValueMixin.is_same_class: + return class2.is_same_class(self) + return self == class2 + + @memoize_method + def as_context(self, *args, **kwargs): + return self._as_context(*args, **kwargs) + + +class Value(HelperValueMixin): + """ + To be implemented by subclasses. + """ + tree_node = None + # Possible values: None, tuple, list, dict and set. Here to deal with these + # very important containers. + array_type = None + api_type = 'not_defined_please_report_bug' + + def __init__(self, inference_state, parent_context=None): + self.inference_state = inference_state + self.parent_context = parent_context + + def py__getitem__(self, index_value_set, contextualized_node): + from jedi.inference import analysis + # TODO this value is probably not right. + analysis.add( + contextualized_node.context, + 'type-error-not-subscriptable', + contextualized_node.node, + message="TypeError: '%s' object is not subscriptable" % self + ) + return NO_VALUES + + def py__simple_getitem__(self, index): + raise SimpleGetItemNotFound + + def py__iter__(self, contextualized_node=None): + if contextualized_node is not None: + from jedi.inference import analysis + analysis.add( + contextualized_node.context, + 'type-error-not-iterable', + contextualized_node.node, + message="TypeError: '%s' object is not iterable" % self) + return iter([]) + + def py__next__(self, contextualized_node=None): + return self.py__iter__(contextualized_node) + + def get_signatures(self): + return [] + + def is_class(self): + return False + + def is_class_mixin(self): + return False + + def is_instance(self): + return False + + def is_function(self): + return False + + def is_module(self): + return False + + def is_namespace(self): + return False + + def is_compiled(self): + return False + + def is_bound_method(self): + return False + + def is_builtins_module(self): + return False + + def py__bool__(self): + """ + Since Wrapper is a super class for classes, functions and modules, + the return value will always be true. + """ + return True + + def py__doc__(self): + try: + self.tree_node.get_doc_node + except AttributeError: + return '' + else: + return clean_scope_docstring(self.tree_node) + + def get_safe_value(self, default=sentinel): + if default is sentinel: + raise ValueError("There exists no safe value for value %s" % self) + return default + + def execute_operation(self, other, operator): + debug.warning("%s not possible between %s and %s", operator, self, other) + return NO_VALUES + + def py__call__(self, arguments): + debug.warning("no execution possible %s", self) + return NO_VALUES + + def py__stop_iteration_returns(self): + debug.warning("Not possible to return the stop iterations of %s", self) + return NO_VALUES + + def py__getattribute__alternatives(self, name_or_str): + """ + For now a way to add values in cases like __getattr__. + """ + return NO_VALUES + + def py__get__(self, instance, class_value): + debug.warning("No __get__ defined on %s", self) + return ValueSet([self]) + + def py__get__on_class(self, calling_instance, instance, class_value): + return NotImplemented + + def get_qualified_names(self): + # Returns Optional[Tuple[str, ...]] + return None + + def is_stub(self): + # The root value knows if it's a stub or not. + return self.parent_context.is_stub() + + def _as_context(self): + raise HasNoContext + + @property + def name(self): + raise NotImplementedError + + def get_type_hint(self, add_class_info=True): + return None + + def infer_type_vars(self, value_set): + """ + When the current instance represents a type annotation, this method + tries to find information about undefined type vars and returns a dict + from type var name to value set. + + This is for example important to understand what `iter([1])` returns. + According to typeshed, `iter` returns an `Iterator[_T]`: + + def iter(iterable: Iterable[_T]) -> Iterator[_T]: ... + + This functions would generate `int` for `_T` in this case, because it + unpacks the `Iterable`. + + Parameters + ---------- + + `self`: represents the annotation of the current parameter to infer the + value for. In the above example, this would initially be the + `Iterable[_T]` of the `iterable` parameter and then, when recursing, + just the `_T` generic parameter. + + `value_set`: represents the actual argument passed to the parameter + we're inferrined for, or (for recursive calls) their types. In the + above example this would first be the representation of the list + `[1]` and then, when recursing, just of `1`. + """ + return {} + + +def iterate_values(values, contextualized_node=None, is_async=False): + """ + Calls `iterate`, on all values but ignores the ordering and just returns + all values that the iterate functions yield. + """ + return ValueSet.from_sets( + lazy_value.infer() + for lazy_value in values.iterate(contextualized_node, is_async=is_async) + ) + + +class _ValueWrapperBase(HelperValueMixin): + @safe_property + def name(self): + from jedi.inference.names import ValueName + wrapped_name = self._wrapped_value.name + if wrapped_name.tree_name is not None: + return ValueName(self, wrapped_name.tree_name) + else: + from jedi.inference.compiled import CompiledValueName + return CompiledValueName(self, wrapped_name.string_name) + + @classmethod + @inference_state_as_method_param_cache() + def create_cached(cls, inference_state, *args, **kwargs): + return cls(*args, **kwargs) + + def __getattr__(self, name): + assert name != '_wrapped_value', 'Problem with _get_wrapped_value' + return getattr(self._wrapped_value, name) + + +class LazyValueWrapper(_ValueWrapperBase): + @safe_property + @memoize_method + def _wrapped_value(self): + with debug.increase_indent_cm('Resolve lazy value wrapper'): + return self._get_wrapped_value() + + def __repr__(self): + return '<%s>' % (self.__class__.__name__) + + def _get_wrapped_value(self): + raise NotImplementedError + + +class ValueWrapper(_ValueWrapperBase): + def __init__(self, wrapped_value): + self._wrapped_value = wrapped_value + + def __repr__(self): + return '%s(%s)' % (self.__class__.__name__, self._wrapped_value) + + +class TreeValue(Value): + def __init__(self, inference_state, parent_context, tree_node): + super().__init__(inference_state, parent_context) + self.tree_node = tree_node + + def __repr__(self): + return '<%s: %s>' % (self.__class__.__name__, self.tree_node) + + +class ContextualizedNode: + def __init__(self, context, node): + self.context = context + self.node = node + + def get_root_context(self): + return self.context.get_root_context() + + def infer(self): + return self.context.infer_node(self.node) + + def __repr__(self): + return '<%s: %s in %s>' % (self.__class__.__name__, self.node, self.context) + + +def _getitem(value, index_values, contextualized_node): + # The actual getitem call. + result = NO_VALUES + unused_values = set() + for index_value in index_values: + index = index_value.get_safe_value(default=None) + if type(index) in (float, int, str, slice, bytes): + try: + result |= value.py__simple_getitem__(index) + continue + except SimpleGetItemNotFound: + pass + + unused_values.add(index_value) + + # The index was somehow not good enough or simply a wrong type. + # Therefore we now iterate through all the values and just take + # all results. + if unused_values or not index_values: + result |= value.py__getitem__( + ValueSet(unused_values), + contextualized_node + ) + debug.dbg('py__getitem__ result: %s', result) + return result + + +class ValueSet: + def __init__(self, iterable): + self._set = frozenset(iterable) + for value in iterable: + assert not isinstance(value, ValueSet) + + @classmethod + def _from_frozen_set(cls, frozenset_): + self = cls.__new__(cls) + self._set = frozenset_ + return self + + @classmethod + def from_sets(cls, sets): + """ + Used to work with an iterable of set. + """ + aggregated = set() + for set_ in sets: + if isinstance(set_, ValueSet): + aggregated |= set_._set + else: + aggregated |= frozenset(set_) + return cls._from_frozen_set(frozenset(aggregated)) + + def __or__(self, other): + return self._from_frozen_set(self._set | other._set) + + def __and__(self, other): + return self._from_frozen_set(self._set & other._set) + + def __iter__(self): + return iter(self._set) + + def __bool__(self): + return bool(self._set) + + def __len__(self): + return len(self._set) + + def __repr__(self): + return 'S{%s}' % (', '.join(str(s) for s in self._set)) + + def filter(self, filter_func): + return self.__class__(filter(filter_func, self._set)) + + def __getattr__(self, name): + def mapper(*args, **kwargs): + return self.from_sets( + getattr(value, name)(*args, **kwargs) + for value in self._set + ) + return mapper + + def __eq__(self, other): + return self._set == other._set + + def __ne__(self, other): + return not self.__eq__(other) + + def __hash__(self): + return hash(self._set) + + def py__class__(self): + return ValueSet(c.py__class__() for c in self._set) + + def iterate(self, contextualized_node=None, is_async=False): + from jedi.inference.lazy_value import get_merged_lazy_value + type_iters = [c.iterate(contextualized_node, is_async=is_async) for c in self._set] + for lazy_values in zip_longest(*type_iters): + yield get_merged_lazy_value( + [l for l in lazy_values if l is not None] + ) + + def execute(self, arguments): + return ValueSet.from_sets(c.inference_state.execute(c, arguments) for c in self._set) + + def execute_with_values(self, *args, **kwargs): + return ValueSet.from_sets(c.execute_with_values(*args, **kwargs) for c in self._set) + + def goto(self, *args, **kwargs): + return reduce(add, [c.goto(*args, **kwargs) for c in self._set], []) + + def py__getattribute__(self, *args, **kwargs): + return ValueSet.from_sets(c.py__getattribute__(*args, **kwargs) for c in self._set) + + def get_item(self, *args, **kwargs): + return ValueSet.from_sets(_getitem(c, *args, **kwargs) for c in self._set) + + def try_merge(self, function_name): + value_set = self.__class__([]) + for c in self._set: + try: + method = getattr(c, function_name) + except AttributeError: + pass + else: + value_set |= method() + return value_set + + def gather_annotation_classes(self): + return ValueSet.from_sets([c.gather_annotation_classes() for c in self._set]) + + def get_signatures(self): + return [sig for c in self._set for sig in c.get_signatures()] + + def get_type_hint(self, add_class_info=True): + t = [v.get_type_hint(add_class_info=add_class_info) for v in self._set] + type_hints = sorted(filter(None, t)) + if len(type_hints) == 1: + return type_hints[0] + + optional = 'None' in type_hints + if optional: + type_hints.remove('None') + + if len(type_hints) == 0: + return None + elif len(type_hints) == 1: + s = type_hints[0] + else: + s = 'Union[%s]' % ', '.join(type_hints) + if optional: + s = 'Optional[%s]' % s + return s + + def infer_type_vars(self, value_set): + # Circular + from jedi.inference.gradual.annotation import merge_type_var_dicts + + type_var_dict = {} + for value in self._set: + merge_type_var_dicts( + type_var_dict, + value.infer_type_vars(value_set), + ) + return type_var_dict + + +NO_VALUES = ValueSet([]) + + +def iterator_to_value_set(func): + def wrapper(*args, **kwargs): + return ValueSet(func(*args, **kwargs)) + + return wrapper diff --git a/shared/package-files/ea/ea8dbb35b8660d2d18190358cee3e5a847e1663b72fa6f5828a765385e53534c/blob b/shared/package-files/ea/ea8dbb35b8660d2d18190358cee3e5a847e1663b72fa6f5828a765385e53534c/blob new file mode 100644 index 0000000000000000000000000000000000000000..38c4edf1e3969b6644036a8176fee081cf4ddae2 --- /dev/null +++ b/shared/package-files/ea/ea8dbb35b8660d2d18190358cee3e5a847e1663b72fa6f5828a765385e53534c/blob @@ -0,0 +1,361 @@ +"""Functions for generating grid graphs and lattices + +The :func:`grid_2d_graph`, :func:`triangular_lattice_graph`, and +:func:`hexagonal_lattice_graph` functions correspond to the three +`regular tilings of the plane`_, the square, triangular, and hexagonal +tilings, respectively. :func:`grid_graph` and :func:`hypercube_graph` +are similar for arbitrary dimensions. Useful relevant discussion can +be found about `Triangular Tiling`_, and `Square, Hex and Triangle Grids`_ + +.. _regular tilings of the plane: https://en.wikipedia.org/wiki/List_of_regular_polytopes_and_compounds#Euclidean_tilings +.. _Square, Hex and Triangle Grids: http://www-cs-students.stanford.edu/~amitp/game-programming/grids/ +.. _Triangular Tiling: https://en.wikipedia.org/wiki/Triangular_tiling + +""" + +from itertools import repeat +from math import sqrt + +from networkx.classes import set_node_attributes +from networkx.exception import NetworkXError +from networkx.generators.classic import cycle_graph, empty_graph, path_graph +from networkx.relabel import relabel_nodes +from networkx.utils import flatten, nodes_or_number, pairwise + +__all__ = [ + "grid_2d_graph", + "grid_graph", + "hypercube_graph", + "triangular_lattice_graph", + "hexagonal_lattice_graph", +] + + +@nodes_or_number([0, 1]) +def grid_2d_graph(m, n, periodic=False, create_using=None): + """Returns the two-dimensional grid graph. + + The grid graph has each node connected to its four nearest neighbors. + + Parameters + ---------- + m, n : int or iterable container of nodes + If an integer, nodes are from `range(n)`. + If a container, elements become the coordinate of the nodes. + + periodic : bool or iterable + If `periodic` is True, both dimensions are periodic. If False, none + are periodic. If `periodic` is iterable, it should yield 2 bool + values indicating whether the 1st and 2nd axes, respectively, are + periodic. + + create_using : NetworkX graph constructor, optional (default=nx.Graph) + Graph type to create. If graph instance, then cleared before populated. + + Returns + ------- + NetworkX graph + The (possibly periodic) grid graph of the specified dimensions. + + """ + G = empty_graph(0, create_using) + row_name, rows = m + col_name, cols = n + G.add_nodes_from((i, j) for i in rows for j in cols) + G.add_edges_from(((i, j), (pi, j)) for pi, i in pairwise(rows) for j in cols) + G.add_edges_from(((i, j), (i, pj)) for i in rows for pj, j in pairwise(cols)) + + try: + periodic_r, periodic_c = periodic + except TypeError: + periodic_r = periodic_c = periodic + + if periodic_r and len(rows) > 2: + first = rows[0] + last = rows[-1] + G.add_edges_from(((first, j), (last, j)) for j in cols) + if periodic_c and len(cols) > 2: + first = cols[0] + last = cols[-1] + G.add_edges_from(((i, first), (i, last)) for i in rows) + # both directions for directed + if G.is_directed(): + G.add_edges_from((v, u) for u, v in G.edges()) + return G + + +def grid_graph(dim, periodic=False): + """Returns the *n*-dimensional grid graph. + + The dimension *n* is the length of the list `dim` and the size in + each dimension is the value of the corresponding list element. + + Parameters + ---------- + dim : list or tuple of numbers or iterables of nodes + 'dim' is a tuple or list with, for each dimension, either a number + that is the size of that dimension or an iterable of nodes for + that dimension. The dimension of the grid_graph is the length + of `dim`. + + periodic : bool or iterable + If `periodic` is True, all dimensions are periodic. If False all + dimensions are not periodic. If `periodic` is iterable, it should + yield `dim` bool values each of which indicates whether the + corresponding axis is periodic. + + Returns + ------- + NetworkX graph + The (possibly periodic) grid graph of the specified dimensions. + + Examples + -------- + To produce a 2 by 3 by 4 grid graph, a graph on 24 nodes: + + >>> from networkx import grid_graph + >>> G = grid_graph(dim=(2, 3, 4)) + >>> len(G) + 24 + >>> G = grid_graph(dim=(range(7, 9), range(3, 6))) + >>> len(G) + 6 + """ + from networkx.algorithms.operators.product import cartesian_product + + if not dim: + return empty_graph(0) + + try: + func = (cycle_graph if p else path_graph for p in periodic) + except TypeError: + func = repeat(cycle_graph if periodic else path_graph) + + G = next(func)(dim[0]) + for current_dim in dim[1:]: + Gnew = next(func)(current_dim) + G = cartesian_product(Gnew, G) + # graph G is done but has labels of the form (1, (2, (3, 1))) so relabel + H = relabel_nodes(G, flatten) + return H + + +def hypercube_graph(n): + """Returns the *n*-dimensional hypercube graph. + + The nodes are the integers between 0 and ``2 ** n - 1``, inclusive. + + For more information on the hypercube graph, see the Wikipedia + article `Hypercube graph`_. + + .. _Hypercube graph: https://en.wikipedia.org/wiki/Hypercube_graph + + Parameters + ---------- + n : int + The dimension of the hypercube. + The number of nodes in the graph will be ``2 ** n``. + + Returns + ------- + NetworkX graph + The hypercube graph of dimension *n*. + """ + dim = n * [2] + G = grid_graph(dim) + return G + + +def triangular_lattice_graph( + m, n, periodic=False, with_positions=True, create_using=None +): + r"""Returns the $m$ by $n$ triangular lattice graph. + + The `triangular lattice graph`_ is a two-dimensional `grid graph`_ in + which each square unit has a diagonal edge (each grid unit has a chord). + + The returned graph has $m$ rows and $n$ columns of triangles. Rows and + columns include both triangles pointing up and down. Rows form a strip + of constant height. Columns form a series of diamond shapes, staggered + with the columns on either side. Another way to state the size is that + the nodes form a grid of `m+1` rows and `(n + 1) // 2` columns. + The odd row nodes are shifted horizontally relative to the even rows. + + Directed graph types have edges pointed up or right. + + Positions of nodes are computed by default or `with_positions is True`. + The position of each node (embedded in a euclidean plane) is stored in + the graph using equilateral triangles with sidelength 1. + The height between rows of nodes is thus $\sqrt(3)/2$. + Nodes lie in the first quadrant with the node $(0, 0)$ at the origin. + + .. _triangular lattice graph: http://mathworld.wolfram.com/TriangularGrid.html + .. _grid graph: http://www-cs-students.stanford.edu/~amitp/game-programming/grids/ + .. _Triangular Tiling: https://en.wikipedia.org/wiki/Triangular_tiling + + Parameters + ---------- + m : int + The number of rows in the lattice. + + n : int + The number of columns in the lattice. + + periodic : bool (default: False) + If True, join the boundary vertices of the grid using periodic + boundary conditions. The join between boundaries is the final row + and column of triangles. This means there is one row and one column + fewer nodes for the periodic lattice. Periodic lattices require + `m >= 3`, `n >= 5` and are allowed but misaligned if `m` or `n` are odd + + with_positions : bool (default: True) + Store the coordinates of each node in the graph node attribute 'pos'. + The coordinates provide a lattice with equilateral triangles. + Periodic positions shift the nodes vertically in a nonlinear way so + the edges don't overlap so much. + + create_using : NetworkX graph constructor, optional (default=nx.Graph) + Graph type to create. If graph instance, then cleared before populated. + + Returns + ------- + NetworkX graph + The *m* by *n* triangular lattice graph. + """ + H = empty_graph(0, create_using) + if n == 0 or m == 0: + return H + if periodic: + if n < 5 or m < 3: + msg = f"m > 2 and n > 4 required for periodic. m={m}, n={n}" + raise NetworkXError(msg) + + N = (n + 1) // 2 # number of nodes in row + rows = range(m + 1) + cols = range(N + 1) + # Make grid + H.add_edges_from(((i, j), (i + 1, j)) for j in rows for i in cols[:N]) + H.add_edges_from(((i, j), (i, j + 1)) for j in rows[:m] for i in cols) + # add diagonals + H.add_edges_from(((i, j), (i + 1, j + 1)) for j in rows[1:m:2] for i in cols[:N]) + H.add_edges_from(((i + 1, j), (i, j + 1)) for j in rows[:m:2] for i in cols[:N]) + # identify boundary nodes if periodic + from networkx.algorithms.minors import contracted_nodes + + if periodic is True: + for i in cols: + H = contracted_nodes(H, (i, 0), (i, m)) + for j in rows[:m]: + H = contracted_nodes(H, (0, j), (N, j)) + elif n % 2: + # remove extra nodes + H.remove_nodes_from((N, j) for j in rows[1::2]) + + # Add position node attributes + if with_positions: + ii = (i for i in cols for j in rows) + jj = (j for i in cols for j in rows) + xx = (0.5 * (j % 2) + i for i in cols for j in rows) + h = sqrt(3) / 2 + if periodic: + yy = (h * j + 0.01 * i * i for i in cols for j in rows) + else: + yy = (h * j for i in cols for j in rows) + pos = {(i, j): (x, y) for i, j, x, y in zip(ii, jj, xx, yy) if (i, j) in H} + set_node_attributes(H, pos, "pos") + return H + + +def hexagonal_lattice_graph( + m, n, periodic=False, with_positions=True, create_using=None +): + """Returns an `m` by `n` hexagonal lattice graph. + + The *hexagonal lattice graph* is a graph whose nodes and edges are + the `hexagonal tiling`_ of the plane. + + The returned graph will have `m` rows and `n` columns of hexagons. + `Odd numbered columns`_ are shifted up relative to even numbered columns. + + Positions of nodes are computed by default or `with_positions is True`. + Node positions creating the standard embedding in the plane + with sidelength 1 and are stored in the node attribute 'pos'. + `pos = nx.get_node_attributes(G, 'pos')` creates a dict ready for drawing. + + .. _hexagonal tiling: https://en.wikipedia.org/wiki/Hexagonal_tiling + .. _Odd numbered columns: http://www-cs-students.stanford.edu/~amitp/game-programming/grids/ + + Parameters + ---------- + m : int + The number of rows of hexagons in the lattice. + + n : int + The number of columns of hexagons in the lattice. + + periodic : bool + Whether to make a periodic grid by joining the boundary vertices. + For this to work `n` must be even and both `n > 1` and `m > 1`. + The periodic connections create another row and column of hexagons + so these graphs have fewer nodes as boundary nodes are identified. + + with_positions : bool (default: True) + Store the coordinates of each node in the graph node attribute 'pos'. + The coordinates provide a lattice with vertical columns of hexagons + offset to interleave and cover the plane. + Periodic positions shift the nodes vertically in a nonlinear way so + the edges don't overlap so much. + + create_using : NetworkX graph constructor, optional (default=nx.Graph) + Graph type to create. If graph instance, then cleared before populated. + If graph is directed, edges will point up or right. + + Returns + ------- + NetworkX graph + The *m* by *n* hexagonal lattice graph. + """ + G = empty_graph(0, create_using) + if m == 0 or n == 0: + return G + if periodic and (n % 2 == 1 or m < 2 or n < 2): + msg = "periodic hexagonal lattice needs m > 1, n > 1 and even n" + raise NetworkXError(msg) + + M = 2 * m # twice as many nodes as hexagons vertically + rows = range(M + 2) + cols = range(n + 1) + # make lattice + col_edges = (((i, j), (i, j + 1)) for i in cols for j in rows[: M + 1]) + row_edges = (((i, j), (i + 1, j)) for i in cols[:n] for j in rows if i % 2 == j % 2) + G.add_edges_from(col_edges) + G.add_edges_from(row_edges) + # Remove corner nodes with one edge + G.remove_node((0, M + 1)) + G.remove_node((n, (M + 1) * (n % 2))) + + # identify boundary nodes if periodic + from networkx.algorithms.minors import contracted_nodes + + if periodic: + for i in cols[:n]: + G = contracted_nodes(G, (i, 0), (i, M)) + for i in cols[1:]: + G = contracted_nodes(G, (i, 1), (i, M + 1)) + for j in rows[1:M]: + G = contracted_nodes(G, (0, j), (n, j)) + G.remove_node((n, M)) + + # calc position in embedded space + ii = (i for i in cols for j in rows) + jj = (j for i in cols for j in rows) + xx = (0.5 + i + i // 2 + (j % 2) * ((i % 2) - 0.5) for i in cols for j in rows) + h = sqrt(3) / 2 + if periodic: + yy = (h * j + 0.01 * i * i for i in cols for j in rows) + else: + yy = (h * j for i in cols for j in rows) + # exclude nodes not in G + pos = {(i, j): (x, y) for i, j, x, y in zip(ii, jj, xx, yy) if (i, j) in G} + set_node_attributes(G, pos, "pos") + return G diff --git a/shared/package-files/ea/ea932e6bf1668d0dd47bcf7b21aa91e3fc4506fe74cda91c3e18805ab3df15a6/blob b/shared/package-files/ea/ea932e6bf1668d0dd47bcf7b21aa91e3fc4506fe74cda91c3e18805ab3df15a6/blob new file mode 100644 index 0000000000000000000000000000000000000000..1add56b47b36399960f16724fa8ff14e7bfd4f0e --- /dev/null +++ b/shared/package-files/ea/ea932e6bf1668d0dd47bcf7b21aa91e3fc4506fe74cda91c3e18805ab3df15a6/blob @@ -0,0 +1,121 @@ +import numpy as np +import pytest + +import pandas as pd +import pandas._testing as tm +from pandas.tests.base.common import allow_na_ops + + +@pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning") +def test_unique(index_or_series_obj): + obj = index_or_series_obj + obj = np.repeat(obj, range(1, len(obj) + 1)) + result = obj.unique() + + # dict.fromkeys preserves the order + unique_values = list(dict.fromkeys(obj.values)) + if isinstance(obj, pd.MultiIndex): + expected = pd.MultiIndex.from_tuples(unique_values) + expected.names = obj.names + tm.assert_index_equal(result, expected, exact=True) + elif isinstance(obj, pd.Index): + expected = pd.Index(unique_values, dtype=obj.dtype) + if isinstance(obj.dtype, pd.DatetimeTZDtype): + expected = expected.normalize() + tm.assert_index_equal(result, expected, exact=True) + else: + expected = np.array(unique_values) + tm.assert_numpy_array_equal(result, expected) + + +@pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning") +@pytest.mark.parametrize("null_obj", [np.nan, None]) +def test_unique_null(null_obj, index_or_series_obj): + obj = index_or_series_obj + + if not allow_na_ops(obj): + pytest.skip("type doesn't allow for NA operations") + elif len(obj) < 1: + pytest.skip("Test doesn't make sense on empty data") + elif isinstance(obj, pd.MultiIndex): + pytest.skip(f"MultiIndex can't hold '{null_obj}'") + + values = obj._values + values[0:2] = null_obj + + klass = type(obj) + repeated_values = np.repeat(values, range(1, len(values) + 1)) + obj = klass(repeated_values, dtype=obj.dtype) + result = obj.unique() + + unique_values_raw = dict.fromkeys(obj.values) + # because np.nan == np.nan is False, but None == None is True + # np.nan would be duplicated, whereas None wouldn't + unique_values_not_null = [val for val in unique_values_raw if not pd.isnull(val)] + unique_values = [null_obj] + unique_values_not_null + + if isinstance(obj, pd.Index): + expected = pd.Index(unique_values, dtype=obj.dtype) + if isinstance(obj.dtype, pd.DatetimeTZDtype): + result = result.normalize() + expected = expected.normalize() + tm.assert_index_equal(result, expected, exact=True) + else: + expected = np.array(unique_values, dtype=obj.dtype) + tm.assert_numpy_array_equal(result, expected) + + +def test_nunique(index_or_series_obj): + obj = index_or_series_obj + obj = np.repeat(obj, range(1, len(obj) + 1)) + expected = len(obj.unique()) + assert obj.nunique(dropna=False) == expected + + +@pytest.mark.parametrize("null_obj", [np.nan, None]) +def test_nunique_null(null_obj, index_or_series_obj): + obj = index_or_series_obj + + if not allow_na_ops(obj): + pytest.skip("type doesn't allow for NA operations") + elif isinstance(obj, pd.MultiIndex): + pytest.skip(f"MultiIndex can't hold '{null_obj}'") + + values = obj._values + values[0:2] = null_obj + + klass = type(obj) + repeated_values = np.repeat(values, range(1, len(values) + 1)) + obj = klass(repeated_values, dtype=obj.dtype) + + if isinstance(obj, pd.CategoricalIndex): + assert obj.nunique() == len(obj.categories) + assert obj.nunique(dropna=False) == len(obj.categories) + 1 + else: + num_unique_values = len(obj.unique()) + assert obj.nunique() == max(0, num_unique_values - 1) + assert obj.nunique(dropna=False) == max(0, num_unique_values) + + +@pytest.mark.single_cpu +def test_unique_bad_unicode(index_or_series): + # regression test for #34550 + uval = "\ud83d" # smiley emoji + + obj = index_or_series([uval] * 2, dtype=object) + result = obj.unique() + + if isinstance(obj, pd.Index): + expected = pd.Index(["\ud83d"], dtype=object) + tm.assert_index_equal(result, expected, exact=True) + else: + expected = np.array(["\ud83d"], dtype=object) + tm.assert_numpy_array_equal(result, expected) + + +@pytest.mark.parametrize("dropna", [True, False]) +def test_nunique_dropna(dropna): + # GH37566 + ser = pd.Series(["yes", "yes", pd.NA, np.nan, None, pd.NaT]) + res = ser.nunique(dropna) + assert res == 1 if dropna else 5 diff --git a/shared/package-files/ea/ea970006c691ec27c81e56c96ebdbf90c9152452ffcab6234f1e9255652708f4/blob b/shared/package-files/ea/ea970006c691ec27c81e56c96ebdbf90c9152452ffcab6234f1e9255652708f4/blob new file mode 100644 index 0000000000000000000000000000000000000000..a4963aec6388c27c3beb064f0a730af200380aee --- /dev/null +++ b/shared/package-files/ea/ea970006c691ec27c81e56c96ebdbf90c9152452ffcab6234f1e9255652708f4/blob @@ -0,0 +1,34 @@ +from pip._vendor.packaging.version import parse as parse_version + +from pip._internal.models.link import Link +from pip._internal.utils.models import KeyBasedCompareMixin + + +class InstallationCandidate(KeyBasedCompareMixin): + """Represents a potential "candidate" for installation.""" + + __slots__ = ["name", "version", "link"] + + def __init__(self, name: str, version: str, link: Link) -> None: + self.name = name + self.version = parse_version(version) + self.link = link + + super().__init__( + key=(self.name, self.version, self.link), + defining_class=InstallationCandidate, + ) + + def __repr__(self) -> str: + return "".format( + self.name, + self.version, + self.link, + ) + + def __str__(self) -> str: + return "{!r} candidate (version {} at {})".format( + self.name, + self.version, + self.link, + ) diff --git a/shared/package-files/ea/ea989dac98bff54de97498695424d06f8a99f0b44c44b94b5013c81c4a6e4945/blob b/shared/package-files/ea/ea989dac98bff54de97498695424d06f8a99f0b44c44b94b5013c81c4a6e4945/blob new file mode 100644 index 0000000000000000000000000000000000000000..adb5172afd93b42340185d23201db6a258544a2b --- /dev/null +++ b/shared/package-files/ea/ea989dac98bff54de97498695424d06f8a99f0b44c44b94b5013c81c4a6e4945/blob @@ -0,0 +1,12 @@ +""" +Logging configuration. +""" +from __future__ import annotations + +import logging + +__all__ = [ + "logger", +] + +logger = logging.getLogger(__package__) diff --git a/shared/package-files/ea/ea9a882ee61f715c2df47a958517d7155268382f90fddb64f264394b18e0c1b6/blob b/shared/package-files/ea/ea9a882ee61f715c2df47a958517d7155268382f90fddb64f264394b18e0c1b6/blob new file mode 100644 index 0000000000000000000000000000000000000000..fbd4af699d12795bd92bd385f23a036d63adde38 --- /dev/null +++ b/shared/package-files/ea/ea9a882ee61f715c2df47a958517d7155268382f90fddb64f264394b18e0c1b6/blob @@ -0,0 +1,102 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include +#include +#include +#include + +#include "arrow/acero/visibility.h" +#include "arrow/status.h" +#include "arrow/util/config.h" +#include "arrow/util/logging.h" + +namespace arrow { +namespace acero { + +// Atomic value surrounded by padding bytes to avoid cache line invalidation +// whenever it is modified by a concurrent thread on a different CPU core. +// +template +class AtomicWithPadding { + private: + static constexpr int kCacheLineSize = 64; + uint8_t padding_before[kCacheLineSize]; + + public: + std::atomic value; + + private: + uint8_t padding_after[kCacheLineSize]; +}; + +// Used for asynchronous execution of operations that can be broken into +// a fixed number of symmetric tasks that can be executed concurrently. +// +// Implements priorities between multiple such operations, called task groups. +// +// Allows to specify the maximum number of in-flight tasks at any moment. +// +// Also allows for executing next pending tasks immediately using a caller thread. +// +class ARROW_ACERO_EXPORT TaskScheduler { + public: + using TaskImpl = std::function; + using TaskGroupContinuationImpl = std::function; + using ScheduleImpl = std::function; + using AbortContinuationImpl = std::function; + + virtual ~TaskScheduler() = default; + + // Order in which task groups are registered represents priorities of their tasks + // (the first group has the highest priority). + // + // Returns task group identifier that is used to request operations on the task group. + virtual int RegisterTaskGroup(TaskImpl task_impl, + TaskGroupContinuationImpl cont_impl) = 0; + + virtual void RegisterEnd() = 0; + + // total_num_tasks may be zero, in which case task group continuation will be executed + // immediately + virtual Status StartTaskGroup(size_t thread_id, int group_id, + int64_t total_num_tasks) = 0; + + // Execute given number of tasks immediately using caller thread + virtual Status ExecuteMore(size_t thread_id, int num_tasks_to_execute, + bool execute_all) = 0; + + // Begin scheduling tasks using provided callback and + // the limit on the number of in-flight tasks at any moment. + // + // Scheduling will continue as long as there are waiting tasks. + // + // It will automatically resume whenever new task group gets started. + virtual Status StartScheduling(size_t thread_id, ScheduleImpl schedule_impl, + int num_concurrent_tasks, bool use_sync_execution) = 0; + + // Abort scheduling and execution. + // Used in case of being notified about unrecoverable error for the entire query. + virtual void Abort(AbortContinuationImpl impl) = 0; + + static std::unique_ptr Make(); +}; + +} // namespace acero +} // namespace arrow diff --git a/shared/package-files/ea/ea9ca12d85791ee5efc7adebfa01951ebf0b4ab1915dca43b9d8459fd7c1a97f/blob b/shared/package-files/ea/ea9ca12d85791ee5efc7adebfa01951ebf0b4ab1915dca43b9d8459fd7c1a97f/blob new file mode 100644 index 0000000000000000000000000000000000000000..1d50076da1c685294c2d2561dcc2a6af629eaf83 --- /dev/null +++ b/shared/package-files/ea/ea9ca12d85791ee5efc7adebfa01951ebf0b4ab1915dca43b9d8459fd7c1a97f/blob @@ -0,0 +1,63 @@ +from sympy.combinatorics.subsets import Subset, ksubsets +from sympy.testing.pytest import raises + + +def test_subset(): + a = Subset(['c', 'd'], ['a', 'b', 'c', 'd']) + assert a.next_binary() == Subset(['b'], ['a', 'b', 'c', 'd']) + assert a.prev_binary() == Subset(['c'], ['a', 'b', 'c', 'd']) + assert a.next_lexicographic() == Subset(['d'], ['a', 'b', 'c', 'd']) + assert a.prev_lexicographic() == Subset(['c'], ['a', 'b', 'c', 'd']) + assert a.next_gray() == Subset(['c'], ['a', 'b', 'c', 'd']) + assert a.prev_gray() == Subset(['d'], ['a', 'b', 'c', 'd']) + assert a.rank_binary == 3 + assert a.rank_lexicographic == 14 + assert a.rank_gray == 2 + assert a.cardinality == 16 + assert a.size == 2 + assert Subset.bitlist_from_subset(a, ['a', 'b', 'c', 'd']) == '0011' + + a = Subset([2, 5, 7], [1, 2, 3, 4, 5, 6, 7]) + assert a.next_binary() == Subset([2, 5, 6], [1, 2, 3, 4, 5, 6, 7]) + assert a.prev_binary() == Subset([2, 5], [1, 2, 3, 4, 5, 6, 7]) + assert a.next_lexicographic() == Subset([2, 6], [1, 2, 3, 4, 5, 6, 7]) + assert a.prev_lexicographic() == Subset([2, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7]) + assert a.next_gray() == Subset([2, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7]) + assert a.prev_gray() == Subset([2, 5], [1, 2, 3, 4, 5, 6, 7]) + assert a.rank_binary == 37 + assert a.rank_lexicographic == 93 + assert a.rank_gray == 57 + assert a.cardinality == 128 + + superset = ['a', 'b', 'c', 'd'] + assert Subset.unrank_binary(4, superset).rank_binary == 4 + assert Subset.unrank_gray(10, superset).rank_gray == 10 + + superset = [1, 2, 3, 4, 5, 6, 7, 8, 9] + assert Subset.unrank_binary(33, superset).rank_binary == 33 + assert Subset.unrank_gray(25, superset).rank_gray == 25 + + a = Subset([], ['a', 'b', 'c', 'd']) + i = 1 + while a.subset != Subset(['d'], ['a', 'b', 'c', 'd']).subset: + a = a.next_lexicographic() + i = i + 1 + assert i == 16 + + i = 1 + while a.subset != Subset([], ['a', 'b', 'c', 'd']).subset: + a = a.prev_lexicographic() + i = i + 1 + assert i == 16 + + raises(ValueError, lambda: Subset(['a', 'b'], ['a'])) + raises(ValueError, lambda: Subset(['a'], ['b', 'c'])) + raises(ValueError, lambda: Subset.subset_from_bitlist(['a', 'b'], '010')) + + assert Subset(['a'], ['a', 'b']) != Subset(['b'], ['a', 'b']) + assert Subset(['a'], ['a', 'b']) != Subset(['a'], ['a', 'c']) + +def test_ksubsets(): + assert list(ksubsets([1, 2, 3], 2)) == [(1, 2), (1, 3), (2, 3)] + assert list(ksubsets([1, 2, 3, 4, 5], 2)) == [(1, 2), (1, 3), (1, 4), + (1, 5), (2, 3), (2, 4), (2, 5), (3, 4), (3, 5), (4, 5)] diff --git a/shared/package-files/ea/ea9d959216bd4672b8eac83ef0d3cd28caadea0e26bdf9065924969822b9e5f9/blob b/shared/package-files/ea/ea9d959216bd4672b8eac83ef0d3cd28caadea0e26bdf9065924969822b9e5f9/blob new file mode 100644 index 0000000000000000000000000000000000000000..61f9f37e5116a05e8e224110b95f8c515ef59105 --- /dev/null +++ b/shared/package-files/ea/ea9d959216bd4672b8eac83ef0d3cd28caadea0e26bdf9065924969822b9e5f9/blob @@ -0,0 +1,396 @@ +# This file is part of Hypothesis, which may be found at +# https://github.com/HypothesisWorks/hypothesis/ +# +# Copyright the Hypothesis Authors. +# Individual contributors are listed in AUTHORS.rst and the git log. +# +# This Source Code Form is subject to the terms of the Mozilla Public License, +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at https://mozilla.org/MPL/2.0/. + +"""A module for miscellaneous useful bits and bobs that don't +obviously belong anywhere else. If you spot a better home for +anything that lives here, please move it.""" + +import array +import sys +import warnings +from random import Random +from typing import ( + Callable, + Dict, + Generic, + Iterable, + Iterator, + List, + Optional, + Sequence, + Tuple, + TypeVar, + Union, + overload, +) + +from hypothesis.errors import HypothesisWarning + +ARRAY_CODES = ["B", "H", "I", "L", "Q", "O"] + +T = TypeVar("T") + + +def array_or_list( + code: str, contents: Iterable[int] +) -> "Union[List[int], array.ArrayType[int]]": + if code == "O": + return list(contents) + return array.array(code, contents) + + +def replace_all( + ls: Sequence[T], + replacements: Iterable[Tuple[int, int, Sequence[T]]], +) -> List[T]: + """Substitute multiple replacement values into a list. + + Replacements is a list of (start, end, value) triples. + """ + + result: List[T] = [] + prev = 0 + offset = 0 + for u, v, r in replacements: + result.extend(ls[prev:u]) + result.extend(r) + prev = v + offset += len(r) - (v - u) + result.extend(ls[prev:]) + assert len(result) == len(ls) + offset + return result + + +NEXT_ARRAY_CODE = dict(zip(ARRAY_CODES, ARRAY_CODES[1:])) + + +class IntList(Sequence[int]): + """Class for storing a list of non-negative integers compactly. + + We store them as the smallest size integer array we can get + away with. When we try to add an integer that is too large, + we upgrade the array to the smallest word size needed to store + the new value.""" + + __slots__ = ("__underlying",) + + __underlying: "Union[List[int], array.ArrayType[int]]" + + def __init__(self, values: Sequence[int] = ()): + for code in ARRAY_CODES: + try: + underlying = array_or_list(code, values) + break + except OverflowError: + pass + else: # pragma: no cover + raise AssertionError(f"Could not create storage for {values!r}") + if isinstance(underlying, list): + for v in underlying: + if not isinstance(v, int) or v < 0: + raise ValueError(f"Could not create IntList for {values!r}") + self.__underlying = underlying + + @classmethod + def of_length(cls, n: int) -> "IntList": + return cls(array_or_list("B", [0]) * n) + + def count(self, value: int) -> int: + return self.__underlying.count(value) + + def __repr__(self): + return f"IntList({list(self.__underlying)!r})" + + def __len__(self): + return len(self.__underlying) + + @overload + def __getitem__(self, i: int) -> int: ... # pragma: no cover + + @overload + def __getitem__(self, i: slice) -> "IntList": ... # pragma: no cover + + def __getitem__(self, i: Union[int, slice]) -> "Union[int, IntList]": + if isinstance(i, slice): + return IntList(self.__underlying[i]) + return self.__underlying[i] + + def __delitem__(self, i: int) -> None: + del self.__underlying[i] + + def insert(self, i: int, v: int) -> None: + self.__underlying.insert(i, v) + + def __iter__(self) -> Iterator[int]: + return iter(self.__underlying) + + def __eq__(self, other: object) -> bool: + if self is other: + return True + if not isinstance(other, IntList): + return NotImplemented + return self.__underlying == other.__underlying + + def __ne__(self, other: object) -> bool: + if self is other: + return False + if not isinstance(other, IntList): + return NotImplemented + return self.__underlying != other.__underlying + + def append(self, n: int) -> None: + i = len(self) + self.__underlying.append(0) + self[i] = n + + def __setitem__(self, i: int, n: int) -> None: + while True: + try: + self.__underlying[i] = n + return + except OverflowError: + assert n > 0 + self.__upgrade() + + def extend(self, ls: Iterable[int]) -> None: + for n in ls: + self.append(n) + + def __upgrade(self) -> None: + assert isinstance(self.__underlying, array.array) + code = NEXT_ARRAY_CODE[self.__underlying.typecode] + self.__underlying = array_or_list(code, self.__underlying) + + +def binary_search(lo: int, hi: int, f: Callable[[int], bool]) -> int: + """Binary searches in [lo , hi) to find + n such that f(n) == f(lo) but f(n + 1) != f(lo). + It is implicitly assumed and will not be checked + that f(hi) != f(lo). + """ + + reference = f(lo) + + while lo + 1 < hi: + mid = (lo + hi) // 2 + if f(mid) == reference: + lo = mid + else: + hi = mid + return lo + + +def uniform(random: Random, n: int) -> bytes: + """Returns a bytestring of length n, distributed uniformly at random.""" + return random.getrandbits(n * 8).to_bytes(n, "big") + + +class LazySequenceCopy: + """A "copy" of a sequence that works by inserting a mask in front + of the underlying sequence, so that you can mutate it without changing + the underlying sequence. Effectively behaves as if you could do list(x) + in O(1) time. The full list API is not supported yet but there's no reason + in principle it couldn't be.""" + + __mask: Optional[Dict[int, int]] + + def __init__(self, values: Sequence[int]): + self.__values = values + self.__len = len(values) + self.__mask = None + + def __len__(self) -> int: + return self.__len + + def pop(self) -> int: + if len(self) == 0: + raise IndexError("Cannot pop from empty list") + result = self[-1] + self.__len -= 1 + if self.__mask is not None: + self.__mask.pop(self.__len, None) + return result + + def __getitem__(self, i: int) -> int: + i = self.__check_index(i) + default = self.__values[i] + if self.__mask is None: + return default + else: + return self.__mask.get(i, default) + + def __setitem__(self, i: int, v: int) -> None: + i = self.__check_index(i) + if self.__mask is None: + self.__mask = {} + self.__mask[i] = v + + def __check_index(self, i: int) -> int: + n = len(self) + if i < -n or i >= n: + raise IndexError(f"Index {i} out of range [0, {n})") + if i < 0: + i += n + assert 0 <= i < n + return i + + +def clamp(lower: float, value: float, upper: float) -> float: + """Given a value and lower/upper bounds, 'clamp' the value so that + it satisfies lower <= value <= upper.""" + return max(lower, min(value, upper)) + + +def swap(ls: LazySequenceCopy, i: int, j: int) -> None: + """Swap the elements ls[i], ls[j].""" + if i == j: + return + ls[i], ls[j] = ls[j], ls[i] + + +def stack_depth_of_caller() -> int: + """Get stack size for caller's frame. + + From https://stackoverflow.com/a/47956089/9297601 , this is a simple + but much faster alternative to `len(inspect.stack(0))`. We use it + with get/set recursionlimit to make stack overflows non-flaky; see + https://github.com/HypothesisWorks/hypothesis/issues/2494 for details. + """ + frame = sys._getframe(2) + size = 1 + while frame: + frame = frame.f_back # type: ignore[assignment] + size += 1 + return size + + +class ensure_free_stackframes: + """Context manager that ensures there are at least N free stackframes (for + a reasonable value of N). + """ + + def __enter__(self): + cur_depth = stack_depth_of_caller() + self.old_maxdepth = sys.getrecursionlimit() + # The default CPython recursionlimit is 1000, but pytest seems to bump + # it to 3000 during test execution. Let's make it something reasonable: + self.new_maxdepth = cur_depth + 2000 + # Because we add to the recursion limit, to be good citizens we also + # add a check for unbounded recursion. The default limit is typically + # 1000/3000, so this can only ever trigger if something really strange + # is happening and it's hard to imagine an + # intentionally-deeply-recursive use of this code. + assert cur_depth <= 1000, ( + "Hypothesis would usually add %d to the stack depth of %d here, " + "but we are already much deeper than expected. Aborting now, to " + "avoid extending the stack limit in an infinite loop..." + % (self.new_maxdepth - self.old_maxdepth, self.old_maxdepth) + ) + sys.setrecursionlimit(self.new_maxdepth) + + def __exit__(self, *args, **kwargs): + if self.new_maxdepth == sys.getrecursionlimit(): + sys.setrecursionlimit(self.old_maxdepth) + else: # pragma: no cover + warnings.warn( + "The recursion limit will not be reset, since it was changed " + "from another thread or during execution of a test.", + HypothesisWarning, + stacklevel=2, + ) + + +def find_integer(f: Callable[[int], bool]) -> int: + """Finds a (hopefully large) integer such that f(n) is True and f(n + 1) is + False. + + f(0) is assumed to be True and will not be checked. + """ + # We first do a linear scan over the small numbers and only start to do + # anything intelligent if f(4) is true. This is because it's very hard to + # win big when the result is small. If the result is 0 and we try 2 first + # then we've done twice as much work as we needed to! + for i in range(1, 5): + if not f(i): + return i - 1 + + # We now know that f(4) is true. We want to find some number for which + # f(n) is *not* true. + # lo is the largest number for which we know that f(lo) is true. + lo = 4 + + # Exponential probe upwards until we find some value hi such that f(hi) + # is not true. Subsequently we maintain the invariant that hi is the + # smallest number for which we know that f(hi) is not true. + hi = 5 + while f(hi): + lo = hi + hi *= 2 + + # Now binary search until lo + 1 = hi. At that point we have f(lo) and not + # f(lo + 1), as desired.. + while lo + 1 < hi: + mid = (lo + hi) // 2 + if f(mid): + lo = mid + else: + hi = mid + return lo + + +def pop_random(random: Random, seq: LazySequenceCopy) -> int: + """Remove and return a random element of seq. This runs in O(1) but leaves + the sequence in an arbitrary order.""" + i = random.randrange(0, len(seq)) + swap(seq, i, len(seq) - 1) + return seq.pop() + + +class NotFound(Exception): + pass + + +class SelfOrganisingList(Generic[T]): + """A self-organising list with the move-to-front heuristic. + + A self-organising list is a collection which we want to retrieve items + that satisfy some predicate from. There is no faster way to do this than + a linear scan (as the predicates may be arbitrary), but the performance + of a linear scan can vary dramatically - if we happen to find a good item + on the first try it's O(1) after all. The idea of a self-organising list is + to reorder the list to try to get lucky this way as often as possible. + + There are various heuristics we could use for this, and it's not clear + which are best. We use the simplest, which is that every time we find + an item we move it to the "front" (actually the back in our implementation + because we iterate in reverse) of the list. + + """ + + def __init__(self, values: Iterable[T] = ()) -> None: + self.__values = list(values) + + def __repr__(self) -> str: + return f"SelfOrganisingList({self.__values!r})" + + def add(self, value: T) -> None: + """Add a value to this list.""" + self.__values.append(value) + + def find(self, condition: Callable[[T], bool]) -> T: + """Returns some value in this list such that ``condition(value)`` is + True. If no such value exists raises ``NotFound``.""" + for i in range(len(self.__values) - 1, -1, -1): + value = self.__values[i] + if condition(value): + del self.__values[i] + self.__values.append(value) + return value + raise NotFound("No values satisfying condition") diff --git a/shared/package-files/ea/eaa0c2cb0cc7ed97df54e7f8eff654e4e465841071b5fe5f59df50b689b0f10e/blob b/shared/package-files/ea/eaa0c2cb0cc7ed97df54e7f8eff654e4e465841071b5fe5f59df50b689b0f10e/blob new file mode 100644 index 0000000000000000000000000000000000000000..e9c1964a11f9ef070526468edcf98c8227fd4944 --- /dev/null +++ b/shared/package-files/ea/eaa0c2cb0cc7ed97df54e7f8eff654e4e465841071b5fe5f59df50b689b0f10e/blob @@ -0,0 +1,81 @@ +/* Fast path for valid act requests. Unsupported forms fall back to Python's JSON parser. */ +#include +#include +#include +#include +#include +#include +#include + +static const char *ws(const char *p) { while(*p && isspace((unsigned char)*p)) p++;return p; } +static const char *string_end(const char *p) { + if(*p!='"') return NULL; + for(p++;*p;p++) { + if(*p=='\\') { if(!p[1]) return NULL;p++; } + else if(*p=='"') return p+1; + else if((unsigned char)*p<32) return NULL; + } + return NULL; +} +static const char *value_end(const char *p) { + p=ws(p); + if(*p=='"') return string_end(p); + if(*p=='[' || *p=='{') { + int depth=0; + for(;*p;p++) { + if(*p=='"') { p=string_end(p);if(!p)return NULL;p--; } + else if(*p=='[' || *p=='{') depth++; + else if(*p==']' || *p=='}') { if(--depth==0)return p+1; } + } + return NULL; + } + const char *q=p; + while(*q && *q!=',' && *q!='}' && *q!=']' && !isspace((unsigned char)*q)) q++; + return q>p?q:NULL; +} +static int key_is(const char *p,const char *end,const char *key) { + size_t n=strlen(key);return end-p==(ptrdiff_t)(n+2) && memcmp(p+1,key,n)==0; +} + +int parse_act(const char *line,double *obs,int64_t *id_span) { + const char *p=ws(line);if(*p++!='{')return 0; + int protocol=0,op=0,has_id=0,has_obs=0; + while(*(p=ws(p)) && *p!='}') { + const char *key=p,*end=string_end(p);if(!end)return 0; + p=ws(end);if(*p++!=':')return 0;p=ws(p); + if(key_is(key,end,"observation")) { + if(*p++!='[')return 0; + for(int i=0;i<585;i++) { + p=ws(p);char *q;double v=strtod(p,&q); + if(q==p || !isfinite(v))return 0; + obs[i]=v;p=ws(q); + if(*p++!=(i==584?']':','))return 0; + } + has_obs=1; + } else { + const char *v=p,*q=value_end(v);if(!q)return 0; + if(key_is(key,end,"protocol")) protocol=q-v==19 && memcmp(v,"\"tokamak-policy/v1\"",19)==0; + else if(key_is(key,end,"op")) op=q-v==5 && memcmp(v,"\"act\"",5)==0; + else if(key_is(key,end,"request_id")) { + id_span[0]=v-line;id_span[1]=q-line;has_id=1; + } + p=q; + } + p=ws(p);if(*p==',')p++;else if(*p!='}')return 0; + } + if(*p++!='}' || *ws(p))return 0; + return protocol && op && has_id && has_obs; +} + +int format_action(const double *action,char *output,int capacity) { + int written=snprintf(output,capacity,"["); + for(int i=0;i<12;i++) { + if(!isfinite(action[i]))return -1; + int n=snprintf(output+written,capacity-written,i?",%.17g":"%.17g",action[i]); + if(n<0 || n>=capacity-written)return -1; + written+=n; + } + if(written+2>capacity)return -1; + output[written++]=']';output[written]=0; + return written; +} diff --git a/shared/package-files/ea/eaa1523ea19f21c45b55f3d2ae3f5a0d46b0a26fbc0210f90997fc2d3737f60b/blob b/shared/package-files/ea/eaa1523ea19f21c45b55f3d2ae3f5a0d46b0a26fbc0210f90997fc2d3737f60b/blob new file mode 100644 index 0000000000000000000000000000000000000000..04a278d83f7632145ced78f040c59d3288f45dc3 --- /dev/null +++ b/shared/package-files/ea/eaa1523ea19f21c45b55f3d2ae3f5a0d46b0a26fbc0210f90997fc2d3737f60b/blob @@ -0,0 +1,672 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace at { +namespace native { +namespace { + +// launch bounds used for kernels utilizing TensorIterator +const uint32_t block_size_bound = 256; +const uint32_t grid_size_bound = 4; +// number of randoms given by distributions like curand_uniform4, curand_uniform2_double +// used in calculating philox offset. +const uint32_t curand4_engine_calls = 4; + +// utility function that calculates proper philox_offset +// for distributions utilizing TensorIterator. For distributions using +// TensorIterator, we are using a grid-stride loop with each +// thread yielding one element per thread. For the edge of the grid-stride +// loop, if the tensor size is large, the unroll loop will kick in and the float4 +// from curand4 will start getting utilized (for common tensor sizes, we end up +// using rand.x from each thread). Hence, the philox_offset is +// (number of elements per thread * number of engine calls), which makes +// sure that philox offset increment is not less than the number of randoms used +// in each thread. +std::tuple calc_execution_policy(int64_t total_elements) { + const uint64_t numel = static_cast(total_elements); + const uint32_t block_size = block_size_bound; + const uint32_t unroll = curand4_engine_calls; + dim3 dim_block(block_size); + dim3 grid((numel + block_size - 1) / block_size); + uint32_t blocks_per_sm = at::cuda::getCurrentDeviceProperties()->maxThreadsPerMultiProcessor / block_size; + grid.x = std::min( + static_cast(at::cuda::getCurrentDeviceProperties()->multiProcessorCount) * blocks_per_sm, + grid.x); + //number of times random will be generated per thread, to offset philox counter in thc random state + uint64_t counter_offset = ((numel - 1) / (block_size * grid.x * unroll) + 1) + * curand4_engine_calls; + return std::make_tuple(counter_offset, grid, dim_block); +} + +// grid stride loop kernel for distributions +template +C10_LAUNCH_BOUNDS_2(block_size_bound, grid_size_bound) +__global__ void distribution_elementwise_grid_stride_kernel(int numel, + PhiloxCudaState philox_args, + const dist_t dist_func, + const transform_t transform_func) { + auto seeds = at::cuda::philox::unpack(philox_args); + int idx = blockIdx.x * blockDim.x + threadIdx.x; + curandStatePhilox4_32_10_t state; + curand_init(std::get<0>(seeds), + idx, + std::get<1>(seeds), + &state); + + int rounded_size = ((numel - 1)/(blockDim.x * gridDim.x * unroll_factor)+1) * + blockDim.x * gridDim.x * unroll_factor; + for(int linear_index = idx; linear_index < rounded_size; linear_index += blockDim.x * gridDim.x * unroll_factor) { + auto rand = dist_func(&state); + #pragma unroll + for (int ii = 0; ii < unroll_factor; ii++) { + int li = linear_index + blockDim.x * gridDim.x * ii; + if (li < numel) { + transform_func(li, static_cast((&rand.x)[ii])); + } + } + __syncthreads(); + } +} + +/** + * distribution_nullary_kernel is analogous to gpu_kernel in + * ATen/native/cuda/Loops.cuh. Like gpu_kernel, it uses + * TensorIterator to launch a kernel. However, the differences are + * - it launches a grid-stride loop based kernel. The kernel is not + * generic like elementwise_kernel in Loops.cuh and is specialized + * for the distribution kernels here. + * - For big size tensors, we can launch multiple kernels recursively + * (i.e. if (!iter.can_use_32bit_indexing())) and hence, the philox + * offset calculation is done in this function. + * + * FIXME: Can we specialize elementwise_kernel and launch_kernel in Loops.cuh + * to have grid-stride loop kernel and then use that to launch our distribution + * kernels? Note that we need a grid-stride loop kernel because, we found by testing + * that it achieves peak effective bandwidth. + */ +template +void distribution_nullary_kernel(at::TensorIteratorBase& iter, + RNG gen, + const dist_t& dist_func, + const transform_t transform_func) { + static_assert(unroll_factor >= 1, "unroll_factor must be >= 1."); + int64_t numel = iter.numel(); + if (numel == 0) { + return; + } + + auto execution_policy = calc_execution_policy(numel); + auto counter_offset = std::get<0>(execution_policy); + auto grid = std::get<1>(execution_policy); + auto block = std::get<2>(execution_policy); + PhiloxCudaState rng_engine_inputs; + { + // See Note [Acquire lock when using random generators] + std::lock_guard lock(gen->mutex_); + rng_engine_inputs = gen->philox_cuda_state(counter_offset); + } + + if (!iter.can_use_32bit_indexing()) { + for (auto& sub_iter : iter.with_32bit_indexing()) { + distribution_nullary_kernel(sub_iter, + gen, dist_func, transform_func); + } + return; + } + + char* out_data = (char*)iter.data_ptr(0); + + auto stream = at::cuda::getCurrentCUDAStream(); + if (iter.is_trivial_1d()) { + auto strides = iter.get_inner_strides(); + int stride0 = strides[0]; + distribution_elementwise_grid_stride_kernel<<>>( + numel, + rng_engine_inputs, + dist_func, + [=]__device__(int idx, accscalar_t rand) { + scalar_t* out = (scalar_t*)&out_data[stride0 * idx]; + *out = transform_func(rand); + } + ); + C10_CUDA_KERNEL_LAUNCH_CHECK(); + } else { + auto offset_calc = make_offset_calculator<1>(iter); + distribution_elementwise_grid_stride_kernel<<>>( + numel, + rng_engine_inputs, + dist_func, + [=]__device__(int idx, accscalar_t rand) { + auto offsets = offset_calc.get(idx); + scalar_t* out = (scalar_t*)&out_data[offsets[0]]; + *out = transform_func(rand); + } + ); + C10_CUDA_KERNEL_LAUNCH_CHECK(); + } +} + +// Binary kernel +template +__global__ void distribution_binary_elementwise_kernel( + int numel, + func_t f, + PhiloxCudaState philox_args, + typename function_traits::result_type *output_data, + const typename function_traits::template arg<1>::type *input_data_1, + const typename function_traits::template arg<2>::type *input_data_2, + inp_offset_calc_t inp_calc, + out_offset_calc_t out_calc) { + auto seeds = at::cuda::philox::unpack(philox_args); + + using input_t_1 = typename function_traits::template arg<1>::type; + using input_t_2 = typename function_traits::template arg<2>::type; + + input_t_1 inputs_1[thread_work_size()]; + input_t_2 inputs_2[thread_work_size()]; + + int base_index = block_work_size() * blockIdx.x; + int remaining = std::min(numel - base_index, block_work_size()); + + curandStatePhilox4_32_10_t state; + curand_init(std::get<0>(seeds), + blockIdx.x * blockDim.x + threadIdx.x, + std::get<1>(seeds), + &state); + + // load data into registers + int thread_idx = threadIdx.x; + #pragma unroll + for (int i = 0; i < thread_work_size(); i++) { + if (thread_idx >= remaining) { + break; + } + int input_idx = thread_idx + base_index; + auto offsets = inp_calc.get(input_idx); + inputs_1[i] = input_data_1[offsets[0]]; + inputs_2[i] = input_data_2[offsets[1]]; + + thread_idx += num_threads(); + } + + // compute and store + thread_idx = threadIdx.x; + #pragma unroll + for (int i = 0; i < thread_work_size(); i++) { + if (thread_idx >= remaining) { + break; + } + int input_idx = thread_idx + base_index; + auto offsets = out_calc.get(input_idx); + output_data[offsets[0]] = f(state, inputs_1[i], inputs_2[i]); + thread_idx += num_threads(); + } +} + +template +void distribution_binary_kernel(TensorIteratorBase &iter, PhiloxCudaState philox_args, const func_t &f) { + static_assert(std::is_same::template arg<0>::type, curandStatePhilox4_32_10_t&>::value, "the first argument of functor must be curandStatePhilox4_32_10_t"); + using input_t_1 = typename function_traits::template arg<1>::type; + using input_t_2 = typename function_traits::template arg<2>::type; + using output_t = typename function_traits::result_type; + + if (!iter.can_use_32bit_indexing()) { + for (auto& sub_iter : iter.with_32bit_indexing()) { + distribution_binary_kernel(sub_iter, philox_args, f); + } + return; + } + + TORCH_INTERNAL_ASSERT_DEBUG_ONLY(iter.can_use_32bit_indexing()); + + int64_t numel = iter.numel(); + if (numel == 0) { + return; + } + + output_t *output_data = static_cast(iter.data_ptr(0)); + const input_t_1 *input_data_1 = static_cast(iter.data_ptr(1)); + const input_t_2 *input_data_2 = static_cast(iter.data_ptr(2)); + + int64_t grid = (numel + block_work_size() - 1) / block_work_size(); + auto stream = at::cuda::getCurrentCUDAStream(); + + if (iter.is_contiguous()) { + distribution_binary_elementwise_kernel<<>>( + numel, f, philox_args, output_data, input_data_1, input_data_2, + TrivialOffsetCalculator<2>(), TrivialOffsetCalculator<1>()); + C10_CUDA_KERNEL_LAUNCH_CHECK(); + } else { + distribution_binary_elementwise_kernel<<>>( + numel, f, philox_args, output_data, input_data_1, input_data_2, + make_input_offset_calculator<2>(iter), make_output_offset_calculator(iter)); + C10_CUDA_KERNEL_LAUNCH_CHECK(); + } +} + +} // namespace +}} // namespace at::native + + +namespace at { +namespace native { +namespace templates { +namespace cuda { + +// ==================================================== Random ======================================================== + +template +void random_from_to_kernel(TensorIteratorBase& iter, uint64_t range, int64_t base, RNG gen) { + AT_DISPATCH_V2(iter.dtype(), "random_from_to_kernel_cuda", AT_WRAP([&] { + if (( + std::is_same::value || + std::is_same::value || + std::is_same::value || + std::is_same::value) && range >= 1ULL << 32) + { + // define lambda to mod with range and add base + auto random_func = [range, base] __device__ (uint64_t rand) { + return transformation::uniform_int_from_to(rand, range, base); + }; + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) -> ulonglong2 { + ulonglong2 ret; + uint4 rand_val = curand4(state); + ret.x = (static_cast(rand_val.x) << 32) | rand_val.y; + ret.y = (static_cast(rand_val.z) << 32) | rand_val.w; + return ret; + }, + random_func); + } else { + auto random_func = [range, base] __device__ (uint32_t rand) { + return transformation::uniform_int_from_to(rand, range, base); + }; + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) { + return curand4(state); + }, + random_func); + } + }), AT_EXPAND(AT_ALL_TYPES), kBool, kHalf, kBFloat16, AT_EXPAND(AT_BAREBONES_UNSIGNED_TYPES)); +} + +// This is the special kernel to handle single specific case: +// from(inclusive) = std::numeric_limits::lowest() +// to(exclusive) = None (= std::numeric_limits::max() + 1) +template +void random_full_64_bits_range_kernel(TensorIteratorBase& iter, RNG gen) { + AT_DISPATCH_ALL_TYPES_AND(at::ScalarType::BFloat16, iter.dtype(), "random_full_64_bits_range_kernel_cuda", [&] { + if (std::is_same::value || + std::is_same::value || + std::is_same::value || + std::is_same::value) { + auto random_func = [] __device__ (uint64_t rand) { + return transformation::uniform_int_full_range(rand); + }; + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) -> ulonglong2 { + ulonglong2 ret; + uint4 rand_val = curand4(state); + ret.x = (static_cast(rand_val.x) << 32) | rand_val.y; + ret.y = (static_cast(rand_val.z) << 32) | rand_val.w; + return ret; + }, + random_func); + } else { + TORCH_CHECK(false, "random_full_64_bits_range_kernel_cuda handles only int64, double, float and bfloat16"); + } + }); +} + +template +struct RandomFromToKernel { + void operator()(TensorIteratorBase& iter, uint64_t range, int64_t base, c10::optional gen) { + random_from_to_kernel(iter, range, base, check_generator(gen)); + } + void operator()(TensorIteratorBase& iter, c10::optional gen) { + random_full_64_bits_range_kernel(iter, check_generator(gen)); + } +}; + +template +void random_kernel(TensorIteratorBase& iter, RNG gen) { + AT_DISPATCH_ALL_TYPES_AND3(at::ScalarType::Half, at::ScalarType::BFloat16, at::ScalarType::Bool, iter.dtype(), "random_kernel_cuda", [&] { + if (std::is_same::value || std::is_same::value) { + auto random_func = [] __device__ (uint64_t rand) { + return transformation::uniform_int(rand); + }; + distribution_nullary_kernel(iter, gen, + [] __device__ (curandStatePhilox4_32_10_t* state) -> ulonglong2 { + ulonglong2 ret; + uint4 rand_val = curand4(state); + ret.x = (static_cast(rand_val.x) << 32) | rand_val.y; + ret.y = (static_cast(rand_val.z) << 32) | rand_val.w; + return ret; + }, + random_func); + } else { + auto random_func = [] __device__ (uint32_t rand) { + return transformation::uniform_int(rand); + }; + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) { + return curand4(state); + }, + random_func); + } + }); +} + +template +struct RandomKernel { + void operator()(TensorIteratorBase& iter, RNG gen) { + random_kernel(iter, gen); + } +}; + +// ==================================================================================================================== + +template +void uniform_and_transform(TensorIteratorBase& iter, RNG gen, transform_t transform) { + if (std::is_same::value) { + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) { return curand_uniform2_double(state); }, + transform); + } else { + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) { return curand_uniform4(state); }, + transform); + } +} + +template +void normal_and_transform(TensorIteratorBase& iter, RNG gen, transform_t transform) { + if (std::is_same::value) { + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) { return curand_normal2_double(state); }, + transform); + } else { + distribution_nullary_kernel(iter, + gen, + [] __device__ (curandStatePhilox4_32_10_t* state) { return curand_normal4(state); }, + transform); + } +} + +// ==================================================== Normal ======================================================== + +template +void normal_kernel(const TensorBase &self, double mean_, double std_, RNG gen) { + auto iter = TensorIterator::borrowing_nullary_op(self); + AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "normal_kernel_cuda", [&] { + using accscalar_t = at::acc_type; + auto mean = static_cast(mean_); + auto std = static_cast(std_); + // define lambda to multiply std and add mean + auto normal_func = [mean, std] __device__ (accscalar_t rand) { + return static_cast(transformation::normal(rand, mean, std)); + }; + normal_and_transform(iter, gen, normal_func); + }); +} + +template +struct NormalKernel { + void operator()(const TensorBase &self, double mean, double std, c10::optional gen) { + normal_kernel(self, mean, std, check_generator(gen)); + } +}; + +// ==================================================== Uniform ======================================================== + +template +void uniform_kernel(TensorIteratorBase& iter, double from_, double to_, RNG gen) { + AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "uniform_kernel_cuda", [&] { + auto from = static_cast(from_); + auto to = static_cast(to_); + using opmath_t = at::opmath_type; + auto range = static_cast(to-from); + // define lambda to reverse bounds, multiply 'range' and add 'from_' + auto uniform_func = [range, from, to] __device__ (opmath_t rand) { + // Compute output value before reversing the bounds + // BEFORE TOUCHING THIS CODE READ: https://github.com/pytorch/pytorch/issues/96947 + auto value = static_cast(rand * range + from); + // reverse the bounds of curand4 from (0, 1] to [0, 1) + // Note that this method is from legacy THCTensorRandom and is likely to give + // you more 0-s, since, the probability of gettings 1-s is higher than 0-s and + // by reversing the bounds, we are flipping the probabilities of 1-s and 0-s. + // BEFORE TOUCHING THIS CODE READ: https://github.com/pytorch/pytorch/issues/16706 + auto reverse_bound_value = value == to ? from : value; + return reverse_bound_value; + }; + uniform_and_transform(iter, gen, uniform_func); + }); +} + +template +struct UniformKernel { + void operator()(TensorIteratorBase& iter, double from, double to, c10::optional gen) { + uniform_kernel(iter, from, to, check_generator(gen)); + } +}; + +// ================================================== LogNormal ======================================================= + +template +void log_normal_kernel(TensorIteratorBase& iter, double mean_, double std_, RNG gen) { + AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "log_normal_cuda", [&] { + using accscalar_t = at::acc_type; + auto mean = static_cast(mean_); + auto std = static_cast(std_); + // define lambda for log_normal transformation + auto log_normal_func = [mean, std] __device__ (accscalar_t rand) { + return static_cast(transformation::log_normal(transformation::normal(rand, mean, std))); + }; + normal_and_transform(iter, gen, log_normal_func); + }); +} + +template +struct LogNormalKernel { + void operator()(TensorIteratorBase& iter, double mean, double std, c10::optional gen) { + log_normal_kernel(iter, mean, std, check_generator(gen)); + } +}; + +// =================================================== Geometric ====================================================== + +template +void geometric_kernel(TensorIteratorBase& iter, double p, RNG gen) { + AT_DISPATCH_ALL_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "geometric_cuda", [&] { + using accscalar_t = at::DiscreteDistributionType::type; + // define lambda for geometric transformation + auto geometric_func = [p] __device__ (accscalar_t rand) { + return static_cast(transformation::geometric(rand, p)); + }; + uniform_and_transform(iter, gen, geometric_func); + }); +} + +template +struct GeometricKernel { + void operator()(TensorIteratorBase& iter, double p, c10::optional gen) { + geometric_kernel(iter, p, check_generator(gen)); + } +}; + +// ================================================== Exponential ===================================================== + +template +void exponential_kernel(TensorIteratorBase& iter, double lambda_, RNG gen) { + TORCH_CHECK(isFloatingType(iter.dtype()), "Exponential distribution is a continuous probability distribution. dtype must be a floating point but you specified ", iter.dtype()); + AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "exponential_cuda", [&] { + using accscalar_t = at::acc_type; + auto lambda = static_cast(lambda_); + // define lambda for exponential transformation + auto exponential_func = [lambda] __device__ (accscalar_t rand) { + return static_cast(transformation::exponential(rand, lambda)); + }; + uniform_and_transform(iter, gen, exponential_func); + }); +} + +template +struct ExponentialKernel { + void operator()(TensorIteratorBase& iter, double lambda, c10::optional gen) { + exponential_kernel(iter, lambda, check_generator(gen)); + } +}; + +// ==================================================== Cauchy ======================================================== + +template +void cauchy_kernel(TensorIteratorBase& iter, double median_, double sigma_, RNG gen) { + AT_DISPATCH_FLOATING_TYPES_AND2(at::ScalarType::Half, at::ScalarType::BFloat16, iter.dtype(), "cauchy_cuda", [&] { + using accscalar_t = at::acc_type; + auto median = static_cast(median_); + auto sigma = static_cast(sigma_); + // define lambda for cauchy transformation + auto cauchy_func = [median, sigma] __device__ (accscalar_t rand) { + return static_cast(transformation::cauchy(rand, median, sigma)); + }; + uniform_and_transform(iter, gen, cauchy_func); + }); +} + +template +struct CauchyKernel { + void operator()(TensorIteratorBase& iter, double median, double sigma, c10::optional gen) { + cauchy_kernel(iter, median, sigma, check_generator(gen)); + } +}; + +// ==================================================== Bernoulli ===================================================== + +template +void bernoulli_tensor_cuda_kernel( + const TensorBase &ret, const at::TensorBase &p, + PhiloxCudaState philox_args) { + auto functor = [philox_args] __device__( + int n, scalar_t& v1, scalar_t& v2, scalar_t& v3, scalar_t& v4, + const prob_t& p1, const prob_t& p2, const prob_t& p3, const prob_t& p4) { + auto seeds = at::cuda::philox::unpack(philox_args); + curandStatePhilox4_32_10_t state; + curand_init(std::get<0>(seeds), + blockIdx.x * blockDim.x + threadIdx.x, + std::get<1>(seeds), + &state); + + // See Note [Register spilling in curand call for CUDA < 10] + float4 rand = curand_uniform4(&state); + switch (n) { + case 4: { + CUDA_KERNEL_ASSERT(0 <= p4 && p4 <= 1); + v4 = static_cast(rand.w <= p4); + // fallthrough + } + case 3: { + CUDA_KERNEL_ASSERT(0 <= p3 && p3 <= 1); + v3 = static_cast(rand.z <= p3); + // fallthrough + } + case 2: { + CUDA_KERNEL_ASSERT(0 <= p2 && p2 <= 1); + v2 = static_cast(rand.y <= p2); + // fallthrough + } + case 1: { + CUDA_KERNEL_ASSERT(0 <= p1 && p1 <= 1); + v1 = static_cast(rand.x <= p1); + } + } + }; + // The template argument `4` below indicates that we want to operate on four + // element at each time. See NOTE [ CUDA_tensor_applyN helpers ] for details. + at::cuda::CUDA_tensor_apply2(ret, p, functor); +} + +template +void bernoulli_kernel(const TensorBase &self, const TensorBase &p_, RNG gen) { + PhiloxCudaState rng_engine_inputs; + { + // See Note [Acquire lock when using random generators] + std::lock_guard lock(gen->mutex_); + rng_engine_inputs = gen->philox_cuda_state(10); + } + TORCH_CHECK(at::isFloatingType(p_.scalar_type()), "expected probabilities tensor to have floating type, got ", p_.scalar_type()); + // cast probabilities tensor to double for double `self` tensor, and to `float` for everything else + const auto p_type = self.dtype() == at::kDouble ? at::kDouble : at::kFloat; + auto p_cuda = p_.to(TensorOptions().device(self.device()).dtype(p_type)); + auto p = expand_inplace(self, p_cuda); + AT_DISPATCH_ALL_TYPES_AND3( + at::ScalarType::Half, at::ScalarType::BFloat16, at::ScalarType::Bool, self.scalar_type(), "bernoulli_tensor_cuda_self_", [&] { + if (std::is_same::value) { + return bernoulli_tensor_cuda_kernel(self, *p, rng_engine_inputs); + } else { + return bernoulli_tensor_cuda_kernel(self, *p, rng_engine_inputs); + } + }); +} + +template +void bernoulli_kernel(TensorIteratorBase& iter, double p, RNG gen) { + AT_DISPATCH_ALL_TYPES_AND3( + at::ScalarType::Half, at::ScalarType::BFloat16, at::ScalarType::Bool, iter.dtype(), "bernoulli_scalar_cuda_", [&] { + using accscalar_t = at::DiscreteDistributionType::type; + // define lambda for bernoulli transformation + auto bernoulli_func = [p] __device__ (accscalar_t rand) { + return static_cast(transformation::bernoulli(rand, p)); + }; + uniform_and_transform(iter, gen, bernoulli_func); + }); +} + +template +struct BernoulliKernel { + void operator()(TensorIteratorBase& iter, double p, c10::optional gen) { + bernoulli_kernel(iter, p, check_generator(gen)); + } + void operator()(const TensorBase &self, const TensorBase &p_, c10::optional gen) { + bernoulli_kernel(self, p_, check_generator(gen)); + } +}; + +}}}} diff --git a/shared/package-files/ea/eaa2faa860e68db572cdb1fcc5b7ad81fa4990a2156706480512401d0193b992/blob b/shared/package-files/ea/eaa2faa860e68db572cdb1fcc5b7ad81fa4990a2156706480512401d0193b992/blob new file mode 100644 index 0000000000000000000000000000000000000000..3219e2edcebaa434f608739a7aae9377fae6a566 --- /dev/null +++ b/shared/package-files/ea/eaa2faa860e68db572cdb1fcc5b7ad81fa4990a2156706480512401d0193b992/blob @@ -0,0 +1,18 @@ +# Copyright (C) 2012 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause +import importlib + +ENTRY_POINT = "conda_env.installers" + + +class InvalidInstaller(Exception): + def __init__(self, name): + msg = f"Unable to load installer for {name}" + super().__init__(msg) + + +def get_installer(name): + try: + return importlib.import_module(ENTRY_POINT + "." + name) + except ImportError: + raise InvalidInstaller(name) diff --git a/shared/package-files/ea/eaa4f63cd3a296c1210d697a3219a0a6f788b90af8402b372c04f022b06ba0e4/blob b/shared/package-files/ea/eaa4f63cd3a296c1210d697a3219a0a6f788b90af8402b372c04f022b06ba0e4/blob new file mode 100644 index 0000000000000000000000000000000000000000..be5e161b6f99e57e2b2a6b3d4f1ef6427c07658d --- /dev/null +++ b/shared/package-files/ea/eaa4f63cd3a296c1210d697a3219a0a6f788b90af8402b372c04f022b06ba0e4/blob @@ -0,0 +1,23 @@ +# This file is not meant for public use and will be removed in SciPy v2.0.0. +# Use the `scipy.sparse` namespace for importing the functions +# included below. + +from scipy._lib.deprecation import _sub_module_deprecation + + +__all__ = [ # noqa: F822 + 'coo_matrix', + 'find', + 'tril', + 'triu', +] + + +def __dir__(): + return __all__ + + +def __getattr__(name): + return _sub_module_deprecation(sub_package="sparse", module="extract", + private_modules=["_extract"], all=__all__, + attribute=name) diff --git a/shared/package-files/ea/eaa55be19cdfabc02bc43ca0857c16e55bf0e126adb5d22dd07531e167270fc5/blob b/shared/package-files/ea/eaa55be19cdfabc02bc43ca0857c16e55bf0e126adb5d22dd07531e167270fc5/blob new file mode 100644 index 0000000000000000000000000000000000000000..f3551091803829cdf653ea3249bf96bcf313b70d --- /dev/null +++ b/shared/package-files/ea/eaa55be19cdfabc02bc43ca0857c16e55bf0e126adb5d22dd07531e167270fc5/blob @@ -0,0 +1,185 @@ +"""Implementation of :class:`FractionField` class. """ + + +from sympy.polys.domains.field import Field +from sympy.polys.domains.compositedomain import CompositeDomain +from sympy.polys.domains.characteristiczero import CharacteristicZero +from sympy.polys.polyclasses import DMF +from sympy.polys.polyerrors import GeneratorsNeeded +from sympy.polys.polyutils import dict_from_basic, basic_from_dict, _dict_reorder +from sympy.utilities import public + +@public +class FractionField(Field, CharacteristicZero, CompositeDomain): + """A class for representing rational function fields. """ + + dtype = DMF + is_FractionField = is_Frac = True + + has_assoc_Ring = True + has_assoc_Field = True + + def __init__(self, dom, *gens): + if not gens: + raise GeneratorsNeeded("generators not specified") + + lev = len(gens) - 1 + self.ngens = len(gens) + + self.zero = self.dtype.zero(lev, dom, ring=self) + self.one = self.dtype.one(lev, dom, ring=self) + + self.domain = self.dom = dom + self.symbols = self.gens = gens + + def new(self, element): + return self.dtype(element, self.dom, len(self.gens) - 1, ring=self) + + def __str__(self): + return str(self.dom) + '(' + ','.join(map(str, self.gens)) + ')' + + def __hash__(self): + return hash((self.__class__.__name__, self.dtype, self.dom, self.gens)) + + def __eq__(self, other): + """Returns ``True`` if two domains are equivalent. """ + return isinstance(other, FractionField) and \ + self.dtype == other.dtype and self.dom == other.dom and self.gens == other.gens + + def to_sympy(self, a): + """Convert ``a`` to a SymPy object. """ + return (basic_from_dict(a.numer().to_sympy_dict(), *self.gens) / + basic_from_dict(a.denom().to_sympy_dict(), *self.gens)) + + def from_sympy(self, a): + """Convert SymPy's expression to ``dtype``. """ + p, q = a.as_numer_denom() + + num, _ = dict_from_basic(p, gens=self.gens) + den, _ = dict_from_basic(q, gens=self.gens) + + for k, v in num.items(): + num[k] = self.dom.from_sympy(v) + + for k, v in den.items(): + den[k] = self.dom.from_sympy(v) + + return self((num, den)).cancel() + + def from_ZZ(K1, a, K0): + """Convert a Python ``int`` object to ``dtype``. """ + return K1(K1.dom.convert(a, K0)) + + def from_ZZ_python(K1, a, K0): + """Convert a Python ``int`` object to ``dtype``. """ + return K1(K1.dom.convert(a, K0)) + + def from_QQ_python(K1, a, K0): + """Convert a Python ``Fraction`` object to ``dtype``. """ + return K1(K1.dom.convert(a, K0)) + + def from_ZZ_gmpy(K1, a, K0): + """Convert a GMPY ``mpz`` object to ``dtype``. """ + return K1(K1.dom.convert(a, K0)) + + def from_QQ_gmpy(K1, a, K0): + """Convert a GMPY ``mpq`` object to ``dtype``. """ + return K1(K1.dom.convert(a, K0)) + + def from_RealField(K1, a, K0): + """Convert a mpmath ``mpf`` object to ``dtype``. """ + return K1(K1.dom.convert(a, K0)) + + def from_GlobalPolynomialRing(K1, a, K0): + """Convert a ``DMF`` object to ``dtype``. """ + if K1.gens == K0.gens: + if K1.dom == K0.dom: + return K1(a.rep) + else: + return K1(a.convert(K1.dom).rep) + else: + monoms, coeffs = _dict_reorder(a.to_dict(), K0.gens, K1.gens) + + if K1.dom != K0.dom: + coeffs = [ K1.dom.convert(c, K0.dom) for c in coeffs ] + + return K1(dict(zip(monoms, coeffs))) + + def from_FractionField(K1, a, K0): + """ + Convert a fraction field element to another fraction field. + + Examples + ======== + + >>> from sympy.polys.polyclasses import DMF + >>> from sympy.polys.domains import ZZ, QQ + >>> from sympy.abc import x + + >>> f = DMF(([ZZ(1), ZZ(2)], [ZZ(1), ZZ(1)]), ZZ) + + >>> QQx = QQ.old_frac_field(x) + >>> ZZx = ZZ.old_frac_field(x) + + >>> QQx.from_FractionField(f, ZZx) + (x + 2)/(x + 1) + + """ + if K1.gens == K0.gens: + if K1.dom == K0.dom: + return a + else: + return K1((a.numer().convert(K1.dom).rep, + a.denom().convert(K1.dom).rep)) + elif set(K0.gens).issubset(K1.gens): + nmonoms, ncoeffs = _dict_reorder( + a.numer().to_dict(), K0.gens, K1.gens) + dmonoms, dcoeffs = _dict_reorder( + a.denom().to_dict(), K0.gens, K1.gens) + + if K1.dom != K0.dom: + ncoeffs = [ K1.dom.convert(c, K0.dom) for c in ncoeffs ] + dcoeffs = [ K1.dom.convert(c, K0.dom) for c in dcoeffs ] + + return K1((dict(zip(nmonoms, ncoeffs)), dict(zip(dmonoms, dcoeffs)))) + + def get_ring(self): + """Returns a ring associated with ``self``. """ + from sympy.polys.domains import PolynomialRing + return PolynomialRing(self.dom, *self.gens) + + def poly_ring(self, *gens): + """Returns a polynomial ring, i.e. `K[X]`. """ + raise NotImplementedError('nested domains not allowed') + + def frac_field(self, *gens): + """Returns a fraction field, i.e. `K(X)`. """ + raise NotImplementedError('nested domains not allowed') + + def is_positive(self, a): + """Returns True if ``a`` is positive. """ + return self.dom.is_positive(a.numer().LC()) + + def is_negative(self, a): + """Returns True if ``a`` is negative. """ + return self.dom.is_negative(a.numer().LC()) + + def is_nonpositive(self, a): + """Returns True if ``a`` is non-positive. """ + return self.dom.is_nonpositive(a.numer().LC()) + + def is_nonnegative(self, a): + """Returns True if ``a`` is non-negative. """ + return self.dom.is_nonnegative(a.numer().LC()) + + def numer(self, a): + """Returns numerator of ``a``. """ + return a.numer() + + def denom(self, a): + """Returns denominator of ``a``. """ + return a.denom() + + def factorial(self, a): + """Returns factorial of ``a``. """ + return self.dtype(self.dom.factorial(a)) diff --git a/shared/package-files/ea/eaa7d12f9eefd8358105076abfec3f4fbd0ac4ad22a3066208b5611127e3dfa6/blob b/shared/package-files/ea/eaa7d12f9eefd8358105076abfec3f4fbd0ac4ad22a3066208b5611127e3dfa6/blob new file mode 100644 index 0000000000000000000000000000000000000000..28175b1f750445011d74e14027745a4b23556a29 --- /dev/null +++ b/shared/package-files/ea/eaa7d12f9eefd8358105076abfec3f4fbd0ac4ad22a3066208b5611127e3dfa6/blob @@ -0,0 +1,12 @@ +import sys +import shutil + + +def shutil_rmtree(path, ignore_errors=False, onexc=None): + if sys.version_info >= (3, 12): + return shutil.rmtree(path, ignore_errors, onexc=onexc) + + def _handler(fn, path, excinfo): + return onexc(fn, path, excinfo[1]) + + return shutil.rmtree(path, ignore_errors, onerror=_handler) diff --git a/shared/package-files/ea/eaae89dd546ac4092aaa1fdde75f6622dca37e17604ea4bcc5e3c7a380f76562/blob b/shared/package-files/ea/eaae89dd546ac4092aaa1fdde75f6622dca37e17604ea4bcc5e3c7a380f76562/blob new file mode 100644 index 0000000000000000000000000000000000000000..c5666b21999ac916c6b0c902ee900d4bbac32410 --- /dev/null +++ b/shared/package-files/ea/eaae89dd546ac4092aaa1fdde75f6622dca37e17604ea4bcc5e3c7a380f76562/blob @@ -0,0 +1,140 @@ +"""Distance measures approximated metrics.""" + +import networkx as nx +from networkx.utils.decorators import py_random_state + +__all__ = ["diameter"] + + +@py_random_state(1) +def diameter(G, seed=None): + """Returns a lower bound on the diameter of the graph G. + + The function computes a lower bound on the diameter (i.e., the maximum eccentricity) + of a directed or undirected graph G. The procedure used varies depending on the graph + being directed or not. + + If G is an `undirected` graph, then the function uses the `2-sweep` algorithm [1]_. + The main idea is to pick the farthest node from a random node and return its eccentricity. + + Otherwise, if G is a `directed` graph, the function uses the `2-dSweep` algorithm [2]_, + The procedure starts by selecting a random source node $s$ from which it performs a + forward and a backward BFS. Let $a_1$ and $a_2$ be the farthest nodes in the forward and + backward cases, respectively. Then, it computes the backward eccentricity of $a_1$ using + a backward BFS and the forward eccentricity of $a_2$ using a forward BFS. + Finally, it returns the best lower bound between the two. + + In both cases, the time complexity is linear with respect to the size of G. + + Parameters + ---------- + G : NetworkX graph + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + Returns + ------- + d : integer + Lower Bound on the Diameter of G + + Raises + ------ + NetworkXError + If the graph is empty or + If the graph is undirected and not connected or + If the graph is directed and not strongly connected. + + See Also + -------- + networkx.algorithms.distance_measures.diameter + + References + ---------- + .. [1] Magnien, Clémence, Matthieu Latapy, and Michel Habib. + *Fast computation of empirically tight bounds for the diameter of massive graphs.* + Journal of Experimental Algorithmics (JEA), 2009. + https://arxiv.org/pdf/0904.2728.pdf + .. [2] Crescenzi, Pierluigi, Roberto Grossi, Leonardo Lanzi, and Andrea Marino. + *On computing the diameter of real-world directed (weighted) graphs.* + International Symposium on Experimental Algorithms. Springer, Berlin, Heidelberg, 2012. + https://courses.cs.ut.ee/MTAT.03.238/2014_fall/uploads/Main/diameter.pdf + """ + # if G is empty + if not G: + raise nx.NetworkXError("Expected non-empty NetworkX graph!") + # if there's only a node + if G.number_of_nodes() == 1: + return 0 + # if G is directed + if G.is_directed(): + return _two_sweep_directed(G, seed) + # else if G is undirected + return _two_sweep_undirected(G, seed) + + +def _two_sweep_undirected(G, seed): + """Helper function for finding a lower bound on the diameter + for undirected Graphs. + + The idea is to pick the farthest node from a random node + and return its eccentricity. + + ``G`` is a NetworkX undirected graph. + + .. note:: + + ``seed`` is a random.Random or numpy.random.RandomState instance + """ + # select a random source node + source = seed.choice(list(G)) + # get the distances to the other nodes + distances = nx.shortest_path_length(G, source) + # if some nodes have not been visited, then the graph is not connected + if len(distances) != len(G): + raise nx.NetworkXError("Graph not connected.") + # take a node that is (one of) the farthest nodes from the source + *_, node = distances + # return the eccentricity of the node + return nx.eccentricity(G, node) + + +def _two_sweep_directed(G, seed): + """Helper function for finding a lower bound on the diameter + for directed Graphs. + + It implements 2-dSweep, the directed version of the 2-sweep algorithm. + The algorithm follows the following steps. + 1. Select a source node $s$ at random. + 2. Perform a forward BFS from $s$ to select a node $a_1$ at the maximum + distance from the source, and compute $LB_1$, the backward eccentricity of $a_1$. + 3. Perform a backward BFS from $s$ to select a node $a_2$ at the maximum + distance from the source, and compute $LB_2$, the forward eccentricity of $a_2$. + 4. Return the maximum between $LB_1$ and $LB_2$. + + ``G`` is a NetworkX directed graph. + + .. note:: + + ``seed`` is a random.Random or numpy.random.RandomState instance + """ + # get a new digraph G' with the edges reversed in the opposite direction + G_reversed = G.reverse() + # select a random source node + source = seed.choice(list(G)) + # compute forward distances from source + forward_distances = nx.shortest_path_length(G, source) + # compute backward distances from source + backward_distances = nx.shortest_path_length(G_reversed, source) + # if either the source can't reach every node or not every node + # can reach the source, then the graph is not strongly connected + n = len(G) + if len(forward_distances) != n or len(backward_distances) != n: + raise nx.NetworkXError("DiGraph not strongly connected.") + # take a node a_1 at the maximum distance from the source in G + *_, a_1 = forward_distances + # take a node a_2 at the maximum distance from the source in G_reversed + *_, a_2 = backward_distances + # return the max between the backward eccentricity of a_1 and the forward eccentricity of a_2 + return max(nx.eccentricity(G_reversed, a_1), nx.eccentricity(G, a_2)) diff --git a/shared/package-files/ea/eab0a5768631717c4d8d463c2379b677959924d14fd59f3904dd349e2352a306/blob b/shared/package-files/ea/eab0a5768631717c4d8d463c2379b677959924d14fd59f3904dd349e2352a306/blob new file mode 100644 index 0000000000000000000000000000000000000000..7160e174bdfc441b12c11d8771d4b9284146ef0d --- /dev/null +++ b/shared/package-files/ea/eab0a5768631717c4d8d463c2379b677959924d14fd59f3904dd349e2352a306/blob @@ -0,0 +1,737 @@ +import json +import locale +import multiprocessing +import os +import platform +import textwrap +import sys +from contextlib import redirect_stdout +from datetime import datetime +from io import StringIO +from subprocess import check_output, PIPE, CalledProcessError +import numpy as np +import llvmlite.binding as llvmbind +from llvmlite import __version__ as llvmlite_version +from numba import cuda as cu, __version__ as version_number +from numba.cuda import cudadrv +from numba.cuda.cudadrv.driver import driver as cudriver +from numba.cuda.cudadrv.runtime import runtime as curuntime +from numba.core import config + +_psutil_import = False +try: + import psutil +except ImportError: + pass +else: + _psutil_import = True + +__all__ = ['get_sysinfo', 'display_sysinfo'] + +# Keys of a `sysinfo` dictionary + +# Time info +_start, _start_utc, _runtime = 'Start', 'Start UTC', 'Runtime' +_numba_version = 'Numba Version' +# Hardware info +_machine = 'Machine' +_cpu_name, _cpu_count = 'CPU Name', 'CPU Count' +_cpus_allowed, _cpus_list = 'CPUs Allowed', 'List CPUs Allowed' +_cpu_features = 'CPU Features' +_cfs_quota, _cfs_period = 'CFS Quota', 'CFS Period', +_cfs_restrict = 'CFS Restriction' +_mem_total, _mem_available = 'Mem Total', 'Mem Available' +# OS info +_platform_name, _platform_release = 'Platform Name', 'Platform Release' +_os_name, _os_version = 'OS Name', 'OS Version' +_os_spec_version = 'OS Specific Version' +_libc_version = 'Libc Version' +# Python info +_python_comp = 'Python Compiler' +_python_impl = 'Python Implementation' +_python_version = 'Python Version' +_python_locale = 'Python Locale' +# LLVM info +_llvmlite_version = 'llvmlite Version' +_llvm_version = 'LLVM Version' +# CUDA info +_cu_target_impl = 'CUDA Target Impl' +_cu_dev_init = 'CUDA Device Init' +_cu_drv_ver = 'CUDA Driver Version' +_cu_rt_ver = 'CUDA Runtime Version' +_cu_nvidia_bindings = 'NVIDIA CUDA Bindings' +_cu_nvidia_bindings_used = 'NVIDIA CUDA Bindings In Use' +_cu_detect_out, _cu_lib_test = 'CUDA Detect Output', 'CUDA Lib Test' +_cu_mvc_available = 'NVIDIA CUDA Minor Version Compatibility Available' +_cu_mvc_needed = 'NVIDIA CUDA Minor Version Compatibility Needed' +_cu_mvc_in_use = 'NVIDIA CUDA Minor Version Compatibility In Use' +# NumPy info +_numpy_version = 'NumPy Version' +_numpy_supported_simd_features = 'NumPy Supported SIMD features' +_numpy_supported_simd_dispatch = 'NumPy Supported SIMD dispatch' +_numpy_supported_simd_baseline = 'NumPy Supported SIMD baseline' +# SciPy / LAPACK info +_scipy_version = 'SciPy Version' +_lapack_build_ilp64 = 'LAPACK Numba Built ILP64' +_lapack_runtime_ilp64 = 'LAPACK SciPy Runtime ILP64' +_lapack_int_width_match = 'LAPACK Int Width Match' +# SVML info +_svml_state, _svml_loaded = 'SVML State', 'SVML Lib Loaded' +_llvm_svml_patched = 'LLVM SVML Patched' +_svml_operational = 'SVML Operational' +# Threading layer info +_tbb_thread, _tbb_error = 'TBB Threading', 'TBB Threading Error' +_openmp_thread, _openmp_error = 'OpenMP Threading', 'OpenMP Threading Error' +_openmp_vendor = 'OpenMP vendor' +_wkq_thread, _wkq_error = 'Workqueue Threading', 'Workqueue Threading Error' +# Numba info +_numba_env_vars = 'Numba Env Vars' +# Conda info +_conda_build_ver, _conda_env_ver = 'Conda Build', 'Conda Env' +_conda_platform, _conda_python_ver = 'Conda Platform', 'Conda Python Version' +_conda_root_writable = 'Conda Root Writable' +# Packages info +_inst_pkg = 'Installed Packages' +# Psutil info +_psutil = 'Psutil Available' +# Errors and warnings +_errors = 'Errors' +_warnings = 'Warnings' + +# Error and warning log +_error_log = [] +_warning_log = [] + + +def get_os_spec_info(os_name): + # Linux man page for `/proc`: + # http://man7.org/linux/man-pages/man5/proc.5.html + + # WMIC is deprecated in windows-2025, using powershell instead + # https://techcommunity.microsoft.com/t5/windows-it-pro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/ba-p/4039242 + # Windows documentation for `powershell`: + # https://learn.microsoft.com/en-us/powershell/ + + # MacOS man page for `sysctl`: + # https://www.unix.com/man-page/osx/3/sysctl/ + # MacOS man page for `vm_stat`: + # https://www.unix.com/man-page/osx/1/vm_stat/ + + class CmdBufferOut(tuple): + buffer_output_flag = True + + class CmdReadFile(tuple): + read_file_flag = True + + shell_params = { + 'Linux': { + 'cmd': ( + CmdReadFile(('/sys/fs/cgroup/cpuacct/cpu.cfs_quota_us',)), + CmdReadFile(('/sys/fs/cgroup/cpuacct/cpu.cfs_period_us',)), + ), + 'cmd_optional': ( + CmdReadFile(('/proc/meminfo',)), + CmdReadFile(('/proc/self/status',)), + ), + 'kwds': { + # output string fragment -> result dict key + 'MemTotal:': _mem_total, + 'MemAvailable:': _mem_available, + 'Cpus_allowed:': _cpus_allowed, + 'Cpus_allowed_list:': _cpus_list, + '/sys/fs/cgroup/cpuacct/cpu.cfs_quota_us': _cfs_quota, + '/sys/fs/cgroup/cpuacct/cpu.cfs_period_us': _cfs_period, + }, + }, + 'Windows': { + 'cmd': (), + 'cmd_optional': ( + CmdBufferOut(('powershell', '-NoProfile', '-Command', + "'TotalVirtualMemorySize ' + " + "(Get-CimInstance -ClassName " + "Win32_OperatingSystem).TotalVirtualMemorySize")), + CmdBufferOut(('powershell', '-NoProfile', '-Command', + "'FreeVirtualMemory ' + " + "(Get-CimInstance -ClassName " + "Win32_OperatingSystem).FreeVirtualMemory")), + ), + 'kwds': { + # output string fragment -> result dict key + 'TotalVirtualMemorySize': _mem_total, + 'FreeVirtualMemory': _mem_available, + }, + }, + 'Darwin': { + 'cmd': (), + 'cmd_optional': ( + ('sysctl', 'hw.memsize'), + ('vm_stat'), + ), + 'kwds': { + # output string fragment -> result dict key + 'hw.memsize:': _mem_total, + 'free:': _mem_available, + }, + 'units': { + _mem_total: 1, # Size is given in bytes. + _mem_available: 4096, # Size is given in 4kB pages. + }, + }, + } + + os_spec_info = {} + params = shell_params.get(os_name, {}) + cmd_selected = params.get('cmd', ()) + + if _psutil_import: + vm = psutil.virtual_memory() + os_spec_info.update({ + _mem_total: vm.total, + _mem_available: vm.available, + }) + p = psutil.Process() + cpus_allowed = p.cpu_affinity() if hasattr(p, 'cpu_affinity') else [] + if cpus_allowed: + os_spec_info[_cpus_allowed] = len(cpus_allowed) + os_spec_info[_cpus_list] = ' '.join(str(n) for n in cpus_allowed) + + else: + _warning_log.append( + "Warning (psutil): psutil cannot be imported. " + "For more accuracy, consider installing it.") + # Fallback to internal heuristics + cmd_selected += params.get('cmd_optional', ()) + + # Assuming the shell cmd returns a unique (k, v) pair per line + # or a unique (k, v) pair spread over several lines: + # Gather output in a list of strings containing a keyword and some value. + output = [] + for cmd in cmd_selected: + if hasattr(cmd, 'read_file_flag'): + # Open file within Python + if os.path.exists(cmd[0]): + try: + with open(cmd[0], 'r') as f: + out = f.readlines() + if out: + out[0] = ' '.join((cmd[0], out[0])) + output.extend(out) + except OSError as e: + _error_log.append(f'Error (file read): {e}') + continue + else: + _warning_log.append('Warning (no file): {}'.format(cmd[0])) + continue + else: + # Spawn a subprocess + try: + out = check_output(cmd, stderr=PIPE) + except (OSError, CalledProcessError) as e: + _error_log.append(f'Error (subprocess): {e}') + continue + if hasattr(cmd, 'buffer_output_flag'): + out = b' '.join(line for line in out.splitlines()) + b'\n' + output.extend(out.decode().splitlines()) + + # Extract (k, output) pairs by searching for keywords in output + kwds = params.get('kwds', {}) + for line in output: + match = kwds.keys() & line.split() + if match and len(match) == 1: + k = kwds[match.pop()] + os_spec_info[k] = line + elif len(match) > 1: + print(f'Ambiguous output: {line}') + + # Try to extract something meaningful from output string + def format(): + # CFS restrictions + split = os_spec_info.get(_cfs_quota, '').split() + if split: + os_spec_info[_cfs_quota] = float(split[-1]) + split = os_spec_info.get(_cfs_period, '').split() + if split: + os_spec_info[_cfs_period] = float(split[-1]) + if os_spec_info.get(_cfs_quota, -1) != -1: + cfs_quota = os_spec_info.get(_cfs_quota, '') + cfs_period = os_spec_info.get(_cfs_period, '') + runtime_amount = cfs_quota / cfs_period + os_spec_info[_cfs_restrict] = runtime_amount + + def format_optional(): + # Memory + units = {_mem_total: 1024, _mem_available: 1024} + units.update(params.get('units', {})) + for k in (_mem_total, _mem_available): + digits = ''.join(d for d in os_spec_info.get(k, '') if d.isdigit()) + os_spec_info[k] = int(digits or 0) * units[k] + # Accessible CPUs + split = os_spec_info.get(_cpus_allowed, '').split() + if split: + n = split[-1] + n = n.split(',')[-1] + os_spec_info[_cpus_allowed] = str(bin(int(n or 0, 16))).count('1') + split = os_spec_info.get(_cpus_list, '').split() + if split: + os_spec_info[_cpus_list] = split[-1] + + try: + format() + if not _psutil_import: + format_optional() + except Exception as e: + _error_log.append(f'Error (format shell output): {e}') + + # Call OS specific functions + os_specific_funcs = { + 'Linux': { + _libc_version: lambda: ' '.join(platform.libc_ver()) + }, + 'Windows': { + _os_spec_version: lambda: ' '.join( + s for s in platform.win32_ver()), + }, + 'Darwin': { + _os_spec_version: lambda: ''.join( + i or ' ' for s in tuple(platform.mac_ver()) for i in s), + }, + } + key_func = os_specific_funcs.get(os_name, {}) + os_spec_info.update({k: f() for k, f in key_func.items()}) + return os_spec_info + + +def get_sysinfo(): + + # Gather the information that shouldn't raise exceptions + sys_info = { + _start: datetime.now(), + _start_utc: datetime.utcnow(), + _machine: platform.machine(), + _cpu_name: llvmbind.get_host_cpu_name(), + _cpu_count: multiprocessing.cpu_count(), + _platform_name: platform.platform(aliased=True), + _platform_release: platform.release(), + _os_name: platform.system(), + _os_version: platform.version(), + _python_comp: platform.python_compiler(), + _python_impl: platform.python_implementation(), + _python_version: platform.python_version(), + _numba_env_vars: {k: v for (k, v) in os.environ.items() + if k.startswith('NUMBA_')}, + _numba_version: version_number, + _llvm_version: '.'.join(str(i) for i in llvmbind.llvm_version_info), + _llvmlite_version: llvmlite_version, + _psutil: _psutil_import, + } + + # CPU features + try: + feature_map = llvmbind.get_host_cpu_features() + except RuntimeError as e: + _error_log.append(f'Error (CPU features): {e}') + else: + features = sorted([key for key, value in feature_map.items() if value]) + sys_info[_cpu_features] = ' '.join(features) + + # Python locale + # On MacOSX, getdefaultlocale can raise. Check again if Py > 3.7.5 + try: + # If $LANG is unset, getdefaultlocale() can return (None, None), make + # sure we can encode this as strings by casting explicitly. + sys_info[_python_locale] = '.'.join([str(i) for i in + locale.getdefaultlocale()]) + except Exception as e: + _error_log.append(f'Error (locale): {e}') + + # CUDA information + try: + sys_info[_cu_target_impl] = cu.implementation + except AttributeError: + # On the offchance an out-of-tree target did not set the + # implementation, we can try to continue + pass + + try: + cu.list_devices()[0] # will a device initialise? + except Exception as e: + sys_info[_cu_dev_init] = False + msg_not_found = "CUDA driver library cannot be found" + msg_disabled_by_user = "CUDA is disabled" + msg_end = " or no CUDA enabled devices are present." + msg_generic_problem = "CUDA device initialisation problem." + msg = getattr(e, 'msg', None) + if msg is not None: + if msg_not_found in msg: + err_msg = msg_not_found + msg_end + elif msg_disabled_by_user in msg: + err_msg = msg_disabled_by_user + msg_end + else: + err_msg = msg_generic_problem + " Message:" + msg + else: + err_msg = msg_generic_problem + " " + str(e) + # Best effort error report + _warning_log.append("Warning (cuda): %s\nException class: %s" % + (err_msg, str(type(e)))) + else: + try: + sys_info[_cu_dev_init] = True + + output = StringIO() + with redirect_stdout(output): + cu.detect() + sys_info[_cu_detect_out] = output.getvalue() + output.close() + + cu_drv_ver = cudriver.get_version() + cu_rt_ver = curuntime.get_version() + sys_info[_cu_drv_ver] = '%s.%s' % cu_drv_ver + sys_info[_cu_rt_ver] = '%s.%s' % cu_rt_ver + + output = StringIO() + with redirect_stdout(output): + cudadrv.libs.test() + sys_info[_cu_lib_test] = output.getvalue() + output.close() + + try: + from cuda import cuda # noqa: F401 + nvidia_bindings_available = True + except ImportError: + nvidia_bindings_available = False + sys_info[_cu_nvidia_bindings] = nvidia_bindings_available + + nv_binding_used = bool(cudadrv.driver.USE_NV_BINDING) + sys_info[_cu_nvidia_bindings_used] = nv_binding_used + + try: + from ptxcompiler import compile_ptx # noqa: F401 + from cubinlinker import CubinLinker # noqa: F401 + sys_info[_cu_mvc_available] = True + except ImportError: + sys_info[_cu_mvc_available] = False + + sys_info[_cu_mvc_needed] = cu_rt_ver > cu_drv_ver + sys_info[_cu_mvc_in_use] = bool( + config.CUDA_ENABLE_MINOR_VERSION_COMPATIBILITY) + except Exception as e: + _warning_log.append( + "Warning (cuda): Probing CUDA failed " + "(device and driver present, runtime problem?)\n" + f"(cuda) {type(e)}: {e}") + + # NumPy information + sys_info[_numpy_version] = np.version.full_version + try: + # NOTE: These consts were added in NumPy 1.20 + from numpy.core._multiarray_umath import (__cpu_features__, + __cpu_dispatch__, + __cpu_baseline__,) + except ImportError: + pass + else: + feat_filtered = [k for k, v in __cpu_features__.items() if v] + sys_info[_numpy_supported_simd_features] = feat_filtered + sys_info[_numpy_supported_simd_dispatch] = __cpu_dispatch__ + sys_info[_numpy_supported_simd_baseline] = __cpu_baseline__ + + # SciPy / LAPACK information + try: + from numba.np.linalg import _LAPACK_BUILD_ILP64 + sys_info[_lapack_build_ilp64] = _LAPACK_BUILD_ILP64 + try: + import scipy + import scipy.linalg.cython_lapack # noqa: F401 + except ImportError: + pass # no scipy (or too old) -- nothing to compare against + else: + from numba.np.linalg import _lapack_runtime_is_ilp64 + sys_info[_scipy_version] = scipy.__version__ + runtime_ilp64 = _lapack_runtime_is_ilp64() + sys_info[_lapack_runtime_ilp64] = runtime_ilp64 + sys_info[_lapack_int_width_match] = ( + runtime_ilp64 == _LAPACK_BUILD_ILP64) + except Exception as e: + _warning_log.append( + "Warning (scipy): Probing LAPACK/BLAS integer width failed\n" + f"(scipy) {type(e)}: {e}") + + # SVML information + # Replicate some SVML detection logic from numba.__init__ here. + # If SVML load fails in numba.__init__ the splitting of the logic + # here will help diagnosing the underlying issue. + svml_lib_loaded = True + try: + if sys.platform.startswith('linux'): + llvmbind.load_library_permanently("libsvml.so") + elif sys.platform.startswith('darwin'): + llvmbind.load_library_permanently("libsvml.dylib") + elif sys.platform.startswith('win'): + llvmbind.load_library_permanently("svml_dispmd") + else: + svml_lib_loaded = False + except Exception: + svml_lib_loaded = False + func = getattr(llvmbind.targets, "has_svml", None) + sys_info[_llvm_svml_patched] = func() if func else False + sys_info[_svml_state] = config.USING_SVML + sys_info[_svml_loaded] = svml_lib_loaded + sys_info[_svml_operational] = all(( + sys_info[_svml_state], + sys_info[_svml_loaded], + sys_info[_llvm_svml_patched], + )) + + # Check which threading backends are available. + def parse_error(e, backend): + # parses a linux based error message, this is to provide feedback + # and hide user paths etc + try: + path, problem, symbol = [x.strip() for x in e.msg.split(':')] + extn_dso = os.path.split(path)[1] + if backend in extn_dso: + return "%s: %s" % (problem, symbol) + except Exception: + pass + return "Unknown import problem." + + try: + # check import is ok, this means the DSO linkage is working + from numba.np.ufunc import tbbpool # NOQA + # check that the version is compatible, this is a check performed at + # runtime (well, compile time), it will also ImportError if there's + # a problem. + from numba.np.ufunc.parallel import _check_tbb_version_compatible + _check_tbb_version_compatible() + sys_info[_tbb_thread] = True + except ImportError as e: + # might be a missing symbol due to e.g. tbb libraries missing + sys_info[_tbb_thread] = False + sys_info[_tbb_error] = parse_error(e, 'tbbpool') + + try: + from numba.np.ufunc import omppool + sys_info[_openmp_thread] = True + sys_info[_openmp_vendor] = omppool.openmp_vendor + except ImportError as e: + sys_info[_openmp_thread] = False + sys_info[_openmp_error] = parse_error(e, 'omppool') + + try: + from numba.np.ufunc import workqueue # NOQA + sys_info[_wkq_thread] = True + except ImportError as e: + sys_info[_wkq_thread] = True + sys_info[_wkq_error] = parse_error(e, 'workqueue') + + # Look for conda and installed packages information + cmd = ('conda', 'info', '--json') + try: + conda_out = check_output(cmd) + except Exception as e: + _warning_log.append(f'Warning: Conda not available.\n Error was {e}\n') + # Conda is not available, try pip list to list installed packages + cmd = (sys.executable, '-m', 'pip', 'list') + try: + reqs = check_output(cmd) + except Exception as e: + _error_log.append(f'Error (pip): {e}') + else: + sys_info[_inst_pkg] = reqs.decode().splitlines() + + else: + jsond = json.loads(conda_out.decode()) + keys = { + 'conda_build_version': _conda_build_ver, + 'conda_env_version': _conda_env_ver, + 'platform': _conda_platform, + 'python_version': _conda_python_ver, + 'root_writable': _conda_root_writable, + } + for conda_k, sysinfo_k in keys.items(): + sys_info[sysinfo_k] = jsond.get(conda_k, 'N/A') + + # Get info about packages in current environment + cmd = ('conda', 'list') + try: + conda_out = check_output(cmd) + except CalledProcessError as e: + _error_log.append(f'Error (conda): {e}') + else: + data = conda_out.decode().splitlines() + sys_info[_inst_pkg] = [l for l in data if not l.startswith('#')] + + sys_info.update(get_os_spec_info(sys_info[_os_name])) + sys_info[_errors] = _error_log + sys_info[_warnings] = _warning_log + sys_info[_runtime] = (datetime.now() - sys_info[_start]).total_seconds() + return sys_info + + +def display_sysinfo(info=None, sep_pos=45): + class DisplayMap(dict): + display_map_flag = True + + class DisplaySeq(tuple): + display_seq_flag = True + + class DisplaySeqMaps(tuple): + display_seqmaps_flag = True + + if info is None: + info = get_sysinfo() + + fmt = f'%-{sep_pos}s : %-s' + MB = 1024**2 + template = ( + ("-" * 80,), + ("__Time Stamp__",), + ("Report started (local time)", info.get(_start, '?')), + ("UTC start time", info.get(_start_utc, '?')), + ("Running time (s)", info.get(_runtime, '?')), + ("",), + ("__Hardware Information__",), + ("Machine", info.get(_machine, '?')), + ("CPU Name", info.get(_cpu_name, '?')), + ("CPU Count", info.get(_cpu_count, '?')), + ("Number of accessible CPUs", info.get(_cpus_allowed, '?')), + ("List of accessible CPUs cores", info.get(_cpus_list, '?')), + ("CFS Restrictions (CPUs worth of runtime)", + info.get(_cfs_restrict, 'None')), + ("",), + ("CPU Features", '\n'.join( + ' ' * (sep_pos + 3) + l if i else l + for i, l in enumerate( + textwrap.wrap( + info.get(_cpu_features, '?'), + width=79 - sep_pos + ) + ) + )), + ("",), + ("Memory Total (MB)", info.get(_mem_total, 0) // MB or '?'), + ("Memory Available (MB)" + if info.get(_os_name, '') != 'Darwin' or info.get(_psutil, False) + else "Free Memory (MB)", info.get(_mem_available, 0) // MB or '?'), + ("",), + ("__OS Information__",), + ("Platform Name", info.get(_platform_name, '?')), + ("Platform Release", info.get(_platform_release, '?')), + ("OS Name", info.get(_os_name, '?')), + ("OS Version", info.get(_os_version, '?')), + ("OS Specific Version", info.get(_os_spec_version, '?')), + ("Libc Version", info.get(_libc_version, '?')), + ("",), + ("__Python Information__",), + DisplayMap({k: v for k, v in info.items() if k.startswith('Python')}), + ("",), + ("__Numba Toolchain Versions__",), + ("Numba Version", info.get(_numba_version, '?')), + ("llvmlite Version", info.get(_llvmlite_version, '?')), + ("",), + ("__LLVM Information__",), + ("LLVM Version", info.get(_llvm_version, '?')), + ("",), + ("__CUDA Information__",), + ("CUDA Target Implementation", info.get(_cu_target_impl, '?')), + ("CUDA Device Initialized", info.get(_cu_dev_init, '?')), + ("CUDA Driver Version", info.get(_cu_drv_ver, '?')), + ("CUDA Runtime Version", info.get(_cu_rt_ver, '?')), + ("CUDA NVIDIA Bindings Available", info.get(_cu_nvidia_bindings, '?')), + ("CUDA NVIDIA Bindings In Use", + info.get(_cu_nvidia_bindings_used, '?')), + ("CUDA Minor Version Compatibility Available", + info.get(_cu_mvc_available, '?')), + ("CUDA Minor Version Compatibility Needed", + info.get(_cu_mvc_needed, '?')), + ("CUDA Minor Version Compatibility In Use", + info.get(_cu_mvc_in_use, '?')), + ("CUDA Detect Output:",), + (info.get(_cu_detect_out, "None"),), + ("CUDA Libraries Test Output:",), + (info.get(_cu_lib_test, "None"),), + ("",), + ("__NumPy Information__",), + ("NumPy Version", info.get(_numpy_version, '?')), + ("NumPy Supported SIMD features", + DisplaySeq(info.get(_numpy_supported_simd_features, []) + or ('None found.',))), + ("NumPy Supported SIMD dispatch", + DisplaySeq(info.get(_numpy_supported_simd_dispatch, []) + or ('None found.',))), + ("NumPy Supported SIMD baseline", + DisplaySeq(info.get(_numpy_supported_simd_baseline, []) + or ('None found.',))), + ("",), + ("__SciPy / LAPACK Information__",), + ("SciPy Version", info.get(_scipy_version, 'Not Installed')), + ("Numba Built For", + 'ILP64' if info.get(_lapack_build_ilp64) else 'LP64'), + ("SciPy Runtime Provides", + ('ILP64' if info[_lapack_runtime_ilp64] else 'LP64') + if _lapack_runtime_ilp64 in info else 'Unknown (no SciPy found)'), + ("LAPACK Integer Width Matches Build", + info.get(_lapack_int_width_match, 'Unknown (no SciPy found)')), + ("",), + ("__SVML Information__",), + ("SVML State, config.USING_SVML", info.get(_svml_state, '?')), + ("SVML Library Loaded", info.get(_svml_loaded, '?')), + ("llvmlite Using SVML Patched LLVM", info.get(_llvm_svml_patched, '?')), + ("SVML Operational", info.get(_svml_operational, '?')), + ("",), + ("__Threading Layer Information__",), + ("TBB Threading Layer Available", info.get(_tbb_thread, '?')), + ("+-->TBB imported successfully." if info.get(_tbb_thread, '?') + else f"+--> Disabled due to {info.get(_tbb_error, '?')}",), + ("OpenMP Threading Layer Available", info.get(_openmp_thread, '?')), + (f"+-->Vendor: {info.get(_openmp_vendor, '?')}" + if info.get(_openmp_thread, False) + else f"+--> Disabled due to {info.get(_openmp_error, '?')}",), + ("Workqueue Threading Layer Available", info.get(_wkq_thread, '?')), + ("+-->Workqueue imported successfully." if info.get(_wkq_thread, False) + else f"+--> Disabled due to {info.get(_wkq_error, '?')}",), + ("",), + ("__Numba Environment Variable Information__",), + (DisplayMap(info.get(_numba_env_vars, {})) or ('None found.',)), + ("",), + ("__Conda Information__",), + (DisplayMap({k: v for k, v in info.items() + if k.startswith('Conda')}) or ("Conda not available.",)), + ("",), + ("__Installed Packages__",), + DisplaySeq(info.get(_inst_pkg, ("Couldn't retrieve packages info.",))), + ("",), + ("__Error log__" if info.get(_errors, []) + else "No errors reported.",), + DisplaySeq(info.get(_errors, [])), + ("",), + ("__Warning log__" if info.get(_warnings, []) + else "No warnings reported.",), + DisplaySeq(info.get(_warnings, [])), + ("-" * 80,), + ("If requested, please copy and paste the information between\n" + "the dashed (----) lines, or from a given specific section as\n" + "appropriate.\n\n" + "=============================================================\n" + "IMPORTANT: Please ensure that you are happy with sharing the\n" + "contents of the information present, any information that you\n" + "wish to keep private you should remove before sharing.\n" + "=============================================================\n",), + ) + for t in template: + if hasattr(t, 'display_seq_flag'): + print(*t, sep='\n') + elif hasattr(t, 'display_map_flag'): + print(*tuple(fmt % (k, v) for (k, v) in t.items()), sep='\n') + elif hasattr(t, 'display_seqmaps_flag'): + for d in t: + print(*tuple(fmt % ('\t' + k, v) for (k, v) in d.items()), + sep='\n', end='\n') + elif len(t) == 2: + print(fmt % t) + else: + print(*t) + + +if __name__ == '__main__': + display_sysinfo() diff --git a/shared/package-files/ea/eab24e688a1357edefd6f90e0c786ab5a8b7f6c43bc58a755a7874c8a541f4fd/blob b/shared/package-files/ea/eab24e688a1357edefd6f90e0c786ab5a8b7f6c43bc58a755a7874c8a541f4fd/blob new file mode 100644 index 0000000000000000000000000000000000000000..746a5e27a5c105186727ff97af4d7ba50ab8c0bf --- /dev/null +++ b/shared/package-files/ea/eab24e688a1357edefd6f90e0c786ab5a8b7f6c43bc58a755a7874c8a541f4fd/blob @@ -0,0 +1,245 @@ +#pragma once + +#include +#include +#include +#include +#include + +// This file defines Vectorized<> for the quantized types. +// +// +// Currently, we simply use these classes as efficient converters between +// the quantized types and Vectorized, usually in bandwidth-bound cases +// where doing the arithmetic in full-precision is acceptable (e.g. +// elementwise operators). +// +// +// Conversions are as follows: +// Vectorized -> 1x Vectorized +// +// The size of the returned float vector is specified by the special +// constexpr function float_num_vecs. The type of the value returned +// from dequantize (and expected as an argument to quantize) is +// specified by float_vec_return_type. +// +// When writing kernels with these vectors, it is expected that floating- +// point operations will be carried out in a loop over Vectorized::float_num_vecs +// iterations. + +namespace at { +namespace vec { +inline namespace CPU_CAPABILITY { + +template <> +struct Vectorized { + private: + union { + struct { + vint32 _vec0; + vint32 _vec1; + }; + struct { + vbool32 _vecb0; + vbool32 _vecb1; + }; + + } __attribute__((__may_alias__)); + + public: + Vectorized() {} + + using size_type = int; + static constexpr size_type size() { + return 8; + } + + static constexpr size_t float_num_vecs() { + return 1; + } + static constexpr int int_num_vecs() { + return 1; + } + using float_vec_return_type = std::array, 1>; + using int_vec_return_type = std::array, 1>; + using value_type = c10::qint32::underlying; + using vec_internal_type = vint32; + using vec_internal_mask_type = vbool32; + C10_ALWAYS_INLINE Vectorized(vint32 v) : _vec0{v}, _vec1{v} {} + C10_ALWAYS_INLINE Vectorized(vbool32 vmask) : _vecb0{vmask}, _vecb1{vmask} {} + C10_ALWAYS_INLINE Vectorized(vint32 v1, vint32 v2) : _vec0{v1}, _vec1{v2} {} + C10_ALWAYS_INLINE Vectorized(vbool32 v1, vbool32 v2) : _vecb0{v1}, _vecb1{v2} {} + + Vectorized(const c10::qint32& val) + : _vec0(vec_splats(val.val_)), _vec1(vec_splats(val.val_)) {} + + static Vectorized C10_ALWAYS_INLINE + loadu(const void* ptr, int count = size()) { + if (count == size()) { + return { + vec_vsx_ld(offset0, reinterpret_cast(ptr)), + vec_vsx_ld(offset16, reinterpret_cast(ptr))}; + } + + __at_align__ value_type tmp_values[size()] = {}; + std::memcpy(tmp_values, ptr, std::min(count, size()) * sizeof(value_type)); + + return {vec_vsx_ld(offset0, tmp_values), vec_vsx_ld(offset16, tmp_values)}; + } + void C10_ALWAYS_INLINE store(void* ptr, int count = size()) const { + if (count == size()) { + vec_vsx_st(_vec0, offset0, reinterpret_cast(ptr)); + vec_vsx_st(_vec1, offset16, reinterpret_cast(ptr)); + } else if (count > 0) { + __at_align__ value_type tmp_values[size()]; + vec_vsx_st(_vec0, offset0, tmp_values); + vec_vsx_st(_vec1, offset16, tmp_values); + std::memcpy( + ptr, tmp_values, std::min(count, size()) * sizeof(value_type)); + } + } + + C10_ALWAYS_INLINE const vec_internal_type& vec0() const { + return _vec0; + } + C10_ALWAYS_INLINE const vec_internal_type& vec1() const { + return _vec1; + } + + float_vec_return_type dequantize( + Vectorized scale, + Vectorized zero_point, + Vectorized scale_zp_premul) const { + vfloat32 float_vals0 = vec_float(_vec0); + vfloat32 float_vals1 = vec_float(_vec1); + vfloat32 scale_vec0 = scale.vec0(); + vfloat32 scale_vec1 = scale.vec1(); + vfloat32 scale_zp_premul0 = scale_zp_premul.vec0(); + vfloat32 scale_zp_premul1 = scale_zp_premul.vec1(); + return {Vectorized{ + vec_madd(scale_vec0, float_vals0, scale_zp_premul0), + vec_madd(scale_vec1, float_vals1, scale_zp_premul1)}}; + } + + float_vec_return_type dequantize( + Vectorized scale, + Vectorized zero_point) const { + vfloat32 float_vals0 = vec_float(_vec0); + vfloat32 float_vals1 = vec_float(_vec1); + vfloat32 scale_vec0 = scale.vec0(); + vfloat32 scale_vec1 = scale.vec1(); + vfloat32 zero_point0 = zero_point.vec0(); + vfloat32 zero_point1 = zero_point.vec1(); + return {Vectorized{ + (float_vals0 - zero_point0) * scale_vec0, + (float_vals1 - zero_point1) * scale_vec1}}; + } + + static Vectorized quantize( + const float_vec_return_type& rhs, + float scale, + int32_t zero_point, + float inverse_scale) { + Vectorized retval; + + const vint32 vmin = vec_splats(std::numeric_limits::min()); + const vint32 vmax = vec_splats(std::numeric_limits::max()); + vfloat32 inverse_scale_v = vec_splats(inverse_scale); + vfloat32 vec_zero_point = vec_splats((float)(zero_point)); + Vectorized vf0 = rhs[0]; + + vfloat32 vecf0 = vf0.vec0(); + vfloat32 vecf1 = vf0.vec1(); + vecf0 = vec_mul(vecf0, inverse_scale_v); + vecf1 = vec_mul(vecf1, inverse_scale_v); + vecf0 = vec_add(vec_rint(vecf0), vec_zero_point); + vecf1 = vec_add(vec_rint(vecf1), vec_zero_point); + vint32 veci0 = vec_signed(vecf0); + vint32 veci1 = vec_signed(vecf1); + + veci0 = vec_max(veci0, vmin); + veci1 = vec_max(veci1, vmin); + veci0 = vec_min(veci0, vmax); + veci1 = vec_min(veci1, vmax); + + return {veci0, veci1}; + } + + Vectorized relu(Vectorized zero_point) const { + return {vec_max(_vec0, zero_point._vec0), vec_max(_vec1, zero_point._vec1)}; + } + + Vectorized relu6( + Vectorized zero_point, + Vectorized q_six) const { + vint32 max0 = vec_max(_vec0, zero_point._vec0); + vint32 max1 = vec_max(_vec1, zero_point._vec1); + return {vec_min(max0, q_six._vec0), vec_min(max1, q_six._vec1)}; + } + + int_vec_return_type widening_subtract(Vectorized b) const { + return {*this - b}; + } + + static Vectorized requantize_from_int( + const int_vec_return_type& inp, + float multiplier, + int32_t zero_point) { + const vint32 vmin = vec_splats(std::numeric_limits::min()); + const vint32 vmax = vec_splats(std::numeric_limits::max()); + vfloat32 vec_mult = vec_splats(multiplier); + vint32 vec_zero_point = vec_splats(zero_point); + Vectorized vi = inp[0]; + vfloat32 vecf0 = vec_float(vi.vec0()); + vfloat32 vecf1 = vec_float(vi.vec1()); + + vecf0 = vec_mul(vecf0, vec_mult); + vecf1 = vec_mul(vecf1, vec_mult); + + vecf0 = vec_rint(vecf0); + vecf1 = vec_rint(vecf1); + + vint32 veci0 = vec_add(vec_signed(vecf0),vec_zero_point); + vint32 veci1 = vec_add(vec_signed(vecf1),vec_zero_point); + + veci0 = vec_max(veci0, vmin); + veci1 = vec_max(veci1, vmin); + veci0 = vec_min(veci0, vmax); + veci1 = vec_min(veci1, vmax); + + return {veci0, veci1}; + } + + DEFINE_MEMBER_OP(operator==, c10::qint32, vec_cmpeq) + DEFINE_MEMBER_OP(operator!=, c10::qint32, vec_cmpne) + DEFINE_MEMBER_OP(operator<, c10::qint32, vec_cmplt) + DEFINE_MEMBER_OP(operator<=, c10::qint32, vec_cmple) + DEFINE_MEMBER_OP(operator>, c10::qint32, vec_cmpgt) + DEFINE_MEMBER_OP(operator>=, c10::qint32, vec_cmpge) + DEFINE_MEMBER_OP(operator+, c10::qint32, vec_add) + DEFINE_MEMBER_OP(operator-, c10::qint32, vec_sub) + DEFINE_MEMBER_OP(operator*, c10::qint32, vec_mul) + DEFINE_MEMBER_EMULATE_BINARY_OP(operator/, c10::qint32, /) + DEFINE_MEMBER_OP(maximum, c10::qint32, vec_max) + DEFINE_MEMBER_OP(minimum, c10::qint32, vec_min) + DEFINE_MEMBER_OP(operator&, c10::qint32, vec_and) + DEFINE_MEMBER_OP(operator|, c10::qint32, vec_or) + DEFINE_MEMBER_OP(operator^, c10::qint32, vec_xor) +}; + +template <> +Vectorized inline maximum( + const Vectorized& a, + const Vectorized& b) { + return a.maximum(b); +} + +template <> +Vectorized inline minimum( + const Vectorized& a, + const Vectorized& b) { + return a.minimum(b); +} +} // namespace +} // namespace vec +} // namespace at diff --git a/shared/package-files/ea/eab481ca55902fae679fa2f794c8a81f913723d5029a79d9eb806d4b0c6b6b49/blob b/shared/package-files/ea/eab481ca55902fae679fa2f794c8a81f913723d5029a79d9eb806d4b0c6b6b49/blob new file mode 100644 index 0000000000000000000000000000000000000000..7db4da1ff081c1c66c1f0224d7543e68aa3b89a5 --- /dev/null +++ b/shared/package-files/ea/eab481ca55902fae679fa2f794c8a81f913723d5029a79d9eb806d4b0c6b6b49/blob @@ -0,0 +1,131 @@ +# Copyright (C) 2001-2007 Python Software Foundation +# Author: Barry Warsaw, Thomas Wouters, Anthony Baxter +# Contact: email-sig@python.org + +"""A parser of RFC 2822 and MIME email messages.""" + +__all__ = ['Parser', 'HeaderParser', 'BytesParser', 'BytesHeaderParser', + 'FeedParser', 'BytesFeedParser'] + +from io import StringIO, TextIOWrapper + +from email.feedparser import FeedParser, BytesFeedParser +from email._policybase import compat32 + + +class Parser: + def __init__(self, _class=None, *, policy=compat32): + """Parser of RFC 2822 and MIME email messages. + + Creates an in-memory object tree representing the email message, which + can then be manipulated and turned over to a Generator to return the + textual representation of the message. + + The string must be formatted as a block of RFC 2822 headers and header + continuation lines, optionally preceded by a `Unix-from' header. The + header block is terminated either by the end of the string or by a + blank line. + + _class is the class to instantiate for new message objects when they + must be created. This class must have a constructor that can take + zero arguments. Default is Message.Message. + + The policy keyword specifies a policy object that controls a number of + aspects of the parser's operation. The default policy maintains + backward compatibility. + + """ + self._class = _class + self.policy = policy + + def parse(self, fp, headersonly=False): + """Create a message structure from the data in a file. + + Reads all the data from the file and returns the root of the message + structure. Optional headersonly is a flag specifying whether to stop + parsing after reading the headers or not. The default is False, + meaning it parses the entire contents of the file. + """ + feedparser = FeedParser(self._class, policy=self.policy) + if headersonly: + feedparser._set_headersonly() + while True: + data = fp.read(8192) + if not data: + break + feedparser.feed(data) + return feedparser.close() + + def parsestr(self, text, headersonly=False): + """Create a message structure from a string. + + Returns the root of the message structure. Optional headersonly is a + flag specifying whether to stop parsing after reading the headers or + not. The default is False, meaning it parses the entire contents of + the file. + """ + return self.parse(StringIO(text), headersonly=headersonly) + + + +class HeaderParser(Parser): + def parse(self, fp, headersonly=True): + return Parser.parse(self, fp, True) + + def parsestr(self, text, headersonly=True): + return Parser.parsestr(self, text, True) + + +class BytesParser: + + def __init__(self, *args, **kw): + """Parser of binary RFC 2822 and MIME email messages. + + Creates an in-memory object tree representing the email message, which + can then be manipulated and turned over to a Generator to return the + textual representation of the message. + + The input must be formatted as a block of RFC 2822 headers and header + continuation lines, optionally preceded by a `Unix-from' header. The + header block is terminated either by the end of the input or by a + blank line. + + _class is the class to instantiate for new message objects when they + must be created. This class must have a constructor that can take + zero arguments. Default is Message.Message. + """ + self.parser = Parser(*args, **kw) + + def parse(self, fp, headersonly=False): + """Create a message structure from the data in a binary file. + + Reads all the data from the file and returns the root of the message + structure. Optional headersonly is a flag specifying whether to stop + parsing after reading the headers or not. The default is False, + meaning it parses the entire contents of the file. + """ + fp = TextIOWrapper(fp, encoding='ascii', errors='surrogateescape') + try: + return self.parser.parse(fp, headersonly) + finally: + fp.detach() + + + def parsebytes(self, text, headersonly=False): + """Create a message structure from a byte string. + + Returns the root of the message structure. Optional headersonly is a + flag specifying whether to stop parsing after reading the headers or + not. The default is False, meaning it parses the entire contents of + the file. + """ + text = text.decode('ASCII', errors='surrogateescape') + return self.parser.parsestr(text, headersonly) + + +class BytesHeaderParser(BytesParser): + def parse(self, fp, headersonly=True): + return BytesParser.parse(self, fp, headersonly=True) + + def parsebytes(self, text, headersonly=True): + return BytesParser.parsebytes(self, text, headersonly=True) diff --git a/shared/package-files/ea/eab88595bd9e2b08ef41463fa3faf86fc6ba5792c21cc32aa4d23030003bcb76/blob b/shared/package-files/ea/eab88595bd9e2b08ef41463fa3faf86fc6ba5792c21cc32aa4d23030003bcb76/blob new file mode 100644 index 0000000000000000000000000000000000000000..8ba24878b95b2dedbbc7bee89be5616fb5928359 --- /dev/null +++ b/shared/package-files/ea/eab88595bd9e2b08ef41463fa3faf86fc6ba5792c21cc32aa4d23030003bcb76/blob @@ -0,0 +1,911 @@ +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +""" +Generalized Linear Models with Exponential Dispersion Family +""" + +from numbers import Integral, Real + +import numpy as np +import scipy.optimize + +from ..._loss.loss import ( + HalfGammaLoss, + HalfPoissonLoss, + HalfSquaredError, + HalfTweedieLoss, + HalfTweedieLossIdentity, +) +from ...base import BaseEstimator, RegressorMixin, _fit_context +from ...utils import check_array +from ...utils._openmp_helpers import _openmp_effective_n_threads +from ...utils._param_validation import Hidden, Interval, StrOptions +from ...utils.fixes import _get_additional_lbfgs_options_dict +from ...utils.optimize import _check_optimize_result +from ...utils.validation import _check_sample_weight, check_is_fitted, validate_data +from .._linear_loss import LinearModelLoss +from ._newton_solver import NewtonCholeskySolver, NewtonSolver + + +class _GeneralizedLinearRegressor(RegressorMixin, BaseEstimator): + """Regression via a penalized Generalized Linear Model (GLM). + + GLMs based on a reproductive Exponential Dispersion Model (EDM) aim at fitting and + predicting the mean of the target y as y_pred=h(X*w) with coefficients w. + Therefore, the fit minimizes the following objective function with L2 priors as + regularizer:: + + 1/(2*sum(s_i)) * sum(s_i * deviance(y_i, h(x_i*w)) + 1/2 * alpha * ||w||_2^2 + + with inverse link function h, s=sample_weight and per observation (unit) deviance + deviance(y_i, h(x_i*w)). Note that for an EDM, 1/2 * deviance is the negative + log-likelihood up to a constant (in w) term. + The parameter ``alpha`` corresponds to the lambda parameter in glmnet. + + Instead of implementing the EDM family and a link function separately, we directly + use the loss functions `from sklearn._loss` which have the link functions included + in them for performance reasons. We pick the loss functions that implement + (1/2 times) EDM deviances. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.23 + + Parameters + ---------- + alpha : float, default=1 + Constant that multiplies the penalty term and thus determines the + regularization strength. ``alpha = 0`` is equivalent to unpenalized + GLMs. In this case, the design matrix `X` must have full column rank + (no collinearities). + Values must be in the range `[0.0, inf)`. + + fit_intercept : bool, default=True + Specifies if a constant (a.k.a. bias or intercept) should be + added to the linear predictor (X @ coef + intercept). + + solver : {'lbfgs', 'newton-cholesky'}, default='lbfgs' + Algorithm to use in the optimization problem: + + 'lbfgs' + Calls scipy's L-BFGS-B optimizer. + + 'newton-cholesky' + Uses Newton-Raphson steps (in arbitrary precision arithmetic equivalent to + iterated reweighted least squares) with an inner Cholesky based solver. + This solver is a good choice for `n_samples` >> `n_features`, especially + with one-hot encoded categorical features with rare categories. Be aware + that the memory usage of this solver has a quadratic dependency on + `n_features` because it explicitly computes the Hessian matrix. + + .. versionadded:: 1.2 + + max_iter : int, default=100 + The maximal number of iterations for the solver. + Values must be in the range `[1, inf)`. + + tol : float, default=1e-4 + Stopping criterion. For the lbfgs solver, + the iteration will stop when ``max{|g_j|, j = 1, ..., d} <= tol`` + where ``g_j`` is the j-th component of the gradient (derivative) of + the objective function. + Values must be in the range `(0.0, inf)`. + + warm_start : bool, default=False + If set to ``True``, reuse the solution of the previous call to ``fit`` + as initialization for ``coef_`` and ``intercept_``. + + verbose : int, default=0 + For the lbfgs solver set verbose to any positive number for verbosity. + Values must be in the range `[0, inf)`. + + Attributes + ---------- + coef_ : array of shape (n_features,) + Estimated coefficients for the linear predictor (`X @ coef_ + + intercept_`) in the GLM. + + intercept_ : float + Intercept (a.k.a. bias) added to linear predictor. + + n_iter_ : int + Actual number of iterations used in the solver. + + _base_loss : BaseLoss, default=HalfSquaredError() + This is set during fit via `self._get_loss()`. + A `_base_loss` contains a specific loss function as well as the link + function. The loss to be minimized specifies the distributional assumption of + the GLM, i.e. the distribution from the EDM. Here are some examples: + + ======================= ======== ========================== + _base_loss Link Target Domain + ======================= ======== ========================== + HalfSquaredError identity y any real number + HalfPoissonLoss log 0 <= y + HalfGammaLoss log 0 < y + HalfTweedieLoss log dependent on tweedie power + HalfTweedieLossIdentity identity dependent on tweedie power + ======================= ======== ========================== + + The link function of the GLM, i.e. mapping from linear predictor + `X @ coeff + intercept` to prediction `y_pred`. For instance, with a log link, + we have `y_pred = exp(X @ coeff + intercept)`. + """ + + # We allow for NewtonSolver classes for the "solver" parameter but do not + # make them public in the docstrings. This facilitates testing and + # benchmarking. + _parameter_constraints: dict = { + "alpha": [Interval(Real, 0.0, None, closed="left")], + "fit_intercept": ["boolean"], + "solver": [ + StrOptions({"lbfgs", "newton-cholesky"}), + Hidden(type), + ], + "max_iter": [Interval(Integral, 1, None, closed="left")], + "tol": [Interval(Real, 0.0, None, closed="neither")], + "warm_start": ["boolean"], + "verbose": ["verbose"], + } + + def __init__( + self, + *, + alpha=1.0, + fit_intercept=True, + solver="lbfgs", + max_iter=100, + tol=1e-4, + warm_start=False, + verbose=0, + ): + self.alpha = alpha + self.fit_intercept = fit_intercept + self.solver = solver + self.max_iter = max_iter + self.tol = tol + self.warm_start = warm_start + self.verbose = verbose + + @_fit_context(prefer_skip_nested_validation=True) + def fit(self, X, y, sample_weight=None): + """Fit a Generalized Linear Model. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + Training data. + + y : array-like of shape (n_samples,) + Target values. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + Returns + ------- + self : object + Fitted model. + """ + X, y = validate_data( + self, + X, + y, + accept_sparse=["csc", "csr"], + dtype=[np.float64, np.float32], + y_numeric=True, + multi_output=False, + ) + + # required by losses + if self.solver == "lbfgs": + # lbfgs will force coef and therefore raw_prediction to be float64. The + # base_loss needs y, X @ coef and sample_weight all of same dtype + # (and contiguous). + loss_dtype = np.float64 + else: + loss_dtype = min(max(y.dtype, X.dtype), np.float64) + y = check_array(y, dtype=loss_dtype, order="C", ensure_2d=False) + + if sample_weight is not None: + # Note that _check_sample_weight calls check_array(order="C") required by + # losses. + sample_weight = _check_sample_weight(sample_weight, X, dtype=loss_dtype) + + n_samples, n_features = X.shape + self._base_loss = self._get_loss() + + linear_loss = LinearModelLoss( + base_loss=self._base_loss, + fit_intercept=self.fit_intercept, + ) + + if not linear_loss.base_loss.in_y_true_range(y): + raise ValueError( + "Some value(s) of y are out of the valid range of the loss" + f" {self._base_loss.__class__.__name__!r}." + ) + + # TODO: if alpha=0 check that X is not rank deficient + + # NOTE: Rescaling of sample_weight: + # We want to minimize + # obj = 1/(2 * sum(sample_weight)) * sum(sample_weight * deviance) + # + 1/2 * alpha * L2, + # with + # deviance = 2 * loss. + # The objective is invariant to multiplying sample_weight by a constant. We + # could choose this constant such that sum(sample_weight) = 1 in order to end + # up with + # obj = sum(sample_weight * loss) + 1/2 * alpha * L2. + # But LinearModelLoss.loss() already computes + # average(loss, weights=sample_weight) + # Thus, without rescaling, we have + # obj = LinearModelLoss.loss(...) + + if self.warm_start and hasattr(self, "coef_"): + if self.fit_intercept: + # LinearModelLoss needs intercept at the end of coefficient array. + coef = np.concatenate((self.coef_, np.array([self.intercept_]))) + else: + coef = self.coef_ + coef = coef.astype(loss_dtype, copy=False) + else: + coef = linear_loss.init_zero_coef(X, dtype=loss_dtype) + if self.fit_intercept: + coef[-1] = linear_loss.base_loss.link.link( + np.average(y, weights=sample_weight) + ) + + l2_reg_strength = self.alpha + n_threads = _openmp_effective_n_threads() + + # Algorithms for optimization: + # Note again that our losses implement 1/2 * deviance. + if self.solver == "lbfgs": + func = linear_loss.loss_gradient + + opt_res = scipy.optimize.minimize( + func, + coef, + method="L-BFGS-B", + jac=True, + options={ + "maxiter": self.max_iter, + "maxls": 50, # default is 20 + "gtol": self.tol, + # The constant 64 was found empirically to pass the test suite. + # The point is that ftol is very small, but a bit larger than + # machine precision for float64, which is the dtype used by lbfgs. + "ftol": 64 * np.finfo(float).eps, + **_get_additional_lbfgs_options_dict("iprint", self.verbose - 1), + }, + args=(X, y, sample_weight, l2_reg_strength, n_threads), + ) + self.n_iter_ = _check_optimize_result( + "lbfgs", opt_res, max_iter=self.max_iter + ) + coef = opt_res.x + elif self.solver == "newton-cholesky": + sol = NewtonCholeskySolver( + coef=coef, + linear_loss=linear_loss, + l2_reg_strength=l2_reg_strength, + tol=self.tol, + max_iter=self.max_iter, + n_threads=n_threads, + verbose=self.verbose, + ) + coef = sol.solve(X, y, sample_weight) + self.n_iter_ = sol.iteration + elif issubclass(self.solver, NewtonSolver): + sol = self.solver( + coef=coef, + linear_loss=linear_loss, + l2_reg_strength=l2_reg_strength, + tol=self.tol, + max_iter=self.max_iter, + n_threads=n_threads, + ) + coef = sol.solve(X, y, sample_weight) + self.n_iter_ = sol.iteration + else: + raise ValueError(f"Invalid solver={self.solver}.") + + if self.fit_intercept: + self.intercept_ = coef[-1] + self.coef_ = coef[:-1] + else: + # set intercept to zero as the other linear models do + self.intercept_ = 0.0 + self.coef_ = coef + + return self + + def _linear_predictor(self, X): + """Compute the linear_predictor = `X @ coef_ + intercept_`. + + Note that we often use the term raw_prediction instead of linear predictor. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + Samples. + + Returns + ------- + y_pred : array of shape (n_samples,) + Returns predicted values of linear predictor. + """ + check_is_fitted(self) + X = validate_data( + self, + X, + accept_sparse=["csr", "csc", "coo"], + dtype=[np.float64, np.float32], + ensure_2d=True, + allow_nd=False, + reset=False, + ) + return X @ self.coef_ + self.intercept_ + + def predict(self, X): + """Predict using GLM with feature matrix X. + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + Samples. + + Returns + ------- + y_pred : array of shape (n_samples,) + Returns predicted values. + """ + # check_array is done in _linear_predictor + raw_prediction = self._linear_predictor(X) + y_pred = self._base_loss.link.inverse(raw_prediction) + return y_pred + + def score(self, X, y, sample_weight=None): + """Compute D^2, the percentage of deviance explained. + + D^2 is a generalization of the coefficient of determination R^2. + R^2 uses squared error and D^2 uses the deviance of this GLM, see the + :ref:`User Guide `. + + D^2 is defined as + :math:`D^2 = 1-\\frac{D(y_{true},y_{pred})}{D_{null}}`, + :math:`D_{null}` is the null deviance, i.e. the deviance of a model + with intercept alone, which corresponds to :math:`y_{pred} = \\bar{y}`. + The mean :math:`\\bar{y}` is averaged by sample_weight. + Best possible score is 1.0 and it can be negative (because the model + can be arbitrarily worse). + + Parameters + ---------- + X : {array-like, sparse matrix} of shape (n_samples, n_features) + Test samples. + + y : array-like of shape (n_samples,) + True values of target. + + sample_weight : array-like of shape (n_samples,), default=None + Sample weights. + + Returns + ------- + score : float + D^2 of self.predict(X) w.r.t. y. + """ + # TODO: Adapt link to User Guide in the docstring, once + # https://github.com/scikit-learn/scikit-learn/pull/22118 is merged. + # + # Note, default score defined in RegressorMixin is R^2 score. + # TODO: make D^2 a score function in module metrics (and thereby get + # input validation and so on) + raw_prediction = self._linear_predictor(X) # validates X + # required by losses + y = check_array(y, dtype=raw_prediction.dtype, order="C", ensure_2d=False) + + if sample_weight is not None: + # Note that _check_sample_weight calls check_array(order="C") required by + # losses. + sample_weight = _check_sample_weight(sample_weight, X, dtype=y.dtype) + + base_loss = self._base_loss + + if not base_loss.in_y_true_range(y): + raise ValueError( + "Some value(s) of y are out of the valid range of the loss" + f" {base_loss.__name__}." + ) + + constant = np.average( + base_loss.constant_to_optimal_zero(y_true=y, sample_weight=None), + weights=sample_weight, + ) + + # Missing factor of 2 in deviance cancels out. + deviance = base_loss( + y_true=y, + raw_prediction=raw_prediction, + sample_weight=sample_weight, + n_threads=1, + ) + y_mean = base_loss.link.link(np.average(y, weights=sample_weight)) + deviance_null = base_loss( + y_true=y, + raw_prediction=np.tile(y_mean, y.shape[0]), + sample_weight=sample_weight, + n_threads=1, + ) + return 1 - (deviance + constant) / (deviance_null + constant) + + def __sklearn_tags__(self): + tags = super().__sklearn_tags__() + tags.input_tags.sparse = True + try: + # Create instance of BaseLoss if fit wasn't called yet. This is necessary as + # TweedieRegressor might set the used loss during fit different from + # self._base_loss. + base_loss = self._get_loss() + tags.target_tags.positive_only = not base_loss.in_y_true_range(-1.0) + except (ValueError, AttributeError, TypeError): + # This happens when the link or power parameter of TweedieRegressor is + # invalid. We fallback on the default tags in that case. + pass # pragma: no cover + return tags + + def _get_loss(self): + """This is only necessary because of the link and power arguments of the + TweedieRegressor. + + Note that we do not need to pass sample_weight to the loss class as this is + only needed to set loss.constant_hessian on which GLMs do not rely. + """ + return HalfSquaredError() + + +class PoissonRegressor(_GeneralizedLinearRegressor): + """Generalized Linear Model with a Poisson distribution. + + This regressor uses the 'log' link function. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.23 + + Parameters + ---------- + alpha : float, default=1 + Constant that multiplies the L2 penalty term and determines the + regularization strength. ``alpha = 0`` is equivalent to unpenalized + GLMs. In this case, the design matrix `X` must have full column rank + (no collinearities). + Values of `alpha` must be in the range `[0.0, inf)`. + + fit_intercept : bool, default=True + Specifies if a constant (a.k.a. bias or intercept) should be + added to the linear predictor (`X @ coef + intercept`). + + solver : {'lbfgs', 'newton-cholesky'}, default='lbfgs' + Algorithm to use in the optimization problem: + + 'lbfgs' + Calls scipy's L-BFGS-B optimizer. + + 'newton-cholesky' + Uses Newton-Raphson steps (in arbitrary precision arithmetic equivalent to + iterated reweighted least squares) with an inner Cholesky based solver. + This solver is a good choice for `n_samples` >> `n_features`, especially + with one-hot encoded categorical features with rare categories. Be aware + that the memory usage of this solver has a quadratic dependency on + `n_features` because it explicitly computes the Hessian matrix. + + .. versionadded:: 1.2 + + max_iter : int, default=100 + The maximal number of iterations for the solver. + Values must be in the range `[1, inf)`. + + tol : float, default=1e-4 + Stopping criterion. For the lbfgs solver, + the iteration will stop when ``max{|g_j|, j = 1, ..., d} <= tol`` + where ``g_j`` is the j-th component of the gradient (derivative) of + the objective function. + Values must be in the range `(0.0, inf)`. + + warm_start : bool, default=False + If set to ``True``, reuse the solution of the previous call to ``fit`` + as initialization for ``coef_`` and ``intercept_`` . + + verbose : int, default=0 + For the lbfgs solver set verbose to any positive number for verbosity. + Values must be in the range `[0, inf)`. + + Attributes + ---------- + coef_ : array of shape (n_features,) + Estimated coefficients for the linear predictor (`X @ coef_ + + intercept_`) in the GLM. + + intercept_ : float + Intercept (a.k.a. bias) added to linear predictor. + + n_features_in_ : int + Number of features seen during :term:`fit`. + + .. versionadded:: 0.24 + + feature_names_in_ : ndarray of shape (`n_features_in_`,) + Names of features seen during :term:`fit`. Defined only when `X` + has feature names that are all strings. + + .. versionadded:: 1.0 + + n_iter_ : int + Actual number of iterations used in the solver. + + See Also + -------- + TweedieRegressor : Generalized Linear Model with a Tweedie distribution. + + Examples + -------- + >>> from sklearn import linear_model + >>> clf = linear_model.PoissonRegressor() + >>> X = [[1, 2], [2, 3], [3, 4], [4, 3]] + >>> y = [12, 17, 22, 21] + >>> clf.fit(X, y) + PoissonRegressor() + >>> clf.score(X, y) + np.float64(0.990) + >>> clf.coef_ + array([0.121, 0.158]) + >>> clf.intercept_ + np.float64(2.088) + >>> clf.predict([[1, 1], [3, 4]]) + array([10.676, 21.875]) + """ + + _parameter_constraints: dict = { + **_GeneralizedLinearRegressor._parameter_constraints + } + + def __init__( + self, + *, + alpha=1.0, + fit_intercept=True, + solver="lbfgs", + max_iter=100, + tol=1e-4, + warm_start=False, + verbose=0, + ): + super().__init__( + alpha=alpha, + fit_intercept=fit_intercept, + solver=solver, + max_iter=max_iter, + tol=tol, + warm_start=warm_start, + verbose=verbose, + ) + + def _get_loss(self): + return HalfPoissonLoss() + + +class GammaRegressor(_GeneralizedLinearRegressor): + """Generalized Linear Model with a Gamma distribution. + + This regressor uses the 'log' link function. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.23 + + Parameters + ---------- + alpha : float, default=1 + Constant that multiplies the L2 penalty term and determines the + regularization strength. ``alpha = 0`` is equivalent to unpenalized + GLMs. In this case, the design matrix `X` must have full column rank + (no collinearities). + Values of `alpha` must be in the range `[0.0, inf)`. + + fit_intercept : bool, default=True + Specifies if a constant (a.k.a. bias or intercept) should be + added to the linear predictor `X @ coef_ + intercept_`. + + solver : {'lbfgs', 'newton-cholesky'}, default='lbfgs' + Algorithm to use in the optimization problem: + + 'lbfgs' + Calls scipy's L-BFGS-B optimizer. + + 'newton-cholesky' + Uses Newton-Raphson steps (in arbitrary precision arithmetic equivalent to + iterated reweighted least squares) with an inner Cholesky based solver. + This solver is a good choice for `n_samples` >> `n_features`, especially + with one-hot encoded categorical features with rare categories. Be aware + that the memory usage of this solver has a quadratic dependency on + `n_features` because it explicitly computes the Hessian matrix. + + .. versionadded:: 1.2 + + max_iter : int, default=100 + The maximal number of iterations for the solver. + Values must be in the range `[1, inf)`. + + tol : float, default=1e-4 + Stopping criterion. For the lbfgs solver, + the iteration will stop when ``max{|g_j|, j = 1, ..., d} <= tol`` + where ``g_j`` is the j-th component of the gradient (derivative) of + the objective function. + Values must be in the range `(0.0, inf)`. + + warm_start : bool, default=False + If set to ``True``, reuse the solution of the previous call to ``fit`` + as initialization for `coef_` and `intercept_`. + + verbose : int, default=0 + For the lbfgs solver set verbose to any positive number for verbosity. + Values must be in the range `[0, inf)`. + + Attributes + ---------- + coef_ : array of shape (n_features,) + Estimated coefficients for the linear predictor (`X @ coef_ + + intercept_`) in the GLM. + + intercept_ : float + Intercept (a.k.a. bias) added to linear predictor. + + n_features_in_ : int + Number of features seen during :term:`fit`. + + .. versionadded:: 0.24 + + n_iter_ : int + Actual number of iterations used in the solver. + + feature_names_in_ : ndarray of shape (`n_features_in_`,) + Names of features seen during :term:`fit`. Defined only when `X` + has feature names that are all strings. + + .. versionadded:: 1.0 + + See Also + -------- + PoissonRegressor : Generalized Linear Model with a Poisson distribution. + TweedieRegressor : Generalized Linear Model with a Tweedie distribution. + + Examples + -------- + >>> from sklearn import linear_model + >>> clf = linear_model.GammaRegressor() + >>> X = [[1, 2], [2, 3], [3, 4], [4, 3]] + >>> y = [19, 26, 33, 30] + >>> clf.fit(X, y) + GammaRegressor() + >>> clf.score(X, y) + np.float64(0.773) + >>> clf.coef_ + array([0.073, 0.067]) + >>> clf.intercept_ + np.float64(2.896) + >>> clf.predict([[1, 0], [2, 8]]) + array([19.483, 35.795]) + """ + + _parameter_constraints: dict = { + **_GeneralizedLinearRegressor._parameter_constraints + } + + def __init__( + self, + *, + alpha=1.0, + fit_intercept=True, + solver="lbfgs", + max_iter=100, + tol=1e-4, + warm_start=False, + verbose=0, + ): + super().__init__( + alpha=alpha, + fit_intercept=fit_intercept, + solver=solver, + max_iter=max_iter, + tol=tol, + warm_start=warm_start, + verbose=verbose, + ) + + def _get_loss(self): + return HalfGammaLoss() + + +class TweedieRegressor(_GeneralizedLinearRegressor): + """Generalized Linear Model with a Tweedie distribution. + + This estimator can be used to model different GLMs depending on the + ``power`` parameter, which determines the underlying distribution. + + Read more in the :ref:`User Guide `. + + .. versionadded:: 0.23 + + Parameters + ---------- + power : float, default=0 + The power determines the underlying target distribution according + to the following table: + + +-------+------------------------+ + | Power | Distribution | + +=======+========================+ + | 0 | Normal | + +-------+------------------------+ + | 1 | Poisson | + +-------+------------------------+ + | (1,2) | Compound Poisson Gamma | + +-------+------------------------+ + | 2 | Gamma | + +-------+------------------------+ + | 3 | Inverse Gaussian | + +-------+------------------------+ + + For ``0 < power < 1``, no distribution exists. + + alpha : float, default=1 + Constant that multiplies the L2 penalty term and determines the + regularization strength. ``alpha = 0`` is equivalent to unpenalized + GLMs. In this case, the design matrix `X` must have full column rank + (no collinearities). + Values of `alpha` must be in the range `[0.0, inf)`. + + fit_intercept : bool, default=True + Specifies if a constant (a.k.a. bias or intercept) should be + added to the linear predictor (`X @ coef + intercept`). + + link : {'auto', 'identity', 'log'}, default='auto' + The link function of the GLM, i.e. mapping from linear predictor + `X @ coeff + intercept` to prediction `y_pred`. Option 'auto' sets + the link depending on the chosen `power` parameter as follows: + + - 'identity' for ``power <= 0``, e.g. for the Normal distribution + - 'log' for ``power > 0``, e.g. for Poisson, Gamma and Inverse Gaussian + distributions + + solver : {'lbfgs', 'newton-cholesky'}, default='lbfgs' + Algorithm to use in the optimization problem: + + 'lbfgs' + Calls scipy's L-BFGS-B optimizer. + + 'newton-cholesky' + Uses Newton-Raphson steps (in arbitrary precision arithmetic equivalent to + iterated reweighted least squares) with an inner Cholesky based solver. + This solver is a good choice for `n_samples` >> `n_features`, especially + with one-hot encoded categorical features with rare categories. Be aware + that the memory usage of this solver has a quadratic dependency on + `n_features` because it explicitly computes the Hessian matrix. + + .. versionadded:: 1.2 + + max_iter : int, default=100 + The maximal number of iterations for the solver. + Values must be in the range `[1, inf)`. + + tol : float, default=1e-4 + Stopping criterion. For the lbfgs solver, + the iteration will stop when ``max{|g_j|, j = 1, ..., d} <= tol`` + where ``g_j`` is the j-th component of the gradient (derivative) of + the objective function. + Values must be in the range `(0.0, inf)`. + + warm_start : bool, default=False + If set to ``True``, reuse the solution of the previous call to ``fit`` + as initialization for ``coef_`` and ``intercept_`` . + + verbose : int, default=0 + For the lbfgs solver set verbose to any positive number for verbosity. + Values must be in the range `[0, inf)`. + + Attributes + ---------- + coef_ : array of shape (n_features,) + Estimated coefficients for the linear predictor (`X @ coef_ + + intercept_`) in the GLM. + + intercept_ : float + Intercept (a.k.a. bias) added to linear predictor. + + n_iter_ : int + Actual number of iterations used in the solver. + + n_features_in_ : int + Number of features seen during :term:`fit`. + + .. versionadded:: 0.24 + + feature_names_in_ : ndarray of shape (`n_features_in_`,) + Names of features seen during :term:`fit`. Defined only when `X` + has feature names that are all strings. + + .. versionadded:: 1.0 + + See Also + -------- + PoissonRegressor : Generalized Linear Model with a Poisson distribution. + GammaRegressor : Generalized Linear Model with a Gamma distribution. + + Examples + -------- + >>> from sklearn import linear_model + >>> clf = linear_model.TweedieRegressor() + >>> X = [[1, 2], [2, 3], [3, 4], [4, 3]] + >>> y = [2, 3.5, 5, 5.5] + >>> clf.fit(X, y) + TweedieRegressor() + >>> clf.score(X, y) + np.float64(0.839) + >>> clf.coef_ + array([0.599, 0.299]) + >>> clf.intercept_ + np.float64(1.600) + >>> clf.predict([[1, 1], [3, 4]]) + array([2.500, 4.599]) + """ + + _parameter_constraints: dict = { + **_GeneralizedLinearRegressor._parameter_constraints, + "power": [Interval(Real, None, None, closed="neither")], + "link": [StrOptions({"auto", "identity", "log"})], + } + + def __init__( + self, + *, + power=0.0, + alpha=1.0, + fit_intercept=True, + link="auto", + solver="lbfgs", + max_iter=100, + tol=1e-4, + warm_start=False, + verbose=0, + ): + super().__init__( + alpha=alpha, + fit_intercept=fit_intercept, + solver=solver, + max_iter=max_iter, + tol=tol, + warm_start=warm_start, + verbose=verbose, + ) + self.link = link + self.power = power + + def _get_loss(self): + if self.link == "auto": + if self.power <= 0: + # identity link + return HalfTweedieLossIdentity(power=self.power) + else: + # log link + return HalfTweedieLoss(power=self.power) + + if self.link == "log": + return HalfTweedieLoss(power=self.power) + + if self.link == "identity": + return HalfTweedieLossIdentity(power=self.power) diff --git a/shared/package-files/ea/eab8a432765d6a64b3c30d6c4a233e690c2a6b8950ae933e0e9394f5709b88e4/blob b/shared/package-files/ea/eab8a432765d6a64b3c30d6c4a233e690c2a6b8950ae933e0e9394f5709b88e4/blob new file mode 100644 index 0000000000000000000000000000000000000000..e051928210981223004de28b8c617d0438e11ac6 --- /dev/null +++ b/shared/package-files/ea/eab8a432765d6a64b3c30d6c4a233e690c2a6b8950ae933e0e9394f5709b88e4/blob @@ -0,0 +1,53 @@ +from sympy.core.basic import Basic +from sympy.core.numbers import Integer +from sympy.core.singleton import S +from sympy.strategies.branch.traverse import top_down, sall +from sympy.strategies.branch.core import do_one, identity + + +def inc(x): + if isinstance(x, Integer): + yield x + 1 + + +def test_top_down_easy(): + expr = Basic(S(1), S(2)) + expected = Basic(S(2), S(3)) + brl = top_down(inc) + + assert set(brl(expr)) == {expected} + + +def test_top_down_big_tree(): + expr = Basic(S(1), Basic(S(2)), Basic(S(3), Basic(S(4)), S(5))) + expected = Basic(S(2), Basic(S(3)), Basic(S(4), Basic(S(5)), S(6))) + brl = top_down(inc) + + assert set(brl(expr)) == {expected} + + +def test_top_down_harder_function(): + def split5(x): + if x == 5: + yield x - 1 + yield x + 1 + + expr = Basic(Basic(S(5), S(6)), S(1)) + expected = {Basic(Basic(S(4), S(6)), S(1)), Basic(Basic(S(6), S(6)), S(1))} + brl = top_down(split5) + + assert set(brl(expr)) == expected + + +def test_sall(): + expr = Basic(S(1), S(2)) + expected = Basic(S(2), S(3)) + brl = sall(inc) + + assert list(brl(expr)) == [expected] + + expr = Basic(S(1), S(2), Basic(S(3), S(4))) + expected = Basic(S(2), S(3), Basic(S(3), S(4))) + brl = sall(do_one(inc, identity)) + + assert list(brl(expr)) == [expected] diff --git a/shared/package-files/ea/eab8db02a97d187d2e5687cf1d2c10076210b17742218585438ffae2c912f2e1/blob b/shared/package-files/ea/eab8db02a97d187d2e5687cf1d2c10076210b17742218585438ffae2c912f2e1/blob new file mode 100644 index 0000000000000000000000000000000000000000..0d37c9065192b35eb733ea4a982f22efc3ff655b --- /dev/null +++ b/shared/package-files/ea/eab8db02a97d187d2e5687cf1d2c10076210b17742218585438ffae2c912f2e1/blob @@ -0,0 +1,974 @@ +""" +Threshold Graphs - Creation, manipulation and identification. +""" +from math import sqrt + +import networkx as nx +from networkx.utils import py_random_state + +__all__ = ["is_threshold_graph", "find_threshold_graph"] + + +def is_threshold_graph(G): + """ + Returns `True` if `G` is a threshold graph. + + Parameters + ---------- + G : NetworkX graph instance + An instance of `Graph`, `DiGraph`, `MultiGraph` or `MultiDiGraph` + + Returns + ------- + bool + `True` if `G` is a threshold graph, `False` otherwise. + + Examples + -------- + >>> from networkx.algorithms.threshold import is_threshold_graph + >>> G = nx.path_graph(3) + >>> is_threshold_graph(G) + True + >>> G = nx.barbell_graph(3, 3) + >>> is_threshold_graph(G) + False + + References + ---------- + .. [1] Threshold graphs: https://en.wikipedia.org/wiki/Threshold_graph + """ + return is_threshold_sequence([d for n, d in G.degree()]) + + +def is_threshold_sequence(degree_sequence): + """ + Returns True if the sequence is a threshold degree sequence. + + Uses the property that a threshold graph must be constructed by + adding either dominating or isolated nodes. Thus, it can be + deconstructed iteratively by removing a node of degree zero or a + node that connects to the remaining nodes. If this deconstruction + fails then the sequence is not a threshold sequence. + """ + ds = degree_sequence[:] # get a copy so we don't destroy original + ds.sort() + while ds: + if ds[0] == 0: # if isolated node + ds.pop(0) # remove it + continue + if ds[-1] != len(ds) - 1: # is the largest degree node dominating? + return False # no, not a threshold degree sequence + ds.pop() # yes, largest is the dominating node + ds = [d - 1 for d in ds] # remove it and decrement all degrees + return True + + +def creation_sequence(degree_sequence, with_labels=False, compact=False): + """ + Determines the creation sequence for the given threshold degree sequence. + + The creation sequence is a list of single characters 'd' + or 'i': 'd' for dominating or 'i' for isolated vertices. + Dominating vertices are connected to all vertices present when it + is added. The first node added is by convention 'd'. + This list can be converted to a string if desired using "".join(cs) + + If with_labels==True: + Returns a list of 2-tuples containing the vertex number + and a character 'd' or 'i' which describes the type of vertex. + + If compact==True: + Returns the creation sequence in a compact form that is the number + of 'i's and 'd's alternating. + Examples: + [1,2,2,3] represents d,i,i,d,d,i,i,i + [3,1,2] represents d,d,d,i,d,d + + Notice that the first number is the first vertex to be used for + construction and so is always 'd'. + + with_labels and compact cannot both be True. + + Returns None if the sequence is not a threshold sequence + """ + if with_labels and compact: + raise ValueError("compact sequences cannot be labeled") + + # make an indexed copy + if isinstance(degree_sequence, dict): # labeled degree sequence + ds = [[degree, label] for (label, degree) in degree_sequence.items()] + else: + ds = [[d, i] for i, d in enumerate(degree_sequence)] + ds.sort() + cs = [] # creation sequence + while ds: + if ds[0][0] == 0: # isolated node + (d, v) = ds.pop(0) + if len(ds) > 0: # make sure we start with a d + cs.insert(0, (v, "i")) + else: + cs.insert(0, (v, "d")) + continue + if ds[-1][0] != len(ds) - 1: # Not dominating node + return None # not a threshold degree sequence + (d, v) = ds.pop() + cs.insert(0, (v, "d")) + ds = [[d[0] - 1, d[1]] for d in ds] # decrement due to removing node + + if with_labels: + return cs + if compact: + return make_compact(cs) + return [v[1] for v in cs] # not labeled + + +def make_compact(creation_sequence): + """ + Returns the creation sequence in a compact form + that is the number of 'i's and 'd's alternating. + + Examples + -------- + >>> from networkx.algorithms.threshold import make_compact + >>> make_compact(["d", "i", "i", "d", "d", "i", "i", "i"]) + [1, 2, 2, 3] + >>> make_compact(["d", "d", "d", "i", "d", "d"]) + [3, 1, 2] + + Notice that the first number is the first vertex + to be used for construction and so is always 'd'. + + Labeled creation sequences lose their labels in the + compact representation. + + >>> make_compact([3, 1, 2]) + [3, 1, 2] + """ + first = creation_sequence[0] + if isinstance(first, str): # creation sequence + cs = creation_sequence[:] + elif isinstance(first, tuple): # labeled creation sequence + cs = [s[1] for s in creation_sequence] + elif isinstance(first, int): # compact creation sequence + return creation_sequence + else: + raise TypeError("Not a valid creation sequence type") + + ccs = [] + count = 1 # count the run lengths of d's or i's. + for i in range(1, len(cs)): + if cs[i] == cs[i - 1]: + count += 1 + else: + ccs.append(count) + count = 1 + ccs.append(count) # don't forget the last one + return ccs + + +def uncompact(creation_sequence): + """ + Converts a compact creation sequence for a threshold + graph to a standard creation sequence (unlabeled). + If the creation_sequence is already standard, return it. + See creation_sequence. + """ + first = creation_sequence[0] + if isinstance(first, str): # creation sequence + return creation_sequence + elif isinstance(first, tuple): # labeled creation sequence + return creation_sequence + elif isinstance(first, int): # compact creation sequence + ccscopy = creation_sequence[:] + else: + raise TypeError("Not a valid creation sequence type") + cs = [] + while ccscopy: + cs.extend(ccscopy.pop(0) * ["d"]) + if ccscopy: + cs.extend(ccscopy.pop(0) * ["i"]) + return cs + + +def creation_sequence_to_weights(creation_sequence): + """ + Returns a list of node weights which create the threshold + graph designated by the creation sequence. The weights + are scaled so that the threshold is 1.0. The order of the + nodes is the same as that in the creation sequence. + """ + # Turn input sequence into a labeled creation sequence + first = creation_sequence[0] + if isinstance(first, str): # creation sequence + if isinstance(creation_sequence, list): + wseq = creation_sequence[:] + else: + wseq = list(creation_sequence) # string like 'ddidid' + elif isinstance(first, tuple): # labeled creation sequence + wseq = [v[1] for v in creation_sequence] + elif isinstance(first, int): # compact creation sequence + wseq = uncompact(creation_sequence) + else: + raise TypeError("Not a valid creation sequence type") + # pass through twice--first backwards + wseq.reverse() + w = 0 + prev = "i" + for j, s in enumerate(wseq): + if s == "i": + wseq[j] = w + prev = s + elif prev == "i": + prev = s + w += 1 + wseq.reverse() # now pass through forwards + for j, s in enumerate(wseq): + if s == "d": + wseq[j] = w + prev = s + elif prev == "d": + prev = s + w += 1 + # Now scale weights + if prev == "d": + w += 1 + wscale = 1 / w + return [ww * wscale for ww in wseq] + # return wseq + + +def weights_to_creation_sequence( + weights, threshold=1, with_labels=False, compact=False +): + """ + Returns a creation sequence for a threshold graph + determined by the weights and threshold given as input. + If the sum of two node weights is greater than the + threshold value, an edge is created between these nodes. + + The creation sequence is a list of single characters 'd' + or 'i': 'd' for dominating or 'i' for isolated vertices. + Dominating vertices are connected to all vertices present + when it is added. The first node added is by convention 'd'. + + If with_labels==True: + Returns a list of 2-tuples containing the vertex number + and a character 'd' or 'i' which describes the type of vertex. + + If compact==True: + Returns the creation sequence in a compact form that is the number + of 'i's and 'd's alternating. + Examples: + [1,2,2,3] represents d,i,i,d,d,i,i,i + [3,1,2] represents d,d,d,i,d,d + + Notice that the first number is the first vertex to be used for + construction and so is always 'd'. + + with_labels and compact cannot both be True. + """ + if with_labels and compact: + raise ValueError("compact sequences cannot be labeled") + + # make an indexed copy + if isinstance(weights, dict): # labeled weights + wseq = [[w, label] for (label, w) in weights.items()] + else: + wseq = [[w, i] for i, w in enumerate(weights)] + wseq.sort() + cs = [] # creation sequence + cutoff = threshold - wseq[-1][0] + while wseq: + if wseq[0][0] < cutoff: # isolated node + (w, label) = wseq.pop(0) + cs.append((label, "i")) + else: + (w, label) = wseq.pop() + cs.append((label, "d")) + cutoff = threshold - wseq[-1][0] + if len(wseq) == 1: # make sure we start with a d + (w, label) = wseq.pop() + cs.append((label, "d")) + # put in correct order + cs.reverse() + + if with_labels: + return cs + if compact: + return make_compact(cs) + return [v[1] for v in cs] # not labeled + + +# Manipulating NetworkX.Graphs in context of threshold graphs +def threshold_graph(creation_sequence, create_using=None): + """ + Create a threshold graph from the creation sequence or compact + creation_sequence. + + The input sequence can be a + + creation sequence (e.g. ['d','i','d','d','d','i']) + labeled creation sequence (e.g. [(0,'d'),(2,'d'),(1,'i')]) + compact creation sequence (e.g. [2,1,1,2,0]) + + Use cs=creation_sequence(degree_sequence,labeled=True) + to convert a degree sequence to a creation sequence. + + Returns None if the sequence is not valid + """ + # Turn input sequence into a labeled creation sequence + first = creation_sequence[0] + if isinstance(first, str): # creation sequence + ci = list(enumerate(creation_sequence)) + elif isinstance(first, tuple): # labeled creation sequence + ci = creation_sequence[:] + elif isinstance(first, int): # compact creation sequence + cs = uncompact(creation_sequence) + ci = list(enumerate(cs)) + else: + print("not a valid creation sequence type") + return None + + G = nx.empty_graph(0, create_using) + if G.is_directed(): + raise nx.NetworkXError("Directed Graph not supported") + + G.name = "Threshold Graph" + + # add nodes and edges + # if type is 'i' just add nodea + # if type is a d connect to everything previous + while ci: + (v, node_type) = ci.pop(0) + if node_type == "d": # dominating type, connect to all existing nodes + # We use `for u in list(G):` instead of + # `for u in G:` because we edit the graph `G` in + # the loop. Hence using an iterator will result in + # `RuntimeError: dictionary changed size during iteration` + for u in list(G): + G.add_edge(v, u) + G.add_node(v) + return G + + +def find_alternating_4_cycle(G): + """ + Returns False if there aren't any alternating 4 cycles. + Otherwise returns the cycle as [a,b,c,d] where (a,b) + and (c,d) are edges and (a,c) and (b,d) are not. + """ + for u, v in G.edges(): + for w in G.nodes(): + if not G.has_edge(u, w) and u != w: + for x in G.neighbors(w): + if not G.has_edge(v, x) and v != x: + return [u, v, w, x] + return False + + +def find_threshold_graph(G, create_using=None): + """ + Returns a threshold subgraph that is close to largest in `G`. + + The threshold graph will contain the largest degree node in G. + + Parameters + ---------- + G : NetworkX graph instance + An instance of `Graph`, or `MultiDiGraph` + create_using : NetworkX graph class or `None` (default), optional + Type of graph to use when constructing the threshold graph. + If `None`, infer the appropriate graph type from the input. + + Returns + ------- + graph : + A graph instance representing the threshold graph + + Examples + -------- + >>> from networkx.algorithms.threshold import find_threshold_graph + >>> G = nx.barbell_graph(3, 3) + >>> T = find_threshold_graph(G) + >>> T.nodes # may vary + NodeView((7, 8, 5, 6)) + + References + ---------- + .. [1] Threshold graphs: https://en.wikipedia.org/wiki/Threshold_graph + """ + return threshold_graph(find_creation_sequence(G), create_using) + + +def find_creation_sequence(G): + """ + Find a threshold subgraph that is close to largest in G. + Returns the labeled creation sequence of that threshold graph. + """ + cs = [] + # get a local pointer to the working part of the graph + H = G + while H.order() > 0: + # get new degree sequence on subgraph + dsdict = dict(H.degree()) + ds = [(d, v) for v, d in dsdict.items()] + ds.sort() + # Update threshold graph nodes + if ds[-1][0] == 0: # all are isolated + cs.extend(zip(dsdict, ["i"] * (len(ds) - 1) + ["d"])) + break # Done! + # pull off isolated nodes + while ds[0][0] == 0: + (d, iso) = ds.pop(0) + cs.append((iso, "i")) + # find new biggest node + (d, bigv) = ds.pop() + # add edges of star to t_g + cs.append((bigv, "d")) + # form subgraph of neighbors of big node + H = H.subgraph(H.neighbors(bigv)) + cs.reverse() + return cs + + +# Properties of Threshold Graphs +def triangles(creation_sequence): + """ + Compute number of triangles in the threshold graph with the + given creation sequence. + """ + # shortcut algorithm that doesn't require computing number + # of triangles at each node. + cs = creation_sequence # alias + dr = cs.count("d") # number of d's in sequence + ntri = dr * (dr - 1) * (dr - 2) / 6 # number of triangles in clique of nd d's + # now add dr choose 2 triangles for every 'i' in sequence where + # dr is the number of d's to the right of the current i + for i, typ in enumerate(cs): + if typ == "i": + ntri += dr * (dr - 1) / 2 + else: + dr -= 1 + return ntri + + +def triangle_sequence(creation_sequence): + """ + Return triangle sequence for the given threshold graph creation sequence. + + """ + cs = creation_sequence + seq = [] + dr = cs.count("d") # number of d's to the right of the current pos + dcur = (dr - 1) * (dr - 2) // 2 # number of triangles through a node of clique dr + irun = 0 # number of i's in the last run + drun = 0 # number of d's in the last run + for i, sym in enumerate(cs): + if sym == "d": + drun += 1 + tri = dcur + (dr - 1) * irun # new triangles at this d + else: # cs[i]="i": + if prevsym == "d": # new string of i's + dcur += (dr - 1) * irun # accumulate shared shortest paths + irun = 0 # reset i run counter + dr -= drun # reduce number of d's to right + drun = 0 # reset d run counter + irun += 1 + tri = dr * (dr - 1) // 2 # new triangles at this i + seq.append(tri) + prevsym = sym + return seq + + +def cluster_sequence(creation_sequence): + """ + Return cluster sequence for the given threshold graph creation sequence. + """ + triseq = triangle_sequence(creation_sequence) + degseq = degree_sequence(creation_sequence) + cseq = [] + for i, deg in enumerate(degseq): + tri = triseq[i] + if deg <= 1: # isolated vertex or single pair gets cc 0 + cseq.append(0) + continue + max_size = (deg * (deg - 1)) // 2 + cseq.append(tri / max_size) + return cseq + + +def degree_sequence(creation_sequence): + """ + Return degree sequence for the threshold graph with the given + creation sequence + """ + cs = creation_sequence # alias + seq = [] + rd = cs.count("d") # number of d to the right + for i, sym in enumerate(cs): + if sym == "d": + rd -= 1 + seq.append(rd + i) + else: + seq.append(rd) + return seq + + +def density(creation_sequence): + """ + Return the density of the graph with this creation_sequence. + The density is the fraction of possible edges present. + """ + N = len(creation_sequence) + two_size = sum(degree_sequence(creation_sequence)) + two_possible = N * (N - 1) + den = two_size / two_possible + return den + + +def degree_correlation(creation_sequence): + """ + Return the degree-degree correlation over all edges. + """ + cs = creation_sequence + s1 = 0 # deg_i*deg_j + s2 = 0 # deg_i^2+deg_j^2 + s3 = 0 # deg_i+deg_j + m = 0 # number of edges + rd = cs.count("d") # number of d nodes to the right + rdi = [i for i, sym in enumerate(cs) if sym == "d"] # index of "d"s + ds = degree_sequence(cs) + for i, sym in enumerate(cs): + if sym == "d": + if i != rdi[0]: + print("Logic error in degree_correlation", i, rdi) + raise ValueError + rdi.pop(0) + degi = ds[i] + for dj in rdi: + degj = ds[dj] + s1 += degj * degi + s2 += degi**2 + degj**2 + s3 += degi + degj + m += 1 + denom = 2 * m * s2 - s3 * s3 + numer = 4 * m * s1 - s3 * s3 + if denom == 0: + if numer == 0: + return 1 + raise ValueError(f"Zero Denominator but Numerator is {numer}") + return numer / denom + + +def shortest_path(creation_sequence, u, v): + """ + Find the shortest path between u and v in a + threshold graph G with the given creation_sequence. + + For an unlabeled creation_sequence, the vertices + u and v must be integers in (0,len(sequence)) referring + to the position of the desired vertices in the sequence. + + For a labeled creation_sequence, u and v are labels of veritices. + + Use cs=creation_sequence(degree_sequence,with_labels=True) + to convert a degree sequence to a creation sequence. + + Returns a list of vertices from u to v. + Example: if they are neighbors, it returns [u,v] + """ + # Turn input sequence into a labeled creation sequence + first = creation_sequence[0] + if isinstance(first, str): # creation sequence + cs = [(i, creation_sequence[i]) for i in range(len(creation_sequence))] + elif isinstance(first, tuple): # labeled creation sequence + cs = creation_sequence[:] + elif isinstance(first, int): # compact creation sequence + ci = uncompact(creation_sequence) + cs = [(i, ci[i]) for i in range(len(ci))] + else: + raise TypeError("Not a valid creation sequence type") + + verts = [s[0] for s in cs] + if v not in verts: + raise ValueError(f"Vertex {v} not in graph from creation_sequence") + if u not in verts: + raise ValueError(f"Vertex {u} not in graph from creation_sequence") + # Done checking + if u == v: + return [u] + + uindex = verts.index(u) + vindex = verts.index(v) + bigind = max(uindex, vindex) + if cs[bigind][1] == "d": + return [u, v] + # must be that cs[bigind][1]=='i' + cs = cs[bigind:] + while cs: + vert = cs.pop() + if vert[1] == "d": + return [u, vert[0], v] + # All after u are type 'i' so no connection + return -1 + + +def shortest_path_length(creation_sequence, i): + """ + Return the shortest path length from indicated node to + every other node for the threshold graph with the given + creation sequence. + Node is indicated by index i in creation_sequence unless + creation_sequence is labeled in which case, i is taken to + be the label of the node. + + Paths lengths in threshold graphs are at most 2. + Length to unreachable nodes is set to -1. + """ + # Turn input sequence into a labeled creation sequence + first = creation_sequence[0] + if isinstance(first, str): # creation sequence + if isinstance(creation_sequence, list): + cs = creation_sequence[:] + else: + cs = list(creation_sequence) + elif isinstance(first, tuple): # labeled creation sequence + cs = [v[1] for v in creation_sequence] + i = [v[0] for v in creation_sequence].index(i) + elif isinstance(first, int): # compact creation sequence + cs = uncompact(creation_sequence) + else: + raise TypeError("Not a valid creation sequence type") + + # Compute + N = len(cs) + spl = [2] * N # length 2 to every node + spl[i] = 0 # except self which is 0 + # 1 for all d's to the right + for j in range(i + 1, N): + if cs[j] == "d": + spl[j] = 1 + if cs[i] == "d": # 1 for all nodes to the left + for j in range(i): + spl[j] = 1 + # and -1 for any trailing i to indicate unreachable + for j in range(N - 1, 0, -1): + if cs[j] == "d": + break + spl[j] = -1 + return spl + + +def betweenness_sequence(creation_sequence, normalized=True): + """ + Return betweenness for the threshold graph with the given creation + sequence. The result is unscaled. To scale the values + to the iterval [0,1] divide by (n-1)*(n-2). + """ + cs = creation_sequence + seq = [] # betweenness + lastchar = "d" # first node is always a 'd' + dr = float(cs.count("d")) # number of d's to the right of current pos + irun = 0 # number of i's in the last run + drun = 0 # number of d's in the last run + dlast = 0.0 # betweenness of last d + for i, c in enumerate(cs): + if c == "d": # cs[i]=="d": + # betweennees = amt shared with earlier d's and i's + # + new isolated nodes covered + # + new paths to all previous nodes + b = dlast + (irun - 1) * irun / dr + 2 * irun * (i - drun - irun) / dr + drun += 1 # update counter + else: # cs[i]="i": + if lastchar == "d": # if this is a new run of i's + dlast = b # accumulate betweenness + dr -= drun # update number of d's to the right + drun = 0 # reset d counter + irun = 0 # reset i counter + b = 0 # isolated nodes have zero betweenness + irun += 1 # add another i to the run + seq.append(float(b)) + lastchar = c + + # normalize by the number of possible shortest paths + if normalized: + order = len(cs) + scale = 1.0 / ((order - 1) * (order - 2)) + seq = [s * scale for s in seq] + + return seq + + +def eigenvectors(creation_sequence): + """ + Return a 2-tuple of Laplacian eigenvalues and eigenvectors + for the threshold network with creation_sequence. + The first value is a list of eigenvalues. + The second value is a list of eigenvectors. + The lists are in the same order so corresponding eigenvectors + and eigenvalues are in the same position in the two lists. + + Notice that the order of the eigenvalues returned by eigenvalues(cs) + may not correspond to the order of these eigenvectors. + """ + ccs = make_compact(creation_sequence) + N = sum(ccs) + vec = [0] * N + val = vec[:] + # get number of type d nodes to the right (all for first node) + dr = sum(ccs[::2]) + + nn = ccs[0] + vec[0] = [1.0 / sqrt(N)] * N + val[0] = 0 + e = dr + dr -= nn + type_d = True + i = 1 + dd = 1 + while dd < nn: + scale = 1.0 / sqrt(dd * dd + i) + vec[i] = i * [-scale] + [dd * scale] + [0] * (N - i - 1) + val[i] = e + i += 1 + dd += 1 + if len(ccs) == 1: + return (val, vec) + for nn in ccs[1:]: + scale = 1.0 / sqrt(nn * i * (i + nn)) + vec[i] = i * [-nn * scale] + nn * [i * scale] + [0] * (N - i - nn) + # find eigenvalue + type_d = not type_d + if type_d: + e = i + dr + dr -= nn + else: + e = dr + val[i] = e + st = i + i += 1 + dd = 1 + while dd < nn: + scale = 1.0 / sqrt(i - st + dd * dd) + vec[i] = [0] * st + (i - st) * [-scale] + [dd * scale] + [0] * (N - i - 1) + val[i] = e + i += 1 + dd += 1 + return (val, vec) + + +def spectral_projection(u, eigenpairs): + """ + Returns the coefficients of each eigenvector + in a projection of the vector u onto the normalized + eigenvectors which are contained in eigenpairs. + + eigenpairs should be a list of two objects. The + first is a list of eigenvalues and the second a list + of eigenvectors. The eigenvectors should be lists. + + There's not a lot of error checking on lengths of + arrays, etc. so be careful. + """ + coeff = [] + evect = eigenpairs[1] + for ev in evect: + c = sum(evv * uv for (evv, uv) in zip(ev, u)) + coeff.append(c) + return coeff + + +def eigenvalues(creation_sequence): + """ + Return sequence of eigenvalues of the Laplacian of the threshold + graph for the given creation_sequence. + + Based on the Ferrer's diagram method. The spectrum is integral + and is the conjugate of the degree sequence. + + See:: + + @Article{degree-merris-1994, + author = {Russel Merris}, + title = {Degree maximal graphs are Laplacian integral}, + journal = {Linear Algebra Appl.}, + year = {1994}, + volume = {199}, + pages = {381--389}, + } + + """ + degseq = degree_sequence(creation_sequence) + degseq.sort() + eiglist = [] # zero is always one eigenvalue + eig = 0 + row = len(degseq) + bigdeg = degseq.pop() + while row: + if bigdeg < row: + eiglist.append(eig) + row -= 1 + else: + eig += 1 + if degseq: + bigdeg = degseq.pop() + else: + bigdeg = 0 + return eiglist + + +# Threshold graph creation routines + + +@py_random_state(2) +def random_threshold_sequence(n, p, seed=None): + """ + Create a random threshold sequence of size n. + A creation sequence is built by randomly choosing d's with + probability p and i's with probability 1-p. + + s=nx.random_threshold_sequence(10,0.5) + + returns a threshold sequence of length 10 with equal + probably of an i or a d at each position. + + A "random" threshold graph can be built with + + G=nx.threshold_graph(s) + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + """ + if not (0 <= p <= 1): + raise ValueError("p must be in [0,1]") + + cs = ["d"] # threshold sequences always start with a d + for i in range(1, n): + if seed.random() < p: + cs.append("d") + else: + cs.append("i") + return cs + + +# maybe *_d_threshold_sequence routines should +# be (or be called from) a single routine with a more descriptive name +# and a keyword parameter? +def right_d_threshold_sequence(n, m): + """ + Create a skewed threshold graph with a given number + of vertices (n) and a given number of edges (m). + + The routine returns an unlabeled creation sequence + for the threshold graph. + + FIXME: describe algorithm + + """ + cs = ["d"] + ["i"] * (n - 1) # create sequence with n insolated nodes + + # m n * (n - 1) / 2: + raise ValueError("Too many edges for this many nodes.") + + # connected case m >n-1 + ind = n - 1 + sum = n - 1 + while sum < m: + cs[ind] = "d" + ind -= 1 + sum += ind + ind = m - (sum - ind) + cs[ind] = "d" + return cs + + +def left_d_threshold_sequence(n, m): + """ + Create a skewed threshold graph with a given number + of vertices (n) and a given number of edges (m). + + The routine returns an unlabeled creation sequence + for the threshold graph. + + FIXME: describe algorithm + + """ + cs = ["d"] + ["i"] * (n - 1) # create sequence with n insolated nodes + + # m n * (n - 1) / 2: + raise ValueError("Too many edges for this many nodes.") + + # Connected case when M>N-1 + cs[n - 1] = "d" + sum = n - 1 + ind = 1 + while sum < m: + cs[ind] = "d" + sum += ind + ind += 1 + if sum > m: # be sure not to change the first vertex + cs[sum - m] = "i" + return cs + + +@py_random_state(3) +def swap_d(cs, p_split=1.0, p_combine=1.0, seed=None): + """ + Perform a "swap" operation on a threshold sequence. + + The swap preserves the number of nodes and edges + in the graph for the given sequence. + The resulting sequence is still a threshold sequence. + + Perform one split and one combine operation on the + 'd's of a creation sequence for a threshold graph. + This operation maintains the number of nodes and edges + in the graph, but shifts the edges from node to node + maintaining the threshold quality of the graph. + + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + """ + # preprocess the creation sequence + dlist = [i for (i, node_type) in enumerate(cs[1:-1]) if node_type == "d"] + # split + if seed.random() < p_split: + choice = seed.choice(dlist) + split_to = seed.choice(range(choice)) + flip_side = choice - split_to + if split_to != flip_side and cs[split_to] == "i" and cs[flip_side] == "i": + cs[choice] = "i" + cs[split_to] = "d" + cs[flip_side] = "d" + dlist.remove(choice) + # don't add or combine may reverse this action + # dlist.extend([split_to,flip_side]) + # print >>sys.stderr,"split at %s to %s and %s"%(choice,split_to,flip_side) + # combine + if seed.random() < p_combine and dlist: + first_choice = seed.choice(dlist) + second_choice = seed.choice(dlist) + target = first_choice + second_choice + if target >= len(cs) or cs[target] == "d" or first_choice == second_choice: + return cs + # OK to combine + cs[first_choice] = "i" + cs[second_choice] = "i" + cs[target] = "d" + # print >>sys.stderr,"combine %s and %s to make %s."%(first_choice,second_choice,target) + + return cs diff --git a/shared/package-files/ea/eabcd76d108eb5a16f649e340f7906a733f9213a06258be275a2ce7dc889b207/blob b/shared/package-files/ea/eabcd76d108eb5a16f649e340f7906a733f9213a06258be275a2ce7dc889b207/blob new file mode 100644 index 0000000000000000000000000000000000000000..f0c6dbfd8cbc135f9041bb9045d846602ce79418 --- /dev/null +++ b/shared/package-files/ea/eabcd76d108eb5a16f649e340f7906a733f9213a06258be275a2ce7dc889b207/blob @@ -0,0 +1,24 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautogradnonfunctional { + +TORCH_API at::Tensor slow_conv_transpose2d(const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef output_padding=0, at::IntArrayRef dilation=1); +TORCH_API at::Tensor slow_conv_transpose2d_symint(const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef output_padding=c10::SymInt(0), c10::SymIntArrayRef dilation=c10::SymInt(1)); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/ea/eac31a05bb428a98c8f73c1bde92b6a239c9d55e74b9e3bb70b777383b81915a/blob b/shared/package-files/ea/eac31a05bb428a98c8f73c1bde92b6a239c9d55e74b9e3bb70b777383b81915a/blob new file mode 100644 index 0000000000000000000000000000000000000000..01e4a44380c29e4887ae5b43190adfdc8e4c0506 --- /dev/null +++ b/shared/package-files/ea/eac31a05bb428a98c8f73c1bde92b6a239c9d55e74b9e3bb70b777383b81915a/blob @@ -0,0 +1,9 @@ +from typing import Tuple + +from . import _LangModelType + +Latin2_HungarianCharToOrderMap: Tuple[int, ...] +win1250HungarianCharToOrderMap: Tuple[int, ...] +HungarianLangModel: Tuple[int, ...] +Latin2HungarianModel: _LangModelType +Win1250HungarianModel: _LangModelType diff --git a/shared/package-files/ea/eac34e9246663af0803d3c17add53a85e8431657976326a485e5f62906941d66/blob b/shared/package-files/ea/eac34e9246663af0803d3c17add53a85e8431657976326a485e5f62906941d66/blob new file mode 100644 index 0000000000000000000000000000000000000000..522fc77998610532fa86e0c4be454d6965c4e906 --- /dev/null +++ b/shared/package-files/ea/eac34e9246663af0803d3c17add53a85e8431657976326a485e5f62906941d66/blob @@ -0,0 +1,172 @@ +from sympy.core.numbers import (I, Rational) +from sympy.core.singleton import S +from sympy.core.symbol import (Dummy, symbols) +from sympy.functions.elementary.exponential import log +from sympy.functions.elementary.miscellaneous import sqrt +from sympy.functions.elementary.trigonometric import atan +from sympy.integrals.integrals import integrate +from sympy.polys.polytools import Poly +from sympy.simplify.simplify import simplify + +from sympy.integrals.rationaltools import ratint, ratint_logpart, log_to_atan + +from sympy.abc import a, b, x, t + +half = S.Half + + +def test_ratint(): + assert ratint(S.Zero, x) == 0 + assert ratint(S(7), x) == 7*x + + assert ratint(x, x) == x**2/2 + assert ratint(2*x, x) == x**2 + assert ratint(-2*x, x) == -x**2 + + assert ratint(8*x**7 + 2*x + 1, x) == x**8 + x**2 + x + + f = S.One + g = x + 1 + + assert ratint(f / g, x) == log(x + 1) + assert ratint((f, g), x) == log(x + 1) + + f = x**3 - x + g = x - 1 + + assert ratint(f/g, x) == x**3/3 + x**2/2 + + f = x + g = (x - a)*(x + a) + + assert ratint(f/g, x) == log(x**2 - a**2)/2 + + f = S.One + g = x**2 + 1 + + assert ratint(f/g, x, real=None) == atan(x) + assert ratint(f/g, x, real=True) == atan(x) + + assert ratint(f/g, x, real=False) == I*log(x + I)/2 - I*log(x - I)/2 + + f = S(36) + g = x**5 - 2*x**4 - 2*x**3 + 4*x**2 + x - 2 + + assert ratint(f/g, x) == \ + -4*log(x + 1) + 4*log(x - 2) + (12*x + 6)/(x**2 - 1) + + f = x**4 - 3*x**2 + 6 + g = x**6 - 5*x**4 + 5*x**2 + 4 + + assert ratint(f/g, x) == \ + atan(x) + atan(x**3) + atan(x/2 - Rational(3, 2)*x**3 + S.Half*x**5) + + f = x**7 - 24*x**4 - 4*x**2 + 8*x - 8 + g = x**8 + 6*x**6 + 12*x**4 + 8*x**2 + + assert ratint(f/g, x) == \ + (4 + 6*x + 8*x**2 + 3*x**3)/(4*x + 4*x**3 + x**5) + log(x) + + assert ratint((x**3*f)/(x*g), x) == \ + -(12 - 16*x + 6*x**2 - 14*x**3)/(4 + 4*x**2 + x**4) - \ + 5*sqrt(2)*atan(x*sqrt(2)/2) + S.Half*x**2 - 3*log(2 + x**2) + + f = x**5 - x**4 + 4*x**3 + x**2 - x + 5 + g = x**4 - 2*x**3 + 5*x**2 - 4*x + 4 + + assert ratint(f/g, x) == \ + x + S.Half*x**2 + S.Half*log(2 - x + x**2) + (9 - 4*x)/(7*x**2 - 7*x + 14) + \ + 13*sqrt(7)*atan(Rational(-1, 7)*sqrt(7) + 2*x*sqrt(7)/7)/49 + + assert ratint(1/(x**2 + x + 1), x) == \ + 2*sqrt(3)*atan(sqrt(3)/3 + 2*x*sqrt(3)/3)/3 + + assert ratint(1/(x**3 + 1), x) == \ + -log(1 - x + x**2)/6 + log(1 + x)/3 + sqrt(3)*atan(-sqrt(3) + /3 + 2*x*sqrt(3)/3)/3 + + assert ratint(1/(x**2 + x + 1), x, real=False) == \ + -I*3**half*log(half + x - half*I*3**half)/3 + \ + I*3**half*log(half + x + half*I*3**half)/3 + + assert ratint(1/(x**3 + 1), x, real=False) == log(1 + x)/3 + \ + (Rational(-1, 6) + I*3**half/6)*log(-half + x + I*3**half/2) + \ + (Rational(-1, 6) - I*3**half/6)*log(-half + x - I*3**half/2) + + # issue 4991 + assert ratint(1/(x*(a + b*x)**3), x) == \ + (3*a + 2*b*x)/(2*a**4 + 4*a**3*b*x + 2*a**2*b**2*x**2) + ( + log(x) - log(a/b + x))/a**3 + + assert ratint(x/(1 - x**2), x) == -log(x**2 - 1)/2 + assert ratint(-x/(1 - x**2), x) == log(x**2 - 1)/2 + + assert ratint((x/4 - 4/(1 - x)).diff(x), x) == x/4 + 4/(x - 1) + + ans = atan(x) + assert ratint(1/(x**2 + 1), x, symbol=x) == ans + assert ratint(1/(x**2 + 1), x, symbol='x') == ans + assert ratint(1/(x**2 + 1), x, symbol=a) == ans + # this asserts that as_dummy must return a unique symbol + # even if the symbol is already a Dummy + d = Dummy() + assert ratint(1/(d**2 + 1), d, symbol=d) == atan(d) + + +def test_ratint_logpart(): + assert ratint_logpart(x, x**2 - 9, x, t) == \ + [(Poly(x**2 - 9, x), Poly(-2*t + 1, t))] + assert ratint_logpart(x**2, x**3 - 5, x, t) == \ + [(Poly(x**3 - 5, x), Poly(-3*t + 1, t))] + + +def test_issue_5414(): + assert ratint(1/(x**2 + 16), x) == atan(x/4)/4 + + +def test_issue_5249(): + assert ratint( + 1/(x**2 + a**2), x) == (-I*log(-I*a + x)/2 + I*log(I*a + x)/2)/a + + +def test_issue_5817(): + a, b, c = symbols('a,b,c', positive=True) + + assert simplify(ratint(a/(b*c*x**2 + a**2 + b*a), x)) == \ + sqrt(a)*atan(sqrt( + b)*sqrt(c)*x/(sqrt(a)*sqrt(a + b)))/(sqrt(b)*sqrt(c)*sqrt(a + b)) + + +def test_issue_5981(): + u = symbols('u') + assert integrate(1/(u**2 + 1)) == atan(u) + +def test_issue_10488(): + a,b,c,x = symbols('a b c x', positive=True) + assert integrate(x/(a*x+b),x) == x/a - b*log(a*x + b)/a**2 + + +def test_issues_8246_12050_13501_14080(): + a = symbols('a', nonzero=True) + assert integrate(a/(x**2 + a**2), x) == atan(x/a) + assert integrate(1/(x**2 + a**2), x) == atan(x/a)/a + assert integrate(1/(1 + a**2*x**2), x) == atan(a*x)/a + + +def test_issue_6308(): + k, a0 = symbols('k a0', real=True) + assert integrate((x**2 + 1 - k**2)/(x**2 + 1 + a0**2), x) == \ + x - (a0**2 + k**2)*atan(x/sqrt(a0**2 + 1))/sqrt(a0**2 + 1) + + +def test_issue_5907(): + a = symbols('a', nonzero=True) + assert integrate(1/(x**2 + a**2)**2, x) == \ + x/(2*a**4 + 2*a**2*x**2) + atan(x/a)/(2*a**3) + + +def test_log_to_atan(): + f, g = (Poly(x + S.Half, x, domain='QQ'), Poly(sqrt(3)/2, x, domain='EX')) + fg_ans = 2*atan(2*sqrt(3)*x/3 + sqrt(3)/3) + assert log_to_atan(f, g) == fg_ans + assert log_to_atan(g, f) == -fg_ans diff --git a/shared/package-files/ea/eac7617ef5811a6473e8a20d7790e7af7c4ad900cf44398d71cd8f30b0a6a37e/blob b/shared/package-files/ea/eac7617ef5811a6473e8a20d7790e7af7c4ad900cf44398d71cd8f30b0a6a37e/blob new file mode 100644 index 0000000000000000000000000000000000000000..ccc11d752adbacd4960592e154a2c886276bc3f9 --- /dev/null +++ b/shared/package-files/ea/eac7617ef5811a6473e8a20d7790e7af7c4ad900cf44398d71cd8f30b0a6a37e/blob @@ -0,0 +1,1314 @@ +"""Utilities to evaluate the clustering performance of models. + +Functions named as *_score return a scalar value to maximize: the higher the +better. +""" + +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +import warnings +from math import log +from numbers import Real + +import numpy as np +from scipy import sparse as sp + +from ...utils._array_api import _max_precision_float_dtype, get_namespace_and_device +from ...utils._param_validation import Hidden, Interval, StrOptions, validate_params +from ...utils.multiclass import type_of_target +from ...utils.validation import check_array, check_consistent_length +from ._expected_mutual_info_fast import expected_mutual_information + + +def check_clusterings(labels_true, labels_pred): + """Check that the labels arrays are 1D and of same dimension. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,) + The true labels. + + labels_pred : array-like of shape (n_samples,) + The predicted labels. + """ + labels_true = check_array( + labels_true, + ensure_2d=False, + ensure_min_samples=0, + dtype=None, + ) + + labels_pred = check_array( + labels_pred, + ensure_2d=False, + ensure_min_samples=0, + dtype=None, + ) + + type_label = type_of_target(labels_true) + type_pred = type_of_target(labels_pred) + + if "continuous" in (type_pred, type_label): + msg = ( + "Clustering metrics expects discrete values but received" + f" {type_label} values for label, and {type_pred} values " + "for target" + ) + warnings.warn(msg, UserWarning) + + # input checks + if labels_true.ndim != 1: + raise ValueError("labels_true must be 1D: shape is %r" % (labels_true.shape,)) + if labels_pred.ndim != 1: + raise ValueError("labels_pred must be 1D: shape is %r" % (labels_pred.shape,)) + check_consistent_length(labels_true, labels_pred) + + return labels_true, labels_pred + + +def _generalized_average(U, V, average_method): + """Return a particular mean of two numbers.""" + if average_method == "min": + return min(U, V) + elif average_method == "geometric": + return np.sqrt(U * V) + elif average_method == "arithmetic": + return np.mean([U, V]) + elif average_method == "max": + return max(U, V) + else: + raise ValueError( + "'average_method' must be 'min', 'geometric', 'arithmetic', or 'max'" + ) + + +@validate_params( + { + "labels_true": ["array-like", None], + "labels_pred": ["array-like", None], + "eps": [Interval(Real, 0, None, closed="left"), None], + "sparse": ["boolean"], + "dtype": "no_validation", # delegate the validation to SciPy + }, + prefer_skip_nested_validation=True, +) +def contingency_matrix( + labels_true, labels_pred, *, eps=None, sparse=False, dtype=np.int64 +): + """Build a contingency matrix describing the relationship between labels. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,) + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,) + Cluster labels to evaluate. + + eps : float, default=None + If a float, that value is added to all values in the contingency + matrix. This helps to stop NaN propagation. + If ``None``, nothing is adjusted. + + sparse : bool, default=False + If `True`, return a sparse CSR contingency matrix. If `eps` is not + `None` and `sparse` is `True` will raise ValueError. + + .. versionadded:: 0.18 + + dtype : numeric type, default=np.int64 + Output dtype. Ignored if `eps` is not `None`. + + .. versionadded:: 0.24 + + Returns + ------- + contingency : {array-like, sparse}, shape=[n_classes_true, n_classes_pred] + Matrix :math:`C` such that :math:`C_{i, j}` is the number of samples in + true class :math:`i` and in predicted class :math:`j`. If + ``eps is None``, the dtype of this array will be integer unless set + otherwise with the ``dtype`` argument. If ``eps`` is given, the dtype + will be float. + Will be a ``sklearn.sparse.csr_matrix`` if ``sparse=True``. + + Examples + -------- + >>> from sklearn.metrics.cluster import contingency_matrix + >>> labels_true = [0, 0, 1, 1, 2, 2] + >>> labels_pred = [1, 0, 2, 1, 0, 2] + >>> contingency_matrix(labels_true, labels_pred) + array([[1, 1, 0], + [0, 1, 1], + [1, 0, 1]]) + """ + + if eps is not None and sparse: + raise ValueError("Cannot set 'eps' when sparse=True") + + classes, class_idx = np.unique(labels_true, return_inverse=True) + clusters, cluster_idx = np.unique(labels_pred, return_inverse=True) + n_classes = classes.shape[0] + n_clusters = clusters.shape[0] + # Using coo_matrix to accelerate simple histogram calculation, + # i.e. bins are consecutive integers + # Currently, coo_matrix is faster than histogram2d for simple cases + contingency = sp.coo_matrix( + (np.ones(class_idx.shape[0]), (class_idx, cluster_idx)), + shape=(n_classes, n_clusters), + dtype=dtype, + ) + if sparse: + contingency = contingency.tocsr() + contingency.sum_duplicates() + else: + contingency = contingency.toarray() + if eps is not None: + # don't use += as contingency is integer + contingency = contingency + eps + return contingency + + +# clustering measures + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + }, + prefer_skip_nested_validation=True, +) +def pair_confusion_matrix(labels_true, labels_pred): + """Pair confusion matrix arising from two clusterings. + + The pair confusion matrix :math:`C` computes a 2 by 2 similarity matrix + between two clusterings by considering all pairs of samples and counting + pairs that are assigned into the same or into different clusters under + the true and predicted clusterings [1]_. + + Considering a pair of samples that is clustered together a positive pair, + then as in binary classification the count of true negatives is + :math:`C_{00}`, false negatives is :math:`C_{10}`, true positives is + :math:`C_{11}` and false positives is :math:`C_{01}`. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,), dtype=integral + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,), dtype=integral + Cluster labels to evaluate. + + Returns + ------- + C : ndarray of shape (2, 2), dtype=np.int64 + The contingency matrix. + + See Also + -------- + sklearn.metrics.rand_score : Rand Score. + sklearn.metrics.adjusted_rand_score : Adjusted Rand Score. + sklearn.metrics.adjusted_mutual_info_score : Adjusted Mutual Information. + + References + ---------- + .. [1] :doi:`Hubert, L., Arabie, P. "Comparing partitions." + Journal of Classification 2, 193–218 (1985). + <10.1007/BF01908075>` + + Examples + -------- + Perfectly matching labelings have all non-zero entries on the + diagonal regardless of actual label values: + + >>> from sklearn.metrics.cluster import pair_confusion_matrix + >>> pair_confusion_matrix([0, 0, 1, 1], [1, 1, 0, 0]) + array([[8, 0], + [0, 4]]... + + Labelings that assign all classes members to the same clusters + are complete but may be not always pure, hence penalized, and + have some off-diagonal non-zero entries: + + >>> pair_confusion_matrix([0, 0, 1, 2], [0, 0, 1, 1]) + array([[8, 2], + [0, 2]]... + + Note that the matrix is not symmetric. + """ + labels_true, labels_pred = check_clusterings(labels_true, labels_pred) + n_samples = np.int64(labels_true.shape[0]) + + # Computation using the contingency data + contingency = contingency_matrix( + labels_true, labels_pred, sparse=True, dtype=np.int64 + ) + n_c = np.ravel(contingency.sum(axis=1)) + n_k = np.ravel(contingency.sum(axis=0)) + sum_squares = (contingency.data**2).sum() + C = np.empty((2, 2), dtype=np.int64) + C[1, 1] = sum_squares - n_samples + C[0, 1] = contingency.dot(n_k).sum() - sum_squares + C[1, 0] = contingency.transpose().dot(n_c).sum() - sum_squares + C[0, 0] = n_samples**2 - C[0, 1] - C[1, 0] - sum_squares + return C + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + }, + prefer_skip_nested_validation=True, +) +def rand_score(labels_true, labels_pred): + """Rand index. + + The Rand Index computes a similarity measure between two clusterings + by considering all pairs of samples and counting pairs that are + assigned in the same or different clusters in the predicted and + true clusterings [1]_ [2]_. + + The raw RI score [3]_ is: + + .. code-block:: text + + RI = (number of agreeing pairs) / (number of pairs) + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,), dtype=integral + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,), dtype=integral + Cluster labels to evaluate. + + Returns + ------- + RI : float + Similarity score between 0.0 and 1.0, inclusive, 1.0 stands for + perfect match. + + See Also + -------- + adjusted_rand_score: Adjusted Rand Score. + adjusted_mutual_info_score: Adjusted Mutual Information. + + References + ---------- + .. [1] :doi:`Hubert, L., Arabie, P. "Comparing partitions." + Journal of Classification 2, 193–218 (1985). + <10.1007/BF01908075>`. + + .. [2] `Wikipedia: Simple Matching Coefficient + `_ + + .. [3] `Wikipedia: Rand Index `_ + + Examples + -------- + Perfectly matching labelings have a score of 1 even + + >>> from sklearn.metrics.cluster import rand_score + >>> rand_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + Labelings that assign all classes members to the same clusters + are complete but may not always be pure, hence penalized: + + >>> rand_score([0, 0, 1, 2], [0, 0, 1, 1]) + 0.83 + """ + contingency = pair_confusion_matrix(labels_true, labels_pred) + numerator = contingency.diagonal().sum() + denominator = contingency.sum() + + if numerator == denominator or denominator == 0: + # Special limit cases: no clustering since the data is not split; + # or trivial clustering where each document is assigned a unique + # cluster. These are perfect matches hence return 1.0. + return 1.0 + + return float(numerator / denominator) + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + }, + prefer_skip_nested_validation=True, +) +def adjusted_rand_score(labels_true, labels_pred): + """Rand index adjusted for chance. + + The Rand Index computes a similarity measure between two clusterings + by considering all pairs of samples and counting pairs that are + assigned in the same or different clusters in the predicted and + true clusterings. + + The raw RI score is then "adjusted for chance" into the ARI score + using the following scheme:: + + ARI = (RI - Expected_RI) / (max(RI) - Expected_RI) + + The adjusted Rand index is thus ensured to have a value close to + 0.0 for random labeling independently of the number of clusters and + samples and exactly 1.0 when the clusterings are identical (up to + a permutation). The adjusted Rand index is bounded below by -0.5 for + especially discordant clusterings. + + ARI is a symmetric measure:: + + adjusted_rand_score(a, b) == adjusted_rand_score(b, a) + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,), dtype=int + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,), dtype=int + Cluster labels to evaluate. + + Returns + ------- + ARI : float + Similarity score between -0.5 and 1.0. Random labelings have an ARI + close to 0.0. 1.0 stands for perfect match. + + See Also + -------- + adjusted_mutual_info_score : Adjusted Mutual Information. + + References + ---------- + .. [Hubert1985] L. Hubert and P. Arabie, Comparing Partitions, + Journal of Classification 1985 + https://link.springer.com/article/10.1007%2FBF01908075 + + .. [Steinley2004] D. Steinley, Properties of the Hubert-Arabie + adjusted Rand index, Psychological Methods 2004 + + .. [wk] https://en.wikipedia.org/wiki/Rand_index#Adjusted_Rand_index + + .. [Chacon] :doi:`Minimum adjusted Rand index for two clusterings of a given size, + 2022, J. E. Chacón and A. I. Rastrojo <10.1007/s11634-022-00491-w>` + + Examples + -------- + Perfectly matching labelings have a score of 1 even + + >>> from sklearn.metrics.cluster import adjusted_rand_score + >>> adjusted_rand_score([0, 0, 1, 1], [0, 0, 1, 1]) + 1.0 + >>> adjusted_rand_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + Labelings that assign all classes members to the same clusters + are complete but may not always be pure, hence penalized:: + + >>> adjusted_rand_score([0, 0, 1, 2], [0, 0, 1, 1]) + 0.57 + + ARI is symmetric, so labelings that have pure clusters with members + coming from the same classes but unnecessary splits are penalized:: + + >>> adjusted_rand_score([0, 0, 1, 1], [0, 0, 1, 2]) + 0.57 + + If classes members are completely split across different clusters, the + assignment is totally incomplete, hence the ARI is very low:: + + >>> adjusted_rand_score([0, 0, 0, 0], [0, 1, 2, 3]) + 0.0 + + ARI may take a negative value for especially discordant labelings that + are a worse choice than the expected value of random labels:: + + >>> adjusted_rand_score([0, 0, 1, 1], [0, 1, 0, 1]) + -0.5 + + See :ref:`sphx_glr_auto_examples_cluster_plot_adjusted_for_chance_measures.py` + for a more detailed example. + """ + (tn, fp), (fn, tp) = pair_confusion_matrix(labels_true, labels_pred) + # convert to Python integer types, to avoid overflow or underflow + tn, fp, fn, tp = int(tn), int(fp), int(fn), int(tp) + + # Special cases: empty data or full agreement + if fn == 0 and fp == 0: + return 1.0 + + return 2.0 * (tp * tn - fn * fp) / ((tp + fn) * (fn + tn) + (tp + fp) * (fp + tn)) + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + "beta": [Interval(Real, 0, None, closed="left")], + }, + prefer_skip_nested_validation=True, +) +def homogeneity_completeness_v_measure(labels_true, labels_pred, *, beta=1.0): + """Compute the homogeneity and completeness and V-Measure scores at once. + + Those metrics are based on normalized conditional entropy measures of + the clustering labeling to evaluate given the knowledge of a Ground + Truth class labels of the same samples. + + A clustering result satisfies homogeneity if all of its clusters + contain only data points which are members of a single class. + + A clustering result satisfies completeness if all the data points + that are members of a given class are elements of the same cluster. + + Both scores have positive values between 0.0 and 1.0, larger values + being desirable. + + Those 3 metrics are independent of the absolute values of the labels: + a permutation of the class or cluster label values won't change the + score values in any way. + + V-Measure is furthermore symmetric: swapping ``labels_true`` and + ``label_pred`` will give the same score. This does not hold for + homogeneity and completeness. V-Measure is identical to + :func:`normalized_mutual_info_score` with the arithmetic averaging + method. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,) + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,) + Cluster labels to evaluate. + + beta : float, default=1.0 + Ratio of weight attributed to ``homogeneity`` vs ``completeness``. + If ``beta`` is greater than 1, ``completeness`` is weighted more + strongly in the calculation. If ``beta`` is less than 1, + ``homogeneity`` is weighted more strongly. + + Returns + ------- + homogeneity : float + Score between 0.0 and 1.0. 1.0 stands for perfectly homogeneous labeling. + + completeness : float + Score between 0.0 and 1.0. 1.0 stands for perfectly complete labeling. + + v_measure : float + Harmonic mean of the first two. + + See Also + -------- + homogeneity_score : Homogeneity metric of cluster labeling. + completeness_score : Completeness metric of cluster labeling. + v_measure_score : V-Measure (NMI with arithmetic mean option). + + Examples + -------- + >>> from sklearn.metrics import homogeneity_completeness_v_measure + >>> y_true, y_pred = [0, 0, 1, 1, 2, 2], [0, 0, 1, 2, 2, 2] + >>> homogeneity_completeness_v_measure(y_true, y_pred) + (0.71, 0.771, 0.74) + """ + labels_true, labels_pred = check_clusterings(labels_true, labels_pred) + + if len(labels_true) == 0: + return 1.0, 1.0, 1.0 + + entropy_C = entropy(labels_true) + entropy_K = entropy(labels_pred) + + contingency = contingency_matrix(labels_true, labels_pred, sparse=True) + MI = mutual_info_score(None, None, contingency=contingency) + + homogeneity = MI / (entropy_C) if entropy_C else 1.0 + completeness = MI / (entropy_K) if entropy_K else 1.0 + + if homogeneity + completeness == 0.0: + v_measure_score = 0.0 + else: + v_measure_score = ( + (1 + beta) + * homogeneity + * completeness + / (beta * homogeneity + completeness) + ) + + return float(homogeneity), float(completeness), float(v_measure_score) + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + }, + prefer_skip_nested_validation=True, +) +def homogeneity_score(labels_true, labels_pred): + """Homogeneity metric of a cluster labeling given a ground truth. + + A clustering result satisfies homogeneity if all of its clusters + contain only data points which are members of a single class. + + This metric is independent of the absolute values of the labels: + a permutation of the class or cluster label values won't change the + score value in any way. + + This metric is not symmetric: switching ``label_true`` with ``label_pred`` + will return the :func:`completeness_score` which will be different in + general. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,) + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,) + Cluster labels to evaluate. + + Returns + ------- + homogeneity : float + Score between 0.0 and 1.0. 1.0 stands for perfectly homogeneous labeling. + + See Also + -------- + completeness_score : Completeness metric of cluster labeling. + v_measure_score : V-Measure (NMI with arithmetic mean option). + + References + ---------- + + .. [1] `Andrew Rosenberg and Julia Hirschberg, 2007. V-Measure: A + conditional entropy-based external cluster evaluation measure + `_ + + Examples + -------- + + Perfect labelings are homogeneous:: + + >>> from sklearn.metrics.cluster import homogeneity_score + >>> homogeneity_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + Non-perfect labelings that further split classes into more clusters can be + perfectly homogeneous:: + + >>> print("%.6f" % homogeneity_score([0, 0, 1, 1], [0, 0, 1, 2])) + 1.000000 + >>> print("%.6f" % homogeneity_score([0, 0, 1, 1], [0, 1, 2, 3])) + 1.000000 + + Clusters that include samples from different classes do not make for an + homogeneous labeling:: + + >>> print("%.6f" % homogeneity_score([0, 0, 1, 1], [0, 1, 0, 1])) + 0.0... + >>> print("%.6f" % homogeneity_score([0, 0, 1, 1], [0, 0, 0, 0])) + 0.0... + """ + return homogeneity_completeness_v_measure(labels_true, labels_pred)[0] + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + }, + prefer_skip_nested_validation=True, +) +def completeness_score(labels_true, labels_pred): + """Compute completeness metric of a cluster labeling given a ground truth. + + A clustering result satisfies completeness if all the data points + that are members of a given class are elements of the same cluster. + + This metric is independent of the absolute values of the labels: + a permutation of the class or cluster label values won't change the + score value in any way. + + This metric is not symmetric: switching ``label_true`` with ``label_pred`` + will return the :func:`homogeneity_score` which will be different in + general. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,) + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,) + Cluster labels to evaluate. + + Returns + ------- + completeness : float + Score between 0.0 and 1.0. 1.0 stands for perfectly complete labeling. + + See Also + -------- + homogeneity_score : Homogeneity metric of cluster labeling. + v_measure_score : V-Measure (NMI with arithmetic mean option). + + References + ---------- + + .. [1] `Andrew Rosenberg and Julia Hirschberg, 2007. V-Measure: A + conditional entropy-based external cluster evaluation measure + `_ + + Examples + -------- + + Perfect labelings are complete:: + + >>> from sklearn.metrics.cluster import completeness_score + >>> completeness_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + Non-perfect labelings that assign all classes members to the same clusters + are still complete:: + + >>> print(completeness_score([0, 0, 1, 1], [0, 0, 0, 0])) + 1.0 + >>> print(completeness_score([0, 1, 2, 3], [0, 0, 1, 1])) + 0.999 + + If classes members are split across different clusters, the + assignment cannot be complete:: + + >>> print(completeness_score([0, 0, 1, 1], [0, 1, 0, 1])) + 0.0 + >>> print(completeness_score([0, 0, 0, 0], [0, 1, 2, 3])) + 0.0 + """ + return homogeneity_completeness_v_measure(labels_true, labels_pred)[1] + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + "beta": [Interval(Real, 0, None, closed="left")], + }, + prefer_skip_nested_validation=True, +) +def v_measure_score(labels_true, labels_pred, *, beta=1.0): + """V-measure cluster labeling given a ground truth. + + This score is identical to :func:`normalized_mutual_info_score` with + the ``'arithmetic'`` option for averaging. + + The V-measure is the harmonic mean between homogeneity and completeness:: + + v = (1 + beta) * homogeneity * completeness + / (beta * homogeneity + completeness) + + This metric is independent of the absolute values of the labels: + a permutation of the class or cluster label values won't change the + score value in any way. + + This metric is furthermore symmetric: switching ``label_true`` with + ``label_pred`` will return the same score value. This can be useful to + measure the agreement of two independent label assignments strategies + on the same dataset when the real ground truth is not known. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,) + Ground truth class labels to be used as a reference. + + labels_pred : array-like of shape (n_samples,) + Cluster labels to evaluate. + + beta : float, default=1.0 + Ratio of weight attributed to ``homogeneity`` vs ``completeness``. + If ``beta`` is greater than 1, ``completeness`` is weighted more + strongly in the calculation. If ``beta`` is less than 1, + ``homogeneity`` is weighted more strongly. + + Returns + ------- + v_measure : float + Score between 0.0 and 1.0. 1.0 stands for perfectly complete labeling. + + See Also + -------- + homogeneity_score : Homogeneity metric of cluster labeling. + completeness_score : Completeness metric of cluster labeling. + normalized_mutual_info_score : Normalized Mutual Information. + + References + ---------- + + .. [1] `Andrew Rosenberg and Julia Hirschberg, 2007. V-Measure: A + conditional entropy-based external cluster evaluation measure + `_ + + Examples + -------- + Perfect labelings are both homogeneous and complete, hence have score 1.0:: + + >>> from sklearn.metrics.cluster import v_measure_score + >>> v_measure_score([0, 0, 1, 1], [0, 0, 1, 1]) + 1.0 + >>> v_measure_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + Labelings that assign all classes members to the same clusters + are complete but not homogeneous, hence penalized:: + + >>> print("%.6f" % v_measure_score([0, 0, 1, 2], [0, 0, 1, 1])) + 0.8 + >>> print("%.6f" % v_measure_score([0, 1, 2, 3], [0, 0, 1, 1])) + 0.67 + + Labelings that have pure clusters with members coming from the same + classes are homogeneous but un-necessary splits harm completeness + and thus penalize V-measure as well:: + + >>> print("%.6f" % v_measure_score([0, 0, 1, 1], [0, 0, 1, 2])) + 0.8 + >>> print("%.6f" % v_measure_score([0, 0, 1, 1], [0, 1, 2, 3])) + 0.67 + + If classes members are completely split across different clusters, + the assignment is totally incomplete, hence the V-Measure is null:: + + >>> print("%.6f" % v_measure_score([0, 0, 0, 0], [0, 1, 2, 3])) + 0.0 + + Clusters that include samples from totally different classes totally + destroy the homogeneity of the labeling, hence:: + + >>> print("%.6f" % v_measure_score([0, 0, 1, 1], [0, 0, 0, 0])) + 0.0 + """ + return homogeneity_completeness_v_measure(labels_true, labels_pred, beta=beta)[2] + + +@validate_params( + { + "labels_true": ["array-like", None], + "labels_pred": ["array-like", None], + "contingency": ["array-like", "sparse matrix", None], + }, + prefer_skip_nested_validation=True, +) +def mutual_info_score(labels_true, labels_pred, *, contingency=None): + """Mutual Information between two clusterings. + + The Mutual Information is a measure of the similarity between two labels + of the same data. Where :math:`|U_i|` is the number of the samples + in cluster :math:`U_i` and :math:`|V_j|` is the number of the + samples in cluster :math:`V_j`, the Mutual Information + between clusterings :math:`U` and :math:`V` is given as: + + .. math:: + + MI(U,V)=\\sum_{i=1}^{|U|} \\sum_{j=1}^{|V|} \\frac{|U_i\\cap V_j|}{N} + \\log\\frac{N|U_i \\cap V_j|}{|U_i||V_j|} + + This metric is independent of the absolute values of the labels: + a permutation of the class or cluster label values won't change the + score value in any way. + + This metric is furthermore symmetric: switching :math:`U` (i.e + ``label_true``) with :math:`V` (i.e. ``label_pred``) will return the + same score value. This can be useful to measure the agreement of two + independent label assignments strategies on the same dataset when the + real ground truth is not known. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,), dtype=integral + A clustering of the data into disjoint subsets, called :math:`U` in + the above formula. + + labels_pred : array-like of shape (n_samples,), dtype=integral + A clustering of the data into disjoint subsets, called :math:`V` in + the above formula. + + contingency : {array-like, sparse matrix} of shape \ + (n_classes_true, n_classes_pred), default=None + A contingency matrix given by the + :func:`~sklearn.metrics.cluster.contingency_matrix` function. If value + is ``None``, it will be computed, otherwise the given value is used, + with ``labels_true`` and ``labels_pred`` ignored. + + Returns + ------- + mi : float + Mutual information, a non-negative value, measured in nats using the + natural logarithm. + + See Also + -------- + adjusted_mutual_info_score : Adjusted against chance Mutual Information. + normalized_mutual_info_score : Normalized Mutual Information. + + Notes + ----- + The logarithm used is the natural logarithm (base-e). + + Examples + -------- + >>> from sklearn.metrics import mutual_info_score + >>> labels_true = [0, 1, 1, 0, 1, 0] + >>> labels_pred = [0, 1, 0, 0, 1, 1] + >>> mutual_info_score(labels_true, labels_pred) + 0.0566 + """ + if contingency is None: + labels_true, labels_pred = check_clusterings(labels_true, labels_pred) + contingency = contingency_matrix(labels_true, labels_pred, sparse=True) + else: + contingency = check_array( + contingency, + accept_sparse=["csr", "csc", "coo"], + dtype=[int, np.int32, np.int64], + ) + + if isinstance(contingency, np.ndarray): + # For an array + nzx, nzy = np.nonzero(contingency) + nz_val = contingency[nzx, nzy] + else: + # For a sparse matrix + nzx, nzy, nz_val = sp.find(contingency) + + contingency_sum = contingency.sum() + pi = np.ravel(contingency.sum(axis=1)) + pj = np.ravel(contingency.sum(axis=0)) + + # Since MI <= min(H(X), H(Y)), any labelling with zero entropy, i.e. containing a + # single cluster, implies MI = 0 + if pi.size == 1 or pj.size == 1: + return 0.0 + + log_contingency_nm = np.log(nz_val) + contingency_nm = nz_val / contingency_sum + # Don't need to calculate the full outer product, just for non-zeroes + outer = pi.take(nzx).astype(np.int64, copy=False) * pj.take(nzy).astype( + np.int64, copy=False + ) + log_outer = -np.log(outer) + log(pi.sum()) + log(pj.sum()) + mi = ( + contingency_nm * (log_contingency_nm - log(contingency_sum)) + + contingency_nm * log_outer + ) + mi = np.where(np.abs(mi) < np.finfo(mi.dtype).eps, 0.0, mi) + return float(np.clip(mi.sum(), 0.0, None)) + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + "average_method": [StrOptions({"arithmetic", "max", "min", "geometric"})], + }, + prefer_skip_nested_validation=True, +) +def adjusted_mutual_info_score( + labels_true, labels_pred, *, average_method="arithmetic" +): + """Adjusted Mutual Information between two clusterings. + + Adjusted Mutual Information (AMI) is an adjustment of the Mutual + Information (MI) score to account for chance. It accounts for the fact that + the MI is generally higher for two clusterings with a larger number of + clusters, regardless of whether there is actually more information shared. + For two clusterings :math:`U` and :math:`V`, the AMI is given as:: + + AMI(U, V) = [MI(U, V) - E(MI(U, V))] / [avg(H(U), H(V)) - E(MI(U, V))] + + This metric is independent of the absolute values of the labels: + a permutation of the class or cluster label values won't change the + score value in any way. + + This metric is furthermore symmetric: switching :math:`U` (``label_true``) + with :math:`V` (``labels_pred``) will return the same score value. This can + be useful to measure the agreement of two independent label assignments + strategies on the same dataset when the real ground truth is not known. + + Be mindful that this function is an order of magnitude slower than other + metrics, such as the Adjusted Rand Index. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : int array-like of shape (n_samples,) + A clustering of the data into disjoint subsets, called :math:`U` in + the above formula. + + labels_pred : int array-like of shape (n_samples,) + A clustering of the data into disjoint subsets, called :math:`V` in + the above formula. + + average_method : {'min', 'geometric', 'arithmetic', 'max'}, default='arithmetic' + How to compute the normalizer in the denominator. + + .. versionadded:: 0.20 + + .. versionchanged:: 0.22 + The default value of ``average_method`` changed from 'max' to + 'arithmetic'. + + Returns + ------- + ami: float (upperlimited by 1.0) + The AMI returns a value of 1 when the two partitions are identical + (ie perfectly matched). Random partitions (independent labellings) have + an expected AMI around 0 on average hence can be negative. The value is + in adjusted nats (based on the natural logarithm). + + See Also + -------- + adjusted_rand_score : Adjusted Rand Index. + mutual_info_score : Mutual Information (not adjusted for chance). + + References + ---------- + .. [1] `Vinh, Epps, and Bailey, (2010). Information Theoretic Measures for + Clusterings Comparison: Variants, Properties, Normalization and + Correction for Chance, JMLR + `_ + + .. [2] `Wikipedia entry for the Adjusted Mutual Information + `_ + + Examples + -------- + + Perfect labelings are both homogeneous and complete, hence have + score 1.0:: + + >>> from sklearn.metrics.cluster import adjusted_mutual_info_score + >>> adjusted_mutual_info_score([0, 0, 1, 1], [0, 0, 1, 1]) + 1.0 + >>> adjusted_mutual_info_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + If classes members are completely split across different clusters, + the assignment is totally in-complete, hence the AMI is null:: + + >>> adjusted_mutual_info_score([0, 0, 0, 0], [0, 1, 2, 3]) + 0.0 + """ + labels_true, labels_pred = check_clusterings(labels_true, labels_pred) + n_samples = labels_true.shape[0] + classes = np.unique(labels_true) + clusters = np.unique(labels_pred) + + # Special limit cases: no clustering since the data is not split. + # It corresponds to both labellings having zero entropy. + # This is a perfect match hence return 1.0. + if ( + classes.shape[0] == clusters.shape[0] == 1 + or classes.shape[0] == clusters.shape[0] == 0 + ): + return 1.0 + # if there is only one class or one cluster return 0.0. + elif classes.shape[0] == 1 or clusters.shape[0] == 1: + return 0.0 + + contingency = contingency_matrix(labels_true, labels_pred, sparse=True) + # Calculate the MI for the two clusterings + mi = mutual_info_score(labels_true, labels_pred, contingency=contingency) + # Calculate the expected value for the mutual information + emi = expected_mutual_information(contingency, n_samples) + # Calculate entropy for each labeling + h_true, h_pred = entropy(labels_true), entropy(labels_pred) + normalizer = _generalized_average(h_true, h_pred, average_method) + denominator = normalizer - emi + # Avoid 0.0 / 0.0 when expectation equals maximum, i.e. a perfect match. + # normalizer should always be >= emi, but because of floating-point + # representation, sometimes emi is slightly larger. Correct this + # by preserving the sign. + if denominator < 0: + denominator = min(denominator, -np.finfo("float64").eps) + else: + denominator = max(denominator, np.finfo("float64").eps) + # The same applies analogously to mi and emi. + numerator = mi - emi + if numerator < 0: + numerator = min(numerator, -np.finfo("float64").eps) + else: + numerator = max(numerator, np.finfo("float64").eps) + return float(numerator / denominator) + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + "average_method": [StrOptions({"arithmetic", "max", "min", "geometric"})], + }, + prefer_skip_nested_validation=True, +) +def normalized_mutual_info_score( + labels_true, labels_pred, *, average_method="arithmetic" +): + """Normalized Mutual Information between two clusterings. + + Normalized Mutual Information (NMI) is a normalization of the Mutual + Information (MI) score to scale the results between 0 (no mutual + information) and 1 (perfect correlation). In this function, mutual + information is normalized by some generalized mean of ``H(labels_true)`` + and ``H(labels_pred))``, defined by the `average_method`. + + This measure is not adjusted for chance. Therefore + :func:`adjusted_mutual_info_score` might be preferred. + + This metric is independent of the absolute values of the labels: + a permutation of the class or cluster label values won't change the + score value in any way. + + This metric is furthermore symmetric: switching ``label_true`` with + ``label_pred`` will return the same score value. This can be useful to + measure the agreement of two independent label assignments strategies + on the same dataset when the real ground truth is not known. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : int array-like of shape (n_samples,) + A clustering of the data into disjoint subsets. + + labels_pred : int array-like of shape (n_samples,) + A clustering of the data into disjoint subsets. + + average_method : {'min', 'geometric', 'arithmetic', 'max'}, default='arithmetic' + How to compute the normalizer in the denominator. + + .. versionadded:: 0.20 + + .. versionchanged:: 0.22 + The default value of ``average_method`` changed from 'geometric' to + 'arithmetic'. + + Returns + ------- + nmi : float + Score between 0.0 and 1.0 in normalized nats (based on the natural + logarithm). 1.0 stands for perfectly complete labeling. + + See Also + -------- + v_measure_score : V-Measure (NMI with arithmetic mean option). + adjusted_rand_score : Adjusted Rand Index. + adjusted_mutual_info_score : Adjusted Mutual Information (adjusted + against chance). + + Examples + -------- + + Perfect labelings are both homogeneous and complete, hence have + score 1.0:: + + >>> from sklearn.metrics.cluster import normalized_mutual_info_score + >>> normalized_mutual_info_score([0, 0, 1, 1], [0, 0, 1, 1]) + 1.0 + >>> normalized_mutual_info_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + If classes members are completely split across different clusters, + the assignment is totally in-complete, hence the NMI is null:: + + >>> normalized_mutual_info_score([0, 0, 0, 0], [0, 1, 2, 3]) + 0.0 + """ + labels_true, labels_pred = check_clusterings(labels_true, labels_pred) + classes = np.unique(labels_true) + clusters = np.unique(labels_pred) + + # Special limit cases: no clustering since the data is not split. + # It corresponds to both labellings having zero entropy. + # This is a perfect match hence return 1.0. + if ( + classes.shape[0] == clusters.shape[0] == 1 + or classes.shape[0] == clusters.shape[0] == 0 + ): + return 1.0 + + contingency = contingency_matrix(labels_true, labels_pred, sparse=True) + contingency = contingency.astype(np.float64, copy=False) + # Calculate the MI for the two clusterings + mi = mutual_info_score(labels_true, labels_pred, contingency=contingency) + + # At this point mi = 0 can't be a perfect match (the special case of a single + # cluster has been dealt with before). Hence, if mi = 0, the nmi must be 0 whatever + # the normalization. + if mi == 0: + return 0.0 + + # Calculate entropy for each labeling + h_true, h_pred = entropy(labels_true), entropy(labels_pred) + + normalizer = _generalized_average(h_true, h_pred, average_method) + return float(mi / normalizer) + + +@validate_params( + { + "labels_true": ["array-like"], + "labels_pred": ["array-like"], + "sparse": ["boolean", Hidden(StrOptions({"deprecated"}))], + }, + prefer_skip_nested_validation=True, +) +def fowlkes_mallows_score(labels_true, labels_pred, *, sparse="deprecated"): + """Measure the similarity of two clusterings of a set of points. + + .. versionadded:: 0.18 + + The Fowlkes-Mallows index (FMI) is defined as the geometric mean of + the precision and recall:: + + FMI = TP / sqrt((TP + FP) * (TP + FN)) + + Where ``TP`` is the number of **True Positive** (i.e. the number of pairs of + points that belong to the same cluster in both ``labels_true`` and + ``labels_pred``), ``FP`` is the number of **False Positive** (i.e. the + number of pairs of points that belong to the same cluster in + ``labels_pred`` but not in ``labels_true``) and ``FN`` is the number of + **False Negative** (i.e. the number of pairs of points that belong to the + same cluster in ``labels_true`` but not in ``labels_pred``). + + The score ranges from 0 to 1. A high value indicates a good similarity + between two clusters. + + Read more in the :ref:`User Guide `. + + Parameters + ---------- + labels_true : array-like of shape (n_samples,), dtype=int + A clustering of the data into disjoint subsets. + + labels_pred : array-like of shape (n_samples,), dtype=int + A clustering of the data into disjoint subsets. + + sparse : bool, default=False + Compute contingency matrix internally with sparse matrix. + + .. deprecated:: 1.7 + The ``sparse`` parameter is deprecated and will be removed in 1.9. It has + no effect. + + Returns + ------- + score : float + The resulting Fowlkes-Mallows score. + + References + ---------- + .. [1] `E. B. Fowkles and C. L. Mallows, 1983. "A method for comparing two + hierarchical clusterings". Journal of the American Statistical + Association + `_ + + .. [2] `Wikipedia entry for the Fowlkes-Mallows Index + `_ + + Examples + -------- + + Perfect labelings are both homogeneous and complete, hence have + score 1.0:: + + >>> from sklearn.metrics.cluster import fowlkes_mallows_score + >>> fowlkes_mallows_score([0, 0, 1, 1], [0, 0, 1, 1]) + 1.0 + >>> fowlkes_mallows_score([0, 0, 1, 1], [1, 1, 0, 0]) + 1.0 + + If classes members are completely split across different clusters, + the assignment is totally random, hence the FMI is null:: + + >>> fowlkes_mallows_score([0, 0, 0, 0], [0, 1, 2, 3]) + 0.0 + """ + # TODO(1.9): remove the sparse parameter + if sparse != "deprecated": + warnings.warn( + "The 'sparse' parameter was deprecated in 1.7 and will be removed in 1.9. " + "It has no effect. Leave it to its default value to silence this warning.", + FutureWarning, + ) + + labels_true, labels_pred = check_clusterings(labels_true, labels_pred) + (n_samples,) = labels_true.shape + + c = contingency_matrix(labels_true, labels_pred, sparse=True) + c = c.astype(np.int64, copy=False) + tk = np.dot(c.data, c.data) - n_samples + pk = np.sum(np.asarray(c.sum(axis=0)).ravel() ** 2) - n_samples + qk = np.sum(np.asarray(c.sum(axis=1)).ravel() ** 2) - n_samples + return float(np.sqrt(tk / pk) * np.sqrt(tk / qk)) if tk != 0.0 else 0.0 + + +@validate_params( + { + "labels": ["array-like"], + }, + prefer_skip_nested_validation=True, +) +def entropy(labels): + """Calculate the entropy for a labeling. + + Parameters + ---------- + labels : array-like of shape (n_samples,), dtype=int + The labels. + + Returns + ------- + entropy : float + The entropy for a labeling. + + Notes + ----- + The logarithm used is the natural logarithm (base-e). + """ + xp, is_array_api_compliant, device_ = get_namespace_and_device(labels) + labels_len = labels.shape[0] if is_array_api_compliant else len(labels) + if labels_len == 0: + return 1.0 + + pi = xp.astype(xp.unique_counts(labels)[1], _max_precision_float_dtype(xp, device_)) + + # single cluster => zero entropy + if pi.size == 1: + return 0.0 + + pi_sum = xp.sum(pi) + # log(a / b) should be calculated as log(a) - log(b) for + # possible loss of precision + # Always convert the result as a Python scalar (on CPU) instead of a device + # specific scalar array. + return float(-xp.sum((pi / pi_sum) * (xp.log(pi) - log(pi_sum)))) diff --git a/shared/package-files/ea/eac8ebad6f44c69435c21bc3e80cd5fd751abbf1f89e824a6051bedff5c4ba2d/blob b/shared/package-files/ea/eac8ebad6f44c69435c21bc3e80cd5fd751abbf1f89e824a6051bedff5c4ba2d/blob new file mode 100644 index 0000000000000000000000000000000000000000..ecaf2c6c0a5c586947b8a74652144400ad3d8fe3 Binary files /dev/null and b/shared/package-files/ea/eac8ebad6f44c69435c21bc3e80cd5fd751abbf1f89e824a6051bedff5c4ba2d/blob differ diff --git a/shared/package-files/ea/eacc765f7708540f018163a0f28771172fbf95b5831444d4f072387d4e119aac/blob b/shared/package-files/ea/eacc765f7708540f018163a0f28771172fbf95b5831444d4f072387d4e119aac/blob new file mode 100644 index 0000000000000000000000000000000000000000..a367417f8eb5926d0778eb50dc68ba68f977a31f --- /dev/null +++ b/shared/package-files/ea/eacc765f7708540f018163a0f28771172fbf95b5831444d4f072387d4e119aac/blob @@ -0,0 +1,1094 @@ +""" +requests.utils +~~~~~~~~~~~~~~ + +This module provides utility functions that are used within Requests +that are also useful for external consumption. +""" + +import codecs +import contextlib +import io +import os +import re +import socket +import struct +import sys +import tempfile +import warnings +import zipfile +from collections import OrderedDict + +from urllib3.util import make_headers, parse_url + +from . import certs +from .__version__ import __version__ + +# to_native_string is unused here, but imported here for backwards compatibility +from ._internal_utils import ( # noqa: F401 + _HEADER_VALIDATORS_BYTE, + _HEADER_VALIDATORS_STR, + HEADER_VALIDATORS, + to_native_string, +) +from .compat import ( + Mapping, + basestring, + bytes, + getproxies, + getproxies_environment, + integer_types, +) +from .compat import parse_http_list as _parse_list_header +from .compat import ( + proxy_bypass, + proxy_bypass_environment, + quote, + str, + unquote, + urlparse, + urlunparse, +) +from .cookies import cookiejar_from_dict +from .exceptions import ( + FileModeWarning, + InvalidHeader, + InvalidURL, + UnrewindableBodyError, +) +from .structures import CaseInsensitiveDict + +NETRC_FILES = (".netrc", "_netrc") + +DEFAULT_CA_BUNDLE_PATH = certs.where() + +DEFAULT_PORTS = {"http": 80, "https": 443} + +# Ensure that ', ' is used to preserve previous delimiter behavior. +DEFAULT_ACCEPT_ENCODING = ", ".join( + re.split(r",\s*", make_headers(accept_encoding=True)["accept-encoding"]) +) + + +if sys.platform == "win32": + # provide a proxy_bypass version on Windows without DNS lookups + + def proxy_bypass_registry(host): + try: + import winreg + except ImportError: + return False + + try: + internetSettings = winreg.OpenKey( + winreg.HKEY_CURRENT_USER, + r"Software\Microsoft\Windows\CurrentVersion\Internet Settings", + ) + # ProxyEnable could be REG_SZ or REG_DWORD, normalizing it + proxyEnable = int(winreg.QueryValueEx(internetSettings, "ProxyEnable")[0]) + # ProxyOverride is almost always a string + proxyOverride = winreg.QueryValueEx(internetSettings, "ProxyOverride")[0] + except (OSError, ValueError): + return False + if not proxyEnable or not proxyOverride: + return False + + # make a check value list from the registry entry: replace the + # '' string by the localhost entry and the corresponding + # canonical entry. + proxyOverride = proxyOverride.split(";") + # now check if we match one of the registry values. + for test in proxyOverride: + if test == "": + if "." not in host: + return True + test = test.replace(".", r"\.") # mask dots + test = test.replace("*", r".*") # change glob sequence + test = test.replace("?", r".") # change glob char + if re.match(test, host, re.I): + return True + return False + + def proxy_bypass(host): # noqa + """Return True, if the host should be bypassed. + + Checks proxy settings gathered from the environment, if specified, + or the registry. + """ + if getproxies_environment(): + return proxy_bypass_environment(host) + else: + return proxy_bypass_registry(host) + + +def dict_to_sequence(d): + """Returns an internal sequence dictionary update.""" + + if hasattr(d, "items"): + d = d.items() + + return d + + +def super_len(o): + total_length = None + current_position = 0 + + if hasattr(o, "__len__"): + total_length = len(o) + + elif hasattr(o, "len"): + total_length = o.len + + elif hasattr(o, "fileno"): + try: + fileno = o.fileno() + except (io.UnsupportedOperation, AttributeError): + # AttributeError is a surprising exception, seeing as how we've just checked + # that `hasattr(o, 'fileno')`. It happens for objects obtained via + # `Tarfile.extractfile()`, per issue 5229. + pass + else: + total_length = os.fstat(fileno).st_size + + # Having used fstat to determine the file length, we need to + # confirm that this file was opened up in binary mode. + if "b" not in o.mode: + warnings.warn( + ( + "Requests has determined the content-length for this " + "request using the binary size of the file: however, the " + "file has been opened in text mode (i.e. without the 'b' " + "flag in the mode). This may lead to an incorrect " + "content-length. In Requests 3.0, support will be removed " + "for files in text mode." + ), + FileModeWarning, + ) + + if hasattr(o, "tell"): + try: + current_position = o.tell() + except OSError: + # This can happen in some weird situations, such as when the file + # is actually a special file descriptor like stdin. In this + # instance, we don't know what the length is, so set it to zero and + # let requests chunk it instead. + if total_length is not None: + current_position = total_length + else: + if hasattr(o, "seek") and total_length is None: + # StringIO and BytesIO have seek but no usable fileno + try: + # seek to end of file + o.seek(0, 2) + total_length = o.tell() + + # seek back to current position to support + # partially read file-like objects + o.seek(current_position or 0) + except OSError: + total_length = 0 + + if total_length is None: + total_length = 0 + + return max(0, total_length - current_position) + + +def get_netrc_auth(url, raise_errors=False): + """Returns the Requests tuple auth for a given url from netrc.""" + + netrc_file = os.environ.get("NETRC") + if netrc_file is not None: + netrc_locations = (netrc_file,) + else: + netrc_locations = (f"~/{f}" for f in NETRC_FILES) + + try: + from netrc import NetrcParseError, netrc + + netrc_path = None + + for f in netrc_locations: + try: + loc = os.path.expanduser(f) + except KeyError: + # os.path.expanduser can fail when $HOME is undefined and + # getpwuid fails. See https://bugs.python.org/issue20164 & + # https://github.com/psf/requests/issues/1846 + return + + if os.path.exists(loc): + netrc_path = loc + break + + # Abort early if there isn't one. + if netrc_path is None: + return + + ri = urlparse(url) + + # Strip port numbers from netloc. This weird `if...encode`` dance is + # used for Python 3.2, which doesn't support unicode literals. + splitstr = b":" + if isinstance(url, str): + splitstr = splitstr.decode("ascii") + host = ri.netloc.split(splitstr)[0] + + try: + _netrc = netrc(netrc_path).authenticators(host) + if _netrc: + # Return with login / password + login_i = 0 if _netrc[0] else 1 + return (_netrc[login_i], _netrc[2]) + except (NetrcParseError, OSError): + # If there was a parsing error or a permissions issue reading the file, + # we'll just skip netrc auth unless explicitly asked to raise errors. + if raise_errors: + raise + + # App Engine hackiness. + except (ImportError, AttributeError): + pass + + +def guess_filename(obj): + """Tries to guess the filename of the given object.""" + name = getattr(obj, "name", None) + if name and isinstance(name, basestring) and name[0] != "<" and name[-1] != ">": + return os.path.basename(name) + + +def extract_zipped_paths(path): + """Replace nonexistent paths that look like they refer to a member of a zip + archive with the location of an extracted copy of the target, or else + just return the provided path unchanged. + """ + if os.path.exists(path): + # this is already a valid path, no need to do anything further + return path + + # find the first valid part of the provided path and treat that as a zip archive + # assume the rest of the path is the name of a member in the archive + archive, member = os.path.split(path) + while archive and not os.path.exists(archive): + archive, prefix = os.path.split(archive) + if not prefix: + # If we don't check for an empty prefix after the split (in other words, archive remains unchanged after the split), + # we _can_ end up in an infinite loop on a rare corner case affecting a small number of users + break + member = "/".join([prefix, member]) + + if not zipfile.is_zipfile(archive): + return path + + zip_file = zipfile.ZipFile(archive) + if member not in zip_file.namelist(): + return path + + # we have a valid zip archive and a valid member of that archive + tmp = tempfile.gettempdir() + extracted_path = os.path.join(tmp, member.split("/")[-1]) + if not os.path.exists(extracted_path): + # use read + write to avoid the creating nested folders, we only want the file, avoids mkdir racing condition + with atomic_open(extracted_path) as file_handler: + file_handler.write(zip_file.read(member)) + return extracted_path + + +@contextlib.contextmanager +def atomic_open(filename): + """Write a file to the disk in an atomic fashion""" + tmp_descriptor, tmp_name = tempfile.mkstemp(dir=os.path.dirname(filename)) + try: + with os.fdopen(tmp_descriptor, "wb") as tmp_handler: + yield tmp_handler + os.replace(tmp_name, filename) + except BaseException: + os.remove(tmp_name) + raise + + +def from_key_val_list(value): + """Take an object and test to see if it can be represented as a + dictionary. Unless it can not be represented as such, return an + OrderedDict, e.g., + + :: + + >>> from_key_val_list([('key', 'val')]) + OrderedDict([('key', 'val')]) + >>> from_key_val_list('string') + Traceback (most recent call last): + ... + ValueError: cannot encode objects that are not 2-tuples + >>> from_key_val_list({'key': 'val'}) + OrderedDict([('key', 'val')]) + + :rtype: OrderedDict + """ + if value is None: + return None + + if isinstance(value, (str, bytes, bool, int)): + raise ValueError("cannot encode objects that are not 2-tuples") + + return OrderedDict(value) + + +def to_key_val_list(value): + """Take an object and test to see if it can be represented as a + dictionary. If it can be, return a list of tuples, e.g., + + :: + + >>> to_key_val_list([('key', 'val')]) + [('key', 'val')] + >>> to_key_val_list({'key': 'val'}) + [('key', 'val')] + >>> to_key_val_list('string') + Traceback (most recent call last): + ... + ValueError: cannot encode objects that are not 2-tuples + + :rtype: list + """ + if value is None: + return None + + if isinstance(value, (str, bytes, bool, int)): + raise ValueError("cannot encode objects that are not 2-tuples") + + if isinstance(value, Mapping): + value = value.items() + + return list(value) + + +# From mitsuhiko/werkzeug (used with permission). +def parse_list_header(value): + """Parse lists as described by RFC 2068 Section 2. + + In particular, parse comma-separated lists where the elements of + the list may include quoted-strings. A quoted-string could + contain a comma. A non-quoted string could have quotes in the + middle. Quotes are removed automatically after parsing. + + It basically works like :func:`parse_set_header` just that items + may appear multiple times and case sensitivity is preserved. + + The return value is a standard :class:`list`: + + >>> parse_list_header('token, "quoted value"') + ['token', 'quoted value'] + + To create a header from the :class:`list` again, use the + :func:`dump_header` function. + + :param value: a string with a list header. + :return: :class:`list` + :rtype: list + """ + result = [] + for item in _parse_list_header(value): + if item[:1] == item[-1:] == '"': + item = unquote_header_value(item[1:-1]) + result.append(item) + return result + + +# From mitsuhiko/werkzeug (used with permission). +def parse_dict_header(value): + """Parse lists of key, value pairs as described by RFC 2068 Section 2 and + convert them into a python dict: + + >>> d = parse_dict_header('foo="is a fish", bar="as well"') + >>> type(d) is dict + True + >>> sorted(d.items()) + [('bar', 'as well'), ('foo', 'is a fish')] + + If there is no value for a key it will be `None`: + + >>> parse_dict_header('key_without_value') + {'key_without_value': None} + + To create a header from the :class:`dict` again, use the + :func:`dump_header` function. + + :param value: a string with a dict header. + :return: :class:`dict` + :rtype: dict + """ + result = {} + for item in _parse_list_header(value): + if "=" not in item: + result[item] = None + continue + name, value = item.split("=", 1) + if value[:1] == value[-1:] == '"': + value = unquote_header_value(value[1:-1]) + result[name] = value + return result + + +# From mitsuhiko/werkzeug (used with permission). +def unquote_header_value(value, is_filename=False): + r"""Unquotes a header value. (Reversal of :func:`quote_header_value`). + This does not use the real unquoting but what browsers are actually + using for quoting. + + :param value: the header value to unquote. + :rtype: str + """ + if value and value[0] == value[-1] == '"': + # this is not the real unquoting, but fixing this so that the + # RFC is met will result in bugs with internet explorer and + # probably some other browsers as well. IE for example is + # uploading files with "C:\foo\bar.txt" as filename + value = value[1:-1] + + # if this is a filename and the starting characters look like + # a UNC path, then just return the value without quotes. Using the + # replace sequence below on a UNC path has the effect of turning + # the leading double slash into a single slash and then + # _fix_ie_filename() doesn't work correctly. See #458. + if not is_filename or value[:2] != "\\\\": + return value.replace("\\\\", "\\").replace('\\"', '"') + return value + + +def dict_from_cookiejar(cj): + """Returns a key/value dictionary from a CookieJar. + + :param cj: CookieJar object to extract cookies from. + :rtype: dict + """ + + cookie_dict = {} + + for cookie in cj: + cookie_dict[cookie.name] = cookie.value + + return cookie_dict + + +def add_dict_to_cookiejar(cj, cookie_dict): + """Returns a CookieJar from a key/value dictionary. + + :param cj: CookieJar to insert cookies into. + :param cookie_dict: Dict of key/values to insert into CookieJar. + :rtype: CookieJar + """ + + return cookiejar_from_dict(cookie_dict, cj) + + +def get_encodings_from_content(content): + """Returns encodings from given content string. + + :param content: bytestring to extract encodings from. + """ + warnings.warn( + ( + "In requests 3.0, get_encodings_from_content will be removed. For " + "more information, please see the discussion on issue #2266. (This" + " warning should only appear once.)" + ), + DeprecationWarning, + ) + + charset_re = re.compile(r']', flags=re.I) + pragma_re = re.compile(r']', flags=re.I) + xml_re = re.compile(r'^<\?xml.*?encoding=["\']*(.+?)["\'>]') + + return ( + charset_re.findall(content) + + pragma_re.findall(content) + + xml_re.findall(content) + ) + + +def _parse_content_type_header(header): + """Returns content type and parameters from given header + + :param header: string + :return: tuple containing content type and dictionary of + parameters + """ + + tokens = header.split(";") + content_type, params = tokens[0].strip(), tokens[1:] + params_dict = {} + items_to_strip = "\"' " + + for param in params: + param = param.strip() + if param: + key, value = param, True + index_of_equals = param.find("=") + if index_of_equals != -1: + key = param[:index_of_equals].strip(items_to_strip) + value = param[index_of_equals + 1 :].strip(items_to_strip) + params_dict[key.lower()] = value + return content_type, params_dict + + +def get_encoding_from_headers(headers): + """Returns encodings from given HTTP Header Dict. + + :param headers: dictionary to extract encoding from. + :rtype: str + """ + + content_type = headers.get("content-type") + + if not content_type: + return None + + content_type, params = _parse_content_type_header(content_type) + + if "charset" in params: + return params["charset"].strip("'\"") + + if "text" in content_type: + return "ISO-8859-1" + + if "application/json" in content_type: + # Assume UTF-8 based on RFC 4627: https://www.ietf.org/rfc/rfc4627.txt since the charset was unset + return "utf-8" + + +def stream_decode_response_unicode(iterator, r): + """Stream decodes an iterator.""" + + if r.encoding is None: + yield from iterator + return + + decoder = codecs.getincrementaldecoder(r.encoding)(errors="replace") + for chunk in iterator: + rv = decoder.decode(chunk) + if rv: + yield rv + rv = decoder.decode(b"", final=True) + if rv: + yield rv + + +def iter_slices(string, slice_length): + """Iterate over slices of a string.""" + pos = 0 + if slice_length is None or slice_length <= 0: + slice_length = len(string) + while pos < len(string): + yield string[pos : pos + slice_length] + pos += slice_length + + +def get_unicode_from_response(r): + """Returns the requested content back in unicode. + + :param r: Response object to get unicode content from. + + Tried: + + 1. charset from content-type + 2. fall back and replace all unicode characters + + :rtype: str + """ + warnings.warn( + ( + "In requests 3.0, get_unicode_from_response will be removed. For " + "more information, please see the discussion on issue #2266. (This" + " warning should only appear once.)" + ), + DeprecationWarning, + ) + + tried_encodings = [] + + # Try charset from content-type + encoding = get_encoding_from_headers(r.headers) + + if encoding: + try: + return str(r.content, encoding) + except UnicodeError: + tried_encodings.append(encoding) + + # Fall back: + try: + return str(r.content, encoding, errors="replace") + except TypeError: + return r.content + + +# The unreserved URI characters (RFC 3986) +UNRESERVED_SET = frozenset( + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + "0123456789-._~" +) + + +def unquote_unreserved(uri): + """Un-escape any percent-escape sequences in a URI that are unreserved + characters. This leaves all reserved, illegal and non-ASCII bytes encoded. + + :rtype: str + """ + parts = uri.split("%") + for i in range(1, len(parts)): + h = parts[i][0:2] + if len(h) == 2 and h.isalnum(): + try: + c = chr(int(h, 16)) + except ValueError: + raise InvalidURL(f"Invalid percent-escape sequence: '{h}'") + + if c in UNRESERVED_SET: + parts[i] = c + parts[i][2:] + else: + parts[i] = f"%{parts[i]}" + else: + parts[i] = f"%{parts[i]}" + return "".join(parts) + + +def requote_uri(uri): + """Re-quote the given URI. + + This function passes the given URI through an unquote/quote cycle to + ensure that it is fully and consistently quoted. + + :rtype: str + """ + safe_with_percent = "!#$%&'()*+,/:;=?@[]~" + safe_without_percent = "!#$&'()*+,/:;=?@[]~" + try: + # Unquote only the unreserved characters + # Then quote only illegal characters (do not quote reserved, + # unreserved, or '%') + return quote(unquote_unreserved(uri), safe=safe_with_percent) + except InvalidURL: + # We couldn't unquote the given URI, so let's try quoting it, but + # there may be unquoted '%'s in the URI. We need to make sure they're + # properly quoted so they do not cause issues elsewhere. + return quote(uri, safe=safe_without_percent) + + +def address_in_network(ip, net): + """This function allows you to check if an IP belongs to a network subnet + + Example: returns True if ip = 192.168.1.1 and net = 192.168.1.0/24 + returns False if ip = 192.168.1.1 and net = 192.168.100.0/24 + + :rtype: bool + """ + ipaddr = struct.unpack("=L", socket.inet_aton(ip))[0] + netaddr, bits = net.split("/") + netmask = struct.unpack("=L", socket.inet_aton(dotted_netmask(int(bits))))[0] + network = struct.unpack("=L", socket.inet_aton(netaddr))[0] & netmask + return (ipaddr & netmask) == (network & netmask) + + +def dotted_netmask(mask): + """Converts mask from /xx format to xxx.xxx.xxx.xxx + + Example: if mask is 24 function returns 255.255.255.0 + + :rtype: str + """ + bits = 0xFFFFFFFF ^ (1 << 32 - mask) - 1 + return socket.inet_ntoa(struct.pack(">I", bits)) + + +def is_ipv4_address(string_ip): + """ + :rtype: bool + """ + try: + socket.inet_aton(string_ip) + except OSError: + return False + return True + + +def is_valid_cidr(string_network): + """ + Very simple check of the cidr format in no_proxy variable. + + :rtype: bool + """ + if string_network.count("/") == 1: + try: + mask = int(string_network.split("/")[1]) + except ValueError: + return False + + if mask < 1 or mask > 32: + return False + + try: + socket.inet_aton(string_network.split("/")[0]) + except OSError: + return False + else: + return False + return True + + +@contextlib.contextmanager +def set_environ(env_name, value): + """Set the environment variable 'env_name' to 'value' + + Save previous value, yield, and then restore the previous value stored in + the environment variable 'env_name'. + + If 'value' is None, do nothing""" + value_changed = value is not None + if value_changed: + old_value = os.environ.get(env_name) + os.environ[env_name] = value + try: + yield + finally: + if value_changed: + if old_value is None: + del os.environ[env_name] + else: + os.environ[env_name] = old_value + + +def should_bypass_proxies(url, no_proxy): + """ + Returns whether we should bypass proxies or not. + + :rtype: bool + """ + # Prioritize lowercase environment variables over uppercase + # to keep a consistent behaviour with other http projects (curl, wget). + def get_proxy(key): + return os.environ.get(key) or os.environ.get(key.upper()) + + # First check whether no_proxy is defined. If it is, check that the URL + # we're getting isn't in the no_proxy list. + no_proxy_arg = no_proxy + if no_proxy is None: + no_proxy = get_proxy("no_proxy") + parsed = urlparse(url) + + if parsed.hostname is None: + # URLs don't always have hostnames, e.g. file:/// urls. + return True + + if no_proxy: + # We need to check whether we match here. We need to see if we match + # the end of the hostname, both with and without the port. + no_proxy = (host for host in no_proxy.replace(" ", "").split(",") if host) + + if is_ipv4_address(parsed.hostname): + for proxy_ip in no_proxy: + if is_valid_cidr(proxy_ip): + if address_in_network(parsed.hostname, proxy_ip): + return True + elif parsed.hostname == proxy_ip: + # If no_proxy ip was defined in plain IP notation instead of cidr notation & + # matches the IP of the index + return True + else: + host_with_port = parsed.hostname + if parsed.port: + host_with_port += f":{parsed.port}" + + for host in no_proxy: + if parsed.hostname.endswith(host) or host_with_port.endswith(host): + # The URL does match something in no_proxy, so we don't want + # to apply the proxies on this URL. + return True + + with set_environ("no_proxy", no_proxy_arg): + # parsed.hostname can be `None` in cases such as a file URI. + try: + bypass = proxy_bypass(parsed.hostname) + except (TypeError, socket.gaierror): + bypass = False + + if bypass: + return True + + return False + + +def get_environ_proxies(url, no_proxy=None): + """ + Return a dict of environment proxies. + + :rtype: dict + """ + if should_bypass_proxies(url, no_proxy=no_proxy): + return {} + else: + return getproxies() + + +def select_proxy(url, proxies): + """Select a proxy for the url, if applicable. + + :param url: The url being for the request + :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs + """ + proxies = proxies or {} + urlparts = urlparse(url) + if urlparts.hostname is None: + return proxies.get(urlparts.scheme, proxies.get("all")) + + proxy_keys = [ + urlparts.scheme + "://" + urlparts.hostname, + urlparts.scheme, + "all://" + urlparts.hostname, + "all", + ] + proxy = None + for proxy_key in proxy_keys: + if proxy_key in proxies: + proxy = proxies[proxy_key] + break + + return proxy + + +def resolve_proxies(request, proxies, trust_env=True): + """This method takes proxy information from a request and configuration + input to resolve a mapping of target proxies. This will consider settings + such a NO_PROXY to strip proxy configurations. + + :param request: Request or PreparedRequest + :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs + :param trust_env: Boolean declaring whether to trust environment configs + + :rtype: dict + """ + proxies = proxies if proxies is not None else {} + url = request.url + scheme = urlparse(url).scheme + no_proxy = proxies.get("no_proxy") + new_proxies = proxies.copy() + + if trust_env and not should_bypass_proxies(url, no_proxy=no_proxy): + environ_proxies = get_environ_proxies(url, no_proxy=no_proxy) + + proxy = environ_proxies.get(scheme, environ_proxies.get("all")) + + if proxy: + new_proxies.setdefault(scheme, proxy) + return new_proxies + + +def default_user_agent(name="python-requests"): + """ + Return a string representing the default user agent. + + :rtype: str + """ + return f"{name}/{__version__}" + + +def default_headers(): + """ + :rtype: requests.structures.CaseInsensitiveDict + """ + return CaseInsensitiveDict( + { + "User-Agent": default_user_agent(), + "Accept-Encoding": DEFAULT_ACCEPT_ENCODING, + "Accept": "*/*", + "Connection": "keep-alive", + } + ) + + +def parse_header_links(value): + """Return a list of parsed link headers proxies. + + i.e. Link: ; rel=front; type="image/jpeg",; rel=back;type="image/jpeg" + + :rtype: list + """ + + links = [] + + replace_chars = " '\"" + + value = value.strip(replace_chars) + if not value: + return links + + for val in re.split(", *<", value): + try: + url, params = val.split(";", 1) + except ValueError: + url, params = val, "" + + link = {"url": url.strip("<> '\"")} + + for param in params.split(";"): + try: + key, value = param.split("=") + except ValueError: + break + + link[key.strip(replace_chars)] = value.strip(replace_chars) + + links.append(link) + + return links + + +# Null bytes; no need to recreate these on each call to guess_json_utf +_null = "\x00".encode("ascii") # encoding to ASCII for Python 3 +_null2 = _null * 2 +_null3 = _null * 3 + + +def guess_json_utf(data): + """ + :rtype: str + """ + # JSON always starts with two ASCII characters, so detection is as + # easy as counting the nulls and from their location and count + # determine the encoding. Also detect a BOM, if present. + sample = data[:4] + if sample in (codecs.BOM_UTF32_LE, codecs.BOM_UTF32_BE): + return "utf-32" # BOM included + if sample[:3] == codecs.BOM_UTF8: + return "utf-8-sig" # BOM included, MS style (discouraged) + if sample[:2] in (codecs.BOM_UTF16_LE, codecs.BOM_UTF16_BE): + return "utf-16" # BOM included + nullcount = sample.count(_null) + if nullcount == 0: + return "utf-8" + if nullcount == 2: + if sample[::2] == _null2: # 1st and 3rd are null + return "utf-16-be" + if sample[1::2] == _null2: # 2nd and 4th are null + return "utf-16-le" + # Did not detect 2 valid UTF-16 ascii-range characters + if nullcount == 3: + if sample[:3] == _null3: + return "utf-32-be" + if sample[1:] == _null3: + return "utf-32-le" + # Did not detect a valid UTF-32 ascii-range character + return None + + +def prepend_scheme_if_needed(url, new_scheme): + """Given a URL that may or may not have a scheme, prepend the given scheme. + Does not replace a present scheme with the one provided as an argument. + + :rtype: str + """ + parsed = parse_url(url) + scheme, auth, host, port, path, query, fragment = parsed + + # A defect in urlparse determines that there isn't a netloc present in some + # urls. We previously assumed parsing was overly cautious, and swapped the + # netloc and path. Due to a lack of tests on the original defect, this is + # maintained with parse_url for backwards compatibility. + netloc = parsed.netloc + if not netloc: + netloc, path = path, netloc + + if auth: + # parse_url doesn't provide the netloc with auth + # so we'll add it ourselves. + netloc = "@".join([auth, netloc]) + if scheme is None: + scheme = new_scheme + if path is None: + path = "" + + return urlunparse((scheme, netloc, path, "", query, fragment)) + + +def get_auth_from_url(url): + """Given a url with authentication components, extract them into a tuple of + username,password. + + :rtype: (str,str) + """ + parsed = urlparse(url) + + try: + auth = (unquote(parsed.username), unquote(parsed.password)) + except (AttributeError, TypeError): + auth = ("", "") + + return auth + + +def check_header_validity(header): + """Verifies that header parts don't contain leading whitespace + reserved characters, or return characters. + + :param header: tuple, in the format (name, value). + """ + name, value = header + _validate_header_part(header, name, 0) + _validate_header_part(header, value, 1) + + +def _validate_header_part(header, header_part, header_validator_index): + if isinstance(header_part, str): + validator = _HEADER_VALIDATORS_STR[header_validator_index] + elif isinstance(header_part, bytes): + validator = _HEADER_VALIDATORS_BYTE[header_validator_index] + else: + raise InvalidHeader( + f"Header part ({header_part!r}) from {header} " + f"must be of type str or bytes, not {type(header_part)}" + ) + + if not validator.match(header_part): + header_kind = "name" if header_validator_index == 0 else "value" + raise InvalidHeader( + f"Invalid leading whitespace, reserved character(s), or return" + f"character(s) in header {header_kind}: {header_part!r}" + ) + + +def urldefragauth(url): + """ + Given a url remove the fragment and the authentication part. + + :rtype: str + """ + scheme, netloc, path, params, query, fragment = urlparse(url) + + # see func:`prepend_scheme_if_needed` + if not netloc: + netloc, path = path, netloc + + netloc = netloc.rsplit("@", 1)[-1] + + return urlunparse((scheme, netloc, path, params, query, "")) + + +def rewind_body(prepared_request): + """Move file pointer back to its recorded starting position + so it can be read again on redirect. + """ + body_seek = getattr(prepared_request.body, "seek", None) + if body_seek is not None and isinstance( + prepared_request._body_position, integer_types + ): + try: + body_seek(prepared_request._body_position) + except OSError: + raise UnrewindableBodyError( + "An error occurred when rewinding request body for redirect." + ) + else: + raise UnrewindableBodyError("Unable to rewind request body for redirect.") diff --git a/shared/package-files/ea/eacd37a429aef8104f425748fb5878727d6b6d7536c74e987b34069d1bd60da5/blob b/shared/package-files/ea/eacd37a429aef8104f425748fb5878727d6b6d7536c74e987b34069d1bd60da5/blob new file mode 100644 index 0000000000000000000000000000000000000000..ca03454c6b271aa12dd8c46f352f9e90900159b3 Binary files /dev/null and b/shared/package-files/ea/eacd37a429aef8104f425748fb5878727d6b6d7536c74e987b34069d1bd60da5/blob differ diff --git a/shared/package-files/ea/eacd808e29da0c92a147a6d09ed4f39fe95a6a6770b3a5e6a9d8bf3b9e9b13ae/mass_rounding.py b/shared/package-files/ea/eacd808e29da0c92a147a6d09ed4f39fe95a6a6770b3a5e6a9d8bf3b9e9b13ae/mass_rounding.py new file mode 100644 index 0000000000000000000000000000000000000000..7063b675baa5be69cccfd17eafe393d084e1859a --- /dev/null +++ b/shared/package-files/ea/eacd808e29da0c92a147a6d09ed4f39fe95a6a6770b3a5e6a9d8bf3b9e9b13ae/mass_rounding.py @@ -0,0 +1,15 @@ +"""Cauchy density averaged over the public precursor rounding interval.""" +import numpy as np +def precursor_half_bin(q): + p=float(q['precursor_mz']) + for d in range(2,9): + if abs(p-round(p,d))<=5e-9:return .5*10.**(-d) + return 0. +def component_log_density(error,widths,half_width_ppm): + error=np.asarray(error,dtype=np.float64);widths=np.asarray(widths,dtype=np.float64);h=np.broadcast_to(np.asarray(half_width_ppm,dtype=np.float64),error.shape) + ordinary=-np.log(np.pi*widths)-np.log1p((error[...,None]/widths)**2) + if not np.any(h>0.):return ordinary + # atan2 avoids cancellation when subtracting two nearly identical CDFs. + safe=np.where(h>0.,h,1.);angle=np.arctan2(2.*safe[...,None]*widths,widths**2+error[...,None]**2-safe[...,None]**2) + averaged=np.log(angle)-np.log(2.*np.pi*safe[...,None]) + return np.where((h>0.)[...,None],averaged,ordinary) diff --git a/shared/package-files/ea/eacf8fbafb37692597bed34ddb7b7e7f1673173def916cc0968aa7dc765fb541/blob b/shared/package-files/ea/eacf8fbafb37692597bed34ddb7b7e7f1673173def916cc0968aa7dc765fb541/blob new file mode 100644 index 0000000000000000000000000000000000000000..bb544437c01b683d36ad28aa7c8a96bb76934495 --- /dev/null +++ b/shared/package-files/ea/eacf8fbafb37692597bed34ddb7b7e7f1673173def916cc0968aa7dc765fb541/blob @@ -0,0 +1,44 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::hardsigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & hardsigmoid_out(at::Tensor & out, const at::Tensor & self) { + return at::_ops::hardsigmoid_out::call(self, out); +} +// aten::hardsigmoid.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & hardsigmoid_outf(const at::Tensor & self, at::Tensor & out) { + return at::_ops::hardsigmoid_out::call(self, out); +} + +// aten::hardsigmoid(Tensor self) -> Tensor +inline at::Tensor hardsigmoid(const at::Tensor & self) { + return at::_ops::hardsigmoid::call(self); +} + +// aten::hardsigmoid_(Tensor(a!) self) -> Tensor(a!) +inline at::Tensor & hardsigmoid_(at::Tensor & self) { + return at::_ops::hardsigmoid_::call(self); +} + +} diff --git a/shared/package-files/ea/ead298691a676c14a65e2c17cbbfe6e165bfadb55f9f92d479cd24782dc9ec8c/blob b/shared/package-files/ea/ead298691a676c14a65e2c17cbbfe6e165bfadb55f9f92d479cd24782dc9ec8c/blob new file mode 100644 index 0000000000000000000000000000000000000000..7da4b98fe3c70a1aecae8e0f4264324eaf9e1fb6 Binary files /dev/null and b/shared/package-files/ea/ead298691a676c14a65e2c17cbbfe6e165bfadb55f9f92d479cd24782dc9ec8c/blob differ diff --git a/shared/package-files/ea/ead2fc892fb6feb8de8ecff22f54389cb4aad4ff97100dd300a7597d29c2898f/blob b/shared/package-files/ea/ead2fc892fb6feb8de8ecff22f54389cb4aad4ff97100dd300a7597d29c2898f/blob new file mode 100644 index 0000000000000000000000000000000000000000..25df4730467f389893021fce0eca5519ddc1203a --- /dev/null +++ b/shared/package-files/ea/ead2fc892fb6feb8de8ecff22f54389cb4aad4ff97100dd300a7597d29c2898f/blob @@ -0,0 +1,25 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API void _foreach_sin_out(at::TensorList self, at::TensorList out); +TORCH_API ::std::vector foreach_tensor_sin_slow(at::TensorList self); +TORCH_API void foreach_tensor_sin_slow_(at::TensorList self); +TORCH_API ::std::vector foreach_tensor_sin_cuda(at::TensorList self); +TORCH_API void foreach_tensor_sin_cuda_(at::TensorList self); +} // namespace native +} // namespace at diff --git a/shared/package-files/ea/ead32c14fd61ecaf197fbda634eb5ae93bf9dbf7d54e55e49ec7ae7df8f4f347/blob b/shared/package-files/ea/ead32c14fd61ecaf197fbda634eb5ae93bf9dbf7d54e55e49ec7ae7df8f4f347/blob new file mode 100644 index 0000000000000000000000000000000000000000..2f54bebfdb27d54f436378e4ab6d6c8f2426dd90 --- /dev/null +++ b/shared/package-files/ea/ead32c14fd61ecaf197fbda634eb5ae93bf9dbf7d54e55e49ec7ae7df8f4f347/blob @@ -0,0 +1,619 @@ +"""Tests for chebyshev module. + +""" +from functools import reduce + +import numpy as np +import numpy.polynomial.chebyshev as cheb +from numpy.polynomial.polynomial import polyval +from numpy.testing import ( + assert_almost_equal, assert_raises, assert_equal, assert_, + ) + + +def trim(x): + return cheb.chebtrim(x, tol=1e-6) + +T0 = [1] +T1 = [0, 1] +T2 = [-1, 0, 2] +T3 = [0, -3, 0, 4] +T4 = [1, 0, -8, 0, 8] +T5 = [0, 5, 0, -20, 0, 16] +T6 = [-1, 0, 18, 0, -48, 0, 32] +T7 = [0, -7, 0, 56, 0, -112, 0, 64] +T8 = [1, 0, -32, 0, 160, 0, -256, 0, 128] +T9 = [0, 9, 0, -120, 0, 432, 0, -576, 0, 256] + +Tlist = [T0, T1, T2, T3, T4, T5, T6, T7, T8, T9] + + +class TestPrivate: + + def test__cseries_to_zseries(self): + for i in range(5): + inp = np.array([2] + [1]*i, np.double) + tgt = np.array([.5]*i + [2] + [.5]*i, np.double) + res = cheb._cseries_to_zseries(inp) + assert_equal(res, tgt) + + def test__zseries_to_cseries(self): + for i in range(5): + inp = np.array([.5]*i + [2] + [.5]*i, np.double) + tgt = np.array([2] + [1]*i, np.double) + res = cheb._zseries_to_cseries(inp) + assert_equal(res, tgt) + + +class TestConstants: + + def test_chebdomain(self): + assert_equal(cheb.chebdomain, [-1, 1]) + + def test_chebzero(self): + assert_equal(cheb.chebzero, [0]) + + def test_chebone(self): + assert_equal(cheb.chebone, [1]) + + def test_chebx(self): + assert_equal(cheb.chebx, [0, 1]) + + +class TestArithmetic: + + def test_chebadd(self): + for i in range(5): + for j in range(5): + msg = f"At i={i}, j={j}" + tgt = np.zeros(max(i, j) + 1) + tgt[i] += 1 + tgt[j] += 1 + res = cheb.chebadd([0]*i + [1], [0]*j + [1]) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + def test_chebsub(self): + for i in range(5): + for j in range(5): + msg = f"At i={i}, j={j}" + tgt = np.zeros(max(i, j) + 1) + tgt[i] += 1 + tgt[j] -= 1 + res = cheb.chebsub([0]*i + [1], [0]*j + [1]) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + def test_chebmulx(self): + assert_equal(cheb.chebmulx([0]), [0]) + assert_equal(cheb.chebmulx([1]), [0, 1]) + for i in range(1, 5): + ser = [0]*i + [1] + tgt = [0]*(i - 1) + [.5, 0, .5] + assert_equal(cheb.chebmulx(ser), tgt) + + def test_chebmul(self): + for i in range(5): + for j in range(5): + msg = f"At i={i}, j={j}" + tgt = np.zeros(i + j + 1) + tgt[i + j] += .5 + tgt[abs(i - j)] += .5 + res = cheb.chebmul([0]*i + [1], [0]*j + [1]) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + def test_chebdiv(self): + for i in range(5): + for j in range(5): + msg = f"At i={i}, j={j}" + ci = [0]*i + [1] + cj = [0]*j + [1] + tgt = cheb.chebadd(ci, cj) + quo, rem = cheb.chebdiv(tgt, ci) + res = cheb.chebadd(cheb.chebmul(quo, ci), rem) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + def test_chebpow(self): + for i in range(5): + for j in range(5): + msg = f"At i={i}, j={j}" + c = np.arange(i + 1) + tgt = reduce(cheb.chebmul, [c]*j, np.array([1])) + res = cheb.chebpow(c, j) + assert_equal(trim(res), trim(tgt), err_msg=msg) + + +class TestEvaluation: + # coefficients of 1 + 2*x + 3*x**2 + c1d = np.array([2.5, 2., 1.5]) + c2d = np.einsum('i,j->ij', c1d, c1d) + c3d = np.einsum('i,j,k->ijk', c1d, c1d, c1d) + + # some random values in [-1, 1) + x = np.random.random((3, 5))*2 - 1 + y = polyval(x, [1., 2., 3.]) + + def test_chebval(self): + #check empty input + assert_equal(cheb.chebval([], [1]).size, 0) + + #check normal input) + x = np.linspace(-1, 1) + y = [polyval(x, c) for c in Tlist] + for i in range(10): + msg = f"At i={i}" + tgt = y[i] + res = cheb.chebval(x, [0]*i + [1]) + assert_almost_equal(res, tgt, err_msg=msg) + + #check that shape is preserved + for i in range(3): + dims = [2]*i + x = np.zeros(dims) + assert_equal(cheb.chebval(x, [1]).shape, dims) + assert_equal(cheb.chebval(x, [1, 0]).shape, dims) + assert_equal(cheb.chebval(x, [1, 0, 0]).shape, dims) + + def test_chebval2d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test exceptions + assert_raises(ValueError, cheb.chebval2d, x1, x2[:2], self.c2d) + + #test values + tgt = y1*y2 + res = cheb.chebval2d(x1, x2, self.c2d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = cheb.chebval2d(z, z, self.c2d) + assert_(res.shape == (2, 3)) + + def test_chebval3d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test exceptions + assert_raises(ValueError, cheb.chebval3d, x1, x2, x3[:2], self.c3d) + + #test values + tgt = y1*y2*y3 + res = cheb.chebval3d(x1, x2, x3, self.c3d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = cheb.chebval3d(z, z, z, self.c3d) + assert_(res.shape == (2, 3)) + + def test_chebgrid2d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test values + tgt = np.einsum('i,j->ij', y1, y2) + res = cheb.chebgrid2d(x1, x2, self.c2d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = cheb.chebgrid2d(z, z, self.c2d) + assert_(res.shape == (2, 3)*2) + + def test_chebgrid3d(self): + x1, x2, x3 = self.x + y1, y2, y3 = self.y + + #test values + tgt = np.einsum('i,j,k->ijk', y1, y2, y3) + res = cheb.chebgrid3d(x1, x2, x3, self.c3d) + assert_almost_equal(res, tgt) + + #test shape + z = np.ones((2, 3)) + res = cheb.chebgrid3d(z, z, z, self.c3d) + assert_(res.shape == (2, 3)*3) + + +class TestIntegral: + + def test_chebint(self): + # check exceptions + assert_raises(TypeError, cheb.chebint, [0], .5) + assert_raises(ValueError, cheb.chebint, [0], -1) + assert_raises(ValueError, cheb.chebint, [0], 1, [0, 0]) + assert_raises(ValueError, cheb.chebint, [0], lbnd=[0]) + assert_raises(ValueError, cheb.chebint, [0], scl=[0]) + assert_raises(TypeError, cheb.chebint, [0], axis=.5) + + # test integration of zero polynomial + for i in range(2, 5): + k = [0]*(i - 2) + [1] + res = cheb.chebint([0], m=i, k=k) + assert_almost_equal(res, [0, 1]) + + # check single integration with integration constant + for i in range(5): + scl = i + 1 + pol = [0]*i + [1] + tgt = [i] + [0]*i + [1/scl] + chebpol = cheb.poly2cheb(pol) + chebint = cheb.chebint(chebpol, m=1, k=[i]) + res = cheb.cheb2poly(chebint) + assert_almost_equal(trim(res), trim(tgt)) + + # check single integration with integration constant and lbnd + for i in range(5): + scl = i + 1 + pol = [0]*i + [1] + chebpol = cheb.poly2cheb(pol) + chebint = cheb.chebint(chebpol, m=1, k=[i], lbnd=-1) + assert_almost_equal(cheb.chebval(-1, chebint), i) + + # check single integration with integration constant and scaling + for i in range(5): + scl = i + 1 + pol = [0]*i + [1] + tgt = [i] + [0]*i + [2/scl] + chebpol = cheb.poly2cheb(pol) + chebint = cheb.chebint(chebpol, m=1, k=[i], scl=2) + res = cheb.cheb2poly(chebint) + assert_almost_equal(trim(res), trim(tgt)) + + # check multiple integrations with default k + for i in range(5): + for j in range(2, 5): + pol = [0]*i + [1] + tgt = pol[:] + for k in range(j): + tgt = cheb.chebint(tgt, m=1) + res = cheb.chebint(pol, m=j) + assert_almost_equal(trim(res), trim(tgt)) + + # check multiple integrations with defined k + for i in range(5): + for j in range(2, 5): + pol = [0]*i + [1] + tgt = pol[:] + for k in range(j): + tgt = cheb.chebint(tgt, m=1, k=[k]) + res = cheb.chebint(pol, m=j, k=list(range(j))) + assert_almost_equal(trim(res), trim(tgt)) + + # check multiple integrations with lbnd + for i in range(5): + for j in range(2, 5): + pol = [0]*i + [1] + tgt = pol[:] + for k in range(j): + tgt = cheb.chebint(tgt, m=1, k=[k], lbnd=-1) + res = cheb.chebint(pol, m=j, k=list(range(j)), lbnd=-1) + assert_almost_equal(trim(res), trim(tgt)) + + # check multiple integrations with scaling + for i in range(5): + for j in range(2, 5): + pol = [0]*i + [1] + tgt = pol[:] + for k in range(j): + tgt = cheb.chebint(tgt, m=1, k=[k], scl=2) + res = cheb.chebint(pol, m=j, k=list(range(j)), scl=2) + assert_almost_equal(trim(res), trim(tgt)) + + def test_chebint_axis(self): + # check that axis keyword works + c2d = np.random.random((3, 4)) + + tgt = np.vstack([cheb.chebint(c) for c in c2d.T]).T + res = cheb.chebint(c2d, axis=0) + assert_almost_equal(res, tgt) + + tgt = np.vstack([cheb.chebint(c) for c in c2d]) + res = cheb.chebint(c2d, axis=1) + assert_almost_equal(res, tgt) + + tgt = np.vstack([cheb.chebint(c, k=3) for c in c2d]) + res = cheb.chebint(c2d, k=3, axis=1) + assert_almost_equal(res, tgt) + + +class TestDerivative: + + def test_chebder(self): + # check exceptions + assert_raises(TypeError, cheb.chebder, [0], .5) + assert_raises(ValueError, cheb.chebder, [0], -1) + + # check that zeroth derivative does nothing + for i in range(5): + tgt = [0]*i + [1] + res = cheb.chebder(tgt, m=0) + assert_equal(trim(res), trim(tgt)) + + # check that derivation is the inverse of integration + for i in range(5): + for j in range(2, 5): + tgt = [0]*i + [1] + res = cheb.chebder(cheb.chebint(tgt, m=j), m=j) + assert_almost_equal(trim(res), trim(tgt)) + + # check derivation with scaling + for i in range(5): + for j in range(2, 5): + tgt = [0]*i + [1] + res = cheb.chebder(cheb.chebint(tgt, m=j, scl=2), m=j, scl=.5) + assert_almost_equal(trim(res), trim(tgt)) + + def test_chebder_axis(self): + # check that axis keyword works + c2d = np.random.random((3, 4)) + + tgt = np.vstack([cheb.chebder(c) for c in c2d.T]).T + res = cheb.chebder(c2d, axis=0) + assert_almost_equal(res, tgt) + + tgt = np.vstack([cheb.chebder(c) for c in c2d]) + res = cheb.chebder(c2d, axis=1) + assert_almost_equal(res, tgt) + + +class TestVander: + # some random values in [-1, 1) + x = np.random.random((3, 5))*2 - 1 + + def test_chebvander(self): + # check for 1d x + x = np.arange(3) + v = cheb.chebvander(x, 3) + assert_(v.shape == (3, 4)) + for i in range(4): + coef = [0]*i + [1] + assert_almost_equal(v[..., i], cheb.chebval(x, coef)) + + # check for 2d x + x = np.array([[1, 2], [3, 4], [5, 6]]) + v = cheb.chebvander(x, 3) + assert_(v.shape == (3, 2, 4)) + for i in range(4): + coef = [0]*i + [1] + assert_almost_equal(v[..., i], cheb.chebval(x, coef)) + + def test_chebvander2d(self): + # also tests chebval2d for non-square coefficient array + x1, x2, x3 = self.x + c = np.random.random((2, 3)) + van = cheb.chebvander2d(x1, x2, [1, 2]) + tgt = cheb.chebval2d(x1, x2, c) + res = np.dot(van, c.flat) + assert_almost_equal(res, tgt) + + # check shape + van = cheb.chebvander2d([x1], [x2], [1, 2]) + assert_(van.shape == (1, 5, 6)) + + def test_chebvander3d(self): + # also tests chebval3d for non-square coefficient array + x1, x2, x3 = self.x + c = np.random.random((2, 3, 4)) + van = cheb.chebvander3d(x1, x2, x3, [1, 2, 3]) + tgt = cheb.chebval3d(x1, x2, x3, c) + res = np.dot(van, c.flat) + assert_almost_equal(res, tgt) + + # check shape + van = cheb.chebvander3d([x1], [x2], [x3], [1, 2, 3]) + assert_(van.shape == (1, 5, 24)) + + +class TestFitting: + + def test_chebfit(self): + def f(x): + return x*(x - 1)*(x - 2) + + def f2(x): + return x**4 + x**2 + 1 + + # Test exceptions + assert_raises(ValueError, cheb.chebfit, [1], [1], -1) + assert_raises(TypeError, cheb.chebfit, [[1]], [1], 0) + assert_raises(TypeError, cheb.chebfit, [], [1], 0) + assert_raises(TypeError, cheb.chebfit, [1], [[[1]]], 0) + assert_raises(TypeError, cheb.chebfit, [1, 2], [1], 0) + assert_raises(TypeError, cheb.chebfit, [1], [1, 2], 0) + assert_raises(TypeError, cheb.chebfit, [1], [1], 0, w=[[1]]) + assert_raises(TypeError, cheb.chebfit, [1], [1], 0, w=[1, 1]) + assert_raises(ValueError, cheb.chebfit, [1], [1], [-1,]) + assert_raises(ValueError, cheb.chebfit, [1], [1], [2, -1, 6]) + assert_raises(TypeError, cheb.chebfit, [1], [1], []) + + # Test fit + x = np.linspace(0, 2) + y = f(x) + # + coef3 = cheb.chebfit(x, y, 3) + assert_equal(len(coef3), 4) + assert_almost_equal(cheb.chebval(x, coef3), y) + coef3 = cheb.chebfit(x, y, [0, 1, 2, 3]) + assert_equal(len(coef3), 4) + assert_almost_equal(cheb.chebval(x, coef3), y) + # + coef4 = cheb.chebfit(x, y, 4) + assert_equal(len(coef4), 5) + assert_almost_equal(cheb.chebval(x, coef4), y) + coef4 = cheb.chebfit(x, y, [0, 1, 2, 3, 4]) + assert_equal(len(coef4), 5) + assert_almost_equal(cheb.chebval(x, coef4), y) + # check things still work if deg is not in strict increasing + coef4 = cheb.chebfit(x, y, [2, 3, 4, 1, 0]) + assert_equal(len(coef4), 5) + assert_almost_equal(cheb.chebval(x, coef4), y) + # + coef2d = cheb.chebfit(x, np.array([y, y]).T, 3) + assert_almost_equal(coef2d, np.array([coef3, coef3]).T) + coef2d = cheb.chebfit(x, np.array([y, y]).T, [0, 1, 2, 3]) + assert_almost_equal(coef2d, np.array([coef3, coef3]).T) + # test weighting + w = np.zeros_like(x) + yw = y.copy() + w[1::2] = 1 + y[0::2] = 0 + wcoef3 = cheb.chebfit(x, yw, 3, w=w) + assert_almost_equal(wcoef3, coef3) + wcoef3 = cheb.chebfit(x, yw, [0, 1, 2, 3], w=w) + assert_almost_equal(wcoef3, coef3) + # + wcoef2d = cheb.chebfit(x, np.array([yw, yw]).T, 3, w=w) + assert_almost_equal(wcoef2d, np.array([coef3, coef3]).T) + wcoef2d = cheb.chebfit(x, np.array([yw, yw]).T, [0, 1, 2, 3], w=w) + assert_almost_equal(wcoef2d, np.array([coef3, coef3]).T) + # test scaling with complex values x points whose square + # is zero when summed. + x = [1, 1j, -1, -1j] + assert_almost_equal(cheb.chebfit(x, x, 1), [0, 1]) + assert_almost_equal(cheb.chebfit(x, x, [0, 1]), [0, 1]) + # test fitting only even polynomials + x = np.linspace(-1, 1) + y = f2(x) + coef1 = cheb.chebfit(x, y, 4) + assert_almost_equal(cheb.chebval(x, coef1), y) + coef2 = cheb.chebfit(x, y, [0, 2, 4]) + assert_almost_equal(cheb.chebval(x, coef2), y) + assert_almost_equal(coef1, coef2) + + +class TestInterpolate: + + def f(self, x): + return x * (x - 1) * (x - 2) + + def test_raises(self): + assert_raises(ValueError, cheb.chebinterpolate, self.f, -1) + assert_raises(TypeError, cheb.chebinterpolate, self.f, 10.) + + def test_dimensions(self): + for deg in range(1, 5): + assert_(cheb.chebinterpolate(self.f, deg).shape == (deg + 1,)) + + def test_approximation(self): + + def powx(x, p): + return x**p + + x = np.linspace(-1, 1, 10) + for deg in range(0, 10): + for p in range(0, deg + 1): + c = cheb.chebinterpolate(powx, deg, (p,)) + assert_almost_equal(cheb.chebval(x, c), powx(x, p), decimal=12) + + +class TestCompanion: + + def test_raises(self): + assert_raises(ValueError, cheb.chebcompanion, []) + assert_raises(ValueError, cheb.chebcompanion, [1]) + + def test_dimensions(self): + for i in range(1, 5): + coef = [0]*i + [1] + assert_(cheb.chebcompanion(coef).shape == (i, i)) + + def test_linear_root(self): + assert_(cheb.chebcompanion([1, 2])[0, 0] == -.5) + + +class TestGauss: + + def test_100(self): + x, w = cheb.chebgauss(100) + + # test orthogonality. Note that the results need to be normalized, + # otherwise the huge values that can arise from fast growing + # functions like Laguerre can be very confusing. + v = cheb.chebvander(x, 99) + vv = np.dot(v.T * w, v) + vd = 1/np.sqrt(vv.diagonal()) + vv = vd[:, None] * vv * vd + assert_almost_equal(vv, np.eye(100)) + + # check that the integral of 1 is correct + tgt = np.pi + assert_almost_equal(w.sum(), tgt) + + +class TestMisc: + + def test_chebfromroots(self): + res = cheb.chebfromroots([]) + assert_almost_equal(trim(res), [1]) + for i in range(1, 5): + roots = np.cos(np.linspace(-np.pi, 0, 2*i + 1)[1::2]) + tgt = [0]*i + [1] + res = cheb.chebfromroots(roots)*2**(i-1) + assert_almost_equal(trim(res), trim(tgt)) + + def test_chebroots(self): + assert_almost_equal(cheb.chebroots([1]), []) + assert_almost_equal(cheb.chebroots([1, 2]), [-.5]) + for i in range(2, 5): + tgt = np.linspace(-1, 1, i) + res = cheb.chebroots(cheb.chebfromroots(tgt)) + assert_almost_equal(trim(res), trim(tgt)) + + def test_chebtrim(self): + coef = [2, -1, 1, 0] + + # Test exceptions + assert_raises(ValueError, cheb.chebtrim, coef, -1) + + # Test results + assert_equal(cheb.chebtrim(coef), coef[:-1]) + assert_equal(cheb.chebtrim(coef, 1), coef[:-3]) + assert_equal(cheb.chebtrim(coef, 2), [0]) + + def test_chebline(self): + assert_equal(cheb.chebline(3, 4), [3, 4]) + + def test_cheb2poly(self): + for i in range(10): + assert_almost_equal(cheb.cheb2poly([0]*i + [1]), Tlist[i]) + + def test_poly2cheb(self): + for i in range(10): + assert_almost_equal(cheb.poly2cheb(Tlist[i]), [0]*i + [1]) + + def test_weight(self): + x = np.linspace(-1, 1, 11)[1:-1] + tgt = 1./(np.sqrt(1 + x) * np.sqrt(1 - x)) + res = cheb.chebweight(x) + assert_almost_equal(res, tgt) + + def test_chebpts1(self): + #test exceptions + assert_raises(ValueError, cheb.chebpts1, 1.5) + assert_raises(ValueError, cheb.chebpts1, 0) + + #test points + tgt = [0] + assert_almost_equal(cheb.chebpts1(1), tgt) + tgt = [-0.70710678118654746, 0.70710678118654746] + assert_almost_equal(cheb.chebpts1(2), tgt) + tgt = [-0.86602540378443871, 0, 0.86602540378443871] + assert_almost_equal(cheb.chebpts1(3), tgt) + tgt = [-0.9238795325, -0.3826834323, 0.3826834323, 0.9238795325] + assert_almost_equal(cheb.chebpts1(4), tgt) + + def test_chebpts2(self): + #test exceptions + assert_raises(ValueError, cheb.chebpts2, 1.5) + assert_raises(ValueError, cheb.chebpts2, 1) + + #test points + tgt = [-1, 1] + assert_almost_equal(cheb.chebpts2(2), tgt) + tgt = [-1, 0, 1] + assert_almost_equal(cheb.chebpts2(3), tgt) + tgt = [-1, -0.5, .5, 1] + assert_almost_equal(cheb.chebpts2(4), tgt) + tgt = [-1.0, -0.707106781187, 0, 0.707106781187, 1.0] + assert_almost_equal(cheb.chebpts2(5), tgt) diff --git a/shared/package-files/ea/ead3b5d952060a818a377ba4d5294f74f5e7e6f41a389f6d1026b7a15c960bc7/blob b/shared/package-files/ea/ead3b5d952060a818a377ba4d5294f74f5e7e6f41a389f6d1026b7a15c960bc7/blob new file mode 100644 index 0000000000000000000000000000000000000000..6042e5b9cc6793018ccf26f37aec236dfa353393 --- /dev/null +++ b/shared/package-files/ea/ead3b5d952060a818a377ba4d5294f74f5e7e6f41a389f6d1026b7a15c960bc7/blob @@ -0,0 +1,432 @@ +""" +Tests for the Index constructor conducting inference. +""" +from datetime import ( + datetime, + timedelta, + timezone, +) +from decimal import Decimal + +import numpy as np +import pytest + +from pandas._libs.tslibs.timezones import maybe_get_tz + +from pandas import ( + NA, + Categorical, + CategoricalIndex, + DatetimeIndex, + Index, + IntervalIndex, + MultiIndex, + NaT, + PeriodIndex, + Series, + TimedeltaIndex, + Timestamp, + array, + date_range, + period_range, + timedelta_range, +) +import pandas._testing as tm + + +class TestIndexConstructorInference: + def test_object_all_bools(self): + # GH#49594 match Series behavior on ndarray[object] of all bools + arr = np.array([True, False], dtype=object) + res = Index(arr) + assert res.dtype == object + + # since the point is matching Series behavior, let's double check + assert Series(arr).dtype == object + + def test_object_all_complex(self): + # GH#49594 match Series behavior on ndarray[object] of all complex + arr = np.array([complex(1), complex(2)], dtype=object) + res = Index(arr) + assert res.dtype == object + + # since the point is matching Series behavior, let's double check + assert Series(arr).dtype == object + + @pytest.mark.parametrize("val", [NaT, None, np.nan, float("nan")]) + def test_infer_nat(self, val): + # GH#49340 all NaT/None/nan and at least 1 NaT -> datetime64[ns], + # matching Series behavior + values = [NaT, val] + + idx = Index(values) + assert idx.dtype == "datetime64[ns]" and idx.isna().all() + + idx = Index(values[::-1]) + assert idx.dtype == "datetime64[ns]" and idx.isna().all() + + idx = Index(np.array(values, dtype=object)) + assert idx.dtype == "datetime64[ns]" and idx.isna().all() + + idx = Index(np.array(values, dtype=object)[::-1]) + assert idx.dtype == "datetime64[ns]" and idx.isna().all() + + @pytest.mark.parametrize("na_value", [None, np.nan]) + @pytest.mark.parametrize("vtype", [list, tuple, iter]) + def test_construction_list_tuples_nan(self, na_value, vtype): + # GH#18505 : valid tuples containing NaN + values = [(1, "two"), (3.0, na_value)] + result = Index(vtype(values)) + expected = MultiIndex.from_tuples(values) + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize( + "dtype", + [int, "int64", "int32", "int16", "int8", "uint64", "uint32", "uint16", "uint8"], + ) + def test_constructor_int_dtype_float(self, dtype): + # GH#18400 + expected = Index([0, 1, 2, 3], dtype=dtype) + result = Index([0.0, 1.0, 2.0, 3.0], dtype=dtype) + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize("cast_index", [True, False]) + @pytest.mark.parametrize( + "vals", [[True, False, True], np.array([True, False, True], dtype=bool)] + ) + def test_constructor_dtypes_to_object(self, cast_index, vals): + if cast_index: + index = Index(vals, dtype=bool) + else: + index = Index(vals) + + assert type(index) is Index + assert index.dtype == bool + + def test_constructor_categorical_to_object(self): + # GH#32167 Categorical data and dtype=object should return object-dtype + ci = CategoricalIndex(range(5)) + result = Index(ci, dtype=object) + assert not isinstance(result, CategoricalIndex) + + def test_constructor_infer_periodindex(self): + xp = period_range("2012-1-1", freq="M", periods=3) + rs = Index(xp) + tm.assert_index_equal(rs, xp) + assert isinstance(rs, PeriodIndex) + + def test_from_list_of_periods(self): + rng = period_range("1/1/2000", periods=20, freq="D") + periods = list(rng) + + result = Index(periods) + assert isinstance(result, PeriodIndex) + + @pytest.mark.parametrize("pos", [0, 1]) + @pytest.mark.parametrize( + "klass,dtype,ctor", + [ + (DatetimeIndex, "datetime64[ns]", np.datetime64("nat")), + (TimedeltaIndex, "timedelta64[ns]", np.timedelta64("nat")), + ], + ) + def test_constructor_infer_nat_dt_like( + self, pos, klass, dtype, ctor, nulls_fixture, request + ): + if isinstance(nulls_fixture, Decimal): + # We dont cast these to datetime64/timedelta64 + pytest.skip( + f"We don't cast {type(nulls_fixture).__name__} to " + "datetime64/timedelta64" + ) + + expected = klass([NaT, NaT]) + assert expected.dtype == dtype + data = [ctor] + data.insert(pos, nulls_fixture) + + warn = None + if nulls_fixture is NA: + expected = Index([NA, NaT]) + mark = pytest.mark.xfail(reason="Broken with np.NaT ctor; see GH 31884") + request.applymarker(mark) + # GH#35942 numpy will emit a DeprecationWarning within the + # assert_index_equal calls. Since we can't do anything + # about it until GH#31884 is fixed, we suppress that warning. + warn = DeprecationWarning + + result = Index(data) + + with tm.assert_produces_warning(warn): + tm.assert_index_equal(result, expected) + + result = Index(np.array(data, dtype=object)) + + with tm.assert_produces_warning(warn): + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize("swap_objs", [True, False]) + def test_constructor_mixed_nat_objs_infers_object(self, swap_objs): + # mixed np.datetime64/timedelta64 nat results in object + data = [np.datetime64("nat"), np.timedelta64("nat")] + if swap_objs: + data = data[::-1] + + expected = Index(data, dtype=object) + tm.assert_index_equal(Index(data), expected) + tm.assert_index_equal(Index(np.array(data, dtype=object)), expected) + + @pytest.mark.parametrize("swap_objs", [True, False]) + def test_constructor_datetime_and_datetime64(self, swap_objs): + data = [Timestamp(2021, 6, 8, 9, 42), np.datetime64("now")] + if swap_objs: + data = data[::-1] + expected = DatetimeIndex(data) + + tm.assert_index_equal(Index(data), expected) + tm.assert_index_equal(Index(np.array(data, dtype=object)), expected) + + def test_constructor_datetimes_mixed_tzs(self): + # https://github.com/pandas-dev/pandas/pull/55793/files#r1383719998 + tz = maybe_get_tz("US/Central") + dt1 = datetime(2020, 1, 1, tzinfo=tz) + dt2 = datetime(2020, 1, 1, tzinfo=timezone.utc) + result = Index([dt1, dt2]) + expected = Index([dt1, dt2], dtype=object) + tm.assert_index_equal(result, expected) + + +class TestDtypeEnforced: + # check we don't silently ignore the dtype keyword + + def test_constructor_object_dtype_with_ea_data(self, any_numeric_ea_dtype): + # GH#45206 + arr = array([0], dtype=any_numeric_ea_dtype) + + idx = Index(arr, dtype=object) + assert idx.dtype == object + + @pytest.mark.parametrize("dtype", [object, "float64", "uint64", "category"]) + def test_constructor_range_values_mismatched_dtype(self, dtype): + rng = Index(range(5)) + + result = Index(rng, dtype=dtype) + assert result.dtype == dtype + + result = Index(range(5), dtype=dtype) + assert result.dtype == dtype + + @pytest.mark.parametrize("dtype", [object, "float64", "uint64", "category"]) + def test_constructor_categorical_values_mismatched_non_ea_dtype(self, dtype): + cat = Categorical([1, 2, 3]) + + result = Index(cat, dtype=dtype) + assert result.dtype == dtype + + def test_constructor_categorical_values_mismatched_dtype(self): + dti = date_range("2016-01-01", periods=3) + cat = Categorical(dti) + result = Index(cat, dti.dtype) + tm.assert_index_equal(result, dti) + + dti2 = dti.tz_localize("Asia/Tokyo") + cat2 = Categorical(dti2) + result = Index(cat2, dti2.dtype) + tm.assert_index_equal(result, dti2) + + ii = IntervalIndex.from_breaks(range(5)) + cat3 = Categorical(ii) + result = Index(cat3, dtype=ii.dtype) + tm.assert_index_equal(result, ii) + + def test_constructor_ea_values_mismatched_categorical_dtype(self): + dti = date_range("2016-01-01", periods=3) + result = Index(dti, dtype="category") + expected = CategoricalIndex(dti) + tm.assert_index_equal(result, expected) + + dti2 = date_range("2016-01-01", periods=3, tz="US/Pacific") + result = Index(dti2, dtype="category") + expected = CategoricalIndex(dti2) + tm.assert_index_equal(result, expected) + + def test_constructor_period_values_mismatched_dtype(self): + pi = period_range("2016-01-01", periods=3, freq="D") + result = Index(pi, dtype="category") + expected = CategoricalIndex(pi) + tm.assert_index_equal(result, expected) + + def test_constructor_timedelta64_values_mismatched_dtype(self): + # check we don't silently ignore the dtype keyword + tdi = timedelta_range("4 Days", periods=5) + result = Index(tdi, dtype="category") + expected = CategoricalIndex(tdi) + tm.assert_index_equal(result, expected) + + def test_constructor_interval_values_mismatched_dtype(self): + dti = date_range("2016-01-01", periods=3) + ii = IntervalIndex.from_breaks(dti) + result = Index(ii, dtype="category") + expected = CategoricalIndex(ii) + tm.assert_index_equal(result, expected) + + def test_constructor_datetime64_values_mismatched_period_dtype(self): + dti = date_range("2016-01-01", periods=3) + result = Index(dti, dtype="Period[D]") + expected = dti.to_period("D") + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize("dtype", ["int64", "uint64"]) + def test_constructor_int_dtype_nan_raises(self, dtype): + # see GH#15187 + data = [np.nan] + msg = "cannot convert" + with pytest.raises(ValueError, match=msg): + Index(data, dtype=dtype) + + @pytest.mark.parametrize( + "vals", + [ + [1, 2, 3], + np.array([1, 2, 3]), + np.array([1, 2, 3], dtype=int), + # below should coerce + [1.0, 2.0, 3.0], + np.array([1.0, 2.0, 3.0], dtype=float), + ], + ) + def test_constructor_dtypes_to_int(self, vals, any_int_numpy_dtype): + dtype = any_int_numpy_dtype + index = Index(vals, dtype=dtype) + assert index.dtype == dtype + + @pytest.mark.parametrize( + "vals", + [ + [1, 2, 3], + [1.0, 2.0, 3.0], + np.array([1.0, 2.0, 3.0]), + np.array([1, 2, 3], dtype=int), + np.array([1.0, 2.0, 3.0], dtype=float), + ], + ) + def test_constructor_dtypes_to_float(self, vals, float_numpy_dtype): + dtype = float_numpy_dtype + index = Index(vals, dtype=dtype) + assert index.dtype == dtype + + @pytest.mark.parametrize( + "vals", + [ + [1, 2, 3], + np.array([1, 2, 3], dtype=int), + np.array(["2011-01-01", "2011-01-02"], dtype="datetime64[ns]"), + [datetime(2011, 1, 1), datetime(2011, 1, 2)], + ], + ) + def test_constructor_dtypes_to_categorical(self, vals): + index = Index(vals, dtype="category") + assert isinstance(index, CategoricalIndex) + + @pytest.mark.parametrize("cast_index", [True, False]) + @pytest.mark.parametrize( + "vals", + [ + Index(np.array([np.datetime64("2011-01-01"), np.datetime64("2011-01-02")])), + Index([datetime(2011, 1, 1), datetime(2011, 1, 2)]), + ], + ) + def test_constructor_dtypes_to_datetime(self, cast_index, vals): + if cast_index: + index = Index(vals, dtype=object) + assert isinstance(index, Index) + assert index.dtype == object + else: + index = Index(vals) + assert isinstance(index, DatetimeIndex) + + @pytest.mark.parametrize("cast_index", [True, False]) + @pytest.mark.parametrize( + "vals", + [ + np.array([np.timedelta64(1, "D"), np.timedelta64(1, "D")]), + [timedelta(1), timedelta(1)], + ], + ) + def test_constructor_dtypes_to_timedelta(self, cast_index, vals): + if cast_index: + index = Index(vals, dtype=object) + assert isinstance(index, Index) + assert index.dtype == object + else: + index = Index(vals) + assert isinstance(index, TimedeltaIndex) + + def test_pass_timedeltaindex_to_index(self): + rng = timedelta_range("1 days", "10 days") + idx = Index(rng, dtype=object) + + expected = Index(rng.to_pytimedelta(), dtype=object) + + tm.assert_numpy_array_equal(idx.values, expected.values) + + def test_pass_datetimeindex_to_index(self): + # GH#1396 + rng = date_range("1/1/2000", "3/1/2000") + idx = Index(rng, dtype=object) + + expected = Index(rng.to_pydatetime(), dtype=object) + + tm.assert_numpy_array_equal(idx.values, expected.values) + + +class TestIndexConstructorUnwrapping: + # Test passing different arraylike values to pd.Index + + @pytest.mark.parametrize("klass", [Index, DatetimeIndex]) + def test_constructor_from_series_dt64(self, klass): + stamps = [Timestamp("20110101"), Timestamp("20120101"), Timestamp("20130101")] + expected = DatetimeIndex(stamps) + ser = Series(stamps) + result = klass(ser) + tm.assert_index_equal(result, expected) + + def test_constructor_no_pandas_array(self): + ser = Series([1, 2, 3]) + result = Index(ser.array) + expected = Index([1, 2, 3]) + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize( + "array", + [ + np.arange(5), + np.array(["a", "b", "c"]), + date_range("2000-01-01", periods=3).values, + ], + ) + def test_constructor_ndarray_like(self, array): + # GH#5460#issuecomment-44474502 + # it should be possible to convert any object that satisfies the numpy + # ndarray interface directly into an Index + class ArrayLike: + def __init__(self, array) -> None: + self.array = array + + def __array__(self, dtype=None, copy=None) -> np.ndarray: + return self.array + + expected = Index(array) + result = Index(ArrayLike(array)) + tm.assert_index_equal(result, expected) + + +class TestIndexConstructionErrors: + def test_constructor_overflow_int64(self): + # see GH#15832 + msg = ( + "The elements provided in the data cannot " + "all be casted to the dtype int64" + ) + with pytest.raises(OverflowError, match=msg): + Index([np.iinfo(np.uint64).max - 1], dtype="int64") diff --git a/shared/package-files/ea/ead5c8355129980fa561149b2fa0ab06ed9e8cd16677d58e3451a083e2455d91/blob b/shared/package-files/ea/ead5c8355129980fa561149b2fa0ab06ed9e8cd16677d58e3451a083e2455d91/blob new file mode 100644 index 0000000000000000000000000000000000000000..54e328098d17b57445024c9859cd4992492c348a --- /dev/null +++ b/shared/package-files/ea/ead5c8355129980fa561149b2fa0ab06ed9e8cd16677d58e3451a083e2455d91/blob @@ -0,0 +1,19 @@ +#ifdef _MSC_VER + #include +#endif +#include + +int main(int argc, char **argv) +{ + float16_t *src = (float16_t*)argv[argc-1]; + float *src2 = (float*)argv[argc-2]; + float16x8_t vhp = vdupq_n_f16(src[0]); + float16x4_t vlhp = vdup_n_f16(src[1]); + float32x4_t vf = vdupq_n_f32(src2[0]); + float32x2_t vlf = vdup_n_f32(src2[1]); + + int ret = (int)vget_lane_f32(vfmlal_low_f16(vlf, vlhp, vlhp), 0); + ret += (int)vgetq_lane_f32(vfmlslq_high_f16(vf, vhp, vhp), 0); + + return ret; +} diff --git a/shared/package-files/ea/ead842ca06b7efbb1c0ce5aff0dd287410b4e9271e4a57d73c13e5c62bd0f710/blob b/shared/package-files/ea/ead842ca06b7efbb1c0ce5aff0dd287410b4e9271e4a57d73c13e5c62bd0f710/blob new file mode 100644 index 0000000000000000000000000000000000000000..077bd7d061070400d568c95e944863b7e1ba144c --- /dev/null +++ b/shared/package-files/ea/ead842ca06b7efbb1c0ce5aff0dd287410b4e9271e4a57d73c13e5c62bd0f710/blob @@ -0,0 +1,15 @@ +### SETUP ### +d <- read.table("./cpunish.csv",sep=",", header=T) +attach(d) +LN_VC100k96 = log(VC100k96) +### MODEL ### +m1 <- glm(EXECUTIONS ~ INCOME + PERPOVERTY + PERBLACK + LN_VC100k96 + SOUTH + DEGREE, + family=poisson) +results <- summary.glm(m1) +results +results['coefficients'] + +# Model with exposure +m2 <- glm(EXECUTIONS ~ INCOME + PERPOVERTY + PERBLACK + LN_VC100k96 + SOUTH + DEGREE, + family=poisson, offset=rep(log(100), length(EXECUTIONS))) +results2 <- summary.glm(m2) diff --git a/shared/package-files/ea/eadaee289e209b9ad15203c7b7d8eef13a0420b762fc60bf4c2dd12ace7b1543/blob b/shared/package-files/ea/eadaee289e209b9ad15203c7b7d8eef13a0420b762fc60bf4c2dd12ace7b1543/blob new file mode 100644 index 0000000000000000000000000000000000000000..3905aeaecde2c86dc3c466ae43c707c29bdc2779 --- /dev/null +++ b/shared/package-files/ea/eadaee289e209b9ad15203c7b7d8eef13a0420b762fc60bf4c2dd12ace7b1543/blob @@ -0,0 +1,13 @@ +"""TSI{B,C,D,J,P,S,V} are private tables used by Microsoft Visual TrueType (VTT) +tool to store its table source data. + +TSID contains the source text for the ``GDEF`` table. + +See also https://learn.microsoft.com/en-us/typography/tools/vtt/tsi-tables +""" + +from .T_S_I_V_ import table_T_S_I_V_ + + +class table_T_S_I_D_(table_T_S_I_V_): + pass diff --git a/shared/package-files/ea/eadc2fdb5a9ce379b63798fdccfc0b396661ec1783c0237c5d376dc7f3e1e4a6/blob b/shared/package-files/ea/eadc2fdb5a9ce379b63798fdccfc0b396661ec1783c0237c5d376dc7f3e1e4a6/blob new file mode 100644 index 0000000000000000000000000000000000000000..599d89972ef085b5d7399dc55f89592d5d52a8af --- /dev/null +++ b/shared/package-files/ea/eadc2fdb5a9ce379b63798fdccfc0b396661ec1783c0237c5d376dc7f3e1e4a6/blob @@ -0,0 +1,120 @@ +"""Functions for computing rich-club coefficients.""" + +from itertools import accumulate + +import networkx as nx +from networkx.utils import not_implemented_for + +__all__ = ["rich_club_coefficient"] + + +@not_implemented_for("directed") +@not_implemented_for("multigraph") +def rich_club_coefficient(G, normalized=True, Q=100, seed=None): + r"""Returns the rich-club coefficient of the graph `G`. + + For each degree *k*, the *rich-club coefficient* is the ratio of the + number of actual to the number of potential edges for nodes with + degree greater than *k*: + + .. math:: + + \phi(k) = \frac{2 E_k}{N_k (N_k - 1)} + + where `N_k` is the number of nodes with degree larger than *k*, and + `E_k` is the number of edges among those nodes. + + Parameters + ---------- + G : NetworkX graph + Undirected graph with neither parallel edges nor self-loops. + normalized : bool (optional) + Normalize using randomized network as in [1]_ + Q : float (optional, default=100) + If `normalized` is True, perform `Q * m` double-edge + swaps, where `m` is the number of edges in `G`, to use as a + null-model for normalization. + seed : integer, random_state, or None (default) + Indicator of random number generation state. + See :ref:`Randomness`. + + Returns + ------- + rc : dictionary + A dictionary, keyed by degree, with rich-club coefficient values. + + Examples + -------- + >>> G = nx.Graph([(0, 1), (0, 2), (1, 2), (1, 3), (1, 4), (4, 5)]) + >>> rc = nx.rich_club_coefficient(G, normalized=False, seed=42) + >>> rc[0] + 0.4 + + Notes + ----- + The rich club definition and algorithm are found in [1]_. This + algorithm ignores any edge weights and is not defined for directed + graphs or graphs with parallel edges or self loops. + + Estimates for appropriate values of `Q` are found in [2]_. + + References + ---------- + .. [1] Julian J. McAuley, Luciano da Fontoura Costa, + and Tibério S. Caetano, + "The rich-club phenomenon across complex network hierarchies", + Applied Physics Letters Vol 91 Issue 8, August 2007. + https://arxiv.org/abs/physics/0701290 + .. [2] R. Milo, N. Kashtan, S. Itzkovitz, M. E. J. Newman, U. Alon, + "Uniform generation of random graphs with arbitrary degree + sequences", 2006. https://arxiv.org/abs/cond-mat/0312028 + """ + if nx.number_of_selfloops(G) > 0: + raise Exception( + "rich_club_coefficient is not implemented for " "graphs with self loops." + ) + rc = _compute_rc(G) + if normalized: + # make R a copy of G, randomize with Q*|E| double edge swaps + # and use rich_club coefficient of R to normalize + R = G.copy() + E = R.number_of_edges() + nx.double_edge_swap(R, Q * E, max_tries=Q * E * 10, seed=seed) + rcran = _compute_rc(R) + rc = {k: v / rcran[k] for k, v in rc.items()} + return rc + + +def _compute_rc(G): + """Returns the rich-club coefficient for each degree in the graph + `G`. + + `G` is an undirected graph without multiedges. + + Returns a dictionary mapping degree to rich-club coefficient for + that degree. + + """ + deghist = nx.degree_histogram(G) + total = sum(deghist) + # Compute the number of nodes with degree greater than `k`, for each + # degree `k` (omitting the last entry, which is zero). + nks = (total - cs for cs in accumulate(deghist) if total - cs > 1) + # Create a sorted list of pairs of edge endpoint degrees. + # + # The list is sorted in reverse order so that we can pop from the + # right side of the list later, instead of popping from the left + # side of the list, which would have a linear time cost. + edge_degrees = sorted((sorted(map(G.degree, e)) for e in G.edges()), reverse=True) + ek = G.number_of_edges() + k1, k2 = edge_degrees.pop() + rc = {} + for d, nk in enumerate(nks): + while k1 <= d: + if len(edge_degrees) == 0: + ek = 0 + break + k1, k2 = edge_degrees.pop() + ek -= 1 + rc[d] = 2 * ek / (nk * (nk - 1)) + return rc diff --git a/shared/package-files/ea/eade70adfc100b485e6dd7dcc1bf8bc3a5d5f720b6384de139e49addd7005821/blob b/shared/package-files/ea/eade70adfc100b485e6dd7dcc1bf8bc3a5d5f720b6384de139e49addd7005821/blob new file mode 100644 index 0000000000000000000000000000000000000000..675d333f23d5f1fb7d213119eecea4f3dbc8859e --- /dev/null +++ b/shared/package-files/ea/eade70adfc100b485e6dd7dcc1bf8bc3a5d5f720b6384de139e49addd7005821/blob @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor slow_conv3d_forward(const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding); +TORCH_API at::Tensor slow_conv3d_forward_symint(const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding); +TORCH_API at::Tensor & slow_conv3d_forward_out(at::Tensor & output, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding); +TORCH_API at::Tensor & slow_conv3d_forward_outf(const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::Tensor & output); +TORCH_API at::Tensor & slow_conv3d_forward_symint_out(at::Tensor & output, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding); +TORCH_API at::Tensor & slow_conv3d_forward_symint_outf(const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, at::Tensor & output); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/ea/eaded38b427841bdf280e878f1e26da506e743eaa9429075332af60cce429473/blob b/shared/package-files/ea/eaded38b427841bdf280e878f1e26da506e743eaa9429075332af60cce429473/blob new file mode 100644 index 0000000000000000000000000000000000000000..a1221c3ef1ce52c3e45c556e148f2484b5c5f761 --- /dev/null +++ b/shared/package-files/ea/eaded38b427841bdf280e878f1e26da506e743eaa9429075332af60cce429473/blob @@ -0,0 +1,307 @@ +""" Python Character Mapping Codec cp1006 generated from 'MAPPINGS/VENDORS/MISC/CP1006.TXT' with gencodec.py. + +"""#" + +import codecs + +### Codec APIs + +class Codec(codecs.Codec): + + def encode(self,input,errors='strict'): + return codecs.charmap_encode(input,errors,encoding_table) + + def decode(self,input,errors='strict'): + return codecs.charmap_decode(input,errors,decoding_table) + +class IncrementalEncoder(codecs.IncrementalEncoder): + def encode(self, input, final=False): + return codecs.charmap_encode(input,self.errors,encoding_table)[0] + +class IncrementalDecoder(codecs.IncrementalDecoder): + def decode(self, input, final=False): + return codecs.charmap_decode(input,self.errors,decoding_table)[0] + +class StreamWriter(Codec,codecs.StreamWriter): + pass + +class StreamReader(Codec,codecs.StreamReader): + pass + +### encodings module API + +def getregentry(): + return codecs.CodecInfo( + name='cp1006', + encode=Codec().encode, + decode=Codec().decode, + incrementalencoder=IncrementalEncoder, + incrementaldecoder=IncrementalDecoder, + streamreader=StreamReader, + streamwriter=StreamWriter, + ) + + +### Decoding Table + +decoding_table = ( + '\x00' # 0x00 -> NULL + '\x01' # 0x01 -> START OF HEADING + '\x02' # 0x02 -> START OF TEXT + '\x03' # 0x03 -> END OF TEXT + '\x04' # 0x04 -> END OF TRANSMISSION + '\x05' # 0x05 -> ENQUIRY + '\x06' # 0x06 -> ACKNOWLEDGE + '\x07' # 0x07 -> BELL + '\x08' # 0x08 -> BACKSPACE + '\t' # 0x09 -> HORIZONTAL TABULATION + '\n' # 0x0A -> LINE FEED + '\x0b' # 0x0B -> VERTICAL TABULATION + '\x0c' # 0x0C -> FORM FEED + '\r' # 0x0D -> CARRIAGE RETURN + '\x0e' # 0x0E -> SHIFT OUT + '\x0f' # 0x0F -> SHIFT IN + '\x10' # 0x10 -> DATA LINK ESCAPE + '\x11' # 0x11 -> DEVICE CONTROL ONE + '\x12' # 0x12 -> DEVICE CONTROL TWO + '\x13' # 0x13 -> DEVICE CONTROL THREE + '\x14' # 0x14 -> DEVICE CONTROL FOUR + '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE + '\x16' # 0x16 -> SYNCHRONOUS IDLE + '\x17' # 0x17 -> END OF TRANSMISSION BLOCK + '\x18' # 0x18 -> CANCEL + '\x19' # 0x19 -> END OF MEDIUM + '\x1a' # 0x1A -> SUBSTITUTE + '\x1b' # 0x1B -> ESCAPE + '\x1c' # 0x1C -> FILE SEPARATOR + '\x1d' # 0x1D -> GROUP SEPARATOR + '\x1e' # 0x1E -> RECORD SEPARATOR + '\x1f' # 0x1F -> UNIT SEPARATOR + ' ' # 0x20 -> SPACE + '!' # 0x21 -> EXCLAMATION MARK + '"' # 0x22 -> QUOTATION MARK + '#' # 0x23 -> NUMBER SIGN + '$' # 0x24 -> DOLLAR SIGN + '%' # 0x25 -> PERCENT SIGN + '&' # 0x26 -> AMPERSAND + "'" # 0x27 -> APOSTROPHE + '(' # 0x28 -> LEFT PARENTHESIS + ')' # 0x29 -> RIGHT PARENTHESIS + '*' # 0x2A -> ASTERISK + '+' # 0x2B -> PLUS SIGN + ',' # 0x2C -> COMMA + '-' # 0x2D -> HYPHEN-MINUS + '.' # 0x2E -> FULL STOP + '/' # 0x2F -> SOLIDUS + '0' # 0x30 -> DIGIT ZERO + '1' # 0x31 -> DIGIT ONE + '2' # 0x32 -> DIGIT TWO + '3' # 0x33 -> DIGIT THREE + '4' # 0x34 -> DIGIT FOUR + '5' # 0x35 -> DIGIT FIVE + '6' # 0x36 -> DIGIT SIX + '7' # 0x37 -> DIGIT SEVEN + '8' # 0x38 -> DIGIT EIGHT + '9' # 0x39 -> DIGIT NINE + ':' # 0x3A -> COLON + ';' # 0x3B -> SEMICOLON + '<' # 0x3C -> LESS-THAN SIGN + '=' # 0x3D -> EQUALS SIGN + '>' # 0x3E -> GREATER-THAN SIGN + '?' # 0x3F -> QUESTION MARK + '@' # 0x40 -> COMMERCIAL AT + 'A' # 0x41 -> LATIN CAPITAL LETTER A + 'B' # 0x42 -> LATIN CAPITAL LETTER B + 'C' # 0x43 -> LATIN CAPITAL LETTER C + 'D' # 0x44 -> LATIN CAPITAL LETTER D + 'E' # 0x45 -> LATIN CAPITAL LETTER E + 'F' # 0x46 -> LATIN CAPITAL LETTER F + 'G' # 0x47 -> LATIN CAPITAL LETTER G + 'H' # 0x48 -> LATIN CAPITAL LETTER H + 'I' # 0x49 -> LATIN CAPITAL LETTER I + 'J' # 0x4A -> LATIN CAPITAL LETTER J + 'K' # 0x4B -> LATIN CAPITAL LETTER K + 'L' # 0x4C -> LATIN CAPITAL LETTER L + 'M' # 0x4D -> LATIN CAPITAL LETTER M + 'N' # 0x4E -> LATIN CAPITAL LETTER N + 'O' # 0x4F -> LATIN CAPITAL LETTER O + 'P' # 0x50 -> LATIN CAPITAL LETTER P + 'Q' # 0x51 -> LATIN CAPITAL LETTER Q + 'R' # 0x52 -> LATIN CAPITAL LETTER R + 'S' # 0x53 -> LATIN CAPITAL LETTER S + 'T' # 0x54 -> LATIN CAPITAL LETTER T + 'U' # 0x55 -> LATIN CAPITAL LETTER U + 'V' # 0x56 -> LATIN CAPITAL LETTER V + 'W' # 0x57 -> LATIN CAPITAL LETTER W + 'X' # 0x58 -> LATIN CAPITAL LETTER X + 'Y' # 0x59 -> LATIN CAPITAL LETTER Y + 'Z' # 0x5A -> LATIN CAPITAL LETTER Z + '[' # 0x5B -> LEFT SQUARE BRACKET + '\\' # 0x5C -> REVERSE SOLIDUS + ']' # 0x5D -> RIGHT SQUARE BRACKET + '^' # 0x5E -> CIRCUMFLEX ACCENT + '_' # 0x5F -> LOW LINE + '`' # 0x60 -> GRAVE ACCENT + 'a' # 0x61 -> LATIN SMALL LETTER A + 'b' # 0x62 -> LATIN SMALL LETTER B + 'c' # 0x63 -> LATIN SMALL LETTER C + 'd' # 0x64 -> LATIN SMALL LETTER D + 'e' # 0x65 -> LATIN SMALL LETTER E + 'f' # 0x66 -> LATIN SMALL LETTER F + 'g' # 0x67 -> LATIN SMALL LETTER G + 'h' # 0x68 -> LATIN SMALL LETTER H + 'i' # 0x69 -> LATIN SMALL LETTER I + 'j' # 0x6A -> LATIN SMALL LETTER J + 'k' # 0x6B -> LATIN SMALL LETTER K + 'l' # 0x6C -> LATIN SMALL LETTER L + 'm' # 0x6D -> LATIN SMALL LETTER M + 'n' # 0x6E -> LATIN SMALL LETTER N + 'o' # 0x6F -> LATIN SMALL LETTER O + 'p' # 0x70 -> LATIN SMALL LETTER P + 'q' # 0x71 -> LATIN SMALL LETTER Q + 'r' # 0x72 -> LATIN SMALL LETTER R + 's' # 0x73 -> LATIN SMALL LETTER S + 't' # 0x74 -> LATIN SMALL LETTER T + 'u' # 0x75 -> LATIN SMALL LETTER U + 'v' # 0x76 -> LATIN SMALL LETTER V + 'w' # 0x77 -> LATIN SMALL LETTER W + 'x' # 0x78 -> LATIN SMALL LETTER X + 'y' # 0x79 -> LATIN SMALL LETTER Y + 'z' # 0x7A -> LATIN SMALL LETTER Z + '{' # 0x7B -> LEFT CURLY BRACKET + '|' # 0x7C -> VERTICAL LINE + '}' # 0x7D -> RIGHT CURLY BRACKET + '~' # 0x7E -> TILDE + '\x7f' # 0x7F -> DELETE + '\x80' # 0x80 -> + '\x81' # 0x81 -> + '\x82' # 0x82 -> + '\x83' # 0x83 -> + '\x84' # 0x84 -> + '\x85' # 0x85 -> + '\x86' # 0x86 -> + '\x87' # 0x87 -> + '\x88' # 0x88 -> + '\x89' # 0x89 -> + '\x8a' # 0x8A -> + '\x8b' # 0x8B -> + '\x8c' # 0x8C -> + '\x8d' # 0x8D -> + '\x8e' # 0x8E -> + '\x8f' # 0x8F -> + '\x90' # 0x90 -> + '\x91' # 0x91 -> + '\x92' # 0x92 -> + '\x93' # 0x93 -> + '\x94' # 0x94 -> + '\x95' # 0x95 -> + '\x96' # 0x96 -> + '\x97' # 0x97 -> + '\x98' # 0x98 -> + '\x99' # 0x99 -> + '\x9a' # 0x9A -> + '\x9b' # 0x9B -> + '\x9c' # 0x9C -> + '\x9d' # 0x9D -> + '\x9e' # 0x9E -> + '\x9f' # 0x9F -> + '\xa0' # 0xA0 -> NO-BREAK SPACE + '\u06f0' # 0xA1 -> EXTENDED ARABIC-INDIC DIGIT ZERO + '\u06f1' # 0xA2 -> EXTENDED ARABIC-INDIC DIGIT ONE + '\u06f2' # 0xA3 -> EXTENDED ARABIC-INDIC DIGIT TWO + '\u06f3' # 0xA4 -> EXTENDED ARABIC-INDIC DIGIT THREE + '\u06f4' # 0xA5 -> EXTENDED ARABIC-INDIC DIGIT FOUR + '\u06f5' # 0xA6 -> EXTENDED ARABIC-INDIC DIGIT FIVE + '\u06f6' # 0xA7 -> EXTENDED ARABIC-INDIC DIGIT SIX + '\u06f7' # 0xA8 -> EXTENDED ARABIC-INDIC DIGIT SEVEN + '\u06f8' # 0xA9 -> EXTENDED ARABIC-INDIC DIGIT EIGHT + '\u06f9' # 0xAA -> EXTENDED ARABIC-INDIC DIGIT NINE + '\u060c' # 0xAB -> ARABIC COMMA + '\u061b' # 0xAC -> ARABIC SEMICOLON + '\xad' # 0xAD -> SOFT HYPHEN + '\u061f' # 0xAE -> ARABIC QUESTION MARK + '\ufe81' # 0xAF -> ARABIC LETTER ALEF WITH MADDA ABOVE ISOLATED FORM + '\ufe8d' # 0xB0 -> ARABIC LETTER ALEF ISOLATED FORM + '\ufe8e' # 0xB1 -> ARABIC LETTER ALEF FINAL FORM + '\ufe8e' # 0xB2 -> ARABIC LETTER ALEF FINAL FORM + '\ufe8f' # 0xB3 -> ARABIC LETTER BEH ISOLATED FORM + '\ufe91' # 0xB4 -> ARABIC LETTER BEH INITIAL FORM + '\ufb56' # 0xB5 -> ARABIC LETTER PEH ISOLATED FORM + '\ufb58' # 0xB6 -> ARABIC LETTER PEH INITIAL FORM + '\ufe93' # 0xB7 -> ARABIC LETTER TEH MARBUTA ISOLATED FORM + '\ufe95' # 0xB8 -> ARABIC LETTER TEH ISOLATED FORM + '\ufe97' # 0xB9 -> ARABIC LETTER TEH INITIAL FORM + '\ufb66' # 0xBA -> ARABIC LETTER TTEH ISOLATED FORM + '\ufb68' # 0xBB -> ARABIC LETTER TTEH INITIAL FORM + '\ufe99' # 0xBC -> ARABIC LETTER THEH ISOLATED FORM + '\ufe9b' # 0xBD -> ARABIC LETTER THEH INITIAL FORM + '\ufe9d' # 0xBE -> ARABIC LETTER JEEM ISOLATED FORM + '\ufe9f' # 0xBF -> ARABIC LETTER JEEM INITIAL FORM + '\ufb7a' # 0xC0 -> ARABIC LETTER TCHEH ISOLATED FORM + '\ufb7c' # 0xC1 -> ARABIC LETTER TCHEH INITIAL FORM + '\ufea1' # 0xC2 -> ARABIC LETTER HAH ISOLATED FORM + '\ufea3' # 0xC3 -> ARABIC LETTER HAH INITIAL FORM + '\ufea5' # 0xC4 -> ARABIC LETTER KHAH ISOLATED FORM + '\ufea7' # 0xC5 -> ARABIC LETTER KHAH INITIAL FORM + '\ufea9' # 0xC6 -> ARABIC LETTER DAL ISOLATED FORM + '\ufb84' # 0xC7 -> ARABIC LETTER DAHAL ISOLATED FORMN + '\ufeab' # 0xC8 -> ARABIC LETTER THAL ISOLATED FORM + '\ufead' # 0xC9 -> ARABIC LETTER REH ISOLATED FORM + '\ufb8c' # 0xCA -> ARABIC LETTER RREH ISOLATED FORM + '\ufeaf' # 0xCB -> ARABIC LETTER ZAIN ISOLATED FORM + '\ufb8a' # 0xCC -> ARABIC LETTER JEH ISOLATED FORM + '\ufeb1' # 0xCD -> ARABIC LETTER SEEN ISOLATED FORM + '\ufeb3' # 0xCE -> ARABIC LETTER SEEN INITIAL FORM + '\ufeb5' # 0xCF -> ARABIC LETTER SHEEN ISOLATED FORM + '\ufeb7' # 0xD0 -> ARABIC LETTER SHEEN INITIAL FORM + '\ufeb9' # 0xD1 -> ARABIC LETTER SAD ISOLATED FORM + '\ufebb' # 0xD2 -> ARABIC LETTER SAD INITIAL FORM + '\ufebd' # 0xD3 -> ARABIC LETTER DAD ISOLATED FORM + '\ufebf' # 0xD4 -> ARABIC LETTER DAD INITIAL FORM + '\ufec1' # 0xD5 -> ARABIC LETTER TAH ISOLATED FORM + '\ufec5' # 0xD6 -> ARABIC LETTER ZAH ISOLATED FORM + '\ufec9' # 0xD7 -> ARABIC LETTER AIN ISOLATED FORM + '\ufeca' # 0xD8 -> ARABIC LETTER AIN FINAL FORM + '\ufecb' # 0xD9 -> ARABIC LETTER AIN INITIAL FORM + '\ufecc' # 0xDA -> ARABIC LETTER AIN MEDIAL FORM + '\ufecd' # 0xDB -> ARABIC LETTER GHAIN ISOLATED FORM + '\ufece' # 0xDC -> ARABIC LETTER GHAIN FINAL FORM + '\ufecf' # 0xDD -> ARABIC LETTER GHAIN INITIAL FORM + '\ufed0' # 0xDE -> ARABIC LETTER GHAIN MEDIAL FORM + '\ufed1' # 0xDF -> ARABIC LETTER FEH ISOLATED FORM + '\ufed3' # 0xE0 -> ARABIC LETTER FEH INITIAL FORM + '\ufed5' # 0xE1 -> ARABIC LETTER QAF ISOLATED FORM + '\ufed7' # 0xE2 -> ARABIC LETTER QAF INITIAL FORM + '\ufed9' # 0xE3 -> ARABIC LETTER KAF ISOLATED FORM + '\ufedb' # 0xE4 -> ARABIC LETTER KAF INITIAL FORM + '\ufb92' # 0xE5 -> ARABIC LETTER GAF ISOLATED FORM + '\ufb94' # 0xE6 -> ARABIC LETTER GAF INITIAL FORM + '\ufedd' # 0xE7 -> ARABIC LETTER LAM ISOLATED FORM + '\ufedf' # 0xE8 -> ARABIC LETTER LAM INITIAL FORM + '\ufee0' # 0xE9 -> ARABIC LETTER LAM MEDIAL FORM + '\ufee1' # 0xEA -> ARABIC LETTER MEEM ISOLATED FORM + '\ufee3' # 0xEB -> ARABIC LETTER MEEM INITIAL FORM + '\ufb9e' # 0xEC -> ARABIC LETTER NOON GHUNNA ISOLATED FORM + '\ufee5' # 0xED -> ARABIC LETTER NOON ISOLATED FORM + '\ufee7' # 0xEE -> ARABIC LETTER NOON INITIAL FORM + '\ufe85' # 0xEF -> ARABIC LETTER WAW WITH HAMZA ABOVE ISOLATED FORM + '\ufeed' # 0xF0 -> ARABIC LETTER WAW ISOLATED FORM + '\ufba6' # 0xF1 -> ARABIC LETTER HEH GOAL ISOLATED FORM + '\ufba8' # 0xF2 -> ARABIC LETTER HEH GOAL INITIAL FORM + '\ufba9' # 0xF3 -> ARABIC LETTER HEH GOAL MEDIAL FORM + '\ufbaa' # 0xF4 -> ARABIC LETTER HEH DOACHASHMEE ISOLATED FORM + '\ufe80' # 0xF5 -> ARABIC LETTER HAMZA ISOLATED FORM + '\ufe89' # 0xF6 -> ARABIC LETTER YEH WITH HAMZA ABOVE ISOLATED FORM + '\ufe8a' # 0xF7 -> ARABIC LETTER YEH WITH HAMZA ABOVE FINAL FORM + '\ufe8b' # 0xF8 -> ARABIC LETTER YEH WITH HAMZA ABOVE INITIAL FORM + '\ufef1' # 0xF9 -> ARABIC LETTER YEH ISOLATED FORM + '\ufef2' # 0xFA -> ARABIC LETTER YEH FINAL FORM + '\ufef3' # 0xFB -> ARABIC LETTER YEH INITIAL FORM + '\ufbb0' # 0xFC -> ARABIC LETTER YEH BARREE WITH HAMZA ABOVE ISOLATED FORM + '\ufbae' # 0xFD -> ARABIC LETTER YEH BARREE ISOLATED FORM + '\ufe7c' # 0xFE -> ARABIC SHADDA ISOLATED FORM + '\ufe7d' # 0xFF -> ARABIC SHADDA MEDIAL FORM +) + +### Encoding table +encoding_table=codecs.charmap_build(decoding_table) diff --git a/shared/package-files/ea/eadf603eed3dcd6457a0c34850259d16f52a5ae4a666c2da8ec344c0ba122351/blob b/shared/package-files/ea/eadf603eed3dcd6457a0c34850259d16f52a5ae4a666c2da8ec344c0ba122351/blob new file mode 100644 index 0000000000000000000000000000000000000000..b0ecaf055f5ee3270df9f44e12ebe4d43ce70162 --- /dev/null +++ b/shared/package-files/ea/eadf603eed3dcd6457a0c34850259d16f52a5ae4a666c2da8ec344c0ba122351/blob @@ -0,0 +1,55 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +namespace torch { +namespace jit { + +inline void noop(Stack& n) {} + +int64_t normalizeIndex(int64_t idx, int64_t list_size); + +// reference function THPVariable_to in python_variable_methods.cpp +static C10_UNUSED at::Tensor to_dispatch( + at::Tensor self, + c10::optional device, + c10::optional scalarType, + bool non_blocking, + bool copy) { + if (device && device->is_cuda()) { + at::globalContext().lazyInitCUDA(); + } + if (!device && !scalarType && !copy) { + return self; + } else if (!device) { + return self.to(*scalarType, non_blocking, copy); + } else if (!scalarType) { + return self.to(*device, non_blocking, copy); + } else { + return self.to(*device, *scalarType, non_blocking, copy); + } +} + +// Convert the tensor pointed to by \p data to a nested list. \p dim is the +// number of dimensions in the tensor and \p cur_dim is the dimension being +// processed by the current invocation. \p ty is the expected output IR type of +// the operation. \p is the scalar type of \p data. \p sizes and \p strides are +// the sizes and strides of the tensor operand and \p element_size is the size +// in bytes of one tensor element. +IValue tensorToListRecursive( + char* data, + int64_t cur_dim, + int64_t num_tensor_dims, + at::TypePtr ty, + at::ScalarType scalar_ty, + at::IntArrayRef sizes, + at::IntArrayRef strides, + size_t element_size); + +} // namespace jit +} // namespace torch diff --git a/shared/package-files/ea/eae2750d7c4962cb4349c91c8057adcc02834309060a3ad0f2e2f2e62cfbbe75/blob b/shared/package-files/ea/eae2750d7c4962cb4349c91c8057adcc02834309060a3ad0f2e2f2e62cfbbe75/blob new file mode 100644 index 0000000000000000000000000000000000000000..643fce830bac60cf919012d82b10aba4f30662d1 --- /dev/null +++ b/shared/package-files/ea/eae2750d7c4962cb4349c91c8057adcc02834309060a3ad0f2e2f2e62cfbbe75/blob @@ -0,0 +1,1007 @@ +# The Python Imaging Library. +# $Id$ + +# Optional color management support, based on Kevin Cazabon's PyCMS +# library. + +# History: + +# 2009-03-08 fl Added to PIL. + +# Copyright (C) 2002-2003 Kevin Cazabon +# Copyright (c) 2009 by Fredrik Lundh +# Copyright (c) 2013 by Eric Soroos + +# See the README file for information on usage and redistribution. See +# below for the original description. +from __future__ import annotations + +import sys +from enum import IntEnum + +from . import Image + +try: + from . import _imagingcms +except ImportError as ex: + # Allow error import for doc purposes, but error out when accessing + # anything in core. + from ._util import DeferredError + + _imagingcms = DeferredError.new(ex) + +DESCRIPTION = """ +pyCMS + + a Python / PIL interface to the littleCMS ICC Color Management System + Copyright (C) 2002-2003 Kevin Cazabon + kevin@cazabon.com + https://www.cazabon.com + + pyCMS home page: https://www.cazabon.com/pyCMS + littleCMS home page: https://www.littlecms.com + (littleCMS is Copyright (C) 1998-2001 Marti Maria) + + Originally released under LGPL. Graciously donated to PIL in + March 2009, for distribution under the standard PIL license + + The pyCMS.py module provides a "clean" interface between Python/PIL and + pyCMSdll, taking care of some of the more complex handling of the direct + pyCMSdll functions, as well as error-checking and making sure that all + relevant data is kept together. + + While it is possible to call pyCMSdll functions directly, it's not highly + recommended. + + Version History: + + 1.0.0 pil Oct 2013 Port to LCMS 2. + + 0.1.0 pil mod March 10, 2009 + + Renamed display profile to proof profile. The proof + profile is the profile of the device that is being + simulated, not the profile of the device which is + actually used to display/print the final simulation + (that'd be the output profile) - also see LCMSAPI.txt + input colorspace -> using 'renderingIntent' -> proof + colorspace -> using 'proofRenderingIntent' -> output + colorspace + + Added LCMS FLAGS support. + Added FLAGS["SOFTPROOFING"] as default flag for + buildProofTransform (otherwise the proof profile/intent + would be ignored). + + 0.1.0 pil March 2009 - added to PIL, as PIL.ImageCms + + 0.0.2 alpha Jan 6, 2002 + + Added try/except statements around type() checks of + potential CObjects... Python won't let you use type() + on them, and raises a TypeError (stupid, if you ask + me!) + + Added buildProofTransformFromOpenProfiles() function. + Additional fixes in DLL, see DLL code for details. + + 0.0.1 alpha first public release, Dec. 26, 2002 + + Known to-do list with current version (of Python interface, not pyCMSdll): + + none + +""" + +VERSION = "1.0.0 pil" + +# --------------------------------------------------------------------. + +core = _imagingcms + +# +# intent/direction values + + +class Intent(IntEnum): + PERCEPTUAL = 0 + RELATIVE_COLORIMETRIC = 1 + SATURATION = 2 + ABSOLUTE_COLORIMETRIC = 3 + + +class Direction(IntEnum): + INPUT = 0 + OUTPUT = 1 + PROOF = 2 + + +# +# flags + +FLAGS = { + "MATRIXINPUT": 1, + "MATRIXOUTPUT": 2, + "MATRIXONLY": (1 | 2), + "NOWHITEONWHITEFIXUP": 4, # Don't hot fix scum dot + # Don't create prelinearization tables on precalculated transforms + # (internal use): + "NOPRELINEARIZATION": 16, + "GUESSDEVICECLASS": 32, # Guess device class (for transform2devicelink) + "NOTCACHE": 64, # Inhibit 1-pixel cache + "NOTPRECALC": 256, + "NULLTRANSFORM": 512, # Don't transform anyway + "HIGHRESPRECALC": 1024, # Use more memory to give better accuracy + "LOWRESPRECALC": 2048, # Use less memory to minimize resources + "WHITEBLACKCOMPENSATION": 8192, + "BLACKPOINTCOMPENSATION": 8192, + "GAMUTCHECK": 4096, # Out of Gamut alarm + "SOFTPROOFING": 16384, # Do softproofing + "PRESERVEBLACK": 32768, # Black preservation + "NODEFAULTRESOURCEDEF": 16777216, # CRD special + "GRIDPOINTS": lambda n: (n & 0xFF) << 16, # Gridpoints +} + +_MAX_FLAG = 0 +for flag in FLAGS.values(): + if isinstance(flag, int): + _MAX_FLAG = _MAX_FLAG | flag + + +# --------------------------------------------------------------------. +# Experimental PIL-level API +# --------------------------------------------------------------------. + +## +# Profile. + + +class ImageCmsProfile: + def __init__(self, profile): + """ + :param profile: Either a string representing a filename, + a file like object containing a profile or a + low-level profile object + + """ + + if isinstance(profile, str): + if sys.platform == "win32": + profile_bytes_path = profile.encode() + try: + profile_bytes_path.decode("ascii") + except UnicodeDecodeError: + with open(profile, "rb") as f: + self._set(core.profile_frombytes(f.read())) + return + self._set(core.profile_open(profile), profile) + elif hasattr(profile, "read"): + self._set(core.profile_frombytes(profile.read())) + elif isinstance(profile, _imagingcms.CmsProfile): + self._set(profile) + else: + msg = "Invalid type for Profile" + raise TypeError(msg) + + def _set(self, profile, filename=None): + self.profile = profile + self.filename = filename + self.product_name = None # profile.product_name + self.product_info = None # profile.product_info + + def tobytes(self): + """ + Returns the profile in a format suitable for embedding in + saved images. + + :returns: a bytes object containing the ICC profile. + """ + + return core.profile_tobytes(self.profile) + + +class ImageCmsTransform(Image.ImagePointHandler): + + """ + Transform. This can be used with the procedural API, or with the standard + :py:func:`~PIL.Image.Image.point` method. + + Will return the output profile in the ``output.info['icc_profile']``. + """ + + def __init__( + self, + input, + output, + input_mode, + output_mode, + intent=Intent.PERCEPTUAL, + proof=None, + proof_intent=Intent.ABSOLUTE_COLORIMETRIC, + flags=0, + ): + if proof is None: + self.transform = core.buildTransform( + input.profile, output.profile, input_mode, output_mode, intent, flags + ) + else: + self.transform = core.buildProofTransform( + input.profile, + output.profile, + proof.profile, + input_mode, + output_mode, + intent, + proof_intent, + flags, + ) + # Note: inputMode and outputMode are for pyCMS compatibility only + self.input_mode = self.inputMode = input_mode + self.output_mode = self.outputMode = output_mode + + self.output_profile = output + + def point(self, im): + return self.apply(im) + + def apply(self, im, imOut=None): + im.load() + if imOut is None: + imOut = Image.new(self.output_mode, im.size, None) + self.transform.apply(im.im.id, imOut.im.id) + imOut.info["icc_profile"] = self.output_profile.tobytes() + return imOut + + def apply_in_place(self, im): + im.load() + if im.mode != self.output_mode: + msg = "mode mismatch" + raise ValueError(msg) # wrong output mode + self.transform.apply(im.im.id, im.im.id) + im.info["icc_profile"] = self.output_profile.tobytes() + return im + + +def get_display_profile(handle=None): + """ + (experimental) Fetches the profile for the current display device. + + :returns: ``None`` if the profile is not known. + """ + + if sys.platform != "win32": + return None + + from . import ImageWin + + if isinstance(handle, ImageWin.HDC): + profile = core.get_display_profile_win32(handle, 1) + else: + profile = core.get_display_profile_win32(handle or 0) + if profile is None: + return None + return ImageCmsProfile(profile) + + +# --------------------------------------------------------------------. +# pyCMS compatible layer +# --------------------------------------------------------------------. + + +class PyCMSError(Exception): + + """(pyCMS) Exception class. + This is used for all errors in the pyCMS API.""" + + pass + + +def profileToProfile( + im, + inputProfile, + outputProfile, + renderingIntent=Intent.PERCEPTUAL, + outputMode=None, + inPlace=False, + flags=0, +): + """ + (pyCMS) Applies an ICC transformation to a given image, mapping from + ``inputProfile`` to ``outputProfile``. + + If the input or output profiles specified are not valid filenames, a + :exc:`PyCMSError` will be raised. If ``inPlace`` is ``True`` and + ``outputMode != im.mode``, a :exc:`PyCMSError` will be raised. + If an error occurs during application of the profiles, + a :exc:`PyCMSError` will be raised. + If ``outputMode`` is not a mode supported by the ``outputProfile`` (or by pyCMS), + a :exc:`PyCMSError` will be raised. + + This function applies an ICC transformation to im from ``inputProfile``'s + color space to ``outputProfile``'s color space using the specified rendering + intent to decide how to handle out-of-gamut colors. + + ``outputMode`` can be used to specify that a color mode conversion is to + be done using these profiles, but the specified profiles must be able + to handle that mode. I.e., if converting im from RGB to CMYK using + profiles, the input profile must handle RGB data, and the output + profile must handle CMYK data. + + :param im: An open :py:class:`~PIL.Image.Image` object (i.e. Image.new(...) + or Image.open(...), etc.) + :param inputProfile: String, as a valid filename path to the ICC input + profile you wish to use for this image, or a profile object + :param outputProfile: String, as a valid filename path to the ICC output + profile you wish to use for this image, or a profile object + :param renderingIntent: Integer (0-3) specifying the rendering intent you + wish to use for the transform + + ImageCms.Intent.PERCEPTUAL = 0 (DEFAULT) + ImageCms.Intent.RELATIVE_COLORIMETRIC = 1 + ImageCms.Intent.SATURATION = 2 + ImageCms.Intent.ABSOLUTE_COLORIMETRIC = 3 + + see the pyCMS documentation for details on rendering intents and what + they do. + :param outputMode: A valid PIL mode for the output image (i.e. "RGB", + "CMYK", etc.). Note: if rendering the image "inPlace", outputMode + MUST be the same mode as the input, or omitted completely. If + omitted, the outputMode will be the same as the mode of the input + image (im.mode) + :param inPlace: Boolean. If ``True``, the original image is modified in-place, + and ``None`` is returned. If ``False`` (default), a new + :py:class:`~PIL.Image.Image` object is returned with the transform applied. + :param flags: Integer (0-...) specifying additional flags + :returns: Either None or a new :py:class:`~PIL.Image.Image` object, depending on + the value of ``inPlace`` + :exception PyCMSError: + """ + + if outputMode is None: + outputMode = im.mode + + if not isinstance(renderingIntent, int) or not (0 <= renderingIntent <= 3): + msg = "renderingIntent must be an integer between 0 and 3" + raise PyCMSError(msg) + + if not isinstance(flags, int) or not (0 <= flags <= _MAX_FLAG): + msg = f"flags must be an integer between 0 and {_MAX_FLAG}" + raise PyCMSError(msg) + + try: + if not isinstance(inputProfile, ImageCmsProfile): + inputProfile = ImageCmsProfile(inputProfile) + if not isinstance(outputProfile, ImageCmsProfile): + outputProfile = ImageCmsProfile(outputProfile) + transform = ImageCmsTransform( + inputProfile, + outputProfile, + im.mode, + outputMode, + renderingIntent, + flags=flags, + ) + if inPlace: + transform.apply_in_place(im) + imOut = None + else: + imOut = transform.apply(im) + except (OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + return imOut + + +def getOpenProfile(profileFilename): + """ + (pyCMS) Opens an ICC profile file. + + The PyCMSProfile object can be passed back into pyCMS for use in creating + transforms and such (as in ImageCms.buildTransformFromOpenProfiles()). + + If ``profileFilename`` is not a valid filename for an ICC profile, + a :exc:`PyCMSError` will be raised. + + :param profileFilename: String, as a valid filename path to the ICC profile + you wish to open, or a file-like object. + :returns: A CmsProfile class object. + :exception PyCMSError: + """ + + try: + return ImageCmsProfile(profileFilename) + except (OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def buildTransform( + inputProfile, + outputProfile, + inMode, + outMode, + renderingIntent=Intent.PERCEPTUAL, + flags=0, +): + """ + (pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the + ``outputProfile``. Use applyTransform to apply the transform to a given + image. + + If the input or output profiles specified are not valid filenames, a + :exc:`PyCMSError` will be raised. If an error occurs during creation + of the transform, a :exc:`PyCMSError` will be raised. + + If ``inMode`` or ``outMode`` are not a mode supported by the ``outputProfile`` + (or by pyCMS), a :exc:`PyCMSError` will be raised. + + This function builds and returns an ICC transform from the ``inputProfile`` + to the ``outputProfile`` using the ``renderingIntent`` to determine what to do + with out-of-gamut colors. It will ONLY work for converting images that + are in ``inMode`` to images that are in ``outMode`` color format (PIL mode, + i.e. "RGB", "RGBA", "CMYK", etc.). + + Building the transform is a fair part of the overhead in + ImageCms.profileToProfile(), so if you're planning on converting multiple + images using the same input/output settings, this can save you time. + Once you have a transform object, it can be used with + ImageCms.applyProfile() to convert images without the need to re-compute + the lookup table for the transform. + + The reason pyCMS returns a class object rather than a handle directly + to the transform is that it needs to keep track of the PIL input/output + modes that the transform is meant for. These attributes are stored in + the ``inMode`` and ``outMode`` attributes of the object (which can be + manually overridden if you really want to, but I don't know of any + time that would be of use, or would even work). + + :param inputProfile: String, as a valid filename path to the ICC input + profile you wish to use for this transform, or a profile object + :param outputProfile: String, as a valid filename path to the ICC output + profile you wish to use for this transform, or a profile object + :param inMode: String, as a valid PIL mode that the appropriate profile + also supports (i.e. "RGB", "RGBA", "CMYK", etc.) + :param outMode: String, as a valid PIL mode that the appropriate profile + also supports (i.e. "RGB", "RGBA", "CMYK", etc.) + :param renderingIntent: Integer (0-3) specifying the rendering intent you + wish to use for the transform + + ImageCms.Intent.PERCEPTUAL = 0 (DEFAULT) + ImageCms.Intent.RELATIVE_COLORIMETRIC = 1 + ImageCms.Intent.SATURATION = 2 + ImageCms.Intent.ABSOLUTE_COLORIMETRIC = 3 + + see the pyCMS documentation for details on rendering intents and what + they do. + :param flags: Integer (0-...) specifying additional flags + :returns: A CmsTransform class object. + :exception PyCMSError: + """ + + if not isinstance(renderingIntent, int) or not (0 <= renderingIntent <= 3): + msg = "renderingIntent must be an integer between 0 and 3" + raise PyCMSError(msg) + + if not isinstance(flags, int) or not (0 <= flags <= _MAX_FLAG): + msg = "flags must be an integer between 0 and %s" + _MAX_FLAG + raise PyCMSError(msg) + + try: + if not isinstance(inputProfile, ImageCmsProfile): + inputProfile = ImageCmsProfile(inputProfile) + if not isinstance(outputProfile, ImageCmsProfile): + outputProfile = ImageCmsProfile(outputProfile) + return ImageCmsTransform( + inputProfile, outputProfile, inMode, outMode, renderingIntent, flags=flags + ) + except (OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def buildProofTransform( + inputProfile, + outputProfile, + proofProfile, + inMode, + outMode, + renderingIntent=Intent.PERCEPTUAL, + proofRenderingIntent=Intent.ABSOLUTE_COLORIMETRIC, + flags=FLAGS["SOFTPROOFING"], +): + """ + (pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the + ``outputProfile``, but tries to simulate the result that would be + obtained on the ``proofProfile`` device. + + If the input, output, or proof profiles specified are not valid + filenames, a :exc:`PyCMSError` will be raised. + + If an error occurs during creation of the transform, + a :exc:`PyCMSError` will be raised. + + If ``inMode`` or ``outMode`` are not a mode supported by the ``outputProfile`` + (or by pyCMS), a :exc:`PyCMSError` will be raised. + + This function builds and returns an ICC transform from the ``inputProfile`` + to the ``outputProfile``, but tries to simulate the result that would be + obtained on the ``proofProfile`` device using ``renderingIntent`` and + ``proofRenderingIntent`` to determine what to do with out-of-gamut + colors. This is known as "soft-proofing". It will ONLY work for + converting images that are in ``inMode`` to images that are in outMode + color format (PIL mode, i.e. "RGB", "RGBA", "CMYK", etc.). + + Usage of the resulting transform object is exactly the same as with + ImageCms.buildTransform(). + + Proof profiling is generally used when using an output device to get a + good idea of what the final printed/displayed image would look like on + the ``proofProfile`` device when it's quicker and easier to use the + output device for judging color. Generally, this means that the + output device is a monitor, or a dye-sub printer (etc.), and the simulated + device is something more expensive, complicated, or time consuming + (making it difficult to make a real print for color judgement purposes). + + Soft-proofing basically functions by adjusting the colors on the + output device to match the colors of the device being simulated. However, + when the simulated device has a much wider gamut than the output + device, you may obtain marginal results. + + :param inputProfile: String, as a valid filename path to the ICC input + profile you wish to use for this transform, or a profile object + :param outputProfile: String, as a valid filename path to the ICC output + (monitor, usually) profile you wish to use for this transform, or a + profile object + :param proofProfile: String, as a valid filename path to the ICC proof + profile you wish to use for this transform, or a profile object + :param inMode: String, as a valid PIL mode that the appropriate profile + also supports (i.e. "RGB", "RGBA", "CMYK", etc.) + :param outMode: String, as a valid PIL mode that the appropriate profile + also supports (i.e. "RGB", "RGBA", "CMYK", etc.) + :param renderingIntent: Integer (0-3) specifying the rendering intent you + wish to use for the input->proof (simulated) transform + + ImageCms.Intent.PERCEPTUAL = 0 (DEFAULT) + ImageCms.Intent.RELATIVE_COLORIMETRIC = 1 + ImageCms.Intent.SATURATION = 2 + ImageCms.Intent.ABSOLUTE_COLORIMETRIC = 3 + + see the pyCMS documentation for details on rendering intents and what + they do. + :param proofRenderingIntent: Integer (0-3) specifying the rendering intent + you wish to use for proof->output transform + + ImageCms.Intent.PERCEPTUAL = 0 (DEFAULT) + ImageCms.Intent.RELATIVE_COLORIMETRIC = 1 + ImageCms.Intent.SATURATION = 2 + ImageCms.Intent.ABSOLUTE_COLORIMETRIC = 3 + + see the pyCMS documentation for details on rendering intents and what + they do. + :param flags: Integer (0-...) specifying additional flags + :returns: A CmsTransform class object. + :exception PyCMSError: + """ + + if not isinstance(renderingIntent, int) or not (0 <= renderingIntent <= 3): + msg = "renderingIntent must be an integer between 0 and 3" + raise PyCMSError(msg) + + if not isinstance(flags, int) or not (0 <= flags <= _MAX_FLAG): + msg = "flags must be an integer between 0 and %s" + _MAX_FLAG + raise PyCMSError(msg) + + try: + if not isinstance(inputProfile, ImageCmsProfile): + inputProfile = ImageCmsProfile(inputProfile) + if not isinstance(outputProfile, ImageCmsProfile): + outputProfile = ImageCmsProfile(outputProfile) + if not isinstance(proofProfile, ImageCmsProfile): + proofProfile = ImageCmsProfile(proofProfile) + return ImageCmsTransform( + inputProfile, + outputProfile, + inMode, + outMode, + renderingIntent, + proofProfile, + proofRenderingIntent, + flags, + ) + except (OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +buildTransformFromOpenProfiles = buildTransform +buildProofTransformFromOpenProfiles = buildProofTransform + + +def applyTransform(im, transform, inPlace=False): + """ + (pyCMS) Applies a transform to a given image. + + If ``im.mode != transform.inMode``, a :exc:`PyCMSError` is raised. + + If ``inPlace`` is ``True`` and ``transform.inMode != transform.outMode``, a + :exc:`PyCMSError` is raised. + + If ``im.mode``, ``transform.inMode`` or ``transform.outMode`` is not + supported by pyCMSdll or the profiles you used for the transform, a + :exc:`PyCMSError` is raised. + + If an error occurs while the transform is being applied, + a :exc:`PyCMSError` is raised. + + This function applies a pre-calculated transform (from + ImageCms.buildTransform() or ImageCms.buildTransformFromOpenProfiles()) + to an image. The transform can be used for multiple images, saving + considerable calculation time if doing the same conversion multiple times. + + If you want to modify im in-place instead of receiving a new image as + the return value, set ``inPlace`` to ``True``. This can only be done if + ``transform.inMode`` and ``transform.outMode`` are the same, because we can't + change the mode in-place (the buffer sizes for some modes are + different). The default behavior is to return a new :py:class:`~PIL.Image.Image` + object of the same dimensions in mode ``transform.outMode``. + + :param im: An :py:class:`~PIL.Image.Image` object, and im.mode must be the same + as the ``inMode`` supported by the transform. + :param transform: A valid CmsTransform class object + :param inPlace: Bool. If ``True``, ``im`` is modified in place and ``None`` is + returned, if ``False``, a new :py:class:`~PIL.Image.Image` object with the + transform applied is returned (and ``im`` is not changed). The default is + ``False``. + :returns: Either ``None``, or a new :py:class:`~PIL.Image.Image` object, + depending on the value of ``inPlace``. The profile will be returned in + the image's ``info['icc_profile']``. + :exception PyCMSError: + """ + + try: + if inPlace: + transform.apply_in_place(im) + imOut = None + else: + imOut = transform.apply(im) + except (TypeError, ValueError) as v: + raise PyCMSError(v) from v + + return imOut + + +def createProfile(colorSpace, colorTemp=-1): + """ + (pyCMS) Creates a profile. + + If colorSpace not in ``["LAB", "XYZ", "sRGB"]``, + a :exc:`PyCMSError` is raised. + + If using LAB and ``colorTemp`` is not a positive integer, + a :exc:`PyCMSError` is raised. + + If an error occurs while creating the profile, + a :exc:`PyCMSError` is raised. + + Use this function to create common profiles on-the-fly instead of + having to supply a profile on disk and knowing the path to it. It + returns a normal CmsProfile object that can be passed to + ImageCms.buildTransformFromOpenProfiles() to create a transform to apply + to images. + + :param colorSpace: String, the color space of the profile you wish to + create. + Currently only "LAB", "XYZ", and "sRGB" are supported. + :param colorTemp: Positive integer for the white point for the profile, in + degrees Kelvin (i.e. 5000, 6500, 9600, etc.). The default is for D50 + illuminant if omitted (5000k). colorTemp is ONLY applied to LAB + profiles, and is ignored for XYZ and sRGB. + :returns: A CmsProfile class object + :exception PyCMSError: + """ + + if colorSpace not in ["LAB", "XYZ", "sRGB"]: + msg = ( + f"Color space not supported for on-the-fly profile creation ({colorSpace})" + ) + raise PyCMSError(msg) + + if colorSpace == "LAB": + try: + colorTemp = float(colorTemp) + except (TypeError, ValueError) as e: + msg = f'Color temperature must be numeric, "{colorTemp}" not valid' + raise PyCMSError(msg) from e + + try: + return core.createProfile(colorSpace, colorTemp) + except (TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def getProfileName(profile): + """ + + (pyCMS) Gets the internal product name for the given profile. + + If ``profile`` isn't a valid CmsProfile object or filename to a profile, + a :exc:`PyCMSError` is raised If an error occurs while trying + to obtain the name tag, a :exc:`PyCMSError` is raised. + + Use this function to obtain the INTERNAL name of the profile (stored + in an ICC tag in the profile itself), usually the one used when the + profile was originally created. Sometimes this tag also contains + additional information supplied by the creator. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :returns: A string containing the internal name of the profile as stored + in an ICC tag. + :exception PyCMSError: + """ + + try: + # add an extra newline to preserve pyCMS compatibility + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + # do it in python, not c. + # // name was "%s - %s" (model, manufacturer) || Description , + # // but if the Model and Manufacturer were the same or the model + # // was long, Just the model, in 1.x + model = profile.profile.model + manufacturer = profile.profile.manufacturer + + if not (model or manufacturer): + return (profile.profile.profile_description or "") + "\n" + if not manufacturer or len(model) > 30: + return model + "\n" + return f"{model} - {manufacturer}\n" + + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def getProfileInfo(profile): + """ + (pyCMS) Gets the internal product information for the given profile. + + If ``profile`` isn't a valid CmsProfile object or filename to a profile, + a :exc:`PyCMSError` is raised. + + If an error occurs while trying to obtain the info tag, + a :exc:`PyCMSError` is raised. + + Use this function to obtain the information stored in the profile's + info tag. This often contains details about the profile, and how it + was created, as supplied by the creator. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :returns: A string containing the internal profile information stored in + an ICC tag. + :exception PyCMSError: + """ + + try: + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + # add an extra newline to preserve pyCMS compatibility + # Python, not C. the white point bits weren't working well, + # so skipping. + # info was description \r\n\r\n copyright \r\n\r\n K007 tag \r\n\r\n whitepoint + description = profile.profile.profile_description + cpright = profile.profile.copyright + elements = [element for element in (description, cpright) if element] + return "\r\n\r\n".join(elements) + "\r\n\r\n" + + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def getProfileCopyright(profile): + """ + (pyCMS) Gets the copyright for the given profile. + + If ``profile`` isn't a valid CmsProfile object or filename to a profile, a + :exc:`PyCMSError` is raised. + + If an error occurs while trying to obtain the copyright tag, + a :exc:`PyCMSError` is raised. + + Use this function to obtain the information stored in the profile's + copyright tag. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :returns: A string containing the internal profile information stored in + an ICC tag. + :exception PyCMSError: + """ + try: + # add an extra newline to preserve pyCMS compatibility + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + return (profile.profile.copyright or "") + "\n" + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def getProfileManufacturer(profile): + """ + (pyCMS) Gets the manufacturer for the given profile. + + If ``profile`` isn't a valid CmsProfile object or filename to a profile, a + :exc:`PyCMSError` is raised. + + If an error occurs while trying to obtain the manufacturer tag, a + :exc:`PyCMSError` is raised. + + Use this function to obtain the information stored in the profile's + manufacturer tag. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :returns: A string containing the internal profile information stored in + an ICC tag. + :exception PyCMSError: + """ + try: + # add an extra newline to preserve pyCMS compatibility + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + return (profile.profile.manufacturer or "") + "\n" + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def getProfileModel(profile): + """ + (pyCMS) Gets the model for the given profile. + + If ``profile`` isn't a valid CmsProfile object or filename to a profile, a + :exc:`PyCMSError` is raised. + + If an error occurs while trying to obtain the model tag, + a :exc:`PyCMSError` is raised. + + Use this function to obtain the information stored in the profile's + model tag. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :returns: A string containing the internal profile information stored in + an ICC tag. + :exception PyCMSError: + """ + + try: + # add an extra newline to preserve pyCMS compatibility + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + return (profile.profile.model or "") + "\n" + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def getProfileDescription(profile): + """ + (pyCMS) Gets the description for the given profile. + + If ``profile`` isn't a valid CmsProfile object or filename to a profile, a + :exc:`PyCMSError` is raised. + + If an error occurs while trying to obtain the description tag, + a :exc:`PyCMSError` is raised. + + Use this function to obtain the information stored in the profile's + description tag. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :returns: A string containing the internal profile information stored in an + ICC tag. + :exception PyCMSError: + """ + + try: + # add an extra newline to preserve pyCMS compatibility + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + return (profile.profile.profile_description or "") + "\n" + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def getDefaultIntent(profile): + """ + (pyCMS) Gets the default intent name for the given profile. + + If ``profile`` isn't a valid CmsProfile object or filename to a profile, a + :exc:`PyCMSError` is raised. + + If an error occurs while trying to obtain the default intent, a + :exc:`PyCMSError` is raised. + + Use this function to determine the default (and usually best optimized) + rendering intent for this profile. Most profiles support multiple + rendering intents, but are intended mostly for one type of conversion. + If you wish to use a different intent than returned, use + ImageCms.isIntentSupported() to verify it will work first. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :returns: Integer 0-3 specifying the default rendering intent for this + profile. + + ImageCms.Intent.PERCEPTUAL = 0 (DEFAULT) + ImageCms.Intent.RELATIVE_COLORIMETRIC = 1 + ImageCms.Intent.SATURATION = 2 + ImageCms.Intent.ABSOLUTE_COLORIMETRIC = 3 + + see the pyCMS documentation for details on rendering intents and what + they do. + :exception PyCMSError: + """ + + try: + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + return profile.profile.rendering_intent + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def isIntentSupported(profile, intent, direction): + """ + (pyCMS) Checks if a given intent is supported. + + Use this function to verify that you can use your desired + ``intent`` with ``profile``, and that ``profile`` can be used for the + input/output/proof profile as you desire. + + Some profiles are created specifically for one "direction", can cannot + be used for others. Some profiles can only be used for certain + rendering intents, so it's best to either verify this before trying + to create a transform with them (using this function), or catch the + potential :exc:`PyCMSError` that will occur if they don't + support the modes you select. + + :param profile: EITHER a valid CmsProfile object, OR a string of the + filename of an ICC profile. + :param intent: Integer (0-3) specifying the rendering intent you wish to + use with this profile + + ImageCms.Intent.PERCEPTUAL = 0 (DEFAULT) + ImageCms.Intent.RELATIVE_COLORIMETRIC = 1 + ImageCms.Intent.SATURATION = 2 + ImageCms.Intent.ABSOLUTE_COLORIMETRIC = 3 + + see the pyCMS documentation for details on rendering intents and what + they do. + :param direction: Integer specifying if the profile is to be used for + input, output, or proof + + INPUT = 0 (or use ImageCms.Direction.INPUT) + OUTPUT = 1 (or use ImageCms.Direction.OUTPUT) + PROOF = 2 (or use ImageCms.Direction.PROOF) + + :returns: 1 if the intent/direction are supported, -1 if they are not. + :exception PyCMSError: + """ + + try: + if not isinstance(profile, ImageCmsProfile): + profile = ImageCmsProfile(profile) + # FIXME: I get different results for the same data w. different + # compilers. Bug in LittleCMS or in the binding? + if profile.profile.is_intent_supported(intent, direction): + return 1 + else: + return -1 + except (AttributeError, OSError, TypeError, ValueError) as v: + raise PyCMSError(v) from v + + +def versions(): + """ + (pyCMS) Fetches versions. + """ + + return VERSION, core.littlecms_version, sys.version.split()[0], Image.__version__ diff --git a/shared/package-files/ea/eae435a9a4fb5c8ef90e8166b51a914bde079299be42fcbae8244d86643e2dbc/blob b/shared/package-files/ea/eae435a9a4fb5c8ef90e8166b51a914bde079299be42fcbae8244d86643e2dbc/blob new file mode 100644 index 0000000000000000000000000000000000000000..7080990afc9e23e51e8a45aaa146b64c58dda3cf --- /dev/null +++ b/shared/package-files/ea/eae435a9a4fb5c8ef90e8166b51a914bde079299be42fcbae8244d86643e2dbc/blob @@ -0,0 +1,20 @@ +# This file is not meant for public use and will be removed in SciPy v2.0.0. +# Use the `scipy.signal` namespace for importing the functions +# included below. + +from scipy._lib.deprecation import _sub_module_deprecation + +__all__ = [ # noqa: F822 + 'tf2ss', 'abcd_normalize', 'ss2tf', 'zpk2ss', 'ss2zpk', + 'cont2discrete', 'tf2zpk', 'zpk2tf', 'normalize' +] + + +def __dir__(): + return __all__ + + +def __getattr__(name): + return _sub_module_deprecation(sub_package="signal", module="lti_conversion", + private_modules=["_lti_conversion"], all=__all__, + attribute=name) diff --git a/shared/package-files/ea/eae467d52c4db8b44dba67a873be8192910217ccedbaac9a62f88b8c57bb1644/blob b/shared/package-files/ea/eae467d52c4db8b44dba67a873be8192910217ccedbaac9a62f88b8c57bb1644/blob new file mode 100644 index 0000000000000000000000000000000000000000..340525a6ebd2ac5075887c8c8f5fd2b5f3b69be6 --- /dev/null +++ b/shared/package-files/ea/eae467d52c4db8b44dba67a873be8192910217ccedbaac9a62f88b8c57bb1644/blob @@ -0,0 +1,67 @@ +# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license + +# Copyright (C) 2004-2007, 2009-2011 Nominum, Inc. +# +# Permission to use, copy, modify, and distribute this software and its +# documentation for any purpose with or without fee is hereby granted, +# provided that the above copyright notice and this permission notice +# appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +import dns.exception +import dns.immutable +import dns.name +import dns.rdata +import dns.rdatatype +import dns.rdtypes.util + + +@dns.immutable.immutable +class Bitmap(dns.rdtypes.util.Bitmap): + type_name = "NSEC" + + +@dns.immutable.immutable +class NSEC(dns.rdata.Rdata): + """NSEC record""" + + __slots__ = ["next", "windows"] + + def __init__(self, rdclass, rdtype, next, windows): + super().__init__(rdclass, rdtype) + self.next = self._as_name(next) + if not isinstance(windows, Bitmap): + windows = Bitmap(windows) + self.windows = tuple(windows.windows) + + def to_text(self, origin=None, relativize=True, **kw): + next = self.next.choose_relativity(origin, relativize) + text = Bitmap(self.windows).to_text() + return "{}{}".format(next, text) + + @classmethod + def from_text( + cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None + ): + next = tok.get_name(origin, relativize, relativize_to) + windows = Bitmap.from_text(tok) + return cls(rdclass, rdtype, next, windows) + + def _to_wire(self, file, compress=None, origin=None, canonicalize=False): + # Note that NSEC downcasing, originally mandated by RFC 4034 + # section 6.2 was removed by RFC 6840 section 5.1. + self.next.to_wire(file, None, origin, False) + Bitmap(self.windows).to_wire(file) + + @classmethod + def from_wire_parser(cls, rdclass, rdtype, parser, origin=None): + next = parser.get_name(origin) + bitmap = Bitmap.from_wire_parser(parser) + return cls(rdclass, rdtype, next, bitmap) diff --git a/shared/package-files/ea/eae6a266f1ebbd2a337280a1cf66ef5e96c899cac4217817df6a8f7d9d9aeca6/blob b/shared/package-files/ea/eae6a266f1ebbd2a337280a1cf66ef5e96c899cac4217817df6a8f7d9d9aeca6/blob new file mode 100644 index 0000000000000000000000000000000000000000..f1a9f079296e82ec09ea9f56a77a4209e1c437fc --- /dev/null +++ b/shared/package-files/ea/eae6a266f1ebbd2a337280a1cf66ef5e96c899cac4217817df6a8f7d9d9aeca6/blob @@ -0,0 +1,23 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor _resize_output_symint(const at::Tensor & self, c10::SymIntArrayRef size, at::Device device); +TORCH_API const at::Tensor & _resize_output_out_symint(const at::Tensor & self, c10::SymIntArrayRef size, at::Device device, const at::Tensor & out); +TORCH_API const at::Tensor & _resize_output_(const at::Tensor & self, at::IntArrayRef size, at::Device device); +} // namespace native +} // namespace at diff --git a/shared/package-files/ea/eae7bbe25053a7c12ce8f6681357bfe45a3a9378fb1eafc79292e7063018b291/blob b/shared/package-files/ea/eae7bbe25053a7c12ce8f6681357bfe45a3a9378fb1eafc79292e7063018b291/blob new file mode 100644 index 0000000000000000000000000000000000000000..21a686e8bc05b09729c6fe54e67c96405ee36bca --- /dev/null +++ b/shared/package-files/ea/eae7bbe25053a7c12ce8f6681357bfe45a3a9378fb1eafc79292e7063018b291/blob @@ -0,0 +1,171 @@ +""" generic datetimelike tests """ + +import numpy as np +import pytest + +import pandas as pd +import pandas._testing as tm + + +class TestDatetimeLike: + @pytest.fixture( + params=[ + pd.period_range("20130101", periods=5, freq="D"), + pd.TimedeltaIndex( + [ + "0 days 01:00:00", + "1 days 01:00:00", + "2 days 01:00:00", + "3 days 01:00:00", + "4 days 01:00:00", + ], + dtype="timedelta64[ns]", + freq="D", + ), + pd.DatetimeIndex( + ["2013-01-01", "2013-01-02", "2013-01-03", "2013-01-04", "2013-01-05"], + dtype="datetime64[ns]", + freq="D", + ), + ] + ) + def simple_index(self, request): + return request.param + + def test_isin(self, simple_index): + index = simple_index[:4] + result = index.isin(index) + assert result.all() + + result = index.isin(list(index)) + assert result.all() + + result = index.isin([index[2], 5]) + expected = np.array([False, False, True, False]) + tm.assert_numpy_array_equal(result, expected) + + def test_argsort_matches_array(self, simple_index): + idx = simple_index + idx = idx.insert(1, pd.NaT) + + result = idx.argsort() + expected = idx._data.argsort() + tm.assert_numpy_array_equal(result, expected) + + def test_can_hold_identifiers(self, simple_index): + idx = simple_index + key = idx[0] + assert idx._can_hold_identifiers_and_holds_name(key) is False + + def test_shift_identity(self, simple_index): + idx = simple_index + tm.assert_index_equal(idx, idx.shift(0)) + + def test_shift_empty(self, simple_index): + # GH#14811 + idx = simple_index[:0] + tm.assert_index_equal(idx, idx.shift(1)) + + def test_str(self, simple_index): + # test the string repr + idx = simple_index.copy() + idx.name = "foo" + assert f"length={len(idx)}" not in str(idx) + assert "'foo'" in str(idx) + assert type(idx).__name__ in str(idx) + + if hasattr(idx, "tz"): + if idx.tz is not None: + assert idx.tz in str(idx) + if isinstance(idx, pd.PeriodIndex): + assert f"dtype='period[{idx.freqstr}]'" in str(idx) + else: + assert f"freq='{idx.freqstr}'" in str(idx) + + def test_view(self, simple_index): + idx = simple_index + + idx_view = idx.view("i8") + result = type(simple_index)(idx) + tm.assert_index_equal(result, idx) + + msg = "Passing a type in .*Index.view is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + idx_view = idx.view(type(simple_index)) + result = type(simple_index)(idx) + tm.assert_index_equal(result, idx_view) + + def test_map_callable(self, simple_index): + index = simple_index + expected = index + index.freq + result = index.map(lambda x: x + index.freq) + tm.assert_index_equal(result, expected) + + # map to NaT + result = index.map(lambda x: pd.NaT if x == index[0] else x) + expected = pd.Index([pd.NaT] + index[1:].tolist()) + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize( + "mapper", + [ + lambda values, index: {i: e for e, i in zip(values, index)}, + lambda values, index: pd.Series(values, index, dtype=object), + ], + ) + @pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning") + def test_map_dictlike(self, mapper, simple_index): + index = simple_index + expected = index + index.freq + + # don't compare the freqs + if isinstance(expected, (pd.DatetimeIndex, pd.TimedeltaIndex)): + expected = expected._with_freq(None) + + result = index.map(mapper(expected, index)) + tm.assert_index_equal(result, expected) + + expected = pd.Index([pd.NaT] + index[1:].tolist()) + result = index.map(mapper(expected, index)) + tm.assert_index_equal(result, expected) + + # empty map; these map to np.nan because we cannot know + # to re-infer things + expected = pd.Index([np.nan] * len(index)) + result = index.map(mapper([], [])) + tm.assert_index_equal(result, expected) + + def test_getitem_preserves_freq(self, simple_index): + index = simple_index + assert index.freq is not None + + result = index[:] + assert result.freq == index.freq + + def test_where_cast_str(self, simple_index): + index = simple_index + + mask = np.ones(len(index), dtype=bool) + mask[-1] = False + + result = index.where(mask, str(index[0])) + expected = index.where(mask, index[0]) + tm.assert_index_equal(result, expected) + + result = index.where(mask, [str(index[0])]) + tm.assert_index_equal(result, expected) + + expected = index.astype(object).where(mask, "foo") + result = index.where(mask, "foo") + tm.assert_index_equal(result, expected) + + result = index.where(mask, ["foo"]) + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize("unit", ["ns", "us", "ms", "s"]) + def test_diff(self, unit): + # GH 55080 + dti = pd.to_datetime([10, 20, 30], unit=unit).as_unit(unit) + result = dti.diff(1) + expected = pd.to_timedelta([pd.NaT, 10, 10], unit=unit).as_unit(unit) + tm.assert_index_equal(result, expected) diff --git a/shared/package-files/ea/eae9c5b85f52ea11b91432438e2a9b2a0deb2fc22dcc9407c18f6f31d8eee3ed/blob b/shared/package-files/ea/eae9c5b85f52ea11b91432438e2a9b2a0deb2fc22dcc9407c18f6f31d8eee3ed/blob new file mode 100644 index 0000000000000000000000000000000000000000..1fe7cc9b03e8a6cef04558958ed949a0239a96cc --- /dev/null +++ b/shared/package-files/ea/eae9c5b85f52ea11b91432438e2a9b2a0deb2fc22dcc9407c18f6f31d8eee3ed/blob @@ -0,0 +1,75 @@ +""" +Tests for subclasses of NDArrayBackedExtensionArray +""" +import numpy as np + +from pandas import ( + CategoricalIndex, + date_range, +) +from pandas.core.arrays import ( + Categorical, + DatetimeArray, + NumpyExtensionArray, + TimedeltaArray, +) + + +class TestEmpty: + def test_empty_categorical(self): + ci = CategoricalIndex(["a", "b", "c"], ordered=True) + dtype = ci.dtype + + # case with int8 codes + shape = (4,) + result = Categorical._empty(shape, dtype=dtype) + assert isinstance(result, Categorical) + assert result.shape == shape + assert result._ndarray.dtype == np.int8 + + # case where repr would segfault if we didn't override base implementation + result = Categorical._empty((4096,), dtype=dtype) + assert isinstance(result, Categorical) + assert result.shape == (4096,) + assert result._ndarray.dtype == np.int8 + repr(result) + + # case with int16 codes + ci = CategoricalIndex(list(range(512)) * 4, ordered=False) + dtype = ci.dtype + result = Categorical._empty(shape, dtype=dtype) + assert isinstance(result, Categorical) + assert result.shape == shape + assert result._ndarray.dtype == np.int16 + + def test_empty_dt64tz(self): + dti = date_range("2016-01-01", periods=2, tz="Asia/Tokyo") + dtype = dti.dtype + + shape = (0,) + result = DatetimeArray._empty(shape, dtype=dtype) + assert result.dtype == dtype + assert isinstance(result, DatetimeArray) + assert result.shape == shape + + def test_empty_dt64(self): + shape = (3, 9) + result = DatetimeArray._empty(shape, dtype="datetime64[ns]") + assert isinstance(result, DatetimeArray) + assert result.shape == shape + + def test_empty_td64(self): + shape = (3, 9) + result = TimedeltaArray._empty(shape, dtype="m8[ns]") + assert isinstance(result, TimedeltaArray) + assert result.shape == shape + + def test_empty_pandas_array(self): + arr = NumpyExtensionArray(np.array([1, 2])) + dtype = arr.dtype + + shape = (3, 9) + result = NumpyExtensionArray._empty(shape, dtype=dtype) + assert isinstance(result, NumpyExtensionArray) + assert result.dtype == dtype + assert result.shape == shape diff --git a/shared/package-files/ea/eaebc5b7c520d76c5fdf727d00dc5a691c3aefeaa624cc125dd498ebd417239d/blob b/shared/package-files/ea/eaebc5b7c520d76c5fdf727d00dc5a691c3aefeaa624cc125dd498ebd417239d/blob new file mode 100644 index 0000000000000000000000000000000000000000..2c708e6f0338385bcb35228673040f53e34fb87d --- /dev/null +++ b/shared/package-files/ea/eaebc5b7c520d76c5fdf727d00dc5a691c3aefeaa624cc125dd498ebd417239d/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API ::std::tuple cudnn_grid_sampler_backward(const at::Tensor & self, const at::Tensor & grid, const at::Tensor & grad_output); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/ea/eaedede21521e3fdc2b5d1e669702d2b1076f880553cd3b7ec27848d9c92eeb3/blob b/shared/package-files/ea/eaedede21521e3fdc2b5d1e669702d2b1076f880553cd3b7ec27848d9c92eeb3/blob new file mode 100644 index 0000000000000000000000000000000000000000..44cf10b32335014cd7cb26459c8dc89ac8f851ff --- /dev/null +++ b/shared/package-files/ea/eaedede21521e3fdc2b5d1e669702d2b1076f880553cd3b7ec27848d9c92eeb3/blob @@ -0,0 +1,1336 @@ +import numpy as np +import numpy.typing as npt +import math +import warnings +from collections import namedtuple +from collections.abc import Callable + +from scipy.special import roots_legendre +from scipy.special import gammaln, logsumexp +from scipy._lib._util import _rng_spawn +from scipy._lib._array_api import _asarray, array_namespace, xp_broadcast_promote + + +__all__ = ['fixed_quad', 'romb', + 'trapezoid', 'simpson', + 'cumulative_trapezoid', 'newton_cotes', + 'qmc_quad', 'cumulative_simpson'] + + +def trapezoid(y, x=None, dx=1.0, axis=-1): + r""" + Integrate along the given axis using the composite trapezoidal rule. + + If `x` is provided, the integration happens in sequence along its + elements - they are not sorted. + + Integrate `y` (`x`) along each 1d slice on the given axis, compute + :math:`\int y(x) dx`. + When `x` is specified, this integrates along the parametric curve, + computing :math:`\int_t y(t) dt = + \int_t y(t) \left.\frac{dx}{dt}\right|_{x=x(t)} dt`. + + Parameters + ---------- + y : array_like + Input array to integrate. + x : array_like, optional + The sample points corresponding to the `y` values. If `x` is None, + the sample points are assumed to be evenly spaced `dx` apart. The + default is None. + dx : scalar, optional + The spacing between sample points when `x` is None. The default is 1. + axis : int, optional + The axis along which to integrate. The default is the last axis. + + Returns + ------- + trapezoid : float or ndarray + Definite integral of `y` = n-dimensional array as approximated along + a single axis by the trapezoidal rule. If `y` is a 1-dimensional array, + then the result is a float. If `n` is greater than 1, then the result + is an `n`-1 dimensional array. + + See Also + -------- + cumulative_trapezoid, simpson, romb + + Notes + ----- + Image [2]_ illustrates trapezoidal rule -- y-axis locations of points + will be taken from `y` array, by default x-axis distances between + points will be 1.0, alternatively they can be provided with `x` array + or with `dx` scalar. Return value will be equal to combined area under + the red lines. + + References + ---------- + .. [1] Wikipedia page: https://en.wikipedia.org/wiki/Trapezoidal_rule + + .. [2] Illustration image: + https://en.wikipedia.org/wiki/File:Composite_trapezoidal_rule_illustration.png + + Examples + -------- + Use the trapezoidal rule on evenly spaced points: + + >>> import numpy as np + >>> from scipy import integrate + >>> integrate.trapezoid([1, 2, 3]) + 4.0 + + The spacing between sample points can be selected by either the + ``x`` or ``dx`` arguments: + + >>> integrate.trapezoid([1, 2, 3], x=[4, 6, 8]) + 8.0 + >>> integrate.trapezoid([1, 2, 3], dx=2) + 8.0 + + Using a decreasing ``x`` corresponds to integrating in reverse: + + >>> integrate.trapezoid([1, 2, 3], x=[8, 6, 4]) + -8.0 + + More generally ``x`` is used to integrate along a parametric curve. We can + estimate the integral :math:`\int_0^1 x^2 = 1/3` using: + + >>> x = np.linspace(0, 1, num=50) + >>> y = x**2 + >>> integrate.trapezoid(y, x) + 0.33340274885464394 + + Or estimate the area of a circle, noting we repeat the sample which closes + the curve: + + >>> theta = np.linspace(0, 2 * np.pi, num=1000, endpoint=True) + >>> integrate.trapezoid(np.cos(theta), x=np.sin(theta)) + 3.141571941375841 + + ``trapezoid`` can be applied along a specified axis to do multiple + computations in one call: + + >>> a = np.arange(6).reshape(2, 3) + >>> a + array([[0, 1, 2], + [3, 4, 5]]) + >>> integrate.trapezoid(a, axis=0) + array([1.5, 2.5, 3.5]) + >>> integrate.trapezoid(a, axis=1) + array([2., 8.]) + """ + xp = array_namespace(y) + y = _asarray(y, xp=xp, subok=True) + # Cannot just use the broadcasted arrays that are returned + # because trapezoid does not follow normal broadcasting rules + # cf. https://github.com/scipy/scipy/pull/21524#issuecomment-2354105942 + result_dtype = xp_broadcast_promote(y, force_floating=True, xp=xp)[0].dtype + nd = y.ndim + slice1 = [slice(None)]*nd + slice2 = [slice(None)]*nd + slice1[axis] = slice(1, None) + slice2[axis] = slice(None, -1) + if x is None: + d = dx + else: + x = _asarray(x, xp=xp, subok=True) + if x.ndim == 1: + d = x[1:] - x[:-1] + # make d broadcastable to y + slice3 = [None] * nd + slice3[axis] = slice(None) + d = d[tuple(slice3)] + else: + # if x is n-D it should be broadcastable to y + x = xp.broadcast_to(x, y.shape) + d = x[tuple(slice1)] - x[tuple(slice2)] + try: + ret = xp.sum( + d * (y[tuple(slice1)] + y[tuple(slice2)]) / 2.0, + axis=axis, dtype=result_dtype + ) + except ValueError: + # Operations didn't work, cast to ndarray + d = xp.asarray(d) + y = xp.asarray(y) + ret = xp.sum( + d * (y[tuple(slice1)] + y[tuple(slice2)]) / 2.0, + axis=axis, dtype=result_dtype + ) + return ret + + +def _cached_roots_legendre(n): + """ + Cache roots_legendre results to speed up calls of the fixed_quad + function. + """ + if n in _cached_roots_legendre.cache: + return _cached_roots_legendre.cache[n] + + _cached_roots_legendre.cache[n] = roots_legendre(n) + return _cached_roots_legendre.cache[n] + + +_cached_roots_legendre.cache = dict() + + +def fixed_quad(func, a, b, args=(), n=5): + """ + Compute a definite integral using fixed-order Gaussian quadrature. + + Integrate `func` from `a` to `b` using Gaussian quadrature of + order `n`. + + Parameters + ---------- + func : callable + A Python function or method to integrate (must accept vector inputs). + If integrating a vector-valued function, the returned array must have + shape ``(..., len(x))``. + a : float + Lower limit of integration. + b : float + Upper limit of integration. + args : tuple, optional + Extra arguments to pass to function, if any. + n : int, optional + Order of quadrature integration. Default is 5. + + Returns + ------- + val : float + Gaussian quadrature approximation to the integral + none : None + Statically returned value of None + + See Also + -------- + quad : adaptive quadrature using QUADPACK + dblquad : double integrals + tplquad : triple integrals + romb : integrators for sampled data + simpson : integrators for sampled data + cumulative_trapezoid : cumulative integration for sampled data + + Examples + -------- + >>> from scipy import integrate + >>> import numpy as np + >>> f = lambda x: x**8 + >>> integrate.fixed_quad(f, 0.0, 1.0, n=4) + (0.1110884353741496, None) + >>> integrate.fixed_quad(f, 0.0, 1.0, n=5) + (0.11111111111111102, None) + >>> print(1/9.0) # analytical result + 0.1111111111111111 + + >>> integrate.fixed_quad(np.cos, 0.0, np.pi/2, n=4) + (0.9999999771971152, None) + >>> integrate.fixed_quad(np.cos, 0.0, np.pi/2, n=5) + (1.000000000039565, None) + >>> np.sin(np.pi/2)-np.sin(0) # analytical result + 1.0 + + """ + x, w = _cached_roots_legendre(n) + x = np.real(x) + if np.isinf(a) or np.isinf(b): + raise ValueError("Gaussian quadrature is only available for " + "finite limits.") + y = (b-a)*(x+1)/2.0 + a + return (b-a)/2.0 * np.sum(w*func(y, *args), axis=-1), None + + +def tupleset(t, i, value): + l = list(t) + l[i] = value + return tuple(l) + + +def cumulative_trapezoid(y, x=None, dx=1.0, axis=-1, initial=None): + """ + Cumulatively integrate y(x) using the composite trapezoidal rule. + + Parameters + ---------- + y : array_like + Values to integrate. + x : array_like, optional + The coordinate to integrate along. If None (default), use spacing `dx` + between consecutive elements in `y`. + dx : float, optional + Spacing between elements of `y`. Only used if `x` is None. + axis : int, optional + Specifies the axis to cumulate. Default is -1 (last axis). + initial : scalar, optional + If given, insert this value at the beginning of the returned result. + 0 or None are the only values accepted. Default is None, which means + `res` has one element less than `y` along the axis of integration. + + Returns + ------- + res : ndarray + The result of cumulative integration of `y` along `axis`. + If `initial` is None, the shape is such that the axis of integration + has one less value than `y`. If `initial` is given, the shape is equal + to that of `y`. + + See Also + -------- + numpy.cumsum, numpy.cumprod + cumulative_simpson : cumulative integration using Simpson's 1/3 rule + quad : adaptive quadrature using QUADPACK + fixed_quad : fixed-order Gaussian quadrature + dblquad : double integrals + tplquad : triple integrals + romb : integrators for sampled data + + Examples + -------- + >>> from scipy import integrate + >>> import numpy as np + >>> import matplotlib.pyplot as plt + + >>> x = np.linspace(-2, 2, num=20) + >>> y = x + >>> y_int = integrate.cumulative_trapezoid(y, x, initial=0) + >>> plt.plot(x, y_int, 'ro', x, y[0] + 0.5 * x**2, 'b-') + >>> plt.show() + + """ + y = np.asarray(y) + if y.shape[axis] == 0: + raise ValueError("At least one point is required along `axis`.") + if x is None: + d = dx + else: + x = np.asarray(x) + if x.ndim == 1: + d = np.diff(x) + # reshape to correct shape + shape = [1] * y.ndim + shape[axis] = -1 + d = d.reshape(shape) + elif len(x.shape) != len(y.shape): + raise ValueError("If given, shape of x must be 1-D or the " + "same as y.") + else: + d = np.diff(x, axis=axis) + + if d.shape[axis] != y.shape[axis] - 1: + raise ValueError("If given, length of x along axis must be the " + "same as y.") + + nd = len(y.shape) + slice1 = tupleset((slice(None),)*nd, axis, slice(1, None)) + slice2 = tupleset((slice(None),)*nd, axis, slice(None, -1)) + res = np.cumsum(d * (y[slice1] + y[slice2]) / 2.0, axis=axis) + + if initial is not None: + if initial != 0: + raise ValueError("`initial` must be `None` or `0`.") + if not np.isscalar(initial): + raise ValueError("`initial` parameter should be a scalar.") + + shape = list(res.shape) + shape[axis] = 1 + res = np.concatenate([np.full(shape, initial, dtype=res.dtype), res], + axis=axis) + + return res + + +def _basic_simpson(y, start, stop, x, dx, axis): + nd = len(y.shape) + if start is None: + start = 0 + step = 2 + slice_all = (slice(None),)*nd + slice0 = tupleset(slice_all, axis, slice(start, stop, step)) + slice1 = tupleset(slice_all, axis, slice(start+1, stop+1, step)) + slice2 = tupleset(slice_all, axis, slice(start+2, stop+2, step)) + + if x is None: # Even-spaced Simpson's rule. + result = np.sum(y[slice0] + 4.0*y[slice1] + y[slice2], axis=axis) + result *= dx / 3.0 + else: + # Account for possibly different spacings. + # Simpson's rule changes a bit. + h = np.diff(x, axis=axis) + sl0 = tupleset(slice_all, axis, slice(start, stop, step)) + sl1 = tupleset(slice_all, axis, slice(start+1, stop+1, step)) + h0 = h[sl0].astype(float, copy=False) + h1 = h[sl1].astype(float, copy=False) + hsum = h0 + h1 + hprod = h0 * h1 + h0divh1 = np.true_divide(h0, h1, out=np.zeros_like(h0), where=h1 != 0) + tmp = hsum/6.0 * (y[slice0] * + (2.0 - np.true_divide(1.0, h0divh1, + out=np.zeros_like(h0divh1), + where=h0divh1 != 0)) + + y[slice1] * (hsum * + np.true_divide(hsum, hprod, + out=np.zeros_like(hsum), + where=hprod != 0)) + + y[slice2] * (2.0 - h0divh1)) + result = np.sum(tmp, axis=axis) + return result + + +def simpson(y, x=None, *, dx=1.0, axis=-1): + """ + Integrate y(x) using samples along the given axis and the composite + Simpson's rule. If x is None, spacing of dx is assumed. + + Parameters + ---------- + y : array_like + Array to be integrated. + x : array_like, optional + If given, the points at which `y` is sampled. + dx : float, optional + Spacing of integration points along axis of `x`. Only used when + `x` is None. Default is 1. + axis : int, optional + Axis along which to integrate. Default is the last axis. + + Returns + ------- + float + The estimated integral computed with the composite Simpson's rule. + + See Also + -------- + quad : adaptive quadrature using QUADPACK + fixed_quad : fixed-order Gaussian quadrature + dblquad : double integrals + tplquad : triple integrals + romb : integrators for sampled data + cumulative_trapezoid : cumulative integration for sampled data + cumulative_simpson : cumulative integration using Simpson's 1/3 rule + + Notes + ----- + For an odd number of samples that are equally spaced the result is + exact if the function is a polynomial of order 3 or less. If + the samples are not equally spaced, then the result is exact only + if the function is a polynomial of order 2 or less. + + References + ---------- + .. [1] Cartwright, Kenneth V. Simpson's Rule Cumulative Integration with + MS Excel and Irregularly-spaced Data. Journal of Mathematical + Sciences and Mathematics Education. 12 (2): 1-9 + + Examples + -------- + >>> from scipy import integrate + >>> import numpy as np + >>> x = np.arange(0, 10) + >>> y = np.arange(0, 10) + + >>> integrate.simpson(y, x=x) + 40.5 + + >>> y = np.power(x, 3) + >>> integrate.simpson(y, x=x) + 1640.5 + >>> integrate.quad(lambda x: x**3, 0, 9)[0] + 1640.25 + + """ + y = np.asarray(y) + nd = len(y.shape) + N = y.shape[axis] + last_dx = dx + returnshape = 0 + if x is not None: + x = np.asarray(x) + if len(x.shape) == 1: + shapex = [1] * nd + shapex[axis] = x.shape[0] + saveshape = x.shape + returnshape = 1 + x = x.reshape(tuple(shapex)) + elif len(x.shape) != len(y.shape): + raise ValueError("If given, shape of x must be 1-D or the " + "same as y.") + if x.shape[axis] != N: + raise ValueError("If given, length of x along axis must be the " + "same as y.") + + if N % 2 == 0: + val = 0.0 + result = 0.0 + slice_all = (slice(None),) * nd + + if N == 2: + # need at least 3 points in integration axis to form parabolic + # segment. If there are two points then any of 'avg', 'first', + # 'last' should give the same result. + slice1 = tupleset(slice_all, axis, -1) + slice2 = tupleset(slice_all, axis, -2) + if x is not None: + last_dx = x[slice1] - x[slice2] + val += 0.5 * last_dx * (y[slice1] + y[slice2]) + else: + # use Simpson's rule on first intervals + result = _basic_simpson(y, 0, N-3, x, dx, axis) + + slice1 = tupleset(slice_all, axis, -1) + slice2 = tupleset(slice_all, axis, -2) + slice3 = tupleset(slice_all, axis, -3) + + h = np.asarray([dx, dx], dtype=np.float64) + if x is not None: + # grab the last two spacings from the appropriate axis + hm2 = tupleset(slice_all, axis, slice(-2, -1, 1)) + hm1 = tupleset(slice_all, axis, slice(-1, None, 1)) + + diffs = np.float64(np.diff(x, axis=axis)) + h = [np.squeeze(diffs[hm2], axis=axis), + np.squeeze(diffs[hm1], axis=axis)] + + # This is the correction for the last interval according to + # Cartwright. + # However, I used the equations given at + # https://en.wikipedia.org/wiki/Simpson%27s_rule#Composite_Simpson's_rule_for_irregularly_spaced_data + # A footnote on Wikipedia says: + # Cartwright 2017, Equation 8. The equation in Cartwright is + # calculating the first interval whereas the equations in the + # Wikipedia article are adjusting for the last integral. If the + # proper algebraic substitutions are made, the equation results in + # the values shown. + num = 2 * h[1] ** 2 + 3 * h[0] * h[1] + den = 6 * (h[1] + h[0]) + alpha = np.true_divide( + num, + den, + out=np.zeros_like(den), + where=den != 0 + ) + + num = h[1] ** 2 + 3.0 * h[0] * h[1] + den = 6 * h[0] + beta = np.true_divide( + num, + den, + out=np.zeros_like(den), + where=den != 0 + ) + + num = 1 * h[1] ** 3 + den = 6 * h[0] * (h[0] + h[1]) + eta = np.true_divide( + num, + den, + out=np.zeros_like(den), + where=den != 0 + ) + + result += alpha*y[slice1] + beta*y[slice2] - eta*y[slice3] + + result += val + else: + result = _basic_simpson(y, 0, N-2, x, dx, axis) + if returnshape: + x = x.reshape(saveshape) + return result + + +def _cumulatively_sum_simpson_integrals( + y: np.ndarray, + dx: np.ndarray, + integration_func: Callable[[np.ndarray, np.ndarray], np.ndarray], +) -> np.ndarray: + """Calculate cumulative sum of Simpson integrals. + Takes as input the integration function to be used. + The integration_func is assumed to return the cumulative sum using + composite Simpson's rule. Assumes the axis of summation is -1. + """ + sub_integrals_h1 = integration_func(y, dx) + sub_integrals_h2 = integration_func(y[..., ::-1], dx[..., ::-1])[..., ::-1] + + shape = list(sub_integrals_h1.shape) + shape[-1] += 1 + sub_integrals = np.empty(shape) + sub_integrals[..., :-1:2] = sub_integrals_h1[..., ::2] + sub_integrals[..., 1::2] = sub_integrals_h2[..., ::2] + # Integral over last subinterval can only be calculated from + # formula for h2 + sub_integrals[..., -1] = sub_integrals_h2[..., -1] + res = np.cumsum(sub_integrals, axis=-1) + return res + + +def _cumulative_simpson_equal_intervals(y: np.ndarray, dx: np.ndarray) -> np.ndarray: + """Calculate the Simpson integrals for all h1 intervals assuming equal interval + widths. The function can also be used to calculate the integral for all + h2 intervals by reversing the inputs, `y` and `dx`. + """ + d = dx[..., :-1] + f1 = y[..., :-2] + f2 = y[..., 1:-1] + f3 = y[..., 2:] + + # Calculate integral over the subintervals (eqn (10) of Reference [2]) + return d / 3 * (5 * f1 / 4 + 2 * f2 - f3 / 4) + + +def _cumulative_simpson_unequal_intervals(y: np.ndarray, dx: np.ndarray) -> np.ndarray: + """Calculate the Simpson integrals for all h1 intervals assuming unequal interval + widths. The function can also be used to calculate the integral for all + h2 intervals by reversing the inputs, `y` and `dx`. + """ + x21 = dx[..., :-1] + x32 = dx[..., 1:] + f1 = y[..., :-2] + f2 = y[..., 1:-1] + f3 = y[..., 2:] + + x31 = x21 + x32 + x21_x31 = x21/x31 + x21_x32 = x21/x32 + x21x21_x31x32 = x21_x31 * x21_x32 + + # Calculate integral over the subintervals (eqn (8) of Reference [2]) + coeff1 = 3 - x21_x31 + coeff2 = 3 + x21x21_x31x32 + x21_x31 + coeff3 = -x21x21_x31x32 + + return x21/6 * (coeff1*f1 + coeff2*f2 + coeff3*f3) + + +def _ensure_float_array(arr: npt.ArrayLike) -> np.ndarray: + arr = np.asarray(arr) + if np.issubdtype(arr.dtype, np.integer): + arr = arr.astype(float, copy=False) + return arr + + +def cumulative_simpson(y, *, x=None, dx=1.0, axis=-1, initial=None): + r""" + Cumulatively integrate y(x) using the composite Simpson's 1/3 rule. + The integral of the samples at every point is calculated by assuming a + quadratic relationship between each point and the two adjacent points. + + Parameters + ---------- + y : array_like + Values to integrate. Requires at least one point along `axis`. If two or fewer + points are provided along `axis`, Simpson's integration is not possible and the + result is calculated with `cumulative_trapezoid`. + x : array_like, optional + The coordinate to integrate along. Must have the same shape as `y` or + must be 1D with the same length as `y` along `axis`. `x` must also be + strictly increasing along `axis`. + If `x` is None (default), integration is performed using spacing `dx` + between consecutive elements in `y`. + dx : scalar or array_like, optional + Spacing between elements of `y`. Only used if `x` is None. Can either + be a float, or an array with the same shape as `y`, but of length one along + `axis`. Default is 1.0. + axis : int, optional + Specifies the axis to integrate along. Default is -1 (last axis). + initial : scalar or array_like, optional + If given, insert this value at the beginning of the returned result, + and add it to the rest of the result. Default is None, which means no + value at ``x[0]`` is returned and `res` has one element less than `y` + along the axis of integration. Can either be a float, or an array with + the same shape as `y`, but of length one along `axis`. + + Returns + ------- + res : ndarray + The result of cumulative integration of `y` along `axis`. + If `initial` is None, the shape is such that the axis of integration + has one less value than `y`. If `initial` is given, the shape is equal + to that of `y`. + + See Also + -------- + numpy.cumsum + cumulative_trapezoid : cumulative integration using the composite + trapezoidal rule + simpson : integrator for sampled data using the Composite Simpson's Rule + + Notes + ----- + + .. versionadded:: 1.12.0 + + The composite Simpson's 1/3 method can be used to approximate the definite + integral of a sampled input function :math:`y(x)` [1]_. The method assumes + a quadratic relationship over the interval containing any three consecutive + sampled points. + + Consider three consecutive points: + :math:`(x_1, y_1), (x_2, y_2), (x_3, y_3)`. + + Assuming a quadratic relationship over the three points, the integral over + the subinterval between :math:`x_1` and :math:`x_2` is given by formula + (8) of [2]_: + + .. math:: + \int_{x_1}^{x_2} y(x) dx\ &= \frac{x_2-x_1}{6}\left[\ + \left\{3-\frac{x_2-x_1}{x_3-x_1}\right\} y_1 + \ + \left\{3 + \frac{(x_2-x_1)^2}{(x_3-x_2)(x_3-x_1)} + \ + \frac{x_2-x_1}{x_3-x_1}\right\} y_2\\ + - \frac{(x_2-x_1)^2}{(x_3-x_2)(x_3-x_1)} y_3\right] + + The integral between :math:`x_2` and :math:`x_3` is given by swapping + appearances of :math:`x_1` and :math:`x_3`. The integral is estimated + separately for each subinterval and then cumulatively summed to obtain + the final result. + + For samples that are equally spaced, the result is exact if the function + is a polynomial of order three or less [1]_ and the number of subintervals + is even. Otherwise, the integral is exact for polynomials of order two or + less. + + References + ---------- + .. [1] Wikipedia page: https://en.wikipedia.org/wiki/Simpson's_rule + .. [2] Cartwright, Kenneth V. Simpson's Rule Cumulative Integration with + MS Excel and Irregularly-spaced Data. Journal of Mathematical + Sciences and Mathematics Education. 12 (2): 1-9 + + Examples + -------- + >>> from scipy import integrate + >>> import numpy as np + >>> import matplotlib.pyplot as plt + >>> x = np.linspace(-2, 2, num=20) + >>> y = x**2 + >>> y_int = integrate.cumulative_simpson(y, x=x, initial=0) + >>> fig, ax = plt.subplots() + >>> ax.plot(x, y_int, 'ro', x, x**3/3 - (x[0])**3/3, 'b-') + >>> ax.grid() + >>> plt.show() + + The output of `cumulative_simpson` is similar to that of iteratively + calling `simpson` with successively higher upper limits of integration, but + not identical. + + >>> def cumulative_simpson_reference(y, x): + ... return np.asarray([integrate.simpson(y[:i], x=x[:i]) + ... for i in range(2, len(y) + 1)]) + >>> + >>> rng = np.random.default_rng(354673834679465) + >>> x, y = rng.random(size=(2, 10)) + >>> x.sort() + >>> + >>> res = integrate.cumulative_simpson(y, x=x) + >>> ref = cumulative_simpson_reference(y, x) + >>> equal = np.abs(res - ref) < 1e-15 + >>> equal # not equal when `simpson` has even number of subintervals + array([False, True, False, True, False, True, False, True, True]) + + This is expected: because `cumulative_simpson` has access to more + information than `simpson`, it can typically produce more accurate + estimates of the underlying integral over subintervals. + + """ + y = _ensure_float_array(y) + + # validate `axis` and standardize to work along the last axis + original_y = y + original_shape = y.shape + try: + y = np.swapaxes(y, axis, -1) + except IndexError as e: + message = f"`axis={axis}` is not valid for `y` with `y.ndim={y.ndim}`." + raise ValueError(message) from e + if y.shape[-1] < 3: + res = cumulative_trapezoid(original_y, x, dx=dx, axis=axis, initial=None) + res = np.swapaxes(res, axis, -1) + + elif x is not None: + x = _ensure_float_array(x) + message = ("If given, shape of `x` must be the same as `y` or 1-D with " + "the same length as `y` along `axis`.") + if not (x.shape == original_shape + or (x.ndim == 1 and len(x) == original_shape[axis])): + raise ValueError(message) + + x = np.broadcast_to(x, y.shape) if x.ndim == 1 else np.swapaxes(x, axis, -1) + dx = np.diff(x, axis=-1) + if np.any(dx <= 0): + raise ValueError("Input x must be strictly increasing.") + res = _cumulatively_sum_simpson_integrals( + y, dx, _cumulative_simpson_unequal_intervals + ) + + else: + dx = _ensure_float_array(dx) + final_dx_shape = tupleset(original_shape, axis, original_shape[axis] - 1) + alt_input_dx_shape = tupleset(original_shape, axis, 1) + message = ("If provided, `dx` must either be a scalar or have the same " + "shape as `y` but with only 1 point along `axis`.") + if not (dx.ndim == 0 or dx.shape == alt_input_dx_shape): + raise ValueError(message) + dx = np.broadcast_to(dx, final_dx_shape) + dx = np.swapaxes(dx, axis, -1) + res = _cumulatively_sum_simpson_integrals( + y, dx, _cumulative_simpson_equal_intervals + ) + + if initial is not None: + initial = _ensure_float_array(initial) + alt_initial_input_shape = tupleset(original_shape, axis, 1) + message = ("If provided, `initial` must either be a scalar or have the " + "same shape as `y` but with only 1 point along `axis`.") + if not (initial.ndim == 0 or initial.shape == alt_initial_input_shape): + raise ValueError(message) + initial = np.broadcast_to(initial, alt_initial_input_shape) + initial = np.swapaxes(initial, axis, -1) + + res += initial + res = np.concatenate((initial, res), axis=-1) + + res = np.swapaxes(res, -1, axis) + return res + + +def romb(y, dx=1.0, axis=-1, show=False): + """ + Romberg integration using samples of a function. + + Parameters + ---------- + y : array_like + A vector of ``2**k + 1`` equally-spaced samples of a function. + dx : float, optional + The sample spacing. Default is 1. + axis : int, optional + The axis along which to integrate. Default is -1 (last axis). + show : bool, optional + When `y` is a single 1-D array, then if this argument is True + print the table showing Richardson extrapolation from the + samples. Default is False. + + Returns + ------- + romb : ndarray + The integrated result for `axis`. + + See Also + -------- + quad : adaptive quadrature using QUADPACK + fixed_quad : fixed-order Gaussian quadrature + dblquad : double integrals + tplquad : triple integrals + simpson : integrators for sampled data + cumulative_trapezoid : cumulative integration for sampled data + + Examples + -------- + >>> from scipy import integrate + >>> import numpy as np + >>> x = np.arange(10, 14.25, 0.25) + >>> y = np.arange(3, 12) + + >>> integrate.romb(y) + 56.0 + + >>> y = np.sin(np.power(x, 2.5)) + >>> integrate.romb(y) + -0.742561336672229 + + >>> integrate.romb(y, show=True) + Richardson Extrapolation Table for Romberg Integration + ====================================================== + -0.81576 + 4.63862 6.45674 + -1.10581 -3.02062 -3.65245 + -2.57379 -3.06311 -3.06595 -3.05664 + -1.34093 -0.92997 -0.78776 -0.75160 -0.74256 + ====================================================== + -0.742561336672229 # may vary + + """ + y = np.asarray(y) + nd = len(y.shape) + Nsamps = y.shape[axis] + Ninterv = Nsamps-1 + n = 1 + k = 0 + while n < Ninterv: + n <<= 1 + k += 1 + if n != Ninterv: + raise ValueError("Number of samples must be one plus a " + "non-negative power of 2.") + + R = {} + slice_all = (slice(None),) * nd + slice0 = tupleset(slice_all, axis, 0) + slicem1 = tupleset(slice_all, axis, -1) + h = Ninterv * np.asarray(dx, dtype=float) + R[(0, 0)] = (y[slice0] + y[slicem1])/2.0*h + slice_R = slice_all + start = stop = step = Ninterv + for i in range(1, k+1): + start >>= 1 + slice_R = tupleset(slice_R, axis, slice(start, stop, step)) + step >>= 1 + R[(i, 0)] = 0.5*(R[(i-1, 0)] + h*y[slice_R].sum(axis=axis)) + for j in range(1, i+1): + prev = R[(i, j-1)] + R[(i, j)] = prev + (prev-R[(i-1, j-1)]) / ((1 << (2*j))-1) + h /= 2.0 + + if show: + if not np.isscalar(R[(0, 0)]): + print("*** Printing table only supported for integrals" + + " of a single data set.") + else: + try: + precis = show[0] + except (TypeError, IndexError): + precis = 5 + try: + width = show[1] + except (TypeError, IndexError): + width = 8 + formstr = "%%%d.%df" % (width, precis) + + title = "Richardson Extrapolation Table for Romberg Integration" + print(title, "=" * len(title), sep="\n", end="\n") + for i in range(k+1): + for j in range(i+1): + print(formstr % R[(i, j)], end=" ") + print() + print("=" * len(title)) + + return R[(k, k)] + + +# Coefficients for Newton-Cotes quadrature +# +# These are the points being used +# to construct the local interpolating polynomial +# a are the weights for Newton-Cotes integration +# B is the error coefficient. +# error in these coefficients grows as N gets larger. +# or as samples are closer and closer together + +# You can use maxima to find these rational coefficients +# for equally spaced data using the commands +# a(i,N) := (integrate(product(r-j,j,0,i-1) * product(r-j,j,i+1,N),r,0,N) +# / ((N-i)! * i!) * (-1)^(N-i)); +# Be(N) := N^(N+2)/(N+2)! * (N/(N+3) - sum((i/N)^(N+2)*a(i,N),i,0,N)); +# Bo(N) := N^(N+1)/(N+1)! * (N/(N+2) - sum((i/N)^(N+1)*a(i,N),i,0,N)); +# B(N) := (if (mod(N,2)=0) then Be(N) else Bo(N)); +# +# pre-computed for equally-spaced weights +# +# num_a, den_a, int_a, num_B, den_B = _builtincoeffs[N] +# +# a = num_a*array(int_a)/den_a +# B = num_B*1.0 / den_B +# +# integrate(f(x),x,x_0,x_N) = dx*sum(a*f(x_i)) + B*(dx)^(2k+3) f^(2k+2)(x*) +# where k = N // 2 +# +_builtincoeffs = { + 1: (1,2,[1,1],-1,12), + 2: (1,3,[1,4,1],-1,90), + 3: (3,8,[1,3,3,1],-3,80), + 4: (2,45,[7,32,12,32,7],-8,945), + 5: (5,288,[19,75,50,50,75,19],-275,12096), + 6: (1,140,[41,216,27,272,27,216,41],-9,1400), + 7: (7,17280,[751,3577,1323,2989,2989,1323,3577,751],-8183,518400), + 8: (4,14175,[989,5888,-928,10496,-4540,10496,-928,5888,989], + -2368,467775), + 9: (9,89600,[2857,15741,1080,19344,5778,5778,19344,1080, + 15741,2857], -4671, 394240), + 10: (5,299376,[16067,106300,-48525,272400,-260550,427368, + -260550,272400,-48525,106300,16067], + -673175, 163459296), + 11: (11,87091200,[2171465,13486539,-3237113, 25226685,-9595542, + 15493566,15493566,-9595542,25226685,-3237113, + 13486539,2171465], -2224234463, 237758976000), + 12: (1, 5255250, [1364651,9903168,-7587864,35725120,-51491295, + 87516288,-87797136,87516288,-51491295,35725120, + -7587864,9903168,1364651], -3012, 875875), + 13: (13, 402361344000,[8181904909, 56280729661, -31268252574, + 156074417954,-151659573325,206683437987, + -43111992612,-43111992612,206683437987, + -151659573325,156074417954,-31268252574, + 56280729661,8181904909], -2639651053, + 344881152000), + 14: (7, 2501928000, [90241897,710986864,-770720657,3501442784, + -6625093363,12630121616,-16802270373,19534438464, + -16802270373,12630121616,-6625093363,3501442784, + -770720657,710986864,90241897], -3740727473, + 1275983280000) + } + + +def newton_cotes(rn, equal=0): + r""" + Return weights and error coefficient for Newton-Cotes integration. + + Suppose we have (N+1) samples of f at the positions + x_0, x_1, ..., x_N. Then an N-point Newton-Cotes formula for the + integral between x_0 and x_N is: + + :math:`\int_{x_0}^{x_N} f(x)dx = \Delta x \sum_{i=0}^{N} a_i f(x_i) + + B_N (\Delta x)^{N+2} f^{N+1} (\xi)` + + where :math:`\xi \in [x_0,x_N]` + and :math:`\Delta x = \frac{x_N-x_0}{N}` is the average samples spacing. + + If the samples are equally-spaced and N is even, then the error + term is :math:`B_N (\Delta x)^{N+3} f^{N+2}(\xi)`. + + Parameters + ---------- + rn : int + The integer order for equally-spaced data or the relative positions of + the samples with the first sample at 0 and the last at N, where N+1 is + the length of `rn`. N is the order of the Newton-Cotes integration. + equal : int, optional + Set to 1 to enforce equally spaced data. + + Returns + ------- + an : ndarray + 1-D array of weights to apply to the function at the provided sample + positions. + B : float + Error coefficient. + + Notes + ----- + Normally, the Newton-Cotes rules are used on smaller integration + regions and a composite rule is used to return the total integral. + + Examples + -------- + Compute the integral of sin(x) in [0, :math:`\pi`]: + + >>> from scipy.integrate import newton_cotes + >>> import numpy as np + >>> def f(x): + ... return np.sin(x) + >>> a = 0 + >>> b = np.pi + >>> exact = 2 + >>> for N in [2, 4, 6, 8, 10]: + ... x = np.linspace(a, b, N + 1) + ... an, B = newton_cotes(N, 1) + ... dx = (b - a) / N + ... quad = dx * np.sum(an * f(x)) + ... error = abs(quad - exact) + ... print('{:2d} {:10.9f} {:.5e}'.format(N, quad, error)) + ... + 2 2.094395102 9.43951e-02 + 4 1.998570732 1.42927e-03 + 6 2.000017814 1.78136e-05 + 8 1.999999835 1.64725e-07 + 10 2.000000001 1.14677e-09 + + """ + try: + N = len(rn)-1 + if equal: + rn = np.arange(N+1) + elif np.all(np.diff(rn) == 1): + equal = 1 + except Exception: + N = rn + rn = np.arange(N+1) + equal = 1 + + if equal and N in _builtincoeffs: + na, da, vi, nb, db = _builtincoeffs[N] + an = na * np.array(vi, dtype=float) / da + return an, float(nb)/db + + if (rn[0] != 0) or (rn[-1] != N): + raise ValueError("The sample positions must start at 0" + " and end at N") + yi = rn / float(N) + ti = 2 * yi - 1 + nvec = np.arange(N+1) + C = ti ** nvec[:, np.newaxis] + Cinv = np.linalg.inv(C) + # improve precision of result + for i in range(2): + Cinv = 2*Cinv - Cinv.dot(C).dot(Cinv) + vec = 2.0 / (nvec[::2]+1) + ai = Cinv[:, ::2].dot(vec) * (N / 2.) + + if (N % 2 == 0) and equal: + BN = N/(N+3.) + power = N+2 + else: + BN = N/(N+2.) + power = N+1 + + BN = BN - np.dot(yi**power, ai) + p1 = power+1 + fac = power*math.log(N) - gammaln(p1) + fac = math.exp(fac) + return ai, BN*fac + + +def _qmc_quad_iv(func, a, b, n_points, n_estimates, qrng, log): + + # lazy import to avoid issues with partially-initialized submodule + if not hasattr(qmc_quad, 'qmc'): + from scipy import stats + qmc_quad.stats = stats + else: + stats = qmc_quad.stats + + if not callable(func): + message = "`func` must be callable." + raise TypeError(message) + + # a, b will be modified, so copy. Oh well if it's copied twice. + a = np.atleast_1d(a).copy() + b = np.atleast_1d(b).copy() + a, b = np.broadcast_arrays(a, b) + dim = a.shape[0] + + try: + func((a + b) / 2) + except Exception as e: + message = ("`func` must evaluate the integrand at points within " + "the integration range; e.g. `func( (a + b) / 2)` " + "must return the integrand at the centroid of the " + "integration volume.") + raise ValueError(message) from e + + try: + func(np.array([a, b]).T) + vfunc = func + except Exception as e: + message = ("Exception encountered when attempting vectorized call to " + f"`func`: {e}. For better performance, `func` should " + "accept two-dimensional array `x` with shape `(len(a), " + "n_points)` and return an array of the integrand value at " + "each of the `n_points.") + warnings.warn(message, stacklevel=3) + + def vfunc(x): + return np.apply_along_axis(func, axis=-1, arr=x) + + n_points_int = np.int64(n_points) + if n_points != n_points_int: + message = "`n_points` must be an integer." + raise TypeError(message) + + n_estimates_int = np.int64(n_estimates) + if n_estimates != n_estimates_int: + message = "`n_estimates` must be an integer." + raise TypeError(message) + + if qrng is None: + qrng = stats.qmc.Halton(dim) + elif not isinstance(qrng, stats.qmc.QMCEngine): + message = "`qrng` must be an instance of scipy.stats.qmc.QMCEngine." + raise TypeError(message) + + if qrng.d != a.shape[0]: + message = ("`qrng` must be initialized with dimensionality equal to " + "the number of variables in `a`, i.e., " + "`qrng.random().shape[-1]` must equal `a.shape[0]`.") + raise ValueError(message) + + rng_seed = getattr(qrng, 'rng_seed', None) + rng = stats._qmc.check_random_state(rng_seed) + + if log not in {True, False}: + message = "`log` must be boolean (`True` or `False`)." + raise TypeError(message) + + return (vfunc, a, b, n_points_int, n_estimates_int, qrng, rng, log, stats) + + +QMCQuadResult = namedtuple('QMCQuadResult', ['integral', 'standard_error']) + + +def qmc_quad(func, a, b, *, n_estimates=8, n_points=1024, qrng=None, + log=False): + """ + Compute an integral in N-dimensions using Quasi-Monte Carlo quadrature. + + Parameters + ---------- + func : callable + The integrand. Must accept a single argument ``x``, an array which + specifies the point(s) at which to evaluate the scalar-valued + integrand, and return the value(s) of the integrand. + For efficiency, the function should be vectorized to accept an array of + shape ``(d, n_points)``, where ``d`` is the number of variables (i.e. + the dimensionality of the function domain) and `n_points` is the number + of quadrature points, and return an array of shape ``(n_points,)``, + the integrand at each quadrature point. + a, b : array-like + One-dimensional arrays specifying the lower and upper integration + limits, respectively, of each of the ``d`` variables. + n_estimates, n_points : int, optional + `n_estimates` (default: 8) statistically independent QMC samples, each + of `n_points` (default: 1024) points, will be generated by `qrng`. + The total number of points at which the integrand `func` will be + evaluated is ``n_points * n_estimates``. See Notes for details. + qrng : `~scipy.stats.qmc.QMCEngine`, optional + An instance of the QMCEngine from which to sample QMC points. + The QMCEngine must be initialized to a number of dimensions ``d`` + corresponding with the number of variables ``x1, ..., xd`` passed to + `func`. + The provided QMCEngine is used to produce the first integral estimate. + If `n_estimates` is greater than one, additional QMCEngines are + spawned from the first (with scrambling enabled, if it is an option.) + If a QMCEngine is not provided, the default `scipy.stats.qmc.Halton` + will be initialized with the number of dimensions determine from + the length of `a`. + log : boolean, default: False + When set to True, `func` returns the log of the integrand, and + the result object contains the log of the integral. + + Returns + ------- + result : object + A result object with attributes: + + integral : float + The estimate of the integral. + standard_error : + The error estimate. See Notes for interpretation. + + Notes + ----- + Values of the integrand at each of the `n_points` points of a QMC sample + are used to produce an estimate of the integral. This estimate is drawn + from a population of possible estimates of the integral, the value of + which we obtain depends on the particular points at which the integral + was evaluated. We perform this process `n_estimates` times, each time + evaluating the integrand at different scrambled QMC points, effectively + drawing i.i.d. random samples from the population of integral estimates. + The sample mean :math:`m` of these integral estimates is an + unbiased estimator of the true value of the integral, and the standard + error of the mean :math:`s` of these estimates may be used to generate + confidence intervals using the t distribution with ``n_estimates - 1`` + degrees of freedom. Perhaps counter-intuitively, increasing `n_points` + while keeping the total number of function evaluation points + ``n_points * n_estimates`` fixed tends to reduce the actual error, whereas + increasing `n_estimates` tends to decrease the error estimate. + + Examples + -------- + QMC quadrature is particularly useful for computing integrals in higher + dimensions. An example integrand is the probability density function + of a multivariate normal distribution. + + >>> import numpy as np + >>> from scipy import stats + >>> dim = 8 + >>> mean = np.zeros(dim) + >>> cov = np.eye(dim) + >>> def func(x): + ... # `multivariate_normal` expects the _last_ axis to correspond with + ... # the dimensionality of the space, so `x` must be transposed + ... return stats.multivariate_normal.pdf(x.T, mean, cov) + + To compute the integral over the unit hypercube: + + >>> from scipy.integrate import qmc_quad + >>> a = np.zeros(dim) + >>> b = np.ones(dim) + >>> rng = np.random.default_rng() + >>> qrng = stats.qmc.Halton(d=dim, seed=rng) + >>> n_estimates = 8 + >>> res = qmc_quad(func, a, b, n_estimates=n_estimates, qrng=qrng) + >>> res.integral, res.standard_error + (0.00018429555666024108, 1.0389431116001344e-07) + + A two-sided, 99% confidence interval for the integral may be estimated + as: + + >>> t = stats.t(df=n_estimates-1, loc=res.integral, + ... scale=res.standard_error) + >>> t.interval(0.99) + (0.0001839319802536469, 0.00018465913306683527) + + Indeed, the value reported by `scipy.stats.multivariate_normal` is + within this range. + + >>> stats.multivariate_normal.cdf(b, mean, cov, lower_limit=a) + 0.00018430867675187443 + + """ + args = _qmc_quad_iv(func, a, b, n_points, n_estimates, qrng, log) + func, a, b, n_points, n_estimates, qrng, rng, log, stats = args + + def sum_product(integrands, dA, log=False): + if log: + return logsumexp(integrands) + np.log(dA) + else: + return np.sum(integrands * dA) + + def mean(estimates, log=False): + if log: + return logsumexp(estimates) - np.log(n_estimates) + else: + return np.mean(estimates) + + def std(estimates, m=None, ddof=0, log=False): + m = m or mean(estimates, log) + if log: + estimates, m = np.broadcast_arrays(estimates, m) + temp = np.vstack((estimates, m + np.pi * 1j)) + diff = logsumexp(temp, axis=0) + return np.real(0.5 * (logsumexp(2 * diff) + - np.log(n_estimates - ddof))) + else: + return np.std(estimates, ddof=ddof) + + def sem(estimates, m=None, s=None, log=False): + m = m or mean(estimates, log) + s = s or std(estimates, m, ddof=1, log=log) + if log: + return s - 0.5*np.log(n_estimates) + else: + return s / np.sqrt(n_estimates) + + # The sign of the integral depends on the order of the limits. Fix this by + # ensuring that lower bounds are indeed lower and setting sign of resulting + # integral manually + if np.any(a == b): + message = ("A lower limit was equal to an upper limit, so the value " + "of the integral is zero by definition.") + warnings.warn(message, stacklevel=2) + return QMCQuadResult(-np.inf if log else 0, 0) + + i_swap = b < a + sign = (-1)**(i_swap.sum(axis=-1)) # odd # of swaps -> negative + a[i_swap], b[i_swap] = b[i_swap], a[i_swap] + + A = np.prod(b - a) + dA = A / n_points + + estimates = np.zeros(n_estimates) + rngs = _rng_spawn(qrng.rng, n_estimates) + for i in range(n_estimates): + # Generate integral estimate + sample = qrng.random(n_points) + # The rationale for transposing is that this allows users to easily + # unpack `x` into separate variables, if desired. This is consistent + # with the `xx` array passed into the `scipy.integrate.nquad` `func`. + x = stats.qmc.scale(sample, a, b).T # (n_dim, n_points) + integrands = func(x) + estimates[i] = sum_product(integrands, dA, log) + + # Get a new, independently-scrambled QRNG for next time + qrng = type(qrng)(seed=rngs[i], **qrng._init_quad) + + integral = mean(estimates, log) + standard_error = sem(estimates, m=integral, log=log) + integral = integral + np.pi*1j if (log and sign < 0) else integral*sign + return QMCQuadResult(integral, standard_error) diff --git a/shared/package-files/ea/eaee12e055824283c0868641e12d92ababe593c0683cb6399eb60ca9eadb642e/model.pt b/shared/package-files/ea/eaee12e055824283c0868641e12d92ababe593c0683cb6399eb60ca9eadb642e/model.pt new file mode 100644 index 0000000000000000000000000000000000000000..172a3dc790a7cff2bf9cc5b3dcb35aa019cae15b --- /dev/null +++ b/shared/package-files/ea/eaee12e055824283c0868641e12d92ababe593c0683cb6399eb60ca9eadb642e/model.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eaee12e055824283c0868641e12d92ababe593c0683cb6399eb60ca9eadb642e +size 2236623714 diff --git a/shared/package-files/ea/eaf0e2c2edf67ac17b6d6f5e0186cc988b430bf2c335d8a03d73232f51fd65e1/blob b/shared/package-files/ea/eaf0e2c2edf67ac17b6d6f5e0186cc988b430bf2c335d8a03d73232f51fd65e1/blob new file mode 100644 index 0000000000000000000000000000000000000000..810e9052c2b33af03f83ffd402ce5b43b3dbb0eb --- /dev/null +++ b/shared/package-files/ea/eaf0e2c2edf67ac17b6d6f5e0186cc988b430bf2c335d8a03d73232f51fd65e1/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eaf0e2c2edf67ac17b6d6f5e0186cc988b430bf2c335d8a03d73232f51fd65e1 +size 618920 diff --git a/shared/package-files/ea/eaf2bb73335207f2ab5b1dab649cc9d69c8e73bdd0d3b84081f2c1e48b540a75/blob b/shared/package-files/ea/eaf2bb73335207f2ab5b1dab649cc9d69c8e73bdd0d3b84081f2c1e48b540a75/blob new file mode 100644 index 0000000000000000000000000000000000000000..bfac5f814501767bd311084af41edddaf1db7b71 --- /dev/null +++ b/shared/package-files/ea/eaf2bb73335207f2ab5b1dab649cc9d69c8e73bdd0d3b84081f2c1e48b540a75/blob @@ -0,0 +1,155 @@ +"""Utility to compare (NumPy) version strings. + +The NumpyVersion class allows properly comparing numpy version strings. +The LooseVersion and StrictVersion classes that distutils provides don't +work; they don't recognize anything like alpha/beta/rc/dev versions. + +""" +import re + + +__all__ = ['NumpyVersion'] + + +class NumpyVersion(): + """Parse and compare numpy version strings. + + NumPy has the following versioning scheme (numbers given are examples; they + can be > 9 in principle): + + - Released version: '1.8.0', '1.8.1', etc. + - Alpha: '1.8.0a1', '1.8.0a2', etc. + - Beta: '1.8.0b1', '1.8.0b2', etc. + - Release candidates: '1.8.0rc1', '1.8.0rc2', etc. + - Development versions: '1.8.0.dev-f1234afa' (git commit hash appended) + - Development versions after a1: '1.8.0a1.dev-f1234afa', + '1.8.0b2.dev-f1234afa', + '1.8.1rc1.dev-f1234afa', etc. + - Development versions (no git hash available): '1.8.0.dev-Unknown' + + Comparing needs to be done against a valid version string or other + `NumpyVersion` instance. Note that all development versions of the same + (pre-)release compare equal. + + .. versionadded:: 1.9.0 + + Parameters + ---------- + vstring : str + NumPy version string (``np.__version__``). + + Examples + -------- + >>> from numpy.lib import NumpyVersion + >>> if NumpyVersion(np.__version__) < '1.7.0': + ... print('skip') + >>> # skip + + >>> NumpyVersion('1.7') # raises ValueError, add ".0" + Traceback (most recent call last): + ... + ValueError: Not a valid numpy version string + + """ + + def __init__(self, vstring): + self.vstring = vstring + ver_main = re.match(r'\d+\.\d+\.\d+', vstring) + if not ver_main: + raise ValueError("Not a valid numpy version string") + + self.version = ver_main.group() + self.major, self.minor, self.bugfix = [int(x) for x in + self.version.split('.')] + if len(vstring) == ver_main.end(): + self.pre_release = 'final' + else: + alpha = re.match(r'a\d', vstring[ver_main.end():]) + beta = re.match(r'b\d', vstring[ver_main.end():]) + rc = re.match(r'rc\d', vstring[ver_main.end():]) + pre_rel = [m for m in [alpha, beta, rc] if m is not None] + if pre_rel: + self.pre_release = pre_rel[0].group() + else: + self.pre_release = '' + + self.is_devversion = bool(re.search(r'.dev', vstring)) + + def _compare_version(self, other): + """Compare major.minor.bugfix""" + if self.major == other.major: + if self.minor == other.minor: + if self.bugfix == other.bugfix: + vercmp = 0 + elif self.bugfix > other.bugfix: + vercmp = 1 + else: + vercmp = -1 + elif self.minor > other.minor: + vercmp = 1 + else: + vercmp = -1 + elif self.major > other.major: + vercmp = 1 + else: + vercmp = -1 + + return vercmp + + def _compare_pre_release(self, other): + """Compare alpha/beta/rc/final.""" + if self.pre_release == other.pre_release: + vercmp = 0 + elif self.pre_release == 'final': + vercmp = 1 + elif other.pre_release == 'final': + vercmp = -1 + elif self.pre_release > other.pre_release: + vercmp = 1 + else: + vercmp = -1 + + return vercmp + + def _compare(self, other): + if not isinstance(other, (str, NumpyVersion)): + raise ValueError("Invalid object to compare with NumpyVersion.") + + if isinstance(other, str): + other = NumpyVersion(other) + + vercmp = self._compare_version(other) + if vercmp == 0: + # Same x.y.z version, check for alpha/beta/rc + vercmp = self._compare_pre_release(other) + if vercmp == 0: + # Same version and same pre-release, check if dev version + if self.is_devversion is other.is_devversion: + vercmp = 0 + elif self.is_devversion: + vercmp = -1 + else: + vercmp = 1 + + return vercmp + + def __lt__(self, other): + return self._compare(other) < 0 + + def __le__(self, other): + return self._compare(other) <= 0 + + def __eq__(self, other): + return self._compare(other) == 0 + + def __ne__(self, other): + return self._compare(other) != 0 + + def __gt__(self, other): + return self._compare(other) > 0 + + def __ge__(self, other): + return self._compare(other) >= 0 + + def __repr__(self): + return "NumpyVersion(%s)" % self.vstring diff --git a/shared/package-files/ea/eaf2e90b278a9c05851197a2ee5d988a154b434ad27b03b5849056b7b0397f24/blob b/shared/package-files/ea/eaf2e90b278a9c05851197a2ee5d988a154b434ad27b03b5849056b7b0397f24/blob new file mode 100644 index 0000000000000000000000000000000000000000..fa2ae866beeb7c36a585eaf9eb04df31a2f2a6c3 --- /dev/null +++ b/shared/package-files/ea/eaf2e90b278a9c05851197a2ee5d988a154b434ad27b03b5849056b7b0397f24/blob @@ -0,0 +1,518 @@ +import os +from os.path import join +import sys + +import numpy as np +from numpy.testing import (assert_equal, assert_allclose, assert_array_equal, + assert_raises) +import pytest + +from numpy.random import ( + Generator, MT19937, PCG64, PCG64DXSM, Philox, RandomState, SeedSequence, + SFC64, default_rng +) +from numpy.random._common import interface + +try: + import cffi # noqa: F401 + + MISSING_CFFI = False +except ImportError: + MISSING_CFFI = True + +try: + import ctypes # noqa: F401 + + MISSING_CTYPES = False +except ImportError: + MISSING_CTYPES = False + +if sys.flags.optimize > 1: + # no docstrings present to inspect when PYTHONOPTIMIZE/Py_OptimizeFlag > 1 + # cffi cannot succeed + MISSING_CFFI = True + + +pwd = os.path.dirname(os.path.abspath(__file__)) + + +def assert_state_equal(actual, target): + for key in actual: + if isinstance(actual[key], dict): + assert_state_equal(actual[key], target[key]) + elif isinstance(actual[key], np.ndarray): + assert_array_equal(actual[key], target[key]) + else: + assert actual[key] == target[key] + + +def uint32_to_float32(u): + return ((u >> np.uint32(8)) * (1.0 / 2**24)).astype(np.float32) + + +def uniform32_from_uint64(x): + x = np.uint64(x) + upper = np.array(x >> np.uint64(32), dtype=np.uint32) + lower = np.uint64(0xffffffff) + lower = np.array(x & lower, dtype=np.uint32) + joined = np.column_stack([lower, upper]).ravel() + return uint32_to_float32(joined) + + +def uniform32_from_uint53(x): + x = np.uint64(x) >> np.uint64(16) + x = np.uint32(x & np.uint64(0xffffffff)) + return uint32_to_float32(x) + + +def uniform32_from_uint32(x): + return uint32_to_float32(x) + + +def uniform32_from_uint(x, bits): + if bits == 64: + return uniform32_from_uint64(x) + elif bits == 53: + return uniform32_from_uint53(x) + elif bits == 32: + return uniform32_from_uint32(x) + else: + raise NotImplementedError + + +def uniform_from_uint(x, bits): + if bits in (64, 63, 53): + return uniform_from_uint64(x) + elif bits == 32: + return uniform_from_uint32(x) + + +def uniform_from_uint64(x): + return (x >> np.uint64(11)) * (1.0 / 9007199254740992.0) + + +def uniform_from_uint32(x): + out = np.empty(len(x) // 2) + for i in range(0, len(x), 2): + a = x[i] >> 5 + b = x[i + 1] >> 6 + out[i // 2] = (a * 67108864.0 + b) / 9007199254740992.0 + return out + + +def uniform_from_dsfmt(x): + return x.view(np.double) - 1.0 + + +def gauss_from_uint(x, n, bits): + if bits in (64, 63): + doubles = uniform_from_uint64(x) + elif bits == 32: + doubles = uniform_from_uint32(x) + else: # bits == 'dsfmt' + doubles = uniform_from_dsfmt(x) + gauss = [] + loc = 0 + x1 = x2 = 0.0 + while len(gauss) < n: + r2 = 2 + while r2 >= 1.0 or r2 == 0.0: + x1 = 2.0 * doubles[loc] - 1.0 + x2 = 2.0 * doubles[loc + 1] - 1.0 + r2 = x1 * x1 + x2 * x2 + loc += 2 + + f = np.sqrt(-2.0 * np.log(r2) / r2) + gauss.append(f * x2) + gauss.append(f * x1) + + return gauss[:n] + + +def test_seedsequence(): + from numpy.random.bit_generator import (ISeedSequence, + ISpawnableSeedSequence, + SeedlessSeedSequence) + + s1 = SeedSequence(range(10), spawn_key=(1, 2), pool_size=6) + s1.spawn(10) + s2 = SeedSequence(**s1.state) + assert_equal(s1.state, s2.state) + assert_equal(s1.n_children_spawned, s2.n_children_spawned) + + # The interfaces cannot be instantiated themselves. + assert_raises(TypeError, ISeedSequence) + assert_raises(TypeError, ISpawnableSeedSequence) + dummy = SeedlessSeedSequence() + assert_raises(NotImplementedError, dummy.generate_state, 10) + assert len(dummy.spawn(10)) == 10 + + +def test_generator_spawning(): + """ Test spawning new generators and bit_generators directly. + """ + rng = np.random.default_rng() + seq = rng.bit_generator.seed_seq + new_ss = seq.spawn(5) + expected_keys = [seq.spawn_key + (i,) for i in range(5)] + assert [c.spawn_key for c in new_ss] == expected_keys + + new_bgs = rng.bit_generator.spawn(5) + expected_keys = [seq.spawn_key + (i,) for i in range(5, 10)] + assert [bg.seed_seq.spawn_key for bg in new_bgs] == expected_keys + + new_rngs = rng.spawn(5) + expected_keys = [seq.spawn_key + (i,) for i in range(10, 15)] + found_keys = [rng.bit_generator.seed_seq.spawn_key for rng in new_rngs] + assert found_keys == expected_keys + + # Sanity check that streams are actually different: + assert new_rngs[0].uniform() != new_rngs[1].uniform() + + +def test_non_spawnable(): + from numpy.random.bit_generator import ISeedSequence + + class FakeSeedSequence: + def generate_state(self, n_words, dtype=np.uint32): + return np.zeros(n_words, dtype=dtype) + + ISeedSequence.register(FakeSeedSequence) + + rng = np.random.default_rng(FakeSeedSequence()) + + with pytest.raises(TypeError, match="The underlying SeedSequence"): + rng.spawn(5) + + with pytest.raises(TypeError, match="The underlying SeedSequence"): + rng.bit_generator.spawn(5) + + +class Base: + dtype = np.uint64 + data2 = data1 = {} + + @classmethod + def setup_class(cls): + cls.bit_generator = PCG64 + cls.bits = 64 + cls.dtype = np.uint64 + cls.seed_error_type = TypeError + cls.invalid_init_types = [] + cls.invalid_init_values = [] + + @classmethod + def _read_csv(cls, filename): + with open(filename) as csv: + seed = csv.readline() + seed = seed.split(',') + seed = [int(s.strip(), 0) for s in seed[1:]] + data = [] + for line in csv: + data.append(int(line.split(',')[-1].strip(), 0)) + return {'seed': seed, 'data': np.array(data, dtype=cls.dtype)} + + def test_raw(self): + bit_generator = self.bit_generator(*self.data1['seed']) + uints = bit_generator.random_raw(1000) + assert_equal(uints, self.data1['data']) + + bit_generator = self.bit_generator(*self.data1['seed']) + uints = bit_generator.random_raw() + assert_equal(uints, self.data1['data'][0]) + + bit_generator = self.bit_generator(*self.data2['seed']) + uints = bit_generator.random_raw(1000) + assert_equal(uints, self.data2['data']) + + def test_random_raw(self): + bit_generator = self.bit_generator(*self.data1['seed']) + uints = bit_generator.random_raw(output=False) + assert uints is None + uints = bit_generator.random_raw(1000, output=False) + assert uints is None + + def test_gauss_inv(self): + n = 25 + rs = RandomState(self.bit_generator(*self.data1['seed'])) + gauss = rs.standard_normal(n) + assert_allclose(gauss, + gauss_from_uint(self.data1['data'], n, self.bits)) + + rs = RandomState(self.bit_generator(*self.data2['seed'])) + gauss = rs.standard_normal(25) + assert_allclose(gauss, + gauss_from_uint(self.data2['data'], n, self.bits)) + + def test_uniform_double(self): + rs = Generator(self.bit_generator(*self.data1['seed'])) + vals = uniform_from_uint(self.data1['data'], self.bits) + uniforms = rs.random(len(vals)) + assert_allclose(uniforms, vals) + assert_equal(uniforms.dtype, np.float64) + + rs = Generator(self.bit_generator(*self.data2['seed'])) + vals = uniform_from_uint(self.data2['data'], self.bits) + uniforms = rs.random(len(vals)) + assert_allclose(uniforms, vals) + assert_equal(uniforms.dtype, np.float64) + + def test_uniform_float(self): + rs = Generator(self.bit_generator(*self.data1['seed'])) + vals = uniform32_from_uint(self.data1['data'], self.bits) + uniforms = rs.random(len(vals), dtype=np.float32) + assert_allclose(uniforms, vals) + assert_equal(uniforms.dtype, np.float32) + + rs = Generator(self.bit_generator(*self.data2['seed'])) + vals = uniform32_from_uint(self.data2['data'], self.bits) + uniforms = rs.random(len(vals), dtype=np.float32) + assert_allclose(uniforms, vals) + assert_equal(uniforms.dtype, np.float32) + + def test_repr(self): + rs = Generator(self.bit_generator(*self.data1['seed'])) + assert 'Generator' in repr(rs) + assert f'{id(rs):#x}'.upper().replace('X', 'x') in repr(rs) + + def test_str(self): + rs = Generator(self.bit_generator(*self.data1['seed'])) + assert 'Generator' in str(rs) + assert str(self.bit_generator.__name__) in str(rs) + assert f'{id(rs):#x}'.upper().replace('X', 'x') not in str(rs) + + def test_pickle(self): + import pickle + + bit_generator = self.bit_generator(*self.data1['seed']) + state = bit_generator.state + bitgen_pkl = pickle.dumps(bit_generator) + reloaded = pickle.loads(bitgen_pkl) + reloaded_state = reloaded.state + assert_array_equal(Generator(bit_generator).standard_normal(1000), + Generator(reloaded).standard_normal(1000)) + assert bit_generator is not reloaded + assert_state_equal(reloaded_state, state) + + ss = SeedSequence(100) + aa = pickle.loads(pickle.dumps(ss)) + assert_equal(ss.state, aa.state) + + def test_invalid_state_type(self): + bit_generator = self.bit_generator(*self.data1['seed']) + with pytest.raises(TypeError): + bit_generator.state = {'1'} + + def test_invalid_state_value(self): + bit_generator = self.bit_generator(*self.data1['seed']) + state = bit_generator.state + state['bit_generator'] = 'otherBitGenerator' + with pytest.raises(ValueError): + bit_generator.state = state + + def test_invalid_init_type(self): + bit_generator = self.bit_generator + for st in self.invalid_init_types: + with pytest.raises(TypeError): + bit_generator(*st) + + def test_invalid_init_values(self): + bit_generator = self.bit_generator + for st in self.invalid_init_values: + with pytest.raises((ValueError, OverflowError)): + bit_generator(*st) + + def test_benchmark(self): + bit_generator = self.bit_generator(*self.data1['seed']) + bit_generator._benchmark(1) + bit_generator._benchmark(1, 'double') + with pytest.raises(ValueError): + bit_generator._benchmark(1, 'int32') + + @pytest.mark.skipif(MISSING_CFFI, reason='cffi not available') + def test_cffi(self): + bit_generator = self.bit_generator(*self.data1['seed']) + cffi_interface = bit_generator.cffi + assert isinstance(cffi_interface, interface) + other_cffi_interface = bit_generator.cffi + assert other_cffi_interface is cffi_interface + + @pytest.mark.skipif(MISSING_CTYPES, reason='ctypes not available') + def test_ctypes(self): + bit_generator = self.bit_generator(*self.data1['seed']) + ctypes_interface = bit_generator.ctypes + assert isinstance(ctypes_interface, interface) + other_ctypes_interface = bit_generator.ctypes + assert other_ctypes_interface is ctypes_interface + + def test_getstate(self): + bit_generator = self.bit_generator(*self.data1['seed']) + state = bit_generator.state + alt_state = bit_generator.__getstate__() + assert_state_equal(state, alt_state) + + +class TestPhilox(Base): + @classmethod + def setup_class(cls): + cls.bit_generator = Philox + cls.bits = 64 + cls.dtype = np.uint64 + cls.data1 = cls._read_csv( + join(pwd, './data/philox-testset-1.csv')) + cls.data2 = cls._read_csv( + join(pwd, './data/philox-testset-2.csv')) + cls.seed_error_type = TypeError + cls.invalid_init_types = [] + cls.invalid_init_values = [(1, None, 1), (-1,), (None, None, 2 ** 257 + 1)] + + def test_set_key(self): + bit_generator = self.bit_generator(*self.data1['seed']) + state = bit_generator.state + keyed = self.bit_generator(counter=state['state']['counter'], + key=state['state']['key']) + assert_state_equal(bit_generator.state, keyed.state) + + +class TestPCG64(Base): + @classmethod + def setup_class(cls): + cls.bit_generator = PCG64 + cls.bits = 64 + cls.dtype = np.uint64 + cls.data1 = cls._read_csv(join(pwd, './data/pcg64-testset-1.csv')) + cls.data2 = cls._read_csv(join(pwd, './data/pcg64-testset-2.csv')) + cls.seed_error_type = (ValueError, TypeError) + cls.invalid_init_types = [(3.2,), ([None],), (1, None)] + cls.invalid_init_values = [(-1,)] + + def test_advance_symmetry(self): + rs = Generator(self.bit_generator(*self.data1['seed'])) + state = rs.bit_generator.state + step = -0x9e3779b97f4a7c150000000000000000 + rs.bit_generator.advance(step) + val_neg = rs.integers(10) + rs.bit_generator.state = state + rs.bit_generator.advance(2**128 + step) + val_pos = rs.integers(10) + rs.bit_generator.state = state + rs.bit_generator.advance(10 * 2**128 + step) + val_big = rs.integers(10) + assert val_neg == val_pos + assert val_big == val_pos + + def test_advange_large(self): + rs = Generator(self.bit_generator(38219308213743)) + pcg = rs.bit_generator + state = pcg.state["state"] + initial_state = 287608843259529770491897792873167516365 + assert state["state"] == initial_state + pcg.advance(sum(2**i for i in (96, 64, 32, 16, 8, 4, 2, 1))) + state = pcg.state["state"] + advanced_state = 135275564607035429730177404003164635391 + assert state["state"] == advanced_state + + +class TestPCG64DXSM(Base): + @classmethod + def setup_class(cls): + cls.bit_generator = PCG64DXSM + cls.bits = 64 + cls.dtype = np.uint64 + cls.data1 = cls._read_csv(join(pwd, './data/pcg64dxsm-testset-1.csv')) + cls.data2 = cls._read_csv(join(pwd, './data/pcg64dxsm-testset-2.csv')) + cls.seed_error_type = (ValueError, TypeError) + cls.invalid_init_types = [(3.2,), ([None],), (1, None)] + cls.invalid_init_values = [(-1,)] + + def test_advance_symmetry(self): + rs = Generator(self.bit_generator(*self.data1['seed'])) + state = rs.bit_generator.state + step = -0x9e3779b97f4a7c150000000000000000 + rs.bit_generator.advance(step) + val_neg = rs.integers(10) + rs.bit_generator.state = state + rs.bit_generator.advance(2**128 + step) + val_pos = rs.integers(10) + rs.bit_generator.state = state + rs.bit_generator.advance(10 * 2**128 + step) + val_big = rs.integers(10) + assert val_neg == val_pos + assert val_big == val_pos + + def test_advange_large(self): + rs = Generator(self.bit_generator(38219308213743)) + pcg = rs.bit_generator + state = pcg.state + initial_state = 287608843259529770491897792873167516365 + assert state["state"]["state"] == initial_state + pcg.advance(sum(2**i for i in (96, 64, 32, 16, 8, 4, 2, 1))) + state = pcg.state["state"] + advanced_state = 277778083536782149546677086420637664879 + assert state["state"] == advanced_state + + +class TestMT19937(Base): + @classmethod + def setup_class(cls): + cls.bit_generator = MT19937 + cls.bits = 32 + cls.dtype = np.uint32 + cls.data1 = cls._read_csv(join(pwd, './data/mt19937-testset-1.csv')) + cls.data2 = cls._read_csv(join(pwd, './data/mt19937-testset-2.csv')) + cls.seed_error_type = ValueError + cls.invalid_init_types = [] + cls.invalid_init_values = [(-1,)] + + def test_seed_float_array(self): + assert_raises(TypeError, self.bit_generator, np.array([np.pi])) + assert_raises(TypeError, self.bit_generator, np.array([-np.pi])) + assert_raises(TypeError, self.bit_generator, np.array([np.pi, -np.pi])) + assert_raises(TypeError, self.bit_generator, np.array([0, np.pi])) + assert_raises(TypeError, self.bit_generator, [np.pi]) + assert_raises(TypeError, self.bit_generator, [0, np.pi]) + + def test_state_tuple(self): + rs = Generator(self.bit_generator(*self.data1['seed'])) + bit_generator = rs.bit_generator + state = bit_generator.state + desired = rs.integers(2 ** 16) + tup = (state['bit_generator'], state['state']['key'], + state['state']['pos']) + bit_generator.state = tup + actual = rs.integers(2 ** 16) + assert_equal(actual, desired) + tup = tup + (0, 0.0) + bit_generator.state = tup + actual = rs.integers(2 ** 16) + assert_equal(actual, desired) + + +class TestSFC64(Base): + @classmethod + def setup_class(cls): + cls.bit_generator = SFC64 + cls.bits = 64 + cls.dtype = np.uint64 + cls.data1 = cls._read_csv( + join(pwd, './data/sfc64-testset-1.csv')) + cls.data2 = cls._read_csv( + join(pwd, './data/sfc64-testset-2.csv')) + cls.seed_error_type = (ValueError, TypeError) + cls.invalid_init_types = [(3.2,), ([None],), (1, None)] + cls.invalid_init_values = [(-1,)] + + +class TestDefaultRNG: + def test_seed(self): + for args in [(), (None,), (1234,), ([1234, 5678],)]: + rg = default_rng(*args) + assert isinstance(rg.bit_generator, PCG64) + + def test_passthrough(self): + bg = Philox() + rg = default_rng(bg) + assert rg.bit_generator is bg + rg2 = default_rng(rg) + assert rg2 is rg + assert rg2.bit_generator is bg diff --git a/shared/package-files/ea/eaf50e80965d4ef58d80b3b8b3301c3b9e06473e1c3399ad26e972c9e5beb236/blob b/shared/package-files/ea/eaf50e80965d4ef58d80b3b8b3301c3b9e06473e1c3399ad26e972c9e5beb236/blob new file mode 100644 index 0000000000000000000000000000000000000000..0eaf1492a857399a66187db290fa8863223fc5fe --- /dev/null +++ b/shared/package-files/ea/eaf50e80965d4ef58d80b3b8b3301c3b9e06473e1c3399ad26e972c9e5beb236/blob @@ -0,0 +1,22 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor & adaptive_avg_pool3d_backward_out_cpu(const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input); +TORCH_API at::Tensor & adaptive_avg_pool3d_backward_out_cuda(const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input); +} // namespace native +} // namespace at diff --git a/shared/package-files/ea/eaf9c403e9ad4ad474fad8fcd25d07f4f92b2188e9fb8ddc61303e897c5fdd8b/blob b/shared/package-files/ea/eaf9c403e9ad4ad474fad8fcd25d07f4f92b2188e9fb8ddc61303e897c5fdd8b/blob new file mode 100644 index 0000000000000000000000000000000000000000..a5cb4b2722ce246adcf5849897fdc53a303bf5d8 --- /dev/null +++ b/shared/package-files/ea/eaf9c403e9ad4ad474fad8fcd25d07f4f92b2188e9fb8ddc61303e897c5fdd8b/blob @@ -0,0 +1,37 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeMetaFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace at { +namespace meta { + +struct TORCH_API structured_isin_Tensor_Tensor : public at::impl::MetaBase { + + + void meta(const at::Tensor & elements, const at::Tensor & test_elements, bool assume_unique, bool invert); +}; +struct TORCH_API structured_isin_Tensor_Scalar : public at::impl::MetaBase { + + + void meta(const at::Tensor & elements, const at::Scalar & test_element, bool assume_unique, bool invert); +}; +struct TORCH_API structured_isin_Scalar_Tensor : public at::impl::MetaBase { + + + void meta(const at::Scalar & element, const at::Tensor & test_elements, bool assume_unique, bool invert); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/ea/eafa2bfdea846cc29c04b1247dac97cd5cf0c1fe4165c0af421159baa86fc8a5/blob b/shared/package-files/ea/eafa2bfdea846cc29c04b1247dac97cd5cf0c1fe4165c0af421159baa86fc8a5/blob new file mode 100644 index 0000000000000000000000000000000000000000..3c3844e69586d2f49377e77910627ee42fef9bb2 --- /dev/null +++ b/shared/package-files/ea/eafa2bfdea846cc29c04b1247dac97cd5cf0c1fe4165c0af421159baa86fc8a5/blob @@ -0,0 +1,28 @@ +import numpy as np +import pytest + +from pandas import ( + DataFrame, + NaT, + Series, + Timestamp, +) + + +@pytest.mark.parametrize( + "data,exp_size", + [ + # see gh-16362. + ([[NaT, "a", "b", 0], [NaT, "b", "c", 1]], 8), + ([[NaT, "a", 0], [NaT, "b", 1]], 6), + ], +) +def test_maybe_infer_to_datetimelike_df_construct(data, exp_size): + result = DataFrame(np.array(data)) + assert result.size == exp_size + + +def test_maybe_infer_to_datetimelike_ser_construct(): + # see gh-19671. + result = Series(["M1701", Timestamp("20130101")]) + assert result.dtype.kind == "O" diff --git a/shared/package-files/ea/eafa7e838e48e84a686bd5deee42705036083fe57fc28bfe8bae7295551b495d/blob b/shared/package-files/ea/eafa7e838e48e84a686bd5deee42705036083fe57fc28bfe8bae7295551b495d/blob new file mode 100644 index 0000000000000000000000000000000000000000..fc2c36d313bbc6b2654749ede93e29ec552b73bd --- /dev/null +++ b/shared/package-files/ea/eafa7e838e48e84a686bd5deee42705036083fe57fc28bfe8bae7295551b495d/blob @@ -0,0 +1,1274 @@ +import numpy as np + +from statsmodels.tools.tools import Bunch + +mpg_bs = Bunch() + +mpg_bs.smooth0 = Bunch() +mpg_bs.smooth0.term = "weight" +mpg_bs.smooth0.bs_dim = 12 +mpg_bs.smooth0.dim = 1 +mpg_bs.smooth0.p_order = np.array([ + 3, 2 + ]) +mpg_bs.smooth0.by = "NA" +mpg_bs.smooth0.label = "s(weight)" +mpg_bs.smooth0.sp = -1 +mpg_bs.smooth0.m = np.array([ + 3, 2 + ]) +mpg_bs.smooth0.knots = np.array([ + 1488, 1488, 1488, 1488, 1953.22222222, 2118.77777778, 2275, + 2383.88888889, 2515.55555556, 2757.33333333, 3016.44444444, + 3208.11111111, 4066, 4066, 4066, 4066 + ]) +mpg_bs.smooth0.rank = 10 +mpg_bs.smooth0.null_space_dim = 1 +mpg_bs.smooth0.df = 11 +mpg_bs.smooth0.S_scale = 2.44395544177397e-06 +mpg_bs.smooth0.vn = "weight" +mpg_bs.smooth0.first_para = 5 +mpg_bs.smooth0.last_para = 15 +mpg_bs.smooth0.S = np.array([ + 0.130569121544375, -0.0191732921244136, 0.0202548028417763, + 0.0393112950002946, 0.032061392663319, 0.0241651485426007, + 0.0238771778381105, 0.0389406835250852, 0.0171569521441248, + 0.00680570834700402, 0.00541920498010491, -0.0191732921244136, + 0.0631473273216884, -0.0592997810399249, 0.0178641542128365, + 0.00461438941034586, 0.00793912465273829, 0.00408821971418319, + -0.000681869049168392, 0.00213834646721613, 0.000935846814259467, + 0.000163463753965317, 0.0202548028417763, -0.0592997810399249, + 0.201022514824508, -0.186241322892132, 0.00284878067469136, + 0.0287314367063779, 0.00263260805442764, -0.00708846456492193, + 0.00065385484055723, 0.000395067932117418, -0.000586348849229599, + 0.0393112950002947, 0.0178641542128365, -0.186241322892132, + 0.479322071007576, -0.286380917395105, 0.0563704638942206, + 0.0348887744557148, 0.0255203052273876, 0.0138979985789615, + 0.00560832050247454, 0.00383270204450356, 0.032061392663319, + 0.00461438941034587, 0.00284878067469137, -0.286380917395105, + 0.414581586658592, -0.181289913269406, -0.00412646444222532, + -0.00354719180127285, -0.00206283566879658, -0.000685858743449883, + -0.00142523589453221, 0.0241651485426007, 0.00793912465273829, + 0.0287314367063779, 0.0563704638942206, -0.181289913269406, + 0.213321319885371, -0.0483506678191679, 0.0110304252072989, + 0.0122299348640366, 0.00357726593043956, 0.00234383478372281, + 0.0238771778381105, 0.00408821971418319, 0.00263260805442764, + 0.0348887744557148, -0.00412646444222533, -0.0483506678191679, + 0.0999220996092033, -0.0356092452156359, 0.00921547832469341, + 0.00389860712399989, 0.00147745030481206, 0.0389406835250852, + -0.000681869049168392, -0.00708846456492192, 0.0255203052273876, + -0.00354719180127286, 0.0110304252072989, -0.0356092452156359, + 0.0574427000604467, -0.0102653399490586, -0.000311188772793241, + 0.00285258581655637, 0.0171569521441248, 0.00213834646721613, + 0.000653854840557233, 0.0138979985789615, -0.00206283566879658, + 0.0122299348640366, 0.00921547832469341, -0.0102653399490586, + 0.0189789273643945, -0.0062453384832703, 0.00255839876648785, + 0.00680570834700402, 0.000935846814259467, 0.000395067932117419, + 0.00560832050247454, -0.000685858743449884, 0.00357726593043956, + 0.00389860712399989, -0.000311188772793241, -0.0062453384832703, + 0.0211496391608495, -0.0111654555301857, 0.00541920498010491, + 0.000163463753965317, -0.000586348849229599, 0.00383270204450356, + -0.00142523589453221, 0.00234383478372281, 0.00147745030481206, + 0.00285258581655637, 0.00255839876648785, -0.0111654555301857, + 0.00794139033444708 + ]).reshape(11, 11, order="F") + +mpg_bs.coefficients = np.array([ + 29.6272774569595, -6.21365498504518, 1.43986598470837, 1.01128095138012, + 20.1053719083286, -1.26007449980292, -5.26871981200625, + -4.544036357677, -7.60063071956733, -5.01036711884368, + -6.96226144900638, -9.06722069409647, -8.81829781369916, + -7.9145836553663, -6.28068941724657, 5.09307848346347, + 1.90848821039499, -0.646225516186639, -1.50240395085899, + -4.19244286007642, -5.72993924243941, -6.83323296859843, + -5.77088950575513, -4.29112523442438 + ]) +mpg_bs.fitted_values = np.array([ + 21.9396113442978, 21.9396113442978, 18.7594768791121, 23.978775547494, + 19.6605284085114, 22.5415570425591, 21.4364029092864, 21.5001397125411, + 19.345544773382, 17.3284985371825, 23.0829354555269, 23.0829354555269, + 20.5257074462847, 20.350418275392, 20.0920273672739, 16.3475493433762, + 15.2683918200041, 14.6016645854518, 48.1414677548395, 34.6770647570973, + 33.3220963193152, 34.9078179723597, 34.9078179723597, 25.7413956426768, + 31.8998747894453, 31.4406608644666, 31.4406608644666, 25.4076816004152, + 24.637322541799, 19.5423694752458, 43.7120662014648, 36.1794319009933, + 37.8600814894106, 31.3973345386248, 30.9527603762328, 29.8740452948944, + 29.6825700516209, 26.8853631419929, 26.3600803699054, 26.1773024038522, + 25.3856227340742, 23.3020193188726, 24.7100852851954, 26.4172597325081, + 34.6770647570973, 33.3220963193152, 23.0296498930938, 14.7476201253168, + 14.7476201253168, 14.0557212409125, 34.34782143196, 33.965299405798, + 33.7800699350403, 32.4689563918131, 32.329358068477, 23.1906404151376, + 23.1906404151376, 23.1512875039068, 20.6941238423555, 25.5363151316018, + 25.3886549365523, 25.5363151316018, 25.3886549365523, 34.4607486893619, + 25.3326646650999, 20.7768158749875, 31.8441811103844, 23.0217104934054, + 22.4301358955383, 23.1106217353394, 22.4200843547568, 14.7491664060278, + 14.8191667947128, 14.012803756677, 13.9581303982076, 18.1760880728356, + 33.3190101477328, 32.4975851853098, 31.1829311245072, 25.6555703896226, + 22.6046524037776, 25.6230700315092, 19.5479517982215, 19.6165588348237, + 19.6186479966108, 25.1994604891903, 24.8987688972877, 22.3628638356355, + 22.3628638356355, 34.2300125601631, 39.2885271153262, 33.1621106074804, + 32.5172901213345, 30.742747639841, 32.1452590079292, 30.6934785442198, + 31.6517339944659, 30.5907093672281, 30.9641455088909, 24.6266167464042, + 24.9022880874316, 18.78153275305, 17.1521355867311, 19.0141306741668, + 18.231718904575, 16.8216593127165, 17.7202420891745, 22.0561680452922, + 27.2153336488053, 20.5096211586017, 25.567299743712, 21.9831410020533, + 26.7629956266796, 20.2961667790902, 25.2853678595518, 21.7669720922915, + 26.7629956266796, 18.4910047689371, 33.3190101477328, 25.7413956426768, + 31.8998747894453, 31.4406608644666, 29.7789375739066, 24.637322541799, + 19.1142432042937, 19.2193336362723, 17.6365280620964, 17.6365280620964, + 17.579806089837, 15.8168257322192, 21.8960566915, 21.7074289198647, + 21.6525958338155, 21.4785952775663, 18.9756522798894, 18.9897722666541, + 30.4602645168316, 29.3805961723331, 27.2238321670602, 27.9694092954432, + 27.7274373142384, 24.7585135497211, 24.3629123288499, 21.0288767895242, + 26.8745904429808, 24.038604652806, 24.1756501080763, 20.4312780252146, + 32.4709598995115, 31.6700176166953, 31.9735144592214, 30.0023513412019, + 28.4464554097632, 25.3419682258173, 30.061904278659, 29.8978667285749, + 37.2387365989938, 37.2387365989938, 29.9813024611395, 29.8303048561215, + 29.7392162621016, 29.1611058213974, 28.9573381148783, 23.6489155519235, + 23.2515846177326, 21.6472193877583, 21.6596390100383, 21.6094248571684, + 20.9701064457552, 20.8066296061343, 20.6663348110776, 25.161054576378, + 33.0089371917933, 24.3712852430277, 24.3712852430277, 24.2659916432858, + 18.5704777306123, 18.4763039586984, 17.9248313386425, 17.7576418795043, + 38.0290768582748, 27.2115396047694, 37.9994882599177, 27.1914558802737, + 26.6487573286281, 34.7866136817861, 24.6246815506878, 26.2295193582235, + 26.4988154777346, 21.8800181352396, 33.5183981701922, 24.5373651901876, + 20.8017272859603, 20.6222748754003, 20.8111189208126, 20.5838532565161, + 18.3170655814092, 17.5023519244001, 20.8093138226564, 18.3617172827568, + 19.5919656568361, 26.0100107405061, 20.4732985733418 + ]) +mpg_bs.linear_predictors = mpg_bs.fitted_values +mpg_bs.deviance = 871.169775911354 +mpg_bs.null_deviance = 8721.1724137931 +mpg_bs.iter = 1 +mpg_bs.weights = np.array([ + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + ]) +mpg_bs.prior_weights = np.array([ + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + ]) +mpg_bs.df_null = 202 +mpg_bs.y = np.array([ + 21, 21, 19, 24, 18, 19, 19, 19, 17, 16, 23, 23, 21, 21, 20, 16, 16, 15, + 47, 38, 38, 37, 31, 24, 31, 31, 31, 24, 24, 19, 49, 31, 38, 30, 30, 30, + 30, 27, 27, 27, 27, 24, 25, 24, 38, 38, 24, 15, 15, 13, 30, 31, 31, 31, + 31, 17, 17, 17, 16, 26, 26, 26, 26, 36, 26, 19, 31, 22, 22, 22, 22, 16, + 16, 14, 14, 19, 37, 31, 31, 24, 23, 25, 19, 19, 19, 25, 25, 23, 23, 31, + 45, 31, 31, 31, 31, 31, 31, 31, 31, 27, 27, 17, 17, 19, 19, 17, 19, 19, + 28, 19, 25, 19, 28, 19, 25, 19, 28, 18, 37, 24, 31, 31, 31, 24, 19, 19, + 17, 17, 17, 17, 21, 21, 21, 21, 19, 19, 31, 26, 26, 32, 28, 26, 24, 24, + 28, 25, 23, 23, 35, 31, 31, 31, 27, 27, 30, 30, 34, 38, 38, 28, 28, 29, + 29, 26, 26, 24, 24, 24, 24, 24, 24, 29, 30, 27, 27, 27, 20, 19, 20, 19, + 37, 27, 37, 27, 27, 37, 26, 24, 24, 19, 33, 25, 23, 23, 24, 24, 17, 17, + 23, 19, 18, 26, 19 + ]) +mpg_bs.residuals = mpg_bs.y - mpg_bs.fitted_values +mpg_bs.sig2 = 4.70648213227865 +mpg_bs.edf_all = np.array([ + 0.999999999999898, 1.00000000000005, 1.00000000000003, 1.00000000000002, + 0.715182726327133, 0.945523457125076, 0.933952133938362, + 0.910787981046657, 0.918439669310707, 0.936922915439925, + 0.967620005020078, 0.978502846618072, 0.979593620228742, + 0.973114724412765, 0.993928896515985, 0.206529848573726, + 0.134722764346217, 0.130032558435079, 0.214058208629181, + 0.428628830751172, 0.480753053928721, 0.728730191076721, + 0.464984912297227, 0.858004843431828 + ]) +mpg_bs.edf1 = np.array([ + 0.999999999999765, 1.00000000000012, 1.00000000000008, 1.00000000000005, + 0.895328939039617, 0.985281018312391, 0.980485303917254, + 0.985115307594987, 0.979973329752608, 0.991029113855046, + 0.996293301947028, 0.996456521529546, 0.997881056094132, + 0.998369079216076, 0.999638164901435, 0.263857404503542, + 0.167489975859197, 0.241183045516588, 0.33714799512247, + 0.51312433111897, 0.537892914498989, 0.811390270624644, + 0.600430783273412, 0.922162336898961 + ]) +mpg_bs.hat = np.array([ + 0.078074509536494, 0.078074509536494, 0.065030323239247, + 0.0401345230539626, 0.168187944335173, 0.0664399958506056, + 0.0736573430018038, 0.0780134136835909, 0.070154483540544, + 0.180767093886445, 0.0664593954539867, 0.0664593954539867, + 0.0594553974001933, 0.0675038468082751, 0.0536944450768444, + 0.0970468595627894, 0.125358300385429, 0.125631704260218, + 0.944302622125637, 0.0519142263263012, 0.0379831848669348, + 0.0493844279965059, 0.0493844279965059, 0.0949083347321329, + 0.0309819618026538, 0.029589102491272, 0.029589102491272, + 0.0670447385890157, 0.0842123937662785, 0.0687733897932081, + 0.422927507867707, 0.1328199698695, 0.096736475340286, + 0.0419915413707043, 0.0396238084435642, 0.0346918436236485, + 0.0363065585955308, 0.0491064279890273, 0.0441863897171056, + 0.0388360718854439, 0.0414457600258062, 0.0451305758954266, + 0.0505018876352514, 0.0744589274009074, 0.0519142263263012, + 0.0379831848669348, 0.101629248471346, 0.436525380451652, + 0.436525380451652, 0.410550032148353, 0.0425422548236529, + 0.039274955616929, 0.0380389889031733, 0.0330421266803994, + 0.0325988284653424, 0.066244431441902, 0.066244431441902, + 0.0666221560337819, 0.0952529331187707, 0.046598430925228, + 0.0484713995290722, 0.046598430925228, 0.0484713995290722, + 0.11544865825422, 0.0480259855055657, 0.0566600271329405, + 0.137824712103277, 0.112620492286817, 0.182195648532627, + 0.11200306230358, 0.188335501134619, 0.169514959934583, + 0.158055134563875, 0.160687809078496, 0.168998857825895, + 0.0681007619372312, 0.0357408884807467, 0.0331290501952606, + 0.0300353569162307, 0.0866855568546318, 0.0663539796978426, + 0.0330200310685004, 0.0646249177791591, 0.0586792000782014, + 0.0592011499253728, 0.0382030583658832, 0.0445521201486119, + 0.067008407725231, 0.067008407725231, 0.0432898262619123, + 0.12461566211325, 0.0358742808101827, 0.03362714942096, + 0.0325446423810936, 0.0323846714084075, 0.0335509666038901, + 0.0303353227561161, 0.0362607404205336, 0.0298241376272862, + 0.0362837776795306, 0.0432688893651977, 0.0709252762463711, + 0.147397446518277, 0.0723900341977973, 0.0517894283747262, + 0.106665126964701, 0.0503219409131233, 0.0834357951937577, + 0.100818501015755, 0.105292582127573, 0.104194456647628, + 0.0762380011365815, 0.105895524421508, 0.131464943163143, + 0.105727045973233, 0.0727635750299144, 0.105895524421508, + 0.0437337708748914, 0.0357408884807467, 0.0949083347321329, + 0.0309819618026538, 0.029589102491272, 0.0529778772840967, + 0.0842123937662785, 0.0607153181824941, 0.0672240685836559, + 0.144807911379215, 0.144807911379215, 0.141129878619691, + 0.688420146600013, 0.0609351365077056, 0.0626297831888101, + 0.0648027622574709, 0.0759997034218865, 0.0782103847541935, + 0.0707477713155958, 0.0410921970518355, 0.0589697594313821, + 0.152256577677227, 0.056765876958851, 0.0440206300688631, + 0.0331810206918762, 0.145634415508243, 0.171438771769591, + 0.045261532361592, 0.041840944187868, 0.143150260376584, + 0.156242430028033, 0.0410741399980494, 0.0522187899853102, + 0.0442706334210004, 0.0971923907649902, 0.165585071470526, + 0.238054218005531, 0.0532738449881275, 0.0604428830039113, + 0.111392476904907, 0.111392476904907, 0.057580243342699, + 0.0605291866378679, 0.0573770911039481, 0.0885019494515106, + 0.0862447970676653, 0.0955397769716847, 0.081739783220223, + 0.0812965346829218, 0.0809796720150843, 0.0813844390983633, + 0.0553602073413133, 0.0595903222287986, 0.0580738296478883, + 0.0331472062547294, 0.117186329269605, 0.0421565210307805, + 0.0421565210307805, 0.0431360897292105, 0.0601728243619919, + 0.0608147839961041, 0.0469900387599093, 0.0511099791683115, + 0.133968859142191, 0.0454828817219972, 0.134269192729732, + 0.045677409250904, 0.0484924110945302, 0.0915494575563987, + 0.0473953480872363, 0.0521826902889385, 0.0499074879741539, + 0.0607510996298348, 0.138895050565221, 0.0906618240478993, + 0.0545651794730959, 0.0588322152774606, 0.0555824719807064, + 0.0578268424764083, 0.0579806773332134, 0.0555747554696179, + 0.0570504628526928, 0.0556475846732603, 0.0510369790482531, + 0.105422478219541, 0.0549738873644795 + ]) +mpg_bs.R = np.array([ + -14.247806848775, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, -12.8440820360878, 0.373532783001862, -4.2296607322892, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -8.28197639485442, 7.02914411540082, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5.33415428821132, -6.28488179729956, + 0.275366266013156, 0.350799946868301, -0.320832128978794, + -0.400140439924557, -2.75411074826349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 6.93889390390723e-18, 0.232054372832382, + -0.059045600449299, 0.180812355115842, 0.128163547439293, + 0.144886567744466, -0.0269730574249025, -0.184599966726543, + 0.118427787192217, 0.122053978888216, -0.0642672707517637, + 0.0681043144407656, -0.060071867550458, -0.150958262500398, + 0.0229223735842404, 0.0444276150539449, -0.348767846881924, + 0.400671529738335, -0.0077479495898858, -0.0233519344455665, + -0.0016530657606304, 0.252520737261296, -0.0010134977318948, + -0.440010476997986, -2.77555756156289e-17, 1.09497230004704, + -0.214931983948417, 0.930799141411998, 0.550394857028419, + 0.709391063166251, -0.109782318058198, -0.842294484569631, + 0.695883635886005, 0.497451233152266, -0.43887148186347, + 0.581743977285481, -0.402315830184767, -0.709015800353095, + 0.0516077442049284, 0.028185898732357, -0.352543779422061, + 1.27839021341958, 0, 0, 0, 0, 0, 0, -1.38777878078145e-16, + 1.46496369379118, -0.201247454925983, 1.35850779046971, + 0.280404550518566, 1.0970677381965, -0.0446546144567612, + 0.111447137155272, 1.10339850569991, 0.314461688316244, + -0.822981973569381, 0.910711177150427, -0.465095093337983, + -0.492817626024387, -0.0302680940522306, -0.250587565379533, + 1.36321225401071, 0, 0, 0, 0, 0, 0, 0, -5.55111512312578e-17, + 0.636539976078798, 0.334849603625203, -0.801543168266999, + -0.153261416776597, 0.590531348112483, 0.179469236924221, + 2.6920602822558, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1.52655665885959e-16, 0.386544461276061, 0.0617187417679946, + -3.3375034414008, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 2.22044604925031e-16, -0.268086271294675, 0.0357997911433628, + -0.811541848512822, -0.417713567994733, -0.549046879404324, + 0.191376270418331, -0.760481136635749, 1.0789013415145, + -0.49182262459782, 0.630320008138126, 0.0469111147236198, + 1.777708468755, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1.52655665885959e-16, + -0.638506225101581, -0.252213861766942, 0.590961092489265, + -0.376498675165681, -1.05466211118764, 0.161726074180775, + -0.307990147500367, 0.53052971421346, -0.419174109920259, + 2.18021214925427, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 2.4980018054066e-16, -1.88284158749395, -0.158199593825249, + 1.30601514580108, -0.263143162777336, -1.19466765891104, + -0.0392202790218998, -0.553059650646982, -2.5833579317638, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -7.63278329429795e-17, + -1.03018120754794, 0.633410571283583, 0.425787563324548, + -0.117069541181738, -0.15949862209609, -0.203120611440518, + -0.24794544312747, -0.577954387092811, -0.392668668150195, + -0.742414613515821, -0.0517296981247248, -0.180774236277864, + -0.0985346957439217, -0.0346679818369825, -0.522507884861262, + -0.444065964414515, -0.178453142391426, 0.368705729297475, + 0.951128380630708, 0, 0, 0, 0, -1.35308431126191e-16, + -0.465120271023632, 0.406195493272399, 0.070203506724658, + 0.112046096976311, -0.200096302157889, -0.152715842062604, + 0.0104383470658289, 0.342550835873512, -0.273815544285267, + -0.401207001497804, -0.040780018432021, -0.303740748176209, + -0.0609839545858858, 0.319068530448539, -0.260734203657871, + -0.260132352451617, -0.0932586655435074, 0.203432578212413, + 0.317497529276374, -0.83938821954848, 0, 0, 0, -4.85722573273506e-17, + -0.390650961425867, 0.0330907911134603, 0.00733620315637045, + 0.228118285854502, -0.0868790621492882, -0.191943985560395, + 0.0744153770730219, 0.343145769098306, -0.095185581001596, + -0.223303572468095, -0.150287745525581, -0.158778635381907, + 0.0110735369943658, 1.59565825328421, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -1.11022302462516e-16, 0.274167363775303, 0.474667692897905, + 0.106124488726352, 0.284328629467105, 0.186661254435535, + 0.187571744571793, 0.20413327819365, -0.0397206127231053, + 0.383068904117848, 0.0739013097506463, -0.570930211792512, + 0.0925572774037632, -0.322045428454689, -0.0206704824306383, + 0.138827717514351, 0.305979392429139, 0.329598188006108, + 0.056917317683023, 0.166351113868783, -0.0429579563012386, + 0.698123470574497, 0, 0, 2.77555756156289e-17, 1.28869031811426, + 0.159462695223405, 0.94874511527323, 1.22041060990194, + 1.23041883682224, 0.214295232212795, -0.421272049466657, + 0.484873150940021, 1.22340399746876, -0.126213059047102, + 0.586508858858053, 0.0387247897517475, -1.73048932450117, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 3.33066907387547e-16, 1.38101651269374, + -0.161333143580265, 0.26879941823133, 1.5843908766769, + 1.56675922898707, 0.130712348793346, -0.15459448409081, + 0.322441342868708, 0.032841704236906, -0.040628028706388, + 1.95780421180254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -4.71844785465692e-16, 0.547361386973655, -0.0560623687491847, + -1.42773410582977, -0.319295075080351, 1.10930671785576, + -0.249435864270354, 0.376460682854174, -0.859698359693027, + -2.22778539317977, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -1.16573417585641e-15, -0.680782403896811, -0.0829421876833989, + -1.06575902669119, -3.08847910097662, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, -3.05311331771918e-16, -1.73716924091107, + -0.427903820099444, 0.508003939493925, 0.0674537346537795, + -3.01780655906657, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, -8.32667268468867e-17, -0.907178653618356, -0.442910523756854, + 0.50555822069335, 0.912713271576068, -0.893880669315821, + -0.303415799851323, 0.00713986966174707, -0.565052960394418, + -0.0893598475014228, 0.1719971566722, -0.455461128044599, + -0.0927359754631413, 0.109881340577719, 0.546762409477948, + -1.42658278966991, 0, 0, 0, 0, 0, 0, 0, 0, -5.89805981832114e-17, + -0.358468733615153, -0.156326542139889, 0.124611476610136, + 0.261720342968014, 0.0035504239879391, -0.178906878260252, + -0.00818092652923195, -0.0665839339476971, 0.00890831066007731, + 0.21700219401572, -0.192545410574642, -0.0251881401918565, + 0.0596236111422667, 0.356927030887266, -0.559501871586496, + 0.00939356269184223, 0.00808635023879492, 0.174506073397661, + -0.00768811220727605, -0.0824771518664715, 0.00281995201714263, + 0.552896914606241, 0, -8.15320033709099e-17, -0.153937258650552, + -0.0600660535926754, 0.0307742140033325, 0.0538665072365687, + 0.107288075694366, -0.0951443583796005, -0.0122161530644771, + 0.00205111921342145, 0.00850795594637679, 0.0131768142662108, + -0.0351898170323615, -0.00506295245698965, 0.000521970211206223, + 0.172268163286512, 0.0600225535087082, -0.0453855401632395, + -0.0806877659326075, 1.10081916052039, 0, 0, 0, 0, 0 + ]).reshape(24, 24, order="F") + +mpg_bs.sp = np.array([ + 0.830689464223685, 425.361212061649 + ]) +mpg_bs.nsdf = 4 +mpg_bs.Ve = np.array([ + 1.18849578741713, -0.569737725624008, -0.680858316482058, + -0.683616810254248, 0.377412685416274, 0.162104128449963, + 0.0284282197471564, -0.170886673387626, -0.194448131082813, + -0.235607054710811, -0.334637151301396, -0.298355349820224, + -0.598813240305989, -0.484066776146491, -0.222539433922648, + -0.343523840336231, -0.124699240656557, 0.0511301117304156, + 0.112522894520982, 0.282177537241417, 0.387281538045199, + 0.418871839073582, 0.402617068797253, 0.425257369102146, + -0.569737725624005, 0.510619669380942, 0.112546264990929, + 0.117538151789885, -0.278500464239846, -0.106503131214755, + -0.0142727895051468, 0.119693314820498, 0.122566162544252, + 0.141792166493477, 0.258713037741001, 0.167091968978498, + 0.548140901913199, 0.402802042938447, 0.176247371186236, + 0.253097604219116, 0.0912014747571045, -0.0380177304877867, + -0.0817277273105231, -0.204215321526615, -0.280746382175004, + -0.319748198891912, -0.318839637675066, -0.346791704585694, + -0.680858316482058, 0.112546264990932, 0.638516918399206, + 0.556227307650149, -0.149549094619738, -0.0901476474252184, + -0.0314272288120588, 0.0594285832238709, 0.0785867343964528, + 0.126531869912634, 0.115344796918859, 0.183217693464862, + 0.163894193990623, 0.162198493812758, 0.106799415384204, + 0.109314043840205, 0.039603794069169, -0.0171925190894075, + -0.0379071720667663, -0.0926771979192517, -0.125253415978965, + -0.130401583734828, -0.0977251095986251, -0.0934734674925854, + -0.683616810254247, 0.117538151789886, 0.55622730765015, + 0.679340900017709, -0.105294697611617, -0.0365742456166672, + 0.0072290114551591, 0.0759677008568446, 0.102238529018836, + 0.0914408551091774, 0.0917917075151983, 0.110113392915614, + 0.0251287873829862, 0.0712284135539027, 0.00420927820895315, + 0.138413432144903, 0.0519845825338026, -0.0183348782823596, + -0.0449069366586222, -0.118088511396914, -0.163969226310945, + -0.146443105973786, -0.155948004456154, -0.155717037163534, + 0.377412685416275, -0.278500464239846, -0.149549094619738, + -0.105294697611618, 8.01906586668495, -2.27352940533633, + 0.45239432853495, -0.433803454982267, -0.321923610858328, + -0.318990687433886, -0.433465009208203, -0.525137481608645, + -0.506872937415426, -0.438726607538563, -0.289330429361372, + -0.318378214065367, -0.101315898912012, 0.0702660843270244, + 0.125057219633613, 0.2769143210106, 0.359103233667746, + 0.354041831289896, 0.282213763036391, 0.281665967664165, + 0.162104128449962, -0.106503131214755, -0.0901476474252181, + -0.0365742456166671, -2.27352940533632, 2.37285683619595, + -0.213131606980922, 0.767615270864913, 0.45140474706449, + 0.349810131981814, 0.213475199524978, 0.508125482025884, + 0.103391649249744, -0.128745904515542, -0.0765211944825074, + -0.14210598704292, -0.0700821910069956, -0.00835991045569704, + 0.0238183516288048, 0.114417262260653, 0.189728622537479, + 0.1859026399357, 0.137259047130605, 0.138169217600521, + 0.0284282197471565, -0.0142727895051469, -0.0314272288120594, + 0.00722901145515861, 0.45239432853495, -0.213131606980925, + 1.48167014860297, 0.358254593363372, 0.821714985190383, + 0.435917484658345, 0.483749368795539, 0.794954101917704, + 0.324483058344503, 0.0820494696682664, 0.0547331327769316, + 0.0486413023665632, -0.000893288118834948, -0.0422342223315039, + -0.0525140148744463, -0.0607809292570511, -0.0402549081797533, + 0.0356219564069622, 0.00604280956565075, 0.0117467988521824, + -0.170886673387627, 0.119693314820499, 0.0594285832238702, + 0.0759677008568449, -0.433803454982266, 0.767615270864913, + 0.358254593363373, 1.13763489477576, 0.451943034662882, + 0.597170540589345, 0.419838151190159, 0.780586637924992, + 0.403663838323704, 0.203586408121847, 0.0871329612292375, + 0.109134911376121, 0.0232034159348934, -0.0477316317501318, + -0.0695234156209474, -0.112765387491885, -0.112306705383561, + -0.0376954736643469, -0.0615606161698961, -0.0647075752932795, + -0.194448131082812, 0.122566162544252, 0.0785867343964518, + 0.102238529018836, -0.321923610858328, 0.451404747064489, + 0.821714985190384, 0.451943034662882, 1.30968147581624, + 0.280173059312136, 0.785275069851208, 0.944589724869548, + 0.582120239085169, 0.251692801313291, 0.177417447612862, + 0.236534565581584, 0.063697071092112, -0.0798064294015515, + -0.128298735246426, -0.232002717105217, -0.259819418835401, + -0.132041678675547, -0.144238622217655, -0.135794945401223, + -0.235607054710811, 0.141792166493477, 0.126531869912634, + 0.0914408551091777, -0.318990687433885, 0.349810131981813, + 0.435917484658346, 0.597170540589345, 0.280173059312136, + 1.40453967538731, -0.0549248400788445, 0.887407266694885, + 0.182255134228699, 0.44876824071208, 0.0819989625257823, + 0.195295673825192, 0.0572040232059282, -0.0577601415985759, + -0.09986577100187, -0.199632793168151, -0.245270473624566, + -0.071594291206518, -0.0275251080861387, -0.0486598136301801, + -0.334637151301396, 0.258713037741001, 0.115344796918858, + 0.0917917075151987, -0.433465009208205, 0.213475199524978, + 0.483749368795539, 0.419838151190159, 0.785275069851208, + -0.0549248400788439, 1.62111742405635, 0.489616865304753, + 1.19779245625055, 0.0892464546337603, 0.446642767986137, + 0.34570878083834, 0.130478144837288, -0.0410385359578811, + -0.100929223732173, -0.277310119566828, -0.401938968295842, + -0.433555535429798, -0.425894949004986, -0.422397788871241, + -0.298355349820222, 0.167091968978497, 0.18321769346486, + 0.110113392915613, -0.525137481608645, 0.508125482025883, + 0.794954101917703, 0.780586637924992, 0.944589724869547, + 0.887407266694884, 0.489616865304751, 2.00741767223713, + -0.341867060574754, 1.35779003650178, 0.290856050655419, + 0.357337142424838, 0.13148384296731, -0.0486525097265586, + -0.111064872524035, -0.295277046615757, -0.433706834878977, + -0.484441193814012, -0.171094901190814, -0.0593737345467254, + -0.598813240305986, 0.548140901913199, 0.16389419399062, + 0.0251287873829865, -0.506872937415427, 0.103391649249744, + 0.324483058344504, 0.403663838323703, 0.582120239085168, + 0.182255134228698, 1.19779245625054, -0.341867060574751, + 3.99861269607432, -2.00886429180448, 0.881002722046794, + 0.356715486780007, 0.114035128649945, -0.081859095815927, + -0.144619951057461, -0.29572669309598, -0.350426493349162, + -0.371609126526997, -0.613212031156679, -0.829918754600024, + -0.484066776146489, 0.402802042938446, 0.162198493812755, + 0.0712284135539022, -0.438726607538561, -0.128745904515543, + 0.0820494696682656, 0.203586408121846, 0.251692801313291, + 0.448768240712079, 0.0892464546337585, 1.35779003650177, + -2.00886429180448, 5.69767997552633, -0.950166465577867, + 0.386516976943115, 0.162579206564945, -0.0135283061654258, + -0.0788824543667668, -0.297040770247142, -0.492669425332621, + -0.562105275521641, -0.341961974289066, -0.336529822591599, + -0.222539433922648, 0.176247371186237, 0.106799415384203, + 0.0042092782089533, -0.289330429361373, -0.0765211944825078, + 0.0547331327769319, 0.0871329612292375, 0.177417447612863, + 0.0819989625257824, 0.446642767986138, 0.29085605065542, + 0.881002722046795, -0.950166465577866, 2.43458440656306, + 0.225417044852558, 0.100628997996125, 0.00778427056629371, + -0.0196130120822873, -0.124385518181094, -0.214499024431833, + -0.511121699992081, -0.620166616003633, -0.60645532848849, + -0.343523840336231, 0.253097604219116, 0.109314043840204, + 0.138413432144904, -0.318378214065368, -0.14210598704292, + 0.0486413023665631, 0.109134911376121, 0.236534565581584, + 0.195295673825192, 0.34570878083834, 0.357337142424838, + 0.356715486780007, 0.386516976943115, 0.225417044852558, + 0.39392854398882, 0.127125584382261, -0.0886497989809537, + -0.161435653471641, -0.34944548551855, -0.449697110002955, + -0.376881691271306, -0.321387399770619, -0.313722205092763, + -0.124699240656557, 0.0912014747571047, 0.0396037940691688, + 0.0519845825338027, -0.101315898912011, -0.0700821910069957, + -0.000893288118835158, 0.0232034159348933, 0.063697071092112, + 0.0572040232059281, 0.130478144837288, 0.13148384296731, + 0.114035128649945, 0.162579206564945, 0.100628997996125, + 0.127125584382261, 0.0574406818774124, -0.00173302682023446, + -0.0287499587058463, -0.104275328896744, -0.161636207057517, + -0.160756204797398, -0.130142697810604, -0.13018206203756, + 0.0511301117304161, -0.038017730487787, -0.0171925190894076, + -0.01833487828236, 0.0702660843270248, -0.0083599104556969, + -0.0422342223315041, -0.0477316317501321, -0.0798064294015518, + -0.057760141598576, -0.0410385359578815, -0.0486525097265592, + -0.0818590958159274, -0.0135283061654262, 0.00778427056629371, + -0.0886497989809539, -0.00173302682023456, 0.0682701229991469, + 0.0825822726440073, 0.0985048806897502, 0.0706692739185619, + -0.000645718260510867, 0.0195562281836991, 0.0117075505963419, + 0.112522894520982, -0.0817277273105231, -0.0379071720667655, + -0.044906936658622, 0.125057219633614, 0.0238183516288047, + -0.0525140148744461, -0.0695234156209473, -0.128298735246425, + -0.0998657710018698, -0.100929223732172, -0.111064872524035, + -0.144619951057461, -0.0788824543667667, -0.0196130120822869, + -0.161435653471641, -0.0287499587058462, 0.0825822726440071, + 0.117052981020959, 0.17162156214383, 0.155502600429989, + 0.0424939853288228, 0.0710929826375929, 0.0587657751998833, + 0.282177537241414, -0.204215321526614, -0.0926771979192491, + -0.118088511396912, 0.276914321010599, 0.114417262260653, + -0.0607809292570516, -0.112765387491884, -0.232002717105217, + -0.19963279316815, -0.277310119566827, -0.295277046615757, + -0.295726693095979, -0.297040770247141, -0.124385518181093, + -0.349445485518549, -0.104275328896744, 0.0985048806897497, + 0.17162156214383, 0.342091764619944, 0.401295877515778, + 0.209313810556492, 0.220115583303013, 0.210671136673818, + 0.387281538045201, -0.280746382175005, -0.125253415978966, + -0.163969226310947, 0.359103233667747, 0.18972862253748, + -0.040254908179753, -0.112306705383561, -0.259819418835401, + -0.245270473624566, -0.401938968295843, -0.433706834878978, + -0.350426493349163, -0.492669425332622, -0.214499024431833, + -0.449697110002955, -0.161636207057517, 0.0706692739185617, + 0.15550260042999, 0.40129587751578, 0.587032652011506, + 0.368781744389901, 0.258422103020345, 0.320444922617658, + 0.418871839073582, -0.319748198891913, -0.130401583734826, + -0.146443105973786, 0.354041831289896, 0.185902639935701, + 0.035621956406963, -0.0376954736643463, -0.132041678675547, + -0.0715942912065177, -0.433555535429798, -0.484441193814012, + -0.371609126526998, -0.562105275521643, -0.511121699992081, + -0.376881691271307, -0.160756204797398, -0.000645718260511014, + 0.0424939853288234, 0.209313810556494, 0.3687817443899, + 1.11545557505271, 0.290647701203176, 0.0774280344372213, + 0.402617068797252, -0.318839637675066, -0.0977251095986237, + -0.155948004456154, 0.282213763036391, 0.137259047130605, + 0.00604280956565094, -0.0615606161698963, -0.144238622217655, + -0.0275251080861385, -0.425894949004986, -0.171094901190814, + -0.613212031156679, -0.341961974289066, -0.620166616003633, + -0.321387399770619, -0.130142697810604, 0.0195562281836988, + 0.0710929826375929, 0.220115583303014, 0.258422103020344, + 0.290647701203175, 1.86569693342601, 1.41062610423399, + 0.425257369102145, -0.346791704585695, -0.0934734674925844, + -0.155717037163535, 0.281665967664164, 0.138169217600522, + 0.0117467988521817, -0.0647075752932792, -0.135794945401224, + -0.0486598136301801, -0.422397788871241, -0.0593737345467268, + -0.829918754600025, -0.3365298225916, -0.60645532848849, + -0.313722205092763, -0.13018206203756, 0.0117075505963417, + 0.0587657751998836, 0.210671136673819, 0.320444922617657, + 0.077428034437221, 1.41062610423399, 3.20765551205844 + ]).reshape(24, 24, order="F") + +mpg_bs.Vp = np.array([ + 1.226257739946, -0.598954657895286, -0.693991747115123, + -0.693738296346539, 0.404255923420743, 0.152502921378066, + 0.00918450889439832, -0.209302670605415, -0.240267712628183, + -0.262649114511732, -0.365619814022882, -0.327688080888645, + -0.677140166341306, -0.482724236080649, -0.237502268332879, + -0.394504397805591, -0.124407237788995, 0.0889824986249079, + 0.166767589068027, 0.334266702799051, 0.407758566331903, + 0.47826420385775, 0.385179621333107, 0.448761523202594, + -0.598954657895286, 0.53430888394443, 0.121729206748625, + 0.124279255191775, -0.304552854849217, -0.0916575260440732, + 0.0065056153509031, 0.150496284941485, 0.162046172228289, + 0.162469531644191, 0.286540735503703, 0.191866647181026, + 0.613174101669279, 0.400604659764261, 0.188505316042605, + 0.296392591782633, 0.0853113158261075, -0.0756702387932951, + -0.125698012402281, -0.246372406481652, -0.300946575673317, + -0.369984827436232, -0.300763838199813, -0.36676854858092, + -0.693991747115123, 0.121729206748625, 0.644395132027891, + 0.560069134869483, -0.154206546410626, -0.0936367010188792, + -0.0316633843634197, 0.0722647584400985, 0.0888778951412027, + 0.136117294041357, 0.119855730051766, 0.191533981589997, + 0.18839422518101, 0.161358399661349, 0.111490691845143, + 0.122188815638708, 0.0452150644285857, -0.0220226812226592, + -0.0556777449240322, -0.106839588557335, -0.124419677875331, + -0.15802574281452, -0.0722707700506129, -0.105116727222253, + -0.693738296346539, 0.124279255191775, 0.560069134869483, + 0.6841791124165, -0.107031678165138, -0.0412583559665033, + 0.00896442684349225, 0.0844786906931047, 0.113582954198454, + 0.0990000691857173, 0.100538046096834, 0.115895712613785, + 0.0397115077690524, 0.074237842466752, 0.00737613155330012, + 0.150345634380864, 0.0566752746370431, -0.0212778570711782, + -0.0563304001336339, -0.13372261621447, -0.171318995103557, + -0.141228583028678, -0.192417498343195, -0.152318039573587, + 0.404255923420743, -0.304552854849217, -0.154206546410626, + -0.107031678165138, 11.9670976422831, -3.61736029523771, + 1.34326036379293, -0.494153536158182, 0.0834074623603979, + -0.226433455900482, -0.192957457020386, -0.209244998351617, + -0.379519786733706, -0.389683690480388, -0.230781621465011, + -0.316949554505238, -0.0794032910847186, 0.0892123902485899, + 0.134636493675703, 0.25972163924313, 0.34046358953534, + 0.359567685263677, 0.241143867637169, 0.283588971081093, + 0.152502921378066, -0.0916575260440732, -0.0936367010188792, + -0.0412583559665033, -3.61736029523771, 2.970388896856, + -0.526929630639825, 0.882729262382722, 0.311472631824992, + 0.378478323406872, 0.140426378273093, 0.456737474558485, + 0.0613966244883271, -0.122964335843988, -0.0922074692604644, + -0.128708029908938, -0.124621699881393, -0.0591566177055406, + 0.0184560491961697, 0.113879979649421, 0.164485847186027, + 0.18744932016437, 0.127614304692519, 0.147051420502851, + 0.00918450889439832, 0.0065056153509031, -0.0316633843634197, + 0.00896442684349225, 1.34326036379293, -0.526929630639825, + 1.81242957779768, 0.322362109775063, 1.0323933349731, + 0.457360886283924, 0.600444054321793, 0.91370612119665, + 0.434301465723446, 0.088055761039491, 0.0848436101740658, + 0.12744269016312, -0.0422129416844794, -0.135413959815355, + -0.118116683956611, -0.140107289290965, -0.104129953113642, + -0.0176599234366945, -0.0234972191406761, -0.00396736798305567, + -0.209302670605415, 0.150496284941485, 0.0722647584400985, + 0.0844786906931047, -0.494153536158182, 0.882729262382722, + 0.322362109775063, 1.27384764314234, 0.436524282156763, + 0.700073089805124, 0.42086785868429, 0.839439528040047, + 0.457304590724931, 0.226988664621102, 0.0985281278677041, + 0.149735868306737, 0.00757050756523659, -0.0912854085559435, + -0.113724893986152, -0.155881623417337, -0.140317119716309, + -0.0713406095842423, -0.0716633370687491, -0.0803273684693989, + -0.240267712628183, 0.162046172228289, 0.0888778951412027, + 0.113582954198454, 0.0834074623603979, 0.311472631824992, + 1.0323933349731, 0.436524282156763, 1.53314803627766, 0.25417552361178, + 0.924685362467373, 1.02972297718702, 0.744949808908217, + 0.233388656964272, 0.217427541094708, 0.336055700676656, + 0.03743876914053, -0.176903580046802, -0.226786128357071, + -0.334988155952527, -0.319776388666983, -0.219028256501927, + -0.17608697725841, -0.170430448469263, -0.262649114511732, + 0.162469531644191, 0.136117294041357, 0.0990000691857173, + -0.226433455900482, 0.378478323406872, 0.457360886283924, + 0.700073089805124, 0.25417552361178, 1.5644915898195, + -0.0975959025442556, 0.97584002950171, 0.168966508584049, + 0.522744745835193, 0.0695516714823915, 0.233037922998919, + 0.0395396435819605, -0.095915399510004, -0.131051837524492, + -0.237143604722523, -0.301242506702221, -0.0532025767899828, + -0.0391505765515488, -0.0655180027477513, -0.365619814022882, + 0.286540735503703, 0.119855730051766, 0.100538046096834, + -0.192957457020386, 0.140426378273093, 0.600444054321793, + 0.42086785868429, 0.924685362467373, -0.0975959025442556, + 1.75709614368116, 0.519892887281196, 1.34059888676236, + 0.0494466626673817, 0.484653667289698, 0.4084580005862, + 0.114791375213036, -0.095987442819961, -0.154931741342113, + -0.33903979770467, -0.45909753833617, -0.453485705029258, + -0.522724292505745, -0.433667169565367, -0.327688080888645, + 0.191866647181026, 0.191533981589997, 0.115895712613785, + -0.209244998351617, 0.456737474558485, 0.91370612119665, + 0.839439528040047, 1.02972297718702, 0.97584002950171, + 0.519892887281196, 2.13968207395045, -0.336164257008457, + 1.46238357432731, 0.283248342097559, 0.418961909633758, + 0.100598943813762, -0.113838923311929, -0.163977417541771, + -0.348791715965874, -0.506114865794541, -0.545497271000249, + -0.0923819541519448, -0.0813491527908169, -0.677140166341306, + 0.613174101669279, 0.18839422518101, 0.0397115077690524, + -0.379519786733706, 0.0613966244883271, 0.434301465723446, + 0.457304590724931, 0.744949808908217, 0.168966508584049, + 1.34059888676236, -0.336164257008457, 4.35482101642386, + -2.21992012490562, 0.9807810786271, 0.462108282803803, + 0.102236590809152, -0.17410468003079, -0.266734242517673, + -0.42033089744795, -0.347661934619728, -0.575867027882068, + -0.498450427127264, -0.934477998886557, -0.482724236080649, + 0.400604659764261, 0.161358399661349, 0.074237842466752, + -0.389683690480388, -0.122964335843988, 0.088055761039491, + 0.226988664621102, 0.233388656964272, 0.522744745835193, + 0.0494466626673817, 1.46238357432731, -2.21992012490562, + 5.99371147921815, -1.04859890355395, 0.398421384908712, + 0.156461542733891, -0.019434665724302, -0.0755469444958039, + -0.280486183344505, -0.58136563218615, -0.484634147345514, + -0.356292120764518, -0.321958833095722, -0.237502268332879, + 0.188505316042605, 0.111490691845143, 0.00737613155330012, + -0.230781621465011, -0.0922074692604644, 0.0848436101740658, + 0.0985281278677041, 0.217427541094708, 0.0695516714823915, + 0.484653667289698, 0.283248342097559, 0.9807810786271, + -1.04859890355395, 2.48580346896528, 0.24501910446873, + 0.0969773944957306, -0.0119475871587249, -0.0484689252547535, + -0.149760547646666, -0.199911474519641, -0.552166680756775, + -0.678892603460011, -0.5732539695505, -0.394504397805591, + 0.296392591782633, 0.122188815638708, 0.150345634380864, + -0.316949554505238, -0.128708029908938, 0.12744269016312, + 0.149735868306737, 0.336055700676656, 0.233037922998919, + 0.4084580005862, 0.418961909633758, 0.462108282803803, + 0.398421384908712, 0.24501910446873, 0.498918611844292, + 0.101227030650827, -0.178108615875722, -0.244469114785688, + -0.433333724585524, -0.51389265638907, -0.438018959207985, + -0.33953374106696, -0.343184385441028, -0.124407237788995, + 0.0853113158261075, 0.0452150644285857, 0.0566752746370431, + -0.0794032910847186, -0.124621699881393, -0.0422129416844794, + 0.00757050756523659, 0.03743876914053, 0.0395396435819605, + 0.114791375213036, 0.100598943813762, 0.102236590809152, + 0.156461542733891, 0.0969773944957306, 0.101227030650827, + 0.11580938727038, 0.0398795020188062, -0.0127386826369836, + -0.078440365893966, -0.126321924455581, -0.142568428815273, + -0.128344286246162, -0.12956213066101, 0.0889824986249079, + -0.0756702387932951, -0.0220226812226592, -0.0212778570711782, + 0.0892123902485899, -0.0591566177055406, -0.135413959815355, + -0.0912854085559435, -0.176903580046802, -0.095915399510004, + -0.095987442819961, -0.113838923311929, -0.17410468003079, + -0.019434665724302, -0.0119475871587249, -0.178108615875722, + 0.0398795020188062, 0.193099358293502, 0.160470436488742, + 0.175008323309716, 0.136917954502474, 0.0674161405311557, + 0.0279662107609871, 0.0326656898702012, 0.166767589068027, + -0.125698012402281, -0.0556777449240322, -0.0563304001336339, + 0.134636493675703, 0.0184560491961697, -0.118116683956611, + -0.113724893986152, -0.226786128357071, -0.131051837524492, + -0.154931741342113, -0.163977417541771, -0.266734242517673, + -0.0755469444958039, -0.0484689252547535, -0.244469114785688, + -0.0127386826369836, 0.160470436488742, 0.226474480900493, + 0.241440219382646, 0.201381320129549, 0.122080977992512, + 0.081142778241122, 0.0898255256880958, 0.334266702799051, + -0.246372406481652, -0.106839588557335, -0.13372261621447, + 0.25972163924313, 0.113879979649421, -0.140107289290965, + -0.155881623417337, -0.334988155952527, -0.237143604722523, + -0.33903979770467, -0.348791715965874, -0.42033089744795, + -0.280486183344505, -0.149760547646666, -0.433333724585524, + -0.078440365893966, 0.175008323309716, 0.241440219382646, + 0.46452011571498, 0.431899381842666, 0.29910894777825, + 0.240131184980999, 0.241496481383994, 0.407758566331903, + -0.300946575673317, -0.124419677875331, -0.171318995103557, + 0.34046358953534, 0.164485847186027, -0.104129953113642, + -0.140317119716309, -0.319776388666983, -0.301242506702221, + -0.45909753833617, -0.506114865794541, -0.347661934619728, + -0.58136563218615, -0.199911474519641, -0.51389265638907, + -0.126321924455581, 0.136917954502474, 0.201381320129549, + 0.431899381842666, 0.744405673993396, 0.24778593600495, + 0.4134406891463, 0.339886403782703, 0.47826420385775, + -0.369984827436232, -0.15802574281452, -0.141228583028678, + 0.359567685263677, 0.18744932016437, -0.0176599234366945, + -0.0713406095842423, -0.219028256501927, -0.0532025767899828, + -0.453485705029258, -0.545497271000249, -0.575867027882068, + -0.484634147345514, -0.552166680756775, -0.438018959207985, + -0.142568428815273, 0.0674161405311557, 0.122080977992512, + 0.29910894777825, 0.24778593600495, 1.6826091216262, + -0.575046038411989, 0.249267438526421, 0.385179621333107, + -0.300763838199813, -0.0722707700506129, -0.192417498343195, + 0.241143867637169, 0.127614304692519, -0.0234972191406761, + -0.0716633370687491, -0.17608697725841, -0.0391505765515488, + -0.522724292505745, -0.0923819541519448, -0.498450427127264, + -0.356292120764518, -0.678892603460011, -0.33953374106696, + -0.128344286246162, 0.0279662107609871, 0.081142778241122, + 0.240131184980999, 0.4134406891463, -0.575046038411989, + 4.04150194703527, 0.746794237585425, 0.448761523202594, + -0.36676854858092, -0.105116727222253, -0.152318039573587, + 0.283588971081093, 0.147051420502851, -0.00396736798305567, + -0.0803273684693989, -0.170430448469263, -0.0655180027477513, + -0.433667169565367, -0.0813491527908169, -0.934477998886557, + -0.321958833095722, -0.5732539695505, -0.343184385441028, + -0.12956213066101, 0.0326656898702012, 0.0898255256880958, + 0.241496481383994, 0.339886403782703, 0.249267438526421, + 0.746794237585425, 3.59868564812178 + ]).reshape(24, 24, order="F") + +mpg_bs.rV = np.array([ + -0.0297518795017788, -0.0279144173114223, -0.0184650622756606, + -0.0101929107895547, -5.5865624793419e-05, -0.000249849893142171, + -0.000309898734480696, -5.42025622874735e-06, -2.22599252448511e-05, + 6.60370601160911e-05, 4.41786063148996e-05, 0.000264079369629404, + 0.000312739927356773, 0.000166746800984281, 6.22512704032769e-05, + 0.00023873784102746, -0.000189663494086306, -0.000244118781964904, + -5.82504534029272e-05, 0.000142876370789319, 0.000217254008213435, + 4.53282887363646e-05, 1.82517606339378e-05, 8.58792421331435e-06, + 0.000370322487453743, 0.000201992910699855, -0.000469164613014575, + 0.000774270041235595, -5.68115342516726e-05, -0.000380679224700556, + -0.000422010861587262, 0.000101142157681932, 0.000187113782707615, + 0.000120435765907176, 0.000158193260135929, 0.000318437252371348, + 0.000133569503239669, 5.14508949733296e-05, 3.72708649769547e-05, + 0.0481141951754968, -0.0112467428647124, 0.0133577786074344, + 0.00971188595873735, 0.0144420339639255, 0.0153033177968391, + 0.006359918898083, 0.00184703219892869, 0.000682133802387619, + -0.000618858940479052, -0.00012511342698143, 0.00231285339396231, + -0.00300932642921946, 0.000227034785457444, 0.00126423894576831, + 0.00172845539987259, -1.90970302574768e-05, -0.000518679088367633, + -0.000314832607266587, -0.000362678746564177, -0.00132787136055019, + -0.000746870682613774, -0.000241398551814824, -0.000143617623861035, + -0.00996822090390736, -0.0382661384394529, 0.0513779162167389, + -0.0396501876325656, -0.00490503889374995, -0.00956222014702774, + -0.00419055937855679, -0.00120170608842117, -0.000442360718664101, + 0.00823791090945297, 0.00500218745429801, -0.0517063795773348, + 0.0587814382937658, -0.00240356824834935, -0.0116880128887736, + -0.015836689892777, -0.00705290752700762, -0.0039889034038224, + 0.00281650986526543, 0.00772245566351641, 0.0200045321896821, + 0.00964527245902078, 0.00407247631168687, 0.00331966549593053, + -0.00966284279156194, -0.0244550895551929, -0.0152784731227065, + -0.00892356302821995, 0.00598614795507797, 0.0158743389962298, + 0.00817417514516272, 0.00287736815670271, 0.00110289732817891, + -0.00103701249016703, -0.000122137810058872, 0.00491339128850968, + -0.00573539965315568, -0.000796427359226435, -0.00388683923076641, + -0.00364002687200746, 0.00340316885739129, 0.00523232146797231, + 0.000284396807821315, -0.0011396146450857, -0.0013542090929267, + -0.000300937391353895, -0.000115763147393071, -0.000113504718932038, + -0.0103409915589158, -0.0589537326887811, 0.000653338095905729, + 0.0678869795656213, -0.0576789285604959, 0.00122346111634506, + -0.00217093925795169, -0.000950153161210469, -0.000423266456563166, + 0.000873934414598948, 0.00266494641426755, -0.0160583032713915, + 0.0167861190077875, 0.00321515210369582, 0.0158650063077605, + 0.0144562648728826, -0.013440701985568, -0.0245813860385962, + -0.00906420988685205, 0.00147317779331179, 0.0113275107771079, + 0.00436237793605965, 0.00281967623170031, 0.00331841030626531, + 0.00926071280185207, 0.0652218789424438, 0.0488676855220674, + -0.0072693899726496, -0.0844631836304519, 0.0520383960295573, + 0.0176119917063159, 0.0050650149241255, 0.00173077764428115, + -0.0178422395520497, 0.0122414128180879, 0.0530935081682878, + -0.0700498524474214, -0.00205958513348335, -0.0151068167123392, + -0.0306537850616411, -0.0330147097107778, -0.0291440083012776, + 0.0131315762801279, 0.0479834543078199, 0.0494812459172924, + -0.00647839147888454, -0.00707071034488417, -0.00646049648120873, + -0.00466121288355426, -0.0485035049559369, -0.0749934388385525, + -0.0682272537597176, -0.0210539362448509, 0.103013289479923, + 0.0200363284031645, -0.00191733491201945, -0.00488933018302833, + 0.0021827419970009, 0.011596465584245, -0.0155626706843001, + -0.00907106241734132, -0.0122285794757302, -0.0645401411913822, + -0.0840936295641952, 0.0442913399580051, 0.142338108122544, + 0.0765593704205363, 0.0182446328667233, -0.0695935839925863, + -0.0356318919794637, -0.00586377697109934, -0.000387720862907859, + -0.0219182358925276, 0.0350060947556832, 0.035455153691358, + -0.0031346913093081, -0.00606431483213071, 0.0744278437298835, + -0.0182229735631128, -0.00495131827816417, -0.00206650282892026, + -0.0969804831618052, 0.180887878378089, -0.0859863312102999, + -0.0609843554208379, 0.00613665590152679, 0.0296030378774339, + 0.0222065834111922, -0.0578738162737623, -0.00993826601192342, + 0.0247694369149481, 0.0422289709919424, 0.00870315910426681, + -0.0486402858772571, -0.0339176010353395, -0.00725340819016587, + -0.0277893072125588, 0.00738941478298226, 0.0360521314155386, + 0.0453211474077115, 0.0414500649801317, -0.0160358299801778, + 0.024230734733359, 0.0112559983037238, 0.00198150289794027, + 0.0109534489965432, -0.0247890865548996, -0.0123156930059525, + 0.0511677755860601, 0.0152213730389165, 0.0828149195741336, + 0.097348221323021, -0.0623669711182891, -0.039401135913146, + 0.117141213376684, 0.0779973249031316, -0.167651800783608, + -0.0541136339904111, 0.013955651874827, 0.0203115237423255, + 0.0300361102737562, -0.0341507246067295, -0.0570717986255995, + -0.0329428638477796, -0.0291234190210299, 0.0135950582743237, + -0.0694590225085228, -0.00876695808804125, -0.00155150163487863, + -0.0415052621951564, 0.0855413818045413, -0.0567489326054377, + -0.0124458922312971, -0.00849044899817017, -0.020202207151624, + 0.0791647388775217, 0.184676364774685, -0.00395852520670578, + -0.11284909647847, -0.0836319344577794, -0.0813903370310093, + -0.0387960849097079, 0.00490532414058196, 0.0302521473022626, + 0.0308252615863213, -0.0365395275622032, -0.0797417067400042, + -0.074085098207374, -0.0482177700552885, 0.0419597883633913, + -0.00238151885267258, 0.00195645701970412, 0.00191752776718316, + 0.0220696134622902, -0.032189920392082, 0.00758470649527134, + 0.00885780502368493, -0.0328712034530519, -0.116584971692872, + 0.0126625346626522, 0.18030014524035, -0.174387401016797, + 0.0280216194648148, 0.206880690893945, 0.0111317590905542, + -0.0604125476723619, -0.0402701113502636, -0.0411940611934523, + -0.0292431192114974, 0.0287905486343225, 0.0603522262221798, + 0.05380622472953, 0.0381256769879428, -0.00877866079967804, + -0.0114198930646073, 0.00290846811747617, -0.00936224527565544, + -0.00280843716449172, -0.00498629441063645, 0.0179721340474412, + -0.00861873414462067, 0.00565208536719023, -0.0144866624993919, + -0.0744953444072861, 0.00894509365512418, 0.0188715647674098, + 0.0196999853322494, 0.0901680207441546, -0.0749065688345394, + -0.00838753112833702, 0.0531697564511473, 0.136959461408073, + 0.043435117577396, -0.000485715784516, -0.0344794393341381, + -0.0460327568324399, -0.0675385675778985, -0.146473249882646, + 0.278372094764221, 0.120489449499735, 0.0188465131812548, + 0.0715025240762291, 0.00799416409681597, -0.105021738754416, + -0.0426408431374772, 0.0331758188834319, 0.0290793232106494, + -0.152422969531859, -0.00411226278463431, 0.0169944032769387, + -0.0129986174021856, 0.0347047561592154, 0.0623646729345188, + -0.118206811803022, -0.140694522708572, -0.140683762744576, + 0.158094209672232, 0.0203620052526992, -0.0727348020063609, + -0.0884287943888251, -0.151955239271556, -0.178956415657029, + -0.099476919504814, -0.0320494342177646, -0.0236748823993347, + -0.154971928176839, -0.0330459295223386, 0.173731829954425, + 0.217169238800757, 0.054629549842133, 0.164557995022997, + -0.0388578143313742, -0.00960551120542888, 0.147879602189961, + -0.272183551848361, 0.176820407653075, 0.0079050431715667, + -0.183982203945459, -0.0775309023980952, -0.0135909620051159, + -0.033800534622957, -0.00767215662608992, 0.0139341286859032, + 0.0215587946038859, 0.0361091178670791, 0.0433219068631611, + -0.000962112014663084, 0.0162979158854552, -0.0476608330744487, + 0.0628596343632427, 0.0333630844392246, -0.0844837951002203, + -0.114740877395659, 0.150283648331406, 0.280085162961297, + -0.282164998837566, 0.124839802199115, -0.0933873943147368, + -0.0824336720662143, 0.102655758878417, -0.0583274276749742, + 0.142228337313126, 0.171933875689057, 0.135946640527651, + -0.0271990653138554, 0.0020746672622744, 0.0280363329077379, + 0.0361726682845661, 0.0480894942387795, 0.0514325292442759, + -0.140942452660974, -0.0230057637890896, 0.0922577554817711, + -0.262236828942001, 0.0740944233948668, 0.197601525405761, + 0.207334066529231, 0.0946452985476689, 0.118327385420593, + -0.186208569630427, 0.172171406366479, -0.168836309107086, + 0.296396954609535, -0.228737880107238, 0.0103931906647384, + 0.0340260435380178, -0.0826979747389254, -0.105218425287459, + 0.0115530411165066, 0.0021601328799856, -0.00794017743252516, + -0.0160157183232517, -0.0217791382952013, -0.0210064613984729, + 0.0604954298804515, -0.0134611171569919, 0.0107077476297973, + 0.0192096848992328, -0.0359539928007615, 0.0184131758362472, + 0.00718334337401242, -0.00513274287181537, -0.0395478786695696, + -0.0338833714451987, -0.0101066402795655, -0.0702469691868337, + 0.0899019452166869, -0.130857170784601, 0.194797566536871, + -0.293985247792722, -0.127956937593321, 0.538381198123075, + 0.0132062121841276, 0.0166577109173017, 0.0204570452515256, + 0.0210302553780223, 0.00948829280246407, -0.00259466527516782, + -0.169050776708552, 0.0176449742622338, -0.0277900221053683, + -0.177046985121443, 0.0823278124705666, 0.111508059634237, + 0.0974492057959729, -0.0803727412741088, -0.256237431105662, + -0.0589818545148105, -0.137232151521597, -0.0356995098286272, + -0.101362799946221, 0.0644887385614398, -0.0672851177363907, + 0.0652912510995767, 0.0426358861206711, 0.0600691466471638, + 0.0852565075962193, 0.0328913153615828, -0.0134924524347108, + -0.0339518938589891, -0.074055543117041, -0.0878817068993808, + -0.164392063467643, -0.118882970850557, 0.567291815602786, + 0.147055341317559, -0.0948604513437437, -0.0732028485321263, + -0.0481401820760952, 0.0538839024444461, 0.241400054042709, + 0.16755779144261, 0.159482918490435, 0.14059723990491, + 0.122190788139167, 0.0330484822016492, 0.155417089643274, + -0.123967330958311, -0.133730317847849, 0.0123153144117149, + -0.0572155235331402, -0.0322422402398889, -0.00516798160954242, + 0.0112436179619514, 0.0389807303731987, 0.0330850630219065, + 0.327209565123676, -0.530425233903229, 0.32825889338139, + -0.0476988900717266, 0.0370773036879646, 0.00647572364840762, + 0.0274282286286442, -0.0482426726846349, -0.211521604729665, + -0.264316078930412, -0.218782113040786, -0.251492880093616, + -0.193646739359928, -0.0968005854286071, -0.305314578727092, + -0.0974925243314355, 0.121045535316297, 0.072269403918501, + 0.0019236279382869, 0.0268726912598391, 0.0370657911406326, + 0.0297657267836094, 0.017596390730566, -0.021527152312842, + 0.147079124119788, -0.632808359857734, -0.380412144540749, + -0.277096815862218, 0.191496518567932, 0.110751871116004, + 0.104890944779502, 0.151215885925301, -0.0937289078155581, + 0.274319394407329, 0.198603116965817, 0.329834669046153, + 0.227801827008104, 0.33668362438987, 0.454974005598239, + 0.229550331629555, 0.607282526089242, 0.149507241400591, + 0.229720790556087, 0.0621158786424302, -0.0595549536705348, + -0.0938159474177122, -0.191483104083124, -0.252967102522184, + -0.219249991152887, -0.339524784291672, -0.353176242378271, + 0.0813353348970341, -0.0654587134463156, -0.0246701130782029, + -0.0207301123061629, -0.0315039164064682, 0.0212813111780791, + -0.0768046947818802, -0.0393295302908703, -0.116127290200662, + 0.0435247410072016, -0.245414122054282, 0.158908303150518, + -0.816734417627416, 0.881877093561075, -0.364638309241683, + -0.056786256722417, -0.00968527020423421, 0.0265910927732837, + 0.0380557354124225, 0.053493718904318, 0.0242576056241561, + 0.0557321652408447, 0.162137334893874, 0.217365341750675, + 0.0816311056865962, -0.0596536181056574, -0.0310250346933758, + -0.0258598033359973, 1.57157757262447, -0.551846529931971, + 0.178630089646898, -0.121940697227273, -0.025984796272873, + -0.0676047713589873, -0.0647127382787066, -0.0818438736871805, + -0.0939009139216642, -0.0902348993636832, -0.0508630584433755, + -0.0609219372551081, -0.013009064200119, 0.0192798284833754, + 0.0264362938415028, 0.0497024606324435, 0.0643121575768081, + 0.0663163083142627, 0.0640123302445087, 0.0750880869238639 + ]).reshape(24, 24, order="F") + +mpg_bs.gcv_ubre = 5.16162045425616 +mpg_bs.aic = 909.585145453506 +mpg_bs.rank = 24 +mpg_bs.gcv_ubre_dev = 5.16162045425363 +mpg_bs.method = "GCV" +mpg_bs.cmX = np.array([ + 1, 0.901477832512315, 0.58128078817734, 0.374384236453202, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + ]) +mpg_bs.assign = np.array([ + 0, 1, 2, 2 + ]) +mpg_bs.offset = np.array([ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + ]) +mpg_bs.df_residual = 185.099985812547 +mpg_bs.min_edf = 6 +mpg_bs.optimizer = "magic" +mpg_bs.p_coeff = np.array([ + 29.6272774569595, -6.21365498504518, 1.43986598470837, 1.01128095138012 + ]) +mpg_bs.se = np.array([ + 1.10736522428059, 0.730964352033962, 0.802742257532199, + 0.82715120287436, 3.45934930908735, 1.72348162068993, 1.34626504738022, + 1.128648591521, 1.23820355203725, 1.25079638223793, 1.32555503230954, + 1.46276521490991, 2.08682079164069, 2.44820576733618, 1.57664310132803, + 0.706341710395395, 0.340307783146933, 0.439430720698385, + 0.475893350342798, 0.681557125789893, 0.862789472579143, + 1.29715423972101, 2.01034871279469, 1.89702020234941 + ]) +mpg_bs.p_t = np.array([ + 26.7547479434413, -8.50062655963349, 1.7936840513851, 1.22260712172806 + ]) +mpg_bs.p_pv = np.array([ + 1.61958620027156e-65, 6.17307801841172e-15, 0.0744959485685591, + 0.223032563883354 + ]) +mpg_bs.residual_df = 185.099985812547 +mpg_bs.m = 2 +mpg_bs.chi_sq = np.array([ + 132.00007563458, 69.3539925351537 + ]) +mpg_bs.s_pv = np.array([ + 4.72304400617769e-18, 6.21718617954453e-12 + ]) +mpg_bs.scale = 4.70648213227865 +mpg_bs.r_sq = 0.890988350463498 +mpg_bs.n = 203 +mpg_bs.dev_expl = 0.900108639690056 +mpg_bs.edf = np.array([ + 10.2535689759835, 3.64644521146987 + ]) +mpg_bs.dispersion = 4.70648213227865 +mpg_bs.pTerms_pv = np.array([ + 6.1730780184117e-15, 0.175815884801339 + ]) +mpg_bs.pTerms_chi_sq = np.array([ + 72.2606519063463, 3.50949117352962 + ]) +mpg_bs.pTerms_df = np.array([ + 1, 2 + ]) +mpg_bs.cov_unscaled = np.array([ + 0.260546562269068, -0.127261644910421, -0.147454452733496, + -0.147400601308703, 0.0858934363413853, 0.0324027409627562, + 0.001951459420489, -0.0444711495173745, -0.051050382403525, + -0.0558058242079355, -0.0776843093730959, -0.0696248432860819, + -0.143873948165499, -0.102565827833482, -0.0504628003799288, + -0.0838215012227384, -0.0264331690405809, 0.0189063712819891, + 0.0354335965549041, 0.0710226222907629, 0.086637653107266, + 0.101618191765279, 0.081840238740399, 0.0953496710685112, + -0.127261644910421, 0.11352616857503, 0.025864159966478, + 0.026405976204483, -0.0647092342623571, -0.0194747421679251, + 0.0013822670878288, 0.0319763850603683, 0.034430423334006, + 0.0345203757451707, 0.0608821466756475, 0.0407664667130339, + 0.130282891645105, 0.0851176416918229, 0.0400522748720902, + 0.0629753993433594, 0.0181263443541013, -0.0160778765682171, + -0.0267074236912963, -0.0523474645302372, -0.0639429975967239, + -0.0786117565174105, -0.063904170832196, -0.077928384358563, + -0.147454452733496, 0.025864159966478, 0.136916515120372, + 0.118999524300398, -0.0327647151474401, -0.0198952632533516, + -0.00672761172219511, 0.015354304214709, 0.0188841458743991, + 0.0289212388819706, 0.0254660969027705, 0.0406957842836357, + 0.0400286710723789, 0.0342842902886422, 0.0236887528118937, + 0.0259618144092581, 0.00960697675201729, -0.00467922337824681, + -0.0118300130244149, -0.022700519316666, -0.0264358122220455, + -0.0335761909581523, -0.0153555815191469, -0.022334457938622, + -0.147400601308703, 0.026405976204483, 0.118999524300398, + 0.145369533589466, -0.0227413331564733, -0.0087662833528124, + 0.00190469794456696, 0.0179494340611051, 0.0241333019028084, + 0.0210348337470021, 0.0213616121916855, 0.0246247004357953, + 0.00843762000002028, 0.0157735311385979, 0.00156722820696845, + 0.0319443758959039, 0.0120419610749916, -0.00452096841614408, + -0.011968684582334, -0.028412434692433, -0.0364006470838577, + -0.0300072493763622, -0.0408835076677611, -0.0323634585859656, + 0.0858934363413853, -0.0647092342623571, -0.0327647151474401, + -0.0227413331564733, 2.54268417598119, -0.76859110341217, + 0.285406451366382, -0.104994244590691, 0.0177218270496262, + -0.0481109774851848, -0.0409982342644028, -0.0444588957252262, + -0.0806376771582389, -0.0827972314624984, -0.0490348449178703, + -0.0673431972324915, -0.0168710490878408, 0.0189552170264795, + 0.0286066089048379, 0.0551838149903664, 0.0723392929084603, + 0.0763983959054345, 0.0512365416163641, 0.0602549766706101, + 0.0324027409627562, -0.0194747421679251, -0.0198952632533516, + -0.0087662833528124, -0.76859110341217, 0.631127201457765, + -0.111958277080447, 0.187556063652864, 0.066179499479836, + 0.0804163944044619, 0.0298368025897733, 0.0970443447402095, + 0.0130451200626575, -0.0261265914515338, -0.0195915902087622, + -0.0273469708991807, -0.0264787364275103, -0.0125691792814477, + 0.00392141065820518, 0.0241964117675904, 0.0349487881953121, + 0.0398279043446865, 0.0271145839091361, 0.0312444446552389, + 0.001951459420489, 0.0013822670878288, -0.00672761172219511, + 0.00190469794456696, 0.285406451366382, -0.111958277080447, + 0.385092204083263, 0.0684932186535236, 0.21935562612521, + 0.0971768028496673, 0.127578101317701, 0.194137807287134, + 0.0922773004373818, 0.0187094646414516, 0.0180269695686678, + 0.0270781204690177, -0.00896910696738203, -0.028771799405471, + -0.0250965967014997, -0.0297690048221073, -0.0221247951627148, + -0.00375225549366836, -0.00499252275484576, -0.000842958258748316, + -0.0444711495173745, 0.0319763850603683, 0.015354304214709, + 0.0179494340611051, -0.104994244590691, 0.187556063652864, + 0.0684932186535236, 0.270658127947807, 0.0927495887348496, + 0.148746573370328, 0.0894230227281297, 0.178358167405521, + 0.0971648415678839, 0.0482289443030786, 0.0209345589972529, + 0.031814817117821, 0.00160852784573758, -0.0193956772787635, + -0.0241634602639173, -0.033120623649721, -0.0298135881052149, + -0.0151579476090994, -0.015226518459989, -0.0170673905077609, + -0.051050382403525, 0.034430423334006, 0.0188841458743991, + 0.0241333019028084, 0.0177218270496262, 0.066179499479836, + 0.21935562612521, 0.0927495887348496, 0.32575243954775, + 0.0540054156093696, 0.196470598735639, 0.21878824740985, + 0.158281660903183, 0.0495887693620706, 0.0461974644721407, + 0.0714027358930935, 0.00795472458798096, -0.0375872201518705, + -0.0481859108317218, -0.0711759115486841, -0.0679438229402484, + -0.0465375731482666, -0.0374137141732135, -0.03621185498621, + -0.0558058242079355, 0.0345203757451707, 0.0289212388819706, + 0.0210348337470021, -0.0481109774851848, 0.0804163944044619, + 0.0971768028496673, 0.148746573370328, 0.0540054156093696, + 0.332412095881484, -0.0207364863609935, 0.207339580194955, + 0.0359008074045836, 0.111069102387542, 0.0147778467074979, + 0.0495142478924261, 0.00840110351440287, -0.0203794249747989, + -0.0278449665463922, -0.0503865940754587, -0.0640058749264548, + -0.0113041068243097, -0.00831843730650562, -0.0139208013344843, + -0.0776843093730959, 0.0608821466756475, 0.0254660969027705, + 0.0213616121916855, -0.0409982342644028, 0.0298368025897733, + 0.127578101317701, 0.0894230227281297, 0.196470598735639, + -0.0207364863609935, 0.373335347781393, 0.1104631596741, + 0.284840959571074, 0.0105060767846668, 0.102975779715763, + 0.0867862639453907, 0.0243900586439621, -0.0203947322272078, + -0.0329187994318598, -0.0720367757012015, -0.0975457943816516, + -0.0963534317742545, -0.111064756608917, -0.0921425296807421, + -0.0696248432860819, 0.0407664667130339, 0.0406957842836357, + 0.0246247004357953, -0.0444588957252262, 0.0970443447402095, + 0.194137807287134, 0.178358167405521, 0.21878824740985, + 0.207339580194955, 0.1104631596741, 0.454624497408751, + -0.0714258011738595, 0.310716907708582, 0.0601826022359559, + 0.089018060168629, 0.0213745513074023, -0.0241876884076926, + -0.0348407606643524, -0.0741087942465015, -0.107535703221613, + -0.11590339783913, -0.0196286635230926, -0.0172844920058013, + -0.143873948165499, 0.130282891645105, 0.0400286710723789, + 0.00843762000002028, -0.0806376771582389, 0.0130451200626575, + 0.0922773004373818, 0.0971648415678839, 0.158281660903183, + 0.0359008074045836, 0.284840959571074, -0.0714258011738595, + 0.925281535981413, -0.471672910363488, 0.208389419328838, + 0.0981854960490571, 0.0217225069458946, -0.0369925296936159, + -0.0566738032825664, -0.0893089330064972, -0.073868746305302, + -0.12235614875335, -0.105907217560377, -0.198551268786848, + -0.102565827833482, 0.0851176416918229, 0.0342842902886422, + 0.0157735311385979, -0.0827972314624984, -0.0261265914515338, + 0.0187094646414516, 0.0482289443030786, 0.0495887693620706, + 0.111069102387542, 0.0105060767846668, 0.310716907708582, + -0.471672910363488, 1.27350137762369, -0.222798870596428, + 0.0846537549088317, 0.0332438408000797, -0.00412934016917062, + -0.016051679868851, -0.059595718301114, -0.123524453263925, + -0.10297163225623, -0.0757024271527446, -0.0684075332800308, + -0.0504628003799288, 0.0400522748720902, 0.0236887528118937, + 0.00156722820696845, -0.0490348449178703, -0.0195915902087622, + 0.0180269695686678, 0.0209345589972529, 0.0461974644721407, + 0.0147778467074979, 0.102975779715763, 0.0601826022359559, + 0.208389419328838, -0.222798870596428, 0.52816592076634, + 0.0520599245003621, 0.0206050701500866, -0.00253853872657549, + -0.0102983340619392, -0.0318200608092311, -0.0424757746658764, + -0.117320466802546, -0.144246293596641, -0.121800944620384, + -0.0838215012227384, 0.0629753993433594, 0.0259618144092581, + 0.0319443758959039, -0.0673431972324915, -0.0273469708991807, + 0.0270781204690177, 0.031814817117821, 0.0714027358930935, + 0.0495142478924261, 0.0867862639453907, 0.089018060168629, + 0.0981854960490571, 0.0846537549088317, 0.0520599245003621, + 0.106006694134147, 0.0215080027514771, -0.037843257632743, + -0.0519430665866201, -0.0920716816523268, -0.109188273097782, + -0.0930671671318803, -0.0721417252895369, -0.0729173883583565, + -0.0264331690405809, 0.0181263443541013, 0.00960697675201729, + 0.0120419610749916, -0.0168710490878408, -0.0264787364275103, + -0.00896910696738203, 0.00160852784573758, 0.00795472458798096, + 0.00840110351440287, 0.0243900586439621, 0.0213745513074023, + 0.0217225069458946, 0.0332438408000797, 0.0206050701500866, + 0.0215080027514771, 0.0246063586380409, 0.00847331422875254, + -0.00270662509257549, -0.0166664535611419, -0.0268399881068754, + -0.0302919303225419, -0.0272696852211407, -0.0275284441796622, + 0.0189063712819891, -0.0160778765682171, -0.00467922337824681, + -0.00452096841614408, 0.0189552170264795, -0.0125691792814477, + -0.028771799405471, -0.0193956772787635, -0.0375872201518705, + -0.0203794249747989, -0.0203947322272078, -0.0241876884076926, + -0.0369925296936159, -0.00412934016917062, -0.00253853872657549, + -0.037843257632743, 0.00847331422875254, 0.0410283844422061, + 0.0340956221608027, 0.0371845294194256, 0.0290913575478051, + 0.0143241042112522, 0.00594206245237508, 0.00694057449961806, + 0.0354335965549041, -0.0267074236912963, -0.0118300130244149, + -0.011968684582334, 0.0286066089048379, 0.00392141065820518, + -0.0250965967014997, -0.0241634602639173, -0.0481859108317218, + -0.0278449665463922, -0.0329187994318598, -0.0348407606643524, + -0.0566738032825664, -0.016051679868851, -0.0102983340619392, + -0.0519430665866201, -0.00270662509257549, 0.0340956221608027, + 0.0481196941867164, 0.0512995083369737, 0.0427880770540714, + 0.025938901829721, 0.0172406430026829, 0.0190854917034619, + 0.0710226222907629, -0.0523474645302372, -0.022700519316666, + -0.028412434692433, 0.0551838149903664, 0.0241964117675904, + -0.0297690048221073, -0.033120623649721, -0.0711759115486841, + -0.0503865940754587, -0.0720367757012015, -0.0741087942465015, + -0.0893089330064972, -0.059595718301114, -0.0318200608092311, + -0.0920716816523268, -0.0166664535611419, 0.0371845294194256, + 0.0512995083369737, 0.0986979452294408, 0.0917669226619505, + 0.0635525514325997, 0.0510213739757127, 0.0513114624886664, + 0.086637653107266, -0.0639429975967239, -0.0264358122220455, + -0.0364006470838577, 0.0723392929084603, 0.0349487881953121, + -0.0221247951627148, -0.0298135881052149, -0.0679438229402484, + -0.0640058749264548, -0.0975457943816516, -0.107535703221613, + -0.073868746305302, -0.123524453263925, -0.0424757746658764, + -0.109188273097782, -0.0268399881068754, 0.0290913575478051, + 0.0427880770540714, 0.0917669226619505, 0.158166046969139, + 0.0526478012750861, 0.0878449503315404, 0.072216656566408, + 0.101618191765279, -0.0786117565174105, -0.0335761909581523, + -0.0300072493763622, 0.0763983959054345, 0.0398279043446865, + -0.00375225549366836, -0.0151579476090994, -0.0465375731482666, + -0.0113041068243097, -0.0963534317742545, -0.11590339783913, + -0.12235614875335, -0.10297163225623, -0.117320466802546, + -0.0930671671318803, -0.0302919303225419, 0.0143241042112522, + 0.025938901829721, 0.0635525514325997, 0.0526478012750861, + 0.357508872728168, -0.122181710723627, 0.0529625804413154, + 0.081840238740399, -0.063904170832196, -0.0153555815191469, + -0.0408835076677611, 0.0512365416163641, 0.0271145839091361, + -0.00499252275484576, -0.015226518459989, -0.0374137141732135, + -0.00831843730650562, -0.111064756608917, -0.0196286635230926, + -0.105907217560377, -0.0757024271527446, -0.144246293596641, + -0.0721417252895369, -0.0272696852211407, 0.00594206245237508, + 0.0172406430026829, 0.0510213739757127, 0.0878449503315404, + -0.122181710723627, 0.858709718521459, 0.158673552049344, + 0.0953496710685112, -0.077928384358563, -0.022334457938622, + -0.0323634585859656, 0.0602549766706101, 0.0312444446552389, + -0.000842958258748316, -0.0170673905077609, -0.03621185498621, + -0.0139208013344843, -0.0921425296807421, -0.0172844920058013, + -0.198551268786848, -0.0684075332800308, -0.121800944620384, + -0.0729173883583565, -0.0275284441796622, 0.00694057449961806, + 0.0190854917034619, 0.0513114624886664, 0.072216656566408, + 0.0529625804413154, 0.158673552049344, 0.764623246615722 + ]).reshape(24, 24, order="F") + +mpg_bs.cov_scaled = mpg_bs.cov_unscaled * mpg_bs.scale + +mpg_bs.p_table = np.array([ + 29.6272774569595, -6.21365498504518, 1.43986598470837, 1.01128095138012, + 1.10736522428059, 0.730964352033962, 0.802742257532199, + 0.82715120287436, 26.7547479434413, -8.50062655963349, 1.7936840513851, + 1.22260712172806, 1.61958620027156e-65, 6.17307801841172e-15, + 0.0744959485685591, 0.223032563883354 + ]).reshape(4, 4, order="F") + +mpg_bs.pTerms_table = np.array([ + 1, 2, 72.2606519063463, 1.75474558676481, 6.1730780184117e-15, + 0.175815884801339 + ]).reshape(2, 3, order="F") + +mpg_bs.s_table = np.array([ + 10.2535689759835, 3.64644521146987, 10.8058511361601, 4.39467905741677, + 12.2156111509682, 15.7813555049275, 4.72304400617769e-18, + 6.21718617954453e-12 + ]).reshape(2, 4, order="F") + +mpg_bs.method = "GCV" +mpg_bs.sp_criterion = 5.16162045425616 +mpg_bs.rank = 24 +mpg_bs.np = 24 +mpg_bs.params = np.array([ + 29.6272774569595, -6.21365498504518, 1.43986598470837, 1.01128095138012, + 20.1053719083286, -1.26007449980292, -5.26871981200625, + -4.544036357677, -7.60063071956733, -5.01036711884368, + -6.96226144900638, -9.06722069409647, -8.81829781369916, + -7.9145836553663, -6.28068941724657, 5.09307848346347, + 1.90848821039499, -0.646225516186639, -1.50240395085899, + -4.19244286007642, -5.72993924243941, -6.83323296859843, + -5.77088950575513, -4.29112523442438 + ]) diff --git a/shared/package-files/ea/eafc53489e44a74dbbe719a554e407fa2245d778602065d13a0f779325ae7f6b/blob b/shared/package-files/ea/eafc53489e44a74dbbe719a554e407fa2245d778602065d13a0f779325ae7f6b/blob new file mode 100644 index 0000000000000000000000000000000000000000..03747d0a2c35195fa52942673371890d10566a94 --- /dev/null +++ b/shared/package-files/ea/eafc53489e44a74dbbe719a554e407fa2245d778602065d13a0f779325ae7f6b/blob @@ -0,0 +1,22 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::tuple rnn_tanh(const at::Tensor & input, const at::Tensor & hx, at::TensorList params, bool has_biases, int64_t num_layers, double dropout, bool train, bool bidirectional, bool batch_first); +TORCH_API ::std::tuple rnn_tanh(const at::Tensor & data, const at::Tensor & batch_sizes, const at::Tensor & hx, at::TensorList params, bool has_biases, int64_t num_layers, double dropout, bool train, bool bidirectional); +} // namespace native +} // namespace at diff --git a/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/blob b/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/blob new file mode 100644 index 0000000000000000000000000000000000000000..32a7ec05eeaa5938c238b39519911e132250b0b1 Binary files /dev/null and b/shared/package-files/ea/eafce3a207a062d1a68e8e4ddb9118d03c2ce9e2ba01a6f24340038ff4e53b90/blob differ diff --git a/shared/package-files/eb/eb03e9e6c818d705ff56539b02eb648a8590ec6eedaffe7bfa5f05e2eb3b11a0/blob b/shared/package-files/eb/eb03e9e6c818d705ff56539b02eb648a8590ec6eedaffe7bfa5f05e2eb3b11a0/blob new file mode 100644 index 0000000000000000000000000000000000000000..795f945baba7c0a86aeca1e4a47f4e5b58eec928 --- /dev/null +++ b/shared/package-files/eb/eb03e9e6c818d705ff56539b02eb648a8590ec6eedaffe7bfa5f05e2eb3b11a0/blob @@ -0,0 +1,91 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::_cudnn_rnn_backward(Tensor input, Tensor[] weight, int weight_stride0, Tensor weight_buf, Tensor hx, Tensor? cx, Tensor output, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, SymInt[] batch_sizes, Tensor? dropout_state, Tensor reserve, bool[4] output_mask) -> (Tensor, Tensor, Tensor, Tensor[]) +inline ::std::tuple> _cudnn_rnn_backward(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, reserve, output_mask); +} +namespace symint { + template ::value>> + ::std::tuple> _cudnn_rnn_backward(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, reserve, output_mask); + } +} + +// aten::_cudnn_rnn_backward(Tensor input, Tensor[] weight, int weight_stride0, Tensor weight_buf, Tensor hx, Tensor? cx, Tensor output, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, SymInt[] batch_sizes, Tensor? dropout_state, Tensor reserve, bool[4] output_mask) -> (Tensor, Tensor, Tensor, Tensor[]) +inline ::std::tuple> _cudnn_rnn_backward_symint(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, c10::SymIntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask); +} +namespace symint { + template ::value>> + ::std::tuple> _cudnn_rnn_backward(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, c10::SymIntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask); + } +} + +// aten::_cudnn_rnn_backward.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor weight_buf, Tensor hx, Tensor? cx, Tensor output, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, SymInt[] batch_sizes, Tensor? dropout_state, Tensor reserve, bool[4] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!)[] out3) -> () +inline void _cudnn_rnn_backward_out(at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, reserve, output_mask, out0, out1, out2, out3); +} +namespace symint { + template ::value>> + void _cudnn_rnn_backward_out(at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, reserve, output_mask, out0, out1, out2, out3); + } +} + +// aten::_cudnn_rnn_backward.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor weight_buf, Tensor hx, Tensor? cx, Tensor output, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, SymInt[] batch_sizes, Tensor? dropout_state, Tensor reserve, bool[4] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!)[] out3) -> () +inline void _cudnn_rnn_backward_outf(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, reserve, output_mask, out0, out1, out2, out3); +} +namespace symint { + template ::value>> + void _cudnn_rnn_backward_outf(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, int64_t hidden_size, int64_t proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, at::IntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, c10::fromIntArrayRefSlow(batch_sizes), dropout_state, reserve, output_mask, out0, out1, out2, out3); + } +} + +// aten::_cudnn_rnn_backward.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor weight_buf, Tensor hx, Tensor? cx, Tensor output, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, SymInt[] batch_sizes, Tensor? dropout_state, Tensor reserve, bool[4] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!)[] out3) -> () +inline void _cudnn_rnn_backward_symint_out(at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, c10::SymIntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask, out0, out1, out2, out3); +} +namespace symint { + template ::value>> + void _cudnn_rnn_backward_out(at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3, const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, c10::SymIntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask, out0, out1, out2, out3); + } +} + +// aten::_cudnn_rnn_backward.out(Tensor input, Tensor[] weight, int weight_stride0, Tensor weight_buf, Tensor hx, Tensor? cx, Tensor output, Tensor? grad_output, Tensor? grad_hy, Tensor? grad_cy, int mode, SymInt hidden_size, SymInt proj_size, int num_layers, bool batch_first, float dropout, bool train, bool bidirectional, SymInt[] batch_sizes, Tensor? dropout_state, Tensor reserve, bool[4] output_mask, *, Tensor(a!) out0, Tensor(b!) out1, Tensor(c!) out2, Tensor(d!)[] out3) -> () +inline void _cudnn_rnn_backward_symint_outf(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, c10::SymIntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask, out0, out1, out2, out3); +} +namespace symint { + template ::value>> + void _cudnn_rnn_backward_outf(const at::Tensor & input, at::TensorList weight, int64_t weight_stride0, const at::Tensor & weight_buf, const at::Tensor & hx, const c10::optional & cx, const at::Tensor & output, const c10::optional & grad_output, const c10::optional & grad_hy, const c10::optional & grad_cy, int64_t mode, c10::SymInt hidden_size, c10::SymInt proj_size, int64_t num_layers, bool batch_first, double dropout, bool train, bool bidirectional, c10::SymIntArrayRef batch_sizes, const c10::optional & dropout_state, const at::Tensor & reserve, ::std::array output_mask, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::TensorList out3) { + return at::_ops::_cudnn_rnn_backward_out::call(input, weight, weight_stride0, weight_buf, hx, cx, output, grad_output, grad_hy, grad_cy, mode, hidden_size, proj_size, num_layers, batch_first, dropout, train, bidirectional, batch_sizes, dropout_state, reserve, output_mask, out0, out1, out2, out3); + } +} + +} diff --git a/shared/package-files/eb/eb05a365168977ffb61e211e5a241ecc73efe1953023c4978ebec388d4ae1330/blob b/shared/package-files/eb/eb05a365168977ffb61e211e5a241ecc73efe1953023c4978ebec388d4ae1330/blob new file mode 100644 index 0000000000000000000000000000000000000000..d5c20af197f1bea83c6c3748977208bde4615a78 Binary files /dev/null and b/shared/package-files/eb/eb05a365168977ffb61e211e5a241ecc73efe1953023c4978ebec388d4ae1330/blob differ diff --git a/shared/package-files/eb/eb069790311e7305d6bee74bfc9d9ac93b74b7b4ecea149c4d23973551c1e920/blob b/shared/package-files/eb/eb069790311e7305d6bee74bfc9d9ac93b74b7b4ecea149c4d23973551c1e920/blob new file mode 100644 index 0000000000000000000000000000000000000000..81d46f23cfd8c687436760df35e770de0dd4ebc5 --- /dev/null +++ b/shared/package-files/eb/eb069790311e7305d6bee74bfc9d9ac93b74b7b4ecea149c4d23973551c1e920/blob @@ -0,0 +1,23 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::vector tensor_split_sections_symint(const at::Tensor & self, c10::SymInt sections, int64_t dim=0); +TORCH_API ::std::vector tensor_split_indices_symint(const at::Tensor & self, c10::SymIntArrayRef indices, int64_t dim=0); +TORCH_API ::std::vector tensor_split(const at::Tensor & self, const at::Tensor & tensor_indices_or_sections, int64_t dim=0); +} // namespace native +} // namespace at diff --git a/shared/package-files/eb/eb07c3fe1c1ae0a758d7ea4b5e08c80107d8a593bf2c20ac69531859a57a7542/blob b/shared/package-files/eb/eb07c3fe1c1ae0a758d7ea4b5e08c80107d8a593bf2c20ac69531859a57a7542/blob new file mode 100644 index 0000000000000000000000000000000000000000..5c4ed0361a603e10338a8d494838ebd861f56cb8 --- /dev/null +++ b/shared/package-files/eb/eb07c3fe1c1ae0a758d7ea4b5e08c80107d8a593bf2c20ac69531859a57a7542/blob @@ -0,0 +1,895 @@ +''' Classes for read / write of matlab (TM) 5 files + +The matfile specification last found here: + +https://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/matfile_format.pdf + +(as of December 5 2008) + +================================= + Note on functions and mat files +================================= + +The document above does not give any hints as to the storage of matlab +function handles, or anonymous function handles. I had, therefore, to +guess the format of matlab arrays of ``mxFUNCTION_CLASS`` and +``mxOPAQUE_CLASS`` by looking at example mat files. + +``mxFUNCTION_CLASS`` stores all types of matlab functions. It seems to +contain a struct matrix with a set pattern of fields. For anonymous +functions, a sub-fields of one of these fields seems to contain the +well-named ``mxOPAQUE_CLASS``. This seems to contain: + +* array flags as for any matlab matrix +* 3 int8 strings +* a matrix + +It seems that whenever the mat file contains a ``mxOPAQUE_CLASS`` +instance, there is also an un-named matrix (name == '') at the end of +the mat file. I'll call this the ``__function_workspace__`` matrix. + +When I saved two anonymous functions in a mat file, or appended another +anonymous function to the mat file, there was still only one +``__function_workspace__`` un-named matrix at the end, but larger than +that for a mat file with a single anonymous function, suggesting that +the workspaces for the two functions had been merged. + +The ``__function_workspace__`` matrix appears to be of double class +(``mxCLASS_DOUBLE``), but stored as uint8, the memory for which is in +the format of a mini .mat file, without the first 124 bytes of the file +header (the description and the subsystem_offset), but with the version +U2 bytes, and the S2 endian test bytes. There follow 4 zero bytes, +presumably for 8 byte padding, and then a series of ``miMATRIX`` +entries, as in a standard mat file. The ``miMATRIX`` entries appear to +be series of un-named (name == '') matrices, and may also contain arrays +of this same mini-mat format. + +I guess that: + +* saving an anonymous function back to a mat file will need the + associated ``__function_workspace__`` matrix saved as well for the + anonymous function to work correctly. +* appending to a mat file that has a ``__function_workspace__`` would + involve first pulling off this workspace, appending, checking whether + there were any more anonymous functions appended, and then somehow + merging the relevant workspaces, and saving at the end of the mat + file. + +The mat files I was playing with are in ``tests/data``: + +* sqr.mat +* parabola.mat +* some_functions.mat + +See ``tests/test_mio.py:test_mio_funcs.py`` for the debugging +script I was working with. + +Small fragments of current code adapted from matfile.py by Heiko +Henkelmann; parts of the code for simplify_cells=True adapted from +http://blog.nephics.com/2019/08/28/better-loadmat-for-scipy/. +''' + +import math +import os +import time +import sys +import zlib + +from io import BytesIO + +import warnings + +import numpy as np + +import scipy.sparse + +from ._byteordercodes import native_code, swapped_code + +from ._miobase import (MatFileReader, docfiller, matdims, read_dtype, + arr_to_chars, arr_dtype_number, MatWriteError, + MatReadError, MatReadWarning) + +# Reader object for matlab 5 format variables +from ._mio5_utils import VarReader5 + +# Constants and helper objects +from ._mio5_params import (MatlabObject, MatlabFunction, MDTYPES, NP_TO_MTYPES, + NP_TO_MXTYPES, miCOMPRESSED, miMATRIX, miINT8, + miUTF8, miUINT32, mxCELL_CLASS, mxSTRUCT_CLASS, + mxOBJECT_CLASS, mxCHAR_CLASS, mxSPARSE_CLASS, + mxDOUBLE_CLASS, mclass_info, mat_struct) + +from ._streams import ZlibInputStream + + +def _has_struct(elem): + """Determine if elem is an array and if first array item is a struct.""" + return (isinstance(elem, np.ndarray) and (elem.size > 0) and (elem.ndim > 0) and + isinstance(elem[0], mat_struct)) + + +def _inspect_cell_array(ndarray): + """Construct lists from cell arrays (loaded as numpy ndarrays), recursing + into items if they contain mat_struct objects.""" + elem_list = [] + for sub_elem in ndarray: + if isinstance(sub_elem, mat_struct): + elem_list.append(_matstruct_to_dict(sub_elem)) + elif _has_struct(sub_elem): + elem_list.append(_inspect_cell_array(sub_elem)) + else: + elem_list.append(sub_elem) + return elem_list + + +def _matstruct_to_dict(matobj): + """Construct nested dicts from mat_struct objects.""" + d = {} + for f in matobj._fieldnames: + elem = matobj.__dict__[f] + if isinstance(elem, mat_struct): + d[f] = _matstruct_to_dict(elem) + elif _has_struct(elem): + d[f] = _inspect_cell_array(elem) + else: + d[f] = elem + return d + + +def _simplify_cells(d): + """Convert mat objects in dict to nested dicts.""" + for key in d: + if isinstance(d[key], mat_struct): + d[key] = _matstruct_to_dict(d[key]) + elif _has_struct(d[key]): + d[key] = _inspect_cell_array(d[key]) + return d + + +class MatFile5Reader(MatFileReader): + ''' Reader for Mat 5 mat files + Adds the following attribute to base class + + uint16_codec - char codec to use for uint16 char arrays + (defaults to system default codec) + + Uses variable reader that has the following standard interface (see + abstract class in ``miobase``:: + + __init__(self, file_reader) + read_header(self) + array_from_header(self) + + and added interface:: + + set_stream(self, stream) + read_full_tag(self) + + ''' + @docfiller + def __init__(self, + mat_stream, + byte_order=None, + mat_dtype=False, + squeeze_me=False, + chars_as_strings=True, + matlab_compatible=False, + struct_as_record=True, + verify_compressed_data_integrity=True, + uint16_codec=None, + simplify_cells=False): + '''Initializer for matlab 5 file format reader + + %(matstream_arg)s + %(load_args)s + %(struct_arg)s + uint16_codec : {None, string} + Set codec to use for uint16 char arrays (e.g., 'utf-8'). + Use system default codec if None + ''' + super().__init__( + mat_stream, + byte_order, + mat_dtype, + squeeze_me, + chars_as_strings, + matlab_compatible, + struct_as_record, + verify_compressed_data_integrity, + simplify_cells) + # Set uint16 codec + if not uint16_codec: + uint16_codec = sys.getdefaultencoding() + self.uint16_codec = uint16_codec + # placeholders for readers - see initialize_read method + self._file_reader = None + self._matrix_reader = None + + def guess_byte_order(self): + ''' Guess byte order. + Sets stream pointer to 0''' + self.mat_stream.seek(126) + mi = self.mat_stream.read(2) + self.mat_stream.seek(0) + return mi == b'IM' and '<' or '>' + + def read_file_header(self): + ''' Read in mat 5 file header ''' + hdict = {} + hdr_dtype = MDTYPES[self.byte_order]['dtypes']['file_header'] + hdr = read_dtype(self.mat_stream, hdr_dtype) + hdict['__header__'] = hdr['description'].item().strip(b' \t\n\000') + v_major = hdr['version'] >> 8 + v_minor = hdr['version'] & 0xFF + hdict['__version__'] = '%d.%d' % (v_major, v_minor) + return hdict + + def initialize_read(self): + ''' Run when beginning read of variables + + Sets up readers from parameters in `self` + ''' + # reader for top level stream. We need this extra top-level + # reader because we use the matrix_reader object to contain + # compressed matrices (so they have their own stream) + self._file_reader = VarReader5(self) + # reader for matrix streams + self._matrix_reader = VarReader5(self) + + def read_var_header(self): + ''' Read header, return header, next position + + Header has to define at least .name and .is_global + + Parameters + ---------- + None + + Returns + ------- + header : object + object that can be passed to self.read_var_array, and that + has attributes .name and .is_global + next_position : int + position in stream of next variable + ''' + mdtype, byte_count = self._file_reader.read_full_tag() + if not byte_count > 0: + raise ValueError("Did not read any bytes") + next_pos = self.mat_stream.tell() + byte_count + if mdtype == miCOMPRESSED: + # Make new stream from compressed data + stream = ZlibInputStream(self.mat_stream, byte_count) + self._matrix_reader.set_stream(stream) + check_stream_limit = self.verify_compressed_data_integrity + mdtype, byte_count = self._matrix_reader.read_full_tag() + else: + check_stream_limit = False + self._matrix_reader.set_stream(self.mat_stream) + if not mdtype == miMATRIX: + raise TypeError('Expecting miMATRIX type here, got %d' % mdtype) + header = self._matrix_reader.read_header(check_stream_limit) + return header, next_pos + + def read_var_array(self, header, process=True): + ''' Read array, given `header` + + Parameters + ---------- + header : header object + object with fields defining variable header + process : {True, False} bool, optional + If True, apply recursive post-processing during loading of + array. + + Returns + ------- + arr : array + array with post-processing applied or not according to + `process`. + ''' + return self._matrix_reader.array_from_header(header, process) + + def get_variables(self, variable_names=None): + ''' get variables from stream as dictionary + + variable_names - optional list of variable names to get + + If variable_names is None, then get all variables in file + ''' + if isinstance(variable_names, str): + variable_names = [variable_names] + elif variable_names is not None: + variable_names = list(variable_names) + + self.mat_stream.seek(0) + # Here we pass all the parameters in self to the reading objects + self.initialize_read() + mdict = self.read_file_header() + mdict['__globals__'] = [] + while not self.end_of_stream(): + hdr, next_position = self.read_var_header() + name = 'None' if hdr.name is None else hdr.name.decode('latin1') + if name in mdict: + msg = ( + f'Duplicate variable name "{name}" in stream' + " - replacing previous with new\nConsider" + "scipy.io.matlab.varmats_from_mat to split " + "file into single variable files" + ) + warnings.warn(msg, MatReadWarning, stacklevel=2) + if name == '': + # can only be a matlab 7 function workspace + name = '__function_workspace__' + # We want to keep this raw because mat_dtype processing + # will break the format (uint8 as mxDOUBLE_CLASS) + process = False + else: + process = True + if variable_names is not None and name not in variable_names: + self.mat_stream.seek(next_position) + continue + try: + res = self.read_var_array(hdr, process) + except MatReadError as err: + warnings.warn( + f'Unreadable variable "{name}", because "{err}"', + Warning, stacklevel=2) + res = f"Read error: {err}" + self.mat_stream.seek(next_position) + mdict[name] = res + if hdr.is_global: + mdict['__globals__'].append(name) + if variable_names is not None: + variable_names.remove(name) + if len(variable_names) == 0: + break + if self.simplify_cells: + return _simplify_cells(mdict) + else: + return mdict + + def list_variables(self): + ''' list variables from stream ''' + self.mat_stream.seek(0) + # Here we pass all the parameters in self to the reading objects + self.initialize_read() + self.read_file_header() + vars = [] + while not self.end_of_stream(): + hdr, next_position = self.read_var_header() + name = 'None' if hdr.name is None else hdr.name.decode('latin1') + if name == '': + # can only be a matlab 7 function workspace + name = '__function_workspace__' + + shape = self._matrix_reader.shape_from_header(hdr) + if hdr.is_logical: + info = 'logical' + else: + info = mclass_info.get(hdr.mclass, 'unknown') + vars.append((name, shape, info)) + + self.mat_stream.seek(next_position) + return vars + + +def varmats_from_mat(file_obj): + """ Pull variables out of mat 5 file as a sequence of mat file objects + + This can be useful with a difficult mat file, containing unreadable + variables. This routine pulls the variables out in raw form and puts them, + unread, back into a file stream for saving or reading. Another use is the + pathological case where there is more than one variable of the same name in + the file; this routine returns the duplicates, whereas the standard reader + will overwrite duplicates in the returned dictionary. + + The file pointer in `file_obj` will be undefined. File pointers for the + returned file-like objects are set at 0. + + Parameters + ---------- + file_obj : file-like + file object containing mat file + + Returns + ------- + named_mats : list + list contains tuples of (name, BytesIO) where BytesIO is a file-like + object containing mat file contents as for a single variable. The + BytesIO contains a string with the original header and a single var. If + ``var_file_obj`` is an individual BytesIO instance, then save as a mat + file with something like ``open('test.mat', + 'wb').write(var_file_obj.read())`` + + Examples + -------- + >>> import scipy.io + >>> import numpy as np + >>> from io import BytesIO + >>> from scipy.io.matlab._mio5 import varmats_from_mat + >>> mat_fileobj = BytesIO() + >>> scipy.io.savemat(mat_fileobj, {'b': np.arange(10), 'a': 'a string'}) + >>> varmats = varmats_from_mat(mat_fileobj) + >>> sorted([name for name, str_obj in varmats]) + ['a', 'b'] + """ + rdr = MatFile5Reader(file_obj) + file_obj.seek(0) + # Raw read of top-level file header + hdr_len = MDTYPES[native_code]['dtypes']['file_header'].itemsize + raw_hdr = file_obj.read(hdr_len) + # Initialize variable reading + file_obj.seek(0) + rdr.initialize_read() + rdr.read_file_header() + next_position = file_obj.tell() + named_mats = [] + while not rdr.end_of_stream(): + start_position = next_position + hdr, next_position = rdr.read_var_header() + name = 'None' if hdr.name is None else hdr.name.decode('latin1') + # Read raw variable string + file_obj.seek(start_position) + byte_count = next_position - start_position + var_str = file_obj.read(byte_count) + # write to stringio object + out_obj = BytesIO() + out_obj.write(raw_hdr) + out_obj.write(var_str) + out_obj.seek(0) + named_mats.append((name, out_obj)) + return named_mats + + +class EmptyStructMarker: + """ Class to indicate presence of empty matlab struct on output """ + + +def to_writeable(source): + ''' Convert input object ``source`` to something we can write + + Parameters + ---------- + source : object + + Returns + ------- + arr : None or ndarray or EmptyStructMarker + If `source` cannot be converted to something we can write to a matfile, + return None. If `source` is equivalent to an empty dictionary, return + ``EmptyStructMarker``. Otherwise return `source` converted to an + ndarray with contents for writing to matfile. + ''' + if isinstance(source, np.ndarray): + return source + if source is None: + return None + if hasattr(source, "__array__"): + return np.asarray(source) + # Objects that implement mappings + is_mapping = (hasattr(source, 'keys') and hasattr(source, 'values') and + hasattr(source, 'items')) + # Objects that don't implement mappings, but do have dicts + if isinstance(source, np.generic): + # NumPy scalars are never mappings (PyPy issue workaround) + pass + elif not is_mapping and hasattr(source, '__dict__'): + source = {key: value for key, value in source.__dict__.items() + if not key.startswith('_')} + is_mapping = True + if is_mapping: + dtype = [] + values = [] + for field, value in source.items(): + if (isinstance(field, str) and + field[0] not in '_0123456789'): + dtype.append((str(field), object)) + values.append(value) + if dtype: + return np.array([tuple(values)], dtype) + else: + return EmptyStructMarker + # Next try and convert to an array + try: + narr = np.asanyarray(source) + except ValueError: + narr = np.asanyarray(source, dtype=object) + if narr.dtype.type in (object, np.object_) and \ + narr.shape == () and narr == source: + # No interesting conversion possible + return None + return narr + + +# Native byte ordered dtypes for convenience for writers +NDT_FILE_HDR = MDTYPES[native_code]['dtypes']['file_header'] +NDT_TAG_FULL = MDTYPES[native_code]['dtypes']['tag_full'] +NDT_TAG_SMALL = MDTYPES[native_code]['dtypes']['tag_smalldata'] +NDT_ARRAY_FLAGS = MDTYPES[native_code]['dtypes']['array_flags'] + + +class VarWriter5: + ''' Generic matlab matrix writing class ''' + mat_tag = np.zeros((), NDT_TAG_FULL) + mat_tag['mdtype'] = miMATRIX # type: ignore[call-overload] + + def __init__(self, file_writer): + self.file_stream = file_writer.file_stream + self.unicode_strings = file_writer.unicode_strings + self.long_field_names = file_writer.long_field_names + self.oned_as = file_writer.oned_as + # These are used for top level writes, and unset after + self._var_name = None + self._var_is_global = False + + def write_bytes(self, arr): + self.file_stream.write(arr.tobytes(order='F')) + + def write_string(self, s): + self.file_stream.write(s) + + def write_element(self, arr, mdtype=None): + ''' write tag and data ''' + if mdtype is None: + mdtype = NP_TO_MTYPES[arr.dtype.str[1:]] + # Array needs to be in native byte order + if arr.dtype.byteorder == swapped_code: + arr = arr.byteswap().view(arr.dtype.newbyteorder()) + byte_count = arr.size*arr.itemsize + if byte_count <= 4: + self.write_smalldata_element(arr, mdtype, byte_count) + else: + self.write_regular_element(arr, mdtype, byte_count) + + def write_smalldata_element(self, arr, mdtype, byte_count): + # write tag with embedded data + tag = np.zeros((), NDT_TAG_SMALL) + tag['byte_count_mdtype'] = (byte_count << 16) + mdtype + # if arr.tobytes is < 4, the element will be zero-padded as needed. + tag['data'] = arr.tobytes(order='F') + self.write_bytes(tag) + + def write_regular_element(self, arr, mdtype, byte_count): + # write tag, data + tag = np.zeros((), NDT_TAG_FULL) + tag['mdtype'] = mdtype + tag['byte_count'] = byte_count + self.write_bytes(tag) + self.write_bytes(arr) + # pad to next 64-bit boundary + bc_mod_8 = byte_count % 8 + if bc_mod_8: + self.file_stream.write(b'\x00' * (8-bc_mod_8)) + + def write_header(self, + shape, + mclass, + is_complex=False, + is_logical=False, + nzmax=0): + ''' Write header for given data options + shape : sequence + array shape + mclass - mat5 matrix class + is_complex - True if matrix is complex + is_logical - True if matrix is logical + nzmax - max non zero elements for sparse arrays + + We get the name and the global flag from the object, and reset + them to defaults after we've used them + ''' + # get name and is_global from one-shot object store + name = self._var_name + is_global = self._var_is_global + # initialize the top-level matrix tag, store position + self._mat_tag_pos = self.file_stream.tell() + self.write_bytes(self.mat_tag) + # write array flags (complex, global, logical, class, nzmax) + af = np.zeros((), NDT_ARRAY_FLAGS) + af['data_type'] = miUINT32 + af['byte_count'] = 8 + flags = is_complex << 3 | is_global << 2 | is_logical << 1 + af['flags_class'] = mclass | flags << 8 + af['nzmax'] = nzmax + self.write_bytes(af) + # shape + self.write_element(np.array(shape, dtype='i4')) + # write name + name = np.asarray(name) + if name == '': # empty string zero-terminated + self.write_smalldata_element(name, miINT8, 0) + else: + self.write_element(name, miINT8) + # reset the one-shot store to defaults + self._var_name = '' + self._var_is_global = False + + def update_matrix_tag(self, start_pos): + curr_pos = self.file_stream.tell() + self.file_stream.seek(start_pos) + byte_count = curr_pos - start_pos - 8 + if byte_count >= 2**32: + raise MatWriteError("Matrix too large to save with Matlab " + "5 format") + self.mat_tag['byte_count'] = byte_count + self.write_bytes(self.mat_tag) + self.file_stream.seek(curr_pos) + + def write_top(self, arr, name, is_global): + """ Write variable at top level of mat file + + Parameters + ---------- + arr : array_like + array-like object to create writer for + name : str, optional + name as it will appear in matlab workspace + default is empty string + is_global : {False, True}, optional + whether variable will be global on load into matlab + """ + # these are set before the top-level header write, and unset at + # the end of the same write, because they do not apply for lower levels + self._var_is_global = is_global + self._var_name = name + # write the header and data + self.write(arr) + + def write(self, arr): + ''' Write `arr` to stream at top and sub levels + + Parameters + ---------- + arr : array_like + array-like object to create writer for + ''' + # store position, so we can update the matrix tag + mat_tag_pos = self.file_stream.tell() + # First check if these are sparse + if scipy.sparse.issparse(arr): + self.write_sparse(arr) + self.update_matrix_tag(mat_tag_pos) + return + # Try to convert things that aren't arrays + narr = to_writeable(arr) + if narr is None: + raise TypeError(f'Could not convert {arr} (type {type(arr)}) to array') + if isinstance(narr, MatlabObject): + self.write_object(narr) + elif isinstance(narr, MatlabFunction): + raise MatWriteError('Cannot write matlab functions') + elif narr is EmptyStructMarker: # empty struct array + self.write_empty_struct() + elif narr.dtype.fields: # struct array + self.write_struct(narr) + elif narr.dtype.hasobject: # cell array + self.write_cells(narr) + elif narr.dtype.kind in ('U', 'S'): + if self.unicode_strings: + codec = 'UTF8' + else: + codec = 'ascii' + self.write_char(narr, codec) + else: + self.write_numeric(narr) + self.update_matrix_tag(mat_tag_pos) + + def write_numeric(self, arr): + imagf = arr.dtype.kind == 'c' + logif = arr.dtype.kind == 'b' + try: + mclass = NP_TO_MXTYPES[arr.dtype.str[1:]] + except KeyError: + # No matching matlab type, probably complex256 / float128 / float96 + # Cast data to complex128 / float64. + if imagf: + arr = arr.astype('c128') + elif logif: + arr = arr.astype('i1') # Should only contain 0/1 + else: + arr = arr.astype('f8') + mclass = mxDOUBLE_CLASS + self.write_header(matdims(arr, self.oned_as), + mclass, + is_complex=imagf, + is_logical=logif) + if imagf: + self.write_element(arr.real) + self.write_element(arr.imag) + else: + self.write_element(arr) + + def write_char(self, arr, codec='ascii'): + ''' Write string array `arr` with given `codec` + ''' + if arr.size == 0 or np.all(arr == ''): + # This an empty string array or a string array containing + # only empty strings. Matlab cannot distinguish between a + # string array that is empty, and a string array containing + # only empty strings, because it stores strings as arrays of + # char. There is no way of having an array of char that is + # not empty, but contains an empty string. We have to + # special-case the array-with-empty-strings because even + # empty strings have zero padding, which would otherwise + # appear in matlab as a string with a space. + shape = (0,) * np.max([arr.ndim, 2]) + self.write_header(shape, mxCHAR_CLASS) + self.write_smalldata_element(arr, miUTF8, 0) + return + # non-empty string. + # + # Convert to char array + arr = arr_to_chars(arr) + # We have to write the shape directly, because we are going + # recode the characters, and the resulting stream of chars + # may have a different length + shape = arr.shape + self.write_header(shape, mxCHAR_CLASS) + if arr.dtype.kind == 'U' and arr.size: + # Make one long string from all the characters. We need to + # transpose here, because we're flattening the array, before + # we write the bytes. The bytes have to be written in + # Fortran order. + n_chars = math.prod(shape) + st_arr = np.ndarray(shape=(), + dtype=arr_dtype_number(arr, n_chars), + buffer=arr.T.copy()) # Fortran order + # Recode with codec to give byte string + st = st_arr.item().encode(codec) + # Reconstruct as 1-D byte array + arr = np.ndarray(shape=(len(st),), + dtype='S1', + buffer=st) + self.write_element(arr, mdtype=miUTF8) + + def write_sparse(self, arr): + ''' Sparse matrices are 2D + ''' + A = arr.tocsc() # convert to sparse CSC format + A.sort_indices() # MATLAB expects sorted row indices + is_complex = (A.dtype.kind == 'c') + is_logical = (A.dtype.kind == 'b') + nz = A.nnz + self.write_header(matdims(arr, self.oned_as), + mxSPARSE_CLASS, + is_complex=is_complex, + is_logical=is_logical, + # matlab won't load file with 0 nzmax + nzmax=1 if nz == 0 else nz) + self.write_element(A.indices.astype('i4')) + self.write_element(A.indptr.astype('i4')) + self.write_element(A.data.real) + if is_complex: + self.write_element(A.data.imag) + + def write_cells(self, arr): + self.write_header(matdims(arr, self.oned_as), + mxCELL_CLASS) + # loop over data, column major + A = np.atleast_2d(arr).flatten('F') + for el in A: + self.write(el) + + def write_empty_struct(self): + self.write_header((1, 1), mxSTRUCT_CLASS) + # max field name length set to 1 in an example matlab struct + self.write_element(np.array(1, dtype=np.int32)) + # Field names element is empty + self.write_element(np.array([], dtype=np.int8)) + + def write_struct(self, arr): + self.write_header(matdims(arr, self.oned_as), + mxSTRUCT_CLASS) + self._write_items(arr) + + def _write_items(self, arr): + # write fieldnames + fieldnames = [f[0] for f in arr.dtype.descr] + length = max([len(fieldname) for fieldname in fieldnames])+1 + max_length = (self.long_field_names and 64) or 32 + if length > max_length: + raise ValueError("Field names are restricted to %d characters" % + (max_length-1)) + self.write_element(np.array([length], dtype='i4')) + self.write_element( + np.array(fieldnames, dtype='S%d' % (length)), + mdtype=miINT8) + A = np.atleast_2d(arr).flatten('F') + for el in A: + for f in fieldnames: + self.write(el[f]) + + def write_object(self, arr): + '''Same as writing structs, except different mx class, and extra + classname element after header + ''' + self.write_header(matdims(arr, self.oned_as), + mxOBJECT_CLASS) + self.write_element(np.array(arr.classname, dtype='S'), + mdtype=miINT8) + self._write_items(arr) + + +class MatFile5Writer: + ''' Class for writing mat5 files ''' + + @docfiller + def __init__(self, file_stream, + do_compression=False, + unicode_strings=False, + global_vars=None, + long_field_names=False, + oned_as='row'): + ''' Initialize writer for matlab 5 format files + + Parameters + ---------- + %(do_compression)s + %(unicode_strings)s + global_vars : None or sequence of strings, optional + Names of variables to be marked as global for matlab + %(long_fields)s + %(oned_as)s + ''' + self.file_stream = file_stream + self.do_compression = do_compression + self.unicode_strings = unicode_strings + if global_vars: + self.global_vars = global_vars + else: + self.global_vars = [] + self.long_field_names = long_field_names + self.oned_as = oned_as + self._matrix_writer = None + + def write_file_header(self): + # write header + hdr = np.zeros((), NDT_FILE_HDR) + hdr['description'] = (f'MATLAB 5.0 MAT-file Platform: {os.name}, ' + f'Created on: {time.asctime()}') + hdr['version'] = 0x0100 + hdr['endian_test'] = np.ndarray(shape=(), + dtype='S2', + buffer=np.uint16(0x4d49)) + self.file_stream.write(hdr.tobytes()) + + def put_variables(self, mdict, write_header=None): + ''' Write variables in `mdict` to stream + + Parameters + ---------- + mdict : mapping + mapping with method ``items`` returns name, contents pairs where + ``name`` which will appear in the matlab workspace in file load, and + ``contents`` is something writeable to a matlab file, such as a NumPy + array. + write_header : {None, True, False}, optional + If True, then write the matlab file header before writing the + variables. If None (the default) then write the file header + if we are at position 0 in the stream. By setting False + here, and setting the stream position to the end of the file, + you can append variables to a matlab file + ''' + # write header if requested, or None and start of file + if write_header is None: + write_header = self.file_stream.tell() == 0 + if write_header: + self.write_file_header() + self._matrix_writer = VarWriter5(self) + for name, var in mdict.items(): + if name[0] == '_': + continue + is_global = name in self.global_vars + if self.do_compression: + stream = BytesIO() + self._matrix_writer.file_stream = stream + self._matrix_writer.write_top(var, name.encode('latin1'), is_global) + out_str = zlib.compress(stream.getvalue()) + tag = np.empty((), NDT_TAG_FULL) + tag['mdtype'] = miCOMPRESSED + tag['byte_count'] = len(out_str) + self.file_stream.write(tag.tobytes()) + self.file_stream.write(out_str) + else: # not compressing + self._matrix_writer.write_top(var, name.encode('latin1'), is_global) diff --git a/shared/package-files/eb/eb08dc204f7c9d0699b4a0c7d51f70dad52391a1af921a522d951791acf70eef/blob b/shared/package-files/eb/eb08dc204f7c9d0699b4a0c7d51f70dad52391a1af921a522d951791acf70eef/blob new file mode 100644 index 0000000000000000000000000000000000000000..10b3cdb0ed3af83413d4e5d918dbbfa8654cbaac Binary files /dev/null and b/shared/package-files/eb/eb08dc204f7c9d0699b4a0c7d51f70dad52391a1af921a522d951791acf70eef/blob differ diff --git a/shared/package-files/eb/eb0e386d2493666284d590e3de10cb5b88643304659c330578ff9ec0539c97c8/blob b/shared/package-files/eb/eb0e386d2493666284d590e3de10cb5b88643304659c330578ff9ec0539c97c8/blob new file mode 100644 index 0000000000000000000000000000000000000000..678cac4a92cdbc8641b5293a52b11c4c4211c2ec --- /dev/null +++ b/shared/package-files/eb/eb0e386d2493666284d590e3de10cb5b88643304659c330578ff9ec0539c97c8/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor special_digamma(const at::Tensor & self); +TORCH_API at::Tensor & special_digamma_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & special_digamma_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/eb/eb0f44f55f55693eef4ccfaf7ae6bc5dcc92bf9d097b9a923c9ccaf474e87088/blob b/shared/package-files/eb/eb0f44f55f55693eef4ccfaf7ae6bc5dcc92bf9d097b9a923c9ccaf474e87088/blob new file mode 100644 index 0000000000000000000000000000000000000000..29922d958efbdfa6ddee19f8b3904498f9222585 --- /dev/null +++ b/shared/package-files/eb/eb0f44f55f55693eef4ccfaf7ae6bc5dcc92bf9d097b9a923c9ccaf474e87088/blob @@ -0,0 +1,221 @@ +"""Private counterpart of ``numpy.typing``.""" + +from __future__ import annotations + +from .. import ufunc +from .._utils import set_module +from typing import TYPE_CHECKING, final + + +@final # Disallow the creation of arbitrary `NBitBase` subclasses +@set_module("numpy.typing") +class NBitBase: + """ + A type representing `numpy.number` precision during static type checking. + + Used exclusively for the purpose static type checking, `NBitBase` + represents the base of a hierarchical set of subclasses. + Each subsequent subclass is herein used for representing a lower level + of precision, *e.g.* ``64Bit > 32Bit > 16Bit``. + + .. versionadded:: 1.20 + + Examples + -------- + Below is a typical usage example: `NBitBase` is herein used for annotating + a function that takes a float and integer of arbitrary precision + as arguments and returns a new float of whichever precision is largest + (*e.g.* ``np.float16 + np.int64 -> np.float64``). + + .. code-block:: python + + >>> from __future__ import annotations + >>> from typing import TypeVar, TYPE_CHECKING + >>> import numpy as np + >>> import numpy.typing as npt + + >>> T1 = TypeVar("T1", bound=npt.NBitBase) + >>> T2 = TypeVar("T2", bound=npt.NBitBase) + + >>> def add(a: np.floating[T1], b: np.integer[T2]) -> np.floating[T1 | T2]: + ... return a + b + + >>> a = np.float16() + >>> b = np.int64() + >>> out = add(a, b) + + >>> if TYPE_CHECKING: + ... reveal_locals() + ... # note: Revealed local types are: + ... # note: a: numpy.floating[numpy.typing._16Bit*] + ... # note: b: numpy.signedinteger[numpy.typing._64Bit*] + ... # note: out: numpy.floating[numpy.typing._64Bit*] + + """ + + def __init_subclass__(cls) -> None: + allowed_names = { + "NBitBase", "_256Bit", "_128Bit", "_96Bit", "_80Bit", + "_64Bit", "_32Bit", "_16Bit", "_8Bit", + } + if cls.__name__ not in allowed_names: + raise TypeError('cannot inherit from final class "NBitBase"') + super().__init_subclass__() + + +# Silence errors about subclassing a `@final`-decorated class +class _256Bit(NBitBase): # type: ignore[misc] + pass + +class _128Bit(_256Bit): # type: ignore[misc] + pass + +class _96Bit(_128Bit): # type: ignore[misc] + pass + +class _80Bit(_96Bit): # type: ignore[misc] + pass + +class _64Bit(_80Bit): # type: ignore[misc] + pass + +class _32Bit(_64Bit): # type: ignore[misc] + pass + +class _16Bit(_32Bit): # type: ignore[misc] + pass + +class _8Bit(_16Bit): # type: ignore[misc] + pass + + +from ._nested_sequence import ( + _NestedSequence as _NestedSequence, +) +from ._nbit import ( + _NBitByte as _NBitByte, + _NBitShort as _NBitShort, + _NBitIntC as _NBitIntC, + _NBitIntP as _NBitIntP, + _NBitInt as _NBitInt, + _NBitLongLong as _NBitLongLong, + _NBitHalf as _NBitHalf, + _NBitSingle as _NBitSingle, + _NBitDouble as _NBitDouble, + _NBitLongDouble as _NBitLongDouble, +) +from ._char_codes import ( + _BoolCodes as _BoolCodes, + _UInt8Codes as _UInt8Codes, + _UInt16Codes as _UInt16Codes, + _UInt32Codes as _UInt32Codes, + _UInt64Codes as _UInt64Codes, + _Int8Codes as _Int8Codes, + _Int16Codes as _Int16Codes, + _Int32Codes as _Int32Codes, + _Int64Codes as _Int64Codes, + _Float16Codes as _Float16Codes, + _Float32Codes as _Float32Codes, + _Float64Codes as _Float64Codes, + _Complex64Codes as _Complex64Codes, + _Complex128Codes as _Complex128Codes, + _ByteCodes as _ByteCodes, + _ShortCodes as _ShortCodes, + _IntCCodes as _IntCCodes, + _IntPCodes as _IntPCodes, + _IntCodes as _IntCodes, + _LongLongCodes as _LongLongCodes, + _UByteCodes as _UByteCodes, + _UShortCodes as _UShortCodes, + _UIntCCodes as _UIntCCodes, + _UIntPCodes as _UIntPCodes, + _UIntCodes as _UIntCodes, + _ULongLongCodes as _ULongLongCodes, + _HalfCodes as _HalfCodes, + _SingleCodes as _SingleCodes, + _DoubleCodes as _DoubleCodes, + _LongDoubleCodes as _LongDoubleCodes, + _CSingleCodes as _CSingleCodes, + _CDoubleCodes as _CDoubleCodes, + _CLongDoubleCodes as _CLongDoubleCodes, + _DT64Codes as _DT64Codes, + _TD64Codes as _TD64Codes, + _StrCodes as _StrCodes, + _BytesCodes as _BytesCodes, + _VoidCodes as _VoidCodes, + _ObjectCodes as _ObjectCodes, +) +from ._scalars import ( + _CharLike_co as _CharLike_co, + _BoolLike_co as _BoolLike_co, + _UIntLike_co as _UIntLike_co, + _IntLike_co as _IntLike_co, + _FloatLike_co as _FloatLike_co, + _ComplexLike_co as _ComplexLike_co, + _TD64Like_co as _TD64Like_co, + _NumberLike_co as _NumberLike_co, + _ScalarLike_co as _ScalarLike_co, + _VoidLike_co as _VoidLike_co, +) +from ._shape import ( + _Shape as _Shape, + _ShapeLike as _ShapeLike, +) +from ._dtype_like import ( + DTypeLike as DTypeLike, + _DTypeLike as _DTypeLike, + _SupportsDType as _SupportsDType, + _VoidDTypeLike as _VoidDTypeLike, + _DTypeLikeBool as _DTypeLikeBool, + _DTypeLikeUInt as _DTypeLikeUInt, + _DTypeLikeInt as _DTypeLikeInt, + _DTypeLikeFloat as _DTypeLikeFloat, + _DTypeLikeComplex as _DTypeLikeComplex, + _DTypeLikeTD64 as _DTypeLikeTD64, + _DTypeLikeDT64 as _DTypeLikeDT64, + _DTypeLikeObject as _DTypeLikeObject, + _DTypeLikeVoid as _DTypeLikeVoid, + _DTypeLikeStr as _DTypeLikeStr, + _DTypeLikeBytes as _DTypeLikeBytes, + _DTypeLikeComplex_co as _DTypeLikeComplex_co, +) +from ._array_like import ( + NDArray as NDArray, + ArrayLike as ArrayLike, + _ArrayLike as _ArrayLike, + _FiniteNestedSequence as _FiniteNestedSequence, + _SupportsArray as _SupportsArray, + _SupportsArrayFunc as _SupportsArrayFunc, + _ArrayLikeInt as _ArrayLikeInt, + _ArrayLikeBool_co as _ArrayLikeBool_co, + _ArrayLikeUInt_co as _ArrayLikeUInt_co, + _ArrayLikeInt_co as _ArrayLikeInt_co, + _ArrayLikeFloat_co as _ArrayLikeFloat_co, + _ArrayLikeComplex_co as _ArrayLikeComplex_co, + _ArrayLikeNumber_co as _ArrayLikeNumber_co, + _ArrayLikeTD64_co as _ArrayLikeTD64_co, + _ArrayLikeDT64_co as _ArrayLikeDT64_co, + _ArrayLikeObject_co as _ArrayLikeObject_co, + _ArrayLikeVoid_co as _ArrayLikeVoid_co, + _ArrayLikeStr_co as _ArrayLikeStr_co, + _ArrayLikeBytes_co as _ArrayLikeBytes_co, + _ArrayLikeUnknown as _ArrayLikeUnknown, + _UnknownType as _UnknownType, +) + +if TYPE_CHECKING: + from ._ufunc import ( + _UFunc_Nin1_Nout1 as _UFunc_Nin1_Nout1, + _UFunc_Nin2_Nout1 as _UFunc_Nin2_Nout1, + _UFunc_Nin1_Nout2 as _UFunc_Nin1_Nout2, + _UFunc_Nin2_Nout2 as _UFunc_Nin2_Nout2, + _GUFunc_Nin2_Nout1 as _GUFunc_Nin2_Nout1, + ) +else: + # Declare the (type-check-only) ufunc subclasses as ufunc aliases during + # runtime; this helps autocompletion tools such as Jedi (numpy/numpy#19834) + _UFunc_Nin1_Nout1 = ufunc + _UFunc_Nin2_Nout1 = ufunc + _UFunc_Nin1_Nout2 = ufunc + _UFunc_Nin2_Nout2 = ufunc + _GUFunc_Nin2_Nout1 = ufunc diff --git a/shared/package-files/eb/eb10742f8b098b3ea183d2520e134fc45dd1ba9a5580d174bad7ec3372ba6c65/blob b/shared/package-files/eb/eb10742f8b098b3ea183d2520e134fc45dd1ba9a5580d174bad7ec3372ba6c65/blob new file mode 100644 index 0000000000000000000000000000000000000000..dbdfd7ac3c94dd64fb9ef388e441bdacd6a94644 --- /dev/null +++ b/shared/package-files/eb/eb10742f8b098b3ea183d2520e134fc45dd1ba9a5580d174bad7ec3372ba6c65/blob @@ -0,0 +1,146 @@ +from fontTools.misc import sstruct +from fontTools.misc.textTools import safeEval +from fontTools.misc.fixedTools import ( + ensureVersionIsLong as fi2ve, + versionToFixed as ve2fi, +) +from . import DefaultTable +import math + +hheaFormat = """ + > # big endian + tableVersion: L + ascent: h + descent: h + lineGap: h + advanceWidthMax: H + minLeftSideBearing: h + minRightSideBearing: h + xMaxExtent: h + caretSlopeRise: h + caretSlopeRun: h + caretOffset: h + reserved0: h + reserved1: h + reserved2: h + reserved3: h + metricDataFormat: h + numberOfHMetrics: H +""" + + +class table__h_h_e_a(DefaultTable.DefaultTable): + """Horizontal Header table + + The ``hhea`` table contains information needed during horizontal + text layout. + + .. note:: + This converter class is kept in sync with the :class:`._v_h_e_a.table__v_h_e_a` + table constructor. + + See also https://learn.microsoft.com/en-us/typography/opentype/spec/hhea + """ + + # Note: Keep in sync with table__v_h_e_a + + dependencies = ["hmtx", "glyf", "CFF ", "CFF2"] + + # OpenType spec renamed these, add aliases for compatibility + @property + def ascender(self): + return self.ascent + + @ascender.setter + def ascender(self, value): + self.ascent = value + + @property + def descender(self): + return self.descent + + @descender.setter + def descender(self, value): + self.descent = value + + def decompile(self, data, ttFont): + sstruct.unpack(hheaFormat, data, self) + + def compile(self, ttFont): + if ttFont.recalcBBoxes and ( + ttFont.isLoaded("glyf") + or ttFont.isLoaded("CFF ") + or ttFont.isLoaded("CFF2") + ): + self.recalc(ttFont) + self.tableVersion = fi2ve(self.tableVersion) + return sstruct.pack(hheaFormat, self) + + def recalc(self, ttFont): + if "hmtx" not in ttFont: + return + + hmtxTable = ttFont["hmtx"] + self.advanceWidthMax = max(adv for adv, _ in hmtxTable.metrics.values()) + + boundsWidthDict = {} + if "glyf" in ttFont: + glyfTable = ttFont["glyf"] + for name in ttFont.getGlyphOrder(): + g = glyfTable[name] + if g.numberOfContours == 0: + continue + if g.numberOfContours < 0 and not hasattr(g, "xMax"): + # Composite glyph without extents set. + # Calculate those. + g.recalcBounds(glyfTable) + boundsWidthDict[name] = g.xMax - g.xMin + elif "CFF " in ttFont or "CFF2" in ttFont: + if "CFF " in ttFont: + topDict = ttFont["CFF "].cff.topDictIndex[0] + else: + topDict = ttFont["CFF2"].cff.topDictIndex[0] + charStrings = topDict.CharStrings + for name in ttFont.getGlyphOrder(): + cs = charStrings[name] + bounds = cs.calcBounds(charStrings) + if bounds is not None: + boundsWidthDict[name] = int( + math.ceil(bounds[2]) - math.floor(bounds[0]) + ) + + if boundsWidthDict: + minLeftSideBearing = float("inf") + minRightSideBearing = float("inf") + xMaxExtent = -float("inf") + for name, boundsWidth in boundsWidthDict.items(): + advanceWidth, lsb = hmtxTable[name] + rsb = advanceWidth - lsb - boundsWidth + extent = lsb + boundsWidth + minLeftSideBearing = min(minLeftSideBearing, lsb) + minRightSideBearing = min(minRightSideBearing, rsb) + xMaxExtent = max(xMaxExtent, extent) + self.minLeftSideBearing = minLeftSideBearing + self.minRightSideBearing = minRightSideBearing + self.xMaxExtent = xMaxExtent + + else: # No glyph has outlines. + self.minLeftSideBearing = 0 + self.minRightSideBearing = 0 + self.xMaxExtent = 0 + + def toXML(self, writer, ttFont): + formatstring, names, fixes = sstruct.getformat(hheaFormat) + for name in names: + value = getattr(self, name) + if name == "tableVersion": + value = fi2ve(value) + value = "0x%08x" % value + writer.simpletag(name, value=value) + writer.newline() + + def fromXML(self, name, attrs, content, ttFont): + if name == "tableVersion": + setattr(self, name, ve2fi(attrs["value"])) + return + setattr(self, name, safeEval(attrs["value"])) diff --git a/shared/package-files/eb/eb10919b8eef99c821609ba0e668614d56ec6779b763ab507cc7a1132559371d/blob b/shared/package-files/eb/eb10919b8eef99c821609ba0e668614d56ec6779b763ab507cc7a1132559371d/blob new file mode 100644 index 0000000000000000000000000000000000000000..619db5838d2f75b6ea7b18ac3df458a029b70294 --- /dev/null +++ b/shared/package-files/eb/eb10919b8eef99c821609ba0e668614d56ec6779b763ab507cc7a1132559371d/blob @@ -0,0 +1,66 @@ +// Copyright 2010 the V8 project authors. All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following +// disclaimer in the documentation and/or other materials provided +// with the distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived +// from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#ifndef DOUBLE_CONVERSION_STRTOD_H_ +#define DOUBLE_CONVERSION_STRTOD_H_ + +#include "utils.h" + +namespace arrow_vendored { +namespace double_conversion { + +// The buffer must only contain digits in the range [0-9]. It must not +// contain a dot or a sign. It must not start with '0', and must not be empty. +double Strtod(Vector buffer, int exponent); + +// The buffer must only contain digits in the range [0-9]. It must not +// contain a dot or a sign. It must not start with '0', and must not be empty. +float Strtof(Vector buffer, int exponent); + +// Same as Strtod, but assumes that 'trimmed' is already trimmed, as if run +// through TrimAndCut. That is, 'trimmed' must have no leading or trailing +// zeros, must not be a lone zero, and must not have 'too many' digits. +double StrtodTrimmed(Vector trimmed, int exponent); + +// Same as Strtof, but assumes that 'trimmed' is already trimmed, as if run +// through TrimAndCut. That is, 'trimmed' must have no leading or trailing +// zeros, must not be a lone zero, and must not have 'too many' digits. +float StrtofTrimmed(Vector trimmed, int exponent); + +inline Vector TrimTrailingZeros(Vector buffer) { + for (int i = buffer.length() - 1; i >= 0; --i) { + if (buffer[i] != '0') { + return buffer.SubVector(0, i + 1); + } + } + return Vector(buffer.start(), 0); +} + +} // namespace double_conversion +} // namespace arrow_vendored + +#endif // DOUBLE_CONVERSION_STRTOD_H_ diff --git a/shared/package-files/eb/eb135a89519f2e004282ded21b11c3af7ccb2320c9772f2df7d1a4a1b674e491/blob b/shared/package-files/eb/eb135a89519f2e004282ded21b11c3af7ccb2320c9772f2df7d1a4a1b674e491/blob new file mode 100644 index 0000000000000000000000000000000000000000..e657739bdaf9f582aa21ad439803bd949bd575cd --- /dev/null +++ b/shared/package-files/eb/eb135a89519f2e004282ded21b11c3af7ccb2320c9772f2df7d1a4a1b674e491/blob @@ -0,0 +1,20 @@ +# Encoding file: macCyrillic, single-byte +S +003F 0 1 +00 +0000000100020003000400050006000700080009000A000B000C000D000E000F +0010001100120013001400150016001700180019001A001B001C001D001E001F +0020002100220023002400250026002700280029002A002B002C002D002E002F +0030003100320033003400350036003700380039003A003B003C003D003E003F +0040004100420043004400450046004700480049004A004B004C004D004E004F +0050005100520053005400550056005700580059005A005B005C005D005E005F +0060006100620063006400650066006700680069006A006B006C006D006E006F +0070007100720073007400750076007700780079007A007B007C007D007E007F +0410041104120413041404150416041704180419041A041B041C041D041E041F +0420042104220423042404250426042704280429042A042B042C042D042E042F +202000B0049000A300A7202200B6040600AE00A9212204020452226004030453 +221E00B122642265045600B504910408040404540407045704090459040A045A +0458040500AC221A01922248220600AB00BB202600A0040B045B040C045C0455 +20132014201C201D2018201900F7201E040E045E040F045F211604010451044F +0430043104320433043404350436043704380439043A043B043C043D043E043F +0440044104420443044404450446044704480449044A044B044C044D044E20AC diff --git a/shared/package-files/eb/eb145896df77e2fd721dbd4922b5e01f21b19f772a002bddfb213cb248bf91c7/blob b/shared/package-files/eb/eb145896df77e2fd721dbd4922b5e01f21b19f772a002bddfb213cb248bf91c7/blob new file mode 100644 index 0000000000000000000000000000000000000000..af44f198c687e245aada835efbab2f75ed2c9baf --- /dev/null +++ b/shared/package-files/eb/eb145896df77e2fd721dbd4922b5e01f21b19f772a002bddfb213cb248bf91c7/blob @@ -0,0 +1 @@ +pytz diff --git a/shared/package-files/eb/eb16b363898235a07c37914bfff8cc24b6996ed1f6fa282615b0535bfff230ea/blob b/shared/package-files/eb/eb16b363898235a07c37914bfff8cc24b6996ed1f6fa282615b0535bfff230ea/blob new file mode 100644 index 0000000000000000000000000000000000000000..658d8fe795ab7d4315aa0bc0033cc3e6bf3798f1 --- /dev/null +++ b/shared/package-files/eb/eb16b363898235a07c37914bfff8cc24b6996ed1f6fa282615b0535bfff230ea/blob @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API at::Tensor special_shifted_chebyshev_polynomial_t(const at::Scalar & x, const at::Tensor & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_t_out(at::Tensor & out, const at::Scalar & x, const at::Tensor & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_t_outf(const at::Scalar & x, const at::Tensor & n, at::Tensor & out); +TORCH_API at::Tensor special_shifted_chebyshev_polynomial_t(const at::Tensor & x, const at::Scalar & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_t_out(at::Tensor & out, const at::Tensor & x, const at::Scalar & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_t_outf(const at::Tensor & x, const at::Scalar & n, at::Tensor & out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/eb/eb17ac3e7973a0de525d0d503e702b771b25c4aebf2c5a8099105cbf6843c660/blob b/shared/package-files/eb/eb17ac3e7973a0de525d0d503e702b771b25c4aebf2c5a8099105cbf6843c660/blob new file mode 100644 index 0000000000000000000000000000000000000000..96424b9faaacf5e6d12e4fc914e06625fb27de90 --- /dev/null +++ b/shared/package-files/eb/eb17ac3e7973a0de525d0d503e702b771b25c4aebf2c5a8099105cbf6843c660/blob @@ -0,0 +1,24 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor & bernoulli_(at::Tensor & self, const at::Tensor & p, c10::optional generator=c10::nullopt); +TORCH_API at::Tensor & bernoulli_(at::Tensor & self, double p=0.5, c10::optional generator=c10::nullopt); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/eb/eb17fe925c0232e6ea25ded36499984425d10ee097ea92edcffc3977aa0042ae/blob b/shared/package-files/eb/eb17fe925c0232e6ea25ded36499984425d10ee097ea92edcffc3977aa0042ae/blob new file mode 100644 index 0000000000000000000000000000000000000000..d184797c64a87c74da40e1c90050ef5bfb1bc816 --- /dev/null +++ b/shared/package-files/eb/eb17fe925c0232e6ea25ded36499984425d10ee097ea92edcffc3977aa0042ae/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor special_shifted_chebyshev_polynomial_u(const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_u_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_shifted_chebyshev_polynomial_u_outf(const at::Tensor & x, const at::Tensor & n, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/shared/package-files/eb/eb18988abb2bb1d6c5d98944942143695c3574b65ab3f07e3e28d2c1a5abb01c/blob b/shared/package-files/eb/eb18988abb2bb1d6c5d98944942143695c3574b65ab3f07e3e28d2c1a5abb01c/blob new file mode 100644 index 0000000000000000000000000000000000000000..98ca7d5f6cc0d59129ad52c90c0b10d18aefd210 --- /dev/null +++ b/shared/package-files/eb/eb18988abb2bb1d6c5d98944942143695c3574b65ab3f07e3e28d2c1a5abb01c/blob @@ -0,0 +1,34 @@ +import numpy as np +import sklearn + +sign_defaults = { + "keep positive": 1, + "keep negative": -1, + "remove positive": -1, + "remove negative": 1, + "compute time": -1, + "keep absolute": -1, # the absolute signs are defaults that make sense when scoring losses + "remove absolute": 1, + "explanation error": -1, +} + + +class BenchmarkResult: + """The result of a benchmark run.""" + + def __init__(self, metric, method, value=None, curve_x=None, curve_y=None, curve_y_std=None, value_sign=None): + self.metric = metric + self.method = method + self.value = value + self.curve_x = curve_x + self.curve_y = curve_y + self.curve_y_std = curve_y_std + self.value_sign = value_sign + if self.value_sign is None and self.metric in sign_defaults: + self.value_sign = sign_defaults[self.metric] + if self.value is None: + self.value = sklearn.metrics.auc(curve_x, (np.array(curve_y) - curve_y[0])) + + @property + def full_name(self): + return self.method + " " + self.metric diff --git a/shared/package-files/eb/eb1b332c3a48f6359eb63f376858588aad9729e4efa7a035be3d204f682b5ea1/blob b/shared/package-files/eb/eb1b332c3a48f6359eb63f376858588aad9729e4efa7a035be3d204f682b5ea1/blob new file mode 100644 index 0000000000000000000000000000000000000000..de0d1169a470d8260c92442b754b9aaf9546a796 --- /dev/null +++ b/shared/package-files/eb/eb1b332c3a48f6359eb63f376858588aad9729e4efa7a035be3d204f682b5ea1/blob @@ -0,0 +1,73 @@ +from typing import Mapping, Optional, Tuple + +class XMLReader: + def __init__(self) -> None: ... + def parse(self, source): ... + def getContentHandler(self): ... + def setContentHandler(self, handler): ... + def getDTDHandler(self): ... + def setDTDHandler(self, handler): ... + def getEntityResolver(self): ... + def setEntityResolver(self, resolver): ... + def getErrorHandler(self): ... + def setErrorHandler(self, handler): ... + def setLocale(self, locale): ... + def getFeature(self, name): ... + def setFeature(self, name, state): ... + def getProperty(self, name): ... + def setProperty(self, name, value): ... + +class IncrementalParser(XMLReader): + def __init__(self, bufsize: int = ...) -> None: ... + def parse(self, source): ... + def feed(self, data): ... + def prepareParser(self, source): ... + def close(self): ... + def reset(self): ... + +class Locator: + def getColumnNumber(self): ... + def getLineNumber(self): ... + def getPublicId(self): ... + def getSystemId(self): ... + +class InputSource: + def __init__(self, system_id: Optional[str] = ...) -> None: ... + def setPublicId(self, public_id): ... + def getPublicId(self): ... + def setSystemId(self, system_id): ... + def getSystemId(self): ... + def setEncoding(self, encoding): ... + def getEncoding(self): ... + def setByteStream(self, bytefile): ... + def getByteStream(self): ... + def setCharacterStream(self, charfile): ... + def getCharacterStream(self): ... + +class AttributesImpl: + def __init__(self, attrs: Mapping[str, str]) -> None: ... + def getLength(self): ... + def getType(self, name): ... + def getValue(self, name): ... + def getValueByQName(self, name): ... + def getNameByQName(self, name): ... + def getQNameByName(self, name): ... + def getNames(self): ... + def getQNames(self): ... + def __len__(self): ... + def __getitem__(self, name): ... + def keys(self): ... + def has_key(self, name): ... + def __contains__(self, name): ... + def get(self, name, alternative=...): ... + def copy(self): ... + def items(self): ... + def values(self): ... + +class AttributesNSImpl(AttributesImpl): + def __init__(self, attrs: Mapping[Tuple[str, str], str], qnames: Mapping[Tuple[str, str], str]) -> None: ... + def getValueByQName(self, name): ... + def getNameByQName(self, name): ... + def getQNameByName(self, name): ... + def getQNames(self): ... + def copy(self): ... diff --git a/shared/package-files/eb/eb22d0fa0c480025270feb1e7f962510666287fe2ccaeb7f309d32637507d061/blob b/shared/package-files/eb/eb22d0fa0c480025270feb1e7f962510666287fe2ccaeb7f309d32637507d061/blob new file mode 100644 index 0000000000000000000000000000000000000000..18bb87a5bc4ffd89fb24ef193ee88af64ee5dcbc --- /dev/null +++ b/shared/package-files/eb/eb22d0fa0c480025270feb1e7f962510666287fe2ccaeb7f309d32637507d061/blob @@ -0,0 +1,125 @@ +import ast +import asyncio +import code +import concurrent.futures +import inspect +import sys +import threading +import types +import warnings + +from . import futures + + +class AsyncIOInteractiveConsole(code.InteractiveConsole): + + def __init__(self, locals, loop): + super().__init__(locals) + self.compile.compiler.flags |= ast.PyCF_ALLOW_TOP_LEVEL_AWAIT + + self.loop = loop + + def runcode(self, code): + future = concurrent.futures.Future() + + def callback(): + global repl_future + global repl_future_interrupted + + repl_future = None + repl_future_interrupted = False + + func = types.FunctionType(code, self.locals) + try: + coro = func() + except SystemExit: + raise + except KeyboardInterrupt as ex: + repl_future_interrupted = True + future.set_exception(ex) + return + except BaseException as ex: + future.set_exception(ex) + return + + if not inspect.iscoroutine(coro): + future.set_result(coro) + return + + try: + repl_future = self.loop.create_task(coro) + futures._chain_future(repl_future, future) + except BaseException as exc: + future.set_exception(exc) + + loop.call_soon_threadsafe(callback) + + try: + return future.result() + except SystemExit: + raise + except BaseException: + if repl_future_interrupted: + self.write("\nKeyboardInterrupt\n") + else: + self.showtraceback() + + +class REPLThread(threading.Thread): + + def run(self): + try: + banner = ( + f'asyncio REPL {sys.version} on {sys.platform}\n' + f'Use "await" directly instead of "asyncio.run()".\n' + f'Type "help", "copyright", "credits" or "license" ' + f'for more information.\n' + f'{getattr(sys, "ps1", ">>> ")}import asyncio' + ) + + console.interact( + banner=banner, + exitmsg='exiting asyncio REPL...') + finally: + warnings.filterwarnings( + 'ignore', + message=r'^coroutine .* was never awaited$', + category=RuntimeWarning) + + loop.call_soon_threadsafe(loop.stop) + + +if __name__ == '__main__': + loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) + + repl_locals = {'asyncio': asyncio} + for key in {'__name__', '__package__', + '__loader__', '__spec__', + '__builtins__', '__file__'}: + repl_locals[key] = locals()[key] + + console = AsyncIOInteractiveConsole(repl_locals, loop) + + repl_future = None + repl_future_interrupted = False + + try: + import readline # NoQA + except ImportError: + pass + + repl_thread = REPLThread() + repl_thread.daemon = True + repl_thread.start() + + while True: + try: + loop.run_forever() + except KeyboardInterrupt: + if repl_future and not repl_future.done(): + repl_future.cancel() + repl_future_interrupted = True + continue + else: + break diff --git a/shared/package-files/eb/eb23711971fa057e7ad3b1538cc930476b7dc0d56512157c24c4a1e14216bb1f/blob b/shared/package-files/eb/eb23711971fa057e7ad3b1538cc930476b7dc0d56512157c24c4a1e14216bb1f/blob new file mode 100644 index 0000000000000000000000000000000000000000..a6b713fbec94ab7808c5a8a778b3313402d9d0c7 --- /dev/null +++ b/shared/package-files/eb/eb23711971fa057e7ad3b1538cc930476b7dc0d56512157c24c4a1e14216bb1f/blob @@ -0,0 +1,61 @@ +from sympy import Sum, Dummy, sin +from sympy.tensor.array.expressions import ArraySymbol, ArrayTensorProduct, ArrayContraction, PermuteDims, \ + ArrayDiagonal, ArrayAdd, OneArray, ZeroArray, convert_indexed_to_array, ArrayElementwiseApplyFunc, Reshape +from sympy.tensor.array.expressions.from_array_to_indexed import convert_array_to_indexed + +from sympy.abc import i, j, k, l, m, n, o + + +def test_convert_array_to_indexed_main(): + A = ArraySymbol("A", (3, 3, 3)) + B = ArraySymbol("B", (3, 3)) + C = ArraySymbol("C", (3, 3)) + + d_ = Dummy("d_") + + assert convert_array_to_indexed(A, [i, j, k]) == A[i, j, k] + + expr = ArrayTensorProduct(A, B, C) + conv = convert_array_to_indexed(expr, [i,j,k,l,m,n,o]) + assert conv == A[i,j,k]*B[l,m]*C[n,o] + assert convert_indexed_to_array(conv, [i,j,k,l,m,n,o]) == expr + + expr = ArrayContraction(A, (0, 2)) + assert convert_array_to_indexed(expr, [i]).dummy_eq(Sum(A[d_, i, d_], (d_, 0, 2))) + + expr = ArrayDiagonal(A, (0, 2)) + assert convert_array_to_indexed(expr, [i, j]) == A[j, i, j] + + expr = PermuteDims(A, [1, 2, 0]) + conv = convert_array_to_indexed(expr, [i, j, k]) + assert conv == A[k, i, j] + assert convert_indexed_to_array(conv, [i, j, k]) == expr + + expr = ArrayAdd(B, C, PermuteDims(C, [1, 0])) + conv = convert_array_to_indexed(expr, [i, j]) + assert conv == B[i, j] + C[i, j] + C[j, i] + assert convert_indexed_to_array(conv, [i, j]) == expr + + expr = ArrayElementwiseApplyFunc(sin, A) + conv = convert_array_to_indexed(expr, [i, j, k]) + assert conv == sin(A[i, j, k]) + assert convert_indexed_to_array(conv, [i, j, k]).dummy_eq(expr) + + assert convert_array_to_indexed(OneArray(3, 3), [i, j]) == 1 + assert convert_array_to_indexed(ZeroArray(3, 3), [i, j]) == 0 + + expr = Reshape(A, (27,)) + assert convert_array_to_indexed(expr, [i]) == A[i // 9, i // 3 % 3, i % 3] + + X = ArraySymbol("X", (2, 3, 4, 5, 6)) + expr = Reshape(X, (2*3*4*5*6,)) + assert convert_array_to_indexed(expr, [i]) == X[i // 360, i // 120 % 3, i // 30 % 4, i // 6 % 5, i % 6] + + expr = Reshape(X, (4, 9, 2, 2, 5)) + one_index = 180*i + 20*j + 10*k + 5*l + m + expected = X[one_index // (3*4*5*6), one_index // (4*5*6) % 3, one_index // (5*6) % 4, one_index // 6 % 5, one_index % 6] + assert convert_array_to_indexed(expr, [i, j, k, l, m]) == expected + + X = ArraySymbol("X", (2*3*5,)) + expr = Reshape(X, (2, 3, 5)) + assert convert_array_to_indexed(expr, [i, j, k]) == X[15*i + 5*j + k] diff --git a/shared/package-files/eb/eb23c78904a4d0a238a144503a4f7db7eb849be21937ef1e20f1dbff2d264355/blob b/shared/package-files/eb/eb23c78904a4d0a238a144503a4f7db7eb849be21937ef1e20f1dbff2d264355/blob new file mode 100644 index 0000000000000000000000000000000000000000..55dfa2313ffb152709c58b47c0058567b710d903 --- /dev/null +++ b/shared/package-files/eb/eb23c78904a4d0a238a144503a4f7db7eb849be21937ef1e20f1dbff2d264355/blob @@ -0,0 +1,18069 @@ +NIST/ITL StRD +Dataset Name: SmLs03 (SmLs03.dat) + + +File Format: ASCII + Certified Values (lines 41 to 47) + Data (lines 61 to 18069) + + +Procedure: Analysis of Variance + + +Reference: Simon, Stephen D. and Lesage, James P. (1989). + "Assessing the Accuracy of ANOVA Calculations in + Statistical Software". + Computational Statistics & Data Analysis, 8, pp. 325-332. + + +Data: 1 Factor + 9 Treatments + 2001 Replicates/Cell + 18009 Observations + 1 Constant Leading Digit + Lower Level of Difficulty + Generated Data + + +Model: 10 Parameters (mu,tau_1, ... , tau_9) + y_{ij} = mu + tau_i + epsilon_{ij} + + + + + + +Certified Values: + +Source of Sums of Mean +Variation df Squares Squares F Statistic + +Between Treatment 8 1.60080000000000E+02 2.00100000000000E+01 2.00100000000000E+03 +Within Treatment 18000 1.80000000000000E+02 1.00000000000000E-02 + + Certified R-Squared 4.70712773465067E-01 + + Certified Residual + Standard Deviation 1.00000000000000E-01 + + + + + + + + + + + + +Data: Treatment Response + 1 1.4 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 1 1.3 + 1 1.5 + 2 1.3 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 2 1.2 + 2 1.4 + 3 1.5 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 3 1.4 + 3 1.6 + 4 1.3 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 4 1.2 + 4 1.4 + 5 1.5 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 5 1.4 + 5 1.6 + 6 1.3 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 6 1.2 + 6 1.4 + 7 1.5 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 7 1.4 + 7 1.6 + 8 1.3 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 8 1.2 + 8 1.4 + 9 1.5 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 + 9 1.4 + 9 1.6 diff --git a/shared/package-files/eb/eb24eb2b81ce589a1b51a546b7579d5f3b377e4dc8cb3ac409b26cdbd5e4991f/blob b/shared/package-files/eb/eb24eb2b81ce589a1b51a546b7579d5f3b377e4dc8cb3ac409b26cdbd5e4991f/blob new file mode 100644 index 0000000000000000000000000000000000000000..b0bdb95cc48c4b1bfaa9edc07fceb1b16d733752 --- /dev/null +++ b/shared/package-files/eb/eb24eb2b81ce589a1b51a546b7579d5f3b377e4dc8cb3ac409b26cdbd5e4991f/blob @@ -0,0 +1,122 @@ +_magic_methods = [ + "__subclasscheck__", + "__hex__", + "__rmul__", + "__float__", + "__idiv__", + "__setattr__", + "__div__", + "__invert__", + "__nonzero__", + "__rshift__", + "__eq__", + "__pos__", + "__round__", + "__rand__", + "__or__", + "__complex__", + "__divmod__", + "__len__", + "__reversed__", + "__copy__", + "__reduce__", + "__deepcopy__", + "__rdivmod__", + "__rrshift__", + "__ifloordiv__", + "__hash__", + "__iand__", + "__xor__", + "__isub__", + "__oct__", + "__ceil__", + "__imod__", + "__add__", + "__truediv__", + "__unicode__", + "__le__", + "__delitem__", + "__sizeof__", + "__sub__", + "__ne__", + "__pow__", + "__bytes__", + "__mul__", + "__itruediv__", + "__bool__", + "__iter__", + "__abs__", + "__gt__", + "__iadd__", + "__enter__", + "__floordiv__", + "__call__", + "__neg__", + "__and__", + "__ixor__", + "__getitem__", + "__exit__", + "__cmp__", + "__getstate__", + "__index__", + "__contains__", + "__floor__", + "__lt__", + "__getattr__", + "__mod__", + "__trunc__", + "__delattr__", + "__instancecheck__", + "__setitem__", + "__ipow__", + "__ilshift__", + "__long__", + "__irshift__", + "__imul__", + "__lshift__", + "__dir__", + "__ge__", + "__int__", + "__ior__", +] + + +class MockedObject: + _name: str + + def __new__(cls, *args, **kwargs): + # _suppress_err is set by us in the mocked module impl, so that we can + # construct instances of MockedObject to hand out to people looking up + # module attributes. + + # Any other attempt to construct a MockedObject instance (say, in the + # unpickling process) should give an error. + if not kwargs.get("_suppress_err"): + raise NotImplementedError( + f"Object '{cls._name}' was mocked out during packaging " + f"but it is being used in '__new__'. If this error is " + "happening during 'load_pickle', please ensure that your " + "pickled object doesn't contain any mocked objects." + ) + # Otherwise, this is just a regular object creation + # (e.g. `x = MockedObject("foo")`), so pass it through normally. + return super().__new__(cls) + + def __init__(self, name: str, _suppress_err: bool): + self.__dict__["_name"] = name + + def __repr__(self): + return f"MockedObject({self._name})" + + +def install_method(method_name): + def _not_implemented(self, *args, **kwargs): + raise NotImplementedError( + f"Object '{self._name}' was mocked out during packaging but it is being used in {method_name}" + ) + + setattr(MockedObject, method_name, _not_implemented) + + +for method_name in _magic_methods: + install_method(method_name) diff --git a/shared/package-files/eb/eb28c7b950df204a1d054f70c5b086083679716630c98e850a4f9aab654d534b/blob b/shared/package-files/eb/eb28c7b950df204a1d054f70c5b086083679716630c98e850a4f9aab654d534b/blob new file mode 100644 index 0000000000000000000000000000000000000000..55d87bf85cbe9d9f98bfddf53e2646db789742ca --- /dev/null +++ b/shared/package-files/eb/eb28c7b950df204a1d054f70c5b086083679716630c98e850a4f9aab654d534b/blob @@ -0,0 +1,9 @@ +# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license + +import dns.immutable +import dns.rdtypes.tlsabase + + +@dns.immutable.immutable +class SMIMEA(dns.rdtypes.tlsabase.TLSABase): + """SMIMEA record""" diff --git a/shared/package-files/eb/eb293fde97ea8972f205f36187d1f0d78cf608df118e600fb5a0f8ac7aa1d0a3/blob b/shared/package-files/eb/eb293fde97ea8972f205f36187d1f0d78cf608df118e600fb5a0f8ac7aa1d0a3/blob new file mode 100644 index 0000000000000000000000000000000000000000..a6a1c7334038d6e5210fceacd076e605d85a3b7e --- /dev/null +++ b/shared/package-files/eb/eb293fde97ea8972f205f36187d1f0d78cf608df118e600fb5a0f8ac7aa1d0a3/blob @@ -0,0 +1,379 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +namespace c10 { + +// NOTE: hash_combine and SHA1 hashing is based on implementation from Boost +// +// Boost Software License - Version 1.0 - August 17th, 2003 +// +// Permission is hereby granted, free of charge, to any person or organization +// obtaining a copy of the software and accompanying documentation covered by +// this license (the "Software") to use, reproduce, display, distribute, +// execute, and transmit the Software, and to prepare derivative works of the +// Software, and to permit third-parties to whom the Software is furnished to +// do so, all subject to the following: +// +// The copyright notices in the Software and this entire statement, including +// the above license grant, this restriction and the following disclaimer, +// must be included in all copies of the Software, in whole or in part, and +// all derivative works of the Software, unless such copies or derivative +// works are solely in the form of machine-executable object code generated by +// a source language processor. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +// DEALINGS IN THE SOFTWARE. + +inline size_t hash_combine(size_t seed, size_t value) { + return seed ^ (value + 0x9e3779b9 + (seed << 6u) + (seed >> 2u)); +} + +// Creates the SHA1 hash of a string. A 160-bit hash. +// Based on the implementation in Boost (see notice above). +// Note that SHA1 hashes are no longer considered cryptographically +// secure, but are the standard hash for generating unique ids. +// Usage: +// // Let 'code' be a std::string +// c10::sha1 sha1_hash{code}; +// const auto hash_code = sha1_hash.str(); +// TODO: Compare vs OpenSSL and/or CryptoPP implementations +struct sha1 { + typedef unsigned int(digest_type)[5]; + + sha1(const std::string& s = "") { + if (!s.empty()) { + reset(); + process_bytes(s.c_str(), s.size()); + } + } + + void reset() { + h_[0] = 0x67452301; + h_[1] = 0xEFCDAB89; + h_[2] = 0x98BADCFE; + h_[3] = 0x10325476; + h_[4] = 0xC3D2E1F0; + + block_byte_index_ = 0; + bit_count_low = 0; + bit_count_high = 0; + } + + std::string str() { + unsigned int digest[5]; + get_digest(digest); + + std::ostringstream buf; + for (unsigned int i : digest) { + buf << std::hex << std::setfill('0') << std::setw(8) << i; + } + + return buf.str(); + } + + private: + unsigned int left_rotate(unsigned int x, std::size_t n) { + return (x << n) ^ (x >> (32 - n)); + } + + void process_block_impl() { + unsigned int w[80]; + + for (std::size_t i = 0; i < 16; ++i) { + w[i] = (block_[i * 4 + 0] << 24); + w[i] |= (block_[i * 4 + 1] << 16); + w[i] |= (block_[i * 4 + 2] << 8); + w[i] |= (block_[i * 4 + 3]); + } + + for (std::size_t i = 16; i < 80; ++i) { + w[i] = left_rotate((w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]), 1); + } + + unsigned int a = h_[0]; + unsigned int b = h_[1]; + unsigned int c = h_[2]; + unsigned int d = h_[3]; + unsigned int e = h_[4]; + + for (std::size_t i = 0; i < 80; ++i) { + unsigned int f = 0; + unsigned int k = 0; + + if (i < 20) { + f = (b & c) | (~b & d); + k = 0x5A827999; + } else if (i < 40) { + f = b ^ c ^ d; + k = 0x6ED9EBA1; + } else if (i < 60) { + f = (b & c) | (b & d) | (c & d); + k = 0x8F1BBCDC; + } else { + f = b ^ c ^ d; + k = 0xCA62C1D6; + } + + unsigned temp = left_rotate(a, 5) + f + e + k + w[i]; + e = d; + d = c; + c = left_rotate(b, 30); + b = a; + a = temp; + } + + h_[0] += a; + h_[1] += b; + h_[2] += c; + h_[3] += d; + h_[4] += e; + } + + void process_byte_impl(unsigned char byte) { + block_[block_byte_index_++] = byte; + + if (block_byte_index_ == 64) { + block_byte_index_ = 0; + process_block_impl(); + } + } + + void process_byte(unsigned char byte) { + process_byte_impl(byte); + + // size_t max value = 0xFFFFFFFF + // if (bit_count_low + 8 >= 0x100000000) { // would overflow + // if (bit_count_low >= 0x100000000-8) { + if (bit_count_low < 0xFFFFFFF8) { + bit_count_low += 8; + } else { + bit_count_low = 0; + + if (bit_count_high <= 0xFFFFFFFE) { + ++bit_count_high; + } else { + TORCH_CHECK(false, "sha1 too many bytes"); + } + } + } + + void process_block(void const* bytes_begin, void const* bytes_end) { + unsigned char const* begin = static_cast(bytes_begin); + unsigned char const* end = static_cast(bytes_end); + for (; begin != end; ++begin) { + process_byte(*begin); + } + } + + void process_bytes(void const* buffer, std::size_t byte_count) { + unsigned char const* b = static_cast(buffer); + process_block(b, b + byte_count); + } + + void get_digest(digest_type& digest) { + // append the bit '1' to the message + process_byte_impl(0x80); + + // append k bits '0', where k is the minimum number >= 0 + // such that the resulting message length is congruent to 56 (mod 64) + // check if there is enough space for padding and bit_count + if (block_byte_index_ > 56) { + // finish this block + while (block_byte_index_ != 0) { + process_byte_impl(0); + } + + // one more block + while (block_byte_index_ < 56) { + process_byte_impl(0); + } + } else { + while (block_byte_index_ < 56) { + process_byte_impl(0); + } + } + + // append length of message (before pre-processing) + // as a 64-bit big-endian integer + process_byte_impl( + static_cast((bit_count_high >> 24) & 0xFF)); + process_byte_impl( + static_cast((bit_count_high >> 16) & 0xFF)); + process_byte_impl(static_cast((bit_count_high >> 8) & 0xFF)); + process_byte_impl(static_cast((bit_count_high) & 0xFF)); + process_byte_impl(static_cast((bit_count_low >> 24) & 0xFF)); + process_byte_impl(static_cast((bit_count_low >> 16) & 0xFF)); + process_byte_impl(static_cast((bit_count_low >> 8) & 0xFF)); + process_byte_impl(static_cast((bit_count_low) & 0xFF)); + + // get final digest + digest[0] = h_[0]; + digest[1] = h_[1]; + digest[2] = h_[2]; + digest[3] = h_[3]; + digest[4] = h_[4]; + } + + unsigned int h_[5]{}; + unsigned char block_[64]{}; + std::size_t block_byte_index_{}; + std::size_t bit_count_low{}; + std::size_t bit_count_high{}; +}; + +constexpr uint64_t twang_mix64(uint64_t key) noexcept { + key = (~key) + (key << 21); // key *= (1 << 21) - 1; key -= 1; + key = key ^ (key >> 24); + key = key + (key << 3) + (key << 8); // key *= 1 + (1 << 3) + (1 << 8) + key = key ^ (key >> 14); + key = key + (key << 2) + (key << 4); // key *= 1 + (1 << 2) + (1 << 4) + key = key ^ (key >> 28); + key = key + (key << 31); // key *= 1 + (1 << 31) + return key; +} + +//////////////////////////////////////////////////////////////////////////////// +// c10::hash implementation +//////////////////////////////////////////////////////////////////////////////// + +namespace _hash_detail { + +// Use template argument deduction to shorten calls to c10::hash +template +size_t simple_get_hash(const T& o); + +template +using type_if_not_enum = std::enable_if_t, V>; + +// Use SFINAE to dispatch to std::hash if possible, cast enum types to int +// automatically, and fall back to T::hash otherwise. NOTE: C++14 added support +// for hashing enum types to the standard, and some compilers implement it even +// when C++14 flags aren't specified. This is why we have to disable this +// overload if T is an enum type (and use the one below in this case). +template +auto dispatch_hash(const T& o) + -> decltype(std::hash()(o), type_if_not_enum()) { + return std::hash()(o); +} + +template +std::enable_if_t, size_t> dispatch_hash(const T& o) { + using R = std::underlying_type_t; + return std::hash()(static_cast(o)); +} + +template +auto dispatch_hash(const T& o) -> decltype(T::hash(o), size_t()) { + return T::hash(o); +} + +} // namespace _hash_detail + +// Hasher struct +template +struct hash { + size_t operator()(const T& o) const { + return _hash_detail::dispatch_hash(o); + }; +}; + +// Specialization for std::tuple +template +struct hash> { + template + struct tuple_hash { + size_t operator()(const std::tuple& t) const { + return hash_combine( + _hash_detail::simple_get_hash(std::get(t)), + tuple_hash()(t)); + } + }; + + template + struct tuple_hash<0, Ts...> { + size_t operator()(const std::tuple& t) const { + return _hash_detail::simple_get_hash(std::get<0>(t)); + } + }; + + size_t operator()(const std::tuple& t) const { + return tuple_hash()(t); + } +}; + +template +struct hash> { + size_t operator()(const std::pair& pair) const { + std::tuple tuple = std::make_tuple(pair.first, pair.second); + return _hash_detail::simple_get_hash(tuple); + } +}; + +template +struct hash> { + size_t operator()(c10::ArrayRef v) const { + size_t seed = 0; + for (const auto& elem : v) { + seed = hash_combine(seed, _hash_detail::simple_get_hash(elem)); + } + return seed; + } +}; + +// Specialization for std::vector +template +struct hash> { + size_t operator()(const std::vector& v) const { + return hash>()(v); + } +}; + +namespace _hash_detail { + +template +size_t simple_get_hash(const T& o) { + return c10::hash()(o); +} + +} // namespace _hash_detail + +// Use this function to actually hash multiple things in one line. +// Dispatches to c10::hash, so it can hash containers. +// Example: +// +// static size_t hash(const MyStruct& s) { +// return get_hash(s.member1, s.member2, s.member3); +// } +template +size_t get_hash(const Types&... args) { + return c10::hash()(std::tie(args...)); +} + +// Specialization for c10::complex +template +struct hash> { + size_t operator()(const c10::complex& c) const { + return get_hash(c.real(), c.imag()); + } +}; + +} // namespace c10 diff --git a/shared/package-files/eb/eb2e2b7a41854af68cef5881cf1fbf4d38e70d2fab2c3f3ce5901aa5cc56fc15/blob b/shared/package-files/eb/eb2e2b7a41854af68cef5881cf1fbf4d38e70d2fab2c3f3ce5901aa5cc56fc15/blob new file mode 100644 index 0000000000000000000000000000000000000000..cea427a9065c619748b2807040a5314cc0915c1e --- /dev/null +++ b/shared/package-files/eb/eb2e2b7a41854af68cef5881cf1fbf4d38e70d2fab2c3f3ce5901aa5cc56fc15/blob @@ -0,0 +1,39 @@ +# created by tools/loadICU.tcl -- do not edit +namespace eval ::tcl::clock { + ::msgcat::mcset mr DAYS_OF_WEEK_FULL [list \ + "\u0930\u0935\u093f\u0935\u093e\u0930"\ + "\u0938\u094b\u092e\u0935\u093e\u0930"\ + "\u092e\u0902\u0917\u0933\u0935\u093e\u0930"\ + "\u092e\u0902\u0917\u0933\u0935\u093e\u0930"\ + "\u0917\u0941\u0930\u0941\u0935\u093e\u0930"\ + "\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930"\ + "\u0936\u0928\u093f\u0935\u093e\u0930"] + ::msgcat::mcset mr MONTHS_ABBREV [list \ + "\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940"\ + "\u092b\u0947\u092c\u0943\u0935\u093e\u0930\u0940"\ + "\u092e\u093e\u0930\u094d\u091a"\ + "\u090f\u092a\u094d\u0930\u093f\u0932"\ + "\u092e\u0947"\ + "\u091c\u0942\u0928"\ + "\u091c\u0941\u0932\u0948"\ + "\u0913\u0917\u0938\u094d\u091f"\ + "\u0938\u0947\u092a\u094d\u091f\u0947\u0902\u092c\u0930"\ + "\u0913\u0915\u094d\u091f\u094b\u092c\u0930"\ + "\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930"\ + "\u0921\u093f\u0938\u0947\u0902\u092c\u0930"] + ::msgcat::mcset mr MONTHS_FULL [list \ + "\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940"\ + "\u092b\u0947\u092c\u0943\u0935\u093e\u0930\u0940"\ + "\u092e\u093e\u0930\u094d\u091a"\ + "\u090f\u092a\u094d\u0930\u093f\u0932"\ + "\u092e\u0947"\ + "\u091c\u0942\u0928"\ + "\u091c\u0941\u0932\u0948"\ + "\u0913\u0917\u0938\u094d\u091f"\ + "\u0938\u0947\u092a\u094d\u091f\u0947\u0902\u092c\u0930"\ + "\u0913\u0915\u094d\u091f\u094b\u092c\u0930"\ + "\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930"\ + "\u0921\u093f\u0938\u0947\u0902\u092c\u0930"] + ::msgcat::mcset mr AM "BC" + ::msgcat::mcset mr PM "AD" +} diff --git a/shared/package-files/eb/eb2e74a8053719d4524289d8ab7a6068a5f0184164b19d248d11205be01e9148/blob b/shared/package-files/eb/eb2e74a8053719d4524289d8ab7a6068a5f0184164b19d248d11205be01e9148/blob new file mode 100644 index 0000000000000000000000000000000000000000..cc78a4cb845600f772ed167df56168622f355d5b --- /dev/null +++ b/shared/package-files/eb/eb2e74a8053719d4524289d8ab7a6068a5f0184164b19d248d11205be01e9148/blob @@ -0,0 +1,23 @@ +*** Thu, 28 Jul 2016 16:37:09 *** +FORECASTING +Reference: Lütkepohl (1993), IMTSA, 2ed, ch. 5.2.6, ch. 10.5 +CI coverage: 0.95 +forecast horizon: 5 periods +using standard confidence intervals + + Dp +time forecast lower CI upper CI +/- +1999 Q1 -0.0226 -0.0320 -0.0132 0.0094 +1999 Q2 -0.0042 -0.0139 0.0054 0.0097 +1999 Q3 0.0029 -0.0070 0.0128 0.0099 +1999 Q4 0.0239 0.0138 0.0339 0.0101 +2000 Q1 -0.0256 -0.0365 -0.0146 0.0109 + + R +time forecast lower CI upper CI +/- +1999 Q1 0.0393 0.0293 0.0492 0.0100 +1999 Q2 0.0399 0.0246 0.0553 0.0153 +1999 Q3 0.0389 0.0199 0.0579 0.0190 +1999 Q4 0.0370 0.0142 0.0597 0.0228 +2000 Q1 0.0376 0.0113 0.0638 0.0262 + diff --git a/shared/package-files/eb/eb2f53efbdc204b5fe8d4af2d6c090195b8a54a336c0cb90e7a362e55e63e03c/blob b/shared/package-files/eb/eb2f53efbdc204b5fe8d4af2d6c090195b8a54a336c0cb90e7a362e55e63e03c/blob new file mode 100644 index 0000000000000000000000000000000000000000..9cad2da03911e848ad5791286a52598c996d3285 --- /dev/null +++ b/shared/package-files/eb/eb2f53efbdc204b5fe8d4af2d6c090195b8a54a336c0cb90e7a362e55e63e03c/blob @@ -0,0 +1,53 @@ +from typing import Any + +import numpy as np +import numpy.typing as npt + +AR_f8: npt.NDArray[np.float64] +AR_c16: npt.NDArray[np.complex128] +AR_m: npt.NDArray[np.timedelta64] +AR_M: npt.NDArray[np.datetime64] +AR_O: npt.NDArray[np.object_] + +def func(a: int) -> None: ... + +np.average(AR_m) # E: incompatible type +np.select(1, [AR_f8]) # E: incompatible type +np.angle(AR_m) # E: incompatible type +np.unwrap(AR_m) # E: incompatible type +np.unwrap(AR_c16) # E: incompatible type +np.trim_zeros(1) # E: incompatible type +np.place(1, [True], 1.5) # E: incompatible type +np.vectorize(1) # E: incompatible type +np.add_newdoc("__main__", 1.5, "docstring") # E: incompatible type +np.place(AR_f8, slice(None), 5) # E: incompatible type + +np.interp(AR_f8, AR_c16, AR_f8) # E: incompatible type +np.interp(AR_c16, AR_f8, AR_f8) # E: incompatible type +np.interp(AR_f8, AR_f8, AR_f8, period=AR_c16) # E: No overload variant +np.interp(AR_f8, AR_f8, AR_O) # E: incompatible type + +np.cov(AR_m) # E: incompatible type +np.cov(AR_O) # E: incompatible type +np.corrcoef(AR_m) # E: incompatible type +np.corrcoef(AR_O) # E: incompatible type +np.corrcoef(AR_f8, bias=True) # E: No overload variant +np.corrcoef(AR_f8, ddof=2) # E: No overload variant +np.blackman(1j) # E: incompatible type +np.bartlett(1j) # E: incompatible type +np.hanning(1j) # E: incompatible type +np.hamming(1j) # E: incompatible type +np.hamming(AR_c16) # E: incompatible type +np.kaiser(1j, 1) # E: incompatible type +np.sinc(AR_O) # E: incompatible type +np.median(AR_M) # E: incompatible type + +np.add_newdoc_ufunc(func, "docstring") # E: incompatible type +np.percentile(AR_f8, 50j) # E: No overload variant +np.percentile(AR_f8, 50, interpolation="bob") # E: No overload variant +np.quantile(AR_f8, 0.5j) # E: No overload variant +np.quantile(AR_f8, 0.5, interpolation="bob") # E: No overload variant +np.meshgrid(AR_f8, AR_f8, indexing="bob") # E: incompatible type +np.delete(AR_f8, AR_f8) # E: incompatible type +np.insert(AR_f8, AR_f8, 1.5) # E: incompatible type +np.digitize(AR_f8, 1j) # E: No overload variant diff --git a/shared/package-files/eb/eb2f80e2d206bccd606f5eec1a2e9bfff862ffc385dff63aadd664c14270cea1/blob b/shared/package-files/eb/eb2f80e2d206bccd606f5eec1a2e9bfff862ffc385dff63aadd664c14270cea1/blob new file mode 100644 index 0000000000000000000000000000000000000000..c609a5005948f0e292989c77ed35855d088a2a6a --- /dev/null +++ b/shared/package-files/eb/eb2f80e2d206bccd606f5eec1a2e9bfff862ffc385dff63aadd664c14270cea1/blob @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///croot/typing_extensions_1705599297034/work"} \ No newline at end of file diff --git a/shared/package-files/eb/eb30b06a14a288fadd238b2012e8b912ff6d3aefd851d71c5e3c78747357ff2d/blob b/shared/package-files/eb/eb30b06a14a288fadd238b2012e8b912ff6d3aefd851d71c5e3c78747357ff2d/blob new file mode 100644 index 0000000000000000000000000000000000000000..a0a7e6e4ce8d59b4403d1f819afb1bfdb961487f --- /dev/null +++ b/shared/package-files/eb/eb30b06a14a288fadd238b2012e8b912ff6d3aefd851d71c5e3c78747357ff2d/blob @@ -0,0 +1,270 @@ +"""The `with_signature` decorator: override the signature (and related +introspection attributes) of a wrapped callable without mutating the wrapped +function itself. Accepts a prototype callable, a prebuilt `inspect.Signature`, +or a factory that derives a signature from the wrapped function at decoration +time. + +This replaces the need for the `adapter=` argument of `wrapt.decorator`, +which is planned for deprecation. +""" + +from inspect import CO_VARARGS, CO_VARKEYWORDS, Parameter, Signature +from inspect import signature as _inspect_signature + +from .__wrapt__ import ( + BaseObjectProxy, + BoundFunctionWrapper, + CallableObjectProxy, + FunctionWrapper, +) +from .doc import _BOUND_DOC_PROPERTY, _DOC_PROPERTY, _NO_DOC_OVERRIDE + +_MISSING = object() + + +def _cached(attr): + """Read-only property that memoizes its derivation in a `_self_*` slot. + + `functools.cached_property` is unusable on ObjectProxy subclasses: wrapt + overrides `__dict__` with a property returning the wrapped object's dict, + so cached_property's `instance.__dict__[name] = value` would mutate the + wrapped function. Storing under a `_self_*` name routes through wrapt's + own setattr handling and lands in the proxy's real instance dict. Using + a `@property` (data descriptor) also ensures we win over any value + copied into the instance dict by `FunctionWrapper.__init__`. + """ + slot = f"_self_cached_{attr.lstrip('_')}" + + def getter(self): + value = getattr(self, slot, _MISSING) + if value is _MISSING: + value = self._derive(attr) + self.__self_setattr__(slot, value) + return value + + return property(getter) + + +def _derive_annotations(sig): + ann = { + p.name: p.annotation + for p in sig.parameters.values() + if p.annotation is not Parameter.empty + } + if sig.return_annotation is not Signature.empty: + ann["return"] = sig.return_annotation + return ann + + +def _derive_defaults(sig): + defaults = tuple( + p.default + for p in sig.parameters.values() + if p.kind in (Parameter.POSITIONAL_ONLY, Parameter.POSITIONAL_OR_KEYWORD) + and p.default is not Parameter.empty + ) + return defaults or None + + +def _derive_kwdefaults(sig): + kwdefaults = { + p.name: p.default + for p in sig.parameters.values() + if p.kind is Parameter.KEYWORD_ONLY and p.default is not Parameter.empty + } + return kwdefaults or None + + +def _derive_varnames(sig): + pos_only, pos_or_kw, kw_only = [], [], [] + var_pos = var_kw = None + for p in sig.parameters.values(): + if p.kind is Parameter.POSITIONAL_ONLY: + pos_only.append(p.name) + elif p.kind is Parameter.POSITIONAL_OR_KEYWORD: + pos_or_kw.append(p.name) + elif p.kind is Parameter.VAR_POSITIONAL: + var_pos = p.name + elif p.kind is Parameter.KEYWORD_ONLY: + kw_only.append(p.name) + elif p.kind is Parameter.VAR_KEYWORD: + var_kw = p.name + names = pos_only + pos_or_kw + kw_only + if var_pos: + names.append(var_pos) + if var_kw: + names.append(var_kw) + return tuple(names) + + +class _SignatureCode(BaseObjectProxy): + """Code-object proxy deriving argument-related co_* attrs from a Signature. + + Non-argument bits (co_flags for coroutine/generator, co_filename, etc.) + fall through to the wrapped function's real __code__. + """ + + def __init__(self, wrapped, signature): + super().__init__(wrapped) + self._self_signature = signature + + def _derive(self, attr): + sig = self._self_signature + if attr == "co_argcount": + kinds = (Parameter.POSITIONAL_ONLY, Parameter.POSITIONAL_OR_KEYWORD) + return sum(p.kind in kinds for p in sig.parameters.values()) + if attr == "co_posonlyargcount": + return sum( + p.kind is Parameter.POSITIONAL_ONLY for p in sig.parameters.values() + ) + if attr == "co_kwonlyargcount": + return sum( + p.kind is Parameter.KEYWORD_ONLY for p in sig.parameters.values() + ) + if attr == "co_varnames": + return _derive_varnames(sig) + if attr == "co_flags": + kinds = {p.kind for p in sig.parameters.values()} + flags = self.__wrapped__.co_flags & ~(CO_VARARGS | CO_VARKEYWORDS) + if Parameter.VAR_POSITIONAL in kinds: + flags |= CO_VARARGS + if Parameter.VAR_KEYWORD in kinds: + flags |= CO_VARKEYWORDS + return flags + raise AttributeError(attr) + + co_argcount = _cached("co_argcount") + co_posonlyargcount = _cached("co_posonlyargcount") + co_kwonlyargcount = _cached("co_kwonlyargcount") + co_varnames = _cached("co_varnames") + co_flags = _cached("co_flags") + + +class _SignatureMixin: + """Shared Signature-derived introspection attrs for wrapper + surrogate.""" + + def _derive(self, attr): + sig = self._self_signature + if attr == "__annotations__": + return _derive_annotations(sig) + if attr == "__defaults__": + return _derive_defaults(sig) + if attr == "__kwdefaults__": + return _derive_kwdefaults(sig) + if attr == "__code__": + return _SignatureCode(self.__wrapped__.__code__, sig) + raise AttributeError(attr) + + @property + def __signature__(self): + return self._self_signature + + __annotations__ = _cached("__annotations__") + __defaults__ = _cached("__defaults__") + __kwdefaults__ = _cached("__kwdefaults__") + __code__ = _cached("__code__") + + +class _SignatureFunctionSurrogate(_SignatureMixin, CallableObjectProxy): + """Function surrogate exposing Signature-derived introspection attrs. + + Used as __func__ of a bound wrapper so that inspect.signature -- which + treats the bound wrapper as a MethodType and consults __func__ -- sees + our override and strips self/cls correctly. + """ + + def __init__(self, wrapped, signature): + super().__init__(wrapped) + self._self_signature = signature + + +class _BoundSignatureFunctionWrapper(BoundFunctionWrapper): + __doc__ = _BOUND_DOC_PROPERTY + + @property + def __func__(self): + return _SignatureFunctionSurrogate( + self.__wrapped__.__func__, self._self_parent._self_signature + ) + + @property + def __signature__(self): + return self._self_parent._self_signature + + +class _SignatureFunctionWrapper(_SignatureMixin, FunctionWrapper): + __doc__ = _DOC_PROPERTY + + __bound_function_wrapper__ = _BoundSignatureFunctionWrapper + + def __init__(self, wrapped, wrapper, signature, doc=_NO_DOC_OVERRIDE): + super().__init__(wrapped, wrapper) + self._self_signature = signature + self._self_doc = doc + + @property + def __func__(self): + return _SignatureFunctionSurrogate(self.__wrapped__, self._self_signature) + + +def with_signature( + wrapped=None, /, *, prototype=None, signature=None, factory=None, doc=None +): + """Override the signature of a wrapped callable. + + Exactly one of `prototype`, `signature`, or `factory` must be supplied: + + - `prototype`: a callable whose signature will be used. + - `signature`: a prebuilt `inspect.Signature` object. + - `factory`: a callable `factory(wrapped)` invoked at decoration time + that returns either a `Signature` or a prototype callable, or a + tuple of `(signature_or_prototype, docstring)` to override the + docstring at the same time. + + The docstring may also be overridden by supplying `doc`, in which case + a docstring from the factory is ignored. When neither is supplied the + wrapper reports the docstring of the wrapped function as normal. + + The resulting wrapper exposes the override via `__signature__`, and + derives `__annotations__`, `__defaults__`, `__kwdefaults__`, and the + argument-related attributes of `__code__` from the same source. The + wrapped function is not mutated. Calling behaviour is unchanged. + """ + + specified = sum(x is not None for x in (prototype, signature, factory)) + if specified == 0: + raise TypeError( + "with_signature requires one of prototype=, signature=, or factory=" + ) + if specified > 1: + raise TypeError( + "with_signature accepts only one of prototype=, signature=, or factory=" + ) + + def _decorator(wrapped): + def _wrapper(wrapped, instance, args, kwargs): + return wrapped(*args, **kwargs) + + resolved_doc = _NO_DOC_OVERRIDE if doc is None else doc + + if signature is not None: + resolved = signature + elif prototype is not None: + resolved = _inspect_signature(prototype) + else: + produced = factory(wrapped) + if isinstance(produced, tuple): + produced, produced_doc = produced + if doc is None: + resolved_doc = produced_doc + resolved = ( + produced + if isinstance(produced, Signature) + else _inspect_signature(produced) + ) + + return _SignatureFunctionWrapper(wrapped, _wrapper, resolved, resolved_doc) + + if wrapped is None: + return _decorator + return _decorator(wrapped) diff --git a/shared/package-files/eb/eb3163275abfc4e36a601a8139ca619d3aa9e3d654f14ae095f4fe0c289b27e0/blob b/shared/package-files/eb/eb3163275abfc4e36a601a8139ca619d3aa9e3d654f14ae095f4fe0c289b27e0/blob new file mode 100644 index 0000000000000000000000000000000000000000..7652696c7c8422d47e182c3b353a19a2feb684fa --- /dev/null +++ b/shared/package-files/eb/eb3163275abfc4e36a601a8139ca619d3aa9e3d654f14ae095f4fe0c289b27e0/blob @@ -0,0 +1,24 @@ +from collections import OrderedDict +from typing import Any, Callable, Dict, Union + +from .backends.base import ( + BaseCache as BaseCache, + CacheKeyWarning as CacheKeyWarning, + InvalidCacheBackendError as InvalidCacheBackendError, +) + +DEFAULT_CACHE_ALIAS: str + +class CacheHandler: + def __init__(self) -> None: ... + def __getitem__(self, alias: str) -> BaseCache: ... + def all(self): ... + +class DefaultCacheProxy: + def __getattr__(self, name: str) -> Union[Callable, Dict[str, float], OrderedDict, int]: ... + def __setattr__(self, name: str, value: Callable) -> None: ... + def __delattr__(self, name: Any): ... + def __contains__(self, key: str) -> bool: ... + +cache: Any +caches: CacheHandler diff --git a/shared/package-files/eb/eb31a0c5a4fb09b8a4e32055d25c1e5f9c358a2752fef3cd720213d1ccfee241/blob b/shared/package-files/eb/eb31a0c5a4fb09b8a4e32055d25c1e5f9c358a2752fef3cd720213d1ccfee241/blob new file mode 100644 index 0000000000000000000000000000000000000000..ad82355b802d542e8443dc78b937fa36fdcc0ace --- /dev/null +++ b/shared/package-files/eb/eb31a0c5a4fb09b8a4e32055d25c1e5f9c358a2752fef3cd720213d1ccfee241/blob @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 TAHRI Ahmed R. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/shared/package-files/eb/eb331819a8c769a097504fd4ec7b862e9d1fa9cbe26008c165d14323813b0bed/blob b/shared/package-files/eb/eb331819a8c769a097504fd4ec7b862e9d1fa9cbe26008c165d14323813b0bed/blob new file mode 100644 index 0000000000000000000000000000000000000000..27337013ff12edbb9a6b18608a555e5c33031499 --- /dev/null +++ b/shared/package-files/eb/eb331819a8c769a097504fd4ec7b862e9d1fa9cbe26008c165d14323813b0bed/blob @@ -0,0 +1,61 @@ +from typing import List, Optional + +from torchaudio._internal.module_utils import deprecated + +from . import utils +from .common import AudioMetaData + +__all__ = [ + "AudioMetaData", + "load", + "info", + "save", + "list_audio_backends", + "get_audio_backend", + "set_audio_backend", +] + + +info = utils.get_info_func() +load = utils.get_load_func() +save = utils.get_save_func() + + +def list_audio_backends() -> List[str]: + """List available backends + + Returns: + list of str: The list of available backends. + + The possible values are; ``"ffmpeg"``, ``"sox"`` and ``"soundfile"``. + """ + + return list(utils.get_available_backends().keys()) + + +# Temporary until global backend is removed +@deprecated("With dispatcher enabled, this function is no-op. You can remove the function call.") +def get_audio_backend() -> Optional[str]: + """Get the name of the current global backend + + Returns: + str or None: + If dispatcher mode is enabled, returns ``None`` otherwise, + the name of current backend or ``None`` (no backend is set). + """ + return None + + +# Temporary until global backend is removed +@deprecated("With dispatcher enabled, this function is no-op. You can remove the function call.") +def set_audio_backend(backend: Optional[str]): # noqa + """Set the global backend. + + This is a no-op when dispatcher mode is enabled. + + Args: + backend (str or None): Name of the backend. + One of ``"sox_io"`` or ``"soundfile"`` based on availability + of the system. If ``None`` is provided the current backend is unassigned. + """ + pass diff --git a/shared/package-files/eb/eb36df12a66137362404095eef74be201c69f6852b15f0229f19f447cacb2e22/blob b/shared/package-files/eb/eb36df12a66137362404095eef74be201c69f6852b15f0229f19f447cacb2e22/blob new file mode 100644 index 0000000000000000000000000000000000000000..c4a3f3f1c9990a633a84362db18b64261df32dba --- /dev/null +++ b/shared/package-files/eb/eb36df12a66137362404095eef74be201c69f6852b15f0229f19f447cacb2e22/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb36df12a66137362404095eef74be201c69f6852b15f0229f19f447cacb2e22 +size 622042 diff --git a/shared/package-files/eb/eb3795aa9067b34f1d247eea93c046589d8d4b7585ab6dbbc44a7cdbffacf8fb/blob b/shared/package-files/eb/eb3795aa9067b34f1d247eea93c046589d8d4b7585ab6dbbc44a7cdbffacf8fb/blob new file mode 100644 index 0000000000000000000000000000000000000000..d924966d315cc1816c2bf713ee935e1348430c02 Binary files /dev/null and b/shared/package-files/eb/eb3795aa9067b34f1d247eea93c046589d8d4b7585ab6dbbc44a7cdbffacf8fb/blob differ diff --git a/shared/package-files/eb/eb37b90e8a99685cba050e59f2fb43889c123978417296499643397a723d72e1/blob b/shared/package-files/eb/eb37b90e8a99685cba050e59f2fb43889c123978417296499643397a723d72e1/blob new file mode 100644 index 0000000000000000000000000000000000000000..fb52d084612399f399e6bcd3f07bca85bb010ba0 --- /dev/null +++ b/shared/package-files/eb/eb37b90e8a99685cba050e59f2fb43889c123978417296499643397a723d72e1/blob @@ -0,0 +1,34 @@ +from collections.abc import Callable +from typing import Any, TypeVar, overload + + +_T = TypeVar('_T') + + +def kwarg_doc(text: str) -> Callable[[_T], _T]: ... + + +class Substitution: + @overload + def __init__(self, *args: str): ... + @overload + def __init__(self, **kwargs: str): ... + def __call__(self, func: _T) -> _T: ... + def update(self, *args, **kwargs): ... # type: ignore[no-untyped-def] + + +class _ArtistKwdocLoader(dict[str, str]): + def __missing__(self, key: str) -> str: ... + + +class _ArtistPropertiesSubstitution: + def __init__(self) -> None: ... + def register(self, **kwargs) -> None: ... + def __call__(self, obj: _T) -> _T: ... + + +def copy(source: Any) -> Callable[[_T], _T]: ... + + +dedent_interpd: _ArtistPropertiesSubstitution +interpd: _ArtistPropertiesSubstitution diff --git a/shared/package-files/eb/eb3e8774d1fa4b4026a29d8651faec89fc4ebe0ba97d3a850d97fbe98444b7ee/blob b/shared/package-files/eb/eb3e8774d1fa4b4026a29d8651faec89fc4ebe0ba97d3a850d97fbe98444b7ee/blob new file mode 100644 index 0000000000000000000000000000000000000000..343e30643cfd31916caafc4a84a3fd393c9a84ef --- /dev/null +++ b/shared/package-files/eb/eb3e8774d1fa4b4026a29d8651faec89fc4ebe0ba97d3a850d97fbe98444b7ee/blob @@ -0,0 +1,54 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// NOTE: API is EXPERIMENTAL and will change without going through a +// deprecation cycle + +#pragma once + +/// \defgroup compute-functions Abstract compute function API +/// @{ +/// @} + +/// \defgroup compute-concrete-options Concrete option classes for compute functions +/// @{ +/// @} + +#include "arrow/compute/api_aggregate.h" // IWYU pragma: export +#include "arrow/compute/api_scalar.h" // IWYU pragma: export +#include "arrow/compute/api_vector.h" // IWYU pragma: export +#include "arrow/compute/cast.h" // IWYU pragma: export +#include "arrow/compute/function.h" // IWYU pragma: export +#include "arrow/compute/function_options.h" // IWYU pragma: export +#include "arrow/compute/initialize.h" // IWYU pragma: export +#include "arrow/compute/kernel.h" // IWYU pragma: export +#include "arrow/compute/registry.h" // IWYU pragma: export +#include "arrow/datum.h" // IWYU pragma: export + +#include "arrow/compute/expression.h" // IWYU pragma: export + +/// \defgroup execnode-row Utilities for working with data in a row-major format +/// @{ +/// @} + +#include "arrow/compute/row/grouper.h" // IWYU pragma: export + +/// \defgroup acero-internals Acero internals, useful for those extending Acero +/// @{ +/// @} + +#include "arrow/compute/exec.h" // IWYU pragma: export diff --git a/shared/package-files/eb/eb3f6ed6a6d339b8113479f6878f1946bf082b8818a89daf85f0b63a5be1f9c1/blob b/shared/package-files/eb/eb3f6ed6a6d339b8113479f6878f1946bf082b8818a89daf85f0b63a5be1f9c1/blob new file mode 100644 index 0000000000000000000000000000000000000000..5ca4c23238b41985bffaa03a867e46480da86867 --- /dev/null +++ b/shared/package-files/eb/eb3f6ed6a6d339b8113479f6878f1946bf082b8818a89daf85f0b63a5be1f9c1/blob @@ -0,0 +1,244 @@ +"""Test result object""" + +import io +import sys +import traceback + +from . import util +from functools import wraps + +__unittest = True + +def failfast(method): + @wraps(method) + def inner(self, *args, **kw): + if getattr(self, 'failfast', False): + self.stop() + return method(self, *args, **kw) + return inner + +STDOUT_LINE = '\nStdout:\n%s' +STDERR_LINE = '\nStderr:\n%s' + + +class TestResult(object): + """Holder for test result information. + + Test results are automatically managed by the TestCase and TestSuite + classes, and do not need to be explicitly manipulated by writers of tests. + + Each instance holds the total number of tests run, and collections of + failures and errors that occurred among those test runs. The collections + contain tuples of (testcase, exceptioninfo), where exceptioninfo is the + formatted traceback of the error that occurred. + """ + _previousTestClass = None + _testRunEntered = False + _moduleSetUpFailed = False + def __init__(self, stream=None, descriptions=None, verbosity=None): + self.failfast = False + self.failures = [] + self.errors = [] + self.testsRun = 0 + self.skipped = [] + self.expectedFailures = [] + self.unexpectedSuccesses = [] + self.shouldStop = False + self.buffer = False + self.tb_locals = False + self._stdout_buffer = None + self._stderr_buffer = None + self._original_stdout = sys.stdout + self._original_stderr = sys.stderr + self._mirrorOutput = False + + def printErrors(self): + "Called by TestRunner after test run" + + def startTest(self, test): + "Called when the given test is about to be run" + self.testsRun += 1 + self._mirrorOutput = False + self._setupStdout() + + def _setupStdout(self): + if self.buffer: + if self._stderr_buffer is None: + self._stderr_buffer = io.StringIO() + self._stdout_buffer = io.StringIO() + sys.stdout = self._stdout_buffer + sys.stderr = self._stderr_buffer + + def startTestRun(self): + """Called once before any tests are executed. + + See startTest for a method called before each test. + """ + + def stopTest(self, test): + """Called when the given test has been run""" + self._restoreStdout() + self._mirrorOutput = False + + def _restoreStdout(self): + if self.buffer: + if self._mirrorOutput: + output = sys.stdout.getvalue() + error = sys.stderr.getvalue() + if output: + if not output.endswith('\n'): + output += '\n' + self._original_stdout.write(STDOUT_LINE % output) + if error: + if not error.endswith('\n'): + error += '\n' + self._original_stderr.write(STDERR_LINE % error) + + sys.stdout = self._original_stdout + sys.stderr = self._original_stderr + self._stdout_buffer.seek(0) + self._stdout_buffer.truncate() + self._stderr_buffer.seek(0) + self._stderr_buffer.truncate() + + def stopTestRun(self): + """Called once after all tests are executed. + + See stopTest for a method called after each test. + """ + + @failfast + def addError(self, test, err): + """Called when an error has occurred. 'err' is a tuple of values as + returned by sys.exc_info(). + """ + self.errors.append((test, self._exc_info_to_string(err, test))) + self._mirrorOutput = True + + @failfast + def addFailure(self, test, err): + """Called when an error has occurred. 'err' is a tuple of values as + returned by sys.exc_info().""" + self.failures.append((test, self._exc_info_to_string(err, test))) + self._mirrorOutput = True + + def addSubTest(self, test, subtest, err): + """Called at the end of a subtest. + 'err' is None if the subtest ended successfully, otherwise it's a + tuple of values as returned by sys.exc_info(). + """ + # By default, we don't do anything with successful subtests, but + # more sophisticated test results might want to record them. + if err is not None: + if getattr(self, 'failfast', False): + self.stop() + if issubclass(err[0], test.failureException): + errors = self.failures + else: + errors = self.errors + errors.append((subtest, self._exc_info_to_string(err, test))) + self._mirrorOutput = True + + def addSuccess(self, test): + "Called when a test has completed successfully" + pass + + def addSkip(self, test, reason): + """Called when a test is skipped.""" + self.skipped.append((test, reason)) + + def addExpectedFailure(self, test, err): + """Called when an expected failure/error occurred.""" + self.expectedFailures.append( + (test, self._exc_info_to_string(err, test))) + + @failfast + def addUnexpectedSuccess(self, test): + """Called when a test was expected to fail, but succeed.""" + self.unexpectedSuccesses.append(test) + + def wasSuccessful(self): + """Tells whether or not this result was a success.""" + # The hasattr check is for test_result's OldResult test. That + # way this method works on objects that lack the attribute. + # (where would such result instances come from? old stored pickles?) + return ((len(self.failures) == len(self.errors) == 0) and + (not hasattr(self, 'unexpectedSuccesses') or + len(self.unexpectedSuccesses) == 0)) + + def stop(self): + """Indicates that the tests should be aborted.""" + self.shouldStop = True + + def _exc_info_to_string(self, err, test): + """Converts a sys.exc_info()-style tuple of values into a string.""" + exctype, value, tb = err + tb = self._clean_tracebacks(exctype, value, tb, test) + tb_e = traceback.TracebackException( + exctype, value, tb, + capture_locals=self.tb_locals, compact=True) + msgLines = list(tb_e.format()) + + if self.buffer: + output = sys.stdout.getvalue() + error = sys.stderr.getvalue() + if output: + if not output.endswith('\n'): + output += '\n' + msgLines.append(STDOUT_LINE % output) + if error: + if not error.endswith('\n'): + error += '\n' + msgLines.append(STDERR_LINE % error) + return ''.join(msgLines) + + def _clean_tracebacks(self, exctype, value, tb, test): + ret = None + first = True + excs = [(exctype, value, tb)] + seen = {id(value)} # Detect loops in chained exceptions. + while excs: + (exctype, value, tb) = excs.pop() + # Skip test runner traceback levels + while tb and self._is_relevant_tb_level(tb): + tb = tb.tb_next + + # Skip assert*() traceback levels + if exctype is test.failureException: + self._remove_unittest_tb_frames(tb) + + if first: + ret = tb + first = False + else: + value.__traceback__ = tb + + if value is not None: + for c in (value.__cause__, value.__context__): + if c is not None and id(c) not in seen: + excs.append((type(c), c, c.__traceback__)) + seen.add(id(c)) + return ret + + def _is_relevant_tb_level(self, tb): + return '__unittest' in tb.tb_frame.f_globals + + def _remove_unittest_tb_frames(self, tb): + '''Truncates usercode tb at the first unittest frame. + + If the first frame of the traceback is in user code, + the prefix up to the first unittest frame is returned. + If the first frame is already in the unittest module, + the traceback is not modified. + ''' + prev = None + while tb and not self._is_relevant_tb_level(tb): + prev = tb + tb = tb.tb_next + if prev is not None: + prev.tb_next = None + + def __repr__(self): + return ("<%s run=%i errors=%i failures=%i>" % + (util.strclass(self.__class__), self.testsRun, len(self.errors), + len(self.failures))) diff --git a/shared/package-files/eb/eb443a5cdbf7d4e24e838f44998dfcedaa8901dbd11e1b9b6c610c0f80d0f362/blob b/shared/package-files/eb/eb443a5cdbf7d4e24e838f44998dfcedaa8901dbd11e1b9b6c610c0f80d0f362/blob new file mode 100644 index 0000000000000000000000000000000000000000..3fa024cbb99ddfe4b0c984ffd1c7ee979a141764 --- /dev/null +++ b/shared/package-files/eb/eb443a5cdbf7d4e24e838f44998dfcedaa8901dbd11e1b9b6c610c0f80d0f362/blob @@ -0,0 +1,22 @@ +import numpy as np +from numpy.testing import assert_equal +from scipy import linalg + +from statsmodels.tools.catadd import add_indep + + +def test_add_indep(): + x1 = np.array([0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2]) + x2 = np.array([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]) + x0 = np.ones(len(x2)) + x = np.column_stack([x0, x1[:, None] * np.arange(3), x2[:, None] * np.arange(2)]) + varnames = ( + ["const"] + + [f"var1_{i:d}" for i in np.arange(3)] + + [f"var2_{i:d}" for i in np.arange(2)] + ) + xo, vo = add_indep(x, varnames) + + assert_equal(xo, np.column_stack((x0, x1, x2))) + assert_equal((linalg.svdvals(x) > 1e-12).sum(), 3) + assert_equal(vo, ["const", "var1_1", "var2_1"]) diff --git a/shared/package-files/eb/eb4b2c6a6e6bbccc78758ccd3ed5dcf839d7c5bb48a7132d943fe8dd4d58228e/blob b/shared/package-files/eb/eb4b2c6a6e6bbccc78758ccd3ed5dcf839d7c5bb48a7132d943fe8dd4d58228e/blob new file mode 100644 index 0000000000000000000000000000000000000000..ae97bdf8d53232353c76f8210f38cb4650b1657c --- /dev/null +++ b/shared/package-files/eb/eb4b2c6a6e6bbccc78758ccd3ed5dcf839d7c5bb48a7132d943fe8dd4d58228e/blob @@ -0,0 +1,122 @@ +# Mypy will not try inferring the types of any 3rd party libraries installed. +# mypy: ignore-errors + +import io +import os +from contextlib import contextmanager +from pathlib import Path +from typing import Generator, Optional, Union + +import fsspec +from fsspec import AbstractFileSystem +from fsspec.core import url_to_fs + +from torch.distributed.checkpoint.filesystem import ( + FileSystemBase, + FileSystemReader, + FileSystemWriter, +) + +__all__ = [ + "FsspecWriter", + "FsspecReader", +] + + +class FileSystem(FileSystemBase): + def __init__(self) -> None: + self.fs: Optional[AbstractFileSystem] = None + + @contextmanager + def create_stream( + self, path: Union[str, os.PathLike], mode: str + ) -> Generator[io.IOBase, None, None]: + assert self.fs is not None + with self.fs.transaction: + with fsspec.open(str(path), mode) as stream: + yield stream + + def concat_path( + self, path: Union[str, os.PathLike], suffix: str + ) -> Union[str, os.PathLike]: + return os.path.join(path, suffix) + + def init_path(self, path: Union[str, os.PathLike]) -> Union[str, os.PathLike]: + self.fs, _ = url_to_fs(path) + return path + + def rename( + self, path: Union[str, os.PathLike], new_path: Union[str, os.PathLike] + ) -> None: + self.fs.rename(path, new_path) + + def mkdir(self, path: [str, os.PathLike]) -> None: + self.fs.makedirs(path, exist_ok=True) + + @classmethod + def validate_checkpoint_id(cls, checkpoint_id: Union[str, os.PathLike]) -> bool: + if isinstance(checkpoint_id, Path): + return False + + try: + url_to_fs(checkpoint_id) + except ValueError as e: + return False + + return True + + +class FsspecWriter(FileSystemWriter): + """ + Basic implementation of StorageWriter using FFspec. + + This implementation makes the following assumptions and simplifications: + + * The checkpoint path is an empty or non-existing directory. + * File creation is atomic + + The checkpoint consist of one file per write request plus + a `.metadata` file with the serialized metadata. + + """ + + def __init__( + self, + path: Union[str, os.PathLike], + single_file_per_rank: bool = True, + sync_files: bool = True, + thread_count: int = 1, + per_thread_copy_ahead: int = 10_000_000, + ) -> None: + """ + Initialize the writer pointing to `path`. + + Args: + path: directory where the checkpoint will be written to. + single_file_per_rank: Produce one file per rank instead of one file per tensor/blob. Default to True. + sync_files : force files to be synced to permanent storage. Default to True. + thread_count: Number of IO threads to use to write. Default to 1. + per_thread_copy_ahead: How many bytes to copy from the GPU ahead of saving then. Default 10Mb. + + N. B. If sync_files is disabled, there's no guarantee that the checkpoint will be consistent in the case of a failure. + """ + super().__init__( + path, single_file_per_rank, sync_files, thread_count, per_thread_copy_ahead + ) + self.fs = FileSystem() + self.path = self.fs.init_path(path) + + @classmethod + def validate_checkpoint_id(cls, checkpoint_id: Union[str, os.PathLike]) -> bool: + return FileSystem.validate_checkpoint_id(checkpoint_id) + + +class FsspecReader(FileSystemReader): + def __init__(self, path: Union[str, os.PathLike]) -> None: + super().__init__(path) + self.fs = FileSystem() + self.path = self.fs.init_path(path) + + @classmethod + def validate_checkpoint_id(cls, checkpoint_id: Union[str, os.PathLike]) -> bool: + return FileSystem.check(checkpoint_id) diff --git a/shared/package-files/eb/eb5189c73422a742089e1b8eebd648e466cd43cd97103501ff51a0e7f2ad5287/blob b/shared/package-files/eb/eb5189c73422a742089e1b8eebd648e466cd43cd97103501ff51a0e7f2ad5287/blob new file mode 100644 index 0000000000000000000000000000000000000000..37b0e6531f1544e1ba9b5895c48939fc97441ce7 --- /dev/null +++ b/shared/package-files/eb/eb5189c73422a742089e1b8eebd648e466cd43cd97103501ff51a0e7f2ad5287/blob @@ -0,0 +1,330 @@ +import json +import os +import sys +import tempfile +from contextlib import contextmanager +from os.path import abspath +from os.path import join as pjoin +from subprocess import STDOUT, check_call, check_output + +from ._in_process import _in_proc_script_path + + +def write_json(obj, path, **kwargs): + with open(path, 'w', encoding='utf-8') as f: + json.dump(obj, f, **kwargs) + + +def read_json(path): + with open(path, encoding='utf-8') as f: + return json.load(f) + + +class BackendUnavailable(Exception): + """Will be raised if the backend cannot be imported in the hook process.""" + def __init__(self, traceback): + self.traceback = traceback + + +class BackendInvalid(Exception): + """Will be raised if the backend is invalid.""" + def __init__(self, backend_name, backend_path, message): + super().__init__(message) + self.backend_name = backend_name + self.backend_path = backend_path + + +class HookMissing(Exception): + """Will be raised on missing hooks (if a fallback can't be used).""" + def __init__(self, hook_name): + super().__init__(hook_name) + self.hook_name = hook_name + + +class UnsupportedOperation(Exception): + """May be raised by build_sdist if the backend indicates that it can't.""" + def __init__(self, traceback): + self.traceback = traceback + + +def default_subprocess_runner(cmd, cwd=None, extra_environ=None): + """The default method of calling the wrapper subprocess. + + This uses :func:`subprocess.check_call` under the hood. + """ + env = os.environ.copy() + if extra_environ: + env.update(extra_environ) + + check_call(cmd, cwd=cwd, env=env) + + +def quiet_subprocess_runner(cmd, cwd=None, extra_environ=None): + """Call the subprocess while suppressing output. + + This uses :func:`subprocess.check_output` under the hood. + """ + env = os.environ.copy() + if extra_environ: + env.update(extra_environ) + + check_output(cmd, cwd=cwd, env=env, stderr=STDOUT) + + +def norm_and_check(source_tree, requested): + """Normalise and check a backend path. + + Ensure that the requested backend path is specified as a relative path, + and resolves to a location under the given source tree. + + Return an absolute version of the requested path. + """ + if os.path.isabs(requested): + raise ValueError("paths must be relative") + + abs_source = os.path.abspath(source_tree) + abs_requested = os.path.normpath(os.path.join(abs_source, requested)) + # We have to use commonprefix for Python 2.7 compatibility. So we + # normalise case to avoid problems because commonprefix is a character + # based comparison :-( + norm_source = os.path.normcase(abs_source) + norm_requested = os.path.normcase(abs_requested) + if os.path.commonprefix([norm_source, norm_requested]) != norm_source: + raise ValueError("paths must be inside source tree") + + return abs_requested + + +class BuildBackendHookCaller: + """A wrapper to call the build backend hooks for a source directory. + """ + + def __init__( + self, + source_dir, + build_backend, + backend_path=None, + runner=None, + python_executable=None, + ): + """ + :param source_dir: The source directory to invoke the build backend for + :param build_backend: The build backend spec + :param backend_path: Additional path entries for the build backend spec + :param runner: The :ref:`subprocess runner ` to use + :param python_executable: + The Python executable used to invoke the build backend + """ + if runner is None: + runner = default_subprocess_runner + + self.source_dir = abspath(source_dir) + self.build_backend = build_backend + if backend_path: + backend_path = [ + norm_and_check(self.source_dir, p) for p in backend_path + ] + self.backend_path = backend_path + self._subprocess_runner = runner + if not python_executable: + python_executable = sys.executable + self.python_executable = python_executable + + @contextmanager + def subprocess_runner(self, runner): + """A context manager for temporarily overriding the default + :ref:`subprocess runner `. + + .. code-block:: python + + hook_caller = BuildBackendHookCaller(...) + with hook_caller.subprocess_runner(quiet_subprocess_runner): + ... + """ + prev = self._subprocess_runner + self._subprocess_runner = runner + try: + yield + finally: + self._subprocess_runner = prev + + def _supported_features(self): + """Return the list of optional features supported by the backend.""" + return self._call_hook('_supported_features', {}) + + def get_requires_for_build_wheel(self, config_settings=None): + """Get additional dependencies required for building a wheel. + + :returns: A list of :pep:`dependency specifiers <508>`. + :rtype: list[str] + + .. admonition:: Fallback + + If the build backend does not defined a hook with this name, an + empty list will be returned. + """ + return self._call_hook('get_requires_for_build_wheel', { + 'config_settings': config_settings + }) + + def prepare_metadata_for_build_wheel( + self, metadata_directory, config_settings=None, + _allow_fallback=True): + """Prepare a ``*.dist-info`` folder with metadata for this project. + + :returns: Name of the newly created subfolder within + ``metadata_directory``, containing the metadata. + :rtype: str + + .. admonition:: Fallback + + If the build backend does not define a hook with this name and + ``_allow_fallback`` is truthy, the backend will be asked to build a + wheel via the ``build_wheel`` hook and the dist-info extracted from + that will be returned. + """ + return self._call_hook('prepare_metadata_for_build_wheel', { + 'metadata_directory': abspath(metadata_directory), + 'config_settings': config_settings, + '_allow_fallback': _allow_fallback, + }) + + def build_wheel( + self, wheel_directory, config_settings=None, + metadata_directory=None): + """Build a wheel from this project. + + :returns: + The name of the newly created wheel within ``wheel_directory``. + + .. admonition:: Interaction with fallback + + If the ``build_wheel`` hook was called in the fallback for + :meth:`prepare_metadata_for_build_wheel`, the build backend would + not be invoked. Instead, the previously built wheel will be copied + to ``wheel_directory`` and the name of that file will be returned. + """ + if metadata_directory is not None: + metadata_directory = abspath(metadata_directory) + return self._call_hook('build_wheel', { + 'wheel_directory': abspath(wheel_directory), + 'config_settings': config_settings, + 'metadata_directory': metadata_directory, + }) + + def get_requires_for_build_editable(self, config_settings=None): + """Get additional dependencies required for building an editable wheel. + + :returns: A list of :pep:`dependency specifiers <508>`. + :rtype: list[str] + + .. admonition:: Fallback + + If the build backend does not defined a hook with this name, an + empty list will be returned. + """ + return self._call_hook('get_requires_for_build_editable', { + 'config_settings': config_settings + }) + + def prepare_metadata_for_build_editable( + self, metadata_directory, config_settings=None, + _allow_fallback=True): + """Prepare a ``*.dist-info`` folder with metadata for this project. + + :returns: Name of the newly created subfolder within + ``metadata_directory``, containing the metadata. + :rtype: str + + .. admonition:: Fallback + + If the build backend does not define a hook with this name and + ``_allow_fallback`` is truthy, the backend will be asked to build a + wheel via the ``build_editable`` hook and the dist-info + extracted from that will be returned. + """ + return self._call_hook('prepare_metadata_for_build_editable', { + 'metadata_directory': abspath(metadata_directory), + 'config_settings': config_settings, + '_allow_fallback': _allow_fallback, + }) + + def build_editable( + self, wheel_directory, config_settings=None, + metadata_directory=None): + """Build an editable wheel from this project. + + :returns: + The name of the newly created wheel within ``wheel_directory``. + + .. admonition:: Interaction with fallback + + If the ``build_editable`` hook was called in the fallback for + :meth:`prepare_metadata_for_build_editable`, the build backend + would not be invoked. Instead, the previously built wheel will be + copied to ``wheel_directory`` and the name of that file will be + returned. + """ + if metadata_directory is not None: + metadata_directory = abspath(metadata_directory) + return self._call_hook('build_editable', { + 'wheel_directory': abspath(wheel_directory), + 'config_settings': config_settings, + 'metadata_directory': metadata_directory, + }) + + def get_requires_for_build_sdist(self, config_settings=None): + """Get additional dependencies required for building an sdist. + + :returns: A list of :pep:`dependency specifiers <508>`. + :rtype: list[str] + """ + return self._call_hook('get_requires_for_build_sdist', { + 'config_settings': config_settings + }) + + def build_sdist(self, sdist_directory, config_settings=None): + """Build an sdist from this project. + + :returns: + The name of the newly created sdist within ``wheel_directory``. + """ + return self._call_hook('build_sdist', { + 'sdist_directory': abspath(sdist_directory), + 'config_settings': config_settings, + }) + + def _call_hook(self, hook_name, kwargs): + extra_environ = {'PEP517_BUILD_BACKEND': self.build_backend} + + if self.backend_path: + backend_path = os.pathsep.join(self.backend_path) + extra_environ['PEP517_BACKEND_PATH'] = backend_path + + with tempfile.TemporaryDirectory() as td: + hook_input = {'kwargs': kwargs} + write_json(hook_input, pjoin(td, 'input.json'), indent=2) + + # Run the hook in a subprocess + with _in_proc_script_path() as script: + python = self.python_executable + self._subprocess_runner( + [python, abspath(str(script)), hook_name, td], + cwd=self.source_dir, + extra_environ=extra_environ + ) + + data = read_json(pjoin(td, 'output.json')) + if data.get('unsupported'): + raise UnsupportedOperation(data.get('traceback', '')) + if data.get('no_backend'): + raise BackendUnavailable(data.get('traceback', '')) + if data.get('backend_invalid'): + raise BackendInvalid( + backend_name=self.build_backend, + backend_path=self.backend_path, + message=data.get('backend_error', '') + ) + if data.get('hook_missing'): + raise HookMissing(data.get('missing_hook_name') or hook_name) + return data['return_val'] diff --git a/shared/package-files/eb/eb5572da0b7efe23c237f11c717510ec791ad232a15467bb5ec1bb40e1cbea8c/blob b/shared/package-files/eb/eb5572da0b7efe23c237f11c717510ec791ad232a15467bb5ec1bb40e1cbea8c/blob new file mode 100644 index 0000000000000000000000000000000000000000..bbce0fd660060f876a65c2f9523ab28664fd2960 --- /dev/null +++ b/shared/package-files/eb/eb5572da0b7efe23c237f11c717510ec791ad232a15467bb5ec1bb40e1cbea8c/blob @@ -0,0 +1,22 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor huber_loss(const at::Tensor & self, const at::Tensor & target, int64_t reduction=at::Reduction::Mean, double delta=1.0); +TORCH_API at::Tensor & huber_loss_out(const at::Tensor & self, const at::Tensor & target, int64_t reduction, double delta, at::Tensor & out); +} // namespace native +} // namespace at diff --git a/shared/package-files/eb/eb56715dfc5e8c6b8866ceeb2636422acad9992dd2c625355dc21b94c25351f0/blob b/shared/package-files/eb/eb56715dfc5e8c6b8866ceeb2636422acad9992dd2c625355dc21b94c25351f0/blob new file mode 100644 index 0000000000000000000000000000000000000000..f17f9d42dd61cad70d490c226b2ef04c336646b5 Binary files /dev/null and b/shared/package-files/eb/eb56715dfc5e8c6b8866ceeb2636422acad9992dd2c625355dc21b94c25351f0/blob differ diff --git a/shared/package-files/eb/eb5f3048056fe87c939ac0a99c1ea552a1bb272084508ac5f0da7e1219e25e61/blob b/shared/package-files/eb/eb5f3048056fe87c939ac0a99c1ea552a1bb272084508ac5f0da7e1219e25e61/blob new file mode 100644 index 0000000000000000000000000000000000000000..c232bf76a2bf4b05881c26c7756abb00b246d7bc --- /dev/null +++ b/shared/package-files/eb/eb5f3048056fe87c939ac0a99c1ea552a1bb272084508ac5f0da7e1219e25e61/blob @@ -0,0 +1,794 @@ +from collections import namedtuple +import inspect +import re +import numpy as np +import math +from textwrap import dedent +import unittest +import warnings + +from numba.tests.support import (TestCase, override_config, + ignore_internal_warnings) +from numba import jit, njit +from numba.core import types +from numba.core.datamodel import default_manager +from numba.core.errors import NumbaDebugInfoWarning +import llvmlite.binding as llvm + +#NOTE: These tests are potentially sensitive to changes in SSA or lowering +# behaviour and may need updating should changes be made to the corresponding +# algorithms. + + +class TestDebugInfo(TestCase): + """ + These tests only checks the compiled assembly for debuginfo. + """ + + def _getasm(self, fn, sig): + fn.compile(sig) + return fn.inspect_asm(sig) + + def _check(self, fn, sig, expect): + asm = self._getasm(fn, sig=sig) + m = re.search(r"\.section.+debug", asm, re.I) + got = m is not None + self.assertEqual(expect, got, msg='debug info not found in:\n%s' % asm) + + def test_no_debuginfo_in_asm(self): + @jit(nopython=True, debug=False) + def foo(x): + return x + + self._check(foo, sig=(types.int32,), expect=False) + + def test_debuginfo_in_asm(self): + @jit(nopython=True, debug=True) + def foo(x): + return x + + self._check(foo, sig=(types.int32,), expect=True) + + def test_environment_override(self): + with override_config('DEBUGINFO_DEFAULT', 1): + # Using default value + @jit(nopython=True) + def foo(x): + return x + self._check(foo, sig=(types.int32,), expect=True) + + # User override default + @jit(nopython=True, debug=False) + def bar(x): + return x + self._check(bar, sig=(types.int32,), expect=False) + + def test_llvm_inliner_flag_conflict(self): + # bar will be marked as 'alwaysinline', but when DEBUGINFO_DEFAULT is + # set functions are marked as 'noinline' this results in a conflict. + # baz will be marked as 'noinline' as a result of DEBUGINFO_DEFAULT + + @njit(forceinline=True) + def bar(x): + return math.sin(x) + + @njit(forceinline=False) + def baz(x): + return math.cos(x) + + @njit + def foo(x): + a = bar(x) + b = baz(x) + return a, b + + # check it compiles + with override_config('DEBUGINFO_DEFAULT', 1): + result = foo(np.pi) + + self.assertPreciseEqual(result, foo.py_func(np.pi)) + + # check the LLVM IR has bar marked as 'alwaysinline' and baz as noinline + full_ir = foo.inspect_llvm(foo.signatures[0]) + module = llvm.parse_assembly(full_ir) + name = foo.overloads[foo.signatures[0]].fndesc.mangled_name + funcs = [x for x in module.functions if x.name == name] + self.assertEqual(len(funcs), 1) + func = funcs[0] + + # find the function calls and save the associated statements + f_names = [] + for blk in func.blocks: + for stmt in blk.instructions: + if stmt.opcode == 'call': + # stmt.function.name This is the function being called + f_names.append(str(stmt).strip()) + + # Need to check there's two specific things in the calls in the IR + # 1. a call to the llvm.sin.f64 intrinsic, this is from the inlined bar + # 2. a call to the baz function, this is from the noinline baz + found_sin = False + found_baz = False + baz_name = baz.overloads[baz.signatures[0]].fndesc.mangled_name + for x in f_names: + if not found_sin and re.match('.*llvm.sin.f64.*', x): + found_sin = True + if not found_baz and re.match(f'.*{baz_name}.*', x): + found_baz = True + + self.assertTrue(found_sin) + self.assertTrue(found_baz) + + +class TestDebugInfoEmission(TestCase): + """ Tests that debug info is emitted correctly. + """ + + _NUMBA_OPT_0_ENV = {'NUMBA_OPT': '0'} + _NUMBA_NRT_STACK_TRACE = {'NUMBA_DEBUG_NRT': '1', + 'NUMBA_DEBUG_NRT_STACK_LIMIT': '3'} + + def _get_llvmir(self, fn, sig): + with override_config('OPT', 0): + fn.compile(sig) + return fn.inspect_llvm(sig) + + def _get_metadata(self, fn, sig): + ll = self._get_llvmir(fn, sig).splitlines() + meta_re = re.compile(r'![0-9]+ =.*') + metadata = [] + for line in ll: + if meta_re.match(line): + metadata.append(line) + return metadata + + def _get_metadata_map(self, metadata): + """Gets the map of DI label to md, e.g. + '!33' -> '!{!"branch_weights", i32 1, i32 99}' + """ + metadata_definition_map = dict() + meta_definition_split = re.compile(r'(![0-9]+) = (.*)') + for line in metadata: + matched = meta_definition_split.match(line) + if matched: + dbg_val, info = matched.groups() + metadata_definition_map[dbg_val] = info + return metadata_definition_map + + def _get_lines_from_debuginfo(self, metadata): + # Get the lines contained in the debug info + md_def_map = self._get_metadata_map(metadata) + + lines = set() + for md in md_def_map.values(): + m = re.match(r"!DILocation\(line: (\d+),", md) + if m: + ln = int(m.group(1)) + lines.add(ln) + return lines + + def test_DW_LANG(self): + + @njit(debug=True) + def foo(): + pass + + metadata = self._get_metadata(foo, sig=()) + DICompileUnit = metadata[0] + self.assertEqual('!0', DICompileUnit[:2]) + self.assertIn('!DICompileUnit(language: DW_LANG_C_plus_plus', + DICompileUnit) + self.assertIn('producer: "clang (Numba)"', DICompileUnit) + + def test_DILocation(self): + """ Tests that DILocation information is reasonable. + """ + @njit(debug=True, error_model='numpy') + def foo(a): + b = a + 1.23 + c = b * 2.34 + d = b / c + print(d) + return d + + # the above produces LLVM like: + # define function() { + # entry: + # alloca + # store 0 to alloca + # + # setup for print + # branch + # other_labels: + # ... + # } + # + # The following checks that: + # * the alloca and store have no !dbg + # * the arithmetic occurs in the order defined and with !dbg + # * that the !dbg entries are monotonically increasing in value with + # source line number + + sig = (types.float64,) + metadata = self._get_metadata(foo, sig=sig) + full_ir = self._get_llvmir(foo, sig=sig) + + module = llvm.parse_assembly(full_ir) + + name = foo.overloads[foo.signatures[0]].fndesc.mangled_name + funcs = [x for x in module.functions if x.name == name] + self.assertEqual(len(funcs), 1) + func = funcs[0] + blocks = [x for x in func.blocks] + self.assertGreater(len(blocks), 1) + block = blocks[0] + + # Find non-call/non-memory instr and check the sequence is as expected + instrs = [x for x in block.instructions if x.opcode not in + ['call', 'load', 'store']] + op_expect = {'fadd', 'fmul', 'fdiv'} + started = False + for x in instrs: + if x.opcode in op_expect: + op_expect.remove(x.opcode) + if not started: + started = True + elif op_expect and started: + self.fail("Math opcodes are not contiguous") + self.assertFalse(op_expect, "Math opcodes were not found") + + # Parse out metadata from end of each line, check it monotonically + # ascends with LLVM source line. Also store all the dbg references, + # these will be checked later. + line2dbg = set() + re_dbg_ref = re.compile(r'.*!dbg (![0-9]+).*$') + found = -1 + for instr in instrs: + inst_as_str = str(instr) + matched = re_dbg_ref.match(inst_as_str) + if not matched: + # if there's no match, ensure it is one of alloca or store, + # it's important that the zero init/alloca instructions have + # no dbg data + accepted = ('alloca ', 'store ') + self.assertTrue(any([x in inst_as_str for x in accepted])) + continue + groups = matched.groups() + self.assertEqual(len(groups), 1) + dbg_val = groups[0] + int_dbg_val = int(dbg_val[1:]) + if found >= 0: + self.assertTrue(int_dbg_val >= found) + found = int_dbg_val + # some lines will alias dbg info, this is fine, it's only used to + # make sure that the line numbers are correct WRT python + line2dbg.add(dbg_val) + + pysrc, pysrc_line_start = inspect.getsourcelines(foo) + + # build a map of dbg reference to DI* information + metadata_definition_map = self._get_metadata_map(metadata) + + # Pull out metadata entries referred to by the llvm line end !dbg + # check they match the python source, the +2 is for the @njit decorator + # and the function definition line. + offsets = [0, # b = a + 1 + 1, # a * 2.34 + 2, # d = b / c + 3, # print(d) + ] + pyln_range = [pysrc_line_start + 2 + x for x in offsets] + + # do the check + for (k, line_no) in zip(sorted(line2dbg, key=lambda x: int(x[1:])), + pyln_range): + dilocation_info = metadata_definition_map[k] + self.assertIn(f'line: {line_no}', dilocation_info) + + # Check that variable "a" is declared as on the same line as function + # definition. + expr = r'.*!DILocalVariable\(name: "a",.*line: ([0-9]+),.*' + match_local_var_a = re.compile(expr) + for entry in metadata_definition_map.values(): + matched = match_local_var_a.match(entry) + if matched: + groups = matched.groups() + self.assertEqual(len(groups), 1) + dbg_line = int(groups[0]) + # +1 for the decorator. + # Recall that Numba's DWARF refers to the "def" line, but + # `inspect` uses the decorator as the first line. + defline = pysrc_line_start + 1 + self.assertEqual(dbg_line, defline) + break + else: + self.fail('Assertion on DILocalVariable not made') + + @TestCase.run_test_in_subprocess(envvars=_NUMBA_OPT_0_ENV) + def test_DILocation_entry_blk(self): + # Needs a subprocess as jitting literally anything at any point in the + # lifetime of the process ends up with a codegen at opt 3. This is not + # amenable to this test! + # This test relies on the CFG not being simplified as it checks the jump + # from the entry block to the first basic block. Force OPT as 0, if set + # via the env var the targetmachine and various pass managers all end up + # at OPT 0 and the IR is minimally transformed prior to lowering to ELF. + # + # This tests that the unconditional jump emitted at the tail of + # the entry block has no debug metadata associated with it. In practice, + # if debug metadata is associated with it, it manifests as the + # prologue_end being associated with the end_sequence or similar (due to + # the way code gen works for the entry block). + + @njit(debug=True) + def foo(a): + return a + 1 + foo(123) + + full_ir = foo.inspect_llvm(foo.signatures[0]) + # The above produces LLVM like: + # + # define function() { + # entry: + # alloca + # store 0 to alloca + # unconditional jump to body: + # + # body: + # ... + # } + + module = llvm.parse_assembly(full_ir) + name = foo.overloads[foo.signatures[0]].fndesc.mangled_name + funcs = [x for x in module.functions if x.name == name] + self.assertEqual(len(funcs), 1) + func = funcs[0] + blocks = [x for x in func.blocks] + self.assertEqual(len(blocks), 2) + entry_block, body_block = blocks + + # Assert that the tail of the entry block is an unconditional jump to + # the body block and that the jump has no associated debug info. + entry_instr = [x for x in entry_block.instructions] + ujmp = entry_instr[-1] + self.assertEqual(ujmp.opcode, 'br') + ujmp_operands = [x for x in ujmp.operands] + self.assertEqual(len(ujmp_operands), 1) + target_data = ujmp_operands[0] + target = str(target_data).split(':')[0].strip() + # check the unconditional jump target is to the body block + self.assertEqual(target, body_block.name) + # check the uncondition jump instr itself has no metadata + self.assertTrue(str(ujmp).endswith(target)) + + @TestCase.run_test_in_subprocess(envvars=_NUMBA_OPT_0_ENV) + def test_DILocation_decref(self): + """ This tests that decref's generated from `ir.Del`s as variables go + out of scope do not have debuginfo associated with them (the location of + `ir.Del` is an implementation detail). + """ + + @njit(debug=True) + def sink(*x): + pass + + # This function has many decrefs! + @njit(debug=True) + def foo(a): + x = (a, a) + if a[0] == 0: + sink(x) + return 12 + z = x[0][0] + return z + + sig = (types.float64[::1],) + full_ir = self._get_llvmir(foo, sig=sig) + + # make sure decref lines end with `meminfo.)` without !dbg info. + count = 0 + for line in full_ir.splitlines(): + line_stripped = line.strip() + if line_stripped.startswith('call void @NRT_decref'): + self.assertRegex(line, r'.*meminfo\.[0-9]+\)$') + count += 1 + self.assertGreater(count, 0) # make sure there were some decrefs! + + def test_DILocation_undefined(self): + """ Tests that DILocation information for undefined vars is associated + with the line of the function definition (so it ends up in the prologue) + """ + @njit(debug=True) + def foo(n): + if n: + if n > 0: + c = 0 + return c + else: + # variable c is not defined in this branch + c += 1 + return c + + sig = (types.intp,) + metadata = self._get_metadata(foo, sig=sig) + pysrc, pysrc_line_start = inspect.getsourcelines(foo) + # Looks for versions of variable "c" and captures the line number + expr = r'.*!DILocalVariable\(name: "c\$?[0-9]?",.*line: ([0-9]+),.*' + matcher = re.compile(expr) + associated_lines = set() + for md in metadata: + match = matcher.match(md) + if match: + groups = match.groups() + self.assertEqual(len(groups), 1) + associated_lines.add(int(groups[0])) + # 3 versions of 'c': `c = 0`, `return c`, `c+=1` + self.assertEqual(len(associated_lines), 3) + self.assertIn(pysrc_line_start, associated_lines) + + def test_DILocation_versioned_variables(self): + """ Tests that DILocation information for versions of variables matches + up to their definition site.""" + # Note: there's still something wrong in the DI/SSA naming, the ret c is + # associated with the logically first definition. + + @njit(debug=True) + def foo(n): + if n: + c = 5 + else: + c = 1 + # prevents inline of return on py310 + py310_defeat1 = 1 # noqa + py310_defeat2 = 2 # noqa + py310_defeat3 = 3 # noqa + py310_defeat4 = 4 # noqa + return c + + sig = (types.intp,) + metadata = self._get_metadata(foo, sig=sig) + pysrc, pysrc_line_start = inspect.getsourcelines(foo) + + # Looks for SSA versioned names i.e. $ of the + # variable 'c' and captures the line + expr = r'.*!DILocalVariable\(name: "c\$[0-9]?",.*line: ([0-9]+),.*' + matcher = re.compile(expr) + associated_lines = set() + for md in metadata: + match = matcher.match(md) + if match: + groups = match.groups() + self.assertEqual(len(groups), 1) + associated_lines.add(int(groups[0])) + self.assertEqual(len(associated_lines), 2) # 2 SSA versioned names 'c' + + # Now find the `c = ` lines in the python source + py_lines = set() + for ix, pyln in enumerate(pysrc): + if 'c = ' in pyln: + py_lines.add(ix + pysrc_line_start) + self.assertEqual(len(py_lines), 2) # 2 assignments to c + + # check that the DILocation from the DI for `c` matches the python src + self.assertEqual(associated_lines, py_lines) + + def test_numeric_scalars(self): + """ Tests that dwarf info is correctly emitted for numeric scalars.""" + + DI = namedtuple('DI', 'name bits encoding') + + type_infos = {np.float32: DI("float32", 32, "DW_ATE_float"), + np.float64: DI("float64", 64, "DW_ATE_float"), + np.int8: DI("int8", 8, "DW_ATE_signed"), + np.int16: DI("int16", 16, "DW_ATE_signed"), + np.int32: DI("int32", 32, "DW_ATE_signed"), + np.int64: DI("int64", 64, "DW_ATE_signed"), + np.uint8: DI("uint8", 8, "DW_ATE_unsigned"), + np.uint16: DI("uint16", 16, "DW_ATE_unsigned"), + np.uint32: DI("uint32", 32, "DW_ATE_unsigned"), + np.uint64: DI("uint64", 64, "DW_ATE_unsigned"), + np.complex64: DI("complex64", 64, + "DW_TAG_structure_type"), + np.complex128: DI("complex128", 128, + "DW_TAG_structure_type"),} + + for ty, dwarf_info in type_infos.items(): + + @njit(debug=True) + def foo(): + a = ty(10) + return a + + metadata = self._get_metadata(foo, sig=()) + metadata_definition_map = self._get_metadata_map(metadata) + + for k, v in metadata_definition_map.items(): + if 'DILocalVariable(name: "a"' in v: + lvar = metadata_definition_map[k] + break + else: + assert 0, "missing DILocalVariable 'a'" + + type_marker = re.match('.*type: (![0-9]+).*', lvar).groups()[0] + type_decl = metadata_definition_map[type_marker] + + if 'DW_ATE' in dwarf_info.encoding: + expected = (f'!DIBasicType(name: "{dwarf_info.name}", ' + f'size: {dwarf_info.bits}, ' + f'encoding: {dwarf_info.encoding})') + self.assertEqual(type_decl, expected) + else: # numerical complex type + # Don't match the whole string, just the known parts + raw_flt = 'float' if dwarf_info.bits == 64 else 'double' + expected = (f'distinct !DICompositeType(' + f'tag: {dwarf_info.encoding}, ' + f'name: "{dwarf_info.name} ' + f'({{{raw_flt}, {raw_flt}}})", ' + f'size: {dwarf_info.bits}') + self.assertIn(expected, type_decl) + + def test_arrays(self): + + @njit(debug=True) + def foo(): + a = np.ones((2, 3), dtype=np.float64) + return a + + metadata = self._get_metadata(foo, sig=()) + metadata_definition_map = self._get_metadata_map(metadata) + + for k, v in metadata_definition_map.items(): + if 'DILocalVariable(name: "a"' in v: + lvar = metadata_definition_map[k] + break + else: + assert 0, "missing DILocalVariable 'a'" + + type_marker = re.match('.*type: (![0-9]+).*', lvar).groups()[0] + type_decl = metadata_definition_map[type_marker] + + # check type + self.assertIn("!DICompositeType(tag: DW_TAG_structure_type", type_decl) + # check name encoding + self.assertIn(f'name: "{str(types.float64[:, ::1])}', type_decl) + + # pop out the "elements" of the composite type + match_elements = re.compile(r'.*elements: (![0-9]+),.*') + elem_matches = match_elements.match(type_decl).groups() + self.assertEqual(len(elem_matches), 1) + elem_match = elem_matches[0] + # The match should be something like, it's the elements from an array + # data model. + # !{!35, !36, !37, !39, !40, !43, !45}' + struct_markers = metadata_definition_map[elem_match] + struct_pattern = '!{' + '(![0-9]+), ' * 6 + '(![0-9]+)}' + match_struct = re.compile(struct_pattern) + struct_member_matches = match_struct.match(struct_markers).groups() + self.assertIsNotNone(struct_member_matches is not None) + data_model = default_manager.lookup(types.float64[:, ::1]) + self.assertEqual(len(struct_member_matches), len(data_model._fields)) + + ptr_size = types.intp.bitwidth + ptr_re = (r'!DIDerivedType\(tag: DW_TAG_pointer_type, ' + rf'baseType: ![0-9]+, size: {ptr_size}\)') + int_re = (rf'!DIBasicType\(name: "int{ptr_size}", size: {ptr_size}, ' + r'encoding: DW_ATE_signed\)') + utuple_re = (r'!DICompositeType\(tag: DW_TAG_array_type, ' + rf'name: "UniTuple\(int{ptr_size} x 2\) ' + rf'\(\[2 x i{ptr_size}\]\)", baseType: ![0-9]+, ' + rf'size: {2 * ptr_size}, elements: ![0-9]+, ' + rf'identifier: "\[2 x i{ptr_size}\]"\)') + expected = {'meminfo': ptr_re, + 'parent': ptr_re, + 'nitems': int_re, + 'itemsize': int_re, + 'data': ptr_re, + 'shape': utuple_re, + 'strides': utuple_re} + + # look for `baseType: <>` for the type + base_type_pattern = r'!DIDerivedType\(.*, baseType: (![0-9]+),.*' + base_type_matcher = re.compile(base_type_pattern) + + for ix, field in enumerate(data_model._fields): + derived_type = metadata_definition_map[struct_member_matches[ix]] + self.assertIn("DIDerivedType", derived_type) + self.assertIn(f'name: "{field}"', derived_type) + base_type_match = base_type_matcher.match(derived_type) + base_type_matches = base_type_match.groups() + self.assertEqual(len(base_type_matches), 1) + base_type_marker = base_type_matches[0] + data_type = metadata_definition_map[base_type_marker] + self.assertRegex(data_type, expected[field]) + + def test_debug_optnone(self): + def get_debug_lines(fn): + metadata = self._get_metadata(fn, fn.signatures[0]) + lines = self._get_lines_from_debuginfo(metadata) + return lines + + def get_func_attrs(fn): + cres = fn.overloads[fn.signatures[0]] + lib = cres.library + fn = lib._final_module.get_function(cres.fndesc.mangled_name) + attrs = set(b' '.join(fn.attributes).split()) + return attrs + + def foo(): + n = 10 + c = 0 + for i in range(n): + c += i + return c + + foo_debug = njit(debug=True)(foo) + foo_debug_optnone = njit(debug=True, _dbg_optnone=True)(foo) + foo_debug_optnone_inline = njit(debug=True, _dbg_optnone=True, + forceinline=True)(foo) + + firstline = foo.__code__.co_firstlineno + + expected_info = {} + expected_info[foo_debug] = dict( + # just the dummy line-0 and the line of the return statement + lines={0, firstline + 5}, + must_have_attrs=set(), + must_not_have_attrs=set([b"optnone"]), + ) + expected_info[foo_debug_optnone] = dict( + # all the lines should be included + lines=set(range(firstline + 1, firstline + 6)), + must_have_attrs=set([b"optnone"]), + must_not_have_attrs=set(), + ) + expected_info[foo_debug_optnone_inline] = dict( + # optnone=True is overridden by forceinline, so this looks like the + # foo_debug version + lines={0, firstline + 5}, + must_have_attrs=set([b"alwaysinline"]), + must_not_have_attrs=set([b"optnone"]), + ) + + expected_ret = foo() + + for udt, expected in expected_info.items(): + with self.subTest(udt.targetoptions): + got = udt() + self.assertEqual(got, expected_ret) + + # Compare the line locations in the debug info. + self.assertEqual(get_debug_lines(udt), expected["lines"]) + + # Check for attributes on the LLVM function + attrs = get_func_attrs(udt) + must_have = expected["must_have_attrs"] + self.assertEqual(attrs & must_have, must_have) + must_not_have = expected["must_not_have_attrs"] + self.assertFalse(attrs & must_not_have) + + def test_omitted_arg(self): + # See issue 7726 + @njit(debug=True) + def foo(missing=None): + pass + + # check that it will actually compile (verifies DI emission is ok) + with override_config('DEBUGINFO_DEFAULT', 1): + foo() + + metadata = self._get_metadata(foo, sig=(types.Omitted(None),)) + metadata_definition_map = self._get_metadata_map(metadata) + + # Find DISubroutineType + tmp_disubr = [] + for md in metadata: + if "DISubroutineType" in md: + tmp_disubr.append(md) + self.assertEqual(len(tmp_disubr), 1) + disubr = tmp_disubr.pop() + + disubr_matched = re.match(r'.*!DISubroutineType\(types: ([!0-9]+)\)$', + disubr) + self.assertIsNotNone(disubr_matched) + disubr_groups = disubr_matched.groups() + self.assertEqual(len(disubr_groups), 1) + disubr_meta = disubr_groups[0] + + # Find the types in the DISubroutineType arg list + disubr_types = metadata_definition_map[disubr_meta] + disubr_types_matched = re.match(r'!{(.*)}', disubr_types) + self.assertIsNotNone(disubr_matched) + disubr_types_groups = disubr_types_matched.groups() + self.assertEqual(len(disubr_types_groups), 1) + + # fetch out and assert the last argument type, should be void * + md_fn_arg = [x.strip() for x in disubr_types_groups[0].split(',')][-1] + arg_ty = metadata_definition_map[md_fn_arg] + expected_arg_ty = (r'^.*!DICompositeType\(tag: DW_TAG_structure_type, ' + r'name: "Anonymous struct \({}\)", elements: ' + r'(![0-9]+), identifier: "{}"\)') + self.assertRegex(arg_ty, expected_arg_ty) + md_base_ty = re.match(expected_arg_ty, arg_ty).groups()[0] + base_ty = metadata_definition_map[md_base_ty] + # expect ir.LiteralStructType([]) + self.assertEqual(base_ty, ('!{}')) + + def test_missing_source(self): + strsrc = """ + def foo(): + return 1 + """ + l = dict() + exec(dedent(strsrc), {}, l) + foo = njit(debug=True)(l['foo']) + + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter('always', NumbaDebugInfoWarning) + ignore_internal_warnings() + foo() + + self.assertEqual(len(w), 1) + found = w[0] + self.assertEqual(found.category, NumbaDebugInfoWarning) + msg = str(found.message) + # make sure the warning contains the right message + self.assertIn('Could not find source for function', msg) + # and refers to the offending function + self.assertIn(str(foo.py_func), msg) + + def test_irregularly_indented_source(self): + + @njit(debug=True) + def foo(): +# NOTE: THIS COMMENT MUST START AT COLUMN 0 FOR THIS SAMPLE CODE TO BE VALID # noqa: E115, E501 + return 1 + + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter('always', NumbaDebugInfoWarning) + ignore_internal_warnings() + foo() + + # No warnings + self.assertEqual(len(w), 0) + + metadata = self._get_metadata(foo, foo.signatures[0]) + lines = self._get_lines_from_debuginfo(metadata) + # Only one line + self.assertEqual(len(lines), 1) + + def test_no_if_op_bools_declared(self): + @njit("int64(boolean, boolean)", debug=True, _dbg_optnone=True) + def choice(cond1, cond2): + if cond1 and cond2: + return 1 + else: + return 2 + + # We should not declare variables used as the condition in if ops. + # See Numba PR #9888: https://github.com/numba/numba/pull/9888 + llvm_ir = next(iter(choice.inspect_llvm().items()))[1] + + for line in llvm_ir.splitlines(): + if 'llvm.dbg.declare' in line: + self.assertNotIn("bool", line) + + @TestCase.run_test_in_subprocess(envvars=_NUMBA_NRT_STACK_TRACE) + def test_nrt_stack_trace(self): + @njit + def foo(x): + return x + 5 + + sig = (types.float64[::1],) + full_ir = self._get_llvmir(foo, sig=sig) + + for line in full_ir.splitlines(): + line_stripped = line.strip() + if line_stripped.startswith('call void @NRT_decref'): + # Function has two arguments instead of one + self.assertRegex(line, r'@NRT_decref\(.*, .*\)$') + # This should be present as a constant within the IR + self.assertIn('Traceback:', full_ir) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/eb/eb5f7778788979204483375c352b5dcd1af3d15a0c1477a14b98cf81a0fd709b/blob b/shared/package-files/eb/eb5f7778788979204483375c352b5dcd1af3d15a0c1477a14b98cf81a0fd709b/blob new file mode 100644 index 0000000000000000000000000000000000000000..8c4e7cb3c223d2ebe6e5f912fd1aa35402308ae2 --- /dev/null +++ b/shared/package-files/eb/eb5f7778788979204483375c352b5dcd1af3d15a0c1477a14b98cf81a0fd709b/blob @@ -0,0 +1,75 @@ +import io +import os +import tarfile +import zipfile + +from .distribution import Distribution + +class SDist(Distribution): + + def __init__(self, filename, metadata_version=None): + self.filename = filename + self.metadata_version = metadata_version + self.extractMetadata() + + @classmethod + def _get_archive(cls, fqn): + if not os.path.exists(fqn): + raise ValueError('No such file: %s' % fqn) + + if zipfile.is_zipfile(fqn): + archive = zipfile.ZipFile(fqn) + names = archive.namelist() + def read_file(name): + return archive.read(name) + elif tarfile.is_tarfile(fqn): + archive = tarfile.TarFile.open(fqn) + names = archive.getnames() + def read_file(name): + return archive.extractfile(name).read() + else: + raise ValueError('Not a known archive format: %s' % fqn) + + return archive, names, read_file + + + def read(self): + fqn = os.path.abspath( + os.path.normpath(self.filename)) + + archive, names, read_file = self._get_archive(fqn) + + try: + tuples = [x.split('/') for x in names if 'PKG-INFO' in x] + schwarz = sorted([(len(x), x) for x in tuples]) + for path in [x[1] for x in schwarz]: + candidate = '/'.join(path) + data = read_file(candidate) + if b'Metadata-Version' in data: + return data + finally: + archive.close() + + raise ValueError('No PKG-INFO in archive: %s' % fqn) + + +class UnpackedSDist(SDist): + def __init__(self, filename, metadata_version=None): + if os.path.isdir(filename): + pass + elif os.path.isfile(filename): + filename = os.path.dirname(filename) + else: + raise ValueError('No such file: %s' % filename) + + super(UnpackedSDist, self).__init__( + filename, metadata_version=metadata_version) + + def read(self): + try: + pkg_info = os.path.join(self.filename, 'PKG-INFO') + with io.open(pkg_info, errors='ignore') as f: + return f.read() + except Exception as e: + raise ValueError('Could not load %s as an unpacked sdist: %s' + % (self.filename, e)) diff --git a/shared/package-files/eb/eb600b50996af9dd5548a4414f01d8febab9503866ab7f2cb40b6481275d5c35/blob b/shared/package-files/eb/eb600b50996af9dd5548a4414f01d8febab9503866ab7f2cb40b6481275d5c35/blob new file mode 100644 index 0000000000000000000000000000000000000000..afe96eeba989ce8642609c38e61f7759141c4606 --- /dev/null +++ b/shared/package-files/eb/eb600b50996af9dd5548a4414f01d8febab9503866ab7f2cb40b6481275d5c35/blob @@ -0,0 +1,21 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::tuple _lstm_mps_out(const at::Tensor & input, at::TensorList hx, at::TensorList params, bool has_biases, int64_t num_layers, double dropout, bool train, bool bidirectional, bool batch_first, at::Tensor & out0, at::Tensor & out1, at::Tensor & out2, at::Tensor & out3, at::Tensor & out4, at::Tensor & out5); +} // namespace native +} // namespace at diff --git a/shared/package-files/eb/eb60561efbc780f57fa67a16f9204f86e50a65d22eb9b8a33854ac2fd0bf40bc/blob b/shared/package-files/eb/eb60561efbc780f57fa67a16f9204f86e50a65d22eb9b8a33854ac2fd0bf40bc/blob new file mode 100644 index 0000000000000000000000000000000000000000..128b193b63aa53d70272754c81226929871f1006 --- /dev/null +++ b/shared/package-files/eb/eb60561efbc780f57fa67a16f9204f86e50a65d22eb9b8a33854ac2fd0bf40bc/blob @@ -0,0 +1,39 @@ +#pragma once + +#include + +#include +#include +#include + +namespace torch { +namespace jit { +namespace mobile { + +using Stack = std::vector; +using DebugHandle = int64_t; + +class Function; + +// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init) +struct Code { + std::vector instructions_; + std::vector debug_handles_; + std::vector op_names_; + std::vector operator_input_sizes_; + std::vector> operators_; + std::vector constants_; + std::vector types_; + // TODO After we actually export CALL instructions we can remove this. + // We may need a two-stage importing scheme, where we firstly construct all + // function objects, and then append referenced function pointers. This could + // be done in parseMethods(). + std::vector functions_; + size_t register_size_ = 0; // Aggregated output size. + // initialized means operators_ array is filled with operators + bool initialized = false; +}; + +} // namespace mobile +} // namespace jit +} // namespace torch diff --git a/shared/package-files/eb/eb6980c53ec03c509aa3281f96713374ea5ef9fb96d7239b23a9ba11451c4bb0/blob b/shared/package-files/eb/eb6980c53ec03c509aa3281f96713374ea5ef9fb96d7239b23a9ba11451c4bb0/blob new file mode 100644 index 0000000000000000000000000000000000000000..35a24133446b9ee1e8f8a7931519d93517130315 Binary files /dev/null and b/shared/package-files/eb/eb6980c53ec03c509aa3281f96713374ea5ef9fb96d7239b23a9ba11451c4bb0/blob differ diff --git a/shared/package-files/eb/eb6a7a2d15ba3db33e635e9a51e19585c95356a4b92313d4b6ca217bb323ad8a/blob b/shared/package-files/eb/eb6a7a2d15ba3db33e635e9a51e19585c95356a4b92313d4b6ca217bb323ad8a/blob new file mode 100644 index 0000000000000000000000000000000000000000..2ac1da15873c5edac27758b6f91563d2b8aaace0 Binary files /dev/null and b/shared/package-files/eb/eb6a7a2d15ba3db33e635e9a51e19585c95356a4b92313d4b6ca217bb323ad8a/blob differ diff --git a/shared/package-files/eb/eb6a8835929fbe138981465ffe246d8a07b2602bc7a436a6873df894fdab067f/blob b/shared/package-files/eb/eb6a8835929fbe138981465ffe246d8a07b2602bc7a436a6873df894fdab067f/blob new file mode 100644 index 0000000000000000000000000000000000000000..269dfd8af76052f20852a2492adbc7adaf83c040 --- /dev/null +++ b/shared/package-files/eb/eb6a8835929fbe138981465ffe246d8a07b2602bc7a436a6873df894fdab067f/blob @@ -0,0 +1,4 @@ +from .api import ( + ShardingPlan, + ShardingPlanner +) diff --git a/shared/package-files/eb/eb6ef3b49b3dcce2fedfc1c9ee45c17ab47e813f0a05f602f14cc4c0c243618a/blob b/shared/package-files/eb/eb6ef3b49b3dcce2fedfc1c9ee45c17ab47e813f0a05f602f14cc4c0c243618a/blob new file mode 100644 index 0000000000000000000000000000000000000000..9354f9e3140999702ec8c140636c511d71c340b2 --- /dev/null +++ b/shared/package-files/eb/eb6ef3b49b3dcce2fedfc1c9ee45c17ab47e813f0a05f602f14cc4c0c243618a/blob @@ -0,0 +1,154 @@ +import re +from functools import lru_cache +from typing import Callable, List + +from ._cell_widths import CELL_WIDTHS + +# Regex to match sequence of the most common character ranges +_is_single_cell_widths = re.compile("^[\u0020-\u006f\u00a0\u02ff\u0370-\u0482]*$").match + + +@lru_cache(4096) +def cached_cell_len(text: str) -> int: + """Get the number of cells required to display text. + + This method always caches, which may use up a lot of memory. It is recommended to use + `cell_len` over this method. + + Args: + text (str): Text to display. + + Returns: + int: Get the number of cells required to display text. + """ + _get_size = get_character_cell_size + total_size = sum(_get_size(character) for character in text) + return total_size + + +def cell_len(text: str, _cell_len: Callable[[str], int] = cached_cell_len) -> int: + """Get the number of cells required to display text. + + Args: + text (str): Text to display. + + Returns: + int: Get the number of cells required to display text. + """ + if len(text) < 512: + return _cell_len(text) + _get_size = get_character_cell_size + total_size = sum(_get_size(character) for character in text) + return total_size + + +@lru_cache(maxsize=4096) +def get_character_cell_size(character: str) -> int: + """Get the cell size of a character. + + Args: + character (str): A single character. + + Returns: + int: Number of cells (0, 1 or 2) occupied by that character. + """ + return _get_codepoint_cell_size(ord(character)) + + +@lru_cache(maxsize=4096) +def _get_codepoint_cell_size(codepoint: int) -> int: + """Get the cell size of a character. + + Args: + codepoint (int): Codepoint of a character. + + Returns: + int: Number of cells (0, 1 or 2) occupied by that character. + """ + + _table = CELL_WIDTHS + lower_bound = 0 + upper_bound = len(_table) - 1 + index = (lower_bound + upper_bound) // 2 + while True: + start, end, width = _table[index] + if codepoint < start: + upper_bound = index - 1 + elif codepoint > end: + lower_bound = index + 1 + else: + return 0 if width == -1 else width + if upper_bound < lower_bound: + break + index = (lower_bound + upper_bound) // 2 + return 1 + + +def set_cell_size(text: str, total: int) -> str: + """Set the length of a string to fit within given number of cells.""" + + if _is_single_cell_widths(text): + size = len(text) + if size < total: + return text + " " * (total - size) + return text[:total] + + if total <= 0: + return "" + cell_size = cell_len(text) + if cell_size == total: + return text + if cell_size < total: + return text + " " * (total - cell_size) + + start = 0 + end = len(text) + + # Binary search until we find the right size + while True: + pos = (start + end) // 2 + before = text[: pos + 1] + before_len = cell_len(before) + if before_len == total + 1 and cell_len(before[-1]) == 2: + return before[:-1] + " " + if before_len == total: + return before + if before_len > total: + end = pos + else: + start = pos + + +# TODO: This is inefficient +# TODO: This might not work with CWJ type characters +def chop_cells(text: str, max_size: int, position: int = 0) -> List[str]: + """Break text in to equal (cell) length strings, returning the characters in reverse + order""" + _get_character_cell_size = get_character_cell_size + characters = [ + (character, _get_character_cell_size(character)) for character in text + ] + total_size = position + lines: List[List[str]] = [[]] + append = lines[-1].append + + for character, size in reversed(characters): + if total_size + size > max_size: + lines.append([character]) + append = lines[-1].append + total_size = size + else: + total_size += size + append(character) + + return ["".join(line) for line in lines] + + +if __name__ == "__main__": # pragma: no cover + + print(get_character_cell_size("😽")) + for line in chop_cells("""这是对亚洲语言支持的测试。面对模棱两可的想法,拒绝猜测的诱惑。""", 8): + print(line) + for n in range(80, 1, -1): + print(set_cell_size("""这是对亚洲语言支持的测试。面对模棱两可的想法,拒绝猜测的诱惑。""", n) + "|") + print("x" * n) diff --git a/shared/package-files/eb/eb6f4ee2e3d377b43318dca01e59ffc82857455431448d53dbe129f7432713e9/blob b/shared/package-files/eb/eb6f4ee2e3d377b43318dca01e59ffc82857455431448d53dbe129f7432713e9/blob new file mode 100644 index 0000000000000000000000000000000000000000..9ee8b3f2a22b6ce2e899228440eec5503a4c40f9 --- /dev/null +++ b/shared/package-files/eb/eb6f4ee2e3d377b43318dca01e59ffc82857455431448d53dbe129f7432713e9/blob @@ -0,0 +1,226 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates +# implement matrix related ops for distributed tensor +import itertools +from typing import List, Optional + +import torch +from torch.distributed._tensor.op_schema import ( + OpSchema, + OpStrategy, + OutputSharding, + PlacementStrategy, +) +from torch.distributed._tensor.ops.basic_strategy import gen_einsum_strategies +from torch.distributed._tensor.ops.common_rules import einop_rule +from torch.distributed._tensor.ops.utils import ( + generate_redistribute_costs, + infer_broadcast_dims_map, + is_tensor_shardable, + map_placements_after_broadcast, + register_op_strategy, + register_prop_rule, +) +from torch.distributed._tensor.placement_types import ( + DTensorSpec, + Placement, + Replicate, + Shard, +) + +from torch.distributed.device_mesh import DeviceMesh + +aten = torch.ops.aten + + +@register_prop_rule(aten.t.default) +def transpose_rule(op_schema: OpSchema) -> OutputSharding: + return einop_rule("ij->ji", op_schema, linearity=True) + + +def _mm_like_strategy( + mm_equation: str, mesh: DeviceMesh, op_schema: OpSchema +) -> OpStrategy: + self_strategy, mat2_strategy = op_schema.args_schema + assert isinstance(self_strategy, OpStrategy) + assert isinstance(mat2_strategy, OpStrategy) + # generate all possible strategies for mm + mm_strategy = gen_einsum_strategies(mm_equation, mesh) + # filter out invalid strategies and associate costs + strategies = mm_strategy.strategies + filtered_strategies = [] + for strtg in strategies: + assert strtg.input_specs is not None + self_spec = strtg.input_specs[0] + mat2_spec = strtg.input_specs[1] + if is_tensor_shardable( + self_strategy.output_shape, self_spec + ) and is_tensor_shardable(mat2_strategy.output_shape, mat2_spec): + redistribute_cost = [ + generate_redistribute_costs(self_strategy, self_spec), + generate_redistribute_costs(mat2_strategy, mat2_spec), + ] + strtg.redistribute_cost = redistribute_cost + filtered_strategies.append(strtg) + + mm_strategy.strategies = filtered_strategies + + return mm_strategy + + +def _addmm_like_strategy( + mm_equation: str, mesh: DeviceMesh, op_schema: OpSchema +) -> OpStrategy: + self_strategy, mat1_strategy, mat2_strategy = op_schema.args_schema + assert isinstance(self_strategy, OpStrategy) + assert isinstance(mat1_strategy, OpStrategy) + assert isinstance(mat2_strategy, OpStrategy) + self_shape = self_strategy.output_shape + mm_out_shape = torch.Size( + [ + mat2_strategy.output_shape[-1] + if i == len(mat1_strategy.output_shape) - 1 + else dim_size + for i, dim_size in enumerate(mat1_strategy.output_shape) + ] + ) + # generate all possible strategies for mm + mm_strategy = gen_einsum_strategies(mm_equation, mesh) + # filter out invalid strategies and associate costs + strategies = mm_strategy.strategies + filtered_strategies = [] + for strtg in strategies: + # construct new strategy by consider the self arg + assert strtg.input_specs is not None + mat1_spec = strtg.input_specs[0] + mat2_spec = strtg.input_specs[1] + out_spec = strtg.output_spec + + # self arg's spec should follow the output of mm, but need + # to consider broadcast for the self arg + broadcast_dims_map = infer_broadcast_dims_map(mm_out_shape, self_shape) + self_placements = map_placements_after_broadcast( + out_spec.placements, mm_out_shape, broadcast_dims_map + ) + self_spec = DTensorSpec(mesh=mesh, placements=self_placements) + + if is_tensor_shardable( + mat1_strategy.output_shape, mat1_spec + ) and is_tensor_shardable(mat2_strategy.output_shape, mat2_spec): + # update input specs with new self spec + strtg.input_specs = (self_spec, mat1_spec, mat2_spec) + + # associate costs + redistribute_cost = [ + generate_redistribute_costs(self_strategy, self_spec), + generate_redistribute_costs(mat1_strategy, mat1_spec), + generate_redistribute_costs(mat2_strategy, mat2_spec), + ] + strtg.redistribute_cost = redistribute_cost + filtered_strategies.append(strtg) + + mm_strategy.strategies = filtered_strategies + + return mm_strategy + + +@register_op_strategy(aten.mm.default) +def mm_strategy(mesh: DeviceMesh, op_schema: OpSchema) -> OpStrategy: + return _mm_like_strategy("mk,kn->mn", mesh, op_schema) + + +@register_op_strategy(aten.addmm.default) +def addmm_strategy(mesh: DeviceMesh, op_schema: OpSchema) -> OpStrategy: + return _addmm_like_strategy("mk,kn->mn", mesh, op_schema) + + +@register_op_strategy(aten.bmm.default) +def bmm_strategy(mesh: DeviceMesh, op_schema: OpSchema) -> OpStrategy: + return _mm_like_strategy("bmk,bkn->bmn", mesh, op_schema) + + +@register_op_strategy(aten.baddbmm.default) +def baddmm_strategy(mesh: DeviceMesh, op_schema: OpSchema) -> OpStrategy: + return _addmm_like_strategy("bmk,bkn->bmn", mesh, op_schema) + + +@register_op_strategy(aten._scaled_dot_product_flash_attention.default) +def scaled_dot_product_attention_strategy( + mesh: DeviceMesh, op_schema: OpSchema +) -> OpStrategy: + # NOTE: currently we only support some simple strategies to support tensor parallelism + # TODO: sdpa might be a good candidate for us to explore decomposed sharding propagation + # as it involves: matmul, pointwise, reduction ops together. + return_debug_mask = len(op_schema.args_schema) >= 6 and op_schema.args_schema[5] + q_input_strategy = op_schema.args_schema[0] + assert isinstance(q_input_strategy, OpStrategy) + # q/k/v have the same shape + qkv_shape = q_input_strategy.output_shape + + all_mesh_dim_strategies = [] + + for mesh_dim in range(mesh.ndim): + single_mesh_dim_strategies = [] + + # placement list stores placements of [outputs, inputs] + # in the spda case, we have 3 valid tensor outputs and 3 tensor inputs + # first we can always accept full replication for inputs and output + all_replicate: List[Placement] = [Replicate()] * 6 + single_mesh_dim_strategies.append(all_replicate) + + # second we can accept the sharding pattern of tensor parallelism, which + # shard on the num of head dim + qkv_sharding = Shard(1) # num head dim + output_sharding = Shard(1) # num head dim + logsumexp_sharding = Shard(1) # num head dim + if return_debug_mask: + debug_attn_mask_sharding: Placement = Shard(1) # num head dim + else: + # empty debug mask, replicated + debug_attn_mask_sharding = Replicate() + + num_heads_dim_sharding = [ + output_sharding, + logsumexp_sharding, + debug_attn_mask_sharding, + qkv_sharding, + qkv_sharding, + qkv_sharding, + ] + single_mesh_dim_strategies.append(num_heads_dim_sharding) + + all_mesh_dim_strategies.append(single_mesh_dim_strategies) + + strategy_combs = itertools.product(*all_mesh_dim_strategies) + + all_strategies = [] + for strategy_comb in strategy_combs: + spec_list = [] + for specs in zip(*strategy_comb): + spec_list.append(DTensorSpec(mesh, tuple(specs))) + + assert len(spec_list) == 6 + input_expected_specs = spec_list[3:] + output_specs: List[Optional[DTensorSpec]] = list(spec_list[:3]) + # fix up output_specs and fill in None for the int and empty tensor return values + for i in range(2, 8): + output_specs.insert(i, None) + if all(is_tensor_shardable(qkv_shape, spec) for spec in input_expected_specs): + # only add to the strategy list when all inputs are shardable + redistribute_cost = [] + for input_idx, spec in enumerate(input_expected_specs): + qkv_strategy = op_schema.args_schema[input_idx] + assert isinstance(qkv_strategy, OpStrategy) + qkv_tensor_meta = qkv_strategy.strategies[0].output_spec.tensor_meta + spec.tensor_meta = qkv_tensor_meta + redistribute_cost.append( + generate_redistribute_costs(qkv_strategy, spec) + ) + + strat = PlacementStrategy( + output_specs=tuple(output_specs), + input_specs=tuple(input_expected_specs), + redistribute_cost=redistribute_cost, + ) + all_strategies.append(strat) + + return OpStrategy(all_strategies) diff --git a/shared/package-files/eb/eb70c6efb5c16746fc053297a8d97c922fb8c92c803bbe48a0274520cbedb459/blob b/shared/package-files/eb/eb70c6efb5c16746fc053297a8d97c922fb8c92c803bbe48a0274520cbedb459/blob new file mode 100644 index 0000000000000000000000000000000000000000..ab10bcd948bfcc0cf88307cddb4b52b510c453ca --- /dev/null +++ b/shared/package-files/eb/eb70c6efb5c16746fc053297a8d97c922fb8c92c803bbe48a0274520cbedb459/blob @@ -0,0 +1,90 @@ +""" A universal module with functions / classes without dependencies. """ +import functools +import re +import os + + +_sep = os.path.sep +if os.path.altsep is not None: + _sep += os.path.altsep +_path_re = re.compile(r'(?:\.[^{0}]+|[{0}]__init__\.py)$'.format(re.escape(_sep))) +del _sep + + +def to_list(func): + def wrapper(*args, **kwargs): + return list(func(*args, **kwargs)) + return wrapper + + +def to_tuple(func): + def wrapper(*args, **kwargs): + return tuple(func(*args, **kwargs)) + return wrapper + + +def unite(iterable): + """Turns a two dimensional array into a one dimensional.""" + return set(typ for types in iterable for typ in types) + + +class UncaughtAttributeError(Exception): + """ + Important, because `__getattr__` and `hasattr` catch AttributeErrors + implicitly. This is really evil (mainly because of `__getattr__`). + Therefore this class originally had to be derived from `BaseException` + instead of `Exception`. But because I removed relevant `hasattr` from + the code base, we can now switch back to `Exception`. + + :param base: return values of sys.exc_info(). + """ + + +def safe_property(func): + return property(reraise_uncaught(func)) + + +def reraise_uncaught(func): + """ + Re-throw uncaught `AttributeError`. + + Usage: Put ``@rethrow_uncaught`` in front of the function + which does **not** suppose to raise `AttributeError`. + + AttributeError is easily get caught by `hasattr` and another + ``except AttributeError`` clause. This becomes problem when you use + a lot of "dynamic" attributes (e.g., using ``@property``) because you + can't distinguish if the property does not exist for real or some code + inside of the "dynamic" attribute through that error. In a well + written code, such error should not exist but getting there is very + difficult. This decorator is to help us getting there by changing + `AttributeError` to `UncaughtAttributeError` to avoid unexpected catch. + This helps us noticing bugs earlier and facilitates debugging. + """ + @functools.wraps(func) + def wrapper(*args, **kwds): + try: + return func(*args, **kwds) + except AttributeError as e: + raise UncaughtAttributeError(e) from e + return wrapper + + +class PushBackIterator: + def __init__(self, iterator): + self.pushes = [] + self.iterator = iterator + self.current = None + + def push_back(self, value): + self.pushes.append(value) + + def __iter__(self): + return self + + def __next__(self): + if self.pushes: + self.current = self.pushes.pop() + else: + self.current = next(self.iterator) + return self.current diff --git a/shared/package-files/eb/eb71487f8098fafd9288915ea6337886eb4e8d74885d29328a71b9c604b7ed4f/blob b/shared/package-files/eb/eb71487f8098fafd9288915ea6337886eb4e8d74885d29328a71b9c604b7ed4f/blob new file mode 100644 index 0000000000000000000000000000000000000000..dd6dab038d16d7c13da61aa2629fb61a9199e021 --- /dev/null +++ b/shared/package-files/eb/eb71487f8098fafd9288915ea6337886eb4e8d74885d29328a71b9c604b7ed4f/blob @@ -0,0 +1,24 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor moveaxis(const at::Tensor & self, at::IntArrayRef source, at::IntArrayRef destination); +TORCH_API at::Tensor moveaxis(const at::Tensor & self, int64_t source, int64_t destination); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/eb/eb73b1d857a982c4991b001ac129eb3e5687d671104ccb414e902aaf68e9f57b/blob b/shared/package-files/eb/eb73b1d857a982c4991b001ac129eb3e5687d671104ccb414e902aaf68e9f57b/blob new file mode 100644 index 0000000000000000000000000000000000000000..beb29299fae658dc2026f5228e9e670852c3bd7f --- /dev/null +++ b/shared/package-files/eb/eb73b1d857a982c4991b001ac129eb3e5687d671104ccb414e902aaf68e9f57b/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API at::Tensor polar(const at::Tensor & abs, const at::Tensor & angle); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/shared/package-files/eb/eb74912961f7d0c106992876db3b1d2d0fd1384f8d927b1d98a5cfedd81418f8/blob b/shared/package-files/eb/eb74912961f7d0c106992876db3b1d2d0fd1384f8d927b1d98a5cfedd81418f8/blob new file mode 100644 index 0000000000000000000000000000000000000000..80ee0f6e067f97e1177db1f0663d4cfd8e0d3324 --- /dev/null +++ b/shared/package-files/eb/eb74912961f7d0c106992876db3b1d2d0fd1384f8d927b1d98a5cfedd81418f8/blob @@ -0,0 +1,2059 @@ +from datetime import datetime +import struct + +import numpy as np +import pytest + +from pandas._config import using_string_dtype + +from pandas._libs import ( + algos as libalgos, + hashtable as ht, +) + +from pandas.core.dtypes.common import ( + is_bool_dtype, + is_complex_dtype, + is_float_dtype, + is_integer_dtype, + is_object_dtype, +) +from pandas.core.dtypes.dtypes import CategoricalDtype + +import pandas as pd +from pandas import ( + Categorical, + CategoricalIndex, + DataFrame, + DatetimeIndex, + Index, + IntervalIndex, + MultiIndex, + NaT, + Period, + PeriodIndex, + Series, + Timedelta, + Timestamp, + cut, + date_range, + timedelta_range, + to_datetime, + to_timedelta, +) +import pandas._testing as tm +import pandas.core.algorithms as algos +from pandas.core.arrays import ( + DatetimeArray, + TimedeltaArray, +) +import pandas.core.common as com + + +class TestFactorize: + def test_factorize_complex(self): + # GH#17927 + array = [1, 2, 2 + 1j] + msg = "factorize with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + labels, uniques = algos.factorize(array) + + expected_labels = np.array([0, 1, 2], dtype=np.intp) + tm.assert_numpy_array_equal(labels, expected_labels) + + # Should return a complex dtype in the future + expected_uniques = np.array([(1 + 0j), (2 + 0j), (2 + 1j)], dtype=object) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + @pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False) + @pytest.mark.parametrize("sort", [True, False]) + def test_factorize(self, index_or_series_obj, sort): + obj = index_or_series_obj + result_codes, result_uniques = obj.factorize(sort=sort) + + constructor = Index + if isinstance(obj, MultiIndex): + constructor = MultiIndex.from_tuples + expected_arr = obj.unique() + if expected_arr.dtype == np.float16: + expected_arr = expected_arr.astype(np.float32) + expected_uniques = constructor(expected_arr) + if ( + isinstance(obj, Index) + and expected_uniques.dtype == bool + and obj.dtype == object + ): + expected_uniques = expected_uniques.astype(object) + + if sort: + expected_uniques = expected_uniques.sort_values() + + # construct an integer ndarray so that + # `expected_uniques.take(expected_codes)` is equal to `obj` + expected_uniques_list = list(expected_uniques) + expected_codes = [expected_uniques_list.index(val) for val in obj] + expected_codes = np.asarray(expected_codes, dtype=np.intp) + + tm.assert_numpy_array_equal(result_codes, expected_codes) + tm.assert_index_equal(result_uniques, expected_uniques, exact=True) + + def test_series_factorize_use_na_sentinel_false(self): + # GH#35667 + values = np.array([1, 2, 1, np.nan]) + ser = Series(values) + codes, uniques = ser.factorize(use_na_sentinel=False) + + expected_codes = np.array([0, 1, 0, 2], dtype=np.intp) + expected_uniques = Index([1.0, 2.0, np.nan]) + + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_index_equal(uniques, expected_uniques) + + def test_basic(self): + items = np.array(["a", "b", "b", "a", "a", "c", "c", "c"], dtype=object) + codes, uniques = algos.factorize(items) + tm.assert_numpy_array_equal(uniques, np.array(["a", "b", "c"], dtype=object)) + + codes, uniques = algos.factorize(items, sort=True) + exp = np.array([0, 1, 1, 0, 0, 2, 2, 2], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = np.array(["a", "b", "c"], dtype=object) + tm.assert_numpy_array_equal(uniques, exp) + + arr = np.arange(5, dtype=np.intp)[::-1] + + codes, uniques = algos.factorize(arr) + exp = np.array([0, 1, 2, 3, 4], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = np.array([4, 3, 2, 1, 0], dtype=arr.dtype) + tm.assert_numpy_array_equal(uniques, exp) + + codes, uniques = algos.factorize(arr, sort=True) + exp = np.array([4, 3, 2, 1, 0], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = np.array([0, 1, 2, 3, 4], dtype=arr.dtype) + tm.assert_numpy_array_equal(uniques, exp) + + arr = np.arange(5.0)[::-1] + + codes, uniques = algos.factorize(arr) + exp = np.array([0, 1, 2, 3, 4], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = np.array([4.0, 3.0, 2.0, 1.0, 0.0], dtype=arr.dtype) + tm.assert_numpy_array_equal(uniques, exp) + + codes, uniques = algos.factorize(arr, sort=True) + exp = np.array([4, 3, 2, 1, 0], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = np.array([0.0, 1.0, 2.0, 3.0, 4.0], dtype=arr.dtype) + tm.assert_numpy_array_equal(uniques, exp) + + def test_mixed(self): + # doc example reshaping.rst + x = Series(["A", "A", np.nan, "B", 3.14, np.inf]) + codes, uniques = algos.factorize(x) + + exp = np.array([0, 0, -1, 1, 2, 3], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = Index(["A", "B", 3.14, np.inf]) + tm.assert_index_equal(uniques, exp) + + codes, uniques = algos.factorize(x, sort=True) + exp = np.array([2, 2, -1, 3, 0, 1], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = Index([3.14, np.inf, "A", "B"]) + tm.assert_index_equal(uniques, exp) + + def test_factorize_datetime64(self): + # M8 + v1 = Timestamp("20130101 09:00:00.00004") + v2 = Timestamp("20130101") + x = Series([v1, v1, v1, v2, v2, v1]) + codes, uniques = algos.factorize(x) + + exp = np.array([0, 0, 0, 1, 1, 0], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = DatetimeIndex([v1, v2]) + tm.assert_index_equal(uniques, exp) + + codes, uniques = algos.factorize(x, sort=True) + exp = np.array([1, 1, 1, 0, 0, 1], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + exp = DatetimeIndex([v2, v1]) + tm.assert_index_equal(uniques, exp) + + def test_factorize_period(self): + # period + v1 = Period("201302", freq="M") + v2 = Period("201303", freq="M") + x = Series([v1, v1, v1, v2, v2, v1]) + + # periods are not 'sorted' as they are converted back into an index + codes, uniques = algos.factorize(x) + exp = np.array([0, 0, 0, 1, 1, 0], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + tm.assert_index_equal(uniques, PeriodIndex([v1, v2])) + + codes, uniques = algos.factorize(x, sort=True) + exp = np.array([0, 0, 0, 1, 1, 0], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + tm.assert_index_equal(uniques, PeriodIndex([v1, v2])) + + def test_factorize_timedelta(self): + # GH 5986 + v1 = to_timedelta("1 day 1 min") + v2 = to_timedelta("1 day") + x = Series([v1, v2, v1, v1, v2, v2, v1]) + codes, uniques = algos.factorize(x) + exp = np.array([0, 1, 0, 0, 1, 1, 0], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + tm.assert_index_equal(uniques, to_timedelta([v1, v2])) + + codes, uniques = algos.factorize(x, sort=True) + exp = np.array([1, 0, 1, 1, 0, 0, 1], dtype=np.intp) + tm.assert_numpy_array_equal(codes, exp) + tm.assert_index_equal(uniques, to_timedelta([v2, v1])) + + def test_factorize_nan(self): + # nan should map to na_sentinel, not reverse_indexer[na_sentinel] + # rizer.factorize should not raise an exception if na_sentinel indexes + # outside of reverse_indexer + key = np.array([1, 2, 1, np.nan], dtype="O") + rizer = ht.ObjectFactorizer(len(key)) + for na_sentinel in (-1, 20): + ids = rizer.factorize(key, na_sentinel=na_sentinel) + expected = np.array([0, 1, 0, na_sentinel], dtype=np.intp) + assert len(set(key)) == len(set(expected)) + tm.assert_numpy_array_equal(pd.isna(key), expected == na_sentinel) + tm.assert_numpy_array_equal(ids, expected) + + def test_factorizer_with_mask(self): + # GH#49549 + data = np.array([1, 2, 3, 1, 1, 0], dtype="int64") + mask = np.array([False, False, False, False, False, True]) + rizer = ht.Int64Factorizer(len(data)) + result = rizer.factorize(data, mask=mask) + expected = np.array([0, 1, 2, 0, 0, -1], dtype=np.intp) + tm.assert_numpy_array_equal(result, expected) + expected_uniques = np.array([1, 2, 3], dtype="int64") + tm.assert_numpy_array_equal(rizer.uniques.to_array(), expected_uniques) + + def test_factorizer_object_with_nan(self): + # GH#49549 + data = np.array([1, 2, 3, 1, np.nan]) + rizer = ht.ObjectFactorizer(len(data)) + result = rizer.factorize(data.astype(object)) + expected = np.array([0, 1, 2, 0, -1], dtype=np.intp) + tm.assert_numpy_array_equal(result, expected) + expected_uniques = np.array([1, 2, 3], dtype=object) + tm.assert_numpy_array_equal(rizer.uniques.to_array(), expected_uniques) + + @pytest.mark.parametrize( + "data, expected_codes, expected_uniques", + [ + ( + [(1, 1), (1, 2), (0, 0), (1, 2), "nonsense"], + [0, 1, 2, 1, 3], + [(1, 1), (1, 2), (0, 0), "nonsense"], + ), + ( + [(1, 1), (1, 2), (0, 0), (1, 2), (1, 2, 3)], + [0, 1, 2, 1, 3], + [(1, 1), (1, 2), (0, 0), (1, 2, 3)], + ), + ([(1, 1), (1, 2), (0, 0), (1, 2)], [0, 1, 2, 1], [(1, 1), (1, 2), (0, 0)]), + ], + ) + def test_factorize_tuple_list(self, data, expected_codes, expected_uniques): + # GH9454 + msg = "factorize with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + codes, uniques = pd.factorize(data) + + tm.assert_numpy_array_equal(codes, np.array(expected_codes, dtype=np.intp)) + + expected_uniques_array = com.asarray_tuplesafe(expected_uniques, dtype=object) + tm.assert_numpy_array_equal(uniques, expected_uniques_array) + + def test_complex_sorting(self): + # gh 12666 - check no segfault + x17 = np.array([complex(i) for i in range(17)], dtype=object) + + msg = "'[<>]' not supported between instances of .*" + with pytest.raises(TypeError, match=msg): + algos.factorize(x17[::-1], sort=True) + + def test_numeric_dtype_factorize(self, any_real_numpy_dtype): + # GH41132 + dtype = any_real_numpy_dtype + data = np.array([1, 2, 2, 1], dtype=dtype) + expected_codes = np.array([0, 1, 1, 0], dtype=np.intp) + expected_uniques = np.array([1, 2], dtype=dtype) + + codes, uniques = algos.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + def test_float64_factorize(self, writable): + data = np.array([1.0, 1e8, 1.0, 1e-8, 1e8, 1.0], dtype=np.float64) + data.setflags(write=writable) + expected_codes = np.array([0, 1, 0, 2, 1, 0], dtype=np.intp) + expected_uniques = np.array([1.0, 1e8, 1e-8], dtype=np.float64) + + codes, uniques = algos.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + def test_uint64_factorize(self, writable): + data = np.array([2**64 - 1, 1, 2**64 - 1], dtype=np.uint64) + data.setflags(write=writable) + expected_codes = np.array([0, 1, 0], dtype=np.intp) + expected_uniques = np.array([2**64 - 1, 1], dtype=np.uint64) + + codes, uniques = algos.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + def test_int64_factorize(self, writable): + data = np.array([2**63 - 1, -(2**63), 2**63 - 1], dtype=np.int64) + data.setflags(write=writable) + expected_codes = np.array([0, 1, 0], dtype=np.intp) + expected_uniques = np.array([2**63 - 1, -(2**63)], dtype=np.int64) + + codes, uniques = algos.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + def test_string_factorize(self, writable): + data = np.array(["a", "c", "a", "b", "c"], dtype=object) + data.setflags(write=writable) + expected_codes = np.array([0, 1, 0, 2, 1], dtype=np.intp) + expected_uniques = np.array(["a", "c", "b"], dtype=object) + + codes, uniques = algos.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + def test_object_factorize(self, writable): + data = np.array(["a", "c", None, np.nan, "a", "b", NaT, "c"], dtype=object) + data.setflags(write=writable) + expected_codes = np.array([0, 1, -1, -1, 0, 2, -1, 1], dtype=np.intp) + expected_uniques = np.array(["a", "c", "b"], dtype=object) + + codes, uniques = algos.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + def test_datetime64_factorize(self, writable): + # GH35650 Verify whether read-only datetime64 array can be factorized + data = np.array([np.datetime64("2020-01-01T00:00:00.000")], dtype="M8[ns]") + data.setflags(write=writable) + expected_codes = np.array([0], dtype=np.intp) + expected_uniques = np.array( + ["2020-01-01T00:00:00.000000000"], dtype="datetime64[ns]" + ) + + codes, uniques = pd.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + @pytest.mark.parametrize("sort", [True, False]) + def test_factorize_rangeindex(self, sort): + # increasing -> sort doesn't matter + ri = pd.RangeIndex.from_range(range(10)) + expected = np.arange(10, dtype=np.intp), ri + + result = algos.factorize(ri, sort=sort) + tm.assert_numpy_array_equal(result[0], expected[0]) + tm.assert_index_equal(result[1], expected[1], exact=True) + + result = ri.factorize(sort=sort) + tm.assert_numpy_array_equal(result[0], expected[0]) + tm.assert_index_equal(result[1], expected[1], exact=True) + + @pytest.mark.parametrize("sort", [True, False]) + def test_factorize_rangeindex_decreasing(self, sort): + # decreasing -> sort matters + ri = pd.RangeIndex.from_range(range(10)) + expected = np.arange(10, dtype=np.intp), ri + + ri2 = ri[::-1] + expected = expected[0], ri2 + if sort: + expected = expected[0][::-1], expected[1][::-1] + + result = algos.factorize(ri2, sort=sort) + tm.assert_numpy_array_equal(result[0], expected[0]) + tm.assert_index_equal(result[1], expected[1], exact=True) + + result = ri2.factorize(sort=sort) + tm.assert_numpy_array_equal(result[0], expected[0]) + tm.assert_index_equal(result[1], expected[1], exact=True) + + def test_deprecate_order(self): + # gh 19727 - check warning is raised for deprecated keyword, order. + # Test not valid once order keyword is removed. + data = np.array([2**63, 1, 2**63], dtype=np.uint64) + with pytest.raises(TypeError, match="got an unexpected keyword"): + algos.factorize(data, order=True) + with tm.assert_produces_warning(False): + algos.factorize(data) + + @pytest.mark.parametrize( + "data", + [ + np.array([0, 1, 0], dtype="u8"), + np.array([-(2**63), 1, -(2**63)], dtype="i8"), + np.array(["__nan__", "foo", "__nan__"], dtype="object"), + ], + ) + def test_parametrized_factorize_na_value_default(self, data): + # arrays that include the NA default for that type, but isn't used. + codes, uniques = algos.factorize(data) + expected_uniques = data[[0, 1]] + expected_codes = np.array([0, 1, 0], dtype=np.intp) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + @pytest.mark.parametrize( + "data, na_value", + [ + (np.array([0, 1, 0, 2], dtype="u8"), 0), + (np.array([1, 0, 1, 2], dtype="u8"), 1), + (np.array([-(2**63), 1, -(2**63), 0], dtype="i8"), -(2**63)), + (np.array([1, -(2**63), 1, 0], dtype="i8"), 1), + (np.array(["a", "", "a", "b"], dtype=object), "a"), + (np.array([(), ("a", 1), (), ("a", 2)], dtype=object), ()), + (np.array([("a", 1), (), ("a", 1), ("a", 2)], dtype=object), ("a", 1)), + ], + ) + def test_parametrized_factorize_na_value(self, data, na_value): + codes, uniques = algos.factorize_array(data, na_value=na_value) + expected_uniques = data[[1, 3]] + expected_codes = np.array([-1, 0, -1, 1], dtype=np.intp) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_numpy_array_equal(uniques, expected_uniques) + + @pytest.mark.parametrize("sort", [True, False]) + @pytest.mark.parametrize( + "data, uniques", + [ + ( + np.array(["b", "a", None, "b"], dtype=object), + np.array(["b", "a"], dtype=object), + ), + ( + pd.array([2, 1, np.nan, 2], dtype="Int64"), + pd.array([2, 1], dtype="Int64"), + ), + ], + ids=["numpy_array", "extension_array"], + ) + def test_factorize_use_na_sentinel(self, sort, data, uniques): + codes, uniques = algos.factorize(data, sort=sort, use_na_sentinel=True) + if sort: + expected_codes = np.array([1, 0, -1, 1], dtype=np.intp) + expected_uniques = algos.safe_sort(uniques) + else: + expected_codes = np.array([0, 1, -1, 0], dtype=np.intp) + expected_uniques = uniques + tm.assert_numpy_array_equal(codes, expected_codes) + if isinstance(data, np.ndarray): + tm.assert_numpy_array_equal(uniques, expected_uniques) + else: + tm.assert_extension_array_equal(uniques, expected_uniques) + + @pytest.mark.parametrize( + "data, expected_codes, expected_uniques", + [ + ( + ["a", None, "b", "a"], + np.array([0, 1, 2, 0], dtype=np.dtype("intp")), + np.array(["a", np.nan, "b"], dtype=object), + ), + ( + ["a", np.nan, "b", "a"], + np.array([0, 1, 2, 0], dtype=np.dtype("intp")), + np.array(["a", np.nan, "b"], dtype=object), + ), + ], + ) + def test_object_factorize_use_na_sentinel_false( + self, data, expected_codes, expected_uniques + ): + codes, uniques = algos.factorize( + np.array(data, dtype=object), use_na_sentinel=False + ) + + tm.assert_numpy_array_equal(uniques, expected_uniques, strict_nan=True) + tm.assert_numpy_array_equal(codes, expected_codes, strict_nan=True) + + @pytest.mark.parametrize( + "data, expected_codes, expected_uniques", + [ + ( + [1, None, 1, 2], + np.array([0, 1, 0, 2], dtype=np.dtype("intp")), + np.array([1, np.nan, 2], dtype="O"), + ), + ( + [1, np.nan, 1, 2], + np.array([0, 1, 0, 2], dtype=np.dtype("intp")), + np.array([1, np.nan, 2], dtype=np.float64), + ), + ], + ) + def test_int_factorize_use_na_sentinel_false( + self, data, expected_codes, expected_uniques + ): + msg = "factorize with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + codes, uniques = algos.factorize(data, use_na_sentinel=False) + + tm.assert_numpy_array_equal(uniques, expected_uniques, strict_nan=True) + tm.assert_numpy_array_equal(codes, expected_codes, strict_nan=True) + + @pytest.mark.parametrize( + "data, expected_codes, expected_uniques", + [ + ( + Index(Categorical(["a", "a", "b"])), + np.array([0, 0, 1], dtype=np.intp), + CategoricalIndex(["a", "b"], categories=["a", "b"], dtype="category"), + ), + ( + Series(Categorical(["a", "a", "b"])), + np.array([0, 0, 1], dtype=np.intp), + CategoricalIndex(["a", "b"], categories=["a", "b"], dtype="category"), + ), + ( + Series(DatetimeIndex(["2017", "2017"], tz="US/Eastern")), + np.array([0, 0], dtype=np.intp), + DatetimeIndex(["2017"], tz="US/Eastern"), + ), + ], + ) + def test_factorize_mixed_values(self, data, expected_codes, expected_uniques): + # GH 19721 + codes, uniques = algos.factorize(data) + tm.assert_numpy_array_equal(codes, expected_codes) + tm.assert_index_equal(uniques, expected_uniques) + + def test_factorize_interval_non_nano(self, unit): + # GH#56099 + left = DatetimeIndex(["2016-01-01", np.nan, "2015-10-11"]).as_unit(unit) + right = DatetimeIndex(["2016-01-02", np.nan, "2015-10-15"]).as_unit(unit) + idx = IntervalIndex.from_arrays(left, right) + codes, cats = idx.factorize() + assert cats.dtype == f"interval[datetime64[{unit}], right]" + + ts = Timestamp(0).as_unit(unit) + idx2 = IntervalIndex.from_arrays(left - ts, right - ts) + codes2, cats2 = idx2.factorize() + assert cats2.dtype == f"interval[timedelta64[{unit}], right]" + + idx3 = IntervalIndex.from_arrays( + left.tz_localize("US/Pacific"), right.tz_localize("US/Pacific") + ) + codes3, cats3 = idx3.factorize() + assert cats3.dtype == f"interval[datetime64[{unit}, US/Pacific], right]" + + +class TestUnique: + def test_ints(self): + arr = np.random.default_rng(2).integers(0, 100, size=50) + + result = algos.unique(arr) + assert isinstance(result, np.ndarray) + + def test_objects(self): + arr = np.random.default_rng(2).integers(0, 100, size=50).astype("O") + + result = algos.unique(arr) + assert isinstance(result, np.ndarray) + + def test_object_refcount_bug(self): + lst = np.array(["A", "B", "C", "D", "E"], dtype=object) + for i in range(1000): + len(algos.unique(lst)) + + def test_on_index_object(self): + mindex = MultiIndex.from_arrays( + [np.arange(5).repeat(5), np.tile(np.arange(5), 5)] + ) + expected = mindex.values + expected.sort() + + mindex = mindex.repeat(2) + + result = pd.unique(mindex) + result.sort() + + tm.assert_almost_equal(result, expected) + + def test_dtype_preservation(self, any_numpy_dtype): + # GH 15442 + if any_numpy_dtype in (tm.BYTES_DTYPES + tm.STRING_DTYPES): + data = [1, 2, 2] + uniques = [1, 2] + elif is_integer_dtype(any_numpy_dtype): + data = [1, 2, 2] + uniques = [1, 2] + elif is_float_dtype(any_numpy_dtype): + data = [1, 2, 2] + uniques = [1.0, 2.0] + elif is_complex_dtype(any_numpy_dtype): + data = [complex(1, 0), complex(2, 0), complex(2, 0)] + uniques = [complex(1, 0), complex(2, 0)] + elif is_bool_dtype(any_numpy_dtype): + data = [True, True, False] + uniques = [True, False] + elif is_object_dtype(any_numpy_dtype): + data = ["A", "B", "B"] + uniques = ["A", "B"] + else: + # datetime64[ns]/M8[ns]/timedelta64[ns]/m8[ns] tested elsewhere + data = [1, 2, 2] + uniques = [1, 2] + + result = Series(data, dtype=any_numpy_dtype).unique() + expected = np.array(uniques, dtype=any_numpy_dtype) + + if any_numpy_dtype in tm.STRING_DTYPES: + expected = expected.astype(object) + + if expected.dtype.kind in ["m", "M"]: + # We get TimedeltaArray/DatetimeArray + assert isinstance(result, (DatetimeArray, TimedeltaArray)) + result = np.array(result) + tm.assert_numpy_array_equal(result, expected) + + def test_datetime64_dtype_array_returned(self): + # GH 9431 + expected = np.array( + [ + "2015-01-03T00:00:00.000000000", + "2015-01-01T00:00:00.000000000", + ], + dtype="M8[ns]", + ) + + dt_index = to_datetime( + [ + "2015-01-03T00:00:00.000000000", + "2015-01-01T00:00:00.000000000", + "2015-01-01T00:00:00.000000000", + ] + ) + result = algos.unique(dt_index) + tm.assert_numpy_array_equal(result, expected) + assert result.dtype == expected.dtype + + s = Series(dt_index) + result = algos.unique(s) + tm.assert_numpy_array_equal(result, expected) + assert result.dtype == expected.dtype + + arr = s.values + result = algos.unique(arr) + tm.assert_numpy_array_equal(result, expected) + assert result.dtype == expected.dtype + + def test_datetime_non_ns(self): + a = np.array(["2000", "2000", "2001"], dtype="datetime64[s]") + result = pd.unique(a) + expected = np.array(["2000", "2001"], dtype="datetime64[s]") + tm.assert_numpy_array_equal(result, expected) + + def test_timedelta_non_ns(self): + a = np.array(["2000", "2000", "2001"], dtype="timedelta64[s]") + result = pd.unique(a) + expected = np.array([2000, 2001], dtype="timedelta64[s]") + tm.assert_numpy_array_equal(result, expected) + + def test_timedelta64_dtype_array_returned(self): + # GH 9431 + expected = np.array([31200, 45678, 10000], dtype="m8[ns]") + + td_index = to_timedelta([31200, 45678, 31200, 10000, 45678]) + result = algos.unique(td_index) + tm.assert_numpy_array_equal(result, expected) + assert result.dtype == expected.dtype + + s = Series(td_index) + result = algos.unique(s) + tm.assert_numpy_array_equal(result, expected) + assert result.dtype == expected.dtype + + arr = s.values + result = algos.unique(arr) + tm.assert_numpy_array_equal(result, expected) + assert result.dtype == expected.dtype + + def test_uint64_overflow(self): + s = Series([1, 2, 2**63, 2**63], dtype=np.uint64) + exp = np.array([1, 2, 2**63], dtype=np.uint64) + tm.assert_numpy_array_equal(algos.unique(s), exp) + + def test_nan_in_object_array(self): + duplicated_items = ["a", np.nan, "c", "c"] + result = pd.unique(np.array(duplicated_items, dtype=object)) + expected = np.array(["a", np.nan, "c"], dtype=object) + tm.assert_numpy_array_equal(result, expected) + + def test_categorical(self): + # we are expecting to return in the order + # of appearance + expected = Categorical(list("bac")) + + # we are expecting to return in the order + # of the categories + expected_o = Categorical(list("bac"), categories=list("abc"), ordered=True) + + # GH 15939 + c = Categorical(list("baabc")) + result = c.unique() + tm.assert_categorical_equal(result, expected) + + result = algos.unique(c) + tm.assert_categorical_equal(result, expected) + + c = Categorical(list("baabc"), ordered=True) + result = c.unique() + tm.assert_categorical_equal(result, expected_o) + + result = algos.unique(c) + tm.assert_categorical_equal(result, expected_o) + + # Series of categorical dtype + s = Series(Categorical(list("baabc")), name="foo") + result = s.unique() + tm.assert_categorical_equal(result, expected) + + result = pd.unique(s) + tm.assert_categorical_equal(result, expected) + + # CI -> return CI + ci = CategoricalIndex(Categorical(list("baabc"), categories=list("abc"))) + expected = CategoricalIndex(expected) + result = ci.unique() + tm.assert_index_equal(result, expected) + + result = pd.unique(ci) + tm.assert_index_equal(result, expected) + + def test_datetime64tz_aware(self, unit): + # GH 15939 + + dti = Index( + [ + Timestamp("20160101", tz="US/Eastern"), + Timestamp("20160101", tz="US/Eastern"), + ] + ).as_unit(unit) + ser = Series(dti) + + result = ser.unique() + expected = dti[:1]._data + tm.assert_extension_array_equal(result, expected) + + result = dti.unique() + expected = dti[:1] + tm.assert_index_equal(result, expected) + + result = pd.unique(ser) + expected = dti[:1]._data + tm.assert_extension_array_equal(result, expected) + + result = pd.unique(dti) + expected = dti[:1] + tm.assert_index_equal(result, expected) + + def test_order_of_appearance(self): + # 9346 + # light testing of guarantee of order of appearance + # these also are the doc-examples + result = pd.unique(Series([2, 1, 3, 3])) + tm.assert_numpy_array_equal(result, np.array([2, 1, 3], dtype="int64")) + + result = pd.unique(Series([2] + [1] * 5)) + tm.assert_numpy_array_equal(result, np.array([2, 1], dtype="int64")) + + msg = "unique with argument that is not not a Series, Index," + with tm.assert_produces_warning(FutureWarning, match=msg): + result = pd.unique(list("aabc")) + expected = np.array(["a", "b", "c"], dtype=object) + tm.assert_numpy_array_equal(result, expected) + + result = pd.unique(Series(Categorical(list("aabc")))) + expected = Categorical(list("abc")) + tm.assert_categorical_equal(result, expected) + + def test_order_of_appearance_dt64(self, unit): + ser = Series([Timestamp("20160101"), Timestamp("20160101")]).dt.as_unit(unit) + result = pd.unique(ser) + expected = np.array(["2016-01-01T00:00:00.000000000"], dtype=f"M8[{unit}]") + tm.assert_numpy_array_equal(result, expected) + + def test_order_of_appearance_dt64tz(self, unit): + dti = DatetimeIndex( + [ + Timestamp("20160101", tz="US/Eastern"), + Timestamp("20160101", tz="US/Eastern"), + ] + ).as_unit(unit) + result = pd.unique(dti) + expected = DatetimeIndex( + ["2016-01-01 00:00:00"], dtype=f"datetime64[{unit}, US/Eastern]", freq=None + ) + tm.assert_index_equal(result, expected) + + @pytest.mark.parametrize( + "arg ,expected", + [ + (("1", "1", "2"), np.array(["1", "2"], dtype=object)), + (("foo",), np.array(["foo"], dtype=object)), + ], + ) + def test_tuple_with_strings(self, arg, expected): + # see GH 17108 + msg = "unique with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = pd.unique(arg) + tm.assert_numpy_array_equal(result, expected) + + def test_obj_none_preservation(self): + # GH 20866 + arr = np.array(["foo", None], dtype=object) + result = pd.unique(arr) + expected = np.array(["foo", None], dtype=object) + + tm.assert_numpy_array_equal(result, expected, strict_nan=True) + + def test_signed_zero(self): + # GH 21866 + a = np.array([-0.0, 0.0]) + result = pd.unique(a) + expected = np.array([-0.0]) # 0.0 and -0.0 are equivalent + tm.assert_numpy_array_equal(result, expected) + + def test_different_nans(self): + # GH 21866 + # create different nans from bit-patterns: + NAN1 = struct.unpack("d", struct.pack("=Q", 0x7FF8000000000000))[0] + NAN2 = struct.unpack("d", struct.pack("=Q", 0x7FF8000000000001))[0] + assert NAN1 != NAN1 + assert NAN2 != NAN2 + a = np.array([NAN1, NAN2]) # NAN1 and NAN2 are equivalent + result = pd.unique(a) + expected = np.array([np.nan]) + tm.assert_numpy_array_equal(result, expected) + + @pytest.mark.parametrize("el_type", [np.float64, object]) + def test_first_nan_kept(self, el_type): + # GH 22295 + # create different nans from bit-patterns: + bits_for_nan1 = 0xFFF8000000000001 + bits_for_nan2 = 0x7FF8000000000001 + NAN1 = struct.unpack("d", struct.pack("=Q", bits_for_nan1))[0] + NAN2 = struct.unpack("d", struct.pack("=Q", bits_for_nan2))[0] + assert NAN1 != NAN1 + assert NAN2 != NAN2 + a = np.array([NAN1, NAN2], dtype=el_type) + result = pd.unique(a) + assert result.size == 1 + # use bit patterns to identify which nan was kept: + result_nan_bits = struct.unpack("=Q", struct.pack("d", result[0]))[0] + assert result_nan_bits == bits_for_nan1 + + def test_do_not_mangle_na_values(self, unique_nulls_fixture, unique_nulls_fixture2): + # GH 22295 + if unique_nulls_fixture is unique_nulls_fixture2: + return # skip it, values not unique + a = np.array([unique_nulls_fixture, unique_nulls_fixture2], dtype=object) + result = pd.unique(a) + assert result.size == 2 + assert a[0] is unique_nulls_fixture + assert a[1] is unique_nulls_fixture2 + + def test_unique_masked(self, any_numeric_ea_dtype): + # GH#48019 + ser = Series([1, pd.NA, 2] * 3, dtype=any_numeric_ea_dtype) + result = pd.unique(ser) + expected = pd.array([1, pd.NA, 2], dtype=any_numeric_ea_dtype) + tm.assert_extension_array_equal(result, expected) + + +def test_nunique_ints(index_or_series_or_array): + # GH#36327 + values = index_or_series_or_array(np.random.default_rng(2).integers(0, 20, 30)) + result = algos.nunique_ints(values) + expected = len(algos.unique(values)) + assert result == expected + + +class TestIsin: + def test_invalid(self): + msg = ( + r"only list-like objects are allowed to be passed to isin\(\), " + r"you passed a `int`" + ) + with pytest.raises(TypeError, match=msg): + algos.isin(1, 1) + with pytest.raises(TypeError, match=msg): + algos.isin(1, [1]) + with pytest.raises(TypeError, match=msg): + algos.isin([1], 1) + + def test_basic(self): + msg = "isin with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.isin([1, 2], [1]) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(np.array([1, 2]), [1]) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(Series([1, 2]), [1]) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(Series([1, 2]), Series([1])) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(Series([1, 2]), {1}) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.isin(["a", "b"], ["a"]) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(Series(["a", "b"]), Series(["a"])) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(Series(["a", "b"]), {"a"}) + expected = np.array([True, False]) + tm.assert_numpy_array_equal(result, expected) + + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.isin(["a", "b"], [1]) + expected = np.array([False, False]) + tm.assert_numpy_array_equal(result, expected) + + def test_i8(self): + arr = date_range("20130101", periods=3).values + result = algos.isin(arr, [arr[0]]) + expected = np.array([True, False, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(arr, arr[0:2]) + expected = np.array([True, True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(arr, set(arr[0:2])) + expected = np.array([True, True, False]) + tm.assert_numpy_array_equal(result, expected) + + arr = timedelta_range("1 day", periods=3).values + result = algos.isin(arr, [arr[0]]) + expected = np.array([True, False, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(arr, arr[0:2]) + expected = np.array([True, True, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.isin(arr, set(arr[0:2])) + expected = np.array([True, True, False]) + tm.assert_numpy_array_equal(result, expected) + + @pytest.mark.parametrize("dtype1", ["m8[ns]", "M8[ns]", "M8[ns, UTC]", "period[D]"]) + @pytest.mark.parametrize("dtype", ["i8", "f8", "u8"]) + def test_isin_datetimelike_values_numeric_comps(self, dtype, dtype1): + # Anything but object and we get all-False shortcut + + dta = date_range("2013-01-01", periods=3)._values + arr = Series(dta.view("i8")).array.view(dtype1) + + comps = arr.view("i8").astype(dtype) + + result = algos.isin(comps, arr) + expected = np.zeros(comps.shape, dtype=bool) + tm.assert_numpy_array_equal(result, expected) + + def test_large(self): + s = date_range("20000101", periods=2000000, freq="s").values + result = algos.isin(s, s[0:2]) + expected = np.zeros(len(s), dtype=bool) + expected[0] = True + expected[1] = True + tm.assert_numpy_array_equal(result, expected) + + @pytest.mark.parametrize("dtype", ["m8[ns]", "M8[ns]", "M8[ns, UTC]", "period[D]"]) + def test_isin_datetimelike_all_nat(self, dtype): + # GH#56427 + dta = date_range("2013-01-01", periods=3)._values + arr = Series(dta.view("i8")).array.view(dtype) + + arr[0] = NaT + result = algos.isin(arr, [NaT]) + expected = np.array([True, False, False], dtype=bool) + tm.assert_numpy_array_equal(result, expected) + + @pytest.mark.parametrize("dtype", ["m8[ns]", "M8[ns]", "M8[ns, UTC]"]) + def test_isin_datetimelike_strings_deprecated(self, dtype): + # GH#53111 + dta = date_range("2013-01-01", periods=3)._values + arr = Series(dta.view("i8")).array.view(dtype) + + vals = [str(x) for x in arr] + msg = "The behavior of 'isin' with dtype=.* is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + res = algos.isin(arr, vals) + assert res.all() + + vals2 = np.array(vals, dtype=str) + with tm.assert_produces_warning(FutureWarning, match=msg): + res2 = algos.isin(arr, vals2) + assert res2.all() + + def test_isin_dt64tz_with_nat(self): + # the all-NaT values used to get inferred to tznaive, which was evaluated + # as non-matching GH#56427 + dti = date_range("2016-01-01", periods=3, tz="UTC") + ser = Series(dti) + ser[0] = NaT + + res = algos.isin(ser._values, [NaT]) + exp = np.array([True, False, False], dtype=bool) + tm.assert_numpy_array_equal(res, exp) + + def test_categorical_from_codes(self): + # GH 16639 + vals = np.array([0, 1, 2, 0]) + cats = ["a", "b", "c"] + Sd = Series(Categorical([1]).from_codes(vals, cats)) + St = Series(Categorical([1]).from_codes(np.array([0, 1]), cats)) + expected = np.array([True, True, False, True]) + result = algos.isin(Sd, St) + tm.assert_numpy_array_equal(expected, result) + + def test_categorical_isin(self): + vals = np.array([0, 1, 2, 0]) + cats = ["a", "b", "c"] + cat = Categorical([1]).from_codes(vals, cats) + other = Categorical([1]).from_codes(np.array([0, 1]), cats) + + expected = np.array([True, True, False, True]) + result = algos.isin(cat, other) + tm.assert_numpy_array_equal(expected, result) + + def test_same_nan_is_in(self): + # GH 22160 + # nan is special, because from " a is b" doesn't follow "a == b" + # at least, isin() should follow python's "np.nan in [nan] == True" + # casting to -> np.float64 -> another float-object somewhere on + # the way could lead jeopardize this behavior + comps = [np.nan] # could be casted to float64 + values = [np.nan] + expected = np.array([True]) + msg = "isin with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.isin(comps, values) + tm.assert_numpy_array_equal(expected, result) + + def test_same_nan_is_in_large(self): + # https://github.com/pandas-dev/pandas/issues/22205 + s = np.tile(1.0, 1_000_001) + s[0] = np.nan + result = algos.isin(s, np.array([np.nan, 1])) + expected = np.ones(len(s), dtype=bool) + tm.assert_numpy_array_equal(result, expected) + + def test_same_nan_is_in_large_series(self): + # https://github.com/pandas-dev/pandas/issues/22205 + s = np.tile(1.0, 1_000_001) + series = Series(s) + s[0] = np.nan + result = series.isin(np.array([np.nan, 1])) + expected = Series(np.ones(len(s), dtype=bool)) + tm.assert_series_equal(result, expected) + + def test_same_object_is_in(self): + # GH 22160 + # there could be special treatment for nans + # the user however could define a custom class + # with similar behavior, then we at least should + # fall back to usual python's behavior: "a in [a] == True" + class LikeNan: + def __eq__(self, other) -> bool: + return False + + def __hash__(self): + return 0 + + a, b = LikeNan(), LikeNan() + + msg = "isin with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + # same object -> True + tm.assert_numpy_array_equal(algos.isin([a], [a]), np.array([True])) + # different objects -> False + tm.assert_numpy_array_equal(algos.isin([a], [b]), np.array([False])) + + def test_different_nans(self): + # GH 22160 + # all nans are handled as equivalent + + comps = [float("nan")] + values = [float("nan")] + assert comps[0] is not values[0] # different nan-objects + + # as list of python-objects: + result = algos.isin(np.array(comps), values) + tm.assert_numpy_array_equal(np.array([True]), result) + + # as object-array: + result = algos.isin( + np.asarray(comps, dtype=object), np.asarray(values, dtype=object) + ) + tm.assert_numpy_array_equal(np.array([True]), result) + + # as float64-array: + result = algos.isin( + np.asarray(comps, dtype=np.float64), np.asarray(values, dtype=np.float64) + ) + tm.assert_numpy_array_equal(np.array([True]), result) + + def test_no_cast(self): + # GH 22160 + # ensure 42 is not casted to a string + comps = ["ss", 42] + values = ["42"] + expected = np.array([False, False]) + msg = "isin with argument that is not not a Series, Index" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.isin(comps, values) + tm.assert_numpy_array_equal(expected, result) + + @pytest.mark.parametrize("empty", [[], Series(dtype=object), np.array([])]) + def test_empty(self, empty): + # see gh-16991 + vals = Index(["a", "b"]) + expected = np.array([False, False]) + + result = algos.isin(vals, empty) + tm.assert_numpy_array_equal(expected, result) + + def test_different_nan_objects(self): + # GH 22119 + comps = np.array(["nan", np.nan * 1j, float("nan")], dtype=object) + vals = np.array([float("nan")], dtype=object) + expected = np.array([False, False, True]) + result = algos.isin(comps, vals) + tm.assert_numpy_array_equal(expected, result) + + def test_different_nans_as_float64(self): + # GH 21866 + # create different nans from bit-patterns, + # these nans will land in different buckets in the hash-table + # if no special care is taken + NAN1 = struct.unpack("d", struct.pack("=Q", 0x7FF8000000000000))[0] + NAN2 = struct.unpack("d", struct.pack("=Q", 0x7FF8000000000001))[0] + assert NAN1 != NAN1 + assert NAN2 != NAN2 + + # check that NAN1 and NAN2 are equivalent: + arr = np.array([NAN1, NAN2], dtype=np.float64) + lookup1 = np.array([NAN1], dtype=np.float64) + result = algos.isin(arr, lookup1) + expected = np.array([True, True]) + tm.assert_numpy_array_equal(result, expected) + + lookup2 = np.array([NAN2], dtype=np.float64) + result = algos.isin(arr, lookup2) + expected = np.array([True, True]) + tm.assert_numpy_array_equal(result, expected) + + def test_isin_int_df_string_search(self): + """Comparing df with int`s (1,2) with a string at isin() ("1") + -> should not match values because int 1 is not equal str 1""" + df = DataFrame({"values": [1, 2]}) + result = df.isin(["1"]) + expected_false = DataFrame({"values": [False, False]}) + tm.assert_frame_equal(result, expected_false) + + def test_isin_nan_df_string_search(self): + """Comparing df with nan value (np.nan,2) with a string at isin() ("NaN") + -> should not match values because np.nan is not equal str NaN""" + df = DataFrame({"values": [np.nan, 2]}) + result = df.isin(np.array(["NaN"], dtype=object)) + expected_false = DataFrame({"values": [False, False]}) + tm.assert_frame_equal(result, expected_false) + + def test_isin_float_df_string_search(self): + """Comparing df with floats (1.4245,2.32441) with a string at isin() ("1.4245") + -> should not match values because float 1.4245 is not equal str 1.4245""" + df = DataFrame({"values": [1.4245, 2.32441]}) + result = df.isin(np.array(["1.4245"], dtype=object)) + expected_false = DataFrame({"values": [False, False]}) + tm.assert_frame_equal(result, expected_false) + + def test_isin_unsigned_dtype(self): + # GH#46485 + ser = Series([1378774140726870442], dtype=np.uint64) + result = ser.isin([1378774140726870528]) + expected = Series(False) + tm.assert_series_equal(result, expected) + + +class TestValueCounts: + def test_value_counts(self): + arr = np.random.default_rng(1234).standard_normal(4) + factor = cut(arr, 4) + + # assert isinstance(factor, n) + msg = "pandas.value_counts is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.value_counts(factor) + breaks = [-1.606, -1.018, -0.431, 0.155, 0.741] + index = IntervalIndex.from_breaks(breaks).astype(CategoricalDtype(ordered=True)) + expected = Series([1, 0, 2, 1], index=index, name="count") + tm.assert_series_equal(result.sort_index(), expected.sort_index()) + + def test_value_counts_bins(self): + s = [1, 2, 3, 4] + msg = "pandas.value_counts is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.value_counts(s, bins=1) + expected = Series( + [4], index=IntervalIndex.from_tuples([(0.996, 4.0)]), name="count" + ) + tm.assert_series_equal(result, expected) + + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.value_counts(s, bins=2, sort=False) + expected = Series( + [2, 2], + index=IntervalIndex.from_tuples([(0.996, 2.5), (2.5, 4.0)]), + name="count", + ) + tm.assert_series_equal(result, expected) + + def test_value_counts_dtypes(self): + msg2 = "pandas.value_counts is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg2): + result = algos.value_counts(np.array([1, 1.0])) + assert len(result) == 1 + + with tm.assert_produces_warning(FutureWarning, match=msg2): + result = algos.value_counts(np.array([1, 1.0]), bins=1) + assert len(result) == 1 + + with tm.assert_produces_warning(FutureWarning, match=msg2): + result = algos.value_counts(Series([1, 1.0, "1"])) # object + assert len(result) == 2 + + msg = "bins argument only works with numeric data" + with pytest.raises(TypeError, match=msg): + with tm.assert_produces_warning(FutureWarning, match=msg2): + algos.value_counts(np.array(["1", 1], dtype=object), bins=1) + + def test_value_counts_nat(self): + td = Series([np.timedelta64(10000), NaT], dtype="timedelta64[ns]") + dt = to_datetime(["NaT", "2014-01-01"]) + + msg = "pandas.value_counts is deprecated" + + for ser in [td, dt]: + with tm.assert_produces_warning(FutureWarning, match=msg): + vc = algos.value_counts(ser) + vc_with_na = algos.value_counts(ser, dropna=False) + assert len(vc) == 1 + assert len(vc_with_na) == 2 + + exp_dt = Series({Timestamp("2014-01-01 00:00:00"): 1}, name="count") + with tm.assert_produces_warning(FutureWarning, match=msg): + result_dt = algos.value_counts(dt) + tm.assert_series_equal(result_dt, exp_dt) + + exp_td = Series([1], index=[np.timedelta64(10000)], name="count") + with tm.assert_produces_warning(FutureWarning, match=msg): + result_td = algos.value_counts(td) + tm.assert_series_equal(result_td, exp_td) + + @pytest.mark.parametrize("dtype", [object, "M8[us]"]) + def test_value_counts_datetime_outofbounds(self, dtype): + # GH 13663 + ser = Series( + [ + datetime(3000, 1, 1), + datetime(5000, 1, 1), + datetime(5000, 1, 1), + datetime(6000, 1, 1), + datetime(3000, 1, 1), + datetime(3000, 1, 1), + ], + dtype=dtype, + ) + res = ser.value_counts() + + exp_index = Index( + [datetime(3000, 1, 1), datetime(5000, 1, 1), datetime(6000, 1, 1)], + dtype=dtype, + ) + exp = Series([3, 2, 1], index=exp_index, name="count") + tm.assert_series_equal(res, exp) + + def test_categorical(self): + s = Series(Categorical(list("aaabbc"))) + result = s.value_counts() + expected = Series( + [3, 2, 1], index=CategoricalIndex(["a", "b", "c"]), name="count" + ) + + tm.assert_series_equal(result, expected, check_index_type=True) + + # preserve order? + s = s.cat.as_ordered() + result = s.value_counts() + expected.index = expected.index.as_ordered() + tm.assert_series_equal(result, expected, check_index_type=True) + + def test_categorical_nans(self): + s = Series(Categorical(list("aaaaabbbcc"))) # 4,3,2,1 (nan) + s.iloc[1] = np.nan + result = s.value_counts() + expected = Series( + [4, 3, 2], + index=CategoricalIndex(["a", "b", "c"], categories=["a", "b", "c"]), + name="count", + ) + tm.assert_series_equal(result, expected, check_index_type=True) + result = s.value_counts(dropna=False) + expected = Series( + [4, 3, 2, 1], index=CategoricalIndex(["a", "b", "c", np.nan]), name="count" + ) + tm.assert_series_equal(result, expected, check_index_type=True) + + # out of order + s = Series( + Categorical(list("aaaaabbbcc"), ordered=True, categories=["b", "a", "c"]) + ) + s.iloc[1] = np.nan + result = s.value_counts() + expected = Series( + [4, 3, 2], + index=CategoricalIndex( + ["a", "b", "c"], + categories=["b", "a", "c"], + ordered=True, + ), + name="count", + ) + tm.assert_series_equal(result, expected, check_index_type=True) + + result = s.value_counts(dropna=False) + expected = Series( + [4, 3, 2, 1], + index=CategoricalIndex( + ["a", "b", "c", np.nan], categories=["b", "a", "c"], ordered=True + ), + name="count", + ) + tm.assert_series_equal(result, expected, check_index_type=True) + + def test_categorical_zeroes(self): + # keep the `d` category with 0 + s = Series(Categorical(list("bbbaac"), categories=list("abcd"), ordered=True)) + result = s.value_counts() + expected = Series( + [3, 2, 1, 0], + index=Categorical( + ["b", "a", "c", "d"], categories=list("abcd"), ordered=True + ), + name="count", + ) + tm.assert_series_equal(result, expected, check_index_type=True) + + def test_value_counts_dropna(self): + # https://github.com/pandas-dev/pandas/issues/9443#issuecomment-73719328 + + tm.assert_series_equal( + Series([True, True, False]).value_counts(dropna=True), + Series([2, 1], index=[True, False], name="count"), + ) + tm.assert_series_equal( + Series([True, True, False]).value_counts(dropna=False), + Series([2, 1], index=[True, False], name="count"), + ) + + tm.assert_series_equal( + Series([True] * 3 + [False] * 2 + [None] * 5).value_counts(dropna=True), + Series([3, 2], index=Index([True, False], dtype=object), name="count"), + ) + tm.assert_series_equal( + Series([True] * 5 + [False] * 3 + [None] * 2).value_counts(dropna=False), + Series([5, 3, 2], index=[True, False, None], name="count"), + ) + tm.assert_series_equal( + Series([10.3, 5.0, 5.0]).value_counts(dropna=True), + Series([2, 1], index=[5.0, 10.3], name="count"), + ) + tm.assert_series_equal( + Series([10.3, 5.0, 5.0]).value_counts(dropna=False), + Series([2, 1], index=[5.0, 10.3], name="count"), + ) + + tm.assert_series_equal( + Series([10.3, 5.0, 5.0, None]).value_counts(dropna=True), + Series([2, 1], index=[5.0, 10.3], name="count"), + ) + + result = Series([10.3, 10.3, 5.0, 5.0, 5.0, None]).value_counts(dropna=False) + expected = Series([3, 2, 1], index=[5.0, 10.3, None], name="count") + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("dtype", (np.float64, object, "M8[ns]")) + def test_value_counts_normalized(self, dtype): + # GH12558 + s = Series([1] * 2 + [2] * 3 + [np.nan] * 5) + s_typed = s.astype(dtype) + result = s_typed.value_counts(normalize=True, dropna=False) + expected = Series( + [0.5, 0.3, 0.2], + index=Series([np.nan, 2.0, 1.0], dtype=dtype), + name="proportion", + ) + tm.assert_series_equal(result, expected) + + result = s_typed.value_counts(normalize=True, dropna=True) + expected = Series( + [0.6, 0.4], index=Series([2.0, 1.0], dtype=dtype), name="proportion" + ) + tm.assert_series_equal(result, expected) + + def test_value_counts_uint64(self): + arr = np.array([2**63], dtype=np.uint64) + expected = Series([1], index=[2**63], name="count") + msg = "pandas.value_counts is deprecated" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.value_counts(arr) + + tm.assert_series_equal(result, expected) + + arr = np.array([-1, 2**63], dtype=object) + expected = Series([1, 1], index=[-1, 2**63], name="count") + with tm.assert_produces_warning(FutureWarning, match=msg): + result = algos.value_counts(arr) + + tm.assert_series_equal(result, expected) + + def test_value_counts_series(self): + # GH#54857 + values = np.array([3, 1, 2, 3, 4, np.nan]) + result = Series(values).value_counts(bins=3) + expected = Series( + [2, 2, 1], + index=IntervalIndex.from_tuples( + [(0.996, 2.0), (2.0, 3.0), (3.0, 4.0)], dtype="interval[float64, right]" + ), + name="count", + ) + tm.assert_series_equal(result, expected) + + +class TestDuplicated: + def test_duplicated_with_nas(self): + keys = np.array([0, 1, np.nan, 0, 2, np.nan], dtype=object) + + result = algos.duplicated(keys) + expected = np.array([False, False, False, True, False, True]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.duplicated(keys, keep="first") + expected = np.array([False, False, False, True, False, True]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.duplicated(keys, keep="last") + expected = np.array([True, False, True, False, False, False]) + tm.assert_numpy_array_equal(result, expected) + + result = algos.duplicated(keys, keep=False) + expected = np.array([True, False, True, True, False, True]) + tm.assert_numpy_array_equal(result, expected) + + keys = np.empty(8, dtype=object) + for i, t in enumerate( + zip([0, 0, np.nan, np.nan] * 2, [0, np.nan, 0, np.nan] * 2) + ): + keys[i] = t + + result = algos.duplicated(keys) + falses = [False] * 4 + trues = [True] * 4 + expected = np.array(falses + trues) + tm.assert_numpy_array_equal(result, expected) + + result = algos.duplicated(keys, keep="last") + expected = np.array(trues + falses) + tm.assert_numpy_array_equal(result, expected) + + result = algos.duplicated(keys, keep=False) + expected = np.array(trues + trues) + tm.assert_numpy_array_equal(result, expected) + + @pytest.mark.parametrize( + "case", + [ + np.array([1, 2, 1, 5, 3, 2, 4, 1, 5, 6]), + np.array([1.1, 2.2, 1.1, np.nan, 3.3, 2.2, 4.4, 1.1, np.nan, 6.6]), + np.array( + [ + 1 + 1j, + 2 + 2j, + 1 + 1j, + 5 + 5j, + 3 + 3j, + 2 + 2j, + 4 + 4j, + 1 + 1j, + 5 + 5j, + 6 + 6j, + ] + ), + np.array(["a", "b", "a", "e", "c", "b", "d", "a", "e", "f"], dtype=object), + np.array( + [1, 2**63, 1, 3**5, 10, 2**63, 39, 1, 3**5, 7], dtype=np.uint64 + ), + ], + ) + def test_numeric_object_likes(self, case): + exp_first = np.array( + [False, False, True, False, False, True, False, True, True, False] + ) + exp_last = np.array( + [True, True, True, True, False, False, False, False, False, False] + ) + exp_false = exp_first | exp_last + + res_first = algos.duplicated(case, keep="first") + tm.assert_numpy_array_equal(res_first, exp_first) + + res_last = algos.duplicated(case, keep="last") + tm.assert_numpy_array_equal(res_last, exp_last) + + res_false = algos.duplicated(case, keep=False) + tm.assert_numpy_array_equal(res_false, exp_false) + + # index + for idx in [Index(case), Index(case, dtype="category")]: + res_first = idx.duplicated(keep="first") + tm.assert_numpy_array_equal(res_first, exp_first) + + res_last = idx.duplicated(keep="last") + tm.assert_numpy_array_equal(res_last, exp_last) + + res_false = idx.duplicated(keep=False) + tm.assert_numpy_array_equal(res_false, exp_false) + + # series + for s in [Series(case), Series(case, dtype="category")]: + res_first = s.duplicated(keep="first") + tm.assert_series_equal(res_first, Series(exp_first)) + + res_last = s.duplicated(keep="last") + tm.assert_series_equal(res_last, Series(exp_last)) + + res_false = s.duplicated(keep=False) + tm.assert_series_equal(res_false, Series(exp_false)) + + def test_datetime_likes(self): + dt = [ + "2011-01-01", + "2011-01-02", + "2011-01-01", + "NaT", + "2011-01-03", + "2011-01-02", + "2011-01-04", + "2011-01-01", + "NaT", + "2011-01-06", + ] + td = [ + "1 days", + "2 days", + "1 days", + "NaT", + "3 days", + "2 days", + "4 days", + "1 days", + "NaT", + "6 days", + ] + + cases = [ + np.array([Timestamp(d) for d in dt]), + np.array([Timestamp(d, tz="US/Eastern") for d in dt]), + np.array([Period(d, freq="D") for d in dt]), + np.array([np.datetime64(d) for d in dt]), + np.array([Timedelta(d) for d in td]), + ] + + exp_first = np.array( + [False, False, True, False, False, True, False, True, True, False] + ) + exp_last = np.array( + [True, True, True, True, False, False, False, False, False, False] + ) + exp_false = exp_first | exp_last + + for case in cases: + res_first = algos.duplicated(case, keep="first") + tm.assert_numpy_array_equal(res_first, exp_first) + + res_last = algos.duplicated(case, keep="last") + tm.assert_numpy_array_equal(res_last, exp_last) + + res_false = algos.duplicated(case, keep=False) + tm.assert_numpy_array_equal(res_false, exp_false) + + # index + for idx in [ + Index(case), + Index(case, dtype="category"), + Index(case, dtype=object), + ]: + res_first = idx.duplicated(keep="first") + tm.assert_numpy_array_equal(res_first, exp_first) + + res_last = idx.duplicated(keep="last") + tm.assert_numpy_array_equal(res_last, exp_last) + + res_false = idx.duplicated(keep=False) + tm.assert_numpy_array_equal(res_false, exp_false) + + # series + for s in [ + Series(case), + Series(case, dtype="category"), + Series(case, dtype=object), + ]: + res_first = s.duplicated(keep="first") + tm.assert_series_equal(res_first, Series(exp_first)) + + res_last = s.duplicated(keep="last") + tm.assert_series_equal(res_last, Series(exp_last)) + + res_false = s.duplicated(keep=False) + tm.assert_series_equal(res_false, Series(exp_false)) + + @pytest.mark.parametrize("case", [Index([1, 2, 3]), pd.RangeIndex(0, 3)]) + def test_unique_index(self, case): + assert case.is_unique is True + tm.assert_numpy_array_equal(case.duplicated(), np.array([False, False, False])) + + @pytest.mark.parametrize( + "arr, uniques", + [ + ( + [(0, 0), (0, 1), (1, 0), (1, 1), (0, 0), (0, 1), (1, 0), (1, 1)], + [(0, 0), (0, 1), (1, 0), (1, 1)], + ), + ( + [("b", "c"), ("a", "b"), ("a", "b"), ("b", "c")], + [("b", "c"), ("a", "b")], + ), + ([("a", 1), ("b", 2), ("a", 3), ("a", 1)], [("a", 1), ("b", 2), ("a", 3)]), + ], + ) + def test_unique_tuples(self, arr, uniques): + # https://github.com/pandas-dev/pandas/issues/16519 + expected = np.empty(len(uniques), dtype=object) + expected[:] = uniques + + msg = "unique with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = pd.unique(arr) + tm.assert_numpy_array_equal(result, expected) + + @pytest.mark.parametrize( + "array,expected", + [ + ( + [1 + 1j, 0, 1, 1j, 1 + 2j, 1 + 2j], + # Should return a complex dtype in the future + np.array([(1 + 1j), 0j, (1 + 0j), 1j, (1 + 2j)], dtype=object), + ) + ], + ) + def test_unique_complex_numbers(self, array, expected): + # GH 17927 + msg = "unique with argument that is not not a Series" + with tm.assert_produces_warning(FutureWarning, match=msg): + result = pd.unique(array) + tm.assert_numpy_array_equal(result, expected) + + +class TestHashTable: + @pytest.mark.parametrize( + "htable, data", + [ + ( + ht.PyObjectHashTable, + np.array([f"foo_{i}" for i in range(1000)], dtype=object), + ), + ( + ht.StringHashTable, + np.array([f"foo_{i}" for i in range(1000)], dtype=object), + ), + (ht.Float64HashTable, np.arange(1000, dtype=np.float64)), + (ht.Int64HashTable, np.arange(1000, dtype=np.int64)), + (ht.UInt64HashTable, np.arange(1000, dtype=np.uint64)), + ], + ) + def test_hashtable_unique(self, htable, data, writable): + # output of maker has guaranteed unique elements + s = Series(data, dtype=data.dtype) + if htable == ht.Float64HashTable: + # add NaN for float column + s.loc[500] = np.nan + elif htable == ht.PyObjectHashTable: + # use different NaN types for object column + s.loc[500:502] = [np.nan, None, NaT] + + # create duplicated selection + s_duplicated = s.sample(frac=3, replace=True).reset_index(drop=True) + s_duplicated.values.setflags(write=writable) + + # drop_duplicates has own cython code (hash_table_func_helper.pxi) + # and is tested separately; keeps first occurrence like ht.unique() + expected_unique = s_duplicated.drop_duplicates(keep="first").values + result_unique = htable().unique(s_duplicated.values) + tm.assert_numpy_array_equal(result_unique, expected_unique) + + # test return_inverse=True + # reconstruction can only succeed if the inverse is correct + result_unique, result_inverse = htable().unique( + s_duplicated.values, return_inverse=True + ) + tm.assert_numpy_array_equal(result_unique, expected_unique) + reconstr = result_unique[result_inverse] + tm.assert_numpy_array_equal(reconstr, s_duplicated.values) + + @pytest.mark.parametrize( + "htable, data", + [ + ( + ht.PyObjectHashTable, + np.array([f"foo_{i}" for i in range(1000)], dtype=object), + ), + ( + ht.StringHashTable, + np.array([f"foo_{i}" for i in range(1000)], dtype=object), + ), + (ht.Float64HashTable, np.arange(1000, dtype=np.float64)), + (ht.Int64HashTable, np.arange(1000, dtype=np.int64)), + (ht.UInt64HashTable, np.arange(1000, dtype=np.uint64)), + ], + ) + def test_hashtable_factorize(self, htable, writable, data): + # output of maker has guaranteed unique elements + s = Series(data, dtype=data.dtype) + if htable == ht.Float64HashTable: + # add NaN for float column + s.loc[500] = np.nan + elif htable == ht.PyObjectHashTable: + # use different NaN types for object column + s.loc[500:502] = [np.nan, None, NaT] + + # create duplicated selection + s_duplicated = s.sample(frac=3, replace=True).reset_index(drop=True) + s_duplicated.values.setflags(write=writable) + na_mask = s_duplicated.isna().values + + result_unique, result_inverse = htable().factorize(s_duplicated.values) + + # drop_duplicates has own cython code (hash_table_func_helper.pxi) + # and is tested separately; keeps first occurrence like ht.factorize() + # since factorize removes all NaNs, we do the same here + expected_unique = s_duplicated.dropna().drop_duplicates().values + tm.assert_numpy_array_equal(result_unique, expected_unique) + + # reconstruction can only succeed if the inverse is correct. Since + # factorize removes the NaNs, those have to be excluded here as well + result_reconstruct = result_unique[result_inverse[~na_mask]] + expected_reconstruct = s_duplicated.dropna().values + tm.assert_numpy_array_equal(result_reconstruct, expected_reconstruct) + + +class TestRank: + @pytest.mark.parametrize( + "arr", + [ + [np.nan, np.nan, 5.0, 5.0, 5.0, np.nan, 1, 2, 3, np.nan], + [4.0, np.nan, 5.0, 5.0, 5.0, np.nan, 1, 2, 4.0, np.nan], + ], + ) + def test_scipy_compat(self, arr): + sp_stats = pytest.importorskip("scipy.stats") + + arr = np.array(arr) + + mask = ~np.isfinite(arr) + arr = arr.copy() + result = libalgos.rank_1d(arr) + arr[mask] = np.inf + exp = sp_stats.rankdata(arr) + exp[mask] = np.nan + tm.assert_almost_equal(result, exp) + + @pytest.mark.parametrize("dtype", np.typecodes["AllInteger"]) + def test_basic(self, writable, dtype): + exp = np.array([1, 2], dtype=np.float64) + + data = np.array([1, 100], dtype=dtype) + data.setflags(write=writable) + ser = Series(data) + result = algos.rank(ser) + tm.assert_numpy_array_equal(result, exp) + + @pytest.mark.parametrize("dtype", [np.float64, np.uint64]) + def test_uint64_overflow(self, dtype): + exp = np.array([1, 2], dtype=np.float64) + + s = Series([1, 2**63], dtype=dtype) + tm.assert_numpy_array_equal(algos.rank(s), exp) + + def test_too_many_ndims(self): + arr = np.array([[[1, 2, 3], [4, 5, 6], [7, 8, 9]]]) + msg = "Array with ndim > 2 are not supported" + + with pytest.raises(TypeError, match=msg): + algos.rank(arr) + + @pytest.mark.single_cpu + def test_pct_max_many_rows(self): + # GH 18271 + values = np.arange(2**24 + 1) + result = algos.rank(values, pct=True).max() + assert result == 1 + + values = np.arange(2**25 + 2).reshape(2**24 + 1, 2) + result = algos.rank(values, pct=True).max() + assert result == 1 + + +class TestMode: + def test_no_mode(self): + exp = Series([], dtype=np.float64, index=Index([], dtype=int)) + tm.assert_numpy_array_equal(algos.mode(np.array([])), exp.values) + + @pytest.mark.parametrize("dt", np.typecodes["AllInteger"] + np.typecodes["Float"]) + def test_mode_single(self, dt): + # GH 15714 + exp_single = [1] + data_single = [1] + + exp_multi = [1] + data_multi = [1, 1] + + ser = Series(data_single, dtype=dt) + exp = Series(exp_single, dtype=dt) + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + ser = Series(data_multi, dtype=dt) + exp = Series(exp_multi, dtype=dt) + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + def test_mode_obj_int(self): + exp = Series([1], dtype=int) + tm.assert_numpy_array_equal(algos.mode(exp.values), exp.values) + + exp = Series(["a", "b", "c"], dtype=object) + tm.assert_numpy_array_equal(algos.mode(exp.values), exp.values) + + @pytest.mark.parametrize("dt", np.typecodes["AllInteger"] + np.typecodes["Float"]) + def test_number_mode(self, dt): + exp_single = [1] + data_single = [1] * 5 + [2] * 3 + + exp_multi = [1, 3] + data_multi = [1] * 5 + [2] * 3 + [3] * 5 + + ser = Series(data_single, dtype=dt) + exp = Series(exp_single, dtype=dt) + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + ser = Series(data_multi, dtype=dt) + exp = Series(exp_multi, dtype=dt) + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + def test_strobj_mode(self): + exp = ["b"] + data = ["a"] * 2 + ["b"] * 3 + + ser = Series(data, dtype="c") + exp = Series(exp, dtype="c") + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + @pytest.mark.parametrize("dt", [str, object]) + def test_strobj_multi_char(self, dt, using_infer_string): + exp = ["bar"] + data = ["foo"] * 2 + ["bar"] * 3 + + ser = Series(data, dtype=dt) + exp = Series(exp, dtype=dt) + if using_infer_string and dt is str: + tm.assert_extension_array_equal(algos.mode(ser.values), exp.values) + else: + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + def test_datelike_mode(self): + exp = Series(["1900-05-03", "2011-01-03", "2013-01-02"], dtype="M8[ns]") + ser = Series(["2011-01-03", "2013-01-02", "1900-05-03"], dtype="M8[ns]") + tm.assert_extension_array_equal(algos.mode(ser.values), exp._values) + tm.assert_series_equal(ser.mode(), exp) + + exp = Series(["2011-01-03", "2013-01-02"], dtype="M8[ns]") + ser = Series( + ["2011-01-03", "2013-01-02", "1900-05-03", "2011-01-03", "2013-01-02"], + dtype="M8[ns]", + ) + tm.assert_extension_array_equal(algos.mode(ser.values), exp._values) + tm.assert_series_equal(ser.mode(), exp) + + def test_timedelta_mode(self): + exp = Series(["-1 days", "0 days", "1 days"], dtype="timedelta64[ns]") + ser = Series(["1 days", "-1 days", "0 days"], dtype="timedelta64[ns]") + tm.assert_extension_array_equal(algos.mode(ser.values), exp._values) + tm.assert_series_equal(ser.mode(), exp) + + exp = Series(["2 min", "1 day"], dtype="timedelta64[ns]") + ser = Series( + ["1 day", "1 day", "-1 day", "-1 day 2 min", "2 min", "2 min"], + dtype="timedelta64[ns]", + ) + tm.assert_extension_array_equal(algos.mode(ser.values), exp._values) + tm.assert_series_equal(ser.mode(), exp) + + def test_mixed_dtype(self): + exp = Series(["foo"], dtype=object) + ser = Series([1, "foo", "foo"]) + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + def test_uint64_overflow(self): + exp = Series([2**63], dtype=np.uint64) + ser = Series([1, 2**63, 2**63], dtype=np.uint64) + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + exp = Series([1, 2**63], dtype=np.uint64) + ser = Series([1, 2**63], dtype=np.uint64) + tm.assert_numpy_array_equal(algos.mode(ser.values), exp.values) + tm.assert_series_equal(ser.mode(), exp) + + def test_categorical(self): + c = Categorical([1, 2]) + exp = c + res = Series(c).mode()._values + tm.assert_categorical_equal(res, exp) + + c = Categorical([1, "a", "a"]) + exp = Categorical(["a"], categories=[1, "a"]) + res = Series(c).mode()._values + tm.assert_categorical_equal(res, exp) + + c = Categorical([1, 1, 2, 3, 3]) + exp = Categorical([1, 3], categories=[1, 2, 3]) + res = Series(c).mode()._values + tm.assert_categorical_equal(res, exp) + + def test_index(self): + idx = Index([1, 2, 3]) + exp = Series([1, 2, 3], dtype=np.int64) + tm.assert_numpy_array_equal(algos.mode(idx), exp.values) + + idx = Index([1, "a", "a"]) + exp = Series(["a"], dtype=object) + tm.assert_numpy_array_equal(algos.mode(idx), exp.values) + + idx = Index([1, 1, 2, 3, 3]) + exp = Series([1, 3], dtype=np.int64) + tm.assert_numpy_array_equal(algos.mode(idx), exp.values) + + idx = Index( + ["1 day", "1 day", "-1 day", "-1 day 2 min", "2 min", "2 min"], + dtype="timedelta64[ns]", + ) + with pytest.raises(AttributeError, match="TimedeltaIndex"): + # algos.mode expects Arraylike, does *not* unwrap TimedeltaIndex + algos.mode(idx) + + def test_ser_mode_with_name(self): + # GH 46737 + ser = Series([1, 1, 3], name="foo") + result = ser.mode() + expected = Series([1], name="foo") + tm.assert_series_equal(result, expected) + + +class TestDiff: + @pytest.mark.parametrize("dtype", ["M8[ns]", "m8[ns]"]) + def test_diff_datetimelike_nat(self, dtype): + # NaT - NaT is NaT, not 0 + arr = np.arange(12).astype(np.int64).view(dtype).reshape(3, 4) + arr[:, 2] = arr.dtype.type("NaT", "ns") + result = algos.diff(arr, 1, axis=0) + + expected = np.ones(arr.shape, dtype="timedelta64[ns]") * 4 + expected[:, 2] = np.timedelta64("NaT", "ns") + expected[0, :] = np.timedelta64("NaT", "ns") + + tm.assert_numpy_array_equal(result, expected) + + result = algos.diff(arr.T, 1, axis=1) + tm.assert_numpy_array_equal(result, expected.T) + + def test_diff_ea_axis(self): + dta = date_range("2016-01-01", periods=3, tz="US/Pacific")._data + + msg = "cannot diff DatetimeArray on axis=1" + with pytest.raises(ValueError, match=msg): + algos.diff(dta, 1, axis=1) + + @pytest.mark.parametrize("dtype", ["int8", "int16"]) + def test_diff_low_precision_int(self, dtype): + arr = np.array([0, 1, 1, 0, 0], dtype=dtype) + result = algos.diff(arr, 1) + expected = np.array([np.nan, 1, 0, -1, 0], dtype="float32") + tm.assert_numpy_array_equal(result, expected) + + +@pytest.mark.parametrize("op", [np.array, pd.array]) +def test_union_with_duplicates(op): + # GH#36289 + lvals = op([3, 1, 3, 4]) + rvals = op([2, 3, 1, 1]) + expected = op([3, 3, 1, 1, 4, 2]) + if isinstance(expected, np.ndarray): + result = algos.union_with_duplicates(lvals, rvals) + tm.assert_numpy_array_equal(result, expected) + else: + result = algos.union_with_duplicates(lvals, rvals) + tm.assert_extension_array_equal(result, expected) diff --git a/shared/package-files/eb/eb79291d82ace533eb6d16a69012d9b0361b0fe23d51e56117e47c77b24778b8/blob b/shared/package-files/eb/eb79291d82ace533eb6d16a69012d9b0361b0fe23d51e56117e47c77b24778b8/blob new file mode 100644 index 0000000000000000000000000000000000000000..cbd267dd1972dcde98382dda3c84a6a544ddc3e3 --- /dev/null +++ b/shared/package-files/eb/eb79291d82ace533eb6d16a69012d9b0361b0fe23d51e56117e47c77b24778b8/blob @@ -0,0 +1,68 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include "arrow/io/interfaces.h" +#include "parquet/properties.h" +#include "parquet/type_fwd.h" + +namespace parquet { + +class InternalFileDecryptor; +class BloomFilter; + +class PARQUET_EXPORT RowGroupBloomFilterReader { + public: + virtual ~RowGroupBloomFilterReader() = default; + + /// \brief Read bloom filter of a column chunk. + /// + /// \param[in] i column ordinal of the column chunk. + /// \returns bloom filter of the column or nullptr if it does not exist. + /// \throws ParquetException if the index is out of bound, or read bloom + /// filter failed. + virtual std::unique_ptr GetColumnBloomFilter(int i) = 0; +}; + +/// \brief Interface for reading the bloom filter for a Parquet file. +class PARQUET_EXPORT BloomFilterReader { + public: + virtual ~BloomFilterReader() = default; + + /// \brief Create a BloomFilterReader instance. + /// \returns a BloomFilterReader instance. + /// WARNING: The returned BloomFilterReader references to all the input parameters, so + /// it must not outlive all of the input parameters. Usually these input parameters + /// come from the same ParquetFileReader object, so it must not outlive the reader + /// that creates this BloomFilterReader. + static std::unique_ptr Make( + std::shared_ptr<::arrow::io::RandomAccessFile> input, + std::shared_ptr file_metadata, const ReaderProperties& properties, + std::shared_ptr file_decryptor = NULLPTR); + + /// \brief Get the bloom filter reader of a specific row group. + /// \param[in] i row group ordinal to get bloom filter reader. + /// \returns RowGroupBloomFilterReader of the specified row group. A nullptr may or may + /// not be returned if the bloom filter for the row group is unavailable. It + /// is the caller's responsibility to check the return value of follow-up calls + /// to the RowGroupBloomFilterReader. + /// \throws ParquetException if the index is out of bound. + virtual std::shared_ptr RowGroup(int i) = 0; +}; + +} // namespace parquet diff --git a/shared/package-files/eb/eb796a36e0eef30c3c598a76d2ae16147cc2d2d93ff5df4e7068084f3d8387c2/blob b/shared/package-files/eb/eb796a36e0eef30c3c598a76d2ae16147cc2d2d93ff5df4e7068084f3d8387c2/blob new file mode 100644 index 0000000000000000000000000000000000000000..500571cde0a68bb59ff6950fe3bce3c4747830ad Binary files /dev/null and b/shared/package-files/eb/eb796a36e0eef30c3c598a76d2ae16147cc2d2d93ff5df4e7068084f3d8387c2/blob differ diff --git a/shared/package-files/eb/eb7c259ceba0d7349dd6eafb71a0e9d05d33d881bb4231db505182844f1ffa70/blob b/shared/package-files/eb/eb7c259ceba0d7349dd6eafb71a0e9d05d33d881bb4231db505182844f1ffa70/blob new file mode 100644 index 0000000000000000000000000000000000000000..460888f6d75ecf600203f38939f9c82fd2d5a1be --- /dev/null +++ b/shared/package-files/eb/eb7c259ceba0d7349dd6eafb71a0e9d05d33d881bb4231db505182844f1ffa70/blob @@ -0,0 +1,251 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#ifdef GANDIVA_IR + +// The LLVM IR code doesn't have an NDEBUG mode. And, it shouldn't include references to +// streams or stdc++. So, making the DCHECK calls void in that case. + +# define ARROW_IGNORE_EXPR(expr) ((void)(expr)) + +# define ARROW_DCHECK(condition) ARROW_IGNORE_EXPR(condition) +# define ARROW_DCHECK_OK(status) ARROW_IGNORE_EXPR(status) +# define ARROW_DCHECK_EQ(val1, val2) ARROW_IGNORE_EXPR(val1) +# define ARROW_DCHECK_NE(val1, val2) ARROW_IGNORE_EXPR(val1) +# define ARROW_DCHECK_LE(val1, val2) ARROW_IGNORE_EXPR(val1) +# define ARROW_DCHECK_LT(val1, val2) ARROW_IGNORE_EXPR(val1) +# define ARROW_DCHECK_GE(val1, val2) ARROW_IGNORE_EXPR(val1) +# define ARROW_DCHECK_GT(val1, val2) ARROW_IGNORE_EXPR(val1) + +#else // !GANDIVA_IR + +# include +# include +# include + +# include "arrow/util/macros.h" +# include "arrow/util/visibility.h" + +namespace arrow { +namespace util { + +enum class ArrowLogLevel : int { + ARROW_TRACE = -2, + ARROW_DEBUG = -1, + ARROW_INFO = 0, + ARROW_WARNING = 1, + ARROW_ERROR = 2, + ARROW_FATAL = 3 +}; + +# define ARROW_LOG_INTERNAL(level) ::arrow::util::ArrowLog(__FILE__, __LINE__, level) +# define ARROW_LOG(level) ARROW_LOG_INTERNAL(::arrow::util::ArrowLogLevel::ARROW_##level) + +# define ARROW_IGNORE_EXPR(expr) ((void)(expr)) + +# define ARROW_CHECK_OR_LOG(condition, level) \ + ARROW_PREDICT_TRUE(condition) \ + ? ARROW_IGNORE_EXPR(0) \ + : ::arrow::util::Voidify() & ARROW_LOG(level) << " Check failed: " #condition " " + +# define ARROW_CHECK(condition) ARROW_CHECK_OR_LOG(condition, FATAL) + +// If 'to_call' returns a bad status, CHECK immediately with a logged message +// of 'msg' followed by the status. +# define ARROW_CHECK_OK_PREPEND(to_call, msg, level) \ + do { \ + ::arrow::Status _s = ::arrow::ToStatus(to_call); \ + ARROW_CHECK_OR_LOG(_s.ok(), level) \ + << "Operation failed: " << ARROW_STRINGIFY(to_call) << "\n" \ + << (msg) << ": " << _s.ToString(); \ + } while (false) + +// If the status is bad, CHECK immediately, appending the status to the +// logged message. +# define ARROW_CHECK_OK(s) ARROW_CHECK_OK_PREPEND(s, "Bad status", FATAL) + +# define ARROW_CHECK_EQ(val1, val2) ARROW_CHECK((val1) == (val2)) +# define ARROW_CHECK_NE(val1, val2) ARROW_CHECK((val1) != (val2)) +# define ARROW_CHECK_LE(val1, val2) ARROW_CHECK((val1) <= (val2)) +# define ARROW_CHECK_LT(val1, val2) ARROW_CHECK((val1) < (val2)) +# define ARROW_CHECK_GE(val1, val2) ARROW_CHECK((val1) >= (val2)) +# define ARROW_CHECK_GT(val1, val2) ARROW_CHECK((val1) > (val2)) + +# ifdef NDEBUG +# define ARROW_DFATAL ::arrow::util::ArrowLogLevel::ARROW_WARNING + +// CAUTION: DCHECK_OK() always evaluates its argument, but other DCHECK*() macros +// only do so in debug mode. + +# define ARROW_DCHECK(condition) \ + while (false) ARROW_IGNORE_EXPR(condition); \ + while (false) ::arrow::util::detail::NullLog() +# define ARROW_DCHECK_OK(s) \ + ARROW_IGNORE_EXPR(s); \ + while (false) ::arrow::util::detail::NullLog() +# define ARROW_DCHECK_EQ(val1, val2) \ + while (false) ARROW_IGNORE_EXPR(val1); \ + while (false) ARROW_IGNORE_EXPR(val2); \ + while (false) ::arrow::util::detail::NullLog() +# define ARROW_DCHECK_NE(val1, val2) \ + while (false) ARROW_IGNORE_EXPR(val1); \ + while (false) ARROW_IGNORE_EXPR(val2); \ + while (false) ::arrow::util::detail::NullLog() +# define ARROW_DCHECK_LE(val1, val2) \ + while (false) ARROW_IGNORE_EXPR(val1); \ + while (false) ARROW_IGNORE_EXPR(val2); \ + while (false) ::arrow::util::detail::NullLog() +# define ARROW_DCHECK_LT(val1, val2) \ + while (false) ARROW_IGNORE_EXPR(val1); \ + while (false) ARROW_IGNORE_EXPR(val2); \ + while (false) ::arrow::util::detail::NullLog() +# define ARROW_DCHECK_GE(val1, val2) \ + while (false) ARROW_IGNORE_EXPR(val1); \ + while (false) ARROW_IGNORE_EXPR(val2); \ + while (false) ::arrow::util::detail::NullLog() +# define ARROW_DCHECK_GT(val1, val2) \ + while (false) ARROW_IGNORE_EXPR(val1); \ + while (false) ARROW_IGNORE_EXPR(val2); \ + while (false) ::arrow::util::detail::NullLog() + +# else +# define ARROW_DFATAL ::arrow::util::ArrowLogLevel::ARROW_FATAL + +# define ARROW_DCHECK ARROW_CHECK +# define ARROW_DCHECK_OK ARROW_CHECK_OK +# define ARROW_DCHECK_EQ ARROW_CHECK_EQ +# define ARROW_DCHECK_NE ARROW_CHECK_NE +# define ARROW_DCHECK_LE ARROW_CHECK_LE +# define ARROW_DCHECK_LT ARROW_CHECK_LT +# define ARROW_DCHECK_GE ARROW_CHECK_GE +# define ARROW_DCHECK_GT ARROW_CHECK_GT + +# endif // NDEBUG + +// This code is adapted from +// https://github.com/ray-project/ray/blob/master/src/ray/util/logging.h. + +// To make the logging lib pluggable with other logging libs and make +// the implementation unawared by the user, ArrowLog is only a declaration +// which hide the implementation into logging.cc file. +// In logging.cc, we can choose different log libs using different macros. + +// This is also a null log which does not output anything. +class ARROW_EXPORT ArrowLogBase { + public: + virtual ~ArrowLogBase() {} + + virtual bool IsEnabled() const { return false; } + + template + ArrowLogBase& operator<<(const T& t) { + if (IsEnabled()) { + Stream() << t; + } + return *this; + } + + protected: + virtual std::ostream& Stream() = 0; +}; + +class ARROW_EXPORT ArrowLog : public ArrowLogBase { + public: + ArrowLog(const char* file_name, int line_number, ArrowLogLevel severity); + ~ArrowLog() override; + + /// Return whether or not current logging instance is enabled. + /// + /// \return True if logging is enabled and false otherwise. + bool IsEnabled() const override; + + /// The init function of arrow log for a program which should be called only once. + /// + /// \param appName The app name which starts the log. + /// \param severity_threshold Logging threshold for the program. + /// \param logDir Logging output file name. If empty, the log won't output to file. + static void StartArrowLog(const std::string& appName, + ArrowLogLevel severity_threshold = ArrowLogLevel::ARROW_INFO, + const std::string& logDir = ""); + + /// The shutdown function of arrow log, it should be used with StartArrowLog as a pair. + static void ShutDownArrowLog(); + + /// Install the failure signal handler to output call stack when crash. + /// If glog is not installed, this function won't do anything. + static void InstallFailureSignalHandler(); + + /// Uninstall the signal actions installed by InstallFailureSignalHandler. + static void UninstallSignalAction(); + + /// Return whether or not the log level is enabled in current setting. + /// + /// \param log_level The input log level to test. + /// \return True if input log level is not lower than the threshold. + static bool IsLevelEnabled(ArrowLogLevel log_level); + + private: + ARROW_DISALLOW_COPY_AND_ASSIGN(ArrowLog); + + // Hide the implementation of log provider by void *. + // Otherwise, lib user may define the same macro to use the correct header file. + void* logging_provider_; + /// True if log messages should be logged and false if they should be ignored. + bool is_enabled_; + + static ArrowLogLevel severity_threshold_; + + protected: + std::ostream& Stream() override; +}; + +// This class make ARROW_CHECK compilation pass to change the << operator to void. +// This class is copied from glog. +class ARROW_EXPORT Voidify { + public: + Voidify() {} + // This has to be an operator with a precedence lower than << but + // higher than ?: + void operator&(ArrowLogBase&) {} +}; + +namespace detail { + +/// @brief A helper for the nil log sink. +/// +/// Using this helper is analogous to sending log messages to /dev/null: +/// nothing gets logged. +class NullLog { + public: + /// The no-op output operator. + /// + /// @param [in] t + /// The object to send into the nil sink. + /// @return Reference to the updated object. + template + NullLog& operator<<(const T& t) { + return *this; + } +}; + +} // namespace detail +} // namespace util +} // namespace arrow + +#endif // GANDIVA_IR diff --git a/shared/package-files/eb/eb7d1c5dfc5b60d340e9daa1d82014736148a3bfa4b216b3fc25c45a8476c0b1/blob b/shared/package-files/eb/eb7d1c5dfc5b60d340e9daa1d82014736148a3bfa4b216b3fc25c45a8476c0b1/blob new file mode 100644 index 0000000000000000000000000000000000000000..58cf6588e04b5b1b875a5355cc2b172eb77e7c97 --- /dev/null +++ b/shared/package-files/eb/eb7d1c5dfc5b60d340e9daa1d82014736148a3bfa4b216b3fc25c45a8476c0b1/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API int64_t dense_dim(const at::Tensor & self); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/eb/eb8779e9fbd95e7818653ee73801de151517efb789d40d11deba5f58153e992a/blob b/shared/package-files/eb/eb8779e9fbd95e7818653ee73801de151517efb789d40d11deba5f58153e992a/blob new file mode 100644 index 0000000000000000000000000000000000000000..58745205319ac3548ad5feb49371d2d154b2d3c8 --- /dev/null +++ b/shared/package-files/eb/eb8779e9fbd95e7818653ee73801de151517efb789d40d11deba5f58153e992a/blob @@ -0,0 +1,240 @@ +import operator +import sys +from .libmp import int_types, mpf_hash, bitcount, from_man_exp, HASH_MODULUS + +new = object.__new__ + +def create_reduced(p, q, _cache={}): + key = p, q + if key in _cache: + return _cache[key] + x, y = p, q + while y: + x, y = y, x % y + if x != 1: + p //= x + q //= x + v = new(mpq) + v._mpq_ = p, q + # Speedup integers, half-integers and other small fractions + if q <= 4 and abs(key[0]) < 100: + _cache[key] = v + return v + +class mpq(object): + """ + Exact rational type, currently only intended for internal use. + """ + + __slots__ = ["_mpq_"] + + def __new__(cls, p, q=1): + if type(p) is tuple: + p, q = p + elif hasattr(p, '_mpq_'): + p, q = p._mpq_ + return create_reduced(p, q) + + def __repr__(s): + return "mpq(%s,%s)" % s._mpq_ + + def __str__(s): + return "(%s/%s)" % s._mpq_ + + def __int__(s): + a, b = s._mpq_ + return a // b + + def __nonzero__(s): + return bool(s._mpq_[0]) + + __bool__ = __nonzero__ + + def __hash__(s): + a, b = s._mpq_ + if sys.version_info >= (3, 2): + inverse = pow(b, HASH_MODULUS-2, HASH_MODULUS) + if not inverse: + h = sys.hash_info.inf + else: + h = (abs(a) * inverse) % HASH_MODULUS + if a < 0: h = -h + if h == -1: h = -2 + return h + else: + if b == 1: + return hash(a) + # Power of two: mpf compatible hash + if not (b & (b-1)): + return mpf_hash(from_man_exp(a, 1-bitcount(b))) + return hash((a,b)) + + def __eq__(s, t): + ttype = type(t) + if ttype is mpq: + return s._mpq_ == t._mpq_ + if ttype in int_types: + a, b = s._mpq_ + if b != 1: + return False + return a == t + return NotImplemented + + def __ne__(s, t): + ttype = type(t) + if ttype is mpq: + return s._mpq_ != t._mpq_ + if ttype in int_types: + a, b = s._mpq_ + if b != 1: + return True + return a != t + return NotImplemented + + def _cmp(s, t, op): + ttype = type(t) + if ttype in int_types: + a, b = s._mpq_ + return op(a, t*b) + if ttype is mpq: + a, b = s._mpq_ + c, d = t._mpq_ + return op(a*d, b*c) + return NotImplementedError + + def __lt__(s, t): return s._cmp(t, operator.lt) + def __le__(s, t): return s._cmp(t, operator.le) + def __gt__(s, t): return s._cmp(t, operator.gt) + def __ge__(s, t): return s._cmp(t, operator.ge) + + def __abs__(s): + a, b = s._mpq_ + if a >= 0: + return s + v = new(mpq) + v._mpq_ = -a, b + return v + + def __neg__(s): + a, b = s._mpq_ + v = new(mpq) + v._mpq_ = -a, b + return v + + def __pos__(s): + return s + + def __add__(s, t): + ttype = type(t) + if ttype is mpq: + a, b = s._mpq_ + c, d = t._mpq_ + return create_reduced(a*d+b*c, b*d) + if ttype in int_types: + a, b = s._mpq_ + v = new(mpq) + v._mpq_ = a+b*t, b + return v + return NotImplemented + + __radd__ = __add__ + + def __sub__(s, t): + ttype = type(t) + if ttype is mpq: + a, b = s._mpq_ + c, d = t._mpq_ + return create_reduced(a*d-b*c, b*d) + if ttype in int_types: + a, b = s._mpq_ + v = new(mpq) + v._mpq_ = a-b*t, b + return v + return NotImplemented + + def __rsub__(s, t): + ttype = type(t) + if ttype is mpq: + a, b = s._mpq_ + c, d = t._mpq_ + return create_reduced(b*c-a*d, b*d) + if ttype in int_types: + a, b = s._mpq_ + v = new(mpq) + v._mpq_ = b*t-a, b + return v + return NotImplemented + + def __mul__(s, t): + ttype = type(t) + if ttype is mpq: + a, b = s._mpq_ + c, d = t._mpq_ + return create_reduced(a*c, b*d) + if ttype in int_types: + a, b = s._mpq_ + return create_reduced(a*t, b) + return NotImplemented + + __rmul__ = __mul__ + + def __div__(s, t): + ttype = type(t) + if ttype is mpq: + a, b = s._mpq_ + c, d = t._mpq_ + return create_reduced(a*d, b*c) + if ttype in int_types: + a, b = s._mpq_ + return create_reduced(a, b*t) + return NotImplemented + + def __rdiv__(s, t): + ttype = type(t) + if ttype is mpq: + a, b = s._mpq_ + c, d = t._mpq_ + return create_reduced(b*c, a*d) + if ttype in int_types: + a, b = s._mpq_ + return create_reduced(b*t, a) + return NotImplemented + + def __pow__(s, t): + ttype = type(t) + if ttype in int_types: + a, b = s._mpq_ + if t: + if t < 0: + a, b, t = b, a, -t + v = new(mpq) + v._mpq_ = a**t, b**t + return v + raise ZeroDivisionError + return NotImplemented + + +mpq_1 = mpq((1,1)) +mpq_0 = mpq((0,1)) +mpq_1_2 = mpq((1,2)) +mpq_3_2 = mpq((3,2)) +mpq_1_4 = mpq((1,4)) +mpq_1_16 = mpq((1,16)) +mpq_3_16 = mpq((3,16)) +mpq_5_2 = mpq((5,2)) +mpq_3_4 = mpq((3,4)) +mpq_7_4 = mpq((7,4)) +mpq_5_4 = mpq((5,4)) + + +# Register with "numbers" ABC +# We do not subclass, hence we do not use the @abstractmethod checks. While +# this is less invasive it may turn out that we do not actually support +# parts of the expected interfaces. See +# http://docs.python.org/2/library/numbers.html for list of abstract +# methods. +try: + import numbers + numbers.Rational.register(mpq) +except ImportError: + pass diff --git a/shared/package-files/eb/eb8e0a399276c6e8a71c689fd1e8d223fe200ed3f750addf4375677b59bb103a/blob b/shared/package-files/eb/eb8e0a399276c6e8a71c689fd1e8d223fe200ed3f750addf4375677b59bb103a/blob new file mode 100644 index 0000000000000000000000000000000000000000..1897702753778b66d4d2b97b3f444c26322647ea Binary files /dev/null and b/shared/package-files/eb/eb8e0a399276c6e8a71c689fd1e8d223fe200ed3f750addf4375677b59bb103a/blob differ diff --git a/shared/package-files/eb/eb8ed7f57368bde7fe80307bfe9f90ed3b2443e6e81a05b931e766549b69e7cb/blob b/shared/package-files/eb/eb8ed7f57368bde7fe80307bfe9f90ed3b2443e6e81a05b931e766549b69e7cb/blob new file mode 100644 index 0000000000000000000000000000000000000000..1ca105f1d0aff4cfb7ae4dbaaf4dc33ea9cfa3b2 --- /dev/null +++ b/shared/package-files/eb/eb8ed7f57368bde7fe80307bfe9f90ed3b2443e6e81a05b931e766549b69e7cb/blob @@ -0,0 +1,46 @@ +#if !defined(C10_INTERNAL_INCLUDE_COMPLEX_REMAINING_H) +#error \ + "c10/util/complex_utils.h is not meant to be individually included. Include c10/util/complex.h instead." +#endif + +#include + +namespace c10 { + +template +struct is_complex : public std::false_type {}; + +template +struct is_complex> : public std::true_type {}; + +template +struct is_complex> : public std::true_type {}; + +// Extract double from std::complex; is identity otherwise +// TODO: Write in more idiomatic C++17 +template +struct scalar_value_type { + using type = T; +}; +template +struct scalar_value_type> { + using type = T; +}; +template +struct scalar_value_type> { + using type = T; +}; + +} // namespace c10 + +namespace std { + +template +class numeric_limits> : public numeric_limits {}; + +template +bool isnan(const c10::complex& v) { + return std::isnan(v.real()) || std::isnan(v.imag()); +} + +} // namespace std diff --git a/shared/package-files/eb/eb9182c7f7185adbd8d6e2c8cba225265c39841c51f5ce748dcf6caaa6b4fda9/blob b/shared/package-files/eb/eb9182c7f7185adbd8d6e2c8cba225265c39841c51f5ce748dcf6caaa6b4fda9/blob new file mode 100644 index 0000000000000000000000000000000000000000..fc8420ae6553350ce104b30db4a6066b99eed424 --- /dev/null +++ b/shared/package-files/eb/eb9182c7f7185adbd8d6e2c8cba225265c39841c51f5ce748dcf6caaa6b4fda9/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb9182c7f7185adbd8d6e2c8cba225265c39841c51f5ce748dcf6caaa6b4fda9 +size 270816 diff --git a/shared/package-files/eb/eb92977d452fa7cc174aa8108acb98964860faa1e3055e455d87ad2fc05afab7/blob b/shared/package-files/eb/eb92977d452fa7cc174aa8108acb98964860faa1e3055e455d87ad2fc05afab7/blob new file mode 100644 index 0000000000000000000000000000000000000000..c8149abc30c40d6b9528fa9f3a98b0340d5914d3 --- /dev/null +++ b/shared/package-files/eb/eb92977d452fa7cc174aa8108acb98964860faa1e3055e455d87ad2fc05afab7/blob @@ -0,0 +1,350 @@ +import os +import pytest +from tempfile import mkdtemp, mkstemp, NamedTemporaryFile +from shutil import rmtree + +import numpy.lib._datasource as datasource +from numpy.testing import assert_, assert_equal, assert_raises + +import urllib.request as urllib_request +from urllib.parse import urlparse +from urllib.error import URLError + + +def urlopen_stub(url, data=None): + '''Stub to replace urlopen for testing.''' + if url == valid_httpurl(): + tmpfile = NamedTemporaryFile(prefix='urltmp_') + return tmpfile + else: + raise URLError('Name or service not known') + +# setup and teardown +old_urlopen = None + + +def setup_module(): + global old_urlopen + + old_urlopen = urllib_request.urlopen + urllib_request.urlopen = urlopen_stub + + +def teardown_module(): + urllib_request.urlopen = old_urlopen + +# A valid website for more robust testing +http_path = 'http://www.google.com/' +http_file = 'index.html' + +http_fakepath = 'http://fake.abc.web/site/' +http_fakefile = 'fake.txt' + +malicious_files = ['/etc/shadow', '../../shadow', + '..\\system.dat', 'c:\\windows\\system.dat'] + +magic_line = b'three is the magic number' + + +# Utility functions used by many tests +def valid_textfile(filedir): + # Generate and return a valid temporary file. + fd, path = mkstemp(suffix='.txt', prefix='dstmp_', dir=filedir, text=True) + os.close(fd) + return path + + +def invalid_textfile(filedir): + # Generate and return an invalid filename. + fd, path = mkstemp(suffix='.txt', prefix='dstmp_', dir=filedir) + os.close(fd) + os.remove(path) + return path + + +def valid_httpurl(): + return http_path+http_file + + +def invalid_httpurl(): + return http_fakepath+http_fakefile + + +def valid_baseurl(): + return http_path + + +def invalid_baseurl(): + return http_fakepath + + +def valid_httpfile(): + return http_file + + +def invalid_httpfile(): + return http_fakefile + + +class TestDataSourceOpen: + def setup_method(self): + self.tmpdir = mkdtemp() + self.ds = datasource.DataSource(self.tmpdir) + + def teardown_method(self): + rmtree(self.tmpdir) + del self.ds + + def test_ValidHTTP(self): + fh = self.ds.open(valid_httpurl()) + assert_(fh) + fh.close() + + def test_InvalidHTTP(self): + url = invalid_httpurl() + assert_raises(OSError, self.ds.open, url) + try: + self.ds.open(url) + except OSError as e: + # Regression test for bug fixed in r4342. + assert_(e.errno is None) + + def test_InvalidHTTPCacheURLError(self): + assert_raises(URLError, self.ds._cache, invalid_httpurl()) + + def test_ValidFile(self): + local_file = valid_textfile(self.tmpdir) + fh = self.ds.open(local_file) + assert_(fh) + fh.close() + + def test_InvalidFile(self): + invalid_file = invalid_textfile(self.tmpdir) + assert_raises(OSError, self.ds.open, invalid_file) + + def test_ValidGzipFile(self): + try: + import gzip + except ImportError: + # We don't have the gzip capabilities to test. + pytest.skip() + # Test datasource's internal file_opener for Gzip files. + filepath = os.path.join(self.tmpdir, 'foobar.txt.gz') + fp = gzip.open(filepath, 'w') + fp.write(magic_line) + fp.close() + fp = self.ds.open(filepath) + result = fp.readline() + fp.close() + assert_equal(magic_line, result) + + def test_ValidBz2File(self): + try: + import bz2 + except ImportError: + # We don't have the bz2 capabilities to test. + pytest.skip() + # Test datasource's internal file_opener for BZip2 files. + filepath = os.path.join(self.tmpdir, 'foobar.txt.bz2') + fp = bz2.BZ2File(filepath, 'w') + fp.write(magic_line) + fp.close() + fp = self.ds.open(filepath) + result = fp.readline() + fp.close() + assert_equal(magic_line, result) + + +class TestDataSourceExists: + def setup_method(self): + self.tmpdir = mkdtemp() + self.ds = datasource.DataSource(self.tmpdir) + + def teardown_method(self): + rmtree(self.tmpdir) + del self.ds + + def test_ValidHTTP(self): + assert_(self.ds.exists(valid_httpurl())) + + def test_InvalidHTTP(self): + assert_equal(self.ds.exists(invalid_httpurl()), False) + + def test_ValidFile(self): + # Test valid file in destpath + tmpfile = valid_textfile(self.tmpdir) + assert_(self.ds.exists(tmpfile)) + # Test valid local file not in destpath + localdir = mkdtemp() + tmpfile = valid_textfile(localdir) + assert_(self.ds.exists(tmpfile)) + rmtree(localdir) + + def test_InvalidFile(self): + tmpfile = invalid_textfile(self.tmpdir) + assert_equal(self.ds.exists(tmpfile), False) + + +class TestDataSourceAbspath: + def setup_method(self): + self.tmpdir = os.path.abspath(mkdtemp()) + self.ds = datasource.DataSource(self.tmpdir) + + def teardown_method(self): + rmtree(self.tmpdir) + del self.ds + + def test_ValidHTTP(self): + scheme, netloc, upath, pms, qry, frg = urlparse(valid_httpurl()) + local_path = os.path.join(self.tmpdir, netloc, + upath.strip(os.sep).strip('/')) + assert_equal(local_path, self.ds.abspath(valid_httpurl())) + + def test_ValidFile(self): + tmpfile = valid_textfile(self.tmpdir) + tmpfilename = os.path.split(tmpfile)[-1] + # Test with filename only + assert_equal(tmpfile, self.ds.abspath(tmpfilename)) + # Test filename with complete path + assert_equal(tmpfile, self.ds.abspath(tmpfile)) + + def test_InvalidHTTP(self): + scheme, netloc, upath, pms, qry, frg = urlparse(invalid_httpurl()) + invalidhttp = os.path.join(self.tmpdir, netloc, + upath.strip(os.sep).strip('/')) + assert_(invalidhttp != self.ds.abspath(valid_httpurl())) + + def test_InvalidFile(self): + invalidfile = valid_textfile(self.tmpdir) + tmpfile = valid_textfile(self.tmpdir) + tmpfilename = os.path.split(tmpfile)[-1] + # Test with filename only + assert_(invalidfile != self.ds.abspath(tmpfilename)) + # Test filename with complete path + assert_(invalidfile != self.ds.abspath(tmpfile)) + + def test_sandboxing(self): + tmpfile = valid_textfile(self.tmpdir) + tmpfilename = os.path.split(tmpfile)[-1] + + tmp_path = lambda x: os.path.abspath(self.ds.abspath(x)) + + assert_(tmp_path(valid_httpurl()).startswith(self.tmpdir)) + assert_(tmp_path(invalid_httpurl()).startswith(self.tmpdir)) + assert_(tmp_path(tmpfile).startswith(self.tmpdir)) + assert_(tmp_path(tmpfilename).startswith(self.tmpdir)) + for fn in malicious_files: + assert_(tmp_path(http_path+fn).startswith(self.tmpdir)) + assert_(tmp_path(fn).startswith(self.tmpdir)) + + def test_windows_os_sep(self): + orig_os_sep = os.sep + try: + os.sep = '\\' + self.test_ValidHTTP() + self.test_ValidFile() + self.test_InvalidHTTP() + self.test_InvalidFile() + self.test_sandboxing() + finally: + os.sep = orig_os_sep + + +class TestRepositoryAbspath: + def setup_method(self): + self.tmpdir = os.path.abspath(mkdtemp()) + self.repos = datasource.Repository(valid_baseurl(), self.tmpdir) + + def teardown_method(self): + rmtree(self.tmpdir) + del self.repos + + def test_ValidHTTP(self): + scheme, netloc, upath, pms, qry, frg = urlparse(valid_httpurl()) + local_path = os.path.join(self.repos._destpath, netloc, + upath.strip(os.sep).strip('/')) + filepath = self.repos.abspath(valid_httpfile()) + assert_equal(local_path, filepath) + + def test_sandboxing(self): + tmp_path = lambda x: os.path.abspath(self.repos.abspath(x)) + assert_(tmp_path(valid_httpfile()).startswith(self.tmpdir)) + for fn in malicious_files: + assert_(tmp_path(http_path+fn).startswith(self.tmpdir)) + assert_(tmp_path(fn).startswith(self.tmpdir)) + + def test_windows_os_sep(self): + orig_os_sep = os.sep + try: + os.sep = '\\' + self.test_ValidHTTP() + self.test_sandboxing() + finally: + os.sep = orig_os_sep + + +class TestRepositoryExists: + def setup_method(self): + self.tmpdir = mkdtemp() + self.repos = datasource.Repository(valid_baseurl(), self.tmpdir) + + def teardown_method(self): + rmtree(self.tmpdir) + del self.repos + + def test_ValidFile(self): + # Create local temp file + tmpfile = valid_textfile(self.tmpdir) + assert_(self.repos.exists(tmpfile)) + + def test_InvalidFile(self): + tmpfile = invalid_textfile(self.tmpdir) + assert_equal(self.repos.exists(tmpfile), False) + + def test_RemoveHTTPFile(self): + assert_(self.repos.exists(valid_httpurl())) + + def test_CachedHTTPFile(self): + localfile = valid_httpurl() + # Create a locally cached temp file with an URL based + # directory structure. This is similar to what Repository.open + # would do. + scheme, netloc, upath, pms, qry, frg = urlparse(localfile) + local_path = os.path.join(self.repos._destpath, netloc) + os.mkdir(local_path, 0o0700) + tmpfile = valid_textfile(local_path) + assert_(self.repos.exists(tmpfile)) + + +class TestOpenFunc: + def setup_method(self): + self.tmpdir = mkdtemp() + + def teardown_method(self): + rmtree(self.tmpdir) + + def test_DataSourceOpen(self): + local_file = valid_textfile(self.tmpdir) + # Test case where destpath is passed in + fp = datasource.open(local_file, destpath=self.tmpdir) + assert_(fp) + fp.close() + # Test case where default destpath is used + fp = datasource.open(local_file) + assert_(fp) + fp.close() + +def test_del_attr_handling(): + # DataSource __del__ can be called + # even if __init__ fails when the + # Exception object is caught by the + # caller as happens in refguide_check + # is_deprecated() function + + ds = datasource.DataSource() + # simulate failed __init__ by removing key attribute + # produced within __init__ and expected by __del__ + del ds._istmpdest + # should not raise an AttributeError if __del__ + # gracefully handles failed __init__: + ds.__del__() diff --git a/shared/package-files/eb/eb9b3edb0f65b24240cd0622a39f4d0406bd4c7efc254f7999c4d7dff5d10a87/blob b/shared/package-files/eb/eb9b3edb0f65b24240cd0622a39f4d0406bd4c7efc254f7999c4d7dff5d10a87/blob new file mode 100644 index 0000000000000000000000000000000000000000..c6636df9bb3025de78b00b1f5b4265783c05e148 --- /dev/null +++ b/shared/package-files/eb/eb9b3edb0f65b24240cd0622a39f4d0406bd4c7efc254f7999c4d7dff5d10a87/blob @@ -0,0 +1,750 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include // IWYU pragma: export +#include +#include +#include +#include +#include + +#include "arrow/array/statistics.h" +#include "arrow/buffer.h" +#include "arrow/result.h" +#include "arrow/type.h" +#include "arrow/type_fwd.h" +#include "arrow/util/bit_util.h" +#include "arrow/util/macros.h" +#include "arrow/util/span.h" +#include "arrow/util/visibility.h" + +namespace arrow { + +namespace internal { +// ---------------------------------------------------------------------- +// Null handling for types without a validity bitmap and the dictionary type + +ARROW_EXPORT bool IsNullSparseUnion(const ArrayData& data, int64_t i); +ARROW_EXPORT bool IsNullDenseUnion(const ArrayData& data, int64_t i); +ARROW_EXPORT bool IsNullRunEndEncoded(const ArrayData& data, int64_t i); + +ARROW_EXPORT bool UnionMayHaveLogicalNulls(const ArrayData& data); +ARROW_EXPORT bool RunEndEncodedMayHaveLogicalNulls(const ArrayData& data); +ARROW_EXPORT bool DictionaryMayHaveLogicalNulls(const ArrayData& data); + +} // namespace internal + +// When slicing, we do not know the null count of the sliced range without +// doing some computation. To avoid doing this eagerly, we set the null count +// to -1 (any negative number will do). When Array::null_count is called the +// first time, the null count will be computed. See ARROW-33 +constexpr int64_t kUnknownNullCount = -1; + +// ---------------------------------------------------------------------- +// Generic array data container + +/// \class ArrayData +/// \brief Mutable container for generic Arrow array data +/// +/// This data structure is a self-contained representation of the memory and +/// metadata inside an Arrow array data structure (called vectors in Java). The +/// Array class and its concrete subclasses provide strongly-typed accessors +/// with support for the visitor pattern and other affordances. +/// +/// This class is designed for easy internal data manipulation, analytical data +/// processing, and data transport to and from IPC messages. +/// +/// This class is also useful in an analytics setting where memory may be +/// efficiently reused. For example, computing the Abs of a numeric array +/// should return null iff the input is null: therefore, an Abs function can +/// reuse the validity bitmap (a Buffer) of its input as the validity bitmap +/// of its output. +/// +/// This class is meant mostly for immutable data access. Any mutable access +/// (either to ArrayData members or to the contents of its Buffers) should take +/// into account the fact that ArrayData instances are typically wrapped in a +/// shared_ptr and can therefore have multiple owners at any given time. +/// Therefore, mutable access is discouraged except when initially populating +/// the ArrayData. +struct ARROW_EXPORT ArrayData { + ArrayData() = default; + + ArrayData(std::shared_ptr type, int64_t length, + int64_t null_count = kUnknownNullCount, int64_t offset = 0) + : type(std::move(type)), length(length), null_count(null_count), offset(offset) {} + + ArrayData(std::shared_ptr type, int64_t length, + std::vector> buffers, + int64_t null_count = kUnknownNullCount, int64_t offset = 0) + : ArrayData(std::move(type), length, null_count, offset) { + this->buffers = std::move(buffers); +#ifndef NDEBUG + // in debug mode, call the `device_type` function to trigger + // the DCHECKs that validate all the buffers are on the same device + ARROW_UNUSED(this->device_type()); +#endif + } + + ArrayData(std::shared_ptr type, int64_t length, + std::vector> buffers, + std::vector> child_data, + int64_t null_count = kUnknownNullCount, int64_t offset = 0) + : ArrayData(std::move(type), length, null_count, offset) { + this->buffers = std::move(buffers); + this->child_data = std::move(child_data); +#ifndef NDEBUG + // in debug mode, call the `device_type` function to trigger + // the DCHECKs that validate all the buffers (including children) + // are on the same device + ARROW_UNUSED(this->device_type()); +#endif + } + + static std::shared_ptr Make(std::shared_ptr type, int64_t length, + std::vector> buffers, + int64_t null_count = kUnknownNullCount, + int64_t offset = 0); + + static std::shared_ptr Make( + std::shared_ptr type, int64_t length, + std::vector> buffers, + std::vector> child_data, + int64_t null_count = kUnknownNullCount, int64_t offset = 0); + + static std::shared_ptr Make( + std::shared_ptr type, int64_t length, + std::vector> buffers, + std::vector> child_data, + std::shared_ptr dictionary, int64_t null_count = kUnknownNullCount, + int64_t offset = 0); + + static std::shared_ptr Make(std::shared_ptr type, int64_t length, + int64_t null_count = kUnknownNullCount, + int64_t offset = 0); + + // Move constructor + ArrayData(ArrayData&& other) noexcept + : type(std::move(other.type)), + length(other.length), + null_count(other.null_count.load()), + offset(other.offset), + buffers(std::move(other.buffers)), + child_data(std::move(other.child_data)), + dictionary(std::move(other.dictionary)), + statistics(std::move(other.statistics)) {} + + // Copy constructor + ArrayData(const ArrayData& other) noexcept + : type(other.type), + length(other.length), + null_count(other.null_count.load()), + offset(other.offset), + buffers(other.buffers), + child_data(other.child_data), + dictionary(other.dictionary), + statistics(other.statistics) {} + + // Move assignment + ArrayData& operator=(ArrayData&& other) { + type = std::move(other.type); + length = other.length; + SetNullCount(other.null_count); + offset = other.offset; + buffers = std::move(other.buffers); + child_data = std::move(other.child_data); + dictionary = std::move(other.dictionary); + statistics = std::move(other.statistics); + return *this; + } + + // Copy assignment + ArrayData& operator=(const ArrayData& other) { + type = other.type; + length = other.length; + SetNullCount(other.null_count); + offset = other.offset; + buffers = other.buffers; + child_data = other.child_data; + dictionary = other.dictionary; + statistics = other.statistics; + return *this; + } + + /// \brief Return a shallow copy of this ArrayData + std::shared_ptr Copy() const { return std::make_shared(*this); } + + /// \brief Deep copy this ArrayData to destination memory manager + /// + /// Returns a new ArrayData object with buffers and all child buffers + /// copied to the destination memory manager. This includes dictionaries + /// if applicable. + Result> CopyTo( + const std::shared_ptr& to) const; + + /// \brief View or copy this ArrayData to destination memory manager + /// + /// Tries to view the buffer contents on the given memory manager's device + /// if possible (to avoid a copy) but falls back to copying if a no-copy view + /// isn't supported. + Result> ViewOrCopyTo( + const std::shared_ptr& to) const; + + /// \brief Return the null-ness of a given array element + /// + /// Calling `IsNull(i)` is the same as `!IsValid(i)`. + bool IsNull(int64_t i) const { return !IsValid(i); } + + /// \brief Return the validity of a given array element + /// + /// For most data types, this will simply query the validity bitmap. + /// For union and run-end-encoded arrays, the underlying child data is + /// queried instead. + /// For dictionary arrays, this reflects the validity of the dictionary + /// index, but the corresponding dictionary value might still be null. + /// For null arrays, this always returns false. + bool IsValid(int64_t i) const { + if (buffers[0] != NULLPTR) { + return bit_util::GetBit(buffers[0]->data(), i + offset); + } + const auto type = this->type->id(); + if (type == Type::SPARSE_UNION) { + return !internal::IsNullSparseUnion(*this, i); + } + if (type == Type::DENSE_UNION) { + return !internal::IsNullDenseUnion(*this, i); + } + if (type == Type::RUN_END_ENCODED) { + return !internal::IsNullRunEndEncoded(*this, i); + } + return null_count.load() != length; + } + + /// \brief Access a buffer's data as a typed C pointer + /// + /// \param i the buffer index + /// \param absolute_offset the offset into the buffer + /// + /// If `absolute_offset` is non-zero, the type `T` must match the + /// layout of buffer number `i` for the array's data type; otherwise + /// offset computation would be incorrect. + /// + /// If the given buffer is bit-packed (such as a validity bitmap, or + /// the data buffer of a boolean array), then `absolute_offset` must be + /// zero for correct results, and any bit offset must be applied manually + /// by the caller. + template + inline const T* GetValues(int i, int64_t absolute_offset) const { + if (buffers[i]) { + return reinterpret_cast(buffers[i]->data()) + absolute_offset; + } else { + return NULLPTR; + } + } + + /// \brief Access a buffer's data as a typed C pointer + /// + /// \param i the buffer index + /// + /// This method uses the array's offset to index into buffer number `i`. + /// + /// Calling this method on a bit-packed buffer (such as a validity bitmap, or + /// the data buffer of a boolean array) will lead to incorrect results. + /// You should instead call `GetValues(i, 0)` and apply the bit offset manually. + template + inline const T* GetValues(int i) const { + return GetValues(i, offset); + } + + /// \brief Access a buffer's data as a typed C pointer + /// + /// \param i the buffer index + /// \param absolute_offset the offset into the buffer + /// + /// Like `GetValues(i, absolute_offset)`, but returns nullptr if the given buffer + /// is not a CPU buffer. + template + inline const T* GetValuesSafe(int i, int64_t absolute_offset) const { + if (buffers[i] && buffers[i]->is_cpu()) { + return reinterpret_cast(buffers[i]->data()) + absolute_offset; + } else { + return NULLPTR; + } + } + + /// \brief Access a buffer's data as a typed C pointer + /// + /// \param i the buffer index + /// + /// Like `GetValues(i)`, but returns nullptr if the given buffer is not a CPU buffer. + template + inline const T* GetValuesSafe(int i) const { + return GetValuesSafe(i, offset); + } + + /// \brief Access a buffer's data as a mutable typed C pointer + /// + /// \param i the buffer index + /// \param absolute_offset the offset into the buffer + /// + /// Like `GetValues(i, absolute_offset)`, but allows mutating buffer contents. + /// This should only be used when initially populating the ArrayData, before + /// it is attached to a Array instance. + template + inline T* GetMutableValues(int i, int64_t absolute_offset) { + if (buffers[i]) { + return reinterpret_cast(buffers[i]->mutable_data()) + absolute_offset; + } else { + return NULLPTR; + } + } + + /// \brief Access a buffer's data as a mutable typed C pointer + /// + /// \param i the buffer index + /// + /// Like `GetValues(i)`, but allows mutating buffer contents. + /// This should only be used when initially populating the ArrayData, before + /// it is attached to a Array instance. + template + inline T* GetMutableValues(int i) { + return GetMutableValues(i, offset); + } + + /// \brief Construct a zero-copy slice of the data with the given offset and length + /// + /// This method applies the given slice to this ArrayData, taking into account + /// its existing offset and length. + /// If the given `length` is too large, the slice length is clamped so as not + /// to go past the offset end. + /// If the given `often` is too large, or if either `offset` or `length` is negative, + /// behavior is undefined. + /// + /// The associated ArrayStatistics is always discarded in a sliced + /// ArrayData, even if the slice is trivially equal to the original ArrayData. + /// If you want to reuse the statistics from the original ArrayData, you must + /// explicitly reattach them. + std::shared_ptr Slice(int64_t offset, int64_t length) const; + + /// \brief Construct a zero-copy slice of the data with the given offset and length + /// + /// Like `Slice(offset, length)`, but returns an error if the requested slice + /// falls out of bounds. + /// Unlike Slice, `length` isn't clamped to the available buffer size. + Result> SliceSafe(int64_t offset, int64_t length) const; + + /// \brief Set the cached physical null count + /// + /// \param v the number of nulls in the ArrayData + /// + /// This should only be used when initially populating the ArrayData, if + /// it possible to compute the null count without visiting the entire validity + /// bitmap. In most cases, relying on `GetNullCount` is sufficient. + void SetNullCount(int64_t v) { null_count.store(v); } + + /// \brief Return the physical null count + /// + /// This method returns the number of array elements for which `IsValid` would + /// return false. + /// + /// A cached value is returned if already available, otherwise it is first + /// computed and stored. + /// How it is is computed depends on the data type, see `IsValid` for details. + /// + /// Note that this method is typically much faster than calling `IsValid` + /// for all elements. Therefore, it helps avoid per-element validity bitmap + /// lookups in the common cases where the array contains zero or only nulls. + int64_t GetNullCount() const; + + /// \brief Return true if the array may have nulls in its validity bitmap + /// + /// This method returns true if the data has a validity bitmap, and the physical + /// null count is either known to be non-zero or not yet known. + /// + /// Unlike `MayHaveLogicalNulls`, this does not check for the presence of nulls + /// in child data for data types such as unions and run-end encoded types. + /// + /// \see HasValidityBitmap + /// \see MayHaveLogicalNulls + bool MayHaveNulls() const { + // If an ArrayData is slightly malformed it may have kUnknownNullCount set + // but no buffer + return null_count.load() != 0 && buffers[0] != NULLPTR; + } + + /// \brief Return true if the array has a validity bitmap + bool HasValidityBitmap() const { return buffers[0] != NULLPTR; } + + /// \brief Return true if the array may have logical nulls + /// + /// Unlike `MayHaveNulls`, this method checks for null child values + /// for types without a validity bitmap, such as unions and run-end encoded + /// types, and for null dictionary values for dictionary types. + /// + /// This implies that `MayHaveLogicalNulls` may return true for arrays that + /// don't have a top-level validity bitmap. It is therefore necessary + /// to call `HasValidityBitmap` before accessing a top-level validity bitmap. + /// + /// Code that previously used MayHaveNulls and then dealt with the validity + /// bitmap directly can be fixed to handle all types correctly without + /// performance degradation when handling most types by adopting + /// HasValidityBitmap and MayHaveLogicalNulls. + /// + /// Before: + /// + /// uint8_t* validity = array.MayHaveNulls() ? array.buffers[0].data : NULLPTR; + /// for (int64_t i = 0; i < array.length; ++i) { + /// if (validity && !bit_util::GetBit(validity, i)) { + /// continue; // skip a NULL + /// } + /// ... + /// } + /// + /// After: + /// + /// bool all_valid = !array.MayHaveLogicalNulls(); + /// uint8_t* validity = array.HasValidityBitmap() ? array.buffers[0].data : NULLPTR; + /// for (int64_t i = 0; i < array.length; ++i) { + /// bool is_valid = all_valid || + /// (validity && bit_util::GetBit(validity, i)) || + /// array.IsValid(i); + /// if (!is_valid) { + /// continue; // skip a NULL + /// } + /// ... + /// } + bool MayHaveLogicalNulls() const { + if (buffers[0] != NULLPTR) { + return null_count.load() != 0; + } + const auto t = type->id(); + if (t == Type::SPARSE_UNION || t == Type::DENSE_UNION) { + return internal::UnionMayHaveLogicalNulls(*this); + } + if (t == Type::RUN_END_ENCODED) { + return internal::RunEndEncodedMayHaveLogicalNulls(*this); + } + if (t == Type::DICTIONARY) { + return internal::DictionaryMayHaveLogicalNulls(*this); + } + return null_count.load() != 0; + } + + /// \brief Compute the logical null count for arrays of all types + /// + /// If the array has a validity bitmap, this function behaves the same as + /// GetNullCount. For arrays that have no validity bitmap but whose values + /// may be logically null (such as union arrays and run-end encoded arrays), + /// this function recomputes the null count every time it is called. + /// + /// \see GetNullCount + int64_t ComputeLogicalNullCount() const; + + /// \brief Return the device_type of the underlying buffers and children + /// + /// If there are no buffers in this ArrayData object, it just returns + /// DeviceAllocationType::kCPU as a default. We also assume that all buffers + /// should be allocated on the same device type and perform DCHECKs to confirm + /// this in debug mode. + /// + /// \return DeviceAllocationType + DeviceAllocationType device_type() const; + + std::shared_ptr type; + int64_t length = 0; + mutable std::atomic null_count{0}; + // The logical start point into the physical buffers (in values, not bytes). + // Note that, for child data, this must be *added* to the child data's own offset. + int64_t offset = 0; + std::vector> buffers; + std::vector> child_data; + + // The dictionary for this Array, if any. Only used for dictionary type + std::shared_ptr dictionary; + + // The statistics for this Array. + std::shared_ptr statistics; +}; + +/// \brief A non-owning Buffer reference +struct ARROW_EXPORT BufferSpan { + // It is the user of this class's responsibility to ensure that + // buffers that were const originally are not written to + // accidentally. + uint8_t* data = NULLPTR; + int64_t size = 0; + // Pointer back to buffer that owns this memory + const std::shared_ptr* owner = NULLPTR; + + template + const T* data_as() const { + return reinterpret_cast(data); + } + template + T* mutable_data_as() { + return reinterpret_cast(data); + } +}; + +/// \brief EXPERIMENTAL: A non-owning array data container +/// +/// Unlike ArrayData, this class doesn't own its referenced data type nor data buffers. +/// It is cheaply copyable and can therefore be suitable for use cases where +/// shared_ptr overhead is not acceptable. However, care should be taken to +/// keep alive the referenced objects and memory while the ArraySpan object is in use. +/// For this reason, this should not be exposed in most public APIs (apart from +/// compute kernel interfaces). +struct ARROW_EXPORT ArraySpan { + const DataType* type = NULLPTR; + int64_t length = 0; + mutable int64_t null_count = kUnknownNullCount; + int64_t offset = 0; + BufferSpan buffers[3]; + + ArraySpan() = default; + + explicit ArraySpan(const DataType* type, int64_t length) : type(type), length(length) {} + + ArraySpan(const ArrayData& data) { // NOLINT implicit conversion + SetMembers(data); + } + explicit ArraySpan(const Scalar& data) { FillFromScalar(data); } + + /// If dictionary-encoded, put dictionary in the first entry + std::vector child_data; + + /// \brief Populate ArraySpan to look like an array of length 1 pointing at + /// the data members of a Scalar value + void FillFromScalar(const Scalar& value); + + void SetMembers(const ArrayData& data); + + void SetBuffer(int index, const std::shared_ptr& buffer) { + this->buffers[index].data = const_cast(buffer->data()); + this->buffers[index].size = buffer->size(); + this->buffers[index].owner = &buffer; + } + + const ArraySpan& dictionary() const { return child_data[0]; } + + /// \brief Return the number of buffers (out of 3) that are used to + /// constitute this array + int num_buffers() const; + + // Access a buffer's data as a typed C pointer + template + inline T* GetValues(int i, int64_t absolute_offset) { + return reinterpret_cast(buffers[i].data) + absolute_offset; + } + + template + inline T* GetValues(int i) { + return GetValues(i, this->offset); + } + + // Access a buffer's data as a typed C pointer + template + inline const T* GetValues(int i, int64_t absolute_offset) const { + return reinterpret_cast(buffers[i].data) + absolute_offset; + } + + template + inline const T* GetValues(int i) const { + return GetValues(i, this->offset); + } + + /// \brief Access a buffer's data as a span + /// + /// \param i The buffer index + /// \param length The required length (in number of typed values) of the requested span + /// \pre i > 0 + /// \pre length <= the length of the buffer (in number of values) that's expected for + /// this array type + /// \return A span of the requested length + template + util::span GetSpan(int i, int64_t length) const { + const int64_t buffer_length = buffers[i].size / static_cast(sizeof(T)); + assert(i > 0 && length + offset <= buffer_length); + ARROW_UNUSED(buffer_length); + return util::span(buffers[i].data_as() + this->offset, length); + } + + /// \brief Access a buffer's data as a span + /// + /// \param i The buffer index + /// \param length The required length (in number of typed values) of the requested span + /// \pre i > 0 + /// \pre length <= the length of the buffer (in number of values) that's expected for + /// this array type + /// \return A span of the requested length + template + util::span GetSpan(int i, int64_t length) { + const int64_t buffer_length = buffers[i].size / static_cast(sizeof(T)); + assert(i > 0 && length + offset <= buffer_length); + ARROW_UNUSED(buffer_length); + return util::span(buffers[i].mutable_data_as() + this->offset, length); + } + + inline bool IsNull(int64_t i) const { return !IsValid(i); } + + inline bool IsValid(int64_t i) const { + if (this->buffers[0].data != NULLPTR) { + return bit_util::GetBit(this->buffers[0].data, i + this->offset); + } else { + const auto type = this->type->id(); + if (type == Type::SPARSE_UNION) { + return !IsNullSparseUnion(i); + } + if (type == Type::DENSE_UNION) { + return !IsNullDenseUnion(i); + } + if (type == Type::RUN_END_ENCODED) { + return !IsNullRunEndEncoded(i); + } + return this->null_count != this->length; + } + } + + std::shared_ptr ToArrayData() const; + + std::shared_ptr ToArray() const; + + std::shared_ptr GetBuffer(int index) const { + const BufferSpan& buf = this->buffers[index]; + if (buf.owner) { + return *buf.owner; + } else if (buf.data != NULLPTR) { + // Buffer points to some memory without an owning buffer + return std::make_shared(buf.data, buf.size); + } else { + return NULLPTR; + } + } + + void SetSlice(int64_t offset, int64_t length) { + this->offset = offset; + this->length = length; + if (this->type->id() == Type::NA) { + this->null_count = this->length; + } else if (buffers[0].data != NULLPTR) { + this->null_count = kUnknownNullCount; + } else { + this->null_count = 0; + } + } + + /// \brief Return physical null count, or compute and set it if it's not known + int64_t GetNullCount() const; + + /// \brief Return true if the array has a validity bitmap and the physical null + /// count is known to be non-zero or not yet known + /// + /// Note that this is not the same as MayHaveLogicalNulls, which also checks + /// for the presence of nulls in child data for types like unions and run-end + /// encoded types. + /// + /// \see HasValidityBitmap + /// \see MayHaveLogicalNulls + bool MayHaveNulls() const { + // If an ArrayData is slightly malformed it may have kUnknownNullCount set + // but no buffer + return null_count != 0 && buffers[0].data != NULLPTR; + } + + /// \brief Return true if the array has a validity bitmap + bool HasValidityBitmap() const { return buffers[0].data != NULLPTR; } + + /// \brief Return true if the validity bitmap may have 0's in it, or if the + /// child arrays (in the case of types without a validity bitmap) may have + /// nulls, or if the dictionary of dictionay array may have nulls. + /// + /// \see ArrayData::MayHaveLogicalNulls + bool MayHaveLogicalNulls() const { + if (buffers[0].data != NULLPTR) { + return null_count != 0; + } + const auto t = type->id(); + if (t == Type::SPARSE_UNION || t == Type::DENSE_UNION) { + return UnionMayHaveLogicalNulls(); + } + if (t == Type::RUN_END_ENCODED) { + return RunEndEncodedMayHaveLogicalNulls(); + } + if (t == Type::DICTIONARY) { + return DictionaryMayHaveLogicalNulls(); + } + return null_count != 0; + } + + /// \brief Compute the logical null count for arrays of all types including + /// those that do not have a validity bitmap like union and run-end encoded + /// arrays + /// + /// If the array has a validity bitmap, this function behaves the same as + /// GetNullCount. For types that have no validity bitmap, this function will + /// recompute the logical null count every time it is called. + /// + /// \see GetNullCount + int64_t ComputeLogicalNullCount() const; + + /// Some DataTypes (StringView, BinaryView) may have an arbitrary number of variadic + /// buffers. Since ArraySpan only has 3 buffers, we pack the variadic buffers into + /// buffers[2]; IE buffers[2].data points to the first shared_ptr of the + /// variadic set and buffers[2].size is the number of variadic buffers times + /// sizeof(shared_ptr). + /// + /// \see HasVariadicBuffers + util::span> GetVariadicBuffers() const; + bool HasVariadicBuffers() const; + + private: + ARROW_FRIEND_EXPORT friend bool internal::IsNullRunEndEncoded(const ArrayData& data, + int64_t i); + + bool IsNullSparseUnion(int64_t i) const; + bool IsNullDenseUnion(int64_t i) const; + + /// \brief Return true if the value at logical index i is null + /// + /// This function uses binary-search, so it has a O(log N) cost. + /// Iterating over the whole array and calling IsNull is O(N log N), so + /// for better performance it is recommended to use a + /// ree_util::RunEndEncodedArraySpan to iterate run by run instead. + bool IsNullRunEndEncoded(int64_t i) const; + + bool UnionMayHaveLogicalNulls() const; + bool RunEndEncodedMayHaveLogicalNulls() const; + bool DictionaryMayHaveLogicalNulls() const; +}; + +namespace internal { + +void FillZeroLengthArray(const DataType* type, ArraySpan* span); + +/// Construct a zero-copy view of this ArrayData with the given type. +/// +/// This method checks if the types are layout-compatible. +/// Nested types are traversed in depth-first order. Data buffers must have +/// the same item sizes, even though the logical types may be different. +/// An error is returned if the types are not layout-compatible. +ARROW_EXPORT +Result> GetArrayView(const std::shared_ptr& data, + const std::shared_ptr& type); + +} // namespace internal +} // namespace arrow diff --git a/shared/package-files/eb/eb9c4450a56c643fd37123c01113a7bfbd8225bf9921b11eb049b6bad52066b2/blob b/shared/package-files/eb/eb9c4450a56c643fd37123c01113a7bfbd8225bf9921b11eb049b6bad52066b2/blob new file mode 100644 index 0000000000000000000000000000000000000000..3279c68175282487af83f8e573a9e680f56267b1 --- /dev/null +++ b/shared/package-files/eb/eb9c4450a56c643fd37123c01113a7bfbd8225bf9921b11eb049b6bad52066b2/blob @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor & median_out(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor median_cpu(const at::Tensor & self); +TORCH_API at::Tensor median_cuda(const at::Tensor & self); +TORCH_API ::std::tuple median(const at::Tensor & self, int64_t dim, bool keepdim=false); +TORCH_API ::std::tuple median_out_cpu(const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & values, at::Tensor & indices); +TORCH_API ::std::tuple median_out_cuda(const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & values, at::Tensor & indices); +TORCH_API ::std::tuple median(const at::Tensor & self, at::Dimname dim, bool keepdim=false); +TORCH_API ::std::tuple median_out(const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & values, at::Tensor & indices); +} // namespace native +} // namespace at diff --git a/shared/package-files/eb/eb9c52090f5c1d20b7284ec9ec7c52e1b7ec0d301b3e6c32cf58c9e3706a9c1b/blob b/shared/package-files/eb/eb9c52090f5c1d20b7284ec9ec7c52e1b7ec0d301b3e6c32cf58c9e3706a9c1b/blob new file mode 100644 index 0000000000000000000000000000000000000000..d0392be782d9c06404c3d83c2b8ca271bbb8fa72 --- /dev/null +++ b/shared/package-files/eb/eb9c52090f5c1d20b7284ec9ec7c52e1b7ec0d301b3e6c32cf58c9e3706a9c1b/blob @@ -0,0 +1,2 @@ +from mpl_toolkits.axes_grid1.axes_divider import ( # noqa + Divider, SubplotDivider, AxesDivider, make_axes_locatable) diff --git a/shared/package-files/eb/eba18f2bbc071b32144ab944c5e1a9097ef52ac22918af568dd7ea814199130f/blob b/shared/package-files/eb/eba18f2bbc071b32144ab944c5e1a9097ef52ac22918af568dd7ea814199130f/blob new file mode 100644 index 0000000000000000000000000000000000000000..08e4d31dfd1fada3d21dc19806eac4d48dd64b7b --- /dev/null +++ b/shared/package-files/eb/eba18f2bbc071b32144ab944c5e1a9097ef52ac22918af568dd7ea814199130f/blob @@ -0,0 +1,11 @@ +cloudpickle-3.1.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +cloudpickle-3.1.2.dist-info/METADATA,sha256=PQJjv-nuTyOyRL3K_3OsvnoZV-v4J0O2rkJpOtxI1yE,7079 +cloudpickle-3.1.2.dist-info/RECORD,, +cloudpickle-3.1.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82 +cloudpickle-3.1.2.dist-info/licenses/LICENSE,sha256=MCnqNBc-n9wjOtMV3GsQC9HqcfUpscGvl2ZKJy_cVfU,1754 +cloudpickle/__init__.py,sha256=ErKyvqqAErOkbCowrizhGpN9DN-TaD22QtqI9CQ9sDw,308 +cloudpickle/__pycache__/__init__.cpython-310.pyc,, +cloudpickle/__pycache__/cloudpickle.cpython-310.pyc,, +cloudpickle/__pycache__/cloudpickle_fast.cpython-310.pyc,, +cloudpickle/cloudpickle.py,sha256=KcLA_uAxp2KuMJb9vaTVve7FLFUQu7mYkD3dCscxeRc,58874 +cloudpickle/cloudpickle_fast.py,sha256=AI5ZKf2AbLNxD8lXyLDpKZyzeZ2ofFtdK1ZWFq_ec1c,323 diff --git a/shared/package-files/eb/eba2a9a35eae9a9d931bf0ff0a6f757fd9334074d43554829f1eb3cc8b2e7d54/blob b/shared/package-files/eb/eba2a9a35eae9a9d931bf0ff0a6f757fd9334074d43554829f1eb3cc8b2e7d54/blob new file mode 100644 index 0000000000000000000000000000000000000000..cf6c3dc26b4f3ce9366e1c3b5fc4dd4f8c34a945 --- /dev/null +++ b/shared/package-files/eb/eba2a9a35eae9a9d931bf0ff0a6f757fd9334074d43554829f1eb3cc8b2e7d54/blob @@ -0,0 +1,22 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor _unsafe_view(const at::Tensor & self, at::IntArrayRef size); +TORCH_API at::Tensor & _unsafe_view_out_symint(const at::Tensor & self, c10::SymIntArrayRef size, at::Tensor & out); +} // namespace native +} // namespace at diff --git a/shared/package-files/eb/eba5e754f335b275bf9202835f6ff6d4fc3237e02cef1b600220841d77fa535e/blob b/shared/package-files/eb/eba5e754f335b275bf9202835f6ff6d4fc3237e02cef1b600220841d77fa535e/blob new file mode 100644 index 0000000000000000000000000000000000000000..68ad69622b66f3f1296a49306123a4f438eada3e --- /dev/null +++ b/shared/package-files/eb/eba5e754f335b275bf9202835f6ff6d4fc3237e02cef1b600220841d77fa535e/blob @@ -0,0 +1,28 @@ +from typing import Any + +from .request import RequestMethods + +class PoolManager(RequestMethods): + proxy: Any + connection_pool_kw: Any + pools: Any + def __init__(self, num_pools=..., headers=..., **connection_pool_kw) -> None: ... + def __enter__(self): ... + def __exit__(self, exc_type, exc_val, exc_tb): ... + def clear(self): ... + def connection_from_host(self, host, port=..., scheme=...): ... + def connection_from_url(self, url): ... + # TODO: This was the original signature -- copied another one from base class to fix complaint. + # def urlopen(self, method, url, redirect=True, **kw): ... + def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ... + +class ProxyManager(PoolManager): + proxy: Any + proxy_headers: Any + def __init__(self, proxy_url, num_pools=..., headers=..., proxy_headers=..., **connection_pool_kw) -> None: ... + def connection_from_host(self, host, port=..., scheme=...): ... + # TODO: This was the original signature -- copied another one from base class to fix complaint. + # def urlopen(self, method, url, redirect=True, **kw): ... + def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ... + +def proxy_from_url(url, **kw): ... diff --git a/shared/package-files/eb/eba6a639aeb07486d2d0332185f00f528381dfb1cfa2b7d70f58b3574a6b9936/blob b/shared/package-files/eb/eba6a639aeb07486d2d0332185f00f528381dfb1cfa2b7d70f58b3574a6b9936/blob new file mode 100644 index 0000000000000000000000000000000000000000..6ca8c973c1993ac00016bb46e3ae7a3e44bc8d15 --- /dev/null +++ b/shared/package-files/eb/eba6a639aeb07486d2d0332185f00f528381dfb1cfa2b7d70f58b3574a6b9936/blob @@ -0,0 +1,324 @@ +import argparse +import logging +import os +import stat +import threading +import time +from errno import EIO, ENOENT + +from fuse import FUSE, FuseOSError, LoggingMixIn, Operations + +from fsspec import __version__ +from fsspec.core import url_to_fs + +logger = logging.getLogger("fsspec.fuse") + + +class FUSEr(Operations): + def __init__(self, fs, path, ready_file=False): + self.fs = fs + self.cache = {} + self.root = path.rstrip("/") + "/" + self.counter = 0 + logger.info("Starting FUSE at %s", path) + self._ready_file = ready_file + + def getattr(self, path, fh=None): + logger.debug("getattr %s", path) + if self._ready_file and path in ["/.fuse_ready", ".fuse_ready"]: + return {"type": "file", "st_size": 5} + + path = "".join([self.root, path.lstrip("/")]).rstrip("/") + try: + info = self.fs.info(path) + except FileNotFoundError: + raise FuseOSError(ENOENT) + + data = {"st_uid": info.get("uid", 1000), "st_gid": info.get("gid", 1000)} + perm = info.get("mode", 0o777) + + if info["type"] != "file": + data["st_mode"] = stat.S_IFDIR | perm + data["st_size"] = 0 + data["st_blksize"] = 0 + else: + data["st_mode"] = stat.S_IFREG | perm + data["st_size"] = info["size"] + data["st_blksize"] = 5 * 2**20 + data["st_nlink"] = 1 + data["st_atime"] = info["atime"] if "atime" in info else time.time() + data["st_ctime"] = info["ctime"] if "ctime" in info else time.time() + data["st_mtime"] = info["mtime"] if "mtime" in info else time.time() + return data + + def readdir(self, path, fh): + logger.debug("readdir %s", path) + path = "".join([self.root, path.lstrip("/")]) + files = self.fs.ls(path, False) + files = [os.path.basename(f.rstrip("/")) for f in files] + return [".", ".."] + files + + def mkdir(self, path, mode): + path = "".join([self.root, path.lstrip("/")]) + self.fs.mkdir(path) + return 0 + + def rmdir(self, path): + path = "".join([self.root, path.lstrip("/")]) + self.fs.rmdir(path) + return 0 + + def read(self, path, size, offset, fh): + logger.debug("read %s", (path, size, offset)) + if self._ready_file and path in ["/.fuse_ready", ".fuse_ready"]: + # status indicator + return b"ready" + + f = self.cache[fh] + f.seek(offset) + out = f.read(size) + return out + + def write(self, path, data, offset, fh): + logger.debug("write %s", (path, offset)) + f = self.cache[fh] + f.seek(offset) + f.write(data) + return len(data) + + def create(self, path, flags, fi=None): + logger.debug("create %s", (path, flags)) + fn = "".join([self.root, path.lstrip("/")]) + self.fs.touch(fn) # OS will want to get attributes immediately + f = self.fs.open(fn, "wb") + self.cache[self.counter] = f + self.counter += 1 + return self.counter - 1 + + def open(self, path, flags): + logger.debug("open %s", (path, flags)) + fn = "".join([self.root, path.lstrip("/")]) + if flags % 2 == 0: + # read + mode = "rb" + else: + # write/create + mode = "wb" + self.cache[self.counter] = self.fs.open(fn, mode) + self.counter += 1 + return self.counter - 1 + + def truncate(self, path, length, fh=None): + fn = "".join([self.root, path.lstrip("/")]) + if length != 0: + raise NotImplementedError + # maybe should be no-op since open with write sets size to zero anyway + self.fs.touch(fn) + + def unlink(self, path): + fn = "".join([self.root, path.lstrip("/")]) + try: + self.fs.rm(fn, False) + except (OSError, FileNotFoundError): + raise FuseOSError(EIO) + + def release(self, path, fh): + try: + if fh in self.cache: + f = self.cache[fh] + f.close() + self.cache.pop(fh) + except Exception as e: + print(e) + return 0 + + def chmod(self, path, mode): + if hasattr(self.fs, "chmod"): + path = "".join([self.root, path.lstrip("/")]) + return self.fs.chmod(path, mode) + raise NotImplementedError + + +def run( + fs, + path, + mount_point, + foreground=True, + threads=False, + ready_file=False, + ops_class=FUSEr, +): + """Mount stuff in a local directory + + This uses fusepy to make it appear as if a given path on an fsspec + instance is in fact resident within the local file-system. + + This requires that fusepy by installed, and that FUSE be available on + the system (typically requiring a package to be installed with + apt, yum, brew, etc.). + + Parameters + ---------- + fs: file-system instance + From one of the compatible implementations + path: str + Location on that file-system to regard as the root directory to + mount. Note that you typically should include the terminating "/" + character. + mount_point: str + An empty directory on the local file-system where the contents of + the remote path will appear. + foreground: bool + Whether or not calling this function will block. Operation will + typically be more stable if True. + threads: bool + Whether or not to create threads when responding to file operations + within the mounter directory. Operation will typically be more + stable if False. + ready_file: bool + Whether the FUSE process is ready. The ``.fuse_ready`` file will + exist in the ``mount_point`` directory if True. Debugging purpose. + ops_class: FUSEr or Subclass of FUSEr + To override the default behavior of FUSEr. For Example, logging + to file. + + """ + func = lambda: FUSE( + ops_class(fs, path, ready_file=ready_file), + mount_point, + nothreads=not threads, + foreground=foreground, + ) + if not foreground: + th = threading.Thread(target=func) + th.daemon = True + th.start() + return th + else: # pragma: no cover + try: + func() + except KeyboardInterrupt: + pass + + +def main(args): + """Mount filesystem from chained URL to MOUNT_POINT. + + Examples: + + python3 -m fsspec.fuse memory /usr/share /tmp/mem + + python3 -m fsspec.fuse local /tmp/source /tmp/local \\ + -l /tmp/fsspecfuse.log + + You can also mount chained-URLs and use special settings: + + python3 -m fsspec.fuse 'filecache::zip::file://data.zip' \\ + / /tmp/zip \\ + -o 'filecache-cache_storage=/tmp/simplecache' + + You can specify the type of the setting by using `[int]` or `[bool]`, + (`true`, `yes`, `1` represents the Boolean value `True`): + + python3 -m fsspec.fuse 'simplecache::ftp://ftp1.at.proftpd.org' \\ + /historic/packages/RPMS /tmp/ftp \\ + -o 'simplecache-cache_storage=/tmp/simplecache' \\ + -o 'simplecache-check_files=false[bool]' \\ + -o 'ftp-listings_expiry_time=60[int]' \\ + -o 'ftp-username=anonymous' \\ + -o 'ftp-password=xieyanbo' + """ + + class RawDescriptionArgumentParser(argparse.ArgumentParser): + def format_help(self): + usage = super().format_help() + parts = usage.split("\n\n") + parts[1] = self.description.rstrip() + return "\n\n".join(parts) + + parser = RawDescriptionArgumentParser(prog="fsspec.fuse", description=main.__doc__) + parser.add_argument("--version", action="version", version=__version__) + parser.add_argument("url", type=str, help="fs url") + parser.add_argument("source_path", type=str, help="source directory in fs") + parser.add_argument("mount_point", type=str, help="local directory") + parser.add_argument( + "-o", + "--option", + action="append", + help="Any options of protocol included in the chained URL", + ) + parser.add_argument( + "-l", "--log-file", type=str, help="Logging FUSE debug info (Default: '')" + ) + parser.add_argument( + "-f", + "--foreground", + action="store_false", + help="Running in foreground or not (Default: False)", + ) + parser.add_argument( + "-t", + "--threads", + action="store_false", + help="Running with threads support (Default: False)", + ) + parser.add_argument( + "-r", + "--ready-file", + action="store_false", + help="The `.fuse_ready` file will exist after FUSE is ready. " + "(Debugging purpose, Default: False)", + ) + args = parser.parse_args(args) + + kwargs = {} + for item in args.option or []: + key, sep, value = item.partition("=") + if not sep: + parser.error(message=f"Wrong option: {item!r}") + val = value.lower() + if val.endswith("[int]"): + value = int(value[: -len("[int]")]) + elif val.endswith("[bool]"): + value = val[: -len("[bool]")] in ["1", "yes", "true"] + + if "-" in key: + fs_name, setting_name = key.split("-", 1) + if fs_name in kwargs: + kwargs[fs_name][setting_name] = value + else: + kwargs[fs_name] = {setting_name: value} + else: + kwargs[key] = value + + if args.log_file: + logging.basicConfig( + level=logging.DEBUG, + filename=args.log_file, + format="%(asctime)s %(message)s", + ) + + class LoggingFUSEr(FUSEr, LoggingMixIn): + pass + + fuser = LoggingFUSEr + else: + fuser = FUSEr + + fs, url_path = url_to_fs(args.url, **kwargs) + logger.debug("Mounting %s to %s", url_path, str(args.mount_point)) + run( + fs, + args.source_path, + args.mount_point, + foreground=args.foreground, + threads=args.threads, + ready_file=args.ready_file, + ops_class=fuser, + ) + + +if __name__ == "__main__": + import sys + + main(sys.argv[1:]) diff --git a/shared/package-files/eb/eba6ccbe6054e4937ed9783a7e936abb0b3d7de4131925a99edfef26795d21ac/blob b/shared/package-files/eb/eba6ccbe6054e4937ed9783a7e936abb0b3d7de4131925a99edfef26795d21ac/blob new file mode 100644 index 0000000000000000000000000000000000000000..83b5e657750b831bb4891569ef1b71cd87a95d1a --- /dev/null +++ b/shared/package-files/eb/eba6ccbe6054e4937ed9783a7e936abb0b3d7de4131925a99edfef26795d21ac/blob @@ -0,0 +1,21 @@ +#pragma once + +#include + +namespace torch { +namespace jit { + +// propagate autograd zero information through a gradient graph and +// remove grad_of blocks if present. +// Note: this is a very limited pass. It only propagates autograd zeros for +// operations generated by the symbolic autodiff code and cleans up +// AutogradAdds when possible. Outputs of other nodes are conservatively +// marked Unknown and not optimized. +TORCH_API void specializeAutogradZero(std::shared_ptr g); + +struct ProfilingRecord; + +TORCH_API void InsertProfileNodesForSpecializeAutogradZero(ProfilingRecord* pr); + +} // namespace jit +} // namespace torch diff --git a/shared/package-files/eb/eba758753d77f0dad0bfd313f4881b9da5a1658ae6682d2569ab526778b7fb83/blob b/shared/package-files/eb/eba758753d77f0dad0bfd313f4881b9da5a1658ae6682d2569ab526778b7fb83/blob new file mode 100644 index 0000000000000000000000000000000000000000..de1c13551717e656605d90455cb0909952583e95 --- /dev/null +++ b/shared/package-files/eb/eba758753d77f0dad0bfd313f4881b9da5a1658ae6682d2569ab526778b7fb83/blob @@ -0,0 +1,119 @@ +import numpy as np +import numpy.testing as nptest +import pytest + +import matplotlib.pyplot as plt + +from matplotlib.backend_bases import MouseEvent +from mpl_toolkits.mplot3d.art3d import ( + get_dir_vector, + Line3DCollection, + Poly3DCollection, + _all_points_on_plane, +) + + +@pytest.mark.parametrize("zdir, expected", [ + ("x", (1, 0, 0)), + ("y", (0, 1, 0)), + ("z", (0, 0, 1)), + (None, (0, 0, 0)), + ((1, 2, 3), (1, 2, 3)), + (np.array([4, 5, 6]), (4, 5, 6)), +]) +def test_get_dir_vector(zdir, expected): + res = get_dir_vector(zdir) + assert isinstance(res, np.ndarray) + nptest.assert_array_equal(res, expected) + + +def test_scatter_3d_projection_conservation(): + fig = plt.figure() + ax = fig.add_subplot(projection='3d') + # fix axes3d projection + ax.roll = 0 + ax.elev = 0 + ax.azim = -45 + ax.stale = True + + x = [0, 1, 2, 3, 4] + scatter_collection = ax.scatter(x, x, x) + fig.canvas.draw_idle() + + # Get scatter location on canvas and freeze the data + scatter_offset = scatter_collection.get_offsets() + scatter_location = ax.transData.transform(scatter_offset) + + # Yaw -44 and -46 are enough to produce two set of scatter + # with opposite z-order without moving points too far + for azim in (-44, -46): + ax.azim = azim + ax.stale = True + fig.canvas.draw_idle() + + for i in range(5): + # Create a mouse event used to locate and to get index + # from each dots + event = MouseEvent("button_press_event", fig.canvas, + *scatter_location[i, :]) + contains, ind = scatter_collection.contains(event) + assert contains is True + assert len(ind["ind"]) == 1 + assert ind["ind"][0] == i + + +def test_zordered_error(): + # Smoke test for https://github.com/matplotlib/matplotlib/issues/26497 + lc = [(np.fromiter([0.0, 0.0, 0.0], dtype="float"), + np.fromiter([1.0, 1.0, 1.0], dtype="float"))] + pc = [np.fromiter([0.0, 0.0], dtype="float"), + np.fromiter([0.0, 1.0], dtype="float"), + np.fromiter([1.0, 1.0], dtype="float")] + + fig = plt.figure() + ax = fig.add_subplot(projection="3d") + ax.add_collection(Line3DCollection(lc)) + ax.scatter(*pc, visible=False) + plt.draw() + + +def test_all_points_on_plane(): + # Non-coplanar points + points = np.array([[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]) + assert not _all_points_on_plane(*points.T) + + # Duplicate points + points = np.array([[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 0]]) + assert _all_points_on_plane(*points.T) + + # NaN values + points = np.array([[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, np.nan]]) + assert _all_points_on_plane(*points.T) + + # Less than 3 unique points + points = np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]]) + assert _all_points_on_plane(*points.T) + + # All points lie on a line + points = np.array([[0, 0, 0], [0, 1, 0], [0, 2, 0], [0, 3, 0]]) + assert _all_points_on_plane(*points.T) + + # All points lie on two lines, with antiparallel vectors + points = np.array([[-2, 2, 0], [-1, 1, 0], [1, -1, 0], + [0, 0, 0], [2, 0, 0], [1, 0, 0]]) + assert _all_points_on_plane(*points.T) + + # All points lie on a plane + points = np.array([[0, 0, 0], [0, 1, 0], [1, 0, 0], [1, 1, 0], [1, 2, 0]]) + assert _all_points_on_plane(*points.T) + + +def test_generate_normals(): + # Smoke test for https://github.com/matplotlib/matplotlib/issues/29156 + vertices = ((0, 0, 0), (0, 5, 0), (5, 5, 0), (5, 0, 0)) + shape = Poly3DCollection([vertices], edgecolors='r', shade=True) + + fig = plt.figure() + ax = fig.add_subplot(projection='3d') + ax.add_collection3d(shape) + plt.draw() diff --git a/shared/package-files/eb/ebacd45f6c0ad1020c80184c17bf1ce3e3244055e079bbd9275974d24bea14c5/blob b/shared/package-files/eb/ebacd45f6c0ad1020c80184c17bf1ce3e3244055e079bbd9275974d24bea14c5/blob new file mode 100644 index 0000000000000000000000000000000000000000..9e3a09c54d0e89cde7110ae29bfda5e26063c646 --- /dev/null +++ b/shared/package-files/eb/ebacd45f6c0ad1020c80184c17bf1ce3e3244055e079bbd9275974d24bea14c5/blob @@ -0,0 +1,86 @@ +import abc +from collections import defaultdict +from collections.abc import Generator, Iterable +from functools import cached_property + +from ..utils import exc_for_token +from .operator import Operator +from .token import Token + + +class OperatorResolver(metaclass=abc.ABCMeta): + """ + Resolves which `Operator` instance should be used for a given operator + `Token`. + + This class should be subclassed and have `.operators` and/or `.resolve()` + overridden in order to achieve the desired formula algebra. + + Note: most users will probably be interested in extending/subclassing + `DefaultOperatorResolver`, which implements the default formula operator + logic. You should subclass this class directly only if you want to start + from scratch. + + Attributes: + operator_table: A cache of the mapping from operator symbol to + `Operator` instances implementing it. + """ + + @property + @abc.abstractmethod + def operators(self) -> list[Operator]: + """ + The `Operator` instance pool which can be matched to tokens by + `.resolve()`. + """ + + @cached_property + def operator_table(self) -> dict[str, list[Operator]]: + operator_table = defaultdict(list) + for operator in self.operators: + operator_table[operator.symbol].append(operator) + for symbol in operator_table: + operator_table[symbol] = sorted( + operator_table[symbol], + key=lambda op: (op.precedence, op.arity), + reverse=True, + ) + return operator_table + + def resolve( + self, token: Token + ) -> Generator[tuple[Token, Iterable[Operator]], None, None]: + """ + Generate the sets of operator candidates that may be viable for the + given token (which may include multiple adjacent operators concatenated + together). Each item generated must be a tuple for the token associated + with the operator, and an iterable of `Operator` instances which should + be considered by the AST generator. These `Operator` instances *MUST* be + sorted in descending order of precendence and arity. + + Args: + token: The operator `Token` instance for which `Operator`(s) should + be resolved. + max_prefix_arity: The number operator unclaimed tokens preceding the + operator in the formula string. + context: The current list of operators into which the operator to be + resolved will be placed. This will be a list of `Operator` + instances or tokens (tokens are return for grouping operators). + """ + yield self._resolve(token, token.token) + + def _resolve( + self, + token: Token, + symbol: str, + ) -> tuple[Token, Iterable[Operator]]: + """ + The default operator resolving logic. + """ + if symbol not in self.operator_table: + raise exc_for_token(token, f"Unknown operator '{symbol}'.") + return token, self.operator_table[symbol] + + # The operator table cache may not be pickleable, so let's drop it. + def __getstate__(self) -> dict: + return {} diff --git a/shared/package-files/eb/ebaee9a3763507c9f06122eaa6d4c90b03ffb9afb3d15a6f277b6aa815e4e899/blob b/shared/package-files/eb/ebaee9a3763507c9f06122eaa6d4c90b03ffb9afb3d15a6f277b6aa815e4e899/blob new file mode 100644 index 0000000000000000000000000000000000000000..f38c1a9f885d9286acd6364390855cef74bcf26b --- /dev/null +++ b/shared/package-files/eb/ebaee9a3763507c9f06122eaa6d4c90b03ffb9afb3d15a6f277b6aa815e4e899/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebaee9a3763507c9f06122eaa6d4c90b03ffb9afb3d15a6f277b6aa815e4e899 +size 116993 diff --git a/shared/package-files/eb/ebb08a23a014de97471354352a02249c1141f24864e0b0881ed166a8e92b2d20/blob b/shared/package-files/eb/ebb08a23a014de97471354352a02249c1141f24864e0b0881ed166a8e92b2d20/blob new file mode 100644 index 0000000000000000000000000000000000000000..f2b3f8ddf071b56969ecfa467d4a162e5ca3ceb6 --- /dev/null +++ b/shared/package-files/eb/ebb08a23a014de97471354352a02249c1141f24864e0b0881ed166a8e92b2d20/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor special_scaled_modified_bessel_k0(const at::Tensor & x); +TORCH_API at::Tensor & special_scaled_modified_bessel_k0_out(at::Tensor & out, const at::Tensor & x); +TORCH_API at::Tensor & special_scaled_modified_bessel_k0_outf(const at::Tensor & x, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/eb/ebb3c6569c900549773ecbdc91601a253c56dff5daa29bd64e2f500d4f12e94c/blob b/shared/package-files/eb/ebb3c6569c900549773ecbdc91601a253c56dff5daa29bd64e2f500d4f12e94c/blob new file mode 100644 index 0000000000000000000000000000000000000000..b5621327d308476a2a7602bae1d4e889d898e385 --- /dev/null +++ b/shared/package-files/eb/ebb3c6569c900549773ecbdc91601a253c56dff5daa29bd64e2f500d4f12e94c/blob @@ -0,0 +1,203 @@ +""" +Tests for CFA simulation smoothing in a TVP-VAR model + +See "results/cfa_tvpvar_test.m" for Matlab file that generates the results. + +Based on "TVPVAR.m", found at http://joshuachan.org/code/code_TVPVAR.html. +See [1]_ for details on the TVP-VAR model and the CFA method. + +References +---------- +.. [1] Chan, Joshua CC, and Ivan Jeliazkov. + "Efficient simulation and integrated likelihood estimation in + state space models." + International Journal of Mathematical Modelling and Numerical + Optimisation 1, no. 1-2 (2009): 101-120. + +Author: Chad Fulton +License: BSD-3 +""" +from pathlib import Path + +import numpy as np +from numpy.testing import assert_allclose +import pandas as pd + +from statsmodels import datasets +from statsmodels.tools import add_constant +from statsmodels.tsa.statespace import mlemodel +from statsmodels.tsa.tsatools import lagmat + +dta = datasets.macrodata.load_pandas().data +dta.index = pd.period_range("1959Q1", "2009Q3", freq="Q") +endog = np.log(dta[["realcons", "realgdp"]]).diff().iloc[1:13] * 400 + +current_path = Path(__file__).resolve().parent +results_path = Path(current_path).joinpath("results") +results = { + "invP": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_invP.csv"), header=None), + "posterior_mean": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_posterior_mean.csv"), + header=None), + "state_variates": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_state_variates.csv"), + header=None), + "beta": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_beta.csv"), header=None), + "v10": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_v10.csv"), header=None), + "S10": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_S10.csv"), header=None), + "Omega_11": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_Omega_11.csv"), header=None), + "vi0": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_vi0.csv"), header=None), + "Si0": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_Si0.csv"), header=None), + "Omega_22": pd.read_csv( + Path(results_path).joinpath("cfa_tvpvar_Omega_22.csv"), header=None)} + + +class TVPVAR(mlemodel.MLEModel): + def __init__(self, endog): + if not isinstance(endog, pd.DataFrame): + endog = pd.DataFrame(endog) + + k = endog.shape[1] + augmented = lagmat(endog, 1, trim="both", original="in", + use_pandas=True) + endog = augmented.iloc[:, :k] + exog = add_constant(augmented.iloc[:, k:]) + + k_states = k * (k + 1) + super().__init__(endog, k_states=k_states) + + self.ssm.initialize("known", stationary_cov=np.eye(self.k_states) * 5) + + self["design"] = np.zeros((self.k_endog, self.k_states, self.nobs)) + for i in range(self.k_endog): + start = i * (self.k_endog + 1) + end = start + self.k_endog + 1 + self["design", i, start:end, :] = exog.T + self["transition"] = np.eye(k_states) + self["selection"] = np.eye(k_states) + + self._obs_cov_slice = np.s_[:self.k_endog * (self.k_endog + 1) // 2] + self._obs_cov_tril = np.tril_indices(self.k_endog) + self._state_cov_slice = np.s_[-self.k_states:] + self._state_cov_ix = ("state_cov",) + np.diag_indices(self.k_states) + + @property + def state_names(self): + state_names = [] + for i in range(self.k_endog): + endog_name = self.endog_names[i] + state_names += [f"intercept.{endog_name}"] + state_names += [f"L1.{other_name}->{endog_name}" + for other_name in self.endog_names] + return state_names + + def update_direct(self, obs_cov, state_cov_diag): + self["obs_cov"] = obs_cov + self[self._state_cov_ix] = state_cov_diag + + +def test_tvpvar(): + # This tests two MCMC iterations of the TVP-VAR model using the CFA + # simulation smoother. + + # Create the model and the CFA simulation smoother + mod = TVPVAR(endog.iloc[2:]) + sim = mod.simulation_smoother(method="cfa") + + # Prior hyperparameters + v10 = mod.k_endog + 3 + S10 = np.eye(mod.k_endog) + + vi0 = np.ones(mod.k_states) * 6 / 2 + Si0 = np.ones(mod.k_states) * 0.01 / 2 + + # - First iteration ------------------------------------------------------ + + # Update the model with initial parameterization + initial_obs_cov = np.cov(endog.T) + initial_state_cov_vars = np.ones(mod.k_states) * 0.01 + mod.update_direct(initial_obs_cov, initial_state_cov_vars) + res = mod.ssm.smooth() + + # Simulate the state using the given variates + # (this also computes posterior moments) + variates_1 = results["state_variates"].iloc[:6] + sim.simulate(variates_1) + + # Check state posterior moments + posterior_mean_1 = results["posterior_mean"].iloc[:6] + assert_allclose(sim.posterior_mean, posterior_mean_1) + assert_allclose(sim.posterior_mean, res.smoothed_state) + + posterior_cov_1 = np.linalg.inv(results["invP"].iloc[:54]) + assert_allclose(sim.posterior_cov, posterior_cov_1) + + # Check simulated state + simulated_state_1 = results["beta"].iloc[:6] + assert_allclose(sim.simulated_state, simulated_state_1) + + # Posterior for obs cov + fitted = np.matmul(mod["design"].transpose(2, 0, 1), + sim.simulated_state.T[..., None])[..., 0] + resid = mod.endog - fitted + df = v10 + mod.nobs + scale = S10 + np.dot(resid.T, resid) + assert_allclose(df, results["v10"].iloc[:2]) + assert_allclose(scale, results["S10"].iloc[:, :2]) + + # Posterior for state cov + resid = sim.simulated_state.T[1:] - sim.simulated_state.T[:-1] + sse = np.sum(resid**2, axis=0) + shapes = vi0 + (mod.nobs - 1) / 2 + scales = Si0 + sse / 2 + assert_allclose(shapes, results["vi0"].values[0, 0]) + assert_allclose(scales, results["Si0"].iloc[:, 0]) + + # - Second iteration ----------------------------------------------------- + + # Update the model with variates drawn in the previous iteration (here we + # use the saved test case variates) + mod.update_direct(results["Omega_11"].iloc[:, :2], + results["Omega_22"].iloc[:, 0]) + res = mod.ssm.smooth() + + # Simulate the state using the given variates + # (this also computes posterior moments) + variates_2 = results["state_variates"].iloc[6:] + sim.simulate(variates_2) + + # Check state posterior moments + posterior_mean_2 = results["posterior_mean"].iloc[6:] + assert_allclose(sim.posterior_mean, posterior_mean_2) + assert_allclose(sim.posterior_mean, res.smoothed_state) + + posterior_cov_2 = np.linalg.inv(results["invP"].iloc[54:]) + assert_allclose(sim.posterior_cov, posterior_cov_2) + + # Check simulated state + simulated_state_2 = results["beta"].iloc[6:] + assert_allclose(sim.simulated_state, simulated_state_2) + + # Posterior for obs cov + fitted = np.matmul(mod["design"].transpose(2, 0, 1), + sim.simulated_state.T[..., None])[..., 0] + resid = mod.endog - fitted + df = v10 + mod.nobs + scale = S10 + np.dot(resid.T, resid) + assert_allclose(df, results["v10"].iloc[2:]) + assert_allclose(scale, results["S10"].iloc[:, 2:]) + + # Posterior for state cov + resid = sim.simulated_state.T[1:] - sim.simulated_state.T[:-1] + sse = np.sum(resid**2, axis=0) + shapes = vi0 + (mod.nobs - 1) / 2 + scales = Si0 + sse / 2 + assert_allclose(shapes, results["vi0"].values[0, 1]) + assert_allclose(scales, results["Si0"].iloc[:, 1]) diff --git a/shared/package-files/eb/ebb704ba24f0e72e56d5993df0bfd2fd298920d21fcbf9b35829321dcba3cfde/blob b/shared/package-files/eb/ebb704ba24f0e72e56d5993df0bfd2fd298920d21fcbf9b35829321dcba3cfde/blob new file mode 100644 index 0000000000000000000000000000000000000000..c7e7e90fb49965b962f502a3ac9135a1c00b0374 --- /dev/null +++ b/shared/package-files/eb/ebb704ba24f0e72e56d5993df0bfd2fd298920d21fcbf9b35829321dcba3cfde/blob @@ -0,0 +1,13 @@ +from .otBase import BaseTTXConverter + + +class table_M_V_A_R_(BaseTTXConverter): + """Metrics Variations table + + The ``MVAR`` table contains variation information for font-wide + metrics in a variable font. + + See also https://learn.microsoft.com/en-us/typography/opentype/spec/mvar + """ + + pass diff --git a/shared/package-files/eb/ebb76654eeafe60ce9f3da606f8c29c6a0eb580c755235f8be1743407e2679b4/blob b/shared/package-files/eb/ebb76654eeafe60ce9f3da606f8c29c6a0eb580c755235f8be1743407e2679b4/blob new file mode 100644 index 0000000000000000000000000000000000000000..1c9c9195eb4b63eaa6b6764657f2f127be8b9b88 --- /dev/null +++ b/shared/package-files/eb/ebb76654eeafe60ce9f3da606f8c29c6a0eb580c755235f8be1743407e2679b4/blob @@ -0,0 +1,547 @@ +import itertools +import numpy as np +from numba.cuda.cudadrv import devicearray +from numba import cuda +from numba.cuda.testing import unittest, CUDATestCase +from numba.cuda.testing import skip_on_cudasim + + +class TestCudaNDArray(CUDATestCase): + def test_device_array_interface(self): + dary = cuda.device_array(shape=100) + devicearray.verify_cuda_ndarray_interface(dary) + + ary = np.empty(100) + dary = cuda.to_device(ary) + devicearray.verify_cuda_ndarray_interface(dary) + + ary = np.asarray(1.234) + dary = cuda.to_device(ary) + self.assertEqual(dary.ndim, 0) + devicearray.verify_cuda_ndarray_interface(dary) + + def test_device_array_from_readonly(self): + ary = np.arange(100, dtype=np.float32) + # Make the array readonly + ary.flags.writeable = False + self.assertFalse(ary.flags.writeable) + # Ensure that we can copy the readonly array + dary = cuda.to_device(ary) + retr = dary.copy_to_host() + np.testing.assert_array_equal(retr, ary) + + def test_devicearray_dtype(self): + dary = cuda.device_array(shape=(100,), dtype="f4") + self.assertEqual(dary.dtype, np.dtype("f4")) + + def test_devicearray_no_copy(self): + array = np.arange(100, dtype=np.float32) + cuda.to_device(array, copy=False) + + def test_devicearray_shape(self): + ary = np.arange(2 * 3 * 4).reshape(2, 3, 4) + dary = cuda.to_device(ary) + self.assertEqual(ary.shape, dary.shape) + self.assertEqual(ary.shape[1:], dary.shape[1:]) + + def test_devicearray(self): + array = np.arange(100, dtype=np.int32) + original = array.copy() + gpumem = cuda.to_device(array) + array[:] = 0 + gpumem.copy_to_host(array) + + np.testing.assert_array_equal(array, original) + + def test_stream_bind(self): + stream = cuda.stream() + with stream.auto_synchronize(): + arr = cuda.device_array( + (3, 3), + dtype=np.float64, + stream=stream) + self.assertEqual(arr.bind(stream).stream, stream) + self.assertEqual(arr.stream, stream) + + def test_len_1d(self): + ary = np.empty((3,)) + dary = cuda.device_array(3) + self.assertEqual(len(ary), len(dary)) + + def test_len_2d(self): + ary = np.empty((3, 5)) + dary = cuda.device_array((3, 5)) + self.assertEqual(len(ary), len(dary)) + + def test_len_3d(self): + ary = np.empty((3, 5, 7)) + dary = cuda.device_array((3, 5, 7)) + self.assertEqual(len(ary), len(dary)) + + def test_devicearray_partition(self): + N = 100 + array = np.arange(N, dtype=np.int32) + original = array.copy() + gpumem = cuda.to_device(array) + left, right = gpumem.split(N // 2) + + array[:] = 0 + + self.assertTrue(np.all(array == 0)) + + right.copy_to_host(array[N // 2:]) + left.copy_to_host(array[:N // 2]) + + self.assertTrue(np.all(array == original)) + + def test_devicearray_replace(self): + N = 100 + array = np.arange(N, dtype=np.int32) + original = array.copy() + gpumem = cuda.to_device(array) + cuda.to_device(array * 2, to=gpumem) + gpumem.copy_to_host(array) + np.testing.assert_array_equal(array, original * 2) + + @skip_on_cudasim('This works in the simulator') + def test_devicearray_transpose_wrongdim(self): + gpumem = cuda.to_device(np.array(np.arange(12)).reshape(3, 4, 1)) + + with self.assertRaises(NotImplementedError) as e: + np.transpose(gpumem) + + self.assertEqual( + "transposing a non-2D DeviceNDArray isn't supported", + str(e.exception)) + + def test_devicearray_transpose_identity(self): + # any-shape identities should work + original = np.array(np.arange(24)).reshape(3, 4, 2) + array = np.transpose(cuda.to_device(original), + axes=(0, 1, 2)).copy_to_host() + self.assertTrue(np.all(array == original)) + + def test_devicearray_transpose_duplicatedaxis(self): + gpumem = cuda.to_device(np.array(np.arange(12)).reshape(3, 4)) + + with self.assertRaises(ValueError) as e: + np.transpose(gpumem, axes=(0, 0)) + + self.assertIn( + str(e.exception), + container=[ + 'invalid axes list (0, 0)', # GPU + 'repeated axis in transpose', # sim + ]) + + def test_devicearray_transpose_wrongaxis(self): + gpumem = cuda.to_device(np.array(np.arange(12)).reshape(3, 4)) + + with self.assertRaises(ValueError) as e: + np.transpose(gpumem, axes=(0, 2)) + + self.assertIn( + str(e.exception), + container=[ + 'invalid axes list (0, 2)', # GPU + 'invalid axis for this array', + 'axis 2 is out of bounds for array of dimension 2', # sim + ]) + + def test_devicearray_view_ok(self): + original = np.array(np.arange(12), dtype="i2").reshape(3, 4) + array = cuda.to_device(original) + for dtype in ("i4", "u4", "i8", "f8"): + with self.subTest(dtype=dtype): + np.testing.assert_array_equal( + array.view(dtype).copy_to_host(), + original.view(dtype) + ) + + def test_devicearray_view_ok_not_c_contig(self): + original = np.array(np.arange(32), dtype="i2").reshape(4, 8) + array = cuda.to_device(original)[:, ::2] + original = original[:, ::2] + np.testing.assert_array_equal( + array.view("u2").copy_to_host(), + original.view("u2") + ) + + def test_devicearray_view_bad_not_c_contig(self): + original = np.array(np.arange(32), dtype="i2").reshape(4, 8) + array = cuda.to_device(original)[:, ::2] + with self.assertRaises(ValueError) as e: + array.view("i4") + + msg = str(e.exception) + self.assertIn('To change to a dtype of a different size,', msg) + + contiguous_pre_np123 = 'the array must be C-contiguous' in msg + contiguous_post_np123 = 'the last axis must be contiguous' in msg + self.assertTrue(contiguous_pre_np123 or contiguous_post_np123, + 'Expected message to mention contiguity') + + def test_devicearray_view_bad_itemsize(self): + original = np.array(np.arange(12), dtype="i2").reshape(4, 3) + array = cuda.to_device(original) + with self.assertRaises(ValueError) as e: + array.view("i4") + self.assertEqual( + "When changing to a larger dtype," + " its size must be a divisor of the total size in bytes" + " of the last axis of the array.", + str(e.exception)) + + def test_devicearray_transpose_ok(self): + original = np.array(np.arange(12)).reshape(3, 4) + array = np.transpose(cuda.to_device(original)).copy_to_host() + self.assertTrue(np.all(array == original.T)) + + def test_devicearray_transpose_T(self): + original = np.array(np.arange(12)).reshape(3, 4) + array = cuda.to_device(original).T.copy_to_host() + self.assertTrue(np.all(array == original.T)) + + def test_devicearray_contiguous_slice(self): + # memcpys are dumb ranges of bytes, so trying to + # copy to a non-contiguous range shouldn't work! + a = np.arange(25).reshape(5, 5, order='F') + s = np.full(fill_value=5, shape=(5,)) + + d = cuda.to_device(a) + a[2] = s + + # d is in F-order (not C-order), so d[2] is not contiguous + # (40-byte strides). This means we can't memcpy to it! + with self.assertRaises(ValueError) as e: + d[2].copy_to_device(s) + self.assertEqual( + devicearray.errmsg_contiguous_buffer, + str(e.exception)) + + # if d[2].copy_to_device(s), then this would pass: + # self.assertTrue((a == d.copy_to_host()).all()) + + def _test_devicearray_contiguous_host_copy(self, a_c, a_f): + """ + Checks host->device memcpys + """ + self.assertTrue(a_c.flags.c_contiguous) + self.assertTrue(a_f.flags.f_contiguous) + + for original, copy in [ + (a_f, a_f), + (a_f, a_c), + (a_c, a_f), + (a_c, a_c), + ]: + msg = '%s => %s' % ( + 'C' if original.flags.c_contiguous else 'F', + 'C' if copy.flags.c_contiguous else 'F', + ) + + d = cuda.to_device(original) + d.copy_to_device(copy) + self.assertTrue(np.all(d.copy_to_host() == a_c), msg=msg) + self.assertTrue(np.all(d.copy_to_host() == a_f), msg=msg) + + def test_devicearray_contiguous_copy_host_3d(self): + a_c = np.arange(5 * 5 * 5).reshape(5, 5, 5) + a_f = np.array(a_c, order='F') + self._test_devicearray_contiguous_host_copy(a_c, a_f) + + def test_devicearray_contiguous_copy_host_1d(self): + a_c = np.arange(5) + a_f = np.array(a_c, order='F') + self._test_devicearray_contiguous_host_copy(a_c, a_f) + + def test_devicearray_contiguous_copy_device(self): + a_c = np.arange(5 * 5 * 5).reshape(5, 5, 5) + a_f = np.array(a_c, order='F') + self.assertTrue(a_c.flags.c_contiguous) + self.assertTrue(a_f.flags.f_contiguous) + + d = cuda.to_device(a_c) + + with self.assertRaises(ValueError) as e: + d.copy_to_device(cuda.to_device(a_f)) + self.assertEqual( + "incompatible strides: {} vs. {}".format(a_c.strides, a_f.strides), + str(e.exception)) + + d.copy_to_device(cuda.to_device(a_c)) + self.assertTrue(np.all(d.copy_to_host() == a_c)) + + d = cuda.to_device(a_f) + + with self.assertRaises(ValueError) as e: + d.copy_to_device(cuda.to_device(a_c)) + self.assertEqual( + "incompatible strides: {} vs. {}".format(a_f.strides, a_c.strides), + str(e.exception)) + + d.copy_to_device(cuda.to_device(a_f)) + self.assertTrue(np.all(d.copy_to_host() == a_f)) + + def test_devicearray_broadcast_host_copy(self): + broadsize = 4 + coreshape = (2, 3) + coresize = np.prod(coreshape) + core_c = np.arange(coresize).reshape(coreshape, order='C') + core_f = np.arange(coresize).reshape(coreshape, order='F') + for dim in range(len(coreshape)): + newindex = (slice(None),) * dim + (np.newaxis,) + broadshape = coreshape[:dim] + (broadsize,) + coreshape[dim:] + broad_c = np.broadcast_to(core_c[newindex], broadshape) + broad_f = np.broadcast_to(core_f[newindex], broadshape) + dbroad_c = cuda.to_device(broad_c) + dbroad_f = cuda.to_device(broad_f) + np.testing.assert_array_equal(dbroad_c.copy_to_host(), broad_c) + np.testing.assert_array_equal(dbroad_f.copy_to_host(), broad_f) + # Also test copying across different core orderings + dbroad_c.copy_to_device(broad_f) + dbroad_f.copy_to_device(broad_c) + np.testing.assert_array_equal(dbroad_c.copy_to_host(), broad_f) + np.testing.assert_array_equal(dbroad_f.copy_to_host(), broad_c) + + def test_devicearray_contiguous_host_strided(self): + a_c = np.arange(10) + d = cuda.to_device(a_c) + arr = np.arange(20)[::2] + d.copy_to_device(arr) + np.testing.assert_array_equal(d.copy_to_host(), arr) + + def test_devicearray_contiguous_device_strided(self): + d = cuda.to_device(np.arange(20)) + arr = np.arange(20) + + with self.assertRaises(ValueError) as e: + d.copy_to_device(cuda.to_device(arr)[::2]) + self.assertEqual( + devicearray.errmsg_contiguous_buffer, + str(e.exception)) + + @skip_on_cudasim('DeviceNDArray class not present in simulator') + def test_devicearray_relaxed_strides(self): + # From the reproducer in Issue #6824. + + # Construct a device array that is contiguous even though + # the strides for the first axis (800) are not equal to + # the strides * size (10 * 8 = 80) for the previous axis, + # because the first axis size is 1. + arr = devicearray.DeviceNDArray((1, 10), (800, 8), np.float64) + + # Ensure we still believe the array to be contiguous because + # strides checking is relaxed. + self.assertTrue(arr.flags['C_CONTIGUOUS']) + self.assertTrue(arr.flags['F_CONTIGUOUS']) + + def test_c_f_contiguity_matches_numpy(self): + # From the reproducer in Issue #4943. + + shapes = ((1, 4), (4, 1)) + orders = ('C', 'F') + + for shape, order in itertools.product(shapes, orders): + arr = np.ndarray(shape, order=order) + d_arr = cuda.to_device(arr) + self.assertEqual(arr.flags['C_CONTIGUOUS'], + d_arr.flags['C_CONTIGUOUS']) + self.assertEqual(arr.flags['F_CONTIGUOUS'], + d_arr.flags['F_CONTIGUOUS']) + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_simple_c(self): + # C-order 1D array + a = np.zeros(10, order='C') + d = cuda.to_device(a) + self.assertEqual(d._numba_type_.layout, 'C') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_simple_f(self): + # F-order array that is also C layout. + a = np.zeros(10, order='F') + d = cuda.to_device(a) + self.assertEqual(d._numba_type_.layout, 'C') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_2d_c(self): + # C-order 2D array + a = np.zeros((2, 10), order='C') + d = cuda.to_device(a) + self.assertEqual(d._numba_type_.layout, 'C') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_2d_f(self): + # F-order array that can only be F layout + a = np.zeros((2, 10), order='F') + d = cuda.to_device(a) + self.assertEqual(d._numba_type_.layout, 'F') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_noncontig_slice_c(self): + # Non-contiguous slice of C-order array + a = np.zeros((5, 5), order='C') + d = cuda.to_device(a)[:,2] + self.assertEqual(d._numba_type_.layout, 'A') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_noncontig_slice_f(self): + # Non-contiguous slice of F-order array + a = np.zeros((5, 5), order='F') + d = cuda.to_device(a)[2,:] + self.assertEqual(d._numba_type_.layout, 'A') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_contig_slice_c(self): + # Contiguous slice of C-order array + a = np.zeros((5, 5), order='C') + d = cuda.to_device(a)[2,:] + self.assertEqual(d._numba_type_.layout, 'C') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_contig_slice_f(self): + # Contiguous slice of F-order array - is both C- and F-contiguous, so + # types as 'C' layout + a = np.zeros((5, 5), order='F') + d = cuda.to_device(a)[:,2] + self.assertEqual(d._numba_type_.layout, 'C') + + @skip_on_cudasim('Typing not done in the simulator') + def test_devicearray_typing_order_broadcasted(self): + # Broadcasted array, similar to that used for passing scalars to ufuncs + a = np.broadcast_to(np.array([1]), (10,)) + d = cuda.to_device(a) + self.assertEqual(d._numba_type_.layout, 'A') + + def test_bug6697(self): + ary = np.arange(10, dtype=np.int16) + dary = cuda.to_device(ary) + got = np.asarray(dary) + self.assertEqual(got.dtype, dary.dtype) + + @skip_on_cudasim('DeviceNDArray class not present in simulator') + def test_issue_8477(self): + # Ensure that we can copy a zero-length device array to a zero-length + # host array when the strides of the device and host arrays differ - + # this should be possible because the strides are irrelevant when the + # length is zero. For more info see + # https://github.com/numba/numba/issues/8477. + + # Create a device array with shape (0,) and strides (8,) + dev_array = devicearray.DeviceNDArray(shape=(0,), strides=(8,), + dtype=np.int8) + + # Create a host array with shape (0,) and strides (0,) + host_array = np.ndarray(shape=(0,), strides=(0,), dtype=np.int8) + + # Sanity check for this test - ensure our destination has the strides + # we expect, because strides can be ignored in some cases by the + # ndarray constructor - checking here ensures that we haven't failed to + # account for unexpected behaviour across different versions of NumPy + self.assertEqual(host_array.strides, (0,)) + + # Ensure that the copy succeeds in both directions + dev_array.copy_to_host(host_array) + dev_array.copy_to_device(host_array) + + # Ensure that a device-to-device copy also succeeds when the strides + # differ - one way of doing this is to copy the host array across and + # use that for copies in both directions. + dev_array_from_host = cuda.to_device(host_array) + self.assertEqual(dev_array_from_host.shape, (0,)) + self.assertEqual(dev_array_from_host.strides, (0,)) + + dev_array.copy_to_device(dev_array_from_host) + dev_array_from_host.copy_to_device(dev_array) + + +class TestRecarray(CUDATestCase): + def test_recarray(self): + # From issue #4111 + a = np.recarray((16,), dtype=[ + ("value1", np.int64), + ("value2", np.float64), + ]) + a.value1 = np.arange(a.size, dtype=np.int64) + a.value2 = np.arange(a.size, dtype=np.float64) / 100 + + expect1 = a.value1 + expect2 = a.value2 + + def test(x, out1, out2): + i = cuda.grid(1) + if i < x.size: + out1[i] = x.value1[i] + out2[i] = x.value2[i] + + got1 = np.zeros_like(expect1) + got2 = np.zeros_like(expect2) + cuda.jit(test)[1, a.size](a, got1, got2) + + np.testing.assert_array_equal(expect1, got1) + np.testing.assert_array_equal(expect2, got2) + + +class TestCoreContiguous(CUDATestCase): + def _test_against_array_core(self, view): + self.assertEqual( + devicearray.is_contiguous(view), + devicearray.array_core(view).flags['C_CONTIGUOUS'] + ) + + def test_device_array_like_1d(self): + d_a = cuda.device_array(10, order='C') + self._test_against_array_core(d_a) + + def test_device_array_like_2d(self): + d_a = cuda.device_array((10, 12), order='C') + self._test_against_array_core(d_a) + + def test_device_array_like_2d_transpose(self): + d_a = cuda.device_array((10, 12), order='C') + self._test_against_array_core(d_a.T) + + def test_device_array_like_3d(self): + d_a = cuda.device_array((10, 12, 14), order='C') + self._test_against_array_core(d_a) + + def test_device_array_like_1d_f(self): + d_a = cuda.device_array(10, order='F') + self._test_against_array_core(d_a) + + def test_device_array_like_2d_f(self): + d_a = cuda.device_array((10, 12), order='F') + self._test_against_array_core(d_a) + + def test_device_array_like_2d_f_transpose(self): + d_a = cuda.device_array((10, 12), order='F') + self._test_against_array_core(d_a.T) + + def test_device_array_like_3d_f(self): + d_a = cuda.device_array((10, 12, 14), order='F') + self._test_against_array_core(d_a) + + def test_1d_view(self): + shape = 10 + view = np.zeros(shape)[::2] + self._test_against_array_core(view) + + def test_1d_view_f(self): + shape = 10 + view = np.zeros(shape, order='F')[::2] + self._test_against_array_core(view) + + def test_2d_view(self): + shape = (10, 12) + view = np.zeros(shape)[::2, ::2] + self._test_against_array_core(view) + + def test_2d_view_f(self): + shape = (10, 12) + view = np.zeros(shape, order='F')[::2, ::2] + self._test_against_array_core(view) + + +if __name__ == '__main__': + unittest.main() diff --git a/shared/package-files/eb/ebb7d16196c4ff870b89b58be941f64f186eaf7375ee052b9436e74bcb573a7f/blob b/shared/package-files/eb/ebb7d16196c4ff870b89b58be941f64f186eaf7375ee052b9436e74bcb573a7f/blob new file mode 100644 index 0000000000000000000000000000000000000000..c183104ca8f2a085a033da8f31c0102697267267 Binary files /dev/null and b/shared/package-files/eb/ebb7d16196c4ff870b89b58be941f64f186eaf7375ee052b9436e74bcb573a7f/blob differ diff --git a/shared/package-files/eb/ebba3560d98cf00cc964d066304bcee14553fd3b3833e91b9c8a58fb7f793ba4/blob b/shared/package-files/eb/ebba3560d98cf00cc964d066304bcee14553fd3b3833e91b9c8a58fb7f793ba4/blob new file mode 100644 index 0000000000000000000000000000000000000000..9f575a9cfd2ea1a1801f20ae47d6859c18be0512 --- /dev/null +++ b/shared/package-files/eb/ebba3560d98cf00cc964d066304bcee14553fd3b3833e91b9c8a58fb7f793ba4/blob @@ -0,0 +1,6006 @@ +import functools +import itertools +import logging +import os +import warnings +from collections import defaultdict +from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union + +import sympy + +import torch +import torch.ao.quantization.fx._decomposed +import torch.fx +import torch.utils._pytree as pytree +from torch._higher_order_ops.triton_kernel_wrap import ( + triton_kernel_wrapper_functional, + triton_kernel_wrapper_mutation, +) +from torch._prims_common import ( + canonicalize_dim, + canonicalize_dims, + check, + dtype_to_type, + elementwise_dtypes, + ELEMENTWISE_TYPE_PROMOTION_KIND, + get_computation_dtype, + is_boolean_dtype, + is_float_dtype, + is_integer_dtype, + Number, +) +from torch.fx.experimental.sym_node import magic_methods, method_to_operator +from torch.utils._sympy.functions import CeilDiv, FloorDiv, ModularIndexing +from .._dynamo.utils import import_submodule + +from . import config, inductor_prims, ir, test_operators # NOQA: F401 +from .decomposition import decompositions, get_decompositions +from .ir import ( + ExpandView, + IndexingConstant, + is_triton, + ops_wrapper, + PermuteView, + Pointwise, + Reduction, + SqueezeView, + TensorBox, + validate_ir, + View, +) +from .utils import ( + ceildiv, + decode_device, + is_dynamic, + is_pointwise_use, + pad_listlike, + parallel_num_threads, + sympy_product, +) +from .virtualized import ops, V + +log = logging.getLogger(__name__) +lowerings: Dict[torch._ops.OpOverload, Callable[..., Any]] = {} +layout_constraints: Dict[torch._ops.OpOverload, Callable[..., Any]] = {} +fallbacks: Set[torch._ops.OpOverload] = set() +aten = torch.ops.aten +tr_c10d = torch.ops.tr_c10d +prims = torch.ops.prims +needs_realized_inputs: Set[torch._ops.OpOverload] = set() +foreach_ops: Set[torch._ops.OpOverload] = set() +inplace_foreach_ops: Set[torch._ops.OpOverload] = set() +inplaceable_foreach_ops: Dict[torch._ops.OpOverload, torch._ops.OpOverload] = dict() +quantized_decomposed = torch.ops.quantized_decomposed + + +def assert_nyi(cond, msg): + if not cond: + raise NotImplementedError(f"inductor does not support {msg}") + + +def add_needs_realized_inputs(fn): + if isinstance(fn, (list, tuple, set)): + return [add_needs_realized_inputs(x) for x in fn] + needs_realized_inputs.add(fn) + if isinstance(fn, torch._ops.OpOverloadPacket): + for overload in fn.overloads(): + needs_realized_inputs.add(getattr(fn, overload)) + + +def add_layout_constraint(fn, constraint): + if isinstance(fn, torch._ops.OpOverloadPacket): + for overload in fn.overloads(): + layout_constraints[getattr(fn, overload)] = constraint + else: + layout_constraints[fn] = constraint + + +add_needs_realized_inputs( + [ + aten.as_strided, + aten.avg_pool2d, + aten.avg_pool2d_backward, + aten.bmm, + aten.convolution, + aten.convolution_backward, + aten.max_pool2d_with_indices, + aten.max_pool2d_with_indices_backward, + aten.mm, + aten.upsample_nearest2d, + aten._upsample_nearest_exact2d, + aten.upsample_bicubic2d, + aten._int_mm, + ] +) + +# TODO(jansel): ezyang says we won't need this in the future, try removing it +# based on https://github.com/pytorch/pytorch/blob/9e3eb329df8f701/c10/core/ScalarType.h#L28 +DTYPE_ID_LOOKUP = { + 0: torch.uint8, + 1: torch.int8, + 2: torch.int16, + 3: torch.int32, + 4: torch.int64, + 5: torch.float16, + 6: torch.float32, + 7: torch.float64, + 8: torch.complex32, + 9: torch.complex64, + 10: torch.complex32, + 11: torch.bool, + 15: torch.bfloat16, + # TODO(jansel): add quantized types? + # _(c10::qint8, QInt8) /* 12 */ + # _(c10::quint8, QUInt8) /* 13 */ + # _(c10::qint32, QInt32) /* 14 */ + # _(c10::quint4x2, QUInt4x2) /* 16 */ + # _(c10::quint2x4, QUInt2x4) /* 17 */ +} + + +def decode_dtype(dtype: int): + if not isinstance(dtype, int): + return dtype + assert dtype in DTYPE_ID_LOOKUP, f"id {dtype} missing from DTYPE_ID_LOOKUP" + dtype = DTYPE_ID_LOOKUP[dtype] + return dtype + + +def is_integer_type(x): + if isinstance(x, TensorBox): + return is_integer_dtype(x.get_dtype()) or is_boolean_dtype(x.get_dtype()) + elif isinstance(x, sympy.Expr): + return x.is_integer is True # type: ignore[attr-defined] + else: + return isinstance(x, int) + + +def is_boolean_type(x): + if isinstance(x, TensorBox): + return is_boolean_dtype(x.get_dtype()) + else: + return isinstance(x, bool) + + +def get_promoted_dtype(*args, type_promotion_kind: ELEMENTWISE_TYPE_PROMOTION_KIND): + def construct_input(inp): + if isinstance(inp, (Number, sympy.Expr)): + return inp + else: + assert hasattr(inp, "get_dtype") + dim = len(inp.get_size()) + # construct a tmp tensor to feed into torch.result_type + return torch.zeros([1] * dim, dtype=inp.get_dtype()) + + inps = [construct_input(arg) for arg in args] + _, dtype = elementwise_dtypes(*inps, type_promotion_kind=type_promotion_kind) + return dtype + + +def get_overloads(aten_fn): + if not isinstance(aten_fn, (list, tuple)): + aten_fn = [aten_fn] + else: + aten_fn = list(aten_fn) + + for fn in list(aten_fn): + if isinstance(fn, torch._ops.OpOverloadPacket): + for overload in fn.overloads(): + other_fn = getattr(fn, overload) + if other_fn not in lowerings: + aten_fn.append(other_fn) + + return aten_fn + + +def transform_args(args, broadcast, type_promotion_kind, convert_input_to_bool): + indices = [i for i, x in enumerate(args) if isinstance(x, TensorBox)] + if (type_promotion_kind or convert_input_to_bool) and indices: + if convert_input_to_bool: + dtype = torch.bool + else: + # FIXME that's a crude approximation for promoting args + promoting_args = [ + a + for a in args + if isinstance(a, (Number, sympy.Expr)) or hasattr(a, "dtype") + ] + dtype = get_promoted_dtype( + *promoting_args, type_promotion_kind=type_promotion_kind + ) + + # sometimes args are an immutable list so we can't mutate them + def promote(arg): + if isinstance(arg, TensorBox): + return to_dtype(arg, dtype) + elif isinstance(arg, ir.Constant): + return ir.Constant(arg.value, dtype, args[indices[0]].get_device()) + else: + return arg + + args = [promote(a) for a in args] + if broadcast and indices: + for i, x in zip(indices, broadcast_tensors(*[args[i] for i in indices])): + args[i] = x + for i in range(len(args)): + if isinstance(args[i], ir.Constant): + args[i] = ExpandView.create(args[i], list(args[indices[0]].get_size())) + + return args + + +def _register_foreach_lowering(aten_fn, decomp_fn): + """ + Add a foreach lowering to lowerings dict. + + Arguments: + aten_fn: torch.ops.aten.* fn we are lowering + decomp_fn: alternate implementation on our IR + broadcast: True to apply broadcasting to tensor inputs + type_promotion_kind: kind of type promotion applied to tensor inputs, `None` means no type promotion + convert_input_to_bool: some logical ops require inputs are converted to bool + """ + + @functools.wraps(decomp_fn) + def wrapped(*args, **kwargs): + assert len(args) <= 2 + out = decomp_fn(*args, **kwargs) + validate_ir(out) + return out + + aten_fns = get_overloads(aten_fn) + foreach_ops.update(aten_fns) + lowerings.update(dict.fromkeys(aten_fns, wrapped)) + return wrapped + + +def _register_lowering( + aten_fn, decomp_fn, broadcast, type_promotion_kind, convert_input_to_bool +): + """ + Add a lowering to lowerings dict + + Arguments: + aten_fn: torch.ops.aten.* fn we are lowering + decomp_fn: alternate implementation on our IR + broadcast: True to apply broadcasting to tensor inputs + type_promotion_kind: kind of type promotion applied to tensor inputs, `None` means no type promotion + convert_input_to_bool: some logical ops require inputs are converted to bool + """ + + @functools.wraps(decomp_fn) + def wrapped(*args, **kwargs): + args: Union[List[Any], Tuple[Any, ...], Dict[Any, Any]] = list(args) + unpacked = False + # TODO maybe we need to use pytrees here + if len(args) == 1 and isinstance(args[0], (list, tuple)): + unpacked = True + args = args[0] + + # explicitly assert for "out=" ops for better error messages + assert not any( + x == "out" for x in kwargs.keys() + ), "out= ops aren't yet supported" + # kwargs tensors not supported yet unless it's a fallback op + assert not any(isinstance(x, TensorBox) for x in kwargs.values()) or all( + fn in fallbacks for fn in aten_fn + ) + + args = transform_args( + args, broadcast, type_promotion_kind, convert_input_to_bool + ) + + if unpacked: + args = [args] + + out = decomp_fn(*args, **kwargs) + validate_ir(out) + + return out + + aten_fn = get_overloads(aten_fn) + + lowerings.update(dict.fromkeys(aten_fn, wrapped)) + return wrapped + + +def register_lowering( + aten_fn, + broadcast=False, + type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.DEFAULT, + convert_input_to_bool=False, +): + """ + Shim to support decorator syntax. + """ + return functools.partial( + _register_lowering, + aten_fn, + broadcast=broadcast, + type_promotion_kind=type_promotion_kind, + convert_input_to_bool=convert_input_to_bool, + ) + + +def broadcast_symbolic_shapes(a, b): + """ + Broadcasting logic based on symbolic shapes. + + We give the shapes 0 and 1 concrete values, while all other shapes + are symbolic sympy formulas. + """ + output = [] + for x, y in itertools.zip_longest( + reversed(a), reversed(b), fillvalue=sympy.Integer(1) + ): + if y == 1: + output.append(x) + elif x == 1: + output.append(y) + else: + V.graph.sizevars.guard_equals(x, y) + if len(sympy.expand(y).free_symbols) < len(sympy.expand(x).free_symbols): + output.append(y) # prefer shorter formula + else: + output.append(x) + return tuple(reversed(output)) + + +def promote_constants(inputs, override_return_dtype=None, type_promotion_kind=None): + assert ( + override_return_dtype is None or type_promotion_kind is None + ), "only one of override_return_dtype or type_promotion_kind may be given" + + if override_return_dtype is None and type_promotion_kind is None: + type_promotion_kind = ELEMENTWISE_TYPE_PROMOTION_KIND.DEFAULT + + if not any(isinstance(x, (sympy.Expr, int, float)) for x in inputs): + return inputs + if all(isinstance(x, (int, float, sympy.Expr)) for x in inputs): + dtype = override_return_dtype or get_promoted_dtype( + *inputs, type_promotion_kind=type_promotion_kind + ) + + def const_func(x): + if isinstance(x, sympy.Expr): + return ir.IndexingConstant(x, dtype, decode_device(None)) + else: + return ir.Constant(x, dtype, decode_device(None)) + + return [const_func(x) for x in inputs] + ex = next(x for x in inputs if isinstance(x, (TensorBox, ExpandView))) + out = [] + for x in inputs: + if isinstance(x, (int, float)): + out.append( + ExpandView.create( + ir.Constant(x, ex.get_dtype(), ex.get_device()), list(ex.get_size()) + ) + ) + elif isinstance(x, sympy.Expr): + out.append( + ExpandView.create( + IndexingConstant(x, ex.get_dtype(), ex.get_device()), + list(ex.get_size()), + ) + ) + else: + out.append(x) + + return out + + +def make_pointwise( + fn, + override_return_dtype=None, + override_device=None, + override_fn_when_input_bool=None, + override_fn_when_cuda_float64=None, + allow_alpha=False, + triton_fallback=None, +): + def inner(*inputs: List[TensorBox], alpha=None): + if triton_fallback is not None and any(map(is_triton, inputs)): + assert not allow_alpha # not implemented + return triton_fallback(*inputs) + + inputs = promote_constants(inputs, override_return_dtype) + if allow_alpha: + if alpha is not None and alpha != 1: + inputs = list(inputs) + inputs[-1] = mul(inputs[-1], alpha) + else: + assert alpha is None + loaders = [x.make_loader() for x in inputs] + ranges = inputs[0].get_size() + dtype = override_return_dtype or inputs[0].get_dtype() + is_cuda = decode_device(inputs[0].get_device()).type == "cuda" + + for other in inputs[1:]: + assert isinstance(other, ir.BaseConstant) or len(ranges) == len( + other.get_size() + ), f"ndim mismatch {fn} {ranges} {other.get_size()}" + + def inner_fn(index): + assert len(index) == len(ranges), f"wrong ndim {index} {ranges}" + if dtype == torch.bool and override_fn_when_input_bool is not None: + return override_fn_when_input_bool(*[load(index) for load in loaders]) + elif override_fn_when_cuda_float64 and is_cuda and dtype == torch.float64: + return override_fn_when_cuda_float64(*[load(index) for load in loaders]) + else: + return fn(*[load(index) for load in loaders]) + + if not override_device: + device = None + for i in inputs: + if i.get_device().type == "cuda": + device = i.get_device() + break + if not device: + device = inputs[0].get_device() + + device = override_device or device + + return Pointwise.create( + device=device, + dtype=dtype, + inner_fn=inner_fn, + ranges=ranges, + ) + + return inner + + +def make_foreach_pointwise(pw_fn, allow_alpha=False): + def inner(*inputs: List[List[TensorBox]], alpha=1): + # group by device, whether any of the inputs are dynamic, and whether their types match + # (proxy for type promotion) + def group_args(arg_pairs): + out = defaultdict(list) + for i, args in enumerate(arg_pairs): + use_foreach = not is_dynamic(*args) + device = None + for t in args: + if isinstance(t, TensorBox): + device = t.data.get_device() + break + assert ( + device is not None + ), "foreach op should have at least one tensor arg" + out[(device, use_foreach)].append((i, args)) + return out + + realize_outputs = ( + len(V.graph.current_node.users) == 0 + or V.graph.current_node.target in inplace_foreach_ops + ) + for node in V.graph.current_node.users: + for user in node.users: + if not (user.op == "call_function" and (user.target in foreach_ops)): + realize_outputs = True + + a_list_input = None + for input in inputs: + if isinstance(input, (list, tuple)): + a_list_input = input + break + assert ( + a_list_input is not None + ), "at least one input must be a list to a foreach op" + + # broadcast scalar inputs to match length of list inputs + broadcast_inputs = [] + for input in inputs: + if not isinstance(input, (list, tuple)): + broadcast_inputs.append([input] * len(a_list_input)) + else: + broadcast_inputs.append(input) + + groups = group_args(zip(*broadcast_inputs)) + + outputs = [None] * len(a_list_input) + for (device, use_foreach), group in groups.items(): + buffer_list = [] + for ( + output_ind, + args, + ) in group: + if allow_alpha: + output = pw_fn(*args, alpha=alpha) + else: + output = pw_fn(*args) + + outputs[output_ind] = output + + if device.type == "cuda" and use_foreach and realize_outputs: + buffer_list.append(output.realize()) + + if buffer_list: + V.graph.register_list(buffer_list) + + assert all(x is not None for x in outputs) + return outputs + + return inner + + +def to_dtype(x: TensorBox, dtype: torch.dtype, copy=False): + src_dtype = x.get_dtype() + if src_dtype == dtype: + return clone(x) if copy else x + + def _to_dtype(x): + return ops.to_dtype(x, dtype, src_dtype=src_dtype) + + return make_pointwise(_to_dtype, override_return_dtype=dtype)(x) + + +@register_lowering(prims.convert_element_type, type_promotion_kind=None) +def _convert_element_type(x: TensorBox, dtype: torch.dtype): + if dtype.is_complex or x.get_dtype().is_complex: + if x.get_size(): + # Decompose since aa aten fallback is more friendly for c++ codegen. + # This decompostion doesn't work for empty tensor, which needs more investigation. + dst = empty_like(x, dtype=dtype) + ir.InplaceCopyFallback.create(dst, x) + return dst + else: + return fallback_handler( + prims.convert_element_type.default, add_to_fallback_set=False + )(x, dtype) + return to_dtype(x, dtype, copy=True) + + +def to_dtype_bitcast(x: TensorBox, dtype: torch.dtype, *, copy=False): + x_dtype = x.get_dtype() + if x_dtype == dtype: + return clone(x) if copy else x + + def _get_primitive_bitwidth(dtype): + if dtype.is_floating_point: + return torch.finfo(dtype).bits + else: + return torch.iinfo(dtype).bits + + src_bits = _get_primitive_bitwidth(x_dtype) + dst_bits = _get_primitive_bitwidth(dtype) + if src_bits != dst_bits: + raise NotImplementedError( + f"bitcast {x_dtype} to different bitwidth type {dtype} is not supported yet." + ) + + def _to_dtype_bitcast(x): + # Because we may promote tensor type from float16 or bfloat16 + # to float, we will need to pass the original src dtype (i.e. x_dtype), + # which is used for correctly constructing type conversion before bitcast, + # which requires the bitwidth of the input tensor type is the same as the + # target type. + return ops.to_dtype_bitcast(x, dtype, x_dtype) + + return make_pointwise(_to_dtype_bitcast, override_return_dtype=dtype)(x) + + +@register_lowering(aten.view.dtype, type_promotion_kind=None) +def _view_dtype(x: TensorBox, dtype: torch.dtype): + if dtype.is_complex or x.get_dtype().is_complex: + return TensorBox.create( + ir.ComplexView.create(torch.ops.aten.view.dtype, x, dtype) + ) + return to_dtype_bitcast(x, dtype, copy=True) + + +def to_device(x: TensorBox, device: torch.device, *, copy=False): + device = decode_device(device) + if x.get_device() == device: + return clone(x) if copy else x + return TensorBox.create(ir.DeviceCopy.create(x, device)) + + +@register_lowering(prims.device_put, type_promotion_kind=None) +def _device_put(x: TensorBox, device: torch.device): + return to_device(x, device, copy=True) + + +def register_pointwise( + aten_fn, + name=None, + broadcast=True, + type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.DEFAULT, + convert_input_to_bool=False, + override_return_dtype=None, + override_fn_when_input_bool=None, + allow_alpha=False, + use_libdevice_for_f64=False, + triton_fallback=None, +): + """A pointwise function that maps ops.{name} to inputs""" + name = name or aten_fn.__name__ + fn = ops_wrapper(name) + if use_libdevice_for_f64: + fn_libdevice = ops_wrapper("libdevice_" + name) + if override_fn_when_input_bool is not None: + override_fn_when_input_bool = ops_wrapper(override_fn_when_input_bool) + + fn = make_pointwise( + fn, + override_return_dtype=override_return_dtype, + override_fn_when_input_bool=override_fn_when_input_bool, + override_fn_when_cuda_float64=fn_libdevice if use_libdevice_for_f64 else None, # type: ignore[possibly-undefined] + allow_alpha=allow_alpha, + triton_fallback=triton_fallback, + ) + fn = register_lowering( + aten_fn, + broadcast=broadcast, + type_promotion_kind=type_promotion_kind, + convert_input_to_bool=convert_input_to_bool, + )(fn) + + if hasattr(prims, name): + register_lowering( + getattr(prims, name), + type_promotion_kind=None, + convert_input_to_bool=convert_input_to_bool, + )(fn) + return fn + + +def register_frexp(): + """A pointwise function that maps ops.frexp to inputs""" + name = "frexp" + frexp = ops_wrapper("frexp") + + def frexp0(*args, **kwargs): + return frexp(*args, **kwargs)[0] + + def frexp1(*args, **kwargs): + return frexp(*args, **kwargs)[1] + + pw_fns = [ + make_pointwise(frexp0), + make_pointwise(frexp1, override_return_dtype=torch.int32), + ] + + def fn(*args, **kwargs): + return pw_fns[0](*args, **kwargs), pw_fns[1](*args, **kwargs) + + fn = register_lowering( + aten.frexp, + )(fn) + + if hasattr(prims, name): + register_lowering( + getattr(prims, name), + type_promotion_kind=None, + )(fn) + return fn + + +register_frexp() + + +def register_foreach_pointwise( + aten_fn, + pointwise_lowering_fn, + allow_alpha=False, +): + fn = make_foreach_pointwise(pointwise_lowering_fn, allow_alpha=allow_alpha) + fn = _register_foreach_lowering(aten_fn, fn) + return fn + + +@register_lowering(aten.where, broadcast=False, type_promotion_kind=None) +def where(cond, a, b): + def fn(*args): + return ops.where(*args) + + if isinstance(a, (float, int)): + a = constant_like(a)(b) + if isinstance(b, (float, int)): + b = constant_like(b)(a) + + args = [cond, a, b] + dtype = get_promoted_dtype( + args[1], args[2], type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.DEFAULT + ) + indices = [i for i, x in enumerate(args) if isinstance(x, TensorBox)] + for i, x in zip(indices, broadcast_tensors(*[args[i] for i in indices])): + args[i] = x + for i in range(len(args)): + if isinstance(args[i], ir.Constant): + args[i] = ExpandView.create(args[i], list(args[indices[0]].get_size())) + return make_pointwise(fn, override_return_dtype=dtype)( + args[0], to_dtype(args[1], dtype), to_dtype(args[2], dtype) + ) + + +@register_lowering(aten.broadcast_tensors, broadcast=False, type_promotion_kind=None) +def broadcast_tensors(*inputs): + if len(inputs) == 1 and isinstance(inputs[0], (list, tuple)): + return broadcast_tensors(*inputs[0]) + target: List[sympy.Expr] = functools.reduce( + broadcast_symbolic_shapes, [x.get_size() for x in inputs], [] + ) + outputs = [] + for x in inputs: + sizes = x.get_size() + if len(sizes) != len(target) or any( + ((a == 1 and b != 1) or (a != 1 and b == 1)) for a, b in zip(sizes, target) + ): + x = expand(x, target) + outputs.append(x) + return outputs + + +@register_lowering([aten.alias, aten.detach, aten.detach_, aten.lift, prims.view_of]) +def nop(x): + return x # AOT autograd handles this for us + + +if hasattr(aten, "lift_fresh"): + register_lowering(aten.lift_fresh)(nop) + + +@register_lowering(aten.squeeze, type_promotion_kind=None) +def squeeze(x, dim=None): + assert isinstance(x, TensorBox) + if dim is None: + return TensorBox(SqueezeView.create(x.data)) + + dim = canonicalize_dims(len(x.get_size()), dim) + dims = set((dim,) if not isinstance(dim, tuple) else dim) + + new_shape = [] + for d, s in enumerate(x.get_size()): + if not (d in dims and V.graph.sizevars.evaluate_expr(sympy.Eq(s, 1))): + new_shape.append(s) + + # squeeze does nothing if the size isn't 1 + return view(x, new_shape) if new_shape != x.get_size() else x + + +@register_lowering(aten.squeeze_copy, type_promotion_kind=None) +def squeeze_copy(x, dim=None): + return clone(squeeze(x, dim)) + + +@register_lowering([aten.squeeze_]) +def squeeze_(x, dim=None): + val = squeeze(x, dim) + assert isinstance(x, TensorBox) + assert isinstance(val, TensorBox) + x.data = val.data + return x + + +@register_lowering(aten.isinf) +def isinf(x): + if is_integer_type(x): + return full_like(x, False, dtype=torch.bool) + fn = ops_wrapper("isinf") + return make_pointwise(fn, override_return_dtype=torch.bool)(x) + + +@register_lowering(aten.isnan) +def isnan(x): + if is_integer_type(x): + return full_like(x, False, dtype=torch.bool) + fn = ops_wrapper("isnan") + return make_pointwise(fn, override_return_dtype=torch.bool)(x) + + +@register_lowering(aten.ceil) +def ceil(x): + if is_integer_type(x): + return clone(x) + fn = ops_wrapper("ceil") + return make_pointwise(fn)(x) + + +@register_lowering(aten.floor) +def floor(x): + if is_integer_type(x): + return clone(x) + fn = ops_wrapper("floor") + return make_pointwise(fn)(x) + + +@register_lowering(aten.round.default) +def round(x): + if is_integer_type(x): + return clone(x) + else: + fn = ops_wrapper("round") + return make_pointwise(fn)(x) + + +@register_lowering(aten.trunc) +def trunc(x): + if is_integer_type(x): + return clone(x) + fn = ops_wrapper("trunc") + return make_pointwise(fn)(x) + + +@register_lowering(aten.expand, type_promotion_kind=None) +def expand(x, sizes): + (x,) = promote_constants([x]) + if isinstance(x, ir.BaseConstant): + return ExpandView.create(x, tuple(sizes)) + assert isinstance(x, TensorBox) + assert isinstance(sizes, (list, tuple)) + if tuple(x.get_size()) == tuple(sizes): + return x + + if not any(V.graph.sizevars.shape_env.is_unbacked_symint(s) for s in x.get_size()): + x_size_product = V.graph.sizevars.size_hint(sympy_product(x.get_size())) + # TODO: It would be better to realize the input if any of its sizes + # are unbacked, because typically the size will be non-zero. However, + # this cannot be done directly as below as we'll choke on the size_hint + # here + if x_size_product > 0 and not any( + V.graph.sizevars.shape_env.is_unbacked_symint(s) for s in sizes + ): + # maybe realize input before broadcasting it + x.mark_reuse( + V.graph.sizevars.size_hint(sympy_product(sizes)) // x_size_product + ) + return TensorBox(ExpandView.create(x.data, tuple(sizes))) + + +@register_lowering(prims.broadcast_in_dim, type_promotion_kind=None) +def broadcast_in_dim(a, shape, broadcast_dimensions): + s = list(shape) + for broadcast_dimension in broadcast_dimensions: + s[broadcast_dimension] = -1 + + v = a + for idx, x in enumerate(s): + if x != -1: + v = unsqueeze(v, idx) + + return expand(v, shape) + + +@register_lowering(aten.expand_as, type_promotion_kind=None) +def expand_as(x, y): + return expand(x, y.get_size()) + + +@register_lowering(aten.repeat) +def repeat(x, repeats): + old_size = list(x.get_size()) + if len(repeats) > len(old_size): + old_size = [sympy.Integer(1)] * (len(repeats) - len(old_size)) + old_size + x = view(x, list(old_size)) + assert len(repeats) == len(x.get_size()) + + new_size = list(x.get_size()) + + zero_tensor = False + for i in range(len(repeats)): + if repeats[i] == 0: + zero_tensor = True + new_size[i] = new_size[i] * repeats[i] + + if zero_tensor: + return empty(new_size, dtype=x.get_dtype(), device=x.get_device()) + if all((a == 1 or b == 1) for a, b in zip(repeats, old_size)): + return expand(x, new_size) + + x_loader: Callable[[Any], Any] + + def inner_fn(index): + assert len(index) == len(repeats) + index = list(index) + for i in range(len(repeats)): + if repeats[i] != 1: + if old_size[i] == 1: + index[i] = sympy.Integer(0) + else: + index[i] = ModularIndexing(index[i], 1, old_size[i]) + return x_loader(index) + + old_size_product = V.graph.sizevars.size_hint(sympy_product(old_size)) + if old_size_product > 0: + # maybe realize the input + x.mark_reuse( + V.graph.sizevars.size_hint(sympy_product(new_size)) // old_size_product + ) + + x_loader = x.make_loader() + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=inner_fn, + ranges=list(new_size), + ) + + +@register_lowering(aten._unsafe_view, type_promotion_kind=None) +@register_lowering(aten.view, type_promotion_kind=None) +@register_lowering(aten.reshape, type_promotion_kind=None) +def view(x, sizes): + assert isinstance(x, TensorBox) + assert isinstance(sizes, (list, tuple)) + return TensorBox(View.create(x.data, sizes)) + + +@register_lowering(aten.permute, type_promotion_kind=None) +def permute(x, dims): + assert isinstance(x, TensorBox) + assert isinstance(dims, (list, tuple)) + return TensorBox(PermuteView.create(x.data, tuple(dims))) + + +@register_lowering(aten.slice, type_promotion_kind=None) +def slice_(x, dim=0, start=0, end=2**63, step=1): + assert isinstance(x, TensorBox) + dim = _validate_dim(x, dim, 0) + dim_size = x.get_size()[dim] + return TensorBox(ir.SliceView.create(x.data, dim, start, end, step)) + + +@register_lowering(aten.as_strided, type_promotion_kind=None) +def as_strided(x, size, stride, storage_offset=None): + if isinstance(x, TensorBox) and isinstance(x.data, ir.BaseView): + # as_strided ignores views + x = x.data.unwrap_view() + x.realize() + if not ir.is_storage_and_layout(x): + raise NotImplementedError(f"unrealized as_strided({x}, ...)") + storage, old_layout = ir.as_storage_and_layout(x) + new_layout = ir.FixedLayout( + old_layout.device, + old_layout.dtype, + [sympy.expand(s) for s in size], + [sympy.expand(s) for s in stride], + sympy.expand(storage_offset or 0), + ) + return TensorBox(ir.ReinterpretView(storage, new_layout)) + + +@register_lowering(aten.as_strided_, type_promotion_kind=None) +def as_strided_(x, size, stride, storage_offset=None): + assert isinstance(x, TensorBox) + x.data = as_strided(x, size, stride, storage_offset).data + return x + + +@register_lowering(aten.as_strided_copy, type_promotion_kind=None) +def as_strided_copy(x, size, stride, storage_offset=None): + result = as_strided(x, size, stride, storage_offset) + return clone(result) + + +def pointwise_cat(inputs, dim=0): + # (inclusive, exclusive) + inputs_ranges: List[Tuple[sympy.Expr, sympy.Expr]] = [] + prev_end = 0 + for inp in inputs: + inputs_ranges.append((prev_end, prev_end + inp.get_size()[dim])) # type: ignore[arg-type] + prev_end = inputs_ranges[-1][-1] # type: ignore[assignment] + + inputs_loaders = [inp.make_loader() for inp in inputs] + + def inner_fn(idx): + idx_dim = ops.index_expr(idx[dim], torch.int64) + + masks = [] + masked_loads = [] + for i in range(len(inputs)): + start = ( + ops.constant(0, torch.int64) + if i == 0 + else ops.index_expr(inputs_ranges[i][0], torch.int64) + ) + end = ops.index_expr(inputs_ranges[i][1], torch.int64) + + start_cond = ops.ge(idx_dim, start) + end_cond = ops.lt(idx_dim, end) + if i == 0: + mask = end_cond + elif i == len(inputs) - 1: + mask = start_cond + else: + mask = ops.and_(start_cond, end_cond) + + masks.append(mask) + idx_load = list(idx) + + # if we're concatting [4], [2] + # when we index the second tensor for 5 we want to index 5 - 4 + idx_load[dim] -= inputs_ranges[i][0] + + masked_loads.append( + ops.masked( + mask, + lambda: inputs_loaders[i](idx_load), + 0.0, # this value should be unused + ), + ) + + next_val = masked_loads[-1] + for i in range((len(inputs)) - 2, -1, -1): + next_val = ops.where( + masks[i], + masked_loads[i], + next_val, + ) + return next_val + + new_size = list(inputs[0].get_size()) + new_size[dim] = inputs_ranges[-1][-1] + + return Pointwise.create( + device=inputs[0].get_device(), + dtype=inputs[0].get_dtype(), + inner_fn=inner_fn, + ranges=new_size, + ) + + +@register_lowering(quantized_decomposed.quantize_per_channel, type_promotion_kind=None) +def quantized_decomposed_quantize_per_channel( + input: TensorBox, + scales: TensorBox, + zero_points: TensorBox, + axis: int, + quant_min: int, + quant_max: int, + dtype: torch.dtype, +) -> TensorBox: + assert len(scales.get_size()) == 1, "expect scales 1 dim" + assert len(zero_points.get_size()) == 1, "expect zero_points 1 dim" + + if input.get_dtype() == torch.bfloat16: + input = to_dtype(input, torch.float32) + assert ( + input.get_dtype() == torch.float32 + ), f"Expecting input to have dtype torch.float32, but got dtype: {input.get_dtype()}" + assert axis < len( + input.get_size() + ), f"Expecting axis to be < {len(input.get_size())}" + + input_loader = input.make_loader() + scales_loader = scales.make_loader() + zero_points_loader = zero_points.make_loader() + + def inner_fn(idx): + channel_idx = (idx[axis],) + + input = input_loader(idx) + scale = scales_loader(channel_idx) + zero_point = zero_points_loader(channel_idx) + qmin, qmax = _create_constants(quant_min, quant_max, dtype=torch.float32) + + if scales.dtype != torch.float32: + scale = ops.to_dtype(scale, torch.float32) + if zero_points.dtype != torch.int32: + zero_point = ops.to_dtype(zero_point, torch.int32) + inv_scale = ops.reciprocal(scale) + val = ops.round(input * inv_scale) + zero_point + clamped = ops.maximum(qmin, ops.minimum(qmax, val)) + return ops.to_dtype(clamped, dtype) + + return Pointwise.create( + device=input.get_device(), + dtype=dtype, + inner_fn=inner_fn, + ranges=input.get_size(), + ) + + +@register_lowering( + quantized_decomposed.dequantize_per_channel, type_promotion_kind=None +) +def quantized_decomposed_dequantize_per_channel( + input: TensorBox, + scales: TensorBox, + zero_points: TensorBox, + axis: int, + quant_min: int, + quant_max: int, + dtype: torch.dtype, +) -> TensorBox: + assert len(scales.get_size()) == 1, "expect scales 1 dim" + assert len(zero_points.get_size()) == 1, "expect zero_points 1 dim" + assert ( + input.get_dtype() == dtype + ), f"Expecting input to have dtype {dtype}, but got dtype: {input.get_dtype()}" + assert axis < len( + input.get_size() + ), f"Expecting axis to be < {len(input.get_size())}" + + input_loader = input.make_loader() + scales_loader = scales.make_loader() + zero_points_loader = zero_points.make_loader() + + def inner_fn(idx): + channel_idx = (idx[axis],) + + input = input_loader(idx) + scale = scales_loader(channel_idx) + zero_point = zero_points_loader(channel_idx) + + if scales.dtype != torch.float32: + scale = ops.to_dtype(scale, torch.float32) + if zero_points.dtype != torch.float32: + zero_point = ops.to_dtype(zero_point, torch.float32) + val = ops.sub(ops.to_dtype(input, torch.float32), zero_point) * scale + return val + + return Pointwise.create( + device=input.get_device(), + dtype=torch.float32, + inner_fn=inner_fn, + ranges=input.get_size(), + ) + + +@register_lowering(aten.cat) +def cat(inputs, dim=0): + if all(input.get_dtype() in [torch.int8, torch.uint8] for input in inputs): + # TODO Remove this fallback when we support vectorization + # code gen with uint8 data type directly. + for input in inputs: + input.realize() + if all(len(input.get_size()) == 4 for input in inputs): + inputs, _ = require_channels_last(aten.cat, *inputs) + return fallback_handler(aten.cat.default)(inputs, dim) + + if len(inputs) == 1: + return clone(inputs[0]) + + dim = _validate_dim(inputs[0], dim, 0) + dtype = get_promoted_dtype( + *inputs, type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.DEFAULT + ) + inputs = [to_dtype(inp, dtype) for inp in inputs] + + def unwrap_tensor(x: Union[TensorBox, ir.StorageBox]) -> ir.IRNode: + if isinstance(x, TensorBox): + if isinstance(x.data, ir.BaseView): + return x.data.unwrap_view() + else: + return x.data + + if isinstance(x, ir.StorageBox): + return x.data + + return x + + def should_lower_cat_input(x) -> bool: + # Unrealized inputs will not be storage and layouts, and we dont want to realize + # them in case we want to fuse + if ir.is_storage_and_layout(x): + storage, _ = ir.as_storage_and_layout(x, freeze=False) + return not ir.ConcatKernel.can_realize_into_without_copy(storage) + + if isinstance(x, (TensorBox, ir.StorageBox)): + return should_lower_cat_input(unwrap_tensor(x)) + + if isinstance(x, ir.Pointwise): + return True + + return False + + def is_reduction(t): + return isinstance(t, ir.ComputedBuffer) and isinstance(t.data, ir.Reduction) + + def can_fuse_reduction(t): + if isinstance(t, (TensorBox, ir.StorageBox)): + return can_fuse_reduction(unwrap_tensor(t)) + return ( + is_reduction(t) + or isinstance(t, ir.Pointwise) + and any( + can_fuse_reduction(V.graph.get_buffer(read)) + for read in t.get_read_names() + ) + ) + + # fusing reducutions into computed concat buffer can cause regressions. + fusable_reduction = any(can_fuse_reduction(t) for t in inputs) + + # TODO: We observed negative performance impact of pointwise_cat optimization on CPU so disabled it. + # We will revisit this later after enabling vectorization on index_expr. + if inputs[0].get_device().type == "cpu" or fusable_reduction: + return TensorBox(ir.ConcatKernel.create(inputs, dim)) + + def op_count(x): + if isinstance(x, (TensorBox, ir.StorageBox)): + return op_count(unwrap_tensor(x)) + + # this will correspond to a direct memory read + if not isinstance(x, ir.Pointwise): + return 0 + + count = x.inner_fn_opcount() + for read in x.get_read_names(): + count += op_count(V.graph.get_buffer(read)) + + return count + + # as of inputs increase, possibility for register spilling also increases + # past a certain threshold of inputs we only fuse if the if the input kernels + # are simple + # not sure if we want to expose to users via config since logic may change in future + MAX_COMPLEX_POINTWISE_CAT = 8 + MAX_SIMPLE_OP_COUNT = 2 + + if len(inputs) <= MAX_COMPLEX_POINTWISE_CAT or ( + (len(inputs) <= config.max_pointwise_cat_inputs) + and all(op_count(t) <= MAX_SIMPLE_OP_COUNT for t in inputs) + ): + pointwise_uses = all(is_pointwise_use(use) for use in V.current_node.users) + all_pointwise_inputs = all(should_lower_cat_input(inp) for inp in inputs) + any_pointwise_inputs = any(should_lower_cat_input(inp) for inp in inputs) + + if all_pointwise_inputs or (any_pointwise_inputs and pointwise_uses): + return pointwise_cat(inputs, dim) + + return TensorBox(ir.ConcatKernel.create(inputs, dim)) + + +@register_lowering(aten.diagonal, type_promotion_kind=None) +def diagonal(input, offset: int = 0, dim1: int = 0, dim2: int = 1): + original_shape = input.get_size() + num_dims = len(original_shape) + dim1 = canonicalize_dim(idx=dim1, rank=num_dims) + dim2 = canonicalize_dim(idx=dim2, rank=num_dims) + + check( + dim1 != dim2, lambda: f"diagonal dimensions cannot be identical {dim1}, {dim2}" + ) + + offset_negative = V.graph.sizevars.evaluate_expr(sympy.Lt(offset, 0)) + if offset_negative: + diag_size = max(min(original_shape[dim1] + offset, original_shape[dim2]), 0) + else: + diag_size = max(min(original_shape[dim1], original_shape[dim2] - offset), 0) + + base_idx = (0, 0) + if offset_negative: + base_idx = (-offset, 0) + else: + base_idx = (0, offset) + + sizes = [s for i, s in enumerate(original_shape) if i not in (dim1, dim2)] + sizes.append(diag_size) + + def reindexer(idx): + diag_idx = idx[-1] + original_idx = [0] * len(original_shape) + cur_dim = 0 + for d in range(num_dims): + if d == dim1: + original_idx[d] = diag_idx + base_idx[0] + elif d == dim2: + original_idx[d] = diag_idx + base_idx[1] + else: + original_idx[d] = idx[cur_dim] + cur_dim += 1 + + assert cur_dim == len(original_shape) - 2 + return original_idx + + return TensorBox(ir.GenericView.create(input, sizes, reindexer)) + + +@register_lowering(aten.diagonal_copy, type_promotion_kind=None) +def diagonal_copy(input, offset: int = 0, dim1: int = 0, dim2: int = 1): + return clone(diagonal(input, offset, dim1, dim2)) + + +@register_lowering(aten.diagonal_scatter, type_promotion_kind=None) +def diagonal_scatter(input, src, offset: int = 0, dim1: int = 0, dim2: int = 1): + output = clone(input) + target = diagonal(output, offset, dim1, dim2) + mutate_to(target, src) + return output + + +@register_lowering(aten.select, type_promotion_kind=None) +def select(x, dim, idx): + idx = View.handle_negative_index(idx, x.get_size()[dim]) + return squeeze(slice_(x, dim, idx, idx + 1), dim) + + +@register_lowering(aten.split, type_promotion_kind=None) +def split(x, sizes, dim=0): + dim = _validate_dim(x, dim, 0) + x_size = V.graph.sizevars.evaluate_static_shape(x.get_size()[dim]) + if isinstance(sizes, sympy.Expr): + # TODO: We don't have to guard on sizes per se, but the number + # of splits must stay constant + sizes = V.graph.sizevars.evaluate_static_shape(sizes) + if isinstance(sizes, (int, sympy.Integer)): + sizes = [sizes] * ((x_size + sizes - 1) // sizes) + result = [] + start = 0 + for size in sizes: + end = start + size + result.append(slice_(x, dim, start, end)) + start = end + return result + + +@register_lowering(aten.split_with_sizes, type_promotion_kind=None) +def split_with_sizes(x, sizes, dim=0): + return split(x, sizes, dim) + + +@register_lowering(aten.unbind, type_promotion_kind=None) +def unbind(x, dim=0): + dim = _validate_dim(x, dim, 0) + x_size = V.graph.sizevars.evaluate_static_shape(x.get_size()[dim]) + result = [] + for i in range(x_size): + result.append(select(x, dim, i)) + return result + + +@register_lowering(aten.unfold, type_promotion_kind=None) +def unfold(x, dimension, size, step): + sizes = x.get_size() + ndim = len(sizes) + dim = canonicalize_dim(ndim, dimension) + + if ndim == 0: + return slice_(unsqueeze(x, 0), end=size) + + dim_size = sizes[dim] + sizevars = V.graph.sizevars + sizevars.guard_leq(size, dim_size) + sizevars.guard_lt(0, step) # type: ignore[arg-type] + + new_dim_size = FloorDiv(dim_size - size, step) + 1 + if sizevars.size_hint(dim_size) > 0: + x.mark_reuse(sizevars.size_hint(CeilDiv(new_dim_size * size, dim_size))) + + out_size = [*sizes[:dim], new_dim_size, *sizes[dim + 1 :], size] + + def reindexer(idx): + dim_idx = idx[-1] + idx[dim] * step + return (*idx[:dim], dim_idx, *idx[dim + 1 : -1]) + + return TensorBox(ir.GenericView.create(x, out_size, reindexer)) + + +@register_lowering(aten.unsqueeze, type_promotion_kind=None) +def unsqueeze(x, dim): + dim = _validate_dim(x, dim, 1) + new_shape = list(x.get_size()) + new_shape.insert(dim, sympy.Integer(1)) + return view(x, new_shape) + + +@register_lowering(aten.unsqueeze_, type_promotion_kind=None) +def unsqueeze_(x, dim): + val = unsqueeze(x, dim) + assert isinstance(x, TensorBox) + assert isinstance(val, TensorBox) + x.data = val.data + return x + + +def _validate_dim(x, dim, offset=0): + assert isinstance(dim, int) + ndim = len(x.get_size()) + if dim < 0: + dim += ndim + offset + assert 0 <= dim < ndim + offset + return dim + + +@register_lowering(aten.glu) +def glu(x, dim=-1): + dim = _validate_dim(x, dim, 0) + # TODO: don't guard on static shape here + new_len = V.graph.sizevars.evaluate_static_shape(x.get_size()[dim]) // 2 + a = slice_(x, dim, 0, new_len) + b = slice_(x, dim, new_len, new_len * 2) + return mul(a, sigmoid(b)) + + +def register_onednn_fusion_ops(): + if torch._C._has_mkldnn: + cpu_needs_realized_inputs = [ + torch.ops.mkldnn._convolution_pointwise, + torch.ops.mkldnn._convolution_pointwise_, + torch.ops.mkldnn._convolution_transpose_pointwise, + torch.ops.mkldnn._linear_pointwise, + aten.mkldnn_rnn_layer.default, + torch.ops.onednn.qconv2d_pointwise, + ] + + @register_lowering(torch.ops.mkldnn._convolution_pointwise) + def convolution_unary( + x: TensorBox, + weight: TensorBox, + bias: TensorBox, + padding, + stride, + dilation, + groups, + attr, + scalars, + algorithm, + ): + return TensorBox.create( + ir.ConvolutionUnary.create( + x, + weight, + bias, + padding, + stride, + dilation, + groups, + attr, + scalars, + algorithm, + ) + ) + + @register_lowering(torch.ops.mkldnn._convolution_pointwise.binary) + def convolution_binary( + x: TensorBox, + other: TensorBox, + weight: TensorBox, + bias: TensorBox, + padding, + stride, + dilation, + groups, + binary_attr, + binary_alpha, + unary_attr, + unary_scalars, + unary_algorithm, + ): + return TensorBox.create( + ir.ConvolutionBinary.create( + x, + other, + weight, + bias, + padding, + stride, + dilation, + groups, + binary_attr, + binary_alpha, + unary_attr, + unary_scalars, + unary_algorithm, + ) + ) + + @register_lowering(torch.ops.mkldnn._convolution_pointwise_.binary) + def convolution_binary_inplace( + x: TensorBox, + other: TensorBox, + weight: TensorBox, + bias: TensorBox, + padding, + stride, + dilation, + groups, + binary_attr, + binary_alpha, + unary_attr, + unary_scalars, + unary_algorithm, + ): + return TensorBox.create( + ir.ConvolutionBinaryInplace.create( + x, + other, + weight, + bias, + padding, + stride, + dilation, + groups, + binary_attr, + binary_alpha, + unary_attr, + unary_scalars, + unary_algorithm, + ) + ) + + @register_lowering(torch.ops.mkldnn._linear_pointwise) + def linear_unary( + x: TensorBox, w: TensorBox, b: TensorBox, attr, scalars, algorithm + ): + return TensorBox.create( + ir.LinearUnary.create(x, w, b, attr, scalars, algorithm) + ) + + @register_lowering(torch.ops.mkldnn._linear_pointwise.binary) + def linear_binary(x: TensorBox, y: TensorBox, w: TensorBox, b: TensorBox, attr): + return TensorBox.create(ir.LinearBinary.create(x, y, w, b, attr)) + + @register_lowering(torch.ops.mkldnn._convolution_transpose_pointwise) + def convolution_transpose_unary( + x: TensorBox, + weight: TensorBox, + bias: TensorBox, + padding, + output_padding, + stride, + dilation, + groups, + attr, + scalars, + algorithm, + ): + return TensorBox.create( + ir.ConvolutionTransposeUnary.create( + x, + weight, + bias, + padding, + output_padding, + stride, + dilation, + groups, + attr, + scalars, + algorithm, + ) + ) + + @register_lowering(aten.mkldnn_rnn_layer.default) + def mkldnn_rnn_layer( + x: TensorBox, + w0: TensorBox, + w1: TensorBox, + w2: TensorBox, + w3: TensorBox, + hx: TensorBox, + cx: TensorBox, + reverse: bool, + batch_sizes: List[int], + mode: int, + hidden_size: int, + num_layers: int, + has_biases: bool, + bidirectional: bool, + batch_first: bool, + train: bool, + ): + return pytree.tree_map( + TensorBox.create, + ir.MkldnnRnnLayer.create( + x, + w0, + w1, + w2, + w3, + hx, + cx, + reverse, + batch_sizes, + mode, + hidden_size, + num_layers, + has_biases, + bidirectional, + batch_first, + train, + ), + ) + + @register_lowering(torch.ops.onednn.qconv2d_pointwise, type_promotion_kind=None) + def qconvolution_unary( + x: TensorBox, + x_scale, + x_zp, + packed_weight: TensorBox, + w_scale: TensorBox, + w_zp: TensorBox, + bias: TensorBox, + stride, + padding, + dilation, + groups, + o_inv_scale, + o_zero_point, + output_dtype, + attr, + scalars, + algorithm, + ): + return TensorBox.create( + ir.QConvPointWisePT2E.create( + x, + x_scale, + x_zp, + packed_weight, + w_scale, + w_zp, + bias, + stride, + padding, + dilation, + groups, + o_inv_scale, + o_zero_point, + output_dtype, + attr, + scalars, + algorithm, + ) + ) + + @register_lowering( + torch.ops.onednn.qconv2d_pointwise.binary, type_promotion_kind=None + ) + def qconvolution_binary( + x: TensorBox, + x_scale, + x_zp, + accum: TensorBox, + accum_scale, + accum_zp, + packed_weight: TensorBox, + w_scale: TensorBox, + w_zp: TensorBox, + bias: TensorBox, + stride, + padding, + dilation, + groups, + o_inv_scale, + o_zero_point, + output_dtype, + binary_attr, + alpha, + unary_attr, + unary_scalars, + unary_algorithmm, + ): + if ( + binary_attr == "sum" + and output_dtype in [torch.float32, torch.bfloat16] + and accum.get_dtype() in [torch.float32, torch.bfloat16] + and accum.get_dtype() != output_dtype + ): + # For int8-mixed-bf16 quantization and inplace add, + # there is case when accum dtype is float32 but output dtype is bfloat16. + # Since the accum will be inplaced changed with post op sum, + # we will do accum dtype convertion here. + accum = to_dtype(accum, output_dtype) + return TensorBox.create( + ir.QConvPointWiseBinaryPT2E.create( + x, + x_scale, + x_zp, + accum, + accum_scale, + accum_zp, + packed_weight, + w_scale, + w_zp, + bias, + stride, + padding, + dilation, + groups, + o_inv_scale, + o_zero_point, + output_dtype, + binary_attr, + alpha, + unary_attr, + unary_scalars, + unary_algorithmm, + ) + ) + + @register_lowering(torch.ops.onednn.qlinear_pointwise, type_promotion_kind=None) + def qlinear_unary( + x: TensorBox, + x_scale, + x_zp, + packed_weight: TensorBox, + w_scale: TensorBox, + w_zp: TensorBox, + bias: TensorBox, + o_inv_scale, + o_zero_point, + output_dtype, + attr, + scalars, + algorithm, + ): + return TensorBox.create( + ir.QLinearPointwisePT2E.create( + x, + x_scale, + x_zp, + packed_weight, + w_scale, + w_zp, + bias, + o_inv_scale, + o_zero_point, + output_dtype, + attr, + scalars, + algorithm, + ) + ) + + if torch._C.has_mkl: + cpu_needs_realized_inputs.append(torch.ops.mkl._mkl_linear) + + @register_lowering(torch.ops.mkl._mkl_linear) + def mkl_packed_linear( + x: TensorBox, + packed_w: TensorBox, + orig_w: TensorBox, + b: TensorBox, + batch_size, + ): + result = TensorBox.create( + ir.MKLPackedLinear.create(x, packed_w, orig_w, batch_size) + ) + if b is not None: + result = add(result, b) + return result + + add_needs_realized_inputs(cpu_needs_realized_inputs) + else: + pass + + +register_onednn_fusion_ops() + + +def fallback_handler(kernel, add_to_fallback_set=True): + if add_to_fallback_set: + fallbacks.add(kernel) + + def handler(*args, **kwargs): + return pytree.tree_map( + TensorBox.create, ir.FallbackKernel.create(kernel, *args, **kwargs) + ) + + return handler + + +@functools.lru_cache(None) +def _warn_complex_not_supported(): + warnings.warn( + "Torchinductor does not support code generation for complex operators. Performance may be worse than eager." + ) + + +# There are some types (CPU) which we accept as input but not as +# output. +def unsupported_input_tensor(t: torch._subclasses.FakeTensor, parent=None): + "Do not support reading or writing to this tensor" + if t.is_complex(): + # Complex views are supported with IR ComplexView + if parent and parent.target in ( + torch.ops.aten.view.dtype, + torch.ops.prims.convert_element_type.default, + ): + return False + _warn_complex_not_supported() + return True + return False + + +def unsupported_output_tensor(t: torch._subclasses.FakeTensor, parent=None): + "Do not support writing tensor but can read from it" + if unsupported_input_tensor(t, parent): + return True + return t.is_cpu and config.disable_cpp_codegen + + +def fallback_node_due_to_unsupported_type(node: torch.fx.Node, allow_cpu_inputs=True): + # Custom fallback lowering + if node.target is aten.view_as_complex.default: + return False + + # We should be able to remove this special case once `disable_cpp_codegen` is killed. + if node.target is aten.lift_fresh_copy.default: + return False + + def check_skip_condition(node, parent, is_output): + if not isinstance(node, torch.fx.Node): + return False + + if "val" not in node.meta: + return False + + for meta in pytree.tree_leaves(node.meta["val"]): + if not isinstance(meta, torch._subclasses.FakeTensor): + continue + + if is_output: + if unsupported_output_tensor(meta, parent): + return True + else: + if unsupported_input_tensor(meta, parent): + return True + + return False + + # only skip codegen if there is a cpu output, not input + for arg in pytree.arg_tree_leaves(*node.args, **node.kwargs): + if check_skip_condition(arg, node, is_output=False): + return True + + return check_skip_condition(node, node, is_output=True) + + +def make_fallback(op, layout_constraint=None, warn=True): + assert op not in decompositions, f"both a fallback and a decomp for same op: {op}" + if ( + warn + and bool(os.getenv("CI")) + and get_decompositions([op]) + # if fallback_random, we allow not decomposing random + and not ( + config.fallback_random + and op in torch._decomp.decompositions_for_rng.extra_random_decomps + ) + ): + # Note: 'warn' is holdover from when this was a warning, but for ops that previously + # set warn=False we do not want a CI error. + # Ignore the 'suppress errors' configs in CI, as this particular warning happens on startup anyway and is not + # likely to be triggered preferentially on one CI config over another. + if torch._dynamo.config.suppress_errors: + torch._dynamo.config.suppress_errors = False + log.warning( + "A make_fallback error occurred in suppress_errors config," + " and suppress_errors is being disabled to surface it." + ) + raise AssertionError( + f"make_fallback({op}): a decomposition exists, we should switch to it." + " To fix this error, either add a decomposition to core_aten_decompositions (preferred)" + " or inductor_decompositions, and delete the corresponding `make_fallback` line." + " Get help from the inductor team if unsure, don't pick arbitrarily to unblock yourself.", + ) + + def register_fallback(op_overload): + add_needs_realized_inputs(op_overload) + if layout_constraint is not None: + add_layout_constraint(op_overload, layout_constraint) + return register_lowering(op_overload, type_promotion_kind=None)( + fallback_handler(op_overload) + ) + + if isinstance(op, torch._ops.OpOverloadPacket): + for ol in op.overloads(): + op_overload = getattr(op, ol) + register_fallback(op_overload) + elif isinstance(op, (torch._ops.OpOverload, torch._ops.HigherOrderOperator)): + register_fallback(op) + else: + raise RuntimeError(f"Unsupported fallback {op} with type {type(op)}") + + +def philox_rand_offset(shape): + """ + TorchInductor offset calculation differs from PyTorch eager offset + calculation for random ops (tl.rand vs torch.rand). In future, we should + strive for same impl for tl.rand and torch.rand. + """ + numel = 1 + for s in shape: + numel = numel * s + return tensor(numel, dtype=torch.int64) + + +@register_lowering(torch.ops.rngprims.philox_rand, type_promotion_kind=None) +def philox_rand(size, seed, offset, stride, device, dtype): + # stride arg is optional and will be used in future for distributed random + # ops. Currently, its unused. + random_pos = ir.FixedLayout( + device, + dtype, + size, + ir.FlexibleLayout.contiguous_strides(size), + ).make_indexer() + seed_loader = seed.make_loader() + offset_loader = offset.make_loader() + + def inner_fn(index): + # Both seed and offset in the philox_rand op are tensors. + # torch seed and offsets are of type int64, but tl.rand accepts int32 + seed_index_expr = ops.to_dtype(seed_loader([]), torch.int32) + offset_index_expr = ops.to_dtype(offset_loader([]), torch.int32) + # Get the offset'd position + rand_index_expr = ops.add( + ops.index_expr(random_pos(index), torch.int32), offset_index_expr + ) + result = ops.rand( + seed_index_expr, + rand_index_expr, + ) + return ops.to_dtype(result, dtype) + + random_values_node = Pointwise.create( + device=device, + dtype=dtype, + inner_fn=inner_fn, + ranges=list(size), + ) + + offset_node = philox_rand_offset(size) + return random_values_node, offset_node + + +@register_lowering(aten.native_dropout, type_promotion_kind=None) +def native_dropout(x, p, train): + if config.fallback_random: + return pytree.tree_map( + TensorBox.create, + ir.FallbackKernel.create(aten.native_dropout.default, x, p, train), + ) + else: + raise AssertionError("should be handled in replace_random.py") + + +@register_lowering(aten.bernoulli_, type_promotion_kind=None) +def bernoulli_(x, *args): + assert config.fallback_random or x.get_device() == torch.device( + "cpu" + ), "this should be handled in decomps unless config.fallback_random or the device is CPU" + x.realize() + ir.InplaceBernoulliFallback(x, *args) + return x + + +@register_lowering(aten.bernoulli.p, type_promotion_kind=None) +def bernoulli_p(x, *args): + assert config.fallback_random or x.get_device() == torch.device( + "cpu" + ), "this should be handled in decomps unless config.fallback_random or the device is CPU" + return bernoulli_(clone(x), *args) + + +# This shouldn't be called in general +@register_lowering(aten._foobar) +def _foobar(_): + raise AssertionError() + + +@functools.lru_cache(1) +def _warn_triton_random(salt): + log.info("using triton random, expect difference from eager") + + +def warn_triton_random(): + # only warn once per graph + _warn_triton_random(V.graph.creation_time) + + +fallback_rand_default = fallback_handler(aten.rand.default) +fallback_rand_generator = fallback_handler(aten.rand.generator) +fallback_randn_default = fallback_handler(aten.randn.default) +fallback_randn_generator = fallback_handler(aten.randn.generator) +make_fallback(aten.randint) + + +@register_lowering(aten.rand) +def rand(*args, **kwargs): + if kwargs.get("generator", None) is not None: + return fallback_rand_generator(*args, **kwargs) + elif config.fallback_random: + kwargs.pop("generator", None) + return fallback_rand_default(*args, **kwargs) + raise AssertionError("should have been handled in replace_random.py") + + +@register_lowering(aten.randn) +def randn(*args, **kwargs): + if kwargs.get("generator", None) is not None: + return fallback_randn_generator(*args, **kwargs) + elif config.fallback_random: + kwargs.pop("generator", None) + return fallback_randn_default(*args, **kwargs) + raise AssertionError("should have been handled in replace_random.py") + + +@register_lowering(inductor_prims.force_stride_order, type_promotion_kind=None) +def inductor_force_stride_order(input_tensor, stride): + stride_order = ir.get_stride_order(stride) + return ir.ExternKernel.require_stride_order(input_tensor, stride_order) + + +@register_lowering(inductor_prims.seed, type_promotion_kind=None) +def inductor_seed(device: torch.device): + raise AssertionError("should be handled in fuse_seed_creation_pass()") + + +@register_lowering(inductor_prims.seeds, type_promotion_kind=None) +def inductor_seeds(count, device): + warn_triton_random() + return TensorBox.create(ir.RandomSeeds(count, decode_device(device))) + + +@register_lowering(inductor_prims.lookup_seed, type_promotion_kind=None) +def inductor_lookup_seed(seeds, index): + def inner_fn(_): + return ops.load_seed(seeds.get_name(), index) + + return Pointwise.create( + device=seeds.get_device(), + dtype=seeds.get_dtype(), + inner_fn=inner_fn, + ranges=[], + ) + + +@register_lowering(inductor_prims.random, type_promotion_kind=None) +def inductor_random(size: List[int], seed: TensorBox, mode: str, *, offset: int = 0): + assert not config.fallback_random + assert mode in ("rand", "randn") + size = [*size] + dtype = torch.float32 + device = seed.get_device() + random_pos = ir.FixedLayout( + device, dtype, size, ir.FlexibleLayout.contiguous_strides(size), offset=offset + ).make_indexer() + seed_loader = seed.make_loader() + + def inner_fn(index): + return getattr(ops, mode)( + seed_loader([]), + ops.index_expr(random_pos(index), torch.int32), + ) + + result = Pointwise.create( + device=device, + dtype=dtype, + inner_fn=inner_fn, + ranges=[*size], + ) + result.realize() + return result + + +@register_lowering(inductor_prims.randint, type_promotion_kind=None) +def inductor_randint( + low: int, high: int, size: List[int], seed: TensorBox, *, offset: int = 0 +): + assert not config.fallback_random + size = [*size] + dtype = torch.int64 + device = seed.get_device() + random_pos = ir.FixedLayout( + device, dtype, size, ir.FlexibleLayout.contiguous_strides(size), offset=offset + ).make_indexer() + seed_loader = seed.make_loader() + + def inner_fn(index): + return ops.randint64( + seed_loader([]), + ops.index_expr(random_pos(index), torch.int32), + low, + high, + ) + + return Pointwise.create( + device=device, + dtype=dtype, + inner_fn=inner_fn, + ranges=[*size], + ) + + +@register_lowering(aten.bucketize, type_promotion_kind=None) +def bucketize( + input: TensorBox, + boundaries: TensorBox, + *, + out_int32: bool = False, + right: bool = False, +): + assert len(boundaries.get_size()) == 1 + + if not (is_triton(input) and is_triton(boundaries)): + return fallback_handler(aten.bucketize.Tensor, add_to_fallback_set=False)( + input, boundaries, out_int32=out_int32, right=right + ) + + # The entire boundaries tensor needs to be used by ops.bucketize, so we + # need to realize it into global memory; or in other words, we can't + # guarantee that boundaries.get_name() (used below) will exist unless + # we call boundaries.realize(). + boundaries.realize() + boundaries_size = boundaries.get_size()[0] + boundaries_loader = boundaries.make_loader() + device = input.get_device() + input_loader = input.make_loader() + + index_dtype = torch.int32 if out_int32 else torch.int64 + + def inner_fn(index): + val = input_loader(index) + indices = ops.bucketize( + val, + boundaries.get_name(), + boundaries_size, + index_dtype, + right, + ) + + return indices + + return Pointwise.create( + device=device, + dtype=index_dtype, + inner_fn=inner_fn, + ranges=input.get_size(), + ) + + +def require_dense(_, *args, **kwargs): + args, kwargs = pytree.tree_map_only( + ir.IRNode, ir.ExternKernel.require_stride1, (args, kwargs) + ) + return args, kwargs + + +def require_contiguous(_, *args, **kwargs): + args, kwargs = pytree.tree_map_only( + ir.IRNode, ir.ExternKernel.require_contiguous, (args, kwargs) + ) + return args, kwargs + + +def require_channels_last(_, *args, **kwargs): + args, kwargs = pytree.tree_map_only( + ir.IRNode, ir.ExternKernel.require_channels_last, (args, kwargs) + ) + return args, kwargs + + +def constrain_to_fx_strides(fx_node, *args, **kwargs): + def apply_constraint(arg, fx_arg): + if isinstance(arg, ir.IRNode): + stride_order = ir.get_stride_order(fx_arg.meta["val"].stride()) + return ir.ExternKernel.require_stride_order(arg, stride_order) + return arg + + args = tuple( + apply_constraint(arg, fx_arg) for arg, fx_arg in zip(args, fx_node.args) + ) + kwargs = {k: apply_constraint(v, fx_node.kwargs[k]) for k, v in kwargs.items()} + return args, kwargs + + +# TODO(jansel): we should implement decomps or lowerings for these +# https://github.com/pytorch/torchdynamo/issues/327 +FALLBACK_ALLOW_LIST = { + "torchvision::roi_align", +} + + +def sdpa_constraint(fx_node, *args, **kwargs): + # sdpa requires dense last dimension] + + def apply_constraint(arg, fx_arg): + if not isinstance(arg, ir.IRNode): + return arg + + meta_val = fx_arg.meta["val"] + if not meta_val.is_cuda: + return arg + + stride_order = ir.get_stride_order(meta_val.stride()) + if stride_order and stride_order[-1] != 0: + # contiguous stride order + stride_order = list(reversed(range(len(arg.get_size())))) + + # This is the minimum alignment required by SDPA kernels for attention_bias. + # This value can be found in pytorch/aten/src/ATen/native/transformers/attention.cpp preprocess_mask + ALIGNMENT = 8 + + assert isinstance(arg, TensorBox) + if len(arg.get_size()) not in (3, 4): + return arg + + def is_aligned_realized_tensor(x): + aligned_strides = all( + (V.graph.sizevars.size_hint(x.get_stride()[i]) % ALIGNMENT) == 0 + for i in range(len(x.get_stride()) - 1) + ) + return ( + V.graph.sizevars.size_hint(x.get_stride()[-1]) + ) == 1 and aligned_strides + + try: + arg.get_stride() + if is_aligned_realized_tensor(arg): + return arg + except AttributeError: + pass + + def is_aligned(x): + return (V.graph.sizevars.size_hint(x.get_size()[-1]) % ALIGNMENT) == 0 + + if isinstance(arg.data, ir.BaseView): + if not is_aligned(arg): + if is_aligned(arg.unwrap_view()): + return arg + + return ir.ExternKernel.require_stride_order(arg, stride_order) + + args = tuple( + apply_constraint(arg, fx_arg) for arg, fx_arg in zip(args, fx_node.args) + ) + kwargs = {k: apply_constraint(v, fx_node.kwargs[k]) for k, v in kwargs.items()} + return args, kwargs + + +# WIP +make_fallback(aten.index_reduce) # @pearu +make_fallback(aten._adaptive_avg_pool3d) # @isuruf +make_fallback(aten.adaptive_max_pool3d) # @isuruf +make_fallback(aten.avg_pool3d) # @isuruf +make_fallback(aten.fractional_max_pool3d) # @isuruf +make_fallback(aten.max_pool3d_with_indices) # @isuruf (can this one be implemented?) +make_fallback(aten.cummax) # @isuruf +make_fallback(aten.cummin) # @isuruf + + +# 1) Easy +make_fallback(aten.uniform, warn=False) +make_fallback(aten.exponential.default, warn=False) # (fails accuracy on test_torch.py) +make_fallback(aten._pdist_forward) # Has decomp. Needs benchmarks +make_fallback(aten.soft_margin_loss_backward, warn=False) # py_impl? +make_fallback(aten.searchsorted) # bucketized is implemented (see eager impl) + + +# 1.5) Easy or Impossible +make_fallback(aten._cdist_forward) # p=2 should be feasible +make_fallback(aten._cdist_backward) +# See resize_storage_bytes +make_fallback(aten.resize) +make_fallback(aten.resize_) +make_fallback(aten.resize_as) +make_fallback(aten.resize_as_) + + +# 2) Medium +make_fallback(aten.max_unpool2d) +make_fallback(aten.max_unpool3d) +make_fallback(aten._trilinear) + + +# 3) Difficult +# Scans +# See the discussion at +# https://dev-discuss.pytorch.org/t/pytorch-sparse-gnn-compiler-rfc/1644/19 +make_fallback(aten.segment_reduce.default) +make_fallback(aten._segment_reduce_backward.default) + +# Histogram (need to implement Histogram IR) +make_fallback(aten.histc) +make_fallback(aten.histogram.bin_ct) +make_fallback(aten._histogramdd_bin_edges.default) +make_fallback(aten._histogramdd_from_bin_cts.default) + +# Need templated kernel +make_fallback(aten.addbmm) +make_fallback(aten.addmv, warn=False) +make_fallback(aten._addmm_activation, warn=False) + +# Need templated kernel. Probably impossible to write efficiently +make_fallback(aten.convolution_backward, constrain_to_fx_strides) +make_fallback(aten._cudnn_rnn, require_dense) +make_fallback(aten._cudnn_rnn_backward, require_contiguous) + +# Haven't checked but sound difficult / impossible +make_fallback(aten._embedding_bag, require_contiguous) +make_fallback(aten._embedding_bag_forward_only, require_contiguous) +make_fallback(aten._embedding_bag_dense_backward) +make_fallback(aten._embedding_bag_per_sample_weights_backward) +make_fallback(aten._embedding_bag_per_sample_weights_backward) +make_fallback(aten._fused_moving_avg_obs_fq_helper) +make_fallback(aten._fused_moving_avg_obs_fq_helper_functional) + + +# 4) Backwards (try py_impl'ing them) when fwd is written as a decomp +make_fallback(aten.avg_pool3d_backward) +make_fallback(aten.max_pool3d_with_indices_backward) +make_fallback(aten._adaptive_avg_pool2d_backward, require_dense) +make_fallback(aten._adaptive_avg_pool3d_backward) +make_fallback(aten.adaptive_max_pool2d_backward) +make_fallback(aten.adaptive_max_pool3d_backward) +make_fallback(aten.fractional_max_pool2d_backward) +make_fallback(aten.fractional_max_pool3d_backward) +make_fallback(aten.replication_pad1d_backward) +make_fallback(aten.replication_pad2d_backward) +make_fallback(aten.upsample_linear1d_backward) +make_fallback(aten.upsample_bicubic2d_backward, require_contiguous) +make_fallback(aten.upsample_trilinear3d_backward) +make_fallback(aten.grid_sampler_2d_backward, require_dense) +make_fallback(aten._pdist_backward) + + +# 5) Impossible (missing triton/CPU features) + +# Sorting / Sorting-like +make_fallback(aten.sort) +make_fallback(aten.sort.stable) +make_fallback(aten.kthvalue) +make_fallback(aten.topk) +make_fallback(aten.mode) +make_fallback(aten.median) +make_fallback(aten.nanmedian) +make_fallback(aten.randperm) + +# Linalg +make_fallback(aten._linalg_det) +make_fallback(aten.linalg_householder_product) +make_fallback(aten.linalg_inv_ex) +make_fallback(aten.linalg_ldl_factor_ex) +make_fallback(aten.linalg_ldl_solve) +make_fallback(aten.linalg_lu) +make_fallback(aten.linalg_lu_factor_ex) +make_fallback(aten.linalg_lu_solve) +make_fallback(aten.linalg_matrix_exp) +make_fallback(aten.linalg_qr) +make_fallback(aten._linalg_slogdet) +make_fallback(aten._linalg_solve_ex) +make_fallback(aten.linalg_solve_triangular) +make_fallback(aten._linalg_svd) +make_fallback(aten.lu_unpack) +make_fallback(aten.ormqr) +make_fallback(aten._linalg_check_errors) +make_fallback(aten.linalg_pinv.atol_rtol_tensor) +make_fallback(aten._linalg_eigh) +make_fallback(aten.triangular_solve) +make_fallback(aten.linalg_cholesky_ex) +make_fallback(aten.cholesky_inverse) +make_fallback(aten.cholesky_solve) +make_fallback(aten.geqrf) +make_fallback(aten._fft_r2c) # needs complex as well + +# Data dependent (are these necessary?) +make_fallback(aten.nonzero.default) + +# Misc +make_fallback(aten.gcd.default, warn=False) +make_fallback(aten._thnn_fused_lstm_cell, require_dense) +make_fallback(torch._prims.rng_prims.run_and_save_rng_state) +make_fallback(torch._prims.rng_prims.run_with_rng_state) + +# Implmented / Half implemented +# Scans. Implemented for CUDA, missing CPU +make_fallback(aten.masked_scatter) +make_fallback(aten.masked_scatter_backward) + +# Complex number support +make_fallback(aten.view_as_complex, require_contiguous) +make_fallback(aten.angle) # needs complex + +# Needs efficentzerotensor +make_fallback(aten._efficientzerotensor) + +# Needs Sparse +make_fallback(aten._sparse_coo_tensor_with_dims_and_tensors) +make_fallback(aten.to_sparse) +make_fallback(aten._to_sparse) + +# Needs dimname support +make_fallback(aten.zeros.names) + + +# 6) Pattern-matched +make_fallback( + aten._scaled_dot_product_efficient_attention.default, + sdpa_constraint, + warn=False, +) +make_fallback( + aten._scaled_dot_product_efficient_attention_backward.default, + sdpa_constraint, + warn=False, +) +make_fallback( + aten._scaled_dot_product_flash_attention.default, + sdpa_constraint, + warn=False, +) +make_fallback( + aten._scaled_dot_product_flash_attention_backward.default, + sdpa_constraint, + warn=False, +) +make_fallback( + aten._scaled_dot_product_flash_attention_for_cpu.default, + sdpa_constraint, + warn=False, +) +make_fallback( + aten._scaled_dot_product_flash_attention_for_cpu_backward.default, + sdpa_constraint, + warn=False, +) +make_fallback(aten._flash_attention_forward.default, sdpa_constraint) +make_fallback(aten._flash_attention_backward.default, sdpa_constraint) +make_fallback(aten._efficient_attention_forward.default, sdpa_constraint) +make_fallback(aten._efficient_attention_backward.default, sdpa_constraint) +make_fallback(aten._scaled_mm.default, constrain_to_fx_strides) + + +# Register with type_promotion_kind None. +# For example, fp16.copy_(fp32) should **not** promote the first input's dtype. +@register_lowering(aten.copy, type_promotion_kind=None) +def copy(self, src, non_blocking=False): + x = src + if self.get_device() != src.get_device(): + x = to_device(x, self.get_device()) + if self.get_dtype() != src.get_dtype(): + x = to_dtype(x, self.get_dtype()) + + if self.get_size() != src.get_size(): + out = expand(x, self.get_size()) + return clone(out) + return clone(x) + + +@register_lowering(aten.clone) +def clone(x, *, memory_format=None): + # TODO(jansel): memory format + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=x.make_loader(), + ranges=list(x.get_size()), + ) + + +def clone_preserve_reinterpret_view(x): + reinterpret_view_layouts = [] + if isinstance(x, TensorBox) and isinstance(x.data, ir.ReinterpretView): + x = x.data # unwrap TensorBox + while isinstance(x, ir.ReinterpretView): + reinterpret_view_layouts.append(x.get_layout()) + x = x.data + x = TensorBox(x) + + x = clone(x) + + if reinterpret_view_layouts: + x = x.data # unwrap TensorBox + for layout in reinterpret_view_layouts[::-1]: + x = ir.ReinterpretView(x, layout) + x = TensorBox(x) + + return x + + +if hasattr(aten, "lift_fresh_copy"): + register_lowering(aten.lift_fresh_copy)(clone) + + +@register_lowering(prims.iota) +def iota( + length, + *, + start, + step, + dtype, + device, + requires_grad, +): + def fn(index): + return ops.index_expr(step * index[0] + start, dtype=dtype) + + return Pointwise.create( + device=decode_device(device), + dtype=dtype, + inner_fn=fn, + ranges=[length], + ) + + +@register_lowering(aten.select_scatter, type_promotion_kind=None) +def select_scatter(x, src, dim: int, index: int): + assert x.get_dtype() == src.get_dtype() + x_loader = x.make_loader() + dim = _validate_dim(x, dim, 0) + if V.graph.sizevars.evaluate_expr(sympy.Lt(index, 0)): + index = index + x.get_size()[dim] + V.graph.sizevars.guard_leq(0, index) # type: ignore[arg-type] + V.graph.sizevars.guard_lt(index, x.get_size()[dim]) # type: ignore[arg-type] + src = expand(unsqueeze(src, dim), x.get_size()) + src_loader = src.make_loader() + + def inner_fn(idx): + return ops.where( + ops.eq( + ops.index_expr(idx[dim], torch.int32), + ops.index_expr(index, torch.int32), + ), + src_loader(idx), + x_loader(idx), + ) + + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=inner_fn, + ranges=list(x.get_size()), + ) + + +@register_lowering(aten.slice_scatter, type_promotion_kind=None) +def slice_scatter(x, src, dim=0, start=None, end=None, step=1): + assert x.get_dtype() == src.get_dtype() + x_loader = x.make_loader() + dim = _validate_dim(x, dim, 0) + dim_size = x.get_size()[dim] + + start, end = ir.SliceView.normalize_start_end(x, dim, start, end) + + src_size = list(x.get_size()) + src_size[dim] = FloorDiv(end - start + (step - 1), step) + src = expand(src, src_size) + src_loader = src.make_loader() + + def inner_fn(idx): + if start == 0 and end == dim_size and step == 1: + # selecting every element is the same as just src.clone() + return src_loader(idx) + + idx_dim = ops.index_expr(idx[dim], torch.int64) + src_idx = list(idx) + src_idx[dim] = FloorDiv(idx[dim] - start, step) + + mask = [] + if start != 0: + mask.append( + ops.ge( + idx_dim, + ops.index_expr(sympy.expand(start), torch.int64), + ) + ) + if end != dim_size: + mask.append( + ops.lt( + idx_dim, + ops.index_expr(sympy.expand(end), torch.int64), + ) + ) + if step != 1: + mask.append( + ops.eq( + ops.index_expr( + ModularIndexing(idx[dim] - start, 1, step), torch.int64 + ), + ops.constant(0, torch.torch.int64), + ) + ) + assert mask + mask = functools.reduce(ops.and_, mask) + src_val = ops.masked( + mask, + lambda: src_loader(src_idx), + 0 if is_integer_type(x) else 0.0, + ) + return ops.where( + mask, + src_val, + x_loader(idx), + ) + + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=inner_fn, + ranges=list(x.get_size()), + ) + + +def _unwrap(x): + if isinstance(x, (list, tuple)) and len(x) > 0: + return _unwrap(x[0]) + return x + + +@register_lowering([torch.tensor, aten.scalar_tensor]) +def tensor(data, *, dtype=None, device=None, layout=None, pin_memory=False): + assert_nyi(layout in (None, torch.strided), f"layout={layout}") + assert_nyi(not pin_memory, "pin_memory") + if isinstance(_unwrap(data), int): + dtype = dtype or torch.int64 + else: + dtype = dtype or torch.get_default_dtype() + + ranges: List[sympy.Expr] = [] + + if isinstance(data, sympy.Expr): + + def inner_fn(index): + return ops.index_expr(data, dtype) + + elif isinstance(data, (float, int)): + + def inner_fn(index): + return ops.constant(data, dtype) + + elif len(data) == 0 or isinstance(data[0], (float, int)) and len(data) <= 8: + # inline small tensors + ranges.append(sympy.Integer(len(data))) + + def inner_fn(index): + def binary_search(start, end): + assert start < end + if end - start == 1: + return ops.constant(data[start], dtype) + mid = (end - start) // 2 + start + return ops.where( + ops.lt( + ops.index_expr(index[0], torch.int64), + ops.constant(mid, torch.int64), + ), + binary_search(start, mid), + binary_search(mid, end), + ) + + if len(data) == 0: + return ops.constant(0, dtype) + return binary_search(0, len(data)) + + else: + return V.graph.add_tensor_constant( + torch.tensor(data, dtype=dtype, device=device) + ) + + return Pointwise.create( + device=decode_device(device), + dtype=dtype, + inner_fn=inner_fn, + ranges=ranges, + ) + + +@register_lowering(torch.as_tensor) +def as_tensor(data, dtype=None, device=None): + if isinstance(data, TensorBox): + if dtype is not None: + data = to_dtype(data, dtype) + if device is not None: + data = to_device(data, device) + return data + return tensor(data, dtype=dtype, device=device) + + +@register_lowering(torch.LongTensor) +def long_tensor(data): + return tensor(data, dtype=torch.int64) + + +@register_lowering(aten._local_scalar_dense) +def _local_scalar_dense(data): + # This is interesting! Most lowerings return tensors, so you can just + # return the buffer you allocated and it will get used (or not used, if + # it's dead.) But _local_scalar_dense (aka item) returns an int, + # not a Tensor, so you would have a type mismatch if you return a buffer; + # we are obligated to return a sympy expression instead. However, + # we need to actually codegen the .item() call somehow. We do this + # by registering a faux buffer for the DynamicScalar IR node, which is + # solely responsible for generating this .item(). The buffer is + # not used for anything (notice we discard it); at codegen time, + # the "buffer" just gets assigned None. + sym = V.graph.current_node.meta["val"].node.expr + buffer = ir.DynamicScalar(sym, data) + buffer.name = V.graph.register_buffer(buffer) + return sym + + +@register_lowering(aten._assert_scalar) +def _assert_scalar(data, msg): + buffer = ir.AssertScalar(data, msg) + # This buffer isn't used by anyone (it returns None), so we must explicitly register it + buffer.name = V.graph.register_buffer(buffer) + return buffer + + +def _full(fill_value, device, dtype, size): + value = fill_value + if not isinstance(fill_value, (int, float)) and hasattr(value, "value"): + value = value.value + + if isinstance(value, (int, float)): + + def inner_fn(index): + return ops.constant(value, dtype) + + elif isinstance(value, sympy.Expr): + + def inner_fn(index): + return ops.index_expr(value, dtype) + + else: + assert len(value.get_size()) == 0 + value_loader = value.make_loader() + + def inner_fn(index): + return value_loader([]) + + return Pointwise.create( + device=device, + dtype=dtype, + inner_fn=inner_fn, + ranges=list(size), + ) + + +@register_lowering(aten.full_like, type_promotion_kind=None) +def full_like(x, fill_value, **kwargs): + return create_tensor_like(tensor_constructor(fill_value))(x, **kwargs) + + +def tensor_constructor(fill_value): + # torch.zeros, torch.ones, etc + def inner( + *size, + names=None, + dtype=None, + device=None, + layout=None, + pin_memory=False, + memory_format=None, + ): + assert_nyi(names is None, "named tensors") + assert_nyi(layout in (None, torch.strided), f"layout={layout}") + assert_nyi(not pin_memory, "pin_memory") + device = decode_device(device) + dtype = dtype or torch.get_default_dtype() + if len(size) == 1 and isinstance(size[0], (list, tuple, torch.Size)): + size = tuple(size[0]) + # See https://github.com/pytorch/pytorch/issues/118102 + # All sizes at lowering time should be sympy.Symbol, not SymInt! + for s in size: + assert not isinstance(s, torch.SymInt) + size = [sympy.expand(s) for s in size] + return _full(fill_value, device, dtype, size) + + return inner + + +@register_lowering([torch.empty, aten.empty]) +def empty( + *size, + names=None, + dtype=None, + layout=None, + device=None, + pin_memory=None, + memory_format=None, +): + assert_nyi(names is None, "named tensors") + device = decode_device(device) + if len(size) == 1 and isinstance(size[0], (list, tuple, torch.Size)): + size = tuple(size[0]) + return empty_strided( + size, None, dtype=dtype, layout=layout, device=device, pin_memory=pin_memory + ) + + +def create_tensor_like(creation_fn): + """ + Shim to convert X_like(...) into X(...). For example zeros_like() into zeros(). + """ + + def _constant_like( + x, *, dtype=None, device=None, layout=None, pin_memory=False, memory_format=None + ): + assert_nyi(not pin_memory, "pin_memory") + assert_nyi(layout in (None, torch.strided), f"layout={layout}") + if dtype is None: + dtype = x.get_dtype() + else: + dtype = decode_dtype(dtype) + device = device or x.get_device() + size = list(x.get_size()) + return creation_fn( + size, dtype=dtype, device=device, layout=layout, pin_memory=pin_memory + ) + + return _constant_like + + +def constant_like(fill_value): + return create_tensor_like(tensor_constructor(fill_value)) + + +empty_like = register_lowering(aten.empty_like)(create_tensor_like(empty)) +ones_like = create_tensor_like(tensor_constructor(1)) +zeros_like = create_tensor_like(tensor_constructor(0)) + + +def new_constant(fill_value): + def _new_constant( + x, size, *, dtype=None, layout=None, device=None, pin_memory=None + ): + assert isinstance(size, (list, tuple)) + assert_nyi(not pin_memory, "pin_memory") + assert_nyi(layout in (None, torch.strided), f"layout={layout}") + dtype = decode_dtype(dtype) or x.get_dtype() + device = device or x.get_device() + size = [sympy.Integer(s) for s in size] + return _full(fill_value, device, dtype, size) + + return _new_constant + + +@register_lowering(aten.new_empty) +def new_empty(x, size, *, dtype=None, layout=None, device=None, pin_memory=None): + if dtype is None: + dtype = x.get_dtype() + if device is None: + device = x.get_device() + return empty_strided( + size, None, dtype=dtype, layout=layout, device=device, pin_memory=pin_memory + ) + + +@register_lowering(aten.empty_strided) +def empty_strided( + size, stride, *, dtype=None, layout=None, device=None, pin_memory=None +): + assert isinstance(size, (list, tuple)) + assert isinstance(stride, (list, tuple, type(None))) + assert_nyi(not pin_memory, "pin_memory") + assert_nyi(layout in (None, torch.strided), f"layout={layout}") + dtype = decode_dtype(dtype) or torch.get_default_dtype() + device = device or torch.tensor(0.0).device + pointwise = _full(fill_value=0, device=device, dtype=dtype, size=size) + pointwise.realize() + buffer = pointwise.data.data + # explicitly set ranges to zeros in order to make a NopKernelSchedulerNode + buffer.data.ranges = [0] * len(size) + assert isinstance(buffer, ir.ComputedBuffer) + size = [sympy.expand(s) for s in size] + stride = ( + [sympy.expand(s) for s in stride] + if stride + else ir.FlexibleLayout.contiguous_strides(size) + ) + buffer.layout = ir.FixedLayout( + device=device, + dtype=dtype, + size=size, + stride=stride, + ) + return pointwise + + +@register_lowering(aten.new_empty_strided) +def new_empty_strided( + x, size, stride, *, dtype=None, layout=None, device=None, pin_memory=None +): + if dtype is None: + dtype = x.get_dtype() + if device is None: + device = x.get_device() + return empty_strided( + size, stride, dtype=dtype, layout=layout, device=device, pin_memory=pin_memory + ) + + +@register_lowering(prims.copy_strided.default) +def copy_strided(x, stride): + stride = [V.graph.sizevars.size_hint(s) for s in stride] + stride_order = sorted(range(len(stride)), key=stride.__getitem__) + return ir.ExternKernel.require_stride_order(x, stride_order) + + +@register_lowering([torch.full, aten.full]) +def full(size, fill_value, **kwargs): + assert kwargs.get("dtype") is not None, "dtype should be handled by decomposition" + return tensor_constructor(fill_value)(size, **kwargs) + + +@register_lowering(aten.gather, type_promotion_kind=None) +def gather(x, dim, index, sparse_grad=False): + # sparse_grad doesn't affect forward computation, + # and backward tracing is taken care of by AOT Autograd + assert isinstance(x, TensorBox) + assert index.get_dtype() == torch.int64 + size = x.get_size() + offset = len(size) == 0 + dim = _validate_dim(x, dim, offset) + + x_loader = x.make_loader() + index_loader = index.make_loader() + + def fn(idx): + idx = list(idx) + if len(idx) != 0: + idx[dim] = ops.indirect_indexing(index_loader(idx), size[dim]) + return x_loader(idx) + + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=fn, + ranges=index.get_size(), + ) + + +@register_lowering(aten.embedding, type_promotion_kind=None) +def embedding(weight, indices, padding_idx=-1, scale_grad_by_freq=False, sparse=False): + assert not sparse + assert isinstance(weight, TensorBox) + assert isinstance(indices, TensorBox) + assert "int" in str(indices.get_dtype()) + + weight_loader = weight.make_loader() + indices_loader = indices.make_loader() + indices_ndim = len(indices.get_size()) + weight_size = weight.get_size() + new_size = [*indices.get_size(), *weight_size[1:]] + + def fn(idx): + assert len(idx) == len(new_size), f"{idx} != {new_size}" + var_index = indices_loader(idx[:indices_ndim]) + weight_idx = [ops.indirect_indexing(var_index, weight_size[0])] + [ + *idx[indices_ndim:] + ] + return weight_loader(weight_idx) + + return Pointwise.create( + device=weight.get_device(), + dtype=weight.get_dtype(), + inner_fn=fn, + ranges=new_size, + ) + + +def check_and_broadcast_indices(indices, device): + assert all( + i.get_dtype() in (torch.int64, torch.int32, torch.bool, torch.uint8) + for i in indices + if i is not None + ), f"indices must be int64, byte or bool. Got {[i.get_dtype() for i in indices if i is not None]}" + if any( + i.get_dtype() in (torch.bool, torch.uint8) for i in indices if i is not None + ): + raise NotImplementedError("Fallback for bool indices") + + valid_idxs = [i for i, x in enumerate(indices) if isinstance(x, TensorBox)] + assert len(valid_idxs) > 0, "requires at least 1 non-None index" + new_indices = [None] * len(indices) + for i, x in zip(valid_idxs, broadcast_tensors(*[indices[i] for i in valid_idxs])): + # Eager allows indices to be CPU tensor when running on CUDA + # FIXME: Calling to_device(x, device) should work but + # test_advancedindex_mixed_cpu_devices still fails + if x.get_device() != device: + raise NotImplementedError("Fallback when indices is on a different device") + new_indices[i] = x + return new_indices, valid_idxs + + +def index_output_size_and_inner_fn( + x_size, + indices, + tensor_indices, + tensor_size, + indices_loaders, + indexed_size, + x_loader, + check, +): + # Note that behavior of indexing differs when there are non consecutive + # tensors. In this case, the tensor index is pulled to the beginning. + # + # Suppose a = torch.arange(3 * 4 * 5 * 6 * 7).view(3, 4, 5, 6, 7) + # x = torch.tensor[1,2] + # Then, a[:,x,:,x,:] will have shape 2,3,5,7 as due to x,:,x then 2 will + # be pulled to the front. + non_consecutive_tensors = False + for previous, current in zip(tensor_indices, tensor_indices[1:]): + if current - previous != 1: + non_consecutive_tensors = True + + output_size = [x_size[i] for i, val in enumerate(indices) if val is None] + output_size = [*output_size, *x_size[len(output_size) + len(tensor_indices) :]] + + first_tensor_index = tensor_indices[0] + if non_consecutive_tensors: + output_size = tensor_size + output_size + else: + output_size = ( + output_size[:first_tensor_index] + + tensor_size + + output_size[first_tensor_index:] + ) + + def fn(idx): + assert len(idx) == len(output_size) + assert len(indices_loaders) == len(indexed_size) + + rank = len(tensor_size) + new_index = [] + first_tensor_index = tensor_indices[0] + start_offset = 0 if non_consecutive_tensors else first_tensor_index + next_idx = 0 + for i in range(tensor_indices[-1] + 1): + if i == start_offset: + next_idx += rank + if indices[i] is None: + assert next_idx < len(idx) + new_index.append(idx[next_idx]) + next_idx += 1 + else: + loader = indices_loaders[i] + assert loader is not None + size = indexed_size[i] + new_index.append( + ops.indirect_indexing( + loader(idx[start_offset : start_offset + rank]), + size, + check=check, + ) + ) + new_index = [ + *new_index, + *idx[next_idx:], + ] + return new_index if x_loader is None else x_loader(new_index) + + return output_size, fn + + +def index_impl(x, indices, check): + assert isinstance(indices, (list, tuple)) + x_loader = x.make_loader() + indices, tensor_indices = check_and_broadcast_indices(indices, x.get_device()) + assert len(tensor_indices) > 0, "Must have at least one valid idx" + + indices_loaders = [i.make_loader() if i is not None else None for i in indices] + # no guards on output size, all the guards are set in broadcast_tensors + + # We can use the first one since they are all required to be the same size + tensor_size = list(indices[tensor_indices[0]].get_size()) + + x_size = x.get_size() + + indexed_size = [x_size[i] for i in range(len(indices)) if indices[i] is not None] + if 0 in indexed_size and 0 not in tensor_size: + raise IndexError("index is out of bounds for dimension with size 0") + + indexed_size = [x_size[i] for i in range(len(indices))] + output_size, inner_fn = index_output_size_and_inner_fn( + x_size, + indices, + tensor_indices, + tensor_size, + indices_loaders, + indexed_size, + x_loader, + check=check, + ) + + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=inner_fn, + ranges=output_size, + ) + + +@register_lowering(aten.index, type_promotion_kind=None) +def index(x, indices): + try: + return index_impl(x, indices, check=True) + except NotImplementedError: + # Fallback to ATen for boolean indexing + x.realize() + return fallback_handler(aten.index.Tensor, add_to_fallback_set=False)( + x, indices + ) + + +@register_lowering(aten._unsafe_index, type_promotion_kind=None) +def _unsafe_index(x, indices): + return index_impl(x, indices, check=False) + + +# All the indexing decompositions are written in terms of index, index_put, and index_put_ +# We cannot have this lowering as a decomposition as it introduces +# mutation in the graph, which is bad for Aot Autograd. Aot Autograd runs dead +# code elimination and common subexpression elimination optimizations, which +# assume graphs to be side-effect free. More details at +# https://github.com/pytorch/torchdynamo/issues/1235 +# and +# https://github.com/pytorch/torchdynamo/issues/1863 +@register_lowering(aten.index_put) +def index_put(x, indices, values, accumulate=False): + return index_put_(clone(x), indices, values, accumulate) + + +@register_lowering(aten._unsafe_index_put) +def _unsafe_index_put(x, indices, values, accumulate=False): + return index_put_impl_(clone(x), indices, values, accumulate, check=False) + + +def index_put_as_masked_fill(self, indices, value, accumulate): + if value.get_device() != self.get_device(): + value = to_device(value, self.get_device()) + if accumulate: + value = add(self, value) + return mutate_to(self, where(indices[0], value, self)) + + +def index_put_fallback(self, indices, values, accumulate): + deterministic = torch.are_deterministic_algorithms_enabled() + if is_triton(values) and (accumulate or deterministic): + msg = ( + "index put with accumulate." + if not deterministic + else "deterministic index put." + ) + if stack_trace := V.graph.current_node.meta.get("stack_trace", None): + msg = f"{msg} Found from : \n {stack_trace}" + V.graph.disable_cudagraphs_reason = msg + + ir.IndexPutFallback(V.graph.current_node.target, self, indices, values, accumulate) + return self + + +@register_lowering(aten.index_put_, type_promotion_kind=None) +def index_put_(self, indices, values, accumulate=False): + return index_put_impl_(self, indices, values, accumulate, check=True) + + +@register_lowering(inductor_prims._unsafe_index_put_, type_promotion_kind=None) +def _unsafe_index_put_(self, indices, values, accumulate=False): + return index_put_impl_(self, indices, values, accumulate, check=False) + + +def needs_fallback_due_to_atomic_add_limitations(dtype): + # tl.atomic_add does NOT support the following types + return dtype in {torch.int64, torch.bool, torch.bfloat16} + + +def index_put_impl_(self, indices, values, accumulate, check): + # Dispatch to masked fill for single boolean index with single value + if ( + values.get_numel() == 1 + and len(indices) == 1 + and indices[0].get_dtype() in {torch.bool, torch.uint8} + ): + mask = indices[0] + for _ in range(len(mask.get_size()), len(self.get_size())): + mask = unsqueeze(mask, -1) + return index_put_as_masked_fill(self, [mask], values, accumulate) + + # Fallback in torch deterministic mode + if torch.are_deterministic_algorithms_enabled(): + return index_put_fallback(self, indices, values, accumulate) + + # Fallback if there is a boolean index + for index in indices: + if index is not None and index.get_dtype() in {torch.bool, torch.uint8}: + return index_put_fallback(self, indices, values, accumulate) + + x_size = self.get_size() + x_ndim = len(x_size) + + if accumulate and needs_fallback_due_to_atomic_add_limitations(self.get_dtype()): + # self is an scalar Tensor + if x_ndim == 0: + self = view(self, [1]) + self = index_put_fallback(self, indices, values, accumulate) + if x_ndim == 0: + self = view(self, []) + return self + + values = to_dtype(values, self.get_dtype()) + + try: + # Note that code will only get here when dtype is uint32 + indices, tensor_indices = check_and_broadcast_indices( + indices, self.get_device() + ) + except NotImplementedError: + return index_put_fallback(self, indices, values, accumulate) + + indices_loaders = [i.make_loader() if i is not None else None for i in indices] + + assert isinstance(self, TensorBox) + self.realize() + + # self is an scalar Tensor + if x_ndim == 0: + self = view(self, [1]) + + # We can use the first one since they are all required to be the same size + tensor_size = list(indices[tensor_indices[0]].get_size()) + indexed_size = [x_size[i] for i in range(len(indices))] + + expected_vals_size, inner_fn = index_output_size_and_inner_fn( + x_size, + indices, + tensor_indices, + tensor_size, + indices_loaders, + indexed_size, + None, + check=check, + ) + + values = expand(values, expected_vals_size) + # all guards are set above during broadcast_tensors and expand + + scatter = ir.Scatter( + device=self.get_device(), + dtype=self.get_dtype(), + inner_fn=values.make_loader(), + ranges=expected_vals_size, # iter_ranges, + output_indexer=inner_fn, + scatter_mode="atomic_add" if accumulate else None, + ) + buffer = ir.ComputedBuffer( + None, + ir.MutationLayout(self), + scatter, + ) + buffer.name = V.graph.register_buffer(buffer) + + if x_ndim == 0: + self = view(self, []) + return self + + +@register_lowering( + inductor_prims.masked_scatter_with_index, type_promotion_kind=None, broadcast=False +) +def masked_scatter_with_index(self, mask, source_idx, source): + self_flat, mask_flat, source_flat = (view(x, (-1,)) for x in (self, mask, source)) + + assert self.get_size() == mask.get_size() + assert mask.get_dtype() in {torch.bool, torch.uint8} + + self_loader = self_flat.make_loader() + mask_loader = mask_flat.make_loader() + source_idx_loader = source_idx.make_loader() + source_loader = source_flat.make_loader() + source_numel = source.get_numel() + + def inner_fn(idx): + self_val = self_loader(idx) + mask_val = ops.to_dtype(mask_loader(idx), torch.bool) + + def load_source_val(): + source_idx_val = source_idx_loader(idx) + i = ops.indirect_indexing(source_idx_val, source_numel) + return source_loader([i]) + + source_val = ops.masked(mask_val, load_source_val, 0) + return ops.where(mask_val, source_val, self_val) + + result_flat = Pointwise.create( + device=self.get_device(), + dtype=self.get_dtype(), + inner_fn=inner_fn, + ranges=self_flat.get_size(), + ) + return view(result_flat, self.get_size()) + + +@register_lowering(aten.as_strided_scatter, type_promotion_kind=None) +def as_strided_scatter(self, src, size, stride, storage_offset=None): + output = clone(self) + output_view = as_strided(output, size, stride, storage_offset) + copy_(output_view, src) + return output + + +@register_lowering(aten.scatter, type_promotion_kind=None) +def scatter(x, dim: int, index, src, **kwargs): + return scatter_(clone(x), dim, index, src, **kwargs) + + +def scatter_fallback( + fn, + self, + dim: int, + index, + src, + *, + reduce: Optional[str] = None, + include_self: bool = True, +): + reduce_ty = "add" if fn == "aten.scatter_" else "sum" + if ( + reduce not in {None, reduce_ty} + or ( + isinstance(src, TensorBox) + and src.get_device().type == torch.device("cuda").type + and needs_fallback_due_to_atomic_add_limitations(src.get_dtype()) + ) + or ( + fn == "aten.scatter_reduce_" + and reduce == "sum" + and isinstance(src, TensorBox) + and src.get_device() == torch.device("cpu") + and config.cpp.fallback_scatter_reduce_sum + and (config.cpp.dynamic_threads or parallel_num_threads() != 1) + ) + or (reduce == reduce_ty and self.get_dtype() in {torch.bool, torch.int64}) + or torch.are_deterministic_algorithms_enabled() + ): + ir.ScatterFallback( + V.graph.current_node.target, + fn, + self, + dim, + index, + src, + reduce=reduce, + include_self=include_self, + ) + return self + + return None + + +@register_lowering(aten.scatter_, type_promotion_kind=None) +def scatter_(self, dim: int, index, src, *, reduce: Optional[str] = None): + assert reduce in {None, "add", "multiply"} + + fallback_result = scatter_fallback( + "aten.scatter_", self, dim, index, src, reduce=reduce + ) + + if fallback_result: + return fallback_result + + if reduce == "add": + reduce = "sum" + elif reduce == "multiply": + reduce = "prod" + + return scatter_reduce_(self, dim, index, src, reduce) + + +@register_lowering(aten.scatter_add, type_promotion_kind=None) +def scatter_add(x, dim: int, index, src): + return scatter_add_(clone(x), dim, index, src) + + +@register_lowering(aten.scatter_add_, type_promotion_kind=None) +def scatter_add_(x, dim: int, index, src): + return scatter_reduce_(x, dim, index, src, "sum") + + +@register_lowering(aten.scatter_reduce, type_promotion_kind=None) +def scatter_reduce(x, dim: int, index, src, reduction_type, **kwargs): + return scatter_reduce_(clone(x), dim, index, src, reduction_type, **kwargs) + + +@register_lowering(aten.scatter_reduce_, type_promotion_kind=None) +def scatter_reduce_(self, dim: int, index, src, reduce, *, include_self: bool = True): + assert reduce in {None, "sum", "prod", "mean", "amax", "amin"} + + fallback_result = scatter_fallback( + "aten.scatter_reduce_", + self, + dim, + index, + src, + reduce=reduce, + include_self=include_self, + ) + + if fallback_result: + return fallback_result + + assert isinstance(self, TensorBox) + assert "int" in str(index.get_dtype()) + + ndim = len(self.get_size()) + if ndim == 0: + self = view(self, [1]) + + if isinstance(src, TensorBox) and len(src.get_size()) == 0: + src = view(src, [1]) + + if isinstance(index, TensorBox) and len(index.get_size()) == 0: + index = view(index, [1]) + + dim = _validate_dim(self, dim) + + self.realize() + index_loader = index.make_loader() + src_loader = src.make_loader() if isinstance(src, TensorBox) else None + + def output_indexer(idx): + # self is captured from the end of the function, so it may have 0 dim + shape = self.get_size() + ndim = len(shape) + indirect_idx = list(idx) + indirect_idx[dim] = ops.indirect_indexing( + index_loader(idx), 1 if ndim == 0 else shape[dim] + ) + return indirect_idx + + def fn(idx): + if src_loader: + return src_loader(idx) + else: + # src is a scalar + return ops.constant(src, self.get_dtype()) + + def backend_reduce_str(reduce): + if reduce == "sum": + return "atomic_add" + else: + # TODO: Need to support more reduction type + assert reduce is None + return None + + if not include_self: + # zero out the corresponding elements first + zero_out = ir.Scatter( + device=self.get_device(), + dtype=self.get_dtype(), + inner_fn=lambda index: ops.constant(0, self.get_dtype()), + ranges=index.get_size(), + output_indexer=output_indexer, + scatter_mode=None, + ) + buffer = ir.ComputedBuffer( + None, + ir.MutationLayout(self), + zero_out, + ) + buffer.name = V.graph.register_buffer(buffer) + + # self[index[i][j][k]][j][k] += src[i][j][k] # if dim == 0 + # self[i][index[i][j][k]][k] += src[i][j][k] # if dim == 1 + # self[i][j][index[i][j][k]] += src[i][j][k] # if dim == 2 + scatter = ir.Scatter( + device=self.get_device(), + dtype=self.get_dtype(), + inner_fn=fn, + ranges=index.get_size(), + output_indexer=output_indexer, + scatter_mode=backend_reduce_str(reduce), + ) + buffer = ir.ComputedBuffer( + None, + ir.MutationLayout(self), + scatter, + ) + buffer.name = V.graph.register_buffer(buffer) + + if ndim == 0: + self = view(self, []) + return self + + +def upsample_nearestnd( + x, + output_size, + scales_x: Tuple[Optional[float], ...], + n: int = 2, + exact: bool = False, +): + x.realize_hint() # elements are reused + x_loader = x.make_loader() + i_sizes = x.get_size()[-n:] + batch = x.get_size()[:-n] + i_sizes = [V.graph.sizevars.evaluate_static_shape(i) for i in i_sizes] + + assert len(scales_x) == n + o_sizes = output_size + + inv_scales = [i / o for i, o in zip(i_sizes, o_sizes)] + for i, scale in enumerate(scales_x): + if scale is not None: + inv_scales[i] = 1.0 / scale + + def scale_fn(x, scale, size): + # Nearest Exact: input_index = round(scale * (output_index + 0.5) - 0.5) + # = floor(scale * (output_index + 0.5)) + # Nearest: input_index = floor(scale * output_index) + x = ops.index_expr(x, torch.float32) + if exact: + x = ops.add(x, ops.constant(0.5, torch.float32)) + x = ops.mul(x, ops.constant(scale, torch.float32)) + x = ops.to_dtype(x, torch.int32) + return ops.indirect_indexing(x, size, check=False) + + def fn(idx): + x = idx[-n:] + b = idx[:-n] + return x_loader( + [*b, *[scale_fn(i, s, size) for i, s, size in zip(x, inv_scales, i_sizes)]] + ) + + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=fn, + ranges=[*batch, *o_sizes], + ) + + +@register_lowering(aten.upsample_nearest1d.default) +def upsample_nearest1d(x, output_size, scales: Optional[float] = None): + return upsample_nearestnd(x, output_size, (scales,), n=1) + + +@register_lowering(aten._upsample_nearest_exact1d.default) +def _upsample_nearest_exact1d(x, output_size, scales: Optional[float] = None): + return upsample_nearestnd(x, output_size, (scales,), n=1, exact=True) + + +@register_lowering(aten.upsample_nearest2d.default) +def upsample_nearest2d( + x, output_size, scales_h: Optional[float] = None, scales_w: Optional[float] = None +): + return upsample_nearestnd(x, output_size, (scales_h, scales_w), n=2) + + +@register_lowering(aten._upsample_nearest_exact2d.default) +def _upsample_nearest_exact2d( + x, output_size, scales_h: Optional[float] = None, scales_w: Optional[float] = None +): + return upsample_nearestnd(x, output_size, (scales_h, scales_w), n=2, exact=True) + + +@register_lowering(aten.upsample_nearest3d.default) +def upsample_nearest3d( + x, + output_size, + scales_d: Optional[float] = None, + scales_h: Optional[float] = None, + scales_w: Optional[float] = None, +): + return upsample_nearestnd(x, output_size, (scales_d, scales_h, scales_w), n=3) + + +@register_lowering(aten._upsample_nearest_exact3d.default) +def _upsample_nearest_exact3d( + x, + output_size, + scales_d: Optional[float] = None, + scales_h: Optional[float] = None, + scales_w: Optional[float] = None, +): + return upsample_nearestnd( + x, output_size, (scales_d, scales_h, scales_w), n=3, exact=True + ) + + +def _create_constants(*args, dtype): + return tuple(ops.constant(a, dtype) for a in args) + + +@register_lowering(aten.upsample_bicubic2d.default) +def upsample_bicubic2d_default( + x, + output_size, + align_corners: bool, + scales_h: Optional[float] = None, + scales_w: Optional[float] = None, +): + x.realize_hint() + x_loader = x.make_loader() + + N, C, iH, iW = x.get_size() + oH, oW = output_size + + iH = V.graph.sizevars.evaluate_static_shape(iH) + iW = V.graph.sizevars.evaluate_static_shape(iW) + + def get_int_dtype(maxval): + if maxval > torch.iinfo(torch.int32).max: + return torch.int64 + return torch.int32 + + def compute_scale(in_size, out_size, align_corners, scale=None): + if align_corners: + return (in_size - 1) / (out_size - 1) if out_size > 1 else 0 + else: + return 1 / scale if scale is not None and scale > 0 else in_size / out_size + + def compute_source_index(scale, dst_index, align_corners): + dst_index_ie = ops.index_expr(dst_index, torch.float32) + scale = ops.constant(scale, torch.float32) + if align_corners: + return ops.mul(scale, dst_index_ie) + else: + half = ops.constant(0.5, torch.float32) + return scale * (dst_index_ie + half) - half + + def cubic_convolution1(x, A): + _Ap2, _Ap3, _1 = _create_constants(A + 2, A + 3, 1, dtype=torch.float32) + return (_Ap2 * x - _Ap3) * x * x + _1 + + def cubic_convolution2(x, A): + _A, _4A, _5A, _8A = _create_constants( + A, 4 * A, 5 * A, 8 * A, dtype=torch.float32 + ) + return ((_A * x - _5A) * x + _8A) * x - _4A + + def get_cubic_upsample_coefficients(t): + A = -0.75 + _1 = ops.constant(1.0, torch.float32) + c0 = cubic_convolution2(ops.add(t, _1), A) + c1 = cubic_convolution1(t, A) + + x2 = ops.sub(_1, t) + c2 = cubic_convolution1(x2, A) + c3 = cubic_convolution2(ops.add(x2, _1), A) + return (c0, c1, c2, c3) + + def cubic_interp1d(xs, t): + cs = get_cubic_upsample_coefficients(t) + # dot product between xs and cs + return xs[0] * cs[0] + xs[1] * cs[1] + xs[2] * cs[2] + xs[3] * cs[3] + + height_scale = compute_scale(iH, oH, align_corners, scales_h) + width_scale = compute_scale(iW, oW, align_corners, scales_h) + + def clamp(v, min, max): + return ops.maximum(min, ops.minimum(max, v)) + + def fn(idx): + n, c, oy, ox = idx + + real_x = compute_source_index(width_scale, ox, align_corners) + in_x = ops.floor(real_x) + t_x = ops.sub(real_x, in_x) + + real_y = compute_source_index(height_scale, oy, align_corners) + in_y = ops.floor(real_y) + t_y = ops.sub(real_y, in_y) + + def load_bounded(fy, fx): + # TODO(Lezcano) Here we may not need to set-up a device_size + _0 = ops.constant(0, torch.int32) + iHm1 = ops.constant(iH - 1, torch.int32) + iWm1 = ops.constant(iW - 1, torch.int32) + iy = ops.indirect_indexing(clamp(fy, _0, iHm1), iH, check=False) + ix = ops.indirect_indexing(clamp(fx, _0, iWm1), iW, check=False) + return x_loader([n, c, iy, ix]) + + iy = ops.to_dtype(in_y, get_int_dtype(iH + 1)) + ix = ops.to_dtype(in_x, get_int_dtype(iW + 1)) + iys_ofs = tuple(ops.add(iy, ofs) for ofs in (-1, 0, 1, 2)) + ixs_ofs = tuple(ops.add(ix, ofs) for ofs in (-1, 0, 1, 2)) + + def get_x_interp(y): + coeffs_x = tuple(load_bounded(y, x) for x in ixs_ofs) + return cubic_interp1d(coeffs_x, t_x) + + coeffs_y = tuple(get_x_interp(y) for y in iys_ofs) + return cubic_interp1d(coeffs_y, t_y) + + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=fn, + ranges=[N, C, sympy.Integer(oH), sympy.Integer(oW)], + ) + + +@register_lowering(aten.reflection_pad1d_backward) +@register_lowering(aten.reflection_pad2d_backward) +@register_lowering(aten.reflection_pad3d_backward) +def _reflection_padnd_backward(grad_output, x, padding): + dim = len(padding) // 2 + + dhw = [h - 1 for h in x.get_size()[-dim:]] + grad_loader = grad_output.make_loader() + + padding_left = [padding[2 * (dim - 1 - i)] for i in range(dim)] + padding_right = [padding[2 * (dim - 1 - i) + 1] for i in range(dim)] + + def fn(idx): + b = idx[:-dim] + xyz = idx[-dim:] + + def load_from_output(x): + return grad_loader([*b, *x]) + + def index_range_condition(index_range): + i, lb, ub = index_range + i = ops.index_expr(i, torch.int32) + lb = ops.index_expr(lb, torch.int64) + ub = ops.index_expr(ub, torch.int64) + return ops.and_(ops.ge(i, lb), ops.le(i, ub)) + + # Areas after reflection: + # + # top-left | top | top-right + # ----------------------------------------- + # left | center | right + # ----------------------------------------- + # bottom-left | bottom | bottom-right + # + # The center area is the original matrix. Other areas are reflections. + + center = [xyz[i] + padding_left[i] for i in range(dim)] + left_reflect = [padding_left[i] - xyz[i] for i in range(dim)] + right_reflect = [2 * dhw[i] + padding_left[i] - xyz[i] for i in range(dim)] + + # Accumulate gradients from different areas + # If some of the padding is negative, center load is not always valid + range_c = [ + (center[i], 0, dhw[i] + padding_left[i] + padding_right[i]) + for i in range(dim) + ] + cond = functools.reduce( + ops.and_, [index_range_condition(range_c[i]) for i in range(dim)] + ) + grad = ops.masked(cond, lambda: load_from_output(center), 0.0) + + def accumulate(grad, out, index_ranges): + # If the upper bound is less than the lower bound, we can get rid of one accumulation. + # This happens when the padding size is zero. + for i in range(dim): + upper_less_than_lower = index_ranges[i][2] < index_ranges[i][1] + if isinstance(upper_less_than_lower, bool) and upper_less_than_lower: + return grad + cond = functools.reduce( + ops.and_, + [index_range_condition(index_range) for index_range in index_ranges], + ) + g = ops.masked(cond, lambda: load_from_output(out), 0.0) + return ops.add(grad, g) + + for area in itertools.product(*[[-1, 0, 1] for _ in range(dim)]): + if area == tuple([0] * dim): + # center, this is already done. + continue + + outs = [] + index_ranges = [] + + for i in range(dim): + if area[i] == 0: + out = center[i] + index_range = range_c[i] + elif area[i] == -1: + out = left_reflect[i] + index_range = (xyz[i], 1, padding_left[i]) + elif area[i] == 1: + out = right_reflect[i] + index_range = (xyz[i], dhw[i] - padding_right[i], dhw[i] - 1) + + outs.append(out) # type: ignore[possibly-undefined] + index_ranges.append(index_range) # type: ignore[possibly-undefined] + + grad = accumulate(grad, outs, index_ranges) + + return grad + + return Pointwise.create( + device=grad_output.get_device(), + dtype=grad_output.get_dtype(), + inner_fn=fn, + ranges=list(x.get_size()), + ) + + +@register_lowering(prims.rev.default) +def rev(x, dims): + # note - dims pre-canonicalized + x_loader = x.make_loader() + sizes = x.get_size() + + def loader(idx): + idx = list(idx) + assert len(idx) == len(sizes) + for dim in dims: + idx[dim] = (sizes[dim] - 1) - idx[dim] + + return x_loader(idx) + + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=loader, + ranges=sizes, + ) + + +@register_lowering(aten.constant_pad_nd, type_promotion_kind=None) +def constant_pad_nd(x, padding, fill_value=0): + assert (len(padding) % 2) == 0 + if all(p == 0 for p in padding): + return clone(x) + + sizes = x.get_size() + + bounds = list(reversed(list(zip(padding[::2], padding[1::2])))) + n = len(sizes) - len(bounds) + + # if padding is a complicated expression, hoist it + bounds_precomp: List[Tuple[sympy.Symbol, Any]] = [] + for l, h in bounds: + bounds_precomp.append((V.graph.sizevars.lookup_precomputed_size(l), h)) # type: ignore[arg-type] + + output_size = list(sizes[:n]) + mask_sizes = [] + for (low, high), size in zip(bounds, sizes[n:]): + mask_sizes.append(size) + output_size.append(sympy.expand(size + low + high)) + assert len(output_size) == len(sizes) + fill_value = dtype_to_type(x.get_dtype())(fill_value) + + def mask(index): + mask = [] + for idx, (low, high), length in zip(index[n:], bounds, mask_sizes): + if low != 0: + mask.append(range_mask_low(idx, 0)) + if high != 0: + mask.append(range_mask_high(idx, length)) + mask = functools.reduce(ops.and_, mask) + return ops.masked(mask, lambda: x_loader(index), fill_value) + + def offset_fn(index): + new_index = list(index[:n]) + for idx, (low, high) in zip(index[n:], bounds_precomp): + new_index.append(idx - low) + assert len(new_index) == len(index) + return mask(new_index) + + x_loader = x.make_loader() + return Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=offset_fn, + ranges=output_size, + ) + + +def range_mask_low(i: sympy.Expr, low: Union[sympy.Expr, int]): + return ops.ge( + ops.index_expr(i, torch.int64), + ops.index_expr(sympy.Integer(low), torch.int64), + ) + + +def range_mask_high(i: sympy.Expr, high: sympy.Expr): + return ops.lt( + ops.index_expr(i, torch.int64), + ops.index_expr(high, torch.int64), + ) + + +def range_mask(i: sympy.Expr, high: sympy.Expr, low: sympy.Expr): + return ops.and_( + range_mask_low(i, low), + range_mask_high(i, high), + ) + + +def constant_boundary_condition_2d(x, fill_value, padding=None, pad_fill_value=1.0): + *_, h, w = x.get_size() + x_loader = x.make_loader() + padding_h = padding[0] if padding else 0 + padding_w = padding[1] if padding else 0 + + def load(index): + *prefix, ih, iw = index + + mask = ops.and_( + range_mask(ih, h + padding_h, -padding_h), + range_mask(iw, w + padding_w, -padding_w), + ) + return ( + ops.masked( + mask, + lambda: constant_boundary_condition_2d(x, pad_fill_value)( + [*prefix, ih, iw] + ), + fill_value, + ) + if padding + else ops.masked(mask, lambda: x_loader([*prefix, ih, iw]), fill_value) + ) + + return load + + +def pooling_size(x, i, kernel_size, stride, padding, ceil_mode): + x_out = FloorDiv( + x + 2 * padding[i] - (kernel_size[i] - 1) + (stride[i] - 1), stride[i] + ) + + if ceil_mode: + x_alt = FloorDiv( + x + 2 * padding[i] - (kernel_size[i] - 1) + 2 * (stride[i] - 1), stride[i] + ) + if V.graph.sizevars.size_hint((x_alt - 1) * stride[i] - x - padding[i]) >= 0: + # Sliding windows must start within the input or left padding + x_alt -= 1 # type: ignore[assignment] + V.graph.sizevars.guard_leq(0, x_alt * stride[i] - x - padding[i]) # type: ignore[arg-type] + if V.graph.sizevars.size_hint(x_out - x_alt) == 0: + # ceil mode is actually a no-op, lets guard on that + V.graph.sizevars.guard_equals(x_out, x_alt) + ceil_mode = False + else: + x_out = x_alt + return x_out, ceil_mode + + +fallback_max_pool2d_with_indices = fallback_handler( + aten.max_pool2d_with_indices.default, + add_to_fallback_set=False, +) + + +@register_lowering(aten.max_pool2d_with_indices, type_promotion_kind=None) +def max_pool2d_with_indices( + x, kernel_size, stride=None, padding=0, dilation=1, ceil_mode=False +): + if padding == 0: + padding = [0, 0] + if dilation == 1: + dilation = [1, 1] + if not stride: + stride = kernel_size + kernel_size = pad_listlike(kernel_size, 2) + stride = pad_listlike(stride, 2) + padding = pad_listlike(padding, 2) + dilation = pad_listlike(dilation, 2) + + assert isinstance(x, TensorBox) + assert len(kernel_size) == 2 + assert len(stride) == 2 + assert len(padding) == 2 + assert len(dilation) == 2 + assert len(x.get_size()) in (3, 4) + + x.realize_hint() + *batch, h, w = x.get_size() + + h_out, ceil_mode1 = pooling_size(h, 0, kernel_size, stride, padding, ceil_mode) + w_out, ceil_mode2 = pooling_size(w, 1, kernel_size, stride, padding, ceil_mode) + + if padding[0] or padding[1] or ceil_mode1 or ceil_mode2: + x_loader = constant_boundary_condition_2d(x, float("-inf")) + else: + x_loader = x.make_loader() + + new_size = list(batch) + [h_out, w_out] + window_size = kernel_size[0] * kernel_size[1] + + if window_size > 25 or any(d != 1 for d in dilation): + # Kernel size too big. Results in hard-to-optimize Triton code. Use fallback. + return fallback_max_pool2d_with_indices( + x, kernel_size, stride, padding, dilation, ceil_mode + ) + + def fn(idx, return_index): + *prefix, bh, bw = idx + maxval = None + maxindex = None + for ih, iw in itertools.product(range(kernel_size[0]), range(kernel_size[1])): + ih = bh * stride[0] + ih - padding[0] + iw = bw * stride[1] + iw - padding[1] + val = x_loader([*prefix, ih, iw]) + if return_index: + index = ops.index_expr(ih * w + iw, torch.int64) + if maxindex is None: + maxindex = index + else: + maxindex = ops.where(ops.gt(val, maxval), index, maxindex) + if maxval is None: + maxval = val + else: + maxval = ops.maximum(val, maxval) + if return_index: + return maxindex + else: + return maxval + + r1 = Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=functools.partial(fn, return_index=False), + ranges=new_size, + ) + r2 = Pointwise.create( + device=x.get_device(), + dtype=torch.int64, + inner_fn=functools.partial(fn, return_index=True), + ranges=new_size, + ) + # TODO(jansel): should we force these to be realized? + return r1, r2 + + +fallback_max_pool2d_with_indices_backward = fallback_handler( + aten.max_pool2d_with_indices_backward.default, + add_to_fallback_set=False, +) + + +@register_lowering(aten.max_pool2d_with_indices_backward, type_promotion_kind=None) +def max_pool2d_with_indices_backward( + grad_output, x, kernel_size, stride, padding, dilation, ceil_mode, indices +): + if padding == 0: + padding = [0, 0] + if dilation == 1: + dilation = [1, 1] + if not stride: + stride = kernel_size + + assert isinstance(x, TensorBox) + assert len(kernel_size) == 2 + assert len(stride) == 2 + assert len(padding) == 2 + assert len(dilation) == 2 + assert len(x.get_size()) in (3, 4) + + # we will read this many times, so make sure it is computed + grad_output.realize_hint() + try: + gO_stride = grad_output.get_stride() + except AttributeError: + # some classes don't have `get_stride` + # TODO will need a better way of determining if inputs are channels-last + gO_stride = None + if isinstance(x, TensorBox) and isinstance(x.data.data, Pointwise): # type: ignore[attr-defined] + data = x.data.data # type: ignore[attr-defined] + x_buffer = ir.ComputedBuffer( + name=None, + layout=ir.FlexibleLayout( + device=data.get_device(), + dtype=data.get_dtype(), + size=data.get_size(), + ), + data=data, + ) + x_buffer.decide_layout() + x_stride = x_buffer.get_stride() + else: + try: + x_stride = x.get_stride() + except AttributeError: + x_stride = None + + is_channels_last = (x_stride is not None and x_stride[1] == 1) or ( + gO_stride is not None and gO_stride[1] == 1 + ) + autotune = ( + config.coordinate_descent_tuning + or config.max_autotune + or config.max_autotune_pointwise + ) + if any(d != 1 for d in dilation) or (is_channels_last and not autotune): + # don't codegen channels-last when autotune is not enabled, it's very slow + return fallback_max_pool2d_with_indices_backward( + grad_output, x, kernel_size, stride, padding, dilation, ceil_mode, indices + ) + + indices.realize_hint() + + *batch, height, width = x.get_size() + *_, pooled_height, pooled_width = grad_output.get_size() + + indices_loader = indices.make_loader() + grad_loader = grad_output.make_loader() + new_size = list(x.get_size()) + + h_window_size = max( + [ + max(h // stride[0] - max(0, (h - kernel_size[0]) // stride[0]), 1) + for h in range(kernel_size[0] * 2) + ] + ) + w_window_size = max( + [ + max(w // stride[1] - max(0, (w - kernel_size[1]) // stride[1]), 1) + for w in range(kernel_size[1] * 2) + ] + ) + + window_size = h_window_size * w_window_size + + if window_size > 25: + # Kernel size too big. Results in hard-to-optimize Triton code. Use fallback. + return fallback_max_pool2d_with_indices_backward( + grad_output, x, kernel_size, stride, padding, dilation, ceil_mode, indices + ) + + indices_size = indices.get_size() + + def fn(idx): + *prefix, h, w = idx + index_test = ops.index_expr(h * width + w, torch.int32) + h = h + padding[0] + w = w + padding[1] + phstart = ops.index_expr( + FloorDiv(h - kernel_size[0] + stride[0], stride[0]), torch.int32 + ) + pwstart = ops.index_expr( + FloorDiv(w - kernel_size[1] + stride[1], stride[1]), torch.int32 + ) + phend = ops.index_expr(FloorDiv(h, stride[0]) + 1, torch.int32) + pwend = ops.index_expr(FloorDiv(w, stride[1]) + 1, torch.int32) + + phstart = ops.maximum(phstart, ops.constant(0, torch.int32)) + pwstart = ops.maximum(pwstart, ops.constant(0, torch.int32)) + phend = ops.minimum(phend, ops.index_expr(pooled_height, torch.int32)) + pwend = ops.minimum(pwend, ops.index_expr(pooled_width, torch.int32)) + + gradient = None + for ph_ in range(h_window_size): + for pw_ in range(w_window_size): + ph = ops.add(phstart, ops.constant(ph_, torch.int32)) + pw = ops.add(pwstart, ops.constant(pw_, torch.int32)) + grad_index = [ + *prefix, + ops.indirect_indexing( + ops.minimum(ph, ops.sub(phend, ops.constant(1, torch.int32))), + indices_size[-2], + check=False, + ), + ops.indirect_indexing( + ops.minimum(pw, ops.sub(pwend, ops.constant(1, torch.int32))), + indices_size[-1], + check=False, + ), + ] + + index_actual = indices_loader(grad_index) + grad_part = grad_loader(grad_index) + check = ops.eq(index_actual, index_test) + + if gradient is None: + # don't need mask for 0, 0 + gradient = ops.where( + check, grad_part, ops.constant(0.0, torch.float32) + ) + else: + mask = ops.and_( + ops.and_( + ops.lt(ph, phend), + ops.lt(pw, pwend), + ), + check, + ) + gradient = ops.where(mask, ops.add(gradient, grad_part), gradient) + assert gradient is not None + return gradient + + return Pointwise.create( + device=grad_output.get_device(), + dtype=grad_output.get_dtype(), + inner_fn=fn, + ranges=new_size, + ) + + +def pad_adaptive_loader(x, pad_val=0.0): + *_, h, w = x.get_size() + x_loader = x.make_loader() + + def load(prefix, increments, start_indices, end_indices): + ih, iw = increments + h_start_index, w_start_index = start_indices + h_end_index, w_end_index = end_indices + + mask = ops.and_( + ops.lt( + ops.index_expr(h_start_index + ih, torch.int64), + ops.index_expr(h_end_index, torch.int64), + ), + ops.lt( + ops.index_expr(w_start_index + iw, torch.int64), + ops.index_expr(w_end_index, torch.int64), + ), + ) + + return ops.masked( + mask, + lambda: x_loader([*prefix, h_start_index + ih, w_start_index + iw]), + pad_val, + ) + + return load + + +def _adaptive_pooling_idx_sum(kernel_maxes, start_index_fns, end_index_fns): + h_start_index_fn, w_start_index_fn = start_index_fns + h_end_index_fn, w_end_index_fn = end_index_fns + + def fn_sum(idx, loader): + *prefix, bh, bw = idx + + h_start_index = h_start_index_fn(bh) + h_end_index = h_end_index_fn(bh) + + w_start_index = w_start_index_fn(bw) + w_end_index = w_end_index_fn(bw) + + total = None + for ih, iw in itertools.product(range(kernel_maxes[0]), range(kernel_maxes[1])): + val = loader( + prefix, + [ih, iw], + [h_start_index, w_start_index], + [h_end_index, w_end_index], + ) + if total is None: + total = val + else: + total = ops.add(val, total) + return total + + return fn_sum + + +fallback_adaptive_avg_pool2d = fallback_handler( + aten._adaptive_avg_pool2d.default, add_to_fallback_set=False +) + + +@register_lowering(aten._adaptive_avg_pool2d) +def _adaptive_avg_pool2d(x, output_size): + assert isinstance(x, TensorBox) + assert len(output_size) == 2 + x.realize_hint() + + *batch, h_in, w_in = x.get_size() + + h_in = V.graph.sizevars.evaluate_static_shape(h_in) + w_in = V.graph.sizevars.evaluate_static_shape(w_in) + + h_out, w_out = output_size + + # no-op if the same input and output + if h_in == h_out and w_in == w_out: + return clone(x) + + if h_out == 0 or w_out == 0: + o_size = [*batch, h_out, w_out] + return empty(o_size, dtype=x.get_dtype(), device=x.get_device()) + if h_in % h_out == 0 and w_in % w_out == 0: + kernel_size = [h_in // h_out, w_in // w_out] + return avg_pool2d(x, kernel_size) + + h_kernel_max = ceildiv((h_in + h_out - 1), h_out) + w_kernel_max = ceildiv((w_in + w_out - 1), w_out) + + new_size = list(batch) + [h_out, w_out] + dtype = x.get_dtype() + + def start_index(index, out_dim, inp_dim): + return FloorDiv((index * inp_dim), out_dim) + + def end_index(index, out_dim, inp_dim): + return FloorDiv((index + 1) * inp_dim + out_dim - 1, out_dim) + + h_start_index = functools.partial(start_index, out_dim=h_out, inp_dim=h_in) + h_end_index = functools.partial(end_index, out_dim=h_out, inp_dim=h_in) + + w_start_index = functools.partial(start_index, out_dim=w_out, inp_dim=w_in) + w_end_index = functools.partial(end_index, out_dim=w_out, inp_dim=w_in) + + window_size = h_kernel_max * w_kernel_max + if window_size > 25: + # Kernel size too big. Results in hard-to-optimize Triton code. Use fallback. + return fallback_adaptive_avg_pool2d(x, output_size) + + fn_sum = _adaptive_pooling_idx_sum( + [h_kernel_max, w_kernel_max], + [h_start_index, w_start_index], + [h_end_index, w_end_index], + ) + + ones_loader = pad_adaptive_loader(ones_like(x)) + + def fn(idx): + return ops.truediv( + fn_sum(idx, pad_adaptive_loader(x)), fn_sum(idx, ones_loader) + ) + + rv = Pointwise.create( + device=x.get_device(), + dtype=dtype, + inner_fn=fn, + ranges=new_size, + ) + # TODO: should we force these to be realized? + return rv + + +def _adaptive_pooling_idx_max(kernel_maxes, in_sizes, out_sizes, return_index, loader): + # NOTE: There is some duplication between this and addaptive_avg_pool2d and max_pool2d + # Look into refactoring/deduplication after #116418 is merged. + h_in, w_in = in_sizes + h_out, w_out = out_sizes + + def start_index(index, out_dim, inp_dim): + return FloorDiv((index * inp_dim), out_dim) + + def end_index(index, out_dim, inp_dim): + return FloorDiv((index + 1) * inp_dim + out_dim - 1, out_dim) + + h_start_index_fn = functools.partial(start_index, out_dim=h_out, inp_dim=h_in) + h_end_index_fn = functools.partial(end_index, out_dim=h_out, inp_dim=h_in) + w_start_index_fn = functools.partial(start_index, out_dim=w_out, inp_dim=w_in) + w_end_index_fn = functools.partial(end_index, out_dim=w_out, inp_dim=w_in) + + def fn_max(idx): + *prefix, bh, bw = idx + + h_start_index = h_start_index_fn(bh) + h_end_index = h_end_index_fn(bh) + + w_start_index = w_start_index_fn(bw) + w_end_index = w_end_index_fn(bw) + maxval = None + maxindex = None + for ih, iw in itertools.product(range(kernel_maxes[0]), range(kernel_maxes[1])): + val = loader( + prefix, + [ih, iw], + [h_start_index, w_start_index], + [h_end_index, w_end_index], + ) + index = ops.index_expr( + (h_start_index + ih) * w_in + w_start_index + iw, torch.int64 + ) + if return_index: + if maxindex is None: + maxindex = index + else: + maxindex = ops.where(ops.gt(val, maxval), index, maxindex) + if maxval is None: + maxval = val + else: + maxval = ops.maximum(val, maxval) + if return_index: + return maxindex + else: + return maxval + + return fn_max + + +fallback_adaptive_max_pool2d = fallback_handler( + aten.adaptive_max_pool2d.default, add_to_fallback_set=False +) + + +@register_lowering(aten.adaptive_max_pool2d) +def adaptive_max_pool2d(x, output_size): + assert isinstance(x, TensorBox) + assert len(output_size) == 2 + x.realize_hint() + + *batch, h_in, w_in = x.get_size() + + h_in = V.graph.sizevars.evaluate_static_shape(h_in) + w_in = V.graph.sizevars.evaluate_static_shape(w_in) + + h_out, w_out = output_size + + if h_out == 0 or w_out == 0: + o_size = [*batch, h_out, w_out] + return empty(o_size, dtype=x.get_dtype(), device=x.get_device()), empty( + o_size, dtype=torch.int64, device=x.get_device() + ) + if h_in % h_out == 0 and w_in % w_out == 0: + kernel_size = [h_in // h_out, w_in // w_out] + return max_pool2d_with_indices(x, kernel_size) + + h_kernel_max = ceildiv((h_in + h_out - 1), h_out) + w_kernel_max = ceildiv((w_in + w_out - 1), w_out) + + new_size = list(batch) + [h_out, w_out] + dtype = x.get_dtype() + + window_size = h_kernel_max * w_kernel_max + if window_size > 25: + # Kernel size too big. Results in hard-to-optimize Triton code. Use fallback. + return fallback_adaptive_max_pool2d(x, output_size) + + inner_func_max_val = _adaptive_pooling_idx_max( + kernel_maxes=[h_kernel_max, w_kernel_max], + in_sizes=[h_in, w_in], + out_sizes=[h_out, w_out], + return_index=False, + loader=pad_adaptive_loader(x, float("-inf")), + ) + + inner_func_max_idx = _adaptive_pooling_idx_max( + kernel_maxes=[h_kernel_max, w_kernel_max], + in_sizes=[h_in, w_in], + out_sizes=[h_out, w_out], + return_index=True, + loader=pad_adaptive_loader(x, float("-inf")), + ) + + rv = Pointwise.create( + device=x.get_device(), + dtype=dtype, + inner_fn=inner_func_max_val, + ranges=new_size, + ) + ri = Pointwise.create( + device=x.get_device(), + dtype=torch.int64, + inner_fn=inner_func_max_idx, + ranges=new_size, + ) + return rv, ri + + +fallback_fractional_max_pool2d = fallback_handler( + aten.fractional_max_pool2d.default, add_to_fallback_set=False +) + + +def _fractional_pooling_offsets(samples, in_sz, out_sz, kernel_sz, dim): + out_sz = out_sz[dim] + in_sz = in_sz[dim] + kernel_sz = kernel_sz[dim] + alpha = (in_sz - kernel_sz) / (out_sz - 1) + samples_loader = samples.make_loader() + + def load(prefix, i): + sample = samples_loader([*prefix, dim]) + i_expr = ops.index_expr(i, samples.get_dtype()) + alpha_expr = ops.index_expr(alpha, samples.get_dtype()) + seq_i = ops.floor((i_expr + sample) * alpha_expr) - ops.floor( + sample * alpha_expr + ) + seq_i = ops.to_dtype(seq_i, torch.int64) + + mask = ops.lt( + i_expr, + ops.index_expr(out_sz - 1, torch.int64), + ) + return ops.where(mask, seq_i, ops.index_expr(in_sz - kernel_sz, torch.int64)) + + return load + + +@register_lowering(aten.fractional_max_pool2d) +def fractional_max_pool2d(x, kernel_size, output_size, random_samples): + x.realize_hint() + *batch, inp_h, inp_w = x.get_size() + kernel_h, kernel_w = kernel_size + h_out, w_out = output_size + + if kernel_h * kernel_w >= 25: + return fallback_fractional_max_pool2d( + x, kernel_size, output_size, random_samples + ) + + gen_offsets_for_dim = functools.partial( + _fractional_pooling_offsets, + samples=random_samples, + in_sz=[inp_h, inp_w], + out_sz=output_size, + kernel_sz=kernel_size, + ) + + h_index_fn = gen_offsets_for_dim(dim=0) + w_index_fn = gen_offsets_for_dim(dim=1) + x_loader = x.make_loader() + + def fn(idx, return_index): + *prefix, bh, bw = idx + + h_start_index = ops.indirect_indexing(h_index_fn(prefix, bh), inp_h) + w_start_index = ops.indirect_indexing(w_index_fn(prefix, bw), inp_w) + + maxval = None + maxindex = None + for ih, iw in itertools.product(range(kernel_size[0]), range(kernel_size[1])): + val = x_loader([*prefix, h_start_index + ih, w_start_index + iw]) + if return_index: + index = ops.index_expr( + (h_start_index + ih) * inp_w + w_start_index + iw, torch.int64 + ) + if maxindex is None: + maxindex = index + else: + maxindex = ops.where( + ops.or_(ops.gt(val, maxval), ops.isnan(val)), index, maxindex + ) + if maxval is None: + maxval = val + else: + maxval = ops.maximum(val, maxval) + if return_index: + return maxindex + else: + return maxval + + new_size = list(batch) + [h_out, w_out] + rv = Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=functools.partial(fn, return_index=False), + ranges=new_size, + ) + + ri = Pointwise.create( + device=x.get_device(), + dtype=torch.int64, + inner_fn=functools.partial(fn, return_index=True), + ranges=new_size, + ) + return rv, ri + + +@register_lowering(aten.upsample_nearest2d_backward.default) +def upsample_nearest2d_backward( + x, output_size=None, input_size=None, scales_h=None, scales_w=None +): + x.realize_hint() + + *batch, inp_h, inp_w = x.get_size() + inp_h = V.graph.sizevars.evaluate_static_shape(inp_h) + inp_w = V.graph.sizevars.evaluate_static_shape(inp_w) + + *batch, out_h, out_w = input_size + + if inp_h % out_h == 0 and inp_w % out_w == 0: + return avg_pool2d(x, [inp_h // out_h, inp_w // out_w], divisor_override=1) + + h_kernel_max = ceildiv(inp_h, out_h) + w_kernel_max = ceildiv(inp_w, out_w) + + def start_index(index, out_dim, inp_dim): + return CeilDiv(index * inp_dim, out_dim) + + def end_index(index, out_dim, inp_dim): + return start_index((index + 1), out_dim, inp_dim) + + h_start_index = functools.partial(start_index, out_dim=out_h, inp_dim=inp_h) + h_end_index = functools.partial(end_index, out_dim=out_h, inp_dim=inp_h) + + w_start_index = functools.partial(start_index, out_dim=out_w, inp_dim=inp_w) + w_end_index = functools.partial(end_index, out_dim=out_w, inp_dim=inp_w) + + fn_sum = _adaptive_pooling_idx_sum( + [h_kernel_max, w_kernel_max], + [h_start_index, w_start_index], + [h_end_index, w_end_index], + ) + + def fn(idx): + return fn_sum(idx, pad_adaptive_loader(x)) + + rv = Pointwise.create( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=fn, + ranges=list(input_size), + ) + + return rv + + +fallback_avg_pool2d = fallback_handler( + aten.avg_pool2d.default, add_to_fallback_set=False +) + + +@register_lowering(aten.avg_pool2d, type_promotion_kind=None) +def avg_pool2d( + x, + kernel_size, + stride=(), + padding=0, + ceil_mode=False, + count_include_pad=True, + divisor_override=None, +): + if not stride: + stride = kernel_size + if not padding: + padding = [0, 0] + kernel_size = pad_listlike(kernel_size, 2) + stride = pad_listlike(stride, 2) + padding = pad_listlike(padding, 2) + + assert isinstance(x, TensorBox) + assert len(kernel_size) == 2 + assert len(stride) == 2 + assert len(padding) == 2 + assert len(x.get_size()) in (3, 4) + + x.realize_hint() + *batch, h, w = x.get_size() + + h_out, ceil_mode1 = pooling_size(h, 0, kernel_size, stride, padding, ceil_mode) + w_out, ceil_mode2 = pooling_size(w, 1, kernel_size, stride, padding, ceil_mode) + + if padding[0] or padding[1] or ceil_mode1 or ceil_mode2: + x_loader = constant_boundary_condition_2d(x, 0.0) + had_padding = True + else: + x_loader = x.make_loader() + had_padding = False + + new_size = list(batch) + [h_out, w_out] + dtype = x.get_dtype() + + window_size = kernel_size[0] * kernel_size[1] + if window_size > 25: + # Kernel size too big. Results in hard-to-optimize Triton code. Use fallback. + return fallback_avg_pool2d( + x, + kernel_size, + stride, + padding, + ceil_mode, + count_include_pad, + divisor_override, + ) + + def fn_sum(idx, loader): + *prefix, bh, bw = idx + total = None + for ih, iw in itertools.product(range(kernel_size[0]), range(kernel_size[1])): + ih = bh * stride[0] + ih - padding[0] + iw = bw * stride[1] + iw - padding[1] + val = loader([*prefix, ih, iw]) + if total is None: + total = val + else: + total = ops.add(val, total) + return total + + if not had_padding or divisor_override: + if divisor_override: + scale = 1 / divisor_override + else: + scale = 1.0 / (kernel_size[0] * kernel_size[1]) + + def fn(idx): + return ops.mul(fn_sum(idx, x_loader), ops.constant(scale, dtype)) + + else: + ones_loader = constant_boundary_condition_2d( + ones_like(x), 0.0, padding if count_include_pad else None + ) + + def fn(idx): + # TODO(jansel): optimize to do `int(x 25: + # Kernel size too big. Results in hard-to-optimize Triton code. Use fallback. + return fallback_avg_pool2d_backward( + grad_output, + x, + kernel_size, + stride, + padding, + ceil_mode, + count_include_pad, + divisor_override, + ) + + def compute_pool_size_without_padding(ph, pw): + """ + This computes the scaling factor that we will divide an element + by when `count_include_pad=False` + """ + stride_h = ops.constant(stride[0], torch.int32) + stride_w = ops.constant(stride[1], torch.int32) + pad_h = ops.constant(padding[0], torch.int32) + pad_w = ops.constant(padding[1], torch.int32) + kernel_h = ops.constant(kernel_size[0], torch.int32) + kernel_w = ops.constant(kernel_size[1], torch.int32) + hstart = ops.sub(ops.mul(ph, stride_h), pad_h) + wstart = ops.sub(ops.mul(pw, stride_w), pad_w) + hend = ops.minimum( + ops.add(hstart, kernel_h), + ops.add(ops.index_expr(height, torch.int32), pad_h), + ) + wend = ops.minimum( + ops.add(wstart, kernel_w), + ops.add(ops.index_expr(width, torch.int32), pad_w), + ) + hstart = ops.maximum(hstart, ops.constant(0, torch.int32)) + wstart = ops.maximum(wstart, ops.constant(0, torch.int32)) + hend = ops.minimum(hend, ops.index_expr(height, torch.int32)) + wend = ops.minimum(wend, ops.index_expr(width, torch.int32)) + divide_factor = ops.mul(ops.sub(hend, hstart), ops.sub(wend, wstart)) + return divide_factor + + def fn(idx): + *prefix, h, w = idx + h = h + padding[0] + w = w + padding[1] + phstart = ops.index_expr( + FloorDiv(h - kernel_size[0] + stride[0], stride[0]), torch.int32 + ) + pwstart = ops.index_expr( + FloorDiv(w - kernel_size[1] + stride[1], stride[1]), torch.int32 + ) + phend = ops.index_expr(FloorDiv(h, stride[0]) + 1, torch.int32) + pwend = ops.index_expr(FloorDiv(w, stride[1]) + 1, torch.int32) + + phstart = ops.maximum(phstart, ops.constant(0, torch.int32)) + pwstart = ops.maximum(pwstart, ops.constant(0, torch.int32)) + phend = ops.minimum(phend, ops.index_expr(pooled_height, torch.int32)) + pwend = ops.minimum(pwend, ops.index_expr(pooled_width, torch.int32)) + + gradient = None + for ph_ in range(h_window_size): + for pw_ in range(w_window_size): + ph = ops.add(phstart, ops.constant(ph_, torch.int32)) + pw = ops.add(pwstart, ops.constant(pw_, torch.int32)) + + if divisor_override is not None: + scale = divisor_override + elif count_include_pad or not had_padding: + scale = kernel_size[0] * kernel_size[1] + else: + scale = compute_pool_size_without_padding(ph, pw) + + part = ops.truediv( + grad_loader( + [ + *prefix, + ops.indirect_indexing( + ops.minimum( + ph, ops.sub(phend, ops.constant(1, torch.int32)) + ), + pooled_height, + check=False, + ), + ops.indirect_indexing( + ops.minimum( + pw, ops.sub(pwend, ops.constant(1, torch.int32)) + ), + pooled_width, + check=False, + ), + ] + ), + scale, + ) + + mask = ops.and_( + ops.lt(ph, phend), + ops.lt(pw, pwend), + ) + if gradient is None: + gradient = ops.where(mask, part, ops.constant(0.0, torch.float32)) + else: + gradient = ops.where(mask, ops.add(gradient, part), gradient) + assert gradient is not None + return gradient + + rv = Pointwise.create( + device=grad_output.get_device(), + dtype=dtype, + inner_fn=fn, + ranges=new_size, + ) + return rv + + +def _validate_reduction_axis(x, axis): + size = x.get_size() + if isinstance(axis, int): + axis = [axis] + elif not axis: + axis = range(len(size)) + if len(size) == 0: + assert tuple(axis) in [(), (0,), (-1,)], f"invalid axis: {axis}" + return [] + axis = list(axis) + for i in range(len(axis)): + if axis[i] < 0: + axis[i] += len(size) if len(size) else 1 + assert 0 <= axis[i] < len(size) or (len(size) == 0 and axis[i] == 0) + assert len(set(axis)) == len(axis), "reduction axis not unique" + return axis + + +def _make_reduction_inner(x, *, axis, keepdims, dtype, override_return_dtype): + if dtype is not None: + x = to_dtype(x, dtype) + size = x.get_size() + axis = set(_validate_reduction_axis(x, axis)) + + kept_sizes = [] + kept_idx = [] + reduced_sizes = [] + reduced_idx = [] + for i in range(len(size)): + if i in axis: + reduced_idx.append(i) + reduced_sizes.append(size[i]) + else: + kept_idx.append(i) + kept_sizes.append(size[i]) + + def loader(index, reduction_index): + assert len(reduction_index) == len(reduced_idx) + if keepdims: + assert len(index) == len(size) + index = [index[i] for i in kept_idx] + assert len(index) == len(kept_idx) + new_index = [None] * (len(index) + len(reduction_index)) + for idx, var in itertools.chain( + zip(kept_idx, index), zip(reduced_idx, reduction_index) + ): + new_index[idx] = var + return inner_loader(new_index) + + if keepdims: + new_size = list(size) + for i in reduced_idx: + new_size[i] = sympy.Integer(1) + else: + new_size = kept_sizes + + inner_loader = x.make_loader() + return dict( + device=x.get_device(), + dst_dtype=override_return_dtype or x.get_dtype(), + src_dtype=x.get_dtype(), + inner_fn=loader, + ranges=new_size, + reduction_ranges=reduced_sizes, + ) + + +def make_reduction(reduction_type: str, override_return_dtype=None): + def inner(x, axis=None, keepdims=False, *, dtype=None): + kwargs = _make_reduction_inner( + x, + axis=axis, + keepdims=keepdims, + dtype=dtype, + override_return_dtype=override_return_dtype, + ) + result = Reduction.create(reduction_type=reduction_type, input_node=x, **kwargs) + if isinstance( + result.data.data, Reduction + ): # Only realize if reduction isn't unrolled + result.realize() + return result + + return inner + + +def _make_scan_inner(x, *, axis, dtype): + if dtype is not None: + x = to_dtype(x, dtype) + size = x.get_size() + axis = _validate_dim(x, axis) + + return dict( + device=x.get_device(), + dtype=x.get_dtype(), + inner_fn=x.make_loader(), + size=x.get_size(), + axis=axis, + ) + + +@register_lowering(aten.mean) +def mean(x, axis=None, keepdim=False, *, dtype=None): + if dtype is not None: + x = to_dtype(x, dtype) + size = x.get_size() + axis = _validate_reduction_axis(x, axis) + # compute in higher-precision until end of mean lowering + output_dtype = x.get_dtype() + if output_dtype in (torch.float16, torch.bfloat16): + x = to_dtype(x, torch.float) + sum_result = sum_(x, axis, keepdim) + denom = sympy_product(size[i] for i in axis) + denom = ir.IndexingConstant(denom, x.get_dtype(), x.get_device()) + denom = ExpandView.create(denom, list(sum_result.get_size())) + return to_dtype(div(sum_result, denom), output_dtype) + + +def var_mean_sum_(x, axis, correction, keepdim, return_mean): + if correction is None: + correction = 1 + + size = x.get_size() + axis = _validate_reduction_axis(x, axis) + x_mean = mean(x, axis, keepdim=True) + if return_mean: + x_mean.realize() + + diffs = square(sub(x, x_mean)) + sum_result = sum_(diffs, axis, keepdim) + + denom = sympy_product(size[i] for i in axis) + if correction: + denom = sympy.Max(denom - correction, 0) + denom = ir.IndexingConstant(denom, x.get_dtype(), x.get_device()) + denom = ExpandView.create(denom, list(sum_result.get_size())) + x_var = div(sum_result, denom) + if not return_mean: + return (x_var,) + + x_mean = x_mean if keepdim else squeeze(x_mean, axis) + return x_var, x_mean + + +def use_two_step_variance(x, axis, keepdim): + # Instead of unrolling welford, just unroll the simpler two-step var + axis = _validate_reduction_axis(x, axis) + kwargs = _make_reduction_inner( + x, axis=axis, keepdims=keepdim, dtype=None, override_return_dtype=None + ) + + ranges = kwargs["ranges"] + reduction_numel = sympy_product(kwargs["reduction_ranges"]) + return ( + isinstance(reduction_numel, sympy.Integer) + and int(reduction_numel) < config.unroll_reductions_threshold + and sympy_product(ranges) != 1 + ) + + +def var_mean_welford_(x, axis, *, correction, keepdim, return_mean): + if correction is None: + correction = 1 + + kwargs = _make_reduction_inner( + x, axis=axis, keepdims=keepdim, dtype=None, override_return_dtype=None + ) + loader = kwargs.pop("inner_fn") + kwargs.pop("dst_dtype") + kwargs.pop("src_dtype") + + mean, m2, _ = ir.WelfordReduction.create( + inner_fns=(loader,), + reduction_type="welford_reduce", + dtype=x.get_dtype(), + **kwargs, + ) + m2.realize() + + dtype = x.get_dtype() + size = x.get_size() + axis = _validate_reduction_axis(x, axis) + rnumel = sympy_product(size[i] for i in axis) + + def get_constant_or_index_expr(x, dtype): + if isinstance(x, sympy.Expr) and not x.is_number: + return ops.to_dtype(ops.index_expr(x, torch.int64), dtype) + return ops.constant(x, dtype) + + def scale_fn(data): + c = get_constant_or_index_expr(correction, dtype) + N = get_constant_or_index_expr(rnumel, dtype) + zero = ops.constant(0, dtype) + return data / ops.maximum(zero, N - c) + + var = make_pointwise(scale_fn)(m2) + + if return_mean: + mean.realize() + return var, mean + return (var,) + + +def var_mean_helper_(x, *, axis, correction, keepdim, return_mean): + out_dtype = x.get_dtype() + compute_dtype = get_computation_dtype(out_dtype) + x = to_dtype(x, compute_dtype, copy=False) + kwargs = dict( + x=x, + axis=axis, + correction=correction, + keepdim=keepdim, + return_mean=return_mean, + ) + output = ( + var_mean_sum_(**kwargs) + if use_two_step_variance(x, axis=axis, keepdim=keepdim) + else var_mean_welford_(**kwargs) + ) + output = tuple(to_dtype(x, out_dtype, copy=False) for x in output) + return output[0] if not return_mean else output + + +@register_lowering([aten.var, prims.var]) +def var_(x, axis=None, *, correction=None, keepdim=False): + return var_mean_helper_( + x, axis=axis, correction=correction, keepdim=keepdim, return_mean=False + ) + + +@register_lowering(aten.var_mean) +def var_mean(x, axis=None, *, correction=None, keepdim=False): + return var_mean_helper_( + x, axis=axis, correction=correction, keepdim=keepdim, return_mean=True + ) + + +def pow_recursive(x, y, dtype): + if y < 0: + return pow_recursive(ops.reciprocal(x), -y, dtype) + if y == 0: + return ops.constant(1, dtype) + if y == 1: + return x + + result = pow_recursive(x, y // 2, dtype) + result = ops.mul(result, result) + if (y % 2) == 1: + result = ops.mul(result, x) + return result + + +@make_pointwise +def pow_native(a, b): + return ops.pow(a, b) + + +fallback_pow_tensor_tensor = fallback_handler( + aten.pow.Tensor_Tensor, add_to_fallback_set=False +) +fallback_pow_scalar = fallback_handler(aten.pow.Scalar, add_to_fallback_set=False) +fallback_pow_tensor_scalar = fallback_handler( + aten.pow.Tensor_Scalar, add_to_fallback_set=False +) + + +@register_lowering(aten.pow, broadcast=True) +def pow(a, b): + if isinstance(b, float) and b == int(b): + return pow(a, int(b)) + elif isinstance(b, float) and b == 0.5: + return sqrt(a) + elif isinstance(b, int) and b == 1: + return clone(a) + + # Type promotion ensures all tensor arguments have the same type + dtype = next(x.get_dtype() for x in (a, b) if isinstance(x, ir.TensorBox)) + is_integer_pow = is_integer_dtype(dtype) + + # Optimize away small fixed powers, or for integers avoid falling back to ATen + embed_exponent = isinstance(b, int) and ( + -32 < b < 32 or (is_integer_pow and b >= 0) + ) + if embed_exponent: + loader = a.make_loader() + + def fn(idx): + return pow_recursive(loader(idx), b, a.get_dtype()) + + return Pointwise.create( + device=a.get_device(), + dtype=a.get_dtype(), + inner_fn=fn, + ranges=a.get_size(), + ) + + if isinstance(a, Number): + if a == 1: + return full_like(b, 1) + if a == 2 and is_float_dtype(b.get_dtype()): + return exp2(b) + + if is_integer_pow: + # ops.pow doesn't work for integers + if isinstance(a, Number): + return fallback_pow_scalar(a, b) + elif isinstance(b, Number): + return fallback_pow_tensor_scalar(a, b) + else: + return fallback_pow_tensor_tensor(a, b) + + return pow_native(a, b) + + +def mutate_to(changed, val, unsafe_alias=False): + if isinstance(changed, TensorBox): + changed_data = changed.data + else: + changed_data = changed + if isinstance(val, TensorBox): + val = val.data + + if not isinstance(val, ir.StorageBox): + # introduce a copy to handle views + val = Pointwise.create( + device=changed.get_device(), + dtype=changed.get_dtype(), + inner_fn=val.make_loader(), + ranges=changed.get_size(), + ).data + assert isinstance(val, ir.StorageBox) + + if isinstance(changed_data, ir.StorageBox) and not ( + changed_data.is_input_buffer() or isinstance(changed_data.data, ir.NopKernel) + ): + # Fast path, just swing the data pointer + val.realize() + changed_data.data = val.data + return changed + + ir.MutationLayout.realize_into(val, changed_data, unsafe_alias=unsafe_alias) + return changed + + +@register_lowering(aten.fill_) +def fill_(x, fill_value): + return mutate_to(x, full_like(x, fill_value)) + + +@register_lowering(aten.copy_, type_promotion_kind=None) +def copy_(dst, src, non_blocking=False): + src = to_device(src, dst.get_device()) + src = to_dtype(src, dst.get_dtype()) + src = expand(src, dst.get_size()) + return mutate_to(dst, src) + + +@make_pointwise +def floordiv(a, b): + return ops.floordiv(a, b) + + +@make_pointwise +def truncdiv(a, b): + return ops.truncdiv(a, b) + + +@register_lowering(aten.div, broadcast=True) +def div_mode(a, b, rounding_mode=None): + both_integer = is_integer_type(a) and is_integer_type(b) + both_boolean = is_boolean_type(a) and is_boolean_type(b) + + # floordiv and truncdiv need special handling for integer tensors on Triton, + # see the discussion at https://github.com/openai/triton/issues/605 + if rounding_mode == "floor": + assert not both_boolean, "floordiv operands can not be boolean at the same time" + return floordiv(a, b) if both_integer else floor(div(a, b)) + if rounding_mode == "trunc": + assert not both_boolean, "truncdiv operands can not be boolean at the same time" + return truncdiv(a, b) if both_integer else trunc(div(a, b)) + return div(a, b) + + +@register_lowering([aten.mul], broadcast=True) +def mul(a, b): + both_bool = is_boolean_type(a) and is_boolean_type(b) + if both_bool: + return logical_and(a, b) + else: + fn = ops_wrapper(aten.mul.__name__) + return make_pointwise(fn)(a, b) + + +# NOTE: prims.div maps to a / b in C, so performs truncation division on +# integer inputs and true division for floating and complex inputs. +@register_lowering([prims.div], broadcast=True) +def div_prim(a, b): + is_integral = all(is_boolean_type(x) or is_integer_type(x) for x in [a, b]) + + if is_integral: + return truncdiv(a, b) + + def fn(*args): + return ops.truediv(*args) + + return make_pointwise(fn)(a, b) + + +@register_lowering( + [aten.true_divide, aten.div.Tensor], + broadcast=True, + type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.INT_TO_FLOAT, +) +def div(a, b): + a, b = promote_constants( + (a, b), type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.INT_TO_FLOAT + ) + return div_prim(a, b) + + +@register_lowering([aten.fmod, prims.fmod], broadcast=True) +def fmod(a, b): + is_integral = is_boolean_type(a) or is_integer_type(a) + + if is_integral: + + def fn(a, b): + return ops.mod(a, b) + + else: + + def fn(a, b): + return ops.fmod(a, b) + + return make_pointwise(fn)(a, b) + + +@register_lowering(aten.rsqrt) +def rsqrt(x): + dtype = x.get_dtype() + if is_integer_dtype(dtype) or is_boolean_dtype(dtype): + x = to_dtype(x, torch.get_default_dtype()) + + def _rsqrt(x): + return ops.rsqrt(x) + + return make_pointwise(_rsqrt)(x) + + +@register_lowering([aten.sum, prims.sum]) +def sum_(x, axis=None, keepdims=False, *, dtype=None): + if ( + is_integer_dtype(x.get_dtype()) or is_boolean_dtype(x.get_dtype()) + ) and dtype is None: + dtype = torch.int64 + + fn = make_reduction("sum", override_return_dtype=dtype) + return fn(x, axis, keepdims, dtype=dtype) + + +fallback_cumsum = fallback_handler(aten.cumsum.default) +fallback_cumprod = fallback_handler(aten.cumprod.default) +fallback_logcumsumexp = fallback_handler(aten.logcumsumexp.default) + + +@register_lowering(aten.cumsum) +def cumsum(x, axis=None, dtype=None): + if ( + is_integer_dtype(x.get_dtype()) or is_boolean_dtype(x.get_dtype()) + ) and dtype is None: + dtype = torch.int64 + + if len(x.get_size()) == 0: + assert axis in [0, -1] + dtype = dtype or x.get_dtype() + return to_dtype(x, dtype, copy=True) + + kwargs = _make_scan_inner(x, axis=axis, dtype=dtype) + result = ir.Scan.create(**kwargs, combine_fn=ops.add, init=0) + if result is None: + return fallback_cumsum(x, dim=axis, dtype=dtype) + return result + + +@register_lowering(aten.cumprod) +def cumprod(x, axis=None, dtype=None): + if ( + is_integer_dtype(x.get_dtype()) or is_boolean_dtype(x.get_dtype()) + ) and dtype is None: + dtype = torch.int64 + + if len(x.get_size()) == 0: + assert axis in [0, -1] + dtype = dtype or x.get_dtype() + return to_dtype(x, dtype, copy=True) + + kwargs = _make_scan_inner(x, axis=axis, dtype=dtype) + result = ir.Scan.create(**kwargs, combine_fn=ops.mul, init=1) + if result is None: + return fallback_cumprod(x, dim=axis, dtype=dtype) + return result + + +@register_lowering(aten.logcumsumexp) +def logcumsumexp(x, dim): + def log_add_exp_helper(a, b): + min_v = ops.minimum(a, b) + max_v = ops.maximum(a, b) + mask = (min_v != max_v) | (~ops.isinf(min_v)) + return ops.where(mask, ops.log1p(ops.exp(min_v - max_v)) + max_v, a) + + dtype = x.get_dtype() + if len(x.get_size()) == 0: + assert dim in [0, -1] + return clone(x) + + kwargs = _make_scan_inner(x, axis=dim, dtype=dtype) + result = ir.Scan.create(**kwargs, combine_fn=log_add_exp_helper, init=float("-inf")) + if result is None: + return fallback_logcumsumexp(x, dim=dim) + return result + + +@register_lowering(aten.prod) +def prod(x, axis=None, keepdims=False, *, dtype=None): + if ( + is_integer_dtype(x.get_dtype()) or is_boolean_dtype(x.get_dtype()) + ) and dtype is None: + dtype = torch.int64 + + fn = make_reduction("prod", override_return_dtype=dtype) + return fn(x, axis, keepdims, dtype=dtype) + + +@register_lowering(aten.any) +def reduce_any(x, dim=None, keepdim=False): + x = to_dtype(x, torch.bool) + return make_reduction("any")(x, axis=dim, keepdims=keepdim) + + +@register_lowering(aten.max, type_promotion_kind=None) +def reduce_max(x, dim=None, keepdim=False): + if dim is not None: + return ( + reduce_amax(x, axis=dim, keepdims=keepdim), + reduce_argmax(x, axis=dim, keepdims=keepdim), + ) + + return reduce_amax(x, axis=None, keepdims=keepdim) + + +@register_lowering(aten.min, type_promotion_kind=None) +def reduce_min(x, dim=None, keepdim=False): + if dim is not None: + return ( + reduce_amin(x, axis=dim, keepdims=keepdim), + reduce_argmin(x, axis=dim, keepdims=keepdim), + ) + + return reduce_amin(x, axis=None, keepdims=keepdim) + + +register_lowering(prims.xor_sum)(make_reduction("xor_sum")) +reduce_amax = register_lowering(aten.amax)(make_reduction("max")) +reduce_amin = register_lowering(aten.amin)(make_reduction("min")) +reduce_argmax = register_lowering(aten.argmax)( + make_reduction("argmax", override_return_dtype=torch.int64) +) +reduce_argmin = register_lowering(aten.argmin)( + make_reduction("argmin", override_return_dtype=torch.int64) +) + +add = register_pointwise( + aten.add, allow_alpha=True, override_fn_when_input_bool="logical_or" +) + + +def register_pointwise_numeric(op, name=None, triton_fallback=None): + return register_pointwise( + op, + name=name, + type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.INT_TO_FLOAT, + triton_fallback=triton_fallback, + ) + + +def register_pointwise_numeric_ldf64(op): + return register_pointwise( + op, + type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.INT_TO_FLOAT, + use_libdevice_for_f64=True, + ) + + +exp = register_pointwise_numeric_ldf64(aten.exp) +exp2 = register_pointwise_numeric(aten.exp2) +expm1 = register_pointwise_numeric(aten.expm1) +relu = register_pointwise(aten.relu) +sigmoid = register_pointwise_numeric_ldf64(aten.sigmoid) +sqrt = register_pointwise_numeric_ldf64(aten.sqrt) +square = register_pointwise(aten.square) +sub = register_pointwise(aten.sub, allow_alpha=True) +register_pointwise_numeric_ldf64(aten.cos) +register_pointwise_numeric_ldf64(aten.sin) +abs = register_pointwise(aten.abs) +bitwise_and = register_pointwise(aten.bitwise_and) +bitwise_left_shift = register_pointwise(aten.bitwise_left_shift) +bitwise_not = register_pointwise( + aten.bitwise_not, override_fn_when_input_bool="logical_not" +) +bitwise_or = register_pointwise(aten.bitwise_or) +bitwise_right_shift = register_pointwise(aten.bitwise_right_shift) +bitwise_xor = register_pointwise(aten.bitwise_xor) +register_pointwise_numeric(aten.lgamma) +erf = register_pointwise_numeric(aten.erf) +register_lowering( + aten.special_erf, type_promotion_kind=ELEMENTWISE_TYPE_PROMOTION_KIND.INT_TO_FLOAT +)(erf) + +register_pointwise_numeric(aten.log1p) +register_pointwise_numeric(aten.tan) +register_pointwise_numeric(aten.tanh) +register_pointwise_numeric_ldf64(aten.log) +logical_and = register_pointwise( + aten.logical_and, + type_promotion_kind=None, + convert_input_to_bool=True, + override_return_dtype=torch.bool, +) +logical_not = register_pointwise( + aten.logical_not, + type_promotion_kind=None, + convert_input_to_bool=True, + override_return_dtype=torch.bool, +) +logical_or = register_pointwise( + aten.logical_or, + type_promotion_kind=None, + convert_input_to_bool=True, + override_return_dtype=torch.bool, +) +logical_xor = register_pointwise( + aten.logical_xor, + type_promotion_kind=None, + convert_input_to_bool=True, + override_return_dtype=torch.bool, +) +maximum = register_pointwise(aten.maximum) +minimum = register_pointwise(aten.minimum) +register_lowering(aten.clamp_min)(maximum) +register_lowering(aten.clamp_max)(minimum) +neg = register_pointwise(aten.neg) +abs = register_pointwise(aten.abs) +reciprocal = register_pointwise_numeric(aten.reciprocal) +register_pointwise(aten.remainder) +sign = register_pointwise(aten.sign, override_fn_when_input_bool="identity") +register_pointwise(aten.ceil) +register_pointwise(aten.signbit, override_return_dtype=torch.bool) + +register_lowering(aten._neg_view)(neg) + +register_pointwise(aten.le, override_return_dtype=torch.bool) +register_pointwise(aten.lt, override_return_dtype=torch.bool) +register_pointwise(aten.ge, override_return_dtype=torch.bool) +gt = register_pointwise(aten.gt, override_return_dtype=torch.bool) +register_pointwise(aten.eq, override_return_dtype=torch.bool) +register_pointwise(aten.ne, override_return_dtype=torch.bool) + +register_pointwise_numeric(aten.cosh) +register_pointwise_numeric(aten.sinh) +register_pointwise_numeric(aten.acos) +register_pointwise_numeric(aten.acosh) +register_pointwise_numeric(aten.asin) +register_pointwise_numeric(aten.asinh) +register_pointwise_numeric(aten.atan2) +register_pointwise_numeric(aten.atan) +register_pointwise_numeric(aten.atanh) +register_pointwise_numeric(aten.copysign) +register_pointwise_numeric(aten.erfc) +register_pointwise_numeric(aten.erfinv) +register_pointwise_numeric(aten.hypot) +register_pointwise_numeric(aten.log10) +register_pointwise_numeric(aten.nextafter) + +from .codegen.common import pointwise_overrides_data + + +def _get_pointwise_overrides(ns, name): + data = pointwise_overrides_data[name] + op = getattr(ns, data.name, None) + if op is None: + return + + def make_triton_fallback(op): + if data.triton is None: + return fallback_handler(op) + + if isinstance(op, torch._ops.OpOverloadPacket): + for olname in op.overloads(): + ol = getattr(op, olname) + yield ol, data.type_promotion_kind, make_triton_fallback(ol) + else: + yield op, data.type_promotion_kind, make_triton_fallback(op) + + +for name in pointwise_overrides_data: + for op, type_promotion_kind, triton_fallback in _get_pointwise_overrides( + aten, name + ): + register_pointwise( + op, + name=name, + type_promotion_kind=type_promotion_kind, + triton_fallback=triton_fallback, + ) + + for op, type_promotion_kind, triton_fallback in _get_pointwise_overrides( + prims, name + ): + register_pointwise( + op, + name=name, + type_promotion_kind=type_promotion_kind, + triton_fallback=triton_fallback, + ) + + +foreach_add_list = register_foreach_pointwise( + aten._foreach_add.List, add, allow_alpha=True +) +foreach_add_scalar = register_foreach_pointwise( + aten._foreach_add.Scalar, add, allow_alpha=True +) +register_foreach_pointwise(aten._foreach_add.Tensor, add, allow_alpha=True) +foreach_mul_list = register_foreach_pointwise(aten._foreach_mul.List, mul) +foreach_mul_scalar = register_foreach_pointwise(aten._foreach_mul.Scalar, mul) +register_foreach_pointwise(aten._foreach_sub.List, sub) +register_foreach_pointwise(aten._foreach_sub.Scalar, sub) +register_foreach_pointwise(aten._foreach_neg.default, neg) +register_foreach_pointwise(aten._foreach_abs.default, abs) +register_foreach_pointwise(aten._foreach_pow.Scalar, pow) +register_foreach_pointwise(aten._foreach_pow.ScalarAndTensor, pow) +foreach_div_list = register_foreach_pointwise(aten._foreach_div.List, div) +foreach_div_scalar = register_foreach_pointwise(aten._foreach_div.Scalar, div) +register_foreach_pointwise(aten._foreach_sqrt, sqrt) +register_foreach_pointwise(aten._foreach_maximum.List, maximum) +register_foreach_pointwise(aten._foreach_maximum.Scalar, maximum) +register_foreach_pointwise(aten._foreach_minimum.List, minimum) +register_foreach_pointwise(aten._foreach_minimum.Scalar, minimum) +register_foreach_pointwise(aten._foreach_clamp_min.List, maximum) +register_foreach_pointwise(aten._foreach_clamp_min.Scalar, maximum) +register_foreach_pointwise(aten._foreach_clamp_max.List, minimum) +register_foreach_pointwise(aten._foreach_clamp_max.Scalar, minimum) +register_foreach_pointwise(aten._foreach_reciprocal, reciprocal) +register_foreach_pointwise(aten._foreach_sign, sign) +register_foreach_pointwise(aten._foreach_copy, copy) + + +# these are only encountered as outputs of the graph +# reinplacing epilogue copies improves compile time +# by removing extra buffers sent to the scheduler. +def register_foreach_inplace(aten_op, outplace_aten_op, outplace_op): + inplaceable_foreach_ops[outplace_aten_op] = aten_op + inplace_foreach_ops.add(aten_op) + + def fn(*args, **kwargs): + results = outplace_op(*args, **kwargs) + mut_results = [] + for arg, result in zip(args[0], results): + mut_results.append(mutate_to(arg, result, unsafe_alias=True)) + + return mut_results + + _register_foreach_lowering(aten_op, fn) + + +register_foreach_inplace( + aten._foreach_add_.List, aten._foreach_add.List, foreach_add_list +) +register_foreach_inplace( + aten._foreach_add_.Scalar, aten._foreach_add.Scalar, foreach_add_scalar +) +register_foreach_inplace( + aten._foreach_mul_.List, aten._foreach_mul.List, foreach_mul_list +) +register_foreach_inplace( + aten._foreach_mul_.Scalar, aten._foreach_mul.Scalar, foreach_mul_scalar +) +register_foreach_inplace( + aten._foreach_div_.List, aten._foreach_div.List, foreach_div_list +) +register_foreach_inplace( + aten._foreach_div_.Scalar, aten._foreach_div.Scalar, foreach_div_scalar +) + + +def register_inplace(aten_op, outplace_op): + @register_lowering(aten_op, type_promotion_kind=None) + def fn(*args, **kwargs): + result = outplace_op(*args, **kwargs) + result = to_dtype(result, args[0].get_dtype()) + return mutate_to(args[0], result) + + return fn + + +register_inplace(aten.add_, add) +register_inplace(aten.bitwise_and_, bitwise_and) +register_inplace(aten.bitwise_left_shift_, bitwise_left_shift) +register_inplace(aten.bitwise_not_, bitwise_not) +register_inplace(aten.bitwise_or_, bitwise_or) +register_inplace(aten.bitwise_right_shift_, bitwise_right_shift) +register_inplace(aten.bitwise_xor_, bitwise_xor) +register_inplace(aten.mul_, mul) +register_inplace(aten.div_.Tensor, div) +register_inplace(aten.div_.Tensor_mode, div_mode) +register_inplace(aten.logical_and_, logical_and) +register_inplace(aten.logical_not_, logical_not) +register_inplace(aten.logical_or_, logical_or) +register_inplace(aten.logical_xor_, logical_xor) +register_inplace(aten.sub_, sub) +register_inplace(aten.relu_, relu) +register_inplace(aten.sigmoid_, sigmoid) + + +register_lowering(aten.__and__)(bitwise_and) +register_lowering(aten.__lshift__)(bitwise_left_shift) +register_lowering(aten.__or__)(bitwise_or) +register_lowering(aten.__rshift__)(bitwise_right_shift) +register_lowering(aten.__xor__)(bitwise_xor) + +register_inplace(aten.__iand__, aten.__and__) +register_inplace(aten.__ilshift__, aten.__lshift__) +register_inplace(aten.__ior__, aten.__or__) +register_inplace(aten.__irshift__, aten.__rshift__) +register_inplace(aten.__ixor__, aten.__xor__) + + +@register_lowering(aten.sym_constrain_range) +def sym_constrain_range(a, min=None, max=None): + tracing_context = torch._guards.TracingContext.try_get() + assert ( + tracing_context is None or a in tracing_context.fake_mode.shape_env.var_to_range + ) + return a + + +@register_lowering(aten.sym_size.int) +def sym_size(a, dim): + val = V.graph.current_node.meta["val"] + # Note [Can val be an int?] + # ~~~~~~~~~~~~~~~~~~~~~~~~~ + # In principle, someone could construct an FX graph where + # a call to size/stride has a val that is a plain int (not + # SymInt). However, we will maintain the invariant that + # this is not possible: if you are constructing an FX graph + # where there is a call to size/stride that returns an + # int, but you KNOW that int must always be a constant, + # then you do not need trace that call at all (and just + # constant propagate the integer as is.) + assert isinstance(val, torch.SymInt) + return val.node.expr + + +@register_lowering(aten.sym_stride.int) +def sym_stride(a, dim): + val = V.graph.current_node.meta["val"] + # See Note [Can val be an int?] + assert isinstance(val, torch.SymInt) + return val.node.expr + + +@register_lowering(aten.sym_numel) +def sym_numel(a): + return a.get_numel() + + +for method, func in magic_methods.items(): + register_lowering(method_to_operator(method))(func) + + +@register_lowering(aten._foobar) +def foobar(self, *args, **kwargs): + raise NotImplementedError("Helpful for debugging") + + +@register_lowering(torch.ops._inductor_test.realize) +def _realize(x): + x.realize() + return clone(x) + + +@register_lowering(torch.ops.inductor.resize_storage_bytes_) +def resize_storage_bytes_(variable, new_size): + variable.realize() + ir.ResizeStorageBytes(variable, new_size) + return variable + + +from torch._higher_order_ops.auto_functionalize import auto_functionalized + +make_fallback(auto_functionalized) + + +@register_lowering(triton_kernel_wrapper_mutation) +def triton_kernel_wrap_(*, kernel_idx, grid, kwargs): + ir.UserDefinedTritonKernel(kernel_idx=kernel_idx, grid=grid, kernel_args=kwargs) + return {key: val for key, val in kwargs.items() if isinstance(val, TensorBox)} + + +@register_lowering(triton_kernel_wrapper_functional) +def triton_kernel_wrap(*, kernel_idx, grid, kwargs, tensors_to_clone): + new_kwargs = {} + for name, value in kwargs.items(): + if isinstance(value, ir.TensorBox): + x = value.data + has_non_rv_views = False + while isinstance(x, ir.BaseView): + if not isinstance(x, ir.ReinterpretView): + has_non_rv_views = True + break + x = x.data + if has_non_rv_views: + # we realize the inputs wrapped into any view which is not + # ReinterpretView to convert them into ReinterpretView during + # realization; all views being ReinterpretView is assumed by + # the downstream code (e.g., preserving ReinterpretView in + # cloning; layout should be available in mutation marking) + value = ir.TensorBox(ir.ExternKernel.realize_input(value)) + if name in tensors_to_clone: + value = clone_preserve_reinterpret_view(value) + new_kwargs[name] = value + + return triton_kernel_wrap_(kernel_idx=kernel_idx, grid=grid, kwargs=new_kwargs) + + +@register_lowering(torch.ops.higher_order.cond) +def cond(pred, true_fn, false_fn, operands): + if is_triton(pred) or any(map(is_triton, operands)): + msg = "control flow operator: torch.cond." + if stack_trace := V.graph.current_node.meta.get("stack_trace", None): + msg = f"{msg} Found from : \n {stack_trace}" + V.graph.disable_cudagraphs_reason = msg + + result = ir.Conditional.create(pred, true_fn, false_fn, operands) + return list(map(TensorBox.create, result)) + + +try: + import torch.distributed._functional_collectives + + c10d_functional = torch.ops.c10d_functional + + @register_lowering(c10d_functional.wait_tensor) + def wait(input): + return TensorBox.create(ir.Wait.create(input)) + + @register_lowering(c10d_functional.broadcast) + def broadcast(input, src, tag, ranks, group_size): + return ir.Broadcast.create(input, src, tag, ranks, group_size) + + @register_lowering(c10d_functional.all_reduce) + def allreduce(input, reduce_op, tag, ranks, group_size): + return ir.AllReduce.create(input, reduce_op, tag, ranks, group_size) + + @register_lowering(c10d_functional.all_gather_into_tensor) + def all_gather_into_tensor(shard, tag, ranks, group_size): + return TensorBox.create( + ir.AllGatherIntoTensor.create( + ir.ExternKernel.require_contiguous(shard), tag, ranks, group_size + ) + ) + + @register_lowering(c10d_functional.reduce_scatter_tensor) + def reduce_scatter_tensor(input, reduce_op, tag, ranks, group_size): + return TensorBox.create( + ir.ReduceScatterTensor.create(input, reduce_op, tag, ranks, group_size) + ) + + @register_lowering(c10d_functional.all_reduce_coalesced) + def all_reduce_coalesced(input, reduce_op, tag, ranks, group_size): + return ir.AllReduceCoalesced.create(input, reduce_op, tag, ranks, group_size) + + @register_lowering(c10d_functional.all_gather_into_tensor_coalesced) + def all_gather_into_tensor_coalesced(self, tag, ranks, group_size): + result = ir.AllGatherIntoTensorCoalesced.create(self, tag, ranks, group_size) + return list(map(TensorBox.create, result)) + + @register_lowering(c10d_functional.reduce_scatter_tensor_coalesced) + def reduce_scatter_tensor_coalesced(self, reduceOp, tag, ranks, group_size): + result = ir.ReduceScatterTensorCoalesced.create( + self, reduceOp, tag, ranks, group_size + ) + return list(map(TensorBox.create, result)) + + @register_lowering(c10d_functional.all_to_all_single) + def all_to_all_single( + self, output_split_sizes, input_split_sizes, tag, ranks, group_size + ): + return TensorBox.create( + ir.AllToAllSingle.create( + self, output_split_sizes, input_split_sizes, tag, ranks, group_size + ) + ) + + _c10d_functional = torch.ops._c10d_functional + + @register_lowering(_c10d_functional.all_reduce) + def _all_reduce(inp, reduce_op, group_name): + inp = clone(inp) + ir._CollectiveKernel.create_inplace( + _c10d_functional.all_reduce_.default, inp, reduce_op, group_name + ) + return inp + + @register_lowering(_c10d_functional.all_reduce_) + def _all_reduce_(inp, reduce_op, group_name): + ir._CollectiveKernel.create_inplace( + _c10d_functional.all_reduce_.default, inp, reduce_op, group_name + ) + return inp + + @register_lowering(_c10d_functional.all_reduce_coalesced) + def _all_reduce_coalesced(inputs, reduce_op, group_name): + inputs = [clone(inp) for inp in inputs] + ir._CollectiveKernel.create_inplace( + _c10d_functional.all_reduce_coalesced_.default, + inputs, + reduce_op, + group_name, + ) + return inputs + + @register_lowering(_c10d_functional.all_reduce_coalesced_) + def _all_reduce_coalesced_(inputs, reduce_op, group_name): + ir._CollectiveKernel.create_inplace( + _c10d_functional.all_reduce_coalesced_.default, + inputs, + reduce_op, + group_name, + ) + return inputs + + @register_lowering(_c10d_functional.all_gather_into_tensor) + def _all_gather_into_tensor(inp, group_size, group_name): + return ir.TensorBox.create( + ir._CollectiveKernel.create_out_of_place( + _c10d_functional.all_gather_into_tensor.default, + inp, + group_size, + group_name, + ) + ) + + @register_lowering(_c10d_functional.all_gather_into_tensor_coalesced) + def _all_gather_into_tensor_coalesced(inputs, group_size, group_name): + return pytree.tree_map( + ir.TensorBox.create, + ir._CollectiveKernel.create_out_of_place( + _c10d_functional.all_gather_into_tensor_coalesced.default, + inputs, + group_size, + group_name, + ), + ) + + @register_lowering(_c10d_functional.reduce_scatter_tensor) + def _reduce_scatter_tensor(inp, reduce_op, group_size, group_name): + return ir.TensorBox.create( + ir._CollectiveKernel.create_out_of_place( + _c10d_functional.reduce_scatter_tensor.default, + inp, + reduce_op, + group_size, + group_name, + ) + ) + + @register_lowering(_c10d_functional.reduce_scatter_tensor_coalesced) + def _reduce_scatter_tensor_coalesced(inputs, reduce_op, group_size, group_name): + return pytree.tree_map( + ir.TensorBox.create, + ir._CollectiveKernel.create_out_of_place( + _c10d_functional.reduce_scatter_tensor_coalesced.default, + inputs, + reduce_op, + group_size, + group_name, + ), + ) + + @register_lowering(_c10d_functional.all_to_all_single) + def _all_to_all_single(inp, output_split_sizes, input_split_sizes, group_name): + return ir.TensorBox.create( + ir._CollectiveKernel.create_out_of_place( + _c10d_functional.all_to_all_single.default, + inp, + output_split_sizes, + input_split_sizes, + group_name, + ) + ) + + @register_lowering(_c10d_functional.broadcast) + def _broadcast(inp, src, group_name): + inp = clone(inp) + ir._CollectiveKernel.create_inplace( + _c10d_functional.broadcast_.default, inp, src, group_name + ) + return inp + + @register_lowering(_c10d_functional.broadcast_) + def _broadcast_(inp, src, group_name): + ir._CollectiveKernel.create_inplace( + _c10d_functional.broadcast_.default, inp, src, group_name + ) + return inp + + @register_lowering(_c10d_functional.wait_tensor) + def _wait_tensor(inp): + ir._WaitKernel.create_wait(_c10d_functional.wait_tensor.default, inp) + return inp + +except ImportError: + log.info( + "Inductor support for distributed collectives depends on building torch.distributed" + ) + +# populate lowerings defined in kernel/* +from . import kernel + +import_submodule(kernel) + +from . import quantized_lowerings + +quantized_lowerings.register_quantized_ops() diff --git a/shared/package-files/eb/ebbb16d51b298168511c1a09c9d5cea0fce9449e97412fdfa09659a28459898b/blob b/shared/package-files/eb/ebbb16d51b298168511c1a09c9d5cea0fce9449e97412fdfa09659a28459898b/blob new file mode 100644 index 0000000000000000000000000000000000000000..c2cf784e8c02dad72325a4883267d3ac70a9616e --- /dev/null +++ b/shared/package-files/eb/ebbb16d51b298168511c1a09c9d5cea0fce9449e97412fdfa09659a28459898b/blob @@ -0,0 +1,410 @@ +from functools import lru_cache +from itertools import chain +from typing import Callable, cast, Dict, List, Optional, Sequence, Union + +import torch +from torch._ops import OpOverload +from torch._subclasses import FakeTensorMode +from torch.distributed._tensor._utils import try_find_mesh_from_args +from torch.distributed._tensor.op_schema import ( + DTensorSpec, + OpInfo, + OpSchema, + OpStrategy, + OutputSharding, + OutputSpecType, + PlacementStrategy, + RuntimeSchemaInfo, + StrategyType, + TupleStrategy, +) +from torch.distributed._tensor.placement_types import TensorMeta +from torch.distributed.device_mesh import DeviceMesh + +aten = torch.ops.aten + + +def _length(obj) -> int: + if obj is None: + return 0 + if not isinstance(obj, Sequence): + return 1 + return len(obj) + + +class ShardingPropagator: + def __init__(self) -> None: + self.op_to_rules: Dict[OpOverload, Callable[[OpSchema], OutputSharding]] = {} + self.op_strategy_funcs: Dict[ + OpOverload, + Callable[[DeviceMesh, OpSchema], StrategyType], + ] = {} + # op map to save static argnum to decide to reuse sharding prop cache or re-run sharding prop + self.op_to_schema_info: Dict[OpOverload, RuntimeSchemaInfo] = {} + self.propagate_op_sharding = lru_cache(None)(self.propagate_op_sharding_non_cached) # type: ignore[method-assign] + + def register_sharding_prop_rule( + self, + op_overload: OpOverload, + rule_func: Callable[[OpSchema], OutputSharding], + schema_info: Optional[RuntimeSchemaInfo] = None, + ): + """ + Register a sharding propagation rule for an operator. + """ + self.op_to_rules[op_overload] = rule_func + if schema_info is not None: + self.op_to_schema_info[op_overload] = schema_info + + def register_op_strategy( + self, + op_overload: OpOverload, + strategy_func: Callable[[DeviceMesh, OpSchema], StrategyType], + schema_info: Optional[RuntimeSchemaInfo] = None, + ): + """ + Register a sharding strategy generator for an operator. + """ + self.op_strategy_funcs[op_overload] = strategy_func + if schema_info is not None: + self.op_to_schema_info[op_overload] = schema_info + + @lru_cache + def _propagate_tensor_meta( + self, op_schema: OpSchema + ) -> Union[None, TensorMeta, Sequence[Optional[TensorMeta]]]: + """ + Propagate the tensor metadata, it could either return a TensorMeta + or a list/tuple of TensorMetas + """ + if op_schema.op == aten.equal.default: + # data dependent ops can't be used for fake propagation + return None + + # NOTE: We must call the tracing in fake tensor mode so that it + # avoids materializing memory + with FakeTensorMode(): + fake_args = op_schema.gen_fake_args() + fake_kwargs = op_schema.gen_fake_kwargs() + fake_out = op_schema.op(*fake_args, **fake_kwargs) + + if isinstance(fake_out, torch.Tensor): + return TensorMeta( + shape=fake_out.shape, stride=fake_out.stride(), dtype=fake_out.dtype + ) + + elif isinstance(fake_out, (tuple, list)): + tensor_meta_list: List[Optional[TensorMeta]] = [] + for fake_out_item in fake_out: + if isinstance(fake_out_item, torch.Tensor): + tensor_meta_list.append( + TensorMeta( + shape=fake_out_item.shape, + stride=fake_out_item.stride(), + dtype=fake_out_item.dtype, + ) + ) + else: + tensor_meta_list.append(None) + return ( + tuple(tensor_meta_list) + if isinstance(fake_out, tuple) + else tensor_meta_list + ) + else: + # if fake is not a tensor or tuple of tensor, return as none + return None + + def _wrap_output_spec_tensor_meta( + self, + op: OpOverload, + output_specs: OutputSpecType, + output_tensor_meta: Union[None, TensorMeta, Sequence[Optional[TensorMeta]]], + ) -> None: + """ + Wrap the output_specs with the tensor metadata from the output. + """ + + if isinstance(output_specs, DTensorSpec): + if not isinstance(output_tensor_meta, TensorMeta): + # Either error due to ShardingPropagator or due to incorrect OutputSpec + if not isinstance(output_tensor_meta, (tuple, list)): + raise ValueError( + "ShardingPropagator error: output does not have an associated TensorMeta" + ) + raise ValueError( + f"For the op {op.name()}, `output_specs` has 1 output which does not equal the " + f"number of op outputs: {len(output_tensor_meta)}." + ) + output_specs.tensor_meta = output_tensor_meta + elif isinstance(output_specs, (tuple, list)): + if not isinstance(output_tensor_meta, (tuple, list)) or len( + output_specs + ) != len(output_tensor_meta): + raise ValueError( + f"For the op {op.name()}, `output_specs` has {len(output_specs)} outputs which does not equal the " + f"number of op outputs {_length(output_tensor_meta)}." + ) + for i, spec in enumerate(output_specs): + if isinstance(spec, DTensorSpec): + output_tensor_meta_i = output_tensor_meta[i] + if not isinstance(output_tensor_meta_i, TensorMeta): + raise ValueError( + f"ShardingPropagator error: output {i} does not have an associated TensorMeta" + ) + spec.tensor_meta = output_tensor_meta_i + + def propagate(self, op_info: OpInfo) -> None: + # We cannot use an lru cache if we know that inputs will have dynamic shapes, + # because SymInts are not hashable. + # This is generally ok because this only happens during tracing in torch.compile, + # and tracing does not need to be as fast as eagermode DTensor usages. + if op_info.schema.has_symints: + output_sharding = self.propagate_op_sharding_non_cached(op_info.schema) + else: + output_sharding = self.propagate_op_sharding(op_info.schema) + op_info.output_sharding = output_sharding + + def propagate_op_sharding_non_cached(self, op_schema: OpSchema) -> OutputSharding: + """ + Propagate the sharding for an operator given the op_schema. + """ + # special case op, we don't need to propagate for local + # scalar. TODO: figure out a better way to handle this + if op_schema.op is aten._local_scalar_dense.default: + return OutputSharding(None, [op_schema]) + + out_tensor_meta = self._propagate_tensor_meta(op_schema) + + def spec_to_strategy(spec: object) -> object: + if isinstance(spec, DTensorSpec): + return OpStrategy([PlacementStrategy(spec)]) + elif ( + isinstance(spec, (list, tuple)) + and len(spec) > 0 + and isinstance(spec[0], DTensorSpec) + ): + # tensor list create tuple strategy + tuple_strategy = [spec_to_strategy(s) for s in spec] + tuple_strategy = cast(Sequence[StrategyType], tuple_strategy) + return TupleStrategy( + tuple(tuple_strategy) if isinstance(spec, tuple) else tuple_strategy + ) + else: + return spec + + if op_schema.op in self.op_strategy_funcs: + # generate op strategy for the op. + mesh = try_find_mesh_from_args(op_schema.op, op_schema.args_schema) + # swap the args spec with args strategies + args_op_strategy = [spec_to_strategy(i) for i in op_schema.args_schema] + + kwargs_op_strategy = { + k: spec_to_strategy(v) for k, v in op_schema.kwargs_schema.items() + } + + # construct a new OpSchema on args for strategy based propagation + strategy_schema: OpSchema = OpSchema( + op=op_schema.op, + args_schema=tuple(args_op_strategy), + kwargs_schema=kwargs_op_strategy, + ) + + op_strategy = self.op_strategy_funcs[op_schema.op](mesh, strategy_schema) + + if isinstance(op_strategy, OpStrategy): + # single Op strategy + output_strategy = self._select_strategy(op_strategy) + + # check if we need to redistribute the input + needs_redistribute = False + expected_input_specs = [] + + # in case where the op does not specify input_specs and output_specs + # is a DTensorSpec, we use output_specs as the spec for each DTensor + # input arg. + if output_strategy.input_specs is None: + assert isinstance(output_strategy.output_specs, DTensorSpec) + + for idx, input_spec in enumerate(op_schema.args_spec): + desired_spec = ( + output_strategy.output_spec + if output_strategy.input_specs is None + else output_strategy.input_specs[idx] + ) + expected_input_specs.append(desired_spec) + if input_spec.placements != desired_spec.placements: + needs_redistribute = True + + suggestion_schema = None + if needs_redistribute: + reshard_schema = OpSchema( + op_schema.op, tuple(expected_input_specs), {} + ) + reshard_schema._inplace_rewrap_schema_suggestion(op_schema) + suggestion_schema = [reshard_schema] + + # construct output spec for the op + if op_schema.return_type_tuple_tensor_like(): + # for ops that return multiple tensors and the output_specs is not + # a tuple, we use a tuple of that single output spec as the new + # output_specs + output_specs: OutputSpecType = output_strategy.output_specs + if isinstance(output_specs, DTensorSpec): + output_specs = tuple( + [ + # create a new DTensorSpec with the same placement as the + # output_specs in output_strategy + DTensorSpec( + mesh=output_specs.mesh, + placements=output_specs.placements, + tensor_meta=output_specs.tensor_meta, + ) + for _ in range(len(op_schema.op._schema.returns)) + ] + ) + elif op_schema.return_type_tensor(): + output_specs = output_strategy.output_specs + else: + output_specs = None + + output_sharding = OutputSharding( + output_specs, + suggestion_schema, + needs_redistribute=needs_redistribute, + ) + elif isinstance(op_strategy, TupleStrategy): + # tuple strategy output sharding processing + # runtime selected placement strategy for each TupleStrategy input arg + selected_strategies: List[PlacementStrategy] = [] + out_spec_list: List[DTensorSpec] = [] + for strategy in op_strategy.childs: + assert isinstance(strategy, OpStrategy) + selected_strategy = self._select_strategy(strategy) + selected_strategies.append(selected_strategy) + out_spec_list.append(selected_strategy.output_spec) + + needs_redistribute = False + suggestion_args: List[object] = [] + for arg_idx, arg in enumerate(op_schema.args_schema): + if isinstance(arg, (list, tuple)) and isinstance( + arg[0], DTensorSpec + ): + expected_input_spec_list: List[DTensorSpec] = [] + for idx, arg_spec in enumerate(arg): + expected_input_spec = selected_strategies[idx].input_spec( + arg_idx + ) + expected_input_spec = ( + expected_input_spec.shallow_copy_with_tensor_meta( + arg_spec.tensor_meta + ) + ) + if arg_spec.placements != expected_input_spec.placements: + needs_redistribute = True + expected_input_spec_list.append(expected_input_spec) + suggestion_args.append( + tuple(expected_input_spec_list) + if isinstance(arg, tuple) + else expected_input_spec_list + ) + elif isinstance(arg, DTensorSpec): + expected_input_spec = selected_strategies[0].input_spec(arg_idx) + expected_input_spec = ( + expected_input_spec.shallow_copy_with_tensor_meta( + arg.tensor_meta + ) + ) + if arg.placements != expected_input_spec.placements: + needs_redistribute = True + suggestion_args.append(expected_input_spec) + else: + suggestion_args.append(arg) + + suggestion_schema = None + if needs_redistribute: + reshard_schema = OpSchema( + op_schema.op, tuple(suggestion_args), op_schema.kwargs_schema + ) + suggestion_schema = [reshard_schema] + + output_sharding = OutputSharding( + tuple(out_spec_list) if out_tensor_meta is not None else None, + suggestion_schema, + needs_redistribute=needs_redistribute, + ) + else: + raise ValueError("Unsupported op strategy type") + + # associate the output sharding with the output tensor metadata + self._wrap_output_spec_tensor_meta( + op_schema.op, output_sharding.output_spec, out_tensor_meta + ) + return output_sharding + elif op_schema.op in self.op_to_rules: + # propagate the sharding with rule + sharding_prop_func = self.op_to_rules[op_schema.op] + + # step 1. there's sharding propagation rule, run + # sharding propagation to get the output sharding + try: + output_sharding = sharding_prop_func(op_schema) + except NotImplementedError as e: + raise e + except Exception as e: + raise RuntimeError( + f"Sharding propagation failed on op {op_schema}.\n" f"Error: {e}" + ) from e + + # step 2. if can't get output_spec from sharding + # propagation (i.e. no rules apply for input + # placements), we return the output sharding + # with schema suggestions, which can be used to + # decide how to do redistribute on inputs + if output_sharding.output_spec is None: + if output_sharding.schema_suggestions is None: + if output_sharding.failed_reason is not None: + raise RuntimeError( + f"Sharding propagation failed on op {op_schema}!" + f"Failed reason: {output_sharding.failed_reason}" + ) + else: + # we do auto redistribute on inputs if necessary + # to get an eligible input, which we will pick a + # schema suggestion base on the redistribute cost. + # For now we simply pick the first suggestion. + suggested_input_schema = output_sharding.schema_suggestions[0] + # run sharding propagation again with suggested schema + propagation_res = sharding_prop_func(suggested_input_schema) + # we set the output sharding with the new propagation result + # so that dispatching know both output_spec and schema_suggestions + # exist, which indicates a reshard is needed + output_sharding.output_spec = propagation_res.output_spec + output_sharding.needs_redistribute = True + + # associate the output sharding with the output tensor metadata + self._wrap_output_spec_tensor_meta( + op_schema.op, output_sharding.output_spec, out_tensor_meta + ) + + return output_sharding + else: + raise NotImplementedError( + f"Operator {op_schema.op} does not have a sharding strategy registered." + ) + + def _select_strategy(self, strategy: OpStrategy) -> PlacementStrategy: + if len(strategy.strategies) == 1: + # short cut with only one possible strategy + return strategy.strategies[0] + + strategy_costs: List[float] = [] + for strtg in strategy.strategies: + assert ( + strtg.redistribute_cost is not None + ), "must set redistribute cost each strategy!" + redistribute_cost = sum(chain.from_iterable(strtg.redistribute_cost)) + strategy_costs.append(redistribute_cost) + + # for eager execution, we just select the one with the minimal redistribute cost + return strategy.strategies[strategy_costs.index(min(strategy_costs))] diff --git a/shared/package-files/eb/ebbcd25073a7e89c1d9cc5107211e0a4d2c2b56410f5d245a55fce527f106ffc/blob b/shared/package-files/eb/ebbcd25073a7e89c1d9cc5107211e0a4d2c2b56410f5d245a55fce527f106ffc/blob new file mode 100644 index 0000000000000000000000000000000000000000..d9a6e261ea277989f4362037352cb24da6564460 --- /dev/null +++ b/shared/package-files/eb/ebbcd25073a7e89c1d9cc5107211e0a4d2c2b56410f5d245a55fce527f106ffc/blob @@ -0,0 +1,50 @@ +import importlib.machinery +import os + +from torch.hub import _get_torch_home + + +_HOME = os.path.join(_get_torch_home(), "datasets", "vision") +_USE_SHARDED_DATASETS = False + + +def _download_file_from_remote_location(fpath: str, url: str) -> None: + pass + + +def _is_remote_location_available() -> bool: + return False + + +try: + from torch.hub import load_state_dict_from_url # noqa: 401 +except ImportError: + from torch.utils.model_zoo import load_url as load_state_dict_from_url # noqa: 401 + + +def _get_extension_path(lib_name): + + lib_dir = os.path.dirname(__file__) + if os.name == "nt": + # Register the main torchvision library location on the default DLL path + import ctypes + + kernel32 = ctypes.WinDLL("kernel32.dll", use_last_error=True) + with_load_library_flags = hasattr(kernel32, "AddDllDirectory") + prev_error_mode = kernel32.SetErrorMode(0x0001) + + if with_load_library_flags: + kernel32.AddDllDirectory.restype = ctypes.c_void_p + + os.add_dll_directory(lib_dir) + + kernel32.SetErrorMode(prev_error_mode) + + loader_details = (importlib.machinery.ExtensionFileLoader, importlib.machinery.EXTENSION_SUFFIXES) + + extfinder = importlib.machinery.FileFinder(lib_dir, loader_details) + ext_specs = extfinder.find_spec(lib_name) + if ext_specs is None: + raise ImportError + + return ext_specs.origin diff --git a/shared/package-files/eb/ebbd06733faf864178b5a0439a4b42a45441ad9f421c99cf471eda83b67a1ec2/blob b/shared/package-files/eb/ebbd06733faf864178b5a0439a4b42a45441ad9f421c99cf471eda83b67a1ec2/blob new file mode 100644 index 0000000000000000000000000000000000000000..d1b4a87bb6a0f18a3fcb14542f597921acc0ab2b --- /dev/null +++ b/shared/package-files/eb/ebbd06733faf864178b5a0439a4b42a45441ad9f421c99cf471eda83b67a1ec2/blob @@ -0,0 +1,50 @@ + +/* These pointers will be stored in the C-object for use in other + extension modules +*/ + +void *PyUFunc_API[] = { + (void *) &PyUFunc_Type, + (void *) PyUFunc_FromFuncAndData, + (void *) PyUFunc_RegisterLoopForType, + (void *) PyUFunc_GenericFunction, + (void *) PyUFunc_f_f_As_d_d, + (void *) PyUFunc_d_d, + (void *) PyUFunc_f_f, + (void *) PyUFunc_g_g, + (void *) PyUFunc_F_F_As_D_D, + (void *) PyUFunc_F_F, + (void *) PyUFunc_D_D, + (void *) PyUFunc_G_G, + (void *) PyUFunc_O_O, + (void *) PyUFunc_ff_f_As_dd_d, + (void *) PyUFunc_ff_f, + (void *) PyUFunc_dd_d, + (void *) PyUFunc_gg_g, + (void *) PyUFunc_FF_F_As_DD_D, + (void *) PyUFunc_DD_D, + (void *) PyUFunc_FF_F, + (void *) PyUFunc_GG_G, + (void *) PyUFunc_OO_O, + (void *) PyUFunc_O_O_method, + (void *) PyUFunc_OO_O_method, + (void *) PyUFunc_On_Om, + (void *) PyUFunc_GetPyValues, + (void *) PyUFunc_checkfperr, + (void *) PyUFunc_clearfperr, + (void *) PyUFunc_getfperr, + (void *) PyUFunc_handlefperr, + (void *) PyUFunc_ReplaceLoopBySignature, + (void *) PyUFunc_FromFuncAndDataAndSignature, + (void *) PyUFunc_SetUsesArraysAsData, + (void *) PyUFunc_e_e, + (void *) PyUFunc_e_e_As_f_f, + (void *) PyUFunc_e_e_As_d_d, + (void *) PyUFunc_ee_e, + (void *) PyUFunc_ee_e_As_ff_f, + (void *) PyUFunc_ee_e_As_dd_d, + (void *) PyUFunc_DefaultTypeResolver, + (void *) PyUFunc_ValidateCasting, + (void *) PyUFunc_RegisterLoopForDescr, + (void *) PyUFunc_FromFuncAndDataAndSignatureAndIdentity +}; diff --git a/shared/package-files/eb/ebc04ea344b41a56e582d0f8e895ad68bb38c97153bb19cd0c63e9b11bf82a9e/blob b/shared/package-files/eb/ebc04ea344b41a56e582d0f8e895ad68bb38c97153bb19cd0c63e9b11bf82a9e/blob new file mode 100644 index 0000000000000000000000000000000000000000..572559f8d4edde3621f336c3f9e1be3c3adcf667 --- /dev/null +++ b/shared/package-files/eb/ebc04ea344b41a56e582d0f8e895ad68bb38c97153bb19cd0c63e9b11bf82a9e/blob @@ -0,0 +1,220 @@ +"""Android.""" +from __future__ import annotations + +import os +import re +import sys +from functools import lru_cache +from typing import cast + +from .api import PlatformDirsABC + + +class Android(PlatformDirsABC): + """ + Follows the guidance `from here `_. Makes use of the + `appname `, + `version `, + `ensure_exists `. + """ + + @property + def user_data_dir(self) -> str: + """:return: data directory tied to the user, e.g. ``/data/user///files/``""" + return self._append_app_name_and_version(cast(str, _android_folder()), "files") + + @property + def site_data_dir(self) -> str: + """:return: data directory shared by users, same as `user_data_dir`""" + return self.user_data_dir + + @property + def user_config_dir(self) -> str: + """ + :return: config directory tied to the user, e.g. \ + ``/data/user///shared_prefs/`` + """ + return self._append_app_name_and_version(cast(str, _android_folder()), "shared_prefs") + + @property + def site_config_dir(self) -> str: + """:return: config directory shared by the users, same as `user_config_dir`""" + return self.user_config_dir + + @property + def user_cache_dir(self) -> str: + """:return: cache directory tied to the user, e.g. e.g. ``/data/user///cache/``""" + return self._append_app_name_and_version(cast(str, _android_folder()), "cache") + + @property + def site_cache_dir(self) -> str: + """:return: cache directory shared by users, same as `user_cache_dir`""" + return self.user_cache_dir + + @property + def user_state_dir(self) -> str: + """:return: state directory tied to the user, same as `user_data_dir`""" + return self.user_data_dir + + @property + def user_log_dir(self) -> str: + """ + :return: log directory tied to the user, same as `user_cache_dir` if not opinionated else ``log`` in it, + e.g. ``/data/user///cache//log`` + """ + path = self.user_cache_dir + if self.opinion: + path = os.path.join(path, "log") # noqa: PTH118 + return path + + @property + def user_documents_dir(self) -> str: + """:return: documents directory tied to the user e.g. ``/storage/emulated/0/Documents``""" + return _android_documents_folder() + + @property + def user_downloads_dir(self) -> str: + """:return: downloads directory tied to the user e.g. ``/storage/emulated/0/Downloads``""" + return _android_downloads_folder() + + @property + def user_pictures_dir(self) -> str: + """:return: pictures directory tied to the user e.g. ``/storage/emulated/0/Pictures``""" + return _android_pictures_folder() + + @property + def user_videos_dir(self) -> str: + """:return: videos directory tied to the user e.g. ``/storage/emulated/0/DCIM/Camera``""" + return _android_videos_folder() + + @property + def user_music_dir(self) -> str: + """:return: music directory tied to the user e.g. ``/storage/emulated/0/Music``""" + return _android_music_folder() + + @property + def user_desktop_dir(self) -> str: + """:return: desktop directory tied to the user e.g. ``/storage/emulated/0/Desktop``""" + return "/storage/emulated/0/Desktop" + + @property + def user_runtime_dir(self) -> str: + """ + :return: runtime directory tied to the user, same as `user_cache_dir` if not opinionated else ``tmp`` in it, + e.g. ``/data/user///cache//tmp`` + """ + path = self.user_cache_dir + if self.opinion: + path = os.path.join(path, "tmp") # noqa: PTH118 + return path + + @property + def site_runtime_dir(self) -> str: + """:return: runtime directory shared by users, same as `user_runtime_dir`""" + return self.user_runtime_dir + + +@lru_cache(maxsize=1) +def _android_folder() -> str | None: + """:return: base folder for the Android OS or None if it cannot be found""" + try: + # First try to get path to android app via pyjnius + from jnius import autoclass + + context = autoclass("android.content.Context") + result: str | None = context.getFilesDir().getParentFile().getAbsolutePath() + except Exception: # noqa: BLE001 + # if fails find an android folder looking path on the sys.path + pattern = re.compile(r"/data/(data|user/\d+)/(.+)/files") + for path in sys.path: + if pattern.match(path): + result = path.split("/files")[0] + break + else: + result = None + return result + + +@lru_cache(maxsize=1) +def _android_documents_folder() -> str: + """:return: documents folder for the Android OS""" + # Get directories with pyjnius + try: + from jnius import autoclass + + context = autoclass("android.content.Context") + environment = autoclass("android.os.Environment") + documents_dir: str = context.getExternalFilesDir(environment.DIRECTORY_DOCUMENTS).getAbsolutePath() + except Exception: # noqa: BLE001 + documents_dir = "/storage/emulated/0/Documents" + + return documents_dir + + +@lru_cache(maxsize=1) +def _android_downloads_folder() -> str: + """:return: downloads folder for the Android OS""" + # Get directories with pyjnius + try: + from jnius import autoclass + + context = autoclass("android.content.Context") + environment = autoclass("android.os.Environment") + downloads_dir: str = context.getExternalFilesDir(environment.DIRECTORY_DOWNLOADS).getAbsolutePath() + except Exception: # noqa: BLE001 + downloads_dir = "/storage/emulated/0/Downloads" + + return downloads_dir + + +@lru_cache(maxsize=1) +def _android_pictures_folder() -> str: + """:return: pictures folder for the Android OS""" + # Get directories with pyjnius + try: + from jnius import autoclass + + context = autoclass("android.content.Context") + environment = autoclass("android.os.Environment") + pictures_dir: str = context.getExternalFilesDir(environment.DIRECTORY_PICTURES).getAbsolutePath() + except Exception: # noqa: BLE001 + pictures_dir = "/storage/emulated/0/Pictures" + + return pictures_dir + + +@lru_cache(maxsize=1) +def _android_videos_folder() -> str: + """:return: videos folder for the Android OS""" + # Get directories with pyjnius + try: + from jnius import autoclass + + context = autoclass("android.content.Context") + environment = autoclass("android.os.Environment") + videos_dir: str = context.getExternalFilesDir(environment.DIRECTORY_DCIM).getAbsolutePath() + except Exception: # noqa: BLE001 + videos_dir = "/storage/emulated/0/DCIM/Camera" + + return videos_dir + + +@lru_cache(maxsize=1) +def _android_music_folder() -> str: + """:return: music folder for the Android OS""" + # Get directories with pyjnius + try: + from jnius import autoclass + + context = autoclass("android.content.Context") + environment = autoclass("android.os.Environment") + music_dir: str = context.getExternalFilesDir(environment.DIRECTORY_MUSIC).getAbsolutePath() + except Exception: # noqa: BLE001 + music_dir = "/storage/emulated/0/Music" + + return music_dir + + +__all__ = [ + "Android", +] diff --git a/shared/package-files/eb/ebc2c4576790e15b7c54e966584a6970853db90c241dda1adf3df6c405d89328/blob b/shared/package-files/eb/ebc2c4576790e15b7c54e966584a6970853db90c241dda1adf3df6c405d89328/blob new file mode 100644 index 0000000000000000000000000000000000000000..ed1da94c5ecdff193bf3116de754cac54f38c3cc Binary files /dev/null and b/shared/package-files/eb/ebc2c4576790e15b7c54e966584a6970853db90c241dda1adf3df6c405d89328/blob differ diff --git a/shared/package-files/eb/ebc654cf4d305887e93f7ddd3fe5e01b1b03d6b271bd007185d33002c9cf3938/blob b/shared/package-files/eb/ebc654cf4d305887e93f7ddd3fe5e01b1b03d6b271bd007185d33002c9cf3938/blob new file mode 100644 index 0000000000000000000000000000000000000000..eaa609b342cab390090557c9650c569e4a1404a1 --- /dev/null +++ b/shared/package-files/eb/ebc654cf4d305887e93f7ddd3fe5e01b1b03d6b271bd007185d33002c9cf3938/blob @@ -0,0 +1,166 @@ +import contextlib + +import torch + +__all__ = [ + "fallback_dispatcher", + "semi_sparse_values", + "semi_sparse_indices", + "semi_sparse_t", + "semi_sparse_view", + "semi_sparse_detach", + "semi_sparse_mm", + "semi_sparse_addmm", + "semi_sparse_linear", +] + + +@contextlib.contextmanager +def no_dispatch(): + guard = torch._C._DisableTorchDispatch() + try: + yield + finally: + del guard + + +def fallback_dispatcher(func, types, args, kwargs): + with no_dispatch(): + return func(*args) + + +def semi_sparse_values(func, types, args=(), kwargs=None) -> torch.Tensor: + assert len(args) == 1 + A = args[0] + assert isinstance(A, torch.sparse.SparseSemiStructuredTensor) + assert A.packed is not None + if A.meta is None: + m, k = A.shape + num_kept_elements = m * k // 2 + return A.packed[:num_kept_elements:].view(m, -1) + else: + return A.packed.detach() + + +def semi_sparse_indices(func, types, args=(), kwargs=None) -> torch.Tensor: + assert len(args) == 1 + A = args[0] + assert isinstance(A, torch.sparse.SparseSemiStructuredTensor) + assert A.packed is not None + if A.meta is None: + m, k = A.shape + num_kept_elements = m * k // 2 + metadata = A.packed[num_kept_elements:].view(m, -1) + return metadata.view(torch.int32 if A.dtype == torch.int32 else torch.int16) + else: + return A.meta + + +def semi_sparse_t(func, types, args=(), kwargs=None) -> torch.Tensor: + assert len(args) == 1 + self = args[0] + assert isinstance(self, torch.sparse.SparseSemiStructuredTensor) + assert len(self.shape) == 2 + # Because we cannot go from the compressed representation back to the dense representation currently, + # we just keep track of how many times we have been transposed. Depending on whether the sparse matrix + # is the first or second argument, we expect an even / odd number of calls to transpose respectively. + return self.__class__( + torch.Size([self.shape[-1], self.shape[0]]), + packed=self.packed_t, + meta=self.meta_t, + packed_t=self.packed, + meta_t=self.meta, + threads_masks=self.threads_masks.transpose(0, 1) + if self.threads_masks is not None + else None, + fuse_transpose_cusparselt=args[0].fuse_transpose_cusparselt, + alg_id_cusparselt=args[0].alg_id_cusparselt, + ) + + +def semi_sparse_view(func, types, args=(), kwargs=None) -> torch.Tensor: + assert len(args) == 2 + self, shape = args + if tuple(shape) != self.shape: + raise NotImplementedError( + f"`view` is not implemented for SparseSemiStructuredTensor, except for the dummy case (shape={shape})" + ) + return self + + +def semi_sparse_detach(func, types, args, kwargs) -> torch.Tensor: + assert len(args) == 1 + self = args[0] + return self.__class__( + shape=self.shape, + packed=self.packed, + meta=self.meta, + packed_t=self.packed_t, + meta_t=self.meta_t, + threads_masks=self.threads_masks, + requires_grad=False, + ) + + +def semi_sparse_mm(func, types, args=(), kwargs=None) -> torch.Tensor: + assert len(args) == 2 + A, B = args + if A.ndim != 2 or B.ndim != 2: + raise NotImplementedError( + "`SparseSemiStructuredTensor` matmul: Broadcasting is not implemented" + ) + if isinstance(A, torch.sparse.SparseSemiStructuredTensor): + row, col = B.shape + B_padded = A._pad_dense_input(B) + res = A._mm(B_padded) + return res[:, :col] + else: + B_t = B.t() + assert isinstance(B_t, torch.sparse.SparseSemiStructuredTensor) + row, col = A.shape + A_padded = B._pad_dense_input(A) + res = B_t._mm(A_padded.t()).t() + return res[:row, :] + + +def semi_sparse_addmm(func, types, args=(), kwargs=None) -> torch.Tensor: + assert len(args) == 3 + bias, A, B = args + if A.ndim != 2 or B.ndim != 2: + raise NotImplementedError( + "`SparseSemiStructuredTensor` matmul: Broadcasting is not implemented" + ) + if bias.ndim != 1: + raise NotImplementedError( + f"`SparseSemiStructuredTensor` matmul: only bias dim=1 supported. Shape={bias.shape}" + ) + if isinstance(A, torch.sparse.SparseSemiStructuredTensor): + raise NotImplementedError( + "`SparseSemiStructuredTensor` matmul: only operand B of `addmm` can be sparse" + ) + B_t = B.t() + assert isinstance(B_t, torch.sparse.SparseSemiStructuredTensor) + row, col = A.shape + A_padded = B_t._pad_dense_input(A) + result = B_t._mm(A_padded.t(), bias=bias).t() + return result[:row, :] + + +def semi_sparse_linear(func, types, args=(), kwargs=None) -> torch.Tensor: + assert len(args) in [2, 3] + A, B = args[:2] + bias = args[2] if len(args) == 3 else None + + shape = A.shape + A_2d = A.view(-1, shape[-1]) + + if bias is None: + res = A_2d @ B.t() + else: + res = semi_sparse_addmm( + func=None, + types=None, + args=[bias, A_2d, B.t()], + ) + + return res.view(*shape[:-1], -1) diff --git a/shared/package-files/eb/ebc68db41c892476cf87c5ab787c2fd9564487070e831bd1cb5ddbd2770b278b/blob b/shared/package-files/eb/ebc68db41c892476cf87c5ab787c2fd9564487070e831bd1cb5ddbd2770b278b/blob new file mode 100644 index 0000000000000000000000000000000000000000..c74274c06d8ff6a2205523986de1082f9117c85f --- /dev/null +++ b/shared/package-files/eb/ebc68db41c892476cf87c5ab787c2fd9564487070e831bd1cb5ddbd2770b278b/blob @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API empty_permuted { + using schema = at::Tensor (c10::SymIntArrayRef, at::IntArrayRef, c10::optional, c10::optional, c10::optional, c10::optional); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::empty_permuted") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "empty_permuted(SymInt[] size, int[] physical_layout, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor") + static at::Tensor call(c10::SymIntArrayRef size, at::IntArrayRef physical_layout, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::IntArrayRef physical_layout, c10::optional dtype, c10::optional layout, c10::optional device, c10::optional pin_memory); +}; + +struct TORCH_API empty_permuted_out { + using schema = at::Tensor & (c10::SymIntArrayRef, at::IntArrayRef, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::empty_permuted") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "empty_permuted.out(SymInt[] size, int[] physical_layout, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(c10::SymIntArrayRef size, at::IntArrayRef physical_layout, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, c10::SymIntArrayRef size, at::IntArrayRef physical_layout, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/shared/package-files/eb/ebc69697b8aa392cb96a655b300cbeddf0605492638fa0c1e5ba915134d8d5bd/blob b/shared/package-files/eb/ebc69697b8aa392cb96a655b300cbeddf0605492638fa0c1e5ba915134d8d5bd/blob new file mode 100644 index 0000000000000000000000000000000000000000..32b7ff8a181127e11da408155b698a8b3601e38c --- /dev/null +++ b/shared/package-files/eb/ebc69697b8aa392cb96a655b300cbeddf0605492638fa0c1e5ba915134d8d5bd/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebc69697b8aa392cb96a655b300cbeddf0605492638fa0c1e5ba915134d8d5bd +size 133000 diff --git a/shared/package-files/eb/ebc7efb218b0e2bc6fb69f6c3c2bad5050c146736f8046692ffa44303462cb4d/blob b/shared/package-files/eb/ebc7efb218b0e2bc6fb69f6c3c2bad5050c146736f8046692ffa44303462cb4d/blob new file mode 100644 index 0000000000000000000000000000000000000000..cdbbdcfd06814e484bb6aea9220b6dbd1d1c911b --- /dev/null +++ b/shared/package-files/eb/ebc7efb218b0e2bc6fb69f6c3c2bad5050c146736f8046692ffa44303462cb4d/blob @@ -0,0 +1,185 @@ +# mypy: ignore-errors + +import os +import sys +import unittest +from typing import Dict, List, Type + +from torch.testing._internal.common_distributed import MultiProcessTestCase +from torch.testing._internal.common_utils import ( + TEST_WITH_DEV_DBG_ASAN, + find_free_port, + IS_SANDCASTLE, +) +from torch.testing._internal.distributed.ddp_under_dist_autograd_test import ( + CudaDdpComparisonTest, + DdpComparisonTest, + DdpUnderDistAutogradTest, +) +from torch.testing._internal.distributed.pipe_with_ddp_test import ( + PipeWithDDPTest, +) +from torch.testing._internal.distributed.nn.api.remote_module_test import ( + CudaRemoteModuleTest, + RemoteModuleTest, + ThreeWorkersRemoteModuleTest, +) +from torch.testing._internal.distributed.rpc.dist_autograd_test import ( + DistAutogradTest, + CudaDistAutogradTest, + FaultyAgentDistAutogradTest, + TensorPipeAgentDistAutogradTest, + TensorPipeCudaDistAutogradTest +) +from torch.testing._internal.distributed.rpc.dist_optimizer_test import ( + DistOptimizerTest, +) +from torch.testing._internal.distributed.rpc.jit.dist_autograd_test import ( + JitDistAutogradTest, +) +from torch.testing._internal.distributed.rpc.jit.rpc_test import JitRpcTest +from torch.testing._internal.distributed.rpc.jit.rpc_test_faulty import ( + JitFaultyAgentRpcTest, +) +from torch.testing._internal.distributed.rpc.rpc_agent_test_fixture import ( + RpcAgentTestFixture, +) +from torch.testing._internal.distributed.rpc.faulty_agent_rpc_test import ( + FaultyAgentRpcTest, +) +from torch.testing._internal.distributed.rpc.rpc_test import ( + CudaRpcTest, + RpcTest, + TensorPipeAgentRpcTest, + TensorPipeAgentCudaRpcTest, +) +from torch.testing._internal.distributed.rpc.examples.parameter_server_test import ParameterServerTest +from torch.testing._internal.distributed.rpc.examples.reinforcement_learning_rpc_test import ( + ReinforcementLearningRpcTest, +) + + +def _check_and_set_tcp_init(): + # if we are running with TCP init, set main address and port + # before spawning subprocesses, since different processes could find + # different ports. + use_tcp_init = os.environ.get("RPC_INIT_WITH_TCP", None) + if use_tcp_init == "1": + os.environ["MASTER_ADDR"] = '127.0.0.1' + os.environ["MASTER_PORT"] = str(find_free_port()) + +def _check_and_unset_tcp_init(): + use_tcp_init = os.environ.get("RPC_INIT_WITH_TCP", None) + if use_tcp_init == "1": + del os.environ["MASTER_ADDR"] + del os.environ["MASTER_PORT"] + +# The tests for the RPC module need to cover multiple possible combinations: +# - different aspects of the API, each one having its own suite of tests; +# - different agents (ProcessGroup, TensorPipe, ...); +# To avoid a combinatorial explosion in code size, and to prevent forgetting to +# add a combination, these are generated automatically by the code in this file. +# Here, we collect all the test suites that we need to cover. +# We then have one separate file for each agent, from which +# we call the generate_tests function of this file, passing to it a fixture for +# the agent, which then gets mixed-in with each test suite. + +@unittest.skipIf( + TEST_WITH_DEV_DBG_ASAN, "Skip ASAN as torch + multiprocessing spawn have known issues" +) +class SpawnHelper(MultiProcessTestCase): + def setUp(self): + super().setUp() + _check_and_set_tcp_init() + self._spawn_processes() + + def tearDown(self): + _check_and_unset_tcp_init() + super().tearDown() + + +# This list contains test suites that are agent-agnostic and that only verify +# compliance with the generic RPC interface specification. These tests should +# *not* make use of implementation details of a specific agent (options, +# attributes, ...). These test suites will be instantiated multiple times, once +# for each agent (except the faulty agent, which is special). +GENERIC_TESTS = [ + RpcTest, + ParameterServerTest, + DistAutogradTest, + DistOptimizerTest, + JitRpcTest, + JitDistAutogradTest, + RemoteModuleTest, + ThreeWorkersRemoteModuleTest, + DdpUnderDistAutogradTest, + DdpComparisonTest, + ReinforcementLearningRpcTest, +] +GENERIC_CUDA_TESTS = [ + CudaRpcTest, + CudaDistAutogradTest, + CudaRemoteModuleTest, + CudaDdpComparisonTest, + PipeWithDDPTest, +] + + +# This list contains test suites that will only be run on the TensorPipeAgent. +# These suites should be standalone, and separate from the ones in the generic +# list (not subclasses of those!). +TENSORPIPE_TESTS = [ + TensorPipeAgentRpcTest, + TensorPipeAgentDistAutogradTest, +] +TENSORPIPE_CUDA_TESTS = [ + TensorPipeAgentCudaRpcTest, + TensorPipeCudaDistAutogradTest, +] + + +# This list contains test suites that will only be run on the faulty RPC agent. +# That agent is special as it's only used to perform fault injection in order to +# verify the error handling behavior. Thus the faulty agent will only run the +# suites in this list, which were designed to test such behaviors, and not the +# ones in the generic list. +FAULTY_AGENT_TESTS = [ + FaultyAgentRpcTest, + FaultyAgentDistAutogradTest, + JitFaultyAgentRpcTest, +] + + +def generate_tests( + prefix: str, + mixin: Type[RpcAgentTestFixture], + tests: List[Type[RpcAgentTestFixture]], + module_name: str, +) -> Dict[str, Type[RpcAgentTestFixture]]: + """Mix in the classes needed to autogenerate the tests based on the params. + + Takes a series of test suites, each written against a "generic" agent (i.e., + derived from the abstract RpcAgentTestFixture class), as the `tests` args. + Takes a concrete subclass of RpcAgentTestFixture, which specializes it for a + certain agent, as the `mixin` arg. Produces all combinations of them. + Returns a dictionary of class names to class type + objects which can be inserted into the global namespace of the calling + module. The name of each test will be a concatenation of the `prefix` arg + and the original name of the test suite. + The `module_name` should be the name of the calling module so + that the classes can be fixed to make it look like they belong to it, which + is necessary for pickling to work on them. + """ + ret: Dict[str, Type[RpcAgentTestFixture]] = {} + for test_class in tests: + if IS_SANDCASTLE and TEST_WITH_DEV_DBG_ASAN: + print( + f'Skipping test {test_class} on sandcastle for the following reason: ' + 'Skip dev-asan as torch + multiprocessing spawn have known issues', file=sys.stderr) + continue + + name = f"{prefix}{test_class.__name__}" + class_ = type(name, (test_class, mixin, SpawnHelper), {}) + class_.__module__ = module_name + ret[name] = class_ + return ret diff --git a/shared/package-files/eb/ebc9c2abaa8e40d89642a83c4ffe105e4f273c24ffc5efd4e608287d8af0e3c5/blob b/shared/package-files/eb/ebc9c2abaa8e40d89642a83c4ffe105e4f273c24ffc5efd4e608287d8af0e3c5/blob new file mode 100644 index 0000000000000000000000000000000000000000..551cab26f0a5aa695bbbea710910dec5bdd46cf6 --- /dev/null +++ b/shared/package-files/eb/ebc9c2abaa8e40d89642a83c4ffe105e4f273c24ffc5efd4e608287d8af0e3c5/blob @@ -0,0 +1,458 @@ +import functools +import itertools +from dataclasses import dataclass +from typing import Any, Callable, Dict, List, Optional, Tuple, Union + +import torch +import torch.utils._pytree as pytree + + +__all__ = [ + "ShapeEnvEvent", + "record_shapeenv_event", + "replay_shape_env_events", + "FakeTensorMeta", + "shape_env_check_state_equal", + "NotEqualError", +] + +# [Note: Recording ShapeEnv Events] +# ================================= +# +# What is a ShapeEnv event? +# ------------------------- +# We consider a ShapeEnv event every function call (ShapeEnv method or +# independent function) that modifies the state of the ShapeEnv instance. +# Such calls are recorded alongside their positional and keyword arguments, +# so that it may be replayed over a different ShapeEnv instance. +# +# See [Note: ShapeEnv State Equality] for what is considered the state +# of a ShapeEnv instance. +# +# What is it for? +# --------------- +# ShapeEnv events recording is used for reconstructing the ShapeEnv in an +# arbitrary state in time. +# +# Being able to arbitrarily replay events like so is useful, mainly for +# translation validation bisection. i.e. if a ValidationException has been +# raised, find the earliest point in time where the translation validation +# fails. +# +# Besides that, it also allows us to inspect the given instance and, +# for example, check the guards that would actually be issued at that point. +# +# What kind of arguments can be stored in an event? +# ------------------------------------------------- +# There's no specific rule for what cannot be used as an argument. +# That said, pay special attention to the following cases: +# +# 1. Tensor inputs: there are some tests that check whether the inputs +# were garbage collected after execution. These will fail if there's +# an event that is holding a reference to those inputs. +# +# 2. ShapeEnv arguments: if there is an argument of ShapeEnv type, that +# will be automatically replaced by the new given ShapeEnv instance. +# +# 3. SymTypes arguments: they also hold references to ShapeEnv. So, +# whenever we see them, we create a new instance, replacing the +# ShapeEnv reference. +# +# 4. FX nodes: specifically, FX nodes from the FX graph for symbolic +# shapes. That argument must be replaced when replaying the event at +# ShapeEnvEvent.run, since it has to reference a node from the given +# instance, and not from the recorded instance. + + +# Event class for reconstructing ShapeEnv at arbitrary time. +# +# Represents a method call that mutates ShapeEnv in a way that affects the +# issued guards, when ShapeEnv.produce_guards is called. +@dataclass +class ShapeEnvEvent: + # ShapeEnv method. + f: Callable + + # Arguments and keyword arguments called with. + args: Optional[List[Any]] = None + kwargs: Optional[Dict[str, Any]] = None + + # List of tracked_fakes at the time the method was called. + tracked_fakes: Optional[List[Any]] = None + + # Name of the captured event. + # Used for special handling of particular methods. + name: Optional[str] = None + + # Replay itself, but using shape_env as self. + def run(self, shape_env=None) -> Any: + from torch.fx.experimental.symbolic_shapes import ( + is_symbolic, + ShapeEnv, + SymTypes, + ) + + # Special handling for the constructor event. + if self.f is ShapeEnv: + assert shape_env is None and self.args is None and self.kwargs is not None + return ShapeEnv(**self.kwargs) + + assert shape_env is not None + args = list(self.args or list()) + kwargs = dict(self.kwargs or dict()) + + # Replace any argument of type ShapeEnv by the given one. + args, kwargs = pytree.tree_map_only( + ShapeEnv, lambda _: shape_env, (args, kwargs) + ) + + # Replace any argument of type SymTypes by a new instance, + # replacing its ShapeEnv reference. + args, kwargs = pytree.tree_map_only( + lambda x: isinstance(x, SymTypes) and is_symbolic(x), + lambda a: type(a)(a.node.with_shape_env(shape_env)), + (args, kwargs), + ) + + # Converts FX nodes using the mapping argument. + def maybe_convert_node(x: Any) -> Any: + if not isinstance(x, torch.fx.Node): + # Don't do anything to x if it's not an FX node. + return x + + # If, at some point, we created an FX node, it means that translation validation is on. + # It also means we are building an FX graph for symbolic shapes at shape_env.graph, and + # we are tracking node names at shape_env.name_to_node. + assert hasattr(shape_env, "name_to_node") + name_to_node = shape_env.name_to_node # type: ignore[attr-defined] + assert x.name in name_to_node + return name_to_node[x.name] + + # Replaces the value of an specific argument by the result of fn. + def replacearg(index: int, key: str, fn: Callable): + if index < len(args): + args[index] = fn(args[index]) + if key in kwargs: + kwargs[key] = fn(kwargs[key]) + + if self.is_create_fx_call_function(): + # ShapeEnv.create_fx_call_function: + # "args" parameter is a tuple of FX nodes from the FX graph of the old ShapeEnv. + # They must be replaced, since a "call_function" FX node with this tuple as argument + # will be added to the FX graph of the new shape_env. + replacearg( + index=2, + key="args", + fn=lambda args: tuple(maybe_convert_node(a) for a in args), + ) + if self.is_evaluate_expr() or self.is_defer_runtime_assert(): + # ShapeEnv.evaluate_expr and ShapeEnv.defer_runtime_assert: + # "fx_node" parameter is an (optional) FX node that represents the evaluate expression. + # They must be replaced, since it will be part of a "call_function" FX node for + # torch._assert, which will be added to the FX graph of the new shape_env. + replacearg(index=3, key="fx_node", fn=maybe_convert_node) + + # Actually call the method with the converted arguments. + return self.f(*args, **kwargs) + + def __str__(self) -> str: + name = self.name if self.name is not None else self.f.__name__ + return f"event: {name} ({self.args}, {self.kwargs})" + + def is_create_fx_call_function(self) -> bool: + return self.name == "_create_fx_call_function" + + def is_evaluate_expr(self) -> bool: + return self.name == "evaluate_expr" + + def is_defer_runtime_assert(self) -> bool: + return self.name == "defer_runtime_assert" + + +# Extracts a ShapeEnv instance inside args and kwargs. +# Specifically, it looks for: +# 1. ShapeEnv arguments +# 2. SymInt, SymFloat, or SymBool arguments +# If we find more than one object of any of the above types, we +# also check that the ShapeEnv instance is the same for all of them. +def _extract_shape_env_and_assert_equal(args, kwargs): + from torch.fx.experimental.symbolic_shapes import is_symbolic, ShapeEnv, SymTypes + + def assert_equal(old: Optional[ShapeEnv], new: ShapeEnv) -> ShapeEnv: + if old is not None: + assert old is new, "call with different ShapeEnv" + return new + + shape_env = None + for val in itertools.chain(args, kwargs.values()): + if isinstance(val, ShapeEnv): + shape_env = assert_equal(shape_env, val) + if isinstance(val, SymTypes) and is_symbolic(val): + shape_env = assert_equal(shape_env, val.node.shape_env) + + return shape_env + + +# Decorator for recording the given function as a replayable event. +# +# This decorator should be used at every function that mutates the state of +# ShapeEnv in some way that affects the resulting issued guards (i.e. when +# ShapeEnv.produce_guards is called). +# +# save_tracked_fakes: saves a snapshot of the TrackedFake list. +# This is used when calling ShapeEnv.produce_guards at arbitrary points in time. +# +# When to save the list of TrackedFake? +# ===================================== +# We should save the list of TrackedFake whenever the translation validation +# bisection may actually stop and call the produce_guards method at the moment +# right after the recorded function was played. In other words, since the +# bisection bisects through torch._assert calls, we should save in all methods +# that adds a torch._assert call to the symbolic shapes FX graph. +# +# At the moment, there are 2 methods that save the list: +# - ShapeEnv.evaluate_expr +# - ShapeEnv.defer_runtime_assert +def record_shapeenv_event(*, save_tracked_fakes: bool = False) -> Callable: + def decorator(fn: Callable) -> Callable: + assert callable(fn) + name = fn.__name__ + + @functools.wraps(fn) + def wrapper(*args, **kwargs): + from torch.fx.experimental.symbolic_shapes import ShapeEnv + + if isinstance(args[0], ShapeEnv) and args[0].is_recording: # type: ignore[has-type] + # If ShapeEnv is already recording an event, call the wrapped + # function directly. + # + # NB: here, we skip the check of whether all ShapeEnv instances + # are equal, in favor of a faster dispatch. + return fn(*args, **kwargs) + + # Retrieve an instance of ShapeEnv. + # Assumption: the collection of args and kwargs may not reference + # different ShapeEnv instances. + self = _extract_shape_env_and_assert_equal(args, kwargs) + + # If we are calling this function without any ShapeEnv instance + # alive in its arguments, we don't record and call the original. + if self is None: + return fn(*args, **kwargs) + + # Otherwise, start recording and call the function. + with self._recording(): + # Take a snapshot of the current tracked_fakes. + tracked_fakes = ( + self._snapshot_tracked_fakes() if save_tracked_fakes else None + ) + # Record the event for 'fn'. + event = ShapeEnvEvent( + fn, list(args), kwargs, tracked_fakes, name=fn.__name__ + ) + self.events.append(event) + # Play the event on this ShapeEnv. + return event.run(self) + + return wrapper + + return decorator + + +# Replays the ShapeEnvEvents list. +# It assumes the first event is the constructor call. +# +# fn: transforms an old FX node into one corresponding to the newly created ShapeEnv. +def replay_shape_env_events(events): + from torch.fx.experimental.symbolic_shapes import ShapeEnv + + constructor_event = events[0] + assert constructor_event.f == ShapeEnv + + # Constructs the new ShapeEnv. + shape_env = constructor_event.run() + + for event in events[1:]: + try: + # Actually replays each event. + # We need to call create_mapping_fn every time, since the node list might + # change after each event is replayed. + event.run(shape_env) + except Exception as e: + raise RuntimeError(f"failed when running event: {event}") from e + + return shape_env + + +# FakeTensor metadata. +# This is to be used in place of FakeTensor placeholders when calling +# ShapeEnv.produce_guards. +@dataclass +class FakeTensorMeta: + tensor_size: Tuple[Union[int, torch.SymInt], ...] + tensor_stride: Tuple[Union[int, torch.SymInt], ...] + tensor_storage_offset: Union[int, torch.SymInt] + is_nested: bool + + def size(self) -> Tuple[Union[int, torch.SymInt], ...]: + return self.tensor_size + + def stride(self) -> Tuple[Union[int, torch.SymInt], ...]: + return self.tensor_stride + + def storage_offset(self) -> Union[int, torch.SymInt]: + return self.tensor_storage_offset + + def dim(self) -> int: + return len(self.tensor_size) + + @staticmethod + def from_fake(fake) -> "FakeTensorMeta": + return FakeTensorMeta( + fake.size(), fake.stride(), fake.storage_offset(), fake.is_nested + ) + + +# [Note: ShapeEnv State Equality] +# =============================== +# +# What is considered ShapeEnv state? +# ---------------------------------- +# We consider to be the state of a ShapeEnv instance everything that +# is not in the inline tuple inside remove_nonstate_variables function. +# That is: the fields within ShapeEnv that modify the flow of execution +# of the program. +# +# So, for example: the replacements field might influence on how an +# expression is simplified. That, in turn, may result in a guard being +# statically known (i.e. not added). +# +# On the other hand, var_to_stack serves only changes what is printed +# in the screen, i.e. used only for debugging purposes. Therefore, we +# should not consider it when comparing states. +# +# What to do on NotEqualError? +# ---------------------------- +# Here are a few possible causes for getting a NotEqualError raised: +# +# 1. New field that does not belong in the ShapeEnv state. +# For example: log field of type ShapeEnvLoggerAdapter. Different +# ShapeEnv instances will always have different ShapeEnvLoggerAdapter +# instances, i.e. equality comparison would fail. +# Solution: add it to the inlined tuple inside remove_nonstate_variables +# function inside check_equal method. +# +# 2. New field that is not directly comparable across instances. +# For example: guards field of type List[ShapeGuard]. More specifically, +# the ShapeGuard type holds an expression and a stack information +# for debugging purposes. When replaying the even on a new ShapeEnv +# instance, the stack would be different, which would trigger this error. +# Solution: add a special case to the map_value function inside +# check_equal function. +# +# 3. Mutation of ShapeEnv on some not recorded function. +# If a mutation of the state of ShapeEnv happens inside a function +# that is not recorded (or that no caller in the stack is recorded), +# then, the replayed ShapeEnv won't catch that. +# Solution: decorate the function with record_shape_env_event. + + +# Checks whether the state of two ShapeEnv are equal w.r.t. the guards +# returned by ShapeEnv.produce_guards. +def shape_env_check_state_equal(env1, env2, non_state_variable_names, map_value): + # Collect and remove variables that don't necessarily represent the state + # of a ShapeEnv. Note: we copy the dictionary so that we don't modify the + # instance itself. + env1_vars = vars(env1).copy() + env2_vars = vars(env2).copy() + + for v in non_state_variable_names: + if v in env1_vars: + env1_vars.pop(v) + if v in env2_vars: + env2_vars.pop(v) + + # Function for transforming the mismatched values into string. + # Needed, since dict and set entries order might not be the same every time. + def value_to_str(value: Any) -> str: + if isinstance(value, dict): + return ( + "{" + + ", ".join(f"{k}: {value[k]}" for k in sorted(value.keys(), key=str)) + + "}" + ) + if isinstance(value, set): + return "{" + ", ".join(f"{v}" for v in sorted(value)) + "}" + return str(value) + + # Compares env1_vars with env2_vars. + # Here, we allow the value of each field to be mapped, so that we appropriately + # compare the two values. + def compare_vars( + map_value: Callable[[str, Any], Any] + ) -> List[Tuple[str, str, str]]: + env1_set, env2_set = set(env1_vars), set(env2_vars) + + # First, compare the set of keys in each vars dictionary. + if env1_set != env2_set: + raise NotEqualError( + "field set mismatch:", + [ + ( + "found unique fields:", + str(sorted(env1_set - env2_set)), + str(sorted(env2_set - env1_set)), + ), + ], + ) + + # Then, sort the keys, and compare the mapped values of each key. + sorted_keys = list(env1_set) + sorted_keys.sort() + + mapped_dict = [ + (k, map_value(k, env1_vars[k]), map_value(k, env2_vars[k])) + for k in sorted_keys + ] + + # Return a list of tuples representing the fields that did not match + # alongside their respective mapped values. + return [ + (f"{k}: values don't match.", value_to_str(val1), value_to_str(val2)) + for k, val1, val2 in mapped_dict + if val1 != val2 + ] + + # Accumulate the mismatching fields. + errors = compare_vars(map_value) + + if len(errors) > 0: + raise NotEqualError("field values don't match:", errors) + + +class NotEqualError(Exception): + def __init__( + self, + msg: str, + mismatched: List[Tuple[str, str, str]], + ) -> None: + details = "\n".join( + [ + "\n".join( + [ + f"==> {inner_msg}", + f" > Left: {str1}", + f" > Right: {str2}", + ] + ) + for inner_msg, str1, str2 in mismatched + ] + ) + + super().__init__( + f"""\ +ShapeEnv not equal: {msg} + +{details} +""" + ) diff --git a/shared/package-files/eb/ebc9e4d8f8717346e2c718b17a8c5582d14b7067b4b1ea0647e41d97a15aa7b3/blob b/shared/package-files/eb/ebc9e4d8f8717346e2c718b17a8c5582d14b7067b4b1ea0647e41d97a15aa7b3/blob new file mode 100644 index 0000000000000000000000000000000000000000..268026e3646dac3b2269b67e02cb1a0ccd9d4652 --- /dev/null +++ b/shared/package-files/eb/ebc9e4d8f8717346e2c718b17a8c5582d14b7067b4b1ea0647e41d97a15aa7b3/blob @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor slow_conv_transpose3d(const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef output_padding=0, at::IntArrayRef dilation=1); +TORCH_API at::Tensor slow_conv_transpose3d_symint(const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef output_padding=c10::SymInt(0), c10::SymIntArrayRef dilation=c10::SymInt(1)); +TORCH_API at::Tensor & slow_conv_transpose3d_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef output_padding=0, at::IntArrayRef dilation=1); +TORCH_API at::Tensor & slow_conv_transpose3d_outf(const at::Tensor & self, const at::Tensor & weight, at::IntArrayRef kernel_size, const c10::optional & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef output_padding, at::IntArrayRef dilation, at::Tensor & out); +TORCH_API at::Tensor & slow_conv_transpose3d_symint_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef output_padding=c10::SymInt(0), c10::SymIntArrayRef dilation=c10::SymInt(1)); +TORCH_API at::Tensor & slow_conv_transpose3d_symint_outf(const at::Tensor & self, const at::Tensor & weight, c10::SymIntArrayRef kernel_size, const c10::optional & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef output_padding, c10::SymIntArrayRef dilation, at::Tensor & out); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/eb/ebcc61750aa1ffac9ac64fe7fd611522c90bee3b82496a37fc8b9f22833d2f49/blob b/shared/package-files/eb/ebcc61750aa1ffac9ac64fe7fd611522c90bee3b82496a37fc8b9f22833d2f49/blob new file mode 100644 index 0000000000000000000000000000000000000000..31f670a32abd3a47d3021700537510f51f8f6535 --- /dev/null +++ b/shared/package-files/eb/ebcc61750aa1ffac9ac64fe7fd611522c90bee3b82496a37fc8b9f22833d2f49/blob @@ -0,0 +1,409 @@ +""" + Tests for VF2 isomorphism algorithm. +""" + +import os +import random +import struct + +import networkx as nx +from networkx.algorithms import isomorphism as iso + + +class TestWikipediaExample: + # Source: https://en.wikipedia.org/wiki/Graph_isomorphism + + # Nodes 'a', 'b', 'c' and 'd' form a column. + # Nodes 'g', 'h', 'i' and 'j' form a column. + g1edges = [ + ["a", "g"], + ["a", "h"], + ["a", "i"], + ["b", "g"], + ["b", "h"], + ["b", "j"], + ["c", "g"], + ["c", "i"], + ["c", "j"], + ["d", "h"], + ["d", "i"], + ["d", "j"], + ] + + # Nodes 1,2,3,4 form the clockwise corners of a large square. + # Nodes 5,6,7,8 form the clockwise corners of a small square + g2edges = [ + [1, 2], + [2, 3], + [3, 4], + [4, 1], + [5, 6], + [6, 7], + [7, 8], + [8, 5], + [1, 5], + [2, 6], + [3, 7], + [4, 8], + ] + + def test_graph(self): + g1 = nx.Graph() + g2 = nx.Graph() + g1.add_edges_from(self.g1edges) + g2.add_edges_from(self.g2edges) + gm = iso.GraphMatcher(g1, g2) + assert gm.is_isomorphic() + # Just testing some cases + assert gm.subgraph_is_monomorphic() + + mapping = sorted(gm.mapping.items()) + + # this mapping is only one of the possibilities + # so this test needs to be reconsidered + # isomap = [('a', 1), ('b', 6), ('c', 3), ('d', 8), + # ('g', 2), ('h', 5), ('i', 4), ('j', 7)] + # assert_equal(mapping, isomap) + + def test_subgraph(self): + g1 = nx.Graph() + g2 = nx.Graph() + g1.add_edges_from(self.g1edges) + g2.add_edges_from(self.g2edges) + g3 = g2.subgraph([1, 2, 3, 4]) + gm = iso.GraphMatcher(g1, g3) + assert gm.subgraph_is_isomorphic() + + def test_subgraph_mono(self): + g1 = nx.Graph() + g2 = nx.Graph() + g1.add_edges_from(self.g1edges) + g2.add_edges_from([[1, 2], [2, 3], [3, 4]]) + gm = iso.GraphMatcher(g1, g2) + assert gm.subgraph_is_monomorphic() + + +class TestVF2GraphDB: + # https://web.archive.org/web/20090303210205/http://amalfi.dis.unina.it/graph/db/ + + @staticmethod + def create_graph(filename): + """Creates a Graph instance from the filename.""" + + # The file is assumed to be in the format from the VF2 graph database. + # Each file is composed of 16-bit numbers (unsigned short int). + # So we will want to read 2 bytes at a time. + + # We can read the number as follows: + # number = struct.unpack(' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::_rowwise_prune(Tensor weight, Tensor mask, ScalarType compressed_indices_dtype) -> (Tensor, Tensor) +inline ::std::tuple _rowwise_prune(const at::Tensor & weight, const at::Tensor & mask, at::ScalarType compressed_indices_dtype) { + return at::_ops::_rowwise_prune::call(weight, mask, compressed_indices_dtype); +} + +} diff --git a/shared/package-files/eb/ebcec1adf9167863fb0bab29708c546300c80a77ef07838c9e0437a59e265970/blob b/shared/package-files/eb/ebcec1adf9167863fb0bab29708c546300c80a77ef07838c9e0437a59e265970/blob new file mode 100644 index 0000000000000000000000000000000000000000..c2c83aaf3e884c993bb08f9825b00f6c05e03274 --- /dev/null +++ b/shared/package-files/eb/ebcec1adf9167863fb0bab29708c546300c80a77ef07838c9e0437a59e265970/blob @@ -0,0 +1,307 @@ +""" Python Character Mapping Codec cp1250 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1250.TXT' with gencodec.py. + +"""#" + +import codecs + +### Codec APIs + +class Codec(codecs.Codec): + + def encode(self,input,errors='strict'): + return codecs.charmap_encode(input,errors,encoding_table) + + def decode(self,input,errors='strict'): + return codecs.charmap_decode(input,errors,decoding_table) + +class IncrementalEncoder(codecs.IncrementalEncoder): + def encode(self, input, final=False): + return codecs.charmap_encode(input,self.errors,encoding_table)[0] + +class IncrementalDecoder(codecs.IncrementalDecoder): + def decode(self, input, final=False): + return codecs.charmap_decode(input,self.errors,decoding_table)[0] + +class StreamWriter(Codec,codecs.StreamWriter): + pass + +class StreamReader(Codec,codecs.StreamReader): + pass + +### encodings module API + +def getregentry(): + return codecs.CodecInfo( + name='cp1250', + encode=Codec().encode, + decode=Codec().decode, + incrementalencoder=IncrementalEncoder, + incrementaldecoder=IncrementalDecoder, + streamreader=StreamReader, + streamwriter=StreamWriter, + ) + + +### Decoding Table + +decoding_table = ( + '\x00' # 0x00 -> NULL + '\x01' # 0x01 -> START OF HEADING + '\x02' # 0x02 -> START OF TEXT + '\x03' # 0x03 -> END OF TEXT + '\x04' # 0x04 -> END OF TRANSMISSION + '\x05' # 0x05 -> ENQUIRY + '\x06' # 0x06 -> ACKNOWLEDGE + '\x07' # 0x07 -> BELL + '\x08' # 0x08 -> BACKSPACE + '\t' # 0x09 -> HORIZONTAL TABULATION + '\n' # 0x0A -> LINE FEED + '\x0b' # 0x0B -> VERTICAL TABULATION + '\x0c' # 0x0C -> FORM FEED + '\r' # 0x0D -> CARRIAGE RETURN + '\x0e' # 0x0E -> SHIFT OUT + '\x0f' # 0x0F -> SHIFT IN + '\x10' # 0x10 -> DATA LINK ESCAPE + '\x11' # 0x11 -> DEVICE CONTROL ONE + '\x12' # 0x12 -> DEVICE CONTROL TWO + '\x13' # 0x13 -> DEVICE CONTROL THREE + '\x14' # 0x14 -> DEVICE CONTROL FOUR + '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE + '\x16' # 0x16 -> SYNCHRONOUS IDLE + '\x17' # 0x17 -> END OF TRANSMISSION BLOCK + '\x18' # 0x18 -> CANCEL + '\x19' # 0x19 -> END OF MEDIUM + '\x1a' # 0x1A -> SUBSTITUTE + '\x1b' # 0x1B -> ESCAPE + '\x1c' # 0x1C -> FILE SEPARATOR + '\x1d' # 0x1D -> GROUP SEPARATOR + '\x1e' # 0x1E -> RECORD SEPARATOR + '\x1f' # 0x1F -> UNIT SEPARATOR + ' ' # 0x20 -> SPACE + '!' # 0x21 -> EXCLAMATION MARK + '"' # 0x22 -> QUOTATION MARK + '#' # 0x23 -> NUMBER SIGN + '$' # 0x24 -> DOLLAR SIGN + '%' # 0x25 -> PERCENT SIGN + '&' # 0x26 -> AMPERSAND + "'" # 0x27 -> APOSTROPHE + '(' # 0x28 -> LEFT PARENTHESIS + ')' # 0x29 -> RIGHT PARENTHESIS + '*' # 0x2A -> ASTERISK + '+' # 0x2B -> PLUS SIGN + ',' # 0x2C -> COMMA + '-' # 0x2D -> HYPHEN-MINUS + '.' # 0x2E -> FULL STOP + '/' # 0x2F -> SOLIDUS + '0' # 0x30 -> DIGIT ZERO + '1' # 0x31 -> DIGIT ONE + '2' # 0x32 -> DIGIT TWO + '3' # 0x33 -> DIGIT THREE + '4' # 0x34 -> DIGIT FOUR + '5' # 0x35 -> DIGIT FIVE + '6' # 0x36 -> DIGIT SIX + '7' # 0x37 -> DIGIT SEVEN + '8' # 0x38 -> DIGIT EIGHT + '9' # 0x39 -> DIGIT NINE + ':' # 0x3A -> COLON + ';' # 0x3B -> SEMICOLON + '<' # 0x3C -> LESS-THAN SIGN + '=' # 0x3D -> EQUALS SIGN + '>' # 0x3E -> GREATER-THAN SIGN + '?' # 0x3F -> QUESTION MARK + '@' # 0x40 -> COMMERCIAL AT + 'A' # 0x41 -> LATIN CAPITAL LETTER A + 'B' # 0x42 -> LATIN CAPITAL LETTER B + 'C' # 0x43 -> LATIN CAPITAL LETTER C + 'D' # 0x44 -> LATIN CAPITAL LETTER D + 'E' # 0x45 -> LATIN CAPITAL LETTER E + 'F' # 0x46 -> LATIN CAPITAL LETTER F + 'G' # 0x47 -> LATIN CAPITAL LETTER G + 'H' # 0x48 -> LATIN CAPITAL LETTER H + 'I' # 0x49 -> LATIN CAPITAL LETTER I + 'J' # 0x4A -> LATIN CAPITAL LETTER J + 'K' # 0x4B -> LATIN CAPITAL LETTER K + 'L' # 0x4C -> LATIN CAPITAL LETTER L + 'M' # 0x4D -> LATIN CAPITAL LETTER M + 'N' # 0x4E -> LATIN CAPITAL LETTER N + 'O' # 0x4F -> LATIN CAPITAL LETTER O + 'P' # 0x50 -> LATIN CAPITAL LETTER P + 'Q' # 0x51 -> LATIN CAPITAL LETTER Q + 'R' # 0x52 -> LATIN CAPITAL LETTER R + 'S' # 0x53 -> LATIN CAPITAL LETTER S + 'T' # 0x54 -> LATIN CAPITAL LETTER T + 'U' # 0x55 -> LATIN CAPITAL LETTER U + 'V' # 0x56 -> LATIN CAPITAL LETTER V + 'W' # 0x57 -> LATIN CAPITAL LETTER W + 'X' # 0x58 -> LATIN CAPITAL LETTER X + 'Y' # 0x59 -> LATIN CAPITAL LETTER Y + 'Z' # 0x5A -> LATIN CAPITAL LETTER Z + '[' # 0x5B -> LEFT SQUARE BRACKET + '\\' # 0x5C -> REVERSE SOLIDUS + ']' # 0x5D -> RIGHT SQUARE BRACKET + '^' # 0x5E -> CIRCUMFLEX ACCENT + '_' # 0x5F -> LOW LINE + '`' # 0x60 -> GRAVE ACCENT + 'a' # 0x61 -> LATIN SMALL LETTER A + 'b' # 0x62 -> LATIN SMALL LETTER B + 'c' # 0x63 -> LATIN SMALL LETTER C + 'd' # 0x64 -> LATIN SMALL LETTER D + 'e' # 0x65 -> LATIN SMALL LETTER E + 'f' # 0x66 -> LATIN SMALL LETTER F + 'g' # 0x67 -> LATIN SMALL LETTER G + 'h' # 0x68 -> LATIN SMALL LETTER H + 'i' # 0x69 -> LATIN SMALL LETTER I + 'j' # 0x6A -> LATIN SMALL LETTER J + 'k' # 0x6B -> LATIN SMALL LETTER K + 'l' # 0x6C -> LATIN SMALL LETTER L + 'm' # 0x6D -> LATIN SMALL LETTER M + 'n' # 0x6E -> LATIN SMALL LETTER N + 'o' # 0x6F -> LATIN SMALL LETTER O + 'p' # 0x70 -> LATIN SMALL LETTER P + 'q' # 0x71 -> LATIN SMALL LETTER Q + 'r' # 0x72 -> LATIN SMALL LETTER R + 's' # 0x73 -> LATIN SMALL LETTER S + 't' # 0x74 -> LATIN SMALL LETTER T + 'u' # 0x75 -> LATIN SMALL LETTER U + 'v' # 0x76 -> LATIN SMALL LETTER V + 'w' # 0x77 -> LATIN SMALL LETTER W + 'x' # 0x78 -> LATIN SMALL LETTER X + 'y' # 0x79 -> LATIN SMALL LETTER Y + 'z' # 0x7A -> LATIN SMALL LETTER Z + '{' # 0x7B -> LEFT CURLY BRACKET + '|' # 0x7C -> VERTICAL LINE + '}' # 0x7D -> RIGHT CURLY BRACKET + '~' # 0x7E -> TILDE + '\x7f' # 0x7F -> DELETE + '\u20ac' # 0x80 -> EURO SIGN + '\ufffe' # 0x81 -> UNDEFINED + '\u201a' # 0x82 -> SINGLE LOW-9 QUOTATION MARK + '\ufffe' # 0x83 -> UNDEFINED + '\u201e' # 0x84 -> DOUBLE LOW-9 QUOTATION MARK + '\u2026' # 0x85 -> HORIZONTAL ELLIPSIS + '\u2020' # 0x86 -> DAGGER + '\u2021' # 0x87 -> DOUBLE DAGGER + '\ufffe' # 0x88 -> UNDEFINED + '\u2030' # 0x89 -> PER MILLE SIGN + '\u0160' # 0x8A -> LATIN CAPITAL LETTER S WITH CARON + '\u2039' # 0x8B -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK + '\u015a' # 0x8C -> LATIN CAPITAL LETTER S WITH ACUTE + '\u0164' # 0x8D -> LATIN CAPITAL LETTER T WITH CARON + '\u017d' # 0x8E -> LATIN CAPITAL LETTER Z WITH CARON + '\u0179' # 0x8F -> LATIN CAPITAL LETTER Z WITH ACUTE + '\ufffe' # 0x90 -> UNDEFINED + '\u2018' # 0x91 -> LEFT SINGLE QUOTATION MARK + '\u2019' # 0x92 -> RIGHT SINGLE QUOTATION MARK + '\u201c' # 0x93 -> LEFT DOUBLE QUOTATION MARK + '\u201d' # 0x94 -> RIGHT DOUBLE QUOTATION MARK + '\u2022' # 0x95 -> BULLET + '\u2013' # 0x96 -> EN DASH + '\u2014' # 0x97 -> EM DASH + '\ufffe' # 0x98 -> UNDEFINED + '\u2122' # 0x99 -> TRADE MARK SIGN + '\u0161' # 0x9A -> LATIN SMALL LETTER S WITH CARON + '\u203a' # 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK + '\u015b' # 0x9C -> LATIN SMALL LETTER S WITH ACUTE + '\u0165' # 0x9D -> LATIN SMALL LETTER T WITH CARON + '\u017e' # 0x9E -> LATIN SMALL LETTER Z WITH CARON + '\u017a' # 0x9F -> LATIN SMALL LETTER Z WITH ACUTE + '\xa0' # 0xA0 -> NO-BREAK SPACE + '\u02c7' # 0xA1 -> CARON + '\u02d8' # 0xA2 -> BREVE + '\u0141' # 0xA3 -> LATIN CAPITAL LETTER L WITH STROKE + '\xa4' # 0xA4 -> CURRENCY SIGN + '\u0104' # 0xA5 -> LATIN CAPITAL LETTER A WITH OGONEK + '\xa6' # 0xA6 -> BROKEN BAR + '\xa7' # 0xA7 -> SECTION SIGN + '\xa8' # 0xA8 -> DIAERESIS + '\xa9' # 0xA9 -> COPYRIGHT SIGN + '\u015e' # 0xAA -> LATIN CAPITAL LETTER S WITH CEDILLA + '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK + '\xac' # 0xAC -> NOT SIGN + '\xad' # 0xAD -> SOFT HYPHEN + '\xae' # 0xAE -> REGISTERED SIGN + '\u017b' # 0xAF -> LATIN CAPITAL LETTER Z WITH DOT ABOVE + '\xb0' # 0xB0 -> DEGREE SIGN + '\xb1' # 0xB1 -> PLUS-MINUS SIGN + '\u02db' # 0xB2 -> OGONEK + '\u0142' # 0xB3 -> LATIN SMALL LETTER L WITH STROKE + '\xb4' # 0xB4 -> ACUTE ACCENT + '\xb5' # 0xB5 -> MICRO SIGN + '\xb6' # 0xB6 -> PILCROW SIGN + '\xb7' # 0xB7 -> MIDDLE DOT + '\xb8' # 0xB8 -> CEDILLA + '\u0105' # 0xB9 -> LATIN SMALL LETTER A WITH OGONEK + '\u015f' # 0xBA -> LATIN SMALL LETTER S WITH CEDILLA + '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK + '\u013d' # 0xBC -> LATIN CAPITAL LETTER L WITH CARON + '\u02dd' # 0xBD -> DOUBLE ACUTE ACCENT + '\u013e' # 0xBE -> LATIN SMALL LETTER L WITH CARON + '\u017c' # 0xBF -> LATIN SMALL LETTER Z WITH DOT ABOVE + '\u0154' # 0xC0 -> LATIN CAPITAL LETTER R WITH ACUTE + '\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE + '\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX + '\u0102' # 0xC3 -> LATIN CAPITAL LETTER A WITH BREVE + '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS + '\u0139' # 0xC5 -> LATIN CAPITAL LETTER L WITH ACUTE + '\u0106' # 0xC6 -> LATIN CAPITAL LETTER C WITH ACUTE + '\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA + '\u010c' # 0xC8 -> LATIN CAPITAL LETTER C WITH CARON + '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE + '\u0118' # 0xCA -> LATIN CAPITAL LETTER E WITH OGONEK + '\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS + '\u011a' # 0xCC -> LATIN CAPITAL LETTER E WITH CARON + '\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE + '\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX + '\u010e' # 0xCF -> LATIN CAPITAL LETTER D WITH CARON + '\u0110' # 0xD0 -> LATIN CAPITAL LETTER D WITH STROKE + '\u0143' # 0xD1 -> LATIN CAPITAL LETTER N WITH ACUTE + '\u0147' # 0xD2 -> LATIN CAPITAL LETTER N WITH CARON + '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE + '\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX + '\u0150' # 0xD5 -> LATIN CAPITAL LETTER O WITH DOUBLE ACUTE + '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS + '\xd7' # 0xD7 -> MULTIPLICATION SIGN + '\u0158' # 0xD8 -> LATIN CAPITAL LETTER R WITH CARON + '\u016e' # 0xD9 -> LATIN CAPITAL LETTER U WITH RING ABOVE + '\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE + '\u0170' # 0xDB -> LATIN CAPITAL LETTER U WITH DOUBLE ACUTE + '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS + '\xdd' # 0xDD -> LATIN CAPITAL LETTER Y WITH ACUTE + '\u0162' # 0xDE -> LATIN CAPITAL LETTER T WITH CEDILLA + '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S + '\u0155' # 0xE0 -> LATIN SMALL LETTER R WITH ACUTE + '\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE + '\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX + '\u0103' # 0xE3 -> LATIN SMALL LETTER A WITH BREVE + '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS + '\u013a' # 0xE5 -> LATIN SMALL LETTER L WITH ACUTE + '\u0107' # 0xE6 -> LATIN SMALL LETTER C WITH ACUTE + '\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA + '\u010d' # 0xE8 -> LATIN SMALL LETTER C WITH CARON + '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE + '\u0119' # 0xEA -> LATIN SMALL LETTER E WITH OGONEK + '\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS + '\u011b' # 0xEC -> LATIN SMALL LETTER E WITH CARON + '\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE + '\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX + '\u010f' # 0xEF -> LATIN SMALL LETTER D WITH CARON + '\u0111' # 0xF0 -> LATIN SMALL LETTER D WITH STROKE + '\u0144' # 0xF1 -> LATIN SMALL LETTER N WITH ACUTE + '\u0148' # 0xF2 -> LATIN SMALL LETTER N WITH CARON + '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE + '\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX + '\u0151' # 0xF5 -> LATIN SMALL LETTER O WITH DOUBLE ACUTE + '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS + '\xf7' # 0xF7 -> DIVISION SIGN + '\u0159' # 0xF8 -> LATIN SMALL LETTER R WITH CARON + '\u016f' # 0xF9 -> LATIN SMALL LETTER U WITH RING ABOVE + '\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE + '\u0171' # 0xFB -> LATIN SMALL LETTER U WITH DOUBLE ACUTE + '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS + '\xfd' # 0xFD -> LATIN SMALL LETTER Y WITH ACUTE + '\u0163' # 0xFE -> LATIN SMALL LETTER T WITH CEDILLA + '\u02d9' # 0xFF -> DOT ABOVE +) + +### Encoding table +encoding_table=codecs.charmap_build(decoding_table) diff --git a/shared/package-files/eb/ebcfec58d0b7a92dde0651382b90114996073fa3f679d06aeba2802133849b0f/blob b/shared/package-files/eb/ebcfec58d0b7a92dde0651382b90114996073fa3f679d06aeba2802133849b0f/blob new file mode 100644 index 0000000000000000000000000000000000000000..f155fa9a2f5bdb45fb67ec2d6526db0d9d9d5c35 Binary files /dev/null and b/shared/package-files/eb/ebcfec58d0b7a92dde0651382b90114996073fa3f679d06aeba2802133849b0f/blob differ diff --git a/shared/package-files/eb/ebd0bc04436ecf252f9d05c46e356f00398102be46eb0cccf842c738c2d5d83a/blob b/shared/package-files/eb/ebd0bc04436ecf252f9d05c46e356f00398102be46eb0cccf842c738c2d5d83a/blob new file mode 100644 index 0000000000000000000000000000000000000000..b4dcef71dcf50724c90599b03d1c1c5aa99b7916 --- /dev/null +++ b/shared/package-files/eb/ebd0bc04436ecf252f9d05c46e356f00398102be46eb0cccf842c738c2d5d83a/blob @@ -0,0 +1,349 @@ +import numpy as np +import pytest + +from pandas.errors import ( + PerformanceWarning, + UnsortedIndexError, +) + +from pandas import ( + CategoricalIndex, + DataFrame, + Index, + MultiIndex, + RangeIndex, + Series, + Timestamp, +) +import pandas._testing as tm +from pandas.core.indexes.frozen import FrozenList + + +def test_sortlevel(idx): + tuples = list(idx) + np.random.default_rng(2).shuffle(tuples) + + index = MultiIndex.from_tuples(tuples) + + sorted_idx, _ = index.sortlevel(0) + expected = MultiIndex.from_tuples(sorted(tuples)) + assert sorted_idx.equals(expected) + + sorted_idx, _ = index.sortlevel(0, ascending=False) + assert sorted_idx.equals(expected[::-1]) + + sorted_idx, _ = index.sortlevel(1) + by1 = sorted(tuples, key=lambda x: (x[1], x[0])) + expected = MultiIndex.from_tuples(by1) + assert sorted_idx.equals(expected) + + sorted_idx, _ = index.sortlevel(1, ascending=False) + assert sorted_idx.equals(expected[::-1]) + + +def test_sortlevel_not_sort_remaining(): + mi = MultiIndex.from_tuples([[1, 1, 3], [1, 1, 1]], names=list("ABC")) + sorted_idx, _ = mi.sortlevel("A", sort_remaining=False) + assert sorted_idx.equals(mi) + + +def test_sortlevel_deterministic(): + tuples = [ + ("bar", "one"), + ("foo", "two"), + ("qux", "two"), + ("foo", "one"), + ("baz", "two"), + ("qux", "one"), + ] + + index = MultiIndex.from_tuples(tuples) + + sorted_idx, _ = index.sortlevel(0) + expected = MultiIndex.from_tuples(sorted(tuples)) + assert sorted_idx.equals(expected) + + sorted_idx, _ = index.sortlevel(0, ascending=False) + assert sorted_idx.equals(expected[::-1]) + + sorted_idx, _ = index.sortlevel(1) + by1 = sorted(tuples, key=lambda x: (x[1], x[0])) + expected = MultiIndex.from_tuples(by1) + assert sorted_idx.equals(expected) + + sorted_idx, _ = index.sortlevel(1, ascending=False) + assert sorted_idx.equals(expected[::-1]) + + +def test_sortlevel_na_position(): + # GH#51612 + midx = MultiIndex.from_tuples([(1, np.nan), (1, 1)]) + result = midx.sortlevel(level=[0, 1], na_position="last")[0] + expected = MultiIndex.from_tuples([(1, 1), (1, np.nan)]) + tm.assert_index_equal(result, expected) + + +def test_numpy_argsort(idx): + result = np.argsort(idx) + expected = idx.argsort() + tm.assert_numpy_array_equal(result, expected) + + # these are the only two types that perform + # pandas compatibility input validation - the + # rest already perform separate (or no) such + # validation via their 'values' attribute as + # defined in pandas.core.indexes/base.py - they + # cannot be changed at the moment due to + # backwards compatibility concerns + if isinstance(type(idx), (CategoricalIndex, RangeIndex)): + msg = "the 'axis' parameter is not supported" + with pytest.raises(ValueError, match=msg): + np.argsort(idx, axis=1) + + msg = "the 'kind' parameter is not supported" + with pytest.raises(ValueError, match=msg): + np.argsort(idx, kind="mergesort") + + msg = "the 'order' parameter is not supported" + with pytest.raises(ValueError, match=msg): + np.argsort(idx, order=("a", "b")) + + +def test_unsortedindex(): + # GH 11897 + mi = MultiIndex.from_tuples( + [("z", "a"), ("x", "a"), ("y", "b"), ("x", "b"), ("y", "a"), ("z", "b")], + names=["one", "two"], + ) + df = DataFrame([[i, 10 * i] for i in range(6)], index=mi, columns=["one", "two"]) + + # GH 16734: not sorted, but no real slicing + result = df.loc(axis=0)["z", "a"] + expected = df.iloc[0] + tm.assert_series_equal(result, expected) + + msg = ( + "MultiIndex slicing requires the index to be lexsorted: " + r"slicing on levels \[1\], lexsort depth 0" + ) + with pytest.raises(UnsortedIndexError, match=msg): + df.loc(axis=0)["z", slice("a")] + df.sort_index(inplace=True) + assert len(df.loc(axis=0)["z", :]) == 2 + + with pytest.raises(KeyError, match="'q'"): + df.loc(axis=0)["q", :] + + +def test_unsortedindex_doc_examples(): + # https://pandas.pydata.org/pandas-docs/stable/advanced.html#sorting-a-multiindex + dfm = DataFrame( + { + "jim": [0, 0, 1, 1], + "joe": ["x", "x", "z", "y"], + "jolie": np.random.default_rng(2).random(4), + } + ) + + dfm = dfm.set_index(["jim", "joe"]) + with tm.assert_produces_warning(PerformanceWarning): + dfm.loc[(1, "z")] + + msg = r"Key length \(2\) was greater than MultiIndex lexsort depth \(1\)" + with pytest.raises(UnsortedIndexError, match=msg): + dfm.loc[(0, "y"):(1, "z")] + + assert not dfm.index._is_lexsorted() + assert dfm.index._lexsort_depth == 1 + + # sort it + dfm = dfm.sort_index() + dfm.loc[(1, "z")] + dfm.loc[(0, "y"):(1, "z")] + + assert dfm.index._is_lexsorted() + assert dfm.index._lexsort_depth == 2 + + +def test_reconstruct_sort(): + # starts off lexsorted & monotonic + mi = MultiIndex.from_arrays([["A", "A", "B", "B", "B"], [1, 2, 1, 2, 3]]) + assert mi.is_monotonic_increasing + recons = mi._sort_levels_monotonic() + assert recons.is_monotonic_increasing + assert mi is recons + + assert mi.equals(recons) + assert Index(mi.values).equals(Index(recons.values)) + + # cannot convert to lexsorted + mi = MultiIndex.from_tuples( + [("z", "a"), ("x", "a"), ("y", "b"), ("x", "b"), ("y", "a"), ("z", "b")], + names=["one", "two"], + ) + assert not mi.is_monotonic_increasing + recons = mi._sort_levels_monotonic() + assert not recons.is_monotonic_increasing + assert mi.equals(recons) + assert Index(mi.values).equals(Index(recons.values)) + + # cannot convert to lexsorted + mi = MultiIndex( + levels=[["b", "d", "a"], [1, 2, 3]], + codes=[[0, 1, 0, 2], [2, 0, 0, 1]], + names=["col1", "col2"], + ) + assert not mi.is_monotonic_increasing + recons = mi._sort_levels_monotonic() + assert not recons.is_monotonic_increasing + assert mi.equals(recons) + assert Index(mi.values).equals(Index(recons.values)) + + +def test_reconstruct_remove_unused(): + # xref to GH 2770 + df = DataFrame( + [["deleteMe", 1, 9], ["keepMe", 2, 9], ["keepMeToo", 3, 9]], + columns=["first", "second", "third"], + ) + df2 = df.set_index(["first", "second"], drop=False) + df2 = df2[df2["first"] != "deleteMe"] + + # removed levels are there + expected = MultiIndex( + levels=[["deleteMe", "keepMe", "keepMeToo"], [1, 2, 3]], + codes=[[1, 2], [1, 2]], + names=["first", "second"], + ) + result = df2.index + tm.assert_index_equal(result, expected) + + expected = MultiIndex( + levels=[["keepMe", "keepMeToo"], [2, 3]], + codes=[[0, 1], [0, 1]], + names=["first", "second"], + ) + result = df2.index.remove_unused_levels() + tm.assert_index_equal(result, expected) + + # idempotent + result2 = result.remove_unused_levels() + tm.assert_index_equal(result2, expected) + assert result2.is_(result) + + +@pytest.mark.parametrize( + "first_type,second_type", [("int64", "int64"), ("datetime64[D]", "str")] +) +def test_remove_unused_levels_large(first_type, second_type): + # GH16556 + + # because tests should be deterministic (and this test in particular + # checks that levels are removed, which is not the case for every + # random input): + rng = np.random.default_rng(10) # seed is arbitrary value that works + + size = 1 << 16 + df = DataFrame( + { + "first": rng.integers(0, 1 << 13, size).astype(first_type), + "second": rng.integers(0, 1 << 10, size).astype(second_type), + "third": rng.random(size), + } + ) + df = df.groupby(["first", "second"]).sum() + df = df[df.third < 0.1] + + result = df.index.remove_unused_levels() + assert len(result.levels[0]) < len(df.index.levels[0]) + assert len(result.levels[1]) < len(df.index.levels[1]) + assert result.equals(df.index) + + expected = df.reset_index().set_index(["first", "second"]).index + tm.assert_index_equal(result, expected) + + +@pytest.mark.parametrize("level0", [["a", "d", "b"], ["a", "d", "b", "unused"]]) +@pytest.mark.parametrize( + "level1", [["w", "x", "y", "z"], ["w", "x", "y", "z", "unused"]] +) +def test_remove_unused_nan(level0, level1): + # GH 18417 + mi = MultiIndex(levels=[level0, level1], codes=[[0, 2, -1, 1, -1], [0, 1, 2, 3, 2]]) + + result = mi.remove_unused_levels() + tm.assert_index_equal(result, mi) + for level in 0, 1: + assert "unused" not in result.levels[level] + + +def test_argsort(idx): + result = idx.argsort() + expected = idx.values.argsort() + tm.assert_numpy_array_equal(result, expected) + + +def test_remove_unused_levels_with_nan(): + # GH 37510 + idx = Index([(1, np.nan), (3, 4)]).rename(["id1", "id2"]) + idx = idx.set_levels(["a", np.nan], level="id1") + idx = idx.remove_unused_levels() + result = idx.levels + expected = FrozenList([["a", np.nan], [4]]) + assert str(result) == str(expected) + + +def test_sort_values_nan(): + # GH48495, GH48626 + midx = MultiIndex(levels=[["A", "B", "C"], ["D"]], codes=[[1, 0, 2], [-1, -1, 0]]) + result = midx.sort_values() + expected = MultiIndex( + levels=[["A", "B", "C"], ["D"]], codes=[[0, 1, 2], [-1, -1, 0]] + ) + tm.assert_index_equal(result, expected) + + +def test_sort_values_incomparable(): + # GH48495 + mi = MultiIndex.from_arrays( + [ + [1, Timestamp("2000-01-01")], + [3, 4], + ] + ) + match = "'<' not supported between instances of 'Timestamp' and 'int'" + with pytest.raises(TypeError, match=match): + mi.sort_values() + + +@pytest.mark.parametrize("na_position", ["first", "last"]) +@pytest.mark.parametrize("dtype", ["float64", "Int64", "Float64"]) +def test_sort_values_with_na_na_position(dtype, na_position): + # 51612 + arrays = [ + Series([1, 1, 2], dtype=dtype), + Series([1, None, 3], dtype=dtype), + ] + index = MultiIndex.from_arrays(arrays) + result = index.sort_values(na_position=na_position) + if na_position == "first": + arrays = [ + Series([1, 1, 2], dtype=dtype), + Series([None, 1, 3], dtype=dtype), + ] + else: + arrays = [ + Series([1, 1, 2], dtype=dtype), + Series([1, None, 3], dtype=dtype), + ] + expected = MultiIndex.from_arrays(arrays) + tm.assert_index_equal(result, expected) + + +def test_sort_unnecessary_warning(): + # GH#55386 + midx = MultiIndex.from_tuples([(1.5, 2), (3.5, 3), (0, 1)]) + midx = midx.set_levels([2.5, np.nan, 1], level=0) + result = midx.sort_values() + expected = MultiIndex.from_tuples([(1, 3), (2.5, 1), (np.nan, 2)]) + tm.assert_index_equal(result, expected) diff --git a/shared/package-files/eb/ebd3dac01bb2cc222570782b9185c9f0c272f6edad5f7e2cfb6b782f61ab2aa8/blob b/shared/package-files/eb/ebd3dac01bb2cc222570782b9185c9f0c272f6edad5f7e2cfb6b782f61ab2aa8/blob new file mode 100644 index 0000000000000000000000000000000000000000..6986cd4175566a61dbc891668933aedba814b30d --- /dev/null +++ b/shared/package-files/eb/ebd3dac01bb2cc222570782b9185c9f0c272f6edad5f7e2cfb6b782f61ab2aa8/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor mish(const at::Tensor & self); +TORCH_API at::Tensor & mish_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & mish_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & mish_(at::Tensor & self); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/eb/ebd6545171019ec355d2532775bc85ad54ef97da75ee7456108d07f2a038afbe/blob b/shared/package-files/eb/ebd6545171019ec355d2532775bc85ad54ef97da75ee7456108d07f2a038afbe/blob new file mode 100644 index 0000000000000000000000000000000000000000..83a0a430dc27593058d94b60d933246458f5d104 Binary files /dev/null and b/shared/package-files/eb/ebd6545171019ec355d2532775bc85ad54ef97da75ee7456108d07f2a038afbe/blob differ diff --git a/shared/package-files/eb/ebd6e169e09311b70afcbeadb5d37de95009967c8b38213b92cee60c38b02e3a/blob b/shared/package-files/eb/ebd6e169e09311b70afcbeadb5d37de95009967c8b38213b92cee60c38b02e3a/blob new file mode 100644 index 0000000000000000000000000000000000000000..f3eb202b7f00aa262573d72d7718d3f199eb1776 --- /dev/null +++ b/shared/package-files/eb/ebd6e169e09311b70afcbeadb5d37de95009967c8b38213b92cee60c38b02e3a/blob @@ -0,0 +1,38 @@ +#pragma once + +#include +#include +#include +#include + +#include +#include +#include + +namespace torch { +namespace jit { + +/** + * Loads named parameters from the serialized data in @p in. + * + * Calls #TORCH_CHECK() if the data format is not recognized. + */ +TORCH_API std::map _load_parameters( + std::istream& in, + c10::optional device = c10::nullopt); + +/** + * Loads named parameters from the serialized data in @p filename. + * + * Calls #TORCH_CHECK() if the data format is not recognized. + */ +TORCH_API std::map _load_parameters( + const std::string& filename, + c10::optional device = c10::nullopt); + +// NOTE: Please prefer using _load_parameters over using the function below. +TORCH_API std::map mobile_module_to_parameter_map( + const mobile::Module& module); + +} // namespace jit +} // namespace torch diff --git a/shared/package-files/eb/ebdb3fac871761ce40e716651d325d83d231981fb12f73066f5d01573d4230e0/blob b/shared/package-files/eb/ebdb3fac871761ce40e716651d325d83d231981fb12f73066f5d01573d4230e0/blob new file mode 100644 index 0000000000000000000000000000000000000000..cb61999b69974a3a0b4bde958da544af84d851a2 --- /dev/null +++ b/shared/package-files/eb/ebdb3fac871761ce40e716651d325d83d231981fb12f73066f5d01573d4230e0/blob @@ -0,0 +1,22 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor & mkldnn_max_pool2d_out(const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, bool ceil_mode, at::Tensor & out); +TORCH_API at::Tensor mkldnn_max_pool2d(const at::Tensor & self, at::IntArrayRef kernel_size, at::IntArrayRef stride={}, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, bool ceil_mode=false); +} // namespace native +} // namespace at diff --git a/shared/package-files/eb/ebdd983daaa4e3fe75666f673f9d41a1841880d5af00f53c381ca847b515b8fa/blob b/shared/package-files/eb/ebdd983daaa4e3fe75666f673f9d41a1841880d5af00f53c381ca847b515b8fa/blob new file mode 100644 index 0000000000000000000000000000000000000000..1d553bbc6be4c298dbc44d024870e5961e11dd42 --- /dev/null +++ b/shared/package-files/eb/ebdd983daaa4e3fe75666f673f9d41a1841880d5af00f53c381ca847b515b8fa/blob @@ -0,0 +1 @@ +dlip,dmdlleading,transition_00,transition_10,filtered_0,smoothed_0,duration0,duration1 0,-1.315793134,,,,,, -0.463457141,0.542041742,,,,,, 0,0.797866076,,,,,, 0.922986632,-1.572317338,,,,,, 0.682073841,1.324204951,,,,,, 0,-0.778336628,0.998775,0.417661,0.661039,0.209407,816.2879,2.394286 -0.226405988,-1.31019399,0.951736,0.081398,0.535619,0.182025,20.71927,12.28531 -0.455667853,-1.859087707,0.884943,0.04962,0.309032,0.145482,8.691347,20.1532 0.455667853,0.014403944,0.7443,0.029358,0.468544,0.13292,3.910828,34.06189 -0.684945807,-1.064496246,0.987689,0.163137,0.292996,0.128835,81.23144,6.129806 -0.461484959,-1.8941562,0.922373,0.062497,0.236747,0.120567,12.8821,16.00085 -0.465446252,-1.921480471,0.732307,0.028381,0.139381,0.088826,3.735622,35.23537 -0.705747343,-0.816574453,0.722719,0.027641,0.056933,0.066686,3.60645,36.1785 -0.95551645,-0.819748477,0.94853,0.078599,0.032805,0.072972,19.42867,12.72275 -0.241533386,-1.681332938,0.948255,0.078371,0.092129,0.114191,19.32541,12.75982 -0.731123284,0.03216902,0.799489,0.034838,0.034222,0.112214,4.987248,28.70443 -0.245914958,-0.541719465,0.988066,0.165564,0.151155,0.40603,83.79465,6.039966 0,1.736755747,0.967719,0.100818,0.27313,0.477691,30.97786,9.918877 0.490719688,1.973729256,0.999409,0.519472,0.844464,0.706868,1693.3,1.925032 0.486318555,2.730521092,0.999612,0.577767,0.971411,0.740248,2575.311,1.730802 -1.972004789,0.278559375,0.999898,0.743891,0.767455,0.73716,9829.282,1.344282 1.485686234,1.589809356,0.992252,0.202241,0.988905,0.989876,129.0636,4.9446 0.968314221,1.299660221,0.999234,0.482951,0.998264,0.997724,1305.686,2.070602 0.71505417,2.032490944,0.998721,0.411736,0.999513,0.998923,781.6227,2.428742 0.236271203,0.993680444,0.99965,0.591956,0.999769,0.999456,2857.516,1.689316 1.853997876,0.732887127,0.997803,0.34049,0.99998,0.999978,455.1569,2.936944 1.792697333,1.208665529,0.996518,0.284858,0.999968,0.999973,287.2264,3.510515 1.306669382,2.373811004,0.998497,0.390004,0.99994,0.999957,665.4848,2.564075 1.485686234,0.450280577,0.999809,0.670737,0.999994,0.999999,5227.865,1.490897 1.649531163,3.649279698,0.994271,0.231198,0.999848,0.999914,174.5576,4.325298 1.797650442,3.502572834,0.99998,0.878688,0.999999,0.999999,49982.95,1.138061 -0.394359232,-1.345298571,0.999974,0.862255,0.999774,0.999937,38551.14,1.159749 0.394359232,-0.254775223,0.878463,0.047999,0.957108,0.984405,8.227935,20.83372 -0.196821107,-0.69433637,0.980323,0.129794,0.89051,0.98286,50.81974,7.704538 0.977038243,0.622423385,0.958125,0.087867,0.987311,0.992897,23.88072,11.3808 0.193312702,2.118583211,0.99577,0.263016,0.99271,0.993582,236.3889,3.802051 0.38457009,-1.758562959,0.999699,0.612464,0.998438,0.996481,3327.778,1.63275 0.19126706,-0.906243325,0.776674,0.032345,0.924641,0.911718,4.477758,30.91628 0.190594767,-2.903936767,0.940205,0.072379,0.942172,0.883427,16.72378,13.81624 -0.190594767,-1.379646476,0.314068,0.010586,0.364974,0.127995,1.457871,94.4619 -0.383211174,-3.240071538,0.87182,0.046462,0.277216,0.106534,7.801549,21.52297 -0.774643966,-2.374995988,0.20162,0.007601,0.022645,0.016712,1.252537,131.5639 -0.588332955,-2.177911415,0.538715,0.017784,0.013147,0.024166,2.167857,56.22892 0.392930382,-0.012350861,0.623411,0.021553,0.092288,0.075833,2.655415,46.39822 0,-0.254775223,0.9871,0.159537,0.203846,0.151077,77.52013,6.26814 0.39010352,-0.983818549,0.980323,0.129794,0.506374,0.209208,50.81974,7.704538 0.387317043,0.231843743,0.932002,0.067366,0.645502,0.205754,14.70622,14.84421 0.57583715,0.229487225,0.99159,0.194848,0.835906,0.214817,118.8992,5.132198 0.190594767,0.467249575,0.991555,0.194481,0.87081,0.206833,118.4084,5.141894 0.189927183,-0.01525415,0.99444,0.234211,0.909432,0.196893,179.8502,4.269648 -0.38052195,-0.254775223,0.987035,0.15915,0.844312,0.104756,77.12787,6.283374 -0.57583715,-0.015826483,0.980323,0.129794,0.72584,0.072409,50.81974,7.704538 -0.582017989,1.870452343,0.987022,0.159074,0.638266,0.074931,77.05078,6.286382 -0.78587108,-0.254775223,0.999534,0.55253,0.663373,0.201116,2145.186,1.809857 3.450049621,1.367508328,0.980323,0.129794,0.999773,0.999904,50.81974,7.704538 1.825901649,2.912910443,0.998865,0.428172,0.999971,0.99999,881.2426,2.335512 0.535992721,-1.600086992,0.999926,0.7769,0.999955,0.999993,13574.67,1.287167 1.056348123,-0.254775223,0.821556,0.037659,0.979314,0.989875,5.603992,26.55384 0.34759193,0.19567599,0.980323,0.129794,0.946543,0.983823,50.81974,7.704538 0.17296396,0.417119802,0.991038,0.189267,0.952415,0.987569,111.5873,5.283544 0.344281508,-0.03180969,0.993927,0.225388,0.978215,0.992622,164.6628,4.436797 0.342109371,-0.477740755,0.986654,0.156959,0.984248,0.992998,74.92918,6.371088 0.33996447,-0.478239003,0.971075,0.106735,0.98625,0.992113,34.57276,9.369037 0.337846298,-0.928178441,0.971051,0.106687,0.988277,0.990038,34.54316,9.373186 -0.337846298,-1.615340428,0.937984,0.070927,0.907252,0.967874,16.12493,14.09892 0.673600655,-0.483346751,0.817563,0.037113,0.972816,0.954798,5.48134,26.94446 -0.335754357,-2.569693409,0.970795,0.106204,0.923828,0.910001,34.24123,9.41583 -1.019920139,-2.385033293,0.45277,0.0147,0.12203,0.07548,1.827385,68.02907 -0.517245468,-0.494296295,0.534297,0.017611,0.070844,0.025276,2.14729,56.78302 -1.226446751,-1.218638106,0.970241,0.105175,0.019489,0.026887,33.60312,9.507979 -1.436485473,-0.012937136,0.900444,0.054094,0.005964,0.03716,10.04461,18.48618 -0.365147208,-0.254775223,0.987087,0.159459,0.143677,0.461762,77.44075,6.271213 0.182880967,0.706770647,0.980323,0.129794,0.466198,0.691007,50.81974,7.704538 -0.366380822,0.222552653,0.996354,0.279597,0.503475,0.779292,274.2949,3.576579 -0.368873228,0.693099173,0.991451,0.193403,0.508523,0.831212,116.976,5.170559 0.368873228,1.150400123,0.996265,0.276866,0.802825,0.930042,267.7602,3.611853 0.183499855,1.130928244,0.998334,0.376309,0.901479,0.952342,600.3645,2.657389 0,0.885487987,0.998276,0.371775,0.941878,0.961881,580.0568,2.689799 0,0.197714237,0.99734,0.316757,0.962077,0.968511,375.9974,3.156995 0,1.090536547,0.99107,0.189578,0.966727,0.970999,111.9871,5.274869 0.727851941,1.729854415,0.998148,0.362442,0.993485,0.993679,540.0987,2.759064 0.896287438,1.691232133,0.999402,0.517758,0.999065,0.999272,1672.751,1.931403 0.706513649,1.23303118,0.99936,0.508162,0.999749,0.999842,1562.274,1.967877 1.214671872,1.418904013,0.998561,0.395784,0.99994,0.999971,694.7727,2.526628 0.682073841,1.595226152,0.998964,0.44073,0.999817,0.999914,965.0843,2.268961 1.173365994,0.959814608,0.999241,0.484297,0.999966,0.999991,1318.256,2.06485 0.659268369,0.146831743,0.997668,0.332968,0.999565,0.999921,428.7304,3.003295 0.974112821,0.344627171,0.990237,0.181925,0.999323,0.999681,102.4272,5.496771 0,-0.055770182,0.993101,0.21305,0.992022,0.997506,144.9521,4.693737 0.480571731,0.734352525,0.986084,0.153831,0.995347,0.997466,71.85903,6.50062 -0.159717804,-0.649253052,0.996527,0.285155,0.991714,0.997526,287.9699,3.506859 0.31896654,0.53263042,0.961213,0.091528,0.990127,0.995755,25.78161,10.92562 0.94579413,-0.451046139,0.995044,0.246075,0.999066,0.997895,201.7954,4.063803 0.156040843,0.332885626,0.972374,0.109292,0.988761,0.984122,36.19732,9.149767 0.155593092,-0.059653209,0.992957,0.211099,0.993875,0.981322,141.9909,4.737124 0.30985316,-0.645400719,0.985989,0.153329,0.99474,0.97102,71.37363,6.521904 -0.465446252,-1.040633884,0.961466,0.091847,0.917091,0.889738,25.95118,10.88766 0,0.138926073,0.925344,0.063902,0.937652,0.861758,13.39477,15.64903 0.465446252,-0.058504306,0.990101,0.180758,0.986573,0.85855,101.0176,5.532267 -0.465446252,-1.835835825,0.986017,0.153478,0.960134,0.751912,71.5169,6.515598 -0.46947614,-0.854177617,0.752054,0.030025,0.746164,0.175126,4.03314,33.30609 -1.757048302,0.543632212,0.945181,0.075933,0.09631,0.074243,18.24189,13.16947 2.226524441,-0.056165425,0.99514,0.248111,0.998245,0.999599,205.7443,4.030461 1.232420219,-0.652390061,0.986074,0.15378,0.999388,0.999462,71.80947,6.502782 0.455030548,0.142839615,0.961005,0.091269,0.988117,0.984209,25.64437,10.95664 -0.455030548,0.141264899,0.990168,0.181335,0.939513,0.975423,101.7129,5.51466 0.75627663,-0.650815344,0.990141,0.181102,0.98704,0.982536,101.4325,5.521737 -0.150413842,-1.051592188,0.961109,0.091399,0.94013,0.967193,25.71317,10.94106 0.449995574,-0.655577362,0.923993,0.063253,0.976117,0.959689,13.15665,15.80956 0,-0.859006668,0.960793,0.091006,0.966623,0.936485,25.50572,10.98825 -0.752080786,-1.0661387,0.944736,0.075597,0.759507,0.888195,18.09512,13.22806 -0.151676058,-0.254775223,0.922164,0.062401,0.814671,0.893577,12.8476,16.02537 0.151676058,-0.458648892,0.980323,0.129794,0.910317,0.906645,50.81974,7.704538 0.302085213,-0.868902025,0.97201,0.108558,0.959358,0.907009,35.72679,9.211624 0,-0.460325141,0.943815,0.074912,0.9529,0.850735,17.79828,13.349 -0.453761271,-1.705577872,0.971929,0.108397,0.902002,0.75299,35.6239,9.225326 -0.919075484,-1.09335456,0.79252,0.034036,0.414562,0.080662,4.819741,29.38059 -1.250179997,-1.312986156,0.918635,0.060836,0.106644,0.017272,12.29034,16.43763 -0.956921694,-1.10948128,0.884439,0.049489,0.058896,0.008513,8.653425,20.20646 -1.138179982,-0.469598076,0.916476,0.059926,0.027773,0.005209,11.97259,16.68723 -1.162583853,-1.118711482,0.971478,0.107509,0.021968,0.006974,35.06019,9.301535 -0.675699154,0.609161036,0.915217,0.059411,0.037889,0.016582,11.79476,16.83191 -0.856639545,0.174409986,0.99567,0.260467,0.070802,0.120304,230.927,3.839256 0.515605997,1.654084434,0.990698,0.186043,0.717409,0.73832,107.5016,5.375108 1.518038171,1.618328448,0.999316,0.498926,0.99587,0.997929,1462.908,2.004305 0.661278383,2.189338293,0.999272,0.490037,0.999016,0.999316,1373.244,2.040662 1.138179982,1.539889096,0.999735,0.629028,0.999927,0.999967,3771.681,1.589754 0.480571731,1.508247915,0.999163,0.470566,0.999668,0.999835,1195.339,2.125098 0.634207878,0.903538886,0.999115,0.462734,0.99979,0.999898,1130.281,2.161067 1.553807042,1.457921257,0.997424,0.320655,0.999969,0.999984,388.1736,3.118617 0.152959637,-0.443632691,0.999033,0.450316,0.999139,0.99978,1034.026,2.220661 0.758392158,1.432237608,0.972724,0.110012,0.997794,0.998575,36.66228,9.089898 1.04423884,1.037948228,0.998988,0.444002,0.99981,0.999902,988.1106,2.252244 0.733761608,1.202445463,0.997968,0.350445,0.999686,0.999849,492.1778,2.853516 1.15374896,-0.254775223,0.998481,0.388534,0.999942,0.999886,658.2084,2.573781 0.849481949,-0.0741067,0.980323,0.129794,0.997935,0.960598,50.81974,7.704538 0,-0.254775223,0.985631,0.151473,0.981985,0.644221,69.59591,6.601854 -1.279266144,-0.61643927,0.980323,0.129794,0.55525,0.06887,50.81974,7.704538 -1.902797179,-1.164699608,0.963321,0.094278,0.03307,0.016435,27.26374,10.60692 0,-0.07212677,0.908682,0.056906,0.220393,0.089131,10.95079,17.57285 -0.448754192,-0.803724451,0.985681,0.151726,0.255143,0.27243,69.83675,6.590834 0.299581731,-1.176440733,0.949629,0.07953,0.633675,0.71191,19.85267,12.57389 3.331235784,1.943115449,0.906943,0.056283,0.999594,0.999752,10.7461,17.76751 2.557684179,-0.617752028,0.99959,0.570322,0.999995,0.999974,2439.514,1.753395 -1.015237146,-1.535671052,0.963239,0.094167,0.285709,0.084843,27.20277,10.61947 -0.768249617,-1.92612332,0.837665,0.040051,0.040443,0.011644,6.160088,24.96805 -0.774197415,-0.254775223,0.721069,0.027517,0.00478,0.000471,3.585116,36.34132 -0.259403518,-0.067684429,0.980323,0.129794,0.059508,0.002902,50.81974,7.704538 -1.044395916,-0.254775223,0.985791,0.152295,0.023074,0.003135,70.38021,6.566187 -0.526317004,0.118359539,0.980323,0.129794,0.062255,0.008038,50.81974,7.704538 0,0.116972417,0.989737,0.177748,0.27019,0.017348,97.44173,5.625928 -1.061017911,-0.069418358,0.989712,0.177547,0.060115,0.010235,97.20521,5.632315 -0.267022856,-0.625833162,0.985748,0.152073,0.17138,0.016371,70.16758,6.575794 -1.345915337,-0.440821788,0.962729,0.093483,0.023019,0.002787,26.8306,10.6971 -1.915243221,-0.254775223,0.972856,0.110286,0.00315,0.002777,36.84017,9.067313 0.275862244,0.67201547,0.980323,0.129794,0.491627,0.30296,50.81974,7.704538 -0.275862244,0.480522208,0.996124,0.272688,0.542697,0.428643,257.9875,3.667199 0.550965581,1.199795878,0.994568,0.236587,0.923701,0.813028,184.1021,4.226771 2.173998664,1.000846655,0.998474,0.387908,0.99945,0.999649,655.1331,2.577933 1.335133317,0.985276097,0.997831,0.342092,0.999822,0.99994,460.9549,2.923188 1.578980173,0.796022537,0.99777,0.338615,0.999949,0.999981,448.4502,2.953202 1.038970385,-0.080710775,0.996885,0.297821,0.99959,0.99984,321.0721,3.357721 1.028286696,1.29831898,0.985465,0.15063,0.998059,0.998781,68.79865,6.638769 -0.256082086,-0.942063151,0.998718,0.411413,0.991324,0.998969,779.7715,2.430649 2.030526616,1.115109213,0.936539,0.070023,0.99972,0.999901,15.75771,14.28106 1.496287268,0.760461924,0.998227,0.368108,0.999943,0.999977,564.0664,2.716595 0.739830748,0.583452653,0.996684,0.290478,0.999436,0.999506,301.5447,3.4426 -0.739830748,-0.254775223,0.995469,0.255572,0.958726,0.9937,220.6977,3.912788 1.717833654,0.907063573,0.980323,0.129794,0.999089,0.999824,50.81974,7.704538 0.485437846,-0.254775223,0.99744,0.321419,0.99874,0.999703,390.5969,3.111203 0.241838086,-0.751054157,0.980323,0.129794,0.993645,0.998203,50.81974,7.704538 -0.241838086,-1.254783556,0.953906,0.08345,0.947179,0.990638,21.695,11.98321 -0.242424361,-1.264884821,0.894559,0.052284,0.817016,0.98219,9.484018,19.12623 0.966191091,0.419763591,0.892861,0.051789,0.981511,0.996351,9.333661,19.30925 0.240096154,-0.086849071,0.993955,0.225847,0.990136,0.998374,165.4305,4.427772 0.478469812,0.414123592,0.985308,0.149851,0.995335,0.998726,68.06593,6.673299 0.238379136,0.078003787,0.993895,0.224868,0.995918,0.998678,163.797,4.447054 0.475060276,1.392708498,0.988986,0.171958,0.996841,0.998253,90.79243,5.815373 0,0.558898917,0.998915,0.434319,0.997796,0.99904,921.3989,2.302456 0.708385489,0.552331661,0.995269,0.250954,0.999335,0.999712,211.353,3.984795 0.936775,0.70523215,0.995214,0.249728,0.999721,0.999907,208.9217,4.004354 0.696866932,0.538250345,0.996344,0.279289,0.999608,0.999922,273.5516,3.580525 0.92166551,0.532010897,0.995093,0.247113,0.999728,0.999948,203.803,4.046726 1.14026321,0.525868867,0.995039,0.245961,0.999793,0.999913,201.5753,4.065691 0.45248946,-0.410417277,0.994985,0.244829,0.998334,0.998917,199.4063,4.084476 -0.45248946,-0.4106599,0.974241,0.113289,0.922744,0.984798,38.82203,8.827014 0.226500663,0.056751509,0.974231,0.113264,0.959959,0.992368,38.80579,8.828903 0.900906994,0.519821989,0.988568,0.168969,0.994879,0.998943,87.4771,5.918238 0.670393572,0.207119363,0.994931,0.243719,0.998426,0.999618,197.2938,4.103082 0.444445176,0.204995702,0.991217,0.191019,0.998173,0.99943,113.8504,5.235068 0,0.050568526,0.991184,0.190693,0.992978,0.998086,113.4269,5.244023 0.883007945,0.504529868,0.988444,0.168107,0.9987,0.999474,86.53576,5.948576 0.657176516,0.498807846,0.994793,0.240927,0.999157,0.999585,192.0514,4.150637 0,0.344028962,0.99474,0.239888,0.996265,0.998674,190.126,4.168618 1.516822147,0.488722626,0.993094,0.21295,0.999874,0.999808,144.7998,4.695935 0.643089033,0.483235507,0.994646,0.238063,0.999011,0.99852,186.7795,4.200561 0.213447253,0.038910745,0.994594,0.237075,0.997362,0.99613,184.9837,4.218075 0.637621714,0.911418752,0.988206,0.166492,0.998334,0.98914,84.78867,6.006285 0.633581845,0.467249575,0.997459,0.322365,0.999268,0.984351,393.6121,3.102078 0.420168685,0.604828924,0.99444,0.234211,0.998697,0.954446,179.8502,4.269648 -1.478379618,0.030125255,0.995636,0.259638,0.841378,0.835141,229.1705,3.851515 3.141619623,0.453944966,0.988023,0.165283,0.999946,0.999983,83.49565,6.050221 1.229523686,0.308606549,0.994308,0.231846,0.999685,0.999928,175.6871,4.313201 1.013179893,0.445017696,0.99265,0.207105,0.999575,0.999903,136.0597,4.828464 0.603016903,-0.254775223,0.994218,0.230269,0.998644,0.999778,172.9482,4.342749 1.393057354,0.301554446,0.980323,0.129794,0.999032,0.999747,50.81974,7.704538 0.394477829,-0.39356775,0.992559,0.205956,0.99579,0.999359,134.3841,4.85541 0.784317746,0.575105059,0.974979,0.114983,0.996911,0.999314,39.96715,8.696942 0.778214044,-0.39261122,0.995402,0.253996,0.998994,0.999838,217.4751,3.937071 0.964327627,0.158164112,0.975021,0.11508,0.998243,0.99943,40.03319,8.689624 0.383142231,-0.392232289,0.990429,0.183608,0.996491,0.998529,104.4824,5.446373 0.191022026,0.567147213,0.975037,0.115118,0.986813,0.994125,40.05938,8.686726 0.949674754,0.830717118,0.995337,0.252499,0.998671,0.999303,214.447,3.960409 0.565505748,0.8190606,0.99707,0.305087,0.999152,0.999525,341.3461,3.277753 1.121507082,0.675464044,0.99701,0.302635,0.999858,0.999957,334.3952,3.304313 1.109068669,0.009425724,0.996147,0.273368,0.999839,0.999966,259.5611,3.658067 0.549955557,0.008729541,0.987582,0.162462,0.996981,0.999382,80.52751,6.155268 1.451931132,0.9224784,0.987567,0.162368,0.999716,0.999905,80.42956,6.158838 0,-0.515192036,0.997509,0.324772,0.995867,0.99949,401.3744,3.079083 1.075279178,-1.30327762,0.969154,0.103235,0.998613,0.999685,32.41917,9.686644 0.355872262,-0.915716161,0.886184,0.049945,0.954937,0.991916,8.786095,20.0219 0.531445006,-0.653446847,0.939255,0.071749,0.975511,0.993403,16.46231,13.93756 0.176522552,-1.191236916,0.960935,0.091182,0.970995,0.992374,25.59831,10.96711 0.877968765,-0.793860086,0.904709,0.055506,0.989915,0.990347,10.49414,18.01608 0.696866932,-1.205223654,0.950458,0.080251,0.992554,0.981796,20.18477,12.46089 -0.696866932,-0.527999436,0.902553,0.054781,0.643262,0.82112,10.26196,18.25444 0.174672533,-0.666016378,0.968469,0.102062,0.840187,0.835947,31.71485,9.798001 0.522194398,0.429690146,0.960091,0.090151,0.946596,0.830981,25.05703,11.09249 -1.047129987,-0.80197221,0.99406,0.227578,0.762141,0.817353,168.3455,4.394097 -0.704228263,-0.667146941,0.949777,0.079658,0.633185,0.813335,19.91124,12.55374 1.054491318,0.157596496,0.960014,0.090059,0.940303,0.83759,25.00893,11.10385 -0.877968765,0.700863449,0.990419,0.183524,0.799942,0.817758,104.3785,5.448884 0,0.960634742,0.996316,0.278415,0.916744,0.860763,271.452,3.591761 -0.353357258,0.94603974,0.997671,0.333149,0.921035,0.877589,429.3518,3.001662 1.928192955,1.193571359,0.99761,0.329932,0.99769,0.998683,418.4266,3.030929 -0.17376199,0.006321531,0.998457,0.386439,0.995765,0.998816,647.965,2.587732 0.865806274,0.005641591,0.987514,0.162043,0.998792,0.999787,80.0917,6.171208 1.369884436,0.134582829,0.987499,0.161951,0.999673,0.99995,79.99656,6.174707 1.183445765,0.904284759,0.990025,0.180119,0.999476,0.999807,100.2516,5.551887 -0.168208618,-0.382898238,0.997427,0.320817,0.995472,0.998981,388.6851,3.117046 0.33613477,0.638657651,0.975436,0.116067,0.991077,0.997407,40.71013,8.615698 0.335008689,0.378539117,0.995889,0.266158,0.995191,0.999139,243.2517,3.757172 0.167084416,-1.142542626,0.993501,0.218759,0.995303,0.999608,153.8584,4.571233 1.161838795,0.380147545,0.911885,0.0581,0.998344,0.999507,11.34884,17.21163 0.32948959,-0.001930587,0.993519,0.219033,0.997488,0.999027,154.2943,4.565525 -0.164609091,0.24900418,0.987333,0.160931,0.986555,0.995875,78.94472,6.213825 0.328947665,-0.758554626,0.991839,0.19754,0.994765,0.998163,122.5357,5.062271 0.327869146,0.999946383,0.953319,0.082881,0.986991,0.993352,21.42204,12.06544 0.163532334,1.230400591,0.997827,0.341891,0.995279,0.99718,460.2225,2.924911 1.298719553,0.357596562,0.998554,0.395159,0.999795,0.999946,691.5495,2.530627 0.32206147,0.23243646,0.993257,0.21522,0.997817,0.999601,148.2953,4.646398 0.641027836,0.712584195,0.991598,0.194941,0.998887,0.999727,119.023,5.129762 0.636944829,-0.495739195,0.996391,0.280763,0.999371,0.99969,277.122,3.561725 0.790517951,-0.496321234,0.970167,0.10504,0.997226,0.995539,33.51995,9.520198 -0.473560475,0.227734761,0.970137,0.104985,0.916127,0.963155,33.48646,9.525131 -0.316957476,-0.495739195,0.991529,0.194208,0.900756,0.973759,118.0447,5.149119 0.947874395,-0.981170668,0.970167,0.10504,0.989606,0.986317,33.51995,9.520198 0.470589104,-0.86416163,0.932298,0.067532,0.985506,0.977079,14.77062,14.8078 0.312500254,-0.377099397,0.944258,0.075239,0.985659,0.952452,17.93983,13.29092 0,-0.010276323,0.975681,0.11666,0.977998,0.911104,41.11986,8.571902 0,-1.236378196,0.987147,0.159814,0.97716,0.863095,77.80166,6.257281 -0.940445803,-0.997352892,0.897593,0.053199,0.571132,0.130312,9.764992,18.79744 -0.315457675,-0.628142178,0.930467,0.066526,0.622688,0.094451,14.38174,15.03183 -1.913934021,-1.762341463,0.962582,0.093289,0.063426,0.058408,26.72524,10.71939 0,-1.656965182,0.775512,0.032228,0.225625,0.08805,4.454573,31.02891 -0.161160389,-1.157424807,0.806314,0.035662,0.254053,0.081773,5.163006,28.04107 -0.161420535,-1.427427097,0.909745,0.057296,0.312242,0.082945,11.07976,17.45337 -0.161681523,0.268101786,0.862067,0.044401,0.350647,0.075984,7.249919,22.52179 -0.324149392,0.005641591,0.992108,0.200568,0.35564,0.08417,126.7146,4.985841 0.162206037,-0.645655199,0.987499,0.161951,0.560933,0.093965,79.99656,6.174707 -0.162206037,-0.254775223,0.961449,0.091826,0.537342,0.049522,25.93994,10.89017 -0.651468102,-0.12431206,0.980323,0.129794,0.374913,0.026253,50.81974,7.704538 -1.98026273,-0.515871977,0.984317,0.145166,0.047826,0.01706,63.76256,6.888671 -0.668898815,0.266738345,0.969118,0.103172,0.07057,0.089974,32.38137,9.69252 2.32182901,2.058952669,0.992089,0.200351,0.996504,0.998615,126.4116,4.99125 0.816331064,1.133259681,0.999666,0.598297,0.999608,0.999748,2994.507,1.671411 -0.325733187,0.990570885,0.998283,0.372317,0.996151,0.998366,582.4516,2.685885 0,0.975252586,0.997791,0.339796,0.995483,0.998675,452.6639,2.942944 0.48820276,0.960306556,0.99773,0.336386,0.998223,0.999443,440.5808,2.972771 0.485830915,0.227153421,0.99767,0.333076,0.999307,0.999532,429.103,3.002315 0.483482005,-0.134655088,0.99152,0.194118,0.998995,0.998427,117.9244,5.151519 -0.32206147,-0.254775223,0.984032,0.143894,0.97904,0.983415,62.62387,6.949559 -0.485045413,-0.134799203,0.980323,0.129794,0.938173,0.975489,50.81974,7.704538 1.607751673,0.342955188,0.984028,0.143876,0.998955,0.999299,62.60816,6.950412 0.635932191,0.576090091,0.993081,0.212771,0.998925,0.999286,144.5267,4.699884 0.47430919,0.686408196,0.99541,0.254182,0.999189,0.999475,217.8529,3.934195 1.098050248,1.601426563,0.996221,0.275536,0.999835,0.999777,264.6192,3.629292 2.313133202,1.001666206,0.99925,0.485837,0.999997,0.999999,1332.794,2.058304 0.607904608,0.761608456,0.997834,0.342276,0.999278,0.999798,461.6227,2.921621 0.754720564,0.751381952,0.99669,0.290713,0.999428,0.999787,302.1553,3.439816 1.640603539,0.189176672,0.99663,0.28862,0.999933,0.999716,296.7525,3.464758 -0.148038517,0.297407296,0.990936,0.188277,0.969096,0.967757,110.3223,5.311322 0.295858204,0.403844063,0.992504,0.205282,0.986593,0.970996,133.4085,4.871345 -0.147819687,0.941541383,0.993783,0.223091,0.977096,0.968988,160.8614,4.482476 1.322576222,0.927398674,0.997591,0.328943,0.998801,0.998864,415.1158,3.040036 1.016711736,0.702169879,0.99753,0.325846,0.999704,0.999857,404.8768,3.068933 1.434744841,0.272930487,0.996325,0.278676,0.999925,0.999983,272.0782,3.588396 1.273902578,0.688133806,0.992175,0.201339,0.999748,0.999938,127.7938,4.966745 0.84034108,0.679326017,0.996232,0.275879,0.999342,0.999808,265.4257,3.624783 0.139372845,0.260424268,0.996173,0.274132,0.995875,0.999113,261.3349,3.647877 1.383147915,0.257783562,0.992001,0.199346,0.999666,0.999877,125.0176,5.016393 0,-0.254775223,0.991964,0.198928,0.989225,0.998045,124.4392,5.026955 0.274348595,-0.459483585,0.980323,0.129794,0.990614,0.998648,50.81974,7.704538 0.546449447,-0.254775223,0.97197,0.108478,0.99436,0.99884,35.67552,9.218444 0.678889233,-0.357286764,0.980323,0.129794,0.996777,0.998968,50.81974,7.704538 0.674311388,-0.357391958,0.976499,0.118706,0.997527,0.998412,42.55193,8.424158 -0.134499012,-1.079522166,0.976495,0.118695,0.975119,0.994022,42.5442,8.424935 0.80429388,0.158448506,0.920447,0.061627,0.992724,0.988967,12.57021,16.22671 0.399734043,-0.357921183,0.990434,0.183651,0.995204,0.97519,104.5345,5.445116 0,0.054344034,0.976474,0.11864,0.983656,0.800248,42.50529,8.428844 -1.608613775,-1.705577872,0.98852,0.168633,0.562207,0.511364,87.10935,5.930029 -1.360565206,-0.568418972,0.79252,0.034036,0.096388,0.35606,4.819741,29.38059 -0.411805661,-1.413292656,0.966209,0.098436,0.204065,0.69766,29.59395,10.15889 0.411805661,0.273488024,0.865016,0.045002,0.595717,0.908375,7.408271,22.22136 -0.137080213,-2.169727356,0.992183,0.201428,0.72574,0.984782,127.919,4.964546 1.227009259,-0.685346394,0.626806,0.021725,0.950442,0.993143,2.679573,46.0302 0.27063616,-1.995842053,0.958759,0.088587,0.947225,0.991789,24.24776,11.2884 -0.542006747,-1.469588616,0.695583,0.025721,0.43882,0.956923,3.284971,38.87884 -0.272109011,-2.843552318,0.852951,0.042656,0.385227,0.973482,6.800439,23.44344 0.407886357,-3.029519711,0.337541,0.011234,0.365046,0.940246,1.509526,89.01414 -0.680737823,-2.507389736,0.268259,0.009355,0.042072,0.326115,1.366603,106.8957 -2.910808416,-3.051310047,0.480212,0.015625,0.000167,0.001551,1.92386,64.00167 -4.311012365,-2.751783857,0.260755,0.009156,3.22E-07,1.93E-07,1.352731,109.2157 -2.678731596,-1.655180031,0.374766,0.012295,0.000114,2.04E-05,1.599401,81.33679 -1.519786091,-0.254775223,0.806807,0.035723,0.00992,0.001681,5.176182,27.9931 -1.854767236,0.638657651,0.980323,0.129794,0.018244,0.021481,50.81974,7.704538 0.931683758,2.872433952,0.995889,0.266158,0.990389,0.984939,243.2517,3.757172 -0.309597771,2.058170247,0.999921,0.769845,0.997879,0.994669,12636.12,1.298963 1.232681248,1.178941092,0.999666,0.59811,0.999963,0.999962,2990.363,1.671934 0.610688921,1.392320837,0.998416,0.382994,0.999825,0.999856,631.4245,2.611004 1.810004164,1.135745444,0.998914,0.434224,0.999994,0.999998,920.7675,2.302958 1.040901591,1.230117852,0.998291,0.372895,0.999896,0.99994,585.0158,2.681722 0.442805152,0.872632435,0.998553,0.395092,0.999374,0.999644,691.204,2.531057 1.025650017,0.74913728,0.997279,0.313996,0.999794,0.999933,367.56,3.184751 0.726219604,0.298629621,0.996617,0.288162,0.999324,0.99984,295.5797,3.470267 1.151091847,2.359752788,0.99252,0.205481,0.999698,0.999751,133.6953,4.866642 1.702168757,0.814753689,0.999804,0.667642,0.999995,0.999997,5099.394,1.497809 -0.281690327,0.169853866,0.996987,0.301731,0.988629,0.997757,331.863,3.314205 0.422238488,-0.254775223,0.990623,0.185358,0.994593,0.999175,106.6461,5.394978 1.11733006,0.694098528,0.980323,0.129794,0.998718,0.999598,50.81974,7.704538 0.138792527,0.581175309,0.996272,0.277065,0.996593,0.999107,268.2325,3.609258 0.553251757,0.986192099,0.995451,0.255142,0.999018,0.999604,219.8138,3.919393 0.550207715,-0.152053077,0.997774,0.33882,0.999449,0.999824,449.1764,2.951424 0.273972774,0.052759617,0.98354,0.141776,0.994496,0.998736,60.7549,7.053403 0.409556886,-0.459693327,0.988488,0.168412,0.996898,0.999458,86.86817,5.937803 1.621657159,0.256734844,0.971959,0.108458,0.999763,0.999944,35.66265,9.220158 0.801072375,0.558237386,0.991949,0.198761,0.999117,0.999664,124.2103,5.031157 0.39814253,-0.55888088,0.995263,0.25083,0.998457,0.9996,211.1068,3.986759 0.528402815,0.554127065,0.966756,0.099281,0.993206,0.997635,30.08084,10.07241 0.918039234,0.147235369,0.995229,0.250063,0.998833,0.999739,209.5836,3.998994 1.425818063,0.345226577,0.990244,0.181985,0.999803,0.999945,102.4996,5.494966 0.769234562,0.242490844,0.993108,0.21315,0.999145,0.999607,145.1049,4.691536 0.763362486,0.240030339,0.991745,0.196515,0.998918,0.9987,121.1424,5.088672 0,-0.452403745,0.99171,0.196129,0.989358,0.993594,120.6202,5.098689 0.126662462,0.140092023,0.972309,0.109161,0.978339,0.987864,36.11284,9.160778 0.505051579,0.138538952,0.990121,0.18093,0.993744,0.988417,101.2242,5.527014 0,-0.352958834,0.990094,0.180701,0.99008,0.98104,100.9491,5.534012 0.125865341,0.235181662,0.976674,0.119157,0.989489,0.964464,42.8715,8.39227 -0.504414689,0.524196584,0.991639,0.19537,0.969856,0.948772,119.5979,5.118502 -0.379987791,-1.425520302,0.99497,0.244522,0.967665,0.959038,198.8198,4.08961 0.25348556,0.721795039,0.862468,0.044482,0.970092,0.955156,7.271051,22.48101 1.257878221,-0.157640684,0.99645,0.282616,0.99851,0.999025,281.6611,3.538364 2.469261259,0.807523517,0.98338,0.141101,0.99996,0.999993,60.16677,7.087137 0.365186042,-0.062836584,0.996948,0.300219,0.998383,0.999737,327.6553,3.330906 0.967359418,-0.063204283,0.985911,0.152919,0.99885,0.999653,70.97817,6.539414 0.240384731,-0.1591272,0.985902,0.152872,0.985968,0.996845,70.93264,6.54144 0.359497092,0.12690463,0.983336,0.140922,0.985582,0.997137,60.01128,7.096143 0.596304689,0.787394324,0.98989,0.178994,0.995791,0.999151,98.91166,5.586781 0.474496738,0.683317961,0.996838,0.29603,0.998119,0.999621,316.2206,3.378041 0.824989947,-1.004544433,0.9962,0.274923,0.99947,0.999879,263.1811,3.637385 0.234466696,-1.105040147,0.929639,0.066083,0.973479,0.994679,14.21246,15.13255 -0.351906522,-0.349696919,0.917076,0.060175,0.837521,0.975782,12.05919,16.6181 0.819197091,-0.065021845,0.976806,0.119498,0.981506,0.995373,43.11398,8.368327 0.349040494,0.312334048,0.985857,0.152638,0.988305,0.995471,70.70799,6.551467 -1.05079776,-1.774272644,0.992698,0.207715,0.894287,0.99297,136.9538,4.814297 1.166874383,0.317745425,0.771813,0.03186,0.988582,0.995563,4.382375,31.38737 -0.116076624,-0.731647848,0.992767,0.208602,0.980489,0.994129,138.2624,4.793824 -0.582412829,-1.699191283,0.955394,0.084938,0.901932,0.98689,22.41829,11.77325 -0.351082865,-0.643502631,0.794373,0.034246,0.786776,0.97531,4.86317,29.20089 0.234192145,0.036911907,0.96159,0.092005,0.907804,0.989016,26.03516,10.86902 0.583092031,-1.623320531,0.988165,0.166217,0.980553,0.997262,84.49271,6.016248 -0.349447065,-1.045293173,0.815446,0.036831,0.813883,0.981361,5.418479,27.1512 -0.116754246,-0.45338502,0.924772,0.063625,0.84513,0.988189,13.29296,15.71707 0.349854584,0.339874696,0.972262,0.109066,0.941725,0.996621,36.0519,9.168746 0.348634868,0.04122894,0.993043,0.212258,0.976028,0.998566,143.7461,4.711237 0,-3.763907204,0.988254,0.166812,0.977807,0.996803,85.13322,5.994756 -1.991864331,-3.048542024,0.090834,0.004528,0.000994,0.000706,1.099909,220.8295 -2.395324102,-2.05471794,0.2617,0.009181,4.17E-05,7.18E-06,1.354464,108.9182 -1.219527309,1.124556991,0.673076,0.024294,0.004628,0.002611,3.058815,41.1631 -0.368777308,1.830806105,0.998257,0.370296,0.500822,0.339791,573.5626,2.70054 1.467018975,1.788196751,0.9995,0.542762,0.997952,0.997913,1999.861,1.842429 1.326119494,1.945313517,0.999461,0.532227,0.99995,0.999976,1854.638,1.878896 0.597016699,1.120492033,0.999592,0.570858,0.999914,0.999955,2449.021,1.75175 1.76995771,1.294142482,0.998244,0.369354,0.999986,0.999964,569.4573,2.707429 0.466745305,-1.511437483,0.998708,0.410407,0.999244,0.997526,774.035,2.436604 -0.818239515,-0.254775223,0.843414,0.040988,0.326695,0.486205,6.386265,24.39728 0.234466696,-1.527430677,0.980323,0.129794,0.620234,0.57859,50.81974,7.704538 0.350672481,0.236626258,0.839639,0.040367,0.727452,0.531554,6.235911,24.77242 -0.820156911,1.20510472,0.99166,0.195596,0.466363,0.540615,119.9016,5.112589 0.703402666,-0.06172497,0.998488,0.389162,0.916907,0.973143,661.3095,2.569624 0.582412829,-1.223775053,0.985938,0.153062,0.963691,0.982081,71.11601,6.533293 1.154747242,-0.938705588,0.899626,0.053834,0.990701,0.975191,9.962739,18.57575 -0.229885159,-0.156784034,0.936891,0.070241,0.897689,0.783124,15.84569,14.23678 -0.461361833,-2.333029141,0.983404,0.141204,0.794385,0.753315,60.25656,7.081953 -0.812540744,-1.766139004,0.557115,0.018528,0.171532,0.036557,2.257921,53.97118 -1.17234637,-0.967972336,0.774339,0.03211,0.027752,0.003402,4.431428,31.14254 -0.828897582,-0.254775223,0.933758,0.068363,0.035629,0.005839,15.09614,14.62774 -2.042113006,-0.87016178,0.980323,0.129794,0.003098,0.009828,50.81974,7.704538 2.160948433,1.479077494,0.943696,0.074825,0.992471,0.778072,17.76086,13.36448 -0.595594375,-0.86329637,0.999068,0.45553,0.972901,0.732705,1073.447,2.195245 -0.599162967,0.555766196,0.944339,0.075299,0.853426,0.378938,17.9658,13.28034 -0.60277458,0.04749201,0.995242,0.250369,0.790276,0.371875,210.1897,3.994109 -0.363416511,-0.860226113,0.988382,0.16768,0.753714,0.363695,86.07119,5.96374 -0.486618965,0.350675668,0.944624,0.075512,0.714989,0.324441,18.05826,13.2429 -0.488998529,-0.860226113,0.993174,0.21406,0.729723,0.323841,146.5017,4.671584 -0.73801073,1.550690069,0.944624,0.075512,0.580812,0.261166,18.05826,13.2429 -0.867953372,0.931009422,0.999179,0.473244,0.578198,0.277407,1218.394,2.113077 -0.374298628,0.917113189,0.997546,0.326635,0.707543,0.30974,407.4666,3.061517 -0.878850603,1.382237742,0.997485,0.323603,0.61892,0.334752,397.5898,3.090206 1.873883689,1.731105642,0.998894,0.431762,0.99695,0.995893,904.496,2.31609 -0.123839025,1.875921409,0.999404,0.518069,0.996208,0.996239,1676.458,1.930245 0.740744128,1.831468243,0.999538,0.553874,0.999562,0.999449,2166.045,1.805464 1.222509113,1.61277572,0.999501,0.542925,0.999954,0.999948,2002.206,1.841874 1.087624014,1.318683813,0.999265,0.488657,0.999952,0.99995,1359.821,2.046425 0.599162967,1.123368898,0.998763,0.416326,0.999804,0.999831,808.3585,2.401964 1.8935477,0.851148427,0.998253,0.370021,0.99999,0.999997,572.3597,2.702551 1.396995944,-0.085713475,0.997174,0.309412,0.999894,0.999984,353.881,3.231936 1.605539075,0.753636684,0.985337,0.149995,0.999741,0.99988,68.20089,6.666895 0.793205292,0.991605682,0.996644,0.289081,0.999183,0.999596,297.9353,3.459237 0.225479239,0.40366337,0.997795,0.340027,0.997023,0.999054,453.492,2.940945 0.449438959,-0.09084076,0.993781,0.22306,0.996934,0.999197,160.8103,4.483102 1.997846693,0.560889985,0.985206,0.149346,0.999907,0.99996,67.5937,6.695867 -0.109950533,-0.011367395,0.995285,0.251326,0.991229,0.998241,212.0957,3.97889 1.094102818,-0.335845353,0.987122,0.159668,0.999193,0.999842,77.65346,6.262989 0.542594929,-0.254775223,0.977355,0.120955,0.994139,0.998968,44.15939,8.267515 0.647251451,-0.498380702,0.980323,0.129794,0.995376,0.998917,50.81974,7.704538 0.536194314,-1.235175232,0.970031,0.104793,0.994501,0.997714,33.36824,9.542611 0.426894992,-0.666129155,0.897789,0.053259,0.971946,0.979953,9.783677,18.77616 0.106439606,-0.585081056,0.960083,0.090142,0.962867,0.966886,25.05222,11.09362 -0.106439606,-0.503222555,0.965233,0.096975,0.940936,0.950183,28.76288,10.31193 -0.748266452,-1.254783556,0.969781,0.104342,0.76834,0.931916,33.092,9.583847 0.107238616,0.32977759,0.894559,0.052284,0.860669,0.934184,9.484018,19.12623 -0.537346806,-0.088385833,0.992919,0.210584,0.811555,0.946245,141.2174,4.748694 0.322754449,0.655450342,0.985269,0.149656,0.932476,0.981206,67.88373,6.681977 0.749067173,-0.007963086,0.996009,0.269432,0.986391,0.998054,250.5611,3.711506 0.319319058,0.155229452,0.987199,0.160123,0.989896,0.998346,78.1168,6.2452 0.424178791,-0.582644369,0.99038,0.183171,0.994851,0.998571,103.9462,5.45937 0.211416569,0.481424422,0.965377,0.097188,0.985318,0.994002,28.88289,10.28939 -0.317292704,0.637725631,0.994577,0.236749,0.974389,0.994064,184.3947,4.223877 -0.318302656,-0.012742027,0.995882,0.265977,0.972779,0.996001,242.8523,3.759729 0.424178791,0.547797304,0.987091,0.159485,0.991157,0.997657,77.46716,6.27019 0.52770571,0.303217457,0.995175,0.248884,0.997095,0.998412,207.2595,4.017933 -0.845671002,-0.095918954,0.99258,0.206226,0.964595,0.994523,134.7773,4.849039 0.423729448,-0.096170907,0.985074,0.148705,0.992983,0.999185,66.99774,6.724707 1.0515344,0.848466858,0.985068,0.148674,0.998878,0.999535,66.96831,6.726142 0.521649592,0.058214078,0.997161,0.308843,0.999332,0.999044,352.2099,3.237896 -0.626306849,0.44588938,0.988598,0.169174,0.97062,0.975742,87.70129,5.911089 -0.946877143,0.518026151,0.994227,0.230423,0.8624,0.970184,173.2137,4.339852 0.21119332,0.741020061,0.994915,0.24339,0.960821,0.990965,196.6708,4.108629 0,-0.178584743,0.996568,0.286509,0.980038,0.995015,291.3771,3.49029 -0.422833611,0.352667799,0.982763,0.138595,0.967675,0.993153,58.0133,7.215263 0.422833611,0.1230114,0.993198,0.214394,0.992047,0.998513,147.0157,4.664316 0.210748234,-0.179388864,0.989821,0.178426,0.993555,0.998815,98.23918,5.604575 0.105207795,-0.179445652,0.982738,0.1385,0.992219,0.99878,57.9322,7.220236 0.524385051,0.719380102,0.982737,0.138493,0.996896,0.999182,57.92648,7.220587 0.625653761,0.56216211,0.996434,0.28213,0.999026,0.999748,280.4639,3.544468 0.518404479,1.140767073,0.995296,0.251565,0.999154,0.999728,212.5717,3.975124 -0.207039411,-0.620139166,0.998306,0.374063,0.997592,0.999653,590.2304,2.673344 1.133448507,0.401921774,0.963089,0.093964,0.999194,0.999772,27.09228,10.64234 0.612872194,0.108201582,0.993762,0.22276,0.998998,0.999717,160.3183,4.48914 0.101781179,0.106888824,0.989553,0.176277,0.994797,0.998924,95.72304,5.6729 0.911398714,0.249367005,0.989529,0.176087,0.999216,0.999878,95.50317,5.679005 0.903167203,0.745947925,0.991844,0.197597,0.999333,0.999799,122.6137,5.060805 0.696866932,0.665585256,0.996598,0.287512,0.999538,0.99986,293.9212,3.478115 0.19821612,0.587335017,0.99608,0.271421,0.998165,0.999422,255.0789,3.684312 -0.099058948,-0.184918426,0.9955,0.256308,0.994129,0.998841,222.2128,3.901563 1.37797456,-0.955548938,0.982572,0.137845,0.999626,0.999936,57.37764,7.254539 -0.097799519,-1.671229499,0.935105,0.069154,0.930233,0.995009,15.40958,14.46039 0.390625497,-0.755312557,0.80234,0.035177,0.948296,0.994171,5.059202,28.42743 0.873367997,-0.541925456,0.953574,0.083127,0.991467,0.997363,21.53958,12.02982 0,1.030956775,0.967707,0.100799,0.964467,0.989474,30.96693,9.920704 0.38572854,0.099458233,0.997943,0.348864,0.992199,0.99849,486.1363,2.866449 0.38424639,0.027710841,0.989392,0.175018,0.994663,0.998948,94.26824,5.713712 0.478240988,-0.254775223,0.987973,0.164952,0.99638,0.999246,83.14381,6.062363 0.190657827,1.284793325,0.980323,0.129794,0.992561,0.997475,50.81974,7.704538 1.042169546,-1.021596687,0.998687,0.408159,0.999528,0.999925,761.3466,2.450024 0.282353129,0.512046241,0.927639,0.065044,0.975543,0.993616,13.81959,15.37428 -0.18814681,-0.532939519,0.994862,0.242297,0.971926,0.996641,194.6104,4.127172 0.282087634,-0.046079495,0.968201,0.101612,0.982953,0.997814,31.44742,9.841334 0.374883288,-0.115886311,0.986317,0.15509,0.990888,0.998919,73.08507,6.447859 0.466636404,0.367848719,0.984545,0.146209,0.995251,0.99914,64.7057,6.83953 0.278940209,0.363996088,0.993377,0.216948,0.996696,0.99937,150.9929,4.609406 -0.092893643,-0.460607199,0.993332,0.216297,0.993101,0.999184,149.9734,4.623263 0.092893643,-0.805740804,0.971915,0.10837,0.987592,0.998861,35.60662,9.227633 0.832182334,0.364848102,0.949458,0.079383,0.996554,0.998853,19.7855,12.59712 -0.276625349,-1.151023897,0.993342,0.216441,0.98859,0.997907,150.1983,4.620194 0.0922935,-0.393375383,0.910671,0.05764,0.972372,0.992142,11.19463,17.34896 -0.555043053,-0.324147407,0.974988,0.115002,0.903768,0.986716,39.98042,8.69547 0.370370794,0.29885941,0.977809,0.122198,0.974867,0.993904,45.06244,8.183451 0,-0.254775223,0.992523,0.205518,0.983604,0.995434,133.7493,4.865758 -0.463178225,-0.600437509,0.980323,0.129794,0.957314,0.993103,50.81974,7.704538 0.370714048,-0.116366896,0.964309,0.095646,0.985209,0.995093,28.01833,10.45524 0.461468285,0.228150863,0.984532,0.146149,0.993298,0.99477,64.65153,6.842322 -1.018055993,-0.18597577,0.991535,0.194273,0.925053,0.98478,118.131,5.147402 0.925932541,-1.152881432,0.98254,0.13772,0.994723,0.998705,57.27221,7.261119 0.367985696,0.643330987,0.910404,0.05754,0.979827,0.993702,11.16116,17.37919 -0.091869552,-0.392421493,0.995923,0.267066,0.985953,0.997027,245.2641,3.744387 0.549955557,0.294676709,0.975029,0.115099,0.995689,0.997797,40.0463,8.688173 0.637815374,-0.117882662,0.992468,0.204839,0.998109,0.997892,132.77,4.881873 0.272109011,-0.254775223,0.984492,0.145961,0.995294,0.993997,64.48097,6.851136 0.090538711,-1.493607308,0.980323,0.129794,0.990487,0.977956,50.81974,7.704538 0.090456813,-1.089272416,0.847537,0.041691,0.931279,0.673766,6.558985,23.98603 -0.634922768,-1.449028967,0.919174,0.061068,0.690833,0.311984,12.37223,16.37508 -1.46657074,-1.535020305,0.857457,0.043499,0.106714,0.061139,7.015435,22.98918 -1.020890537,-0.326382816,0.837821,0.040076,0.043505,0.052134,6.166036,24.95254 -0.56127369,-0.829489448,0.977723,0.12196,0.099843,0.083295,44.88842,8.19944 -0.847861886,0.891369129,0.947402,0.077674,0.061426,0.095738,19.01212,12.8743 -0.664454272,0.454950964,0.997368,0.318024,0.171692,0.313946,379.9219,3.144416 0.285306898,0.309401168,0.994318,0.232025,0.650277,0.650277,175.9985,4.309888 \ No newline at end of file diff --git a/shared/package-files/eb/ebdea1f99cf7d1b99c4f49f5aeaa04b52e70a84ea3220b151b36b0e537dd189a/blob b/shared/package-files/eb/ebdea1f99cf7d1b99c4f49f5aeaa04b52e70a84ea3220b151b36b0e537dd189a/blob new file mode 100644 index 0000000000000000000000000000000000000000..d71302b717c916734882ced5ba22f0c55a57d7f4 --- /dev/null +++ b/shared/package-files/eb/ebdea1f99cf7d1b99c4f49f5aeaa04b52e70a84ea3220b151b36b0e537dd189a/blob @@ -0,0 +1,126 @@ +# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license + +# Copyright (C) 2004-2017 Nominum, Inc. +# +# Permission to use, copy, modify, and distribute this software and its +# documentation for any purpose with or without fee is hereby granted, +# provided that the above copyright notice and this permission notice +# appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +import base64 +import binascii +import struct + +import dns.exception +import dns.immutable +import dns.rdata +import dns.rdatatype +import dns.rdtypes.util + +b32_hex_to_normal = bytes.maketrans( + b"0123456789ABCDEFGHIJKLMNOPQRSTUV", b"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567" +) +b32_normal_to_hex = bytes.maketrans( + b"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", b"0123456789ABCDEFGHIJKLMNOPQRSTUV" +) + +# hash algorithm constants +SHA1 = 1 + +# flag constants +OPTOUT = 1 + + +@dns.immutable.immutable +class Bitmap(dns.rdtypes.util.Bitmap): + type_name = "NSEC3" + + +@dns.immutable.immutable +class NSEC3(dns.rdata.Rdata): + """NSEC3 record""" + + __slots__ = ["algorithm", "flags", "iterations", "salt", "next", "windows"] + + def __init__( + self, rdclass, rdtype, algorithm, flags, iterations, salt, next, windows + ): + super().__init__(rdclass, rdtype) + self.algorithm = self._as_uint8(algorithm) + self.flags = self._as_uint8(flags) + self.iterations = self._as_uint16(iterations) + self.salt = self._as_bytes(salt, True, 255) + self.next = self._as_bytes(next, True, 255) + if not isinstance(windows, Bitmap): + windows = Bitmap(windows) + self.windows = tuple(windows.windows) + + def _next_text(self): + next = base64.b32encode(self.next).translate(b32_normal_to_hex).lower().decode() + next = next.rstrip("=") + return next + + def to_text(self, origin=None, relativize=True, **kw): + next = self._next_text() + if self.salt == b"": + salt = "-" + else: + salt = binascii.hexlify(self.salt).decode() + text = Bitmap(self.windows).to_text() + return "%u %u %u %s %s%s" % ( + self.algorithm, + self.flags, + self.iterations, + salt, + next, + text, + ) + + @classmethod + def from_text( + cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None + ): + algorithm = tok.get_uint8() + flags = tok.get_uint8() + iterations = tok.get_uint16() + salt = tok.get_string() + if salt == "-": + salt = b"" + else: + salt = binascii.unhexlify(salt.encode("ascii")) + next = tok.get_string().encode("ascii").upper().translate(b32_hex_to_normal) + if next.endswith(b"="): + raise binascii.Error("Incorrect padding") + if len(next) % 8 != 0: + next += b"=" * (8 - len(next) % 8) + next = base64.b32decode(next) + bitmap = Bitmap.from_text(tok) + return cls(rdclass, rdtype, algorithm, flags, iterations, salt, next, bitmap) + + def _to_wire(self, file, compress=None, origin=None, canonicalize=False): + l = len(self.salt) + file.write(struct.pack("!BBHB", self.algorithm, self.flags, self.iterations, l)) + file.write(self.salt) + l = len(self.next) + file.write(struct.pack("!B", l)) + file.write(self.next) + Bitmap(self.windows).to_wire(file) + + @classmethod + def from_wire_parser(cls, rdclass, rdtype, parser, origin=None): + (algorithm, flags, iterations) = parser.get_struct("!BBH") + salt = parser.get_counted_bytes() + next = parser.get_counted_bytes() + bitmap = Bitmap.from_wire_parser(parser) + return cls(rdclass, rdtype, algorithm, flags, iterations, salt, next, bitmap) + + def next_name(self, origin=None): + return dns.name.from_text(self._next_text(), origin) diff --git a/shared/package-files/eb/ebe1d2ecf401f352673b5e453fc114ff9be3aeef314ade2f3e86cd10b6998266/blob b/shared/package-files/eb/ebe1d2ecf401f352673b5e453fc114ff9be3aeef314ade2f3e86cd10b6998266/blob new file mode 100644 index 0000000000000000000000000000000000000000..68e56a771c2bf46e95ce05c9b4ac0a735620ec63 --- /dev/null +++ b/shared/package-files/eb/ebe1d2ecf401f352673b5e453fc114ff9be3aeef314ade2f3e86cd10b6998266/blob @@ -0,0 +1,3 @@ +name: nlp +dependencies: + - nltk diff --git a/shared/package-files/eb/ebe2db757239c4ae13b221be5fae8ac6b3bbb9a9aab8a6e8410f9167ec6571df/blob b/shared/package-files/eb/ebe2db757239c4ae13b221be5fae8ac6b3bbb9a9aab8a6e8410f9167ec6571df/blob new file mode 100644 index 0000000000000000000000000000000000000000..a7e30d1eda0df1983ecf8f6962706f11b7c8570a --- /dev/null +++ b/shared/package-files/eb/ebe2db757239c4ae13b221be5fae8ac6b3bbb9a9aab8a6e8410f9167ec6571df/blob @@ -0,0 +1,27 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeMetaFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace at { +namespace meta { + +struct TORCH_API structured_replication_pad1d_backward : public at::impl::MetaBase { + + + void meta(const at::Tensor & grad_output, const at::Tensor & self, at::ArrayRef padding); +}; + +} // namespace native +} // namespace at diff --git a/shared/package-files/eb/ebe52ace434157e973b3d4334901091ad7705c21eea55ab673c0063836ba444b/blob b/shared/package-files/eb/ebe52ace434157e973b3d4334901091ad7705c21eea55ab673c0063836ba444b/blob new file mode 100644 index 0000000000000000000000000000000000000000..7ab98d22c2613d49a80934047358aa1146c9f718 --- /dev/null +++ b/shared/package-files/eb/ebe52ace434157e973b3d4334901091ad7705c21eea55ab673c0063836ba444b/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor lu_solve(const at::Tensor & self, const at::Tensor & LU_data, const at::Tensor & LU_pivots); +TORCH_API at::Tensor & lu_solve_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & LU_data, const at::Tensor & LU_pivots); +TORCH_API at::Tensor & lu_solve_outf(const at::Tensor & self, const at::Tensor & LU_data, const at::Tensor & LU_pivots, at::Tensor & out); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/shared/package-files/eb/ebe5a2b4cbbcd7fd3f7a6f76d68d7856301db01b350c040942a7b806a46e0014/blob b/shared/package-files/eb/ebe5a2b4cbbcd7fd3f7a6f76d68d7856301db01b350c040942a7b806a46e0014/blob new file mode 100644 index 0000000000000000000000000000000000000000..a9c2cb15a9bd81339f2d91535b3758bb4785023e --- /dev/null +++ b/shared/package-files/eb/ebe5a2b4cbbcd7fd3f7a6f76d68d7856301db01b350c040942a7b806a46e0014/blob @@ -0,0 +1,28 @@ +# parray: +# Print the contents of a global array on stdout. +# +# Copyright (c) 1991-1993 The Regents of the University of California. +# Copyright (c) 1994 Sun Microsystems, Inc. +# +# See the file "license.terms" for information on usage and redistribution +# of this file, and for a DISCLAIMER OF ALL WARRANTIES. +# + +proc parray {a {pattern *}} { + upvar 1 $a array + if {![array exists array]} { + return -code error "\"$a\" isn't an array" + } + set maxl 0 + set names [lsort [array names array $pattern]] + foreach name $names { + if {[string length $name] > $maxl} { + set maxl [string length $name] + } + } + set maxl [expr {$maxl + [string length $a] + 2}] + foreach name $names { + set nameString [format %s(%s) $a $name] + puts stdout [format "%-*s = %s" $maxl $nameString $array($name)] + } +} diff --git a/shared/package-files/eb/ebe62bfa7e09b247ec8db6843c581a44f297e12ed1f8b8503844120bb701c9bc/blob b/shared/package-files/eb/ebe62bfa7e09b247ec8db6843c581a44f297e12ed1f8b8503844120bb701c9bc/blob new file mode 100644 index 0000000000000000000000000000000000000000..50cf29d0163555876eb7b1914bbd4ee45bc2285e --- /dev/null +++ b/shared/package-files/eb/ebe62bfa7e09b247ec8db6843c581a44f297e12ed1f8b8503844120bb701c9bc/blob @@ -0,0 +1,53 @@ +import numpy as np +import pytest + +from pandas import ( + DatetimeIndex, + NaT, + PeriodIndex, + TimedeltaIndex, +) +import pandas._testing as tm + + +class NATests: + def test_nat(self, index_without_na): + empty_index = index_without_na[:0] + + index_with_na = index_without_na.copy(deep=True) + index_with_na._data[1] = NaT + + assert empty_index._na_value is NaT + assert index_with_na._na_value is NaT + assert index_without_na._na_value is NaT + + idx = index_without_na + assert idx._can_hold_na + + tm.assert_numpy_array_equal(idx._isnan, np.array([False, False])) + assert idx.hasnans is False + + idx = index_with_na + assert idx._can_hold_na + + tm.assert_numpy_array_equal(idx._isnan, np.array([False, True])) + assert idx.hasnans is True + + +class TestDatetimeIndexNA(NATests): + @pytest.fixture + def index_without_na(self, tz_naive_fixture): + tz = tz_naive_fixture + return DatetimeIndex(["2011-01-01", "2011-01-02"], tz=tz) + + +class TestTimedeltaIndexNA(NATests): + @pytest.fixture + def index_without_na(self): + return TimedeltaIndex(["1 days", "2 days"]) + + +class TestPeriodIndexNA(NATests): + @pytest.fixture + def index_without_na(self): + return PeriodIndex(["2011-01-01", "2011-01-02"], freq="D") diff --git a/shared/package-files/eb/ebe6edbd785f959b001fdd13df0324c33664b5ee93e22c737821149ffe6e616f/blob b/shared/package-files/eb/ebe6edbd785f959b001fdd13df0324c33664b5ee93e22c737821149ffe6e616f/blob new file mode 100644 index 0000000000000000000000000000000000000000..0f7da82a0af5b1e58b724646853e8f482781778b --- /dev/null +++ b/shared/package-files/eb/ebe6edbd785f959b001fdd13df0324c33664b5ee93e22c737821149ffe6e616f/blob @@ -0,0 +1,123 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// This API is EXPERIMENTAL. + +#pragma once + +#include +#include + +#include "arrow/dataset/file_base.h" +#include "arrow/dataset/type_fwd.h" +#include "arrow/dataset/visibility.h" +#include "arrow/io/type_fwd.h" +#include "arrow/ipc/type_fwd.h" +#include "arrow/result.h" + +namespace arrow { +namespace dataset { + +/// \addtogroup dataset-file-formats +/// +/// @{ + +constexpr char kIpcTypeName[] = "ipc"; + +/// \brief A FileFormat implementation that reads from and writes to Ipc files +class ARROW_DS_EXPORT IpcFileFormat : public FileFormat { + public: + std::string type_name() const override { return kIpcTypeName; } + + IpcFileFormat(); + + bool Equals(const FileFormat& other) const override { + return type_name() == other.type_name(); + } + + Result IsSupported(const FileSource& source) const override; + + /// \brief Return the schema of the file if possible. + Result> Inspect(const FileSource& source) const override; + + Result ScanBatchesAsync( + const std::shared_ptr& options, + const std::shared_ptr& file) const override; + + Future> CountRows( + const std::shared_ptr& file, compute::Expression predicate, + const std::shared_ptr& options) override; + + Result> MakeWriter( + std::shared_ptr destination, std::shared_ptr schema, + std::shared_ptr options, + fs::FileLocator destination_locator) const override; + + std::shared_ptr DefaultWriteOptions() override; +}; + +/// \brief Per-scan options for IPC fragments +class ARROW_DS_EXPORT IpcFragmentScanOptions : public FragmentScanOptions { + public: + std::string type_name() const override { return kIpcTypeName; } + + /// Options passed to the IPC file reader. + /// included_fields, memory_pool, and use_threads are ignored. + std::shared_ptr options; + /// If present, the async scanner will enable I/O coalescing. + /// This is ignored by the sync scanner. + std::shared_ptr cache_options; +}; + +class ARROW_DS_EXPORT IpcFileWriteOptions : public FileWriteOptions { + public: + /// Options passed to ipc::MakeFileWriter. use_threads is ignored + std::shared_ptr options; + + /// custom_metadata written to the file's footer + std::shared_ptr metadata; + + protected: + explicit IpcFileWriteOptions(std::shared_ptr format) + : FileWriteOptions(std::move(format)) {} + + friend class IpcFileFormat; +}; + +class ARROW_DS_EXPORT IpcFileWriter : public FileWriter { + public: + Status Write(const std::shared_ptr& batch) override; + + private: + IpcFileWriter(std::shared_ptr destination, + std::shared_ptr writer, + std::shared_ptr schema, + std::shared_ptr options, + fs::FileLocator destination_locator); + + Future<> FinishInternal() override; + + std::shared_ptr destination_; + std::shared_ptr batch_writer_; + + friend class IpcFileFormat; +}; + +/// @} + +} // namespace dataset +} // namespace arrow diff --git a/shared/package-files/eb/ebe7036120d526cfdd6ab6815f4125694c150312a27ba5247fa1c3a7e84b420f/blob b/shared/package-files/eb/ebe7036120d526cfdd6ab6815f4125694c150312a27ba5247fa1c3a7e84b420f/blob new file mode 100644 index 0000000000000000000000000000000000000000..7400528cff4dbd1b13caa90a552e6b1612d2c6ad --- /dev/null +++ b/shared/package-files/eb/ebe7036120d526cfdd6ab6815f4125694c150312a27ba5247fa1c3a7e84b420f/blob @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///croot/jsonschema_1699041609003/work"} \ No newline at end of file diff --git a/shared/package-files/eb/ebecc3e8f0b87e6c032c2a03f118ccebcdea12a7f1813a1e619c1c0ee2bd3a68/blob b/shared/package-files/eb/ebecc3e8f0b87e6c032c2a03f118ccebcdea12a7f1813a1e619c1c0ee2bd3a68/blob new file mode 100644 index 0000000000000000000000000000000000000000..4615ab50606ee963c48c5673c93196b4188aa9b2 --- /dev/null +++ b/shared/package-files/eb/ebecc3e8f0b87e6c032c2a03f118ccebcdea12a7f1813a1e619c1c0ee2bd3a68/blob @@ -0,0 +1,190 @@ +#pragma once + +#include +#include +#include +#include +#include + +#include + +// These functions are NOT in Utils.h, because this file has a dep on Tensor.h + +#define TORCH_CHECK_TENSOR_ALL(cond, ...) \ + TORCH_CHECK((cond)._is_all_true().item(), __VA_ARGS__); + +namespace at { + +// The following are utility functions for checking that arguments +// make sense. These are particularly useful for native functions, +// which do NO argument checking by default. + +struct TORCH_API TensorArg { + // NOLINTNEXTLINE(cppcoreguidelines-avoid-const-or-ref-data-members) + const Tensor& tensor; + const char* name; + int pos; // 1-indexed + TensorArg(const Tensor& tensor, const char* name, int pos) + : tensor(tensor), name(name), pos(pos) {} + // Try to mitigate any possibility of dangling reference to temporaries. + // NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved) + TensorArg(Tensor&& tensor, const char* name, int pos) = delete; + const Tensor* operator->() const { + return &tensor; + } + const Tensor& operator*() const { + return tensor; + } +}; + +struct TORCH_API TensorGeometryArg { + TensorGeometry tensor; + const char* name; + int pos; // 1-indexed + /* implicit */ TensorGeometryArg(TensorArg arg) + : tensor(TensorGeometry{arg.tensor}), name(arg.name), pos(arg.pos) {} + TensorGeometryArg(TensorGeometry tensor, const char* name, int pos) + : tensor(std::move(tensor)), name(name), pos(pos) {} + const TensorGeometry* operator->() const { + return &tensor; + } + const TensorGeometry& operator*() const { + return tensor; + } +}; + +// A string describing which function did checks on its input +// arguments. +// TODO: Consider generalizing this into a call stack. +using CheckedFrom = const char*; + +// The undefined convention: singular operators assume their arguments +// are defined, but functions which take multiple tensors will +// implicitly filter out undefined tensors (to make it easier to perform +// tests which should apply if the tensor is defined, and should not +// otherwise.) +// +// NB: This means that the n-ary operators take lists of TensorArg, +// not TensorGeometryArg, because the Tensor to TensorGeometry +// conversion will blow up if you have undefined tensors. + +TORCH_API std::ostream& operator<<( + std::ostream& out, + const TensorGeometryArg& t); +TORCH_API void checkDim( + CheckedFrom c, + const Tensor& tensor, + const char* name, + int pos, // 1-indexed + int64_t dim); +TORCH_API void checkDim(CheckedFrom c, const TensorGeometryArg& t, int64_t dim); +// NB: this is an inclusive-exclusive range +TORCH_API void checkDimRange( + CheckedFrom c, + const TensorGeometryArg& t, + int64_t dim_start, + int64_t dim_end); +TORCH_API void checkSameDim( + CheckedFrom c, + const TensorGeometryArg& t1, + const TensorGeometryArg& t2); +TORCH_API void checkContiguous(CheckedFrom c, const TensorGeometryArg& t); +TORCH_API void checkAllContiguous(CheckedFrom c, at::ArrayRef ts); +TORCH_API void checkSize( + CheckedFrom c, + const TensorGeometryArg& t, + IntArrayRef sizes); +TORCH_API void checkSize_symint( + CheckedFrom c, + const TensorGeometryArg& t, + c10::SymIntArrayRef sizes); +TORCH_API void checkSize( + CheckedFrom c, + const TensorGeometryArg& t, + int64_t dim, + int64_t size); +TORCH_API void checkSize_symint( + CheckedFrom c, + const TensorGeometryArg& t, + int64_t dim, + const c10::SymInt& size); +TORCH_API void checkNumel( + CheckedFrom c, + const TensorGeometryArg& t, + int64_t numel); +TORCH_API void checkSameNumel( + CheckedFrom c, + const TensorArg& t1, + const TensorArg& t2); +TORCH_API void checkAllSameNumel(CheckedFrom c, ArrayRef tensors); +TORCH_API void checkScalarType(CheckedFrom c, const TensorArg& t, ScalarType s); +TORCH_API void checkScalarTypes( + CheckedFrom c, + const TensorArg& t, + at::ArrayRef l); +TORCH_API void checkSameGPU( + CheckedFrom c, + const TensorArg& t1, + const TensorArg& t2); +TORCH_API void checkAllSameGPU(CheckedFrom c, ArrayRef tensors); +TORCH_API void checkSameType( + CheckedFrom c, + const TensorArg& t1, + const TensorArg& t2); +TORCH_API void checkAllSameType(CheckedFrom c, ArrayRef tensors); +TORCH_API void checkSameSize( + CheckedFrom c, + const TensorArg& t1, + const TensorArg& t2); +TORCH_API void checkAllSameSize(CheckedFrom c, ArrayRef tensors); +TORCH_API void checkDefined(CheckedFrom c, const TensorArg& t); +TORCH_API void checkAllDefined(CheckedFrom c, at::ArrayRef t); + +// FixMe: does TensorArg slow things down? +TORCH_API void checkBackend( + CheckedFrom c, + at::ArrayRef t, + at::Backend backend); + +TORCH_API void checkDeviceType( + CheckedFrom c, + at::ArrayRef tensors, + at::DeviceType device_type); + +TORCH_API void checkLayout(CheckedFrom c, const Tensor& t, Layout layout); + +TORCH_API void checkLayout( + CheckedFrom c, + at::ArrayRef tensors, + at::Layout layout); + +// Methods for getting data_ptr if tensor is defined +TORCH_API void* maybe_data_ptr(const Tensor& tensor); +TORCH_API void* maybe_data_ptr(const TensorArg& tensor); + +TORCH_API void check_dim_size( + const Tensor& tensor, + int64_t dim, + int64_t dim_size, + int64_t size); + +namespace detail { +TORCH_API std::vector defaultStrides(IntArrayRef sizes); + +TORCH_API c10::optional> computeStride( + IntArrayRef oldshape, + IntArrayRef oldstride, + IntArrayRef newshape); + +TORCH_API c10::optional computeStride( + c10::SymIntArrayRef oldshape, + c10::SymIntArrayRef oldstride, + c10::SymIntArrayRef newshape); + +TORCH_API c10::optional computeStride( + IntArrayRef oldshape, + IntArrayRef oldstride, + const DimVector& newshape); + +} // namespace detail +} // namespace at diff --git a/shared/package-files/eb/ebf68171a9b534ea3445f7f3fb63a7963c30efbd3f89f618121dfcb44b1344c7/blob b/shared/package-files/eb/ebf68171a9b534ea3445f7f3fb63a7963c30efbd3f89f618121dfcb44b1344c7/blob new file mode 100644 index 0000000000000000000000000000000000000000..79db3964d4cc831551a4f44a00a07493b2a66881 --- /dev/null +++ b/shared/package-files/eb/ebf68171a9b534ea3445f7f3fb63a7963c30efbd3f89f618121dfcb44b1344c7/blob @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor special_legendre_polynomial_p(const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_legendre_polynomial_p_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & n); +TORCH_API at::Tensor & special_legendre_polynomial_p_outf(const at::Tensor & x, const at::Tensor & n, at::Tensor & out); + +} // namespace cuda +} // namespace at diff --git a/shared/package-files/eb/ebf76733418cd534eb7a9a9e17390875380951a14496cd9f8ff351707d0b46f8/blob b/shared/package-files/eb/ebf76733418cd534eb7a9a9e17390875380951a14496cd9f8ff351707d0b46f8/blob new file mode 100644 index 0000000000000000000000000000000000000000..75aaaba8d7c7178f9b82ca61b1b4ed92ce011ac5 --- /dev/null +++ b/shared/package-files/eb/ebf76733418cd534eb7a9a9e17390875380951a14496cd9f8ff351707d0b46f8/blob @@ -0,0 +1,118 @@ +# This file is part of Hypothesis, which may be found at +# https://github.com/HypothesisWorks/hypothesis/ +# +# Copyright the Hypothesis Authors. +# Individual contributors are listed in AUTHORS.rst and the git log. +# +# This Source Code Form is subject to the terms of the Mozilla Public License, +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at https://mozilla.org/MPL/2.0/. + +from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network, ip_network +from typing import Literal, Optional, Union + +from hypothesis.errors import InvalidArgument +from hypothesis.internal.validation import check_type +from hypothesis.strategies._internal.core import binary, sampled_from +from hypothesis.strategies._internal.numbers import integers +from hypothesis.strategies._internal.strategies import SearchStrategy +from hypothesis.strategies._internal.utils import defines_strategy + +# See https://www.iana.org/assignments/iana-ipv4-special-registry/ +SPECIAL_IPv4_RANGES = ( + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.0.0/29", + "192.0.0.8/32", + "192.0.0.9/32", + "192.0.0.10/32", + "192.0.0.170/32", + "192.0.0.171/32", + "192.0.2.0/24", + "192.31.196.0/24", + "192.52.193.0/24", + "192.88.99.0/24", + "192.168.0.0/16", + "192.175.48.0/24", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "240.0.0.0/4", + "255.255.255.255/32", +) +# and https://www.iana.org/assignments/iana-ipv6-special-registry/ +SPECIAL_IPv6_RANGES = ( + "::1/128", + "::/128", + "::ffff:0:0/96", + "64:ff9b::/96", + "64:ff9b:1::/48", + "100::/64", + "2001::/23", + "2001::/32", + "2001:1::1/128", + "2001:1::2/128", + "2001:2::/48", + "2001:3::/32", + "2001:4:112::/48", + "2001:10::/28", + "2001:20::/28", + "2001:db8::/32", + "2002::/16", + "2620:4f:8000::/48", + "fc00::/7", + "fe80::/10", +) + + +@defines_strategy(force_reusable_values=True) +def ip_addresses( + *, + v: Optional[Literal[4, 6]] = None, + network: Optional[Union[str, IPv4Network, IPv6Network]] = None, +) -> SearchStrategy[Union[IPv4Address, IPv6Address]]: + r"""Generate IP addresses - ``v=4`` for :class:`~python:ipaddress.IPv4Address`\ es, + ``v=6`` for :class:`~python:ipaddress.IPv6Address`\ es, or leave unspecified + to allow both versions. + + ``network`` may be an :class:`~python:ipaddress.IPv4Network` or + :class:`~python:ipaddress.IPv6Network`, or a string representing a network such as + ``"127.0.0.0/24"`` or ``"2001:db8::/32"``. As well as generating addresses within + a particular routable network, this can be used to generate addresses from a + reserved range listed in the + `IANA `__ + `registries `__. + + If you pass both ``v`` and ``network``, they must be for the same version. + """ + if v is not None: + check_type(int, v, "v") + if v not in (4, 6): + raise InvalidArgument(f"{v=}, but only v=4 or v=6 are valid") + if network is None: + # We use the reserved-address registries to boost the chance + # of generating one of the various special types of address. + four = binary(min_size=4, max_size=4).map(IPv4Address) | sampled_from( + SPECIAL_IPv4_RANGES + ).flatmap(lambda network: ip_addresses(network=network)) + six = binary(min_size=16, max_size=16).map(IPv6Address) | sampled_from( + SPECIAL_IPv6_RANGES + ).flatmap(lambda network: ip_addresses(network=network)) + if v == 4: + return four + if v == 6: + return six + return four | six + if isinstance(network, str): + network = ip_network(network) + check_type((IPv4Network, IPv6Network), network, "network") + assert isinstance(network, (IPv4Network, IPv6Network)) # for Mypy + if v not in (None, network.version): + raise InvalidArgument(f"{v=} is incompatible with {network=}") + addr_type = IPv4Address if network.version == 4 else IPv6Address + return integers(int(network[0]), int(network[-1])).map(addr_type) # type: ignore diff --git a/shared/package-files/eb/ebf7d0744da33d87d598d88b3ecde4dc8b46d5f0ba64f941743298552809fe7f/infer.sh b/shared/package-files/eb/ebf7d0744da33d87d598d88b3ecde4dc8b46d5f0ba64f941743298552809fe7f/infer.sh new file mode 100644 index 0000000000000000000000000000000000000000..edd87c77dcfac84367e7779f773134f50daab37a --- /dev/null +++ b/shared/package-files/eb/ebf7d0744da33d87d598d88b3ecde4dc8b46d5f0ba64f941743298552809fe7f/infer.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -euo pipefail +export NUMPY_MADVISE_HUGEPAGE=0 +root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +export PYTHONDONTWRITEBYTECODE=1 OMP_NUM_THREADS=4 OPENBLAS_NUM_THREADS=1 DGLBACKEND=pytorch +exec /opt/glacier/bin/python "$root/infer.py" "$@" diff --git a/shared/package-files/eb/ebf86af7c4861b48f4240f2a631f7a59c20c6522d6e30e3ad105e1fce33f71c8/blob b/shared/package-files/eb/ebf86af7c4861b48f4240f2a631f7a59c20c6522d6e30e3ad105e1fce33f71c8/blob new file mode 100644 index 0000000000000000000000000000000000000000..ae0ce4e7c3d273b537fa3653784e73be68ebb441 Binary files /dev/null and b/shared/package-files/eb/ebf86af7c4861b48f4240f2a631f7a59c20c6522d6e30e3ad105e1fce33f71c8/blob differ diff --git a/shared/package-files/eb/ebfa370e6e1f4f747e4d91229ee7a5d9515d66d87404e80f4cf15848421c0d7d/blob b/shared/package-files/eb/ebfa370e6e1f4f747e4d91229ee7a5d9515d66d87404e80f4cf15848421c0d7d/blob new file mode 100644 index 0000000000000000000000000000000000000000..20aefd9154016aac8313a6e849a4b549db706155 --- /dev/null +++ b/shared/package-files/eb/ebfa370e6e1f4f747e4d91229ee7a5d9515d66d87404e80f4cf15848421c0d7d/blob @@ -0,0 +1,3099 @@ +""" Tests from Michael Wester's 1999 paper "Review of CAS mathematical +capabilities". + +http://www.math.unm.edu/~wester/cas/book/Wester.pdf +See also http://math.unm.edu/~wester/cas_review.html for detailed output of +each tested system. +""" + +from sympy.assumptions.ask import Q, ask +from sympy.assumptions.refine import refine +from sympy.concrete.products import product +from sympy.core import EulerGamma +from sympy.core.evalf import N +from sympy.core.function import (Derivative, Function, Lambda, Subs, + diff, expand, expand_func) +from sympy.core.mul import Mul +from sympy.core.numbers import (AlgebraicNumber, E, I, Rational, igcd, + nan, oo, pi, zoo) +from sympy.core.relational import Eq, Lt +from sympy.core.singleton import S +from sympy.core.symbol import Dummy, Symbol, symbols +from sympy.functions.combinatorial.factorials import (rf, binomial, + factorial, factorial2) +from sympy.functions.combinatorial.numbers import bernoulli, fibonacci +from sympy.functions.elementary.complexes import (conjugate, im, re, + sign) +from sympy.functions.elementary.exponential import LambertW, exp, log +from sympy.functions.elementary.hyperbolic import (asinh, cosh, sinh, + tanh) +from sympy.functions.elementary.integers import ceiling, floor +from sympy.functions.elementary.miscellaneous import Max, Min, sqrt +from sympy.functions.elementary.piecewise import Piecewise +from sympy.functions.elementary.trigonometric import (acos, acot, asin, + atan, cos, cot, csc, sec, sin, tan) +from sympy.functions.special.bessel import besselj +from sympy.functions.special.delta_functions import DiracDelta +from sympy.functions.special.elliptic_integrals import (elliptic_e, + elliptic_f) +from sympy.functions.special.gamma_functions import gamma, polygamma +from sympy.functions.special.hyper import hyper +from sympy.functions.special.polynomials import (assoc_legendre, + chebyshevt) +from sympy.functions.special.zeta_functions import polylog +from sympy.geometry.util import idiff +from sympy.logic.boolalg import And +from sympy.matrices.dense import hessian, wronskian +from sympy.matrices.expressions.matmul import MatMul +from sympy.ntheory.continued_fraction import ( + continued_fraction_convergents as cf_c, + continued_fraction_iterator as cf_i, continued_fraction_periodic as + cf_p, continued_fraction_reduce as cf_r) +from sympy.ntheory.factor_ import factorint, totient +from sympy.ntheory.generate import primerange +from sympy.ntheory.partitions_ import npartitions +from sympy.polys.domains.integerring import ZZ +from sympy.polys.orthopolys import legendre_poly +from sympy.polys.partfrac import apart +from sympy.polys.polytools import Poly, factor, gcd, resultant +from sympy.series.limits import limit +from sympy.series.order import O +from sympy.series.residues import residue +from sympy.series.series import series +from sympy.sets.fancysets import ImageSet +from sympy.sets.sets import FiniteSet, Intersection, Interval, Union +from sympy.simplify.combsimp import combsimp +from sympy.simplify.hyperexpand import hyperexpand +from sympy.simplify.powsimp import powdenest, powsimp +from sympy.simplify.radsimp import radsimp +from sympy.simplify.simplify import logcombine, simplify +from sympy.simplify.sqrtdenest import sqrtdenest +from sympy.simplify.trigsimp import trigsimp +from sympy.solvers.solvers import solve + +import mpmath +from sympy.functions.combinatorial.numbers import stirling +from sympy.functions.special.delta_functions import Heaviside +from sympy.functions.special.error_functions import Ci, Si, erf +from sympy.functions.special.zeta_functions import zeta +from sympy.testing.pytest import (XFAIL, slow, SKIP, skip, ON_CI, + raises) +from sympy.utilities.iterables import partitions +from mpmath import mpi, mpc +from sympy.matrices import Matrix, GramSchmidt, eye +from sympy.matrices.expressions.blockmatrix import BlockMatrix, block_collapse +from sympy.matrices.expressions import MatrixSymbol, ZeroMatrix +from sympy.physics.quantum import Commutator +from sympy.polys.rings import PolyRing +from sympy.polys.fields import FracField +from sympy.polys.solvers import solve_lin_sys +from sympy.concrete import Sum +from sympy.concrete.products import Product +from sympy.integrals import integrate +from sympy.integrals.transforms import laplace_transform,\ + inverse_laplace_transform, LaplaceTransform, fourier_transform,\ + mellin_transform +from sympy.solvers.recurr import rsolve +from sympy.solvers.solveset import solveset, solveset_real, linsolve +from sympy.solvers.ode import dsolve +from sympy.core.relational import Equality +from itertools import islice, takewhile +from sympy.series.formal import fps +from sympy.series.fourier import fourier_series +from sympy.calculus.util import minimum + + +EmptySet = S.EmptySet +R = Rational +x, y, z = symbols('x y z') +i, j, k, l, m, n = symbols('i j k l m n', integer=True) +f = Function('f') +g = Function('g') + +# A. Boolean Logic and Quantifier Elimination +# Not implemented. + +# B. Set Theory + + +def test_B1(): + assert (FiniteSet(i, j, j, k, k, k) | FiniteSet(l, k, j) | + FiniteSet(j, m, j)) == FiniteSet(i, j, k, l, m) + + +def test_B2(): + assert (FiniteSet(i, j, j, k, k, k) & FiniteSet(l, k, j) & + FiniteSet(j, m, j)) == Intersection({j, m}, {i, j, k}, {j, k, l}) + # Previous output below. Not sure why that should be the expected output. + # There should probably be a way to rewrite Intersections that way but I + # don't see why an Intersection should evaluate like that: + # + # == Union({j}, Intersection({m}, Union({j, k}, Intersection({i}, {l})))) + + +def test_B3(): + assert (FiniteSet(i, j, k, l, m) - FiniteSet(j) == + FiniteSet(i, k, l, m)) + + +def test_B4(): + assert (FiniteSet(*(FiniteSet(i, j)*FiniteSet(k, l))) == + FiniteSet((i, k), (i, l), (j, k), (j, l))) + + +# C. Numbers + + +def test_C1(): + assert (factorial(50) == + 30414093201713378043612608166064768844377641568960512000000000000) + + +def test_C2(): + assert (factorint(factorial(50)) == {2: 47, 3: 22, 5: 12, 7: 8, + 11: 4, 13: 3, 17: 2, 19: 2, 23: 2, 29: 1, 31: 1, 37: 1, + 41: 1, 43: 1, 47: 1}) + + +def test_C3(): + assert (factorial2(10), factorial2(9)) == (3840, 945) + + +# Base conversions; not really implemented by SymPy +# Whatever. Take credit! +def test_C4(): + assert 0xABC == 2748 + + +def test_C5(): + assert 123 == int('234', 7) + + +def test_C6(): + assert int('677', 8) == int('1BF', 16) == 447 + + +def test_C7(): + assert log(32768, 8) == 5 + + +def test_C8(): + # Modular multiplicative inverse. Would be nice if divmod could do this. + assert ZZ.invert(5, 7) == 3 + assert ZZ.invert(5, 6) == 5 + + +def test_C9(): + assert igcd(igcd(1776, 1554), 5698) == 74 + + +def test_C10(): + x = 0 + for n in range(2, 11): + x += R(1, n) + assert x == R(4861, 2520) + + +def test_C11(): + assert R(1, 7) == S('0.[142857]') + + +def test_C12(): + assert R(7, 11) * R(22, 7) == 2 + + +def test_C13(): + test = R(10, 7) * (1 + R(29, 1000)) ** R(1, 3) + good = 3 ** R(1, 3) + assert test == good + + +def test_C14(): + assert sqrtdenest(sqrt(2*sqrt(3) + 4)) == 1 + sqrt(3) + + +def test_C15(): + test = sqrtdenest(sqrt(14 + 3*sqrt(3 + 2*sqrt(5 - 12*sqrt(3 - 2*sqrt(2)))))) + good = sqrt(2) + 3 + assert test == good + + +def test_C16(): + test = sqrtdenest(sqrt(10 + 2*sqrt(6) + 2*sqrt(10) + 2*sqrt(15))) + good = sqrt(2) + sqrt(3) + sqrt(5) + assert test == good + + +def test_C17(): + test = radsimp((sqrt(3) + sqrt(2)) / (sqrt(3) - sqrt(2))) + good = 5 + 2*sqrt(6) + assert test == good + + +def test_C18(): + assert simplify((sqrt(-2 + sqrt(-5)) * sqrt(-2 - sqrt(-5))).expand(complex=True)) == 3 + + +@XFAIL +def test_C19(): + assert radsimp(simplify((90 + 34*sqrt(7)) ** R(1, 3))) == 3 + sqrt(7) + + +def test_C20(): + inside = (135 + 78*sqrt(3)) + test = AlgebraicNumber((inside**R(2, 3) + 3) * sqrt(3) / inside**R(1, 3)) + assert simplify(test) == AlgebraicNumber(12) + + +def test_C21(): + assert simplify(AlgebraicNumber((41 + 29*sqrt(2)) ** R(1, 5))) == \ + AlgebraicNumber(1 + sqrt(2)) + + +@XFAIL +def test_C22(): + test = simplify(((6 - 4*sqrt(2))*log(3 - 2*sqrt(2)) + (3 - 2*sqrt(2))*log(17 + - 12*sqrt(2)) + 32 - 24*sqrt(2)) / (48*sqrt(2) - 72)) + good = sqrt(2)/3 - log(sqrt(2) - 1)/3 + assert test == good + + +def test_C23(): + assert 2 * oo - 3 is oo + + +@XFAIL +def test_C24(): + raise NotImplementedError("2**aleph_null == aleph_1") + +# D. Numerical Analysis + + +def test_D1(): + assert 0.0 / sqrt(2) == 0.0 + + +def test_D2(): + assert str(exp(-1000000).evalf()) == '3.29683147808856e-434295' + + +def test_D3(): + assert exp(pi*sqrt(163)).evalf(50).num.ae(262537412640768744) + + +def test_D4(): + assert floor(R(-5, 3)) == -2 + assert ceiling(R(-5, 3)) == -1 + + +@XFAIL +def test_D5(): + raise NotImplementedError("cubic_spline([1, 2, 4, 5], [1, 4, 2, 3], x)(3) == 27/8") + + +@XFAIL +def test_D6(): + raise NotImplementedError("translate sum(a[i]*x**i, (i,1,n)) to FORTRAN") + + +@XFAIL +def test_D7(): + raise NotImplementedError("translate sum(a[i]*x**i, (i,1,n)) to C") + + +@XFAIL +def test_D8(): + # One way is to cheat by converting the sum to a string, + # and replacing the '[' and ']' with ''. + # E.g., horner(S(str(_).replace('[','').replace(']',''))) + raise NotImplementedError("apply Horner's rule to sum(a[i]*x**i, (i,1,5))") + + +@XFAIL +def test_D9(): + raise NotImplementedError("translate D8 to FORTRAN") + + +@XFAIL +def test_D10(): + raise NotImplementedError("translate D8 to C") + + +@XFAIL +def test_D11(): + #Is there a way to use count_ops? + raise NotImplementedError("flops(sum(product(f[i][k], (i,1,k)), (k,1,n)))") + + +@XFAIL +def test_D12(): + assert (mpi(-4, 2) * x + mpi(1, 3)) ** 2 == mpi(-8, 16)*x**2 + mpi(-24, 12)*x + mpi(1, 9) + + +@XFAIL +def test_D13(): + raise NotImplementedError("discretize a PDE: diff(f(x,t),t) == diff(diff(f(x,t),x),x)") + +# E. Statistics +# See scipy; all of this is numerical. + +# F. Combinatorial Theory. + + +def test_F1(): + assert rf(x, 3) == x*(1 + x)*(2 + x) + + +def test_F2(): + assert expand_func(binomial(n, 3)) == n*(n - 1)*(n - 2)/6 + + +@XFAIL +def test_F3(): + assert combsimp(2**n * factorial(n) * factorial2(2*n - 1)) == factorial(2*n) + + +@XFAIL +def test_F4(): + assert combsimp(2**n * factorial(n) * product(2*k - 1, (k, 1, n))) == factorial(2*n) + + +@XFAIL +def test_F5(): + assert gamma(n + R(1, 2)) / sqrt(pi) / factorial(n) == factorial(2*n)/2**(2*n)/factorial(n)**2 + + +def test_F6(): + partTest = [p.copy() for p in partitions(4)] + partDesired = [{4: 1}, {1: 1, 3: 1}, {2: 2}, {1: 2, 2:1}, {1: 4}] + assert partTest == partDesired + + +def test_F7(): + assert npartitions(4) == 5 + + +def test_F8(): + assert stirling(5, 2, signed=True) == -50 # if signed, then kind=1 + + +def test_F9(): + assert totient(1776) == 576 + +# G. Number Theory + + +def test_G1(): + assert list(primerange(999983, 1000004)) == [999983, 1000003] + + +@XFAIL +def test_G2(): + raise NotImplementedError("find the primitive root of 191 == 19") + + +@XFAIL +def test_G3(): + raise NotImplementedError("(a+b)**p mod p == a**p + b**p mod p; p prime") + +# ... G14 Modular equations are not implemented. + +def test_G15(): + assert Rational(sqrt(3).evalf()).limit_denominator(15) == R(26, 15) + assert list(takewhile(lambda x: x.q <= 15, cf_c(cf_i(sqrt(3)))))[-1] == \ + R(26, 15) + + +def test_G16(): + assert list(islice(cf_i(pi),10)) == [3, 7, 15, 1, 292, 1, 1, 1, 2, 1] + + +def test_G17(): + assert cf_p(0, 1, 23) == [4, [1, 3, 1, 8]] + + +def test_G18(): + assert cf_p(1, 2, 5) == [[1]] + assert cf_r([[1]]).expand() == S.Half + sqrt(5)/2 + + +@XFAIL +def test_G19(): + s = symbols('s', integer=True, positive=True) + it = cf_i((exp(1/s) - 1)/(exp(1/s) + 1)) + assert list(islice(it, 5)) == [0, 2*s, 6*s, 10*s, 14*s] + + +def test_G20(): + s = symbols('s', integer=True, positive=True) + # Wester erroneously has this as -s + sqrt(s**2 + 1) + assert cf_r([[2*s]]) == s + sqrt(s**2 + 1) + + +@XFAIL +def test_G20b(): + s = symbols('s', integer=True, positive=True) + assert cf_p(s, 1, s**2 + 1) == [[2*s]] + + +# H. Algebra + + +def test_H1(): + assert simplify(2*2**n) == simplify(2**(n + 1)) + assert powdenest(2*2**n) == simplify(2**(n + 1)) + + +def test_H2(): + assert powsimp(4 * 2**n) == 2**(n + 2) + + +def test_H3(): + assert (-1)**(n*(n + 1)) == 1 + + +def test_H4(): + expr = factor(6*x - 10) + assert type(expr) is Mul + assert expr.args[0] == 2 + assert expr.args[1] == 3*x - 5 + +p1 = 64*x**34 - 21*x**47 - 126*x**8 - 46*x**5 - 16*x**60 - 81 +p2 = 72*x**60 - 25*x**25 - 19*x**23 - 22*x**39 - 83*x**52 + 54*x**10 + 81 +q = 34*x**19 - 25*x**16 + 70*x**7 + 20*x**3 - 91*x - 86 + + +def test_H5(): + assert gcd(p1, p2, x) == 1 + + +def test_H6(): + assert gcd(expand(p1 * q), expand(p2 * q)) == q + + +def test_H7(): + p1 = 24*x*y**19*z**8 - 47*x**17*y**5*z**8 + 6*x**15*y**9*z**2 - 3*x**22 + 5 + p2 = 34*x**5*y**8*z**13 + 20*x**7*y**7*z**7 + 12*x**9*y**16*z**4 + 80*y**14*z + assert gcd(p1, p2, x, y, z) == 1 + + +def test_H8(): + p1 = 24*x*y**19*z**8 - 47*x**17*y**5*z**8 + 6*x**15*y**9*z**2 - 3*x**22 + 5 + p2 = 34*x**5*y**8*z**13 + 20*x**7*y**7*z**7 + 12*x**9*y**16*z**4 + 80*y**14*z + q = 11*x**12*y**7*z**13 - 23*x**2*y**8*z**10 + 47*x**17*y**5*z**8 + assert gcd(p1 * q, p2 * q, x, y, z) == q + + +def test_H9(): + x = Symbol('x', zero=False) + p1 = 2*x**(n + 4) - x**(n + 2) + p2 = 4*x**(n + 1) + 3*x**n + assert gcd(p1, p2) == x**n + + +def test_H10(): + p1 = 3*x**4 + 3*x**3 + x**2 - x - 2 + p2 = x**3 - 3*x**2 + x + 5 + assert resultant(p1, p2, x) == 0 + + +def test_H11(): + assert resultant(p1 * q, p2 * q, x) == 0 + + +def test_H12(): + num = x**2 - 4 + den = x**2 + 4*x + 4 + assert simplify(num/den) == (x - 2)/(x + 2) + + +@XFAIL +def test_H13(): + assert simplify((exp(x) - 1) / (exp(x/2) + 1)) == exp(x/2) - 1 + + +def test_H14(): + p = (x + 1) ** 20 + ep = expand(p) + assert ep == (1 + 20*x + 190*x**2 + 1140*x**3 + 4845*x**4 + 15504*x**5 + + 38760*x**6 + 77520*x**7 + 125970*x**8 + 167960*x**9 + 184756*x**10 + + 167960*x**11 + 125970*x**12 + 77520*x**13 + 38760*x**14 + 15504*x**15 + + 4845*x**16 + 1140*x**17 + 190*x**18 + 20*x**19 + x**20) + dep = diff(ep, x) + assert dep == (20 + 380*x + 3420*x**2 + 19380*x**3 + 77520*x**4 + + 232560*x**5 + 542640*x**6 + 1007760*x**7 + 1511640*x**8 + 1847560*x**9 + + 1847560*x**10 + 1511640*x**11 + 1007760*x**12 + 542640*x**13 + + 232560*x**14 + 77520*x**15 + 19380*x**16 + 3420*x**17 + 380*x**18 + + 20*x**19) + assert factor(dep) == 20*(1 + x)**19 + + +def test_H15(): + assert simplify(Mul(*[x - r for r in solveset(x**3 + x**2 - 7)])) == x**3 + x**2 - 7 + + +def test_H16(): + assert factor(x**100 - 1) == ((x - 1)*(x + 1)*(x**2 + 1)*(x**4 - x**3 + + x**2 - x + 1)*(x**4 + x**3 + x**2 + x + 1)*(x**8 - x**6 + x**4 + - x**2 + 1)*(x**20 - x**15 + x**10 - x**5 + 1)*(x**20 + x**15 + x**10 + + x**5 + 1)*(x**40 - x**30 + x**20 - x**10 + 1)) + + +def test_H17(): + assert simplify(factor(expand(p1 * p2)) - p1*p2) == 0 + + +@XFAIL +def test_H18(): + # Factor over complex rationals. + test = factor(4*x**4 + 8*x**3 + 77*x**2 + 18*x + 153) + good = (2*x + 3*I)*(2*x - 3*I)*(x + 1 - 4*I)*(x + 1 + 4*I) + assert test == good + + +def test_H19(): + a = symbols('a') + # The idea is to let a**2 == 2, then solve 1/(a-1). Answer is a+1") + assert Poly(a - 1).invert(Poly(a**2 - 2)) == a + 1 + + +@XFAIL +def test_H20(): + raise NotImplementedError("let a**2==2; (x**3 + (a-2)*x**2 - " + + "(2*a+3)*x - 3*a) / (x**2-2) = (x**2 - 2*x - 3) / (x-a)") + + +@XFAIL +def test_H21(): + raise NotImplementedError("evaluate (b+c)**4 assuming b**3==2, c**2==3. \ + Answer is 2*b + 8*c + 18*b**2 + 12*b*c + 9") + + +def test_H22(): + assert factor(x**4 - 3*x**2 + 1, modulus=5) == (x - 2)**2 * (x + 2)**2 + + +def test_H23(): + f = x**11 + x + 1 + g = (x**2 + x + 1) * (x**9 - x**8 + x**6 - x**5 + x**3 - x**2 + 1) + assert factor(f, modulus=65537) == g + + +def test_H24(): + phi = AlgebraicNumber(S.GoldenRatio.expand(func=True), alias='phi') + assert factor(x**4 - 3*x**2 + 1, extension=phi) == \ + (x - phi)*(x + 1 - phi)*(x - 1 + phi)*(x + phi) + + +def test_H25(): + e = (x - 2*y**2 + 3*z**3) ** 20 + assert factor(expand(e)) == e + + +def test_H26(): + g = expand((sin(x) - 2*cos(y)**2 + 3*tan(z)**3)**20) + assert factor(g, expand=False) == (-sin(x) + 2*cos(y)**2 - 3*tan(z)**3)**20 + + +def test_H27(): + f = 24*x*y**19*z**8 - 47*x**17*y**5*z**8 + 6*x**15*y**9*z**2 - 3*x**22 + 5 + g = 34*x**5*y**8*z**13 + 20*x**7*y**7*z**7 + 12*x**9*y**16*z**4 + 80*y**14*z + h = -2*z*y**7 \ + *(6*x**9*y**9*z**3 + 10*x**7*z**6 + 17*y*x**5*z**12 + 40*y**7) \ + *(3*x**22 + 47*x**17*y**5*z**8 - 6*x**15*y**9*z**2 - 24*x*y**19*z**8 - 5) + assert factor(expand(f*g)) == h + + +@XFAIL +def test_H28(): + raise NotImplementedError("expand ((1 - c**2)**5 * (1 - s**2)**5 * " + + "(c**2 + s**2)**10) with c**2 + s**2 = 1. Answer is c**10*s**10.") + + +@XFAIL +def test_H29(): + assert factor(4*x**2 - 21*x*y + 20*y**2, modulus=3) == (x + y)*(x - y) + + +def test_H30(): + test = factor(x**3 + y**3, extension=sqrt(-3)) + answer = (x + y)*(x + y*(-R(1, 2) - sqrt(3)/2*I))*(x + y*(-R(1, 2) + sqrt(3)/2*I)) + assert answer == test + + +def test_H31(): + f = (x**2 + 2*x + 3)/(x**3 + 4*x**2 + 5*x + 2) + g = 2 / (x + 1)**2 - 2 / (x + 1) + 3 / (x + 2) + assert apart(f) == g + + +@XFAIL +def test_H32(): # issue 6558 + raise NotImplementedError("[A*B*C - (A*B*C)**(-1)]*A*C*B (product \ + of a non-commuting product and its inverse)") + + +def test_H33(): + A, B, C = symbols('A, B, C', commutative=False) + assert (Commutator(A, Commutator(B, C)) + + Commutator(B, Commutator(C, A)) + + Commutator(C, Commutator(A, B))).doit().expand() == 0 + + +# I. Trigonometry + +def test_I1(): + assert tan(pi*R(7, 10)) == -sqrt(1 + 2/sqrt(5)) + + +@XFAIL +def test_I2(): + assert sqrt((1 + cos(6))/2) == -cos(3) + + +def test_I3(): + assert cos(n*pi) + sin((4*n - 1)*pi/2) == (-1)**n - 1 + + +def test_I4(): + assert refine(cos(pi*cos(n*pi)) + sin(pi/2*cos(n*pi)), Q.integer(n)) == (-1)**n - 1 + + +@XFAIL +def test_I5(): + assert sin((n**5/5 + n**4/2 + n**3/3 - n/30) * pi) == 0 + + +@XFAIL +def test_I6(): + raise NotImplementedError("assuming -3*pi pi**E) + + +@XFAIL +def test_N2(): + x = symbols('x', real=True) + assert ask(x**4 - x + 1 > 0) is True + assert ask(x**4 - x + 1 > 1) is False + + +@XFAIL +def test_N3(): + x = symbols('x', real=True) + assert ask(And(Lt(-1, x), Lt(x, 1)), abs(x) < 1 ) + +@XFAIL +def test_N4(): + x, y = symbols('x y', real=True) + assert ask(2*x**2 > 2*y**2, (x > y) & (y > 0)) is True + + +@XFAIL +def test_N5(): + x, y, k = symbols('x y k', real=True) + assert ask(k*x**2 > k*y**2, (x > y) & (y > 0) & (k > 0)) is True + + +@slow +@XFAIL +def test_N6(): + x, y, k, n = symbols('x y k n', real=True) + assert ask(k*x**n > k*y**n, (x > y) & (y > 0) & (k > 0) & (n > 0)) is True + + +@XFAIL +def test_N7(): + x, y = symbols('x y', real=True) + assert ask(y > 0, (x > 1) & (y >= x - 1)) is True + + +@XFAIL +@slow +def test_N8(): + x, y, z = symbols('x y z', real=True) + assert ask(Eq(x, y) & Eq(y, z), + (x >= y) & (y >= z) & (z >= x)) + + +def test_N9(): + x = Symbol('x') + assert solveset(abs(x - 1) > 2, domain=S.Reals) == Union(Interval(-oo, -1, False, True), + Interval(3, oo, True)) + + +def test_N10(): + x = Symbol('x') + p = (x - 1)*(x - 2)*(x - 3)*(x - 4)*(x - 5) + assert solveset(expand(p) < 0, domain=S.Reals) == Union(Interval(-oo, 1, True, True), + Interval(2, 3, True, True), + Interval(4, 5, True, True)) + + +def test_N11(): + x = Symbol('x') + assert solveset(6/(x - 3) <= 3, domain=S.Reals) == Union(Interval(-oo, 3, True, True), Interval(5, oo)) + + +def test_N12(): + x = Symbol('x') + assert solveset(sqrt(x) < 2, domain=S.Reals) == Interval(0, 4, False, True) + + +def test_N13(): + x = Symbol('x') + assert solveset(sin(x) < 2, domain=S.Reals) == S.Reals + + +@XFAIL +def test_N14(): + x = Symbol('x') + # Gives 'Union(Interval(Integer(0), Mul(Rational(1, 2), pi), false, true), + # Interval(Mul(Rational(1, 2), pi), Mul(Integer(2), pi), true, false))' + # which is not the correct answer, but the provided also seems wrong. + assert solveset(sin(x) < 1, x, domain=S.Reals) == Union(Interval(-oo, pi/2, True, True), + Interval(pi/2, oo, True, True)) + + +def test_N15(): + r, t = symbols('r t') + # raises NotImplementedError: only univariate inequalities are supported + solveset(abs(2*r*(cos(t) - 1) + 1) <= 1, r, S.Reals) + + +def test_N16(): + r, t = symbols('r t') + solveset((r**2)*((cos(t) - 4)**2)*sin(t)**2 < 9, r, S.Reals) + + +@XFAIL +def test_N17(): + # currently only univariate inequalities are supported + assert solveset((x + y > 0, x - y < 0), (x, y)) == (abs(x) < y) + + +def test_O1(): + M = Matrix((1 + I, -2, 3*I)) + assert sqrt(expand(M.dot(M.H))) == sqrt(15) + + +def test_O2(): + assert Matrix((2, 2, -3)).cross(Matrix((1, 3, 1))) == Matrix([[11], + [-5], + [4]]) + +# The vector module has no way of representing vectors symbolically (without +# respect to a basis) +@XFAIL +def test_O3(): + # assert (va ^ vb) | (vc ^ vd) == -(va | vc)*(vb | vd) + (va | vd)*(vb | vc) + raise NotImplementedError("""The vector module has no way of representing + vectors symbolically (without respect to a basis)""") + +def test_O4(): + from sympy.vector import CoordSys3D, Del + N = CoordSys3D("N") + delop = Del() + i, j, k = N.base_vectors() + x, y, z = N.base_scalars() + F = i*(x*y*z) + j*((x*y*z)**2) + k*((y**2)*(z**3)) + assert delop.cross(F).doit() == (-2*x**2*y**2*z + 2*y*z**3)*i + x*y*j + (2*x*y**2*z**2 - x*z)*k + +@XFAIL +def test_O5(): + #assert grad|(f^g)-g|(grad^f)+f|(grad^g) == 0 + raise NotImplementedError("""The vector module has no way of representing + vectors symbolically (without respect to a basis)""") + +#testO8-O9 MISSING!! + + +def test_O10(): + L = [Matrix([2, 3, 5]), Matrix([3, 6, 2]), Matrix([8, 3, 6])] + assert GramSchmidt(L) == [Matrix([ + [2], + [3], + [5]]), + Matrix([ + [R(23, 19)], + [R(63, 19)], + [R(-47, 19)]]), + Matrix([ + [R(1692, 353)], + [R(-1551, 706)], + [R(-423, 706)]])] + + +def test_P1(): + assert Matrix(3, 3, lambda i, j: j - i).diagonal(-1) == Matrix( + 1, 2, [-1, -1]) + + +def test_P2(): + M = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) + M.row_del(1) + M.col_del(2) + assert M == Matrix([[1, 2], + [7, 8]]) + + +def test_P3(): + A = Matrix([ + [11, 12, 13, 14], + [21, 22, 23, 24], + [31, 32, 33, 34], + [41, 42, 43, 44]]) + + A11 = A[0:3, 1:4] + A12 = A[(0, 1, 3), (2, 0, 3)] + A21 = A + A221 = -A[0:2, 2:4] + A222 = -A[(3, 0), (2, 1)] + A22 = BlockMatrix([[A221, A222]]).T + rows = [[-A11, A12], [A21, A22]] + raises(ValueError, lambda: BlockMatrix(rows)) + B = Matrix(rows) + assert B == Matrix([ + [-12, -13, -14, 13, 11, 14], + [-22, -23, -24, 23, 21, 24], + [-32, -33, -34, 43, 41, 44], + [11, 12, 13, 14, -13, -23], + [21, 22, 23, 24, -14, -24], + [31, 32, 33, 34, -43, -13], + [41, 42, 43, 44, -42, -12]]) + + +@XFAIL +def test_P4(): + raise NotImplementedError("Block matrix diagonalization not supported") + + +def test_P5(): + M = Matrix([[7, 11], + [3, 8]]) + assert M % 2 == Matrix([[1, 1], + [1, 0]]) + + +def test_P6(): + M = Matrix([[cos(x), sin(x)], + [-sin(x), cos(x)]]) + assert M.diff(x, 2) == Matrix([[-cos(x), -sin(x)], + [sin(x), -cos(x)]]) + + +def test_P7(): + M = Matrix([[x, y]])*( + z*Matrix([[1, 3, 5], + [2, 4, 6]]) + Matrix([[7, -9, 11], + [-8, 10, -12]])) + assert M == Matrix([[x*(z + 7) + y*(2*z - 8), x*(3*z - 9) + y*(4*z + 10), + x*(5*z + 11) + y*(6*z - 12)]]) + + +def test_P8(): + M = Matrix([[1, -2*I], + [-3*I, 4]]) + assert M.norm(ord=S.Infinity) == 7 + + +def test_P9(): + a, b, c = symbols('a b c', nonzero=True) + M = Matrix([[a/(b*c), 1/c, 1/b], + [1/c, b/(a*c), 1/a], + [1/b, 1/a, c/(a*b)]]) + assert factor(M.norm('fro')) == (a**2 + b**2 + c**2)/(abs(a)*abs(b)*abs(c)) + + +@XFAIL +def test_P10(): + M = Matrix([[1, 2 + 3*I], + [f(4 - 5*I), 6]]) + # conjugate(f(4 - 5*i)) is not simplified to f(4+5*I) + assert M.H == Matrix([[1, f(4 + 5*I)], + [2 + 3*I, 6]]) + + +@XFAIL +def test_P11(): + # raises NotImplementedError("Matrix([[x,y],[1,x*y]]).inv() + # not simplifying to extract common factor") + assert Matrix([[x, y], + [1, x*y]]).inv() == (1/(x**2 - 1))*Matrix([[x, -1], + [-1/y, x/y]]) + + +def test_P11_workaround(): + # This test was changed to inverse method ADJ because it depended on the + # specific form of inverse returned from the 'GE' method which has changed. + M = Matrix([[x, y], [1, x*y]]).inv('ADJ') + c = gcd(tuple(M)) + assert MatMul(c, M/c, evaluate=False) == MatMul(c, Matrix([ + [x*y, -y], + [ -1, x]]), evaluate=False) + + +def test_P12(): + A11 = MatrixSymbol('A11', n, n) + A12 = MatrixSymbol('A12', n, n) + A22 = MatrixSymbol('A22', n, n) + B = BlockMatrix([[A11, A12], + [ZeroMatrix(n, n), A22]]) + assert block_collapse(B.I) == BlockMatrix([[A11.I, (-1)*A11.I*A12*A22.I], + [ZeroMatrix(n, n), A22.I]]) + + +def test_P13(): + M = Matrix([[1, x - 2, x - 3], + [x - 1, x**2 - 3*x + 6, x**2 - 3*x - 2], + [x - 2, x**2 - 8, 2*(x**2) - 12*x + 14]]) + L, U, _ = M.LUdecomposition() + assert simplify(L) == Matrix([[1, 0, 0], + [x - 1, 1, 0], + [x - 2, x - 3, 1]]) + assert simplify(U) == Matrix([[1, x - 2, x - 3], + [0, 4, x - 5], + [0, 0, x - 7]]) + + +def test_P14(): + M = Matrix([[1, 2, 3, 1, 3], + [3, 2, 1, 1, 7], + [0, 2, 4, 1, 1], + [1, 1, 1, 1, 4]]) + R, _ = M.rref() + assert R == Matrix([[1, 0, -1, 0, 2], + [0, 1, 2, 0, -1], + [0, 0, 0, 1, 3], + [0, 0, 0, 0, 0]]) + + +def test_P15(): + M = Matrix([[-1, 3, 7, -5], + [4, -2, 1, 3], + [2, 4, 15, -7]]) + assert M.rank() == 2 + + +def test_P16(): + M = Matrix([[2*sqrt(2), 8], + [6*sqrt(6), 24*sqrt(3)]]) + assert M.rank() == 1 + + +def test_P17(): + t = symbols('t', real=True) + M=Matrix([ + [sin(2*t), cos(2*t)], + [2*(1 - (cos(t)**2))*cos(t), (1 - 2*(sin(t)**2))*sin(t)]]) + assert M.rank() == 1 + + +def test_P18(): + M = Matrix([[1, 0, -2, 0], + [-2, 1, 0, 3], + [-1, 2, -6, 6]]) + assert M.nullspace() == [Matrix([[2], + [4], + [1], + [0]]), + Matrix([[0], + [-3], + [0], + [1]])] + + +def test_P19(): + w = symbols('w') + M = Matrix([[1, 1, 1, 1], + [w, x, y, z], + [w**2, x**2, y**2, z**2], + [w**3, x**3, y**3, z**3]]) + assert M.det() == (w**3*x**2*y - w**3*x**2*z - w**3*x*y**2 + w**3*x*z**2 + + w**3*y**2*z - w**3*y*z**2 - w**2*x**3*y + w**2*x**3*z + + w**2*x*y**3 - w**2*x*z**3 - w**2*y**3*z + w**2*y*z**3 + + w*x**3*y**2 - w*x**3*z**2 - w*x**2*y**3 + w*x**2*z**3 + + w*y**3*z**2 - w*y**2*z**3 - x**3*y**2*z + x**3*y*z**2 + + x**2*y**3*z - x**2*y*z**3 - x*y**3*z**2 + x*y**2*z**3 + ) + + +@XFAIL +def test_P20(): + raise NotImplementedError("Matrix minimal polynomial not supported") + + +def test_P21(): + M = Matrix([[5, -3, -7], + [-2, 1, 2], + [2, -3, -4]]) + assert M.charpoly(x).as_expr() == x**3 - 2*x**2 - 5*x + 6 + + +def test_P22(): + d = 100 + M = (2 - x)*eye(d) + assert M.eigenvals() == {-x + 2: d} + + +def test_P23(): + M = Matrix([ + [2, 1, 0, 0, 0], + [1, 2, 1, 0, 0], + [0, 1, 2, 1, 0], + [0, 0, 1, 2, 1], + [0, 0, 0, 1, 2]]) + assert M.eigenvals() == { + S('1'): 1, + S('2'): 1, + S('3'): 1, + S('sqrt(3) + 2'): 1, + S('-sqrt(3) + 2'): 1} + + +def test_P24(): + M = Matrix([[611, 196, -192, 407, -8, -52, -49, 29], + [196, 899, 113, -192, -71, -43, -8, -44], + [-192, 113, 899, 196, 61, 49, 8, 52], + [ 407, -192, 196, 611, 8, 44, 59, -23], + [ -8, -71, 61, 8, 411, -599, 208, 208], + [ -52, -43, 49, 44, -599, 411, 208, 208], + [ -49, -8, 8, 59, 208, 208, 99, -911], + [ 29, -44, 52, -23, 208, 208, -911, 99]]) + assert M.eigenvals() == { + S('0'): 1, + S('10*sqrt(10405)'): 1, + S('100*sqrt(26) + 510'): 1, + S('1000'): 2, + S('-100*sqrt(26) + 510'): 1, + S('-10*sqrt(10405)'): 1, + S('1020'): 1} + + +def test_P25(): + MF = N(Matrix([[ 611, 196, -192, 407, -8, -52, -49, 29], + [ 196, 899, 113, -192, -71, -43, -8, -44], + [-192, 113, 899, 196, 61, 49, 8, 52], + [ 407, -192, 196, 611, 8, 44, 59, -23], + [ -8, -71, 61, 8, 411, -599, 208, 208], + [ -52, -43, 49, 44, -599, 411, 208, 208], + [ -49, -8, 8, 59, 208, 208, 99, -911], + [ 29, -44, 52, -23, 208, 208, -911, 99]])) + + ev_1 = sorted(MF.eigenvals(multiple=True)) + ev_2 = sorted( + [-1020.0490184299969, 0.0, 0.09804864072151699, 1000.0, 1000.0, + 1019.9019513592784, 1020.0, 1020.0490184299969]) + + for x, y in zip(ev_1, ev_2): + assert abs(x - y) < 1e-12 + + +def test_P26(): + a0, a1, a2, a3, a4 = symbols('a0 a1 a2 a3 a4') + M = Matrix([[-a4, -a3, -a2, -a1, -a0, 0, 0, 0, 0], + [ 1, 0, 0, 0, 0, 0, 0, 0, 0], + [ 0, 1, 0, 0, 0, 0, 0, 0, 0], + [ 0, 0, 1, 0, 0, 0, 0, 0, 0], + [ 0, 0, 0, 1, 0, 0, 0, 0, 0], + [ 0, 0, 0, 0, 0, -1, -1, 0, 0], + [ 0, 0, 0, 0, 0, 1, 0, 0, 0], + [ 0, 0, 0, 0, 0, 0, 1, -1, -1], + [ 0, 0, 0, 0, 0, 0, 0, 1, 0]]) + assert M.eigenvals(error_when_incomplete=False) == { + S('-1/2 - sqrt(3)*I/2'): 2, + S('-1/2 + sqrt(3)*I/2'): 2} + + +def test_P27(): + a = symbols('a') + M = Matrix([[a, 0, 0, 0, 0], + [0, 0, 0, 0, 1], + [0, 0, a, 0, 0], + [0, 0, 0, a, 0], + [0, -2, 0, 0, 2]]) + + assert M.eigenvects() == [ + (a, 3, [ + Matrix([1, 0, 0, 0, 0]), + Matrix([0, 0, 1, 0, 0]), + Matrix([0, 0, 0, 1, 0]) + ]), + (1 - I, 1, [ + Matrix([0, (1 + I)/2, 0, 0, 1]) + ]), + (1 + I, 1, [ + Matrix([0, (1 - I)/2, 0, 0, 1]) + ]), + ] + + +@XFAIL +def test_P28(): + raise NotImplementedError("Generalized eigenvectors not supported \ +https://github.com/sympy/sympy/issues/5293") + + +@XFAIL +def test_P29(): + raise NotImplementedError("Generalized eigenvectors not supported \ +https://github.com/sympy/sympy/issues/5293") + + +def test_P30(): + M = Matrix([[1, 0, 0, 1, -1], + [0, 1, -2, 3, -3], + [0, 0, -1, 2, -2], + [1, -1, 1, 0, 1], + [1, -1, 1, -1, 2]]) + _, J = M.jordan_form() + assert J == Matrix([[-1, 0, 0, 0, 0], + [0, 1, 1, 0, 0], + [0, 0, 1, 0, 0], + [0, 0, 0, 1, 1], + [0, 0, 0, 0, 1]]) + + +@XFAIL +def test_P31(): + raise NotImplementedError("Smith normal form not implemented") + + +def test_P32(): + M = Matrix([[1, -2], + [2, 1]]) + assert exp(M).rewrite(cos).simplify() == Matrix([[E*cos(2), -E*sin(2)], + [E*sin(2), E*cos(2)]]) + + +def test_P33(): + w, t = symbols('w t') + M = Matrix([[0, 1, 0, 0], + [0, 0, 0, 2*w], + [0, 0, 0, 1], + [0, -2*w, 3*w**2, 0]]) + assert exp(M*t).rewrite(cos).expand() == Matrix([ + [1, -3*t + 4*sin(t*w)/w, 6*t*w - 6*sin(t*w), -2*cos(t*w)/w + 2/w], + [0, 4*cos(t*w) - 3, -6*w*cos(t*w) + 6*w, 2*sin(t*w)], + [0, 2*cos(t*w)/w - 2/w, -3*cos(t*w) + 4, sin(t*w)/w], + [0, -2*sin(t*w), 3*w*sin(t*w), cos(t*w)]]) + + +@XFAIL +def test_P34(): + a, b, c = symbols('a b c', real=True) + M = Matrix([[a, 1, 0, 0, 0, 0], + [0, a, 0, 0, 0, 0], + [0, 0, b, 0, 0, 0], + [0, 0, 0, c, 1, 0], + [0, 0, 0, 0, c, 1], + [0, 0, 0, 0, 0, c]]) + # raises exception, sin(M) not supported. exp(M*I) also not supported + # https://github.com/sympy/sympy/issues/6218 + assert sin(M) == Matrix([[sin(a), cos(a), 0, 0, 0, 0], + [0, sin(a), 0, 0, 0, 0], + [0, 0, sin(b), 0, 0, 0], + [0, 0, 0, sin(c), cos(c), -sin(c)/2], + [0, 0, 0, 0, sin(c), cos(c)], + [0, 0, 0, 0, 0, sin(c)]]) + + +@XFAIL +def test_P35(): + M = pi/2*Matrix([[2, 1, 1], + [2, 3, 2], + [1, 1, 2]]) + # raises exception, sin(M) not supported. exp(M*I) also not supported + # https://github.com/sympy/sympy/issues/6218 + assert sin(M) == eye(3) + + +@XFAIL +def test_P36(): + M = Matrix([[10, 7], + [7, 17]]) + assert sqrt(M) == Matrix([[3, 1], + [1, 4]]) + + +def test_P37(): + M = Matrix([[1, 1, 0], + [0, 1, 0], + [0, 0, 1]]) + assert M**S.Half == Matrix([[1, R(1, 2), 0], + [0, 1, 0], + [0, 0, 1]]) + + +@XFAIL +def test_P38(): + M=Matrix([[0, 1, 0], + [0, 0, 0], + [0, 0, 0]]) + + with raises(AssertionError): + # raises ValueError: Matrix det == 0; not invertible + M**S.Half + # if it doesn't raise then this assertion will be + # raised and the test will be flagged as not XFAILing + assert None + +@XFAIL +def test_P39(): + """ + M=Matrix([ + [1, 1], + [2, 2], + [3, 3]]) + M.SVD() + """ + raise NotImplementedError("Singular value decomposition not implemented") + + +def test_P40(): + r, t = symbols('r t', real=True) + M = Matrix([r*cos(t), r*sin(t)]) + assert M.jacobian(Matrix([r, t])) == Matrix([[cos(t), -r*sin(t)], + [sin(t), r*cos(t)]]) + + +def test_P41(): + r, t = symbols('r t', real=True) + assert hessian(r**2*sin(t),(r,t)) == Matrix([[ 2*sin(t), 2*r*cos(t)], + [2*r*cos(t), -r**2*sin(t)]]) + + +def test_P42(): + assert wronskian([cos(x), sin(x)], x).simplify() == 1 + + +def test_P43(): + def __my_jacobian(M, Y): + return Matrix([M.diff(v).T for v in Y]).T + r, t = symbols('r t', real=True) + M = Matrix([r*cos(t), r*sin(t)]) + assert __my_jacobian(M,[r,t]) == Matrix([[cos(t), -r*sin(t)], + [sin(t), r*cos(t)]]) + + +def test_P44(): + def __my_hessian(f, Y): + V = Matrix([diff(f, v) for v in Y]) + return Matrix([V.T.diff(v) for v in Y]) + r, t = symbols('r t', real=True) + assert __my_hessian(r**2*sin(t), (r, t)) == Matrix([ + [ 2*sin(t), 2*r*cos(t)], + [2*r*cos(t), -r**2*sin(t)]]) + + +def test_P45(): + def __my_wronskian(Y, v): + M = Matrix([Matrix(Y).T.diff(x, n) for n in range(0, len(Y))]) + return M.det() + assert __my_wronskian([cos(x), sin(x)], x).simplify() == 1 + +# Q1-Q6 Tensor tests missing + + +@XFAIL +def test_R1(): + i, j, n = symbols('i j n', integer=True, positive=True) + xn = MatrixSymbol('xn', n, 1) + Sm = Sum((xn[i, 0] - Sum(xn[j, 0], (j, 0, n - 1))/n)**2, (i, 0, n - 1)) + # sum does not calculate + # Unknown result + Sm.doit() + raise NotImplementedError('Unknown result') + +@XFAIL +def test_R2(): + m, b = symbols('m b') + i, n = symbols('i n', integer=True, positive=True) + xn = MatrixSymbol('xn', n, 1) + yn = MatrixSymbol('yn', n, 1) + f = Sum((yn[i, 0] - m*xn[i, 0] - b)**2, (i, 0, n - 1)) + f1 = diff(f, m) + f2 = diff(f, b) + # raises TypeError: solveset() takes at most 2 arguments (3 given) + solveset((f1, f2), (m, b), domain=S.Reals) + + +@XFAIL +def test_R3(): + n, k = symbols('n k', integer=True, positive=True) + sk = ((-1)**k) * (binomial(2*n, k))**2 + Sm = Sum(sk, (k, 1, oo)) + T = Sm.doit() + T2 = T.combsimp() + # returns -((-1)**n*factorial(2*n) + # - (factorial(n))**2)*exp_polar(-I*pi)/(factorial(n))**2 + assert T2 == (-1)**n*binomial(2*n, n) + + +@XFAIL +def test_R4(): +# Macsyma indefinite sum test case: +#(c15) /* Check whether the full Gosper algorithm is implemented +# => 1/2^(n + 1) binomial(n, k - 1) */ +#closedform(indefsum(binomial(n, k)/2^n - binomial(n + 1, k)/2^(n + 1), k)); +#Time= 2690 msecs +# (- n + k - 1) binomial(n + 1, k) +#(d15) - -------------------------------- +# n +# 2 2 (n + 1) +# +#(c16) factcomb(makefact(%)); +#Time= 220 msecs +# n! +#(d16) ---------------- +# n +# 2 k! 2 (n - k)! +# Might be possible after fixing https://github.com/sympy/sympy/pull/1879 + raise NotImplementedError("Indefinite sum not supported") + + +@XFAIL +def test_R5(): + a, b, c, n, k = symbols('a b c n k', integer=True, positive=True) + sk = ((-1)**k)*(binomial(a + b, a + k) + *binomial(b + c, b + k)*binomial(c + a, c + k)) + Sm = Sum(sk, (k, 1, oo)) + T = Sm.doit() # hypergeometric series not calculated + assert T == factorial(a+b+c)/(factorial(a)*factorial(b)*factorial(c)) + + +def test_R6(): + n, k = symbols('n k', integer=True, positive=True) + gn = MatrixSymbol('gn', n + 2, 1) + Sm = Sum(gn[k, 0] - gn[k - 1, 0], (k, 1, n + 1)) + assert Sm.doit() == -gn[0, 0] + gn[n + 1, 0] + + +def test_R7(): + n, k = symbols('n k', integer=True, positive=True) + T = Sum(k**3,(k,1,n)).doit() + assert T.factor() == n**2*(n + 1)**2/4 + +@XFAIL +def test_R8(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(k**2*binomial(n, k), (k, 1, n)) + T = Sm.doit() #returns Piecewise function + assert T.combsimp() == n*(n + 1)*2**(n - 2) + + +def test_R9(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(binomial(n, k - 1)/k, (k, 1, n + 1)) + assert Sm.doit().simplify() == (2**(n + 1) - 1)/(n + 1) + + +@XFAIL +def test_R10(): + n, m, r, k = symbols('n m r k', integer=True, positive=True) + Sm = Sum(binomial(n, k)*binomial(m, r - k), (k, 0, r)) + T = Sm.doit() + T2 = T.combsimp().rewrite(factorial) + assert T2 == factorial(m + n)/(factorial(r)*factorial(m + n - r)) + assert T2 == binomial(m + n, r).rewrite(factorial) + # rewrite(binomial) is not working. + # https://github.com/sympy/sympy/issues/7135 + T3 = T2.rewrite(binomial) + assert T3 == binomial(m + n, r) + + +@XFAIL +def test_R11(): + n, k = symbols('n k', integer=True, positive=True) + sk = binomial(n, k)*fibonacci(k) + Sm = Sum(sk, (k, 0, n)) + T = Sm.doit() + # Fibonacci simplification not implemented + # https://github.com/sympy/sympy/issues/7134 + assert T == fibonacci(2*n) + + +@XFAIL +def test_R12(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(fibonacci(k)**2, (k, 0, n)) + T = Sm.doit() + assert T == fibonacci(n)*fibonacci(n + 1) + + +@XFAIL +def test_R13(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(sin(k*x), (k, 1, n)) + T = Sm.doit() # Sum is not calculated + assert T.simplify() == cot(x/2)/2 - cos(x*(2*n + 1)/2)/(2*sin(x/2)) + + +@XFAIL +def test_R14(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(sin((2*k - 1)*x), (k, 1, n)) + T = Sm.doit() # Sum is not calculated + assert T.simplify() == sin(n*x)**2/sin(x) + + +@XFAIL +def test_R15(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(binomial(n - k, k), (k, 0, floor(n/2))) + T = Sm.doit() # Sum is not calculated + assert T.simplify() == fibonacci(n + 1) + + +def test_R16(): + k = symbols('k', integer=True, positive=True) + Sm = Sum(1/k**2 + 1/k**3, (k, 1, oo)) + assert Sm.doit() == zeta(3) + pi**2/6 + + +def test_R17(): + k = symbols('k', integer=True, positive=True) + assert abs(float(Sum(1/k**2 + 1/k**3, (k, 1, oo))) + - 2.8469909700078206) < 1e-15 + + +def test_R18(): + k = symbols('k', integer=True, positive=True) + Sm = Sum(1/(2**k*k**2), (k, 1, oo)) + T = Sm.doit() + assert T.simplify() == -log(2)**2/2 + pi**2/12 + + +@slow +@XFAIL +def test_R19(): + k = symbols('k', integer=True, positive=True) + Sm = Sum(1/((3*k + 1)*(3*k + 2)*(3*k + 3)), (k, 0, oo)) + T = Sm.doit() + # assert fails, T not simplified + assert T.simplify() == -log(3)/4 + sqrt(3)*pi/12 + + +@XFAIL +def test_R20(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(binomial(n, 4*k), (k, 0, oo)) + T = Sm.doit() + # assert fails, T not simplified + assert T.simplify() == 2**(n/2)*cos(pi*n/4)/2 + 2**(n - 1)/2 + + +@XFAIL +def test_R21(): + k = symbols('k', integer=True, positive=True) + Sm = Sum(1/(sqrt(k*(k + 1)) * (sqrt(k) + sqrt(k + 1))), (k, 1, oo)) + T = Sm.doit() # Sum not calculated + assert T.simplify() == 1 + + +# test_R22 answer not available in Wester samples +# Sum(Sum(binomial(n, k)*binomial(n - k, n - 2*k)*x**n*y**(n - 2*k), +# (k, 0, floor(n/2))), (n, 0, oo)) with abs(x*y)<1? + + +@XFAIL +def test_R23(): + n, k = symbols('n k', integer=True, positive=True) + Sm = Sum(Sum((factorial(n)/(factorial(k)**2*factorial(n - 2*k)))* + (x/y)**k*(x*y)**(n - k), (n, 2*k, oo)), (k, 0, oo)) + # Missing how to express constraint abs(x*y)<1? + T = Sm.doit() # Sum not calculated + assert T == -1/sqrt(x**2*y**2 - 4*x**2 - 2*x*y + 1) + + +def test_R24(): + m, k = symbols('m k', integer=True, positive=True) + Sm = Sum(Product(k/(2*k - 1), (k, 1, m)), (m, 2, oo)) + assert Sm.doit() == pi/2 + + +def test_S1(): + k = symbols('k', integer=True, positive=True) + Pr = Product(gamma(k/3), (k, 1, 8)) + assert Pr.doit().simplify() == 640*sqrt(3)*pi**3/6561 + + +def test_S2(): + n, k = symbols('n k', integer=True, positive=True) + assert Product(k, (k, 1, n)).doit() == factorial(n) + + +def test_S3(): + n, k = symbols('n k', integer=True, positive=True) + assert Product(x**k, (k, 1, n)).doit().simplify() == x**(n*(n + 1)/2) + + +def test_S4(): + n, k = symbols('n k', integer=True, positive=True) + assert Product(1 + 1/k, (k, 1, n -1)).doit().simplify() == n + + +def test_S5(): + n, k = symbols('n k', integer=True, positive=True) + assert (Product((2*k - 1)/(2*k), (k, 1, n)).doit().gammasimp() == + gamma(n + S.Half)/(sqrt(pi)*gamma(n + 1))) + + +@XFAIL +def test_S6(): + n, k = symbols('n k', integer=True, positive=True) + # Product does not evaluate + assert (Product(x**2 -2*x*cos(k*pi/n) + 1, (k, 1, n - 1)).doit().simplify() + == (x**(2*n) - 1)/(x**2 - 1)) + + +@XFAIL +def test_S7(): + k = symbols('k', integer=True, positive=True) + Pr = Product((k**3 - 1)/(k**3 + 1), (k, 2, oo)) + T = Pr.doit() # Product does not evaluate + assert T.simplify() == R(2, 3) + + +@XFAIL +def test_S8(): + k = symbols('k', integer=True, positive=True) + Pr = Product(1 - 1/(2*k)**2, (k, 1, oo)) + T = Pr.doit() + # Product does not evaluate + assert T.simplify() == 2/pi + + +@XFAIL +def test_S9(): + k = symbols('k', integer=True, positive=True) + Pr = Product(1 + (-1)**(k + 1)/(2*k - 1), (k, 1, oo)) + T = Pr.doit() + # Product produces 0 + # https://github.com/sympy/sympy/issues/7133 + assert T.simplify() == sqrt(2) + + +@XFAIL +def test_S10(): + k = symbols('k', integer=True, positive=True) + Pr = Product((k*(k + 1) + 1 + I)/(k*(k + 1) + 1 - I), (k, 0, oo)) + T = Pr.doit() + # Product does not evaluate + assert T.simplify() == -1 + + +def test_T1(): + assert limit((1 + 1/n)**n, n, oo) == E + assert limit((1 - cos(x))/x**2, x, 0) == S.Half + + +def test_T2(): + assert limit((3**x + 5**x)**(1/x), x, oo) == 5 + + +def test_T3(): + assert limit(log(x)/(log(x) + sin(x)), x, oo) == 1 + + +def test_T4(): + assert limit((exp(x*exp(-x)/(exp(-x) + exp(-2*x**2/(x + 1)))) + - exp(x))/x, x, oo) == -exp(2) + + +def test_T5(): + assert limit(x*log(x)*log(x*exp(x) - x**2)**2/log(log(x**2 + + 2*exp(exp(3*x**3*log(x))))), x, oo) == R(1, 3) + + +def test_T6(): + assert limit(1/n * factorial(n)**(1/n), n, oo) == exp(-1) + + +def test_T7(): + limit(1/n * gamma(n + 1)**(1/n), n, oo) + + +def test_T8(): + a, z = symbols('a z', positive=True) + assert limit(gamma(z + a)/gamma(z)*exp(-a*log(z)), z, oo) == 1 + + +@XFAIL +def test_T9(): + z, k = symbols('z k', positive=True) + # raises NotImplementedError: + # Don't know how to calculate the mrv of '(1, k)' + assert limit(hyper((1, k), (1,), z/k), k, oo) == exp(z) + + +@XFAIL +def test_T10(): + # No longer raises PoleError, but should return euler-mascheroni constant + assert limit(zeta(x) - 1/(x - 1), x, 1) == integrate(-1/x + 1/floor(x), (x, 1, oo)) + +@XFAIL +def test_T11(): + n, k = symbols('n k', integer=True, positive=True) + # evaluates to 0 + assert limit(n**x/(x*product((1 + x/k), (k, 1, n))), n, oo) == gamma(x) + + +def test_T12(): + x, t = symbols('x t', real=True) + # Does not evaluate the limit but returns an expression with erf + assert limit(x * integrate(exp(-t**2), (t, 0, x))/(1 - exp(-x**2)), + x, 0) == 1 + + +def test_T13(): + x = symbols('x', real=True) + assert [limit(x/abs(x), x, 0, dir='-'), + limit(x/abs(x), x, 0, dir='+')] == [-1, 1] + + +def test_T14(): + x = symbols('x', real=True) + assert limit(atan(-log(x)), x, 0, dir='+') == pi/2 + + +def test_U1(): + x = symbols('x', real=True) + assert diff(abs(x), x) == sign(x) + + +def test_U2(): + f = Lambda(x, Piecewise((-x, x < 0), (x, x >= 0))) + assert diff(f(x), x) == Piecewise((-1, x < 0), (1, x >= 0)) + + +def test_U3(): + f = Lambda(x, Piecewise((x**2 - 1, x == 1), (x**3, x != 1))) + f1 = Lambda(x, diff(f(x), x)) + assert f1(x) == 3*x**2 + assert f1(1) == 3 + + +@XFAIL +def test_U4(): + n = symbols('n', integer=True, positive=True) + x = symbols('x', real=True) + d = diff(x**n, x, n) + assert d.rewrite(factorial) == factorial(n) + + +def test_U5(): + # issue 6681 + t = symbols('t') + ans = ( + Derivative(f(g(t)), g(t))*Derivative(g(t), (t, 2)) + + Derivative(f(g(t)), (g(t), 2))*Derivative(g(t), t)**2) + assert f(g(t)).diff(t, 2) == ans + assert ans.doit() == ans + + +def test_U6(): + h = Function('h') + T = integrate(f(y), (y, h(x), g(x))) + assert T.diff(x) == ( + f(g(x))*Derivative(g(x), x) - f(h(x))*Derivative(h(x), x)) + + +@XFAIL +def test_U7(): + p, t = symbols('p t', real=True) + # Exact differential => d(V(P, T)) => dV/dP DP + dV/dT DT + # raises ValueError: Since there is more than one variable in the + # expression, the variable(s) of differentiation must be supplied to + # differentiate f(p,t) + diff(f(p, t)) + + +def test_U8(): + x, y = symbols('x y', real=True) + eq = cos(x*y) + x + # If SymPy had implicit_diff() function this hack could be avoided + # TODO: Replace solve with solveset, current test fails for solveset + assert idiff(y - eq, y, x) == (-y*sin(x*y) + 1)/(x*sin(x*y) + 1) + + +def test_U9(): + # Wester sample case for Maple: + # O29 := diff(f(x, y), x) + diff(f(x, y), y); + # /d \ /d \ + # |-- f(x, y)| + |-- f(x, y)| + # \dx / \dy / + # + # O30 := factor(subs(f(x, y) = g(x^2 + y^2), %)); + # 2 2 + # 2 D(g)(x + y ) (x + y) + x, y = symbols('x y', real=True) + su = diff(f(x, y), x) + diff(f(x, y), y) + s2 = su.subs(f(x, y), g(x**2 + y**2)) + s3 = s2.doit().factor() + # Subs not performed, s3 = 2*(x + y)*Subs(Derivative( + # g(_xi_1), _xi_1), _xi_1, x**2 + y**2) + # Derivative(g(x*2 + y**2), x**2 + y**2) is not valid in SymPy, + # and probably will remain that way. You can take derivatives with respect + # to other expressions only if they are atomic, like a symbol or a + # function. + # D operator should be added to SymPy + # See https://github.com/sympy/sympy/issues/4719. + assert s3 == (x + y)*Subs(Derivative(g(x), x), x, x**2 + y**2)*2 + + +def test_U10(): + # see issue 2519: + assert residue((z**3 + 5)/((z**4 - 1)*(z + 1)), z, -1) == R(-9, 4) + +@XFAIL +def test_U11(): + # assert (2*dx + dz) ^ (3*dx + dy + dz) ^ (dx + dy + 4*dz) == 8*dx ^ dy ^dz + raise NotImplementedError + + +@XFAIL +def test_U12(): + # Wester sample case: + # (c41) /* d(3 x^5 dy /\ dz + 5 x y^2 dz /\ dx + 8 z dx /\ dy) + # => (15 x^4 + 10 x y + 8) dx /\ dy /\ dz */ + # factor(ext_diff(3*x^5 * dy ~ dz + 5*x*y^2 * dz ~ dx + 8*z * dx ~ dy)); + # 4 + # (d41) (10 x y + 15 x + 8) dx dy dz + raise NotImplementedError( + "External diff of differential form not supported") + + +def test_U13(): + assert minimum(x**4 - x + 1, x) == -3*2**R(1,3)/8 + 1 + + +@XFAIL +def test_U14(): + #f = 1/(x**2 + y**2 + 1) + #assert [minimize(f), maximize(f)] == [0,1] + raise NotImplementedError("minimize(), maximize() not supported") + + +@XFAIL +def test_U15(): + raise NotImplementedError("minimize() not supported and also solve does \ +not support multivariate inequalities") + + +@XFAIL +def test_U16(): + raise NotImplementedError("minimize() not supported in SymPy and also \ +solve does not support multivariate inequalities") + + +@XFAIL +def test_U17(): + raise NotImplementedError("Linear programming, symbolic simplex not \ +supported in SymPy") + + +def test_V1(): + x = symbols('x', real=True) + assert integrate(abs(x), x) == Piecewise((-x**2/2, x <= 0), (x**2/2, True)) + + +def test_V2(): + assert integrate(Piecewise((-x, x < 0), (x, x >= 0)), x + ) == Piecewise((-x**2/2, x < 0), (x**2/2, True)) + + +def test_V3(): + assert integrate(1/(x**3 + 2),x).diff().simplify() == 1/(x**3 + 2) + + +def test_V4(): + assert integrate(2**x/sqrt(1 + 4**x), x) == asinh(2**x)/log(2) + + +@XFAIL +def test_V5(): + # Returns (-45*x**2 + 80*x - 41)/(5*sqrt(2*x - 1)*(4*x**2 - 4*x + 1)) + assert (integrate((3*x - 5)**2/(2*x - 1)**R(7, 2), x).simplify() == + (-41 + 80*x - 45*x**2)/(5*(2*x - 1)**R(5, 2))) + + +@XFAIL +def test_V6(): + # returns RootSum(40*_z**2 - 1, Lambda(_i, _i*log(-4*_i + exp(-m*x))))/m + assert (integrate(1/(2*exp(m*x) - 5*exp(-m*x)), x) == sqrt(10)*( + log(2*exp(m*x) - sqrt(10)) - log(2*exp(m*x) + sqrt(10)))/(20*m)) + + +def test_V7(): + r1 = integrate(sinh(x)**4/cosh(x)**2) + assert r1.simplify() == x*R(-3, 2) + sinh(x)**3/(2*cosh(x)) + 3*tanh(x)/2 + + +@XFAIL +def test_V8_V9(): +#Macsyma test case: +#(c27) /* This example involves several symbolic parameters +# => 1/sqrt(b^2 - a^2) log([sqrt(b^2 - a^2) tan(x/2) + a + b]/ +# [sqrt(b^2 - a^2) tan(x/2) - a - b]) (a^2 < b^2) +# [Gradshteyn and Ryzhik 2.553(3)] */ +#assume(b^2 > a^2)$ +#(c28) integrate(1/(a + b*cos(x)), x); +#(c29) trigsimp(ratsimp(diff(%, x))); +# 1 +#(d29) ------------ +# b cos(x) + a + raise NotImplementedError( + "Integrate with assumption not supported") + + +def test_V10(): + assert integrate(1/(3 + 3*cos(x) + 4*sin(x)), x) == log(4*tan(x/2) + 3)/4 + + +def test_V11(): + r1 = integrate(1/(4 + 3*cos(x) + 4*sin(x)), x) + r2 = factor(r1) + assert (logcombine(r2, force=True) == + log(((tan(x/2) + 1)/(tan(x/2) + 7))**R(1, 3))) + + +def test_V12(): + r1 = integrate(1/(5 + 3*cos(x) + 4*sin(x)), x) + assert r1 == -1/(tan(x/2) + 2) + + +@XFAIL +def test_V13(): + r1 = integrate(1/(6 + 3*cos(x) + 4*sin(x)), x) + # expression not simplified, returns: -sqrt(11)*I*log(tan(x/2) + 4/3 + # - sqrt(11)*I/3)/11 + sqrt(11)*I*log(tan(x/2) + 4/3 + sqrt(11)*I/3)/11 + assert r1.simplify() == 2*sqrt(11)*atan(sqrt(11)*(3*tan(x/2) + 4)/11)/11 + + +@slow +@XFAIL +def test_V14(): + r1 = integrate(log(abs(x**2 - y**2)), x) + # Piecewise result does not simplify to the desired result. + assert (r1.simplify() == x*log(abs(x**2 - y**2)) + + y*log(x + y) - y*log(x - y) - 2*x) + + +def test_V15(): + r1 = integrate(x*acot(x/y), x) + assert simplify(r1 - (x*y + (x**2 + y**2)*acot(x/y))/2) == 0 + + +@XFAIL +def test_V16(): + # Integral not calculated + assert integrate(cos(5*x)*Ci(2*x), x) == Ci(2*x)*sin(5*x)/5 - (Si(3*x) + Si(7*x))/10 + +@XFAIL +def test_V17(): + r1 = integrate((diff(f(x), x)*g(x) + - f(x)*diff(g(x), x))/(f(x)**2 - g(x)**2), x) + # integral not calculated + assert simplify(r1 - (f(x) - g(x))/(f(x) + g(x))/2) == 0 + + +@XFAIL +def test_W1(): + # The function has a pole at y. + # The integral has a Cauchy principal value of zero but SymPy returns -I*pi + # https://github.com/sympy/sympy/issues/7159 + assert integrate(1/(x - y), (x, y - 1, y + 1)) == 0 + + +@XFAIL +def test_W2(): + # The function has a pole at y. + # The integral is divergent but SymPy returns -2 + # https://github.com/sympy/sympy/issues/7160 + # Test case in Macsyma: + # (c6) errcatch(integrate(1/(x - a)^2, x, a - 1, a + 1)); + # Integral is divergent + assert integrate(1/(x - y)**2, (x, y - 1, y + 1)) is zoo + + +@XFAIL +@slow +def test_W3(): + # integral is not calculated + # https://github.com/sympy/sympy/issues/7161 + assert integrate(sqrt(x + 1/x - 2), (x, 0, 1)) == R(4, 3) + + +@XFAIL +@slow +def test_W4(): + # integral is not calculated + assert integrate(sqrt(x + 1/x - 2), (x, 1, 2)) == -2*sqrt(2)/3 + R(4, 3) + + +@XFAIL +@slow +def test_W5(): + # integral is not calculated + assert integrate(sqrt(x + 1/x - 2), (x, 0, 2)) == -2*sqrt(2)/3 + R(8, 3) + + +@XFAIL +@slow +def test_W6(): + # integral is not calculated + assert integrate(sqrt(2 - 2*cos(2*x))/2, (x, pi*R(-3, 4), -pi/4)) == sqrt(2) + + +def test_W7(): + a = symbols('a', positive=True) + r1 = integrate(cos(x)/(x**2 + a**2), (x, -oo, oo)) + assert r1.simplify() == pi*exp(-a)/a + + +@XFAIL +def test_W8(): + # Test case in Mathematica: + # In[19]:= Integrate[t^(a - 1)/(1 + t), {t, 0, Infinity}, + # Assumptions -> 0 < a < 1] + # Out[19]= Pi Csc[a Pi] + raise NotImplementedError( + "Integrate with assumption 0 < a < 1 not supported") + + +@XFAIL +@slow +def test_W9(): + # Integrand with a residue at infinity => -2 pi [sin(pi/5) + sin(2pi/5)] + # (principal value) [Levinson and Redheffer, p. 234] *) + r1 = integrate(5*x**3/(1 + x + x**2 + x**3 + x**4), (x, -oo, oo)) + r2 = r1.doit() + assert r2 == -2*pi*(sqrt(-sqrt(5)/8 + 5/8) + sqrt(sqrt(5)/8 + 5/8)) + + +@XFAIL +def test_W10(): + # integrate(1/[1 + x + x^2 + ... + x^(2 n)], x = -infinity..infinity) = + # 2 pi/(2 n + 1) [1 + cos(pi/[2 n + 1])] csc(2 pi/[2 n + 1]) + # [Levinson and Redheffer, p. 255] => 2 pi/5 [1 + cos(pi/5)] csc(2 pi/5) */ + r1 = integrate(x/(1 + x + x**2 + x**4), (x, -oo, oo)) + r2 = r1.doit() + assert r2 == 2*pi*(sqrt(5)/4 + 5/4)*csc(pi*R(2, 5))/5 + + +@XFAIL +def test_W11(): + # integral not calculated + assert (integrate(sqrt(1 - x**2)/(1 + x**2), (x, -1, 1)) == + pi*(-1 + sqrt(2))) + + +def test_W12(): + p = symbols('p', positive=True) + q = symbols('q', real=True) + r1 = integrate(x*exp(-p*x**2 + 2*q*x), (x, -oo, oo)) + assert r1.simplify() == sqrt(pi)*q*exp(q**2/p)/p**R(3, 2) + + +@XFAIL +def test_W13(): + # Integral not calculated. Expected result is 2*(Euler_mascheroni_constant) + r1 = integrate(1/log(x) + 1/(1 - x) - log(log(1/x)), (x, 0, 1)) + assert r1 == 2*EulerGamma + + +def test_W14(): + assert integrate(sin(x)/x*exp(2*I*x), (x, -oo, oo)) == 0 + + +@XFAIL +def test_W15(): + # integral not calculated + assert integrate(log(gamma(x))*cos(6*pi*x), (x, 0, 1)) == R(1, 12) + + +def test_W16(): + assert integrate((1 + x)**3*legendre_poly(1, x)*legendre_poly(2, x), + (x, -1, 1)) == R(36, 35) + + +def test_W17(): + a, b = symbols('a b', positive=True) + assert integrate(exp(-a*x)*besselj(0, b*x), + (x, 0, oo)) == 1/(b*sqrt(a**2/b**2 + 1)) + + +def test_W18(): + assert integrate((besselj(1, x)/x)**2, (x, 0, oo)) == 4/(3*pi) + + +@XFAIL +def test_W19(): + # Integral not calculated + # Expected result is (cos 7 - 1)/7 [Gradshteyn and Ryzhik 6.782(3)] + assert integrate(Ci(x)*besselj(0, 2*sqrt(7*x)), (x, 0, oo)) == (cos(7) - 1)/7 + + +@XFAIL +def test_W20(): + # integral not calculated + assert (integrate(x**2*polylog(3, 1/(x + 1)), (x, 0, 1)) == + -pi**2/36 - R(17, 108) + zeta(3)/4 + + (-pi**2/2 - 4*log(2) + log(2)**2 + 35/3)*log(2)/9) + + +def test_W21(): + assert abs(N(integrate(x**2*polylog(3, 1/(x + 1)), (x, 0, 1))) + - 0.210882859565594) < 1e-15 + + +def test_W22(): + t, u = symbols('t u', real=True) + s = Lambda(x, Piecewise((1, And(x >= 1, x <= 2)), (0, True))) + assert integrate(s(t)*cos(t), (t, 0, u)) == Piecewise( + (0, u < 0), + (-sin(Min(1, u)) + sin(Min(2, u)), True)) + + +@slow +def test_W23(): + a, b = symbols('a b', positive=True) + r1 = integrate(integrate(x/(x**2 + y**2), (x, a, b)), (y, -oo, oo)) + assert r1.collect(pi).cancel() == -pi*a + pi*b + + +def test_W23b(): + # like W23 but limits are reversed + a, b = symbols('a b', positive=True) + r2 = integrate(integrate(x/(x**2 + y**2), (y, -oo, oo)), (x, a, b)) + assert r2.collect(pi) == pi*(-a + b) + + +@XFAIL +@slow +def test_W24(): + if ON_CI: + skip("Too slow for CI.") + # Not that slow, but does not fully evaluate so simplify is slow. + # Maybe also require doit() + x, y = symbols('x y', real=True) + r1 = integrate(integrate(sqrt(x**2 + y**2), (x, 0, 1)), (y, 0, 1)) + assert (r1 - (sqrt(2) + asinh(1))/3).simplify() == 0 + + +@XFAIL +@slow +def test_W25(): + if ON_CI: + skip("Too slow for CI.") + a, x, y = symbols('a x y', real=True) + i1 = integrate( + sin(a)*sin(y)/sqrt(1 - sin(a)**2*sin(x)**2*sin(y)**2), + (x, 0, pi/2)) + i2 = integrate(i1, (y, 0, pi/2)) + assert (i2 - pi*a/2).simplify() == 0 + + +def test_W26(): + x, y = symbols('x y', real=True) + assert integrate(integrate(abs(y - x**2), (y, 0, 2)), + (x, -1, 1)) == R(46, 15) + + +def test_W27(): + a, b, c = symbols('a b c') + assert integrate(integrate(integrate(1, (z, 0, c*(1 - x/a - y/b))), + (y, 0, b*(1 - x/a))), + (x, 0, a)) == a*b*c/6 + + +def test_X1(): + v, c = symbols('v c', real=True) + assert (series(1/sqrt(1 - (v/c)**2), v, x0=0, n=8) == + 5*v**6/(16*c**6) + 3*v**4/(8*c**4) + v**2/(2*c**2) + 1 + O(v**8)) + + +def test_X2(): + v, c = symbols('v c', real=True) + s1 = series(1/sqrt(1 - (v/c)**2), v, x0=0, n=8) + assert (1/s1**2).series(v, x0=0, n=8) == -v**2/c**2 + 1 + O(v**8) + + +def test_X3(): + s1 = (sin(x).series()/cos(x).series()).series() + s2 = tan(x).series() + assert s2 == x + x**3/3 + 2*x**5/15 + O(x**6) + assert s1 == s2 + + +def test_X4(): + s1 = log(sin(x)/x).series() + assert s1 == -x**2/6 - x**4/180 + O(x**6) + assert log(series(sin(x)/x)).series() == s1 + + +@XFAIL +def test_X5(): + # test case in Mathematica syntax: + # In[21]:= (* => [a f'(a d) + g(b d) + integrate(h(c y), y = 0..d)] + # + [a^2 f''(a d) + b g'(b d) + h(c d)] (x - d) *) + # In[22]:= D[f[a*x], x] + g[b*x] + Integrate[h[c*y], {y, 0, x}] + # Out[22]= g[b x] + Integrate[h[c y], {y, 0, x}] + a f'[a x] + # In[23]:= Series[%, {x, d, 1}] + # Out[23]= (g[b d] + Integrate[h[c y], {y, 0, d}] + a f'[a d]) + + # 2 2 + # (h[c d] + b g'[b d] + a f''[a d]) (-d + x) + O[-d + x] + h = Function('h') + a, b, c, d = symbols('a b c d', real=True) + # series() raises NotImplementedError: + # The _eval_nseries method should be added to to give terms up to O(x**n) at x=0 + series(diff(f(a*x), x) + g(b*x) + integrate(h(c*y), (y, 0, x)), + x, x0=d, n=2) + # assert missing, until exception is removed + + +def test_X6(): + # Taylor series of nonscalar objects (noncommutative multiplication) + # expected result => (B A - A B) t^2/2 + O(t^3) [Stanly Steinberg] + a, b = symbols('a b', commutative=False, scalar=False) + assert (series(exp((a + b)*x) - exp(a*x) * exp(b*x), x, x0=0, n=3) == + x**2*(-a*b/2 + b*a/2) + O(x**3)) + + +def test_X7(): + # => sum( Bernoulli[k]/k! x^(k - 2), k = 1..infinity ) + # = 1/x^2 - 1/(2 x) + 1/12 - x^2/720 + x^4/30240 + O(x^6) + # [Levinson and Redheffer, p. 173] + assert (series(1/(x*(exp(x) - 1)), x, 0, 7) == x**(-2) - 1/(2*x) + + R(1, 12) - x**2/720 + x**4/30240 - x**6/1209600 + O(x**7)) + + +def test_X8(): + # Puiseux series (terms with fractional degree): + # => 1/sqrt(x - 3/2 pi) + (x - 3/2 pi)^(3/2) / 12 + O([x - 3/2 pi]^(7/2)) + + # see issue 7167: + x = symbols('x', real=True) + assert (series(sqrt(sec(x)), x, x0=pi*3/2, n=4) == + 1/sqrt(x - pi*R(3, 2)) + (x - pi*R(3, 2))**R(3, 2)/12 + + (x - pi*R(3, 2))**R(7, 2)/160 + O((x - pi*R(3, 2))**4, (x, pi*R(3, 2)))) + + +def test_X9(): + assert (series(x**x, x, x0=0, n=4) == 1 + x*log(x) + x**2*log(x)**2/2 + + x**3*log(x)**3/6 + O(x**4*log(x)**4)) + + +def test_X10(): + z, w = symbols('z w') + assert (series(log(sinh(z)) + log(cosh(z + w)), z, x0=0, n=2) == + log(cosh(w)) + log(z) + z*sinh(w)/cosh(w) + O(z**2)) + + +def test_X11(): + z, w = symbols('z w') + assert (series(log(sinh(z) * cosh(z + w)), z, x0=0, n=2) == + log(cosh(w)) + log(z) + z*sinh(w)/cosh(w) + O(z**2)) + + +@XFAIL +def test_X12(): + # Look at the generalized Taylor series around x = 1 + # Result => (x - 1)^a/e^b [1 - (a + 2 b) (x - 1) / 2 + O((x - 1)^2)] + a, b, x = symbols('a b x', real=True) + # series returns O(log(x-1)**2) + # https://github.com/sympy/sympy/issues/7168 + assert (series(log(x)**a*exp(-b*x), x, x0=1, n=2) == + (x - 1)**a/exp(b)*(1 - (a + 2*b)*(x - 1)/2 + O((x - 1)**2))) + + +def test_X13(): + assert series(sqrt(2*x**2 + 1), x, x0=oo, n=1) == sqrt(2)*x + O(1/x, (x, oo)) + + +@XFAIL +def test_X14(): + # Wallis' product => 1/sqrt(pi n) + ... [Knopp, p. 385] + assert series(1/2**(2*n)*binomial(2*n, n), + n, x==oo, n=1) == 1/(sqrt(pi)*sqrt(n)) + O(1/x, (x, oo)) + + +@SKIP("https://github.com/sympy/sympy/issues/7164") +def test_X15(): + # => 0!/x - 1!/x^2 + 2!/x^3 - 3!/x^4 + O(1/x^5) [Knopp, p. 544] + x, t = symbols('x t', real=True) + # raises RuntimeError: maximum recursion depth exceeded + # https://github.com/sympy/sympy/issues/7164 + # 2019-02-17: Raises + # PoleError: + # Asymptotic expansion of Ei around [-oo] is not implemented. + e1 = integrate(exp(-t)/t, (t, x, oo)) + assert (series(e1, x, x0=oo, n=5) == + 6/x**4 + 2/x**3 - 1/x**2 + 1/x + O(x**(-5), (x, oo))) + + +def test_X16(): + # Multivariate Taylor series expansion => 1 - (x^2 + 2 x y + y^2)/2 + O(x^4) + assert (series(cos(x + y), x + y, x0=0, n=4) == 1 - (x + y)**2/2 + + O(x**4 + x**3*y + x**2*y**2 + x*y**3 + y**4, x, y)) + + +@XFAIL +def test_X17(): + # Power series (compute the general formula) + # (c41) powerseries(log(sin(x)/x), x, 0); + # /aquarius/data2/opt/local/macsyma_422/library1/trgred.so being loaded. + # inf + # ==== i1 2 i1 2 i1 + # \ (- 1) 2 bern(2 i1) x + # (d41) > ------------------------------ + # / 2 i1 (2 i1)! + # ==== + # i1 = 1 + # fps does not calculate + assert fps(log(sin(x)/x)) == \ + Sum((-1)**k*2**(2*k - 1)*bernoulli(2*k)*x**(2*k)/(k*factorial(2*k)), (k, 1, oo)) + + +@XFAIL +def test_X18(): + # Power series (compute the general formula). Maple FPS: + # > FormalPowerSeries(exp(-x)*sin(x), x = 0); + # infinity + # ----- (1/2 k) k + # \ 2 sin(3/4 k Pi) x + # ) ------------------------- + # / k! + # ----- + # + # Now, SymPy returns + # oo + # _____ + # \ ` + # \ / k k\ + # \ k |I*(-1 - I) I*(-1 + I) | + # \ x *|----------- - -----------| + # / \ 2 2 / + # / ------------------------------ + # / k! + # /____, + # k = 0 + k = Dummy('k') + assert fps(exp(-x)*sin(x)) == \ + Sum(2**(S.Half*k)*sin(R(3, 4)*k*pi)*x**k/factorial(k), (k, 0, oo)) + + +@XFAIL +def test_X19(): + # (c45) /* Derive an explicit Taylor series solution of y as a function of + # x from the following implicit relation: + # y = x - 1 + (x - 1)^2/2 + 2/3 (x - 1)^3 + (x - 1)^4 + + # 17/10 (x - 1)^5 + ... + # */ + # x = sin(y) + cos(y); + # Time= 0 msecs + # (d45) x = sin(y) + cos(y) + # + # (c46) taylor_revert(%, y, 7); + raise NotImplementedError("Solve using series not supported. \ +Inverse Taylor series expansion also not supported") + + +@XFAIL +def test_X20(): + # Pade (rational function) approximation => (2 - x)/(2 + x) + # > numapprox[pade](exp(-x), x = 0, [1, 1]); + # bytes used=9019816, alloc=3669344, time=13.12 + # 1 - 1/2 x + # --------- + # 1 + 1/2 x + # mpmath support numeric Pade approximant but there is + # no symbolic implementation in SymPy + # https://en.wikipedia.org/wiki/Pad%C3%A9_approximant + raise NotImplementedError("Symbolic Pade approximant not supported") + + +def test_X21(): + """ + Test whether `fourier_series` of x periodical on the [-p, p] interval equals + `- (2 p / pi) sum( (-1)^n / n sin(n pi x / p), n = 1..infinity )`. + """ + p = symbols('p', positive=True) + n = symbols('n', positive=True, integer=True) + s = fourier_series(x, (x, -p, p)) + + # All cosine coefficients are equal to 0 + assert s.an.formula == 0 + + # Check for sine coefficients + assert s.bn.formula.subs(s.bn.variables[0], 0) == 0 + assert s.bn.formula.subs(s.bn.variables[0], n) == \ + -2*p/pi * (-1)**n / n * sin(n*pi*x/p) + + +@XFAIL +def test_X22(): + # (c52) /* => p / 2 + # - (2 p / pi^2) sum( [1 - (-1)^n] cos(n pi x / p) / n^2, + # n = 1..infinity ) */ + # fourier_series(abs(x), x, p); + # p + # (e52) a = - + # 0 2 + # + # %nn + # (2 (- 1) - 2) p + # (e53) a = ------------------ + # %nn 2 2 + # %pi %nn + # + # (e54) b = 0 + # %nn + # + # Time= 5290 msecs + # inf %nn %pi %nn x + # ==== (2 (- 1) - 2) cos(---------) + # \ p + # p > ------------------------------- + # / 2 + # ==== %nn + # %nn = 1 p + # (d54) ----------------------------------------- + - + # 2 2 + # %pi + raise NotImplementedError("Fourier series not supported") + + +def test_Y1(): + t = symbols('t', positive=True) + w = symbols('w', real=True) + s = symbols('s') + F, _, _ = laplace_transform(cos((w - 1)*t), t, s) + assert F == s/(s**2 + (w - 1)**2) + + +def test_Y2(): + t = symbols('t', positive=True) + w = symbols('w', real=True) + s = symbols('s') + f = inverse_laplace_transform(s/(s**2 + (w - 1)**2), s, t, simplify=True) + assert f == cos(t*(w - 1)) + + +def test_Y3(): + t = symbols('t', positive=True) + w = symbols('w', real=True) + s = symbols('s') + F, _, _ = laplace_transform(sinh(w*t)*cosh(w*t), t, s, simplify=True) + assert F == w/(s**2 - 4*w**2) + + +def test_Y4(): + t = symbols('t', positive=True) + s = symbols('s') + F, _, _ = laplace_transform(erf(3/sqrt(t)), t, s, simplify=True) + assert F == 1/s - exp(-6*sqrt(s))/s + + +def test_Y5_Y6(): +# Solve y'' + y = 4 [H(t - 1) - H(t - 2)], y(0) = 1, y'(0) = 0 where H is the +# Heaviside (unit step) function (the RHS describes a pulse of magnitude 4 and +# duration 1). See David A. Sanchez, Richard C. Allen, Jr. and Walter T. +# Kyner, _Differential Equations: An Introduction_, Addison-Wesley Publishing +# Company, 1983, p. 211. First, take the Laplace transform of the ODE +# => s^2 Y(s) - s + Y(s) = 4/s [e^(-s) - e^(-2 s)] +# where Y(s) is the Laplace transform of y(t) + t = symbols('t', positive=True) + s = symbols('s') + y = Function('y') + F, _, _ = laplace_transform(diff(y(t), t, 2) + y(t) + - 4*(Heaviside(t - 1) - Heaviside(t - 2)), + t, s, simplify=True) + D = (F - (s**2*LaplaceTransform(y(t), t, s) - s*y(0) + + LaplaceTransform(y(t), t, s) - Subs(Derivative(y(t), t), t, 0) + + 4*(1 - exp(s))*exp(-2*s)/s)).simplify(doit=False) + assert D == 0 +# TODO implement second part of test case +# Now, solve for Y(s) and then take the inverse Laplace transform +# => Y(s) = s/(s^2 + 1) + 4 [1/s - s/(s^2 + 1)] [e^(-s) - e^(-2 s)] +# => y(t) = cos t + 4 {[1 - cos(t - 1)] H(t - 1) - [1 - cos(t - 2)] H(t - 2)} + + +@XFAIL +def test_Y7(): + # What is the Laplace transform of an infinite square wave? + # => 1/s + 2 sum( (-1)^n e^(- s n a)/s, n = 1..infinity ) + # [Sanchez, Allen and Kyner, p. 213] + t = symbols('t', positive=True) + a = symbols('a', real=True) + s = symbols('s') + F, _, _ = laplace_transform(1 + 2*Sum((-1)**n*Heaviside(t - n*a), + (n, 1, oo)), t, s) + # returns 2*LaplaceTransform(Sum((-1)**n*Heaviside(-a*n + t), + # (n, 1, oo)), t, s) + 1/s + # https://github.com/sympy/sympy/issues/7177 + assert F == 2*Sum((-1)**n*exp(-a*n*s)/s, (n, 1, oo)) + 1/s + + +@XFAIL +def test_Y8(): + assert fourier_transform(1, x, z) == DiracDelta(z) + + +def test_Y9(): + assert (fourier_transform(exp(-9*x**2), x, z) == + sqrt(pi)*exp(-pi**2*z**2/9)/3) + + +def test_Y10(): + assert (fourier_transform(abs(x)*exp(-3*abs(x)), x, z).cancel() == + (-8*pi**2*z**2 + 18)/(16*pi**4*z**4 + 72*pi**2*z**2 + 81)) + + +@SKIP("https://github.com/sympy/sympy/issues/7181") +@slow +def test_Y11(): + # => pi cot(pi s) (0 < Re s < 1) [Gradshteyn and Ryzhik 17.43(5)] + x, s = symbols('x s') + # raises RuntimeError: maximum recursion depth exceeded + # https://github.com/sympy/sympy/issues/7181 + # Update 2019-02-17 raises: + # TypeError: cannot unpack non-iterable MellinTransform object + F, _, _ = mellin_transform(1/(1 - x), x, s) + assert F == pi*cot(pi*s) + + +@XFAIL +def test_Y12(): + # => 2^(s - 4) gamma(s/2)/gamma(4 - s/2) (0 < Re s < 1) + # [Gradshteyn and Ryzhik 17.43(16)] + x, s = symbols('x s') + # returns Wrong value -2**(s - 4)*gamma(s/2 - 3)/gamma(-s/2 + 1) + # https://github.com/sympy/sympy/issues/7182 + F, _, _ = mellin_transform(besselj(3, x)/x**3, x, s) + assert F == -2**(s - 4)*gamma(s/2)/gamma(-s/2 + 4) + + +@XFAIL +def test_Y13(): +# Z[H(t - m T)] => z/[z^m (z - 1)] (H is the Heaviside (unit step) function) z + raise NotImplementedError("z-transform not supported") + + +@XFAIL +def test_Y14(): +# Z[H(t - m T)] => z/[z^m (z - 1)] (H is the Heaviside (unit step) function) + raise NotImplementedError("z-transform not supported") + + +def test_Z1(): + r = Function('r') + assert (rsolve(r(n + 2) - 2*r(n + 1) + r(n) - 2, r(n), + {r(0): 1, r(1): m}).simplify() == n**2 + n*(m - 2) + 1) + + +def test_Z2(): + r = Function('r') + assert (rsolve(r(n) - (5*r(n - 1) - 6*r(n - 2)), r(n), {r(0): 0, r(1): 1}) + == -2**n + 3**n) + + +def test_Z3(): + # => r(n) = Fibonacci[n + 1] [Cohen, p. 83] + r = Function('r') + # recurrence solution is correct, Wester expects it to be simplified to + # fibonacci(n+1), but that is quite hard + expected = ((S(1)/2 - sqrt(5)/2)**n*(S(1)/2 - sqrt(5)/10) + + (S(1)/2 + sqrt(5)/2)**n*(sqrt(5)/10 + S(1)/2)) + sol = rsolve(r(n) - (r(n - 1) + r(n - 2)), r(n), {r(1): 1, r(2): 2}) + assert sol == expected + + +@XFAIL +def test_Z4(): +# => [c^(n+1) [c^(n+1) - 2 c - 2] + (n+1) c^2 + 2 c - n] / [(c-1)^3 (c+1)] +# [Joan Z. Yu and Robert Israel in sci.math.symbolic] + r = Function('r') + c = symbols('c') + # raises ValueError: Polynomial or rational function expected, + # got '(c**2 - c**n)/(c - c**n) + s = rsolve(r(n) - ((1 + c - c**(n-1) - c**(n+1))/(1 - c**n)*r(n - 1) + - c*(1 - c**(n-2))/(1 - c**(n-1))*r(n - 2) + 1), + r(n), {r(1): 1, r(2): (2 + 2*c + c**2)/(1 + c)}) + assert (s - (c*(n + 1)*(c*(n + 1) - 2*c - 2) + + (n + 1)*c**2 + 2*c - n)/((c-1)**3*(c+1)) == 0) + + +@XFAIL +def test_Z5(): + # Second order ODE with initial conditions---solve directly + # transform: f(t) = sin(2 t)/8 - t cos(2 t)/4 + C1, C2 = symbols('C1 C2') + # initial conditions not supported, this is a manual workaround + # https://github.com/sympy/sympy/issues/4720 + eq = Derivative(f(x), x, 2) + 4*f(x) - sin(2*x) + sol = dsolve(eq, f(x)) + f0 = Lambda(x, sol.rhs) + assert f0(x) == C2*sin(2*x) + (C1 - x/4)*cos(2*x) + f1 = Lambda(x, diff(f0(x), x)) + # TODO: Replace solve with solveset, when it works for solveset + const_dict = solve((f0(0), f1(0))) + result = f0(x).subs(C1, const_dict[C1]).subs(C2, const_dict[C2]) + assert result == -x*cos(2*x)/4 + sin(2*x)/8 + # Result is OK, but ODE solving with initial conditions should be + # supported without all this manual work + raise NotImplementedError('ODE solving with initial conditions \ +not supported') + + +@XFAIL +def test_Z6(): + # Second order ODE with initial conditions---solve using Laplace + # transform: f(t) = sin(2 t)/8 - t cos(2 t)/4 + t = symbols('t', positive=True) + s = symbols('s') + eq = Derivative(f(t), t, 2) + 4*f(t) - sin(2*t) + F, _, _ = laplace_transform(eq, t, s) + # Laplace transform for diff() not calculated + # https://github.com/sympy/sympy/issues/7176 + assert (F == s**2*LaplaceTransform(f(t), t, s) + + 4*LaplaceTransform(f(t), t, s) - 2/(s**2 + 4)) + # rest of test case not implemented diff --git a/shared/package-files/eb/ebfd9b88272133953800c4099b0cb39f6a3ebf082cdf2db450f077f988534eb7/blob b/shared/package-files/eb/ebfd9b88272133953800c4099b0cb39f6a3ebf082cdf2db450f077f988534eb7/blob new file mode 100644 index 0000000000000000000000000000000000000000..557f3bafa1da35f5048d056429befd20709381b9 --- /dev/null +++ b/shared/package-files/eb/ebfd9b88272133953800c4099b0cb39f6a3ebf082cdf2db450f077f988534eb7/blob @@ -0,0 +1,7 @@ +__all__ = ["PoissonGMLE", "PoissonOffsetGMLE", "PoissonZiGMLE", "TLinearModel"] +from .count import ( # NonlinearDeltaCov + PoissonGMLE, + PoissonOffsetGMLE, + PoissonZiGMLE, +) +from .tmodel import TLinearModel diff --git a/shared/package-files/eb/ebfe4f5ee08cbf9ad40ea9019367ac831efd700bfc6f4f412fcad108f60264a1/blob b/shared/package-files/eb/ebfe4f5ee08cbf9ad40ea9019367ac831efd700bfc6f4f412fcad108f60264a1/blob new file mode 100644 index 0000000000000000000000000000000000000000..0e68ad7c611910ac490ece2a7417a71e08509681 --- /dev/null +++ b/shared/package-files/eb/ebfe4f5ee08cbf9ad40ea9019367ac831efd700bfc6f4f412fcad108f60264a1/blob @@ -0,0 +1,128 @@ +from statsmodels.compat.python import PYTHON_IMPL_WASM + +from pathlib import Path +from socket import timeout +from urllib.error import HTTPError, URLError + +import numpy as np +from numpy.testing import assert_, assert_array_equal +import pytest + +from statsmodels.datasets import check_internet, get_rdataset, utils, webuse + +CUR_DIR = Path(__file__).resolve().parent + +IGNORED_EXCEPTIONS = (HTTPError, URLError, UnicodeEncodeError, timeout) +if not PYTHON_IMPL_WASM: + from ssl import SSLError + + IGNORED_EXCEPTIONS += (SSLError,) + + +@pytest.mark.smoke +def test_get_rdataset(): + test_url = ( + "https://raw.githubusercontent.com/vincentarelbundock/" + "Rdatasets/master/csv/datasets/cars.csv" + ) + internet_available = check_internet(test_url) + if not internet_available: # pragma: no cover + pytest.skip("Unable to retrieve file - skipping test") + try: + duncan = get_rdataset("Duncan", "carData", cache=CUR_DIR) + except IGNORED_EXCEPTIONS: + pytest.skip("Failed with HTTPError or URLError, these are random") + assert_(isinstance(duncan, utils.Dataset)) + duncan = get_rdataset("Duncan", "carData", cache=CUR_DIR) + assert_(duncan.from_cache) + + +@pytest.mark.smoke +@pytest.mark.thread_unsafe(reason="Disk access") +def test_get_rdataset_write_read_cache(): + # test writing and reading cache + try: + guerry = get_rdataset("Guerry", "HistData", cache=CUR_DIR) + except IGNORED_EXCEPTIONS: + pytest.skip("Failed with HTTPError or URLError, these are random") + + assert_(guerry.from_cache is False) + guerry2 = get_rdataset("Guerry", "HistData", cache=CUR_DIR) + assert_(guerry2.from_cache is True) + fn = ( + "raw.githubusercontent.com,vincentarelbundock,Rdatasets,master,csv," + "HistData,Guerry-v2.csv.zip" + ) + Path(CUR_DIR).joinpath(fn).unlink() + fn = ( + "raw.githubusercontent.com,vincentarelbundock,Rdatasets,master,doc," + "HistData,rst,Guerry-v2.rst.zip" + ) + Path(CUR_DIR).joinpath(fn).unlink() + + +def test_webuse(): + # test copied and adjusted from iolib/tests/test_foreign + from statsmodels.iolib.tests.results.macrodata import macrodata_result + + res2 = np.array([list(row) for row in macrodata_result]) + base_gh = ( + "https://github.com/statsmodels/statsmodels/raw/main/" + "statsmodels/datasets/macrodata/" + ) + internet_available = check_internet(base_gh) + if not internet_available: # pragma: no cover + pytest.skip("Unable to retrieve file - skipping test") + try: + res1 = webuse("macrodata", baseurl=base_gh, as_df=False) + except IGNORED_EXCEPTIONS: + pytest.skip("Failed with HTTPError or URLError, these are random") + assert_array_equal(res1, res2) + + +def test_webuse_pandas(): + # test copied and adjusted from iolib/tests/test_foreign + from statsmodels.compat.pandas import assert_frame_equal + + from statsmodels.datasets import macrodata + + dta = macrodata.load_pandas().data + base_gh = ( + "https://github.com/statsmodels/statsmodels/raw/main/" + "statsmodels/datasets/macrodata/" + ) + internet_available = check_internet(base_gh) + if not internet_available: # pragma: no cover + pytest.skip("Unable to retrieve file - skipping test") + try: + res1 = webuse("macrodata", baseurl=base_gh) + except IGNORED_EXCEPTIONS: + pytest.skip("Failed with HTTP Error, these are random") + res1 = res1.astype(float) + assert_frame_equal(res1, dta.astype(float)) + + +def test_clear_data_home(tmp_path): + # clear_data_home is documented to delete the entire data home cache; + # populate it with a file and confirm the whole directory disappears. + data_home = utils.get_data_home(str(tmp_path / "sm_data")) + assert Path(data_home).is_dir() + (Path(data_home) / "cached_file.csv").write_text("a,b\n1,2\n") + assert (Path(data_home) / "cached_file.csv").exists() + + utils.clear_data_home(data_home) + + assert not Path(data_home).exists() + + +def test_clear_data_home_uses_default_when_none(tmp_path, monkeypatch): + # data_home=None (the default) falls back to get_data_home's own + # default resolution (env var or ~/statsmodels_data) + monkeypatch.setenv("STATSMODELS_DATA", str(tmp_path / "env_data_home")) + + data_home = utils.get_data_home(None) + assert Path(data_home).is_dir() + + utils.clear_data_home(None) + + assert not Path(data_home).exists() diff --git a/shared/package-files/eb/ebff0eaed4f862c6831b8306107d88f135dca2441064ac9891a8463854546058/blob b/shared/package-files/eb/ebff0eaed4f862c6831b8306107d88f135dca2441064ac9891a8463854546058/blob new file mode 100644 index 0000000000000000000000000000000000000000..f0d25f8080c26916486bfc567ee4206a3b8c8da6 --- /dev/null +++ b/shared/package-files/eb/ebff0eaed4f862c6831b8306107d88f135dca2441064ac9891a8463854546058/blob @@ -0,0 +1,14 @@ +#!/usr/bin/env/python3 + +# Copyright (c) Facebook, Inc. and its affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + + +from torch.distributed.launcher.api import ( # noqa: F401 + LaunchConfig, + elastic_launch, + launch_agent, +) diff --git a/shared/package-files/eb/ebff1374dd7575fe6f69b590091df4ce34854cb41bc27b1431359fcca68cfec3/blob b/shared/package-files/eb/ebff1374dd7575fe6f69b590091df4ce34854cb41bc27b1431359fcca68cfec3/blob new file mode 100644 index 0000000000000000000000000000000000000000..a14b48f0120cbfc23c45db14dd363b0c88c59a2c --- /dev/null +++ b/shared/package-files/eb/ebff1374dd7575fe6f69b590091df4ce34854cb41bc27b1431359fcca68cfec3/blob @@ -0,0 +1 @@ +#include diff --git a/shared/package-files/ec/ec01b919fc3088225edd4aa368844fe71b5bc9134a0b2a8eba79dedb8e6e9a5d/blob b/shared/package-files/ec/ec01b919fc3088225edd4aa368844fe71b5bc9134a0b2a8eba79dedb8e6e9a5d/blob new file mode 100644 index 0000000000000000000000000000000000000000..3dd6e56175dd2119f6d9f7371e43c331af44523b --- /dev/null +++ b/shared/package-files/ec/ec01b919fc3088225edd4aa368844fe71b5bc9134a0b2a8eba79dedb8e6e9a5d/blob @@ -0,0 +1,487 @@ +import sys +from typing import ( + IO, + Any, + Callable, + Dict, + Generator, + Iterable, + List, + NoReturn, + Optional, + Pattern, + Protocol, + Sequence, + Text, + Tuple, + Type, + TypeVar, + Union, + overload, +) + +_T = TypeVar("_T") +_ActionT = TypeVar("_ActionT", bound=Action) +_N = TypeVar("_N") + +if sys.version_info >= (3,): + _Text = str +else: + _Text = Union[str, unicode] + +ONE_OR_MORE: str +OPTIONAL: str +PARSER: str +REMAINDER: str +SUPPRESS: str +ZERO_OR_MORE: str +_UNRECOGNIZED_ARGS_ATTR: str # undocumented + +class ArgumentError(Exception): + argument_name: Optional[str] + message: str + def __init__(self, argument: Optional[Action], message: str) -> None: ... + +# undocumented +class _AttributeHolder: + def _get_kwargs(self) -> List[Tuple[str, Any]]: ... + def _get_args(self) -> List[Any]: ... + +# undocumented +class _ActionsContainer: + description: Optional[_Text] + prefix_chars: _Text + argument_default: Any + conflict_handler: _Text + + _registries: Dict[_Text, Dict[Any, Any]] + _actions: List[Action] + _option_string_actions: Dict[_Text, Action] + _action_groups: List[_ArgumentGroup] + _mutually_exclusive_groups: List[_MutuallyExclusiveGroup] + _defaults: Dict[str, Any] + _negative_number_matcher: Pattern[str] + _has_negative_number_optionals: List[bool] + def __init__( + self, description: Optional[Text], prefix_chars: Text, argument_default: Any, conflict_handler: Text + ) -> None: ... + def register(self, registry_name: Text, value: Any, object: Any) -> None: ... + def _registry_get(self, registry_name: Text, value: Any, default: Any = ...) -> Any: ... + def set_defaults(self, **kwargs: Any) -> None: ... + def get_default(self, dest: Text) -> Any: ... + def add_argument( + self, + *name_or_flags: Text, + action: Union[Text, Type[Action]] = ..., + nargs: Union[int, Text] = ..., + const: Any = ..., + default: Any = ..., + type: Union[Callable[[Text], _T], Callable[[str], _T], FileType] = ..., + choices: Iterable[_T] = ..., + required: bool = ..., + help: Optional[Text] = ..., + metavar: Optional[Union[Text, Tuple[Text, ...]]] = ..., + dest: Optional[Text] = ..., + version: Text = ..., + **kwargs: Any, + ) -> Action: ... + def add_argument_group(self, *args: Any, **kwargs: Any) -> _ArgumentGroup: ... + def add_mutually_exclusive_group(self, **kwargs: Any) -> _MutuallyExclusiveGroup: ... + def _add_action(self, action: _ActionT) -> _ActionT: ... + def _remove_action(self, action: Action) -> None: ... + def _add_container_actions(self, container: _ActionsContainer) -> None: ... + def _get_positional_kwargs(self, dest: Text, **kwargs: Any) -> Dict[str, Any]: ... + def _get_optional_kwargs(self, *args: Any, **kwargs: Any) -> Dict[str, Any]: ... + def _pop_action_class(self, kwargs: Any, default: Optional[Type[Action]] = ...) -> Type[Action]: ... + def _get_handler(self) -> Callable[[Action, Iterable[Tuple[Text, Action]]], Any]: ... + def _check_conflict(self, action: Action) -> None: ... + def _handle_conflict_error(self, action: Action, conflicting_actions: Iterable[Tuple[Text, Action]]) -> NoReturn: ... + def _handle_conflict_resolve(self, action: Action, conflicting_actions: Iterable[Tuple[Text, Action]]) -> None: ... + +class _FormatterClass(Protocol): + def __call__(self, prog: str) -> HelpFormatter: ... + +class ArgumentParser(_AttributeHolder, _ActionsContainer): + prog: _Text + usage: Optional[_Text] + epilog: Optional[_Text] + formatter_class: _FormatterClass + fromfile_prefix_chars: Optional[_Text] + add_help: bool + + if sys.version_info >= (3, 5): + allow_abbrev: bool + + # undocumented + _positionals: _ArgumentGroup + _optionals: _ArgumentGroup + _subparsers: Optional[_ArgumentGroup] + + if sys.version_info >= (3, 9): + def __init__( + self, + prog: Optional[str] = ..., + usage: Optional[str] = ..., + description: Optional[str] = ..., + epilog: Optional[str] = ..., + parents: Sequence[ArgumentParser] = ..., + formatter_class: _FormatterClass = ..., + prefix_chars: str = ..., + fromfile_prefix_chars: Optional[str] = ..., + argument_default: Any = ..., + conflict_handler: str = ..., + add_help: bool = ..., + allow_abbrev: bool = ..., + exit_on_error: bool = ..., + ) -> None: ... + elif sys.version_info >= (3, 5): + def __init__( + self, + prog: Optional[str] = ..., + usage: Optional[str] = ..., + description: Optional[str] = ..., + epilog: Optional[str] = ..., + parents: Sequence[ArgumentParser] = ..., + formatter_class: _FormatterClass = ..., + prefix_chars: str = ..., + fromfile_prefix_chars: Optional[str] = ..., + argument_default: Any = ..., + conflict_handler: str = ..., + add_help: bool = ..., + allow_abbrev: bool = ..., + ) -> None: ... + else: + def __init__( + self, + prog: Optional[Text] = ..., + usage: Optional[Text] = ..., + description: Optional[Text] = ..., + epilog: Optional[Text] = ..., + parents: Sequence[ArgumentParser] = ..., + formatter_class: _FormatterClass = ..., + prefix_chars: Text = ..., + fromfile_prefix_chars: Optional[Text] = ..., + argument_default: Any = ..., + conflict_handler: Text = ..., + add_help: bool = ..., + ) -> None: ... + # The type-ignores in these overloads should be temporary. See: + # https://github.com/python/typeshed/pull/2643#issuecomment-442280277 + @overload + def parse_args(self, args: Optional[Sequence[Text]] = ...) -> Namespace: ... + @overload + def parse_args(self, args: Optional[Sequence[Text]], namespace: None) -> Namespace: ... # type: ignore + @overload + def parse_args(self, args: Optional[Sequence[Text]], namespace: _N) -> _N: ... + @overload + def parse_args(self, *, namespace: None) -> Namespace: ... # type: ignore + @overload + def parse_args(self, *, namespace: _N) -> _N: ... + if sys.version_info >= (3, 7): + def add_subparsers( + self, + *, + title: str = ..., + description: Optional[str] = ..., + prog: str = ..., + parser_class: Type[ArgumentParser] = ..., + action: Type[Action] = ..., + option_string: str = ..., + dest: Optional[str] = ..., + required: bool = ..., + help: Optional[str] = ..., + metavar: Optional[str] = ..., + ) -> _SubParsersAction: ... + else: + def add_subparsers( + self, + *, + title: Text = ..., + description: Optional[Text] = ..., + prog: Text = ..., + parser_class: Type[ArgumentParser] = ..., + action: Type[Action] = ..., + option_string: Text = ..., + dest: Optional[Text] = ..., + help: Optional[Text] = ..., + metavar: Optional[Text] = ..., + ) -> _SubParsersAction: ... + def print_usage(self, file: Optional[IO[str]] = ...) -> None: ... + def print_help(self, file: Optional[IO[str]] = ...) -> None: ... + def format_usage(self) -> str: ... + def format_help(self) -> str: ... + def parse_known_args( + self, args: Optional[Sequence[Text]] = ..., namespace: Optional[Namespace] = ... + ) -> Tuple[Namespace, List[str]]: ... + def convert_arg_line_to_args(self, arg_line: Text) -> List[str]: ... + def exit(self, status: int = ..., message: Optional[Text] = ...) -> NoReturn: ... + def error(self, message: Text) -> NoReturn: ... + if sys.version_info >= (3, 7): + def parse_intermixed_args( + self, args: Optional[Sequence[str]] = ..., namespace: Optional[Namespace] = ... + ) -> Namespace: ... + def parse_known_intermixed_args( + self, args: Optional[Sequence[str]] = ..., namespace: Optional[Namespace] = ... + ) -> Tuple[Namespace, List[str]]: ... + # undocumented + def _get_optional_actions(self) -> List[Action]: ... + def _get_positional_actions(self) -> List[Action]: ... + def _parse_known_args(self, arg_strings: List[Text], namespace: Namespace) -> Tuple[Namespace, List[str]]: ... + def _read_args_from_files(self, arg_strings: List[Text]) -> List[Text]: ... + def _match_argument(self, action: Action, arg_strings_pattern: Text) -> int: ... + def _match_arguments_partial(self, actions: Sequence[Action], arg_strings_pattern: Text) -> List[int]: ... + def _parse_optional(self, arg_string: Text) -> Optional[Tuple[Optional[Action], Text, Optional[Text]]]: ... + def _get_option_tuples(self, option_string: Text) -> List[Tuple[Action, Text, Optional[Text]]]: ... + def _get_nargs_pattern(self, action: Action) -> _Text: ... + def _get_values(self, action: Action, arg_strings: List[Text]) -> Any: ... + def _get_value(self, action: Action, arg_string: Text) -> Any: ... + def _check_value(self, action: Action, value: Any) -> None: ... + def _get_formatter(self) -> HelpFormatter: ... + def _print_message(self, message: str, file: Optional[IO[str]] = ...) -> None: ... + +class HelpFormatter: + # undocumented + _prog: _Text + _indent_increment: int + _max_help_position: int + _width: int + _current_indent: int + _level: int + _action_max_length: int + _root_section: Any + _current_section: Any + _whitespace_matcher: Pattern[str] + _long_break_matcher: Pattern[str] + _Section: Type[Any] # Nested class + def __init__( + self, prog: Text, indent_increment: int = ..., max_help_position: int = ..., width: Optional[int] = ... + ) -> None: ... + def _indent(self) -> None: ... + def _dedent(self) -> None: ... + def _add_item(self, func: Callable[..., _Text], args: Iterable[Any]) -> None: ... + def start_section(self, heading: Optional[Text]) -> None: ... + def end_section(self) -> None: ... + def add_text(self, text: Optional[Text]) -> None: ... + def add_usage( + self, usage: Text, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text] = ... + ) -> None: ... + def add_argument(self, action: Action) -> None: ... + def add_arguments(self, actions: Iterable[Action]) -> None: ... + def format_help(self) -> _Text: ... + def _join_parts(self, part_strings: Iterable[Text]) -> _Text: ... + def _format_usage( + self, usage: Text, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text] + ) -> _Text: ... + def _format_actions_usage(self, actions: Iterable[Action], groups: Iterable[_ArgumentGroup]) -> _Text: ... + def _format_text(self, text: Text) -> _Text: ... + def _format_action(self, action: Action) -> _Text: ... + def _format_action_invocation(self, action: Action) -> _Text: ... + def _metavar_formatter(self, action: Action, default_metavar: Text) -> Callable[[int], Tuple[_Text, ...]]: ... + def _format_args(self, action: Action, default_metavar: Text) -> _Text: ... + def _expand_help(self, action: Action) -> _Text: ... + def _iter_indented_subactions(self, action: Action) -> Generator[Action, None, None]: ... + def _split_lines(self, text: Text, width: int) -> List[_Text]: ... + def _fill_text(self, text: Text, width: int, indent: Text) -> _Text: ... + def _get_help_string(self, action: Action) -> Optional[_Text]: ... + def _get_default_metavar_for_optional(self, action: Action) -> _Text: ... + def _get_default_metavar_for_positional(self, action: Action) -> _Text: ... + +class RawDescriptionHelpFormatter(HelpFormatter): ... +class RawTextHelpFormatter(RawDescriptionHelpFormatter): ... +class ArgumentDefaultsHelpFormatter(HelpFormatter): ... + +if sys.version_info >= (3,): + class MetavarTypeHelpFormatter(HelpFormatter): ... + +class Action(_AttributeHolder): + option_strings: Sequence[_Text] + dest: _Text + nargs: Optional[Union[int, _Text]] + const: Any + default: Any + type: Union[Callable[[str], Any], FileType, None] + choices: Optional[Iterable[Any]] + required: bool + help: Optional[_Text] + metavar: Optional[Union[_Text, Tuple[_Text, ...]]] + def __init__( + self, + option_strings: Sequence[Text], + dest: Text, + nargs: Optional[Union[int, Text]] = ..., + const: Optional[_T] = ..., + default: Union[_T, str, None] = ..., + type: Optional[Union[Callable[[Text], _T], Callable[[str], _T], FileType]] = ..., + choices: Optional[Iterable[_T]] = ..., + required: bool = ..., + help: Optional[Text] = ..., + metavar: Optional[Union[Text, Tuple[Text, ...]]] = ..., + ) -> None: ... + def __call__( + self, + parser: ArgumentParser, + namespace: Namespace, + values: Union[Text, Sequence[Any], None], + option_string: Optional[Text] = ..., + ) -> None: ... + if sys.version_info >= (3, 9): + def format_usage(self) -> str: ... + +if sys.version_info >= (3, 9): + class BooleanOptionalAction(Action): + def __init__( + self, + option_strings: Sequence[str], + dest: str, + default: Union[_T, str, None] = ..., + type: Optional[Union[Callable[[Text], _T], Callable[[str], _T], FileType]] = ..., + choices: Optional[Iterable[_T]] = ..., + required: bool = ..., + help: Optional[Text] = ..., + metavar: Optional[Union[Text, Tuple[Text, ...]]] = ..., + ) -> None: ... + +class Namespace(_AttributeHolder): + def __init__(self, **kwargs: Any) -> None: ... + def __getattr__(self, name: Text) -> Any: ... + def __setattr__(self, name: Text, value: Any) -> None: ... + def __contains__(self, key: str) -> bool: ... + +class FileType: + # undocumented + _mode: _Text + _bufsize: int + if sys.version_info >= (3,): + _encoding: Optional[str] + _errors: Optional[str] + def __init__( + self, mode: str = ..., bufsize: int = ..., encoding: Optional[str] = ..., errors: Optional[str] = ... + ) -> None: ... + else: + def __init__(self, mode: Text = ..., bufsize: Optional[int] = ...) -> None: ... + def __call__(self, string: Text) -> IO[Any]: ... + +# undocumented +class _ArgumentGroup(_ActionsContainer): + title: Optional[_Text] + _group_actions: List[Action] + def __init__( + self, container: _ActionsContainer, title: Optional[Text] = ..., description: Optional[Text] = ..., **kwargs: Any + ) -> None: ... + +# undocumented +class _MutuallyExclusiveGroup(_ArgumentGroup): + required: bool + _container: _ActionsContainer + def __init__(self, container: _ActionsContainer, required: bool = ...) -> None: ... + +# undocumented +class _StoreAction(Action): ... + +# undocumented +class _StoreConstAction(Action): + def __init__( + self, + option_strings: Sequence[Text], + dest: Text, + const: Any, + default: Any = ..., + required: bool = ..., + help: Optional[Text] = ..., + metavar: Optional[Union[Text, Tuple[Text, ...]]] = ..., + ) -> None: ... + +# undocumented +class _StoreTrueAction(_StoreConstAction): + def __init__( + self, option_strings: Sequence[Text], dest: Text, default: bool = ..., required: bool = ..., help: Optional[Text] = ... + ) -> None: ... + +# undocumented +class _StoreFalseAction(_StoreConstAction): + def __init__( + self, option_strings: Sequence[Text], dest: Text, default: bool = ..., required: bool = ..., help: Optional[Text] = ... + ) -> None: ... + +# undocumented +class _AppendAction(Action): ... + +# undocumented +class _AppendConstAction(Action): + def __init__( + self, + option_strings: Sequence[Text], + dest: Text, + const: Any, + default: Any = ..., + required: bool = ..., + help: Optional[Text] = ..., + metavar: Optional[Union[Text, Tuple[Text, ...]]] = ..., + ) -> None: ... + +# undocumented +class _CountAction(Action): + def __init__( + self, option_strings: Sequence[Text], dest: Text, default: Any = ..., required: bool = ..., help: Optional[Text] = ... + ) -> None: ... + +# undocumented +class _HelpAction(Action): + def __init__( + self, option_strings: Sequence[Text], dest: Text = ..., default: Text = ..., help: Optional[Text] = ... + ) -> None: ... + +# undocumented +class _VersionAction(Action): + version: Optional[_Text] + def __init__( + self, + option_strings: Sequence[Text], + version: Optional[Text] = ..., + dest: Text = ..., + default: Text = ..., + help: Text = ..., + ) -> None: ... + +# undocumented +class _SubParsersAction(Action): + _ChoicesPseudoAction: Type[Any] # nested class + _prog_prefix: _Text + _parser_class: Type[ArgumentParser] + _name_parser_map: Dict[_Text, ArgumentParser] + choices: Dict[_Text, ArgumentParser] + _choices_actions: List[Action] + if sys.version_info >= (3, 7): + def __init__( + self, + option_strings: Sequence[Text], + prog: Text, + parser_class: Type[ArgumentParser], + dest: Text = ..., + required: bool = ..., + help: Optional[Text] = ..., + metavar: Optional[Union[Text, Tuple[Text, ...]]] = ..., + ) -> None: ... + else: + def __init__( + self, + option_strings: Sequence[Text], + prog: Text, + parser_class: Type[ArgumentParser], + dest: Text = ..., + help: Optional[Text] = ..., + metavar: Optional[Union[Text, Tuple[Text, ...]]] = ..., + ) -> None: ... + # TODO: Type keyword args properly. + def add_parser(self, name: Text, **kwargs: Any) -> ArgumentParser: ... + def _get_subactions(self) -> List[Action]: ... + +# undocumented +class ArgumentTypeError(Exception): ... + +if sys.version_info < (3, 7): + # undocumented + def _ensure_value(namespace: Namespace, name: Text, value: Any) -> Any: ... + +# undocumented +def _get_action_name(argument: Optional[Action]) -> Optional[str]: ... diff --git a/shared/package-files/ec/ec01cde068b8038fa73d6f23fc21b933d3d0267deb92c9f332f9df11032add30/blob b/shared/package-files/ec/ec01cde068b8038fa73d6f23fc21b933d3d0267deb92c9f332f9df11032add30/blob new file mode 100644 index 0000000000000000000000000000000000000000..35edad1ae2474459ee3ea9c3402ab68662352957 --- /dev/null +++ b/shared/package-files/ec/ec01cde068b8038fa73d6f23fc21b933d3d0267deb92c9f332f9df11032add30/blob @@ -0,0 +1,81 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::linalg_matrix_rank.atol_rtol_tensor(Tensor input, *, Tensor? atol=None, Tensor? rtol=None, bool hermitian=False) -> Tensor +inline at::Tensor linalg_matrix_rank(const at::Tensor & input, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_atol_rtol_tensor::call(input, atol, rtol, hermitian); +} + +// aten::linalg_matrix_rank.atol_rtol_tensor_out(Tensor input, *, Tensor? atol=None, Tensor? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & input, const c10::optional & atol={}, const c10::optional & rtol={}, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_atol_rtol_tensor_out::call(input, atol, rtol, hermitian, out); +} +// aten::linalg_matrix_rank.atol_rtol_tensor_out(Tensor input, *, Tensor? atol=None, Tensor? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_outf(const at::Tensor & input, const c10::optional & atol, const c10::optional & rtol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_matrix_rank_atol_rtol_tensor_out::call(input, atol, rtol, hermitian, out); +} + +// aten::linalg_matrix_rank.atol_rtol_float(Tensor self, *, float? atol=None, float? rtol=None, bool hermitian=False) -> Tensor +inline at::Tensor linalg_matrix_rank(const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_atol_rtol_float::call(self, atol, rtol, hermitian); +} + +// aten::linalg_matrix_rank.atol_rtol_float_out(Tensor self, *, float? atol=None, float? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_atol_rtol_float_out::call(self, atol, rtol, hermitian, out); +} +// aten::linalg_matrix_rank.atol_rtol_float_out(Tensor self, *, float? atol=None, float? rtol=None, bool hermitian=False, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_outf(const at::Tensor & self, c10::optional atol, c10::optional rtol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_matrix_rank_atol_rtol_float_out::call(self, atol, rtol, hermitian, out); +} + +// aten::linalg_matrix_rank(Tensor self, float tol, bool hermitian=False) -> Tensor +inline at::Tensor linalg_matrix_rank(const at::Tensor & self, double tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank::call(self, tol, hermitian); +} + +// aten::linalg_matrix_rank.out(Tensor self, float tol, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & self, double tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_out::call(self, tol, hermitian, out); +} +// aten::linalg_matrix_rank.out(Tensor self, float tol, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_outf(const at::Tensor & self, double tol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_matrix_rank_out::call(self, tol, hermitian, out); +} + +// aten::linalg_matrix_rank.tol_tensor(Tensor input, Tensor tol, bool hermitian=False) -> Tensor +inline at::Tensor linalg_matrix_rank(const at::Tensor & input, const at::Tensor & tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_tol_tensor::call(input, tol, hermitian); +} + +// aten::linalg_matrix_rank.out_tol_tensor(Tensor input, Tensor tol, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & input, const at::Tensor & tol, bool hermitian=false) { + return at::_ops::linalg_matrix_rank_out_tol_tensor::call(input, tol, hermitian, out); +} +// aten::linalg_matrix_rank.out_tol_tensor(Tensor input, Tensor tol, bool hermitian=False, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & linalg_matrix_rank_outf(const at::Tensor & input, const at::Tensor & tol, bool hermitian, at::Tensor & out) { + return at::_ops::linalg_matrix_rank_out_tol_tensor::call(input, tol, hermitian, out); +} + +} diff --git a/shared/package-files/ec/ec02f07654ef810d3799069feb6c5743c0d4c8f3aac20e3941dd05e0ae9de882/blob b/shared/package-files/ec/ec02f07654ef810d3799069feb6c5743c0d4c8f3aac20e3941dd05e0ae9de882/blob new file mode 100644 index 0000000000000000000000000000000000000000..cbcef807f6b4c345252504bdbef518405d4584d4 --- /dev/null +++ b/shared/package-files/ec/ec02f07654ef810d3799069feb6c5743c0d4c8f3aac20e3941dd05e0ae9de882/blob @@ -0,0 +1,108 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include +#include +#include + +#include +#include + +namespace tensorpipe { +namespace channel { + +enum class Endpoint : bool { kConnect, kListen }; + +class Channel; + +// Abstract base class for channel context classes. +// +// Instances of these classes are expected to be registered with a +// context. All registered instances are assumed to be eligible +// channels for all pairs. +// +class Context { + public: + // Return whether the context is able to operate correctly. + // + // Some channel types may be unable to perform as intended under some + // circumstances (e.g., specialized hardware unavailable, lack of + // permissions). They can report it through this method in order for + // the core context to avoid registering them in the first place. + // + virtual bool isViable() const = 0; + + // Return the number of control connections needed to create an instance of + // this channel. + // + // Most channels require only one, but some require more (cuda_basic), and + // some might require none. + // + virtual size_t numConnectionsNeeded() const = 0; + + // Return a map from supported devices to strings describing the device from + // the channel's perspective. + // + // Two processes with a channel context of the same type can leverage this + // channel to make two devices communicate if one side's device descriptor is + // "accepted" by the other one, using the canCommunicateWithRemote method + // below. That method must be symmetric, and unless overridden defaults to + // string comparison. + // + virtual const std::unordered_map& deviceDescriptors() + const = 0; + + // Compare local and remote device descriptors for compatibility. + // + // Determine whether a channel can be opened between a local device and + // a remote one that has the given device descriptor. This function + // needs to be symmetric: if we called this method on the remote + // context with the local descriptor we should get the same answer. + // Unless overridden it defaults to string comparison. + // + virtual bool canCommunicateWithRemote( + const std::string& localDeviceDescriptor, + const std::string& remoteDeviceDescriptor) const = 0; + + // Return newly created channel using the specified connections. + // + // It is up to the channel to either use these connections for further + // initialization, or use them directly. Either way, the returned + // channel should be immediately usable. If the channel isn't fully + // initialized yet, take care to queue these operations to execute + // as soon as initialization has completed. + // + virtual std::shared_ptr createChannel( + std::vector>, + Endpoint) = 0; + + // Tell the context what its identifier is. + // + // This is only supposed to be called from the high-level context. It will + // only used for logging and debugging purposes. + virtual void setId(std::string id) = 0; + + // Put the channel context in a terminal state, in turn closing all of its + // channels, and release its resources. This may be done asynchronously, in + // background. + virtual void close() = 0; + + // Wait for all resources to be released and all background activity to stop. + virtual void join() = 0; + + virtual ~Context() = default; + + private: + std::string name_; +}; + +} // namespace channel +} // namespace tensorpipe diff --git a/shared/package-files/ec/ec048a15617aef040e78f8b91d1dd1a84b8001bdb1aa47f562b461966352e114/blob b/shared/package-files/ec/ec048a15617aef040e78f8b91d1dd1a84b8001bdb1aa47f562b461966352e114/blob new file mode 100644 index 0000000000000000000000000000000000000000..01ab760bfcd34734ab5fdf3768d84748465a1428 --- /dev/null +++ b/shared/package-files/ec/ec048a15617aef040e78f8b91d1dd1a84b8001bdb1aa47f562b461966352e114/blob @@ -0,0 +1,133 @@ +import sys +import types +from socket import SocketType +from typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Tuple, Type, Union + +class BaseServer: + address_family: int + RequestHandlerClass: Callable[..., BaseRequestHandler] + server_address: Tuple[str, int] + socket: SocketType + allow_reuse_address: bool + request_queue_size: int + socket_type: int + timeout: Optional[float] + def __init__(self, server_address: Any, RequestHandlerClass: Callable[..., BaseRequestHandler]) -> None: ... + def fileno(self) -> int: ... + def handle_request(self) -> None: ... + def serve_forever(self, poll_interval: float = ...) -> None: ... + def shutdown(self) -> None: ... + def server_close(self) -> None: ... + def finish_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ... + def get_request(self) -> Tuple[SocketType, Tuple[str, int]]: ... + def handle_error(self, request: bytes, client_address: Tuple[str, int]) -> None: ... + def handle_timeout(self) -> None: ... + def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ... + def server_activate(self) -> None: ... + def server_bind(self) -> None: ... + def verify_request(self, request: bytes, client_address: Tuple[str, int]) -> bool: ... + if sys.version_info >= (3, 6): + def __enter__(self) -> BaseServer: ... + def __exit__( + self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[types.TracebackType] + ) -> None: ... + def service_actions(self) -> None: ... + +class TCPServer(BaseServer): + def __init__( + self, + server_address: Tuple[str, int], + RequestHandlerClass: Callable[..., BaseRequestHandler], + bind_and_activate: bool = ..., + ) -> None: ... + +class UDPServer(BaseServer): + def __init__( + self, + server_address: Tuple[str, int], + RequestHandlerClass: Callable[..., BaseRequestHandler], + bind_and_activate: bool = ..., + ) -> None: ... + +if sys.platform != "win32": + class UnixStreamServer(BaseServer): + def __init__( + self, + server_address: Union[str, bytes], + RequestHandlerClass: Callable[..., BaseRequestHandler], + bind_and_activate: bool = ..., + ) -> None: ... + class UnixDatagramServer(BaseServer): + def __init__( + self, + server_address: Union[str, bytes], + RequestHandlerClass: Callable[..., BaseRequestHandler], + bind_and_activate: bool = ..., + ) -> None: ... + +if sys.platform != "win32": + class ForkingMixIn: + timeout: Optional[float] # undocumented + active_children: Optional[List[int]] # undocumented + max_children: int # undocumented + if sys.version_info >= (3, 7): + block_on_close: bool + if sys.version_info >= (3, 6): + def collect_children(self, *, blocking: bool = ...) -> None: ... # undocumented + else: + def collect_children(self) -> None: ... # undocumented + def handle_timeout(self) -> None: ... # undocumented + def service_actions(self) -> None: ... # undocumented + def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ... + if sys.version_info >= (3, 6): + def server_close(self) -> None: ... + +class ThreadingMixIn: + daemon_threads: bool + if sys.version_info >= (3, 7): + block_on_close: bool + def process_request_thread(self, request: bytes, client_address: Tuple[str, int]) -> None: ... # undocumented + def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ... + if sys.version_info >= (3, 6): + def server_close(self) -> None: ... + +if sys.platform != "win32": + class ForkingTCPServer(ForkingMixIn, TCPServer): ... + class ForkingUDPServer(ForkingMixIn, UDPServer): ... + +class ThreadingTCPServer(ThreadingMixIn, TCPServer): ... +class ThreadingUDPServer(ThreadingMixIn, UDPServer): ... + +if sys.platform != "win32": + class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer): ... + class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): ... + +class BaseRequestHandler: + # Those are technically of types, respectively: + # * Union[SocketType, Tuple[bytes, SocketType]] + # * Union[Tuple[str, int], str] + # But there are some concerns that having unions here would cause + # too much inconvenience to people using it (see + # https://github.com/python/typeshed/pull/384#issuecomment-234649696) + request: Any + client_address: Any + server: BaseServer + def __init__(self, request: Any, client_address: Any, server: BaseServer) -> None: ... + def setup(self) -> None: ... + def handle(self) -> None: ... + def finish(self) -> None: ... + +class StreamRequestHandler(BaseRequestHandler): + rbufsize: ClassVar[int] # Undocumented + wbufsize: ClassVar[int] # Undocumented + timeout: ClassVar[Optional[float]] # Undocumented + disable_nagle_algorithm: ClassVar[bool] # Undocumented + connection: SocketType # Undocumented + rfile: BinaryIO + wfile: BinaryIO + +class DatagramRequestHandler(BaseRequestHandler): + packet: SocketType # Undocumented + socket: SocketType # Undocumented + rfile: BinaryIO + wfile: BinaryIO diff --git a/shared/package-files/ec/ec04b2cde3ebf3fc6e65626c9ea263201b7257cbe1128d30042bf530f4518b74/blob b/shared/package-files/ec/ec04b2cde3ebf3fc6e65626c9ea263201b7257cbe1128d30042bf530f4518b74/blob new file mode 100644 index 0000000000000000000000000000000000000000..66958f0a069d7aea7939bed40b9197608e93b243 --- /dev/null +++ b/shared/package-files/ec/ec04b2cde3ebf3fc6e65626c9ea263201b7257cbe1128d30042bf530f4518b74/blob @@ -0,0 +1 @@ +charset_normalizer diff --git a/shared/package-files/ec/ec04ccc333ef0285a21fb09ec7e0fade79a539adb487bd333b94d61958ac1703/blob b/shared/package-files/ec/ec04ccc333ef0285a21fb09ec7e0fade79a539adb487bd333b94d61958ac1703/blob new file mode 100644 index 0000000000000000000000000000000000000000..2f042fc937ac747108e10bcbaba375a8b443e3a5 --- /dev/null +++ b/shared/package-files/ec/ec04ccc333ef0285a21fb09ec7e0fade79a539adb487bd333b94d61958ac1703/blob @@ -0,0 +1,252 @@ +from sympy.core.singleton import S +from sympy.combinatorics.fp_groups import (FpGroup, low_index_subgroups, + reidemeister_presentation, FpSubgroup, + simplify_presentation) +from sympy.combinatorics.free_groups import (free_group, FreeGroup) + +from sympy.testing.pytest import slow + +""" +References +========== + +[1] Holt, D., Eick, B., O'Brien, E. +"Handbook of Computational Group Theory" + +[2] John J. Cannon; Lucien A. Dimino; George Havas; Jane M. Watson +Mathematics of Computation, Vol. 27, No. 123. (Jul., 1973), pp. 463-490. +"Implementation and Analysis of the Todd-Coxeter Algorithm" + +[3] PROC. SECOND INTERNAT. CONF. THEORY OF GROUPS, CANBERRA 1973, +pp. 347-356. "A Reidemeister-Schreier program" by George Havas. +http://staff.itee.uq.edu.au/havas/1973cdhw.pdf + +""" + +def test_low_index_subgroups(): + F, x, y = free_group("x, y") + + # Example 5.10 from [1] Pg. 194 + f = FpGroup(F, [x**2, y**3, (x*y)**4]) + L = low_index_subgroups(f, 4) + t1 = [[[0, 0, 0, 0]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 3, 3]], + [[0, 0, 1, 2], [2, 2, 2, 0], [1, 1, 0, 1]], + [[1, 1, 0, 0], [0, 0, 1, 1]]] + for i in range(len(t1)): + assert L[i].table == t1[i] + + f = FpGroup(F, [x**2, y**3, (x*y)**7]) + L = low_index_subgroups(f, 15) + t2 = [[[0, 0, 0, 0]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 4, 5], + [4, 4, 5, 3], [6, 6, 3, 4], [5, 5, 6, 6]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 4, 5], + [6, 6, 5, 3], [5, 5, 3, 4], [4, 4, 6, 6]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 4, 5], + [6, 6, 5, 3], [7, 7, 3, 4], [4, 4, 8, 9], [5, 5, 10, 11], + [11, 11, 9, 6], [9, 9, 6, 8], [12, 12, 11, 7], [8, 8, 7, 10], + [10, 10, 13, 14], [14, 14, 14, 12], [13, 13, 12, 13]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 4, 5], + [6, 6, 5, 3], [7, 7, 3, 4], [4, 4, 8, 9], [5, 5, 10, 11], + [11, 11, 9, 6], [12, 12, 6, 8], [10, 10, 11, 7], [8, 8, 7, 10], + [9, 9, 13, 14], [14, 14, 14, 12], [13, 13, 12, 13]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 4, 5], + [6, 6, 5, 3], [7, 7, 3, 4], [4, 4, 8, 9], [5, 5, 10, 11], + [11, 11, 9, 6], [12, 12, 6, 8], [13, 13, 11, 7], [8, 8, 7, 10], + [9, 9, 12, 12], [10, 10, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 3, 3], [2, 2, 5, 6] + , [7, 7, 6, 4], [8, 8, 4, 5], [5, 5, 8, 9], [6, 6, 9, 7], + [10, 10, 7, 8], [9, 9, 11, 12], [11, 11, 12, 10], [13, 13, 10, 11], + [12, 12, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 3, 3], [2, 2, 5, 6] + , [7, 7, 6, 4], [8, 8, 4, 5], [5, 5, 8, 9], [6, 6, 9, 7], + [10, 10, 7, 8], [9, 9, 11, 12], [13, 13, 12, 10], [12, 12, 10, 11], + [11, 11, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 4, 4] + , [7, 7, 6, 3], [8, 8, 3, 5], [5, 5, 8, 9], [6, 6, 9, 7], + [10, 10, 7, 8], [9, 9, 11, 12], [13, 13, 12, 10], [12, 12, 10, 11], + [11, 11, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8] + , [5, 5, 6, 3], [9, 9, 3, 5], [10, 10, 8, 4], [8, 8, 4, 7], + [6, 6, 10, 11], [7, 7, 11, 9], [12, 12, 9, 10], [11, 11, 13, 14], + [14, 14, 14, 12], [13, 13, 12, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8] + , [6, 6, 6, 3], [5, 5, 3, 5], [8, 8, 8, 4], [7, 7, 4, 7]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8] + , [9, 9, 6, 3], [6, 6, 3, 5], [10, 10, 8, 4], [11, 11, 4, 7], + [5, 5, 10, 12], [7, 7, 12, 9], [8, 8, 11, 11], [13, 13, 9, 10], + [12, 12, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8] + , [9, 9, 6, 3], [6, 6, 3, 5], [10, 10, 8, 4], [11, 11, 4, 7], + [5, 5, 12, 11], [7, 7, 10, 10], [8, 8, 9, 12], [13, 13, 11, 9], + [12, 12, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8] + , [9, 9, 6, 3], [10, 10, 3, 5], [7, 7, 8, 4], [11, 11, 4, 7], + [5, 5, 9, 9], [6, 6, 11, 12], [8, 8, 12, 10], [13, 13, 10, 11], + [12, 12, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8] + , [9, 9, 6, 3], [10, 10, 3, 5], [7, 7, 8, 4], [11, 11, 4, 7], + [5, 5, 12, 11], [6, 6, 10, 10], [8, 8, 9, 12], [13, 13, 11, 9], + [12, 12, 13, 13]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8] + , [9, 9, 6, 3], [10, 10, 3, 5], [11, 11, 8, 4], [12, 12, 4, 7], + [5, 5, 9, 9], [6, 6, 12, 13], [7, 7, 11, 11], [8, 8, 13, 10], + [13, 13, 10, 12]], + [[1, 1, 0, 0], [0, 0, 2, 3], [4, 4, 3, 1], [5, 5, 1, 2], [2, 2, 4, 4] + , [3, 3, 6, 7], [7, 7, 7, 5], [6, 6, 5, 6]]] + for i in range(len(t2)): + assert L[i].table == t2[i] + + f = FpGroup(F, [x**2, y**3, (x*y)**7]) + L = low_index_subgroups(f, 10, [x]) + t3 = [[[0, 0, 0, 0]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 4, 5], [4, 4, 5, 3], + [6, 6, 3, 4], [5, 5, 6, 6]], + [[0, 0, 1, 2], [1, 1, 2, 0], [3, 3, 0, 1], [2, 2, 4, 5], [6, 6, 5, 3], + [5, 5, 3, 4], [4, 4, 6, 6]], + [[0, 0, 1, 2], [3, 3, 2, 0], [4, 4, 0, 1], [1, 1, 5, 6], [2, 2, 7, 8], + [6, 6, 6, 3], [5, 5, 3, 5], [8, 8, 8, 4], [7, 7, 4, 7]]] + for i in range(len(t3)): + assert L[i].table == t3[i] + + +def test_subgroup_presentations(): + F, x, y = free_group("x, y") + f = FpGroup(F, [x**3, y**5, (x*y)**2]) + H = [x*y, x**-1*y**-1*x*y*x] + p1 = reidemeister_presentation(f, H) + assert str(p1) == "((y_1, y_2), (y_1**2, y_2**3, y_2*y_1*y_2*y_1*y_2*y_1))" + + H = f.subgroup(H) + assert (H.generators, H.relators) == p1 + + f = FpGroup(F, [x**3, y**3, (x*y)**3]) + H = [x*y, x*y**-1] + p2 = reidemeister_presentation(f, H) + assert str(p2) == "((x_0, y_0), (x_0**3, y_0**3, x_0*y_0*x_0*y_0*x_0*y_0))" + + f = FpGroup(F, [x**2*y**2, y**-1*x*y*x**-3]) + H = [x] + p3 = reidemeister_presentation(f, H) + assert str(p3) == "((x_0,), (x_0**4,))" + + f = FpGroup(F, [x**3*y**-3, (x*y)**3, (x*y**-1)**2]) + H = [x] + p4 = reidemeister_presentation(f, H) + assert str(p4) == "((x_0,), (x_0**6,))" + + # this presentation can be improved, the most simplified form + # of presentation is + # See [2] Pg 474 group PSL_2(11) + # This is the group PSL_2(11) + F, a, b, c = free_group("a, b, c") + f = FpGroup(F, [a**11, b**5, c**4, (b*c**2)**2, (a*b*c)**3, (a**4*c**2)**3, b**2*c**-1*b**-1*c, a**4*b**-1*a**-1*b]) + H = [a, b, c**2] + gens, rels = reidemeister_presentation(f, H) + assert str(gens) == "(b_1, c_3)" + assert len(rels) == 18 + + +@slow +def test_order(): + F, x, y = free_group("x, y") + f = FpGroup(F, [x**4, y**2, x*y*x**-1*y]) + assert f.order() == 8 + + f = FpGroup(F, [x*y*x**-1*y**-1, y**2]) + assert f.order() is S.Infinity + + F, a, b, c = free_group("a, b, c") + f = FpGroup(F, [a**250, b**2, c*b*c**-1*b, c**4, c**-1*a**-1*c*a, a**-1*b**-1*a*b]) + assert f.order() == 2000 + + F, x = free_group("x") + f = FpGroup(F, []) + assert f.order() is S.Infinity + + f = FpGroup(free_group('')[0], []) + assert f.order() == 1 + +def test_fp_subgroup(): + def _test_subgroup(K, T, S): + _gens = T(K.generators) + assert all(elem in S for elem in _gens) + assert T.is_injective() + assert T.image().order() == S.order() + F, x, y = free_group("x, y") + f = FpGroup(F, [x**4, y**2, x*y*x**-1*y]) + S = FpSubgroup(f, [x*y]) + assert (x*y)**-3 in S + K, T = f.subgroup([x*y], homomorphism=True) + assert T(K.generators) == [y*x**-1] + _test_subgroup(K, T, S) + + S = FpSubgroup(f, [x**-1*y*x]) + assert x**-1*y**4*x in S + assert x**-1*y**4*x**2 not in S + K, T = f.subgroup([x**-1*y*x], homomorphism=True) + assert T(K.generators[0]**3) == y**3 + _test_subgroup(K, T, S) + + f = FpGroup(F, [x**3, y**5, (x*y)**2]) + H = [x*y, x**-1*y**-1*x*y*x] + K, T = f.subgroup(H, homomorphism=True) + S = FpSubgroup(f, H) + _test_subgroup(K, T, S) + +def test_permutation_methods(): + F, x, y = free_group("x, y") + # DihedralGroup(8) + G = FpGroup(F, [x**2, y**8, x*y*x**-1*y]) + T = G._to_perm_group()[1] + assert T.is_isomorphism() + assert G.center() == [y**4] + + # DiheadralGroup(4) + G = FpGroup(F, [x**2, y**4, x*y*x**-1*y]) + S = FpSubgroup(G, G.normal_closure([x])) + assert x in S + assert y**-1*x*y in S + + # Z_5xZ_4 + G = FpGroup(F, [x*y*x**-1*y**-1, y**5, x**4]) + assert G.is_abelian + assert G.is_solvable + + # AlternatingGroup(5) + G = FpGroup(F, [x**3, y**2, (x*y)**5]) + assert not G.is_solvable + + # AlternatingGroup(4) + G = FpGroup(F, [x**3, y**2, (x*y)**3]) + assert len(G.derived_series()) == 3 + S = FpSubgroup(G, G.derived_subgroup()) + assert S.order() == 4 + + +def test_simplify_presentation(): + # ref #16083 + G = simplify_presentation(FpGroup(FreeGroup([]), [])) + assert not G.generators + assert not G.relators + + +def test_cyclic(): + F, x, y = free_group("x, y") + f = FpGroup(F, [x*y, x**-1*y**-1*x*y*x]) + assert f.is_cyclic + f = FpGroup(F, [x*y, x*y**-1]) + assert f.is_cyclic + f = FpGroup(F, [x**4, y**2, x*y*x**-1*y]) + assert not f.is_cyclic + + +def test_abelian_invariants(): + F, x, y = free_group("x, y") + f = FpGroup(F, [x*y, x**-1*y**-1*x*y*x]) + assert f.abelian_invariants() == [] + f = FpGroup(F, [x*y, x*y**-1]) + assert f.abelian_invariants() == [2] + f = FpGroup(F, [x**4, y**2, x*y*x**-1*y]) + assert f.abelian_invariants() == [2, 4] diff --git a/shared/package-files/ec/ec04d9f818e3dea2507b78907413152ee9d802e1eb62de66fe6a42e6c9df07cb/blob b/shared/package-files/ec/ec04d9f818e3dea2507b78907413152ee9d802e1eb62de66fe6a42e6c9df07cb/blob new file mode 100644 index 0000000000000000000000000000000000000000..e745cac7818056eec5ece0de0deed2d5e66a1fca --- /dev/null +++ b/shared/package-files/ec/ec04d9f818e3dea2507b78907413152ee9d802e1eb62de66fe6a42e6c9df07cb/blob @@ -0,0 +1,91 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::scatter.src(Tensor self, int dim, Tensor index, Tensor src) -> Tensor +inline at::Tensor scatter(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_src::call(self, dim, index, src); +} + +// aten::scatter.src_out(Tensor self, int dim, Tensor index, Tensor src, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_out(at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_src_out::call(self, dim, index, src, out); +} +// aten::scatter.src_out(Tensor self, int dim, Tensor index, Tensor src, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_outf(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, at::Tensor & out) { + return at::_ops::scatter_src_out::call(self, dim, index, src, out); +} + +// aten::scatter.value(Tensor self, int dim, Tensor index, Scalar value) -> Tensor +inline at::Tensor scatter(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::scatter_value::call(self, dim, index, value); +} + +// aten::scatter.value_out(Tensor self, int dim, Tensor index, Scalar value, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_out(at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::scatter_value_out::call(self, dim, index, value, out); +} +// aten::scatter.value_out(Tensor self, int dim, Tensor index, Scalar value, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_outf(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, at::Tensor & out) { + return at::_ops::scatter_value_out::call(self, dim, index, value, out); +} + +// aten::scatter.reduce(Tensor self, int dim, Tensor index, Tensor src, *, str reduce) -> Tensor +inline at::Tensor scatter(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce) { + return at::_ops::scatter_reduce::call(self, dim, index, src, reduce); +} + +// aten::scatter.reduce_out(Tensor self, int dim, Tensor index, Tensor src, *, str reduce, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_out(at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce) { + return at::_ops::scatter_reduce_out::call(self, dim, index, src, reduce, out); +} +// aten::scatter.reduce_out(Tensor self, int dim, Tensor index, Tensor src, *, str reduce, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_outf(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, at::Tensor & out) { + return at::_ops::scatter_reduce_out::call(self, dim, index, src, reduce, out); +} + +// aten::scatter.value_reduce(Tensor self, int dim, Tensor index, Scalar value, *, str reduce) -> Tensor +inline at::Tensor scatter(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, c10::string_view reduce) { + return at::_ops::scatter_value_reduce::call(self, dim, index, value, reduce); +} + +// aten::scatter.value_reduce_out(Tensor self, int dim, Tensor index, Scalar value, *, str reduce, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_out(at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, c10::string_view reduce) { + return at::_ops::scatter_value_reduce_out::call(self, dim, index, value, reduce, out); +} +// aten::scatter.value_reduce_out(Tensor self, int dim, Tensor index, Scalar value, *, str reduce, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & scatter_outf(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, c10::string_view reduce, at::Tensor & out) { + return at::_ops::scatter_value_reduce_out::call(self, dim, index, value, reduce, out); +} + +// aten::scatter.dimname_src(Tensor self, Dimname dim, Tensor index, Tensor src) -> Tensor +inline at::Tensor scatter(const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & src) { + return at::_ops::scatter_dimname_src::call(self, dim, index, src); +} + +// aten::scatter.dimname_value(Tensor self, Dimname dim, Tensor index, Scalar value) -> Tensor +inline at::Tensor scatter(const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Scalar & value) { + return at::_ops::scatter_dimname_value::call(self, dim, index, value); +} + +} diff --git a/shared/package-files/ec/ec050a7ad8e667e5fbd6bf1a70430b4673e018df7ad7c4a352c2d9bf2229f0b4/blob b/shared/package-files/ec/ec050a7ad8e667e5fbd6bf1a70430b4673e018df7ad7c4a352c2d9bf2229f0b4/blob new file mode 100644 index 0000000000000000000000000000000000000000..009f05a9588db43821d52ed8796379134402729d --- /dev/null +++ b/shared/package-files/ec/ec050a7ad8e667e5fbd6bf1a70430b4673e018df7ad7c4a352c2d9bf2229f0b4/blob @@ -0,0 +1,64 @@ +"""Test results for the VAR model, obtained from Stata using datasets/macrodata/var.do""" + +import numpy as np + + +class MacrodataResults: + def __init__(self): + params = [ + -0.2794863875, 0.0082427826, 0.6750534746, 0.2904420695, + 0.0332267098, -0.0073250059, 0.0015269951, -0.1004938623, + -0.1231841792, 0.2686635768, 0.2325045441, 0.0257430635, + 0.0235035714, 0.0054596064, -1.97116e+00, 0.3809752365, + 4.4143364022, 0.8001168377, 0.2255078864, -0.1241109271, + -0.0239026118] + params = np.asarray(params).reshape(3, -1) + params = np.hstack((params[:, -1][:, None], + params[:, :-1:2], + params[:, 1::2])) + self.params = params + self.neqs = 3 + self.nobs = 200 + self.df_eq = 7 + self.nobs_1 = 200 + self.df_model_1 = 6 + self.rmse_1 = .0075573716985351 + self.rsquared_1 = .2739094844780006 + self.llf_1 = 696.8213727557811 + self.nobs_2 = 200 + self.rmse_2 = .0065444260782597 + self.rsquared_2 = .1423626064753714 + self.llf_2 = 725.6033255319256 + self.nobs_3 = 200 + self.rmse_3 = .0395942039671031 + self.rsquared_3 = .2955406949737428 + self.llf_3 = 365.5895183036045 + # These are from Stata. They use the LL based definition + # We return Lutkepohl statistics. See Stata TS manual page 436 + # self.bic = -19.06939794312953 + # self.aic = -19.41572126661708 + # self.hqic = -19.27556951526737 + # These are from R. See var.R in macrodata folder + self.bic = -2.758301611618373e+01 + self.aic = -2.792933943967127e+01 + self.hqic = -2.778918768832157e+01 + self.fpe = 7.421287668357018e-13 + self.detsig = 6.01498432283e-13 + self.llf = 1962.572126661708 + + self.chi2_1 = 75.44775165699033 + # do not know how they calculate this; it's not -2 * (ll1 - ll0) + + self.chi2_2 = 33.19878716815366 + self.chi2_3 = 83.90568280242312 + bse = [ + .1666662376, .1704584393, .1289691456, .1433308696, .0257313781, + .0253307796, .0010992645, .1443272761, .1476111934, .1116828804, + .1241196435, .0222824956, .021935591, .0009519255, .8731894193, + .8930573331, .6756886998, .7509319263, .1348105496, .1327117543, + .0057592114] + bse = np.asarray(bse).reshape(3, -1) + bse = np.hstack((bse[:, -1][:, None], + bse[:, :-1:2], + bse[:, 1::2])) + self.bse = bse diff --git a/shared/package-files/ec/ec05369d0c85be7c59f80a35e6532bb3d3950fa58628886ad266e7da40cec8bd/blob b/shared/package-files/ec/ec05369d0c85be7c59f80a35e6532bb3d3950fa58628886ad266e7da40cec8bd/blob new file mode 100644 index 0000000000000000000000000000000000000000..da7f33363742d71069240da06dca8531e8bf7003 --- /dev/null +++ b/shared/package-files/ec/ec05369d0c85be7c59f80a35e6532bb3d3950fa58628886ad266e7da40cec8bd/blob @@ -0,0 +1,143 @@ +import torch +from torch import Tensor +import torch.nn as nn +import torch.nn.functional as F + +__all__ = ['Embedding', 'EmbeddingBag'] + +class Embedding(nn.Embedding): + r""" + An embedding bag module attached with FakeQuantize modules for weight, + used for quantization aware training. + + We adopt the same interface as `torch.nn.Embedding`, please see + https://pytorch.org/docs/stable/generated/torch.nn.Embedding.html#torch.nn.Embedding + for documentation. + + Similar to `torch.nn.Embedding`, with FakeQuantize modules initialized to + default. + + Attributes: + weight: fake quant module for weight + """ + _FLOAT_MODULE = nn.Embedding + + def __init__(self, num_embeddings, embedding_dim, padding_idx=None, + max_norm=None, norm_type=2.0, scale_grad_by_freq=False, + sparse=False, _weight=None, device=None, dtype=None, qconfig=None) -> None: + factory_kwargs = {'device': device, 'dtype': dtype} + super().__init__(num_embeddings, embedding_dim, padding_idx, max_norm, + norm_type, scale_grad_by_freq, sparse, _weight, + **factory_kwargs) + assert qconfig, 'qconfig must be provided for QAT module' + assert qconfig.weight().qscheme == torch.per_channel_affine_float_qparams, \ + 'Embedding weights requires a qscheme of torch.per_channel_affine_float_qparams Got ' + \ + str(qconfig.weight().qscheme) + self.qconfig = qconfig + self.weight_fake_quant = qconfig.weight(factory_kwargs=factory_kwargs) + + def forward(self, input) -> Tensor: + return F.embedding(input, self.weight_fake_quant(self.weight), self.padding_idx, + self.max_norm, self.norm_type, self.scale_grad_by_freq, + self.sparse) + + @classmethod + def from_float(cls, mod): + r"""Create a qat module from a float module + + Args: `mod` a float module, either produced by torch.ao.quantization utilities + or directly from user + """ + assert type(mod) == cls._FLOAT_MODULE, ' qat.' + cls.__name__ + '.from_float only works for ' + \ + cls._FLOAT_MODULE.__name__ + assert hasattr(mod, 'qconfig'), 'Input float module must have qconfig defined' + assert mod.qconfig, 'Input float module must have a valid qconfig' + weight_qscheme = mod.qconfig.weight().qscheme # type: ignore[union-attr, operator] + assert weight_qscheme == torch.per_channel_affine_float_qparams, \ + 'Embedding weights requires a qscheme of torch.per_channel_affine_float_qparams Got ' + \ + str(weight_qscheme) + + qconfig = mod.qconfig + qat_embedding_bag = cls(mod.num_embeddings, mod.embedding_dim, mod.padding_idx, + mod.max_norm, mod.norm_type, mod.scale_grad_by_freq, + mod.sparse, mod.weight, qconfig=qconfig) + + return qat_embedding_bag + + def to_float(self): + embedding_bag = torch.nn.Embedding(self.num_embeddings, self.embedding_dim, self.padding_idx, + self.max_norm, self.norm_type, self.scale_grad_by_freq, + self.sparse, None) + embedding_bag.weight = torch.nn.Parameter(self.weight.detach()) + embedding_bag.train(self.training) + return embedding_bag + +class EmbeddingBag(nn.EmbeddingBag): + r""" + An embedding bag module attached with FakeQuantize modules for weight, + used for quantization aware training. + + We adopt the same interface as `torch.nn.EmbeddingBag`, please see + https://pytorch.org/docs/stable/generated/torch.nn.EmbeddingBag.html#torch.nn.EmbeddingBag + for documentation. + + Similar to `torch.nn.EmbeddingBag`, with FakeQuantize modules initialized to + default. + + Attributes: + weight: fake quant module for weight + """ + _FLOAT_MODULE = nn.EmbeddingBag + + def __init__(self, num_embeddings, embedding_dim, max_norm=None, + norm_type=2.0, scale_grad_by_freq=False, mode='mean', + sparse=False, _weight=None, include_last_offset=False, + padding_idx=None, qconfig=None, device=None, dtype=None) -> None: + factory_kwargs = {'device': device, 'dtype': dtype} + super().__init__(num_embeddings, embedding_dim, max_norm, norm_type, + scale_grad_by_freq, mode, sparse, _weight, + include_last_offset, padding_idx, **factory_kwargs) + assert qconfig, 'qconfig must be provided for QAT module' + assert qconfig.weight().qscheme == torch.per_channel_affine_float_qparams, \ + 'Embedding Bag weights requires a qscheme of torch.per_channel_affine_float_qparams Got ' + \ + str(qconfig.weight().qscheme) + self.qconfig = qconfig + self.weight_fake_quant = qconfig.weight(factory_kwargs=factory_kwargs) + + def forward(self, input, offsets=None, per_sample_weights=None) -> Tensor: + return F.embedding_bag(input, self.weight_fake_quant(self.weight), offsets, + self.max_norm, self.norm_type, + self.scale_grad_by_freq, self.mode, self.sparse, + per_sample_weights, self.include_last_offset, + self.padding_idx) + + @classmethod + def from_float(cls, mod): + r"""Create a qat module from a float module + + Args: `mod` a float module, either produced by torch.ao.quantization utilities + or directly from user + """ + assert type(mod) == cls._FLOAT_MODULE, ' qat.' + cls.__name__ + '.from_float only works for ' + \ + cls._FLOAT_MODULE.__name__ + assert hasattr(mod, 'qconfig'), 'Input float module must have qconfig defined' + assert mod.qconfig, 'Input float module must have a valid qconfig' + weight_qscheme = mod.qconfig.weight().qscheme # type: ignore[union-attr, operator] + assert weight_qscheme == torch.per_channel_affine_float_qparams, \ + 'Embedding Bag weights requires a qscheme of torch.per_channel_affine_float_qparams Got ' + \ + str(weight_qscheme) + + qconfig = mod.qconfig + qat_embedding_bag = cls(mod.num_embeddings, mod.embedding_dim, mod.max_norm, mod.norm_type, + mod.scale_grad_by_freq, mod.mode, mod.sparse, mod.weight, + mod.include_last_offset, mod.padding_idx, qconfig=qconfig) + + return qat_embedding_bag + + def to_float(self): + embedding_bag = torch.nn.EmbeddingBag(self.num_embeddings, self.embedding_dim, self.max_norm, + self.norm_type, self.scale_grad_by_freq, self.mode, self.sparse, + None, self.include_last_offset, self.padding_idx) + embedding_bag.weight = torch.nn.Parameter(self.weight.detach()) + embedding_bag.train(self.training) + return embedding_bag diff --git a/shared/package-files/ec/ec05ee21c39dcc368bc646a9342d340546d3040170890db5ae8ad72c69497780/blob b/shared/package-files/ec/ec05ee21c39dcc368bc646a9342d340546d3040170890db5ae8ad72c69497780/blob new file mode 100644 index 0000000000000000000000000000000000000000..35fdfb1a9ee82b4e09afc2da35bb89cdc5f10739 --- /dev/null +++ b/shared/package-files/ec/ec05ee21c39dcc368bc646a9342d340546d3040170890db5ae8ad72c69497780/blob @@ -0,0 +1,94 @@ +from __future__ import annotations + +from typing import ( + TYPE_CHECKING, + Literal, +) + +import numpy as np + +from pandas._config import using_string_dtype + +from pandas._libs import lib +from pandas.compat import ( + pa_version_under18p0, + pa_version_under19p0, +) +from pandas.compat._optional import import_optional_dependency + +import pandas as pd + +if TYPE_CHECKING: + from collections.abc import Callable + + import pyarrow + + from pandas._typing import DtypeBackend + + +def _arrow_dtype_mapping() -> dict: + pa = import_optional_dependency("pyarrow") + return { + pa.int8(): pd.Int8Dtype(), + pa.int16(): pd.Int16Dtype(), + pa.int32(): pd.Int32Dtype(), + pa.int64(): pd.Int64Dtype(), + pa.uint8(): pd.UInt8Dtype(), + pa.uint16(): pd.UInt16Dtype(), + pa.uint32(): pd.UInt32Dtype(), + pa.uint64(): pd.UInt64Dtype(), + pa.bool_(): pd.BooleanDtype(), + pa.string(): pd.StringDtype(), + pa.float32(): pd.Float32Dtype(), + pa.float64(): pd.Float64Dtype(), + pa.string(): pd.StringDtype(), + pa.large_string(): pd.StringDtype(), + } + + +def _arrow_string_types_mapper() -> Callable: + pa = import_optional_dependency("pyarrow") + + mapping = { + pa.string(): pd.StringDtype(na_value=np.nan), + pa.large_string(): pd.StringDtype(na_value=np.nan), + } + if not pa_version_under18p0: + mapping[pa.string_view()] = pd.StringDtype(na_value=np.nan) + + return mapping.get + + +def arrow_table_to_pandas( + table: pyarrow.Table, + dtype_backend: DtypeBackend | Literal["numpy"] | lib.NoDefault = lib.no_default, + null_to_int64: bool = False, + to_pandas_kwargs: dict | None = None, +) -> pd.DataFrame: + if to_pandas_kwargs is None: + to_pandas_kwargs = {} + + pa = import_optional_dependency("pyarrow") + + types_mapper: type[pd.ArrowDtype] | None | Callable + if dtype_backend == "numpy_nullable": + mapping = _arrow_dtype_mapping() + if null_to_int64: + # Modify the default mapping to also map null to Int64 + # (to match other engines - only for CSV parser) + mapping[pa.null()] = pd.Int64Dtype() + types_mapper = mapping.get + elif dtype_backend == "pyarrow": + types_mapper = pd.ArrowDtype + elif using_string_dtype(): + if pa_version_under19p0: + types_mapper = _arrow_string_types_mapper() + else: + types_mapper = None + elif dtype_backend is lib.no_default or dtype_backend == "numpy": + types_mapper = None + else: + raise NotImplementedError + + df = table.to_pandas(types_mapper=types_mapper, **to_pandas_kwargs) + return df diff --git a/shared/package-files/ec/ec061a1caabc15a39bba66581959ee186b206befdbfa2752d69c9dcfb376d9a8/blob b/shared/package-files/ec/ec061a1caabc15a39bba66581959ee186b206befdbfa2752d69c9dcfb376d9a8/blob new file mode 100644 index 0000000000000000000000000000000000000000..50f91f7f9ef838ae87fc8a0a22bc813c0e802a3f --- /dev/null +++ b/shared/package-files/ec/ec061a1caabc15a39bba66581959ee186b206befdbfa2752d69c9dcfb376d9a8/blob @@ -0,0 +1 @@ +_special_tree = [fs.copyfile('__init__.pxd'), fs.copyfile('math.pxd')] diff --git a/shared/package-files/ec/ec063f7d559db706788afe6e59dc8a01471b1108920edd65378b2ac7dc57c04d/blob b/shared/package-files/ec/ec063f7d559db706788afe6e59dc8a01471b1108920edd65378b2ac7dc57c04d/blob new file mode 100644 index 0000000000000000000000000000000000000000..4062385240096ac822814aebb8bf7c59cf003a8f --- /dev/null +++ b/shared/package-files/ec/ec063f7d559db706788afe6e59dc8a01471b1108920edd65378b2ac7dc57c04d/blob @@ -0,0 +1,271 @@ +# +# 'post' table formats 1.0 and 2.0 rely on this list of "standard" +# glyphs. +# +# My list is correct according to the Apple documentation for the 'post' table: +# https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6post.html +# (However, it seems that TTFdump (from MS) and FontLab disagree, at +# least with respect to the last glyph, which they list as 'dslash' +# instead of 'dcroat'.) +# + +standardGlyphOrder = [ + ".notdef", # 0 + ".null", # 1 + "nonmarkingreturn", # 2 + "space", # 3 + "exclam", # 4 + "quotedbl", # 5 + "numbersign", # 6 + "dollar", # 7 + "percent", # 8 + "ampersand", # 9 + "quotesingle", # 10 + "parenleft", # 11 + "parenright", # 12 + "asterisk", # 13 + "plus", # 14 + "comma", # 15 + "hyphen", # 16 + "period", # 17 + "slash", # 18 + "zero", # 19 + "one", # 20 + "two", # 21 + "three", # 22 + "four", # 23 + "five", # 24 + "six", # 25 + "seven", # 26 + "eight", # 27 + "nine", # 28 + "colon", # 29 + "semicolon", # 30 + "less", # 31 + "equal", # 32 + "greater", # 33 + "question", # 34 + "at", # 35 + "A", # 36 + "B", # 37 + "C", # 38 + "D", # 39 + "E", # 40 + "F", # 41 + "G", # 42 + "H", # 43 + "I", # 44 + "J", # 45 + "K", # 46 + "L", # 47 + "M", # 48 + "N", # 49 + "O", # 50 + "P", # 51 + "Q", # 52 + "R", # 53 + "S", # 54 + "T", # 55 + "U", # 56 + "V", # 57 + "W", # 58 + "X", # 59 + "Y", # 60 + "Z", # 61 + "bracketleft", # 62 + "backslash", # 63 + "bracketright", # 64 + "asciicircum", # 65 + "underscore", # 66 + "grave", # 67 + "a", # 68 + "b", # 69 + "c", # 70 + "d", # 71 + "e", # 72 + "f", # 73 + "g", # 74 + "h", # 75 + "i", # 76 + "j", # 77 + "k", # 78 + "l", # 79 + "m", # 80 + "n", # 81 + "o", # 82 + "p", # 83 + "q", # 84 + "r", # 85 + "s", # 86 + "t", # 87 + "u", # 88 + "v", # 89 + "w", # 90 + "x", # 91 + "y", # 92 + "z", # 93 + "braceleft", # 94 + "bar", # 95 + "braceright", # 96 + "asciitilde", # 97 + "Adieresis", # 98 + "Aring", # 99 + "Ccedilla", # 100 + "Eacute", # 101 + "Ntilde", # 102 + "Odieresis", # 103 + "Udieresis", # 104 + "aacute", # 105 + "agrave", # 106 + "acircumflex", # 107 + "adieresis", # 108 + "atilde", # 109 + "aring", # 110 + "ccedilla", # 111 + "eacute", # 112 + "egrave", # 113 + "ecircumflex", # 114 + "edieresis", # 115 + "iacute", # 116 + "igrave", # 117 + "icircumflex", # 118 + "idieresis", # 119 + "ntilde", # 120 + "oacute", # 121 + "ograve", # 122 + "ocircumflex", # 123 + "odieresis", # 124 + "otilde", # 125 + "uacute", # 126 + "ugrave", # 127 + "ucircumflex", # 128 + "udieresis", # 129 + "dagger", # 130 + "degree", # 131 + "cent", # 132 + "sterling", # 133 + "section", # 134 + "bullet", # 135 + "paragraph", # 136 + "germandbls", # 137 + "registered", # 138 + "copyright", # 139 + "trademark", # 140 + "acute", # 141 + "dieresis", # 142 + "notequal", # 143 + "AE", # 144 + "Oslash", # 145 + "infinity", # 146 + "plusminus", # 147 + "lessequal", # 148 + "greaterequal", # 149 + "yen", # 150 + "mu", # 151 + "partialdiff", # 152 + "summation", # 153 + "product", # 154 + "pi", # 155 + "integral", # 156 + "ordfeminine", # 157 + "ordmasculine", # 158 + "Omega", # 159 + "ae", # 160 + "oslash", # 161 + "questiondown", # 162 + "exclamdown", # 163 + "logicalnot", # 164 + "radical", # 165 + "florin", # 166 + "approxequal", # 167 + "Delta", # 168 + "guillemotleft", # 169 + "guillemotright", # 170 + "ellipsis", # 171 + "nonbreakingspace", # 172 + "Agrave", # 173 + "Atilde", # 174 + "Otilde", # 175 + "OE", # 176 + "oe", # 177 + "endash", # 178 + "emdash", # 179 + "quotedblleft", # 180 + "quotedblright", # 181 + "quoteleft", # 182 + "quoteright", # 183 + "divide", # 184 + "lozenge", # 185 + "ydieresis", # 186 + "Ydieresis", # 187 + "fraction", # 188 + "currency", # 189 + "guilsinglleft", # 190 + "guilsinglright", # 191 + "fi", # 192 + "fl", # 193 + "daggerdbl", # 194 + "periodcentered", # 195 + "quotesinglbase", # 196 + "quotedblbase", # 197 + "perthousand", # 198 + "Acircumflex", # 199 + "Ecircumflex", # 200 + "Aacute", # 201 + "Edieresis", # 202 + "Egrave", # 203 + "Iacute", # 204 + "Icircumflex", # 205 + "Idieresis", # 206 + "Igrave", # 207 + "Oacute", # 208 + "Ocircumflex", # 209 + "apple", # 210 + "Ograve", # 211 + "Uacute", # 212 + "Ucircumflex", # 213 + "Ugrave", # 214 + "dotlessi", # 215 + "circumflex", # 216 + "tilde", # 217 + "macron", # 218 + "breve", # 219 + "dotaccent", # 220 + "ring", # 221 + "cedilla", # 222 + "hungarumlaut", # 223 + "ogonek", # 224 + "caron", # 225 + "Lslash", # 226 + "lslash", # 227 + "Scaron", # 228 + "scaron", # 229 + "Zcaron", # 230 + "zcaron", # 231 + "brokenbar", # 232 + "Eth", # 233 + "eth", # 234 + "Yacute", # 235 + "yacute", # 236 + "Thorn", # 237 + "thorn", # 238 + "minus", # 239 + "multiply", # 240 + "onesuperior", # 241 + "twosuperior", # 242 + "threesuperior", # 243 + "onehalf", # 244 + "onequarter", # 245 + "threequarters", # 246 + "franc", # 247 + "Gbreve", # 248 + "gbreve", # 249 + "Idotaccent", # 250 + "Scedilla", # 251 + "scedilla", # 252 + "Cacute", # 253 + "cacute", # 254 + "Ccaron", # 255 + "ccaron", # 256 + "dcroat", # 257 +] diff --git a/shared/package-files/ec/ec08244f10eec89cb9d5b4974b2d385867c6c6a2a94fbded785fe6652a267368/blob b/shared/package-files/ec/ec08244f10eec89cb9d5b4974b2d385867c6c6a2a94fbded785fe6652a267368/blob new file mode 100644 index 0000000000000000000000000000000000000000..872cd39ec974ef578cde38538533a88530e00216 --- /dev/null +++ b/shared/package-files/ec/ec08244f10eec89cb9d5b4974b2d385867c6c6a2a94fbded785fe6652a267368/blob @@ -0,0 +1,327 @@ +from setuptools import distutils as dutils +from setuptools.command import build_ext +from setuptools.extension import Extension + +import os +import shutil +import sys +import tempfile + +from numba.core import typing, sigutils +from numba.core.compiler_lock import global_compiler_lock +from numba.pycc.compiler import ModuleCompiler, ExportEntry +from numba.pycc.platform import Toolchain +from numba import cext + + +dir_util = dutils.dir_util +log = dutils.log +extension_libs = cext.get_extension_libs() + + +class CC(object): + """ + An ahead-of-time compiler to create extension modules that don't + depend on Numba. + """ + + # NOTE: using ccache can speed up repetitive builds + # (especially for the mixin modules) + + _mixin_sources = ['modulemixin.c',] + extension_libs + + # -flto strips all unused helper functions, which 1) makes the + # produced output much smaller and 2) can make the linking step faster. + # (the Windows linker seems to do this by default, judging by the results) + + _extra_cflags = { + # Comment out due to odd behavior with GCC 4.9+ with LTO + # 'posix': ['-flto'], + } + + _extra_ldflags = { + # Comment out due to odd behavior with GCC 4.9+ with LTO + # 'posix': ['-flto'], + # On macOS, if the object files carry debug info (e.g. when the + # interpreter's sysconfig compiles extensions with ``-g``), ld + # embeds an N_OSO debug-map entry per object holding the object's + # absolute path and mtime. Because pycc builds the objects in a + # randomly-named temp directory, those paths (and mtimes) make the + # emitted binary non-reproducible (see issue #10668). ``-Wl,-S`` + # strips the debug map while keeping the symbols needed at runtime. + 'darwin': ['-Wl,-S'], + } + + def __init__(self, extension_name, source_module=None): + if '.' in extension_name: + raise ValueError("basename should be a simple module name, not " + "qualified name") + + self._basename = extension_name + self._init_function = 'pycc_init_' + extension_name + self._exported_functions = {} + # Resolve source module name and directory + f = sys._getframe(1) + if source_module is None: + dct = f.f_globals + source_module = dct['__name__'] + elif hasattr(source_module, '__name__'): + dct = source_module.__dict__ + source_module = source_module.__name__ + else: + dct = sys.modules[source_module].__dict__ + + self._source_path = dct.get('__file__', '') + self._source_module = source_module + self._toolchain = Toolchain() + self._verbose = False + # By default, output in directory of caller module + self._output_dir = os.path.dirname(self._source_path) + self._output_file = self._toolchain.get_ext_filename(extension_name) + self._use_nrt = True + self._target_cpu = '' + + @property + def name(self): + """ + The name of the extension module to create. + """ + return self._basename + + @property + def output_file(self): + """ + The specific output file (a DLL) that will be generated. + """ + return self._output_file + + @output_file.setter + def output_file(self, value): + self._output_file = value + + @property + def output_dir(self): + """ + The directory the output file will be put in. + """ + return self._output_dir + + @output_dir.setter + def output_dir(self, value): + self._output_dir = value + + @property + def use_nrt(self): + return self._use_nrt + + @use_nrt.setter + def use_nrt(self, value): + self._use_nrt = value + + @property + def target_cpu(self): + """ + The target CPU model for code generation. + """ + return self._target_cpu + + @target_cpu.setter + def target_cpu(self, value): + self._target_cpu = value + + @property + def verbose(self): + """ + Whether to display detailed information when compiling. + """ + return self._verbose + + @verbose.setter + def verbose(self, value): + self._verbose = value + + def export(self, exported_name, sig): + """ + Mark a function for exporting in the extension module. + """ + fn_args, fn_retty = sigutils.normalize_signature(sig) + sig = typing.signature(fn_retty, *fn_args) + if exported_name in self._exported_functions: + raise KeyError("duplicated export symbol %s" % (exported_name)) + + def decorator(func): + entry = ExportEntry(exported_name, sig, func) + self._exported_functions[exported_name] = entry + return func + + return decorator + + @property + def _export_entries(self): + return sorted(self._exported_functions.values(), + key=lambda entry: entry.symbol) + + def _get_mixin_sources(self): + here = os.path.dirname(__file__) + mixin_sources = self._mixin_sources[:] + if self._use_nrt: + mixin_sources.append('../core/runtime/nrt.cpp') + return [os.path.join(here, f) for f in mixin_sources] + + def _get_mixin_defines(self): + # Macro definitions required by modulemixin.c + from numba import _helperlib + return [ + ('PYCC_MODULE_NAME', self._basename), + ('PYCC_USE_NRT', int(self._use_nrt)), + # modulemixin.c #includes _helperlib.c -> _lapack.c, whose Fortran + # integer width (LP64 vs ILP64) is fixed at compile time by + # NUMBA_LAPACK_BUILD_ILP64. It must match the numba this AOT module + # is built with, otherwise the AOT BLAS/LAPACK wrappers pass + # wrong-width integers to scipy at runtime -- silent corruption or a + # crash (see e.g. an ILP64 numba: np.dot in an AOT module segfaults + # in the BLAS call). Mirror numba's own build width. + ('NUMBA_LAPACK_BUILD_ILP64', + int(getattr(_helperlib, "LAPACK_BUILD_ILP64", 0))), + ] + + def _get_extra_cflags(self): + extra_cflags = self._extra_cflags.get(sys.platform, []) + if not extra_cflags: + extra_cflags = self._extra_cflags.get(os.name, []) + return extra_cflags + + def _get_extra_ldflags(self): + extra_ldflags = self._extra_ldflags.get(sys.platform, []) + if not extra_ldflags: + extra_ldflags = self._extra_ldflags.get(os.name, []) + # helperlib uses pthread on linux. make sure we are linking to it. + if sys.platform.startswith("linux"): + if "-pthread" not in extra_ldflags: + extra_ldflags.append('-pthread') + return extra_ldflags + + def _compile_mixins(self, build_dir): + sources = self._get_mixin_sources() + macros = self._get_mixin_defines() + include_dirs = self._toolchain.get_python_include_dirs() + + extra_cflags = self._get_extra_cflags() + # XXX distutils creates a whole subtree inside build_dir, + # e.g. /tmp/test_pycc/home/antoine/numba/numba/pycc/modulemixin.o + objects = self._toolchain.compile_objects(sources, build_dir, + include_dirs=include_dirs, + macros=macros, + extra_cflags=extra_cflags) + return objects + + @global_compiler_lock + def _compile_object_files(self, build_dir): + compiler = ModuleCompiler(self._export_entries, self._basename, + self._use_nrt, cpu_name=self._target_cpu) + compiler.external_init_function = self._init_function + temp_obj = os.path.join(build_dir, + os.path.splitext(self._output_file)[0] + '.o') + log.info("generating LLVM code for '%s' into %s", + self._basename, temp_obj) + compiler.write_native_object(temp_obj, wrap=True) + return [temp_obj], compiler.dll_exports + + @global_compiler_lock + def compile(self): + """ + Compile the extension module. + """ + self._toolchain.verbose = self.verbose + build_dir = tempfile.mkdtemp(prefix='pycc-build-%s-' % self._basename) + + # Compile object file + objects, dll_exports = self._compile_object_files(build_dir) + + # Compile mixins + objects += self._compile_mixins(build_dir) + + # Then create shared library + extra_ldflags = self._get_extra_ldflags() + output_dll = os.path.join(self._output_dir, self._output_file) + libraries = self._toolchain.get_python_libraries() + library_dirs = self._toolchain.get_python_library_dirs() + self._toolchain.link_shared(output_dll, objects, + libraries, library_dirs, + export_symbols=dll_exports, + extra_ldflags=extra_ldflags) + + shutil.rmtree(build_dir) + + def distutils_extension(self, **kwargs): + """ + Create a distutils extension object that can be used in your + setup.py. + """ + macros = kwargs.pop('macros', []) + self._get_mixin_defines() + depends = kwargs.pop('depends', []) + [self._source_path] + extra_compile_args = (kwargs.pop('extra_compile_args', []) + + self._get_extra_cflags()) + extra_link_args = (kwargs.pop('extra_link_args', []) + + self._get_extra_ldflags()) + include_dirs = (kwargs.pop('include_dirs', []) + + self._toolchain.get_python_include_dirs()) + libraries = (kwargs.pop('libraries', []) + + self._toolchain.get_python_libraries()) + library_dirs = (kwargs.pop('library_dirs', []) + + self._toolchain.get_python_library_dirs()) + python_package_path = self._source_module[:self._source_module.rfind('.')+1] + + ext = _CCExtension(name=python_package_path + self._basename, + sources=self._get_mixin_sources(), + depends=depends, + define_macros=macros, + include_dirs=include_dirs, + libraries=libraries, + library_dirs=library_dirs, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, + **kwargs) + ext.monkey_patch_distutils() + ext._cc = self + return ext + + +class _CCExtension(Extension): + """ + A Numba-specific Extension subclass to LLVM-compile pure Python code + to an extension module. + """ + + _cc = None + _distutils_monkey_patched = False + + def _prepare_object_files(self, build_ext): + cc = self._cc + dir_util.mkpath(os.path.join(build_ext.build_temp, *self.name.split('.')[:-1])) + objects, _ = cc._compile_object_files(build_ext.build_temp) + # Add generated object files for linking + self.extra_objects = objects + + @classmethod + def monkey_patch_distutils(cls): + """ + Monkey-patch distutils with our own build_ext class knowing + about pycc-compiled extensions modules. + """ + if cls._distutils_monkey_patched: + return + + _orig_build_ext = build_ext.build_ext + + class _CC_build_ext(_orig_build_ext): + + def build_extension(self, ext): + if isinstance(ext, _CCExtension): + ext._prepare_object_files(self) + + _orig_build_ext.build_extension(self, ext) + + build_ext.build_ext = _CC_build_ext + + cls._distutils_monkey_patched = True diff --git a/shared/package-files/ec/ec09baed564d4cf39154e69bb6fcfa3e04aa68adf77fb9701983768501086df3/blob b/shared/package-files/ec/ec09baed564d4cf39154e69bb6fcfa3e04aa68adf77fb9701983768501086df3/blob new file mode 100644 index 0000000000000000000000000000000000000000..2defec3577676cd7737686ead0ac9714864f258e --- /dev/null +++ b/shared/package-files/ec/ec09baed564d4cf39154e69bb6fcfa3e04aa68adf77fb9701983768501086df3/blob @@ -0,0 +1,2005 @@ +error(0.008989855939077577573) D0 +error(0.01053293706694652387) D0 D1 +error(0.01678448166038437259) D0 D4 +error(0.002469955027279186095) D0 D4 ^ D5 +error(0.01385721102663073009) D0 D7 +error(0.001765073076371130589) D0 D7 ^ D5 +error(0.0008337291973165776408) D0 D8 +error(0.002043574214582298803) D0 D8 ^ D5 +error(0.00547605182138138219) D1 D2 +error(0.002859741327682174209) D1 D2 ^ D10 +error(0.01275855219275557305) D1 D7 +error(0.001291891634770322983) D1 D7 ^ D9 +error(0.00245792228539291847) D1 D7 ^ D9 D10 +error(0.00172442033841721412) D1 D7 ^ D10 +error(0.002484955483859705404) D1 D8 +error(0.0002805624525650459193) D1 D8 ^ D9 +error(0.0032241125825448122) D1 D8 ^ D10 +error(0.001893384147756714108) D1 D11 +error(0.001866152527271099657) D1 D11 ^ D10 +error(0.01000000000000000021) D1 L0 +error(0.005447261243154907784) D1 L0 ^ D9 +error(0.0142391051586357037) D2 +error(0.005321952840654231576) D2 D3 +error(0.02181005343056757056) D2 D8 +error(0.005660377411501420902) D2 D8 ^ D10 +error(0.004753857084378314453) D2 D11 +error(0.004411826819749369716) D2 D11 ^ D10 +error(0.02795490023704999549) D3 D11 +error(0.0140258197860590756) D3 L0 +error(0.005000000000000000104) D4 +error(0.01944742731678694714) D4 D7 +error(0.02069739180464682388) D4 D7 ^ D5 +error(0.02111370028478150307) D4 D12 +error(0.003103491475898858404) D4 D12 ^ D13 +error(0.00826210055414196981) D4 D15 +error(0.004930310561894167727) D4 D15 ^ D5 +error(0.002580769651983623025) D4 D15 ^ D13 +error(0.0006581265057478693451) D4 D15 ^ D13 ^ D5 +error(0.0008622008416266678044) D4 D16 +error(0.0001855510381886844732) D4 D16 ^ D5 +error(0.001224488269891732366) D4 D16 ^ D5 D13 +error(0.0001499142721603081941) D4 D16 ^ D13 +error(0.0155364179338810162) D4 ^ D5 +error(0.003907032559532637624) D4 ^ D13 +error(0.003311649312040129255) D5 D13 ^ D4 +error(0.03359680482145057517) D5 +error(0.006010898529349223939) D5 D6 +error(0.0003345158490389545038) D5 D6 ^ D4 +error(0.0009859808988975633879) D5 D6 ^ D7 D8 +error(0.0005322608703760952015) D5 D6 ^ D7 D16 +error(0.01320716361682109513) D5 D6 ^ D8 +error(0.005863013166993952772) D5 D6 ^ D8 D16 +error(0.001022080545545054741) D5 D6 ^ D16 +error(0.0002414108018328903758) D5 D6 ^ D16 ^ D4 +error(0.01350003495274483718) D5 D10 +error(0.009952650365788386078) D5 D10 ^ D7 D8 +error(0.01933469145142516568) D5 D13 +error(0.002370271696856266451) D5 D13 ^ D15 D16 +error(0.0005231924114198808172) D5 D13 ^ D16 +error(0.001696302708218328393) D5 D17 +error(0.001319099712624956884) D5 D17 ^ D7 D15 +error(0.0001212718219379166796) D5 D17 ^ D7 D16 +error(0.0001912412295078792888) D5 D17 ^ D15 D16 +error(0.001431065749158458387) D5 D18 +error(0.001813929360425521609) D5 D18 ^ D7 D8 +error(0.00103993057499706873) D5 D18 ^ D7 D15 +error(0.002464810840379554578) D5 D18 ^ D7 D16 +error(0.0004417186232127558849) D5 D18 ^ D8 D16 +error(0.001955149659867002829) D5 D18 ^ D15 D16 +error(0.006002184046274814527) D5 ^ D0 +error(0.003540768685896266126) D5 ^ D8 +error(0.001337395605232206052) D7 D15 ^ D5 +error(0.03787194261851817983) D6 +error(0.002058498908926115981) D6 D13 +error(0.00234892788346252341) D6 D13 ^ D16 +error(0.0002153309690330830375) D6 D13 ^ D16 ^ D4 +error(0.02805437345993095494) D6 D14 +error(0.005110441527399735284) D6 D14 ^ D16 +error(0.002556815543432343005) D6 D18 +error(0.0002499192940845376232) D6 D18 ^ D7 D8 +error(0.0003744909586736285467) D6 D18 ^ D7 D16 +error(0.002317754759551753519) D6 D18 ^ D8 D16 +error(0.0174039377871513419) D6 ^ D8 +error(0.0004492225459000932937) D6 ^ D16 +error(0.00182086242005410166) D6 ^ D16 ^ D8 +error(0.007512708347684521684) D7 D8 +error(0.001845575985738007619) D7 D8 ^ D5 +error(0.002729269946762322065) D7 D8 ^ D10 +error(0.001997131045277926453) D7 D8 ^ D10 D18 +error(0.0003421273672958373121) D7 D8 ^ D10 ^ D9 +error(0.0001024525197508349689) D7 D8 ^ D18 +error(0.01973792906145652171) D7 D15 +error(0.003413650192825148054) D7 D15 ^ D17 D18 +error(0.002745143282833008118) D7 D16 +error(0.0002247421635537680468) D7 D16 ^ D17 D18 +error(0.001606865862163399774) D7 D19 +error(0.001269524994183931967) D7 D19 ^ D10 D18 +error(0.0001524710502301017325) D7 D19 ^ D18 +error(0.01000000000000000021) D7 L0 +error(0.01982095433635526135) D7 L0 ^ D9 +error(0.005511965998556637297) D9 D17 ^ D7 L0 +error(0.01754500670243323845) D8 +error(0.01732042522325907136) D8 D11 +error(0.01847612937431605123) D8 D11 ^ D10 +error(0.02083383052630493476) D8 D16 +error(0.002526335077347109832) D8 D16 ^ D18 +error(0.002812507578419484733) D8 D19 +error(0.002892165890292893154) D8 D19 ^ D10 +error(0.004492644142082523329) D8 D19 ^ D18 +error(0.0004141970759445874704) D8 D19 ^ D18 ^ D10 +error(0.02992322518773871814) D9 +error(0.00785192954145367758) D9 D10 +error(0.002474551844624836832) D9 D10 ^ D1 L0 +error(0.01102606236959633237) D9 D10 ^ D7 L0 +error(0.02265371976521304148) D9 D17 +error(0.02898839296967228862) D10 +error(0.00510905257237031455) D10 D17 +error(0.005017376046571177077) D10 D17 ^ D7 L0 +error(0.000589988883118600007) D10 D17 ^ D19 L0 +error(0.0004110912309204952752) D10 D17 ^ D19 L0 ^ D7 L0 +error(0.01965024450905843156) D10 D18 +error(0.0025962116388780071) D10 D18 ^ D7 L0 +error(0.001942229215694702728) D10 D18 ^ D19 L0 +error(0.0004323811595814655204) D10 ^ D8 +error(0.01261253946499450891) D10 ^ D11 L0 +error(0.0006418557964481364864) D10 ^ D11 L0 ^ D9 +error(0.001620082138863749828) D10 ^ D19 L0 +error(0.002591714783441831978) D11 D19 ^ D10 +error(0.02345929525710151176) D11 D19 +error(0.01360086124889639883) D11 L0 +error(0.0003150476856440556314) D11 L0 ^ D1 L0 ^ D9 +error(0.005000000000000000104) D12 +error(0.02036313963685056419) D12 D15 +error(0.01984466115424161903) D12 D15 ^ D13 +error(0.02111370028478150307) D12 D20 +error(0.003103491475898858404) D12 D20 ^ D21 +error(0.00826210055414196981) D12 D23 +error(0.004930310561894167727) D12 D23 ^ D13 +error(0.002580769651983623025) D12 D23 ^ D21 +error(0.0006581265057478693451) D12 D23 ^ D21 ^ D13 +error(0.0008622008416266678044) D12 D24 +error(0.0001855510381886844732) D12 D24 ^ D13 +error(0.001224488269891732366) D12 D24 ^ D13 D21 +error(0.0001499142721603081941) D12 D24 ^ D21 +error(0.01582188725642640417) D12 ^ D13 +error(0.003907032559532637624) D12 ^ D21 +error(0.003311649312040129255) D13 D21 ^ D12 +error(0.01631014156119487898) D13 +error(0.008408889566171386803) D13 D14 +error(0.0001616573544351376801) D13 D14 ^ D12 +error(0.0003045076179335072367) D13 D14 ^ D15 D16 +error(0.0005322608703760952015) D13 D14 ^ D15 D24 +error(0.01162545553377838936) D13 D14 ^ D16 +error(0.005863013166993952772) D13 D14 ^ D16 D24 +error(0.001022080545545054741) D13 D14 ^ D24 +error(0.0002414108018328903758) D13 D14 ^ D24 ^ D12 +error(0.01322558941130929505) D13 D18 +error(0.0109637838212586769) D13 D18 ^ D15 D16 +error(0.01933469145142516568) D13 D21 +error(0.002370271696856266451) D13 D21 ^ D23 D24 +error(0.0005231924114198808172) D13 D21 ^ D24 +error(0.001696302708218328393) D13 D25 +error(0.001319099712624956884) D13 D25 ^ D15 D23 +error(0.0001212718219379166796) D13 D25 ^ D15 D24 +error(0.0001912412295078792888) D13 D25 ^ D23 D24 +error(0.001431065749158458387) D13 D26 +error(0.001813929360425521609) D13 D26 ^ D15 D16 +error(0.00103993057499706873) D13 D26 ^ D15 D23 +error(0.002464810840379554578) D13 D26 ^ D15 D24 +error(0.0004417186232127558849) D13 D26 ^ D16 D24 +error(0.001955149659867002829) D13 D26 ^ D23 D24 +error(0.001337395605232206052) D15 D23 ^ D13 +error(0.01084263640871951234) D14 +error(0.002058498908926115981) D14 D21 +error(0.00234892788346252341) D14 D21 ^ D24 +error(0.0002153309690330830375) D14 D21 ^ D24 ^ D12 +error(0.02805437345993095494) D14 D22 +error(0.005110441527399735284) D14 D22 ^ D24 +error(0.002556815543432343005) D14 D26 +error(0.0002499192940845376232) D14 D26 ^ D15 D16 +error(0.0003744909586736285467) D14 D26 ^ D15 D24 +error(0.002317754759551753519) D14 D26 ^ D16 D24 +error(0.01554945686617837525) D14 ^ D16 +error(0.0004492225459000932937) D14 ^ D24 +error(0.00182086242005410166) D14 ^ D24 ^ D16 +error(0.007503129075243429418) D15 D16 +error(0.000624387127328504413) D15 D16 ^ D17 D18 +error(0.001997131045277926453) D15 D16 ^ D18 D26 +error(0.0001024525197508349689) D15 D16 ^ D26 +error(0.01973792906145652171) D15 D23 +error(0.003413650192825148054) D15 D23 ^ D25 D26 +error(0.002745143282833008118) D15 D24 +error(0.0002247421635537680468) D15 D24 ^ D25 D26 +error(0.001606865862163399774) D15 D27 +error(0.001269524994183931967) D15 D27 ^ D18 D26 +error(0.0001524710502301017325) D15 D27 ^ D26 +error(0.01000000000000000021) D15 L0 +error(0.01550857882836649201) D15 L0 ^ D17 +error(0.005511965998556637297) D17 D25 ^ D15 L0 +error(0.01228458791971137089) D16 +error(0.01572790974606955508) D16 D19 +error(0.01857915934084685555) D16 D19 ^ D18 +error(0.02083383052630493476) D16 D24 +error(0.002526335077347109832) D16 D24 ^ D26 +error(0.002812507578419484733) D16 D27 +error(0.002892165890292893154) D16 D27 ^ D18 +error(0.004492644142082523329) D16 D27 ^ D26 +error(0.0004141970759445874704) D16 D27 ^ D26 ^ D18 +error(0.005000000000000000104) D17 +error(0.009107600415895469523) D17 D18 +error(0.002888345062438905236) D17 D18 ^ D7 L0 +error(0.0124301623474226651) D17 D18 ^ D15 L0 +error(0.0004751084368830758506) D17 D18 ^ D19 L0 +error(0.0004318942157564078523) D17 D18 ^ D19 L0 ^ D7 L0 +error(0.02265371976521304148) D17 D25 +error(0.0009311867082587533748) D17 ^ D5 ^ D7 L0 +error(0.0001449673648750299801) D17 ^ D5 ^ D15 L0 +error(0.001153000035500963442) D17 ^ D15 L0 ^ D7 L0 +error(0.01000000000000000021) D18 +error(0.00510905257237031455) D18 D25 +error(0.005017376046571177077) D18 D25 ^ D15 L0 +error(0.000589988883118600007) D18 D25 ^ D27 L0 +error(0.0004110912309204952752) D18 D25 ^ D27 L0 ^ D15 L0 +error(0.01965024450905843156) D18 D26 +error(0.0025962116388780071) D18 D26 ^ D15 L0 +error(0.001942229215694702728) D18 D26 ^ D27 L0 +error(0.0006689461891537829301) D18 ^ D6 ^ D8 +error(0.0002024118145993013403) D18 ^ D6 ^ D16 +error(0.0003745396148953497118) D18 ^ D8 +error(0.01078603407133838128) D18 ^ D19 L0 +error(0.001620082138863749828) D18 ^ D27 L0 +error(0.002591714783441831978) D19 D27 ^ D18 +error(0.02345929525710151176) D19 D27 +error(0.0109337069657151377) D19 L0 +error(0.005000000000000000104) D20 +error(0.02036313963685056419) D20 D23 +error(0.01984466115424161903) D20 D23 ^ D21 +error(0.02111370028478150307) D20 D28 +error(0.003103491475898858404) D20 D28 ^ D29 +error(0.00826210055414196981) D20 D31 +error(0.004930310561894167727) D20 D31 ^ D21 +error(0.002580769651983623025) D20 D31 ^ D29 +error(0.0006581265057478693451) D20 D31 ^ D29 ^ D21 +error(0.0008622008416266678044) D20 D32 +error(0.0001855510381886844732) D20 D32 ^ D21 +error(0.001224488269891732366) D20 D32 ^ D21 D29 +error(0.0001499142721603081941) D20 D32 ^ D29 +error(0.01582188725642640417) D20 ^ D21 +error(0.003907032559532637624) D20 ^ D29 +error(0.003311649312040129255) D21 D29 ^ D20 +error(0.01631014156119487898) D21 +error(0.008408889566171386803) D21 D22 +error(0.0001616573544351376801) D21 D22 ^ D20 +error(0.0003045076179335072367) D21 D22 ^ D23 D24 +error(0.0005322608703760952015) D21 D22 ^ D23 D32 +error(0.01162545553377838936) D21 D22 ^ D24 +error(0.005863013166993952772) D21 D22 ^ D24 D32 +error(0.001022080545545054741) D21 D22 ^ D32 +error(0.0002414108018328903758) D21 D22 ^ D32 ^ D20 +error(0.01322558941130929505) D21 D26 +error(0.0109637838212586769) D21 D26 ^ D23 D24 +error(0.01933469145142516568) D21 D29 +error(0.002370271696856266451) D21 D29 ^ D31 D32 +error(0.0005231924114198808172) D21 D29 ^ D32 +error(0.001696302708218328393) D21 D33 +error(0.001319099712624956884) D21 D33 ^ D23 D31 +error(0.0001212718219379166796) D21 D33 ^ D23 D32 +error(0.0001912412295078792888) D21 D33 ^ D31 D32 +error(0.001431065749158458387) D21 D34 +error(0.001813929360425521609) D21 D34 ^ D23 D24 +error(0.00103993057499706873) D21 D34 ^ D23 D31 +error(0.002464810840379554578) D21 D34 ^ D23 D32 +error(0.0004417186232127558849) D21 D34 ^ D24 D32 +error(0.001955149659867002829) D21 D34 ^ D31 D32 +error(0.001337395605232206052) D23 D31 ^ D21 +error(0.01084263640871951234) D22 +error(0.002058498908926115981) D22 D29 +error(0.00234892788346252341) D22 D29 ^ D32 +error(0.0002153309690330830375) D22 D29 ^ D32 ^ D20 +error(0.02805437345993095494) D22 D30 +error(0.005110441527399735284) D22 D30 ^ D32 +error(0.002556815543432343005) D22 D34 +error(0.0002499192940845376232) D22 D34 ^ D23 D24 +error(0.0003744909586736285467) D22 D34 ^ D23 D32 +error(0.002317754759551753519) D22 D34 ^ D24 D32 +error(0.01554945686617837525) D22 ^ D24 +error(0.0004492225459000932937) D22 ^ D32 +error(0.00182086242005410166) D22 ^ D32 ^ D24 +error(0.007503129075243429418) D23 D24 +error(0.000624387127328504413) D23 D24 ^ D25 D26 +error(0.001997131045277926453) D23 D24 ^ D26 D34 +error(0.0001024525197508349689) D23 D24 ^ D34 +error(0.01973792906145652171) D23 D31 +error(0.003413650192825148054) D23 D31 ^ D33 D34 +error(0.002745143282833008118) D23 D32 +error(0.0002247421635537680468) D23 D32 ^ D33 D34 +error(0.001606865862163399774) D23 D35 +error(0.001269524994183931967) D23 D35 ^ D26 D34 +error(0.0001524710502301017325) D23 D35 ^ D34 +error(0.01000000000000000021) D23 L0 +error(0.01550857882836649201) D23 L0 ^ D25 +error(0.005511965998556637297) D25 D33 ^ D23 L0 +error(0.01228458791971137089) D24 +error(0.01572790974606955508) D24 D27 +error(0.01857915934084685555) D24 D27 ^ D26 +error(0.02083383052630493476) D24 D32 +error(0.002526335077347109832) D24 D32 ^ D34 +error(0.002812507578419484733) D24 D35 +error(0.002892165890292893154) D24 D35 ^ D26 +error(0.004492644142082523329) D24 D35 ^ D34 +error(0.0004141970759445874704) D24 D35 ^ D34 ^ D26 +error(0.005000000000000000104) D25 +error(0.009107600415895469523) D25 D26 +error(0.002888345062438905236) D25 D26 ^ D15 L0 +error(0.0124301623474226651) D25 D26 ^ D23 L0 +error(0.0004751084368830758506) D25 D26 ^ D27 L0 +error(0.0004318942157564078523) D25 D26 ^ D27 L0 ^ D15 L0 +error(0.02265371976521304148) D25 D33 +error(0.0009311867082587533748) D25 ^ D13 ^ D15 L0 +error(0.0001449673648750299801) D25 ^ D13 ^ D23 L0 +error(0.001153000035500963442) D25 ^ D23 L0 ^ D15 L0 +error(0.01000000000000000021) D26 +error(0.00510905257237031455) D26 D33 +error(0.005017376046571177077) D26 D33 ^ D23 L0 +error(0.000589988883118600007) D26 D33 ^ D35 L0 +error(0.0004110912309204952752) D26 D33 ^ D35 L0 ^ D23 L0 +error(0.01965024450905843156) D26 D34 +error(0.0025962116388780071) D26 D34 ^ D23 L0 +error(0.001942229215694702728) D26 D34 ^ D35 L0 +error(0.0006689461891537829301) D26 ^ D14 ^ D16 +error(0.0002024118145993013403) D26 ^ D14 ^ D24 +error(0.0003745396148953497118) D26 ^ D16 +error(0.01078603407133838128) D26 ^ D27 L0 +error(0.001620082138863749828) D26 ^ D35 L0 +error(0.002591714783441831978) D27 D35 ^ D26 +error(0.02345929525710151176) D27 D35 +error(0.0109337069657151377) D27 L0 +error(0.005000000000000000104) D28 +error(0.02036313963685056419) D28 D31 +error(0.01984466115424161903) D28 D31 ^ D29 +error(0.02111370028478150307) D28 D36 +error(0.003103491475898858404) D28 D36 ^ D37 +error(0.00826210055414196981) D28 D39 +error(0.004930310561894167727) D28 D39 ^ D29 +error(0.002580769651983623025) D28 D39 ^ D37 +error(0.0006581265057478693451) D28 D39 ^ D37 ^ D29 +error(0.0008622008416266678044) D28 D40 +error(0.0001855510381886844732) D28 D40 ^ D29 +error(0.001224488269891732366) D28 D40 ^ D29 D37 +error(0.0001499142721603081941) D28 D40 ^ D37 +error(0.01582188725642640417) D28 ^ D29 +error(0.003907032559532637624) D28 ^ D37 +error(0.003311649312040129255) D29 D37 ^ D28 +error(0.01631014156119487898) D29 +error(0.008408889566171386803) D29 D30 +error(0.0001616573544351376801) D29 D30 ^ D28 +error(0.0003045076179335072367) D29 D30 ^ D31 D32 +error(0.0005322608703760952015) D29 D30 ^ D31 D40 +error(0.01162545553377838936) D29 D30 ^ D32 +error(0.005863013166993952772) D29 D30 ^ D32 D40 +error(0.001022080545545054741) D29 D30 ^ D40 +error(0.0002414108018328903758) D29 D30 ^ D40 ^ D28 +error(0.01322558941130929505) D29 D34 +error(0.0109637838212586769) D29 D34 ^ D31 D32 +error(0.01933469145142516568) D29 D37 +error(0.002370271696856266451) D29 D37 ^ D39 D40 +error(0.0005231924114198808172) D29 D37 ^ D40 +error(0.001696302708218328393) D29 D41 +error(0.001319099712624956884) D29 D41 ^ D31 D39 +error(0.0001212718219379166796) D29 D41 ^ D31 D40 +error(0.0001912412295078792888) D29 D41 ^ D39 D40 +error(0.001431065749158458387) D29 D42 +error(0.001813929360425521609) D29 D42 ^ D31 D32 +error(0.00103993057499706873) D29 D42 ^ D31 D39 +error(0.002464810840379554578) D29 D42 ^ D31 D40 +error(0.0004417186232127558849) D29 D42 ^ D32 D40 +error(0.001955149659867002829) D29 D42 ^ D39 D40 +error(0.001337395605232206052) D31 D39 ^ D29 +error(0.01084263640871951234) D30 +error(0.002058498908926115981) D30 D37 +error(0.00234892788346252341) D30 D37 ^ D40 +error(0.0002153309690330830375) D30 D37 ^ D40 ^ D28 +error(0.02805437345993095494) D30 D38 +error(0.005110441527399735284) D30 D38 ^ D40 +error(0.002556815543432343005) D30 D42 +error(0.0002499192940845376232) D30 D42 ^ D31 D32 +error(0.0003744909586736285467) D30 D42 ^ D31 D40 +error(0.002317754759551753519) D30 D42 ^ D32 D40 +error(0.01554945686617837525) D30 ^ D32 +error(0.0004492225459000932937) D30 ^ D40 +error(0.00182086242005410166) D30 ^ D40 ^ D32 +error(0.007503129075243429418) D31 D32 +error(0.000624387127328504413) D31 D32 ^ D33 D34 +error(0.001997131045277926453) D31 D32 ^ D34 D42 +error(0.0001024525197508349689) D31 D32 ^ D42 +error(0.01973792906145652171) D31 D39 +error(0.003413650192825148054) D31 D39 ^ D41 D42 +error(0.002745143282833008118) D31 D40 +error(0.0002247421635537680468) D31 D40 ^ D41 D42 +error(0.001606865862163399774) D31 D43 +error(0.001269524994183931967) D31 D43 ^ D34 D42 +error(0.0001524710502301017325) D31 D43 ^ D42 +error(0.01000000000000000021) D31 L0 +error(0.01550857882836649201) D31 L0 ^ D33 +error(0.005511965998556637297) D33 D41 ^ D31 L0 +error(0.01228458791971137089) D32 +error(0.01572790974606955508) D32 D35 +error(0.01857915934084685555) D32 D35 ^ D34 +error(0.02083383052630493476) D32 D40 +error(0.002526335077347109832) D32 D40 ^ D42 +error(0.002812507578419484733) D32 D43 +error(0.002892165890292893154) D32 D43 ^ D34 +error(0.004492644142082523329) D32 D43 ^ D42 +error(0.0004141970759445874704) D32 D43 ^ D42 ^ D34 +error(0.005000000000000000104) D33 +error(0.009107600415895469523) D33 D34 +error(0.002888345062438905236) D33 D34 ^ D23 L0 +error(0.0124301623474226651) D33 D34 ^ D31 L0 +error(0.0004751084368830758506) D33 D34 ^ D35 L0 +error(0.0004318942157564078523) D33 D34 ^ D35 L0 ^ D23 L0 +error(0.02265371976521304148) D33 D41 +error(0.0009311867082587533748) D33 ^ D21 ^ D23 L0 +error(0.0001449673648750299801) D33 ^ D21 ^ D31 L0 +error(0.001153000035500963442) D33 ^ D31 L0 ^ D23 L0 +error(0.01000000000000000021) D34 +error(0.00510905257237031455) D34 D41 +error(0.005017376046571177077) D34 D41 ^ D31 L0 +error(0.000589988883118600007) D34 D41 ^ D43 L0 +error(0.0004110912309204952752) D34 D41 ^ D43 L0 ^ D31 L0 +error(0.01965024450905843156) D34 D42 +error(0.0025962116388780071) D34 D42 ^ D31 L0 +error(0.001942229215694702728) D34 D42 ^ D43 L0 +error(0.0006689461891537829301) D34 ^ D22 ^ D24 +error(0.0002024118145993013403) D34 ^ D22 ^ D32 +error(0.0003745396148953497118) D34 ^ D24 +error(0.01078603407133838128) D34 ^ D35 L0 +error(0.001620082138863749828) D34 ^ D43 L0 +error(0.002591714783441831978) D35 D43 ^ D34 +error(0.02345929525710151176) D35 D43 +error(0.0109337069657151377) D35 L0 +error(0.005000000000000000104) D36 +error(0.02036313963685056419) D36 D39 +error(0.01984466115424161903) D36 D39 ^ D37 +error(0.02111370028478150307) D36 D44 +error(0.003103491475898858404) D36 D44 ^ D45 +error(0.00826210055414196981) D36 D47 +error(0.004930310561894167727) D36 D47 ^ D37 +error(0.002580769651983623025) D36 D47 ^ D45 +error(0.0006581265057478693451) D36 D47 ^ D45 ^ D37 +error(0.0008622008416266678044) D36 D48 +error(0.0001855510381886844732) D36 D48 ^ D37 +error(0.001224488269891732366) D36 D48 ^ D37 D45 +error(0.0001499142721603081941) D36 D48 ^ D45 +error(0.01582188725642640417) D36 ^ D37 +error(0.003907032559532637624) D36 ^ D45 +error(0.003311649312040129255) D37 D45 ^ D36 +error(0.01631014156119487898) D37 +error(0.008408889566171386803) D37 D38 +error(0.0001616573544351376801) D37 D38 ^ D36 +error(0.0003045076179335072367) D37 D38 ^ D39 D40 +error(0.0005322608703760952015) D37 D38 ^ D39 D48 +error(0.01162545553377838936) D37 D38 ^ D40 +error(0.005863013166993952772) D37 D38 ^ D40 D48 +error(0.001022080545545054741) D37 D38 ^ D48 +error(0.0002414108018328903758) D37 D38 ^ D48 ^ D36 +error(0.01322558941130929505) D37 D42 +error(0.0109637838212586769) D37 D42 ^ D39 D40 +error(0.01933469145142516568) D37 D45 +error(0.002370271696856266451) D37 D45 ^ D47 D48 +error(0.0005231924114198808172) D37 D45 ^ D48 +error(0.001696302708218328393) D37 D49 +error(0.001319099712624956884) D37 D49 ^ D39 D47 +error(0.0001212718219379166796) D37 D49 ^ D39 D48 +error(0.0001912412295078792888) D37 D49 ^ D47 D48 +error(0.001431065749158458387) D37 D50 +error(0.001813929360425521609) D37 D50 ^ D39 D40 +error(0.00103993057499706873) D37 D50 ^ D39 D47 +error(0.002464810840379554578) D37 D50 ^ D39 D48 +error(0.0004417186232127558849) D37 D50 ^ D40 D48 +error(0.001955149659867002829) D37 D50 ^ D47 D48 +error(0.001337395605232206052) D39 D47 ^ D37 +error(0.01084263640871951234) D38 +error(0.002058498908926115981) D38 D45 +error(0.00234892788346252341) D38 D45 ^ D48 +error(0.0002153309690330830375) D38 D45 ^ D48 ^ D36 +error(0.02805437345993095494) D38 D46 +error(0.005110441527399735284) D38 D46 ^ D48 +error(0.002556815543432343005) D38 D50 +error(0.0002499192940845376232) D38 D50 ^ D39 D40 +error(0.0003744909586736285467) D38 D50 ^ D39 D48 +error(0.002317754759551753519) D38 D50 ^ D40 D48 +error(0.01554945686617837525) D38 ^ D40 +error(0.0004492225459000932937) D38 ^ D48 +error(0.00182086242005410166) D38 ^ D48 ^ D40 +error(0.007503129075243429418) D39 D40 +error(0.000624387127328504413) D39 D40 ^ D41 D42 +error(0.001997131045277926453) D39 D40 ^ D42 D50 +error(0.0001024525197508349689) D39 D40 ^ D50 +error(0.01973792906145652171) D39 D47 +error(0.003413650192825148054) D39 D47 ^ D49 D50 +error(0.002745143282833008118) D39 D48 +error(0.0002247421635537680468) D39 D48 ^ D49 D50 +error(0.001606865862163399774) D39 D51 +error(0.001269524994183931967) D39 D51 ^ D42 D50 +error(0.0001524710502301017325) D39 D51 ^ D50 +error(0.01000000000000000021) D39 L0 +error(0.01550857882836649201) D39 L0 ^ D41 +error(0.005511965998556637297) D41 D49 ^ D39 L0 +error(0.01228458791971137089) D40 +error(0.01572790974606955508) D40 D43 +error(0.01857915934084685555) D40 D43 ^ D42 +error(0.02083383052630493476) D40 D48 +error(0.002526335077347109832) D40 D48 ^ D50 +error(0.002812507578419484733) D40 D51 +error(0.002892165890292893154) D40 D51 ^ D42 +error(0.004492644142082523329) D40 D51 ^ D50 +error(0.0004141970759445874704) D40 D51 ^ D50 ^ D42 +error(0.005000000000000000104) D41 +error(0.009107600415895469523) D41 D42 +error(0.002888345062438905236) D41 D42 ^ D31 L0 +error(0.0124301623474226651) D41 D42 ^ D39 L0 +error(0.0004751084368830758506) D41 D42 ^ D43 L0 +error(0.0004318942157564078523) D41 D42 ^ D43 L0 ^ D31 L0 +error(0.02265371976521304148) D41 D49 +error(0.0009311867082587533748) D41 ^ D29 ^ D31 L0 +error(0.0001449673648750299801) D41 ^ D29 ^ D39 L0 +error(0.001153000035500963442) D41 ^ D39 L0 ^ D31 L0 +error(0.01000000000000000021) D42 +error(0.00510905257237031455) D42 D49 +error(0.005017376046571177077) D42 D49 ^ D39 L0 +error(0.000589988883118600007) D42 D49 ^ D51 L0 +error(0.0004110912309204952752) D42 D49 ^ D51 L0 ^ D39 L0 +error(0.01965024450905843156) D42 D50 +error(0.0025962116388780071) D42 D50 ^ D39 L0 +error(0.001942229215694702728) D42 D50 ^ D51 L0 +error(0.0006689461891537829301) D42 ^ D30 ^ D32 +error(0.0002024118145993013403) D42 ^ D30 ^ D40 +error(0.0003745396148953497118) D42 ^ D32 +error(0.01078603407133838128) D42 ^ D43 L0 +error(0.001620082138863749828) D42 ^ D51 L0 +error(0.002591714783441831978) D43 D51 ^ D42 +error(0.02345929525710151176) D43 D51 +error(0.0109337069657151377) D43 L0 +error(0.005000000000000000104) D44 +error(0.02036313963685056419) D44 D47 +error(0.01984466115424161903) D44 D47 ^ D45 +error(0.02111370028478150307) D44 D52 +error(0.003103491475898858404) D44 D52 ^ D53 +error(0.00826210055414196981) D44 D55 +error(0.004930310561894167727) D44 D55 ^ D45 +error(0.002580769651983623025) D44 D55 ^ D53 +error(0.0006581265057478693451) D44 D55 ^ D53 ^ D45 +error(0.0008622008416266678044) D44 D56 +error(0.0001855510381886844732) D44 D56 ^ D45 +error(0.001224488269891732366) D44 D56 ^ D45 D53 +error(0.0001499142721603081941) D44 D56 ^ D53 +error(0.01582188725642640417) D44 ^ D45 +error(0.003907032559532637624) D44 ^ D53 +error(0.003311649312040129255) D45 D53 ^ D44 +error(0.01631014156119487898) D45 +error(0.008408889566171386803) D45 D46 +error(0.0001616573544351376801) D45 D46 ^ D44 +error(0.0003045076179335072367) D45 D46 ^ D47 D48 +error(0.0005322608703760952015) D45 D46 ^ D47 D56 +error(0.01162545553377838936) D45 D46 ^ D48 +error(0.005863013166993952772) D45 D46 ^ D48 D56 +error(0.001022080545545054741) D45 D46 ^ D56 +error(0.0002414108018328903758) D45 D46 ^ D56 ^ D44 +error(0.01322558941130929505) D45 D50 +error(0.0109637838212586769) D45 D50 ^ D47 D48 +error(0.01933469145142516568) D45 D53 +error(0.002370271696856266451) D45 D53 ^ D55 D56 +error(0.0005231924114198808172) D45 D53 ^ D56 +error(0.001696302708218328393) D45 D57 +error(0.001319099712624956884) D45 D57 ^ D47 D55 +error(0.0001212718219379166796) D45 D57 ^ D47 D56 +error(0.0001912412295078792888) D45 D57 ^ D55 D56 +error(0.001431065749158458387) D45 D58 +error(0.001813929360425521609) D45 D58 ^ D47 D48 +error(0.00103993057499706873) D45 D58 ^ D47 D55 +error(0.002464810840379554578) D45 D58 ^ D47 D56 +error(0.0004417186232127558849) D45 D58 ^ D48 D56 +error(0.001955149659867002829) D45 D58 ^ D55 D56 +error(0.001337395605232206052) D47 D55 ^ D45 +error(0.01084263640871951234) D46 +error(0.002058498908926115981) D46 D53 +error(0.00234892788346252341) D46 D53 ^ D56 +error(0.0002153309690330830375) D46 D53 ^ D56 ^ D44 +error(0.02805437345993095494) D46 D54 +error(0.005110441527399735284) D46 D54 ^ D56 +error(0.002556815543432343005) D46 D58 +error(0.0002499192940845376232) D46 D58 ^ D47 D48 +error(0.0003744909586736285467) D46 D58 ^ D47 D56 +error(0.002317754759551753519) D46 D58 ^ D48 D56 +error(0.01554945686617837525) D46 ^ D48 +error(0.0004492225459000932937) D46 ^ D56 +error(0.00182086242005410166) D46 ^ D56 ^ D48 +error(0.007503129075243429418) D47 D48 +error(0.000624387127328504413) D47 D48 ^ D49 D50 +error(0.001997131045277926453) D47 D48 ^ D50 D58 +error(0.0001024525197508349689) D47 D48 ^ D58 +error(0.01973792906145652171) D47 D55 +error(0.003413650192825148054) D47 D55 ^ D57 D58 +error(0.002745143282833008118) D47 D56 +error(0.0002247421635537680468) D47 D56 ^ D57 D58 +error(0.001606865862163399774) D47 D59 +error(0.001269524994183931967) D47 D59 ^ D50 D58 +error(0.0001524710502301017325) D47 D59 ^ D58 +error(0.01000000000000000021) D47 L0 +error(0.01550857882836649201) D47 L0 ^ D49 +error(0.005511965998556637297) D49 D57 ^ D47 L0 +error(0.01228458791971137089) D48 +error(0.01572790974606955508) D48 D51 +error(0.01857915934084685555) D48 D51 ^ D50 +error(0.02083383052630493476) D48 D56 +error(0.002526335077347109832) D48 D56 ^ D58 +error(0.002812507578419484733) D48 D59 +error(0.002892165890292893154) D48 D59 ^ D50 +error(0.004492644142082523329) D48 D59 ^ D58 +error(0.0004141970759445874704) D48 D59 ^ D58 ^ D50 +error(0.005000000000000000104) D49 +error(0.009107600415895469523) D49 D50 +error(0.002888345062438905236) D49 D50 ^ D39 L0 +error(0.0124301623474226651) D49 D50 ^ D47 L0 +error(0.0004751084368830758506) D49 D50 ^ D51 L0 +error(0.0004318942157564078523) D49 D50 ^ D51 L0 ^ D39 L0 +error(0.02265371976521304148) D49 D57 +error(0.0009311867082587533748) D49 ^ D37 ^ D39 L0 +error(0.0001449673648750299801) D49 ^ D37 ^ D47 L0 +error(0.001153000035500963442) D49 ^ D47 L0 ^ D39 L0 +error(0.01000000000000000021) D50 +error(0.00510905257237031455) D50 D57 +error(0.005017376046571177077) D50 D57 ^ D47 L0 +error(0.000589988883118600007) D50 D57 ^ D59 L0 +error(0.0004110912309204952752) D50 D57 ^ D59 L0 ^ D47 L0 +error(0.01965024450905843156) D50 D58 +error(0.0025962116388780071) D50 D58 ^ D47 L0 +error(0.001942229215694702728) D50 D58 ^ D59 L0 +error(0.0006689461891537829301) D50 ^ D38 ^ D40 +error(0.0002024118145993013403) D50 ^ D38 ^ D48 +error(0.0003745396148953497118) D50 ^ D40 +error(0.01078603407133838128) D50 ^ D51 L0 +error(0.001620082138863749828) D50 ^ D59 L0 +error(0.002591714783441831978) D51 D59 ^ D50 +error(0.02345929525710151176) D51 D59 +error(0.0109337069657151377) D51 L0 +error(0.005000000000000000104) D52 +error(0.02036313963685056419) D52 D55 +error(0.01984466115424161903) D52 D55 ^ D53 +error(0.02111370028478150307) D52 D60 +error(0.003103491475898858404) D52 D60 ^ D61 +error(0.00826210055414196981) D52 D63 +error(0.004930310561894167727) D52 D63 ^ D53 +error(0.002580769651983623025) D52 D63 ^ D61 +error(0.0006581265057478693451) D52 D63 ^ D61 ^ D53 +error(0.0008622008416266678044) D52 D64 +error(0.0001855510381886844732) D52 D64 ^ D53 +error(0.001224488269891732366) D52 D64 ^ D53 D61 +error(0.0001499142721603081941) D52 D64 ^ D61 +error(0.01582188725642640417) D52 ^ D53 +error(0.003907032559532637624) D52 ^ D61 +error(0.003311649312040129255) D53 D61 ^ D52 +error(0.01631014156119487898) D53 +error(0.008408889566171386803) D53 D54 +error(0.0001616573544351376801) D53 D54 ^ D52 +error(0.0003045076179335072367) D53 D54 ^ D55 D56 +error(0.0005322608703760952015) D53 D54 ^ D55 D64 +error(0.01162545553377838936) D53 D54 ^ D56 +error(0.005863013166993952772) D53 D54 ^ D56 D64 +error(0.001022080545545054741) D53 D54 ^ D64 +error(0.0002414108018328903758) D53 D54 ^ D64 ^ D52 +error(0.01322558941130929505) D53 D58 +error(0.0109637838212586769) D53 D58 ^ D55 D56 +error(0.01933469145142516568) D53 D61 +error(0.002370271696856266451) D53 D61 ^ D63 D64 +error(0.0005231924114198808172) D53 D61 ^ D64 +error(0.001696302708218328393) D53 D65 +error(0.001319099712624956884) D53 D65 ^ D55 D63 +error(0.0001212718219379166796) D53 D65 ^ D55 D64 +error(0.0001912412295078792888) D53 D65 ^ D63 D64 +error(0.001431065749158458387) D53 D66 +error(0.001813929360425521609) D53 D66 ^ D55 D56 +error(0.00103993057499706873) D53 D66 ^ D55 D63 +error(0.002464810840379554578) D53 D66 ^ D55 D64 +error(0.0004417186232127558849) D53 D66 ^ D56 D64 +error(0.001955149659867002829) D53 D66 ^ D63 D64 +error(0.001337395605232206052) D55 D63 ^ D53 +error(0.01084263640871951234) D54 +error(0.002058498908926115981) D54 D61 +error(0.00234892788346252341) D54 D61 ^ D64 +error(0.0002153309690330830375) D54 D61 ^ D64 ^ D52 +error(0.02805437345993095494) D54 D62 +error(0.005110441527399735284) D54 D62 ^ D64 +error(0.002556815543432343005) D54 D66 +error(0.0002499192940845376232) D54 D66 ^ D55 D56 +error(0.0003744909586736285467) D54 D66 ^ D55 D64 +error(0.002317754759551753519) D54 D66 ^ D56 D64 +error(0.01554945686617837525) D54 ^ D56 +error(0.0004492225459000932937) D54 ^ D64 +error(0.00182086242005410166) D54 ^ D64 ^ D56 +error(0.007503129075243429418) D55 D56 +error(0.000624387127328504413) D55 D56 ^ D57 D58 +error(0.001997131045277926453) D55 D56 ^ D58 D66 +error(0.0001024525197508349689) D55 D56 ^ D66 +error(0.01973792906145652171) D55 D63 +error(0.003413650192825148054) D55 D63 ^ D65 D66 +error(0.002745143282833008118) D55 D64 +error(0.0002247421635537680468) D55 D64 ^ D65 D66 +error(0.001606865862163399774) D55 D67 +error(0.001269524994183931967) D55 D67 ^ D58 D66 +error(0.0001524710502301017325) D55 D67 ^ D66 +error(0.01000000000000000021) D55 L0 +error(0.01550857882836649201) D55 L0 ^ D57 +error(0.005511965998556637297) D57 D65 ^ D55 L0 +error(0.01228458791971137089) D56 +error(0.01572790974606955508) D56 D59 +error(0.01857915934084685555) D56 D59 ^ D58 +error(0.02083383052630493476) D56 D64 +error(0.002526335077347109832) D56 D64 ^ D66 +error(0.002812507578419484733) D56 D67 +error(0.002892165890292893154) D56 D67 ^ D58 +error(0.004492644142082523329) D56 D67 ^ D66 +error(0.0004141970759445874704) D56 D67 ^ D66 ^ D58 +error(0.005000000000000000104) D57 +error(0.009107600415895469523) D57 D58 +error(0.002888345062438905236) D57 D58 ^ D47 L0 +error(0.0124301623474226651) D57 D58 ^ D55 L0 +error(0.0004751084368830758506) D57 D58 ^ D59 L0 +error(0.0004318942157564078523) D57 D58 ^ D59 L0 ^ D47 L0 +error(0.02265371976521304148) D57 D65 +error(0.0009311867082587533748) D57 ^ D45 ^ D47 L0 +error(0.0001449673648750299801) D57 ^ D45 ^ D55 L0 +error(0.001153000035500963442) D57 ^ D55 L0 ^ D47 L0 +error(0.01000000000000000021) D58 +error(0.00510905257237031455) D58 D65 +error(0.005017376046571177077) D58 D65 ^ D55 L0 +error(0.000589988883118600007) D58 D65 ^ D67 L0 +error(0.0004110912309204952752) D58 D65 ^ D67 L0 ^ D55 L0 +error(0.01965024450905843156) D58 D66 +error(0.0025962116388780071) D58 D66 ^ D55 L0 +error(0.001942229215694702728) D58 D66 ^ D67 L0 +error(0.0006689461891537829301) D58 ^ D46 ^ D48 +error(0.0002024118145993013403) D58 ^ D46 ^ D56 +error(0.0003745396148953497118) D58 ^ D48 +error(0.01078603407133838128) D58 ^ D59 L0 +error(0.001620082138863749828) D58 ^ D67 L0 +error(0.002591714783441831978) D59 D67 ^ D58 +error(0.02345929525710151176) D59 D67 +error(0.0109337069657151377) D59 L0 +error(0.005000000000000000104) D60 +error(0.02036313963685056419) D60 D63 +error(0.01984466115424161903) D60 D63 ^ D61 +error(0.02111370028478150307) D60 D68 +error(0.003103491475898858404) D60 D68 ^ D69 +error(0.00826210055414196981) D60 D71 +error(0.004930310561894167727) D60 D71 ^ D61 +error(0.002580769651983623025) D60 D71 ^ D69 +error(0.0006581265057478693451) D60 D71 ^ D69 ^ D61 +error(0.0008622008416266678044) D60 D72 +error(0.0001855510381886844732) D60 D72 ^ D61 +error(0.001224488269891732366) D60 D72 ^ D61 D69 +error(0.0001499142721603081941) D60 D72 ^ D69 +error(0.01582188725642640417) D60 ^ D61 +error(0.003907032559532637624) D60 ^ D69 +error(0.003311649312040129255) D61 D69 ^ D60 +error(0.01631014156119487898) D61 +error(0.008408889566171386803) D61 D62 +error(0.0001616573544351376801) D61 D62 ^ D60 +error(0.0003045076179335072367) D61 D62 ^ D63 D64 +error(0.0005322608703760952015) D61 D62 ^ D63 D72 +error(0.01162545553377838936) D61 D62 ^ D64 +error(0.005863013166993952772) D61 D62 ^ D64 D72 +error(0.001022080545545054741) D61 D62 ^ D72 +error(0.0002414108018328903758) D61 D62 ^ D72 ^ D60 +error(0.01322558941130929505) D61 D66 +error(0.0109637838212586769) D61 D66 ^ D63 D64 +error(0.01933469145142516568) D61 D69 +error(0.002370271696856266451) D61 D69 ^ D71 D72 +error(0.0005231924114198808172) D61 D69 ^ D72 +error(0.001696302708218328393) D61 D73 +error(0.001319099712624956884) D61 D73 ^ D63 D71 +error(0.0001212718219379166796) D61 D73 ^ D63 D72 +error(0.0001912412295078792888) D61 D73 ^ D71 D72 +error(0.001431065749158458387) D61 D74 +error(0.001813929360425521609) D61 D74 ^ D63 D64 +error(0.00103993057499706873) D61 D74 ^ D63 D71 +error(0.002464810840379554578) D61 D74 ^ D63 D72 +error(0.0004417186232127558849) D61 D74 ^ D64 D72 +error(0.001955149659867002829) D61 D74 ^ D71 D72 +error(0.001337395605232206052) D63 D71 ^ D61 +error(0.01084263640871951234) D62 +error(0.002058498908926115981) D62 D69 +error(0.00234892788346252341) D62 D69 ^ D72 +error(0.0002153309690330830375) D62 D69 ^ D72 ^ D60 +error(0.02805437345993095494) D62 D70 +error(0.005110441527399735284) D62 D70 ^ D72 +error(0.002556815543432343005) D62 D74 +error(0.0002499192940845376232) D62 D74 ^ D63 D64 +error(0.0003744909586736285467) D62 D74 ^ D63 D72 +error(0.002317754759551753519) D62 D74 ^ D64 D72 +error(0.01554945686617837525) D62 ^ D64 +error(0.0004492225459000932937) D62 ^ D72 +error(0.00182086242005410166) D62 ^ D72 ^ D64 +error(0.007503129075243429418) D63 D64 +error(0.000624387127328504413) D63 D64 ^ D65 D66 +error(0.001997131045277926453) D63 D64 ^ D66 D74 +error(0.0001024525197508349689) D63 D64 ^ D74 +error(0.01973792906145652171) D63 D71 +error(0.003413650192825148054) D63 D71 ^ D73 D74 +error(0.002745143282833008118) D63 D72 +error(0.0002247421635537680468) D63 D72 ^ D73 D74 +error(0.001606865862163399774) D63 D75 +error(0.001269524994183931967) D63 D75 ^ D66 D74 +error(0.0001524710502301017325) D63 D75 ^ D74 +error(0.01000000000000000021) D63 L0 +error(0.01550857882836649201) D63 L0 ^ D65 +error(0.005511965998556637297) D65 D73 ^ D63 L0 +error(0.01228458791971137089) D64 +error(0.01572790974606955508) D64 D67 +error(0.01857915934084685555) D64 D67 ^ D66 +error(0.02083383052630493476) D64 D72 +error(0.002526335077347109832) D64 D72 ^ D74 +error(0.002812507578419484733) D64 D75 +error(0.002892165890292893154) D64 D75 ^ D66 +error(0.004492644142082523329) D64 D75 ^ D74 +error(0.0004141970759445874704) D64 D75 ^ D74 ^ D66 +error(0.005000000000000000104) D65 +error(0.009107600415895469523) D65 D66 +error(0.002888345062438905236) D65 D66 ^ D55 L0 +error(0.0124301623474226651) D65 D66 ^ D63 L0 +error(0.0004751084368830758506) D65 D66 ^ D67 L0 +error(0.0004318942157564078523) D65 D66 ^ D67 L0 ^ D55 L0 +error(0.02265371976521304148) D65 D73 +error(0.0009311867082587533748) D65 ^ D53 ^ D55 L0 +error(0.0001449673648750299801) D65 ^ D53 ^ D63 L0 +error(0.001153000035500963442) D65 ^ D63 L0 ^ D55 L0 +error(0.01000000000000000021) D66 +error(0.00510905257237031455) D66 D73 +error(0.005017376046571177077) D66 D73 ^ D63 L0 +error(0.000589988883118600007) D66 D73 ^ D75 L0 +error(0.0004110912309204952752) D66 D73 ^ D75 L0 ^ D63 L0 +error(0.01965024450905843156) D66 D74 +error(0.0025962116388780071) D66 D74 ^ D63 L0 +error(0.001942229215694702728) D66 D74 ^ D75 L0 +error(0.0006689461891537829301) D66 ^ D54 ^ D56 +error(0.0002024118145993013403) D66 ^ D54 ^ D64 +error(0.0003745396148953497118) D66 ^ D56 +error(0.01078603407133838128) D66 ^ D67 L0 +error(0.001620082138863749828) D66 ^ D75 L0 +error(0.002591714783441831978) D67 D75 ^ D66 +error(0.02345929525710151176) D67 D75 +error(0.0109337069657151377) D67 L0 +error(0.005000000000000000104) D68 +error(0.02036313963685056419) D68 D71 +error(0.01984466115424161903) D68 D71 ^ D69 +error(0.02111370028478150307) D68 D76 +error(0.003103491475898858404) D68 D76 ^ D77 +error(0.00826210055414196981) D68 D79 +error(0.004930310561894167727) D68 D79 ^ D69 +error(0.002580769651983623025) D68 D79 ^ D77 +error(0.0006581265057478693451) D68 D79 ^ D77 ^ D69 +error(0.0008622008416266678044) D68 D80 +error(0.0001855510381886844732) D68 D80 ^ D69 +error(0.001224488269891732366) D68 D80 ^ D69 D77 +error(0.0001499142721603081941) D68 D80 ^ D77 +error(0.01582188725642640417) D68 ^ D69 +error(0.003907032559532637624) D68 ^ D77 +error(0.003311649312040129255) D69 D77 ^ D68 +error(0.01631014156119487898) D69 +error(0.008408889566171386803) D69 D70 +error(0.0001616573544351376801) D69 D70 ^ D68 +error(0.0003045076179335072367) D69 D70 ^ D71 D72 +error(0.0005322608703760952015) D69 D70 ^ D71 D80 +error(0.01162545553377838936) D69 D70 ^ D72 +error(0.005863013166993952772) D69 D70 ^ D72 D80 +error(0.001022080545545054741) D69 D70 ^ D80 +error(0.0002414108018328903758) D69 D70 ^ D80 ^ D68 +error(0.01322558941130929505) D69 D74 +error(0.0109637838212586769) D69 D74 ^ D71 D72 +error(0.01933469145142516568) D69 D77 +error(0.002370271696856266451) D69 D77 ^ D79 D80 +error(0.0005231924114198808172) D69 D77 ^ D80 +error(0.001696302708218328393) D69 D81 +error(0.001319099712624956884) D69 D81 ^ D71 D79 +error(0.0001212718219379166796) D69 D81 ^ D71 D80 +error(0.0001912412295078792888) D69 D81 ^ D79 D80 +error(0.001431065749158458387) D69 D82 +error(0.001813929360425521609) D69 D82 ^ D71 D72 +error(0.00103993057499706873) D69 D82 ^ D71 D79 +error(0.002464810840379554578) D69 D82 ^ D71 D80 +error(0.0004417186232127558849) D69 D82 ^ D72 D80 +error(0.001955149659867002829) D69 D82 ^ D79 D80 +error(0.001337395605232206052) D71 D79 ^ D69 +error(0.01084263640871951234) D70 +error(0.002058498908926115981) D70 D77 +error(0.00234892788346252341) D70 D77 ^ D80 +error(0.0002153309690330830375) D70 D77 ^ D80 ^ D68 +error(0.02805437345993095494) D70 D78 +error(0.005110441527399735284) D70 D78 ^ D80 +error(0.002556815543432343005) D70 D82 +error(0.0002499192940845376232) D70 D82 ^ D71 D72 +error(0.0003744909586736285467) D70 D82 ^ D71 D80 +error(0.002317754759551753519) D70 D82 ^ D72 D80 +error(0.01554945686617837525) D70 ^ D72 +error(0.0004492225459000932937) D70 ^ D80 +error(0.00182086242005410166) D70 ^ D80 ^ D72 +error(0.007503129075243429418) D71 D72 +error(0.000624387127328504413) D71 D72 ^ D73 D74 +error(0.001997131045277926453) D71 D72 ^ D74 D82 +error(0.0001024525197508349689) D71 D72 ^ D82 +error(0.01973792906145652171) D71 D79 +error(0.003413650192825148054) D71 D79 ^ D81 D82 +error(0.002745143282833008118) D71 D80 +error(0.0002247421635537680468) D71 D80 ^ D81 D82 +error(0.001606865862163399774) D71 D83 +error(0.001269524994183931967) D71 D83 ^ D74 D82 +error(0.0001524710502301017325) D71 D83 ^ D82 +error(0.01000000000000000021) D71 L0 +error(0.01550857882836649201) D71 L0 ^ D73 +error(0.005511965998556637297) D73 D81 ^ D71 L0 +error(0.01228458791971137089) D72 +error(0.01572790974606955508) D72 D75 +error(0.01857915934084685555) D72 D75 ^ D74 +error(0.02083383052630493476) D72 D80 +error(0.002526335077347109832) D72 D80 ^ D82 +error(0.002812507578419484733) D72 D83 +error(0.002892165890292893154) D72 D83 ^ D74 +error(0.004492644142082523329) D72 D83 ^ D82 +error(0.0004141970759445874704) D72 D83 ^ D82 ^ D74 +error(0.005000000000000000104) D73 +error(0.009107600415895469523) D73 D74 +error(0.002888345062438905236) D73 D74 ^ D63 L0 +error(0.0124301623474226651) D73 D74 ^ D71 L0 +error(0.0004751084368830758506) D73 D74 ^ D75 L0 +error(0.0004318942157564078523) D73 D74 ^ D75 L0 ^ D63 L0 +error(0.02265371976521304148) D73 D81 +error(0.0009311867082587533748) D73 ^ D61 ^ D63 L0 +error(0.0001449673648750299801) D73 ^ D61 ^ D71 L0 +error(0.001153000035500963442) D73 ^ D71 L0 ^ D63 L0 +error(0.01000000000000000021) D74 +error(0.00510905257237031455) D74 D81 +error(0.005017376046571177077) D74 D81 ^ D71 L0 +error(0.000589988883118600007) D74 D81 ^ D83 L0 +error(0.0004110912309204952752) D74 D81 ^ D83 L0 ^ D71 L0 +error(0.01965024450905843156) D74 D82 +error(0.0025962116388780071) D74 D82 ^ D71 L0 +error(0.001942229215694702728) D74 D82 ^ D83 L0 +error(0.0006689461891537829301) D74 ^ D62 ^ D64 +error(0.0002024118145993013403) D74 ^ D62 ^ D72 +error(0.0003745396148953497118) D74 ^ D64 +error(0.01078603407133838128) D74 ^ D75 L0 +error(0.001620082138863749828) D74 ^ D83 L0 +error(0.002591714783441831978) D75 D83 ^ D74 +error(0.02345929525710151176) D75 D83 +error(0.0109337069657151377) D75 L0 +error(0.005000000000000000104) D76 +error(0.02036313963685056419) D76 D79 +error(0.01984466115424161903) D76 D79 ^ D77 +error(0.02111370028478150307) D76 D84 +error(0.003103491475898858404) D76 D84 ^ D85 +error(0.00826210055414196981) D76 D87 +error(0.004930310561894167727) D76 D87 ^ D77 +error(0.002580769651983623025) D76 D87 ^ D85 +error(0.0006581265057478693451) D76 D87 ^ D85 ^ D77 +error(0.0008622008416266678044) D76 D88 +error(0.0001855510381886844732) D76 D88 ^ D77 +error(0.001224488269891732366) D76 D88 ^ D77 D85 +error(0.0001499142721603081941) D76 D88 ^ D85 +error(0.01582188725642640417) D76 ^ D77 +error(0.003907032559532637624) D76 ^ D85 +error(0.003311649312040129255) D77 D85 ^ D76 +error(0.01631014156119487898) D77 +error(0.008408889566171386803) D77 D78 +error(0.0001616573544351376801) D77 D78 ^ D76 +error(0.0003045076179335072367) D77 D78 ^ D79 D80 +error(0.0005322608703760952015) D77 D78 ^ D79 D88 +error(0.01162545553377838936) D77 D78 ^ D80 +error(0.005863013166993952772) D77 D78 ^ D80 D88 +error(0.001022080545545054741) D77 D78 ^ D88 +error(0.0002414108018328903758) D77 D78 ^ D88 ^ D76 +error(0.01322558941130929505) D77 D82 +error(0.0109637838212586769) D77 D82 ^ D79 D80 +error(0.01933469145142516568) D77 D85 +error(0.002370271696856266451) D77 D85 ^ D87 D88 +error(0.0005231924114198808172) D77 D85 ^ D88 +error(0.001696302708218328393) D77 D89 +error(0.001319099712624956884) D77 D89 ^ D79 D87 +error(0.0001212718219379166796) D77 D89 ^ D79 D88 +error(0.0001912412295078792888) D77 D89 ^ D87 D88 +error(0.001431065749158458387) D77 D90 +error(0.001813929360425521609) D77 D90 ^ D79 D80 +error(0.00103993057499706873) D77 D90 ^ D79 D87 +error(0.002464810840379554578) D77 D90 ^ D79 D88 +error(0.0004417186232127558849) D77 D90 ^ D80 D88 +error(0.001955149659867002829) D77 D90 ^ D87 D88 +error(0.001337395605232206052) D79 D87 ^ D77 +error(0.01084263640871951234) D78 +error(0.002058498908926115981) D78 D85 +error(0.00234892788346252341) D78 D85 ^ D88 +error(0.0002153309690330830375) D78 D85 ^ D88 ^ D76 +error(0.02805437345993095494) D78 D86 +error(0.005110441527399735284) D78 D86 ^ D88 +error(0.002556815543432343005) D78 D90 +error(0.0002499192940845376232) D78 D90 ^ D79 D80 +error(0.0003744909586736285467) D78 D90 ^ D79 D88 +error(0.002317754759551753519) D78 D90 ^ D80 D88 +error(0.01554945686617837525) D78 ^ D80 +error(0.0004492225459000932937) D78 ^ D88 +error(0.00182086242005410166) D78 ^ D88 ^ D80 +error(0.007503129075243429418) D79 D80 +error(0.000624387127328504413) D79 D80 ^ D81 D82 +error(0.001997131045277926453) D79 D80 ^ D82 D90 +error(0.0001024525197508349689) D79 D80 ^ D90 +error(0.01973792906145652171) D79 D87 +error(0.003413650192825148054) D79 D87 ^ D89 D90 +error(0.002745143282833008118) D79 D88 +error(0.0002247421635537680468) D79 D88 ^ D89 D90 +error(0.001606865862163399774) D79 D91 +error(0.001269524994183931967) D79 D91 ^ D82 D90 +error(0.0001524710502301017325) D79 D91 ^ D90 +error(0.01000000000000000021) D79 L0 +error(0.01550857882836649201) D79 L0 ^ D81 +error(0.005511965998556637297) D81 D89 ^ D79 L0 +error(0.01228458791971137089) D80 +error(0.01572790974606955508) D80 D83 +error(0.01857915934084685555) D80 D83 ^ D82 +error(0.02083383052630493476) D80 D88 +error(0.002526335077347109832) D80 D88 ^ D90 +error(0.002812507578419484733) D80 D91 +error(0.002892165890292893154) D80 D91 ^ D82 +error(0.004492644142082523329) D80 D91 ^ D90 +error(0.0004141970759445874704) D80 D91 ^ D90 ^ D82 +error(0.005000000000000000104) D81 +error(0.009107600415895469523) D81 D82 +error(0.002888345062438905236) D81 D82 ^ D71 L0 +error(0.0124301623474226651) D81 D82 ^ D79 L0 +error(0.0004751084368830758506) D81 D82 ^ D83 L0 +error(0.0004318942157564078523) D81 D82 ^ D83 L0 ^ D71 L0 +error(0.02265371976521304148) D81 D89 +error(0.0009311867082587533748) D81 ^ D69 ^ D71 L0 +error(0.0001449673648750299801) D81 ^ D69 ^ D79 L0 +error(0.001153000035500963442) D81 ^ D79 L0 ^ D71 L0 +error(0.01000000000000000021) D82 +error(0.00510905257237031455) D82 D89 +error(0.005017376046571177077) D82 D89 ^ D79 L0 +error(0.000589988883118600007) D82 D89 ^ D91 L0 +error(0.0004110912309204952752) D82 D89 ^ D91 L0 ^ D79 L0 +error(0.01965024450905843156) D82 D90 +error(0.0025962116388780071) D82 D90 ^ D79 L0 +error(0.001942229215694702728) D82 D90 ^ D91 L0 +error(0.0006689461891537829301) D82 ^ D70 ^ D72 +error(0.0002024118145993013403) D82 ^ D70 ^ D80 +error(0.0003745396148953497118) D82 ^ D72 +error(0.01078603407133838128) D82 ^ D83 L0 +error(0.001620082138863749828) D82 ^ D91 L0 +error(0.002591714783441831978) D83 D91 ^ D82 +error(0.02345929525710151176) D83 D91 +error(0.0109337069657151377) D83 L0 +error(0.005000000000000000104) D84 +error(0.02036313963685056419) D84 D87 +error(0.01984466115424161903) D84 D87 ^ D85 +error(0.02111370028478150307) D84 D92 +error(0.003103491475898858404) D84 D92 ^ D93 +error(0.00826210055414196981) D84 D95 +error(0.004930310561894167727) D84 D95 ^ D85 +error(0.002580769651983623025) D84 D95 ^ D93 +error(0.0006581265057478693451) D84 D95 ^ D93 ^ D85 +error(0.0008622008416266678044) D84 D96 +error(0.0001855510381886844732) D84 D96 ^ D85 +error(0.001224488269891732366) D84 D96 ^ D85 D93 +error(0.0001499142721603081941) D84 D96 ^ D93 +error(0.01582188725642640417) D84 ^ D85 +error(0.003907032559532637624) D84 ^ D93 +error(0.003311649312040129255) D85 D93 ^ D84 +error(0.01631014156119487898) D85 +error(0.008408889566171386803) D85 D86 +error(0.0001616573544351376801) D85 D86 ^ D84 +error(0.0003045076179335072367) D85 D86 ^ D87 D88 +error(0.0005322608703760952015) D85 D86 ^ D87 D96 +error(0.01162545553377838936) D85 D86 ^ D88 +error(0.005863013166993952772) D85 D86 ^ D88 D96 +error(0.001022080545545054741) D85 D86 ^ D96 +error(0.0002414108018328903758) D85 D86 ^ D96 ^ D84 +error(0.01322558941130929505) D85 D90 +error(0.0109637838212586769) D85 D90 ^ D87 D88 +error(0.01933469145142516568) D85 D93 +error(0.002370271696856266451) D85 D93 ^ D95 D96 +error(0.0005231924114198808172) D85 D93 ^ D96 +error(0.001696302708218328393) D85 D97 +error(0.001319099712624956884) D85 D97 ^ D87 D95 +error(0.0001212718219379166796) D85 D97 ^ D87 D96 +error(0.0001912412295078792888) D85 D97 ^ D95 D96 +error(0.001431065749158458387) D85 D98 +error(0.001813929360425521609) D85 D98 ^ D87 D88 +error(0.00103993057499706873) D85 D98 ^ D87 D95 +error(0.002464810840379554578) D85 D98 ^ D87 D96 +error(0.0004417186232127558849) D85 D98 ^ D88 D96 +error(0.001955149659867002829) D85 D98 ^ D95 D96 +error(0.001337395605232206052) D87 D95 ^ D85 +error(0.01084263640871951234) D86 +error(0.002058498908926115981) D86 D93 +error(0.00234892788346252341) D86 D93 ^ D96 +error(0.0002153309690330830375) D86 D93 ^ D96 ^ D84 +error(0.02805437345993095494) D86 D94 +error(0.005110441527399735284) D86 D94 ^ D96 +error(0.002556815543432343005) D86 D98 +error(0.0002499192940845376232) D86 D98 ^ D87 D88 +error(0.0003744909586736285467) D86 D98 ^ D87 D96 +error(0.002317754759551753519) D86 D98 ^ D88 D96 +error(0.01554945686617837525) D86 ^ D88 +error(0.0004492225459000932937) D86 ^ D96 +error(0.00182086242005410166) D86 ^ D96 ^ D88 +error(0.007503129075243429418) D87 D88 +error(0.000624387127328504413) D87 D88 ^ D89 D90 +error(0.001997131045277926453) D87 D88 ^ D90 D98 +error(0.0001024525197508349689) D87 D88 ^ D98 +error(0.01973792906145652171) D87 D95 +error(0.003413650192825148054) D87 D95 ^ D97 D98 +error(0.002745143282833008118) D87 D96 +error(0.0002247421635537680468) D87 D96 ^ D97 D98 +error(0.001606865862163399774) D87 D99 +error(0.001269524994183931967) D87 D99 ^ D90 D98 +error(0.0001524710502301017325) D87 D99 ^ D98 +error(0.01000000000000000021) D87 L0 +error(0.01550857882836649201) D87 L0 ^ D89 +error(0.005511965998556637297) D89 D97 ^ D87 L0 +error(0.01228458791971137089) D88 +error(0.01572790974606955508) D88 D91 +error(0.01857915934084685555) D88 D91 ^ D90 +error(0.02083383052630493476) D88 D96 +error(0.002526335077347109832) D88 D96 ^ D98 +error(0.002812507578419484733) D88 D99 +error(0.002892165890292893154) D88 D99 ^ D90 +error(0.004492644142082523329) D88 D99 ^ D98 +error(0.0004141970759445874704) D88 D99 ^ D98 ^ D90 +error(0.005000000000000000104) D89 +error(0.009107600415895469523) D89 D90 +error(0.002888345062438905236) D89 D90 ^ D79 L0 +error(0.0124301623474226651) D89 D90 ^ D87 L0 +error(0.0004751084368830758506) D89 D90 ^ D91 L0 +error(0.0004318942157564078523) D89 D90 ^ D91 L0 ^ D79 L0 +error(0.02265371976521304148) D89 D97 +error(0.0009311867082587533748) D89 ^ D77 ^ D79 L0 +error(0.0001449673648750299801) D89 ^ D77 ^ D87 L0 +error(0.001153000035500963442) D89 ^ D87 L0 ^ D79 L0 +error(0.01000000000000000021) D90 +error(0.00510905257237031455) D90 D97 +error(0.005017376046571177077) D90 D97 ^ D87 L0 +error(0.000589988883118600007) D90 D97 ^ D99 L0 +error(0.0004110912309204952752) D90 D97 ^ D99 L0 ^ D87 L0 +error(0.01965024450905843156) D90 D98 +error(0.0025962116388780071) D90 D98 ^ D87 L0 +error(0.001942229215694702728) D90 D98 ^ D99 L0 +error(0.0006689461891537829301) D90 ^ D78 ^ D80 +error(0.0002024118145993013403) D90 ^ D78 ^ D88 +error(0.0003745396148953497118) D90 ^ D80 +error(0.01078603407133838128) D90 ^ D91 L0 +error(0.001620082138863749828) D90 ^ D99 L0 +error(0.002591714783441831978) D91 D99 ^ D90 +error(0.02345929525710151176) D91 D99 +error(0.0109337069657151377) D91 L0 +error(0.005000000000000000104) D92 +error(0.02036313963685056419) D92 D95 +error(0.01984466115424161903) D92 D95 ^ D93 +error(0.02111370028478150307) D92 D100 +error(0.003103491475898858404) D92 D100 ^ D101 +error(0.00826210055414196981) D92 D103 +error(0.004930310561894167727) D92 D103 ^ D93 +error(0.002580769651983623025) D92 D103 ^ D101 +error(0.0006581265057478693451) D92 D103 ^ D101 ^ D93 +error(0.0008622008416266678044) D92 D104 +error(0.0001855510381886844732) D92 D104 ^ D93 +error(0.001224488269891732366) D92 D104 ^ D93 D101 +error(0.0001499142721603081941) D92 D104 ^ D101 +error(0.01582188725642640417) D92 ^ D93 +error(0.003907032559532637624) D92 ^ D101 +error(0.003311649312040129255) D93 D101 ^ D92 +error(0.01631014156119487898) D93 +error(0.008408889566171386803) D93 D94 +error(0.0001616573544351376801) D93 D94 ^ D92 +error(0.0003045076179335072367) D93 D94 ^ D95 D96 +error(0.0005322608703760952015) D93 D94 ^ D95 D104 +error(0.01162545553377838936) D93 D94 ^ D96 +error(0.005863013166993952772) D93 D94 ^ D96 D104 +error(0.001022080545545054741) D93 D94 ^ D104 +error(0.0002414108018328903758) D93 D94 ^ D104 ^ D92 +error(0.01322558941130929505) D93 D98 +error(0.0109637838212586769) D93 D98 ^ D95 D96 +error(0.01933469145142516568) D93 D101 +error(0.002370271696856266451) D93 D101 ^ D103 D104 +error(0.0005231924114198808172) D93 D101 ^ D104 +error(0.001696302708218328393) D93 D105 +error(0.001319099712624956884) D93 D105 ^ D95 D103 +error(0.0001212718219379166796) D93 D105 ^ D95 D104 +error(0.0001912412295078792888) D93 D105 ^ D103 D104 +error(0.001431065749158458387) D93 D106 +error(0.001813929360425521609) D93 D106 ^ D95 D96 +error(0.00103993057499706873) D93 D106 ^ D95 D103 +error(0.002464810840379554578) D93 D106 ^ D95 D104 +error(0.0004417186232127558849) D93 D106 ^ D96 D104 +error(0.001955149659867002829) D93 D106 ^ D103 D104 +error(0.001337395605232206052) D95 D103 ^ D93 +error(0.01084263640871951234) D94 +error(0.002058498908926115981) D94 D101 +error(0.00234892788346252341) D94 D101 ^ D104 +error(0.0002153309690330830375) D94 D101 ^ D104 ^ D92 +error(0.02805437345993095494) D94 D102 +error(0.005110441527399735284) D94 D102 ^ D104 +error(0.002556815543432343005) D94 D106 +error(0.0002499192940845376232) D94 D106 ^ D95 D96 +error(0.0003744909586736285467) D94 D106 ^ D95 D104 +error(0.002317754759551753519) D94 D106 ^ D96 D104 +error(0.01554945686617837525) D94 ^ D96 +error(0.0004492225459000932937) D94 ^ D104 +error(0.00182086242005410166) D94 ^ D104 ^ D96 +error(0.007503129075243429418) D95 D96 +error(0.000624387127328504413) D95 D96 ^ D97 D98 +error(0.001997131045277926453) D95 D96 ^ D98 D106 +error(0.0001024525197508349689) D95 D96 ^ D106 +error(0.01973792906145652171) D95 D103 +error(0.003413650192825148054) D95 D103 ^ D105 D106 +error(0.002745143282833008118) D95 D104 +error(0.0002247421635537680468) D95 D104 ^ D105 D106 +error(0.001606865862163399774) D95 D107 +error(0.001269524994183931967) D95 D107 ^ D98 D106 +error(0.0001524710502301017325) D95 D107 ^ D106 +error(0.01000000000000000021) D95 L0 +error(0.01550857882836649201) D95 L0 ^ D97 +error(0.005511965998556637297) D97 D105 ^ D95 L0 +error(0.01228458791971137089) D96 +error(0.01572790974606955508) D96 D99 +error(0.01857915934084685555) D96 D99 ^ D98 +error(0.02083383052630493476) D96 D104 +error(0.002526335077347109832) D96 D104 ^ D106 +error(0.002812507578419484733) D96 D107 +error(0.002892165890292893154) D96 D107 ^ D98 +error(0.004492644142082523329) D96 D107 ^ D106 +error(0.0004141970759445874704) D96 D107 ^ D106 ^ D98 +error(0.005000000000000000104) D97 +error(0.009107600415895469523) D97 D98 +error(0.002888345062438905236) D97 D98 ^ D87 L0 +error(0.0124301623474226651) D97 D98 ^ D95 L0 +error(0.0004751084368830758506) D97 D98 ^ D99 L0 +error(0.0004318942157564078523) D97 D98 ^ D99 L0 ^ D87 L0 +error(0.02265371976521304148) D97 D105 +error(0.0009311867082587533748) D97 ^ D85 ^ D87 L0 +error(0.0001449673648750299801) D97 ^ D85 ^ D95 L0 +error(0.001153000035500963442) D97 ^ D95 L0 ^ D87 L0 +error(0.01000000000000000021) D98 +error(0.00510905257237031455) D98 D105 +error(0.005017376046571177077) D98 D105 ^ D95 L0 +error(0.000589988883118600007) D98 D105 ^ D107 L0 +error(0.0004110912309204952752) D98 D105 ^ D107 L0 ^ D95 L0 +error(0.01965024450905843156) D98 D106 +error(0.0025962116388780071) D98 D106 ^ D95 L0 +error(0.001942229215694702728) D98 D106 ^ D107 L0 +error(0.0006689461891537829301) D98 ^ D86 ^ D88 +error(0.0002024118145993013403) D98 ^ D86 ^ D96 +error(0.0003745396148953497118) D98 ^ D88 +error(0.01078603407133838128) D98 ^ D99 L0 +error(0.001620082138863749828) D98 ^ D107 L0 +error(0.002591714783441831978) D99 D107 ^ D98 +error(0.02345929525710151176) D99 D107 +error(0.0109337069657151377) D99 L0 +error(0.005000000000000000104) D100 +error(0.02036313963685056419) D100 D103 +error(0.01984466115424161903) D100 D103 ^ D101 +error(0.02111370028478150307) D100 D108 +error(0.003103491475898858404) D100 D108 ^ D109 +error(0.00826210055414196981) D100 D111 +error(0.004930310561894167727) D100 D111 ^ D101 +error(0.002580769651983623025) D100 D111 ^ D109 +error(0.0006581265057478693451) D100 D111 ^ D109 ^ D101 +error(0.0008622008416266678044) D100 D112 +error(0.0001855510381886844732) D100 D112 ^ D101 +error(0.001224488269891732366) D100 D112 ^ D101 D109 +error(0.0001499142721603081941) D100 D112 ^ D109 +error(0.01582188725642640417) D100 ^ D101 +error(0.003907032559532637624) D100 ^ D109 +error(0.003311649312040129255) D101 D109 ^ D100 +error(0.01631014156119487898) D101 +error(0.008408889566171386803) D101 D102 +error(0.0001616573544351376801) D101 D102 ^ D100 +error(0.0003045076179335072367) D101 D102 ^ D103 D104 +error(0.0005322608703760952015) D101 D102 ^ D103 D112 +error(0.01162545553377838936) D101 D102 ^ D104 +error(0.005863013166993952772) D101 D102 ^ D104 D112 +error(0.001022080545545054741) D101 D102 ^ D112 +error(0.0002414108018328903758) D101 D102 ^ D112 ^ D100 +error(0.01322558941130929505) D101 D106 +error(0.0109637838212586769) D101 D106 ^ D103 D104 +error(0.01933469145142516568) D101 D109 +error(0.002370271696856266451) D101 D109 ^ D111 D112 +error(0.0005231924114198808172) D101 D109 ^ D112 +error(0.001696302708218328393) D101 D113 +error(0.001319099712624956884) D101 D113 ^ D103 D111 +error(0.0001212718219379166796) D101 D113 ^ D103 D112 +error(0.0001912412295078792888) D101 D113 ^ D111 D112 +error(0.001431065749158458387) D101 D114 +error(0.001813929360425521609) D101 D114 ^ D103 D104 +error(0.00103993057499706873) D101 D114 ^ D103 D111 +error(0.002464810840379554578) D101 D114 ^ D103 D112 +error(0.0004417186232127558849) D101 D114 ^ D104 D112 +error(0.001955149659867002829) D101 D114 ^ D111 D112 +error(0.001337395605232206052) D103 D111 ^ D101 +error(0.01084263640871951234) D102 +error(0.002058498908926115981) D102 D109 +error(0.00234892788346252341) D102 D109 ^ D112 +error(0.0002153309690330830375) D102 D109 ^ D112 ^ D100 +error(0.02805437345993095494) D102 D110 +error(0.005110441527399735284) D102 D110 ^ D112 +error(0.002556815543432343005) D102 D114 +error(0.0002499192940845376232) D102 D114 ^ D103 D104 +error(0.0003744909586736285467) D102 D114 ^ D103 D112 +error(0.002317754759551753519) D102 D114 ^ D104 D112 +error(0.01554945686617837525) D102 ^ D104 +error(0.0004492225459000932937) D102 ^ D112 +error(0.00182086242005410166) D102 ^ D112 ^ D104 +error(0.007503129075243429418) D103 D104 +error(0.000624387127328504413) D103 D104 ^ D105 D106 +error(0.001997131045277926453) D103 D104 ^ D106 D114 +error(0.0001024525197508349689) D103 D104 ^ D114 +error(0.01973792906145652171) D103 D111 +error(0.003413650192825148054) D103 D111 ^ D113 D114 +error(0.002745143282833008118) D103 D112 +error(0.0002247421635537680468) D103 D112 ^ D113 D114 +error(0.001606865862163399774) D103 D115 +error(0.001269524994183931967) D103 D115 ^ D106 D114 +error(0.0001524710502301017325) D103 D115 ^ D114 +error(0.01000000000000000021) D103 L0 +error(0.01550857882836649201) D103 L0 ^ D105 +error(0.005511965998556637297) D105 D113 ^ D103 L0 +error(0.01228458791971137089) D104 +error(0.01572790974606955508) D104 D107 +error(0.01857915934084685555) D104 D107 ^ D106 +error(0.02083383052630493476) D104 D112 +error(0.002526335077347109832) D104 D112 ^ D114 +error(0.002812507578419484733) D104 D115 +error(0.002892165890292893154) D104 D115 ^ D106 +error(0.004492644142082523329) D104 D115 ^ D114 +error(0.0004141970759445874704) D104 D115 ^ D114 ^ D106 +error(0.005000000000000000104) D105 +error(0.009107600415895469523) D105 D106 +error(0.002888345062438905236) D105 D106 ^ D95 L0 +error(0.0124301623474226651) D105 D106 ^ D103 L0 +error(0.0004751084368830758506) D105 D106 ^ D107 L0 +error(0.0004318942157564078523) D105 D106 ^ D107 L0 ^ D95 L0 +error(0.02265371976521304148) D105 D113 +error(0.0009311867082587533748) D105 ^ D93 ^ D95 L0 +error(0.0001449673648750299801) D105 ^ D93 ^ D103 L0 +error(0.001153000035500963442) D105 ^ D103 L0 ^ D95 L0 +error(0.01000000000000000021) D106 +error(0.00510905257237031455) D106 D113 +error(0.005017376046571177077) D106 D113 ^ D103 L0 +error(0.000589988883118600007) D106 D113 ^ D115 L0 +error(0.0004110912309204952752) D106 D113 ^ D115 L0 ^ D103 L0 +error(0.01965024450905843156) D106 D114 +error(0.0025962116388780071) D106 D114 ^ D103 L0 +error(0.001942229215694702728) D106 D114 ^ D115 L0 +error(0.0006689461891537829301) D106 ^ D94 ^ D96 +error(0.0002024118145993013403) D106 ^ D94 ^ D104 +error(0.0003745396148953497118) D106 ^ D96 +error(0.01078603407133838128) D106 ^ D107 L0 +error(0.001620082138863749828) D106 ^ D115 L0 +error(0.002591714783441831978) D107 D115 ^ D106 +error(0.02345929525710151176) D107 D115 +error(0.0109337069657151377) D107 L0 +error(0.005000000000000000104) D108 +error(0.02036313963685056419) D108 D111 +error(0.01984466115424161903) D108 D111 ^ D109 +error(0.02111370028478150307) D108 D116 +error(0.003103491475898858404) D108 D116 ^ D117 +error(0.00826210055414196981) D108 D119 +error(0.004930310561894167727) D108 D119 ^ D109 +error(0.002580769651983623025) D108 D119 ^ D117 +error(0.0006581265057478693451) D108 D119 ^ D117 ^ D109 +error(0.0008622008416266678044) D108 D120 +error(0.0001855510381886844732) D108 D120 ^ D109 +error(0.001224488269891732366) D108 D120 ^ D109 D117 +error(0.0001499142721603081941) D108 D120 ^ D117 +error(0.01582188725642640417) D108 ^ D109 +error(0.003907032559532637624) D108 ^ D117 +error(0.003311649312040129255) D109 D117 ^ D108 +error(0.01631014156119487898) D109 +error(0.008408889566171386803) D109 D110 +error(0.0001616573544351376801) D109 D110 ^ D108 +error(0.0003045076179335072367) D109 D110 ^ D111 D112 +error(0.0005322608703760952015) D109 D110 ^ D111 D120 +error(0.01162545553377838936) D109 D110 ^ D112 +error(0.005863013166993952772) D109 D110 ^ D112 D120 +error(0.001022080545545054741) D109 D110 ^ D120 +error(0.0002414108018328903758) D109 D110 ^ D120 ^ D108 +error(0.01322558941130929505) D109 D114 +error(0.0109637838212586769) D109 D114 ^ D111 D112 +error(0.01933469145142516568) D109 D117 +error(0.002370271696856266451) D109 D117 ^ D119 D120 +error(0.0005231924114198808172) D109 D117 ^ D120 +error(0.001696302708218328393) D109 D121 +error(0.001319099712624956884) D109 D121 ^ D111 D119 +error(0.0001212718219379166796) D109 D121 ^ D111 D120 +error(0.0001912412295078792888) D109 D121 ^ D119 D120 +error(0.001431065749158458387) D109 D122 +error(0.001813929360425521609) D109 D122 ^ D111 D112 +error(0.00103993057499706873) D109 D122 ^ D111 D119 +error(0.002464810840379554578) D109 D122 ^ D111 D120 +error(0.0004417186232127558849) D109 D122 ^ D112 D120 +error(0.001955149659867002829) D109 D122 ^ D119 D120 +error(0.001337395605232206052) D111 D119 ^ D109 +error(0.01084263640871951234) D110 +error(0.002058498908926115981) D110 D117 +error(0.00234892788346252341) D110 D117 ^ D120 +error(0.0002153309690330830375) D110 D117 ^ D120 ^ D108 +error(0.02805437345993095494) D110 D118 +error(0.005110441527399735284) D110 D118 ^ D120 +error(0.002556815543432343005) D110 D122 +error(0.0002499192940845376232) D110 D122 ^ D111 D112 +error(0.0003744909586736285467) D110 D122 ^ D111 D120 +error(0.002317754759551753519) D110 D122 ^ D112 D120 +error(0.01554945686617837525) D110 ^ D112 +error(0.0004492225459000932937) D110 ^ D120 +error(0.00182086242005410166) D110 ^ D120 ^ D112 +error(0.007503129075243429418) D111 D112 +error(0.000624387127328504413) D111 D112 ^ D113 D114 +error(0.001997131045277926453) D111 D112 ^ D114 D122 +error(0.0001024525197508349689) D111 D112 ^ D122 +error(0.01973792906145652171) D111 D119 +error(0.003413650192825148054) D111 D119 ^ D121 D122 +error(0.002745143282833008118) D111 D120 +error(0.0002247421635537680468) D111 D120 ^ D121 D122 +error(0.001606865862163399774) D111 D123 +error(0.001269524994183931967) D111 D123 ^ D114 D122 +error(0.0001524710502301017325) D111 D123 ^ D122 +error(0.01000000000000000021) D111 L0 +error(0.01550857882836649201) D111 L0 ^ D113 +error(0.005511965998556637297) D113 D121 ^ D111 L0 +error(0.01228458791971137089) D112 +error(0.01572790974606955508) D112 D115 +error(0.01857915934084685555) D112 D115 ^ D114 +error(0.02083383052630493476) D112 D120 +error(0.002526335077347109832) D112 D120 ^ D122 +error(0.002812507578419484733) D112 D123 +error(0.002892165890292893154) D112 D123 ^ D114 +error(0.004492644142082523329) D112 D123 ^ D122 +error(0.0004141970759445874704) D112 D123 ^ D122 ^ D114 +error(0.005000000000000000104) D113 +error(0.009107600415895469523) D113 D114 +error(0.002888345062438905236) D113 D114 ^ D103 L0 +error(0.0124301623474226651) D113 D114 ^ D111 L0 +error(0.0004751084368830758506) D113 D114 ^ D115 L0 +error(0.0004318942157564078523) D113 D114 ^ D115 L0 ^ D103 L0 +error(0.02265371976521304148) D113 D121 +error(0.0009311867082587533748) D113 ^ D101 ^ D103 L0 +error(0.0001449673648750299801) D113 ^ D101 ^ D111 L0 +error(0.001153000035500963442) D113 ^ D111 L0 ^ D103 L0 +error(0.01000000000000000021) D114 +error(0.00510905257237031455) D114 D121 +error(0.005017376046571177077) D114 D121 ^ D111 L0 +error(0.000589988883118600007) D114 D121 ^ D123 L0 +error(0.0004110912309204952752) D114 D121 ^ D123 L0 ^ D111 L0 +error(0.01965024450905843156) D114 D122 +error(0.0025962116388780071) D114 D122 ^ D111 L0 +error(0.001942229215694702728) D114 D122 ^ D123 L0 +error(0.0006689461891537829301) D114 ^ D102 ^ D104 +error(0.0002024118145993013403) D114 ^ D102 ^ D112 +error(0.0003745396148953497118) D114 ^ D104 +error(0.01078603407133838128) D114 ^ D115 L0 +error(0.001620082138863749828) D114 ^ D123 L0 +error(0.002591714783441831978) D115 D123 ^ D114 +error(0.02345929525710151176) D115 D123 +error(0.0109337069657151377) D115 L0 +error(0.005000000000000000104) D116 +error(0.02036313963685056419) D116 D119 +error(0.01984466115424161903) D116 D119 ^ D117 +error(0.02111370028478150307) D116 D124 +error(0.003103491475898858404) D116 D124 ^ D125 +error(0.00826210055414196981) D116 D127 +error(0.004930310561894167727) D116 D127 ^ D117 +error(0.002580769651983623025) D116 D127 ^ D125 +error(0.0006581265057478693451) D116 D127 ^ D125 ^ D117 +error(0.0008622008416266678044) D116 D128 +error(0.0001855510381886844732) D116 D128 ^ D117 +error(0.001224488269891732366) D116 D128 ^ D117 D125 +error(0.0001499142721603081941) D116 D128 ^ D125 +error(0.01582188725642640417) D116 ^ D117 +error(0.003907032559532637624) D116 ^ D125 +error(0.003311649312040129255) D117 D125 ^ D116 +error(0.01631014156119487898) D117 +error(0.008408889566171386803) D117 D118 +error(0.0001616573544351376801) D117 D118 ^ D116 +error(0.0003045076179335072367) D117 D118 ^ D119 D120 +error(0.0005322608703760952015) D117 D118 ^ D119 D128 +error(0.01162545553377838936) D117 D118 ^ D120 +error(0.005863013166993952772) D117 D118 ^ D120 D128 +error(0.001022080545545054741) D117 D118 ^ D128 +error(0.0002414108018328903758) D117 D118 ^ D128 ^ D116 +error(0.01322558941130929505) D117 D122 +error(0.0109637838212586769) D117 D122 ^ D119 D120 +error(0.01933469145142516568) D117 D125 +error(0.002370271696856266451) D117 D125 ^ D127 D128 +error(0.0005231924114198808172) D117 D125 ^ D128 +error(0.001696302708218328393) D117 D129 +error(0.001319099712624956884) D117 D129 ^ D119 D127 +error(0.0001212718219379166796) D117 D129 ^ D119 D128 +error(0.0001912412295078792888) D117 D129 ^ D127 D128 +error(0.001431065749158458387) D117 D130 +error(0.001813929360425521609) D117 D130 ^ D119 D120 +error(0.00103993057499706873) D117 D130 ^ D119 D127 +error(0.002464810840379554578) D117 D130 ^ D119 D128 +error(0.0004417186232127558849) D117 D130 ^ D120 D128 +error(0.001955149659867002829) D117 D130 ^ D127 D128 +error(0.001337395605232206052) D119 D127 ^ D117 +error(0.01084263640871951234) D118 +error(0.002058498908926115981) D118 D125 +error(0.00234892788346252341) D118 D125 ^ D128 +error(0.0002153309690330830375) D118 D125 ^ D128 ^ D116 +error(0.02805437345993095494) D118 D126 +error(0.005110441527399735284) D118 D126 ^ D128 +error(0.002556815543432343005) D118 D130 +error(0.0002499192940845376232) D118 D130 ^ D119 D120 +error(0.0003744909586736285467) D118 D130 ^ D119 D128 +error(0.002317754759551753519) D118 D130 ^ D120 D128 +error(0.01554945686617837525) D118 ^ D120 +error(0.0004492225459000932937) D118 ^ D128 +error(0.00182086242005410166) D118 ^ D128 ^ D120 +error(0.007503129075243429418) D119 D120 +error(0.000624387127328504413) D119 D120 ^ D121 D122 +error(0.001997131045277926453) D119 D120 ^ D122 D130 +error(0.0001024525197508349689) D119 D120 ^ D130 +error(0.01973792906145652171) D119 D127 +error(0.003413650192825148054) D119 D127 ^ D129 D130 +error(0.002745143282833008118) D119 D128 +error(0.0002247421635537680468) D119 D128 ^ D129 D130 +error(0.001606865862163399774) D119 D131 +error(0.001269524994183931967) D119 D131 ^ D122 D130 +error(0.0001524710502301017325) D119 D131 ^ D130 +error(0.01000000000000000021) D119 L0 +error(0.01550857882836649201) D119 L0 ^ D121 +error(0.005511965998556637297) D121 D129 ^ D119 L0 +error(0.01228458791971137089) D120 +error(0.01572790974606955508) D120 D123 +error(0.01857915934084685555) D120 D123 ^ D122 +error(0.02083383052630493476) D120 D128 +error(0.002526335077347109832) D120 D128 ^ D130 +error(0.002812507578419484733) D120 D131 +error(0.002892165890292893154) D120 D131 ^ D122 +error(0.004492644142082523329) D120 D131 ^ D130 +error(0.0004141970759445874704) D120 D131 ^ D130 ^ D122 +error(0.005000000000000000104) D121 +error(0.009107600415895469523) D121 D122 +error(0.002888345062438905236) D121 D122 ^ D111 L0 +error(0.0124301623474226651) D121 D122 ^ D119 L0 +error(0.0004751084368830758506) D121 D122 ^ D123 L0 +error(0.0004318942157564078523) D121 D122 ^ D123 L0 ^ D111 L0 +error(0.02265371976521304148) D121 D129 +error(0.0009311867082587533748) D121 ^ D109 ^ D111 L0 +error(0.0001449673648750299801) D121 ^ D109 ^ D119 L0 +error(0.001153000035500963442) D121 ^ D119 L0 ^ D111 L0 +error(0.01000000000000000021) D122 +error(0.00510905257237031455) D122 D129 +error(0.005017376046571177077) D122 D129 ^ D119 L0 +error(0.000589988883118600007) D122 D129 ^ D131 L0 +error(0.0004110912309204952752) D122 D129 ^ D131 L0 ^ D119 L0 +error(0.01965024450905843156) D122 D130 +error(0.0025962116388780071) D122 D130 ^ D119 L0 +error(0.001942229215694702728) D122 D130 ^ D131 L0 +error(0.0006689461891537829301) D122 ^ D110 ^ D112 +error(0.0002024118145993013403) D122 ^ D110 ^ D120 +error(0.0003745396148953497118) D122 ^ D112 +error(0.01078603407133838128) D122 ^ D123 L0 +error(0.001620082138863749828) D122 ^ D131 L0 +error(0.002591714783441831978) D123 D131 ^ D122 +error(0.02345929525710151176) D123 D131 +error(0.0109337069657151377) D123 L0 +error(0.005000000000000000104) D124 +error(0.02036313963685056419) D124 D127 +error(0.01984466115424161903) D124 D127 ^ D125 +error(0.02111370028478150307) D124 D132 +error(0.003103491475898858404) D124 D132 ^ D133 +error(0.00826210055414196981) D124 D135 +error(0.004930310561894167727) D124 D135 ^ D125 +error(0.002580769651983623025) D124 D135 ^ D133 +error(0.0006581265057478693451) D124 D135 ^ D133 ^ D125 +error(0.0008622008416266678044) D124 D136 +error(0.0001855510381886844732) D124 D136 ^ D125 +error(0.001224488269891732366) D124 D136 ^ D125 D133 +error(0.0001499142721603081941) D124 D136 ^ D133 +error(0.01582188725642640417) D124 ^ D125 +error(0.003907032559532637624) D124 ^ D133 +error(0.003311649312040129255) D125 D133 ^ D124 +error(0.01631014156119487898) D125 +error(0.008408889566171386803) D125 D126 +error(0.0001616573544351376801) D125 D126 ^ D124 +error(0.0003045076179335072367) D125 D126 ^ D127 D128 +error(0.0005322608703760952015) D125 D126 ^ D127 D136 +error(0.01162545553377838936) D125 D126 ^ D128 +error(0.005863013166993952772) D125 D126 ^ D128 D136 +error(0.001022080545545054741) D125 D126 ^ D136 +error(0.0002414108018328903758) D125 D126 ^ D136 ^ D124 +error(0.01322558941130929505) D125 D130 +error(0.0109637838212586769) D125 D130 ^ D127 D128 +error(0.01933469145142516568) D125 D133 +error(0.002370271696856266451) D125 D133 ^ D135 D136 +error(0.0005231924114198808172) D125 D133 ^ D136 +error(0.001696302708218328393) D125 D137 +error(0.001319099712624956884) D125 D137 ^ D127 D135 +error(0.0001212718219379166796) D125 D137 ^ D127 D136 +error(0.0001912412295078792888) D125 D137 ^ D135 D136 +error(0.001431065749158458387) D125 D138 +error(0.001813929360425521609) D125 D138 ^ D127 D128 +error(0.00103993057499706873) D125 D138 ^ D127 D135 +error(0.002464810840379554578) D125 D138 ^ D127 D136 +error(0.0004417186232127558849) D125 D138 ^ D128 D136 +error(0.001955149659867002829) D125 D138 ^ D135 D136 +error(0.001337395605232206052) D127 D135 ^ D125 +error(0.01084263640871951234) D126 +error(0.002058498908926115981) D126 D133 +error(0.00234892788346252341) D126 D133 ^ D136 +error(0.0002153309690330830375) D126 D133 ^ D136 ^ D124 +error(0.02805437345993095494) D126 D134 +error(0.005110441527399735284) D126 D134 ^ D136 +error(0.002556815543432343005) D126 D138 +error(0.0002499192940845376232) D126 D138 ^ D127 D128 +error(0.0003744909586736285467) D126 D138 ^ D127 D136 +error(0.002317754759551753519) D126 D138 ^ D128 D136 +error(0.01554945686617837525) D126 ^ D128 +error(0.0004492225459000932937) D126 ^ D136 +error(0.00182086242005410166) D126 ^ D136 ^ D128 +error(0.007503129075243429418) D127 D128 +error(0.000624387127328504413) D127 D128 ^ D129 D130 +error(0.001997131045277926453) D127 D128 ^ D130 D138 +error(0.0001024525197508349689) D127 D128 ^ D138 +error(0.01973792906145652171) D127 D135 +error(0.003413650192825148054) D127 D135 ^ D137 D138 +error(0.002745143282833008118) D127 D136 +error(0.0002247421635537680468) D127 D136 ^ D137 D138 +error(0.001606865862163399774) D127 D139 +error(0.001269524994183931967) D127 D139 ^ D130 D138 +error(0.0001524710502301017325) D127 D139 ^ D138 +error(0.01000000000000000021) D127 L0 +error(0.01550857882836649201) D127 L0 ^ D129 +error(0.005511965998556637297) D129 D137 ^ D127 L0 +error(0.01228458791971137089) D128 +error(0.01572790974606955508) D128 D131 +error(0.01857915934084685555) D128 D131 ^ D130 +error(0.02083383052630493476) D128 D136 +error(0.002526335077347109832) D128 D136 ^ D138 +error(0.002812507578419484733) D128 D139 +error(0.002892165890292893154) D128 D139 ^ D130 +error(0.004492644142082523329) D128 D139 ^ D138 +error(0.0004141970759445874704) D128 D139 ^ D138 ^ D130 +error(0.005000000000000000104) D129 +error(0.009107600415895469523) D129 D130 +error(0.002888345062438905236) D129 D130 ^ D119 L0 +error(0.0124301623474226651) D129 D130 ^ D127 L0 +error(0.0004751084368830758506) D129 D130 ^ D131 L0 +error(0.0004318942157564078523) D129 D130 ^ D131 L0 ^ D119 L0 +error(0.02265371976521304148) D129 D137 +error(0.0009311867082587533748) D129 ^ D117 ^ D119 L0 +error(0.0001449673648750299801) D129 ^ D117 ^ D127 L0 +error(0.001153000035500963442) D129 ^ D127 L0 ^ D119 L0 +error(0.01000000000000000021) D130 +error(0.00510905257237031455) D130 D137 +error(0.005017376046571177077) D130 D137 ^ D127 L0 +error(0.000589988883118600007) D130 D137 ^ D139 L0 +error(0.0004110912309204952752) D130 D137 ^ D139 L0 ^ D127 L0 +error(0.01965024450905843156) D130 D138 +error(0.0025962116388780071) D130 D138 ^ D127 L0 +error(0.001942229215694702728) D130 D138 ^ D139 L0 +error(0.0006689461891537829301) D130 ^ D118 ^ D120 +error(0.0002024118145993013403) D130 ^ D118 ^ D128 +error(0.0003745396148953497118) D130 ^ D120 +error(0.01078603407133838128) D130 ^ D131 L0 +error(0.001620082138863749828) D130 ^ D139 L0 +error(0.002591714783441831978) D131 D139 ^ D130 +error(0.02345929525710151176) D131 D139 +error(0.0109337069657151377) D131 L0 +error(0.005000000000000000104) D132 +error(0.02036313963685056419) D132 D135 +error(0.01984466115424161903) D132 D135 ^ D133 +error(0.02111370028478150307) D132 D140 +error(0.003103491475898858404) D132 D140 ^ D141 +error(0.00826210055414196981) D132 D143 +error(0.004930310561894167727) D132 D143 ^ D133 +error(0.002580769651983623025) D132 D143 ^ D141 +error(0.0006581265057478693451) D132 D143 ^ D141 ^ D133 +error(0.0008622008416266678044) D132 D144 +error(0.0001855510381886844732) D132 D144 ^ D133 +error(0.001224488269891732366) D132 D144 ^ D133 D141 +error(0.0001499142721603081941) D132 D144 ^ D141 +error(0.01582188725642640417) D132 ^ D133 +error(0.003907032559532637624) D132 ^ D141 +error(0.003311649312040129255) D133 D141 ^ D132 +error(0.01631014156119487898) D133 +error(0.008408889566171386803) D133 D134 +error(0.0001616573544351376801) D133 D134 ^ D132 +error(0.0003045076179335072367) D133 D134 ^ D135 D136 +error(0.0005322608703760952015) D133 D134 ^ D135 D144 +error(0.01162545553377838936) D133 D134 ^ D136 +error(0.005863013166993952772) D133 D134 ^ D136 D144 +error(0.001022080545545054741) D133 D134 ^ D144 +error(0.0002414108018328903758) D133 D134 ^ D144 ^ D132 +error(0.01322558941130929505) D133 D138 +error(0.0109637838212586769) D133 D138 ^ D135 D136 +error(0.01933469145142516568) D133 D141 +error(0.002370271696856266451) D133 D141 ^ D143 D144 +error(0.0005231924114198808172) D133 D141 ^ D144 +error(0.001696302708218328393) D133 D145 +error(0.001319099712624956884) D133 D145 ^ D135 D143 +error(0.0001212718219379166796) D133 D145 ^ D135 D144 +error(0.0001912412295078792888) D133 D145 ^ D143 D144 +error(0.001431065749158458387) D133 D146 +error(0.001813929360425521609) D133 D146 ^ D135 D136 +error(0.00103993057499706873) D133 D146 ^ D135 D143 +error(0.002464810840379554578) D133 D146 ^ D135 D144 +error(0.0004417186232127558849) D133 D146 ^ D136 D144 +error(0.001955149659867002829) D133 D146 ^ D143 D144 +error(0.001337395605232206052) D135 D143 ^ D133 +error(0.01084263640871951234) D134 +error(0.002058498908926115981) D134 D141 +error(0.00234892788346252341) D134 D141 ^ D144 +error(0.0002153309690330830375) D134 D141 ^ D144 ^ D132 +error(0.02805437345993095494) D134 D142 +error(0.005110441527399735284) D134 D142 ^ D144 +error(0.002556815543432343005) D134 D146 +error(0.0002499192940845376232) D134 D146 ^ D135 D136 +error(0.0003744909586736285467) D134 D146 ^ D135 D144 +error(0.002317754759551753519) D134 D146 ^ D136 D144 +error(0.01554945686617837525) D134 ^ D136 +error(0.0004492225459000932937) D134 ^ D144 +error(0.00182086242005410166) D134 ^ D144 ^ D136 +error(0.007503129075243429418) D135 D136 +error(0.000624387127328504413) D135 D136 ^ D137 D138 +error(0.001997131045277926453) D135 D136 ^ D138 D146 +error(0.0001024525197508349689) D135 D136 ^ D146 +error(0.01973792906145652171) D135 D143 +error(0.003413650192825148054) D135 D143 ^ D145 D146 +error(0.002745143282833008118) D135 D144 +error(0.0002247421635537680468) D135 D144 ^ D145 D146 +error(0.001606865862163399774) D135 D147 +error(0.001269524994183931967) D135 D147 ^ D138 D146 +error(0.0001524710502301017325) D135 D147 ^ D146 +error(0.01000000000000000021) D135 L0 +error(0.01550857882836649201) D135 L0 ^ D137 +error(0.005511965998556637297) D137 D145 ^ D135 L0 +error(0.01228458791971137089) D136 +error(0.01572790974606955508) D136 D139 +error(0.01857915934084685555) D136 D139 ^ D138 +error(0.02083383052630493476) D136 D144 +error(0.002526335077347109832) D136 D144 ^ D146 +error(0.002812507578419484733) D136 D147 +error(0.002892165890292893154) D136 D147 ^ D138 +error(0.004492644142082523329) D136 D147 ^ D146 +error(0.0004141970759445874704) D136 D147 ^ D146 ^ D138 +error(0.005000000000000000104) D137 +error(0.009107600415895469523) D137 D138 +error(0.002888345062438905236) D137 D138 ^ D127 L0 +error(0.0124301623474226651) D137 D138 ^ D135 L0 +error(0.0004751084368830758506) D137 D138 ^ D139 L0 +error(0.0004318942157564078523) D137 D138 ^ D139 L0 ^ D127 L0 +error(0.02265371976521304148) D137 D145 +error(0.0009311867082587533748) D137 ^ D125 ^ D127 L0 +error(0.0001449673648750299801) D137 ^ D125 ^ D135 L0 +error(0.001153000035500963442) D137 ^ D135 L0 ^ D127 L0 +error(0.01000000000000000021) D138 +error(0.00510905257237031455) D138 D145 +error(0.005017376046571177077) D138 D145 ^ D135 L0 +error(0.000589988883118600007) D138 D145 ^ D147 L0 +error(0.0004110912309204952752) D138 D145 ^ D147 L0 ^ D135 L0 +error(0.01965024450905843156) D138 D146 +error(0.0025962116388780071) D138 D146 ^ D135 L0 +error(0.001942229215694702728) D138 D146 ^ D147 L0 +error(0.0006689461891537829301) D138 ^ D126 ^ D128 +error(0.0002024118145993013403) D138 ^ D126 ^ D136 +error(0.0003745396148953497118) D138 ^ D128 +error(0.01078603407133838128) D138 ^ D139 L0 +error(0.001620082138863749828) D138 ^ D147 L0 +error(0.002591714783441831978) D139 D147 ^ D138 +error(0.02345929525710151176) D139 D147 +error(0.0109337069657151377) D139 L0 +error(0.009079011767292905974) D140 +error(0.0219809560651553007) D140 D143 +error(0.01915827816080596657) D140 D143 ^ D141 +error(0.02284310314578297252) D140 D148 +error(0.009497299101477150313) D140 D149 +error(0.004955356995523892659) D140 D149 ^ D141 +error(0.0006922705830930311454) D140 D150 +error(0.002223986508071631053) D140 D150 ^ D141 +error(0.01995824051794540394) D140 ^ D141 +error(0.001428189205107906635) D140 ^ D142 +error(0.03082265019761082706) D141 +error(0.00739151619837090032) D141 D142 +error(0.01288076929954444505) D141 D142 ^ D144 +error(0.006176739127095349537) D141 D142 ^ D144 D150 +error(0.00192013507684139881) D141 D142 ^ D150 +error(0.01584115636596112806) D141 D146 +error(0.01079551730686851251) D141 D146 ^ D143 D144 +error(0.001133731162896036739) D141 ^ D140 ^ D142 +error(0.002370183752515421169) D141 ^ D143 L0 +error(0.001914809106734837721) D141 ^ D149 L0 +error(0.004084761188636275124) D143 D149 ^ D141 +error(0.0008633476226376187498) D141 ^ D150 +error(0.0414220881320300216) D142 +error(0.01825485597597261214) D142 ^ D144 +error(0.0100306484214072681) D142 ^ D150 +error(0.003682378521903609779) D144 D150 ^ D142 +error(0.01114286242531942715) D143 D144 +error(0.0003614483487959871009) D143 D144 ^ D141 +error(0.002403617129680437215) D143 D144 ^ D142 ^ D141 +error(0.0002227190279811666661) D143 D144 ^ D146 +error(0.02097480681711460376) D143 D149 +error(0.002723388471428684048) D143 D150 +error(0.00197299981624638604) D143 D150 ^ D141 +error(0.0001576601267641556281) D143 D150 ^ D142 +error(0.0004883403806702382548) D143 D151 +error(0.002499216057646618232) D143 D151 ^ D146 +error(0.02045467446041928858) D143 L0 +error(0.02230537948730862419) D143 L0 ^ D145 +error(0.002236513142333095699) D143 L0 ^ D146 +error(0.0113030481002463247) D144 +error(0.01489413092397852238) D144 D147 +error(0.0202632065925098491) D144 D147 ^ D146 +error(0.02233707975892798223) D144 D150 +error(0.0005161488071077139066) D144 D150 ^ D141 +error(0.00806826727276579829) D144 D151 +error(0.002275317788700650153) D144 D151 ^ D146 +error(0.02587628295412189999) D145 +error(0.007354196869765724197) D145 D146 +error(0.002888345062438905236) D145 D146 ^ D135 L0 +error(0.01456224300510844394) D145 D146 ^ D143 L0 +error(0.0002719574618670201325) D145 D146 ^ D147 L0 +error(0.0004318942157564078523) D145 D146 ^ D147 L0 ^ D135 L0 +error(0.0009311867082587533748) D145 ^ D133 ^ D135 L0 +error(0.0001449673648750299801) D145 ^ D133 ^ D143 L0 +error(0.001153000035500963442) D145 ^ D143 L0 ^ D135 L0 +error(0.03691372814181986817) D146 +error(0.0006689461891537829301) D146 ^ D134 ^ D136 +error(0.0002024118145993013403) D146 ^ D134 ^ D144 +error(0.0003745396148953497118) D146 ^ D136 +error(0.002027980323755240039) D146 ^ D144 +error(0.01036889155909665426) D146 ^ D147 L0 +error(0.004131325043577355194) D146 ^ D151 L0 +error(0.003534069577103578393) D147 D151 ^ D146 +error(0.02326143069755654338) D147 D151 +error(0.008647644285925758234) D147 L0 +error(0.01004277280028291648) D148 +error(0.01759398248671895093) D148 D149 +error(0.01462672078229301266) D149 D150 +error(0.004483979314195045765) D149 D150 ^ D141 +error(0.03052458468340025349) D149 L0 +error(0.03416212411552466827) D150 +error(0.01234995045499848176) D150 D151 +error(0.0006869291144214898295) D150 ^ D140 ^ D142 +error(0.01443267551363430594) D151 L0 +detector(3, 6, 0) D0 +detector(5, 6, 0) D1 +detector(5, 8, 0) D2 +detector(7, 8, 0) D3 +detector(3, 6, 1) D4 +detector(4, 7, 1) D5 +detector(4, 9, 1) D6 +detector(5, 6, 1) D7 +detector(5, 8, 1) D8 +detector(6, 5, 1) D9 +detector(6, 7, 1) D10 +detector(7, 8, 1) D11 +detector(3, 6, 2) D12 +detector(4, 7, 2) D13 +detector(4, 9, 2) D14 +detector(5, 6, 2) D15 +detector(5, 8, 2) D16 +detector(6, 5, 2) D17 +detector(6, 7, 2) D18 +detector(7, 8, 2) D19 +detector(3, 6, 3) D20 +detector(4, 7, 3) D21 +detector(4, 9, 3) D22 +detector(5, 6, 3) D23 +detector(5, 8, 3) D24 +detector(6, 5, 3) D25 +detector(6, 7, 3) D26 +detector(7, 8, 3) D27 +detector(3, 6, 4) D28 +detector(4, 7, 4) D29 +detector(4, 9, 4) D30 +detector(5, 6, 4) D31 +detector(5, 8, 4) D32 +detector(6, 5, 4) D33 +detector(6, 7, 4) D34 +detector(7, 8, 4) D35 +detector(3, 6, 5) D36 +detector(4, 7, 5) D37 +detector(4, 9, 5) D38 +detector(5, 6, 5) D39 +detector(5, 8, 5) D40 +detector(6, 5, 5) D41 +detector(6, 7, 5) D42 +detector(7, 8, 5) D43 +detector(3, 6, 6) D44 +detector(4, 7, 6) D45 +detector(4, 9, 6) D46 +detector(5, 6, 6) D47 +detector(5, 8, 6) D48 +detector(6, 5, 6) D49 +detector(6, 7, 6) D50 +detector(7, 8, 6) D51 +detector(3, 6, 7) D52 +detector(4, 7, 7) D53 +detector(4, 9, 7) D54 +detector(5, 6, 7) D55 +detector(5, 8, 7) D56 +detector(6, 5, 7) D57 +detector(6, 7, 7) D58 +detector(7, 8, 7) D59 +detector(3, 6, 8) D60 +detector(4, 7, 8) D61 +detector(4, 9, 8) D62 +detector(5, 6, 8) D63 +detector(5, 8, 8) D64 +detector(6, 5, 8) D65 +detector(6, 7, 8) D66 +detector(7, 8, 8) D67 +detector(3, 6, 9) D68 +detector(4, 7, 9) D69 +detector(4, 9, 9) D70 +detector(5, 6, 9) D71 +detector(5, 8, 9) D72 +detector(6, 5, 9) D73 +detector(6, 7, 9) D74 +detector(7, 8, 9) D75 +detector(3, 6, 10) D76 +detector(4, 7, 10) D77 +detector(4, 9, 10) D78 +detector(5, 6, 10) D79 +detector(5, 8, 10) D80 +detector(6, 5, 10) D81 +detector(6, 7, 10) D82 +detector(7, 8, 10) D83 +detector(3, 6, 11) D84 +detector(4, 7, 11) D85 +detector(4, 9, 11) D86 +detector(5, 6, 11) D87 +detector(5, 8, 11) D88 +detector(6, 5, 11) D89 +detector(6, 7, 11) D90 +detector(7, 8, 11) D91 +detector(3, 6, 12) D92 +detector(4, 7, 12) D93 +detector(4, 9, 12) D94 +detector(5, 6, 12) D95 +detector(5, 8, 12) D96 +detector(6, 5, 12) D97 +detector(6, 7, 12) D98 +detector(7, 8, 12) D99 +detector(3, 6, 13) D100 +detector(4, 7, 13) D101 +detector(4, 9, 13) D102 +detector(5, 6, 13) D103 +detector(5, 8, 13) D104 +detector(6, 5, 13) D105 +detector(6, 7, 13) D106 +detector(7, 8, 13) D107 +detector(3, 6, 14) D108 +detector(4, 7, 14) D109 +detector(4, 9, 14) D110 +detector(5, 6, 14) D111 +detector(5, 8, 14) D112 +detector(6, 5, 14) D113 +detector(6, 7, 14) D114 +detector(7, 8, 14) D115 +detector(3, 6, 15) D116 +detector(4, 7, 15) D117 +detector(4, 9, 15) D118 +detector(5, 6, 15) D119 +detector(5, 8, 15) D120 +detector(6, 5, 15) D121 +detector(6, 7, 15) D122 +detector(7, 8, 15) D123 +detector(3, 6, 16) D124 +detector(4, 7, 16) D125 +detector(4, 9, 16) D126 +detector(5, 6, 16) D127 +detector(5, 8, 16) D128 +detector(6, 5, 16) D129 +detector(6, 7, 16) D130 +detector(7, 8, 16) D131 +detector(3, 6, 17) D132 +detector(4, 7, 17) D133 +detector(4, 9, 17) D134 +detector(5, 6, 17) D135 +detector(5, 8, 17) D136 +detector(6, 5, 17) D137 +detector(6, 7, 17) D138 +detector(7, 8, 17) D139 +detector(3, 6, 18) D140 +detector(4, 7, 18) D141 +detector(4, 9, 18) D142 +detector(5, 6, 18) D143 +detector(5, 8, 18) D144 +detector(6, 5, 18) D145 +detector(6, 7, 18) D146 +detector(7, 8, 18) D147 +detector(3, 6, 19) D148 +detector(5, 6, 19) D149 +detector(5, 8, 19) D150 +detector(7, 8, 19) D151 diff --git a/shared/package-files/ec/ec0af8bdd4029e733498a4773148db20ab19ac155f1e0770b0965cfe619845ec/blob b/shared/package-files/ec/ec0af8bdd4029e733498a4773148db20ab19ac155f1e0770b0965cfe619845ec/blob new file mode 100644 index 0000000000000000000000000000000000000000..cebc673e40fc376653ebf037e96f0a6d0b33e906 --- /dev/null +++ b/shared/package-files/ec/ec0af8bdd4029e733498a4773148db20ab19ac155f1e0770b0965cfe619845ec/blob @@ -0,0 +1,2 @@ +# tzwin has moved to dateutil.tz.win +from .tz.win import * diff --git a/shared/package-files/ec/ec0b3d798b51628b1bc762c7971a0d9ab6646086e0adcea2529504bad340ed9b/blob b/shared/package-files/ec/ec0b3d798b51628b1bc762c7971a0d9ab6646086e0adcea2529504bad340ed9b/blob new file mode 100644 index 0000000000000000000000000000000000000000..f5e98cc3184bb7d4fa6da515a8513bd71ff6552d --- /dev/null +++ b/shared/package-files/ec/ec0b3d798b51628b1bc762c7971a0d9ab6646086e0adcea2529504bad340ed9b/blob @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautogradnonfunctional { + +TORCH_API at::Tensor _indices_copy(const at::Tensor & self); + +} // namespace compositeexplicitautogradnonfunctional +} // namespace at diff --git a/shared/package-files/ec/ec0f5af26a458d6c449d6057a0e958e81e61dfeb15e0ef8a5a23570275858f07/blob b/shared/package-files/ec/ec0f5af26a458d6c449d6057a0e958e81e61dfeb15e0ef8a5a23570275858f07/blob new file mode 100644 index 0000000000000000000000000000000000000000..57e94d0479f1c3f7de810b687b632b8f3b294df0 --- /dev/null +++ b/shared/package-files/ec/ec0f5af26a458d6c449d6057a0e958e81e61dfeb15e0ef8a5a23570275858f07/blob @@ -0,0 +1,20 @@ +filelock + +[build] +cmake>=3.20 +lit + +[tests] +autopep8 +flake8 +isort +numpy +pytest +scipy>=1.7.1 +torch + +[tutorials] +matplotlib +pandas +tabulate +torch diff --git a/shared/package-files/ec/ec10111ef6de85a3250b8ecd1d9ec61c639062dfdf3076fd0a9f509c2cfa9432/blob b/shared/package-files/ec/ec10111ef6de85a3250b8ecd1d9ec61c639062dfdf3076fd0a9f509c2cfa9432/blob new file mode 100644 index 0000000000000000000000000000000000000000..63edf253062fece499cd276570cef07c4c58e5b7 --- /dev/null +++ b/shared/package-files/ec/ec10111ef6de85a3250b8ecd1d9ec61c639062dfdf3076fd0a9f509c2cfa9432/blob @@ -0,0 +1,1114 @@ +import copy +import dataclasses +import dis +import itertools +import sys +import types +from typing import Any, Callable, cast, Dict, Iterator, List, Optional, Tuple + +from .bytecode_analysis import ( + get_indexof, + propagate_line_nums, + remove_extra_line_nums, + stacksize_analysis, +) + + +@dataclasses.dataclass +class InstructionExnTabEntry: + start: "Instruction" + end: "Instruction" + target: "Instruction" + depth: int + lasti: bool + + def __repr__(self) -> str: + return ( + f"InstructionExnTabEntry(start={self.start.short_inst_repr()}, " + f"end={self.end.short_inst_repr()}, " + f"target={self.target.short_inst_repr()}, " + f"depth={self.depth}, lasti={self.lasti})" + ) + + def __eq__(self, o) -> bool: + return ( + self.start is o.start + and self.end is o.end + and self.target is o.target + and self.depth == o.depth + and self.lasti == o.lasti + ) + + +@dataclasses.dataclass +class Instruction: + """A mutable version of dis.Instruction""" + + opcode: int + opname: str + arg: Optional[int] + argval: Any + offset: Optional[int] = None + starts_line: Optional[int] = None + is_jump_target: bool = False + positions: Optional["dis.Positions"] = None + # extra fields to make modification easier: + target: Optional["Instruction"] = None + exn_tab_entry: Optional[InstructionExnTabEntry] = None + + def __hash__(self) -> int: + return id(self) + + def __eq__(self, other) -> bool: + return id(self) == id(other) + + def short_inst_repr(self) -> str: + return f"Instruction(opname={self.opname}, offset={self.offset})" + + +def convert_instruction(i: dis.Instruction) -> Instruction: + return Instruction( + i.opcode, + i.opname, + i.arg, + i.argval, + i.offset, + i.starts_line, + i.is_jump_target, + getattr(i, "positions", None), + ) + + +class _NotProvided: + def __repr__(self) -> str: + return "_NotProvided" + + +def create_instruction( + name, *, arg=None, argval=_NotProvided, target=None +) -> Instruction: + """ + At most one of `arg`, `argval`, and `target` can be not None/_NotProvided. + This is to prevent ambiguity, e.g. does + create_instruction("LOAD_CONST", 5) + mean load the constant at co_consts[5], or load the constant 5? + + If `arg` is not provided, it will be computed during assembly from + `argval` or `target`. + + Do not use for LOAD_GLOBAL - use create_load_global instead. + """ + assert name != "LOAD_GLOBAL" + cnt = (arg is not None) + (argval is not _NotProvided) + (target is not None) + if cnt > 1: + raise RuntimeError( + "only one of arg, argval, and target can be not None/_NotProvided" + ) + if arg is not None and not isinstance(arg, int): + raise RuntimeError("instruction arg must be int or None") + return Instruction( + opcode=dis.opmap[name], opname=name, arg=arg, argval=argval, target=target + ) + + +# Python 3.11 remaps +def create_jump_absolute(target) -> Instruction: + inst = "JUMP_FORWARD" if sys.version_info >= (3, 11) else "JUMP_ABSOLUTE" + return create_instruction(inst, target=target) + + +def create_load_global(name, push_null) -> Instruction: + """ + `name` is the name of the global to be loaded. + `push_null` specifies whether or not a NULL should be pushed to the stack + before the global (Python 3.11+ only). + + Python 3.11 changed the LOAD_GLOBAL instruction in that the first bit of + the instruction arg specifies whether a NULL should be pushed to the stack + before the global. The remaining bits of the instruction arg contain the + name index. See `create_call_function` for why this NULL is needed. + + The instruction's `arg` is actually computed when assembling the bytecode. + For Python 3.11, push_null information is propagated through the arg. + + NOTE: we don't use create_instruction since LOAD_GLOBAL is the only instruction + where both arg and argval need to be specified. + """ + return Instruction( + opcode=dis.opmap["LOAD_GLOBAL"], + opname="LOAD_GLOBAL", + arg=push_null, + argval=name, + ) + + +def create_dup_top() -> Instruction: + if sys.version_info >= (3, 11): + return create_instruction("COPY", arg=1) + return create_instruction("DUP_TOP") + + +def create_rot_n(n) -> List[Instruction]: + """ + Returns a "simple" sequence of instructions that rotates TOS to the n-th + position in the stack. For Python < 3.11, returns a single ROT_* + instruction. If no such instruction exists, an error is raised and the + caller is expected to generate an equivalent sequence of instructions. + For Python >= 3.11, any rotation can be expressed as a simple sequence of + swaps. + """ + if n <= 1: + # don't rotate + return [] + + if sys.version_info >= (3, 11): + # rotate can be expressed as a sequence of swap operations + # e.g. rotate 3 is equivalent to swap 3, swap 2 + return [create_instruction("SWAP", arg=i) for i in range(n, 1, -1)] + + # ensure desired rotate function exists + if sys.version_info < (3, 8) and n >= 4: + raise AttributeError(f"rotate {n} not supported for Python < 3.8") + if sys.version_info < (3, 10) and n >= 5: + raise AttributeError(f"rotate {n} not supported for Python < 3.10") + + if n <= 4: + return [create_instruction("ROT_" + ["TWO", "THREE", "FOUR"][n - 2])] + return [create_instruction("ROT_N", arg=n)] + + +def create_call_function(nargs, push_null) -> List[Instruction]: + """ + Creates a sequence of instructions that makes a function call. + + `push_null` is used in Python 3.11+ only. It is used in codegen when + a function call is intended to be made with the NULL + fn convention, + and we know that the NULL has not been pushed yet. We will push a + NULL and rotate it to the correct position immediately before making + the function call. + push_null should default to True unless you know you are calling a function + that you codegen'd with a null already pushed, for example + (assume `math` is available in the global scope), + + create_load_global("math", True) # pushes a null + create_instruction("LOAD_ATTR", argval="sqrt") + create_instruction("LOAD_CONST", argval=25) + create_call_function(1, False) + """ + if sys.version_info >= (3, 11): + output = [] + if push_null: + output.append(create_instruction("PUSH_NULL")) + output.extend(create_rot_n(nargs + 2)) + output.append(create_instruction("PRECALL", arg=nargs)) + output.append(create_instruction("CALL", arg=nargs)) + return output + return [create_instruction("CALL_FUNCTION", arg=nargs)] + + +def create_call_method(nargs) -> List[Instruction]: + if sys.version_info >= (3, 11): + return [ + create_instruction("PRECALL", arg=nargs), + create_instruction("CALL", arg=nargs), + ] + return [create_instruction("CALL_METHOD", arg=nargs)] + + +def lnotab_writer( + lineno: int, byteno: int = 0 +) -> Tuple[List[int], Callable[[int, int], None]]: + """ + Used to create typing.CodeType.co_lnotab + See https://github.com/python/cpython/blob/main/Objects/lnotab_notes.txt + This is the internal format of the line number table if Python < 3.10 + """ + assert sys.version_info < (3, 10) + lnotab: List[int] = [] + + def update(lineno_new, byteno_new): + nonlocal byteno, lineno + while byteno_new != byteno or lineno_new != lineno: + byte_offset = max(0, min(byteno_new - byteno, 255)) + line_offset = max(-128, min(lineno_new - lineno, 127)) + assert byte_offset != 0 or line_offset != 0 + byteno += byte_offset + lineno += line_offset + lnotab.extend((byte_offset, line_offset & 0xFF)) + + return lnotab, update + + +def linetable_310_writer(first_lineno): + """ + Used to create typing.CodeType.co_linetable + See https://github.com/python/cpython/blob/main/Objects/lnotab_notes.txt + This is the internal format of the line number table for Python 3.10 + """ + assert sys.version_info >= (3, 10) and sys.version_info < (3, 11) + linetable: List[int] = [] + lineno = first_lineno + lineno_delta = 0 + byteno = 0 + + def _update(byteno_delta, lineno_delta): + while byteno_delta != 0 or lineno_delta != 0: + byte_offset = max(0, min(byteno_delta, 254)) + line_offset = max(-127, min(lineno_delta, 127)) + assert byte_offset != 0 or line_offset != 0 + byteno_delta -= byte_offset + lineno_delta -= line_offset + linetable.extend((byte_offset, line_offset & 0xFF)) + + def update(lineno_new, byteno_new): + nonlocal lineno, lineno_delta, byteno + byteno_delta = byteno_new - byteno + byteno = byteno_new + _update(byteno_delta, lineno_delta) + lineno_delta = lineno_new - lineno + lineno = lineno_new + + def end(total_bytes): + _update(total_bytes - byteno, lineno_delta) + + return linetable, update, end + + +def encode_varint(n: int) -> List[int]: + """ + 6-bit chunk encoding of an unsigned integer + See https://github.com/python/cpython/blob/3.11/Objects/locations.md + """ + assert n >= 0 + b = [n & 63] + n >>= 6 + while n > 0: + b[-1] |= 64 + b.append(n & 63) + n >>= 6 + return b + + +def linetable_311_writer(first_lineno: int): + """ + Used to create typing.CodeType.co_linetable + See https://github.com/python/cpython/blob/3.11/Objects/locations.md + This is the internal format of the line number table for Python 3.11 + """ + assert sys.version_info >= (3, 11) + linetable = [] + lineno = first_lineno + + def update(positions: "dis.Positions", inst_size): + nonlocal lineno + lineno_new = positions.lineno if positions else None + + def _update(delta, size): + assert 0 < size <= 8 + # first byte - use 13 (no column info) is positions is + # malformed, otherwise use 14 (long form) + other_varints: Tuple[int, ...] = () + if ( + positions + and positions.lineno is not None + and positions.end_lineno is not None + and positions.col_offset is not None + and positions.end_col_offset is not None + ): + linetable.append(0b1_1110_000 + size - 1) + # for whatever reason, column offset needs `+ 1` + # https://github.com/python/cpython/blob/1931c2a438c50e6250725c84dff94fc760b9b951/Python/compile.c#L7603 + other_varints = ( + positions.end_lineno - positions.lineno, + positions.col_offset + 1, + positions.end_col_offset + 1, + ) + else: + linetable.append(0b1_1101_000 + size - 1) + # encode signed int + if delta < 0: + delta = ((-delta) << 1) | 1 + else: + delta <<= 1 + # encode unsigned int + linetable.extend(encode_varint(delta)) + for n in other_varints: + linetable.extend(encode_varint(n)) + + if lineno_new is None: + lineno_delta = 0 + else: + lineno_delta = lineno_new - lineno + lineno = lineno_new + while inst_size > 8: + _update(lineno_delta, 8) + inst_size -= 8 + _update(lineno_delta, inst_size) + + return linetable, update + + +@dataclasses.dataclass +class ExceptionTableEntry: + start: int + end: int + target: int + depth: int + lasti: bool + + +def encode_exception_table_varint(n: int) -> List[int]: + """ + Similar to `encode_varint`, but the 6-bit chunks are ordered in reverse. + """ + assert n >= 0 + b = [n & 63] + n >>= 6 + while n > 0: + b.append(n & 63) + n >>= 6 + b.reverse() + for i in range(len(b) - 1): + b[i] |= 64 + return b + + +def decode_exception_table_varint(bytes_iter: Iterator[int]) -> int: + """ + Inverse of `encode_exception_table_varint`. + """ + b = next(bytes_iter) + val = b & 63 + while b & 64: + val <<= 6 + b = next(bytes_iter) + val |= b & 63 + return val + + +def check_exception_table(tab: List[ExceptionTableEntry]) -> None: + """ + Verifies that a list of ExceptionTableEntries will make a well-formed + jump table: entries are non-empty, sorted, and do not overlap. + """ + for i in range(len(tab) - 1): + assert ( + tab[i].start <= tab[i].end + and tab[i].end < tab[i + 1].start + and tab[i + 1].start <= tab[i + 1].end + ) + + +def parse_exception_table(exntab: bytes) -> List[ExceptionTableEntry]: + """ + Parse the exception table according to + https://github.com/python/cpython/blob/3.11/Objects/exception_handling_notes.txt + """ + exntab_iter = iter(exntab) + tab = [] + try: + while True: + start = decode_exception_table_varint(exntab_iter) * 2 + length = decode_exception_table_varint(exntab_iter) * 2 + end = start + length - 2 + target = decode_exception_table_varint(exntab_iter) * 2 + dl = decode_exception_table_varint(exntab_iter) + depth = dl >> 1 + lasti = bool(dl & 1) + tab.append(ExceptionTableEntry(start, end, target, depth, lasti)) + except StopIteration: + check_exception_table(tab) + return tab + + +def assemble_exception_table(tab: List[ExceptionTableEntry]) -> bytes: + """ + Inverse of parse_exception_table - encodes list of exception + table entries into bytes. + """ + b = [] + for entry in tab: + first_entry = encode_exception_table_varint(entry.start // 2) + first_entry[0] |= 1 << 7 + b.extend(first_entry) + length = entry.end - entry.start + 2 + b.extend(encode_exception_table_varint(length // 2)) + b.extend(encode_exception_table_varint(entry.target // 2)) + dl = (entry.depth << 1) + entry.lasti + b.extend(encode_exception_table_varint(dl)) + return bytes(b) + + +def assemble(instructions: List[Instruction], firstlineno: int) -> Tuple[bytes, bytes]: + """Do the opposite of dis.get_instructions()""" + code: List[int] = [] + if sys.version_info >= (3, 11): + lnotab, update_lineno = linetable_311_writer(firstlineno) + num_ext = 0 + for i, inst in enumerate(instructions): + if inst.opname == "EXTENDED_ARG": + inst_size = 1 + num_ext += 1 + # copy positions from the actual instruction + for j in (1, 2, 3): + if instructions[i + j].opname != "EXTENDED_ARG": + inst.positions = instructions[i + j].positions + break + else: + inst_size = instruction_size(inst) // 2 + num_ext + num_ext = 0 + update_lineno(inst.positions, inst_size) + num_ext = 0 + arg = inst.arg or 0 + code.extend((inst.opcode, arg & 0xFF)) + for _ in range(instruction_size(inst) // 2 - 1): + code.extend((0, 0)) + else: + if sys.version_info < (3, 10): + lnotab, update_lineno = lnotab_writer(firstlineno) + else: + lnotab, update_lineno, end = linetable_310_writer(firstlineno) + + for inst in instructions: + if inst.starts_line is not None: + update_lineno(inst.starts_line, len(code)) + arg = inst.arg or 0 + code.extend((inst.opcode, arg & 0xFF)) + + if sys.version_info >= (3, 10): + end(len(code)) + + return bytes(code), bytes(lnotab) + + +def _get_instruction_by_offset(offset_to_inst: Dict[int, Instruction], offset: int): + """ + Get the instruction located at a given offset, accounting for EXTENDED_ARGs + """ + for n in (0, 2, 4, 6): + if offset_to_inst[offset + n].opcode != dis.EXTENDED_ARG: + return offset_to_inst[offset + n] + return None + + +def virtualize_jumps(instructions) -> None: + """Replace jump targets with pointers to make editing easier""" + jump_targets = {inst.offset: inst for inst in instructions} + + for inst in instructions: + if inst.opcode in dis.hasjabs or inst.opcode in dis.hasjrel: + inst.target = _get_instruction_by_offset(jump_targets, inst.argval) + + +_REL_JUMPS = set(dis.hasjrel) + + +def flip_jump_direction(instruction: Instruction) -> None: + if sys.version_info < (3, 11): + raise RuntimeError("Cannot flip jump direction in Python < 3.11") + if "FORWARD" in instruction.opname: + instruction.opname = instruction.opname.replace("FORWARD", "BACKWARD") + elif "BACKWARD" in instruction.opname: + instruction.opname = instruction.opname.replace("BACKWARD", "FORWARD") + else: + raise AttributeError("Instruction is not a forward or backward jump") + instruction.opcode = dis.opmap[instruction.opname] + assert instruction.opcode in _REL_JUMPS + + +def _get_instruction_front(instructions: List[Instruction], idx: int): + """ + i.e. get the first EXTENDED_ARG instruction (if any) when targeting + instructions[idx] with a jump. + """ + target = instructions[idx] + for offset in (1, 2, 3): + if idx >= offset and instructions[idx - offset].opcode == dis.EXTENDED_ARG: + target = instructions[idx - offset] + else: + break + return target + + +def devirtualize_jumps(instructions): + """Fill in args for virtualized jump target after instructions may have moved""" + indexof = get_indexof(instructions) + jumps = set(dis.hasjabs).union(set(dis.hasjrel)) + + for inst in instructions: + if inst.opcode in jumps: + target = _get_instruction_front(instructions, indexof[inst.target]) + if inst.opcode in dis.hasjabs: + if sys.version_info < (3, 10): + inst.arg = target.offset + elif sys.version_info < (3, 11): + # `arg` is expected to be bytecode offset, whereas `offset` is byte offset. + # Divide since bytecode is 2 bytes large. + inst.arg = int(target.offset / 2) + else: + raise RuntimeError("Python 3.11+ should not have absolute jumps") + else: # relative jump + # byte offset between target and next instruction + inst.arg = int(target.offset - inst.offset - instruction_size(inst)) + if inst.arg < 0: + if sys.version_info < (3, 11): + raise RuntimeError("Got negative jump offset for Python < 3.11") + inst.arg = -inst.arg + # forward jumps become backward + if "FORWARD" in inst.opname: + flip_jump_direction(inst) + elif inst.arg > 0: + # backward jumps become forward + if sys.version_info >= (3, 11) and "BACKWARD" in inst.opname: + flip_jump_direction(inst) + if sys.version_info >= (3, 10): + # see bytecode size comment in the absolute jump case above + inst.arg //= 2 + inst.argval = target.offset + inst.argrepr = f"to {target.offset}" + + +def virtualize_exception_table(exn_tab_bytes: bytes, instructions: List[Instruction]): + """Replace exception table entries with pointers to make editing easier""" + exn_tab = parse_exception_table(exn_tab_bytes) + offset_to_inst = {cast(int, inst.offset): inst for inst in instructions} + offsets = sorted(offset_to_inst.keys()) + end_offset_idx = 0 + exn_tab_iter = iter(exn_tab) + try: + + def step(): + nonlocal end_offset_idx + entry = next(exn_tab_iter) + # find rightmost offset <= entry.end, since entry.end may not be + # an actual instruction, e.g. if the end instruction is LOAD_GLOBAL, + # which takes more than 2 bytes, then entry.end points to the end + # of the LOAD_GLOBAL instruction, not the beginning. + while ( + end_offset_idx < len(offsets) and offsets[end_offset_idx] <= entry.end + ): + end_offset_idx += 1 + assert end_offset_idx > 0 + end_offset = offsets[end_offset_idx - 1] + inst_entry = InstructionExnTabEntry( + _get_instruction_by_offset(offset_to_inst, entry.start), + _get_instruction_by_offset(offset_to_inst, end_offset), + _get_instruction_by_offset(offset_to_inst, entry.target), + entry.depth, + entry.lasti, + ) + return entry, inst_entry + + entry, inst_entry = step() + for inst in instructions: + while inst.offset > entry.end: + entry, inst_entry = step() + if inst.offset >= entry.start: + inst.exn_tab_entry = copy.copy(inst_entry) + except StopIteration: + pass + + +def compute_exception_table( + instructions: List[Instruction], +) -> List[ExceptionTableEntry]: + """Compute exception table in list format from instructions with exn_tab_entries""" + exn_dict: Dict[Tuple[int, int], Tuple[int, int, bool]] = {} + indexof = get_indexof(instructions) + + for inst in instructions: + if inst.exn_tab_entry: + # account for prefixed EXTENDED_ARGS + start = _get_instruction_front( + instructions, indexof[inst.exn_tab_entry.start] + ).offset + # point to the last 2 bytes of the end instruction + end = ( + cast(int, inst.exn_tab_entry.end.offset) + + instruction_size(inst.exn_tab_entry.end) + - 2 + ) + target = _get_instruction_front( + instructions, indexof[inst.exn_tab_entry.target] + ).offset + key = (start, end) + val = (target, inst.exn_tab_entry.depth, inst.exn_tab_entry.lasti) + if key in exn_dict: + assert exn_dict[key] == val + exn_dict[key] = val + + # Dynamo may construct nested exception table entries for convenience, + # but Python expects exception table entries to not overlap. + # NOTE: below, "keys" refer to old instruction entries' starts and ends, + # and "entries" refer to the generated exception table entries. + + # Sort keys by increasing start, then decreasing end + keys_sorted = sorted(exn_dict.keys(), key=lambda t: (t[0], -t[1])) + # smallest byte that the next exception table entry can start at + nexti = 0 + # stack of current nested keys + key_stack: List[Tuple[int, int]] = [] + exn_tab: List[ExceptionTableEntry] = [] + + def pop(): + """ + Pop the key_stack and append an exception table entry if possible. + """ + nonlocal nexti + if key_stack: + key = key_stack.pop() + if nexti <= key[1]: + exn_tab.append( + ExceptionTableEntry(max(key[0], nexti), key[1], *exn_dict[key]) + ) + nexti = key[1] + 2 + + for key in keys_sorted: + # pop keys that are no longer nested over the current key + while key_stack and key_stack[-1][1] < key[0]: + pop() + if key_stack: + # create an entry covering to the current key, if possible + assert key_stack[-1][0] <= key[0] <= key[1] <= key_stack[-1][1] + left = max(nexti, key_stack[-1][0]) + if left < key[0]: + exn_tab.append( + ExceptionTableEntry(left, key[0] - 2, *exn_dict[key_stack[-1]]) + ) + nexti = key[0] + key_stack.append(key) + while key_stack: + pop() + check_exception_table(exn_tab) + return exn_tab + + +def check_inst_exn_tab_entries_nested( + tab: List[InstructionExnTabEntry], indexof +) -> None: + """ + Checks `tab` is a properly sorted list of nested InstructionExnTabEntry's, + i.e. no entries partially overlap. + "Properly sorted" means entries are sorted by increasing starts, then + decreasing ends. + """ + entry_stack: List[Tuple[int, int]] = [] + for entry in tab: + key = (indexof[entry.start], indexof[entry.end]) + while entry_stack and entry_stack[-1][1] < key[0]: + entry_stack.pop() + if entry_stack: + assert entry_stack[-1][0] <= key[0] <= key[1] <= entry_stack[-1][1] + entry_stack.append(key) + + +def propagate_inst_exn_table_entries(instructions: List[Instruction]) -> None: + """ + Copies exception table entries to all instructions in an entry's range. + Supports nested exception table entries. + """ + indexof = get_indexof(instructions) + entries: Dict[Tuple[int, int], InstructionExnTabEntry] = {} + for inst in instructions: + if inst.exn_tab_entry: + key = ( + indexof[inst.exn_tab_entry.start], + indexof[inst.exn_tab_entry.end], + ) + if key in entries: + assert inst.exn_tab_entry == entries[key] + entries[key] = inst.exn_tab_entry + sorted_entries = [ + entries[key] for key in sorted(entries.keys(), key=lambda t: (t[0], -t[1])) + ] + check_inst_exn_tab_entries_nested(sorted_entries, indexof) + # Propagation of nested entries works since nested entries come later + # in sorted order. + for entry in sorted_entries: + for i in range(indexof[entry.start], indexof[entry.end] + 1): + instructions[i].exn_tab_entry = copy.copy(entry) + + +def check_inst_exn_tab_entries_valid(instructions: List[Instruction]): + """ + Checks that exn_tab_entries of instructions are valid. + An entry's start, end, and target must be in instructions. + Instructions with an exn_tab_entry are located within + the entry's start and end instructions. + Instructions do not share exn_tab_entries. + + Implicitly checks for no duplicate instructions. + """ + indexof = get_indexof(instructions) + exn_tab_entry_set = set() + for i, inst in enumerate(instructions): + if inst.exn_tab_entry: + assert sys.version_info >= (3, 11) + assert id(inst.exn_tab_entry) not in exn_tab_entry_set + exn_tab_entry_set.add(id(inst.exn_tab_entry)) + entry = inst.exn_tab_entry + assert entry.start in indexof + assert entry.end in indexof + assert entry.target in indexof + assert indexof[entry.start] <= i <= indexof[entry.end] + + +def strip_extended_args(instructions: List[Instruction]) -> None: + instructions[:] = [i for i in instructions if i.opcode != dis.EXTENDED_ARG] + + +def remove_load_call_method(instructions: List[Instruction]) -> List[Instruction]: + """LOAD_METHOD puts a NULL on the stack which causes issues, so remove it""" + rewrites = {"LOAD_METHOD": "LOAD_ATTR", "CALL_METHOD": "CALL_FUNCTION"} + for inst in instructions: + if inst.opname in rewrites: + inst.opname = rewrites[inst.opname] + inst.opcode = dis.opmap[inst.opname] + return instructions + + +def remove_jump_if_none(instructions: List[Instruction]) -> None: + new_insts = [] + for inst in instructions: + new_insts.append(inst) + if "_NONE" in inst.opname: + is_op = create_instruction("IS_OP", arg=int("NOT" in inst.opname)) + is_op.argval = is_op.arg + jump_op = create_instruction( + "POP_JUMP_FORWARD_IF_TRUE" + if "FORWARD" in inst.opname + else "POP_JUMP_BACKWARD_IF_TRUE", + target=inst.target, + ) + # modify inst in-place to preserve jump target + inst.opcode = dis.opmap["LOAD_CONST"] + inst.opname = "LOAD_CONST" + inst.arg = None + inst.argval = None + new_insts.extend([is_op, jump_op]) + instructions[:] = new_insts + + +def explicit_super(code: types.CodeType, instructions: List[Instruction]) -> None: + """convert super() with no args into explicit arg form""" + cell_and_free = (code.co_cellvars or tuple()) + (code.co_freevars or tuple()) + if not len(code.co_varnames): + # A function with no argument cannot contain a valid "super()" call + return + output = [] + for idx, inst in enumerate(instructions): + output.append(inst) + if inst.opname == "LOAD_GLOBAL" and inst.argval == "super": + nexti = instructions[idx + 1] + if nexti.opname in ("CALL_FUNCTION", "PRECALL") and nexti.arg == 0: + assert "__class__" in cell_and_free + output.append(create_instruction("LOAD_DEREF", argval="__class__")) + first_var = code.co_varnames[0] + if first_var in cell_and_free: + output.append(create_instruction("LOAD_DEREF", argval=first_var)) + else: + output.append(create_instruction("LOAD_FAST", argval=first_var)) + nexti.arg = 2 + nexti.argval = 2 + if nexti.opname == "PRECALL": + # also update the following CALL instruction + call_inst = instructions[idx + 2] + call_inst.arg = 2 + call_inst.argval = 2 + + instructions[:] = output + + +def fix_extended_args(instructions: List[Instruction]) -> int: + """Fill in correct argvals for EXTENDED_ARG ops""" + output: List[Instruction] = [] + + def maybe_pop_n(n): + for _ in range(n): + if output and output[-1].opcode == dis.EXTENDED_ARG: + output.pop() + + for inst in instructions: + if inst.opcode == dis.EXTENDED_ARG: + # Leave this instruction alone for now so we never shrink code + inst.arg = 0 + elif inst.arg and inst.arg > 0xFFFFFF: + maybe_pop_n(3) + output.append(create_instruction("EXTENDED_ARG", arg=inst.arg >> 24)) + output.append(create_instruction("EXTENDED_ARG", arg=inst.arg >> 16)) + output.append(create_instruction("EXTENDED_ARG", arg=inst.arg >> 8)) + elif inst.arg and inst.arg > 0xFFFF: + maybe_pop_n(2) + output.append(create_instruction("EXTENDED_ARG", arg=inst.arg >> 16)) + output.append(create_instruction("EXTENDED_ARG", arg=inst.arg >> 8)) + elif inst.arg and inst.arg > 0xFF: + maybe_pop_n(1) + output.append(create_instruction("EXTENDED_ARG", arg=inst.arg >> 8)) + output.append(inst) + + added = len(output) - len(instructions) + assert added >= 0 + instructions[:] = output + return added + + +# from https://github.com/python/cpython/blob/v3.11.1/Include/internal/pycore_opcode.h#L41 +# TODO use the actual object instead, can interface from eval_frame.c +_PYOPCODE_CACHES = { + "BINARY_SUBSCR": 4, + "STORE_SUBSCR": 1, + "UNPACK_SEQUENCE": 1, + "STORE_ATTR": 4, + "LOAD_ATTR": 4, + "COMPARE_OP": 2, + "LOAD_GLOBAL": 5, + "BINARY_OP": 1, + "LOAD_METHOD": 10, + "PRECALL": 1, + "CALL": 4, +} + + +def instruction_size(inst) -> int: + if sys.version_info >= (3, 11): + return 2 * (_PYOPCODE_CACHES.get(dis.opname[inst.opcode], 0) + 1) + return 2 + + +def check_offsets(instructions) -> None: + offset = 0 + for inst in instructions: + assert inst.offset == offset + offset += instruction_size(inst) + + +def update_offsets(instructions) -> None: + offset = 0 + for inst in instructions: + inst.offset = offset + offset += instruction_size(inst) + + +def debug_bytes(*args) -> str: + index = range(max(map(len, args))) + result = [] + for arg in ( + [index] + list(args) + [[int(a != b) for a, b in zip(args[-1], args[-2])]] + ): + result.append(" ".join(f"{x:03}" for x in arg)) + + return "bytes mismatch\n" + "\n".join(result) + + +def debug_checks(code): + """Make sure our assembler produces same bytes as we start with""" + dode = transform_code_object(code, lambda x, y: None, safe=True) + assert code.co_code == dode.co_code, debug_bytes(code.co_code, dode.co_code) + assert code.co_lnotab == dode.co_lnotab, debug_bytes(code.co_lnotab, dode.co_lnotab) + + +HAS_LOCAL = set(dis.haslocal) +HAS_NAME = set(dis.hasname) +HAS_FREE = set(dis.hasfree) +HAS_CONST = set(dis.hasconst) + + +def get_const_index(code_options, val) -> int: + for i, v in enumerate(code_options["co_consts"]): + # NOTE: stronger comparison is required, since we have + # examples where two values compare equal but have + # different semantic meaning in some cases, e.g. + # 0.0 == -0.0 but have different effects in torch.copysign. + if val is v: + return i + code_options["co_consts"] += (val,) + return len(code_options["co_consts"]) - 1 + + +def fix_vars(instructions: List[Instruction], code_options, varname_from_oparg=None): + # compute instruction arg from argval if arg is not provided + names = {name: idx for idx, name in enumerate(code_options["co_names"])} + if sys.version_info < (3, 11): + assert varname_from_oparg is None + varnames = {name: idx for idx, name in enumerate(code_options["co_varnames"])} + freenames = { + name: idx + for idx, name in enumerate( + code_options["co_cellvars"] + code_options["co_freevars"] + ) + } + else: + assert callable(varname_from_oparg) + allnames = {} + for idx in itertools.count(): + try: + name = varname_from_oparg(idx) + allnames[name] = idx + except IndexError: + break + varnames = {name: allnames[name] for name in code_options["co_varnames"]} + freenames = { + name: allnames[name] + for name in code_options["co_cellvars"] + code_options["co_freevars"] + } + for i in range(len(instructions)): + + def should_compute_arg(): + # argval is prioritized over arg + return instructions[i].argval is not _NotProvided + + if instructions[i].opname == "LOAD_GLOBAL": + # 3.11 LOAD_GLOBAL requires both arg and argval - see create_load_global + assert instructions[i].arg is not None + assert instructions[i].argval is not _NotProvided + if sys.version_info >= (3, 11): + instructions[i].arg = (names[instructions[i].argval] << 1) + ( + cast(int, instructions[i].arg) % 2 + ) + else: + instructions[i].arg = names[instructions[i].argval] + elif instructions[i].opcode in HAS_LOCAL: + if should_compute_arg(): + instructions[i].arg = varnames[instructions[i].argval] + elif instructions[i].opcode in HAS_NAME: + if should_compute_arg(): + instructions[i].arg = names[instructions[i].argval] + elif instructions[i].opcode in HAS_FREE: + if should_compute_arg(): + instructions[i].arg = freenames[instructions[i].argval] + elif instructions[i].opcode in HAS_CONST: + # NOTE: only update argval if arg is not provided. This assumes + # that any additions to co_consts are appended. + if instructions[i].arg is None: + # cannot use a dictionary since consts may not be hashable + idx = get_const_index(code_options, instructions[i].argval) + assert idx >= 0 + instructions[i].arg = idx + + +def get_code_keys() -> List[str]: + # Python 3.11 changes to code keys are not fully documented. + # See https://github.com/python/cpython/blob/3.11/Objects/clinic/codeobject.c.h#L24 + # for new format. + keys = ["co_argcount"] + keys.append("co_posonlyargcount") + keys.extend( + [ + "co_kwonlyargcount", + "co_nlocals", + "co_stacksize", + "co_flags", + "co_code", + "co_consts", + "co_names", + "co_varnames", + "co_filename", + "co_name", + ] + ) + if sys.version_info >= (3, 11): + keys.append("co_qualname") + keys.append("co_firstlineno") + if sys.version_info >= (3, 10): + keys.append("co_linetable") + else: + keys.append("co_lnotab") + if sys.version_info >= (3, 11): + # not documented, but introduced in https://github.com/python/cpython/issues/84403 + keys.append("co_exceptiontable") + keys.extend( + [ + "co_freevars", + "co_cellvars", + ] + ) + return keys + + +def transform_code_object(code, transformations, safe=False) -> types.CodeType: + keys = get_code_keys() + code_options = {k: getattr(code, k) for k in keys} + assert len(code_options["co_varnames"]) == code_options["co_nlocals"] + + instructions = cleaned_instructions(code, safe) + propagate_line_nums(instructions) + + transformations(instructions, code_options) + return clean_and_assemble_instructions(instructions, keys, code_options)[1] + + +def clean_and_assemble_instructions( + instructions: List[Instruction], keys: List[str], code_options: Dict[str, Any] +) -> Tuple[List[Instruction], types.CodeType]: + # also implicitly checks for no duplicate instructions + check_inst_exn_tab_entries_valid(instructions) + + code_options["co_nlocals"] = len(code_options["co_varnames"]) + varname_from_oparg = None + if sys.version_info >= (3, 11): + # temporary code object with updated names + tmp_code = types.CodeType(*[code_options[k] for k in keys]) + varname_from_oparg = tmp_code._varname_from_oparg # type: ignore[attr-defined] + fix_vars(instructions, code_options, varname_from_oparg=varname_from_oparg) + + dirty = True + while dirty: + update_offsets(instructions) + devirtualize_jumps(instructions) + # this pass might change offsets, if so we need to try again + dirty = bool(fix_extended_args(instructions)) + + remove_extra_line_nums(instructions) + bytecode, lnotab = assemble(instructions, code_options["co_firstlineno"]) + if sys.version_info < (3, 10): + code_options["co_lnotab"] = lnotab + else: + code_options["co_linetable"] = lnotab + + code_options["co_code"] = bytecode + code_options["co_stacksize"] = stacksize_analysis(instructions) + assert set(keys) - {"co_posonlyargcount"} == set(code_options.keys()) - { + "co_posonlyargcount" + } + if sys.version_info >= (3, 11): + code_options["co_exceptiontable"] = assemble_exception_table( + compute_exception_table(instructions) + ) + return instructions, types.CodeType(*[code_options[k] for k in keys]) + + +def populate_kw_names_argval(instructions, consts): + for inst in instructions: + if inst.opname == "KW_NAMES": + inst.argval = consts[inst.arg] + + +def cleaned_instructions(code, safe=False) -> List[Instruction]: + instructions = list(map(convert_instruction, dis.get_instructions(code))) + check_offsets(instructions) + if sys.version_info >= (3, 11): + populate_kw_names_argval(instructions, code.co_consts) + virtualize_exception_table(code.co_exceptiontable, instructions) + virtualize_jumps(instructions) + strip_extended_args(instructions) + if not safe: + if sys.version_info < (3, 11): + remove_load_call_method(instructions) + else: + remove_jump_if_none(instructions) + update_offsets(instructions) + devirtualize_jumps(instructions) + explicit_super(code, instructions) + return instructions + + +_unique_id_counter = itertools.count() + + +def unique_id(name) -> str: + return f"{name}_{next(_unique_id_counter)}" + + +def is_generator(code: types.CodeType) -> bool: + co_generator = 0x20 + return (code.co_flags & co_generator) > 0 diff --git a/shared/package-files/ec/ec11bfd49c715cd89fb9d387a07cf54261e0f4a1ccec1a810e02c7b38ad2f285/blob b/shared/package-files/ec/ec11bfd49c715cd89fb9d387a07cf54261e0f4a1ccec1a810e02c7b38ad2f285/blob new file mode 100644 index 0000000000000000000000000000000000000000..813d7a6f3707068b67946aa377a3e409ee1967b1 --- /dev/null +++ b/shared/package-files/ec/ec11bfd49c715cd89fb9d387a07cf54261e0f4a1ccec1a810e02c7b38ad2f285/blob @@ -0,0 +1,1380 @@ +# Encoding file: gb2312, double-byte +D +233F 0 81 +21 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000030003001300230FB02C902C700A8300330052015FF5E2225202620182019 +201C201D3014301530083009300A300B300C300D300E300F3016301730103011 +00B100D700F72236222722282211220F222A222922082237221A22A522252220 +23122299222B222E2261224C2248223D221D2260226E226F22642265221E2235 +22342642264000B0203220332103FF0400A4FFE0FFE1203000A7211626062605 +25CB25CF25CE25C725C625A125A025B325B2203B219221902191219330130000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +22 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000024882489248A248B248C248D248E248F2490249124922493249424952496 +249724982499249A249B247424752476247724782479247A247B247C247D247E +247F248024812482248324842485248624872460246124622463246424652466 +2467246824690000000032203221322232233224322532263227322832290000 +00002160216121622163216421652166216721682169216A216B000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +23 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000FF01FF02FF03FFE5FF05FF06FF07FF08FF09FF0AFF0BFF0CFF0DFF0EFF0F +FF10FF11FF12FF13FF14FF15FF16FF17FF18FF19FF1AFF1BFF1CFF1DFF1EFF1F +FF20FF21FF22FF23FF24FF25FF26FF27FF28FF29FF2AFF2BFF2CFF2DFF2EFF2F +FF30FF31FF32FF33FF34FF35FF36FF37FF38FF39FF3AFF3BFF3CFF3DFF3EFF3F +FF40FF41FF42FF43FF44FF45FF46FF47FF48FF49FF4AFF4BFF4CFF4DFF4EFF4F +FF50FF51FF52FF53FF54FF55FF56FF57FF58FF59FF5AFF5BFF5CFF5DFFE30000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +24 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000304130423043304430453046304730483049304A304B304C304D304E304F +3050305130523053305430553056305730583059305A305B305C305D305E305F +3060306130623063306430653066306730683069306A306B306C306D306E306F +3070307130723073307430753076307730783079307A307B307C307D307E307F +3080308130823083308430853086308730883089308A308B308C308D308E308F +3090309130923093000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +25 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000030A130A230A330A430A530A630A730A830A930AA30AB30AC30AD30AE30AF +30B030B130B230B330B430B530B630B730B830B930BA30BB30BC30BD30BE30BF +30C030C130C230C330C430C530C630C730C830C930CA30CB30CC30CD30CE30CF +30D030D130D230D330D430D530D630D730D830D930DA30DB30DC30DD30DE30DF +30E030E130E230E330E430E530E630E730E830E930EA30EB30EC30ED30EE30EF +30F030F130F230F330F430F530F6000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +26 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000039103920393039403950396039703980399039A039B039C039D039E039F +03A003A103A303A403A503A603A703A803A90000000000000000000000000000 +000003B103B203B303B403B503B603B703B803B903BA03BB03BC03BD03BE03BF +03C003C103C303C403C503C603C703C803C90000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +27 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000004100411041204130414041504010416041704180419041A041B041C041D +041E041F0420042104220423042404250426042704280429042A042B042C042D +042E042F00000000000000000000000000000000000000000000000000000000 +000004300431043204330434043504510436043704380439043A043B043C043D +043E043F0440044104420443044404450446044704480449044A044B044C044D +044E044F00000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +28 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000010100E101CE00E0011300E9011B00E8012B00ED01D000EC014D00F301D2 +00F2016B00FA01D400F901D601D801DA01DC00FC00EA00000000000000000000 +0000000000000000000031053106310731083109310A310B310C310D310E310F +3110311131123113311431153116311731183119311A311B311C311D311E311F +3120312131223123312431253126312731283129000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +29 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00000000000000002500250125022503250425052506250725082509250A250B +250C250D250E250F2510251125122513251425152516251725182519251A251B +251C251D251E251F2520252125222523252425252526252725282529252A252B +252C252D252E252F2530253125322533253425352536253725382539253A253B +253C253D253E253F2540254125422543254425452546254725482549254A254B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +30 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000554A963F57C3632854CE550954C07691764C853C77EE827E788D72319698 +978D6C285B894FFA630966975CB880FA684880AE660276CE51F9655671AC7FF1 +888450B2596561CA6FB382AD634C625253ED54277B06516B75A45DF462D48DCB +9776628A8019575D97387F627238767D67CF767E64464F708D2562DC7A176591 +73ED642C6273822C9881677F7248626E62CC4F3474E3534A529E7ECA90A65E2E +6886699C81807ED168D278C5868C9551508D8C2482DE80DE5305891252650000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +31 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000858496F94FDD582199715B9D62B162A566B48C799C8D7206676F789160B2 +535153178F8880CC8D1D94A1500D72C8590760EB711988AB595482EF672C7B28 +5D297EF7752D6CF58E668FF8903C9F3B6BD491197B145F7C78A784D6853D6BD5 +6BD96BD65E015E8775F995ED655D5F0A5FC58F9F58C181C2907F965B97AD8FB9 +7F168D2C62414FBF53D8535E8FA88FA98FAB904D68075F6A819888689CD6618B +522B762A5F6C658C6FD26EE85BBE6448517551B067C44E1979C9997C70B30000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +32 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000075C55E7673BB83E064AD62E894B56CE2535A52C3640F94C27B944F2F5E1B +82368116818A6E246CCA9A736355535C54FA886557E04E0D5E036B657C3F90E8 +601664E6731C88C16750624D8D22776C8E2991C75F6983DC8521991053C28695 +6B8B60ED60E8707F82CD82314ED36CA785CF64CD7CD969FD66F9834953957B56 +4FA7518C6D4B5C428E6D63D253C9832C833667E578B4643D5BDF5C945DEE8BE7 +62C667F48C7A640063BA8749998B8C177F2094F24EA7961098A4660C73160000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +33 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000573A5C1D5E38957F507F80A05382655E7545553150218D856284949E671D +56326F6E5DE2543570928F66626F64A463A35F7B6F8890F481E38FB05C186668 +5FF16C8996488D81886C649179F057CE6A59621054484E587A0B60E96F848BDA +627F901E9A8B79E4540375F4630153196C608FDF5F1B9A70803B9F7F4F885C3A +8D647FC565A570BD514551B2866B5D075BA062BD916C75748E0C7A2061017B79 +4EC77EF877854E1181ED521D51FA6A7153A88E87950496CF6EC19664695A0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +34 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000784050A877D7641089E6590463E35DDD7A7F693D4F20823955984E3275AE +7A975E625E8A95EF521B5439708A6376952457826625693F918755076DF37EAF +882262337EF075B5832878C196CC8F9E614874F78BCD6B64523A8D506B21806A +847156F153064ECE4E1B51D17C97918B7C074FC38E7F7BE17A9C64675D1450AC +810676017CB96DEC7FE067515B585BF878CB64AE641363AA632B9519642D8FBE +7B5476296253592754466B7950A362345E266B864EE38D37888B5F85902E0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +35 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006020803D62C54E39535590F863B880C665E66C2E4F4660EE6DE18BDE5F39 +86CB5F536321515A83616863520063638E4850125C9B79775BFC52307A3B60BC +905376D75FB75F9776848E6C706F767B7B4977AA51F3909358244F4E6EF48FEA +654C7B1B72C46DA47FDF5AE162B55E95573084827B2C5E1D5F1F90127F1498A0 +63826EC7789870B95178975B57AB75354F4375385E9760E659606DC06BBF7889 +53FC96D551CB52016389540A94938C038DCC7239789F87768FED8C0D53E00000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +36 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004E0176EF53EE948998769F0E952D5B9A8BA24E224E1C51AC846361C252A8 +680B4F97606B51BB6D1E515C6296659796618C46901775D890FD77636BD2728A +72EC8BFB583577798D4C675C9540809A5EA66E2159927AEF77ED953B6BB565AD +7F0E58065151961F5BF958A954288E726566987F56E4949D76FE9041638754C6 +591A593A579B8EB267358DFA8235524160F0581586FE5CE89E454FC4989D8BB9 +5A2560765384627C904F9102997F6069800C513F80335C1499756D314E8C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +37 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008D3053D17F5A7B4F4F104E4F96006CD573D085E95E06756A7FFB6A0A77FE +94927E4151E170E653CD8FD483038D2972AF996D6CDB574A82B365B980AA623F +963259A84EFF8BBF7EBA653E83F2975E556198DE80A5532A8BFD542080BA5E9F +6CB88D3982AC915A54296C1B52067EB7575F711A6C7E7C89594B4EFD5FFF6124 +7CAA4E305C0167AB87025CF0950B98CE75AF70FD902251AF7F1D8BBD594951E4 +4F5B5426592B657780A45B75627662C28F905E456C1F7B264F0F4FD8670D0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +38 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006D6E6DAA798F88B15F17752B629A8F854FEF91DC65A7812F81515E9C8150 +8D74526F89868D4B590D50854ED8961C723681798D1F5BCC8BA3964459877F1A +54905676560E8BE565396982949976D66E895E727518674667D17AFF809D8D76 +611F79C665628D635188521A94A27F38809B7EB25C976E2F67607BD9768B9AD8 +818F7F947CD5641E95507A3F544A54E56B4C640162089E3D80F3759952729769 +845B683C86E49601969494EC4E2A54047ED968398DDF801566F45E9A7FB90000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +39 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000057C2803F68975DE5653B529F606D9F9A4F9B8EAC516C5BAB5F135DE96C5E +62F18D21517194A952FE6C9F82DF72D757A267848D2D591F8F9C83C754957B8D +4F306CBD5B6459D19F1353E486CA9AA88C3780A16545987E56FA96C7522E74DC +52505BE1630289024E5662D0602A68FA51735B9851A089C27BA199867F5060EF +704C8D2F51495E7F901B747089C4572D78455F529F9F95FA8F689B3C8BE17678 +684267DC8DEA8D35523D8F8A6EDA68CD950590ED56FD679C88F98FC754C80000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009AB85B696D776C264EA55BB39A87916361A890AF97E9542B6DB55BD251FD +558A7F557FF064BC634D65F161BE608D710A6C576C49592F676D822A58D5568E +8C6A6BEB90DD597D801753F76D695475559D837783CF683879BE548C4F555408 +76D28C8996026CB36DB88D6B89109E648D3A563F9ED175D55F8872E0606854FC +4EA86A2A886160528F7054C470D886799E3F6D2A5B8F5F187EA255894FAF7334 +543C539A5019540E547C4E4E5FFD745A58F6846B80E1877472D07CCA6E560000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005F27864E552C62A44E926CAA623782B154D7534E733E6ED1753B52125316 +8BDD69D05F8A60006DEE574F6B2273AF68538FD87F13636260A3552475EA8C62 +71156DA35BA65E7B8352614C9EC478FA87577C27768751F060F6714C66435E4C +604D8C0E707063258F895FBD606286D456DE6BC160946167534960E066668D3F +79FD4F1A70E96C478BB38BF27ED88364660F5A5A9B426D516DF78C416D3B4F19 +706B83B7621660D1970D8D27797851FB573E57FA673A75787A3D79EF7B950000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000808C99658FF96FC08BA59E2159EC7EE97F095409678168D88F917C4D96C6 +53CA602575BE6C7253735AC97EA7632451E0810A5DF184DF628051805B634F0E +796D524260B86D4E5BC45BC28BA18BB065E25FCC964559937EE77EAA560967B7 +59394F735BB652A0835A988A8D3E753294BE50477A3C4EF767B69A7E5AC16B7C +76D1575A5C167B3A95F4714E517C80A9827059787F04832768C067EC78B17877 +62E363617B804FED526A51CF835069DB92748DF58D3189C1952E7BAD4EF60000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000506582305251996F6E106E856DA75EFA50F559DC5C066D466C5F7586848B +686859568BB253209171964D854969127901712680F64EA490CA6D479A845A07 +56BC640594F077EB4FA5811A72E189D2997A7F347EDE527F655991758F7F8F83 +53EB7A9663ED63A5768679F888579636622A52AB8282685467706377776B7AED +6D017ED389E359D0621285C982A5754C501F4ECB75A58BEB5C4A5DFE7B4B65A4 +91D14ECA6D25895F7D2795264EC58C288FDB9773664B79818FD170EC6D780000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005C3D52B283465162830E775B66769CB84EAC60CA7CBE7CB37ECF4E958B66 +666F988897595883656C955C5F8475C997567ADF7ADE51C070AF7A9863EA7A76 +7EA0739697ED4E4570784E5D915253A9655165E781FC8205548E5C31759A97A0 +62D872D975BD5C459A7983CA5C40548077E94E3E6CAE805A62D2636E5DE85177 +8DDD8E1E952F4FF153E560E770AC526763509E435A1F5026773753777EE26485 +652B628963985014723589C951B38BC07EDD574783CC94A7519B541B5CFB0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +3F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004FCA7AE36D5A90E19A8F55805496536154AF5F0063E9697751EF6168520A +582A52D8574E780D770B5EB761777CE0625B62974EA27095800362F770E49760 +577782DB67EF68F578D5989779D158F354B353EF6E34514B523B5BA28BFE80AF +554357A660735751542D7A7A60505B5463A762A053E362635BC767AF54ED7A9F +82E691775E9388E4593857AE630E8DE880EF57577B774FA95FEB5BBD6B3E5321 +7B5072C2684677FF773665F751B54E8F76D45CBF7AA58475594E9B4150800000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +40 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000998861276E8357646606634656F062EC62695ED39614578362C955878721 +814A8FA3556683B167658D5684DD5A6A680F62E67BEE961151706F9C8C3063FD +89C861D27F0670C26EE57405699472FC5ECA90CE67176D6A635E52B372628001 +4F6C59E5916A70D96D9D52D24E5096F7956D857E78CA7D2F5121579264C2808B +7C7B6CEA68F1695E51B7539868A872819ECE7BF172F879BB6F137406674E91CC +9CA4793C83898354540F68174E3D538952B1783E5386522950884F8B4FD00000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +41 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000075E27ACB7C926CA596B6529B748354E94FE9805483B28FDE95705EC9601C +6D9F5E18655B813894FE604B70BC7EC37CAE51C968817CB1826F4E248F8691CF +667E4EAE8C0564A9804A50DA759771CE5BE58FBD6F664E86648295635ED66599 +521788C270C852A3730E7433679778F797164E3490BB9CDE6DCB51DB8D41541D +62CE73B283F196F69F8494C34F367F9A51CC707596755CAD988653E64EE46E9C +740969B4786B998F7559521876246D4167F3516D9F99804B54997B3C7ABF0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +42 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009686578462E29647697C5A0464027BD36F0F964B82A6536298855E907089 +63B35364864F9C819E93788C97328DEF8D429E7F6F5E79845F559646622E9A74 +541594DD4FA365C55C655C617F1586516C2F5F8B73876EE47EFF5CE6631B5B6A +6EE653754E7163A0756562A18F6E4F264ED16CA67EB68BBA841D87BA7F57903B +95237BA99AA188F8843D6D1B9A867EDC59889EBB739B780186829A6C9A82561B +541757CB4E709EA653568FC881097792999286EE6EE1851366FC61626F2B0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +43 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008C298292832B76F26C135FD983BD732B8305951A6BDB77DB94C6536F8302 +51925E3D8C8C8D384E4873AB679A68859176970971646CA177095A9295416BCF +7F8E66275BD059B95A9A95E895F74EEC840C84996AAC76DF9530731B68A65B5F +772F919A97617CDC8FF78C1C5F257C7379D889C56CCC871C5BC65E4268C97720 +7EF55195514D52C95A297F05976282D763CF778485D079D26E3A5E9959998511 +706D6C1162BF76BF654F60AF95FD660E879F9E2394ED540D547D8C2C64780000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +44 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000647986116A21819C78E864699B5462B9672B83AB58A89ED86CAB6F205BDE +964C8C0B725F67D062C772614EA959C66BCD589366AE5E5552DF6155672876EE +776672677A4662FF54EA545094A090A35A1C7EB36C164E435976801059485357 +753796BE56CA63208111607C95F96DD65462998151855AE980FD59AE9713502A +6CE55C3C62DF4F60533F817B90066EBA852B62C85E7478BE64B5637B5FF55A18 +917F9E1F5C3F634F80425B7D556E954A954D6D8560A867E072DE51DD5B810000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +45 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000062E76CDE725B626D94AE7EBD81136D53519C5F04597452AA601259736696 +8650759F632A61E67CEF8BFA54E66B279E256BB485D5545550766CA4556A8DB4 +722C5E156015743662CD6392724C5F986E436D3E65006F5876D878D076FC7554 +522453DB4E535E9E65C1802A80D6629B5486522870AE888D8DD16CE1547880DA +57F988F48D54966A914D4F696C9B55B776C6783062A870F96F8E5F6D84EC68DA +787C7BF781A8670B9E4F636778B0576F78129739627962AB528874356BD70000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +46 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005564813E75B276AE533975DE50FB5C418B6C7BC7504F72479A9798D86F02 +74E27968648777A562FC98918D2B54C180584E52576A82F9840D5E7351ED74F6 +8BC45C4F57616CFC98875A4678349B448FEB7C955256625194FA4EC683868461 +83E984B257D467345703666E6D668C3166DD7011671F6B3A6816621A59BB4E03 +51C46F0667D26C8F517668CB59476B6775665D0E81109F5065D7794879419A91 +8D775C824E5E4F01542F5951780C56686C148FC45F036C7D6CE38BAB63900000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +47 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000060706D3D72756266948E94C553438FC17B7E4EDF8C264E7E9ED494B194B3 +524D6F5C90636D458C3458115D4C6B206B4967AA545B81547F8C589985375F3A +62A26A47953965726084686577A74E544FA85DE7979864AC7FD85CED4FCF7A8D +520783044E14602F7A8394A64FB54EB279E6743452E482B964D279BD5BDD6C81 +97528F7B6C22503E537F6E0564CE66746C3060C598778BF75E86743C7A7779CB +4E1890B174036C4256DA914B6CC58D8B533A86C666F28EAF5C489A716E200000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +48 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000053D65A369F8B8DA353BB570898A76743919B6CC9516875CA62F372AC5238 +529D7F3A7094763853749E4A69B7786E96C088D97FA4713671C3518967D374E4 +58E4651856B78BA9997662707ED560F970ED58EC4EC14EBA5FCD97E74EFB8BA4 +5203598A7EAB62544ECD65E5620E833884C98363878D71946EB65BB97ED25197 +63C967D480898339881551125B7A59828FB14E736C5D516589258F6F962E854A +745E951095F06DA682E55F3164926D128428816E9CC3585E8D5B4E0953C10000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +49 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004F1E6563685155D34E2764149A9A626B5AC2745F82726DA968EE50E7838E +7802674052396C997EB150BB5565715E7B5B665273CA82EB67495C715220717D +886B95EA965564C58D6181B355846C5562477F2E58924F2455468D4F664C4E0A +5C1A88F368A2634E7A0D70E7828D52FA97F65C1154E890B57ECD59628D4A86C7 +820C820D8D6664445C0461516D89793E8BBE78377533547B4F388EAB6DF15A20 +7EC5795E6C885BA15A76751A80BE614E6E1758F0751F7525727253477EF30000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000770176DB526980DC57235E08593172EE65BD6E7F8BD75C388671534177F3 +62FE65F64EC098DF86805B9E8BC653F277E24F7F5C4E9A7659CB5F0F793A58EB +4E1667FF4E8B62ED8A93901D52BF662F55DC566C90024ED54F8D91CA99706C0F +5E0260435BA489C68BD56536624B99965B885BFF6388552E53D77626517D852C +67A268B36B8A62928F9353D482126DD1758F4E668D4E5B70719F85AF669166D9 +7F7287009ECD9F205C5E672F8FF06811675F620D7AD658855EB665706F310000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000060555237800D6454887075295E05681362F4971C53CC723D8C016C347761 +7A0E542E77AC987A821C8BF47855671470C165AF64955636601D79C153F84E1D +6B7B80865BFA55E356DB4F3A4F3C99725DF3677E80386002988290015B8B8BBC +8BF5641C825864DE55FD82CF91654FD77D20901F7C9F50F358516EAF5BBF8BC9 +80839178849C7B97867D968B968F7EE59AD3788E5C817A57904296A7795F5B59 +635F7B0B84D168AD55067F2974107D2295016240584C4ED65B83597958540000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000736D631E8E4B8E0F80CE82D462AC53F06CF0915E592A60016C70574D644A +8D2A762B6EE9575B6A8075F06F6D8C2D8C0857666BEF889278B363A253F970AD +6C645858642A580268E0819B55107CD650188EBA6DCC8D9F70EB638F6D9B6ED4 +7EE68404684390036DD896768BA85957727985E4817E75BC8A8A68AF52548E22 +951163D098988E44557C4F5366FF568F60D56D9552435C4959296DFB586B7530 +751C606C82148146631167618FE2773A8DF38D3494C15E165385542C70C30000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006C405EF7505C4EAD5EAD633A8247901A6850916E77B3540C94DC5F647AE5 +687663457B527EDF75DB507762955934900F51F879C37A8156FE5F9290146D82 +5C60571F541051546E4D56E263A89893817F8715892A9000541E5C6F81C062D6 +625881319E3596409A6E9A7C692D59A562D3553E631654C786D96D3C5A0374E6 +889C6B6A59168C4C5F2F6E7E73A9987D4E3870F75B8C7897633D665A769660CB +5B9B5A494E0781556C6A738B4EA167897F515F8065FA671B5FD859845A010000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005DCD5FAE537197E68FDD684556F4552F60DF4E3A6F4D7EF482C7840E59D4 +4F1F4F2A5C3E7EAC672A851A5473754F80C355829B4F4F4D6E2D8C135C096170 +536B761F6E29868A658795FB7EB9543B7A337D0A95EE55E17FC174EE631D8717 +6DA17A9D621165A1536763E16C835DEB545C94A84E4C6C618BEC5C4B65E0829C +68A7543E54346BCB6B664E9463425348821E4F0D4FAE575E620A96FE66647269 +52FF52A1609F8BEF661471996790897F785277FD6670563B54389521727A0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +4F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007A00606F5E0C6089819D591560DC718470EF6EAA6C5072806A8488AD5E2D +4E605AB3559C94E36D177CFB9699620F7EC6778E867E5323971E8F9666875CE1 +4FA072ED4E0B53A6590F54136380952851484ED99C9C7EA454B88D2488548237 +95F26D8E5F265ACC663E966973B0732E53BF817A99857FA15BAA967796507EBF +76F853A2957699997BB189446E584E617FD479658BE660F354CD4EAB98795DF7 +6A6150CF54118C618427785D9704524A54EE56A395006D885BB56DC666530000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +50 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005C0F5B5D6821809655787B11654869544E9B6B47874E978B534F631F643A +90AA659C80C18C10519968B0537887F961C86CC46CFB8C225C5185AA82AF950C +6B238F9B65B05FFB5FC34FE18845661F8165732960FA51745211578B5F6290A2 +884C91925E78674F602759D3514451F680F853086C7996C4718A4F114FEE7F9E +673D55C5950879C088967EE3589F620C9700865A5618987B5F908BB884C49157 +53D965ED5E8F755C60647D6E5A7F7EEA7EED8F6955A75BA360AC65CB73840000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +51 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009009766377297EDA9774859B5B667A7496EA884052CB718F5FAA65EC8BE2 +5BFB9A6F5DE16B896C5B8BAD8BAF900A8FC5538B62BC9E269E2D54404E2B82BD +7259869C5D1688596DAF96C554D14E9A8BB6710954BD960970DF6DF976D04E25 +781487125CA95EF68A00989C960E708E6CBF594463A9773C884D6F1482735830 +71D5538C781A96C155015F6671305BB48C1A9A8C6B83592E9E2F79E76768626C +4F6F75A17F8A6D0B96336C274EF075D2517B68376F3E90808170599674760000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +52 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000064475C2790657A918C2359DA54AC8200836F898180006930564E80367237 +91CE51B64E5F987563964E1A53F666F3814B591C6DB24E0058F9533B63D694F1 +4F9D4F0A886398905937905779FB4EEA80F075916C825B9C59E85F5D69058681 +501A5DF24E5977E34EE5827A6291661390915C794EBF5F7981C69038808475AB +4EA688D4610F6BC55FC64E4976CA6EA28BE38BAE8C0A8BD15F027FFC7FCC7ECE +8335836B56E06BB797F3963459FB541F94F66DEB5BC5996E5C395F1596900000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +53 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000537082F16A315A749E705E947F2883B984248425836787478FCE8D6276C8 +5F719896786C662054DF62E54F6381C375C85EB896CD8E0A86F9548F6CF36D8C +6C38607F52C775285E7D4F1860A05FE75C24753190AE94C072B96CB96E389149 +670953CB53F34F5191C98BF153C85E7C8FC26DE44E8E76C26986865E611A8206 +4F594FDE903E9C7C61096E1D6E1496854E885A3196E84E0E5C7F79B95B878BED +7FBD738957DF828B90C15401904755BB5CEA5FA161086B3272F180B28A890000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +54 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006D745BD388D598848C6B9A6D9E336E0A51A4514357A38881539F63F48F95 +56ED54585706733F6E907F188FDC82D1613F6028966266F07EA68D8A8DC394A5 +5CB37CA4670860A6960580184E9190E75300966851418FD08574915D665597F5 +5B55531D78386742683D54C9707E5BB08F7D518D572854B1651266828D5E8D43 +810F846C906D7CDF51FF85FB67A365E96FA186A48E81566A90207682707671E5 +8D2362E952196CFD8D3C600E589E618E66FE8D60624E55B36E23672D8F670000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +55 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000094E195F87728680569A8548B4E4D70B88BC86458658B5B857A84503A5BE8 +77BB6BE18A797C986CBE76CF65A98F975D2D5C5586386808536062187AD96E5B +7EFD6A1F7AE05F706F335F20638C6DA867564E085E108D264ED780C07634969C +62DB662D627E6CBC8D7571677F695146808753EC906E629854F286F08F998005 +951785178FD96D5973CD659F771F7504782781FB8D1E94884FA6679575B98BCA +9707632F9547963584B8632377415F8172F04E896014657462EF6B63653F0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +56 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005E2775C790D18BC1829D679D652F5431871877E580A281026C414E4B7EC7 +804C76F4690D6B966267503C4F84574063076B628DBE53EA65E87EB85FD7631A +63B781F381F47F6E5E1C5CD95236667A79E97A1A8D28709975D46EDE6CBB7A92 +4E2D76C55FE0949F88777EC879CD80BF91CD4EF24F17821F54685DDE6D328BCC +7CA58F7480985E1A549276B15B99663C9AA473E0682A86DB6731732A8BF88BDB +90107AF970DB716E62C477A956314E3B845767F152A986C08D2E94F87B510000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +57 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004F4F6CE8795D9A7B6293722A62FD4E1378168F6C64B08D5A7BC668695E84 +88C55986649E58EE72B6690E95258FFD8D5857607F008C0651C6634962D95353 +684C74228301914C55447740707C6D4A517954A88D4459FF6ECB6DC45B5C7D2B +4ED47C7D6ED35B5081EA6E0D5B579B0368D58E2A5B977EFC603B7EB590B98D70 +594F63CD79DF8DB3535265CF79568BC5963B7EC494BB7E825634918967007F6A +5C0A907566285DE64F5067DE505A4F5C57505EA7000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +58 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004E8D4E0C51404E105EFF53454E154E984E1E9B325B6C56694E2879BA4E3F +53154E47592D723B536E6C1056DF80E499976BD3777E9F174E364E9F9F104E5C +4E694E9382885B5B556C560F4EC4538D539D53A353A553AE97658D5D531A53F5 +5326532E533E8D5C5366536352025208520E522D5233523F5240524C525E5261 +525C84AF527D528252815290529351827F544EBB4EC34EC94EC24EE84EE14EEB +4EDE4F1B4EF34F224F644EF54F254F274F094F2B4F5E4F6765384F5A4F5D0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +59 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00004F5F4F574F324F3D4F764F744F914F894F834F8F4F7E4F7B4FAA4F7C4FAC +4F944FE64FE84FEA4FC54FDA4FE34FDC4FD14FDF4FF85029504C4FF3502C500F +502E502D4FFE501C500C50255028507E504350555048504E506C507B50A550A7 +50A950BA50D6510650ED50EC50E650EE5107510B4EDD6C3D4F584F654FCE9FA0 +6C467C74516E5DFD9EC999985181591452F9530D8A07531051EB591951554EA0 +51564EB3886E88A44EB5811488D279805B3488037FB851AB51B151BD51BC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000051C7519651A251A58BA08BA68BA78BAA8BB48BB58BB78BC28BC38BCB8BCF +8BCE8BD28BD38BD48BD68BD88BD98BDC8BDF8BE08BE48BE88BE98BEE8BF08BF3 +8BF68BF98BFC8BFF8C008C028C048C078C0C8C0F8C118C128C148C158C168C19 +8C1B8C188C1D8C1F8C208C218C258C278C2A8C2B8C2E8C2F8C328C338C358C36 +5369537A961D962296219631962A963D963C964296499654965F9667966C9672 +96749688968D969796B09097909B909D909990AC90A190B490B390B690BA0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000090B890B090CF90C590BE90D090C490C790D390E690E290DC90D790DB90EB +90EF90FE91049122911E91239131912F913991439146520D594252A252AC52AD +52BE54FF52D052D652F053DF71EE77CD5EF451F551FC9B2F53B65F01755A5DEF +574C57A957A1587E58BC58C558D15729572C572A57335739572E572F575C573B +574257695785576B5786577C577B5768576D5776577357AD57A4578C57B257CF +57A757B4579357A057D557D857DA57D957D257B857F457EF57F857E457DD0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000580B580D57FD57ED5800581E5819584458205865586C58815889589A5880 +99A89F1961FF8279827D827F828F828A82A88284828E82918297829982AB82B8 +82BE82B082C882CA82E3829882B782AE82CB82CC82C182A982B482A182AA829F +82C482CE82A482E1830982F782E4830F830782DC82F482D282D8830C82FB82D3 +8311831A83068314831582E082D5831C8351835B835C83088392833C83348331 +839B835E832F834F83478343835F834083178360832D833A8333836683650000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008368831B8369836C836A836D836E83B0837883B383B483A083AA8393839C +8385837C83B683A9837D83B8837B8398839E83A883BA83BC83C1840183E583D8 +58078418840B83DD83FD83D6841C84388411840683D483DF840F840383F883F9 +83EA83C583C0842683F083E1845C8451845A8459847384878488847A84898478 +843C844684698476848C848E8431846D84C184CD84D084E684BD84D384CA84BF +84BA84E084A184B984B4849784E584E3850C750D853884F08539851F853A0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008556853B84FF84FC8559854885688564855E857A77A285438572857B85A4 +85A88587858F857985AE859C858585B985B785B085D385C185DC85FF86278605 +86298616863C5EFE5F08593C594180375955595A5958530F5C225C255C2C5C34 +624C626A629F62BB62CA62DA62D762EE632262F66339634B634363AD63F66371 +637A638E63B4636D63AC638A636963AE63BC63F263F863E063FF63C463DE63CE +645263C663BE64456441640B641B6420640C64266421645E6484646D64960000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +5F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000647A64B764B8649964BA64C064D064D764E464E265096525652E5F0B5FD2 +75195F11535F53F153FD53E953E853FB541254165406544B5452545354545456 +54435421545754595423543254825494547754715464549A549B548454765466 +549D54D054AD54C254B454D254A754A654D354D4547254A354D554BB54BF54CC +54D954DA54DC54A954AA54A454DD54CF54DE551B54E7552054FD551454F35522 +5523550F55115527552A5567558F55B55549556D55415555553F5550553C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +60 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005537555655755576557755335530555C558B55D2558355B155B955885581 +559F557E55D65591557B55DF55BD55BE5594559955EA55F755C9561F55D155EB +55EC55D455E655DD55C455EF55E555F255F355CC55CD55E855F555E48F94561E +5608560C56015624562355FE56005627562D565856395657562C564D56625659 +565C564C5654568656645671566B567B567C5685569356AF56D456D756DD56E1 +56F556EB56F956FF5704570A5709571C5E0F5E195E145E115E315E3B5E3C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +61 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00005E375E445E545E5B5E5E5E615C8C5C7A5C8D5C905C965C885C985C995C91 +5C9A5C9C5CB55CA25CBD5CAC5CAB5CB15CA35CC15CB75CC45CD25CE45CCB5CE5 +5D025D035D275D265D2E5D245D1E5D065D1B5D585D3E5D345D3D5D6C5D5B5D6F +5D5D5D6B5D4B5D4A5D695D745D825D995D9D8C735DB75DC55F735F775F825F87 +5F895F8C5F955F995F9C5FA85FAD5FB55FBC88625F6172AD72B072B472B772B8 +72C372C172CE72CD72D272E872EF72E972F272F472F7730172F3730372FA0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +62 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000072FB731773137321730A731E731D7315732273397325732C733873317350 +734D73577360736C736F737E821B592598E7592459029963996799689969996A +996B996C99749977997D998099849987998A998D999099919993999499955E80 +5E915E8B5E965EA55EA05EB95EB55EBE5EB38D535ED25ED15EDB5EE85EEA81BA +5FC45FC95FD65FCF60035FEE60045FE15FE45FFE600560065FEA5FED5FF86019 +60356026601B600F600D6029602B600A603F602160786079607B607A60420000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +63 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000606A607D6096609A60AD609D60836092608C609B60EC60BB60B160DD60D8 +60C660DA60B4612061266115612360F46100610E612B614A617561AC619461A7 +61B761D461F55FDD96B395E995EB95F195F395F595F695FC95FE960396049606 +9608960A960B960C960D960F96129615961696179619961A4E2C723F62156C35 +6C546C5C6C4A6CA36C856C906C946C8C6C686C696C746C766C866CA96CD06CD4 +6CAD6CF76CF86CF16CD76CB26CE06CD66CFA6CEB6CEE6CB16CD36CEF6CFE0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +64 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006D396D276D0C6D436D486D076D046D196D0E6D2B6D4D6D2E6D356D1A6D4F +6D526D546D336D916D6F6D9E6DA06D5E6D936D946D5C6D606D7C6D636E1A6DC7 +6DC56DDE6E0E6DBF6DE06E116DE66DDD6DD96E166DAB6E0C6DAE6E2B6E6E6E4E +6E6B6EB26E5F6E866E536E546E326E256E446EDF6EB16E986EE06F2D6EE26EA5 +6EA76EBD6EBB6EB76ED76EB46ECF6E8F6EC26E9F6F626F466F476F246F156EF9 +6F2F6F366F4B6F746F2A6F096F296F896F8D6F8C6F786F726F7C6F7A6FD10000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +65 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00006FC96FA76FB96FB66FC26FE16FEE6FDE6FE06FEF701A7023701B70397035 +704F705E5B805B845B955B935BA55BB8752F9A9E64345BE45BEE89305BF08E47 +8B078FB68FD38FD58FE58FEE8FE48FE98FE68FF38FE890059004900B90269011 +900D9016902190359036902D902F9044905190529050906890589062905B66B9 +9074907D908290889083908B5F505F575F565F585C3B54AB5C505C595B715C63 +5C667FBC5F2A5F295F2D82745F3C9B3B5C6E59815983598D59A959AA59A30000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +66 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000599759CA59AB599E59A459D259B259AF59D759BE5A055A0659DD5A0859E3 +59D859F95A0C5A095A325A345A115A235A135A405A675A4A5A555A3C5A625A75 +80EC5AAA5A9B5A775A7A5ABE5AEB5AB25AD25AD45AB85AE05AE35AF15AD65AE6 +5AD85ADC5B095B175B165B325B375B405C155C1C5B5A5B655B735B515B535B62 +9A759A779A789A7A9A7F9A7D9A809A819A859A889A8A9A909A929A939A969A98 +9A9B9A9C9A9D9A9F9AA09AA29AA39AA59AA77E9F7EA17EA37EA57EA87EA90000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +67 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007EAD7EB07EBE7EC07EC17EC27EC97ECB7ECC7ED07ED47ED77EDB7EE07EE1 +7EE87EEB7EEE7EEF7EF17EF27F0D7EF67EFA7EFB7EFE7F017F027F037F077F08 +7F0B7F0C7F0F7F117F127F177F197F1C7F1B7F1F7F217F227F237F247F257F26 +7F277F2A7F2B7F2C7F2D7F2F7F307F317F327F337F355E7A757F5DDB753E9095 +738E739173AE73A2739F73CF73C273D173B773B373C073C973C873E573D9987C +740A73E973E773DE73BA73F2740F742A745B7426742574287430742E742C0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +68 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000741B741A7441745C7457745574597477746D747E749C748E748074817487 +748B749E74A874A9749074A774D274BA97EA97EB97EC674C6753675E67486769 +67A56787676A6773679867A7677567A8679E67AD678B6777677C67F0680967D8 +680A67E967B0680C67D967B567DA67B367DD680067C367B867E2680E67C167FD +6832683368606861684E6862684468646883681D68556866684168676840683E +684A6849682968B5688F687468776893686B68C2696E68FC691F692068F90000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +69 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000692468F0690B6901695768E369106971693969606942695D6984696B6980 +69986978693469CC6987698869CE6989696669636979699B69A769BB69AB69AD +69D469B169C169CA69DF699569E0698D69FF6A2F69ED6A176A186A6569F26A44 +6A3E6AA06A506A5B6A356A8E6A796A3D6A286A586A7C6A916A906AA96A976AAB +733773526B816B826B876B846B926B936B8D6B9A6B9B6BA16BAA8F6B8F6D8F71 +8F728F738F758F768F788F778F798F7A8F7C8F7E8F818F828F848F878F8B0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6A +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00008F8D8F8E8F8F8F988F9A8ECE620B6217621B621F6222622162256224622C +81E774EF74F474FF750F75117513653465EE65EF65F0660A6619677266036615 +6600708566F7661D66346631663666358006665F66546641664F665666616657 +66776684668C66A7669D66BE66DB66DC66E666E98D328D338D368D3B8D3D8D40 +8D458D468D488D498D478D4D8D558D5989C789CA89CB89CC89CE89CF89D089D1 +726E729F725D7266726F727E727F7284728B728D728F72926308633263B00000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6B +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000643F64D880046BEA6BF36BFD6BF56BF96C056C076C066C0D6C156C186C19 +6C1A6C216C296C246C2A6C3265356555656B724D72527256723086625216809F +809C809380BC670A80BD80B180AB80AD80B480B780E780E880E980EA80DB80C2 +80C480D980CD80D7671080DD80EB80F180F480ED810D810E80F280FC67158112 +8C5A8136811E812C811881328148814C815381748159815A817181608169817C +817D816D8167584D5AB58188818281916ED581A381AA81CC672681CA81BB0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6C +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000081C181A66B246B376B396B436B466B5998D198D298D398D598D998DA6BB3 +5F406BC289F365909F51659365BC65C665C465C365CC65CE65D265D67080709C +7096709D70BB70C070B770AB70B170E870CA711071137116712F71317173715C +716871457172714A7178717A719871B371B571A871A071E071D471E771F9721D +7228706C7118716671B9623E623D624362486249793B794079467949795B795C +7953795A796279577960796F7967797A7985798A799A79A779B35FD15FD00000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6D +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000603C605D605A606760416059606360AB6106610D615D61A9619D61CB61D1 +62068080807F6C936CF66DFC77F677F87800780978177818781165AB782D781C +781D7839783A783B781F783C7825782C78237829784E786D7856785778267850 +7847784C786A789B7893789A7887789C78A178A378B278B978A578D478D978C9 +78EC78F2790578F479137924791E79349F9B9EF99EFB9EFC76F17704770D76F9 +77077708771A77227719772D7726773577387750775177477743775A77680000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6E +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000077627765777F778D777D7780778C7791779F77A077B077B577BD753A7540 +754E754B7548755B7572757975837F587F617F5F8A487F687F747F717F797F81 +7F7E76CD76E58832948594869487948B948A948C948D948F9490949494979495 +949A949B949C94A394A494AB94AA94AD94AC94AF94B094B294B494B694B794B8 +94B994BA94BC94BD94BF94C494C894C994CA94CB94CC94CD94CE94D094D194D2 +94D594D694D794D994D894DB94DE94DF94E094E294E494E594E794E894EA0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +6F +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000094E994EB94EE94EF94F394F494F594F794F994FC94FD94FF950395029506 +95079509950A950D950E950F951295139514951595169518951B951D951E951F +9522952A952B9529952C953195329534953695379538953C953E953F95429535 +9544954595469549954C954E954F9552955395549556955795589559955B955E +955F955D95619562956495659566956795689569956A956B956C956F95719572 +9573953A77E777EC96C979D579ED79E379EB7A065D477A037A027A1E7A140000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +70 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007A397A377A519ECF99A57A707688768E7693769976A474DE74E0752C9E20 +9E229E289E299E2A9E2B9E2C9E329E319E369E389E379E399E3A9E3E9E419E42 +9E449E469E479E489E499E4B9E4C9E4E9E519E559E579E5A9E5B9E5C9E5E9E63 +9E669E679E689E699E6A9E6B9E6C9E719E6D9E7375927594759675A0759D75AC +75A375B375B475B875C475B175B075C375C275D675CD75E375E875E675E475EB +75E7760375F175FC75FF761076007605760C7617760A76257618761576190000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +71 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000761B763C762276207640762D7630763F76357643763E7633764D765E7654 +765C7656766B766F7FCA7AE67A787A797A807A867A887A957AA67AA07AAC7AA8 +7AAD7AB3886488698872887D887F888288A288C688B788BC88C988E288CE88E3 +88E588F1891A88FC88E888FE88F0892189198913891B890A8934892B89368941 +8966897B758B80E576B276B477DC801280148016801C80208022802580268027 +802980288031800B803580438046804D80528069807189839878988098830000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +72 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009889988C988D988F9894989A989B989E989F98A198A298A598A6864D8654 +866C866E867F867A867C867B86A8868D868B86AC869D86A786A386AA869386A9 +86B686C486B586CE86B086BA86B186AF86C986CF86B486E986F186F286ED86F3 +86D0871386DE86F486DF86D886D18703870786F88708870A870D87098723873B +871E8725872E871A873E87488734873187298737873F87828722877D877E877B +87608770874C876E878B87538763877C876487598765879387AF87A887D20000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +73 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000087C68788878587AD8797878387AB87E587AC87B587B387CB87D387BD87D1 +87C087CA87DB87EA87E087EE8816881387FE880A881B88218839883C7F367F42 +7F447F4582107AFA7AFD7B087B037B047B157B0A7B2B7B0F7B477B387B2A7B19 +7B2E7B317B207B257B247B337B3E7B1E7B587B5A7B457B757B4C7B5D7B607B6E +7B7B7B627B727B717B907BA67BA77BB87BAC7B9D7BA87B857BAA7B9C7BA27BAB +7BB47BD17BC17BCC7BDD7BDA7BE57BE67BEA7C0C7BFE7BFC7C0F7C167C0B0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +74 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00007C1F7C2A7C267C387C417C4081FE82018202820481EC8844822182228223 +822D822F8228822B8238823B82338234823E82448249824B824F825A825F8268 +887E8885888888D888DF895E7F9D7F9F7FA77FAF7FB07FB27C7C65497C917C9D +7C9C7C9E7CA27CB27CBC7CBD7CC17CC77CCC7CCD7CC87CC57CD77CE8826E66A8 +7FBF7FCE7FD57FE57FE17FE67FE97FEE7FF37CF87D777DA67DAE7E477E9B9EB8 +9EB48D738D848D948D918DB18D678D6D8C478C49914A9150914E914F91640000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +75 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009162916191709169916F917D917E917291749179918C91859190918D9191 +91A291A391AA91AD91AE91AF91B591B491BA8C559E7E8DB88DEB8E058E598E69 +8DB58DBF8DBC8DBA8DC48DD68DD78DDA8DDE8DCE8DCF8DDB8DC68DEC8DF78DF8 +8DE38DF98DFB8DE48E098DFD8E148E1D8E1F8E2C8E2E8E238E2F8E3A8E408E39 +8E358E3D8E318E498E418E428E518E528E4A8E708E768E7C8E6F8E748E858E8F +8E948E908E9C8E9E8C788C828C8A8C858C988C94659B89D689DE89DA89DC0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +76 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +000089E589EB89EF8A3E8B26975396E996F396EF970697019708970F970E972A +972D9730973E9F809F839F859F869F879F889F899F8A9F8C9EFE9F0B9F0D96B9 +96BC96BD96CE96D277BF96E0928E92AE92C8933E936A93CA938F943E946B9C7F +9C829C859C869C879C887A239C8B9C8E9C909C919C929C949C959C9A9C9B9C9E +9C9F9CA09CA19CA29CA39CA59CA69CA79CA89CA99CAB9CAD9CAE9CB09CB19CB2 +9CB39CB49CB59CB69CB79CBA9CBB9CBC9CBD9CC49CC59CC69CC79CCA9CCB0000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +77 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +00009CCC9CCD9CCE9CCF9CD09CD39CD49CD59CD79CD89CD99CDC9CDD9CDF9CE2 +977C978597919792979497AF97AB97A397B297B49AB19AB09AB79E589AB69ABA +9ABC9AC19AC09AC59AC29ACB9ACC9AD19B459B439B479B499B489B4D9B5198E8 +990D992E995599549ADF9AE19AE69AEF9AEB9AFB9AED9AF99B089B0F9B139B1F +9B239EBD9EBE7E3B9E829E879E889E8B9E9293D69E9D9E9F9EDB9EDC9EDD9EE0 +9EDF9EE29EE99EE79EE59EEA9EEF9F229F2C9F2F9F399F379F3D9F3E9F440000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 diff --git a/shared/package-files/ec/ec12f1e249fdcb98a981f654599e32fcc2c450d817e8c4390f20f0b21849c553/blob b/shared/package-files/ec/ec12f1e249fdcb98a981f654599e32fcc2c450d817e8c4390f20f0b21849c553/blob new file mode 100644 index 0000000000000000000000000000000000000000..ff11968db15f0f7c6057a46c252a91daee7b9cd9 --- /dev/null +++ b/shared/package-files/ec/ec12f1e249fdcb98a981f654599e32fcc2c450d817e8c4390f20f0b21849c553/blob @@ -0,0 +1,9 @@ +from pandas.io.parsers.readers import ( + TextFileReader, + TextParser, + read_csv, + read_fwf, + read_table, +) + +__all__ = ["TextFileReader", "TextParser", "read_csv", "read_fwf", "read_table"] diff --git a/shared/package-files/ec/ec14762d48c4d8c10b3f77d5f4e647f6d5da929b30f1042e981162fc28cc5345/blob b/shared/package-files/ec/ec14762d48c4d8c10b3f77d5f4e647f6d5da929b30f1042e981162fc28cc5345/blob new file mode 100644 index 0000000000000000000000000000000000000000..1e57b3291a8f4be47902a1c4c26c1a41d1f43297 --- /dev/null +++ b/shared/package-files/ec/ec14762d48c4d8c10b3f77d5f4e647f6d5da929b30f1042e981162fc28cc5345/blob @@ -0,0 +1,67 @@ +{{py: + +implementation_specific_values = [ + # Values are the following ones: + # + # name_suffix, INPUT_DTYPE_t, INPUT_DTYPE + ('64', 'DistanceMetric64', 'float64_t'), + ('32', 'DistanceMetric32', 'float32_t') +] + +}} +from ...utils._typedefs cimport float64_t, float32_t, int32_t, intp_t +from ...metrics._dist_metrics cimport DistanceMetric64, DistanceMetric32, DistanceMetric + +{{for name_suffix, DistanceMetric, INPUT_DTYPE_t in implementation_specific_values}} + + +cdef class DatasetsPair{{name_suffix}}: + cdef: + {{DistanceMetric}} distance_metric + intp_t n_features + + cdef intp_t n_samples_X(self) noexcept nogil + + cdef intp_t n_samples_Y(self) noexcept nogil + + cdef float64_t dist(self, intp_t i, intp_t j) noexcept nogil + + cdef float64_t surrogate_dist(self, intp_t i, intp_t j) noexcept nogil + + +cdef class DenseDenseDatasetsPair{{name_suffix}}(DatasetsPair{{name_suffix}}): + cdef: + const {{INPUT_DTYPE_t}}[:, ::1] X + const {{INPUT_DTYPE_t}}[:, ::1] Y + + +cdef class SparseSparseDatasetsPair{{name_suffix}}(DatasetsPair{{name_suffix}}): + cdef: + const {{INPUT_DTYPE_t}}[:] X_data + const int32_t[::1] X_indices + const int32_t[::1] X_indptr + + const {{INPUT_DTYPE_t}}[:] Y_data + const int32_t[::1] Y_indices + const int32_t[::1] Y_indptr + + +cdef class SparseDenseDatasetsPair{{name_suffix}}(DatasetsPair{{name_suffix}}): + cdef: + const {{INPUT_DTYPE_t}}[:] X_data + const int32_t[::1] X_indices + const int32_t[::1] X_indptr + + const {{INPUT_DTYPE_t}}[:] Y_data + const int32_t[::1] Y_indices + intp_t n_Y + + +cdef class DenseSparseDatasetsPair{{name_suffix}}(DatasetsPair{{name_suffix}}): + cdef: + # As distance metrics are commutative, we can simply rely + # on the implementation of SparseDenseDatasetsPair and + # swap arguments. + DatasetsPair{{name_suffix}} datasets_pair + +{{endfor}} diff --git a/shared/package-files/ec/ec155158ef014dede1be26e803c57f996297f888ab6432da3a8ccdfc8bb38618/blob b/shared/package-files/ec/ec155158ef014dede1be26e803c57f996297f888ab6432da3a8ccdfc8bb38618/blob new file mode 100644 index 0000000000000000000000000000000000000000..37e3d1544cd176438b1173627b819f58a747e2a9 --- /dev/null +++ b/shared/package-files/ec/ec155158ef014dede1be26e803c57f996297f888ab6432da3a8ccdfc8bb38618/blob @@ -0,0 +1,133 @@ +import warnings +from typing import Callable, Iterable, Optional, Union + +import torch +import torch.distributed as dist +import torch.nn as nn +from torch.distributed._composable.contract import contract +from torch.distributed._composable_state import _get_module_state, _insert_module_state +from torch.distributed.fsdp._common_utils import _FSDPState +from torch.distributed.fsdp._dynamo_utils import _annotate_modules_for_dynamo + +from torch.distributed.fsdp._init_utils import ( + _init_buffer_state, + _init_core_state, + _init_device_handle, + _init_ignored_module_states, + _init_param_handle_from_module, + _init_prefetching_state, + _init_process_group_state, + _init_runtime_state, + _init_state_dict_state, + HYBRID_SHARDING_STRATEGIES, +) +from torch.distributed.fsdp._runtime_utils import ( + _register_post_forward_hook, + _register_pre_forward_hook, + _register_root_pre_forward_hook, +) +from torch.distributed.fsdp._state_dict_utils import _register_all_state_dict_hooks +from torch.distributed.fsdp._wrap_utils import _auto_wrap +from torch.distributed.fsdp.api import ( + BackwardPrefetch, + CPUOffload, + MixedPrecision, + ShardingStrategy, +) +from torch.distributed.fsdp.wrap import _Policy + + +@contract(state_cls=_FSDPState) +def fully_shard( + module: nn.Module, + *, + process_group: Optional[dist.ProcessGroup] = None, + policy: Optional[_Policy] = None, + strategy: Optional[ShardingStrategy] = None, + mixed_precision: Optional[MixedPrecision] = None, + cpu_offload: Optional[CPUOffload] = None, + ignored_modules: Optional[Iterable[torch.nn.Module]] = None, + device_id: Optional[Union[int, torch.device]] = None, + param_init_fn: Optional[Callable[[nn.Module], None]] = None, + sync_module_states: bool = False, + forward_prefetch: bool = False, + ignored_states: Union[ + Optional[Iterable[torch.nn.Parameter]], Optional[Iterable[torch.nn.Module]] + ] = None, +) -> nn.Module: + """ + Applies ``FullyShardedDataParallel` (FSDP) semantics to ``module``. + """ + warnings.warn( + "``torch.distributed._composable.fully_shard`` is being deprecated." + "You can contintue to use the wrapper based FSDP." + "See usage in: https://github.com/pytorch/pytorch/blob/main/torch/distributed/fsdp/fully_sharded_data_parallel.py." + "``torch.distributed._composable.fully_shard`` will be removed after PyTorch 2.5." + ) + + torch._C._log_api_usage_once("torch.distributed.fully_shard") + # Enforce the new auto wrap policy + if policy is not None and not isinstance(policy, _Policy): + raise ValueError(f"Expects a `_Policy` but got {policy}") + state = fully_shard.state(module) + state = _init_ignored_module_states(state, module, ignored_modules, ignored_states) + state = _init_device_handle(state, module, state._ignored_params, device_id) + _annotate_modules_for_dynamo(module, state._ignored_modules, True) + state = _init_process_group_state(state, process_group, strategy, policy) + if policy is not None: + root_kwargs = { + "process_group": process_group, + "strategy": strategy, + "mixed_precision": mixed_precision, + "cpu_offload": cpu_offload, + "ignored_modules": ignored_modules, + "device_id": device_id, + "param_init_fn": param_init_fn, + "sync_module_states": sync_module_states, + "forward_prefetch": forward_prefetch, + "ignored_states": ignored_states, + } + if strategy in HYBRID_SHARDING_STRATEGIES: + root_kwargs["process_group"] = (state.process_group, state._inter_node_pg) + _auto_wrap( + module, + policy, + state._ignored_modules, + state._ignored_params, + root_kwargs, + fully_shard, + ) + state = _init_core_state( + state, + strategy or ShardingStrategy.FULL_SHARD, + mixed_precision, + cpu_offload, + limit_all_gathers=True, + use_orig_params=True, + backward_prefetch_limit=1, + forward_prefetch_limit=1, + ) + state = _init_runtime_state(state) + state = _init_prefetching_state( + state, BackwardPrefetch.BACKWARD_PRE, forward_prefetch=forward_prefetch + ) + state = _init_buffer_state(state, module) + state = _init_param_handle_from_module( + state, module, device_id, param_init_fn, sync_module_states + ) + state = _init_state_dict_state(state) + _register_all_state_dict_hooks(state) + _register_pre_forward_hook(state, module) + _register_post_forward_hook(state, module) + _register_root_pre_forward_hook(state, module) # prepend last + # Always insert the state for the passed-in module even if it has no + # managed parameters, in which case it has no handles and does not appear + # in `_fully_sharded_module_to_handles` + _insert_module_state(module, state) + for submodule in module.modules(): + if ( + submodule in state._fully_sharded_module_to_handle + and _get_module_state(submodule) is None + ): + _insert_module_state(submodule, state) + return module diff --git a/shared/package-files/ec/ec17ce32921fdd7dbb992b66446052c07a36440d97be079a0d69576eaf69335f/blob b/shared/package-files/ec/ec17ce32921fdd7dbb992b66446052c07a36440d97be079a0d69576eaf69335f/blob new file mode 100644 index 0000000000000000000000000000000000000000..806e108437c6b578d888da3c02051172513ce3f7 --- /dev/null +++ b/shared/package-files/ec/ec17ce32921fdd7dbb992b66446052c07a36440d97be079a0d69576eaf69335f/blob @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cpu { + +TORCH_API at::Tensor mish(const at::Tensor & self); +TORCH_API at::Tensor & mish_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & mish_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & mish_(at::Tensor & self); + +} // namespace cpu +} // namespace at diff --git a/shared/package-files/ec/ec185c92770ba6f075bf539588f8dac975be80c2034b22771d673c82110d8018/blob b/shared/package-files/ec/ec185c92770ba6f075bf539588f8dac975be80c2034b22771d673c82110d8018/blob new file mode 100644 index 0000000000000000000000000000000000000000..36feaffb200b655bd452ff822ae7af5149bc2670 --- /dev/null +++ b/shared/package-files/ec/ec185c92770ba6f075bf539588f8dac975be80c2034b22771d673c82110d8018/blob @@ -0,0 +1,15 @@ +#pragma once + +#include + +#include + +namespace torch::jit { + +using PrintHandler = void (*)(const std::string&); + +TORCH_API PrintHandler getDefaultPrintHandler(); +TORCH_API PrintHandler getPrintHandler(); +TORCH_API void setPrintHandler(PrintHandler ph); + +} // namespace torch::jit diff --git a/shared/package-files/ec/ec1bbe2ae56f2ee099b508c18ba64ffb6b039ab378ea2b14b41c8ecddfa91cbc/blob b/shared/package-files/ec/ec1bbe2ae56f2ee099b508c18ba64ffb6b039ab378ea2b14b41c8ecddfa91cbc/blob new file mode 100644 index 0000000000000000000000000000000000000000..816fe5512edc4a142380c3d84bc59a030e1168ff --- /dev/null +++ b/shared/package-files/ec/ec1bbe2ae56f2ee099b508c18ba64ffb6b039ab378ea2b14b41c8ecddfa91cbc/blob @@ -0,0 +1,1217 @@ +""" +Testing for the partial dependence module. +""" + +import re +import warnings + +import numpy as np +import pytest + +import sklearn +from sklearn.base import BaseEstimator, ClassifierMixin, clone, is_regressor +from sklearn.cluster import KMeans +from sklearn.compose import make_column_transformer +from sklearn.datasets import load_iris, make_classification, make_regression +from sklearn.dummy import DummyClassifier +from sklearn.ensemble import ( + GradientBoostingClassifier, + GradientBoostingRegressor, + HistGradientBoostingClassifier, + HistGradientBoostingRegressor, + RandomForestRegressor, +) +from sklearn.exceptions import NotFittedError +from sklearn.impute import SimpleImputer +from sklearn.inspection import partial_dependence +from sklearn.inspection._partial_dependence import ( + _grid_from_X, + _partial_dependence_brute, + _partial_dependence_recursion, +) +from sklearn.linear_model import LinearRegression, LogisticRegression, MultiTaskLasso +from sklearn.metrics import r2_score +from sklearn.pipeline import make_pipeline +from sklearn.preprocessing import ( + OneHotEncoder, + PolynomialFeatures, + RobustScaler, + StandardScaler, + scale, +) +from sklearn.tree import DecisionTreeRegressor +from sklearn.tree.tests.test_tree import assert_is_subtree +from sklearn.utils._testing import assert_allclose, assert_array_equal +from sklearn.utils.fixes import _IS_32BIT +from sklearn.utils.validation import check_random_state + +# toy sample +X = [[-2, -1], [-1, -1], [-1, -2], [1, 1], [1, 2], [2, 1]] +y = [-1, -1, -1, 1, 1, 1] + + +# (X, y), n_targets <-- as expected in the output of partial_dep() +binary_classification_data = (make_classification(n_samples=50, random_state=0), 1) +multiclass_classification_data = ( + make_classification( + n_samples=50, n_classes=3, n_clusters_per_class=1, random_state=0 + ), + 3, +) +regression_data = (make_regression(n_samples=50, random_state=0), 1) +multioutput_regression_data = ( + make_regression(n_samples=50, n_targets=2, random_state=0), + 2, +) + +# iris +iris = load_iris() + + +@pytest.mark.parametrize( + "Estimator, method, data", + [ + (GradientBoostingClassifier, "auto", binary_classification_data), + (GradientBoostingClassifier, "auto", multiclass_classification_data), + (GradientBoostingClassifier, "brute", binary_classification_data), + (GradientBoostingClassifier, "brute", multiclass_classification_data), + (GradientBoostingRegressor, "auto", regression_data), + (GradientBoostingRegressor, "brute", regression_data), + (DecisionTreeRegressor, "brute", regression_data), + (LinearRegression, "brute", regression_data), + (LinearRegression, "brute", multioutput_regression_data), + (LogisticRegression, "brute", binary_classification_data), + (LogisticRegression, "brute", multiclass_classification_data), + (MultiTaskLasso, "brute", multioutput_regression_data), + ], +) +@pytest.mark.parametrize("grid_resolution", (5, 10)) +@pytest.mark.parametrize("features", ([1], [1, 2])) +@pytest.mark.parametrize("kind", ("average", "individual", "both")) +@pytest.mark.parametrize("use_custom_values", [True, False]) +def test_output_shape( + Estimator, method, data, grid_resolution, features, kind, use_custom_values +): + # Check that partial_dependence has consistent output shape for different + # kinds of estimators: + # - classifiers with binary and multiclass settings + # - regressors + # - multi-task regressors + + est = Estimator() + if hasattr(est, "n_estimators"): + est.set_params(n_estimators=2) # speed-up computations + + # n_target corresponds to the number of classes (1 for binary classif) or + # the number of tasks / outputs in multi task settings. It's equal to 1 for + # classical regression_data. + (X, y), n_targets = data + n_instances = X.shape[0] + + custom_values = None + if use_custom_values: + grid_resolution = 5 + custom_values = {f: X[:grid_resolution, f] for f in features} + + est.fit(X, y) + result = partial_dependence( + est, + X=X, + features=features, + method=method, + kind=kind, + grid_resolution=grid_resolution, + custom_values=custom_values, + ) + pdp, axes = result, result["grid_values"] + + expected_pdp_shape = (n_targets, *[grid_resolution for _ in range(len(features))]) + expected_ice_shape = ( + n_targets, + n_instances, + *[grid_resolution for _ in range(len(features))], + ) + if kind == "average": + assert pdp.average.shape == expected_pdp_shape + elif kind == "individual": + assert pdp.individual.shape == expected_ice_shape + else: # 'both' + assert pdp.average.shape == expected_pdp_shape + assert pdp.individual.shape == expected_ice_shape + + expected_axes_shape = (len(features), grid_resolution) + assert axes is not None + assert np.asarray(axes).shape == expected_axes_shape + + +def test_grid_from_X(): + # tests for _grid_from_X: sanity check for output, and for shapes. + + # Make sure that the grid is a cartesian product of the input (it will use + # the unique values instead of the percentiles) + percentiles = (0.05, 0.95) + grid_resolution = 100 + is_categorical = [False, False] + X = np.asarray([[1, 2], [3, 4]]) + grid, axes = _grid_from_X(X, percentiles, is_categorical, grid_resolution, {}) + assert_array_equal(grid, [[1, 2], [1, 4], [3, 2], [3, 4]]) + assert_array_equal(axes, X.T) + + # test shapes of returned objects depending on the number of unique values + # for a feature. + rng = np.random.RandomState(0) + grid_resolution = 15 + + # n_unique_values > grid_resolution + X = rng.normal(size=(20, 2)) + grid, axes = _grid_from_X( + X, + percentiles, + is_categorical, + grid_resolution=grid_resolution, + custom_values={}, + ) + assert grid.shape == (grid_resolution * grid_resolution, X.shape[1]) + assert np.asarray(axes).shape == (2, grid_resolution) + assert grid.dtype == X.dtype + + # n_unique_values < grid_resolution, will use actual values + n_unique_values = 12 + X[n_unique_values - 1 :, 0] = 12345 + rng.shuffle(X) # just to make sure the order is irrelevant + grid, axes = _grid_from_X( + X, + percentiles, + is_categorical, + grid_resolution=grid_resolution, + custom_values={}, + ) + assert grid.shape == (n_unique_values * grid_resolution, X.shape[1]) + # axes is a list of arrays of different shapes + assert axes[0].shape == (n_unique_values,) + assert axes[1].shape == (grid_resolution,) + assert grid.dtype == X.dtype + + # Check that uses custom_range + X = rng.normal(size=(20, 2)) + X[n_unique_values - 1 :, 0] = 12345 + col_1_range = [0, 2, 3] + grid, axes = _grid_from_X( + X, + percentiles, + is_categorical=is_categorical, + grid_resolution=grid_resolution, + custom_values={1: col_1_range}, + ) + assert grid.shape == (n_unique_values * len(col_1_range), X.shape[1]) + # axes is a list of arrays of different shapes + assert axes[0].shape == (n_unique_values,) + assert axes[1].shape == (len(col_1_range),) + assert grid.dtype == X.dtype + + # Check that grid_resolution does not impact custom_range + X = rng.normal(size=(20, 2)) + col_0_range = [0, 2, 3, 4, 5, 6] + grid_resolution = 5 + grid, axes = _grid_from_X( + X, + percentiles, + is_categorical=is_categorical, + grid_resolution=grid_resolution, + custom_values={0: col_0_range}, + ) + assert grid.shape == (grid_resolution * len(col_0_range), X.shape[1]) + # axes is a list of arrays of different shapes + assert axes[0].shape == (len(col_0_range),) + assert axes[1].shape == (grid_resolution,) + assert grid.dtype == np.result_type(X, np.asarray(col_0_range).dtype) + + X = np.array([[0, "a"], [1, "b"], [2, "c"]]) + + grid, axes = _grid_from_X( + X, + percentiles, + is_categorical=is_categorical, + grid_resolution=grid_resolution, + custom_values={1: ["a", "b", "c"]}, + ) + assert grid.dtype == object + + +@pytest.mark.parametrize( + "grid_resolution", + [ + 2, # since n_categories > 2, we should not use quantiles resampling + 100, + ], +) +def test_grid_from_X_with_categorical(grid_resolution): + """Check that `_grid_from_X` always sample from categories and does not + depend from the percentiles. + """ + pd = pytest.importorskip("pandas") + percentiles = (0.05, 0.95) + is_categorical = [True] + X = pd.DataFrame({"cat_feature": ["A", "B", "C", "A", "B", "D", "E"]}) + grid, axes = _grid_from_X( + X, + percentiles, + is_categorical, + grid_resolution=grid_resolution, + custom_values={}, + ) + assert grid.shape == (5, X.shape[1]) + assert axes[0].shape == (5,) + + +@pytest.mark.parametrize("grid_resolution", [3, 100]) +def test_grid_from_X_heterogeneous_type(grid_resolution): + """Check that `_grid_from_X` always sample from categories and does not + depend from the percentiles. + """ + pd = pytest.importorskip("pandas") + percentiles = (0.05, 0.95) + is_categorical = [True, False] + X = pd.DataFrame( + { + "cat": ["A", "B", "C", "A", "B", "D", "E", "A", "B", "D"], + "num": [1, 1, 1, 2, 5, 6, 6, 6, 6, 8], + } + ) + nunique = X.nunique() + + grid, axes = _grid_from_X( + X, + percentiles, + is_categorical, + grid_resolution=grid_resolution, + custom_values={}, + ) + if grid_resolution == 3: + assert grid.shape == (15, 2) + assert axes[0].shape[0] == nunique["num"] + assert axes[1].shape[0] == grid_resolution + else: + assert grid.shape == (25, 2) + assert axes[0].shape[0] == nunique["cat"] + assert axes[1].shape[0] == nunique["cat"] + + +@pytest.mark.parametrize( + "grid_resolution, percentiles, err_msg", + [ + (2, (0, 0.0001), "percentiles are too close"), + (100, (1, 2, 3, 4), "'percentiles' must be a sequence of 2 elements"), + (100, 12345, "'percentiles' must be a sequence of 2 elements"), + (100, (-1, 0.95), r"'percentiles' values must be in \[0, 1\]"), + (100, (0.05, 2), r"'percentiles' values must be in \[0, 1\]"), + (100, (0.9, 0.1), r"percentiles\[0\] must be strictly less than"), + (1, (0.05, 0.95), "'grid_resolution' must be strictly greater than 1"), + ], +) +def test_grid_from_X_error(grid_resolution, percentiles, err_msg): + X = np.asarray([[1, 2], [3, 4]]) + is_categorical = [False] + with pytest.raises(ValueError, match=err_msg): + _grid_from_X(X, percentiles, is_categorical, grid_resolution, custom_values={}) + + +@pytest.mark.parametrize("target_feature", range(5)) +@pytest.mark.parametrize( + "est, method", + [ + (LinearRegression(), "brute"), + (GradientBoostingRegressor(random_state=0), "brute"), + (GradientBoostingRegressor(random_state=0), "recursion"), + (HistGradientBoostingRegressor(random_state=0), "brute"), + (HistGradientBoostingRegressor(random_state=0), "recursion"), + ], +) +def test_partial_dependence_helpers(est, method, target_feature): + # Check that what is returned by _partial_dependence_brute or + # _partial_dependence_recursion is equivalent to manually setting a target + # feature to a given value, and computing the average prediction over all + # samples. + # This also checks that the brute and recursion methods give the same + # output. + # Note that even on the trainset, the brute and the recursion methods + # aren't always strictly equivalent, in particular when the slow method + # generates unrealistic samples that have low mass in the joint + # distribution of the input features, and when some of the features are + # dependent. Hence the high tolerance on the checks. + + X, y = make_regression(random_state=0, n_features=5, n_informative=5) + # The 'init' estimator for GBDT (here the average prediction) isn't taken + # into account with the recursion method, for technical reasons. We set + # the mean to 0 to that this 'bug' doesn't have any effect. + y = y - y.mean() + + # Clone is necessary to make the test thread-safe. + est = clone(est).fit(X, y) + + # target feature will be set to .5 and then to 123 + features = np.array([target_feature], dtype=np.intp) + grid = np.array([[0.5], [123]]) + + if method == "brute": + pdp, predictions = _partial_dependence_brute( + est, grid, features, X, response_method="auto" + ) + else: + pdp = _partial_dependence_recursion(est, grid, features) + + mean_predictions = [] + for val in (0.5, 123): + X_ = X.copy() + X_[:, target_feature] = val + mean_predictions.append(est.predict(X_).mean()) + + pdp = pdp[0] # (shape is (1, 2) so make it (2,)) + + # allow for greater margin for error with recursion method + rtol = 1e-1 if method == "recursion" else 1e-3 + assert np.allclose(pdp, mean_predictions, rtol=rtol) + + +@pytest.mark.parametrize("seed", range(1)) +def test_recursion_decision_tree_vs_forest_and_gbdt(seed): + # Make sure that the recursion method gives the same results on a + # DecisionTreeRegressor and a GradientBoostingRegressor or a + # RandomForestRegressor with 1 tree and equivalent parameters. + + rng = np.random.RandomState(seed) + + # Purely random dataset to avoid correlated features + n_samples = 1000 + n_features = 5 + X = rng.randn(n_samples, n_features) + y = rng.randn(n_samples) * 10 + + # The 'init' estimator for GBDT (here the average prediction) isn't taken + # into account with the recursion method, for technical reasons. We set + # the mean to 0 to that this 'bug' doesn't have any effect. + y = y - y.mean() + + # set max_depth not too high to avoid splits with same gain but different + # features + max_depth = 5 + + tree_seed = 0 + forest = RandomForestRegressor( + n_estimators=1, + max_features=None, + bootstrap=False, + max_depth=max_depth, + random_state=tree_seed, + ) + # The forest will use ensemble.base._set_random_states to set the + # random_state of the tree sub-estimator. We simulate this here to have + # equivalent estimators. + equiv_random_state = check_random_state(tree_seed).randint(np.iinfo(np.int32).max) + gbdt = GradientBoostingRegressor( + n_estimators=1, + learning_rate=1, + criterion="squared_error", + max_depth=max_depth, + random_state=equiv_random_state, + ) + tree = DecisionTreeRegressor(max_depth=max_depth, random_state=equiv_random_state) + + forest.fit(X, y) + gbdt.fit(X, y) + tree.fit(X, y) + + # sanity check: if the trees aren't the same, the PD values won't be equal + try: + assert_is_subtree(tree.tree_, gbdt[0, 0].tree_) + assert_is_subtree(tree.tree_, forest[0].tree_) + except AssertionError: + # For some reason the trees aren't exactly equal on 32bits, so the PDs + # cannot be equal either. See + # https://github.com/scikit-learn/scikit-learn/issues/8853 + assert _IS_32BIT, "this should only fail on 32 bit platforms" + return + + grid = rng.randn(50).reshape(-1, 1) + for f in range(n_features): + features = np.array([f], dtype=np.intp) + + pdp_forest = _partial_dependence_recursion(forest, grid, features) + pdp_gbdt = _partial_dependence_recursion(gbdt, grid, features) + pdp_tree = _partial_dependence_recursion(tree, grid, features) + + np.testing.assert_allclose(pdp_gbdt, pdp_tree) + np.testing.assert_allclose(pdp_forest, pdp_tree) + + +@pytest.mark.parametrize( + "est", + ( + GradientBoostingClassifier(random_state=0), + HistGradientBoostingClassifier(random_state=0), + ), +) +@pytest.mark.parametrize("target_feature", (0, 1, 2, 3, 4, 5)) +def test_recursion_decision_function(est, target_feature): + # Make sure the recursion method (implicitly uses decision_function) has + # the same result as using brute method with + # response_method=decision_function + + X, y = make_classification(n_classes=2, n_clusters_per_class=1, random_state=1) + assert np.mean(y) == 0.5 # make sure the init estimator predicts 0 anyway + + est = clone(est).fit(X, y) + + preds_1 = partial_dependence( + est, + X, + [target_feature], + response_method="decision_function", + method="recursion", + kind="average", + ) + preds_2 = partial_dependence( + est, + X, + [target_feature], + response_method="decision_function", + method="brute", + kind="average", + ) + + assert_allclose(preds_1["average"], preds_2["average"], atol=1e-7) + + +@pytest.mark.parametrize( + "est", + ( + LinearRegression(), + GradientBoostingRegressor(random_state=0), + HistGradientBoostingRegressor( + random_state=0, min_samples_leaf=1, max_leaf_nodes=None, max_iter=1 + ), + DecisionTreeRegressor(random_state=0), + ), +) +@pytest.mark.parametrize("power", (1, 2)) +def test_partial_dependence_easy_target(est, power): + # If the target y only depends on one feature in an obvious way (linear or + # quadratic) then the partial dependence for that feature should reflect + # it. + # We here fit a linear regression_data model (with polynomial features if + # needed) and compute r_squared to check that the partial dependence + # correctly reflects the target. + + rng = np.random.RandomState(0) + n_samples = 200 + target_variable = 2 + X = rng.normal(size=(n_samples, 5)) + y = X[:, target_variable] ** power + + est = clone(est).fit(X, y) + + pdp = partial_dependence( + est, features=[target_variable], X=X, grid_resolution=1000, kind="average" + ) + + new_X = pdp["grid_values"][0].reshape(-1, 1) + new_y = pdp["average"][0] + # add polynomial features if needed + new_X = PolynomialFeatures(degree=power).fit_transform(new_X) + + lr = LinearRegression().fit(new_X, new_y) + r2 = r2_score(new_y, lr.predict(new_X)) + + assert r2 > 0.99 + + +@pytest.mark.parametrize( + "Estimator", + ( + sklearn.tree.DecisionTreeClassifier, + sklearn.tree.ExtraTreeClassifier, + sklearn.ensemble.ExtraTreesClassifier, + sklearn.neighbors.KNeighborsClassifier, + sklearn.neighbors.RadiusNeighborsClassifier, + sklearn.ensemble.RandomForestClassifier, + ), +) +def test_multiclass_multioutput(Estimator): + # Make sure error is raised for multiclass-multioutput classifiers + + # make multiclass-multioutput dataset + X, y = make_classification(n_classes=3, n_clusters_per_class=1, random_state=0) + y = np.array([y, y]).T + + est = Estimator() + est.fit(X, y) + + with pytest.raises( + ValueError, match="Multiclass-multioutput estimators are not supported" + ): + partial_dependence(est, X, [0]) + + +class NoPredictProbaNoDecisionFunction(ClassifierMixin, BaseEstimator): + def fit(self, X, y): + # simulate that we have some classes + self.classes_ = [0, 1] + return self + + +@pytest.mark.parametrize( + "estimator, params, err_msg", + [ + ( + KMeans(random_state=0, n_init="auto"), + {"features": [0]}, + "'estimator' must be a fitted regressor or classifier", + ), + ( + LinearRegression(), + {"features": [0], "response_method": "predict_proba"}, + "The response_method parameter is ignored for regressors", + ), + ( + GradientBoostingClassifier(random_state=0), + { + "features": [0], + "response_method": "predict_proba", + "method": "recursion", + }, + "'recursion' method, the response_method must be 'decision_function'", + ), + ( + GradientBoostingClassifier(random_state=0), + {"features": [0], "response_method": "predict_proba", "method": "auto"}, + "'recursion' method, the response_method must be 'decision_function'", + ), + ( + LinearRegression(), + {"features": [0], "method": "recursion", "kind": "individual"}, + "The 'recursion' method only applies when 'kind' is set to 'average'", + ), + ( + LinearRegression(), + {"features": [0], "method": "recursion", "kind": "both"}, + "The 'recursion' method only applies when 'kind' is set to 'average'", + ), + ( + LinearRegression(), + {"features": [0], "method": "recursion"}, + "Only the following estimators support the 'recursion' method:", + ), + ( + LinearRegression(), + {"features": [0, 1], "custom_values": {0: [1, 2, 3], 1: np.ones((3, 3))}}, + ( + "The custom grid for some features is not a one-dimensional array. " + "Feature 1: 2 dimensions" + ), + ), + ], +) +def test_partial_dependence_error(estimator, params, err_msg): + X, y = make_classification(random_state=0) + estimator = clone(estimator).fit(X, y) + + with pytest.raises(ValueError, match=err_msg): + partial_dependence(estimator, X, **params) + + +@pytest.mark.parametrize( + "estimator", [LinearRegression(), GradientBoostingClassifier(random_state=0)] +) +@pytest.mark.parametrize("features", [-1, 10000]) +def test_partial_dependence_unknown_feature_indices(estimator, features): + X, y = make_classification(random_state=0) + estimator = clone(estimator).fit(X, y) + + err_msg = "all features must be in" + with pytest.raises(ValueError, match=err_msg): + partial_dependence(estimator, X, [features]) + + +@pytest.mark.parametrize( + "estimator", [LinearRegression(), GradientBoostingClassifier(random_state=0)] +) +def test_partial_dependence_unknown_feature_string(estimator): + pd = pytest.importorskip("pandas") + X, y = make_classification(random_state=0) + df = pd.DataFrame(X) + estimator = clone(estimator).fit(df, y) + + features = ["random"] + err_msg = "A given column is not a column of the dataframe" + with pytest.raises(ValueError, match=err_msg): + partial_dependence(estimator, df, features) + + +@pytest.mark.parametrize( + "estimator", [LinearRegression(), GradientBoostingClassifier(random_state=0)] +) +def test_partial_dependence_X_list(estimator): + # check that array-like objects are accepted + X, y = make_classification(random_state=0) + estimator = clone(estimator).fit(X, y) + partial_dependence(estimator, list(X), [0], kind="average") + + +def test_warning_recursion_non_constant_init(): + # make sure that passing a non-constant init parameter to a GBDT and using + # recursion method yields a warning. + + gbc = GradientBoostingClassifier(init=DummyClassifier(), random_state=0) + gbc.fit(X, y) + + with pytest.warns( + UserWarning, match="Using recursion method with a non-constant init predictor" + ): + partial_dependence(gbc, X, [0], method="recursion", kind="average") + + with pytest.warns( + UserWarning, match="Using recursion method with a non-constant init predictor" + ): + partial_dependence(gbc, X, [0], method="recursion", kind="average") + + +def test_partial_dependence_sample_weight_of_fitted_estimator(): + # Test near perfect correlation between partial dependence and diagonal + # when sample weights emphasize y = x predictions + # non-regression test for #13193 + # TODO: extend to HistGradientBoosting once sample_weight is supported + N = 1000 + rng = np.random.RandomState(123456) + mask = rng.randint(2, size=N, dtype=bool) + + x = rng.rand(N) + # set y = x on mask and y = -x outside + y = x.copy() + y[~mask] = -y[~mask] + X = np.c_[mask, x] + # sample weights to emphasize data points where y = x + sample_weight = np.ones(N) + sample_weight[mask] = 1000.0 + + clf = GradientBoostingRegressor(n_estimators=10, random_state=1) + clf.fit(X, y, sample_weight=sample_weight) + + pdp = partial_dependence(clf, X, features=[1], kind="average") + + assert np.corrcoef(pdp["average"], pdp["grid_values"])[0, 1] > 0.99 + + +def test_hist_gbdt_sw_not_supported(): + # TODO: remove/fix when PDP supports HGBT with sample weights + clf = HistGradientBoostingRegressor(random_state=1) + clf.fit(X, y, sample_weight=np.ones(len(X))) + + with pytest.raises( + NotImplementedError, match="does not support partial dependence" + ): + partial_dependence(clf, X, features=[1]) + + +def test_partial_dependence_pipeline(): + # check that the partial dependence support pipeline + iris = load_iris() + + scaler = StandardScaler() + clf = DummyClassifier(random_state=42) + pipe = make_pipeline(scaler, clf) + + clf.fit(scaler.fit_transform(iris.data), iris.target) + pipe.fit(iris.data, iris.target) + + features = 0 + pdp_pipe = partial_dependence( + pipe, iris.data, features=[features], grid_resolution=10, kind="average" + ) + pdp_clf = partial_dependence( + clf, + scaler.transform(iris.data), + features=[features], + grid_resolution=10, + kind="average", + ) + assert_allclose(pdp_pipe["average"], pdp_clf["average"]) + assert_allclose( + pdp_pipe["grid_values"][0], + pdp_clf["grid_values"][0] * scaler.scale_[features] + scaler.mean_[features], + ) + + +@pytest.mark.parametrize( + "features, grid_resolution, n_vals_expected", + [ + (["a"], 10, 10), + (["a"], 2, 2), + ], +) +def test_partial_dependence_binary_model_grid_resolution( + features, grid_resolution, n_vals_expected +): + pd = pytest.importorskip("pandas") + model = DummyClassifier() + + rng = np.random.RandomState(0) + X = pd.DataFrame( + { + "a": rng.randint(0, 10, size=100).astype(np.float64), + "b": rng.randint(0, 10, size=100).astype(np.float64), + } + ) + y = pd.Series(rng.randint(0, 2, size=100)) + model.fit(X, y) + + part_dep = partial_dependence( + model, + X, + features=features, + grid_resolution=grid_resolution, + kind="average", + ) + assert part_dep["average"].size == n_vals_expected + + +@pytest.mark.parametrize( + "features, custom_values, n_vals_expected", + [ + (["a"], {"a": [1.0, 2.0, 3.0, 4.0]}, 4), + (["a"], {"a": [1.0, 2.0]}, 2), + (["a"], {"a": [1.0]}, 1), + ], +) +def test_partial_dependence_binary_model_custom_values( + features, custom_values, n_vals_expected +): + pd = pytest.importorskip("pandas") + model = DummyClassifier() + + X = pd.DataFrame({"a": [1.0, 2.0, 3.0, 4.0], "b": [6.0, 7.0, 8.0, 9.0]}) + y = pd.Series([0, 1, 0, 1]) + model.fit(X, y) + + part_dep = partial_dependence( + model, + X, + features=features, + grid_resolution=3, + custom_values=custom_values, + kind="average", + ) + assert part_dep["average"].size == n_vals_expected + + +@pytest.mark.parametrize( + "features, custom_values, n_vals_expected", + [ + (["b"], {"b": ["a", "b"]}, 2), + (["b"], {"b": ["a"]}, 1), + (["a", "b"], {"a": [1.0, 2.0], "b": ["a", "b"]}, 4), + ], +) +def test_partial_dependence_pipeline_custom_values( + features, custom_values, n_vals_expected +): + pd = pytest.importorskip("pandas") + pl = make_pipeline( + SimpleImputer(strategy="most_frequent"), OneHotEncoder(), DummyClassifier() + ) + + X = pd.DataFrame({"a": [1.0, 2.0, 3.0, 4.0], "b": ["a", "b", "a", "b"]}) + y = pd.Series([0, 1, 0, 1]) + pl.fit(X, y) + + X_holdout = pd.DataFrame({"a": [1.0, 2.0, 3.0, 4.0], "b": ["a", "b", "a", None]}) + part_dep = partial_dependence( + pl, + X_holdout, + features=features, + grid_resolution=3, + custom_values=custom_values, + kind="average", + ) + assert part_dep["average"].size == n_vals_expected + + +@pytest.mark.parametrize( + "estimator", + [ + LogisticRegression(max_iter=1000, random_state=0), + GradientBoostingClassifier(random_state=0, n_estimators=5), + ], + ids=["estimator-brute", "estimator-recursion"], +) +@pytest.mark.parametrize( + "preprocessor", + [ + None, + make_column_transformer( + (StandardScaler(), [iris.feature_names[i] for i in (0, 2)]), + (RobustScaler(), [iris.feature_names[i] for i in (1, 3)]), + ), + make_column_transformer( + (StandardScaler(), [iris.feature_names[i] for i in (0, 2)]), + remainder="passthrough", + ), + ], + ids=["None", "column-transformer", "column-transformer-passthrough"], +) +@pytest.mark.parametrize( + "features", + [[0, 2], [iris.feature_names[i] for i in (0, 2)]], + ids=["features-integer", "features-string"], +) +def test_partial_dependence_dataframe(estimator, preprocessor, features): + # check that the partial dependence support dataframe and pipeline + # including a column transformer + pd = pytest.importorskip("pandas") + df = pd.DataFrame(scale(iris.data), columns=iris.feature_names) + + pipe = make_pipeline(preprocessor, clone(estimator)) + pipe.fit(df, iris.target) + pdp_pipe = partial_dependence( + pipe, df, features=features, grid_resolution=10, kind="average" + ) + + # the column transformer will reorder the column when transforming + # we mixed the index to be sure that we are computing the partial + # dependence of the right columns + if preprocessor is not None: + X_proc = clone(preprocessor).fit_transform(df) + features_clf = [0, 1] + else: + X_proc = df + features_clf = [0, 2] + + clf = clone(estimator).fit(X_proc, iris.target) + pdp_clf = partial_dependence( + clf, + X_proc, + features=features_clf, + method="brute", + grid_resolution=10, + kind="average", + ) + + assert_allclose(pdp_pipe["average"], pdp_clf["average"]) + if preprocessor is not None: + scaler = preprocessor.named_transformers_["standardscaler"] + assert_allclose( + pdp_pipe["grid_values"][1], + pdp_clf["grid_values"][1] * scaler.scale_[1] + scaler.mean_[1], + ) + else: + assert_allclose(pdp_pipe["grid_values"][1], pdp_clf["grid_values"][1]) + + +@pytest.mark.parametrize( + "features, custom_values, expected_pd_shape", + [ + (0, None, (3, 10)), + (0, {0: [1.0, 2.0, 3.0]}, (3, 3)), + (iris.feature_names[0], None, (3, 10)), + (iris.feature_names[0], {iris.feature_names[0]: np.array([1.0, 2.0])}, (3, 2)), + ([0, 2], None, (3, 10, 10)), + ([0, 2], {2: [7, 8, 9, 10]}, (3, 10, 4)), + ([iris.feature_names[i] for i in (0, 2)], None, (3, 10, 10)), + ( + [iris.feature_names[i] for i in (0, 2)], + {iris.feature_names[2]: [1, 2, 3, 10]}, + (3, 10, 4), + ), + ([iris.feature_names[i] for i in (0, 2)], {2: [1, 2, 3, 10]}, (3, 10, 10)), + ( + [iris.feature_names[i] for i in (0, 2, 3)], + {iris.feature_names[2]: [1, 10]}, + (3, 10, 2, 10), + ), + ([True, False, True, False], None, (3, 10, 10)), + ], + ids=[ + "scalar-int", + "scalar-int-custom-values", + "scalar-str", + "scalar-str-custom-values", + "list-int", + "list-int-custom-values", + "list-str", + "list-str-custom-values", + "list-str-custom-values-incorrect", + "list-str-three-features", + "mask", + ], +) +def test_partial_dependence_feature_type(features, custom_values, expected_pd_shape): + # check all possible features type supported in PDP + pd = pytest.importorskip("pandas") + df = pd.DataFrame(iris.data, columns=iris.feature_names) + + preprocessor = make_column_transformer( + (StandardScaler(), [iris.feature_names[i] for i in (0, 2)]), + (RobustScaler(), [iris.feature_names[i] for i in (1, 3)]), + ) + pipe = make_pipeline( + preprocessor, LogisticRegression(max_iter=1000, random_state=0) + ) + pipe.fit(df, iris.target) + pdp_pipe = partial_dependence( + pipe, + df, + features=features, + grid_resolution=10, + kind="average", + custom_values=custom_values, + ) + assert pdp_pipe["average"].shape == expected_pd_shape + assert len(pdp_pipe["grid_values"]) == len(pdp_pipe["average"].shape) - 1 + + +@pytest.mark.parametrize( + "estimator", + [ + LinearRegression(), + LogisticRegression(), + GradientBoostingRegressor(), + GradientBoostingClassifier(), + ], +) +def test_partial_dependence_unfitted(estimator): + X = iris.data + preprocessor = make_column_transformer( + (StandardScaler(), [0, 2]), (RobustScaler(), [1, 3]) + ) + pipe = make_pipeline(preprocessor, estimator) + with pytest.raises(NotFittedError, match="is not fitted yet"): + partial_dependence(pipe, X, features=[0, 2], grid_resolution=10) + with pytest.raises(NotFittedError, match="is not fitted yet"): + partial_dependence(estimator, X, features=[0, 2], grid_resolution=10) + + +@pytest.mark.parametrize( + "Estimator, data", + [ + (LinearRegression, multioutput_regression_data), + (LogisticRegression, binary_classification_data), + ], +) +def test_kind_average_and_average_of_individual(Estimator, data): + est = Estimator() + (X, y), n_targets = data + est.fit(X, y) + + pdp_avg = partial_dependence(est, X=X, features=[1, 2], kind="average") + pdp_ind = partial_dependence(est, X=X, features=[1, 2], kind="individual") + avg_ind = np.mean(pdp_ind["individual"], axis=1) + assert_allclose(avg_ind, pdp_avg["average"]) + + +@pytest.mark.parametrize( + "Estimator, data", + [ + (LinearRegression, multioutput_regression_data), + (LogisticRegression, binary_classification_data), + ], +) +def test_partial_dependence_kind_individual_ignores_sample_weight(Estimator, data): + """Check that `sample_weight` does not have any effect on reported ICE.""" + est = Estimator() + (X, y), n_targets = data + sample_weight = np.arange(X.shape[0]) + est.fit(X, y) + + pdp_nsw = partial_dependence(est, X=X, features=[1, 2], kind="individual") + pdp_sw = partial_dependence( + est, X=X, features=[1, 2], kind="individual", sample_weight=sample_weight + ) + assert_allclose(pdp_nsw["individual"], pdp_sw["individual"]) + assert_allclose(pdp_nsw["grid_values"], pdp_sw["grid_values"]) + + +@pytest.mark.parametrize( + "estimator", + [ + LinearRegression(), + LogisticRegression(), + RandomForestRegressor(), + GradientBoostingClassifier(), + ], +) +@pytest.mark.parametrize("non_null_weight_idx", [0, 1, -1]) +def test_partial_dependence_non_null_weight_idx(estimator, non_null_weight_idx): + """Check that if we pass a `sample_weight` of zeros with only one index with + sample weight equals one, then the average `partial_dependence` with this + `sample_weight` is equal to the individual `partial_dependence` of the + corresponding index. + """ + X, y = iris.data, iris.target + preprocessor = make_column_transformer( + (StandardScaler(), [0, 2]), (RobustScaler(), [1, 3]) + ) + pipe = make_pipeline(preprocessor, clone(estimator)).fit(X, y) + + sample_weight = np.zeros_like(y) + sample_weight[non_null_weight_idx] = 1 + pdp_sw = partial_dependence( + pipe, + X, + [2, 3], + kind="average", + sample_weight=sample_weight, + grid_resolution=10, + ) + pdp_ind = partial_dependence(pipe, X, [2, 3], kind="individual", grid_resolution=10) + output_dim = 1 if is_regressor(pipe) else len(np.unique(y)) + for i in range(output_dim): + assert_allclose( + pdp_ind["individual"][i][non_null_weight_idx], + pdp_sw["average"][i], + ) + + +@pytest.mark.parametrize( + "Estimator, data", + [ + (LinearRegression, multioutput_regression_data), + (LogisticRegression, binary_classification_data), + ], +) +def test_partial_dependence_equivalence_equal_sample_weight(Estimator, data): + """Check that `sample_weight=None` is equivalent to having equal weights.""" + + est = Estimator() + (X, y), n_targets = data + est.fit(X, y) + + sample_weight, params = None, {"X": X, "features": [1, 2], "kind": "average"} + pdp_sw_none = partial_dependence(est, **params, sample_weight=sample_weight) + sample_weight = np.ones(len(y)) + pdp_sw_unit = partial_dependence(est, **params, sample_weight=sample_weight) + assert_allclose(pdp_sw_none["average"], pdp_sw_unit["average"]) + sample_weight = 2 * np.ones(len(y)) + pdp_sw_doubling = partial_dependence(est, **params, sample_weight=sample_weight) + assert_allclose(pdp_sw_none["average"], pdp_sw_doubling["average"]) + + +def test_partial_dependence_sample_weight_size_error(): + """Check that we raise an error when the size of `sample_weight` is not + consistent with `X` and `y`. + """ + est = LogisticRegression() + (X, y), n_targets = binary_classification_data + sample_weight = np.ones_like(y) + est.fit(X, y) + + with pytest.raises(ValueError, match="sample_weight.shape =="): + partial_dependence( + est, X, features=[0], sample_weight=sample_weight[1:], grid_resolution=10 + ) + + +def test_partial_dependence_sample_weight_with_recursion(): + """Check that we raise an error when `sample_weight` is provided with + `"recursion"` method. + """ + est = RandomForestRegressor() + (X, y), n_targets = regression_data + sample_weight = np.ones_like(y) + est.fit(X, y, sample_weight=sample_weight) + + with pytest.raises(ValueError, match="'recursion' method can only be applied when"): + partial_dependence( + est, X, features=[0], method="recursion", sample_weight=sample_weight + ) + + +def test_mixed_type_categorical(): + """Check that we raise a proper error when a column has mixed types and + the sorting of `np.unique` will fail.""" + X = np.array(["A", "B", "C", np.nan], dtype=object).reshape(-1, 1) + y = np.array([0, 1, 0, 1]) + + from sklearn.preprocessing import OrdinalEncoder + + clf = make_pipeline( + OrdinalEncoder(encoded_missing_value=-1), + LogisticRegression(), + ).fit(X, y) + with pytest.raises(ValueError, match="The column #0 contains mixed data types"): + partial_dependence(clf, X, features=[0]) + + +def test_reject_array_with_integer_dtype(): + X = np.arange(8).reshape(4, 2) + y = np.array([0, 1, 0, 1]) + clf = DummyClassifier() + clf.fit(X, y) + with pytest.warns( + FutureWarning, match=re.escape("The column 0 contains integer data.") + ): + partial_dependence(clf, X, features=0) + + with pytest.warns( + FutureWarning, match=re.escape("The column 1 contains integer data.") + ): + partial_dependence(clf, X, features=[1], categorical_features=[0]) + + with pytest.warns( + FutureWarning, match=re.escape("The column 0 contains integer data.") + ): + partial_dependence(clf, X, features=[0, 1]) + + # The following should not raise as we do not compute numerical partial + # dependence on integer columns. + with warnings.catch_warnings(): + warnings.simplefilter("error") + partial_dependence(clf, X, features=1, categorical_features=[1]) + + +def test_reject_pandas_with_integer_dtype(): + pd = pytest.importorskip("pandas") + X = pd.DataFrame( + { + "a": [1.0, 2.0, 3.0], + "b": [1, 2, 3], + "c": [1, 2, 3], + } + ) + y = np.array([0, 1, 0]) + clf = DummyClassifier() + clf.fit(X, y) + + with pytest.warns( + FutureWarning, match=re.escape("The column 'c' contains integer data.") + ): + partial_dependence(clf, X, features="c") + + with pytest.warns( + FutureWarning, match=re.escape("The column 'c' contains integer data.") + ): + partial_dependence(clf, X, features=["a", "c"]) + + # The following should not raise as we do not compute numerical partial + # dependence on integer columns. + with warnings.catch_warnings(): + warnings.simplefilter("error") + partial_dependence(clf, X, features=["a"]) + partial_dependence(clf, X, features=["c"], categorical_features=["c"]) + + +def test_partial_dependence_empty_categorical_features(): + """Check that we raise the proper exception when `categorical_features` + is an empty list""" + clf = make_pipeline(StandardScaler(), LogisticRegression()) + clf.fit(iris.data, iris.target) + + with pytest.raises( + ValueError, + match=re.escape( + "Passing an empty list (`[]`) to `categorical_features` is not " + "supported. Use `None` instead to indicate that there are no " + "categorical features." + ), + ): + partial_dependence( + estimator=clf, X=iris.data, features=[0], categorical_features=[] + ) diff --git a/shared/package-files/ec/ec24e42273d76f9583a518018c1818892f99b5d1429aa07185bf2657a4b2efa9/blob b/shared/package-files/ec/ec24e42273d76f9583a518018c1818892f99b5d1429aa07185bf2657a4b2efa9/blob new file mode 100644 index 0000000000000000000000000000000000000000..a42cbdedb9467141d58446f51906e56d28456882 --- /dev/null +++ b/shared/package-files/ec/ec24e42273d76f9583a518018c1818892f99b5d1429aa07185bf2657a4b2efa9/blob @@ -0,0 +1,22 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::tuple _scaled_mm_cuda(const at::Tensor & self, const at::Tensor & mat2, const c10::optional & bias={}, c10::optional out_dtype=c10::nullopt, const c10::optional & scale_a={}, const c10::optional & scale_b={}, const c10::optional & scale_result={}, bool use_fast_accum=false); +TORCH_API ::std::tuple _scaled_mm_out_cuda(const at::Tensor & self, const at::Tensor & mat2, const c10::optional & bias, c10::optional out_dtype, const c10::optional & scale_a, const c10::optional & scale_b, const c10::optional & scale_result, bool use_fast_accum, at::Tensor & out, at::Tensor & out_amax); +} // namespace native +} // namespace at diff --git a/shared/package-files/ec/ec26b44c24ac6acceaef53039c268edbe32ac925a565cd82410aad41904868bd/blob b/shared/package-files/ec/ec26b44c24ac6acceaef53039c268edbe32ac925a565cd82410aad41904868bd/blob new file mode 100644 index 0000000000000000000000000000000000000000..50b726369af78cafc3fe4b09cc72399cdb9cc74e --- /dev/null +++ b/shared/package-files/ec/ec26b44c24ac6acceaef53039c268edbe32ac925a565cd82410aad41904868bd/blob @@ -0,0 +1,28 @@ +from typing import Any, Callable, List, Optional + +from django import http +from django.http.response import HttpResponse, HttpResponseRedirect + +class AccessMixin: + login_url: Any = ... + permission_denied_message: str = ... + raise_exception: bool = ... + redirect_field_name: Any = ... + def get_login_url(self) -> str: ... + def get_permission_denied_message(self) -> str: ... + def get_redirect_field_name(self) -> str: ... + def handle_no_permission(self) -> HttpResponseRedirect: ... + +class LoginRequiredMixin(AccessMixin): + def dispatch(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... + +class PermissionRequiredMixin(AccessMixin): + permission_required: Any = ... + def get_permission_required(self) -> List[str]: ... + def has_permission(self) -> bool: ... + def dispatch(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... + +class UserPassesTestMixin(AccessMixin): + def test_func(self) -> Optional[bool]: ... + def get_test_func(self) -> Callable: ... + def dispatch(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... diff --git a/shared/package-files/ec/ec28fa34877e4be8913d9b4ee95022c890ea73358a9007a4128ef0ab02e04ad3/blob b/shared/package-files/ec/ec28fa34877e4be8913d9b4ee95022c890ea73358a9007a4128ef0ab02e04ad3/blob new file mode 100644 index 0000000000000000000000000000000000000000..87e735ec998db226235f22f33477f50dc9e4152e --- /dev/null +++ b/shared/package-files/ec/ec28fa34877e4be8913d9b4ee95022c890ea73358a9007a4128ef0ab02e04ad3/blob @@ -0,0 +1,363 @@ +# Authors: The scikit-learn developers +# SPDX-License-Identifier: BSD-3-Clause + +from numbers import Integral, Real + +import numpy as np +from scipy import optimize + +from ..base import BaseEstimator, RegressorMixin, _fit_context +from ..utils._mask import axis0_safe_slice +from ..utils._param_validation import Interval +from ..utils.extmath import safe_sparse_dot +from ..utils.fixes import _get_additional_lbfgs_options_dict +from ..utils.optimize import _check_optimize_result +from ..utils.validation import _check_sample_weight, validate_data +from ._base import LinearModel + + +def _huber_loss_and_gradient(w, X, y, epsilon, alpha, sample_weight=None): + """Returns the Huber loss and the gradient. + + Parameters + ---------- + w : ndarray, shape (n_features + 1,) or (n_features + 2,) + Feature vector. + w[:n_features] gives the coefficients + w[-1] gives the scale factor and if the intercept is fit w[-2] + gives the intercept factor. + + X : ndarray of shape (n_samples, n_features) + Input data. + + y : ndarray of shape (n_samples,) + Target vector. + + epsilon : float + Robustness of the Huber estimator. + + alpha : float + Regularization parameter. + + sample_weight : ndarray of shape (n_samples,), default=None + Weight assigned to each sample. + + Returns + ------- + loss : float + Huber loss. + + gradient : ndarray, shape (len(w)) + Returns the derivative of the Huber loss with respect to each + coefficient, intercept and the scale as a vector. + """ + _, n_features = X.shape + fit_intercept = n_features + 2 == w.shape[0] + if fit_intercept: + intercept = w[-2] + sigma = w[-1] + w = w[:n_features] + n_samples = np.sum(sample_weight) + + # Calculate the values where |y - X'w -c / sigma| > epsilon + # The values above this threshold are outliers. + linear_loss = y - safe_sparse_dot(X, w) + if fit_intercept: + linear_loss -= intercept + abs_linear_loss = np.abs(linear_loss) + outliers_mask = abs_linear_loss > epsilon * sigma + + # Calculate the linear loss due to the outliers. + # This is equal to (2 * M * |y - X'w -c / sigma| - M**2) * sigma + outliers = abs_linear_loss[outliers_mask] + num_outliers = np.count_nonzero(outliers_mask) + n_non_outliers = X.shape[0] - num_outliers + + # n_sq_outliers includes the weight give to the outliers while + # num_outliers is just the number of outliers. + outliers_sw = sample_weight[outliers_mask] + n_sw_outliers = np.sum(outliers_sw) + outlier_loss = ( + 2.0 * epsilon * np.sum(outliers_sw * outliers) + - sigma * n_sw_outliers * epsilon**2 + ) + + # Calculate the quadratic loss due to the non-outliers.- + # This is equal to |(y - X'w - c)**2 / sigma**2| * sigma + non_outliers = linear_loss[~outliers_mask] + weighted_non_outliers = sample_weight[~outliers_mask] * non_outliers + weighted_loss = np.dot(weighted_non_outliers.T, non_outliers) + squared_loss = weighted_loss / sigma + + if fit_intercept: + grad = np.zeros(n_features + 2) + else: + grad = np.zeros(n_features + 1) + + # Gradient due to the squared loss. + X_non_outliers = -axis0_safe_slice(X, ~outliers_mask, n_non_outliers) + grad[:n_features] = ( + 2.0 / sigma * safe_sparse_dot(weighted_non_outliers, X_non_outliers) + ) + + # Gradient due to the linear loss. + signed_outliers = np.ones_like(outliers) + signed_outliers_mask = linear_loss[outliers_mask] < 0 + signed_outliers[signed_outliers_mask] = -1.0 + X_outliers = axis0_safe_slice(X, outliers_mask, num_outliers) + sw_outliers = sample_weight[outliers_mask] * signed_outliers + grad[:n_features] -= 2.0 * epsilon * (safe_sparse_dot(sw_outliers, X_outliers)) + + # Gradient due to the penalty. + grad[:n_features] += alpha * 2.0 * w + + # Gradient due to sigma. + grad[-1] = n_samples + grad[-1] -= n_sw_outliers * epsilon**2 + grad[-1] -= squared_loss / sigma + + # Gradient due to the intercept. + if fit_intercept: + grad[-2] = -2.0 * np.sum(weighted_non_outliers) / sigma + grad[-2] -= 2.0 * epsilon * np.sum(sw_outliers) + + loss = n_samples * sigma + squared_loss + outlier_loss + loss += alpha * np.dot(w, w) + return loss, grad + + +class HuberRegressor(LinearModel, RegressorMixin, BaseEstimator): + """L2-regularized linear regression model that is robust to outliers. + + The Huber Regressor optimizes the squared loss for the samples where + ``|(y - Xw - c) / sigma| < epsilon`` and the absolute loss for the samples + where ``|(y - Xw - c) / sigma| > epsilon``, where the model coefficients + ``w``, the intercept ``c`` and the scale ``sigma`` are parameters + to be optimized. The parameter `sigma` makes sure that if `y` is scaled up + or down by a certain factor, one does not need to rescale `epsilon` to + achieve the same robustness. Note that this does not take into account + the fact that the different features of `X` may be of different scales. + + The Huber loss function has the advantage of not being heavily influenced + by the outliers while not completely ignoring their effect. + + Read more in the :ref:`User Guide ` + + .. versionadded:: 0.18 + + Parameters + ---------- + epsilon : float, default=1.35 + The parameter epsilon controls the number of samples that should be + classified as outliers. The smaller the epsilon, the more robust it is + to outliers. Epsilon must be in the range `[1, inf)`. + + max_iter : int, default=100 + Maximum number of iterations that + ``scipy.optimize.minimize(method="L-BFGS-B")`` should run for. + + alpha : float, default=0.0001 + Strength of the squared L2 regularization. Note that the penalty is + equal to ``alpha * ||w||^2``. + Must be in the range `[0, inf)`. + + warm_start : bool, default=False + This is useful if the stored attributes of a previously used model + has to be reused. If set to False, then the coefficients will + be rewritten for every call to fit. + See :term:`the Glossary `. + + fit_intercept : bool, default=True + Whether or not to fit the intercept. This can be set to False + if the data is already centered around the origin. + + tol : float, default=1e-05 + The iteration will stop when + ``max{|proj g_i | i = 1, ..., n}`` <= ``tol`` + where pg_i is the i-th component of the projected gradient. + + Attributes + ---------- + coef_ : array, shape (n_features,) + Features got by optimizing the L2-regularized Huber loss. + + intercept_ : float + Bias. + + scale_ : float + The value by which ``|y - Xw - c|`` is scaled down. + + n_features_in_ : int + Number of features seen during :term:`fit`. + + .. versionadded:: 0.24 + + feature_names_in_ : ndarray of shape (`n_features_in_`,) + Names of features seen during :term:`fit`. Defined only when `X` + has feature names that are all strings. + + .. versionadded:: 1.0 + + n_iter_ : int + Number of iterations that + ``scipy.optimize.minimize(method="L-BFGS-B")`` has run for. + + .. versionchanged:: 0.20 + + In SciPy <= 1.0.0 the number of lbfgs iterations may exceed + ``max_iter``. ``n_iter_`` will now report at most ``max_iter``. + + outliers_ : array, shape (n_samples,) + A boolean mask which is set to True where the samples are identified + as outliers. + + See Also + -------- + RANSACRegressor : RANSAC (RANdom SAmple Consensus) algorithm. + TheilSenRegressor : Theil-Sen Estimator robust multivariate regression model. + SGDRegressor : Fitted by minimizing a regularized empirical loss with SGD. + + References + ---------- + .. [1] Peter J. Huber, Elvezio M. Ronchetti, Robust Statistics + Concomitant scale estimates, p. 172 + .. [2] Art B. Owen (2006), `A robust hybrid of lasso and ridge regression. + `_ + + Examples + -------- + >>> import numpy as np + >>> from sklearn.linear_model import HuberRegressor, LinearRegression + >>> from sklearn.datasets import make_regression + >>> rng = np.random.RandomState(0) + >>> X, y, coef = make_regression( + ... n_samples=200, n_features=2, noise=4.0, coef=True, random_state=0) + >>> X[:4] = rng.uniform(10, 20, (4, 2)) + >>> y[:4] = rng.uniform(10, 20, 4) + >>> huber = HuberRegressor().fit(X, y) + >>> huber.score(X, y) + -7.284 + >>> huber.predict(X[:1,]) + array([806.7200]) + >>> linear = LinearRegression().fit(X, y) + >>> print("True coefficients:", coef) + True coefficients: [20.4923... 34.1698...] + >>> print("Huber coefficients:", huber.coef_) + Huber coefficients: [17.7906... 31.0106...] + >>> print("Linear Regression coefficients:", linear.coef_) + Linear Regression coefficients: [-1.9221... 7.0226...] + """ + + _parameter_constraints: dict = { + "epsilon": [Interval(Real, 1.0, None, closed="left")], + "max_iter": [Interval(Integral, 0, None, closed="left")], + "alpha": [Interval(Real, 0, None, closed="left")], + "warm_start": ["boolean"], + "fit_intercept": ["boolean"], + "tol": [Interval(Real, 0.0, None, closed="left")], + } + + def __init__( + self, + *, + epsilon=1.35, + max_iter=100, + alpha=0.0001, + warm_start=False, + fit_intercept=True, + tol=1e-05, + ): + self.epsilon = epsilon + self.max_iter = max_iter + self.alpha = alpha + self.warm_start = warm_start + self.fit_intercept = fit_intercept + self.tol = tol + + @_fit_context(prefer_skip_nested_validation=True) + def fit(self, X, y, sample_weight=None): + """Fit the model according to the given training data. + + Parameters + ---------- + X : array-like, shape (n_samples, n_features) + Training vector, where `n_samples` is the number of samples and + `n_features` is the number of features. + + y : array-like, shape (n_samples,) + Target vector relative to X. + + sample_weight : array-like, shape (n_samples,) + Weight given to each sample. + + Returns + ------- + self : object + Fitted `HuberRegressor` estimator. + """ + X, y = validate_data( + self, + X, + y, + copy=False, + accept_sparse=["csr"], + y_numeric=True, + dtype=[np.float64, np.float32], + ) + + sample_weight = _check_sample_weight(sample_weight, X) + + if self.warm_start and hasattr(self, "coef_"): + parameters = np.concatenate((self.coef_, [self.intercept_, self.scale_])) + else: + if self.fit_intercept: + parameters = np.zeros(X.shape[1] + 2) + else: + parameters = np.zeros(X.shape[1] + 1) + # Make sure to initialize the scale parameter to a strictly + # positive value: + parameters[-1] = 1 + + # Sigma or the scale factor should be non-negative. + # Setting it to be zero might cause undefined bounds hence we set it + # to a value close to zero. + bounds = np.tile([-np.inf, np.inf], (parameters.shape[0], 1)) + bounds[-1][0] = np.finfo(np.float64).eps * 10 + + opt_res = optimize.minimize( + _huber_loss_and_gradient, + parameters, + method="L-BFGS-B", + jac=True, + args=(X, y, self.epsilon, self.alpha, sample_weight), + options={ + "maxiter": self.max_iter, + "gtol": self.tol, + **_get_additional_lbfgs_options_dict("iprint", -1), + }, + bounds=bounds, + ) + + parameters = opt_res.x + + if opt_res.status == 2: + raise ValueError( + "HuberRegressor convergence failed: l-BFGS-b solver terminated with %s" + % opt_res.message + ) + self.n_iter_ = _check_optimize_result("lbfgs", opt_res, self.max_iter) + self.scale_ = parameters[-1] + if self.fit_intercept: + self.intercept_ = parameters[-2] + else: + self.intercept_ = 0.0 + self.coef_ = parameters[: X.shape[1]] + + residual = np.abs(y - safe_sparse_dot(X, self.coef_) - self.intercept_) + self.outliers_ = residual > self.scale_ * self.epsilon + return self + + def __sklearn_tags__(self): + tags = super().__sklearn_tags__() + tags.input_tags.sparse = True + return tags diff --git a/shared/package-files/ec/ec293df474be16d0a69c10df092c68c1a34568406b4795f9b9342a0b3c0f0b5d/blob b/shared/package-files/ec/ec293df474be16d0a69c10df092c68c1a34568406b4795f9b9342a0b3c0f0b5d/blob new file mode 100644 index 0000000000000000000000000000000000000000..b9350cf41cc4e21dcc41eb7f6a1d60253875e2eb --- /dev/null +++ b/shared/package-files/ec/ec293df474be16d0a69c10df092c68c1a34568406b4795f9b9342a0b3c0f0b5d/blob @@ -0,0 +1,92 @@ +"""Tools for working with the Polars duration string language.""" + +from __future__ import annotations + +import datetime as dt +import re +from typing import TYPE_CHECKING, Literal, cast, get_args + +if TYPE_CHECKING: + from collections.abc import Container, Mapping + from typing import TypeAlias + +__all__ = ["IntervalUnit"] + +IntervalUnit: TypeAlias = Literal["ns", "us", "ms", "s", "m", "h", "d", "mo", "q", "y"] +"""A Polars duration string interval unit. + +- 'ns': nanosecond. +- 'us': microsecond. +- 'ms': millisecond. +- 's': second. +- 'm': minute. +- 'h': hour. +- 'd': day. +- 'mo': month. +- 'q': quarter. +- 'y': year. +""" +TimedeltaKwd: TypeAlias = Literal[ + "days", "hours", "minutes", "seconds", "milliseconds", "microseconds" +] + +PATTERN_INTERVAL: re.Pattern[str] = re.compile( + r"^(?P-?\d+)(?Pns|us|ms|mo|m|s|h|d|q|y)\Z" +) +MONTH_MULTIPLES = frozenset([1, 2, 3, 4, 6, 12]) +QUARTER_MULTIPLES = frozenset([1, 2, 4]) +UNIT_TO_TIMEDELTA: Mapping[IntervalUnit, TimedeltaKwd] = { + "d": "days", + "h": "hours", + "m": "minutes", + "s": "seconds", + "ms": "milliseconds", + "us": "microseconds", +} + + +class Interval: + def __init__(self, multiple: int, unit: IntervalUnit, /) -> None: + self.multiple: int = multiple + self.unit: IntervalUnit = unit + + def to_timedelta( + self, *, unsupported: Container[IntervalUnit] = frozenset(("ns", "mo", "q", "y")) + ) -> dt.timedelta: + if self.unit in unsupported: # pragma: no cover + msg = f"Creating timedelta with {self.unit} unit is not supported." + raise NotImplementedError(msg) + kwd = UNIT_TO_TIMEDELTA[self.unit] + return dt.timedelta(**{kwd: self.multiple}) + + @classmethod + def parse(cls, every: str) -> Interval: + multiple, unit = cls._parse(every) + if unit == "mo" and multiple not in MONTH_MULTIPLES: + msg = f"Only the following multiples are supported for 'mo' unit: {MONTH_MULTIPLES}.\nGot: {multiple}." + raise ValueError(msg) + if unit == "q" and multiple not in QUARTER_MULTIPLES: + msg = f"Only the following multiples are supported for 'q' unit: {QUARTER_MULTIPLES}.\nGot: {multiple}." + raise ValueError(msg) + if unit == "y" and multiple != 1: + msg = ( + f"Only multiple 1 is currently supported for 'y' unit.\nGot: {multiple}." + ) + raise ValueError(msg) + return cls(multiple, unit) + + @classmethod + def parse_no_constraints(cls, every: str) -> Interval: + return cls(*cls._parse(every)) + + @staticmethod + def _parse(every: str) -> tuple[int, IntervalUnit]: + if match := PATTERN_INTERVAL.match(every): + multiple = int(match["multiple"]) + unit = cast("IntervalUnit", match["unit"]) + return multiple, unit + msg = ( + f"Invalid `every` string: {every}. Expected string of kind , " + f"where 'unit' is one of: {get_args(IntervalUnit)}." + ) + raise ValueError(msg) diff --git a/shared/package-files/ec/ec2dc4133d4eb45b8bb65daf5f478555911f2eccaa7ead6c3a1b5920b2bfb5ba/blob b/shared/package-files/ec/ec2dc4133d4eb45b8bb65daf5f478555911f2eccaa7ead6c3a1b5920b2bfb5ba/blob new file mode 100644 index 0000000000000000000000000000000000000000..84a72e82097ab2c2887d75207db6c70ec8efb4a5 --- /dev/null +++ b/shared/package-files/ec/ec2dc4133d4eb45b8bb65daf5f478555911f2eccaa7ead6c3a1b5920b2bfb5ba/blob @@ -0,0 +1,136384 @@ +{ + "schema": "natural-disease-progression-report/v3", + "reward_metric": "panel_recall_at_5pct", + "panel": { + "panel_recall_at_5pct": 0.31725792706461575, + "panel_recall_at_1pct": 0.0871174073099208, + "panel_ppv_at_5pct": 0.09956215695459547, + "panel_auroc": 0.8074421312783728, + "panel_auprc": 0.09928749565308599, + "panel_calibration_slope_median": 0.7103088232772341, + "panel_prediction_to_observed_median": 0.8796704328381382, + "panel_ece_decile": 0.007149670380517231, + "endpoints_in_reward": [ + "I50", + "I48", + "I21", + "I26", + "I82", + "E11", + "N18", + "N17", + "A41", + "J18", + "J96", + "K72", + "J44", + "C78" + ], + "min_positives": 20, + "endpoints": { + "I50": { + "name": "heart failure", + "eligible": 2408, + "positives": 52, + "family_history_excluded": 7, + "in_reward": true, + "recall_at_5pct": 0.25, + "ppv_at_5pct": 0.10743801652892562, + "recall_at_1pct": 0.07692307692307693, + "ppv_at_1pct": 0.16, + "auroc": 0.8218052109181142, + "auprc": 0.10165579878590929, + "prevalence": 0.02159468438538206, + "calibration": { + "observed_rate": 0.02159468438538206, + "mean_prediction": 0.020140874905445135, + "prediction_to_observed": 0.9326774379290748, + "slope": 0.6110492440674338, + "ece_decile": 0.012756141703772584 + } + }, + "I48": { + "name": "atrial fibrillation/flutter", + "eligible": 2385, + "positives": 32, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.21875, + "ppv_at_5pct": 0.058333333333333334, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.7624707819804505, + "auprc": 0.03823638438694251, + "prevalence": 0.013417190775681341, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.012453179725352334, + "prediction_to_observed": 0.9281510514051662, + "slope": 0.6866993137606869, + "ece_decile": 0.004851874887102002 + } + }, + "I21": { + "name": "acute myocardial infarction", + "eligible": 2671, + "positives": 23, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.30434782608695654, + "ppv_at_5pct": 0.05223880597014925, + "recall_at_1pct": 0.043478260869565216, + "ppv_at_1pct": 0.037037037037037035, + "auroc": 0.8119663733088138, + "auprc": 0.03749768983046738, + "prevalence": 0.008611007113440658, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.012286682836584411, + "prediction_to_observed": 1.4268578198485637, + "slope": 0.7121203187599373, + "ece_decile": 0.006886446521250237 + } + }, + "I63": { + "name": "ischaemic stroke", + "eligible": 2662, + "positives": 14, + "family_history_excluded": 73, + "in_reward": false, + "recall_at_5pct": 0.14285714285714285, + "ppv_at_5pct": 0.014925373134328358, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.7224859732412603, + "auprc": 0.012844067274134636, + "prevalence": 0.005259203606311044, + "calibration": { + "observed_rate": 0.005259203606311044, + "mean_prediction": 0.0042564507653129625, + "prediction_to_observed": 0.8093337098045076, + "slope": 0.5274808861512388, + "ece_decile": 0.003975739864118458 + } + }, + "I61": { + "name": "intracerebral haemorrhage", + "eligible": 2802, + "positives": 9, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 0.3333333333333333, + "ppv_at_5pct": 0.02127659574468085, + "recall_at_1pct": 0.2222222222222222, + "ppv_at_1pct": 0.06896551724137931, + "auroc": 0.8719019771651351, + "auprc": 0.02974225916197339, + "prevalence": 0.0032119914346895075, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0010951458762401107, + "prediction_to_observed": 0.3409554161360878, + "slope": 1.2719579218352035, + "ece_decile": 0.0025063210940755544 + } + }, + "I26": { + "name": "pulmonary embolism", + "eligible": 2760, + "positives": 20, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.4, + "ppv_at_5pct": 0.057971014492753624, + "recall_at_1pct": 0.15, + "ppv_at_1pct": 0.10714285714285714, + "auroc": 0.7649817518248175, + "auprc": 0.06746637464489078, + "prevalence": 0.007246376811594203, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.006922103657621925, + "prediction_to_observed": 0.9552503047518257, + "slope": 0.8937359739327159, + "ece_decile": 0.002837595303861999 + } + }, + "I82": { + "name": "venous thrombosis", + "eligible": 2739, + "positives": 35, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.2571428571428571, + "ppv_at_5pct": 0.06569343065693431, + "recall_at_1pct": 0.08571428571428572, + "ppv_at_1pct": 0.10714285714285714, + "auroc": 0.7757924767540152, + "auprc": 0.06169328281348701, + "prevalence": 0.012778386272362175, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.011107776574115054, + "prediction_to_observed": 0.8692628581857467, + "slope": 0.6197405144203181, + "ece_decile": 0.0067270370261679705 + } + }, + "I71": { + "name": "aortic aneurysm/dissection", + "eligible": 2769, + "positives": 5, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 0.2, + "ppv_at_5pct": 0.007194244604316547, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.7496382054992764, + "auprc": 0.006082908235024815, + "prevalence": 0.0018057060310581437, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.002987555994939516, + "prediction_to_observed": 1.654508509997504, + "slope": 0.5155787756080856, + "ece_decile": 0.0025649927238119334 + } + }, + "E11": { + "name": "type 2 diabetes", + "eligible": 2161, + "positives": 21, + "family_history_excluded": 33, + "in_reward": true, + "recall_at_5pct": 0.14285714285714285, + "ppv_at_5pct": 0.027522935779816515, + "recall_at_1pct": 0.09523809523809523, + "ppv_at_1pct": 0.09090909090909091, + "auroc": 0.7177347574543836, + "auprc": 0.030746995257436575, + "prevalence": 0.00971772327626099, + "calibration": { + "observed_rate": 0.00971772327626099, + "mean_prediction": 0.0085521584088412, + "prediction_to_observed": 0.880057824833611, + "slope": 0.5094360113910746, + "ece_decile": 0.005345565946138565 + } + }, + "N18": { + "name": "chronic kidney disease", + "eligible": 2439, + "positives": 49, + "family_history_excluded": 1, + "in_reward": true, + "recall_at_5pct": 0.4489795918367347, + "ppv_at_5pct": 0.18032786885245902, + "recall_at_1pct": 0.20408163265306123, + "ppv_at_1pct": 0.4, + "auroc": 0.8499701135684399, + "auprc": 0.2498608632621588, + "prevalence": 0.02009020090200902, + "calibration": { + "observed_rate": 0.02009020090200902, + "mean_prediction": 0.012218738922330356, + "prediction_to_observed": 0.6081939639094641, + "slope": 0.843902268842101, + "ece_decile": 0.008057946312202678 + } + }, + "N17": { + "name": "acute kidney injury", + "eligible": 2292, + "positives": 104, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.2403846153846154, + "ppv_at_5pct": 0.21739130434782608, + "recall_at_1pct": 0.0673076923076923, + "ppv_at_1pct": 0.30434782608695654, + "auroc": 0.8164067993249895, + "auprc": 0.20038440382695716, + "prevalence": 0.04537521815008726, + "calibration": { + "observed_rate": 0.04537521815008726, + "mean_prediction": 0.03826870153816614, + "prediction_to_observed": 0.8433833069757384, + "slope": 0.7777134658197193, + "ece_decile": 0.013057756510857891 + } + }, + "A41": { + "name": "sepsis", + "eligible": 2661, + "positives": 76, + "family_history_excluded": 3, + "in_reward": true, + "recall_at_5pct": 0.15789473684210525, + "ppv_at_5pct": 0.08955223880597014, + "recall_at_1pct": 0.05263157894736842, + "ppv_at_1pct": 0.14814814814814814, + "auroc": 0.7517611727578133, + "auprc": 0.0774908777798938, + "prevalence": 0.028560691469372415, + "calibration": { + "observed_rate": 0.028560691469372415, + "mean_prediction": 0.02706152484761425, + "prediction_to_observed": 0.9475094423618621, + "slope": 0.5710095110660722, + "ece_decile": 0.01682403709235724 + } + }, + "J18": { + "name": "pneumonia", + "eligible": 2671, + "positives": 64, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.3125, + "ppv_at_5pct": 0.14925373134328357, + "recall_at_1pct": 0.03125, + "ppv_at_1pct": 0.07407407407407407, + "auroc": 0.7827064154200232, + "auprc": 0.09348080844975687, + "prevalence": 0.023961063272182705, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.02106855657578831, + "prediction_to_observed": 0.8792830408426653, + "slope": 0.7084973277945309, + "ece_decile": 0.0061518589107365275 + } + }, + "J96": { + "name": "respiratory failure", + "eligible": 2602, + "positives": 81, + "family_history_excluded": 3, + "in_reward": true, + "recall_at_5pct": 0.2222222222222222, + "ppv_at_5pct": 0.13740458015267176, + "recall_at_1pct": 0.04938271604938271, + "ppv_at_1pct": 0.14814814814814814, + "auroc": 0.8338744668243544, + "auprc": 0.12324751106290482, + "prevalence": 0.03112990007686395, + "calibration": { + "observed_rate": 0.03112990007686395, + "mean_prediction": 0.02583614555603668, + "prediction_to_observed": 0.8299463053926844, + "slope": 0.7472499737101597, + "ece_decile": 0.006778506767688926 + } + }, + "K74": { + "name": "hepatic fibrosis/cirrhosis", + "eligible": 2705, + "positives": 5, + "family_history_excluded": 58, + "in_reward": false, + "recall_at_5pct": 1.0, + "ppv_at_5pct": 0.03676470588235294, + "recall_at_1pct": 0.4, + "ppv_at_1pct": 0.07142857142857142, + "auroc": 0.9842962962962963, + "auprc": 0.08637571890348852, + "prevalence": 0.0018484288354898336, + "calibration": { + "observed_rate": 0.0018484288354898336, + "mean_prediction": 0.0026795815772042656, + "prediction_to_observed": 1.4496536332675076, + "slope": 1.2350838465954321, + "ece_decile": 0.000831152741714432 + } + }, + "K72": { + "name": "hepatic failure", + "eligible": 2787, + "positives": 22, + "family_history_excluded": 0, + "in_reward": true, + "recall_at_5pct": 0.7727272727272727, + "ppv_at_5pct": 0.12142857142857143, + "recall_at_1pct": 0.3181818181818182, + "ppv_at_1pct": 0.25, + "auroc": 0.9165378924872596, + "auprc": 0.2086485209747029, + "prevalence": 0.007893792608539648, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.006087592655829481, + "prediction_to_observed": 0.771187305990762, + "slope": 0.7908328627179299, + "ece_decile": 0.002944520709476905 + } + }, + "F03": { + "name": "dementia", + "eligible": 2665, + "positives": 13, + "family_history_excluded": 74, + "in_reward": false, + "recall_at_5pct": 0.15384615384615385, + "ppv_at_5pct": 0.014925373134328358, + "recall_at_1pct": 0.15384615384615385, + "ppv_at_1pct": 0.07407407407407407, + "auroc": 0.8504176818656457, + "auprc": 0.02920432647263379, + "prevalence": 0.004878048780487805, + "calibration": { + "observed_rate": 0.004878048780487805, + "mean_prediction": 0.0074213209143085745, + "prediction_to_observed": 1.5213707874332578, + "slope": 0.6890685168566253, + "ece_decile": 0.003692799026940071 + } + }, + "J44": { + "name": "COPD", + "eligible": 2543, + "positives": 27, + "family_history_excluded": 27, + "in_reward": true, + "recall_at_5pct": 0.25925925925925924, + "ppv_at_5pct": 0.0546875, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.824648177589354, + "auprc": 0.04025041304435111, + "prevalence": 0.01061738104600865, + "calibration": { + "observed_rate": 0.01061738104600865, + "mean_prediction": 0.010517671692695614, + "prediction_to_observed": 0.9906088560935166, + "slope": 0.8468717891692443, + "ece_decile": 0.004200304703227722 + } + }, + "J84": { + "name": "interstitial lung disease", + "eligible": 2817, + "positives": 7, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 0.42857142857142855, + "ppv_at_5pct": 0.02127659574468085, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.9181494661921709, + "auprc": 0.019870172249299017, + "prevalence": 0.0024849130280440185, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0021311956285019746, + "prediction_to_observed": 0.8576540122128661, + "slope": 1.2713385412857272, + "ece_decile": 0.0012061161106274902 + } + }, + "C18": { + "name": "colon cancer", + "eligible": 2824, + "positives": 2, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 1.0, + "ppv_at_5pct": 0.014084507042253521, + "recall_at_1pct": 0.0, + "ppv_at_1pct": 0.0, + "auroc": 0.9774982282069454, + "auprc": 0.023268398268398268, + "prevalence": 0.000708215297450425, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008564042631157447, + "prediction_to_observed": 1.2092428195194316, + "slope": 1.8904765790032882, + "ece_decile": 0.0005452500256145798 + } + }, + "C22": { + "name": "liver cancer", + "eligible": 2812, + "positives": 7, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 0.5714285714285714, + "ppv_at_5pct": 0.028368794326241134, + "recall_at_1pct": 0.14285714285714285, + "ppv_at_1pct": 0.034482758620689655, + "auroc": 0.8908072319837025, + "auprc": 0.029620649995226126, + "prevalence": 0.0024893314366998577, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0009195085883390053, + "prediction_to_observed": 0.36937973577275474, + "slope": 0.625055599965489, + "ece_decile": 0.001601220962449901 + } + }, + "C25": { + "name": "pancreatic cancer", + "eligible": 2809, + "positives": 4, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 0.5, + "ppv_at_5pct": 0.014184397163120567, + "recall_at_1pct": 0.25, + "ppv_at_1pct": 0.034482758620689655, + "auroc": 0.888680926916221, + "auprc": 0.13508084262073622, + "prevalence": 0.001423994304022784, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0009645224525044222, + "prediction_to_observed": 0.6773358922712305, + "slope": 0.8057940100932272, + "ece_decile": 0.0007511449526887712 + } + }, + "C61": { + "name": "prostate cancer", + "eligible": 2805, + "positives": 2, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 0.5, + "ppv_at_5pct": 0.0070921985815602835, + "recall_at_1pct": 0.5, + "ppv_at_1pct": 0.034482758620689655, + "auroc": 0.9595076703531931, + "auprc": 0.026570048309178744, + "prevalence": 0.00071301247771836, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.001613730900629591, + "prediction_to_observed": 2.2632575881330013, + "slope": 1.1492752067595342, + "ece_decile": 0.000900718422911231 + } + }, + "C67": { + "name": "bladder cancer", + "eligible": 2829, + "positives": 2, + "family_history_excluded": 0, + "in_reward": false, + "recall_at_5pct": 1.0, + "ppv_at_5pct": 0.014084507042253521, + "recall_at_1pct": 0.5, + "ppv_at_1pct": 0.034482758620689655, + "auroc": 0.9899186416696144, + "auprc": 0.050706033376123234, + "prevalence": 0.0007069635913750442, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009312806715864817, + "prediction_to_observed": 1.3172965099590783, + "slope": 2.049220314055915, + "ece_decile": 0.0006108704741734066 + } + }, + "C78": { + "name": "metastasis, respiratory/digestive", + "eligible": 2672, + "positives": 22, + "family_history_excluded": 90, + "in_reward": true, + "recall_at_5pct": 0.45454545454545453, + "ppv_at_5pct": 0.07462686567164178, + "recall_at_1pct": 0.045454545454545456, + "ppv_at_1pct": 0.037037037037037035, + "auroc": 0.873533447684391, + "auprc": 0.05936501502334493, + "prevalence": 0.008233532934131737, + "calibration": { + "observed_rate": 0.008233532934131737, + "mean_prediction": 0.006233673098697596, + "prediction_to_observed": 0.7571079327145442, + "slope": 0.6905819432664451, + "ece_decile": 0.0026757929323999734 + } + }, + "C79": { + "name": "metastasis, other sites", + "eligible": 2672, + "positives": 19, + "family_history_excluded": 79, + "in_reward": false, + "recall_at_5pct": 0.5263157894736842, + "ppv_at_5pct": 0.07462686567164178, + "recall_at_1pct": 0.15789473684210525, + "ppv_at_1pct": 0.1111111111111111, + "auroc": 0.8827345408375821, + "auprc": 0.08637425431722709, + "prevalence": 0.007110778443113772, + "calibration": { + "observed_rate": 0.007110778443113772, + "mean_prediction": 0.0074617755386882124, + "prediction_to_observed": 1.049361275756574, + "slope": 0.7979649642066403, + "ece_decile": 0.0026594556423940657 + } + } + } + }, + "primary": { + "macro_time_averaged_auroc": 0.790219967655546, + "macro_time_averaged_auprc": 0.04771577991340703, + "valid_diseases": 258, + "frozen_diseases": 262, + "valid_disease_time_cells": 3257, + "frozen_disease_time_cells": 3406, + "positive_support": 50984, + "negative_support": 8834988 + }, + "auxiliary": { + "raw_disease_time_brier_macro": 0.005606319727074339, + "age_sex_normalized_disease_time_brier": 1.5189746342884882 + }, + "normalization": { + "cells": 3406, + "floor_applied_cells": 1056, + "minimum_denominator": 0.001, + "maximum_weight": 1000.0, + "mean_train_reference_ratio": 0.8822734534079052 + }, + "mortality": { + "death_time_brier": 0.047346997796031395, + "by_time": { + "30": { + "valid": 2843, + "positives": 64, + "negatives": 2779, + "auroc": 0.9587643936667866, + "auprc": 0.4444339854009132, + "brier": 0.017267384957375734, + "calibration": { + "observed_rate": 0.022511431586352444, + "mean_prediction": 0.03372480241170237, + "calibration_in_the_large": 0.011213370825349928, + "expected_calibration_error_10bin": 0.011649349303557885, + "nonempty_bins": 8 + }, + "reason": null + }, + "60": { + "valid": 2843, + "positives": 107, + "negatives": 2736, + "auroc": 0.9452198447832978, + "auprc": 0.48414202572806647, + "brier": 0.027229240601930996, + "calibration": { + "observed_rate": 0.037636299683432996, + "mean_prediction": 0.04908199270299376, + "calibration_in_the_large": 0.011445693019560763, + "expected_calibration_error_10bin": 0.011575894119480151, + "nonempty_bins": 9 + }, + "reason": null + }, + "90": { + "valid": 2843, + "positives": 134, + "negatives": 2709, + "auroc": 0.944794300920646, + "auprc": 0.5439106436453175, + "brier": 0.03172178857793939, + "calibration": { + "observed_rate": 0.04713330988392543, + "mean_prediction": 0.060880928208170065, + "calibration_in_the_large": 0.013747618324244634, + "expected_calibration_error_10bin": 0.015753572788926595, + "nonempty_bins": 9 + }, + "reason": null + }, + "120": { + "valid": 2843, + "positives": 161, + "negatives": 2682, + "auroc": 0.9394074135830774, + "auprc": 0.5465232512595793, + "brier": 0.03734243650071984, + "calibration": { + "observed_rate": 0.056630320084417866, + "mean_prediction": 0.07027209110041417, + "calibration_in_the_large": 0.013641771015996305, + "expected_calibration_error_10bin": 0.01455228295280395, + "nonempty_bins": 9 + }, + "reason": null + }, + "150": { + "valid": 2843, + "positives": 192, + "negatives": 2651, + "auroc": 0.9303152112410411, + "auprc": 0.5616171357729612, + "brier": 0.04312870232138465, + "calibration": { + "observed_rate": 0.06753429475905734, + "mean_prediction": 0.07976795056728873, + "calibration_in_the_large": 0.012233655808231395, + "expected_calibration_error_10bin": 0.012300027288869269, + "nonempty_bins": 10 + }, + "reason": null + }, + "180": { + "valid": 2843, + "positives": 221, + "negatives": 2622, + "auroc": 0.9259381978455878, + "auprc": 0.5857449305533423, + "brier": 0.047260775825661745, + "calibration": { + "observed_rate": 0.07773478719662329, + "mean_prediction": 0.08771193854342124, + "calibration_in_the_large": 0.009977151346797955, + "expected_calibration_error_10bin": 0.010865282861141584, + "nonempty_bins": 10 + }, + "reason": null + }, + "210": { + "valid": 2843, + "positives": 238, + "negatives": 2605, + "auroc": 0.9231487604638785, + "auprc": 0.5893180937906242, + "brier": 0.050436505575998346, + "calibration": { + "observed_rate": 0.08371438621174815, + "mean_prediction": 0.09292716122461082, + "calibration_in_the_large": 0.009212775012862676, + "expected_calibration_error_10bin": 0.011045015783163636, + "nonempty_bins": 10 + }, + "reason": null + }, + "240": { + "valid": 2843, + "positives": 255, + "negatives": 2588, + "auroc": 0.9207049125678092, + "auprc": 0.6005720537208948, + "brier": 0.05309023003895987, + "calibration": { + "observed_rate": 0.08969398522687302, + "mean_prediction": 0.09828311602008141, + "calibration_in_the_large": 0.008589130793208388, + "expected_calibration_error_10bin": 0.0125425809668721, + "nonempty_bins": 10 + }, + "reason": null + }, + "270": { + "valid": 2843, + "positives": 273, + "negatives": 2570, + "auroc": 0.9162668719088952, + "auprc": 0.5996029499318851, + "brier": 0.05686151171921084, + "calibration": { + "observed_rate": 0.09602532536053465, + "mean_prediction": 0.10346448418320153, + "calibration_in_the_large": 0.00743915882266688, + "expected_calibration_error_10bin": 0.01455835652666589, + "nonempty_bins": 10 + }, + "reason": null + }, + "300": { + "valid": 2843, + "positives": 287, + "negatives": 2556, + "auroc": 0.9148277197057685, + "auprc": 0.6115157532961202, + "brier": 0.058645896755015026, + "calibration": { + "observed_rate": 0.10094970102004924, + "mean_prediction": 0.1086571706592637, + "calibration_in_the_large": 0.007707469639214454, + "expected_calibration_error_10bin": 0.013500370261277659, + "nonempty_bins": 10 + }, + "reason": null + }, + "330": { + "valid": 2843, + "positives": 305, + "negatives": 2538, + "auroc": 0.910682220413647, + "auprc": 0.6134388355821506, + "brier": 0.06182384729025749, + "calibration": { + "observed_rate": 0.10728104115371087, + "mean_prediction": 0.11285164351835814, + "calibration_in_the_large": 0.005570602364647265, + "expected_calibration_error_10bin": 0.01292239043368634, + "nonempty_bins": 10 + }, + "reason": null + }, + "360": { + "valid": 2843, + "positives": 319, + "negatives": 2524, + "auroc": 0.9090350193006076, + "auprc": 0.6110648446063246, + "brier": 0.06472866050473464, + "calibration": { + "observed_rate": 0.11220541681322546, + "mean_prediction": 0.1171515208694451, + "calibration_in_the_large": 0.004946104056219633, + "expected_calibration_error_10bin": 0.014072785329286207, + "nonempty_bins": 10 + }, + "reason": null + }, + "365": { + "valid": 2843, + "positives": 325, + "negatives": 2518, + "auroc": 0.9079110405083399, + "auprc": 0.6100821870048667, + "brier": 0.06597399067921957, + "calibration": { + "observed_rate": 0.114315863524446, + "mean_prediction": 0.11788064130802206, + "calibration_in_the_large": 0.0035647777835760563, + "expected_calibration_error_10bin": 0.013251813650906061, + "nonempty_bins": 10 + }, + "reason": null + } + } + }, + "cohort": { + "all_samples": 3915, + "primary_complete_year": 2843, + "partial_observation_outside_primary": 1072 + }, + "horizons": { + "30": { + "macro_auroc": 0.7888279012250586, + "macro_auprc": 0.028060161460247812, + "macro_brier": 0.001678071047391599, + "macro_normalized_brier": 0.9816640956210649, + "macro_expected_calibration_error_10bin": 0.0006965233082990574, + "valid_pairs": 715885, + "positive_pairs": 1140, + "valid_patients": 2843, + "scorable_auroc_diseases": 216, + "frozen_diseases": 262, + "disease_without_auc": { + "B00": "single_class", + "B02": "single_class", + "B20": "single_class", + "B34": "single_class", + "B35": "single_class", + "C25": "single_class", + "C83": "single_class", + "D59": "single_class", + "D73": "single_class", + "D75": "single_class", + "E27": "single_class", + "F02": "single_class", + "F20": "single_class", + "F22": "single_class", + "G31": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H10": "single_class", + "H26": "single_class", + "I07": "single_class", + "I46": "single_class", + "I65": "single_class", + "I96": "single_class", + "J02": "single_class", + "J12": "single_class", + "J30": "single_class", + "J47": "single_class", + "K04": "single_class", + "K26": "single_class", + "K29": "single_class", + "K30": "single_class", + "K40": "single_class", + "K70": "single_class", + "K81": "single_class", + "L53": "single_class", + "L98": "single_class", + "M46": "single_class", + "M51": "single_class", + "M62": "single_class", + "M84": "single_class", + "M96": "single_class", + "O69": "single_class", + "O99": "single_class", + "Q21": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 64, + "negatives": 2779, + "auroc": 0.9587643936667866, + "auprc": 0.4444339854009132, + "brier": 0.017267384957375734, + "calibration": { + "observed_rate": 0.022511431586352444, + "mean_prediction": 0.03372480241170237, + "calibration_in_the_large": 0.011213370825349928, + "expected_calibration_error_10bin": 0.011649349303557885, + "nonempty_bins": 8 + }, + "reason": null + } + }, + "60": { + "macro_auroc": 0.7929641163470358, + "macro_auprc": 0.036359213347095444, + "macro_brier": 0.002806158152791223, + "macro_normalized_brier": 1.2360900665843861, + "macro_expected_calibration_error_10bin": 0.0009600168613506252, + "valid_pairs": 715885, + "positive_pairs": 1922, + "valid_patients": 2843, + "scorable_auroc_diseases": 241, + "frozen_diseases": 262, + "disease_without_auc": { + "B02": "single_class", + "B20": "single_class", + "B35": "single_class", + "C83": "single_class", + "D59": "single_class", + "D75": "single_class", + "E27": "single_class", + "F22": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H26": "single_class", + "I46": "single_class", + "J12": "single_class", + "K04": "single_class", + "K30": "single_class", + "K40": "single_class", + "L53": "single_class", + "M51": "single_class", + "O99": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 107, + "negatives": 2736, + "auroc": 0.9452198447832978, + "auprc": 0.48414202572806647, + "brier": 0.027229240601930996, + "calibration": { + "observed_rate": 0.037636299683432996, + "mean_prediction": 0.04908199270299376, + "calibration_in_the_large": 0.011445693019560763, + "expected_calibration_error_10bin": 0.011575894119480151, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "90": { + "macro_auroc": 0.7857523623095244, + "macro_auprc": 0.04058893658747346, + "macro_brier": 0.0037897273054056696, + "macro_normalized_brier": 1.4322860614617434, + "macro_expected_calibration_error_10bin": 0.0012613683548249365, + "valid_pairs": 715885, + "positive_pairs": 2618, + "valid_patients": 2843, + "scorable_auroc_diseases": 248, + "frozen_diseases": 262, + "disease_without_auc": { + "B35": "single_class", + "C83": "single_class", + "D59": "single_class", + "E27": "single_class", + "F22": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H26": "single_class", + "J12": "single_class", + "K04": "single_class", + "K40": "single_class", + "L53": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 134, + "negatives": 2709, + "auroc": 0.944794300920646, + "auprc": 0.5439106436453175, + "brier": 0.03172178857793939, + "calibration": { + "observed_rate": 0.04713330988392543, + "mean_prediction": 0.060880928208170065, + "calibration_in_the_large": 0.013747618324244634, + "expected_calibration_error_10bin": 0.015753572788926595, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "120": { + "macro_auroc": 0.7821069198180369, + "macro_auprc": 0.04602476752205786, + "macro_brier": 0.004531567188310379, + "macro_normalized_brier": 1.5211170369772562, + "macro_expected_calibration_error_10bin": 0.0015613793904122612, + "valid_pairs": 715885, + "positive_pairs": 3140, + "valid_patients": 2843, + "scorable_auroc_diseases": 252, + "frozen_diseases": 262, + "disease_without_auc": { + "B35": "single_class", + "C83": "single_class", + "D59": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H26": "single_class", + "J12": "single_class", + "L53": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 161, + "negatives": 2682, + "auroc": 0.9394074135830774, + "auprc": 0.5465232512595793, + "brier": 0.03734243650071984, + "calibration": { + "observed_rate": 0.056630320084417866, + "mean_prediction": 0.07027209110041417, + "calibration_in_the_large": 0.013641771015996305, + "expected_calibration_error_10bin": 0.01455228295280395, + "nonempty_bins": 9 + }, + "reason": null + } + }, + "150": { + "macro_auroc": 0.7847165402799822, + "macro_auprc": 0.047248179515015996, + "macro_brier": 0.005002898025522705, + "macro_normalized_brier": 1.5378882422086768, + "macro_expected_calibration_error_10bin": 0.001703607519104651, + "valid_pairs": 715885, + "positive_pairs": 3476, + "valid_patients": 2843, + "scorable_auroc_diseases": 252, + "frozen_diseases": 262, + "disease_without_auc": { + "B35": "single_class", + "C83": "single_class", + "D59": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H26": "single_class", + "J12": "single_class", + "L53": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 192, + "negatives": 2651, + "auroc": 0.9303152112410411, + "auprc": 0.5616171357729612, + "brier": 0.04312870232138465, + "calibration": { + "observed_rate": 0.06753429475905734, + "mean_prediction": 0.07976795056728873, + "calibration_in_the_large": 0.012233655808231395, + "expected_calibration_error_10bin": 0.012300027288869269, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "180": { + "macro_auroc": 0.787538049073546, + "macro_auprc": 0.04846308274977367, + "macro_brier": 0.005435795229603519, + "macro_normalized_brier": 1.548187232906075, + "macro_expected_calibration_error_10bin": 0.0018587140157686206, + "valid_pairs": 715885, + "positive_pairs": 3784, + "valid_patients": 2843, + "scorable_auroc_diseases": 253, + "frozen_diseases": 262, + "disease_without_auc": { + "B35": "single_class", + "C83": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H26": "single_class", + "J12": "single_class", + "L53": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 221, + "negatives": 2622, + "auroc": 0.9259381978455878, + "auprc": 0.5857449305533423, + "brier": 0.047260775825661745, + "calibration": { + "observed_rate": 0.07773478719662329, + "mean_prediction": 0.08771193854342124, + "calibration_in_the_large": 0.009977151346797955, + "expected_calibration_error_10bin": 0.010865282861141584, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "210": { + "macro_auroc": 0.7885926503757834, + "macro_auprc": 0.050590796659066954, + "macro_brier": 0.006015637057262005, + "macro_normalized_brier": 1.6015959328687637, + "macro_expected_calibration_error_10bin": 0.0020888245914580396, + "valid_pairs": 715885, + "positive_pairs": 4211, + "valid_patients": 2843, + "scorable_auroc_diseases": 253, + "frozen_diseases": 262, + "disease_without_auc": { + "B35": "single_class", + "C83": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H26": "single_class", + "J12": "single_class", + "L53": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 238, + "negatives": 2605, + "auroc": 0.9231487604638785, + "auprc": 0.5893180937906242, + "brier": 0.050436505575998346, + "calibration": { + "observed_rate": 0.08371438621174815, + "mean_prediction": 0.09292716122461082, + "calibration_in_the_large": 0.009212775012862676, + "expected_calibration_error_10bin": 0.011045015783163636, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "240": { + "macro_auroc": 0.7922334232475916, + "macro_auprc": 0.05369967885526287, + "macro_brier": 0.006398816699267058, + "macro_normalized_brier": 1.6135862655790216, + "macro_expected_calibration_error_10bin": 0.002197839224300941, + "valid_pairs": 715885, + "positive_pairs": 4489, + "valid_patients": 2843, + "scorable_auroc_diseases": 254, + "frozen_diseases": 262, + "disease_without_auc": { + "C83": "single_class", + "G51": "single_class", + "G90": "single_class", + "G99": "single_class", + "H26": "single_class", + "J12": "single_class", + "L53": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 255, + "negatives": 2588, + "auroc": 0.9207049125678092, + "auprc": 0.6005720537208948, + "brier": 0.05309023003895987, + "calibration": { + "observed_rate": 0.08969398522687302, + "mean_prediction": 0.09828311602008141, + "calibration_in_the_large": 0.008589130793208388, + "expected_calibration_error_10bin": 0.0125425809668721, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "270": { + "macro_auroc": 0.7895944114655671, + "macro_auprc": 0.05352732536130517, + "macro_brier": 0.006779007897455079, + "macro_normalized_brier": 1.637298937111299, + "macro_expected_calibration_error_10bin": 0.0023152860281237682, + "valid_pairs": 715885, + "positive_pairs": 4765, + "valid_patients": 2843, + "scorable_auroc_diseases": 256, + "frozen_diseases": 262, + "disease_without_auc": { + "G51": "single_class", + "G90": "single_class", + "H26": "single_class", + "J12": "single_class", + "L53": "single_class", + "U07": "single_class" + }, + "death": { + "valid": 2843, + "positives": 273, + "negatives": 2570, + "auroc": 0.9162668719088952, + "auprc": 0.5996029499318851, + "brier": 0.05686151171921084, + "calibration": { + "observed_rate": 0.09602532536053465, + "mean_prediction": 0.10346448418320153, + "calibration_in_the_large": 0.00743915882266688, + "expected_calibration_error_10bin": 0.01455835652666589, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "300": { + "macro_auroc": 0.7932946063016427, + "macro_auprc": 0.05362478493905603, + "macro_brier": 0.007161292307598787, + "macro_normalized_brier": 1.6504723293084995, + "macro_expected_calibration_error_10bin": 0.002424990995454269, + "valid_pairs": 715885, + "positive_pairs": 5033, + "valid_patients": 2843, + "scorable_auroc_diseases": 258, + "frozen_diseases": 262, + "disease_without_auc": { + "G51": "single_class", + "G90": "single_class", + "H26": "single_class", + "L53": "single_class" + }, + "death": { + "valid": 2843, + "positives": 287, + "negatives": 2556, + "auroc": 0.9148277197057685, + "auprc": 0.6115157532961202, + "brier": 0.058645896755015026, + "calibration": { + "observed_rate": 0.10094970102004924, + "mean_prediction": 0.1086571706592637, + "calibration_in_the_large": 0.007707469639214454, + "expected_calibration_error_10bin": 0.013500370261277659, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "330": { + "macro_auroc": 0.7919621743423989, + "macro_auprc": 0.05478533404080849, + "macro_brier": 0.007528563731606677, + "macro_normalized_brier": 1.659298288391825, + "macro_expected_calibration_error_10bin": 0.0026032460967712846, + "valid_pairs": 715885, + "positive_pairs": 5304, + "valid_patients": 2843, + "scorable_auroc_diseases": 258, + "frozen_diseases": 262, + "disease_without_auc": { + "G51": "single_class", + "G90": "single_class", + "H26": "single_class", + "L53": "single_class" + }, + "death": { + "valid": 2843, + "positives": 305, + "negatives": 2538, + "auroc": 0.910682220413647, + "auprc": 0.6134388355821506, + "brier": 0.06182384729025749, + "calibration": { + "observed_rate": 0.10728104115371087, + "mean_prediction": 0.11285164351835814, + "calibration_in_the_large": 0.005570602364647265, + "expected_calibration_error_10bin": 0.01292239043368634, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "360": { + "macro_auroc": 0.7898580501599253, + "macro_auprc": 0.05491474854341776, + "macro_brier": 0.007856339667695484, + "macro_normalized_brier": 1.664257412413702, + "macro_expected_calibration_error_10bin": 0.0027671848944824406, + "valid_pairs": 715885, + "positive_pairs": 5535, + "valid_patients": 2843, + "scorable_auroc_diseases": 258, + "frozen_diseases": 262, + "disease_without_auc": { + "G51": "single_class", + "G90": "single_class", + "H26": "single_class", + "L53": "single_class" + }, + "death": { + "valid": 2843, + "positives": 319, + "negatives": 2524, + "auroc": 0.9090350193006076, + "auprc": 0.6110648446063246, + "brier": 0.06472866050473464, + "calibration": { + "observed_rate": 0.11220541681322546, + "mean_prediction": 0.1171515208694451, + "calibration_in_the_large": 0.004946104056219633, + "expected_calibration_error_10bin": 0.014072785329286207, + "nonempty_bins": 10 + }, + "reason": null + } + }, + "365": { + "macro_auroc": 0.7904558420055667, + "macro_auprc": 0.05522735015355835, + "macro_brier": 0.007898282445128921, + "macro_normalized_brier": 1.6629284711829413, + "macro_expected_calibration_error_10bin": 0.002778573480964782, + "valid_pairs": 715885, + "positive_pairs": 5567, + "valid_patients": 2843, + "scorable_auroc_diseases": 258, + "frozen_diseases": 262, + "disease_without_auc": { + "G51": "single_class", + "G90": "single_class", + "H26": "single_class", + "L53": "single_class" + }, + "death": { + "valid": 2843, + "positives": 325, + "negatives": 2518, + "auroc": 0.9079110405083399, + "auprc": 0.6100821870048667, + "brier": 0.06597399067921957, + "calibration": { + "observed_rate": 0.114315863524446, + "mean_prediction": 0.11788064130802206, + "calibration_in_the_large": 0.0035647777835760563, + "expected_calibration_error_10bin": 0.013251813650906061, + "nonempty_bins": 10 + }, + "reason": null + } + } + }, + "per_disease": { + "time_brier": { + "A04": { + "normalized_time_brier": 2.1604747911042366, + "normalized_timepoint_brier": [ + 1.0845016222447157, + 1.609279373532747, + 2.205429428503977, + 2.421476512322612, + 2.505393568439954, + 2.4060703978616074, + 2.2836873351526594, + 2.2183829295694317, + 2.299274832996453, + 2.2412826766201244, + 2.238038434302216, + 2.2865410514660343, + 2.286814121342547 + ], + "raw_time_brier": 0.007184860618928304, + "raw_timepoint_brier": [ + 0.0010845016222447157, + 0.002493601990863681, + 0.004972841124981642, + 0.006393601186573505, + 0.007076950278133154, + 0.0074405004270374775, + 0.0077509102411568165, + 0.008124111220240593, + 0.008843742311000824, + 0.009182852692902088, + 0.009544163942337036, + 0.010247093625366688, + 0.010248317383229733 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0015495146659275432, + 0.0022548176154314316, + 0.002640372993104502, + 0.002824686056227004, + 0.003092386836914753, + 0.00339403302801024, + 0.0036621771254872625, + 0.003846318058235566, + 0.004097141689753261, + 0.004264521911712723, + 0.00448148246400242, + 0.004481482464002423 + ] + }, + "A08": { + "normalized_time_brier": 2.2697956069357863, + "normalized_timepoint_brier": [ + 1.7660208977758884, + 2.451634965837002, + 2.4379391688853502, + 2.292943350214519, + 2.8956000618753803, + 2.725645853487586, + 2.5374276566597413, + 2.4013888051242107, + 2.2567751732103964, + 2.109688815961235, + 1.9643720853037079, + 1.8411913976285703, + 1.8267146582016327 + ], + "raw_time_brier": 0.00329142389819026, + "raw_timepoint_brier": [ + 0.0017660208977758884, + 0.002451634965837002, + 0.0024379391688853502, + 0.0024201711639761925, + 0.0034438329748809338, + 0.0037886847276240587, + 0.0037816299591213465, + 0.003779688151553273, + 0.0037783263251185417, + 0.0037788075860589743, + 0.003780906554311514, + 0.003790050745010376, + 0.003790817456319928 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0010554866799259435, + 0.0011893330920329107, + 0.0013900135715636964, + 0.0014903400099687838, + 0.0015739592620270296, + 0.001674214768918983, + 0.0017911682317646649, + 0.0019247405227339886, + 0.0020584773260900035, + 0.0020752105093698207 + ] + }, + "A41": { + "normalized_time_brier": 2.179169861604208, + "normalized_timepoint_brier": [ + 1.0358349798257744, + 1.890698169993441, + 1.9667470545830457, + 1.978217556006901, + 2.1812533340500897, + 2.389351018401273, + 2.3809110215030285, + 2.331155331883774, + 2.416898171916423, + 2.3925453163952826, + 2.4102429834045522, + 2.4839963469895054, + 2.471356915901615 + ], + "raw_time_brier": 0.01795453540622615, + "raw_timepoint_brier": [ + 0.0019038242753595114, + 0.007096077315509319, + 0.01004839688539505, + 0.012209276668727398, + 0.014842632226645947, + 0.018051978200674057, + 0.01977252960205078, + 0.02086562290787697, + 0.022987931966781616, + 0.02421439252793789, + 0.025654956698417664, + 0.027868062257766724, + 0.027893278747797012 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0018379609806957195, + 0.00375315183995441, + 0.0051091455111014926, + 0.006171857403476004, + 0.006804634745972659, + 0.007555180491124627, + 0.008304606691924472, + 0.008950764722750477, + 0.00951133656928288, + 0.010120766516732228, + 0.010644137074586207, + 0.01121904317272511, + 0.011286624998729016 + ] + }, + "B00": { + "normalized_time_brier": 1.0624415578804103, + "normalized_timepoint_brier": [ + 0.0024042215045483317, + 0.35036398912779987, + 0.3760194522328675, + 0.3867118794005364, + 1.1282541090622544, + 1.1481643887236714, + 1.521281199529767, + 1.5271600568667054, + 1.5380805125460029, + 1.5459213173016906, + 1.4611237453791122, + 1.4126514947849576, + 1.4136038859854192 + ], + "raw_time_brier": 0.0010960066449745053, + "raw_timepoint_brier": [ + 2.4042215045483317e-06, + 0.00035036398912779987, + 0.0003760194522328675, + 0.0003867118794005364, + 0.0011282541090622544, + 0.0011481643887236714, + 0.001521281199529767, + 0.0015271600568667054, + 0.0015380805125460029, + 0.0015459213173016906, + 0.0015616687014698982, + 0.001580495503731072, + 0.0015815610531717539 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001068813443357392, + 0.0011188148737078742, + 0.001118814873707886 + ] + }, + "B02": { + "normalized_time_brier": 0.24161206050243947, + "normalized_timepoint_brier": [ + 0.00021605397648727376, + 0.0007038541411930055, + 0.35466699046082795, + 0.35513550392352045, + 0.35568451858125627, + 0.3564050421118736, + 0.3204732239786402, + 0.27635326216943557, + 0.24830061781637294, + 0.237645822377091, + 0.21694541777203258, + 0.2091994205303255, + 0.20922705869265676 + ], + "raw_time_brier": 0.00030345078334356946, + "raw_timepoint_brier": [ + 2.1605397648727376e-07, + 7.038541411930055e-07, + 0.00035466699046082795, + 0.00035513550392352045, + 0.00035568451858125627, + 0.0003564050421118736, + 0.0003576804301701486, + 0.000359012046828866, + 0.0003597252070903778, + 0.00036009139148518443, + 0.00036116663250140846, + 0.00036216233274899423, + 0.0003622101794462651 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011161008265513886, + 0.0012991055144800545, + 0.0014487487395476691, + 0.001515243936894458, + 0.0016647811058213928, + 0.0017311822940565711, + 0.0017311822940565842 + ] + }, + "B18": { + "normalized_time_brier": 1.4912589746441693, + "normalized_timepoint_brier": [ + 0.36249097320251167, + 1.0592477628961205, + 1.0666419984772801, + 1.0648121824488044, + 1.4210588997229934, + 1.6924672058644064, + 1.6347958815544155, + 1.5371433527826164, + 2.0315925857581765, + 1.8789665102581836, + 1.7524702727812613, + 1.942226916598698, + 1.9424521280287352 + ], + "raw_time_brier": 0.0017673559733129179, + "raw_timepoint_brier": [ + 0.00036249097320251167, + 0.0010592477628961205, + 0.0010666419984772801, + 0.0010648121824488044, + 0.0014210588997229934, + 0.0016992191085591912, + 0.001696757972240448, + 0.0016998255159705877, + 0.002418980235233903, + 0.0024284902028739452, + 0.0024435906670987606, + 0.002807093318551779, + 0.002807418815791607 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010039893846518204, + 0.0010379020349788972, + 0.0011058340869076887, + 0.0011906817598131547, + 0.0012924606104556132, + 0.0013943692541047532, + 0.0014452962702564476, + 0.0014452962702564353 + ] + }, + "B19": { + "normalized_time_brier": 1.2978711002126364, + "normalized_timepoint_brier": [ + 1.8754707625590301, + 1.7747228609123156, + 1.366781175276038, + 1.4076239338795784, + 1.3728744116520593, + 1.2611828093164517, + 1.2256167612522029, + 1.2415649121824417, + 1.1710581677330816, + 1.1010031033932797, + 1.048316900244487, + 1.0145118706355456, + 1.0115966337277622 + ], + "raw_time_brier": 0.00524223420339135, + "raw_timepoint_brier": [ + 0.002523365430533886, + 0.004284237045794725, + 0.004270227625966072, + 0.004968231078237295, + 0.005308464169502258, + 0.005300587974488735, + 0.005645404569804668, + 0.005989812780171633, + 0.00598238967359066, + 0.005975919775664806, + 0.005970788188278675, + 0.005964997690171003, + 0.005964618641883135 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001345457087846478, + 0.002414031587778368, + 0.0031242950248445206, + 0.0035295159159053663, + 0.0038666786447817, + 0.004202870460438325, + 0.004606174416248031, + 0.004824405652413814, + 0.0051085333234738356, + 0.005427704751464447, + 0.005695594706988103, + 0.005879672641419369, + 0.005896242082086954 + ] + }, + "B20": { + "normalized_time_brier": 0.9994920412068253, + "normalized_timepoint_brier": [ + 0.00037599335200866335, + 0.0009353180416837859, + 0.35449390998110175, + 1.044275937601924, + 1.0422811610624194, + 1.0394667042419314, + 1.2949511655663184, + 1.5280677452311915, + 1.4611373261531744, + 1.3469893627195744, + 1.3271741696599282, + 1.2766753380639757, + 1.2765724040134974 + ], + "raw_time_brier": 0.0011717223685799093, + "raw_timepoint_brier": [ + 3.7599335200866335e-07, + 9.353180416837859e-07, + 0.00035449390998110175, + 0.001044275937601924, + 0.0010422811610624194, + 0.0010394667042419314, + 0.0013829270610585809, + 0.0017334367148578167, + 0.0017306790687143803, + 0.0017294849967584014, + 0.0017261839238926768, + 0.0017239945009350777, + 0.0017238555010408163 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010679376163608364, + 0.0011343978172875795, + 0.0011844739284505481, + 0.0012839633664712598, + 0.0013006461121338655, + 0.001350378165485238, + 0.0013503781654852299 + ] + }, + "B34": { + "normalized_time_brier": 1.3762985853702503, + "normalized_timepoint_brier": [ + 0.00022081147221797437, + 0.6986693479120731, + 1.0448155226185918, + 1.392488251440227, + 1.3925328385084867, + 1.3905486557632685, + 1.7171099316328764, + 1.7147581093013287, + 1.7089678440243006, + 1.7074189381673932, + 1.707867020741105, + 1.7082123085856438, + 1.708272029645741 + ], + "raw_time_brier": 0.0013762985853702503, + "raw_timepoint_brier": [ + 2.2081147221797437e-07, + 0.0006986693479120731, + 0.0010448155226185918, + 0.001392488251440227, + 0.0013925328385084867, + 0.0013905486557632685, + 0.0017171099316328764, + 0.0017147581093013287, + 0.0017089678440243006, + 0.0017074189381673932, + 0.001707867020741105, + 0.0017082123085856438, + 0.001708272029645741 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "B35": { + "normalized_time_brier": 0.14865707984147167, + "normalized_timepoint_brier": [ + 0.00027492578169585613, + 0.0017495085558039136, + 0.004187364993413212, + 0.005047491094082704, + 0.005668108557603879, + 0.006570003844748054, + 0.007743562919580728, + 0.22748634983978444, + 0.2073579928296634, + 0.3866811884132919, + 0.376889716266364, + 0.3528074132657433, + 0.3500784115773563 + ], + "raw_time_brier": 0.0002791157261102538, + "raw_timepoint_brier": [ + 2.7492578169585613e-07, + 1.7495085558039136e-06, + 4.187364993413212e-06, + 5.799705377285136e-06, + 6.795432000217261e-06, + 8.422712198807858e-06, + 1.134300237026764e-05, + 0.0003634552122093737, + 0.0003657149209175259, + 0.0007140087545849383, + 0.0007147183641791344, + 0.0007158834487199783, + 0.0007161510875448585 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0011490273621451797, + 0.0011988888235213943, + 0.001281995018243532, + 0.0014648298836166494, + 0.0015977011915895188, + 0.0017636885654942975, + 0.0018465050175179268, + 0.0018963594211576006, + 0.00202910546037976, + 0.002045687662709849 + ] + }, + "B37": { + "normalized_time_brier": 1.678432344438374, + "normalized_timepoint_brier": [ + 2.01409043674366, + 1.8216463831754388, + 1.635325428587304, + 1.6310053981107726, + 1.5032583973809677, + 1.542572117130054, + 1.6756330608083259, + 1.6464921121183718, + 1.6900406957128555, + 1.6713952774696978, + 1.6400437395856626, + 1.6773115533807326, + 1.6708058774950165 + ], + "raw_time_brier": 0.009722727171790142, + "raw_timepoint_brier": [ + 0.002869929652661085, + 0.0053678881376981735, + 0.006446192041039467, + 0.007883201353251934, + 0.008275646716356277, + 0.00937280897051096, + 0.010742545127868652, + 0.010997071862220764, + 0.012079465202987194, + 0.012477245181798935, + 0.012818202376365662, + 0.013530808500945568, + 0.013534448109567165 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0014249259121160065, + 0.002946723462509246, + 0.003941840521985944, + 0.004833338603528357, + 0.005505139190158136, + 0.006076091267583012, + 0.006411036747321306, + 0.006679091737689508, + 0.007147440433611631, + 0.007465167186955358, + 0.00781576860846652, + 0.008066961962834709, + 0.008100550932858167 + ] + }, + "B95": { + "normalized_time_brier": 1.4931251610056944, + "normalized_timepoint_brier": [ + 1.7481191611599611, + 1.6414337516029482, + 1.583713822693616, + 1.5365759010040483, + 1.4746978530035937, + 1.3500279661693249, + 1.5036748765919925, + 1.4759837802240108, + 1.4518844587950281, + 1.4796608441023524, + 1.4161178548723787, + 1.3770287420845302, + 1.371708080770242 + ], + "raw_time_brier": 0.017194759852897663, + "raw_timepoint_brier": [ + 0.005579906981438398, + 0.01001487672328949, + 0.012637157924473286, + 0.014582909643650055, + 0.015760371461510658, + 0.015831680968403816, + 0.0189872607588768, + 0.020042672753334045, + 0.020775040611624718, + 0.02209852822124958, + 0.022129688411951065, + 0.02254331111907959, + 0.02254847250878811 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0031919488701993644, + 0.006101298156876222, + 0.007979445366574956, + 0.009490523464620986, + 0.010687186822311222, + 0.011726928156403952, + 0.012627238144664972, + 0.013579195802742602, + 0.014309017832497967, + 0.014934860450845966, + 0.015627010376156443, + 0.01637098081551572, + 0.016438244277256632 + ] + }, + "B96": { + "normalized_time_brier": 1.3854623679870928, + "normalized_timepoint_brier": [ + 1.126621256417982, + 1.2637497712680774, + 1.4573059968318456, + 1.4631249345672852, + 1.4276865139665327, + 1.391121193767772, + 1.4766554356689223, + 1.4221787890082418, + 1.3855757355205804, + 1.3760670760769427, + 1.406757411961656, + 1.401072053868444, + 1.4130946149079244 + ], + "raw_time_brier": 0.022648512958907165, + "raw_timepoint_brier": [ + 0.005649156868457794, + 0.011118640191853046, + 0.01616087183356285, + 0.019005561247467995, + 0.020830878987908363, + 0.022259147837758064, + 0.0254258643835783, + 0.02611946128308773, + 0.02689477615058422, + 0.027981115505099297, + 0.029975365847349167, + 0.03132368251681328, + 0.031686145812273026 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.005014246656785898, + 0.00879813428626486, + 0.01108955282466158, + 0.01298970497901386, + 0.014590653329093976, + 0.016000868894442213, + 0.01721854927656866, + 0.018365807087660314, + 0.019410542102543008, + 0.020334121781963727, + 0.021308127181324, + 0.02235693905272517, + 0.022423230177221826 + ] + }, + "B97": { + "normalized_time_brier": 0.5540110108156043, + "normalized_timepoint_brier": [ + 0.35375269362702966, + 0.3553781134542078, + 0.35826480598188937, + 0.3593966248445213, + 0.36039631231687963, + 0.3629707789514214, + 0.7104803808033466, + 0.7127827848307788, + 0.7191721233539283, + 0.7244446314871311, + 0.7276132237166166, + 0.7286610780283809, + 0.7288295892067254 + ], + "raw_time_brier": 0.0005540110108156044, + "raw_timepoint_brier": [ + 0.00035375269362702966, + 0.0003553781134542078, + 0.00035826480598188937, + 0.0003593966248445213, + 0.00036039631231687963, + 0.0003629707789514214, + 0.0007104803808033466, + 0.0007127827848307788, + 0.0007191721233539283, + 0.0007244446314871311, + 0.0007276132237166166, + 0.0007286610780283809, + 0.0007288295892067254 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "C18": { + "normalized_time_brier": 0.6489931189347632, + "normalized_timepoint_brier": [ + 0.35342370392754674, + 0.3527130756992847, + 0.703824101947248, + 0.7029387052170932, + 0.7029310218058527, + 0.7028848049230874, + 0.7028526742942631, + 0.7026761886663735, + 0.7025503437034786, + 0.7026075618341565, + 0.7024633232504129, + 0.7025201339274645, + 0.7025249069556594 + ], + "raw_time_brier": 0.0006489931189347631, + "raw_timepoint_brier": [ + 0.00035342370392754674, + 0.00035271307569928467, + 0.000703824101947248, + 0.0007029387052170932, + 0.0007029310218058527, + 0.0007028848049230874, + 0.0007028526742942631, + 0.0007026761886663735, + 0.0007025503437034786, + 0.0007026075618341565, + 0.0007024633232504129, + 0.0007025201339274645, + 0.0007025249069556594 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "C22": { + "normalized_time_brier": 1.8550093625752846, + "normalized_timepoint_brier": [ + 0.7118356297723949, + 1.0682664578780532, + 1.7739641480147839, + 1.7741648480296135, + 1.774233067408204, + 1.7732245614752173, + 1.772988704033196, + 2.1274955943226814, + 2.1274741739034653, + 2.1292436867952347, + 2.436017853239062, + 2.3231122612032586, + 2.3231007274035362 + ], + "raw_time_brier": 0.0018837274490998914, + "raw_timepoint_brier": [ + 0.0007118356297723949, + 0.0010682664578780532, + 0.0017739641480147839, + 0.0017741648480296135, + 0.001774233067408204, + 0.0017732245614752173, + 0.001772988704033196, + 0.0021274955943226814, + 0.0021274741739034653, + 0.0021292436867952347, + 0.002484577940776944, + 0.002485500182956457, + 0.0024854878429323435 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001019934208393963, + 0.0010699010222041914, + 0.0010699010222041912 + ] + }, + "C25": { + "normalized_time_brier": 0.6210963784553822, + "normalized_timepoint_brier": [ + 0.002409746457487927, + 0.3089981328230351, + 0.304889545077458, + 0.30164633062668145, + 0.6541229085996747, + 0.6388777825895456, + 0.6175292524292368, + 0.5887539408489151, + 0.8340468675478077, + 0.7891044008316259, + 1.0282039018445441, + 1.00283698592028, + 1.0028331243236759 + ], + "raw_time_brier": 0.0007399744382347798, + "raw_timepoint_brier": [ + 2.409746457487927e-06, + 0.0003089981328230351, + 0.000304889545077458, + 0.00030164633062668145, + 0.0006541229085996747, + 0.0006529535166919231, + 0.0006517802248708904, + 0.0006509664235636592, + 0.0010059175547212362, + 0.0010045507224276662, + 0.0013605158310383558, + 0.0013604609994217753, + 0.0013604557607322931 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010220319668111243, + 0.0010554645343632176, + 0.001105668053151442, + 0.00120606838040019, + 0.0012730263845556868, + 0.0013231965260953216, + 0.0013566123094007271, + 0.001356612309400732 + ] + }, + "C61": { + "normalized_time_brier": 0.5975515803953958, + "normalized_timepoint_brier": [ + 0.35621007555164397, + 0.7089701248332858, + 0.7083959062583745, + 0.708913488779217, + 0.7087428821250796, + 0.7061317528245598, + 0.6836498376197706, + 0.6058846948291543, + 0.5660880500333201, + 0.524563910362368, + 0.5120478770135459, + 0.49479952517210035, + 0.48377241973772467 + ], + "raw_time_brier": 0.0006823249613472188, + "raw_timepoint_brier": [ + 0.00035621007555164397, + 0.0007089701248332858, + 0.0007083959062583745, + 0.000708913488779217, + 0.0007087428821250796, + 0.0007089489372447133, + 0.0007090925937518477, + 0.0007092358428053558, + 0.0007096827612258494, + 0.0007099765934981406, + 0.0007101254304870963, + 0.0007108246209099889, + 0.0007111052400432527 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.00100398960166978, + 0.0010372160640316392, + 0.0011705789052904598, + 0.001253661442215707, + 0.001353460616472242, + 0.0013868340488565494, + 0.0014365911540896307, + 0.0014699168679950289 + ] + }, + "C67": { + "normalized_time_brier": 0.7009771607744579, + "normalized_timepoint_brier": [ + 0.7053245208226144, + 0.7048039697110653, + 0.7040710188448429, + 0.7017202442511916, + 0.7013053400442004, + 0.7007061503827572, + 0.7006010273471475, + 0.7001223275437951, + 0.7002062629908323, + 0.6985068321228027, + 0.6984748761169612, + 0.6984706269577146, + 0.6983898929320276 + ], + "raw_time_brier": 0.000700977160774458, + "raw_timepoint_brier": [ + 0.0007053245208226144, + 0.0007048039697110653, + 0.0007040710188448429, + 0.0007017202442511916, + 0.0007013053400442004, + 0.0007007061503827572, + 0.0007006010273471475, + 0.0007001223275437951, + 0.0007002062629908323, + 0.0006985068321228027, + 0.0006984748761169612, + 0.0006984706269577146, + 0.0006983898929320276 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "C77": { + "normalized_time_brier": 1.2032056856625388, + "normalized_timepoint_brier": [ + 0.9973754952301987, + 1.1596251339360935, + 1.22705860750345, + 1.1750208962252295, + 1.1087467908392088, + 1.1811654162403535, + 1.2086879527183958, + 1.3309696941912301, + 1.241685175974726, + 1.2053075182735358, + 1.259945740527568, + 1.2781913963556273, + 1.2678940955973854 + ], + "raw_time_brier": 0.005623761949559243, + "raw_timepoint_brier": [ + 0.0014067200245335698, + 0.002774415770545602, + 0.0038482090458273888, + 0.004498393274843693, + 0.004842397756874561, + 0.005556043237447739, + 0.005909203551709652, + 0.006910242605954409, + 0.006905538495630026, + 0.00690564326941967, + 0.0076202210038900375, + 0.007966181263327599, + 0.007965696044266224 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0014104216829679502, + 0.002392510898007579, + 0.003136124894357639, + 0.003828351724888333, + 0.004367451429743808, + 0.004703865488317978, + 0.004888940556096035, + 0.005191885762773471, + 0.005561424610074096, + 0.005729362145945301, + 0.0060480548953634125, + 0.006232385295379654, + 0.006282619401672566 + ] + }, + "C78": { + "normalized_time_brier": 1.8072678679128151, + "normalized_timepoint_brier": [ + 2.062452657499585, + 1.9836414937391738, + 1.7912993748938206, + 1.7101829144922436, + 1.8033192447728918, + 1.7972597403418211, + 1.7901205017213284, + 1.6382268705403733, + 1.6728108044095003, + 1.770088686369399, + 1.7952702071641298, + 1.844382673594022, + 1.8354271133283069 + ], + "raw_time_brier": 0.008344236259850172, + "raw_timepoint_brier": [ + 0.0024757739156484604, + 0.004855967592447996, + 0.005545854568481445, + 0.006283704191446304, + 0.007330310996621847, + 0.008037776686251163, + 0.008582373149693012, + 0.008632250130176544, + 0.009409536607563496, + 0.01082225888967514, + 0.011703030206263065, + 0.012397459708154202, + 0.012398774735629559 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0012004027858025918, + 0.002448006662380546, + 0.0030959953686190375, + 0.0036742877841882474, + 0.004064899222846712, + 0.004472239880431783, + 0.004794299122009077, + 0.005269264157124449, + 0.005624985552914962, + 0.006113964217167279, + 0.00651881268878715, + 0.0067217394121341, + 0.006755253120973027 + ] + }, + "C79": { + "normalized_time_brier": 2.153822689197639, + "normalized_timepoint_brier": [ + 1.4074151404201984, + 2.2417279699538906, + 2.0636300034785444, + 2.395071446732681, + 2.1386255558778955, + 2.149123436306982, + 2.219317126276129, + 2.150673017143013, + 2.2211043938722708, + 2.2676474047568913, + 2.164936203116493, + 2.3050143756258143, + 2.275408886008508 + ], + "raw_time_brier": 0.00680830256225398, + "raw_timepoint_brier": [ + 0.0014074151404201984, + 0.002994038863107562, + 0.003672610502690077, + 0.00536690466105938, + 0.005484967026859522, + 0.006316598039120436, + 0.007239705417305231, + 0.007675429340451956, + 0.008493036963045597, + 0.009132495149970055, + 0.009637424722313881, + 0.01053438801318407, + 0.01055291946977377 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001335594194851905, + 0.00177968458323409, + 0.0022408119258324538, + 0.002564715927846457, + 0.0029391508800326394, + 0.003262132000690226, + 0.0035688499735994795, + 0.0038237900868040003, + 0.004027299451763369, + 0.00445159756136948, + 0.0045702049082986616, + 0.004637812366236101 + ] + }, + "C83": { + "normalized_time_brier": 0.30521654153185057, + "normalized_timepoint_brier": [ + 0.0036058802379557164, + 0.01352264553133864, + 0.03491834650048986, + 0.053264378948369995, + 0.05760280691902153, + 0.0631568836979568, + 0.06902450695633888, + 0.07039999036351219, + 0.42650391696952283, + 0.7824010099284351, + 0.7881154306232929, + 0.8024694980122149, + 0.8028297452256083 + ], + "raw_time_brier": 0.0003052165415318506, + "raw_timepoint_brier": [ + 3.6058802379557164e-06, + 1.352264553133864e-05, + 3.491834650048986e-05, + 5.3264378948369995e-05, + 5.760280691902153e-05, + 6.31568836979568e-05, + 6.902450695633888e-05, + 7.039999036351219e-05, + 0.00042650391696952283, + 0.0007824010099284351, + 0.0007881154306232929, + 0.0008024694980122149, + 0.0008028297452256083 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "D25": { + "normalized_time_brier": 0.7853022224298082, + "normalized_timepoint_brier": [ + 0.7139238296076655, + 0.7127129356376827, + 0.7093721069395542, + 0.7086804835125804, + 0.7060723728500307, + 0.7055408786982298, + 0.673339530322532, + 0.9299247662766323, + 0.9024793971022694, + 0.902075101344921, + 0.8882315670868021, + 0.8284742952692059, + 0.8281016269394008 + ], + "raw_time_brier": 0.0008655826185041895, + "raw_timepoint_brier": [ + 0.0007139238296076655, + 0.0007127129356376827, + 0.0007093721069395542, + 0.0007086804835125804, + 0.0007060723728500307, + 0.0007055408786982298, + 0.0007040353957563639, + 0.0010505190584808588, + 0.001049855723977089, + 0.0010493854060769081, + 0.0010482080979272723, + 0.001047369441948831, + 0.0010468983091413975 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010455874993988968, + 0.0011296817727385403, + 0.0011633015970758153, + 0.0011633015970758526, + 0.0011801067838257055, + 0.0012642147715741705, + 0.0012642147715741753 + ] + }, + "D47": { + "normalized_time_brier": 1.6580960863249936, + "normalized_timepoint_brier": [ + 1.4307404635474086, + 1.7966809682548046, + 1.9794196575635294, + 1.7041092564855937, + 1.4534229910788987, + 1.3148587323036989, + 1.408019455015545, + 1.6973910561184864, + 1.6600536552089686, + 1.7551316817184721, + 1.7047169025136824, + 1.7697880557431374, + 1.8809162466726923 + ], + "raw_time_brier": 0.0028498899281168212, + "raw_timepoint_brier": [ + 0.0014307404635474086, + 0.0017966809682548046, + 0.002163170836865902, + 0.0021768086589872837, + 0.0021981485188007355, + 0.002209249883890152, + 0.002578130690380931, + 0.0033072729129344225, + 0.0033181726466864347, + 0.00368469743989408, + 0.003693009028211236, + 0.0040712603367865086, + 0.004421226680278778 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010928308348359802, + 0.0012773879671756163, + 0.0015123942116596182, + 0.0016802184368654074, + 0.0018310334286911311, + 0.0019484448801664702, + 0.0019988345775900484, + 0.002099385179057531, + 0.0021663473992460137, + 0.0023004225413177956, + 0.002350570732801022 + ] + }, + "D50": { + "normalized_time_brier": 1.0711445253279335, + "normalized_timepoint_brier": [ + 1.3170453033931395, + 1.0060454049186152, + 1.1010068484720719, + 1.1497989023792117, + 1.1301396509016766, + 1.0984898647652912, + 1.026372069719101, + 0.9977847892972866, + 1.0128343629595078, + 0.9886388935485695, + 1.0366705438478971, + 1.0334890072401595, + 1.0265631878206065 + ], + "raw_time_brier": 0.014895637089816423, + "raw_timepoint_brier": [ + 0.0055140480399131775, + 0.006869718432426453, + 0.010069739073514938, + 0.012891105376183987, + 0.013891453854739666, + 0.014951215125620365, + 0.01559702679514885, + 0.016332324594259262, + 0.017707455903291702, + 0.01833781786262989, + 0.020014651119709015, + 0.02073407545685768, + 0.02073265053331852 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.004186680614332086, + 0.006828437761198446, + 0.009145936819093608, + 0.01121161739631963, + 0.012291802914495067, + 0.01361069920186739, + 0.01519626971086369, + 0.01636858445773831, + 0.017483071813983894, + 0.018548549912707837, + 0.019306665206690405, + 0.020062211897372947, + 0.02019617572429607 + ] + }, + "D53": { + "normalized_time_brier": 2.3843001093727265, + "normalized_timepoint_brier": [ + 1.773141324520111, + 2.47098202817142, + 2.440671748580603, + 2.5341850460589512, + 2.4541894210535693, + 2.258716959342358, + 2.500589021341769, + 2.3425210868755553, + 2.470528691475452, + 2.3959210975220366, + 2.4062512356829346, + 2.4815729900502546, + 2.46663077117043 + ], + "raw_time_brier": 0.004683856941902867, + "raw_timepoint_brier": [ + 0.001773141324520111, + 0.00247098202817142, + 0.0031831548549234867, + 0.0038972212933003902, + 0.004265435505658388, + 0.004301948472857475, + 0.0050126551650464535, + 0.005047651473432779, + 0.005776417441666126, + 0.005801235791295767, + 0.006186421029269695, + 0.006586212664842606, + 0.006587663199752569 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0013042126032616562, + 0.0015378597941619026, + 0.001738022122117722, + 0.0019045982964195829, + 0.0020045897675567484, + 0.0021547944655496425, + 0.002338130077824082, + 0.0024212966767960978, + 0.0025709788477319513, + 0.0026540475300342575, + 0.0026707131349969684 + ] + }, + "D59": { + "normalized_time_brier": 0.3471860847110537, + "normalized_timepoint_brier": [ + 0.0002158496670290333, + 0.0006977862767598708, + 0.002060505948975333, + 0.00274390981758188, + 0.0036072365219297353, + 0.3483918262645602, + 0.3484381886664778, + 0.3484479384496808, + 0.6921816384419799, + 0.6920750602148473, + 0.6918691797181964, + 0.6913530523888767, + 0.6913369288668036 + ], + "raw_time_brier": 0.00034718608471105374, + "raw_timepoint_brier": [ + 2.158496670290333e-07, + 6.977862767598708e-07, + 2.060505948975333e-06, + 2.74390981758188e-06, + 3.6072365219297353e-06, + 0.0003483918262645602, + 0.0003484381886664778, + 0.0003484479384496808, + 0.0006921816384419799, + 0.0006920750602148473, + 0.0006918691797181964, + 0.0006913530523888767, + 0.0006913369288668036 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "D61": { + "normalized_time_brier": 1.1060418473987974, + "normalized_timepoint_brier": [ + 0.894459204818937, + 0.8888762117945804, + 1.0634160113277815, + 1.0441183575328514, + 1.100457042040067, + 1.1463540330803215, + 1.272055542452999, + 1.2299368584969952, + 1.1683960587882387, + 1.1625468504312053, + 1.1469926834553603, + 1.1357900099192901, + 1.125145152045739 + ], + "raw_time_brier": 0.008222716430631967, + "raw_timepoint_brier": [ + 0.001444079214707017, + 0.0032060586381703615, + 0.005147527903318405, + 0.00594019889831543, + 0.007209822069853544, + 0.008289557881653309, + 0.009914486669003963, + 0.010318370535969734, + 0.010263724252581596, + 0.010845792479813099, + 0.011211482807993889, + 0.011550823226571083, + 0.011553389020264149 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0016144718584447213, + 0.003606867408114734, + 0.004840558961390096, + 0.005689200707428929, + 0.006551661531910156, + 0.007231237159238472, + 0.007794067427185706, + 0.008389349798475807, + 0.00878445641388611, + 0.009329337975317072, + 0.009774676830735187, + 0.010169858094976458, + 0.010268354264565578 + ] + }, + "D62": { + "normalized_time_brier": 1.0859691233459143, + "normalized_timepoint_brier": [ + 0.7899586940390377, + 0.9439607116970311, + 1.0228432376197902, + 1.0298482978231303, + 1.1057291236131195, + 1.1051156264974897, + 1.161547809040951, + 1.1656729184530312, + 1.160991331961175, + 1.1793138315730887, + 1.167077429367296, + 1.1468386837881628, + 1.1387009080235841 + ], + "raw_time_brier": 0.019083065876307394, + "raw_timepoint_brier": [ + 0.003948142286390066, + 0.008245318196713924, + 0.011693337000906467, + 0.013995923101902008, + 0.01721070148050785, + 0.01864103600382805, + 0.020878294482827187, + 0.02258829027414322, + 0.023979343473911285, + 0.025880780071020126, + 0.026528025045990944, + 0.027245480567216873, + 0.027245184406638145 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.00499790978462851, + 0.008734810776065752, + 0.011432188795731274, + 0.0135902764819695, + 0.015565025025541116, + 0.016867950788921716, + 0.01797454596385977, + 0.019377897450101374, + 0.02065419681764961, + 0.021945625819123744, + 0.022730304244142994, + 0.023757029608751406, + 0.023926550171920878 + ] + }, + "D63": { + "normalized_time_brier": 1.9626860924719471, + "normalized_timepoint_brier": [ + 2.4752804683543963, + 2.006555005783631, + 2.098478690709513, + 2.0634740977518415, + 1.924009572154332, + 1.9545910104335065, + 1.941869760129388, + 1.8967249366288044, + 1.8737933064139438, + 1.8774297343951178, + 1.8616734783485542, + 1.7732085857237596, + 1.7678305553085256 + ], + "raw_time_brier": 0.021091677893239718, + "raw_timepoint_brier": [ + 0.0072435056790709496, + 0.011110832914710045, + 0.015218932181596756, + 0.018167788162827492, + 0.019320141524076462, + 0.02186802215874195, + 0.023419467732310295, + 0.024171132594347, + 0.025187898427248, + 0.026385417208075523, + 0.027266843244433403, + 0.02741215005517006, + 0.0274196807295084 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0029263373470912336, + 0.005537268045323716, + 0.007252364414742333, + 0.008804466303997383, + 0.010041603640486837, + 0.011188029639966403, + 0.012060266972152572, + 0.012743615127087547, + 0.013442196821298543, + 0.014054010504194206, + 0.014646415475941121, + 0.015459066844063025, + 0.015510355699629289 + ] + }, + "D64": { + "normalized_time_brier": 0.8342961897474406, + "normalized_timepoint_brier": [ + 1.0470970314500712, + 0.8468773864107572, + 0.8639960516923322, + 0.843393523739528, + 0.8358431434421175, + 0.8069818206071802, + 0.8102872494569435, + 0.8115630571351563, + 0.7957233858243741, + 0.81800284661137, + 0.8018058581292473, + 0.7816102827462217, + 0.7826688294714297 + ], + "raw_time_brier": 0.03356085982746803, + "raw_timepoint_brier": [ + 0.014630339108407497, + 0.01964849978685379, + 0.025064535439014435, + 0.028629673644900322, + 0.03154706954956055, + 0.032938435673713684, + 0.03565133363008499, + 0.037595730274915695, + 0.03888920694589615, + 0.041721273213624954, + 0.04277322068810463, + 0.043423909693956375, + 0.0437779501080513 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.013972285919048675, + 0.02320111518165366, + 0.02901001155030727, + 0.03394580683754723, + 0.03774281071403584, + 0.040816824905585254, + 0.04399838903299861, + 0.046325088290280036, + 0.04887277116482722, + 0.05100382399212673, + 0.053346106485056125, + 0.0555569836432865, + 0.05593419395227028 + ] + }, + "D65": { + "normalized_time_brier": 1.0219048147412784, + "normalized_timepoint_brier": [ + 0.35351200494915247, + 0.3549375105649233, + 0.7041825447231531, + 1.0529829887673259, + 1.0532158194109797, + 1.0235524443106947, + 1.0078937659410905, + 0.9479851162765324, + 1.2072537960124212, + 1.207341155382288, + 1.1746296639639753, + 1.6085505534316422, + 1.5887252279024422 + ], + "raw_time_brier": 0.0011622777853447658, + "raw_timepoint_brier": [ + 0.00035351200494915247, + 0.0003549375105649233, + 0.0007041825447231531, + 0.0010529829887673259, + 0.0010532158194109797, + 0.0010536863701418042, + 0.0010542719392105937, + 0.0010544696124270558, + 0.0014028644654899836, + 0.0014029659796506166, + 0.0014038977678865194, + 0.002109155524522066, + 0.0021094686817377806 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001029440529401894, + 0.0010460149420868767, + 0.001112327181431677, + 0.0011620294507448787, + 0.0011620294507449197, + 0.0011951833083704377, + 0.0013112149444246223, + 0.0013277743971642371 + ] + }, + "D68": { + "normalized_time_brier": 2.7653474810156875, + "normalized_timepoint_brier": [ + 2.693340969469341, + 2.814792841841852, + 2.8858407153154024, + 2.702418691118723, + 2.8359781350369784, + 2.85709301336641, + 2.903695922213884, + 2.7644221153611275, + 2.7387952007677714, + 2.751441809878758, + 2.6440196342589295, + 2.6903442308130456, + 2.6673339737617128 + ], + "raw_time_brier": 0.015449361445812078, + "raw_timepoint_brier": [ + 0.0037016901187598705, + 0.00767661863937974, + 0.010581744834780693, + 0.011705254204571247, + 0.014214552007615566, + 0.015970967710018158, + 0.017316211014986038, + 0.018032193183898926, + 0.0188856553286314, + 0.019810553640127182, + 0.020021673291921616, + 0.021464021876454353, + 0.02146056294441223 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0013743859989213327, + 0.0027272410691355055, + 0.0036667806295137746, + 0.004331399217685847, + 0.005012222002702508, + 0.0055899362167422546, + 0.005963507019627429, + 0.0065229521510839555, + 0.006895606989283883, + 0.007200062734018035, + 0.007572437448080194, + 0.00797816934748448, + 0.008045697747457784 + ] + }, + "D69": { + "normalized_time_brier": 1.2016171415220638, + "normalized_timepoint_brier": [ + 1.1290626356751015, + 1.2982474143957177, + 1.2539657426640896, + 1.1914936714349313, + 1.1566442452952164, + 1.2049622177127133, + 1.2122127345436375, + 1.1917504302461916, + 1.179350530316845, + 1.2138152161155016, + 1.2134137799847176, + 1.187065073516632, + 1.1890391478855367 + ], + "raw_time_brier": 0.020524072317549817, + "raw_timepoint_brier": [ + 0.004756963811814785, + 0.010723507963120937, + 0.013814275152981281, + 0.016060370951890945, + 0.017706332728266716, + 0.020425871014595032, + 0.022119732573628426, + 0.02353178709745407, + 0.024911558255553246, + 0.026977568864822388, + 0.02830219268798828, + 0.028607020154595375, + 0.02887575887143612 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0042131974449499425, + 0.008259987922342447, + 0.011016469336420961, + 0.013479191150507103, + 0.015308365385717573, + 0.016951461808792548, + 0.01824740158496673, + 0.019745566269770826, + 0.02112311616874458, + 0.02222543308622959, + 0.0233244365234955, + 0.024098948568883626, + 0.024284952200931114 + ] + }, + "D70": { + "normalized_time_brier": 1.0578827562738644, + "normalized_timepoint_brier": [ + 0.985486121206798, + 0.8306697593700267, + 1.1120736637577393, + 1.1459938423729494, + 1.0691506476315213, + 1.0980926028431415, + 1.0928777735315012, + 1.1185978927581306, + 1.0986909517772014, + 1.0778844577627311, + 1.0550919284084808, + 1.034655740827655, + 1.0332104493123597 + ], + "raw_time_brier": 0.007600246248050378, + "raw_timepoint_brier": [ + 0.0016741210129112005, + 0.0030520118307322264, + 0.005625592544674873, + 0.006922123488038778, + 0.00722150644287467, + 0.007981340400874615, + 0.008467994630336761, + 0.00929622445255518, + 0.009475834667682648, + 0.009616827592253685, + 0.009743721224367619, + 0.009861339814960957, + 0.0098645631223917 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0016987768542707836, + 0.003674157866354552, + 0.005058650994094925, + 0.006040279827076121, + 0.0067544330248243325, + 0.00726836733096063, + 0.007748345547346497, + 0.008310604295555616, + 0.008624658874595164, + 0.008921946617742758, + 0.00923495001906158, + 0.009531034745018228, + 0.009547486796089738 + ] + }, + "D72": { + "normalized_time_brier": 1.0694297287077832, + "normalized_timepoint_brier": [ + 1.095960867401759, + 1.0709617331684913, + 1.1010624019499815, + 1.0679760994135339, + 1.1017611130255374, + 1.0337642960142222, + 1.0515899702168148, + 1.051439747067832, + 1.064741903600472, + 1.0477810912620795, + 1.0886826221254307, + 1.0679195533284984, + 1.0589450746265285 + ], + "raw_time_brier": 0.01800380167193138, + "raw_timepoint_brier": [ + 0.006085612811148167, + 0.009784062393009663, + 0.01276382151991129, + 0.014639303088188171, + 0.01682078279554844, + 0.017193671315908432, + 0.018670357763767242, + 0.020148223266005516, + 0.02162824012339115, + 0.02236357145011425, + 0.024155201390385628, + 0.024896034970879555, + 0.024900538846850395 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0055527646945785466, + 0.00913577216625943, + 0.011592278055545772, + 0.013707519387584766, + 0.015267177790798062, + 0.016632100162677594, + 0.017754408364999738, + 0.01916250866699039, + 0.020313129454428626, + 0.02134374406697562, + 0.02218755117375487, + 0.02331265018351189, + 0.02351447628729222 + ] + }, + "D73": { + "normalized_time_brier": 0.8280545524930841, + "normalized_timepoint_brier": [ + 0.0019504111605783692, + 0.3454793768469244, + 0.7002584752626717, + 0.7030520937405527, + 1.0583751136437058, + 1.0619977256283164, + 1.062781666405499, + 1.0677473619580269, + 1.0398067153779, + 0.9828757509193455, + 0.9343678062963819, + 0.9029333143099664, + 0.9030833708602253 + ], + "raw_time_brier": 0.0008795244203226432, + "raw_timepoint_brier": [ + 1.950411160578369e-06, + 0.0003454793768469244, + 0.0007002584752626717, + 0.0007030520937405527, + 0.0010583751136437058, + 0.0010619977256283164, + 0.001062781666405499, + 0.0010677473619580269, + 0.0010724607855081558, + 0.0010790807427838445, + 0.00108787277713418, + 0.0010962893720716238, + 0.001096471562050283 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010314039808046328, + 0.0010978811327622157, + 0.0011642875212559563, + 0.001214142124005495, + 0.0012141421240055026 + ] + }, + "D75": { + "normalized_time_brier": 0.6584306400809611, + "normalized_timepoint_brier": [ + 0.0002493937074632413, + 0.0009295928293795441, + 0.3554793365765363, + 0.6975516013719462, + 0.6179295088912926, + 0.8632070091671783, + 0.8097225776202761, + 0.9878067438052587, + 0.9446745463752673, + 0.8874508144136483, + 0.8289909381124388, + 0.7862733314047682, + 0.7793329267770402 + ], + "raw_time_brier": 0.0009554353772522553, + "raw_timepoint_brier": [ + 2.493937074632413e-07, + 9.295928293795441e-07, + 0.0003554793365765363, + 0.0007085950346663594, + 0.0007098039495758712, + 0.0010632231133058667, + 0.0010646679438650608, + 0.001413688762113452, + 0.001414608908817172, + 0.0014173865783959627, + 0.001420514890924096, + 0.0014255678979679942, + 0.0014259445015341043 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0010158317080380763, + 0.0011486811025571873, + 0.0012317127896489903, + 0.0013148552026226725, + 0.0014311390066720925, + 0.0014974563612887117, + 0.0015971438139165501, + 0.0017135469467959696, + 0.001813069121168147, + 0.0018296987751193188 + ] + }, + "D80": { + "normalized_time_brier": 1.6559855067274776, + "normalized_timepoint_brier": [ + 0.3500363673083484, + 1.037506852298975, + 1.3703133445233107, + 1.7040625680238008, + 2.0546717569231987, + 2.0522992126643658, + 2.0570047199726105, + 2.0594496745616198, + 1.8913998332587505, + 1.8206891654459532, + 1.7250179970491157, + 1.702580709485723, + 1.7027793859414349 + ], + "raw_time_brier": 0.0017788484647798424, + "raw_timepoint_brier": [ + 0.0003500363673083484, + 0.001037506852298975, + 0.0013703133445233107, + 0.0017040625680238008, + 0.0020546717569231987, + 0.0020522992126643658, + 0.0020570047199726105, + 0.0020594496745616198, + 0.002074178773909807, + 0.002087164670228958, + 0.0020920236129313707, + 0.002093037124723196, + 0.002093281364068389 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010966368598733253, + 0.0011463596916158588, + 0.0012127546590876555, + 0.0012293321033546851, + 0.0012293321033546884 + ] + }, + "D89": { + "normalized_time_brier": 0.7919289613669886, + "normalized_timepoint_brier": [ + 0.3535482392180711, + 0.7162175024859607, + 0.7492374279536307, + 0.8266944205388427, + 0.865862995851785, + 0.9403289295732975, + 0.9551902150508454, + 0.8649883228225652, + 0.8458976645089418, + 0.8411406348596435, + 0.7939507396062557, + 0.7707927938917732, + 0.7712266114092402 + ], + "raw_time_brier": 0.0009629035193938762, + "raw_timepoint_brier": [ + 0.0003535482392180711, + 0.0007162175024859607, + 0.0007492374279536307, + 0.0008266944205388427, + 0.0008658629958517849, + 0.0009403289295732975, + 0.0009678205824457109, + 0.0010199225507676601, + 0.001095556654036045, + 0.0011729459511116147, + 0.001225415151566267, + 0.001291734166443348, + 0.0012924611801281571 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010132228818887064, + 0.0011791171324018863, + 0.0012951408899704608, + 0.0013944706776737015, + 0.0015434397758404856, + 0.0016758513788398494, + 0.0016758513788398457 + ] + }, + "E03": { + "normalized_time_brier": 1.1561785058169882, + "normalized_timepoint_brier": [ + 1.2890174841951347, + 1.296888962201982, + 1.2886538861534074, + 1.3327413914980055, + 1.2659205875627029, + 1.1249776589150469, + 1.1127722166928296, + 1.0783474302609088, + 1.0588608215723365, + 1.0371610933691853, + 1.0402045616813662, + 1.0553683844127923, + 1.0494060971051495 + ], + "raw_time_brier": 0.007565658145512526, + "raw_timepoint_brier": [ + 0.002810549456626177, + 0.004406191874295473, + 0.005604877602308989, + 0.006788813509047031, + 0.007177247665822506, + 0.007171683944761753, + 0.007958728820085526, + 0.008351187221705914, + 0.008747032843530178, + 0.009141763672232628, + 0.009532728232443333, + 0.010331791825592518, + 0.010330959223210812 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0021803811748768403, + 0.0033975089639241124, + 0.004349404958564458, + 0.005093871588558065, + 0.005669587599993911, + 0.006374956771744501, + 0.0071521634892529485, + 0.007744430957363457, + 0.008260795626134724, + 0.00881421770511647, + 0.009164282280241897, + 0.009789749227082574, + 0.00984457709147049 + ] + }, + "E04": { + "normalized_time_brier": 2.586342345268969, + "normalized_timepoint_brier": [ + 1.0802816832438111, + 1.440016203559935, + 2.1581449545919895, + 2.875590929761529, + 3.230104222893715, + 3.0913724351823095, + 2.77858701730289, + 2.7392847528475373, + 3.1270565231145357, + 2.9327340988079995, + 2.8283415426709975, + 2.670314913647257, + 2.6706212108720906 + ], + "raw_time_brier": 0.0030962620646907734, + "raw_timepoint_brier": [ + 0.0010802816832438111, + 0.001440016203559935, + 0.0021581449545919895, + 0.002875590929761529, + 0.003230104222893715, + 0.0032299694139510393, + 0.0032305200584232807, + 0.0032308686058968306, + 0.003951436839997768, + 0.003952911123633385, + 0.003954773768782616, + 0.0039581675082445145, + 0.0039586215279996395 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001044833478228435, + 0.0011626485110259645, + 0.0011794570106442139, + 0.0012636282109995739, + 0.0013478586842359942, + 0.001398265983480853, + 0.0014822849125454799, + 0.0014822849125454797 + ] + }, + "E05": { + "normalized_time_brier": 0.939405711644276, + "normalized_timepoint_brier": [ + 0.7128591532818973, + 0.713186978828162, + 0.7136367494240403, + 0.7141963578760624, + 0.7148999720811844, + 0.7152156322263181, + 1.0715799871832132, + 1.0175099277383022, + 1.2359424811794977, + 1.2184609211872481, + 1.1529923116993812, + 1.1231636484667582, + 1.1086301302035244 + ], + "raw_time_brier": 0.0010432849969499959, + "raw_timepoint_brier": [ + 0.0007128591532818973, + 0.000713186978828162, + 0.0007136367494240403, + 0.0007141963578760624, + 0.0007148999720811844, + 0.0007152156322263181, + 0.0010715799871832132, + 0.001072258222848177, + 0.0014262688346207142, + 0.0014264538185670972, + 0.0014269256498664618, + 0.0014275606954470277, + 0.0014276629080995917 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010538061532545122, + 0.0011539928891023976, + 0.0011707013280140197, + 0.0012375847049347047, + 0.001271017538179592, + 0.0012877720613975183 + ] + }, + "E11": { + "normalized_time_brier": 2.6396330752609205, + "normalized_timepoint_brier": [ + 2.7088120114058256, + 2.8106567923979178, + 2.658458164228148, + 2.8156443851496467, + 2.5023090601444546, + 2.5942574466297987, + 2.645967570940521, + 2.730205563596677, + 2.5898398795100763, + 2.5297744129089224, + 2.534736610924932, + 2.5972904230502762, + 2.5972776575047707 + ], + "raw_time_brier": 0.007229807482172663, + "raw_timepoint_brier": [ + 0.0027088120114058256, + 0.004062084946781397, + 0.004929129034280777, + 0.005825846455991268, + 0.0058227414265275, + 0.0067062778398394585, + 0.007578439544886351, + 0.008463683538138866, + 0.008472406305372715, + 0.008871554397046566, + 0.009323939681053162, + 0.010611317120492458, + 0.01061126496642828 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001445244029000005, + 0.0018541307516538978, + 0.0020690988133011813, + 0.0023269473460609865, + 0.002585047158119017, + 0.0028641467976089218, + 0.0031000169551296006, + 0.0032714015922001524, + 0.003506855928250691, + 0.003678464910660217, + 0.004085533533839644, + 0.0040855335338396675 + ] + }, + "E16": { + "normalized_time_brier": 1.3126040185191894, + "normalized_timepoint_brier": [ + 0.35565681173466146, + 1.0698295664042234, + 1.241275093197441, + 1.0863829558631528, + 1.168222477103871, + 1.0770610907324347, + 1.229057754961456, + 1.2953725212220726, + 1.4065943280655189, + 1.6167303494536072, + 1.8160338087595604, + 1.850801227900485, + 1.8508342553509751 + ], + "raw_time_brier": 0.0024938821465744134, + "raw_timepoint_brier": [ + 0.00035565681173466146, + 0.0010698295664042234, + 0.0014266205253079534, + 0.0014294501161202788, + 0.0017897608922794461, + 0.0017933748895302415, + 0.002148557221516967, + 0.002501225331798196, + 0.0028561921790242195, + 0.0035515024792402983, + 0.004260637331753969, + 0.004618789069354534, + 0.004618871491402388 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0011493185782315788, + 0.0013157884228628682, + 0.0015320377131558237, + 0.0016650632958161095, + 0.0017481336518513294, + 0.0019308926898020846, + 0.0020305727970283544, + 0.002196719125388207, + 0.0023461222534530853, + 0.002495561921900173, + 0.0024955619219001906 + ] + }, + "E21": { + "normalized_time_brier": 0.4401981160183514, + "normalized_timepoint_brier": [ + 0.3518865560181439, + 0.35149400355294347, + 0.3512758994475007, + 0.30300061086809016, + 0.27197417910918953, + 0.2233921341169129, + 0.3973448039623092, + 0.37664271628609053, + 0.5315359561225539, + 0.48680697719111826, + 0.6175739188705685, + 0.7348558614428609, + 0.7247918912502871 + ], + "raw_time_brier": 0.0008125877737676582, + "raw_timepoint_brier": [ + 0.0003518865560181439, + 0.00035149400355294347, + 0.0003512758994475007, + 0.00034920196048915386, + 0.0003497262950986624, + 0.00035058512003161013, + 0.0007030643755570054, + 0.0007040677010081708, + 0.0010555420303717256, + 0.0010558189824223518, + 0.0014113294892013073, + 0.0017648590728640556, + 0.001764789572916925 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0011524793943111131, + 0.0012858805061720865, + 0.0015693709244396692, + 0.0017694062399862054, + 0.0018693251470536193, + 0.0019858337299920193, + 0.0021688657556110623, + 0.002285280265368678, + 0.002401639784703933, + 0.0024348914415593306 + ] + }, + "E22": { + "normalized_time_brier": 0.7120217186878721, + "normalized_timepoint_brier": [ + 1.067380823998697, + 0.6074471508278898, + 0.6354012380991537, + 0.5453422665642682, + 0.4943294147822894, + 0.6564316452372645, + 0.7230835603965523, + 0.8494099801560113, + 0.7912328827638077, + 0.7608641624427386, + 0.7247035451806711, + 0.7037039892839545, + 0.696951683209039 + ], + "raw_time_brier": 0.0023908243210126576, + "raw_timepoint_brier": [ + 0.001073924358934164, + 0.0010889892000705004, + 0.0014575595268979669, + 0.001469421200454235, + 0.001488594338297844, + 0.0021846035961061716, + 0.002551022684201598, + 0.00325131812132895, + 0.0032654516398906708, + 0.003291881177574396, + 0.0033042856957763433, + 0.003325461409986019, + 0.003328203223645687 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001006130459521423, + 0.0017927307726874953, + 0.002293919872202887, + 0.0026944935145258265, + 0.003011340805914705, + 0.003327998599635695, + 0.0035279777109060127, + 0.0038277371319934096, + 0.004127042380347388, + 0.004326503126400223, + 0.00455949983651946, + 0.0047256537700884746, + 0.004775371526934742 + ] + }, + "E27": { + "normalized_time_brier": 1.4456199087750385, + "normalized_timepoint_brier": [ + 0.0016168467027455335, + 0.006019266038492788, + 0.010684385415515862, + 1.4335004379972816, + 1.789411879144609, + 1.6534567457050082, + 1.9264691847628892, + 1.852837477837303, + 1.9618446428612613, + 2.0607736770546303, + 1.9535556513811518, + 2.0712041039417945, + 2.071684515232819 + ], + "raw_time_brier": 0.00186387219252118, + "raw_timepoint_brier": [ + 1.6168467027455335e-06, + 6.019266038492788e-06, + 1.0684385415515862e-05, + 0.0014335004379972816, + 0.001789411879144609, + 0.0017941222758963704, + 0.0021544841583818197, + 0.002164698438718915, + 0.0025209570303559303, + 0.0028883779887109995, + 0.002900812542065978, + 0.0032824459485709667, + 0.003283207304775715 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010850736074933635, + 0.0011183590038306244, + 0.001168315335053362, + 0.001284993202458289, + 0.001401598836820949, + 0.001484888613239721, + 0.001584800813364558, + 0.00158480081336455 + ] + }, + "E43": { + "normalized_time_brier": 2.183711625872876, + "normalized_timepoint_brier": [ + 3.5593529531874526, + 2.2461089749978025, + 2.3075077407405566, + 2.2562707840640512, + 2.1809346521359205, + 2.0389532093757023, + 2.011283728546425, + 1.9430675481240915, + 1.9730694959883492, + 1.9138334930436245, + 1.9395014943838829, + 1.9962650792516825, + 2.022101982507849 + ], + "raw_time_brier": 0.01152806130882639, + "raw_timepoint_brier": [ + 0.0050329966470599174, + 0.0067555722780525684, + 0.008909455500543118, + 0.010331294499337673, + 0.01136767864227295, + 0.01144158560782671, + 0.011855614371597767, + 0.012293419800698757, + 0.013139684684574604, + 0.01347663439810276, + 0.014203283935785294, + 0.015345991589128971, + 0.015711585059762 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001414020107939224, + 0.0030076778790571273, + 0.0038610728550291986, + 0.004578924911099849, + 0.005212296769708298, + 0.005611499839827102, + 0.005894550929503088, + 0.00632681031216196, + 0.006659514381672947, + 0.007041696389517398, + 0.007323162151157413, + 0.007687351619095372, + 0.007769927133089596 + ] + }, + "E44": { + "normalized_time_brier": 1.3469137167630763, + "normalized_timepoint_brier": [ + 1.4255472846503592, + 1.2196297033472199, + 1.3232928254500245, + 1.286504604491317, + 1.3894880645069132, + 1.2606751031542074, + 1.3019345873040782, + 1.342997315267893, + 1.289898394029609, + 1.3688586584056792, + 1.4414842236681096, + 1.4333660232100283, + 1.4262015304345503 + ], + "raw_time_brier": 0.005911265562575024, + "raw_timepoint_brier": [ + 0.0017879080260172486, + 0.002851940458640456, + 0.003931177314370871, + 0.00431371433660388, + 0.005397475324571133, + 0.0054407683201134205, + 0.006115409079939127, + 0.006820006296038628, + 0.006871004588901997, + 0.007608772721141577, + 0.008346457965672016, + 0.008679033257067204, + 0.008682784624397755 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0012541906152595736, + 0.0023383658587630587, + 0.0029707538941987073, + 0.0033530500563653397, + 0.0038845064325806434, + 0.004315757728934779, + 0.0046971707638571395, + 0.005078198011645477, + 0.00532677970660709, + 0.005558479448859663, + 0.005790183360059945, + 0.006055001385919891, + 0.006088048876060448 + ] + }, + "E46": { + "normalized_time_brier": 2.4686145776636916, + "normalized_timepoint_brier": [ + 2.9968160911398654, + 2.453959082599544, + 2.728994345138598, + 2.6964384169280433, + 2.5144806455855933, + 2.430033454265617, + 2.4764635698488755, + 2.321100299971489, + 2.2601418649109593, + 2.2534249828034385, + 2.2973485571339354, + 2.337159648559231, + 2.3256285507428056 + ], + "raw_time_brier": 0.010607236387351384, + "raw_timepoint_brier": [ + 0.0036498461849987507, + 0.005637588910758495, + 0.007970638573169708, + 0.00932665728032589, + 0.009669690392911434, + 0.010404042899608612, + 0.011475143022835255, + 0.011533036828041077, + 0.01213780790567398, + 0.012929461896419525, + 0.013680178672075272, + 0.014737325720489025, + 0.014742654748260975 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0012179079643190583, + 0.002297344299965445, + 0.0029207237410984457, + 0.003458880136766268, + 0.0038456014405549247, + 0.004281440192251521, + 0.004633681335976817, + 0.004968780034271997, + 0.0053703743530949385, + 0.005737693508809091, + 0.005954768434939634, + 0.0063056564105811175, + 0.006339213002674985 + ] + }, + "E53": { + "normalized_time_brier": 1.7596171236600888, + "normalized_timepoint_brier": [ + 0.35786701482720673, + 0.7142144604586065, + 1.0725867468863726, + 1.4270698884502053, + 1.4283173950389028, + 1.4303927309811115, + 2.146677579730749, + 2.0971738818194137, + 2.193382471491079, + 2.1036261217160415, + 2.393969364752003, + 2.7548033072779248, + 2.75494164415154 + ], + "raw_time_brier": 0.0020629974919407126, + "raw_timepoint_brier": [ + 0.00035786701482720673, + 0.0007142144604586065, + 0.0010725867468863726, + 0.0014270698884502053, + 0.0014283173950389028, + 0.0014303927309811115, + 0.002146677579730749, + 0.0021488035563379526, + 0.0025049387477338314, + 0.002508336678147316, + 0.0032160156406462193, + 0.003931774757802486, + 0.003931972198188305 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010246186904033668, + 0.0011420437521919987, + 0.0011923871130204117, + 0.0013433821200879794, + 0.0014272433706664707, + 0.0014272433706664822 + ] + }, + "E55": { + "normalized_time_brier": 2.0022561708037845, + "normalized_timepoint_brier": [ + 2.979657883878154, + 2.0262251103486513, + 1.574217014217626, + 1.801979845001685, + 2.0998928953782645, + 2.067589412986786, + 2.1760246091762574, + 2.0152181437127146, + 1.917896390580368, + 1.8643973426414622, + 1.8654784311405932, + 1.8227779042703605, + 1.817975237116273 + ], + "raw_time_brier": 0.0077329718937667515, + "raw_timepoint_brier": [ + 0.0032818536274135113, + 0.0040127672255039215, + 0.0040209474973380566, + 0.005119372624903917, + 0.00692070322111249, + 0.007650190498679876, + 0.009075895883142948, + 0.009082800708711147, + 0.009416740387678146, + 0.009780367836356163, + 0.010474594309926033, + 0.010845381766557693, + 0.010847019031643867 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0011014196110132068, + 0.0019804153077608673, + 0.002554252343242801, + 0.002840971079173824, + 0.0032957410524815495, + 0.003700053042750209, + 0.004170860864748521, + 0.0045071054650081465, + 0.004909931753314671, + 0.005245860210516832, + 0.005614964040898422, + 0.005949919483415611, + 0.0059665383830253575 + ] + }, + "E66": { + "normalized_time_brier": 2.3899431123463435, + "normalized_timepoint_brier": [ + 2.1088978181259175, + 2.4150010650231106, + 2.561028304624487, + 2.712226556585957, + 2.4666910199142698, + 2.345815972976868, + 2.35831193782878, + 2.3537364665989164, + 2.3527082295332353, + 2.400476542952267, + 2.413918556651297, + 2.2957614223511174, + 2.284686567336246 + ], + "raw_time_brier": 0.012562954243129263, + "raw_timepoint_brier": [ + 0.0037862181197851896, + 0.0066815936006605625, + 0.008741366676986217, + 0.011212727054953575, + 0.011225759983062744, + 0.012006898410618305, + 0.013185291551053524, + 0.013958791270852089, + 0.01479569636285305, + 0.015999380499124527, + 0.017227202653884888, + 0.017246916890144348, + 0.017250562086701393 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001795353993561353, + 0.0027667042045783205, + 0.003413225328748535, + 0.004134141016990745, + 0.004550938845779273, + 0.005118431517618755, + 0.0055909870698414845, + 0.005930481797319542, + 0.006288793560172329, + 0.006665085124909163, + 0.007136613042066873, + 0.007512504009446055, + 0.007550515827129018 + ] + }, + "E78": { + "normalized_time_brier": 2.3274100501978805, + "normalized_timepoint_brier": [ + 2.7886756253172824, + 2.437315466177172, + 2.6341755353942435, + 2.546050876960191, + 2.2781493614658297, + 2.096658033753191, + 2.173976135059052, + 2.1672985255418213, + 2.085197549524668, + 2.300944278402993, + 2.3064627978817134, + 2.2222376576136527, + 2.219188809480632 + ], + "raw_time_brier": 0.021498249628796026, + "raw_timepoint_brier": [ + 0.008196228183805943, + 0.011941293254494667, + 0.016259867697954178, + 0.018605085089802742, + 0.019289443269371986, + 0.019441287964582443, + 0.02161664143204689, + 0.023171545937657356, + 0.023955289274454117, + 0.027841368690133095, + 0.0296853668987751, + 0.02972843497991562, + 0.029745392501354218 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0029391113507055574, + 0.004899363016484727, + 0.006172659141153495, + 0.00730742863709618, + 0.008467154786093823, + 0.009272512566000538, + 0.009943366481095117, + 0.010691441748600141, + 0.011488258884590985, + 0.012099975193426605, + 0.012870516240729546, + 0.013377702820426265, + 0.013403723186724111 + ] + }, + "E80": { + "normalized_time_brier": 1.7552296126552607, + "normalized_timepoint_brier": [ + 0.7107255514711142, + 1.0660418774932623, + 1.4279515016824007, + 1.4377523912116885, + 1.4408958377316594, + 1.4481490943580866, + 2.1627675741910934, + 2.114814761848078, + 2.0328258169858735, + 2.225738330952263, + 2.1424804105437816, + 2.3036319540183503, + 2.3042098620307354 + ], + "raw_time_brier": 0.0019402675187358488, + "raw_timepoint_brier": [ + 0.0007107255514711142, + 0.0010660418774932623, + 0.0014279515016824007, + 0.0014377523912116885, + 0.0014408958377316594, + 0.0014481490943580866, + 0.0021627675741910934, + 0.0022143719252198935, + 0.0022299212869256735, + 0.002589490730315447, + 0.002599382773041725, + 0.0029476438648998737, + 0.0029483833350241184 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001047076067922287, + 0.0010969563984739425, + 0.0011634299927824649, + 0.001213258595154192, + 0.0012795637166597461, + 0.001279563716659759 + ] + }, + "E83": { + "normalized_time_brier": 1.927820372436283, + "normalized_timepoint_brier": [ + 1.7922580640440935, + 1.8368379176062728, + 2.044650522592498, + 2.017705797067958, + 2.0032254995628764, + 1.9555412714431837, + 1.9915915883226563, + 1.9265866605702444, + 1.9220427442504138, + 1.9123858032104635, + 1.8944366696888957, + 1.8906534126392212, + 1.873748890672898 + ], + "raw_time_brier": 0.02038545161485672, + "raw_timepoint_brier": [ + 0.005114153027534485, + 0.009340929798781872, + 0.014235475100576878, + 0.016678011044859886, + 0.018616093322634697, + 0.020375283434987068, + 0.022314803674817085, + 0.0233578123152256, + 0.024736367166042328, + 0.026067953556776047, + 0.02713669277727604, + 0.0285195279866457, + 0.028517767786979675 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0028534691125868274, + 0.005085331541366899, + 0.006962302331513907, + 0.008265828977195607, + 0.009293059281991424, + 0.010419255135408197, + 0.011204507894919809, + 0.012123935451889818, + 0.01286983197436089, + 0.01363111643739137, + 0.014324412745733235, + 0.015084482325522801, + 0.015219631578668161 + ] + }, + "E86": { + "normalized_time_brier": 0.7927299071208663, + "normalized_timepoint_brier": [ + 0.9292047486550362, + 0.794590380765244, + 0.6932865412449212, + 0.7323181705827414, + 0.7345243098028191, + 0.8106387646691161, + 0.828377639888103, + 0.8143731630258629, + 0.7995927596535894, + 0.7838061531698032, + 0.7904728046426223, + 0.7956007782586202, + 0.7987025782127822 + ], + "raw_time_brier": 0.025235944284269445, + "raw_timepoint_brier": [ + 0.00974209513515234, + 0.01410377211868763, + 0.015547078102827072, + 0.019129455089569092, + 0.02133314125239849, + 0.025701940059661865, + 0.028477121144533157, + 0.02957252971827984, + 0.03064647503197193, + 0.03136264905333519, + 0.0329960472881794, + 0.03458051756024361, + 0.03487445414066315 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.01048433636316796, + 0.01774973931235456, + 0.022425183784628915, + 0.026121781293978883, + 0.029043478844322127, + 0.031705787065528256, + 0.03437697949980861, + 0.036313241964409715, + 0.03832760447361857, + 0.040013272320587163, + 0.041742166326768346, + 0.04346466029851314, + 0.0436638807636004 + ] + }, + "E87": { + "normalized_time_brier": 0.9395443627270311, + "normalized_timepoint_brier": [ + 0.908805198549005, + 0.8608342552141472, + 0.928598907245603, + 0.940862981110319, + 0.9298363148845019, + 0.9259623137086636, + 0.9613828489843793, + 0.9588235700327377, + 0.9696858232882318, + 0.9781477430928525, + 0.9658067836430293, + 0.9421165721647375, + 0.9432134035331979 + ], + "raw_time_brier": 0.044965881209533945, + "raw_timepoint_brier": [ + 0.01375801581889391, + 0.02247771807014942, + 0.031289808452129364, + 0.03699195384979248, + 0.04054786264896393, + 0.044268637895584106, + 0.04881990700960159, + 0.0516071654856205, + 0.05469411611557007, + 0.05798487737774849, + 0.059824250638484955, + 0.06099434569478035, + 0.06129779666662216 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.015138575176352321, + 0.026111551595443545, + 0.033695719656768444, + 0.03931704678840485, + 0.04360752747541433, + 0.04780825012011492, + 0.05078092152483867, + 0.05382342184585476, + 0.05640395559264833, + 0.05928028540392407, + 0.06194225558535373, + 0.06474182441630476, + 0.06498825868780679 + ] + }, + "E88": { + "normalized_time_brier": 1.8393937822495803, + "normalized_timepoint_brier": [ + 1.0571744060143828, + 1.0492581641301513, + 2.4200562546598023, + 2.123450809586544, + 1.9206431883070794, + 1.9356744994914528, + 1.8165848929774149, + 1.8531889561765786, + 1.9172339486493162, + 1.917283112617729, + 2.0199562839138983, + 1.946813726382665, + 1.9348009263375303 + ], + "raw_time_brier": 0.0035427432829657425, + "raw_timepoint_brier": [ + 0.0010571744060143828, + 0.0010492581641301513, + 0.0027938392013311386, + 0.003125213785097003, + 0.003115005325525999, + 0.003462608903646469, + 0.003461515763774514, + 0.003809122834354639, + 0.0041644680313766, + 0.004516050219535828, + 0.0051619624719023705, + 0.00516956951469183, + 0.005169874057173729 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0011544521727342575, + 0.0014717617997025848, + 0.0016218552953980335, + 0.0017888384150104668, + 0.0019055072940197299, + 0.0020554422265786974, + 0.0021721230391890628, + 0.002355442547746596, + 0.0025554822710818635, + 0.002655400177549242, + 0.002672044439714018 + ] + }, + "E89": { + "normalized_time_brier": 1.8100824962885727, + "normalized_timepoint_brier": [ + 1.0760496370494366, + 1.4351682038977742, + 1.4354807790368795, + 1.436642836779356, + 1.4369633281603456, + 1.7974532674998045, + 1.8003995064646006, + 1.801468781195581, + 2.4317441294770825, + 2.3638017075680207, + 2.1808405901313863, + 2.181289977529165, + 2.1537697069620134 + ], + "raw_time_brier": 0.002048924216069281, + "raw_timepoint_brier": [ + 0.0010760496370494366, + 0.0014351682038977742, + 0.0014354807790368795, + 0.001436642836779356, + 0.0014369633281603456, + 0.0017974532674998045, + 0.0018003995064646006, + 0.001801468781195581, + 0.0028817839920520782, + 0.002882318338379264, + 0.002883525798097253, + 0.0028841199818998575, + 0.002884640358388424 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011850687566671628, + 0.0012193570759980181, + 0.0013222084232775275, + 0.001322208423277503, + 0.001339344846881209 + ] + }, + "F02": { + "normalized_time_brier": 0.4371447395654315, + "normalized_timepoint_brier": [ + 0.002789564405247802, + 0.3679551591631025, + 0.31233641899604125, + 0.2834284379070461, + 0.251094856238587, + 0.6109970054134957, + 0.5541264272849369, + 0.6446753784620355, + 0.595674828738465, + 0.5546300058525415, + 0.5317800491404391, + 0.4878905213540514, + 0.4855029613946189 + ], + "raw_time_brier": 0.0009762263814361807, + "raw_timepoint_brier": [ + 2.789564405247802e-06, + 0.0003679551591631025, + 0.0003832489310298115, + 0.0003904101613443345, + 0.0004003280773758888, + 0.0010965669061988592, + 0.0011054625501856208, + 0.001468758680857718, + 0.0014761043712496758, + 0.0014854440232738853, + 0.0014948166208341718, + 0.0015091520035639405, + 0.0015099059091880918 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0012270388841035826, + 0.0013774558552673336, + 0.0015943300606504752, + 0.0017947173169150829, + 0.001994964498629086, + 0.0022782918813522087, + 0.0024780371773905677, + 0.002678261196832574, + 0.002810967848926205, + 0.0030932185347146398, + 0.003109982902783643 + ] + }, + "F03": { + "normalized_time_brier": 1.4965464988258117, + "normalized_timepoint_brier": [ + 1.8266084371134639, + 1.6720683593733214, + 1.8919522001528115, + 1.6158555832645896, + 1.4483357450209813, + 1.4013286574439192, + 1.5018645292548116, + 1.4188710731350838, + 1.3108025905621665, + 1.2370163745583493, + 1.3114533439438991, + 1.4139697405359835, + 1.404977850376172 + ], + "raw_time_brier": 0.004657100321939931, + "raw_timepoint_brier": [ + 0.0018266084371134639, + 0.0025643943808972836, + 0.003661810653284192, + 0.004018700215965509, + 0.004037190694361925, + 0.004416169598698616, + 0.005156448110938072, + 0.0051766918040812016, + 0.005215423181653023, + 0.005248991306871176, + 0.005910133942961693, + 0.006652757991105318, + 0.006656983867287636 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.00153366599309277, + 0.001935466790856783, + 0.0024870416995102615, + 0.0027874687952988693, + 0.0031514160330909737, + 0.003433364335128532, + 0.003648458201803339, + 0.003978801399390181, + 0.004243267441585175, + 0.004506552955355851, + 0.004705021472795807, + 0.004738141505579807 + ] + }, + "F05": { + "normalized_time_brier": 2.2988999690964866, + "normalized_timepoint_brier": [ + 0.37375077954493463, + 2.2140195408781267, + 2.5410226814292542, + 2.3038673360468156, + 2.1187964821032756, + 2.2758660925353977, + 2.210518488517757, + 2.3784180091155, + 2.702239161647498, + 2.665605305368941, + 2.724072136337929, + 2.6672712585419127, + 2.7102523261869864 + ], + "raw_time_brier": 0.00762326527127208, + "raw_timepoint_brier": [ + 0.00037375077954493463, + 0.003273503389209509, + 0.005091934930533171, + 0.005474212113767862, + 0.005893046502023935, + 0.006980931852012873, + 0.007414041552692652, + 0.008538774214684963, + 0.010293718427419662, + 0.01064710970968008, + 0.011337595991790295, + 0.011729459278285503, + 0.012054369784891605 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0014785340999796093, + 0.002003891963557405, + 0.002376096934106029, + 0.0027813178621922466, + 0.003067373724187727, + 0.0033539830547466127, + 0.0035901066095023445, + 0.003809329156914372, + 0.003994255896863334, + 0.004162002848805555, + 0.004397550208184493, + 0.004447692810156432 + ] + }, + "F06": { + "normalized_time_brier": 0.6402471492317721, + "normalized_timepoint_brier": [ + 0.35454213502816856, + 0.3553643182385713, + 0.3601432254072279, + 0.714436115231365, + 0.7156964857131243, + 0.7190058822743595, + 0.7194937206804752, + 0.7216483354568481, + 0.7255537784658372, + 0.7289862260222435, + 0.7333789253607392, + 0.7373795961029828, + 0.7375841960310936 + ], + "raw_time_brier": 0.000640247149231772, + "raw_timepoint_brier": [ + 0.00035454213502816856, + 0.0003553643182385713, + 0.0003601432254072279, + 0.000714436115231365, + 0.0007156964857131243, + 0.0007190058822743595, + 0.0007194937206804752, + 0.0007216483354568481, + 0.0007255537784658372, + 0.0007289862260222435, + 0.0007333789253607392, + 0.0007373795961029828, + 0.0007375841960310936 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "F10": { + "normalized_time_brier": 1.0366194881895263, + "normalized_timepoint_brier": [ + 1.2992786618335534, + 1.398128253217099, + 1.0850763654675784, + 0.9150423246500614, + 0.7676138819154171, + 0.788438946561341, + 1.0685204741645014, + 1.0428705538237157, + 1.051692087626599, + 1.0641863936155744, + 1.0224129300664473, + 0.9916730164794306, + 0.9811194570425217 + ], + "raw_time_brier": 0.004792543199773018, + "raw_timepoint_brier": [ + 0.0019436071161180735, + 0.003411273704841733, + 0.003394645405933261, + 0.0033918966073542833, + 0.0033988659270107746, + 0.003789378795772791, + 0.005672614090144634, + 0.005667434073984623, + 0.0060356310568749905, + 0.006394064985215664, + 0.006399007048457861, + 0.006401429884135723, + 0.0064032129012048244 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001495912442197148, + 0.0024398861098703767, + 0.0031284852513310886, + 0.0037068193634118974, + 0.004427832803817497, + 0.004806179111647899, + 0.005308849224045211, + 0.00543445593818409, + 0.005738971632368055, + 0.006008407007997745, + 0.006258730558153236, + 0.006455182078929242, + 0.006526435547926667 + ] + }, + "F11": { + "normalized_time_brier": 1.5412064375330852, + "normalized_timepoint_brier": [ + 1.430758973583579, + 1.911828137399749, + 1.5374059620066642, + 1.56887872949983, + 1.65537737482579, + 1.4830184863359857, + 1.5797494876980238, + 1.5029630769897375, + 1.4328158131749322, + 1.4974663135081545, + 1.4447300093792648, + 1.5081022367279517, + 1.4825890868004499 + ], + "raw_time_brier": 0.0031290094260699474, + "raw_timepoint_brier": [ + 0.001430758973583579, + 0.0021795101929455996, + 0.002222261391580105, + 0.00261373957619071, + 0.0029824182856827974, + 0.003023645142093301, + 0.0034082019701600075, + 0.003421013941988349, + 0.0034555005840957165, + 0.003814167343080044, + 0.003826483618468046, + 0.004147179424762726, + 0.004152242094278336 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0011400136603857715, + 0.0014454616714765101, + 0.0016659921044528338, + 0.0018016546142517282, + 0.0020388452132944473, + 0.002157431919871273, + 0.0022761796309994833, + 0.0024116851254166296, + 0.0025470805644665835, + 0.0026485804223808666, + 0.002749932546854806, + 0.0028006695390151684 + ] + }, + "F12": { + "normalized_time_brier": 2.2231625358885028, + "normalized_timepoint_brier": [ + 1.780437189154327, + 2.8510363772511482, + 3.238342003009968, + 2.843926134998335, + 2.335780681483134, + 2.204225326216957, + 2.2491948671742708, + 2.1015332843910115, + 1.8969887564170034, + 1.8695536070979906, + 1.8056699357296626, + 1.8684778098975605, + 1.855946993729165 + ], + "raw_time_brier": 0.003823125887160691, + "raw_timepoint_brier": [ + 0.001780437189154327, + 0.0028510363772511482, + 0.003559886245056987, + 0.0035578261595219374, + 0.003552160458639264, + 0.003909081686288118, + 0.00425404729321599, + 0.0042565385811030865, + 0.004256842192262411, + 0.004258063156157732, + 0.004263652954250574, + 0.004600329324603081, + 0.004600734915584326 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010992928608986173, + 0.001251026218908467, + 0.0015207594132441297, + 0.0017734492203649401, + 0.001891364485710602, + 0.0020254442852360335, + 0.0022439996957613257, + 0.002277582809068149, + 0.002361258206654281, + 0.0024620732985077805, + 0.0024789150396693402 + ] + }, + "F14": { + "normalized_time_brier": 1.9280516307614408, + "normalized_timepoint_brier": [ + 1.4258837327361107, + 1.4224922051653266, + 2.5911052858478407, + 2.2745104700255756, + 2.281228154683603, + 2.081288120409547, + 2.0377673273169834, + 1.8407588699724649, + 1.8982568086500078, + 1.8644530356557356, + 1.8481501548447758, + 1.7566105613939096, + 1.7421664731968503 + ], + "raw_time_brier": 0.0030037802196322726, + "raw_timepoint_brier": [ + 0.0014258837327361107, + 0.0014224922051653266, + 0.0028407429344952106, + 0.00283836224116385, + 0.0031918843742460012, + 0.0031922925263643265, + 0.003194197081029415, + 0.003194767516106367, + 0.003549754386767745, + 0.003549087094143033, + 0.003548960667103529, + 0.0035503327380865812, + 0.003550385357812047 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010963440775683053, + 0.0012479002750565198, + 0.001399195590187998, + 0.0015338061535354176, + 0.0015674984274259807, + 0.001735570893190457, + 0.0018700074566266093, + 0.0019035540323464383, + 0.0019202772338601471, + 0.0020211268314755623, + 0.002037913949346724 + ] + }, + "F15": { + "normalized_time_brier": 2.1087325966128936, + "normalized_timepoint_brier": [ + 1.4084577560424805, + 1.7618867568671703, + 1.7596168909221888, + 2.1135443821549416, + 2.1120221354067326, + 2.111665438860655, + 2.111921086907387, + 2.1120940800756216, + 2.1107103675603867, + 2.108759479597211, + 2.1089697256684303, + 2.797231078147888, + 2.796644577756524 + ], + "raw_time_brier": 0.0021087325966128935, + "raw_timepoint_brier": [ + 0.0014084577560424805, + 0.0017618867568671703, + 0.0017596168909221888, + 0.0021135443821549416, + 0.0021120221354067326, + 0.002111665438860655, + 0.0021119210869073868, + 0.0021120940800756216, + 0.0021107103675603867, + 0.002108759479597211, + 0.0021089697256684303, + 0.002797231078147888, + 0.002796644577756524 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "F17": { + "normalized_time_brier": 2.861516056608764, + "normalized_timepoint_brier": [ + 3.402243123239075, + 3.4090796826788554, + 2.9285041662456037, + 3.048929328752677, + 2.7958036184184047, + 2.63334744236438, + 2.6740617652867313, + 2.819337587529013, + 2.840409954403124, + 2.767589572216949, + 2.701366614077985, + 2.5943062326622015, + 2.5847296480389277 + ], + "raw_time_brier": 0.010403554564198622, + "raw_timepoint_brier": [ + 0.005126504227519035, + 0.007401222828775644, + 0.008466902188956738, + 0.00962232705205679, + 0.00961492583155632, + 0.009602414444088936, + 0.010408403351902962, + 0.011611088179051876, + 0.012394893914461136, + 0.012756461277604103, + 0.012757583521306515, + 0.012740865349769592, + 0.012742617167532444 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0015068012607630443, + 0.0021710325124931554, + 0.002891203736893249, + 0.0031559691991920663, + 0.003439056222767004, + 0.0036464669604962204, + 0.0038923571201755322, + 0.00411837455380018, + 0.00436376935492953, + 0.004609231587538347, + 0.004722640553422572, + 0.004911087669359406, + 0.004929961312279006 + ] + }, + "F19": { + "normalized_time_brier": 2.6209515749493315, + "normalized_timepoint_brier": [ + 2.0829099230468273, + 2.7701074723154306, + 2.761754672974348, + 3.099303925409913, + 2.9288795155072966, + 2.548047026694144, + 2.4776680656613985, + 2.478453951961866, + 2.7552041200263124, + 2.6929515092674934, + 2.582971702542438, + 2.4584708930990833, + 2.4356476958347635 + ], + "raw_time_brier": 0.0036001751521745552, + "raw_timepoint_brier": [ + 0.0020829099230468273, + 0.0027701074723154306, + 0.002761754672974348, + 0.003099303925409913, + 0.0034281497355550528, + 0.0034129018895328045, + 0.003402372822165489, + 0.0037383390590548515, + 0.0044350833632051945, + 0.004425667691975832, + 0.004418789409101009, + 0.004413514398038387, + 0.004413382615894079 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011704645812175992, + 0.0013394187209961857, + 0.0013732157544910062, + 0.0015083350877250314, + 0.001609711357125453, + 0.0016434264325760745, + 0.0017107386057507183, + 0.0017952274360567384, + 0.001811995480069416 + ] + }, + "F20": { + "normalized_time_brier": 0.9823614550485288, + "normalized_timepoint_brier": [ + 0.00029122799105607555, + 0.3530346730258316, + 0.7092808955349028, + 0.7091364241205156, + 1.0640847031027079, + 1.0641918051987886, + 1.064231852069497, + 1.064566196873784, + 1.0649110190570354, + 1.4188799541443586, + 1.4191657537594438, + 1.4194493414834142, + 1.419475069269538 + ], + "raw_time_brier": 0.0009823614550485288, + "raw_timepoint_brier": [ + 2.9122799105607555e-07, + 0.0003530346730258316, + 0.0007092808955349028, + 0.0007091364241205156, + 0.0010640847031027079, + 0.0010641918051987886, + 0.0010642318520694971, + 0.001064566196873784, + 0.0010649110190570354, + 0.0014188799541443586, + 0.0014191657537594438, + 0.0014194493414834142, + 0.001419475069269538 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "F22": { + "normalized_time_brier": 0.27888926801831704, + "normalized_timepoint_brier": [ + 0.0011947669236178626, + 0.0021226169337751344, + 0.0028874851523141842, + 0.35750275128521025, + 0.3580001648515463, + 0.35875715548172593, + 0.3596698516048491, + 0.360982958227396, + 0.3626073303166777, + 0.36352474126033485, + 0.3645228280220181, + 0.36684348015114665, + 0.3669443540275097 + ], + "raw_time_brier": 0.00027888926801831706, + "raw_timepoint_brier": [ + 1.1947669236178626e-06, + 2.1226169337751344e-06, + 2.8874851523141842e-06, + 0.00035750275128521025, + 0.0003580001648515463, + 0.00035875715548172593, + 0.0003596698516048491, + 0.000360982958227396, + 0.0003626073303166777, + 0.00036352474126033485, + 0.0003645228280220181, + 0.00036684348015114665, + 0.0003669443540275097 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "F25": { + "normalized_time_brier": 0.9546886722091585, + "normalized_timepoint_brier": [ + 0.3537423617672175, + 0.7073295419104397, + 0.7074829190969467, + 1.061779330484569, + 1.0620021494105458, + 1.0629950556904078, + 1.06308504473418, + 1.063531613908708, + 1.0640668915584683, + 1.0653362842276692, + 1.065501943230629, + 1.06702686753124, + 1.0670727351680398 + ], + "raw_time_brier": 0.0009546886722091585, + "raw_timepoint_brier": [ + 0.0003537423617672175, + 0.0007073295419104397, + 0.0007074829190969467, + 0.001061779330484569, + 0.0010620021494105458, + 0.0010629950556904078, + 0.00106308504473418, + 0.001063531613908708, + 0.0010640668915584683, + 0.0010653362842276692, + 0.001065501943230629, + 0.00106702686753124, + 0.0010670727351680398 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "F29": { + "normalized_time_brier": 2.430680225818203, + "normalized_timepoint_brier": [ + 1.0686995228752494, + 1.7769335536286235, + 2.1328830625861883, + 2.4885283783078194, + 2.4885027669370174, + 2.488198922947049, + 2.487749559804797, + 2.4877411779016256, + 2.8383180033415556, + 2.8366558253765106, + 2.836194122210145, + 2.8342606965452433, + 2.834177343174815 + ], + "raw_time_brier": 0.002430680225818203, + "raw_timepoint_brier": [ + 0.0010686995228752494, + 0.0017769335536286235, + 0.0021328830625861883, + 0.0024885283783078194, + 0.0024885027669370174, + 0.002488198922947049, + 0.002487749559804797, + 0.0024877411779016256, + 0.0028383180033415556, + 0.0028366558253765106, + 0.002836194122210145, + 0.0028342606965452433, + 0.002834177343174815 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "F31": { + "normalized_time_brier": 1.9875579468209565, + "normalized_timepoint_brier": [ + 1.8291175365447998, + 2.553640166297555, + 2.5556478649377823, + 2.5196594122348586, + 2.1654937200857702, + 2.112026992375376, + 1.9219511081444318, + 1.8389226135495682, + 1.7101547664322438, + 1.7727374838447667, + 1.665190567625715, + 1.6101389684079084, + 1.5835721081916614 + ], + "raw_time_brier": 0.0028843544244479677, + "raw_timepoint_brier": [ + 0.0018291175365447998, + 0.002553640166297555, + 0.0025556478649377823, + 0.002909983741119504, + 0.0029109909664839506, + 0.002911896910518408, + 0.002913998207077384, + 0.002914890879765153, + 0.0029166764579713345, + 0.0032670616637915373, + 0.003269149689003825, + 0.0032716249115765095, + 0.003271928522735834 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001154911543595664, + 0.0013442620218583007, + 0.0013787214467573762, + 0.0015161666676790414, + 0.0015851079639173636, + 0.0017055043878023732, + 0.0018429472460332, + 0.0019632285652837257, + 0.0020318897783161314, + 0.0020661695831913638 + ] + }, + "F32": { + "normalized_time_brier": 2.2027068691678107, + "normalized_timepoint_brier": [ + 2.068701432516241, + 2.1941397990561566, + 2.2244926896167514, + 2.1702351730331673, + 2.1738197302755182, + 2.0982332619304596, + 2.1604606269292055, + 2.1806286288033316, + 2.2192731453575854, + 2.2997164136806365, + 2.278893176453976, + 2.2906165363037694, + 2.275978685224736 + ], + "raw_time_brier": 0.022611617325590208, + "raw_timepoint_brier": [ + 0.007263773120939732, + 0.012885897420346737, + 0.015976350754499435, + 0.017801305279135704, + 0.019998695701360703, + 0.021009493619203568, + 0.023602493107318878, + 0.02505830116569996, + 0.026667695492506027, + 0.02930937334895134, + 0.030332041904330254, + 0.03201091289520264, + 0.03203469142317772 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.003511271857198129, + 0.005872869826202417, + 0.007182019895624802, + 0.00820247754728637, + 0.00919979491529686, + 0.01001294469990147, + 0.010924750404207338, + 0.011491319904137577, + 0.012016409763841456, + 0.012744777214527266, + 0.013309988470599483, + 0.013974802149493223, + 0.014075128045416881 + ] + }, + "F33": { + "normalized_time_brier": 1.436932819590345, + "normalized_timepoint_brier": [ + 1.763204335921348, + 1.6678376544756526, + 1.3915122095510717, + 1.286177412169489, + 1.1595922168608404, + 1.3588355868290225, + 1.5581921742091867, + 1.4622985651573441, + 1.4105560309589822, + 1.468780966593566, + 1.4285487278048639, + 1.3692699254580032, + 1.3553208486851143 + ], + "raw_time_brier": 0.003391953704592127, + "raw_timepoint_brier": [ + 0.0021338388323783875, + 0.0024936760310083628, + 0.0025001673493534327, + 0.002504491014406085, + 0.002510620281100273, + 0.0031921237241476774, + 0.003894979367032647, + 0.003899561008438468, + 0.0039029542822390795, + 0.004260513931512833, + 0.004262786824256182, + 0.004268928896635771, + 0.004270756617188454 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0012102050731762563, + 0.0014951551335446636, + 0.0017967268502516655, + 0.001947236042795665, + 0.0021650889378137025, + 0.0023491611163914353, + 0.0024996784295938505, + 0.0026667337993447823, + 0.002766961536143738, + 0.002900714285121712, + 0.0029839981943118343, + 0.00311766790262911, + 0.0031511037562299694 + ] + }, + "F39": { + "normalized_time_brier": 2.4934840773567735, + "normalized_timepoint_brier": [ + 1.778837526217103, + 2.1302998065948486, + 2.4858498945832253, + 2.842873567715287, + 2.6042324539711106, + 2.7145529248524967, + 2.6412103526568593, + 2.7428667432129963, + 2.5196605319946235, + 2.6786851307618043, + 2.507202790105351, + 2.408497593425804, + 2.3605236895465485 + ], + "raw_time_brier": 0.0031753182411193848, + "raw_timepoint_brier": [ + 0.001778837526217103, + 0.0021302998065948486, + 0.0024858498945832253, + 0.002842873567715287, + 0.002846915042027831, + 0.0031954837031662464, + 0.00319793657399714, + 0.0035511681344360113, + 0.003558180993422866, + 0.003917747177183628, + 0.003919471520930529, + 0.003926733508706093, + 0.003927639685571194 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010931877596743185, + 0.0011771675821497872, + 0.0012107845067244477, + 0.0012946921840891804, + 0.001412166817014086, + 0.001462563528722557, + 0.001563284604021135, + 0.0016303663825218014, + 0.001663884884089295 + ] + }, + "F41": { + "normalized_time_brier": 1.0593994530734352, + "normalized_timepoint_brier": [ + 0.8064520837427489, + 1.090824079002849, + 1.0926110222157337, + 1.1011748398368972, + 1.151155925993181, + 1.1173897764576113, + 1.129544645687376, + 1.0990996445209718, + 1.0900854548852599, + 1.061781041949055, + 1.0269196306128563, + 1.0053799223782023, + 0.9997748226719161 + ], + "raw_time_brier": 0.02614326638957629, + "raw_timepoint_brier": [ + 0.006990769878029823, + 0.014491560868918896, + 0.01828821934759617, + 0.021459849551320076, + 0.02555929683148861, + 0.02751140296459198, + 0.030025405809283257, + 0.030898015946149826, + 0.032188475131988525, + 0.03263523057103157, + 0.03268783539533615, + 0.033556703478097916, + 0.03356969729065895 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.008668549587702246, + 0.013284966061774154, + 0.016738087915779052, + 0.019488140098168828, + 0.022203157934001735, + 0.024621133595664, + 0.026581867236430943, + 0.028112115311998236, + 0.02952839613420639, + 0.030736309353503632, + 0.03183095777011133, + 0.03337713707144691, + 0.03357725812792858 + ] + }, + "F43": { + "normalized_time_brier": 1.7190424368511457, + "normalized_timepoint_brier": [ + 1.8659428181202742, + 1.707694668154652, + 1.9938180999133568, + 2.0334807550127993, + 1.8033644908297146, + 1.7133391335384562, + 1.60550405036106, + 1.6622655199462268, + 1.5595271281503085, + 1.6608012584075356, + 1.6022897952431756, + 1.542599221213073, + 1.5969247401742555 + ], + "raw_time_brier": 0.005772648522487054, + "raw_timepoint_brier": [ + 0.0021466962061822414, + 0.0032237498089671135, + 0.004686026368290186, + 0.005405341740697622, + 0.005409297067672014, + 0.0057816337794065475, + 0.005800745449960232, + 0.006515927147120237, + 0.006537913344800472, + 0.0072729806415736675, + 0.0072884103283286095, + 0.007304966449737549, + 0.007670742459595203 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0011504619462802158, + 0.0018877788102780236, + 0.0023502777753365875, + 0.0026581720664789863, + 0.0029995583783416057, + 0.0033744830000270215, + 0.003613036945410202, + 0.00391990754120378, + 0.004192240857364774, + 0.004379199861967462, + 0.004548746643688426, + 0.004735492115698756, + 0.004803446440912536 + ] + }, + "F60": { + "normalized_time_brier": 1.30136859238451, + "normalized_timepoint_brier": [ + 0.7087977137416601, + 1.409209449775517, + 1.7731634434312582, + 1.6904023454424242, + 1.5074249927684296, + 1.379370664764197, + 1.3012127776965787, + 1.2336556593835446, + 1.318754085417841, + 1.2444792784198477, + 1.17939381978243, + 1.0856705121309718, + 1.0862569582439314 + ], + "raw_time_brier": 0.0017999101591368134, + "raw_timepoint_brier": [ + 0.0007087977137416601, + 0.001409209449775517, + 0.0017731634434312582, + 0.001779515645466745, + 0.0017879883525893092, + 0.0017966963350772858, + 0.0018028870690613985, + 0.001811903202906251, + 0.0020904853008687496, + 0.00209681480191648, + 0.002104901010170579, + 0.002117662923410535, + 0.0021188068203628063 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0010527172127183706, + 0.0011861209421144179, + 0.0013025478799670069, + 0.0013855436251193976, + 0.0014687268599826758, + 0.0015851972130242835, + 0.0016848933029876302, + 0.001784731253347489, + 0.0019505576505471735, + 0.0019505576505471774 + ] + }, + "F90": { + "normalized_time_brier": 2.3627862638722243, + "normalized_timepoint_brier": [ + 1.0794454719871283, + 1.792735536582768, + 1.7905943095684052, + 2.1445716265589, + 2.5020146276801825, + 2.5019266176968813, + 2.499065361917019, + 2.4985764175653458, + 2.4983251933008432, + 2.8531032148748636, + 2.851995173841715, + 2.851941389963031, + 2.851926488801837 + ], + "raw_time_brier": 0.0023627862638722244, + "raw_timepoint_brier": [ + 0.0010794454719871283, + 0.001792735536582768, + 0.0017905943095684052, + 0.0021445716265589, + 0.0025020146276801825, + 0.0025019266176968813, + 0.002499065361917019, + 0.0024985764175653458, + 0.0024983251933008432, + 0.0028531032148748636, + 0.002851995173841715, + 0.002851941389963031, + 0.002851926488801837 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "G25": { + "normalized_time_brier": 0.7255129778041456, + "normalized_timepoint_brier": [ + 0.3592783468775451, + 0.879673880890484, + 0.8686818951436449, + 0.7507331429631947, + 0.6722050201499539, + 0.6063351925656761, + 0.6981553566219357, + 0.7699907105046285, + 0.7229607995547962, + 0.69865727791772, + 0.6606419267156001, + 0.8292703441394226, + 0.9150848174092923 + ], + "raw_time_brier": 0.0018656980111980094, + "raw_timepoint_brier": [ + 0.0003592783468775451, + 0.0010831449180841446, + 0.001449849340133369, + 0.0014550512423738837, + 0.0014610318467020988, + 0.001470691990107298, + 0.0018341649556532502, + 0.002203691517934203, + 0.00221448577940464, + 0.0022220967803150415, + 0.002234031679108739, + 0.002957324730232358, + 0.0033092310186475515 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0012313028062032364, + 0.001669022168228362, + 0.0019381737119407005, + 0.0021734914243517183, + 0.002425542848476501, + 0.0026271587523555807, + 0.0028619715639036356, + 0.0030630786354783474, + 0.0031805247730872918, + 0.003381607477162841, + 0.0035661768820411987, + 0.0036163107022323415 + ] + }, + "G31": { + "normalized_time_brier": 0.9529260920341736, + "normalized_timepoint_brier": [ + 0.0014189361081662355, + 0.36553520476445556, + 0.3652685778100131, + 0.3195684776206813, + 0.5813416672230817, + 0.9957680989334818, + 1.3071528031550965, + 1.3460414085983385, + 1.484306734018985, + 1.3916193794838128, + 1.4831110363431192, + 1.3828689095835347, + 1.3640379628014878 + ], + "raw_time_brier": 0.0018061657840812235, + "raw_timepoint_brier": [ + 1.4189361081662355e-06, + 0.00036553520476445556, + 0.0003724737325683236, + 0.0003791736962739378, + 0.00073823775164783, + 0.0014469457091763616, + 0.0021609056275337934, + 0.0025166349951177835, + 0.0028739895205944777, + 0.002879585837945342, + 0.003241350408643484, + 0.0032514845952391624, + 0.003252419177442789 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010197256353160992, + 0.0011865178289706228, + 0.0012698861844433072, + 0.0014530950637262972, + 0.0016531392675117856, + 0.0018696564452191772, + 0.0019362504088442124, + 0.002069233786477919, + 0.0021855075777978327, + 0.0023512601756433883, + 0.002384405175031131 + ] + }, + "G40": { + "normalized_time_brier": 3.5049440342680294, + "normalized_timepoint_brier": [ + 2.195033011958003, + 2.931094728410244, + 3.673133639973976, + 4.2439547713940335, + 3.979307058856316, + 3.9575466599644398, + 3.7675081778513824, + 3.445795142497264, + 3.7238697082881327, + 3.54258697161303, + 3.4467964691083113, + 3.271967035418102, + 3.385679070151143 + ], + "raw_time_brier": 0.006759575335308909, + "raw_timepoint_brier": [ + 0.002195033011958003, + 0.002931094728410244, + 0.00399004016071558, + 0.006144117098301649, + 0.006513758096843958, + 0.00722686480730772, + 0.00759213138371706, + 0.00759513583034277, + 0.008656804449856281, + 0.00866094883531332, + 0.008663232438266277, + 0.00867290236055851, + 0.00903241615742445 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001086276882848142, + 0.0014477338777772741, + 0.001636907632535415, + 0.0018260971829887804, + 0.0020151598949008434, + 0.0022041750934846237, + 0.0023246797358642884, + 0.0024448090914108932, + 0.0025134157226601376, + 0.0026506692355628392, + 0.0026678299892792926 + ] + }, + "G43": { + "normalized_time_brier": 0.9445115499436221, + "normalized_timepoint_brier": [ + 0.7411985997040161, + 1.0897150211348123, + 1.0253304003717434, + 1.1363699479680027, + 1.0046596758767365, + 0.8867899595298211, + 0.9687626850969883, + 1.0242905467421441, + 0.9593036695076732, + 0.9072320209861324, + 0.8704090016939361, + 0.8365619853958158, + 0.8280266352592626 + ], + "raw_time_brier": 0.0043128090104661305, + "raw_timepoint_brier": [ + 0.0011013721814379096, + 0.0025573414750397205, + 0.0029167276807129383, + 0.004013657104223967, + 0.00401327246800065, + 0.004012141842395067, + 0.004729944746941328, + 0.005455697420984507, + 0.00545325456187129, + 0.005451737903058529, + 0.005453138612210751, + 0.00545398099347949, + 0.005454250145703554 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0014859339748857082, + 0.0023467984064095442, + 0.0028446710247306143, + 0.0035319986342484486, + 0.003994658653437431, + 0.004524342883316268, + 0.0048824596773850626, + 0.005326318238840418, + 0.005684596791618622, + 0.0060091991650963366, + 0.006265030119861111, + 0.006519518085559389, + 0.006587046736722158 + ] + }, + "G44": { + "normalized_time_brier": 1.7185912539179509, + "normalized_timepoint_brier": [ + 0.35719352308660746, + 1.0710300412029028, + 1.0722308652475476, + 1.0754952672868967, + 1.434503705240786, + 1.4416929334402084, + 1.8018506234511733, + 1.803031424060464, + 2.162571996450424, + 2.5246674194931984, + 2.5264753494411707, + 2.535299863666296, + 2.5356432888656855 + ], + "raw_time_brier": 0.001718591253917951, + "raw_timepoint_brier": [ + 0.00035719352308660746, + 0.0010710300412029028, + 0.0010722308652475476, + 0.0010754952672868967, + 0.001434503705240786, + 0.0014416929334402084, + 0.0018018506234511733, + 0.001803031424060464, + 0.002162571996450424, + 0.0025246674194931984, + 0.0025264753494411707, + 0.002535299863666296, + 0.0025356432888656855 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "G47": { + "normalized_time_brier": 1.5320612297561669, + "normalized_timepoint_brier": [ + 1.6724327558837035, + 1.5992647414182768, + 1.5924067502906976, + 1.7101945239192886, + 1.669688409547834, + 1.5925150801247587, + 1.5614887859220907, + 1.481704641912513, + 1.4639837899218335, + 1.4198933478762477, + 1.4165778674633667, + 1.374294045629511, + 1.3623512469200494 + ], + "raw_time_brier": 0.028075717819424775, + "raw_timepoint_brier": [ + 0.00978722982108593, + 0.015180110931396484, + 0.019619526341557503, + 0.024572070688009262, + 0.027268478646874428, + 0.028886310756206512, + 0.031135447323322296, + 0.031924694776535034, + 0.0335947722196579, + 0.034443069249391556, + 0.03597891703248024, + 0.036295510828495026, + 0.03629819303750992 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.005852091683001279, + 0.00949193122205289, + 0.012320675190541558, + 0.014367997525624707, + 0.016331477472649503, + 0.01813879888279836, + 0.01993959073163384, + 0.02154592344080678, + 0.022947502869175636, + 0.02425750448152214, + 0.025398474633030133, + 0.02641029475745815, + 0.026643784500929153 + ] + }, + "G51": { + "normalized_time_brier": 0.0009292176382193527, + "normalized_timepoint_brier": [ + 4.043950951881925e-05, + 0.0001307100205849565, + 0.00021107683778609498, + 0.00032646045156070613, + 0.0006942675554455491, + 0.0007629153628840868, + 0.0008453366149296926, + 0.0009898899406834971, + 0.0012164556437710417, + 0.0014876369505145703, + 0.0016505641724506859, + 0.0018524141296438756, + 0.0018716621070780093 + ], + "raw_time_brier": 9.292176382193527e-07, + "raw_timepoint_brier": [ + 4.043950951881925e-08, + 1.307100205849565e-07, + 2.1107683778609498e-07, + 3.2646045156070613e-07, + 6.942675554455491e-07, + 7.629153628840868e-07, + 8.453366149296926e-07, + 9.898899406834971e-07, + 1.2164556437710417e-06, + 1.4876369505145703e-06, + 1.6505641724506859e-06, + 1.8524141296438756e-06, + 1.8716621070780093e-06 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "G62": { + "normalized_time_brier": 2.4219355903098916, + "normalized_timepoint_brier": [ + 2.5090924464166164, + 2.4631400294365555, + 2.553022442923607, + 2.463382777577157, + 2.5070735416605534, + 2.446294013511242, + 2.621480901356893, + 2.5056233673964265, + 2.3610395666569843, + 2.3334026710732525, + 2.268227848506717, + 2.2332876301952735, + 2.2200954373173127 + ], + "raw_time_brier": 0.009426447419592967, + "raw_timepoint_brier": [ + 0.0025090924464166164, + 0.004543208982795477, + 0.006885398179292679, + 0.007837102748453617, + 0.009230305440723896, + 0.009577039629220963, + 0.01100402232259512, + 0.011018030345439911, + 0.011363898403942585, + 0.011695615015923977, + 0.01204695925116539, + 0.012416468933224678, + 0.012416674755513668 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001844478563338008, + 0.002696959518854769, + 0.003181439287385838, + 0.0036817050985310257, + 0.003914917657618243, + 0.004197635892330696, + 0.004397321037474463, + 0.004813091048716657, + 0.005012257490279018, + 0.005311176855136701, + 0.005559726729932682, + 0.005592856301041523 + ] + }, + "G81": { + "normalized_time_brier": 3.2732916969719787, + "normalized_timepoint_brier": [ + 2.859410597011447, + 3.211434232071042, + 3.5627754405140877, + 3.559886012226343, + 3.6256901241411654, + 3.569302264960848, + 3.3773791544670275, + 3.681159684875285, + 3.3462934048821014, + 3.0338055561070725, + 2.856520290587417, + 2.9483449544340963, + 2.9207903443577825 + ], + "raw_time_brier": 0.00430826866067946, + "raw_timepoint_brier": [ + 0.002859410597011447, + 0.003211434232071042, + 0.0035627754405140877, + 0.003559886012226343, + 0.00390255288220942, + 0.00426104012876749, + 0.004258713684976101, + 0.004950760863721371, + 0.004950113594532013, + 0.004945743829011917, + 0.004944260232150555, + 0.005300737451761961, + 0.005300063639879227 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010763613956484592, + 0.0011938019849417909, + 0.0012609522029362302, + 0.0013448916340311108, + 0.0014792825958745892, + 0.0016302112108193946, + 0.0017308682344888274, + 0.0017978688157876633, + 0.0018145991375647997 + ] + }, + "G83": { + "normalized_time_brier": 0.9819140765242852, + "normalized_timepoint_brier": [ + 0.354612129740417, + 0.7095459150150418, + 1.0609760647639632, + 1.0613618651404977, + 1.0620246175676584, + 1.0625118156895041, + 1.063309726305306, + 1.0635654907673597, + 1.064141746610403, + 1.0650076437741518, + 1.0656820377334952, + 1.0660347761586308, + 1.0661091655492783 + ], + "raw_time_brier": 0.0009819140765242851, + "raw_timepoint_brier": [ + 0.000354612129740417, + 0.0007095459150150418, + 0.0010609760647639632, + 0.0010613618651404977, + 0.0010620246175676584, + 0.0010625118156895041, + 0.001063309726305306, + 0.0010635654907673597, + 0.001064141746610403, + 0.0010650076437741518, + 0.0010656820377334952, + 0.0010660347761586308, + 0.0010661091655492783 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "G89": { + "normalized_time_brier": 0.7861483676870834, + "normalized_timepoint_brier": [ + 0.8460585153142324, + 0.7554565676318896, + 0.7604346408201036, + 0.7836747851573677, + 0.7574059080270159, + 0.7562191339328059, + 0.773241327917809, + 0.8078167271516694, + 0.7849523382059327, + 0.7806646769021259, + 0.7773001283662757, + 0.8160330639645591, + 0.8206709665402983 + ], + "raw_time_brier": 0.01792390984841264, + "raw_timepoint_brier": [ + 0.0059151663444936275, + 0.00825128797441721, + 0.011228577233850956, + 0.01418996974825859, + 0.01546616293489933, + 0.017128197476267815, + 0.018942855298519135, + 0.02122635208070278, + 0.021969513967633247, + 0.022837014868855476, + 0.023690907284617424, + 0.025926761329174042, + 0.026238061487674713 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.006991438815903521, + 0.010922253280929585, + 0.01476599911563906, + 0.018106962246347048, + 0.02041991324729364, + 0.022649780609478396, + 0.024497986093848116, + 0.026276197765235786, + 0.02798834132763553, + 0.029253295998326073, + 0.03047845538686687, + 0.03177170444934332, + 0.031971475240907425 + ] + }, + "G90": { + "normalized_time_brier": 0.014175158390536615, + "normalized_timepoint_brier": [ + 0.0005111124323775584, + 0.0017075514051612117, + 0.002708076408453053, + 0.004206466655887198, + 0.009173370926873758, + 0.011222822649870068, + 0.013594755728263408, + 0.016161387975444086, + 0.0196000200958224, + 0.02103244696627371, + 0.024588107407907955, + 0.029451673981384374, + 0.03031926644325722 + ], + "raw_time_brier": 1.4175158390536615e-05, + "raw_timepoint_brier": [ + 5.111124323775584e-07, + 1.7075514051612117e-06, + 2.708076408453053e-06, + 4.206466655887198e-06, + 9.173370926873758e-06, + 1.1222822649870068e-05, + 1.3594755728263408e-05, + 1.6161387975444086e-05, + 1.96000200958224e-05, + 2.103244696627371e-05, + 2.4588107407907955e-05, + 2.9451673981384374e-05, + 3.031926644325722e-05 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "G92": { + "normalized_time_brier": 2.2948963818818684, + "normalized_timepoint_brier": [ + 1.2930808785568209, + 1.9985728782958037, + 2.3845354177364215, + 2.3708059394408627, + 2.367580452512492, + 2.3798419527812484, + 2.5102330112461626, + 2.420321325608203, + 2.3734442095506885, + 2.4101960847962975, + 2.4583948947212386, + 2.429336456160993, + 2.4373094630570584 + ], + "raw_time_brier": 0.01158090595764896, + "raw_timepoint_brier": [ + 0.0014715861761942506, + 0.004407205618917942, + 0.006949713919311762, + 0.008829315192997456, + 0.010331075638532639, + 0.011464291252195835, + 0.013270869851112366, + 0.013727293349802494, + 0.01417663786560297, + 0.015241294167935848, + 0.016286293044686317, + 0.017027653753757477, + 0.01736854761838913 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0011380465062917453, + 0.0022051763369650024, + 0.002914493895800024, + 0.003724183007184378, + 0.004363558428423934, + 0.004817248993698035, + 0.0052867083619955535, + 0.005671682187220724, + 0.005973023426696311, + 0.006323673938431443, + 0.006624766867054955, + 0.007009178868811677, + 0.007126115038590208 + ] + }, + "G93": { + "normalized_time_brier": 1.4078224364395355, + "normalized_timepoint_brier": [ + 1.5383206345389393, + 1.3532165828407419, + 1.492495696662314, + 1.467480027445985, + 1.4563886596547218, + 1.3992783499944177, + 1.3935218915105596, + 1.393869666856843, + 1.3334404831972375, + 1.3052275359834393, + 1.3290941487216936, + 1.4230612376010747, + 1.4162967587059923 + ], + "raw_time_brier": 0.013865439901844813, + "raw_timepoint_brier": [ + 0.003362048417329788, + 0.006346306297928095, + 0.009626279585063457, + 0.011449734680354595, + 0.012824321165680885, + 0.013552914373576641, + 0.014985330402851105, + 0.016063285991549492, + 0.01637609861791134, + 0.01703674905002117, + 0.018120501190423965, + 0.020253105089068413, + 0.020254043862223625 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0021855316387519243, + 0.004689793473122833, + 0.00644978716293174, + 0.007802310400286547, + 0.008805562361850067, + 0.009685645728479048, + 0.010753566552590861, + 0.011524238150452028, + 0.012281087025830945, + 0.013052704283613376, + 0.01363372279371784, + 0.014232068553290147, + 0.014300706216915196 + ] + }, + "G99": { + "normalized_time_brier": 0.13553110038371913, + "normalized_timepoint_brier": [ + 2.1365448077403926e-05, + 7.099381349462419e-05, + 0.00015826671528884617, + 0.00026749722792374087, + 0.00034573645280033816, + 0.00040414676050204434, + 0.000495469578254415, + 0.0005500733095686883, + 0.3518682497087866, + 0.3518928133416921, + 0.35194476367905736, + 0.3519419697113335, + 0.35194295924156904 + ], + "raw_time_brier": 0.00013553110038371912, + "raw_timepoint_brier": [ + 2.1365448077403926e-08, + 7.099381349462419e-08, + 1.5826671528884617e-07, + 2.6749722792374087e-07, + 3.4573645280033816e-07, + 4.0414676050204434e-07, + 4.95469578254415e-07, + 5.500733095686883e-07, + 0.0003518682497087866, + 0.0003518928133416921, + 0.00035194476367905736, + 0.0003519419697113335, + 0.00035194295924156904 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "H10": { + "normalized_time_brier": 1.4175707605938532, + "normalized_timepoint_brier": [ + 7.768655052586837e-05, + 0.35257896524854004, + 1.0578595101833344, + 1.4102539280429482, + 1.4101865235716105, + 1.4102571876719594, + 1.7626346088945866, + 1.7626184271648526, + 1.7625773325562477, + 1.73904384515726, + 1.959055991926622, + 1.9006363716159949, + 1.900639509135613 + ], + "raw_time_brier": 0.0014645061596474727, + "raw_timepoint_brier": [ + 7.768655052586837e-08, + 0.00035257896524854004, + 0.0010578595101833344, + 0.0014102539280429482, + 0.0014101865235716105, + 0.0014102571876719594, + 0.0017626346088945866, + 0.0017626184271648526, + 0.0017625773325562477, + 0.0017625855980440974, + 0.0021156452130526304, + 0.002115650800988078, + 0.002115654293447733 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010135371819131498, + 0.0010799309574465055, + 0.0011131275990416145, + 0.0011131275990416015 + ] + }, + "H26": { + "normalized_time_brier": 0.003974923829945217, + "normalized_timepoint_brier": [ + 0.00018802907675308234, + 0.0007755365913908463, + 0.001398926428919367, + 0.0021243923327616434, + 0.003365238662685766, + 0.003815024717796894, + 0.004091195123141658, + 0.005202913866629601, + 0.005469319573215658, + 0.005793986620719003, + 0.0061909190746202835, + 0.006599435178865542, + 0.006659092541788466 + ], + "raw_time_brier": 6.750385884183393e-06, + "raw_timepoint_brier": [ + 1.8802907675308234e-07, + 7.755365913908463e-07, + 1.398926428919367e-06, + 2.269593096571043e-06, + 4.323560915509006e-06, + 5.282971414999338e-06, + 6.00609882894787e-06, + 8.331246135639958e-06, + 9.394333574164193e-06, + 1.0529947758186609e-05, + 1.2074284313712269e-05, + 1.341918050457025e-05, + 1.3761307855020277e-05 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.00106834931644695, + 0.0012847709624429465, + 0.0013847803895881848, + 0.0014680548466081823, + 0.00160126543494691, + 0.0017176421030817262, + 0.0018173924876754197, + 0.0019503217806885705, + 0.002033383182176666, + 0.002066544017621406 + ] + }, + "H35": { + "normalized_time_brier": 1.2194935873407329, + "normalized_timepoint_brier": [ + 1.0686252498999238, + 1.0683860164135695, + 1.4244207413867116, + 1.424246933311224, + 1.350179046024615, + 1.1499815478328397, + 1.2790168689447983, + 1.2062698318778167, + 1.129522603104658, + 1.2861958313635522, + 1.2015658220530947, + 1.1375027116585037, + 1.1275034315582226 + ], + "raw_time_brier": 0.0016677495217523896, + "raw_timepoint_brier": [ + 0.0010686252498999238, + 0.0010683860164135695, + 0.0014244207413867116, + 0.001424246933311224, + 0.0014244101475924253, + 0.001424477668479085, + 0.0017764208605512977, + 0.0017762638162821531, + 0.0017762628849595785, + 0.002129625529050827, + 0.0021293088793754578, + 0.002129168948158622, + 0.0021291261073201895 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010549787095173577, + 0.0012386961087884742, + 0.0013888955679035434, + 0.001472526104310359, + 0.001572578432762001, + 0.0016557552723469164, + 0.0017721117231323579, + 0.0018717924153818033, + 0.0018883544366492197 + ] + }, + "H40": { + "normalized_time_brier": 0.7865475863099605, + "normalized_timepoint_brier": [ + 1.0852328268811107, + 0.8481253195955901, + 0.8295329334269208, + 0.7007221782959021, + 0.5917098086324146, + 0.5540697940630348, + 0.6401613873196721, + 0.5963765551844894, + 0.8257527528115894, + 0.7702716241864767, + 0.9546990552937082, + 0.9174620702071694, + 0.9110023161314076 + ], + "raw_time_brier": 0.0025837135393745624, + "raw_timepoint_brier": [ + 0.0010852328268811107, + 0.0014469376765191555, + 0.0018095968989655375, + 0.0018140285974368453, + 0.0018220482161268592, + 0.0018282411620020866, + 0.002166714519262314, + 0.002169904997572303, + 0.003255189396440983, + 0.003257329110056162, + 0.004309802316129208, + 0.004311530850827694, + 0.004311719443649054 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0017060423065887195, + 0.0021814648051281466, + 0.002588798604674411, + 0.003079293581997662, + 0.003299658601844109, + 0.003384637940026738, + 0.0036384813901697423, + 0.003942087247493214, + 0.0042288057975605605, + 0.004514304578214251, + 0.004699410461572673, + 0.0047329401553652135 + ] + }, + "H53": { + "normalized_time_brier": 1.5819790919634806, + "normalized_timepoint_brier": [ + 1.0736433323472738, + 1.0733221424743533, + 1.9743844726349191, + 1.782708457612923, + 1.8513847216018806, + 1.5898491991072787, + 1.6320005012249903, + 1.5840527707064025, + 1.549017827052537, + 1.5768242647658464, + 1.6004593384872279, + 1.5887302367216107, + 1.6893509307880057 + ], + "raw_time_brier": 0.0034105620042492566, + "raw_timepoint_brier": [ + 0.0010736433323472738, + 0.0010733221424743533, + 0.0024948117788881063, + 0.002852062461897731, + 0.003210711758583784, + 0.003211298957467079, + 0.0035704972688108683, + 0.003572101704776287, + 0.003935384098440409, + 0.004296984523534775, + 0.004656600765883923, + 0.00502174673601985, + 0.005368140526115894 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0012635896470349819, + 0.0015998479446923649, + 0.001734221807667165, + 0.0020198764507163734, + 0.00218780402710099, + 0.0022550395863285043, + 0.0025405673386784946, + 0.0027250877726522453, + 0.0029095401888094164, + 0.0031608555184185106, + 0.003177634929654255 + ] + }, + "H54": { + "normalized_time_brier": 0.6985578939654389, + "normalized_timepoint_brier": [ + 0.35638880217447877, + 0.7136597414501011, + 0.7155055063776672, + 0.7179235690273345, + 0.7194674108177423, + 0.693037237215528, + 0.6341488454722912, + 0.5705487636659187, + 0.5436580696218536, + 0.7360638485118497, + 0.9360208744050036, + 0.8723861612626379, + 0.872443791548298 + ], + "raw_time_brier": 0.0008887294321679152, + "raw_timepoint_brier": [ + 0.00035638880217447877, + 0.0007136597414501011, + 0.0007155055063776672, + 0.0007179235690273345, + 0.0007194674108177423, + 0.0007211652118712664, + 0.0007236364763230085, + 0.0007275338284671307, + 0.000729728490114212, + 0.0010866767261177301, + 0.0014445580309256911, + 0.0014485715655609965, + 0.0014486672589555383 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001040586527166636, + 0.0011411145529785995, + 0.0012751474979851743, + 0.0013422563388450785, + 0.0014763348700180538, + 0.0015432968114562052, + 0.0016604705919044192, + 0.0016604705919044194 + ] + }, + "H91": { + "normalized_time_brier": 1.761334589952448, + "normalized_timepoint_brier": [ + 0.358319201041013, + 0.7157237851060927, + 1.7867947462946177, + 1.7867304850369692, + 1.7869825242087245, + 1.7873735632747412, + 2.3628408371184766, + 2.290440801392204, + 2.2220752528616186, + 2.068459944596061, + 1.9597687504674466, + 1.8858961816394646, + 1.8859435963443982 + ], + "raw_time_brier": 0.001978390097904664, + "raw_timepoint_brier": [ + 0.000358319201041013, + 0.0007157237851060927, + 0.0017867947462946177, + 0.0017867304850369692, + 0.0017869825242087245, + 0.0017873735632747412, + 0.0024988786317408085, + 0.002499017398804426, + 0.002498980611562729, + 0.002499551046639681, + 0.002499866299331188, + 0.002500395057722926, + 0.0025004579219967127 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010575738291319834, + 0.0010910639547136265, + 0.0011246156530227804, + 0.0012084116268095322, + 0.0012755924895398586, + 0.0013258391856699448, + 0.0013258391856699493 + ] + }, + "I07": { + "normalized_time_brier": 1.6352283607217872, + "normalized_timepoint_brier": [ + 0.0005029841076975572, + 0.709309708327055, + 0.709915766492486, + 1.4165336033329368, + 1.7673203255981207, + 1.7680424498394132, + 2.1224485244601965, + 2.123029436916113, + 2.1244403906166553, + 2.1259973291307688, + 2.127701649442315, + 2.1313061006367207, + 2.1314204204827547 + ], + "raw_time_brier": 0.0016352283607217871, + "raw_timepoint_brier": [ + 5.029841076975572e-07, + 0.000709309708327055, + 0.000709915766492486, + 0.0014165336033329368, + 0.0017673203255981207, + 0.0017680424498394132, + 0.0021224485244601965, + 0.002123029436916113, + 0.0021244403906166553, + 0.0021259973291307688, + 0.002127701649442315, + 0.0021313061006367207, + 0.0021314204204827547 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "I08": { + "normalized_time_brier": 1.8489737370400878, + "normalized_timepoint_brier": [ + 0.3904019249603152, + 1.488274778239429, + 1.7808083931491863, + 2.373899371982698, + 2.1963965680345283, + 1.9200275082560978, + 1.79869469700747, + 2.147237528758483, + 2.054000430805307, + 1.9779647426138378, + 2.020206395734188, + 1.9156962640168813, + 1.9730499779627209 + ], + "raw_time_brier": 0.0034860720983348214, + "raw_timepoint_brier": [ + 0.00039040192496031523, + 0.001488274778239429, + 0.0019182962132617831, + 0.0029956926591694355, + 0.0030295196920633316, + 0.0030992929823696613, + 0.0034463864285498857, + 0.004509907681494951, + 0.004555257502943277, + 0.004618150182068348, + 0.00498675974085927, + 0.00504840724170208, + 0.00523259025067091 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001077205285330817, + 0.001261929083652527, + 0.001379313615835019, + 0.0016141919681060476, + 0.0019160485847229765, + 0.0021003301316657535, + 0.0022177490494280513, + 0.0023347990399290746, + 0.0024684407253581487, + 0.002635285841773502, + 0.00265203127600135 + ] + }, + "I10": { + "normalized_time_brier": 1.9412368213819742, + "normalized_timepoint_brier": [ + 2.3191779243620037, + 2.289145336438665, + 2.0313489567041985, + 1.9277394441447542, + 1.9574609534917644, + 1.9249135692313992, + 1.8433546751099361, + 1.8565002364993628, + 1.8696423336480106, + 1.840535848816887, + 1.7637968215845987, + 1.8113198903610308, + 1.8011426875730543 + ], + "raw_time_brier": 0.021261100227443073, + "raw_timepoint_brier": [ + 0.009247655980288982, + 0.014486001804471016, + 0.015679776668548584, + 0.017613768577575684, + 0.02011956088244915, + 0.021455194801092148, + 0.022088510915637016, + 0.023400839418172836, + 0.024565089493989944, + 0.02587808668613434, + 0.025895973667502403, + 0.02798089012503624, + 0.027982953935861588 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.003987471544613368, + 0.006328126735285229, + 0.007718898624876616, + 0.009137006887043322, + 0.010278397046214081, + 0.011146056188724886, + 0.011982778579667354, + 0.012604813593936144, + 0.013138924516144759, + 0.014060082938764276, + 0.01468194825537638, + 0.015447790461495518, + 0.015536222715129337 + ] + }, + "I11": { + "normalized_time_brier": 3.225603267381648, + "normalized_timepoint_brier": [ + 2.569793958010604, + 3.2517179926405864, + 3.241076933246379, + 3.1767569439248926, + 2.955982971235029, + 3.097334987528382, + 3.2368458082974576, + 3.3840317902982306, + 3.2977636051751653, + 3.382501232456822, + 3.4019826615515187, + 3.4833037970922636, + 3.4537497945040943 + ], + "raw_time_brier": 0.013205403229221702, + "raw_timepoint_brier": [ + 0.0029672456439584494, + 0.006285538896918297, + 0.008070830255746841, + 0.009894384071230888, + 0.010253027081489563, + 0.011681657284498215, + 0.013840294443070889, + 0.015490731224417686, + 0.016199911013245583, + 0.017296260222792625, + 0.01893426477909088, + 0.020378369837999344, + 0.02037772722542286 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0011546628610861593, + 0.0019329901643205135, + 0.002490169293100614, + 0.0031146179093595834, + 0.00346856770869887, + 0.0037715188481501536, + 0.004275858432178677, + 0.004577596247419563, + 0.004912393049587647, + 0.005113452748169372, + 0.00556565587270091, + 0.005850299320722606, + 0.0059001747196191405 + ] + }, + "I12": { + "normalized_time_brier": 2.2296360840290586, + "normalized_timepoint_brier": [ + 3.096269443631172, + 2.1154026952661003, + 1.8431775038836096, + 2.2921140786290097, + 2.093718354405458, + 2.143560127629361, + 2.10897439915179, + 2.115731189323553, + 2.269539914508379, + 2.2511678731281948, + 2.2383397067514674, + 2.212610795982321, + 2.2046630100873443 + ], + "raw_time_brier": 0.007783430897129269, + "raw_timepoint_brier": [ + 0.003096269443631172, + 0.003805002896115184, + 0.0041743009351193905, + 0.006088727619498968, + 0.006459251046180725, + 0.007210910320281982, + 0.007917549461126328, + 0.00869038887321949, + 0.009743593633174896, + 0.010499418713152409, + 0.010895258747041225, + 0.011301648803055286, + 0.01130228117108345 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0017987132684618924, + 0.0022647308391753156, + 0.002656380708215378, + 0.0030850620536375458, + 0.0033639878944085335, + 0.003754217910047031, + 0.0041075108771251815, + 0.004293202146782038, + 0.0046639874522385345, + 0.004867562646625101, + 0.005107834068050704, + 0.005126534585725951 + ] + }, + "I13": { + "normalized_time_brier": 2.2075741349183504, + "normalized_timepoint_brier": [ + 1.4688738156110048, + 1.7962487897661317, + 2.0334158781328475, + 2.423001084450949, + 2.4671531425371276, + 2.381159327617699, + 2.3856196792516142, + 2.341045777852808, + 2.333850985437501, + 2.3119749389917383, + 2.270627122417589, + 2.246379975912637, + 2.2391132359589037 + ], + "raw_time_brier": 0.007133840045963342, + "raw_timepoint_brier": [ + 0.0014688738156110048, + 0.0025730563793331385, + 0.004074034746736288, + 0.005870237946510315, + 0.0065966458059847355, + 0.0072418637573719025, + 0.007892780937254429, + 0.008293875493109226, + 0.008930683135986328, + 0.009231241419911385, + 0.0099343778565526, + 0.01031450740993023, + 0.010317741893231869 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0014324610232127955, + 0.0020035423105268595, + 0.0024227137099447514, + 0.002673788542855103, + 0.003041318433998803, + 0.003308482490272905, + 0.0035428079072918916, + 0.0038265866979987125, + 0.003992794759244737, + 0.004375169202583663, + 0.004591612959753059, + 0.004607958957829696 + ] + }, + "I16": { + "normalized_time_brier": 2.6209958530334845, + "normalized_timepoint_brier": [ + 0.41772835538722575, + 0.8346037357114255, + 1.664926647208631, + 2.906729467213154, + 3.302432967408934, + 3.143308796801814, + 2.998777038275391, + 3.225390349452558, + 3.1644928526778004, + 3.11669913553661, + 3.0750078515144152, + 3.1342152732161974, + 3.088633619031143 + ], + "raw_time_brier": 0.0033704168499053386, + "raw_timepoint_brier": [ + 0.00041772835538722575, + 0.0008346037357114255, + 0.001664926647208631, + 0.002906729467213154, + 0.0033190699759870768, + 0.003316509537398815, + 0.0033146976493299007, + 0.003727092407643795, + 0.004133282694965601, + 0.004539904650300741, + 0.004941374063491821, + 0.005350127350538969, + 0.005349372513592243 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001005037803565532, + 0.001055101408036406, + 0.0011053498166159752, + 0.0011555477023971349, + 0.0013061437921934342, + 0.001456638723493307, + 0.001606946811878297, + 0.001707006980745422, + 0.001731954376404884 + ] + }, + "I21": { + "normalized_time_brier": 1.5709378087189383, + "normalized_timepoint_brier": [ + 1.1120231356471777, + 1.1032615727600825, + 1.386397001904927, + 1.2635522875817535, + 1.359756103932304, + 1.539639910505947, + 1.807044134206101, + 1.8332357008453453, + 1.7329020465135536, + 1.7577459343177595, + 1.8415199939641107, + 1.8481519625476803, + 1.8369617286194586 + ], + "raw_time_brier": 0.005613649559493821, + "raw_timepoint_brier": [ + 0.0011120231356471777, + 0.0018774253549054265, + 0.003007282502949238, + 0.003418618580326438, + 0.004172062035650015, + 0.005280665587633848, + 0.006756580900400877, + 0.007105941418558359, + 0.007134366314858198, + 0.007508218288421631, + 0.008277670480310917, + 0.008658069185912609, + 0.008668520487844944 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0017017046557767633, + 0.0021691351747134434, + 0.00270556162489259, + 0.003068242917670861, + 0.003429805600387787, + 0.0037390237308007335, + 0.003876174468608512, + 0.0041170049566344015, + 0.004271503714975636, + 0.004495020693471895, + 0.004684717145216483, + 0.0047189445227907075 + ] + }, + "I24": { + "normalized_time_brier": 1.6405023303170518, + "normalized_timepoint_brier": [ + 0.35434801247902215, + 0.7111196755431592, + 1.0633993661031127, + 1.065048505552113, + 1.7699525924399495, + 2.0514715856993386, + 1.818044730314732, + 2.033248947788422, + 2.1737902982624377, + 1.9965947956156385, + 1.9104413985548965, + 2.1895072180676003, + 2.189563167701253 + ], + "raw_time_brier": 0.0020988258206321355, + "raw_timepoint_brier": [ + 0.00035434801247902215, + 0.0007111196755431592, + 0.0010633993661031127, + 0.001065048505552113, + 0.0017699525924399495, + 0.0021247786935418844, + 0.0021257020998746157, + 0.002479202812537551, + 0.00283124134875834, + 0.0028331417124718428, + 0.002837973181158304, + 0.0035443685483187437, + 0.003544459119439125 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010357339133301013, + 0.001169224312487968, + 0.0012193306752890224, + 0.0013024445600946044, + 0.0014189868263170845, + 0.0014855065344087576, + 0.0016187973801003988, + 0.0016187973801004018 + ] + }, + "I25": { + "normalized_time_brier": 2.052225462036593, + "normalized_timepoint_brier": [ + 2.925748181177632, + 2.345736666679271, + 2.269705608230456, + 2.124989651834476, + 2.016499320043875, + 1.916306984286206, + 1.9512944128715077, + 1.9710602953192482, + 1.9065187172740183, + 1.8121764063665668, + 1.8442618934881065, + 1.8024137229336963, + 1.7922191459706511 + ], + "raw_time_brier": 0.014428049899064578, + "raw_timepoint_brier": [ + 0.0057233776897192, + 0.00832319539040327, + 0.010439272969961166, + 0.01213053148239851, + 0.01291633304208517, + 0.013725953176617622, + 0.015404815785586834, + 0.016683606430888176, + 0.017102470621466637, + 0.01710021309554577, + 0.018747007474303246, + 0.019634462893009186, + 0.01963340863585472 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0019562099453875434, + 0.003548222402212758, + 0.0045993951515588835, + 0.005708513202370835, + 0.006405324769365227, + 0.00716271103177674, + 0.007894665040790663, + 0.008464280098638977, + 0.008970523324271434, + 0.009436285030237138, + 0.01016504626620381, + 0.010893427320921181, + 0.010954803535045056 + ] + }, + "I26": { + "normalized_time_brier": 2.086562038955005, + "normalized_timepoint_brier": [ + 1.0730157373473048, + 1.4958426230351232, + 2.2300061337494426, + 2.3154786744894977, + 2.1650984578942998, + 2.1874031241513454, + 2.2884854295171597, + 2.2613822415728517, + 2.138503649277451, + 2.186851979031403, + 2.319312168131277, + 2.2319515089553366, + 2.2319747792625724 + ], + "raw_time_brier": 0.005088906959057427, + "raw_timepoint_brier": [ + 0.0010730157373473048, + 0.002152051543816924, + 0.003923606593161821, + 0.004581845831125975, + 0.0045766811817884445, + 0.0049187131226062775, + 0.005648013669997454, + 0.005962367635220289, + 0.005962715949863195, + 0.006318811792880297, + 0.007013554684817791, + 0.007012169808149338, + 0.007012242916971445 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0014386884760980586, + 0.0017594600004820736, + 0.001978789907074463, + 0.002113844368186178, + 0.00224865415446209, + 0.0024680138213460726, + 0.002636603191450422, + 0.0027882655013835747, + 0.0028894556437601302, + 0.0030239804633408933, + 0.0031417213949380914, + 0.0031417213949380906 + ] + }, + "I27": { + "normalized_time_brier": 1.9977454391529599, + "normalized_timepoint_brier": [ + 1.6368820707186034, + 2.090095926529652, + 1.894740683049465, + 1.9618647466254082, + 1.9649991573953034, + 2.0604829533174494, + 2.174732443216295, + 2.069631416333812, + 1.9429400671342492, + 2.040608281500604, + 1.9933705939447854, + 2.036936928742345, + 2.1034054404805023 + ], + "raw_time_brier": 0.009588599670678377, + "raw_timepoint_brier": [ + 0.0022023855708539486, + 0.004789669066667557, + 0.0055780233815312386, + 0.0070530325174331665, + 0.008105894550681114, + 0.009522753767669201, + 0.011238559149205685, + 0.011295096948742867, + 0.011331153102219105, + 0.012388032861053944, + 0.013051899150013924, + 0.0137868020683527, + 0.014308493584394455 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0013454760182491858, + 0.0022916025077471995, + 0.0029439508168229984, + 0.003595065628028153, + 0.004125138944805376, + 0.004621612497369723, + 0.005167789345426121, + 0.00545754034249791, + 0.005831962237997416, + 0.006070754967212102, + 0.006547653100563121, + 0.006768399096610718, + 0.006802537118628837 + ] + }, + "I31": { + "normalized_time_brier": 2.1805992376715824, + "normalized_timepoint_brier": [ + 1.429833471775055, + 2.2741644233405354, + 2.34286942889011, + 2.1291604925561973, + 1.9532269952479544, + 2.056457123492476, + 2.4505135237328464, + 2.3044785769439105, + 2.3893530494641544, + 2.2747471212135824, + 2.2134594458347063, + 2.264775980576069, + 2.264750456662979 + ], + "raw_time_brier": 0.004344638651953294, + "raw_timepoint_brier": [ + 0.001429833471775055, + 0.002477941568940878, + 0.003180108033120632, + 0.0031749296467751265, + 0.0031737959943711758, + 0.0038571099285036325, + 0.005251634865999222, + 0.005246639251708984, + 0.005599070806056261, + 0.0055961934849619865, + 0.005593286361545324, + 0.0059499130584299564, + 0.005949846003204584 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0010896052824980055, + 0.0013573560668411419, + 0.0014911650192059567, + 0.001624898694362083, + 0.0018756092137496708, + 0.0021430752432655222, + 0.0022767142659520087, + 0.002343341770824504, + 0.002460138726091191, + 0.002526943230006217, + 0.002627153020634092, + 0.002627153020634092 + ] + }, + "I34": { + "normalized_time_brier": 2.920078014297208, + "normalized_timepoint_brier": [ + 1.4569860650226474, + 3.63040785305202, + 3.636745037510991, + 3.7349332444222916, + 3.3693406910567716, + 3.0689548344373323, + 2.8765414799695295, + 2.8669093839152717, + 2.6710473366752, + 2.824330550660828, + 2.6168369772155775, + 2.611981827960523, + 2.595998903964718 + ], + "raw_time_brier": 0.0052182407816872, + "raw_timepoint_brier": [ + 0.0014569860650226474, + 0.00363040785305202, + 0.003636745037510991, + 0.004731129389256239, + 0.0050751520320773125, + 0.00540926493704319, + 0.005413917358964682, + 0.005787315778434277, + 0.005801965482532978, + 0.00652060704305768, + 0.006531875114887953, + 0.006920031271874905, + 0.006921732798218727 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001266723949168745, + 0.0015062745199819862, + 0.0017625756092415528, + 0.001882092574247193, + 0.0020186601679508523, + 0.0021721687230579017, + 0.0023087265906364994, + 0.0024960955427334786, + 0.002649341277109181, + 0.0026663080587775163 + ] + }, + "I35": { + "normalized_time_brier": 1.609551744149349, + "normalized_timepoint_brier": [ + 0.7396775763481855, + 1.4765715459361672, + 1.8469736678525805, + 1.8554386915639043, + 1.810456638025074, + 1.6134301661209214, + 1.759476709461098, + 1.6574220383128093, + 1.5710259877325787, + 1.7589753645769732, + 1.6726967137651123, + 1.5808590998066165, + 1.5811684744395167 + ], + "raw_time_brier": 0.002091217660703338, + "raw_timepoint_brier": [ + 0.0007396775763481855, + 0.0014765715459361672, + 0.0018469736678525805, + 0.0018554386915639043, + 0.0018654443556442857, + 0.0018833873327821493, + 0.002265018643811345, + 0.0022747996263206005, + 0.002290356671437621, + 0.00265460554510355, + 0.0026673462707549334, + 0.0026828423142433167, + 0.002683367347344756 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001030372291975573, + 0.0011673187797834911, + 0.0012873251641421768, + 0.0013724926866763864, + 0.0014578731919917085, + 0.001509177216783802, + 0.001594638315962815, + 0.0016970787052252182, + 0.0016970787052252231 + ] + }, + "I42": { + "normalized_time_brier": 1.8685780031443053, + "normalized_timepoint_brier": [ + 0.36744182580150664, + 1.4497431693598628, + 1.3727667933835923, + 2.1906893162808667, + 2.408931410244597, + 2.3956037976671136, + 2.2519619764461978, + 2.218551497886329, + 2.0715314457299496, + 2.0587358371173567, + 1.8360354308600024, + 1.8405333689523233, + 1.8289881711462739 + ], + "raw_time_brier": 0.0034646724391048057, + "raw_timepoint_brier": [ + 0.00036744182580150664, + 0.0014497431693598628, + 0.0014545960584655404, + 0.002844586269930005, + 0.0035390742123126984, + 0.0038868943229317665, + 0.0038840642664581537, + 0.004242445807904005, + 0.004243111703544855, + 0.004602645058184862, + 0.00460475729778409, + 0.004960648249834776, + 0.004960733465850353 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010596090067711032, + 0.001298489132525309, + 0.0014691469409472931, + 0.001622511337941984, + 0.0017247468239173216, + 0.0019122593331486297, + 0.002048297027926458, + 0.0022356656814355984, + 0.002507989345078822, + 0.002695223207313268, + 0.0027122829683153904 + ] + }, + "I44": { + "normalized_time_brier": 1.6364786707950427, + "normalized_timepoint_brier": [ + 1.266450838788893, + 1.6286022308915225, + 1.5977335760515812, + 1.7900730986211708, + 1.6559101275263766, + 1.4806154387888657, + 1.6396332854061544, + 1.6228584558632089, + 1.7536232107652594, + 1.7873901302144373, + 1.6846922260363784, + 1.6964360004183254, + 1.6702041009633792 + ], + "raw_time_brier": 0.005954398182578958, + "raw_timepoint_brier": [ + 0.0014682679902762175, + 0.0029388463590294123, + 0.0036417816299945116, + 0.004717414267361164, + 0.005091173108667135, + 0.005102267023175955, + 0.006174413487315178, + 0.006547726225107908, + 0.0075789084658026695, + 0.008326585404574871, + 0.008356761187314987, + 0.008728832006454468, + 0.008734199218451977 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0011593564829411951, + 0.001804520651688314, + 0.002279342241147807, + 0.0026353193458942092, + 0.0030745467547036542, + 0.0034460447253944464, + 0.003765728313929484, + 0.0040346871912653225, + 0.0043218568386166195, + 0.004658515935508669, + 0.004960408232532875, + 0.005145394229020145, + 0.0052294202926540904 + ] + }, + "I45": { + "normalized_time_brier": 1.5493966664722356, + "normalized_timepoint_brier": [ + 0.7211996125988662, + 1.336654655055205, + 1.386660624428311, + 1.2293150702597402, + 1.2516685978966056, + 1.3993107767161834, + 1.5406852687461317, + 1.6357825761831193, + 1.7661166037186653, + 1.8604929853455954, + 2.091417821627734, + 1.969553459960051, + 1.953298611602855 + ], + "raw_time_brier": 0.004555262620739926, + "raw_timepoint_brier": [ + 0.0007211996125988662, + 0.0018000209238380194, + 0.0025195882190018892, + 0.002522617345675826, + 0.0028836503624916077, + 0.0035991044715046883, + 0.004323786124587059, + 0.005028472747653723, + 0.005754342768341303, + 0.006466413848102093, + 0.007864470593631268, + 0.007867376320064068, + 0.00786737073212862 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001346661171627519, + 0.0018170186523040984, + 0.00205205110284935, + 0.002303844937340045, + 0.0025720551369945465, + 0.0028064045345912348, + 0.0030740471385793788, + 0.003258189610032082, + 0.003475645379496513, + 0.0037603536281958293, + 0.003994497473667784, + 0.004027735792876412 + ] + }, + "I46": { + "normalized_time_brier": 0.6585832402466761, + "normalized_timepoint_brier": [ + 0.0005001946874472196, + 0.0033493622595415218, + 0.3578071773517877, + 0.35894292523153126, + 0.36020579864270985, + 0.3612286236602813, + 0.3622467629611492, + 0.364017381798476, + 0.7177941151894629, + 1.0704533196985722, + 1.071600359864533, + 1.7666812054812908, + 1.7667548963800073 + ], + "raw_time_brier": 0.0006585832402466762, + "raw_timepoint_brier": [ + 5.001946874472196e-07, + 3.3493622595415218e-06, + 0.0003578071773517877, + 0.00035894292523153126, + 0.00036020579864270985, + 0.0003612286236602813, + 0.0003622467629611492, + 0.000364017381798476, + 0.0007177941151894629, + 0.0010704533196985722, + 0.001071600359864533, + 0.0017666812054812908, + 0.0017667548963800073 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "I47": { + "normalized_time_brier": 1.415277356816654, + "normalized_timepoint_brier": [ + 1.1038645170629025, + 1.176813444655764, + 1.3184230720255008, + 1.2392699571102535, + 1.2384957880318657, + 1.3173471991091623, + 1.3624349094919936, + 1.4101651956048034, + 1.628908103365985, + 1.720825430686037, + 1.6169053547703056, + 1.6353644304043338, + 1.6297882362975948 + ], + "raw_time_brier": 0.00448796445897852, + "raw_timepoint_brier": [ + 0.0011038645170629025, + 0.0018455194076523185, + 0.0025830187369138002, + 0.0029543449636548758, + 0.0033309743739664555, + 0.004056184086948633, + 0.004426129162311554, + 0.004796001594513655, + 0.005898851435631514, + 0.006639768369495869, + 0.006648698356002569, + 0.007028331980109215, + 0.007031850982457399 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0015682344691364068, + 0.001959172887459785, + 0.0023839397918947844, + 0.002689532258530985, + 0.0030790547015179985, + 0.003248690364196488, + 0.0034010211069325858, + 0.0036213531158953006, + 0.0038584787574000514, + 0.004111989818319991, + 0.0042977160622060875, + 0.004314579542205876 + ] + }, + "I48": { + "normalized_time_brier": 1.943920636348152, + "normalized_timepoint_brier": [ + 2.159805440652457, + 2.0753256922869268, + 1.9771515231232637, + 1.8625331292702987, + 1.9154621730055765, + 1.8943715849136769, + 1.817820186653353, + 1.824274033568446, + 1.8378360052174123, + 2.0660306114432596, + 2.0124901827103665, + 1.9189455350566633, + 1.908922174624277 + ], + "raw_time_brier": 0.009128659999427887, + "raw_timepoint_brier": [ + 0.0029212692752480507, + 0.004991776309907436, + 0.006216452922672033, + 0.007050585933029652, + 0.007847304455935955, + 0.008676095865666866, + 0.00909903459250927, + 0.009518296457827091, + 0.010369470342993736, + 0.012414643540978432, + 0.013178099878132343, + 0.013192380778491497, + 0.01319716963917017 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0013525613095805343, + 0.0024052977942014956, + 0.003144145934173035, + 0.003785482159875418, + 0.004096820373968883, + 0.0045799334907476565, + 0.005005464599477681, + 0.0052175804087988015, + 0.005642217430475821, + 0.006008934946179708, + 0.006548156105976348, + 0.0068748073030128745, + 0.006913414184508438 + ] + }, + "I49": { + "normalized_time_brier": 1.96345091112421, + "normalized_timepoint_brier": [ + 1.4614318497478962, + 1.783638489305554, + 1.5151927467871718, + 1.9872616588104868, + 2.10256621902299, + 2.15945514512496, + 2.108669140593619, + 2.0004475989390618, + 2.1578330443006517, + 2.0340698503105252, + 2.1337242660253017, + 2.045541547915007, + 2.0350302877315047 + ], + "raw_time_brier": 0.004805694844645376, + "raw_timepoint_brier": [ + 0.0014614318497478962, + 0.0018211827846243978, + 0.00218611559830606, + 0.003634411608800292, + 0.0043616886250674725, + 0.005085359793156385, + 0.0054458011873066425, + 0.0054468074813485146, + 0.006177028641104698, + 0.006178304087370634, + 0.006891163997352123, + 0.006892302073538303, + 0.006892435252666473 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0010210492740227093, + 0.0014427970322201705, + 0.0018288540880800458, + 0.0020744595749732156, + 0.00235492726238688, + 0.002582577362408583, + 0.002722794380736207, + 0.002862607307557781, + 0.003037409991809004, + 0.003229641292962831, + 0.00336942658562156, + 0.0033868956615626736 + ] + }, + "I50": { + "normalized_time_brier": 2.2816384864925174, + "normalized_timepoint_brier": [ + 1.8020044042971708, + 2.2167526209435717, + 2.4268078210734756, + 2.4786145730613867, + 2.3613240548511447, + 2.255321779654008, + 2.25450054312238, + 2.368975880784125, + 2.3037036904681263, + 2.3210220801628028, + 2.3126577511282904, + 2.2880448838782996, + 2.2715702409779426 + ], + "raw_time_brier": 0.014673534082248807, + "raw_timepoint_brier": [ + 0.0028495353180915117, + 0.0069909850135445595, + 0.01019972749054432, + 0.012642823159694672, + 0.01330098882317543, + 0.014071875251829624, + 0.015388689003884792, + 0.016975177451968193, + 0.01789928786456585, + 0.018732132390141487, + 0.019928637892007828, + 0.020878979936242104, + 0.02089710347354412 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0015813142916278862, + 0.0031537055364205735, + 0.004202939928730148, + 0.0051007620535690095, + 0.005632851956871252, + 0.0062394091072841985, + 0.0068257641590860575, + 0.007165618523034287, + 0.007769787381348774, + 0.008070639461054832, + 0.008617201521619497, + 0.009125249283069856, + 0.009199408891951158 + ] + }, + "I51": { + "normalized_time_brier": 1.442222377363309, + "normalized_timepoint_brier": [ + 0.712311826646328, + 1.0662466520443559, + 1.6568809038546253, + 1.4743327234614008, + 1.3971044758042461, + 1.51655549787208, + 1.4005203617849447, + 1.4846366645438018, + 1.456213512728363, + 1.5847739631705084, + 1.6226380889156045, + 1.6883380618164976, + 1.6883381730802618 + ], + "raw_time_brier": 0.0022645898055858337, + "raw_timepoint_brier": [ + 0.000712311826646328, + 0.0010662466520443559, + 0.0017769619589671493, + 0.0017783810617402196, + 0.0017788655823096633, + 0.002133875386789441, + 0.0021347287110984325, + 0.0024864140432327986, + 0.002487578196451068, + 0.0028395657427608967, + 0.003178702900186181, + 0.0035330175887793303, + 0.003533017821609974 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001072474162043369, + 0.0012062277621872097, + 0.0012732516523402129, + 0.0014070539388657648, + 0.0015242396821548165, + 0.0016747626558157394, + 0.0017082510048889322, + 0.0017917796535980716, + 0.001958972195895193, + 0.0020926008058943634, + 0.002092600805894364 + ] + }, + "I61": { + "normalized_time_brier": 2.2125815068228314, + "normalized_timepoint_brier": [ + 0.7131966995075345, + 0.7120852242223918, + 1.424680813215673, + 1.7806777032092214, + 1.7802516231313348, + 2.135855844244361, + 2.4890569038689137, + 2.8395771514624357, + 2.8386276680976152, + 2.8360262513160706, + 2.8349573258310556, + 3.1893278937786818, + 3.1892384868115187 + ], + "raw_time_brier": 0.0022125815068228315, + "raw_timepoint_brier": [ + 0.0007131966995075345, + 0.0007120852242223918, + 0.001424680813215673, + 0.0017806777032092214, + 0.0017802516231313348, + 0.002135855844244361, + 0.0024890569038689137, + 0.0028395771514624357, + 0.0028386276680976152, + 0.0028360262513160706, + 0.0028349573258310556, + 0.0031893278937786818, + 0.0031892384868115187 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "I63": { + "normalized_time_brier": 2.401138596044255, + "normalized_timepoint_brier": [ + 1.4581265859305859, + 2.1910725627094507, + 2.802938395499596, + 2.6370601144136847, + 2.5775926732155994, + 2.5046803853453374, + 2.3096523114288448, + 2.380585355518826, + 2.499843516133501, + 2.421331358828575, + 2.4188960159474875, + 2.5244559000632623, + 2.4885665735405627 + ], + "raw_time_brier": 0.004093050885085876, + "raw_timepoint_brier": [ + 0.0014581265859305859, + 0.0021910725627094507, + 0.002911321585997939, + 0.003276536474004388, + 0.0036405001301318407, + 0.004005442373454571, + 0.0040075513534247875, + 0.004372549708932638, + 0.005100626032799482, + 0.005104545503854752, + 0.005468627903610468, + 0.0058356462977826595, + 0.005837114993482828 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010386677033902578, + 0.0012424959355668242, + 0.0014123644003031103, + 0.0015991830322503655, + 0.0017351318783326109, + 0.0018367540146359016, + 0.002040378127623205, + 0.0021081565252284587, + 0.002260794952555409, + 0.002311645173772463, + 0.0023455731727434477 + ] + }, + "I65": { + "normalized_time_brier": 1.30668833204053, + "normalized_timepoint_brier": [ + 0.0007520101803493162, + 0.7220254628919065, + 0.7236191304400563, + 1.0775246191769838, + 1.078702276572585, + 1.7987905303016305, + 1.8000381533056498, + 1.6114590830507136, + 1.824112850496347, + 1.7039705237394907, + 1.5983984737185686, + 1.5237480386993167, + 1.523807163953293 + ], + "raw_time_brier": 0.0015249543735386885, + "raw_timepoint_brier": [ + 7.520101803493162e-07, + 0.0007220254628919065, + 0.0007236191304400563, + 0.0010775246191769838, + 0.001078702276572585, + 0.0017987905303016305, + 0.0018000381533056498, + 0.0018009516643360257, + 0.0021617854945361614, + 0.002163345692679286, + 0.0021644982043653727, + 0.002166144782677293, + 0.002166228834539652 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011175906873952869, + 0.0011851160929807235, + 0.0012695910302084699, + 0.0013541668363395082, + 0.0014215898742198421, + 0.0014215898742198393 + ] + }, + "I67": { + "normalized_time_brier": 0.6064067559688986, + "normalized_timepoint_brier": [ + 0.7209458854049444, + 0.7229202310554683, + 0.7004267097808481, + 0.5452010408462413, + 0.46209101120629253, + 0.6475538757872937, + 0.5857405936690917, + 0.5398343436995529, + 0.5075407126635642, + 0.48665946590898373, + 0.58809037092708, + 0.6902709673039347, + 0.686012619342386 + ], + "raw_time_brier": 0.0010987160046799825, + "raw_timepoint_brier": [ + 0.0007209458854049444, + 0.0007229202310554683, + 0.0007256373064592481, + 0.0007310259388759732, + 0.0007370098610408604, + 0.0010986702982336283, + 0.0011027082800865173, + 0.001107473741285503, + 0.001109910779632628, + 0.001113613718189299, + 0.0014647567877545953, + 0.0018241630168631673, + 0.0018244722159579396 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010359931971844535, + 0.0013408373867762637, + 0.0015949452449137453, + 0.0016966469344313147, + 0.0018825881149522672, + 0.0020515066412704415, + 0.002186840881804017, + 0.002288281223728565, + 0.0024907001715493435, + 0.0026426767215605145, + 0.002659531566207754 + ] + }, + "I69": { + "normalized_time_brier": 2.6216922017299567, + "normalized_timepoint_brier": [ + 1.4428673312067986, + 2.935469188640019, + 3.080189539270635, + 3.028548745256427, + 2.7579155822438426, + 2.5402977274094645, + 2.6432737461004274, + 2.549394639657376, + 2.533915825232155, + 2.59872558308839, + 2.6968113550889328, + 2.637178823614108, + 2.6374105356808664 + ], + "raw_time_brier": 0.005250790048963749, + "raw_timepoint_brier": [ + 0.0014428673312067986, + 0.0032548741437494755, + 0.0043592751026153564, + 0.005110219586640596, + 0.005122161936014891, + 0.005149479489773512, + 0.005537893157452345, + 0.0055574276484549046, + 0.005825014319270849, + 0.006193999666720629, + 0.006884522270411253, + 0.006910964380949736, + 0.006911571603268385 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0011088088256369791, + 0.0014152619658748659, + 0.0016873492938308029, + 0.0018572584197256302, + 0.0020271165203241074, + 0.002095088776038538, + 0.002179900891766914, + 0.0022988191877830696, + 0.002383475849481393, + 0.0025528379126037244, + 0.0026205899725368796, + 0.0026205899725368744 + ] + }, + "I70": { + "normalized_time_brier": 1.1344251036277329, + "normalized_timepoint_brier": [ + 0.7204660796560347, + 0.6933138781532168, + 1.2792895886957163, + 1.0932776612811124, + 0.9216702351411755, + 1.1856148273846892, + 1.0514103880367416, + 1.32266789961754, + 1.4510501736353953, + 1.3434732253743915, + 1.2628696911306525, + 1.2141708745274586, + 1.208251824526404 + ], + "raw_time_brier": 0.002840573483039267, + "raw_timepoint_brier": [ + 0.0007204660796560347, + 0.0007248666370287538, + 0.0017969664186239243, + 0.0017972389468923211, + 0.0017983551369979978, + 0.0025157337076961994, + 0.002517789602279663, + 0.0035961202811449766, + 0.004290442913770676, + 0.004292147699743509, + 0.00429279962554574, + 0.004292394034564495, + 0.004292134195566177 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0010455100638683077, + 0.0014046596130403897, + 0.0016438998166177663, + 0.0019511915091003642, + 0.00212188111146145, + 0.002394678263528512, + 0.002718838403944651, + 0.002956784673421453, + 0.003194814469449064, + 0.0033992419453050446, + 0.0035352470765163476, + 0.003552350684219787 + ] + }, + "I71": { + "normalized_time_brier": 0.8493733755763746, + "normalized_timepoint_brier": [ + 0.3596613241825253, + 1.0816624853760004, + 1.0324347990986245, + 0.8904630853785036, + 0.80253605999294, + 0.9402783019274075, + 0.8578920360392023, + 0.8255751822045855, + 0.9409635462592092, + 0.8874514198778927, + 0.8401352883082496, + 0.7913109574623753, + 0.791489396385354 + ], + "raw_time_brier": 0.0013935348990624053, + "raw_timepoint_brier": [ + 0.0003596613241825253, + 0.0010816624853760004, + 0.0010830458486452699, + 0.0010845055803656578, + 0.0010857752058655024, + 0.0014464559499174356, + 0.0014494454953819513, + 0.0014505275757983327, + 0.0018118468578904867, + 0.001813584822230041, + 0.0018156012520194054, + 0.0018167158123105764, + 0.0018171254778280854 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010490210612726651, + 0.0012179118912095876, + 0.0013529301174018949, + 0.0015383274791648939, + 0.0016895430129808518, + 0.001756990286366043, + 0.0019255229015974797, + 0.0020435877182771066, + 0.0021610820034418704, + 0.002295830476222056, + 0.002295830476222044 + ] + }, + "I72": { + "normalized_time_brier": 1.2936310629218173, + "normalized_timepoint_brier": [ + 0.7092541200108826, + 0.7101539522409439, + 1.0652447817847133, + 1.768276677466929, + 1.5812827534826566, + 1.4321807233121386, + 1.376881092541644, + 1.5349339706930982, + 1.4493695087994203, + 1.3575679717065867, + 1.3025036738594904, + 1.264746821031482, + 1.2648077710536374 + ], + "raw_time_brier": 0.0017179797645300054, + "raw_timepoint_brier": [ + 0.0007092541200108826, + 0.0007101539522409439, + 0.0010652447817847133, + 0.001768276677466929, + 0.00176865397952497, + 0.0017690821550786495, + 0.0017697125440463424, + 0.0021261037327349186, + 0.002127948682755232, + 0.002128736814484, + 0.0021292027086019516, + 0.0021306320559233427, + 0.002130734734237194 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011184931825947272, + 0.001235236675290095, + 0.001285305284263548, + 0.0013851434480760616, + 0.0014681892159563298, + 0.0015680517357874787, + 0.0016346999638725337, + 0.0016846312799471406, + 0.0016846312799471523 + ] + }, + "I73": { + "normalized_time_brier": 0.3640966654768913, + "normalized_timepoint_brier": [ + 0.21294671025212636, + 0.12640773488976592, + 0.28227296077919506, + 0.4623036643271724, + 0.3953874625924713, + 0.35443507001530833, + 0.38447162898729276, + 0.41485596282114917, + 0.38927289404510107, + 0.4545197152624971, + 0.4352618630801607, + 0.41096036408698033, + 0.4101606200603658 + ], + "raw_time_brier": 0.002354338145008884, + "raw_timepoint_brier": [ + 0.00036875955993309617, + 0.00037417132989503443, + 0.0011091971537098289, + 0.0021535176783800125, + 0.002149730222299695, + 0.0021484068129211664, + 0.002512070583179593, + 0.002864267909899354, + 0.0028644700068980455, + 0.0035198968835175037, + 0.00351690873503685, + 0.0035125191789120436, + 0.003512479830533266 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0017316987874407136, + 0.002960035081882696, + 0.003929519677152096, + 0.0046582319037297695, + 0.005437021720932606, + 0.006061496151688305, + 0.006533825629205582, + 0.006904246694253697, + 0.007358513913291298, + 0.007744211670740554, + 0.008079983645130778, + 0.008547099637493541, + 0.00856366910605975 + ] + }, + "I74": { + "normalized_time_brier": 1.2155620049462892, + "normalized_timepoint_brier": [ + 0.7075718021951616, + 1.0610927129164338, + 1.4149094931781292, + 1.4147768961265683, + 1.4119363759052954, + 1.3446016464877788, + 1.4707828491603454, + 1.412021560073625, + 1.2605113997347825, + 1.1764066904373611, + 1.091462649356646, + 1.0181092850759903, + 1.0181227036536402 + ], + "raw_time_brier": 0.0015228170892581916, + "raw_timepoint_brier": [ + 0.0007075718021951616, + 0.0010610927129164338, + 0.0014149094931781292, + 0.0014147768961265683, + 0.0014145496534183621, + 0.0014144392916932702, + 0.00176792882848531, + 0.0017677475698292255, + 0.0017671356908977032, + 0.0017669015796855092, + 0.001766428118571639, + 0.001766558620147407, + 0.0017665819032117724 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001001850846509561, + 0.0010519392828261915, + 0.0012020325294754438, + 0.0012519267550964678, + 0.001401919642511378, + 0.0015019479182225796, + 0.0016184045506393151, + 0.0017351365379361544, + 0.0017351365379361524 + ] + }, + "I77": { + "normalized_time_brier": 0.7711626687935844, + "normalized_timepoint_brier": [ + 0.718284398317337, + 1.0370124076018175, + 0.766760760824004, + 0.6454349739036447, + 0.7673788367243926, + 0.6724834346555296, + 0.633633669663104, + 0.9072636334029772, + 0.859718193828407, + 0.796866700910531, + 0.7511355508109558, + 0.734554739269186, + 0.7345873944047102 + ], + "raw_time_brier": 0.0016341674893807906, + "raw_timepoint_brier": [ + 0.000718284398317337, + 0.0010780555894598365, + 0.0010794374393299222, + 0.001081287395209074, + 0.0014394968748092651, + 0.0014413469471037388, + 0.0014427951537072659, + 0.0021568546071648598, + 0.002158575691282749, + 0.0021602578926831484, + 0.0021616260055452585, + 0.002163031604140997, + 0.002163127763196826 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001039578293911579, + 0.0014077890973057858, + 0.0016752847907657645, + 0.0018758620982484387, + 0.0021433196311252617, + 0.002277017814527413, + 0.002377318485780036, + 0.0025107944751877427, + 0.002710940098531854, + 0.0028778108068663252, + 0.0029446840221778615, + 0.0029446840221778736 + ] + }, + "I80": { + "normalized_time_brier": 1.3459159123997848, + "normalized_timepoint_brier": [ + 0.7094211177900434, + 0.7119641522876918, + 0.7192164193838835, + 1.3645215658470988, + 1.360833179205656, + 1.3600891688838601, + 1.3602676335722208, + 1.3581890380010009, + 1.7081049736589193, + 1.7087988089770079, + 1.7106053419411182, + 1.712333527393639, + 1.7125619342550635 + ], + "raw_time_brier": 0.001345915912399785, + "raw_timepoint_brier": [ + 0.0007094211177900434, + 0.0007119641522876918, + 0.0007192164193838835, + 0.0013645215658470988, + 0.001360833179205656, + 0.0013600891688838601, + 0.0013602676335722208, + 0.0013581890380010009, + 0.0017081049736589193, + 0.0017087988089770079, + 0.0017106053419411182, + 0.001712333527393639, + 0.0017125619342550635 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "I81": { + "normalized_time_brier": 1.2235557782272612, + "normalized_timepoint_brier": [ + 1.41526001971215, + 1.7529325917011767, + 1.3701212396155642, + 1.2079279329379424, + 1.2359859167006824, + 1.0973825666941124, + 1.1605528552310305, + 1.2291225316035033, + 1.12881589702926, + 1.0801196949111913, + 1.0250006720541152, + 1.1042448529814402, + 1.098758345782226 + ], + "raw_time_brier": 0.002488087038867749, + "raw_timepoint_brier": [ + 0.00141526001971215, + 0.0017821481451392174, + 0.0018031334038823843, + 0.001810654648579657, + 0.0021814254578202963, + 0.0022100487258285284, + 0.002568247728049755, + 0.002944170031696558, + 0.0029659781139343977, + 0.0029813467990607023, + 0.002999455900862813, + 0.003340828698128462, + 0.0033424338325858116 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0010166666725100295, + 0.0013160393049510837, + 0.0014989757246326382, + 0.001764927438367059, + 0.002013927314779882, + 0.002212951970669613, + 0.0023953429833033957, + 0.0026275127075549294, + 0.0027602003862227807, + 0.002926296521203116, + 0.003025441947144501, + 0.0030420099609857996 + ] + }, + "I82": { + "normalized_time_brier": 2.3163402932422343, + "normalized_timepoint_brier": [ + 2.18189531005919, + 2.2906439687952798, + 2.3626865543144233, + 2.2694815617908723, + 2.2075194740578334, + 2.198526720641009, + 2.353692573157865, + 2.3182071580607255, + 2.4466241151384622, + 2.3701480348062645, + 2.436246381670736, + 2.348707921853122, + 2.3280440378032647 + ], + "raw_time_brier": 0.009002768631594686, + "raw_timepoint_brier": [ + 0.00218189531005919, + 0.004719659686088562, + 0.006472138222306967, + 0.0072173308581113815, + 0.007954210974276066, + 0.0083315409719944, + 0.009437338449060917, + 0.010039188899099827, + 0.01150469295680523, + 0.01154540479183197, + 0.012525017373263836, + 0.012549977749586105, + 0.01255759596824646 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0020604073572248667, + 0.0027393130969863145, + 0.0031801672151132647, + 0.003603234792603999, + 0.0037896018700947294, + 0.004009588404486988, + 0.0043305831682005575, + 0.004702272361994659, + 0.004871174552088975, + 0.005141112765727083, + 0.005343353949129707, + 0.00539405430667702 + ] + }, + "I85": { + "normalized_time_brier": 0.8196621463332137, + "normalized_timepoint_brier": [ + 0.40709724999032915, + 0.5557197437783135, + 0.9041530059705117, + 0.7540249759301889, + 0.6882449790394986, + 0.980822280062962, + 1.010440000435379, + 1.0387057070862398, + 0.9490884497405582, + 0.9139893819165538, + 0.8690776036721517, + 0.7921460553110303, + 0.7920984693980615 + ], + "raw_time_brier": 0.002030905736878944, + "raw_timepoint_brier": [ + 0.00040709724999032915, + 0.0007469635456800461, + 0.0013670269399881363, + 0.0013801517197862267, + 0.0013978165807202458, + 0.0022216883953660727, + 0.002491385443136096, + 0.002769649028778076, + 0.0027523927856236696, + 0.002742374548688531, + 0.0027379582170397043, + 0.0026937159709632397, + 0.0026935541536659002 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001344137137546121, + 0.0015119420396338546, + 0.0018303793161275968, + 0.0020309869643669784, + 0.0022651283933144907, + 0.002465644117476155, + 0.002666442486917156, + 0.00290003822760256, + 0.003000444647330604, + 0.0031504185650060358, + 0.003400529426237655, + 0.0034005294262376366 + ] + }, + "I87": { + "normalized_time_brier": 1.8417433329455533, + "normalized_timepoint_brier": [ + 1.4346539974212646, + 2.513604238629341, + 2.869507443175727, + 2.487353607606609, + 2.130347374684935, + 1.9401866838099706, + 1.8196509953002378, + 1.6272854519684605, + 1.49835091491929, + 1.5152189356712276, + 1.4251690591478645, + 1.3086964739307543, + 1.3726381520265059 + ], + "raw_time_brier": 0.003963459139833083, + "raw_timepoint_brier": [ + 0.0014346539974212646, + 0.002513604238629341, + 0.003590012900531292, + 0.00395086407661438, + 0.003958468791097403, + 0.003965092357248068, + 0.0043321819975972176, + 0.00434016203507781, + 0.004349452443420887, + 0.004678767174482346, + 0.004688214510679245, + 0.004700824618339539, + 0.005022669676691294 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001251090290450047, + 0.0015883805440980285, + 0.0018581330153646118, + 0.0020436653804167767, + 0.0023807763185282782, + 0.0026671178248583827, + 0.002902826300643447, + 0.003087848933467622, + 0.0032895848254539126, + 0.003591989977798525, + 0.003659135999736007 + ] + }, + "I89": { + "normalized_time_brier": 1.2377492337091087, + "normalized_timepoint_brier": [ + 0.3533621784299612, + 1.0595202911645174, + 1.4127144822850823, + 1.4123559230938554, + 1.7060716329855141, + 1.4890176964861805, + 1.4091965267174789, + 1.3549722775639983, + 1.2733018944968206, + 1.258015850109175, + 1.1612077602059543, + 1.1005036574005058, + 1.1004998672793709 + ], + "raw_time_brier": 0.0015436933250524676, + "raw_timepoint_brier": [ + 0.0003533621784299612, + 0.0010595202911645174, + 0.0014127144822850823, + 0.0014123559230938554, + 0.001760920975357294, + 0.0017598430858924985, + 0.0017592329531908035, + 0.0017590721836313605, + 0.0017587485490366817, + 0.001758540514856577, + 0.0017582504078745842, + 0.0017577288672327995, + 0.0017577228136360645 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010321494955494905, + 0.0011818819145302424, + 0.0012483943295607492, + 0.0012982348146589853, + 0.0013812502413119382, + 0.001397868329484056, + 0.001514156611873432, + 0.0015972040214611571, + 0.0015972040214611422 + ] + }, + "I95": { + "normalized_time_brier": 1.1905443483132063, + "normalized_timepoint_brier": [ + 1.1164246790174228, + 1.1122413468280907, + 1.0621347637016938, + 1.1360928669573322, + 1.1368109656928653, + 1.1614631887376896, + 1.2422855434312425, + 1.237830939516421, + 1.2362215807284045, + 1.2591101441810553, + 1.2494708181590088, + 1.2619299231792356, + 1.2650597679412183 + ], + "raw_time_brier": 0.026697754716643922, + "raw_timepoint_brier": [ + 0.007534350268542767, + 0.012984995730221272, + 0.016126267611980438, + 0.02025914564728737, + 0.022525101900100708, + 0.025468669831752777, + 0.029330147430300713, + 0.031072743237018585, + 0.032874155789613724, + 0.034997884184122086, + 0.03646886348724365, + 0.03854762017726898, + 0.03888086602091789 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.006748641811800352, + 0.011674620591342076, + 0.015182882778243745, + 0.017832297197275013, + 0.01981428978068669, + 0.021928090428275072, + 0.023609827535535564, + 0.02510257438641634, + 0.02659244612947435, + 0.027795728869204887, + 0.029187447163413933, + 0.03054656163486025, + 0.030734410346629975 + ] + }, + "I96": { + "normalized_time_brier": 1.4423361320565766, + "normalized_timepoint_brier": [ + 0.0006458149073296227, + 0.34904215135611594, + 1.0452538263052702, + 1.3970572035759687, + 1.3927952386438847, + 1.3922392390668392, + 1.742909080348909, + 1.7420019721612334, + 1.7417629715055227, + 1.7412370070815086, + 2.0894750487059355, + 2.057981734716708, + 2.0579684283602693 + ], + "raw_time_brier": 0.0014470430839467624, + "raw_timepoint_brier": [ + 6.458149073296227e-07, + 0.00034904215135611594, + 0.0010452538263052702, + 0.0013970572035759687, + 0.0013927952386438847, + 0.0013922392390668392, + 0.001742909080348909, + 0.0017420019721612334, + 0.0017417629715055227, + 0.0017412370070815086, + 0.0020894750487059355, + 0.0020885770209133625, + 0.0020885635167360306 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010148666461322437, + 0.0010148666461322435 + ] + }, + "I97": { + "normalized_time_brier": 1.7031926175482641, + "normalized_timepoint_brier": [ + 1.4494237257167697, + 1.4479527017101645, + 2.0499286617400045, + 1.842368661268905, + 1.5996843410297148, + 1.4563118773775896, + 1.719613267898778, + 1.7784322051479307, + 1.7063732312693103, + 1.775769085974361, + 1.7494535583411959, + 1.7239004627006773, + 1.8422922479520354 + ], + "raw_time_brier": 0.0030665574237131155, + "raw_timepoint_brier": [ + 0.0014494237257167697, + 0.0014479527017101645, + 0.0025373417884111404, + 0.002536386949941516, + 0.0025364335160702467, + 0.0025371923111379147, + 0.0032657079864293337, + 0.003624658565968275, + 0.0036260848864912987, + 0.003989590797573328, + 0.003990990109741688, + 0.003992574755102396, + 0.004330908413976431 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0012377707750363437, + 0.0013766989220249848, + 0.001585583762379988, + 0.001742203954077947, + 0.001899094434424638, + 0.0020381201799406093, + 0.00212502447884393, + 0.0022466833267255847, + 0.0022812781115069333, + 0.0023160123461232755, + 0.002350825944575753 + ] + }, + "J02": { + "normalized_time_brier": 0.6691046869688168, + "normalized_timepoint_brier": [ + 0.00041690671537253365, + 0.35518142976798117, + 0.35614578519016504, + 0.7113273022696376, + 0.7153003243729472, + 0.7194629870355129, + 0.7215784280560911, + 0.724343815818429, + 0.7267786422744393, + 0.7336383569054306, + 0.7380861788988113, + 1.0978513164445758, + 1.098249456845224 + ], + "raw_time_brier": 0.0006691046869688167, + "raw_timepoint_brier": [ + 4.1690671537253365e-07, + 0.00035518142976798117, + 0.00035614578519016504, + 0.0007113273022696376, + 0.0007153003243729472, + 0.0007194629870355129, + 0.0007215784280560911, + 0.000724343815818429, + 0.0007267786422744393, + 0.0007336383569054306, + 0.0007380861788988113, + 0.0010978513164445758, + 0.001098249456845224 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "J06": { + "normalized_time_brier": 1.8090095788834235, + "normalized_timepoint_brier": [ + 0.3608868573792279, + 0.7320872973650694, + 1.103015267290175, + 2.1543719340115786, + 1.9613296854342313, + 2.1166430761679695, + 2.1465577892759042, + 2.030605430998691, + 1.925980401170937, + 2.031417479375117, + 2.1248783809170817, + 2.4136134618466287, + 2.4157374642518885 + ], + "raw_time_brier": 0.0026006408062620233, + "raw_timepoint_brier": [ + 0.0003608868573792279, + 0.0007320872973650694, + 0.001103015267290175, + 0.0021543719340115786, + 0.0021663345396518707, + 0.0025502126663923264, + 0.002909253351390362, + 0.0029214376118034124, + 0.0029316151048988104, + 0.00336355809122324, + 0.0037313723005354404, + 0.004440139047801495, + 0.004444046411663294 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011045234035563236, + 0.0012048383098246793, + 0.0013553109848357433, + 0.0014387027470750893, + 0.0015221417118868284, + 0.0016557690013861166, + 0.0017560404087338909, + 0.0018396230871219924, + 0.0018396230871219846 + ] + }, + "J12": { + "normalized_time_brier": 0.17082692848389044, + "normalized_timepoint_brier": [ + 0.0022858494048705325, + 0.006329360530799022, + 0.017234940969501622, + 0.02646764914970845, + 0.036987883504480124, + 0.05189487637835555, + 0.06425789615605026, + 0.09581456106388941, + 0.11772488505812362, + 0.46806855990524027, + 0.44881085881238597, + 0.44712999263509995, + 0.43774275672207086 + ], + "raw_time_brier": 0.00019950703605130772, + "raw_timepoint_brier": [ + 2.2858494048705325e-06, + 6.329360530799022e-06, + 1.7234940969501622e-05, + 2.646764914970845e-05, + 3.6987883504480124e-05, + 5.189487637835555e-05, + 6.425789615605026e-05, + 9.581456106388941e-05, + 0.00011772488505812362, + 0.0005056340014562011, + 0.0005369797581806779, + 0.0005646562785841525, + 0.0005673235282301903 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010802562803162124, + 0.0011964500137131235, + 0.001262845901381894, + 0.0012960203670266373 + ] + }, + "J15": { + "normalized_time_brier": 0.8414132023362999, + "normalized_timepoint_brier": [ + 0.34259400134138435, + 0.582184505966616, + 0.9426330504438135, + 0.9532811475492329, + 0.8548788749006409, + 0.8693984131280447, + 0.9402584712245611, + 0.8842391550541826, + 0.9498062386867511, + 0.9747876274304855, + 0.9244465779315332, + 0.863186680197686, + 0.8566768865169673 + ], + "raw_time_brier": 0.003796777457374936, + "raw_timepoint_brier": [ + 0.00036295820609666407, + 0.0010855827713385224, + 0.002515768865123391, + 0.003229440189898014, + 0.0032384940423071384, + 0.0035981405526399612, + 0.004314043093472719, + 0.004322079475969076, + 0.005037270952016115, + 0.005396654363721609, + 0.005409602075815201, + 0.005423194263130426, + 0.005424878094345331 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0010594412181052389, + 0.0018646713545495365, + 0.0026688740267900735, + 0.00338771011909813, + 0.0037882489992322427, + 0.004138655532731032, + 0.004588145946565368, + 0.004887907814605017, + 0.005303472168155996, + 0.005536236008603277, + 0.005851719509762574, + 0.006282759439578485, + 0.006332466977604031 + ] + }, + "J18": { + "normalized_time_brier": 2.270743985162966, + "normalized_timepoint_brier": [ + 2.058997960855926, + 1.6799052304194877, + 1.997727156552275, + 2.09860735417668, + 2.148085512347172, + 2.2787265392061826, + 2.3825479882152063, + 2.5096171205573357, + 2.4187358110779402, + 2.430058229120559, + 2.5634274136737982, + 2.47870466549626, + 2.474530825419735 + ], + "raw_time_brier": 0.014707965579313727, + "raw_timepoint_brier": [ + 0.0033563587348908186, + 0.005229070317000151, + 0.008116621524095535, + 0.00996460486203432, + 0.011329395696520805, + 0.013493862003087997, + 0.015857243910431862, + 0.018237438052892685, + 0.018549099564552307, + 0.019651804119348526, + 0.02197880670428276, + 0.022717121988534927, + 0.02272212505340576 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0016300932777493277, + 0.0031127174451944556, + 0.004062927961645871, + 0.004748198772010693, + 0.00527418281600037, + 0.0059216679890816215, + 0.006655582170376641, + 0.007267020097807794, + 0.007668923360540838, + 0.008086968404234717, + 0.008573992221134768, + 0.009164916782849863, + 0.009182397252841491 + ] + }, + "J30": { + "normalized_time_brier": 1.6289002643313155, + "normalized_timepoint_brier": [ + 0.0014704133945997455, + 0.33845813595689833, + 1.0547633282840252, + 1.0772995883598924, + 2.1422721911221743, + 2.1642616484314203, + 2.063829915648766, + 2.3324412837439166, + 2.3117665181445353, + 2.0743977865181296, + 1.9517622397030354, + 1.8522994948096954, + 1.810680892190014 + ], + "raw_time_brier": 0.0018753082975466056, + "raw_timepoint_brier": [ + 1.4704133945997455e-06, + 0.00033845813595689833, + 0.0010547633282840252, + 0.0010772995883598924, + 0.0021422721911221743, + 0.0021642616484314203, + 0.0021731890738010406, + 0.002533953869715333, + 0.002550100674852729, + 0.0025652903132140636, + 0.002576533704996109, + 0.0025996766053140163, + 0.0026017383206635714 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010529884547767578, + 0.0010863955664718635, + 0.001103096119282619, + 0.0012366433911019043, + 0.001320106339073418, + 0.0014034861061067807, + 0.0014368839544756976 + ] + }, + "J32": { + "normalized_time_brier": 0.46588690115120035, + "normalized_timepoint_brier": [ + 0.3537507145665586, + 0.3546673688106239, + 0.3591501445043832, + 0.7147760479710996, + 0.6743462239021177, + 0.6007997027751311, + 0.5293363457569211, + 0.47960976427672697, + 0.44315637338130365, + 0.41985108206562044, + 0.3961838113030106, + 0.36810314940288397, + 0.362798986249223 + ], + "raw_time_brier": 0.0006463933991304097, + "raw_timepoint_brier": [ + 0.0003537507145665586, + 0.0003546673688106239, + 0.0003591501445043832, + 0.0007147760479710996, + 0.0007193267811089754, + 0.0007208698079921305, + 0.0007232959032990038, + 0.0007351116510108113, + 0.0007382315816357732, + 0.000741310534067452, + 0.0007456553867086768, + 0.0007478507468476892, + 0.0007491175201721489 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010667024676828125, + 0.0011998504737309092, + 0.0013664202526367834, + 0.0015327287010500979, + 0.0016658489553090076, + 0.0017656511218698946, + 0.0018820945365139673, + 0.0020316336550252564, + 0.002064828041326296 + ] + }, + "J38": { + "normalized_time_brier": 0.7162845580598712, + "normalized_timepoint_brier": [ + 0.354486022843048, + 0.356364413164556, + 0.3569667460396886, + 0.709144864231348, + 0.7096165791153908, + 0.7107061101123691, + 0.7121022208593786, + 1.065296120941639, + 0.9557448103785299, + 0.9154414807674736, + 0.8675190888150184, + 0.8040559236359671, + 0.7942548738739202 + ], + "raw_time_brier": 0.0007938874298885751, + "raw_timepoint_brier": [ + 0.000354486022843048, + 0.000356364413164556, + 0.0003569667460396886, + 0.000709144864231348, + 0.0007096165791153908, + 0.0007107061101123691, + 0.0007121022208593786, + 0.001065296120941639, + 0.0010666879825294018, + 0.001067400793544948, + 0.0010692212963476777, + 0.00107118661981076, + 0.001071356819011271 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011160803291277428, + 0.0011659956599848165, + 0.001232504633192767, + 0.0013322290008968769, + 0.0013488829017640222 + ] + }, + "J43": { + "normalized_time_brier": 2.0585832136906057, + "normalized_timepoint_brier": [ + 0.3572709683794528, + 0.7153856568038464, + 1.425167080014944, + 1.7797778127714992, + 1.780236721970141, + 1.7822441877797246, + 2.4918343406170607, + 2.73746752293449, + 2.5735499457355866, + 2.5355985391824243, + 2.7289815781584306, + 2.9471285637209808, + 2.9069388599092942 + ], + "raw_time_brier": 0.002247168926540046, + "raw_timepoint_brier": [ + 0.0003572709683794528, + 0.0007153856568038464, + 0.001425167080014944, + 0.0017797778127714992, + 0.001780236721970141, + 0.0017822441877797246, + 0.0024918343406170607, + 0.002849320415407419, + 0.0028511236887425184, + 0.0028515406884253025, + 0.003206433029845357, + 0.0035613891668617725, + 0.003561472287401557 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010408599888531375, + 0.0011078563652774161, + 0.0011246025916014095, + 0.0011749559086467413, + 0.0012084268093025571, + 0.0012251624334172224 + ] + }, + "J44": { + "normalized_time_brier": 2.9643145150385726, + "normalized_timepoint_brier": [ + 2.322424203157425, + 3.2021471529476386, + 3.559120398585398, + 3.1474345344311043, + 2.8375031828739217, + 3.023733071744271, + 3.0281273005676357, + 2.9615822658164506, + 2.7861511247382165, + 2.932572168608784, + 2.8787574946574686, + 2.9482911281027544, + 2.9082446692703763 + ], + "raw_time_brier": 0.007856694103863377, + "raw_timepoint_brier": [ + 0.002322424203157425, + 0.0038407945539802313, + 0.005365740042179823, + 0.006113290321081877, + 0.006486315280199051, + 0.007622602395713329, + 0.00839951355010271, + 0.009125100448727608, + 0.009136009961366653, + 0.01025067176669836, + 0.010632934048771858, + 0.011419949121773243, + 0.01142167765647173 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001199443489174039, + 0.0015076028460044456, + 0.0019423089675753488, + 0.0022859235257771536, + 0.002520924372241679, + 0.0027738310567485673, + 0.0030811571753560575, + 0.0032790791139246126, + 0.0034954542215277495, + 0.0036935844955696857, + 0.00387341297910497, + 0.00392734413894317 + ] + }, + "J45": { + "normalized_time_brier": 2.4924066523399926, + "normalized_timepoint_brier": [ + 2.9501752658878493, + 2.856192382442084, + 3.06544425529395, + 2.877712415043184, + 2.6679884976174515, + 2.4689842321002713, + 2.431281166397036, + 2.3986767523810633, + 2.227468191342165, + 2.203907731404225, + 2.1037781657260837, + 2.0747910321999474, + 2.074886392584595 + ], + "raw_time_brier": 0.0078378829997606, + "raw_timepoint_brier": [ + 0.003560637356713414, + 0.005140997003763914, + 0.006709494162350893, + 0.007469799369573593, + 0.007862178608775139, + 0.007868063636124134, + 0.008197042159736156, + 0.008573970757424831, + 0.008577830158174038, + 0.008975567296147346, + 0.00938226655125618, + 0.009787091054022312, + 0.009787540882825851 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0012069240081713747, + 0.0017999477329913927, + 0.0021887509944973735, + 0.0025957421354981013, + 0.0029468562611106334, + 0.003186761395163334, + 0.0033714908308542183, + 0.0035744586046926995, + 0.0038509327278004593, + 0.004072569449370071, + 0.004459722371925106, + 0.004717145438808283, + 0.004717145438808311 + ] + }, + "J47": { + "normalized_time_brier": 1.4129785095686769, + "normalized_timepoint_brier": [ + 0.00018510525023884838, + 0.35421591019257903, + 0.7057938491925597, + 1.0593381011858582, + 1.4113629003986716, + 1.4112107455730438, + 2.117853844538331, + 2.0851407955613697, + 1.9272055828360233, + 1.8174056284523326, + 1.719395940823713, + 1.8797999125011675, + 1.8798123078869127 + ], + "raw_time_brier": 0.0015749926190070395, + "raw_timepoint_brier": [ + 1.8510525023884838e-07, + 0.00035421591019257903, + 0.0007057938491925597, + 0.0010593381011858582, + 0.0014113629003986716, + 0.0014112107455730438, + 0.002117853844538331, + 0.002118072472512722, + 0.0021177157759666443, + 0.0021178878378123045, + 0.0021179195027798414, + 0.0024716658517718315, + 0.0024716821499168873 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001015793502779982, + 0.001098853072462706, + 0.001165335797719443, + 0.0012317811462118535, + 0.0013148558180764872, + 0.0013148558180764826 + ] + }, + "J69": { + "normalized_time_brier": 1.1141693013750975, + "normalized_timepoint_brier": [ + 1.2466816288770246, + 1.3300901781330403, + 1.3475943228827942, + 1.2397544330485175, + 1.1445160767692366, + 1.0465468280616181, + 1.0346215918976311, + 1.021210420033222, + 0.9986210004189158, + 0.9974695960194208, + 1.033952965007604, + 1.0246404449387125, + 1.0185014317885273 + ], + "raw_time_brier": 0.008168135393554201, + "raw_timepoint_brier": [ + 0.0021493493113666773, + 0.0049981968477368355, + 0.006778734736144543, + 0.007480633910745382, + 0.007841167971491814, + 0.007846730761229992, + 0.008546438068151474, + 0.008908892050385475, + 0.009271558374166489, + 0.00962320901453495, + 0.010673091746866703, + 0.011033357121050358, + 0.011034400202333927 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0017240562959949528, + 0.0037577879529585535, + 0.005030248807848471, + 0.006033964236248575, + 0.00685107717632593, + 0.007497734980252595, + 0.00826044820162335, + 0.008723855412771495, + 0.009284361504792232, + 0.009647621394113737, + 0.01032260857899683, + 0.010768028117131666, + 0.01083395649523742 + ] + }, + "J81": { + "normalized_time_brier": 2.036399507161879, + "normalized_timepoint_brier": [ + 1.7940177349373698, + 1.8928692148078896, + 2.1706903664885853, + 1.9399352529201859, + 2.032047147631049, + 2.1186748037448355, + 2.168023724934804, + 1.989679062257518, + 2.0703805343439075, + 2.062800698140579, + 2.0565593421371156, + 2.097630553330761, + 2.0798851574298287 + ], + "raw_time_brier": 0.005616271053440869, + "raw_timepoint_brier": [ + 0.0017940177349373698, + 0.002506986493244767, + 0.00392826646566391, + 0.004288290161639452, + 0.0050010415725409985, + 0.005709559191018343, + 0.006059753708541393, + 0.0060597993433475494, + 0.006753887981176376, + 0.007107230834662914, + 0.007462656125426292, + 0.008170000277459621, + 0.008170033805072308 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0013244372477679105, + 0.0018096853085585237, + 0.00221053262225339, + 0.0024610854026547507, + 0.0026948728426497955, + 0.0027950587619716295, + 0.0030456164807162495, + 0.003262148126463451, + 0.0034454277822716537, + 0.003628709355729712, + 0.003894870936393798, + 0.0039281177501012815 + ] + }, + "J84": { + "normalized_time_brier": 2.21529141393416, + "normalized_timepoint_brier": [ + 1.4177773846313357, + 1.7691582906991243, + 1.7675920389592648, + 1.766449655406177, + 2.466038102284074, + 2.4649836122989655, + 2.463539829477668, + 2.4633663706481457, + 2.462915377691388, + 2.463169628754258, + 2.4633153807371855, + 2.4152268595981274, + 2.4152558499583674 + ], + "raw_time_brier": 0.002222714265092061, + "raw_timepoint_brier": [ + 0.0014177773846313357, + 0.0017691582906991243, + 0.0017675920389592648, + 0.001766449655406177, + 0.002466038102284074, + 0.0024649836122989655, + 0.002463539829477668, + 0.0024633663706481457, + 0.002462915377691388, + 0.002463169628754258, + 0.0024633153807371855, + 0.002463475102558732, + 0.002463504672050476 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010199766919487773, + 0.0010199766919487807 + ] + }, + "J90": { + "normalized_time_brier": 2.983021884085723, + "normalized_timepoint_brier": [ + 3.536751701799023, + 2.655407017970299, + 3.195589684892848, + 2.9180504039551436, + 2.9535606045321794, + 2.7759238978600647, + 2.854595955232023, + 2.79740844596754, + 2.827901192259187, + 3.0730174489429727, + 3.088763170553551, + 3.056716896588697, + 3.0455980725608733 + ], + "raw_time_brier": 0.00981913786381483, + "raw_timepoint_brier": [ + 0.00398479076102376, + 0.0047290027141571045, + 0.0072427489794790745, + 0.00798091571778059, + 0.009065448306500912, + 0.009076235815882683, + 0.0100958701223135, + 0.010452881455421448, + 0.01113237626850605, + 0.012865837663412094, + 0.0131889833137393, + 0.013916749507188797, + 0.013916951604187489 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0011266809482262594, + 0.0017808956149297935, + 0.0022664827758454645, + 0.0027350164023771514, + 0.0030693286918135904, + 0.003269627032239419, + 0.003536707219040707, + 0.0037366304053629566, + 0.003936621370993689, + 0.004186711555392425, + 0.0042699885311620195, + 0.004552842143385906, + 0.004569529948672939 + ] + }, + "J91": { + "normalized_time_brier": 1.0196524696712914, + "normalized_timepoint_brier": [ + 0.3615549940150231, + 0.7136396332541722, + 0.9545881404535435, + 1.1102747899759757, + 1.2851091868528879, + 1.3191961799281615, + 1.2342549238511271, + 1.14933871539445, + 1.0547529800000366, + 1.003777705779475, + 1.032118369344344, + 0.9782889117208105, + 1.0585875751567813 + ], + "raw_time_brier": 0.0029495032302712877, + "raw_timepoint_brier": [ + 0.0003615549940150231, + 0.0010693646036088467, + 0.00177131243981421, + 0.0024374104104936123, + 0.0031486954540014267, + 0.00350058451294899, + 0.003505389206111431, + 0.003517456352710724, + 0.003531551454216242, + 0.0035476372577250004, + 0.003857121104374528, + 0.0038710134103894234, + 0.004224450793117285 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001498465827539007, + 0.001855577672453195, + 0.0021953217640349677, + 0.0024501384677766466, + 0.002653573870369772, + 0.002840085251735437, + 0.003060417530182599, + 0.003348226097655699, + 0.003534285765960615, + 0.0037370918093675384, + 0.003956922504191844, + 0.003990648381161687 + ] + }, + "J94": { + "normalized_time_brier": 2.820555210256806, + "normalized_timepoint_brier": [ + 1.4141639694571495, + 1.4299891190603375, + 1.7887114081531763, + 1.797757693566382, + 2.8182296082377434, + 3.1891148537397385, + 3.2014253083616495, + 3.2124370336532593, + 3.5515977069735527, + 3.5566529259085655, + 3.5625568125396967, + 3.572029061615467, + 3.5725522320717573 + ], + "raw_time_brier": 0.0028205552102568057, + "raw_timepoint_brier": [ + 0.0014141639694571495, + 0.0014299891190603375, + 0.0017887114081531763, + 0.001797757693566382, + 0.0028182296082377434, + 0.0031891148537397385, + 0.0032014253083616495, + 0.0032124370336532593, + 0.0035515977069735527, + 0.0035566529259085655, + 0.0035625568125396967, + 0.003572029061615467, + 0.0035725522320717573 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "J95": { + "normalized_time_brier": 2.000750635644057, + "normalized_timepoint_brier": [ + 1.7961282283067703, + 2.8681489638984203, + 2.853361919367975, + 2.323102693289216, + 2.0936176160170374, + 2.008121690584687, + 1.788023826410182, + 1.6679244469328276, + 1.6750341551264172, + 1.6889506925796076, + 1.811811832612122, + 1.7177288133672737, + 1.7178033848802072 + ], + "raw_time_brier": 0.004313005815045192, + "raw_timepoint_brier": [ + 0.0017961282283067703, + 0.0028681489638984203, + 0.003920005168765783, + 0.003917334135621786, + 0.004256751853972673, + 0.004257155582308769, + 0.0042551117949187756, + 0.004258617293089628, + 0.004596327431499958, + 0.00495570432394743, + 0.005660524126142263, + 0.005663510411977768, + 0.005663756281137466 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0013738198236114651, + 0.001686250955215132, + 0.002033204068119588, + 0.002119968925324068, + 0.0023797847277358545, + 0.002553243524262065, + 0.0027440201248631058, + 0.002934191238216888, + 0.003124233998395619, + 0.00329709228133372, + 0.0032970922813337186 + ] + }, + "J96": { + "normalized_time_brier": 2.488022197386445, + "normalized_timepoint_brier": [ + 2.0027049935703225, + 2.0669466164630945, + 2.680618300257184, + 2.518544691721687, + 2.537974195424152, + 2.5298231631083965, + 2.5401023193276324, + 2.6010755096453138, + 2.5921031449505905, + 2.514551445677886, + 2.579700302488348, + 2.6012998856755605, + 2.578843997713619 + ], + "raw_time_brier": 0.019662190783912174, + "raw_timepoint_brier": [ + 0.0037473367992788553, + 0.007464051712304354, + 0.013120967894792557, + 0.015247161500155926, + 0.017685946077108383, + 0.01950264535844326, + 0.021196488291025162, + 0.023044446483254433, + 0.024295063689351082, + 0.025114895775914192, + 0.027174634858965874, + 0.02900015190243721, + 0.029014689847826958 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0018711376919265032, + 0.0036111487606180397, + 0.004894754278717602, + 0.00605395709286894, + 0.006968528722236542, + 0.007709094312536984, + 0.008344737977577177, + 0.008859583813619008, + 0.009372722585008932, + 0.009987823402492999, + 0.010534027860815283, + 0.01114833090261173, + 0.011251044992853827 + ] + }, + "J98": { + "normalized_time_brier": 1.5348947403881423, + "normalized_timepoint_brier": [ + 1.1693960103938366, + 1.1496206512411837, + 1.5080605366317124, + 1.5491177753359198, + 1.3728735263028495, + 1.656810411923099, + 1.6204120385263547, + 1.6177771173941888, + 1.6664681693819465, + 1.6513413482054804, + 1.674883009261919, + 1.6653253744279495, + 1.651545656019409 + ], + "raw_time_brier": 0.009499053882721525, + "raw_timepoint_brier": [ + 0.00222376617603004, + 0.0033256225287914276, + 0.005880005657672882, + 0.007326624821871519, + 0.007323367055505514, + 0.009808763861656189, + 0.010486864484846592, + 0.011166169308125973, + 0.012219439260661602, + 0.012562474235892296, + 0.013259024359285831, + 0.013953709043562412, + 0.013951869681477547 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0019016365339583343, + 0.002892799920739882, + 0.0038990514736271854, + 0.004729546673933666, + 0.00533433482050408, + 0.005920269326573657, + 0.006471727088860449, + 0.006902167911802164, + 0.007332536849589814, + 0.007607436372585225, + 0.007916388360240617, + 0.008378968613479277, + 0.008447765056101836 + ] + }, + "K04": { + "normalized_time_brier": 0.43163151290957447, + "normalized_timepoint_brier": [ + 1.0093165414559735e-05, + 6.749489500634809e-05, + 0.0001824579953790817, + 0.3524257626850158, + 0.3525091742631048, + 0.3525448846630752, + 0.3526444488670677, + 0.7006239611655474, + 0.7005031802691519, + 0.7002091151662171, + 0.7001364137977362, + 0.6996834417805076, + 0.6996692391112447 + ], + "raw_time_brier": 0.0004316315129095745, + "raw_timepoint_brier": [ + 1.0093165414559735e-08, + 6.749489500634809e-08, + 1.824579953790817e-07, + 0.0003524257626850158, + 0.0003525091742631048, + 0.0003525448846630752, + 0.0003526444488670677, + 0.0007006239611655474, + 0.0007005031802691519, + 0.0007002091151662171, + 0.0007001364137977362, + 0.0006996834417805076, + 0.0006996692391112447 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "K12": { + "normalized_time_brier": 2.416426993083853, + "normalized_timepoint_brier": [ + 0.6878325948491693, + 0.841324042994529, + 2.0459751306890293, + 2.701388301380653, + 2.4644838660807706, + 2.4015051798950466, + 2.5740622530636768, + 2.8307629468742617, + 3.0245879308067716, + 3.0177130623974255, + 2.960826887310296, + 2.939469996267032, + 2.9236187174814243 + ], + "raw_time_brier": 0.004461515421728388, + "raw_timepoint_brier": [ + 0.0006878325948491693, + 0.000841324042994529, + 0.002152875764295459, + 0.003967831376940012, + 0.004071006551384926, + 0.004326721653342247, + 0.004766084719449282, + 0.005617980379611254, + 0.006153349298983812, + 0.0062397196888923645, + 0.006319443695247173, + 0.006420790683478117, + 0.006434740033000708 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010522492341196875, + 0.0014688119345567952, + 0.0016518698326311151, + 0.001801670756142753, + 0.001851580984017242, + 0.0019846170396622745, + 0.0020344421917145197, + 0.0020676981409011802, + 0.0021343509552454606, + 0.002184336187010643, + 0.002200950484591222 + ] + }, + "K20": { + "normalized_time_brier": 0.8739947206478564, + "normalized_timepoint_brier": [ + 0.3612224536482245, + 0.7325943536898982, + 0.8090820777285881, + 0.690647996713974, + 0.7741001739234076, + 0.7131788465551367, + 0.7841917440111039, + 0.8617721791633223, + 1.1530547402269622, + 1.1019399665905594, + 1.155728743984612, + 1.117253054121602, + 1.1071650380647433 + ], + "raw_time_brier": 0.0024738801898470577, + "raw_timepoint_brier": [ + 0.0003612224536482245, + 0.0010785384802147746, + 0.0014479013625532389, + 0.001466467510908842, + 0.0018373412312939763, + 0.0018591764383018017, + 0.0022140578366816044, + 0.0025623072870075703, + 0.0036203088238835335, + 0.0036433415953069925, + 0.004013208672404289, + 0.0040280139073729515, + 0.004028556868433952 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0014722178444079464, + 0.0017895605432492931, + 0.002123321167781751, + 0.0023735186907163385, + 0.0026068866838692283, + 0.0028233628491889018, + 0.002973300077400113, + 0.003139754512583616, + 0.003306297716544049, + 0.0034724486115729277, + 0.003605283415886319, + 0.003638623628755134 + ] + }, + "K21": { + "normalized_time_brier": 0.9324727343481996, + "normalized_timepoint_brier": [ + 0.8566559825721899, + 0.9980218940323171, + 1.0053691729501815, + 0.9983576653296747, + 0.9270265805584164, + 0.8869327962693755, + 0.8996183396733234, + 0.9179961020073039, + 0.8931808017025527, + 0.9393151019581709, + 0.9221326010131803, + 0.9415137386110306, + 0.9360247698488788 + ], + "raw_time_brier": 0.029121210906081475, + "raw_timepoint_brier": [ + 0.007700229529291391, + 0.015469619072973728, + 0.020520932972431183, + 0.024081509560346603, + 0.025700921192765236, + 0.027053195983171463, + 0.030206454917788506, + 0.033003952354192734, + 0.034252189099788666, + 0.03803710639476776, + 0.03911050781607628, + 0.041721161454916, + 0.04171796143054962 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.008988706885780136, + 0.015500280269876328, + 0.020411340952710955, + 0.0241211245194321, + 0.027724039128720214, + 0.03050196824039302, + 0.03357696657090974, + 0.03595217047439069, + 0.038348550522467835, + 0.04049451170908738, + 0.04241310606858944, + 0.04431285465516966, + 0.044569292153758905 + ] + }, + "K22": { + "normalized_time_brier": 1.2487964808877838, + "normalized_timepoint_brier": [ + 0.3599342599045485, + 0.930310947098988, + 1.283321104990225, + 1.193789959974397, + 1.4309750223821749, + 1.437296602145464, + 1.3155385532672037, + 1.31561716569586, + 1.3719667064773717, + 1.3577977952190756, + 1.3675235888624557, + 1.439760679699653, + 1.4305218658237708 + ], + "raw_time_brier": 0.004774423887003929, + "raw_timepoint_brier": [ + 0.0003599342599045485, + 0.0014377613551914692, + 0.0028747408650815487, + 0.003239646553993225, + 0.004633123520761728, + 0.0049937088042497635, + 0.004992900416254997, + 0.005348354112356901, + 0.006062803789973259, + 0.006412206683307886, + 0.006757284980267286, + 0.007477505598217249, + 0.007477539591491222 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0015454632235328161, + 0.002240079161718022, + 0.0027137492043095295, + 0.0032377389180761997, + 0.003474375989476086, + 0.0037953280835859105, + 0.004065281490552789, + 0.004419060434447397, + 0.004722504857413839, + 0.0049412566154622495, + 0.005193575365439987, + 0.005227141066582198 + ] + }, + "K25": { + "normalized_time_brier": 1.787532065842733, + "normalized_timepoint_brier": [ + 0.7105723489075899, + 0.7211192278191447, + 1.08519964851439, + 1.8216375028714538, + 1.8317920621484518, + 2.1928122732788324, + 2.168453781846659, + 2.1397888930372857, + 2.0962455076917688, + 2.2909412927488204, + 2.123362134822709, + 2.027712230695858, + 2.0282799515725642 + ], + "raw_time_brier": 0.0019663464672003803, + "raw_timepoint_brier": [ + 0.0007105723489075899, + 0.0007211192278191447, + 0.00108519964851439, + 0.0018216375028714538, + 0.0018317920621484518, + 0.0021928122732788324, + 0.002212886232882738, + 0.002219476504251361, + 0.002244220580905676, + 0.002605545101687312, + 0.0026275613345205784, + 0.002644470427185297, + 0.0026452108286321163 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010204903841659195, + 0.001037240875243989, + 0.0010705905260957943, + 0.0011373251291660162, + 0.0012374532310947361, + 0.001304164559030047, + 0.001304164559030046 + ] + }, + "K26": { + "normalized_time_brier": 1.4677995125387615, + "normalized_timepoint_brier": [ + 0.0005472365387504396, + 0.7050957647152245, + 1.0586394928395748, + 1.0585748823359609, + 1.3892872957512736, + 1.7403113888576627, + 1.7380141653120518, + 1.7372122965753078, + 2.0535191782472486, + 1.9578662667011049, + 1.8991370295757821, + 1.871675150608206, + 1.871513514945754 + ], + "raw_time_brier": 0.0015295251615244664, + "raw_timepoint_brier": [ + 5.472365387504396e-07, + 0.0007050957647152245, + 0.0010586394928395748, + 0.0010585748823359609, + 0.0013892872957512736, + 0.0017403113888576627, + 0.0017380141653120518, + 0.0017372122965753078, + 0.002090146066620946, + 0.00209059938788414, + 0.002091257367283106, + 0.00209216121584177, + 0.0020919805392622948 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010178361559812458, + 0.001067794784271289, + 0.001101161914446078, + 0.0011178014599178263, + 0.00111780145991782 + ] + }, + "K29": { + "normalized_time_brier": 0.8291029302555398, + "normalized_timepoint_brier": [ + 0.00801500391389709, + 0.5914284838985716, + 0.6365524084054729, + 0.5722595589542157, + 0.7334543166268186, + 0.7781873646755433, + 1.010437903763825, + 0.9682750815372096, + 1.0664925969564911, + 1.0927202929237498, + 1.0978382405468754, + 1.1131287207392464, + 1.1095481203801028 + ], + "raw_time_brier": 0.003127951966234832, + "raw_timepoint_brier": [ + 8.01500391389709e-06, + 0.0010838409652933478, + 0.0014468447770923376, + 0.0014554798835888505, + 0.0021632369607686996, + 0.0025188676081597805, + 0.0035946324933320284, + 0.0036082323640584946, + 0.0043339175172150135, + 0.00469832681119442, + 0.005016332492232323, + 0.005367094650864601, + 0.005368554033339024 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.00183258161350109, + 0.002272938972482408, + 0.0025433911252591202, + 0.0029493820020277477, + 0.0032368395099938367, + 0.003557499654300598, + 0.003726453807248818, + 0.004063710830795219, + 0.0042996609851760756, + 0.004569281982501807, + 0.004821629835676353, + 0.0048385049145051 + ] + }, + "K30": { + "normalized_time_brier": 0.5151559229622616, + "normalized_timepoint_brier": [ + 0.0006705253667860234, + 0.002878347231671796, + 0.7072272128425539, + 0.7085283286869526, + 0.6018585075355329, + 0.57854850339552, + 0.5434005630430268, + 0.5244980918932043, + 0.4975770681539259, + 0.6702099379759645, + 0.63808300160297, + 0.6145551299901274, + 0.6089917807911658 + ], + "raw_time_brier": 0.0007131053500477089, + "raw_timepoint_brier": [ + 6.705253667860234e-07, + 2.878347231671796e-06, + 0.0007072272128425539, + 0.0007085283286869526, + 0.0007100745569914579, + 0.0007114154286682606, + 0.0007132947794161737, + 0.0007145728450268507, + 0.000719156174454838, + 0.0010686330497264862, + 0.0010703420266509056, + 0.0010715926764532924, + 0.0010719835991039872 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011798031399423827, + 0.0012296556373284871, + 0.0013126500558294318, + 0.0013623936027060868, + 0.0014453161539839422, + 0.0015944750878415209, + 0.001677433851022562, + 0.0017436884408897654, + 0.0017602595517977764 + ] + }, + "K31": { + "normalized_time_brier": 1.2385555010741582, + "normalized_timepoint_brier": [ + 1.0694798547774553, + 1.0392991775704665, + 1.0711741861934017, + 0.9910398311948373, + 1.106163061273179, + 1.1214118086988554, + 1.3771548328427943, + 1.4409741180418658, + 1.4183023339909415, + 1.348610984888514, + 1.3419286034679059, + 1.3899505775350123, + 1.3857321434888241 + ], + "raw_time_brier": 0.004653848062914152, + "raw_timepoint_brier": [ + 0.0010694798547774553, + 0.0017523558344691992, + 0.002442739438265562, + 0.0027980145532637835, + 0.0035167615860700607, + 0.0038880396168679, + 0.005263908300548792, + 0.005922507960349321, + 0.006285079289227724, + 0.006294301711022854, + 0.006602859124541283, + 0.007331463508307934, + 0.0073325140401721 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0016860937372871017, + 0.00228043157662924, + 0.002823311904517889, + 0.0031792433766702666, + 0.0034670935214950968, + 0.0038223068133034542, + 0.004110072406017531, + 0.004431410101076423, + 0.004667247843560452, + 0.004920425056502791, + 0.0052746217216656805, + 0.005291436786413288 + ] + }, + "K40": { + "normalized_time_brier": 0.6614783422065835, + "normalized_timepoint_brier": [ + 9.806028344883089e-05, + 0.0004150820132053923, + 0.0007558367656201881, + 0.35379675682634115, + 0.7065318059176207, + 0.7062559598125517, + 1.0586573043838143, + 0.9637370395292808, + 0.94955193125049, + 0.8964544213001892, + 0.8490614258298548, + 1.070195373592618, + 1.04370745118055 + ], + "raw_time_brier": 0.0007595717006716121, + "raw_timepoint_brier": [ + 9.806028344883089e-08, + 4.150820132053923e-07, + 7.558367656201881e-07, + 0.00035379675682634115, + 0.0007065318059176207, + 0.0007062559598125517, + 0.0010586573043838143, + 0.0010586896678432822, + 0.0010588051518425345, + 0.00105903553776443, + 0.0010591252939775586, + 0.0014061524998396635, + 0.001406113151460886 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010985254529185464, + 0.001115057657192236, + 0.0011813601590903399, + 0.001247407150716324, + 0.0013139213030974393, + 0.0013472291970996419 + ] + }, + "K42": { + "normalized_time_brier": 1.0843948823641543, + "normalized_timepoint_brier": [ + 0.7093645981512964, + 0.7097831112332642, + 1.0653745848685503, + 1.0682207066565752, + 1.0696067474782467, + 0.9062306177369985, + 1.2516152933143945, + 1.1579974608208525, + 1.262088951408197, + 1.1494291055610577, + 1.2949812573608241, + 1.2312302931063976, + 1.221210743037348 + ], + "raw_time_brier": 0.0016118804386888559, + "raw_timepoint_brier": [ + 0.0007093645981512964, + 0.0007097831112332642, + 0.0010653745848685503, + 0.0010682207066565752, + 0.0010696067474782467, + 0.0010739653371274471, + 0.0017752175917848945, + 0.0017774448497220874, + 0.0021263486705720425, + 0.0021277673076838255, + 0.0024833425413817167, + 0.0024839763063937426, + 0.0024840333499014378 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011850905455051924, + 0.0014183412437251003, + 0.001534929833492153, + 0.0016847851082124863, + 0.0018511514084596135, + 0.0019176667826396009, + 0.0020174749762911235, + 0.002034074269378966 + ] + }, + "K43": { + "normalized_time_brier": 0.9224943626203691, + "normalized_timepoint_brier": [ + 0.35495395422913134, + 0.35464108805172145, + 0.709061452653259, + 1.3586376431732046, + 1.1538861917818546, + 0.9164277463464118, + 0.971083369261962, + 0.8461817363679007, + 1.035850419338746, + 1.211736416324697, + 1.105262236930447, + 0.9899168463725384, + 0.9847876132329245 + ], + "raw_time_brier": 0.0018705255934037268, + "raw_timepoint_brier": [ + 0.00035495395422913134, + 0.00035464108805172145, + 0.000709061452653259, + 0.001414955360814929, + 0.001414465019479394, + 0.0014149199705570936, + 0.001759473467245698, + 0.0017597279511392117, + 0.0024659857153892517, + 0.003167700720950961, + 0.0031667675357311964, + 0.0031671018805354834, + 0.003167078597471118 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0010414516099452316, + 0.0012258271479054172, + 0.001543951474841368, + 0.0018118665430167178, + 0.0020796099413496697, + 0.0023806388155574224, + 0.0026141829842490625, + 0.0028651730149814917, + 0.0031993615343965955, + 0.0032160016585444525 + ] + }, + "K44": { + "normalized_time_brier": 0.5574814233575907, + "normalized_timepoint_brier": [ + 0.35988667514175177, + 0.48481049795167397, + 0.6964718730375205, + 0.6078028930475023, + 0.6634120969963818, + 0.6034206135032747, + 0.5320382846036406, + 0.5959415216879654, + 0.5480543504289117, + 0.5114089018077531, + 0.5760686667372268, + 0.5358404351367733, + 0.5321016935683028 + ], + "raw_time_brier": 0.0017960361034895938, + "raw_timepoint_brier": [ + 0.00035988667514175177, + 0.0007215518853627145, + 0.001435979618690908, + 0.0014376580948010087, + 0.0017926807049661875, + 0.0017927666194736958, + 0.0017956020310521126, + 0.0021512105595320463, + 0.0021532715763896704, + 0.002155270194634795, + 0.002514677820727229, + 0.0025187754072248936, + 0.0025191381573677063 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0014883173702122247, + 0.0020617912571661724, + 0.002365336050956654, + 0.0027022128675111643, + 0.0029710065903540213, + 0.003374948914418453, + 0.003609767873597535, + 0.003928938023581973, + 0.004214377549972715, + 0.004365239711734395, + 0.004700607199570477, + 0.004734317119861485 + ] + }, + "K52": { + "normalized_time_brier": 2.508083090255859, + "normalized_timepoint_brier": [ + 1.44433684181422, + 1.9426351402462998, + 2.5252529695643107, + 2.657930073814493, + 2.7022634659863667, + 2.6044827434493554, + 2.727930756066765, + 2.6940837443880987, + 2.7153730319241385, + 2.6114560553690445, + 2.7152397301692504, + 2.603650315970516, + 2.660445304563306 + ], + "raw_time_brier": 0.01002545019862457, + "raw_timepoint_brier": [ + 0.00144433684181422, + 0.003613528795540333, + 0.006010800134390593, + 0.008122004568576813, + 0.009238366968929768, + 0.010029856115579605, + 0.011165334843099117, + 0.012003342621028423, + 0.012846974655985832, + 0.012940971180796623, + 0.014063029550015926, + 0.014247866347432137, + 0.014604439958930016 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0018601170753465245, + 0.0023802764344150653, + 0.0030557630723973958, + 0.0034187513857230887, + 0.003850997339416481, + 0.0040929685690401195, + 0.004455445249625941, + 0.0047312006508668705, + 0.00495546197462926, + 0.00517929573354443, + 0.005472265710966342, + 0.0054894719819572595 + ] + }, + "K55": { + "normalized_time_brier": 1.4882601103560615, + "normalized_timepoint_brier": [ + 0.7124170078895986, + 1.7797297332435846, + 1.8303877063482419, + 1.8703278436547033, + 1.8430872500635918, + 1.6053020655879358, + 1.4719370057006311, + 1.3591439241154728, + 1.3029182568017856, + 1.3826113370436715, + 1.4543394466365058, + 1.3675337724448473, + 1.3676460850982295 + ], + "raw_time_brier": 0.002744545940703784, + "raw_timepoint_brier": [ + 0.0007124170078895986, + 0.0017797297332435846, + 0.002144131576642394, + 0.002503632800653577, + 0.002867025788873434, + 0.0028717382811009884, + 0.002878520404919982, + 0.0028849036898463964, + 0.0028959105256944895, + 0.0032574895303696394, + 0.0036200890317559242, + 0.003631605301052332, + 0.0036319035571068525 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001171408423038469, + 0.0013386063887929763, + 0.0015555561945179283, + 0.0017889083572874026, + 0.001955600269421739, + 0.0021225888139285057, + 0.002222634083586295, + 0.0023560413856687098, + 0.0024891637506829728, + 0.0026555872872958937, + 0.002655587287295891 + ] + }, + "K56": { + "normalized_time_brier": 2.390298965661298, + "normalized_timepoint_brier": [ + 2.52617453224957, + 2.0589611901732856, + 2.475339243266141, + 2.6035494917983097, + 2.4265653306107136, + 2.491736756417919, + 2.5464585234506547, + 2.4511182597028127, + 2.2763188029001022, + 2.3814787601106624, + 2.2312043701238067, + 2.2782927203948247, + 2.326688572398072 + ], + "raw_time_brier": 0.008229363297757048, + "raw_timepoint_brier": [ + 0.00252617453224957, + 0.0036201640032231808, + 0.005374423693865538, + 0.006816110573709011, + 0.007518396712839603, + 0.008233402855694294, + 0.00928739458322525, + 0.00961160846054554, + 0.009628422558307648, + 0.010644013993442059, + 0.010659274645149708, + 0.01135124173015356, + 0.01171109452843666 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0017582478098669269, + 0.0021711867205620413, + 0.002618006915244397, + 0.003098369789593667, + 0.0033042827796667023, + 0.0036471807797757057, + 0.003921315678057453, + 0.004229821651537005, + 0.004469497764047853, + 0.0047773636462348085, + 0.004982345608419627, + 0.005033374327517441 + ] + }, + "K57": { + "normalized_time_brier": 3.210575101447943, + "normalized_timepoint_brier": [ + 1.0961133521050215, + 1.4695400604978204, + 3.410649379149661, + 3.3088714327074977, + 3.5384542967232773, + 3.5760706814253767, + 3.504717738609318, + 3.7290468034481092, + 3.6158720290651885, + 3.5110291348340024, + 3.6788922794838412, + 3.673125472290515, + 3.6250936584836313 + ], + "raw_time_brier": 0.006348928964983385, + "raw_timepoint_brier": [ + 0.0010961133521050215, + 0.0014695400604978204, + 0.003655631560832262, + 0.004402893595397472, + 0.005806454923003912, + 0.006546124815940857, + 0.007261311635375023, + 0.00798274576663971, + 0.007989523932337761, + 0.008361831307411194, + 0.009077723138034344, + 0.00944285374134779, + 0.009443328715860844 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001071828603426741, + 0.0013306330224486197, + 0.0016409580105021778, + 0.0018305356350875185, + 0.002071867744264145, + 0.002140693369484761, + 0.0022095704350475294, + 0.0023815898377062407, + 0.0024675153411417563, + 0.0025707953111275953, + 0.002604988892841728 + ] + }, + "K58": { + "normalized_time_brier": 2.198913853514303, + "normalized_timepoint_brier": [ + 1.0743913007900119, + 1.784438849426806, + 1.783735235221684, + 1.784031861461699, + 2.4915861431509256, + 2.4908161722123623, + 2.4906855542212725, + 2.4925486650317907, + 2.4941095616668463, + 2.495963592082262, + 2.4967859499156475, + 2.353322846178, + 2.3534643643266313 + ], + "raw_time_brier": 0.002221063531648654, + "raw_timepoint_brier": [ + 0.0010743913007900119, + 0.001784438849426806, + 0.001783735235221684, + 0.001784031861461699, + 0.0024915861431509256, + 0.0024908161722123623, + 0.0024906855542212725, + 0.0024925486650317907, + 0.0024941095616668463, + 0.002495963592082262, + 0.0024967859499156475, + 0.00249729142524302, + 0.002497441601008177 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001061176722649354, + 0.0010611767226493527 + ] + }, + "K59": { + "normalized_time_brier": 1.2841122576390238, + "normalized_timepoint_brier": [ + 1.5941588118670424, + 1.359334996136509, + 1.344937841876815, + 1.4455339274796477, + 1.3217267086576836, + 1.2543268420479927, + 1.2739419344361644, + 1.2149976343620896, + 1.2282050385709333, + 1.19722457712474, + 1.1644310413065924, + 1.1486596466106982, + 1.1459803488304043 + ], + "raw_time_brier": 0.025953757791565016, + "raw_timepoint_brier": [ + 0.011174283921718597, + 0.015244245529174805, + 0.019552432000637054, + 0.02480359748005867, + 0.025369733572006226, + 0.02628745697438717, + 0.028428684920072556, + 0.02844453975558281, + 0.03018011711537838, + 0.03090975619852543, + 0.03164637088775635, + 0.032678261399269104, + 0.032679371535778046 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.007009517394713975, + 0.011214487652051831, + 0.014537796016916515, + 0.017158779194691637, + 0.01919438671082857, + 0.020957422015673778, + 0.02231552643932303, + 0.023411189413975318, + 0.02457253973692713, + 0.02581784302554032, + 0.02717753972982924, + 0.0284490375331731, + 0.02851651999890822 + ] + }, + "K62": { + "normalized_time_brier": 1.259158577592879, + "normalized_timepoint_brier": [ + 0.35624008160084486, + 0.5523830798080838, + 0.9722076184755091, + 1.2287925506096873, + 1.3721754517658964, + 1.4257450910121543, + 1.4327324375698345, + 1.5049612409320645, + 1.4179034281036555, + 1.3654116503718594, + 1.498174103246652, + 1.628079015386743, + 1.6142557598244454 + ], + "raw_time_brier": 0.0038806143118283497, + "raw_timepoint_brier": [ + 0.00035624008160084486, + 0.0007126966374926269, + 0.0017747175879776478, + 0.0028380334842950106, + 0.0035358043387532234, + 0.0038876833859831095, + 0.0042411936447024345, + 0.004932093899697065, + 0.0049302903935313225, + 0.004929560236632824, + 0.005633240565657616, + 0.0063382904045283794, + 0.006338141392916441 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001290221702193053, + 0.0018254512248736866, + 0.002309611563715022, + 0.0025767873446525254, + 0.0027267731170816756, + 0.002960213319310508, + 0.0032772232038630325, + 0.003477169386722785, + 0.0036103106600052053, + 0.003760070711040843, + 0.0038931098212224955, + 0.003926355135697785 + ] + }, + "K63": { + "normalized_time_brier": 2.04594299125216, + "normalized_timepoint_brier": [ + 0.71108085103333, + 2.064698671512111, + 2.3315403674594712, + 2.5991505441312084, + 2.3347796616285423, + 2.1923580915636394, + 2.171571305386915, + 1.9948051359560284, + 1.9116271411333141, + 1.8140692046219857, + 2.10492043807289, + 2.199433384393985, + 2.1672240893846575 + ], + "raw_time_brier": 0.004878381088089485, + "raw_timepoint_brier": [ + 0.00071108085103333, + 0.0021304083056747913, + 0.0035472449380904436, + 0.004611818119883537, + 0.004615053068846464, + 0.004961283877491951, + 0.005316681694239378, + 0.0053208451718091965, + 0.005324068479239941, + 0.005327033344656229, + 0.0067122504115104675, + 0.007420412730425596, + 0.007420773152261972 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0010318252900867887, + 0.0015214169085803334, + 0.0017743559065083255, + 0.0019766546474143084, + 0.002262989744505402, + 0.002448310898679926, + 0.002667350848412135, + 0.0027850977655002065, + 0.0029365105427531205, + 0.0031888380625234984, + 0.0033737838040819586, + 0.003424091301222552 + ] + }, + "K64": { + "normalized_time_brier": 2.6520974208822716, + "normalized_timepoint_brier": [ + 0.7176542421802878, + 1.7924938583746552, + 2.541257884210515, + 2.6890471002872687, + 2.840362563197812, + 3.128836337590206, + 2.9773979982785206, + 2.8636500971675725, + 2.9603107512033726, + 3.059115701012768, + 3.0981163114968227, + 2.913050492823215, + 2.8959731336465193 + ], + "raw_time_brier": 0.005522847139778046, + "raw_timepoint_brier": [ + 0.0007176542421802878, + 0.0017924938583746552, + 0.0032586692832410336, + 0.003991805482655764, + 0.004694388713687658, + 0.005803322419524193, + 0.006173701956868172, + 0.006515508517622948, + 0.007233589421957731, + 0.007629124913364649, + 0.007986791431903839, + 0.007999190129339695, + 0.008000772446393967 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0012823056264726139, + 0.0014844684134499996, + 0.00165274277816227, + 0.0018547861867373495, + 0.0020735225725407548, + 0.0022752460309544862, + 0.002443523680416747, + 0.0024938987795848676, + 0.002577950802642753, + 0.0027459840291292692, + 0.0027627232978918014 + ] + }, + "K65": { + "normalized_time_brier": 0.7550801642701838, + "normalized_timepoint_brier": [ + 0.967187448862577, + 0.7946928152710419, + 0.841162575301047, + 0.7434987721982822, + 0.6731599648789187, + 0.6681023275020243, + 0.6945657135991371, + 0.7324325899058287, + 0.7135065913131791, + 0.7489898618238706, + 0.72548908060743, + 0.7585735614076377, + 0.7546808328414164 + ], + "raw_time_brier": 0.003916397798233307, + "raw_timepoint_brier": [ + 0.0017857220955193043, + 0.0025565484538674355, + 0.0032813928555697203, + 0.003358602523803711, + 0.003399115987122059, + 0.0036733795423060656, + 0.004026144277304411, + 0.004391276743263006, + 0.004420019686222076, + 0.004788371734321117, + 0.004818616900593042, + 0.0052016135305166245, + 0.005212367046624422 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0018463040412893415, + 0.0032170272647997784, + 0.0039010209820560904, + 0.004517293974640233, + 0.0050494921927412275, + 0.005498228925560711, + 0.005796635506871661, + 0.005995468803248648, + 0.006194784659364134, + 0.006393106206619298, + 0.0066418875616412595, + 0.006857098368765074, + 0.0069067171442523095 + ] + }, + "K66": { + "normalized_time_brier": 1.1500031051642319, + "normalized_timepoint_brier": [ + 0.3581634955480695, + 0.3623179509304464, + 1.2826550207158216, + 1.6104978836254684, + 1.3165682969844386, + 1.1764966726870978, + 1.2502745178332668, + 1.329752542318256, + 1.2545394006797825, + 1.3317830459064328, + 1.265767420549958, + 1.205552623606567, + 1.2056714957494117 + ], + "raw_time_brier": 0.0023038359224581374, + "raw_timepoint_brier": [ + 0.0003581634955480695, + 0.0003623179509304464, + 0.0014267852529883385, + 0.002143902238458395, + 0.0021512715611606836, + 0.0021596814040094614, + 0.0025261836126446724, + 0.00288789882324636, + 0.0028930192347615957, + 0.0032500517554581165, + 0.0032589882612228394, + 0.0032656406983733177, + 0.003265962703153491 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0011123686649525458, + 0.0013312046294852338, + 0.001633999213020782, + 0.001835688492919225, + 0.002020503158796329, + 0.002171756572250407, + 0.0023060409527145896, + 0.0024403762800915365, + 0.0025747133385743606, + 0.0027088329737143535, + 0.0027088329737143366 + ] + }, + "K70": { + "normalized_time_brier": 0.7059005544959324, + "normalized_timepoint_brier": [ + 0.0022822503069619415, + 0.3661789232864976, + 0.3700069501064718, + 0.3733994672074914, + 0.3788998001255095, + 0.381313991965726, + 0.38396453601308167, + 0.3727974666303486, + 0.6839750941392724, + 0.9742769966061969, + 1.516382886916393, + 1.6866107973741142, + 1.686618047769056 + ], + "raw_time_brier": 0.0008195884707639869, + "raw_timepoint_brier": [ + 2.2822503069619415e-06, + 0.0003661789232864976, + 0.0003700069501064718, + 0.0003733994672074914, + 0.0003788998001255095, + 0.000381313991965726, + 0.00038396453601308167, + 0.0003908325161319226, + 0.0007516148034483194, + 0.0011034308699890971, + 0.001819770084694028, + 0.0021664733067154884, + 0.0021664826199412346 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010483776074569115, + 0.0010988920647676012, + 0.0011325638127891715, + 0.0012000729501732781, + 0.0012845128882659072, + 0.0012845128882659064 + ] + }, + "K72": { + "normalized_time_brier": 2.320977114007105, + "normalized_timepoint_brier": [ + 1.4144143788143992, + 2.2318942937999964, + 2.7300803844856647, + 2.898407670533369, + 2.8306320021522082, + 2.554670913289122, + 2.4878761206907902, + 2.2491926833626112, + 2.0773515612138826, + 2.164106804318998, + 2.1649754812670183, + 2.1845321121626196, + 2.1845680760016926 + ], + "raw_time_brier": 0.005258261915654517, + "raw_timepoint_brier": [ + 0.0014144143788143992, + 0.0022318942937999964, + 0.0034841112792491913, + 0.00452463561668992, + 0.005224485881626606, + 0.005270171910524368, + 0.005922820419073105, + 0.005956324748694897, + 0.005986922420561314, + 0.006634143181145191, + 0.006998945027589798, + 0.007354207336902618, + 0.007354328408837318 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0012761936604682, + 0.001561076332597923, + 0.001845695900298691, + 0.002062955303992191, + 0.0023806733662560977, + 0.0026482056396297765, + 0.002881997699543406, + 0.003065534089124047, + 0.0032328056775468763, + 0.0033664908361645367, + 0.0033664908361645493 + ] + }, + "K74": { + "normalized_time_brier": 1.709569850126815, + "normalized_timepoint_brier": [ + 0.3796305973082781, + 1.1139340931549668, + 1.8835286609828472, + 2.246029442176223, + 1.976960035552997, + 1.8510313236878413, + 1.9922316715938544, + 1.9119334575247524, + 1.8817994465261298, + 1.8289893878111638, + 1.7260885134599508, + 1.7157546532184405, + 1.7164967686511547 + ], + "raw_time_brier": 0.002280252296119355, + "raw_timepoint_brier": [ + 0.0003796305973082781, + 0.0011139340931549668, + 0.0018835286609828472, + 0.002246029442176223, + 0.0022845605853945017, + 0.00229625147767365, + 0.0026739896275103092, + 0.0026958617381751537, + 0.0027172579430043697, + 0.002796056680381298, + 0.0028435876592993736, + 0.0028556780889630318, + 0.0028569132555276155 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011555927000595448, + 0.0012405254564243618, + 0.0013422081706848004, + 0.001410018600576873, + 0.0014439678723577726, + 0.001528744069820694, + 0.0016474170571933136, + 0.0016643860377160012, + 0.0016643860377160014 + ] + }, + "K75": { + "normalized_time_brier": 1.5372864157696442, + "normalized_timepoint_brier": [ + 0.7152609177865088, + 1.42501515801996, + 1.3031859346485801, + 1.9070538495412448, + 1.9836354913538075, + 1.8167413488025654, + 1.7038350783645548, + 1.6035479117788363, + 1.5043745622054434, + 1.4261701931745714, + 1.4931577158328804, + 1.560653755846432, + 1.542091487649993 + ], + "raw_time_brier": 0.0031475049774878873, + "raw_timepoint_brier": [ + 0.0007152609177865088, + 0.00142501515801996, + 0.0017898479709401727, + 0.0031926119700074196, + 0.0035527951549738646, + 0.003556902287527919, + 0.003563583130016923, + 0.003567879321053624, + 0.0035730318631976843, + 0.0035778048913925886, + 0.003895252477377653, + 0.00425346614792943, + 0.004254113417118788 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001373440215515238, + 0.001674106879978992, + 0.0017910524239254887, + 0.001957847378699402, + 0.0020915070802729734, + 0.0022249907812830674, + 0.0023750945761536594, + 0.00250868017612162, + 0.0026087347880762142, + 0.002725438702848302, + 0.0027586647427784387 + ] + }, + "K76": { + "normalized_time_brier": 1.5258806118187669, + "normalized_timepoint_brier": [ + 2.120543877074013, + 1.7531575138254896, + 1.5819708414113116, + 1.3989470550464749, + 1.4882272073243683, + 1.3228911082952572, + 1.489266899804106, + 1.5188372261933967, + 1.491833889445333, + 1.4509851796136752, + 1.4253667461999113, + 1.3776436260801377, + 1.416776783330496 + ], + "raw_time_brier": 0.00822808867535339, + "raw_timepoint_brier": [ + 0.0033578684087842703, + 0.004751917906105518, + 0.0056831990368664265, + 0.006040428765118122, + 0.007145486306399107, + 0.007171215955168009, + 0.008916673250496387, + 0.009798894636332989, + 0.010111120529472828, + 0.010457716882228851, + 0.010810156352818012, + 0.011177468113601208, + 0.011543006636202335 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001583493954115938, + 0.002710491138777692, + 0.003592480270872956, + 0.004317839437402762, + 0.004801340999030469, + 0.005420866396486096, + 0.005987290291397238, + 0.006451576553000075, + 0.006777645018663683, + 0.007207321638538871, + 0.007584122740086614, + 0.008113468463106737, + 0.008147371394008552 + ] + }, + "K80": { + "normalized_time_brier": 1.582107091071069, + "normalized_timepoint_brier": [ + 0.7319864816963673, + 1.083416189965266, + 1.43893929364479, + 1.3461700737931115, + 1.3568035420666147, + 1.7223192228734114, + 1.7624927129472667, + 1.6595508061114403, + 1.7084280031704027, + 1.7340313254501312, + 2.085478090880782, + 1.9789186412371862, + 1.9588578000871264 + ], + "raw_time_brier": 0.00387112432732605, + "raw_timepoint_brier": [ + 0.0007319864816963673, + 0.0011011901078745723, + 0.0018337162910029292, + 0.00220160698518157, + 0.0025685601867735386, + 0.0036449390463531017, + 0.004364831373095512, + 0.004365995526313782, + 0.0047290571965277195, + 0.0050972700119018555, + 0.0065591842867434025, + 0.006562911439687014, + 0.006563367322087288 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001016405438716839, + 0.0012743527813172584, + 0.001635459759536987, + 0.001893096610627385, + 0.002116297024353075, + 0.0024765103089683565, + 0.0026308296861027834, + 0.002768075205833554, + 0.00293954897878138, + 0.0031451705560585352, + 0.0033164129656103464, + 0.00335060938154641 + ] + }, + "K81": { + "normalized_time_brier": 0.7609943500246779, + "normalized_timepoint_brier": [ + 0.002302701432199683, + 0.5962664897406336, + 1.0442780908557538, + 1.0802018108870806, + 0.9715756041707168, + 0.8760474095618527, + 0.8288334542619378, + 0.7920632091271032, + 0.742730918400526, + 0.694673118185939, + 0.6859727108715977, + 0.7938258781576664, + 0.7841551546678063 + ], + "raw_time_brier": 0.001576908770542874, + "raw_timepoint_brier": [ + 2.302701432199683e-06, + 0.0007065106765367091, + 0.001411339035257697, + 0.0017655753763392568, + 0.0017658979631960392, + 0.0017672395333647728, + 0.0017683117184787989, + 0.001768873305991292, + 0.0017697742441669106, + 0.0017706929938867688, + 0.0017713378183543682, + 0.002115824492648244, + 0.0021161341574043036 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0011848907974755212, + 0.0013514973143802607, + 0.0016344865918057807, + 0.0018175610375718645, + 0.002017287550965583, + 0.0021334946235410475, + 0.002233247657015514, + 0.0023827932839770916, + 0.002548958564152785, + 0.0025822278208468444, + 0.002665350867067611, + 0.0026986166510641215 + ] + }, + "K82": { + "normalized_time_brier": 0.8497955071782264, + "normalized_timepoint_brier": [ + 0.35422909422777593, + 0.3541748155839741, + 0.7079204078763723, + 0.9970272827996853, + 1.1987384865218458, + 1.1203070150961958, + 1.0148181020891986, + 0.9476737221275804, + 0.9272654409098942, + 0.9173987621910717, + 0.8715979624969328, + 0.8219892978229235, + 0.8142012035734938 + ], + "raw_time_brier": 0.0011737726543707629, + "raw_timepoint_brier": [ + 0.00035422909422777593, + 0.0003541748155839741, + 0.0007079204078763723, + 0.0010625687427818775, + 0.0014171447837725282, + 0.0014176253462210298, + 0.0014190920628607273, + 0.0014196739066392183, + 0.0014199060387909412, + 0.001420039334334433, + 0.0014214770635589957, + 0.0014225796330720186, + 0.0014226132771000266 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0010657368771275241, + 0.00118219678412461, + 0.0012653900467625872, + 0.0013983708606884848, + 0.0014980619104347128, + 0.001531283250886214, + 0.001547897591384229, + 0.0016308861708290167, + 0.0017306546895924147, + 0.0017472502753081653 + ] + }, + "K83": { + "normalized_time_brier": 1.1452687919448934, + "normalized_timepoint_brier": [ + 0.4030441341456026, + 0.9013920002474256, + 0.9739450465564341, + 1.1452954783594174, + 1.138588503999123, + 1.175638675626462, + 1.2014561998826452, + 1.2314776774262421, + 1.2371706944855303, + 1.351798979158048, + 1.4285659631788399, + 1.3552161431462875, + 1.3449047990715555 + ], + "raw_time_brier": 0.003529182283762986, + "raw_timepoint_brier": [ + 0.0004030441341456026, + 0.0013577709905803204, + 0.001716527622193098, + 0.0024484938476234674, + 0.0028225742280483246, + 0.003194935154169798, + 0.003572310321033001, + 0.003934497945010662, + 0.004289419390261173, + 0.005008321721106768, + 0.0057056620717048645, + 0.005711740348488092, + 0.005714071914553642 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001506304682322033, + 0.001762448126064406, + 0.0021378708760212877, + 0.0024790117045222675, + 0.002717616577616685, + 0.002973317147459836, + 0.0031949405313084238, + 0.0034671201066922308, + 0.0037049308353717956, + 0.003993978730256632, + 0.0042146342318706755, + 0.0042486813330566645 + ] + }, + "K85": { + "normalized_time_brier": 1.6487043937204098, + "normalized_timepoint_brier": [ + 0.3599317860789597, + 0.7197083323262632, + 0.7207308080978692, + 1.0707813780754805, + 1.0698328260332346, + 1.42281549051404, + 1.4226288767531514, + 1.7808426637202501, + 2.506539002570989, + 2.577974934377316, + 2.749381847649425, + 2.516037296080876, + 2.5159518760874744 + ], + "raw_time_brier": 0.0019401875996174146, + "raw_timepoint_brier": [ + 0.0003599317860789597, + 0.0007197083323262632, + 0.0007207308080978692, + 0.0010707813780754805, + 0.0010698328260332346, + 0.00142281549051404, + 0.0014226288767531514, + 0.0017808426637202501, + 0.0028467541560530663, + 0.0031896685250103474, + 0.0035414048470556736, + 0.0035387296229600906, + 0.0035386094823479652 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001135731043136817, + 0.0012372767797219795, + 0.0012880731172657542, + 0.001406469462305753, + 0.0014064694623057788 + ] + }, + "K86": { + "normalized_time_brier": 1.185165722928849, + "normalized_timepoint_brier": [ + 0.36176908179186285, + 1.431031501851976, + 1.3618415925625675, + 1.3739173515383738, + 1.2470882389886917, + 1.3199623488381143, + 1.4235134263396751, + 1.300392310674669, + 1.2278279511649985, + 1.1642923908456755, + 1.0989964821422495, + 1.0624386843671367, + 1.034083036969045 + ], + "raw_time_brier": 0.0020499473433189383, + "raw_timepoint_brier": [ + 0.00036176908179186285, + 0.001431031501851976, + 0.0014328369870781898, + 0.00179477094206959, + 0.0017980227712541819, + 0.0021489153150469065, + 0.002510337857529521, + 0.0025133765302598476, + 0.0025186336133629084, + 0.002526266034692526, + 0.002533323597162962, + 0.0025389939546585083, + 0.0025410372763872147 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010521319035219294, + 0.0013063165262888535, + 0.0014417767043591579, + 0.0016280125845547573, + 0.0017634802813096266, + 0.0019327832913406406, + 0.002051291967228109, + 0.002169786605628841, + 0.002305124391503793, + 0.002389779280458817, + 0.00245728552306122 + ] + }, + "K90": { + "normalized_time_brier": 0.680964113248942, + "normalized_timepoint_brier": [ + 0.35331316757947206, + 0.35388401011005044, + 0.3541590995155275, + 0.3543786588124931, + 0.3546830848790705, + 0.3551797126419842, + 0.3555957810021937, + 0.7096889894455671, + 0.710229214746505, + 1.0638086823746562, + 1.0638998355716467, + 1.4118236722424626, + 1.4118895633146167 + ], + "raw_time_brier": 0.000680964113248942, + "raw_timepoint_brier": [ + 0.00035331316757947206, + 0.00035388401011005044, + 0.0003541590995155275, + 0.0003543786588124931, + 0.0003546830848790705, + 0.0003551797126419842, + 0.0003555957810021937, + 0.0007096889894455671, + 0.000710229214746505, + 0.0010638086823746562, + 0.0010638998355716467, + 0.0014118236722424626, + 0.0014118895633146167 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "K91": { + "normalized_time_brier": 2.41494311720395, + "normalized_timepoint_brier": [ + 2.803350168701956, + 2.7237816640435595, + 2.573795851216177, + 2.3500424044837973, + 2.343203530533667, + 2.2137125430376248, + 2.309068683978572, + 2.4153504293085817, + 2.2845902943925136, + 2.3616116243247474, + 2.4238556500550965, + 2.300742242190244, + 2.291155437384815 + ], + "raw_time_brier": 0.006811592656259353, + "raw_timepoint_brier": [ + 0.002866368740797043, + 0.004669324494898319, + 0.005035216920077801, + 0.005409713368862867, + 0.006040873471647501, + 0.006050804629921913, + 0.0070674000307917595, + 0.007767338305711746, + 0.007779392413794994, + 0.008448505774140358, + 0.009130291640758514, + 0.009142071008682251, + 0.009143403731286526 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0010224797361380888, + 0.0017142800234459785, + 0.0019563388905528565, + 0.0023019641511750283, + 0.0025780404446009374, + 0.002733328972161438, + 0.0030607145122311767, + 0.003215822520600137, + 0.003405158654875395, + 0.003577432329312839, + 0.003766846280862878, + 0.003973531167915293, + 0.003990739162473869 + ] + }, + "K92": { + "normalized_time_brier": 0.9203871762039821, + "normalized_timepoint_brier": [ + 0.8827385496406528, + 0.7916683148482153, + 0.9075522160089106, + 0.8667423071373114, + 0.9218815457748593, + 0.9367370626567395, + 0.9659696654707849, + 0.9288742754266638, + 0.9538461468334859, + 0.964331518927837, + 0.9563286294707304, + 0.9470437493741822, + 0.9413193090813942 + ], + "raw_time_brier": 0.009166978496628312, + "raw_timepoint_brier": [ + 0.0025123797822743654, + 0.003930125385522842, + 0.006021056789904833, + 0.006741399876773357, + 0.008112899959087372, + 0.009105795063078403, + 0.010132905095815659, + 0.010455245152115822, + 0.011496419087052345, + 0.012214535847306252, + 0.01257334090769291, + 0.012937363237142563, + 0.012937254272401333 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.002846119933582951, + 0.004964358572663548, + 0.006634391590583386, + 0.007777859487485903, + 0.008800371366874822, + 0.009720758819185481, + 0.010489879193957071, + 0.011255823773689253, + 0.012052697518585552, + 0.012666324399400132, + 0.013147510719878257, + 0.013660787313882518, + 0.013743746832333035 + ] + }, + "K94": { + "normalized_time_brier": 2.4512198589418452, + "normalized_timepoint_brier": [ + 1.7845741240307689, + 2.7799673844128847, + 3.176876776285718, + 2.8671929667880005, + 2.813924190643552, + 2.5444106185580697, + 2.553413844825337, + 2.4469854559954767, + 2.329161580636033, + 2.175046331121865, + 2.1122937697717425, + 2.140969548493393, + 2.1410415746811453 + ], + "raw_time_brier": 0.004283513040998234, + "raw_timepoint_brier": [ + 0.0017845741240307689, + 0.0027799673844128847, + 0.003756278892979026, + 0.004105090629309416, + 0.004449762869626284, + 0.004446083679795265, + 0.0048013972118496895, + 0.004804546944797039, + 0.004805522505193949, + 0.0048123933374881744, + 0.0048139519058167934, + 0.005162963178008795, + 0.005163136869668961 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0011823810482730535, + 0.0014317455005158517, + 0.001581337153439308, + 0.0017473923616601174, + 0.0018803834801710815, + 0.0019634554561921026, + 0.0020631984251954245, + 0.002212547506979309, + 0.0022790162877472275, + 0.00241150705839884, + 0.0024115070583988455 + ] + }, + "L02": { + "normalized_time_brier": 2.8053767932285143, + "normalized_timepoint_brier": [ + 1.0727529879659414, + 3.088917658360724, + 3.037201854222397, + 2.784281128537829, + 2.9370228665370193, + 3.062874877234, + 2.8444258743157587, + 2.8818515665197224, + 2.8453474985301592, + 2.6981531472890206, + 2.883484653453953, + 3.1774512335505096, + 3.15613296545366 + ], + "raw_time_brier": 0.005140908546029375, + "raw_timepoint_brier": [ + 0.0010727529879659414, + 0.0031900035683065653, + 0.0035408521071076393, + 0.0038938026409596205, + 0.004595640115439892, + 0.005301496479660273, + 0.005301355384290218, + 0.005658437963575125, + 0.006011563818901777, + 0.0060144816525280476, + 0.0067148273810744286, + 0.00776823703199625, + 0.007768359966576099 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001032725349499762, + 0.0011658270595960077, + 0.0013984947859789069, + 0.001564727386974182, + 0.001730889015109854, + 0.0018637699200248932, + 0.0019634730772787705, + 0.0021127696430777655, + 0.0022291105523684304, + 0.002328719652810061, + 0.0024448013395050473, + 0.002461353831288753 + ] + }, + "L03": { + "normalized_time_brier": 2.745863796239633, + "normalized_timepoint_brier": [ + 2.5734663013423957, + 2.1579381811007194, + 2.916817415605725, + 2.8063257953142857, + 2.6978637309916937, + 2.7808784264741404, + 2.780689298574531, + 2.6727827514132234, + 2.7840303367042414, + 2.819019799206133, + 2.870554180602335, + 2.8740559300320023, + 2.9618072037538052 + ], + "raw_time_brier": 0.01170734826547022, + "raw_timepoint_brier": [ + 0.002585659036412835, + 0.004066226072609425, + 0.0077504804357886314, + 0.009129675105214119, + 0.009911106899380684, + 0.011334647424519062, + 0.01264632772654295, + 0.013041864149272442, + 0.01470230519771576, + 0.015427131205797195, + 0.016560101881623268, + 0.017180388793349266, + 0.01785961352288723 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0010047378646707282, + 0.0018843107315221269, + 0.0026571702412093276, + 0.0032532484718837394, + 0.0036736869937228117, + 0.004075923390469894, + 0.0045479110999657015, + 0.004879507749882255, + 0.005280942884810829, + 0.005472516088798541, + 0.00576895638951097, + 0.005977750333187832, + 0.0060299716673833095 + ] + }, + "L08": { + "normalized_time_brier": 1.6303292452315583, + "normalized_timepoint_brier": [ + 1.0597865330055356, + 1.0600319365039468, + 1.4136398676782846, + 1.767728361301124, + 1.7686247592791915, + 1.7699777381494641, + 1.7712160479277372, + 1.7737627495080233, + 1.774768577888608, + 1.7760377377271652, + 1.7524647602691765, + 1.753087482302696, + 1.7531536364693034 + ], + "raw_time_brier": 0.0016358389895266066, + "raw_timepoint_brier": [ + 0.0010597865330055356, + 0.0010600319365039468, + 0.0014136398676782846, + 0.001767728361301124, + 0.0017686247592791915, + 0.0017699777381494641, + 0.0017712160479277372, + 0.0017737627495080233, + 0.001774768577888608, + 0.0017760377377271652, + 0.0017763343639671803, + 0.001776965567842126, + 0.0017770326230674982 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010136205898339076, + 0.001013620589833923, + 0.0010136205898339207 + ] + }, + "L27": { + "normalized_time_brier": 2.530775236214721, + "normalized_timepoint_brier": [ + 1.072762068361044, + 1.7921578837558627, + 1.876401249319315, + 2.6933297535416734, + 2.550734726970018, + 2.429909372020769, + 2.591575034178572, + 2.611631602164478, + 2.792826406935177, + 3.019205707375026, + 3.148469955112402, + 3.159748753947439, + 3.1613255571095964 + ], + "raw_time_brier": 0.0032065380454206695, + "raw_timepoint_brier": [ + 0.001072762068361044, + 0.0017921578837558627, + 0.001876401249319315, + 0.002755302470177412, + 0.0027803522534668446, + 0.0028114302549511194, + 0.0031721650157123804, + 0.003415351966395974, + 0.003839277196675539, + 0.004201054573059082, + 0.004644379485398531, + 0.004661017097532749, + 0.004663343075662851 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0010230097026011188, + 0.0010900201514759578, + 0.0011570103343455434, + 0.0012240297787549234, + 0.0013077464538127758, + 0.0013746923858718194, + 0.001391443637906867, + 0.001475122695027504, + 0.0014751226950275055, + 0.0014751226950275097 + ] + }, + "L29": { + "normalized_time_brier": 0.47744552024669695, + "normalized_timepoint_brier": [ + 0.7138646906241775, + 0.6958836415085335, + 0.4944243283699011, + 0.5859182175439777, + 0.5005404377505828, + 0.4570979587571969, + 0.41930946146954134, + 0.3800241232982106, + 0.37283841846300425, + 0.36208791127778156, + 0.35296477717798824, + 0.43950694620860853, + 0.4323308507575564 + ], + "raw_time_brier": 0.0010966712322372657, + "raw_timepoint_brier": [ + 0.0007138646906241775, + 0.0007207535090856254, + 0.0007347232312895358, + 0.0010853962739929557, + 0.0010938746854662895, + 0.0011054257629439235, + 0.001118624466471374, + 0.0011338500771671534, + 0.0011433204635977745, + 0.0011583688901737332, + 0.00117018714081496, + 0.0015373890055343509, + 0.0015409478219226003 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001035738543189748, + 0.0014860175544190784, + 0.001852470603393533, + 0.0021853872394049464, + 0.0024183563758400153, + 0.002667777785292429, + 0.002983626584877098, + 0.0030665307194226903, + 0.003199137154526741, + 0.003315308542033003, + 0.003497985683267543, + 0.003564279114531054 + ] + }, + "L30": { + "normalized_time_brier": 1.8790331069105088, + "normalized_timepoint_brier": [ + 0.35193527583032846, + 0.7044635131023824, + 1.0577929206192493, + 1.7642133170738816, + 2.1190315019339323, + 2.478754846379161, + 2.484297612681985, + 2.339204000154208, + 2.407001451930238, + 2.2546267628102434, + 2.226328169237934, + 2.1197759522800332, + 2.120005065803038 + ], + "raw_time_brier": 0.002130634308112069, + "raw_timepoint_brier": [ + 0.00035193527583032846, + 0.0007044635131023824, + 0.0010577929206192493, + 0.0017642133170738816, + 0.0021190315019339323, + 0.002478754846379161, + 0.002484297612681985, + 0.0024891963694244623, + 0.002841264707967639, + 0.002848580712452531, + 0.002849864074960351, + 0.002854271326214075, + 0.0028545798268169165 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010641211152427777, + 0.0011804166988304697, + 0.0012634378157127715, + 0.001280073672128872, + 0.0013464967008159604, + 0.0013464967008159617 + ] + }, + "L50": { + "normalized_time_brier": 0.8472812005285228, + "normalized_timepoint_brier": [ + 0.3527505905367434, + 0.7036979659460485, + 0.7030328270047903, + 0.702921359334141, + 0.7033332367427647, + 1.0563153773546219, + 1.0567064164206386, + 1.0568806901574135, + 1.057170331478119, + 0.9790138647636281, + 0.9094424898028459, + 0.884330896887517, + 0.8490595604415255 + ], + "raw_time_brier": 0.0008941681679481497, + "raw_timepoint_brier": [ + 0.0003527505905367434, + 0.0007036979659460485, + 0.0007030328270047903, + 0.000702921359334141, + 0.0007033332367427647, + 0.0010563153773546219, + 0.0010567064164206386, + 0.0010568806901574135, + 0.001057170331478119, + 0.0010575276101008058, + 0.0010578278452157974, + 0.0010579724330455065, + 0.001058049499988556 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001080196765503555, + 0.0011631607903487325, + 0.0011963535784728734, + 0.0012461428494349113 + ] + }, + "L53": { + "normalized_time_brier": 0.0059619721037356835, + "normalized_timepoint_brier": [ + 0.0003451474697158119, + 0.0017146544450952206, + 0.0028053925689164316, + 0.0039789574657334015, + 0.005224817869020626, + 0.006055320135747971, + 0.006545495892739068, + 0.006711630814292577, + 0.008165624751025674, + 0.008601846817316764, + 0.008699264400405547, + 0.009303631951166355, + 0.009353852767388433 + ], + "raw_time_brier": 7.086444307665611e-06, + "raw_timepoint_brier": [ + 3.451474697158119e-07, + 1.7146544450952206e-06, + 2.8053925689164316e-06, + 3.9789574657334015e-06, + 5.224817869020626e-06, + 6.240345101105049e-06, + 6.962554380152142e-06, + 7.362212727457518e-06, + 9.769839380169287e-06, + 1.0719542842707597e-05, + 1.127405084844213e-05, + 1.2828506442019716e-05, + 1.2897754459118005e-05 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010305557693415367, + 0.0010637168664143107, + 0.0010969335070962949, + 0.001196459508985165, + 0.0012461908553320902, + 0.0012959774906849079, + 0.0013788708011403506, + 0.001378870801140375 + ] + }, + "L76": { + "normalized_time_brier": 2.2259622235934584, + "normalized_timepoint_brier": [ + 2.1485674660652876, + 2.2950306566018845, + 1.9970343773881714, + 2.3266813320679294, + 2.1170486250924156, + 2.2145860089797633, + 2.396187173450012, + 2.3152130959481587, + 2.24020787358017, + 2.1527631035196344, + 2.1034248198354315, + 2.315355154212144, + 2.3154092199739567 + ], + "raw_time_brier": 0.004066545211781676, + "raw_timepoint_brier": [ + 0.0021485674660652876, + 0.0028681415133178234, + 0.0028710670303553343, + 0.0035835551097989082, + 0.003585810074582696, + 0.003940134774893522, + 0.004631511867046356, + 0.004633178468793631, + 0.004635793622583151, + 0.004638443700969219, + 0.004639928229153156, + 0.005344415549188852, + 0.005344540346413851 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001249718170459871, + 0.0014376653015409128, + 0.0015402002244174465, + 0.0016937778528474585, + 0.0017791744185671528, + 0.001932867314525326, + 0.0020011887790813425, + 0.0020693586864215844, + 0.002154646599705119, + 0.0022058921171787716, + 0.0023082487105557763, + 0.0023082487105557806 + ] + }, + "L89": { + "normalized_time_brier": 2.567395947726908, + "normalized_timepoint_brier": [ + 2.8515441808849573, + 2.8835447846804523, + 2.518977213739305, + 2.468943416138734, + 2.3986966533843206, + 2.520157940587501, + 2.531099414533404, + 2.4716061105128277, + 2.4814082321458777, + 2.514980790518526, + 2.564144158618892, + 2.59182823582444, + 2.5792161888805634 + ], + "raw_time_brier": 0.006266956951899024, + "raw_timepoint_brier": [ + 0.0028515441808849573, + 0.0035512391477823257, + 0.003907622303813696, + 0.004951680079102516, + 0.005294655915349722, + 0.00598552729934454, + 0.0066918544471263885, + 0.007031628862023354, + 0.007391877006739378, + 0.007745303679257631, + 0.008454740978777409, + 0.008806099183857441, + 0.008806667290627956 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0012315533182106848, + 0.0015512733829032982, + 0.002005586700260073, + 0.0022073053330355437, + 0.0023750603892505203, + 0.002643852868323625, + 0.002844963375076127, + 0.0029789040396416408, + 0.003079667132431951, + 0.0032972954934528055, + 0.0033976399601404494, + 0.003414474261054574 + ] + }, + "L97": { + "normalized_time_brier": 1.7167122853648835, + "normalized_timepoint_brier": [ + 0.7240947452373803, + 1.1147288605570793, + 1.4400380896404386, + 1.7068976303562522, + 1.4679387459725692, + 2.0128764394797782, + 1.8498105640341378, + 2.0685025360194773, + 2.016336572126666, + 2.035177568171819, + 1.924141525300521, + 1.978145676747155, + 1.978570756100216 + ], + "raw_time_brier": 0.002899133094335691, + "raw_timepoint_brier": [ + 0.0007240947452373803, + 0.0011147288605570793, + 0.0014400380896404386, + 0.0017068976303562522, + 0.0017486721044406295, + 0.0028422842733561993, + 0.0028945093508809805, + 0.0037983281072229147, + 0.0038050736766308546, + 0.004185528960078955, + 0.004217845853418112, + 0.004604869522154331, + 0.00460585905238986 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001191243237661162, + 0.0014120510417871346, + 0.0015647598771241329, + 0.0018362694950001014, + 0.0018871222836659535, + 0.0020565915355674723, + 0.002192066330858563, + 0.0023278717923982915, + 0.0023278717923982954 + ] + }, + "L98": { + "normalized_time_brier": 1.5644878423873343, + "normalized_timepoint_brier": [ + 0.002722032832025434, + 0.36792276659980416, + 0.37611686275340617, + 1.0875336593016982, + 1.7966548912227154, + 1.800105907022953, + 1.8106104107573628, + 1.8253267044201493, + 1.8078477181612693, + 2.3202470779528395, + 2.4651400898677167, + 2.353436156935319, + 2.324677673208088 + ], + "raw_time_brier": 0.001714302494065123, + "raw_timepoint_brier": [ + 2.722032832025434e-06, + 0.00036792276659980416, + 0.00037611686275340617, + 0.0010875336593016982, + 0.0017966548912227154, + 0.001800105907022953, + 0.0018106104107573628, + 0.0018253267044201493, + 0.0018417172832414508, + 0.002557341707870364, + 0.002922613872215152, + 0.0029472571332007647, + 0.0029500091914087534 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010187347444919916, + 0.001102185078550649, + 0.0011855771946705, + 0.0012523208350120399, + 0.001268997085233627 + ] + }, + "M10": { + "normalized_time_brier": 2.3318620970978587, + "normalized_timepoint_brier": [ + 1.4698070008307695, + 2.9031499288976192, + 3.149236315402961, + 2.7358993264269755, + 2.4762698373089087, + 2.127328013261173, + 2.3059502986516054, + 2.378191708998097, + 2.224920960083401, + 2.1935695087753824, + 2.1761753073552113, + 2.0331017239732727, + 2.140607332306786 + ], + "raw_time_brier": 0.004074655222491576, + "raw_timepoint_brier": [ + 0.0014698070008307695, + 0.0029031499288976192, + 0.003633428132161498, + 0.0036338826175779104, + 0.003634389489889145, + 0.0036413443740457296, + 0.004348629154264927, + 0.00469146016985178, + 0.004698643460869789, + 0.004708924796432257, + 0.005087361205369234, + 0.005106264725327492, + 0.005413232836872339 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0011537489626898903, + 0.001328222344468969, + 0.001467687178162629, + 0.0017116985962421396, + 0.001885829524082878, + 0.0019727005825902213, + 0.0021118248895878357, + 0.002146695045492831, + 0.0023377533915464274, + 0.0025115638165651463, + 0.002528830372191087 + ] + }, + "M16": { + "normalized_time_brier": 0.8288979498991886, + "normalized_timepoint_brier": [ + 0.35858279443345964, + 0.35943108377978206, + 0.7173350313678384, + 0.7175618084147573, + 0.7181127439253032, + 0.7211918709799647, + 0.7223135908134282, + 1.0743531165644526, + 1.0746513726189733, + 1.0760804871097207, + 1.0779625736176968, + 1.0789509397000074, + 1.0791459353640676 + ], + "raw_time_brier": 0.0008288979498991886, + "raw_timepoint_brier": [ + 0.00035858279443345964, + 0.00035943108377978206, + 0.0007173350313678384, + 0.0007175618084147573, + 0.0007181127439253032, + 0.0007211918709799647, + 0.0007223135908134282, + 0.0010743531165644526, + 0.0010746513726189733, + 0.0010760804871097207, + 0.0010779625736176968, + 0.0010789509397000074, + 0.0010791459353640676 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "M17": { + "normalized_time_brier": 2.4115357288932815, + "normalized_timepoint_brier": [ + 0.7311974186450243, + 1.463493681512773, + 1.833024900406599, + 2.207050798460841, + 2.578132087364793, + 2.9579822439700365, + 2.8685675595902, + 2.5745464513721146, + 2.592062653709463, + 3.052598152561308, + 2.9627741277837534, + 2.7903618310476164, + 2.7381725691881393 + ], + "raw_time_brier": 0.0031795673018607954, + "raw_timepoint_brier": [ + 0.0007311974186450243, + 0.001463493681512773, + 0.001833024900406599, + 0.002207050798460841, + 0.002578132087364793, + 0.0029579822439700365, + 0.0033263370860368013, + 0.003335855668410659, + 0.0037112764548510313, + 0.004786317236721516, + 0.004796604625880718, + 0.004801917355507612, + 0.004805185366421938 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001159581225450377, + 0.0012957061491870934, + 0.001431785010883081, + 0.0015679486776553001, + 0.0016189572404119537, + 0.001720894151460198, + 0.0017548877015617253 + ] + }, + "M19": { + "normalized_time_brier": 3.0686334804419664, + "normalized_timepoint_brier": [ + 2.9801391065120697, + 3.189879763995734, + 3.0425987319628023, + 3.444665459391401, + 3.084975232980898, + 3.1305094783378893, + 3.133311297285723, + 3.160914018351275, + 3.030153703141991, + 2.985210743280873, + 2.9194646438275837, + 2.8996941759052977, + 2.8907188907720296 + ], + "raw_time_brier": 0.010097340501558322, + "raw_timepoint_brier": [ + 0.0029801391065120697, + 0.005567076150327921, + 0.006316462531685829, + 0.00888847466558218, + 0.009246625006198883, + 0.009979418478906155, + 0.011074415408074856, + 0.011830775998532772, + 0.012233522720634937, + 0.012619675137102604, + 0.012998699210584164, + 0.013761472888290882, + 0.013768669217824936 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0017452307178357227, + 0.0020760090594039767, + 0.0025803593325293725, + 0.002997309316245048, + 0.0031877937274940376, + 0.0035344127529454957, + 0.0037428338543367516, + 0.004037261445830255, + 0.004227398405793303, + 0.004452425631550767, + 0.004745835958371192, + 0.004763060587377872 + ] + }, + "M21": { + "normalized_time_brier": 0.5672816925932869, + "normalized_timepoint_brier": [ + 0.35291066160425544, + 0.35185206797905266, + 0.3498457372188568, + 0.3491482639219612, + 0.3492168034426868, + 0.3486697387415916, + 0.3489717491902411, + 0.349120469763875, + 0.7025542436167598, + 0.7030912092886865, + 1.0561241069808602, + 1.0565636912360787, + 1.0565932607278228 + ], + "raw_time_brier": 0.0005672816925932869, + "raw_timepoint_brier": [ + 0.00035291066160425544, + 0.00035185206797905266, + 0.0003498457372188568, + 0.0003491482639219612, + 0.0003492168034426868, + 0.00034866973874159157, + 0.0003489717491902411, + 0.000349120469763875, + 0.0007025542436167598, + 0.0007030912092886865, + 0.0010561241069808602, + 0.0010565636912360787, + 0.0010565932607278228 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "M25": { + "normalized_time_brier": 2.424276544883177, + "normalized_timepoint_brier": [ + 1.6018177373768794, + 1.6451614564385038, + 1.9974872192365314, + 2.398472296302048, + 2.315198812544191, + 2.5288599152818607, + 2.4759127654320086, + 2.53535676306589, + 2.6114872709995556, + 2.637717149046916, + 2.741728624701737, + 3.0044886184744564, + 3.021906454580725 + ], + "raw_time_brier": 0.010180067450094681, + "raw_timepoint_brier": [ + 0.0018181104678660631, + 0.0029122799169272184, + 0.00473413011059165, + 0.007285558618605137, + 0.008021174930036068, + 0.009495526552200317, + 0.010227096267044544, + 0.011337226256728172, + 0.012434017844498158, + 0.013547376729547977, + 0.015014344826340675, + 0.017577167600393295, + 0.017936866730451584 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0011350295513916475, + 0.001770209182527174, + 0.002370042754216522, + 0.00303758297723012, + 0.003464572842114381, + 0.003754864591280442, + 0.004130636753375305, + 0.004471649284978177, + 0.004761278365235529, + 0.005136023297434692, + 0.0054762330199525245, + 0.0058503026080086095, + 0.005935612832509151 + ] + }, + "M35": { + "normalized_time_brier": 0.521674875367003, + "normalized_timepoint_brier": [ + 0.35601554554887116, + 0.3555970615707338, + 0.35582820419222116, + 0.3561979392543435, + 0.35664119059219956, + 0.3573597932700068, + 0.3580178308766335, + 0.7127337157726288, + 0.7130505982786417, + 0.7139663794077933, + 0.7145680137909949, + 0.7158752996474504, + 0.7159218075685203 + ], + "raw_time_brier": 0.000521674875367003, + "raw_timepoint_brier": [ + 0.00035601554554887116, + 0.0003555970615707338, + 0.00035582820419222116, + 0.0003561979392543435, + 0.00035664119059219956, + 0.0003573597932700068, + 0.0003580178308766335, + 0.0007127337157726288, + 0.0007130505982786417, + 0.0007139663794077933, + 0.0007145680137909949, + 0.0007158752996474504, + 0.0007159218075685203 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "M46": { + "normalized_time_brier": 1.3695744772563498, + "normalized_timepoint_brier": [ + 0.000388809723972372, + 0.3568055690266192, + 0.7127220160327852, + 1.0687531903386116, + 1.070760772563517, + 1.4241202734410763, + 1.4251327374950051, + 1.4264479978010058, + 1.4273376436904073, + 1.4276786241680384, + 2.4882350116968155, + 2.488008216240784, + 2.4880773421139097 + ], + "raw_time_brier": 0.0013697119595384231, + "raw_timepoint_brier": [ + 3.88809723972372e-07, + 0.0003568055690266192, + 0.0007127220160327852, + 0.0010687531903386116, + 0.001070760772563517, + 0.0014241202734410763, + 0.0014251327374950051, + 0.0014264479978010058, + 0.0014273376436904073, + 0.0014276786241680384, + 0.0024882350116968155, + 0.00248890183866024, + 0.0024889709893614054 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010003591718120634, + 0.0010003591718120532 + ] + }, + "M47": { + "normalized_time_brier": 1.7340394059264637, + "normalized_timepoint_brier": [ + 0.3649497521109879, + 0.7282342994585633, + 1.0896954918280244, + 1.0899289045482874, + 1.4485312858596444, + 1.739607102196839, + 2.14851890519666, + 2.3819803308001806, + 2.4634243186700937, + 2.354152900876935, + 2.332478414985709, + 2.2004760421592997, + 2.2005345283528035 + ], + "raw_time_brier": 0.0024208768870896446, + "raw_timepoint_brier": [ + 0.0003649497521109879, + 0.0007282342994585633, + 0.0010896954918280244, + 0.0010899289045482874, + 0.0014485312858596444, + 0.0018107956275343895, + 0.002529454417526722, + 0.003250786801800132, + 0.003613671287894249, + 0.003613702254369855, + 0.00397747615352273, + 0.0039770337752997875, + 0.003977139480412006 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010409221859623654, + 0.001177301447712974, + 0.0013647412448229968, + 0.0014669301023402775, + 0.0015350329424328093, + 0.0017052574325954052, + 0.0018073515453488754, + 0.0018073515453488793 + ] + }, + "M48": { + "normalized_time_brier": 0.7718477098439452, + "normalized_timepoint_brier": [ + 0.7377355941571295, + 0.7125048334301152, + 0.6574953469883917, + 0.7015901550613872, + 0.8323858518851186, + 0.8587184918751113, + 0.9491586792099997, + 0.870979776437934, + 0.7931494544375179, + 0.7537772987829824, + 0.7094650109536916, + 0.7316894686770874, + 0.7253702660748201 + ], + "raw_time_brier": 0.0028898854641458737, + "raw_timepoint_brier": [ + 0.0007377355941571295, + 0.0011057371739298105, + 0.0014833734603598714, + 0.0018598389578983188, + 0.002591941738501191, + 0.002968151355162263, + 0.003702661721035838, + 0.003710061777383089, + 0.0037176902405917645, + 0.0037259655073285103, + 0.0037364023737609386, + 0.004113645758479834, + 0.004115305375307798 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001551901295331023, + 0.0022560972745348734, + 0.002650890900451116, + 0.0031138704876244303, + 0.003456489388834472, + 0.0039009933767003256, + 0.004259641702079713, + 0.0046872505803187605, + 0.004943058796469859, + 0.005266506897554138, + 0.005622119675874803, + 0.005673385811051862 + ] + }, + "M51": { + "normalized_time_brier": 0.8213858332962569, + "normalized_timepoint_brier": [ + 0.000416987433027316, + 0.0014123819482847466, + 0.3601826319936663, + 0.36099174758419394, + 0.3611872380133718, + 0.7200679974630475, + 0.720668991561979, + 1.0762568563222885, + 1.0771045926958323, + 1.3777251450928047, + 1.617623633188403, + 1.5021975421538474, + 1.5021800874005924 + ], + "raw_time_brier": 0.0008810750724902706, + "raw_timepoint_brier": [ + 4.16987433027316e-07, + 1.4123819482847466e-06, + 0.0003601826319936663, + 0.00036099174758419394, + 0.0003611872380133718, + 0.0007200679974630475, + 0.0007206689915619791, + 0.0010762568563222885, + 0.0010771045926958323, + 0.0014255433343350887, + 0.0017834072932600975, + 0.0017833783058449626, + 0.0017833575839176774 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001034708076144653, + 0.0011024859285376093, + 0.0011871796190585952, + 0.0011871796190586184 + ] + }, + "M54": { + "normalized_time_brier": 1.1279851835556438, + "normalized_timepoint_brier": [ + 1.1462471123296605, + 0.9334963860289975, + 1.1724897116493143, + 1.2201745616915922, + 1.1512612099832573, + 1.1231015621991387, + 1.1311742898821302, + 1.1799818200640801, + 1.1285360414502632, + 1.1282258683820099, + 1.135444380391687, + 1.113233822755596, + 1.100440619415639 + ], + "raw_time_brier": 0.012612076135925375, + "raw_timepoint_brier": [ + 0.003886614693328738, + 0.00506282364949584, + 0.008463308215141296, + 0.010384302586317062, + 0.01111920177936554, + 0.01221179123967886, + 0.013354239985346794, + 0.01486185286194086, + 0.015160941518843174, + 0.016318710520863533, + 0.01747238263487816, + 0.017827486619353294, + 0.01783333346247673 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.003390730193796945, + 0.005423506427306695, + 0.007218236655770868, + 0.008510505719706823, + 0.009658278836240165, + 0.01087327419950073, + 0.011805643131031843, + 0.012594984608435554, + 0.013434166887005307, + 0.014464045700588495, + 0.015388144885486002, + 0.016014143888679902, + 0.01620562995207017 + ] + }, + "M62": { + "normalized_time_brier": 0.8417930673514827, + "normalized_timepoint_brier": [ + 0.0010109290542459348, + 0.5412149834574264, + 0.9555893042580276, + 0.7975991169692821, + 0.8653989549283592, + 0.8729017788053822, + 0.9127734045029163, + 0.9702877059711752, + 0.9752088454620315, + 0.9209689917356859, + 0.9579325717961223, + 1.049974824588561, + 1.1224484640400587 + ], + "raw_time_brier": 0.0027476998405535804, + "raw_timepoint_brier": [ + 1.0109290542459348e-06, + 0.0007207314483821392, + 0.001787024550139904, + 0.0017865333938971162, + 0.0021419243421405554, + 0.0024972374085336924, + 0.0028563388623297215, + 0.0032152370549738407, + 0.003574540140107274, + 0.0035759543534368277, + 0.003927753306925297, + 0.004639035556465387, + 0.004996776580810547 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.0013316916020652523, + 0.001870075922969281, + 0.0022398888813788907, + 0.0024750715608593166, + 0.002860845823858109, + 0.003129296765482824, + 0.0033136945209005435, + 0.003665409882960751, + 0.003882817321240617, + 0.004100239852540732, + 0.004418235035571659, + 0.004451675725783895 + ] + }, + "M79": { + "normalized_time_brier": 1.986569717786183, + "normalized_timepoint_brier": [ + 1.6752788463787551, + 2.113337423458354, + 2.1065383011034777, + 1.8825212943903427, + 1.9140583785213385, + 1.7939913089435178, + 1.963150421609222, + 1.9107094002039366, + 1.9407160658150164, + 2.130659971582049, + 2.167290617099294, + 2.1224459581554864, + 2.104708343959588 + ], + "raw_time_brier": 0.010351694135281902, + "raw_timepoint_brier": [ + 0.0025693054776638746, + 0.005480239633470774, + 0.006924630142748356, + 0.006938326172530651, + 0.008346467278897762, + 0.008753710426390171, + 0.010630094446241856, + 0.011368000879883766, + 0.012182299979031086, + 0.014290611259639263, + 0.015393506735563278, + 0.015841100364923477, + 0.015853730961680412 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0015336584015357368, + 0.002593168309347723, + 0.003287208278682137, + 0.0036856561427517018, + 0.004360612702599819, + 0.004879460888550923, + 0.005414814030158839, + 0.0059496231497424045, + 0.006277219111861708, + 0.006707128988314478, + 0.0071026500156983925, + 0.007463605989143865, + 0.007532507298305659 + ] + }, + "M81": { + "normalized_time_brier": 2.2479406439407166, + "normalized_timepoint_brier": [ + 0.741119438316673, + 1.8475705292075872, + 2.2160245571285486, + 2.5724910091331012, + 2.1689774723890687, + 2.258769824511536, + 2.43288179930093, + 2.610862355739643, + 2.541993301261321, + 2.2782081889094767, + 2.5391755143559025, + 2.515388081014261, + 2.499766299961264 + ], + "raw_time_brier": 0.003945493797520892, + "raw_timepoint_brier": [ + 0.000741119438316673, + 0.0018475705292075872, + 0.0022160245571285486, + 0.002961555728688836, + 0.002986432984471321, + 0.003345856908708811, + 0.004068335983902216, + 0.004818100016564131, + 0.004823001101613045, + 0.004835554864257574, + 0.005962579045444727, + 0.006340888328850269, + 0.006344399880617857 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0011512404584406478, + 0.0013768852016622598, + 0.0014812739538134923, + 0.0016722291995736173, + 0.0018454056017055671, + 0.0018973303742460305, + 0.0021225254512724045, + 0.0023482343035106097, + 0.002520838981750077, + 0.0025379972042651223 + ] + }, + "M84": { + "normalized_time_brier": 1.4181313375575135, + "normalized_timepoint_brier": [ + 0.0004848226922149479, + 0.3538206219673157, + 1.0564030380919576, + 1.0556939523667097, + 1.0561611270532012, + 1.7555607482790947, + 1.7578183906152844, + 1.7584728775545955, + 2.1117092110216618, + 2.002691378409375, + 1.9140905383401146, + 1.8319238306120234, + 1.7808768512441262 + ], + "raw_time_brier": 0.0014909068534008768, + "raw_timepoint_brier": [ + 4.848226922149479e-07, + 0.0003538206219673157, + 0.0010564030380919576, + 0.0010556939523667097, + 0.0010561611270532012, + 0.0017555607482790947, + 0.0017578183906152844, + 0.0017584728775545955, + 0.0021117092110216618, + 0.002116356510668993, + 0.0021188724786043167, + 0.0021199577022343874, + 0.0021204776130616665 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010567561899377106, + 0.0011069865485264807, + 0.0011572302662420935, + 0.0011906930069759143 + ] + }, + "M85": { + "normalized_time_brier": 1.9191804075371375, + "normalized_timepoint_brier": [ + 0.7218227256089449, + 0.7218958344310522, + 1.0841051116585732, + 2.528407610952854, + 2.5302646681666374, + 2.5317207910120487, + 2.4080490413831797, + 2.198388451512777, + 2.167625428532033, + 2.0809546124555376, + 2.0263433306875833, + 1.9746954053207446, + 1.9750722862608199 + ], + "raw_time_brier": 0.0021465071118794954, + "raw_timepoint_brier": [ + 0.0007218227256089449, + 0.0007218958344310522, + 0.0010841051116585732, + 0.002528407610952854, + 0.0025302646681666374, + 0.0025317207910120487, + 0.002533679362386465, + 0.002536490559577942, + 0.0025378228165209293, + 0.002541992114856839, + 0.002543903421610594, + 0.002546000760048628, + 0.0025464866776019335 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010521709977015766, + 0.0011537954349389466, + 0.0011707847597265007, + 0.0012215509649474165, + 0.001255415794098126, + 0.0012893131534050882, + 0.0012893131534050875 + ] + }, + "M86": { + "normalized_time_brier": 2.550451652389077, + "normalized_timepoint_brier": [ + 1.0701080318540335, + 1.4292801497504115, + 2.8526494279503822, + 2.856518643018975, + 2.888334982054152, + 3.1352228990121342, + 3.0596923457247103, + 2.7722286302122385, + 2.648785153072588, + 2.65170867693743, + 2.548332441625313, + 2.5534774910597986, + 2.6895326087858384 + ], + "raw_time_brier": 0.0041455411835788535, + "raw_timepoint_brier": [ + 0.0010701080318540335, + 0.0014292801497504115, + 0.0028526494279503822, + 0.0032143350690603256, + 0.003879891475662589, + 0.004579147323966026, + 0.004930092953145504, + 0.004931515548378229, + 0.0049335286021232605, + 0.005294094327837229, + 0.0053007411770522594, + 0.005567516665905714, + 0.00590913463383913 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0011252631159666385, + 0.0013432969166558557, + 0.0014605492086093314, + 0.001611303489396342, + 0.0017788992922999566, + 0.001862562766330962, + 0.0019964841439337904, + 0.0020800822885068617, + 0.0021803664553138335, + 0.0021970860715857794 + ] + }, + "M94": { + "normalized_time_brier": 0.7835761234320527, + "normalized_timepoint_brier": [ + 0.35464088432490826, + 0.35463241511024535, + 0.3546320367604494, + 0.35473378375172615, + 0.7092918967828155, + 0.70930365473032, + 1.0636106599122286, + 1.0635388316586614, + 1.0636866791173816, + 1.0639233514666557, + 1.064191572368145, + 1.0315099197971718, + 0.998793918835977 + ], + "raw_time_brier": 0.0007911511235691321, + "raw_timepoint_brier": [ + 0.00035464088432490826, + 0.00035463241511024535, + 0.0003546320367604494, + 0.00035473378375172615, + 0.0007092918967828155, + 0.00070930365473032, + 0.0010636106599122286, + 0.0010635388316586614, + 0.0010636866791173816, + 0.0010639233514666557, + 0.001064191572368145, + 0.0010643795831128955, + 0.0010643992573022842 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001031865581401473, + 0.001065684559376138 + ] + }, + "M96": { + "normalized_time_brier": 0.8298249242821829, + "normalized_timepoint_brier": [ + 0.0023735867671348387, + 0.35898154601454735, + 0.3594779409468174, + 0.36097117117606103, + 0.7174116908572614, + 0.717661518137902, + 0.7183410925790668, + 1.0641488479450345, + 1.064350246451795, + 1.4183905441313982, + 1.3932617192743484, + 1.3268537717976647, + 1.2855003395893445 + ], + "raw_time_brier": 0.0008491678495199897, + "raw_timepoint_brier": [ + 2.3735867671348387e-06, + 0.00035898154601454735, + 0.0003594779409468174, + 0.00036097117117606103, + 0.0007174116908572614, + 0.000717661518137902, + 0.0007183410925790668, + 0.0010641488479450345, + 0.001064350246451795, + 0.0014183905441313982, + 0.0014183273306116462, + 0.0014193271053954959, + 0.0014194194227457047 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.00101799059788304, + 0.0010696936886063527, + 0.001104176622154095 + ] + }, + "N12": { + "normalized_time_brier": 2.0521106377530556, + "normalized_timepoint_brier": [ + 1.059764064848423, + 1.4183232560753822, + 1.4193220995366573, + 1.426051021553576, + 1.4324388466775417, + 1.7751675331965089, + 2.4819602258503437, + 2.4858121760189533, + 2.4890615604817867, + 2.4939451832324266, + 2.495040651410818, + 2.8501495253294706, + 2.850402146577835 + ], + "raw_time_brier": 0.0020521106377530554, + "raw_timepoint_brier": [ + 0.001059764064848423, + 0.0014183232560753822, + 0.0014193220995366573, + 0.001426051021553576, + 0.0014324388466775417, + 0.0017751675331965089, + 0.0024819602258503437, + 0.0024858121760189533, + 0.0024890615604817867, + 0.0024939451832324266, + 0.002495040651410818, + 0.0028501495253294706, + 0.002850402146577835 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "N13": { + "normalized_time_brier": 2.1360873679141466, + "normalized_timepoint_brier": [ + 0.7259648409672081, + 0.7309685461223125, + 1.45405950024724, + 1.4945888637270972, + 1.7941072506760327, + 1.7525283961199092, + 2.179785886076713, + 2.6525059355453116, + 3.116143316917875, + 3.0879888290551483, + 3.007289509089811, + 2.8866356078947875, + 2.8865693004444544 + ], + "raw_time_brier": 0.0042795906550824065, + "raw_timepoint_brier": [ + 0.0007259648409672081, + 0.0007309685461223125, + 0.00145405950024724, + 0.001822731108404696, + 0.0025518625043332577, + 0.00290757161565125, + 0.003984765149652958, + 0.0053411973640322685, + 0.006747887935489416, + 0.007103382144123316, + 0.007425245828926563, + 0.007419606205075979, + 0.007419435773044825 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0012195535191258562, + 0.00142235783472348, + 0.0016590724704310651, + 0.0018280534685105867, + 0.002013642002627303, + 0.0021654613569454303, + 0.0023003263733621677, + 0.0024690824765899893, + 0.002570330035694069, + 0.0025703300356940783 + ] + }, + "N14": { + "normalized_time_brier": 2.2220229858183376, + "normalized_timepoint_brier": [ + 1.0612399782985449, + 1.0611353209242225, + 1.7673383699730039, + 2.1122603211551905, + 2.4584722705185413, + 2.4561628233641386, + 2.4555325508117676, + 2.451671287417412, + 2.7986750937998295, + 2.7159743171951454, + 2.630693789826467, + 2.4765539304010495, + 2.440588761953076 + ], + "raw_time_brier": 0.0022928378401467432, + "raw_timepoint_brier": [ + 0.0010612399782985449, + 0.0010611353209242225, + 0.0017673383699730039, + 0.0021122603211551905, + 0.0024584722705185413, + 0.0024561628233641386, + 0.0024555325508117676, + 0.002451671287417412, + 0.0027986750937998295, + 0.0027961567975580692, + 0.0027956911362707615, + 0.0027963060420006514, + 0.0027962499298155308 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010295225473434264, + 0.0010627200881692805, + 0.0011291117094905426, + 0.001145727610241816 + ] + }, + "N17": { + "normalized_time_brier": 0.8413823785490803, + "normalized_timepoint_brier": [ + 1.0130563925187495, + 0.9030326644333951, + 0.8943034466412121, + 0.880452092216101, + 0.8145522805071596, + 0.7995484274431087, + 0.8064032604114775, + 0.809972815015591, + 0.8123685248419874, + 0.8023742223517004, + 0.8111148375622879, + 0.793687630404358, + 0.7971043267909145 + ], + "raw_time_brier": 0.029445701422026523, + "raw_timepoint_brier": [ + 0.01067351270467043, + 0.01704152673482895, + 0.02187899500131607, + 0.025078797712922096, + 0.026266198605298996, + 0.028205927461385727, + 0.030760589987039566, + 0.03296508640050888, + 0.03500739112496376, + 0.036514148116111755, + 0.0387665219604969, + 0.03961595892906189, + 0.04001946374773979 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.010535951190370565, + 0.018871439988853114, + 0.024464844772194825, + 0.028484000361449168, + 0.0322461789548303, + 0.03527732216494504, + 0.03814541867222063, + 0.040699003459609126, + 0.043092992963720496, + 0.04550762860886962, + 0.04779412256469776, + 0.04991379153644974, + 0.05020605509551719 + ] + }, + "N18": { + "normalized_time_brier": 0.9459679879313717, + "normalized_timepoint_brier": [ + 1.0572363003045553, + 0.8583779298766935, + 0.8969492599348413, + 1.0849072565171034, + 1.0118607886815791, + 0.9436312287199827, + 0.9360241234087513, + 0.963420445504385, + 0.9523857595569523, + 0.9110507374841226, + 0.909086681399116, + 0.8897875482017717, + 0.8828657835179768 + ], + "raw_time_brier": 0.012985391399035087, + "raw_timepoint_brier": [ + 0.004344527143985033, + 0.005730265285819769, + 0.00793483667075634, + 0.011412851512432098, + 0.012102343142032623, + 0.012690157629549503, + 0.013766235671937466, + 0.0152199137955904, + 0.01621496118605137, + 0.016543252393603325, + 0.01740393042564392, + 0.017728693783283234, + 0.01771811954677105 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.004109324606744506, + 0.006675690376432355, + 0.008846472175396816, + 0.010519656352074715, + 0.011960482387899993, + 0.013448217103585533, + 0.01470713769833676, + 0.015797789912608957, + 0.0170256233079278, + 0.018158431482408668, + 0.019144412498551477, + 0.01992463686316164, + 0.020068871030621695 + ] + }, + "N20": { + "normalized_time_brier": 2.7326854626433206, + "normalized_timepoint_brier": [ + 2.135887276381254, + 2.4896629620343447, + 2.4868424516171217, + 2.8425061609596014, + 2.8421692550182343, + 2.841621870175004, + 2.8411634266376495, + 2.8417145367711782, + 2.841066336259246, + 2.840895438566804, + 2.8406167402863503, + 2.8403662145137787, + 2.840398345142603 + ], + "raw_time_brier": 0.0027326854626433207, + "raw_timepoint_brier": [ + 0.002135887276381254, + 0.0024896629620343447, + 0.0024868424516171217, + 0.0028425061609596014, + 0.0028421692550182343, + 0.002841621870175004, + 0.0028411634266376495, + 0.0028417145367711782, + 0.002841066336259246, + 0.002840895438566804, + 0.0028406167402863503, + 0.0028403662145137787, + 0.002840398345142603 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "N25": { + "normalized_time_brier": 1.208051720322025, + "normalized_timepoint_brier": [ + 0.7049092673696578, + 1.406248309649527, + 1.7536095110699534, + 1.4381757291118806, + 1.4470067311114645, + 1.270499229771763, + 1.1746576816272867, + 1.1121828269492078, + 1.2227075807938916, + 1.111337070291414, + 1.0475000339796017, + 1.0113475772730594, + 1.004490815187615 + ], + "raw_time_brier": 0.0020159892066238592, + "raw_timepoint_brier": [ + 0.0007049092673696578, + 0.001406248309649527, + 0.0017536095110699534, + 0.0017503851559013128, + 0.0020982609130442142, + 0.00209582201205194, + 0.0020939672831445932, + 0.0020935398060828447, + 0.0024439324624836445, + 0.002442830940708518, + 0.002441663760691881, + 0.0024413142818957567, + 0.002441375982016325 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.0012170871197932339, + 0.0014500699049495873, + 0.0016496051024198109, + 0.0017826191544108075, + 0.001882370196117454, + 0.0019987873641028903, + 0.0021981008336813246, + 0.0023309438486752627, + 0.0024139221141740203, + 0.002430461229812573 + ] + }, + "N28": { + "normalized_time_brier": 1.0194120826461393, + "normalized_timepoint_brier": [ + 1.0659508407115936, + 1.064711599610746, + 0.9021177295532202, + 0.7268378260249196, + 0.8462103527162187, + 0.7647655791299524, + 0.8758194902541444, + 0.9945584171912664, + 1.116066167526984, + 1.1988719355650157, + 1.2282510251179384, + 1.184076622645478, + 1.2841194883523326 + ], + "raw_time_brier": 0.002027972055097612, + "raw_timepoint_brier": [ + 0.0010659508407115936, + 0.001064711599610746, + 0.0010645436123013496, + 0.0010657033417373896, + 0.0014256908325478435, + 0.0014298923779278994, + 0.0017846672562882304, + 0.0021435113158077, + 0.002499039750546217, + 0.0028454253915697336, + 0.0032034090254455805, + 0.003207158762961626, + 0.0035639326088130474 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0011800495405722398, + 0.001466218877965842, + 0.001684794836143959, + 0.0018697133042449936, + 0.0020377112820021367, + 0.002155239228542445, + 0.0022391501716100496, + 0.0023734189675803153, + 0.0026081061280921664, + 0.0027085736696635, + 0.0027753901729082606 + ] + }, + "N30": { + "normalized_time_brier": 2.7323262254906, + "normalized_timepoint_brier": [ + 1.4117269311100245, + 2.1159586030989885, + 2.46637174859643, + 2.82724155113101, + 3.185903187841177, + 3.1900035683065653, + 3.1978364568203688, + 3.1409495279092146, + 2.9374948991426444, + 2.7920284595697478, + 2.8777868055431104, + 2.6882631765402576, + 2.6886760157682588 + ], + "raw_time_brier": 0.00314701242873875, + "raw_timepoint_brier": [ + 0.0014117269311100245, + 0.0021159586030989885, + 0.00246637174859643, + 0.00282724155113101, + 0.003185903187841177, + 0.0031900035683065653, + 0.0031978364568203688, + 0.003557400079444051, + 0.0035712895914912224, + 0.003579932264983654, + 0.003929180558770895, + 0.003938856068998575, + 0.003939460963010788 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0011325874700737544, + 0.0012157602699271277, + 0.0012821976268591912, + 0.0013653480345391187, + 0.001465204784774014, + 0.0014652047847740152 + ] + }, + "N32": { + "normalized_time_brier": 2.438097980767438, + "normalized_timepoint_brier": [ + 1.7758263275027275, + 2.4833399802446365, + 2.98124499625787, + 2.81459031127362, + 2.6379601477012726, + 2.4254125314591524, + 2.268597034912722, + 2.3499931184699827, + 2.40663918920973, + 2.399849049955677, + 2.3574209850276624, + 2.4248852264379783, + 2.3695148515236597 + ], + "raw_time_brier": 0.0037783572557740486, + "raw_timepoint_brier": [ + 0.0017758263275027275, + 0.0024833399802446365, + 0.003192280884832144, + 0.0035313323605805635, + 0.003529897890985012, + 0.003528520930558443, + 0.0035275781992822886, + 0.003850433276966214, + 0.004183760844171047, + 0.0045323423109948635, + 0.004530877806246281, + 0.005226723849773407, + 0.005225729662925005 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.0010707878382485072, + 0.0012546523543537009, + 0.001338116458681522, + 0.0014548126905387306, + 0.0015549602441484293, + 0.0016384870435165904, + 0.0017384246308832327, + 0.0018885947476898898, + 0.0019219638049472586, + 0.0021554520571891865, + 0.002205400679200101 + ] + }, + "N39": { + "normalized_time_brier": 0.854129609694716, + "normalized_timepoint_brier": [ + 0.7068230670138902, + 0.800941228256913, + 0.8997931349126485, + 0.9281351942791081, + 0.9209160708138652, + 0.8829696046914115, + 0.8967004587460293, + 0.8721771686991956, + 0.8665404595953121, + 0.8609891228308533, + 0.8386895954502083, + 0.816152943243009, + 0.8128568774988623 + ], + "raw_time_brier": 0.024010131923625104, + "raw_timepoint_brier": [ + 0.006295479834079742, + 0.012065890245139599, + 0.01706353761255741, + 0.020633414387702942, + 0.02317030355334282, + 0.02463645674288273, + 0.026827121153473854, + 0.027921931818127632, + 0.029415909200906754, + 0.03052658773958683, + 0.03092125803232193, + 0.031321071088314056, + 0.03133275359869003 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.008906726630578437, + 0.015064638726862112, + 0.018963845077806615, + 0.02223104404927681, + 0.025160059952983472, + 0.02790181747138726, + 0.029917594991519955, + 0.03201405955142309, + 0.033946377085086646, + 0.03545525364968399, + 0.0368685365838161, + 0.03837647263006712, + 0.03854645813553308 + ] + }, + "N40": { + "normalized_time_brier": 2.1425328751120647, + "normalized_timepoint_brier": [ + 1.8112043703883514, + 1.7650646589025492, + 2.15245839830398, + 2.3124878039800674, + 2.027083461929626, + 2.135998900635836, + 2.050951265138062, + 2.215744379459045, + 2.271149335050911, + 2.2491684581118814, + 2.3471372224799567, + 2.257148195816562, + 2.257330926260018 + ], + "raw_time_brier": 0.006270078960089729, + "raw_timepoint_brier": [ + 0.0018934397958219051, + 0.0026531575713306665, + 0.004179529380053282, + 0.004935864824801683, + 0.004964727442711592, + 0.0060853250324726105, + 0.006094466894865036, + 0.007198067381978035, + 0.007927498780190945, + 0.008317609317600727, + 0.009084266610443592, + 0.009088168852031231, + 0.009088904596865177 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.0010454037251555004, + 0.0015031503565315846, + 0.0019417468803794415, + 0.0021344392892825082, + 0.002449197349765538, + 0.0028489364065970046, + 0.0029715317952495475, + 0.0032486000861414264, + 0.003490522907430585, + 0.0036980819678500846, + 0.0038703602513896766, + 0.004026394398416286, + 0.0040263943984162835 + ] + }, + "N73": { + "normalized_time_brier": 1.1195526492238985, + "normalized_timepoint_brier": [ + 0.3528481174726039, + 0.3522617043927312, + 0.7016464369371533, + 0.7009986438788474, + 0.70106954080984, + 0.7012598216533661, + 1.054408960044384, + 1.3872305862605572, + 1.5944504978636291, + 1.865627151891625, + 1.7318129097892867, + 1.7053446556194962, + 1.7052254132971607 + ], + "raw_time_brier": 0.0012183436483610421, + "raw_timepoint_brier": [ + 0.0003528481174726039, + 0.0003522617043927312, + 0.0007016464369371533, + 0.0007009986438788474, + 0.00070106954080984, + 0.0007012598216533661, + 0.001054408960044384, + 0.0013872305862605572, + 0.001699539483524859, + 0.002050774870440364, + 0.002047542715445161, + 0.0020445147529244423, + 0.002044371794909239 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010659092181300306, + 0.0010992415437141398, + 0.0011823117288658448, + 0.0011988865395551004, + 0.0011988865395550945 + ] + }, + "N99": { + "normalized_time_brier": 1.5406888157415848, + "normalized_timepoint_brier": [ + 0.714158988557756, + 1.0712294606491923, + 1.071841106750071, + 1.072205021046102, + 1.0730094509199262, + 1.0735875694081187, + 1.7870403826236725, + 1.7884952249005437, + 1.7887073336169124, + 2.145081991329789, + 2.1468044724315405, + 2.148360712453723, + 2.1484328899532557 + ], + "raw_time_brier": 0.0015406888157415849, + "raw_timepoint_brier": [ + 0.000714158988557756, + 0.0010712294606491923, + 0.001071841106750071, + 0.001072205021046102, + 0.0010730094509199262, + 0.0010735875694081187, + 0.0017870403826236725, + 0.0017884952249005437, + 0.0017887073336169124, + 0.002145081991329789, + 0.0021468044724315405, + 0.002148360712453723, + 0.0021484328899532557 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "O69": { + "normalized_time_brier": 1.5220838072659366, + "normalized_timepoint_brier": [ + 0.013191255675337743, + 0.9420328424312174, + 1.2735832715407014, + 1.2704144464805722, + 1.5433666994795203, + 1.5363182174041867, + 1.8921942682936788, + 1.8918183632194996, + 1.8855283269658685, + 1.8851631321012974, + 1.8847858300432563, + 1.884401310235262, + 1.8842915305867791 + ], + "raw_time_brier": 0.0015220838072659366, + "raw_timepoint_brier": [ + 1.3191255675337743e-05, + 0.0009420328424312174, + 0.0012735832715407014, + 0.0012704144464805722, + 0.0015433666994795203, + 0.0015363182174041867, + 0.0018921942682936788, + 0.0018918183632194996, + 0.0018855283269658685, + 0.0018851631321012974, + 0.0018847858300432563, + 0.001884401310235262, + 0.0018842915305867791 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "O99": { + "normalized_time_brier": 0.6473985746337209, + "normalized_timepoint_brier": [ + 0.008291393896797672, + 0.024409418983850628, + 0.39118167478591204, + 0.40153248119167984, + 0.4042666114401072, + 0.41048479033634067, + 0.42098882840946317, + 0.4241133574396372, + 1.1805397225543857, + 1.1835276382043958, + 1.1885043932124972, + 1.1890921741724014, + 1.1892489856109023 + ], + "raw_time_brier": 0.0006473985746337208, + "raw_timepoint_brier": [ + 8.291393896797672e-06, + 2.4409418983850628e-05, + 0.00039118167478591204, + 0.00040153248119167984, + 0.0004042666114401072, + 0.00041048479033634067, + 0.00042098882840946317, + 0.0004241133574396372, + 0.0011805397225543857, + 0.0011835276382043958, + 0.0011885043932124972, + 0.0011890921741724014, + 0.0011892489856109023 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001 + ] + }, + "Q21": { + "normalized_time_brier": 0.683082852223432, + "normalized_timepoint_brier": [ + 0.00025638905754021835, + 0.3556363226380199, + 0.35613254294730723, + 0.3566530649550259, + 0.6976230408267601, + 0.6354667497103317, + 0.8997350022866553, + 0.8300017836272279, + 0.7991992319786151, + 0.7707103430120643, + 0.9656449385834784, + 1.1065073462403998, + 1.1065103230411897 + ], + "raw_time_brier": 0.000902416031102313, + "raw_timepoint_brier": [ + 2.5638905754021835e-07, + 0.0003556363226380199, + 0.00035613254294730723, + 0.0003566530649550259, + 0.0007112369639798999, + 0.0007115163607522845, + 0.0010674205841496587, + 0.0010678187245503068, + 0.0010682059219107032, + 0.0010686813620850444, + 0.001419478445313871, + 0.0017741834744811058, + 0.0017741882475093007 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.00101951472694624, + 0.0011196752010653884, + 0.001186372188963233, + 0.0012865258191178631, + 0.0013365952808364137, + 0.0013866186846649283, + 0.001469979687768186, + 0.0016034086718983668, + 0.0016034086718983613 + ] + }, + "U07": { + "normalized_time_brier": 0.23389588846569567, + "normalized_timepoint_brier": [ + 0.0005669390361617843, + 0.0028704987471428467, + 0.007628098501299974, + 0.009373206012242008, + 0.016326899640262127, + 0.020841143850702792, + 0.03041178388230037, + 0.036202854971634224, + 0.04141326280659996, + 0.37954715662635863, + 0.6714803736140694, + 0.9182094761584281, + 0.9057748562068414 + ], + "raw_time_brier": 0.00026419204822157274, + "raw_timepoint_brier": [ + 5.669390361617843e-07, + 2.8704987471428467e-06, + 7.628098501299974e-06, + 9.373206012242008e-06, + 1.6326899640262127e-05, + 2.0841143850702792e-05, + 3.041178388230037e-05, + 3.6202854971634224e-05, + 4.141326280659996e-05, + 0.00037954715662635863, + 0.0007245950400829315, + 0.001082172035239637, + 0.0010825477074831724 + ], + "reason": null, + "horizons_days": [ + 30, + 60, + 90, + 120, + 150, + 180, + 210, + 240, + 270, + 300, + 330, + 360, + 365 + ], + "normalization_denominator": [ + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.001, + 0.0010791008472563184, + 0.0011785677052334393, + 0.0011951620207438871 + ] + } + }, + "discrimination": { + "A04": { + "time_averaged_auroc": 0.7876401540667703, + "time_averaged_auprc": 0.06277396049395054, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.8180400623725561, + "auprc": 0.007845594521016281, + "brier": 0.0010845015127120014, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.002115685497436148, + "calibration_in_the_large": 0.0010373246059911443, + "expected_calibration_error_10bin": 0.0010373246059911443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.7708108108108108, + "auprc": 0.03717660834481222, + "brier": 0.0024936018884589373, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.003309976544205828, + "calibration_in_the_large": 0.0007938011308341528, + "expected_calibration_error_10bin": 0.0007938011308341528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 14, + "negatives": 2768, + "auroc": 0.774489058629232, + "auprc": 0.05287303962776386, + "brier": 0.0049728411291243115, + "calibration": { + "observed_rate": 0.0050323508267433505, + "mean_prediction": 0.004725809675127187, + "calibration_in_the_large": -0.00030654115161616365, + "expected_calibration_error_10bin": 0.00030654115161616344, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 18, + "negatives": 2764, + "auroc": 0.7482312268853514, + "auprc": 0.07599386006916978, + "brier": 0.006393601173999598, + "calibration": { + "observed_rate": 0.006470165348670022, + "mean_prediction": 0.005605191546536426, + "calibration_in_the_large": -0.0008649738021335954, + "expected_calibration_error_10bin": 0.0010815792558956196, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 20, + "negatives": 2762, + "auroc": 0.7678131788559015, + "auprc": 0.07625875031612948, + "brier": 0.007076950594277115, + "calibration": { + "observed_rate": 0.007189072609633357, + "mean_prediction": 0.006117093245997158, + "calibration_in_the_large": -0.001071979363636199, + "expected_calibration_error_10bin": 0.0015601428987477896, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 21, + "negatives": 2761, + "auroc": 0.7767372070160915, + "auprc": 0.0744735837459537, + "brier": 0.007440500595193437, + "calibration": { + "observed_rate": 0.007548526240115025, + "mean_prediction": 0.006553028986665025, + "calibration_in_the_large": -0.0009954972534500003, + "expected_calibration_error_10bin": 0.0019962311402023447, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 22, + "negatives": 2760, + "auroc": 0.7879446640316206, + "auprc": 0.07973305605307018, + "brier": 0.007750909930225727, + "calibration": { + "observed_rate": 0.007907979870596693, + "mean_prediction": 0.007107916850884399, + "calibration_in_the_large": -0.0008000630197122936, + "expected_calibration_error_10bin": 0.0019995231628674066, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 23, + "negatives": 2759, + "auroc": 0.7963660431473281, + "auprc": 0.07878124575748585, + "brier": 0.00812411141393744, + "calibration": { + "observed_rate": 0.00826743350107836, + "mean_prediction": 0.0076891722756966974, + "calibration_in_the_large": -0.000578261225381663, + "expected_calibration_error_10bin": 0.003029817372940588, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 25, + "negatives": 2757, + "auroc": 0.7897569822270584, + "auprc": 0.0745567496131048, + "brier": 0.008843742383988764, + "calibration": { + "observed_rate": 0.008986340762041696, + "mean_prediction": 0.00820251873924178, + "calibration_in_the_large": -0.0007838220227999165, + "expected_calibration_error_10bin": 0.0030326127297864956, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 26, + "negatives": 2756, + "auroc": 0.7982443898626772, + "auprc": 0.07641438510689487, + "brier": 0.009182852679046977, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.008719875246740965, + "calibration_in_the_large": -0.0006259191457823991, + "expected_calibration_error_10bin": 0.002979275409130276, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 27, + "negatives": 2755, + "auroc": 0.8061437117698461, + "auprc": 0.06060926957848076, + "brier": 0.009544163959338452, + "calibration": { + "observed_rate": 0.009705248023005032, + "mean_prediction": 0.009248946029783694, + "calibration_in_the_large": -0.00045630199322133774, + "expected_calibration_error_10bin": 0.0026711562000871023, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.8023723336297707, + "auprc": 0.06068096464546893, + "brier": 0.010247093002035315, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.009711647379418131, + "calibration_in_the_large": -0.0007125079045502379, + "expected_calibration_error_10bin": 0.003131963656787573, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.8023723336297707, + "auprc": 0.06066437904200629, + "brier": 0.010248316832930624, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.009732276080078105, + "calibration_in_the_large": -0.0006918792038902635, + "expected_calibration_error_10bin": 0.003119813170506695, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + } + ], + "reason": null + }, + "A08": { + "time_averaged_auroc": 0.8378891008130456, + "time_averaged_auprc": 0.11697718977569187, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7753999289015286, + "auprc": 0.018847947908795622, + "brier": 0.0017660210595364244, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0006766110287327756, + "calibration_in_the_large": -0.001097696991139474, + "expected_calibration_error_10bin": 0.001097696991139474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.8276668191289323, + "auprc": 0.05788436395129924, + "brier": 0.002451635025591646, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.001315997204894839, + "calibration_in_the_large": -0.001168034022926311, + "expected_calibration_error_10bin": 0.001168034022926311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.8281750266808965, + "auprc": 0.09617993359435546, + "brier": 0.0024379392490717776, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.001961359658842391, + "calibration_in_the_large": -0.0005226715689787588, + "expected_calibration_error_10bin": 0.0005226715689787588, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.8305636021751284, + "auprc": 0.16901193097803024, + "brier": 0.0024201712089427065, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.002794312088545864, + "calibration_in_the_large": 0.0003102808607247142, + "expected_calibration_error_10bin": 0.0003102808607247142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.8583333333333333, + "auprc": 0.1387890042780103, + "brier": 0.003443833056419069, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.003134657614595879, + "calibration_in_the_large": -0.0004139584251486206, + "expected_calibration_error_10bin": 0.0004139584251486206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8490462156297568, + "auprc": 0.12884396221891692, + "brier": 0.0037886848833883287, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0036514960208794407, + "calibration_in_the_large": -0.0002519816228395088, + "expected_calibration_error_10bin": 0.0002519816228395088, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8482041649123944, + "auprc": 0.12962387315405752, + "brier": 0.0037816301315357435, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0041068553960313245, + "calibration_in_the_large": 0.00020337775231237497, + "expected_calibration_error_10bin": 0.000836415000191817, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8470706351005602, + "auprc": 0.12973738832806744, + "brier": 0.003779688153202643, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.004447380231656793, + "calibration_in_the_large": 0.0005439025879378431, + "expected_calibration_error_10bin": 0.0010923234862210232, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8466172231758267, + "auprc": 0.13073756727725494, + "brier": 0.0037783266090594724, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.004798425851906986, + "calibration_in_the_large": 0.0008949482081880367, + "expected_calibration_error_10bin": 0.001427648952499503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8460018784208311, + "auprc": 0.12994425451215205, + "brier": 0.0037788074797127143, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.005079250401419475, + "calibration_in_the_large": 0.0011757727577005259, + "expected_calibration_error_10bin": 0.001701307090472044, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8455808530621498, + "auprc": 0.1306564231704552, + "brier": 0.003780906323788934, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.005536725788455748, + "calibration_in_the_large": 0.0016332481447367984, + "expected_calibration_error_10bin": 0.0020011991655996026, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8450626680053114, + "auprc": 0.13014938650550884, + "brier": 0.0037900506745679402, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0060989959299212245, + "calibration_in_the_large": 0.002195518286202275, + "expected_calibration_error_10bin": 0.0023032559924242263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8448359620429445, + "auprc": 0.13029743120709056, + "brier": 0.0037908173905043816, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.006190831917243199, + "calibration_in_the_large": 0.0022873542735242494, + "expected_calibration_error_10bin": 0.002287354273524249, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "A41": { + "time_averaged_auroc": 0.7480020710253648, + "time_averaged_auprc": 0.05934303887096384, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2664, + "positives": 5, + "negatives": 2659, + "auroc": 0.7004136893569011, + "auprc": 0.009142257416332351, + "brier": 0.0019038240746429617, + "calibration": { + "observed_rate": 0.0018768768768768769, + "mean_prediction": 0.003990968083145618, + "calibration_in_the_large": 0.002114091206268741, + "expected_calibration_error_10bin": 0.002114091206268741, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 19, + "negatives": 2645, + "auroc": 0.7784300069644812, + "auprc": 0.037299881943418045, + "brier": 0.0070960766629992135, + "calibration": { + "observed_rate": 0.007132132132132132, + "mean_prediction": 0.009028503488944363, + "calibration_in_the_large": 0.0018963713568122308, + "expected_calibration_error_10bin": 0.0018963713568122306, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 27, + "negatives": 2637, + "auroc": 0.759013469290299, + "auprc": 0.04686915230360125, + "brier": 0.010048396308914484, + "calibration": { + "observed_rate": 0.010135135135135136, + "mean_prediction": 0.012158605048646243, + "calibration_in_the_large": 0.002023469913511107, + "expected_calibration_error_10bin": 0.0020234699135111087, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 33, + "negatives": 2631, + "auroc": 0.7490757057461732, + "auprc": 0.05409505513945959, + "brier": 0.012209276967498565, + "calibration": { + "observed_rate": 0.012387387387387387, + "mean_prediction": 0.014326796007472687, + "calibration_in_the_large": 0.0019394086200852992, + "expected_calibration_error_10bin": 0.0019394086200853, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 40, + "negatives": 2624, + "auroc": 0.7297160823170732, + "auprc": 0.054162823349286446, + "brier": 0.014842632021832334, + "calibration": { + "observed_rate": 0.015015015015015015, + "mean_prediction": 0.01641179675177798, + "calibration_in_the_large": 0.0013967817367629646, + "expected_calibration_error_10bin": 0.0020261856256588023, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 49, + "negatives": 2615, + "auroc": 0.743380028875795, + "auprc": 0.058064491006619874, + "brier": 0.018051979182200348, + "calibration": { + "observed_rate": 0.01839339339339339, + "mean_prediction": 0.01785226628462815, + "calibration_in_the_large": -0.0005411271087652422, + "expected_calibration_error_10bin": 0.005407455881605083, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 54, + "negatives": 2610, + "auroc": 0.743933588761175, + "auprc": 0.06593615498461336, + "brier": 0.019772529274056407, + "calibration": { + "observed_rate": 0.02027027027027027, + "mean_prediction": 0.01988770002481306, + "calibration_in_the_large": -0.0003825702454572123, + "expected_calibration_error_10bin": 0.006178021283199565, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 57, + "negatives": 2607, + "auroc": 0.7498637272121615, + "auprc": 0.06883329793309541, + "brier": 0.020865624258372333, + "calibration": { + "observed_rate": 0.021396396396396396, + "mean_prediction": 0.021282212083202717, + "calibration_in_the_large": -0.00011418431319367914, + "expected_calibration_error_10bin": 0.006178383979510121, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 63, + "negatives": 2601, + "auroc": 0.7595613408762197, + "auprc": 0.0736881992465167, + "brier": 0.02298793214277315, + "calibration": { + "observed_rate": 0.02364864864864865, + "mean_prediction": 0.02267343646711855, + "calibration_in_the_large": -0.0009752121815300996, + "expected_calibration_error_10bin": 0.008000228787518377, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 66, + "negatives": 2598, + "auroc": 0.7525660764690788, + "auprc": 0.07233316957463144, + "brier": 0.024214392020063, + "calibration": { + "observed_rate": 0.024774774774774775, + "mean_prediction": 0.024161574707310198, + "calibration_in_the_large": -0.0006132000674645768, + "expected_calibration_error_10bin": 0.009144033476282806, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 70, + "negatives": 2594, + "auroc": 0.7540973675514925, + "auprc": 0.07590620972469002, + "brier": 0.025654957478187752, + "calibration": { + "observed_rate": 0.026276276276276277, + "mean_prediction": 0.0256323495003224, + "calibration_in_the_large": -0.0006439267759538771, + "expected_calibration_error_10bin": 0.010794350591970361, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.7520133409257301, + "auprc": 0.07764246682033242, + "brier": 0.027868063144439917, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.02686307850993356, + "calibration_in_the_large": -0.0016654500185949682, + "expected_calibration_error_10bin": 0.012900661588936636, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.7519624989831611, + "auprc": 0.07748634587993311, + "brier": 0.027893275803915936, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.027036221606791328, + "calibration_in_the_large": -0.0014923069217371993, + "expected_calibration_error_10bin": 0.012973812950159567, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + } + ], + "reason": null + }, + "B00": { + "time_averaged_auroc": 0.8024284763231627, + "time_averaged_auprc": 0.025272296983833802, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 2.4042215336779303e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023241376407399057, + "calibration_in_the_large": 0.00023241376407399057, + "expected_calibration_error_10bin": 0.00023241376407399057, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9932576295244855, + "auprc": 0.05, + "brier": 0.0003503639869673488, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0005473986551436131, + "calibration_in_the_large": 0.0001926629332564191, + "expected_calibration_error_10bin": 0.0001926629332564191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.99361249112846, + "auprc": 0.05263157894736842, + "brier": 0.00037601947499250036, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0011244994256859517, + "calibration_in_the_large": 0.0007697637037987577, + "expected_calibration_error_10bin": 0.0007697637037987577, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9932576295244855, + "auprc": 0.05, + "brier": 0.00038671188590853146, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.001340151842060521, + "calibration_in_the_large": 0.000985416120173327, + "expected_calibration_error_10bin": 0.0009854161201733273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.7220643939393939, + "auprc": 0.019271911446768115, + "brier": 0.0011282541050201655, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0016700814661821794, + "calibration_in_the_large": 0.0006058743005205973, + "expected_calibration_error_10bin": 0.000613987778414702, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.7202888257575758, + "auprc": 0.019294336820110017, + "brier": 0.0011481645282388347, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0018500097339401195, + "calibration_in_the_large": 0.0007858025682785374, + "expected_calibration_error_10bin": 0.0007858025682785374, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7420959147424512, + "auprc": 0.016024953140328365, + "brier": 0.0015212812198147482, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0020142207372842807, + "calibration_in_the_large": 0.0005952778497355046, + "expected_calibration_error_10bin": 0.0011003500578733699, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7425399644760213, + "auprc": 0.01607089043502073, + "brier": 0.0015271602154289616, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002088727361791007, + "calibration_in_the_large": 0.0006697844742422311, + "expected_calibration_error_10bin": 0.0011335048938774027, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7436056838365896, + "auprc": 0.016035851977794932, + "brier": 0.0015380804288720868, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002257778802709907, + "calibration_in_the_large": 0.0008388359151611309, + "expected_calibration_error_10bin": 0.0011066638715131899, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7480461811722913, + "auprc": 0.016012769940043386, + "brier": 0.001545921183411423, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0024415159517655383, + "calibration_in_the_large": 0.0010225730642167623, + "expected_calibration_error_10bin": 0.0010225730642167618, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7437833037300178, + "auprc": 0.015964456327018078, + "brier": 0.0015616688396614276, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002610155718854863, + "calibration_in_the_large": 0.001191212831306087, + "expected_calibration_error_10bin": 0.0011912128313060868, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7433392539964476, + "auprc": 0.015978229939282395, + "brier": 0.001580495508615533, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0027390174093595556, + "calibration_in_the_large": 0.0013200745218107796, + "expected_calibration_error_10bin": 0.0013200745218107796, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7432504440497336, + "auprc": 0.01598258483227111, + "brier": 0.0015815608348232768, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002747707269843937, + "calibration_in_the_large": 0.0013287643822951609, + "expected_calibration_error_10bin": 0.0013287643822951609, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": null + }, + "B02": { + "time_averaged_auroc": 0.6102196353345982, + "time_averaged_auprc": 0.0009078847035210871, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.160539780100866e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001513366870066706, + "calibration_in_the_large": 0.0001513366870066706, + "expected_calibration_error_10bin": 0.0001513366870066706, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 7.038541270777056e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002938113138635175, + "calibration_in_the_large": 0.0002938113138635175, + "expected_calibration_error_10bin": 0.0002938113138635175, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.636717368234878, + "auprc": 0.0009727626459143969, + "brier": 0.0003546669524846148, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0003883980394148959, + "calibration_in_the_large": 3.479125016454229e-05, + "expected_calibration_error_10bin": 3.479125016454229e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6218606296427308, + "auprc": 0.0009345794392523365, + "brier": 0.0003551355409249262, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0004593059603391495, + "calibration_in_the_large": 0.00010569917108879586, + "expected_calibration_error_10bin": 0.00010569917108879586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6091262822780332, + "auprc": 0.0009041591320072332, + "brier": 0.00035568451591693796, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005591048455660961, + "calibration_in_the_large": 0.00020549805631574252, + "expected_calibration_error_10bin": 0.00020549805631574252, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6077113547930668, + "auprc": 0.0009009009009009009, + "brier": 0.00035640506983005923, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006583374040361594, + "calibration_in_the_large": 0.0003047306147858058, + "expected_calibration_error_10bin": 0.0003047306147858058, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6041740360806509, + "auprc": 0.0008928571428571428, + "brier": 0.0003576804422899254, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.000789692977538334, + "calibration_in_the_large": 0.00043608618828798034, + "expected_calibration_error_10bin": 0.00043608618828798034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6236292889989388, + "auprc": 0.0009389671361502347, + "brier": 0.0003590120036452306, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0009080953180455382, + "calibration_in_the_large": 0.0005544885287951846, + "expected_calibration_error_10bin": 0.0005544885287951846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6211531659002476, + "auprc": 0.0009328358208955224, + "brier": 0.00035972521649627347, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0010095556557505225, + "calibration_in_the_large": 0.0006559488665001689, + "expected_calibration_error_10bin": 0.0006559488665001689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6116024053767244, + "auprc": 0.0009099181073703367, + "brier": 0.0003600913821864779, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0010506880996302564, + "calibration_in_the_large": 0.0006970813103799028, + "expected_calibration_error_10bin": 0.0006970813103799028, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5956844711708525, + "auprc": 0.0008741258741258741, + "brier": 0.0003611666020976767, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001166087555141812, + "calibration_in_the_large": 0.0008124807658914583, + "expected_calibration_error_10bin": 0.0008124807658914583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5903784931022286, + "auprc": 0.0008628127696289905, + "brier": 0.00036216233934848206, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001243054276248915, + "calibration_in_the_large": 0.0008894474869985613, + "expected_calibration_error_10bin": 0.0008894474869985613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5903784931022286, + "auprc": 0.0008628127696289905, + "brier": 0.00036221013499019677, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0012461727799744572, + "calibration_in_the_large": 0.0008925659907241036, + "expected_calibration_error_10bin": 0.0008925659907241036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + }, + "B18": { + "time_averaged_auroc": 0.9423486744245194, + "time_averaged_auprc": 0.08458129865572686, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2782, + "positives": 1, + "negatives": 2781, + "auroc": 0.9381517439769866, + "auprc": 0.005780346820809248, + "brier": 0.00036249100064592304, + "calibration": { + "observed_rate": 0.0003594536304816679, + "mean_prediction": 0.0003726081604654419, + "calibration_in_the_large": 1.315452998377402e-05, + "expected_calibration_error_10bin": 1.315452998377402e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9519011634880653, + "auprc": 0.06387159981558323, + "brier": 0.0010592478476763884, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0008048475673009365, + "calibration_in_the_large": -0.000273513324144067, + "expected_calibration_error_10bin": 0.000273513324144067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9513014273719563, + "auprc": 0.049931693989071047, + "brier": 0.0010666420993757544, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0011498776126628062, + "calibration_in_the_large": 7.15167212178027e-05, + "expected_calibration_error_10bin": 7.151672121780255e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9498620606932949, + "auprc": 0.0635671037331088, + "brier": 0.001064812186162529, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.001324262645035982, + "calibration_in_the_large": 0.00024590175359097844, + "expected_calibration_error_10bin": 0.0002459017535909784, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 4, + "negatives": 2778, + "auroc": 0.9483441324694024, + "auprc": 0.0741753361156216, + "brier": 0.001421058859411182, + "calibration": { + "observed_rate": 0.0014378145219266715, + "mean_prediction": 0.0017116245768698296, + "calibration_in_the_large": 0.0002738100549431581, + "expected_calibration_error_10bin": 0.000273810054943158, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9574360821029888, + "auprc": 0.10684301657193825, + "brier": 0.0016992191207526365, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0018863615104113003, + "calibration_in_the_large": 8.909335800296098e-05, + "expected_calibration_error_10bin": 0.0004560635851892862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9568599207778178, + "auprc": 0.13596605338324325, + "brier": 0.0016967581098116492, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.002050066571251332, + "calibration_in_the_large": 0.00025279841884299267, + "expected_calibration_error_10bin": 0.0003689651719468784, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9577961829312207, + "auprc": 0.1362482526712006, + "brier": 0.0016998256034700498, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0021902224731282934, + "calibration_in_the_large": 0.0003929543207199541, + "expected_calibration_error_10bin": 0.0006671860678234116, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9262805662805663, + "auprc": 0.10219686598722423, + "brier": 0.0024189803091715393, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0023214947778963145, + "calibration_in_the_large": -0.00019468063547536073, + "expected_calibration_error_10bin": 0.00039691835961912865, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9284942084942085, + "auprc": 0.09103709402182832, + "brier": 0.002428490478752181, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.002503702337263773, + "calibration_in_the_large": -1.2473076107902357e-05, + "expected_calibration_error_10bin": 0.00026827569694492387, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9276705276705277, + "auprc": 0.10257015706548576, + "brier": 0.002443590583626943, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0027654840426531466, + "calibration_in_the_large": 0.0002493086292814713, + "expected_calibration_error_10bin": 0.0002493086292814717, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.9282173756308579, + "auprc": 0.08368532934787405, + "brier": 0.0028070936345488576, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.0028964609241346017, + "calibration_in_the_large": 2.083188028125871e-05, + "expected_calibration_error_10bin": 0.0005077061796842137, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.9282173756308579, + "auprc": 0.0836840330014609, + "brier": 0.002807418978161419, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.002905670146210001, + "calibration_in_the_large": 3.0041102356658054e-05, + "expected_calibration_error_10bin": 0.0005036784909341412, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + } + ], + "reason": null + }, + "B19": { + "time_averaged_auroc": 0.8737156419457128, + "time_averaged_auprc": 0.08270317795426131, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.827856106157993, + "auprc": 0.021938710341667323, + "brier": 0.002523365455123251, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0004819621029329358, + "calibration_in_the_large": -0.0020515160005777407, + "expected_calibration_error_10bin": 0.0020515160005777407, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.8749545619774627, + "auprc": 0.07254011709078974, + "brier": 0.0042842368235705905, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.0008962057462587184, + "calibration_in_the_large": -0.003446899574045299, + "expected_calibration_error_10bin": 0.003446899574045299, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.8818005573730765, + "auprc": 0.07203240442484311, + "brier": 0.004270227159722788, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.001194917209634482, + "calibration_in_the_large": -0.0031481881106695357, + "expected_calibration_error_10bin": 0.0031481881106695357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 14, + "negatives": 2749, + "auroc": 0.8606506262017357, + "auprc": 0.08087047816018249, + "brier": 0.004968231184916854, + "calibration": { + "observed_rate": 0.005066956207021353, + "mean_prediction": 0.0013477713081105633, + "calibration_in_the_large": -0.00371918489891079, + "expected_calibration_error_10bin": 0.0037942378196464534, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.870402717127608, + "auprc": 0.08810315432161105, + "brier": 0.005308464091348447, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.0014647870811031493, + "calibration_in_the_large": -0.003964094569276872, + "expected_calibration_error_10bin": 0.0040447140471746796, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.870790878214459, + "auprc": 0.08827728123425166, + "brier": 0.005300587930085894, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.0016076469993701419, + "calibration_in_the_large": -0.0038212346510098794, + "expected_calibration_error_10bin": 0.003907413950076225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 16, + "negatives": 2747, + "auroc": 0.8777302511831089, + "auprc": 0.08962971958361916, + "brier": 0.005645404350210544, + "calibration": { + "observed_rate": 0.00579080709373869, + "mean_prediction": 0.001762751646541208, + "calibration_in_the_large": -0.004028055447197481, + "expected_calibration_error_10bin": 0.0041206155281133545, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8835311254873399, + "auprc": 0.09393853033328754, + "brier": 0.005989812817446358, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0018670258360610305, + "calibration_in_the_large": -0.004285706701036327, + "expected_calibration_error_10bin": 0.0043810216469365474, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8830170086971424, + "auprc": 0.09379483647718899, + "brier": 0.005982389432809397, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.001990422556633125, + "calibration_in_the_large": -0.0041623099804642336, + "expected_calibration_error_10bin": 0.004261003526020069, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8826099995715694, + "auprc": 0.09343161629711266, + "brier": 0.005975920516795996, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002120899957464458, + "calibration_in_the_large": -0.0040318325796329, + "expected_calibration_error_10bin": 0.004031832579632901, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8820316181825971, + "auprc": 0.09331160867736486, + "brier": 0.005970788284654082, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002243376369225688, + "calibration_in_the_large": -0.003909356167871671, + "expected_calibration_error_10bin": 0.003909356167871671, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.881453236793625, + "auprc": 0.09359318296026746, + "brier": 0.005964997407059547, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002367995699375543, + "calibration_in_the_large": -0.003784736837721815, + "expected_calibration_error_10bin": 0.003784736837721815, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8814746583265498, + "auprc": 0.09367967350321105, + "brier": 0.005964618479752194, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0023779306984842642, + "calibration_in_the_large": -0.003774801838613094, + "expected_calibration_error_10bin": 0.0037748018386130934, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + } + ], + "reason": null + }, + "B20": { + "time_averaged_auroc": 0.9899954837594791, + "time_averaged_auprc": 0.25131096561959204, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.759933069316497e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 7.094447724194433e-05, + "calibration_in_the_large": 7.094447724194433e-05, + "expected_calibration_error_10bin": 7.094447724194433e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 9.353179332487731e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00010946406764749657, + "calibration_in_the_large": 0.00010946406764749657, + "expected_calibration_error_10bin": 0.00010946406764749657, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9773691654879774, + "auprc": 0.015384615384615385, + "brier": 0.00035449390352917145, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00013808414461984587, + "calibration_in_the_large": -0.00021539765106767624, + "expected_calibration_error_10bin": 0.00021539765106767624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.99103562160887, + "auprc": 0.2638888888888889, + "brier": 0.0010442759584952585, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0001621188763020938, + "calibration_in_the_large": -0.0008983265107604726, + "expected_calibration_error_10bin": 0.0008983265107604726, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9911535739561217, + "auprc": 0.24782608695652172, + "brier": 0.0010422810961395724, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.00019567337882476832, + "calibration_in_the_large": -0.000864772008237798, + "expected_calibration_error_10bin": 0.000864772008237798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9904458598726115, + "auprc": 0.262987012987013, + "brier": 0.001039466775918907, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.00022640971132849134, + "calibration_in_the_large": -0.000834035675734075, + "expected_calibration_error_10bin": 0.000834035675734075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.992212389380531, + "auprc": 0.31427845528455284, + "brier": 0.0013829269979046194, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.00024690687763043493, + "calibration_in_the_large": -0.0011670203051196535, + "expected_calibration_error_10bin": 0.0012397498547501028, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9915014164305949, + "auprc": 0.2769607843137255, + "brier": 0.0017334368858119287, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.00025836851834354146, + "calibration_in_the_large": -0.001509040460094069, + "expected_calibration_error_10bin": 0.0015839326006581902, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9911473087818697, + "auprc": 0.2757597645799893, + "brier": 0.0017306789794433992, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0002776690993942906, + "calibration_in_the_large": -0.0014897398790433198, + "expected_calibration_error_10bin": 0.0015690983595585014, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9915014164305949, + "auprc": 0.27816091954022987, + "brier": 0.0017294850248167743, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003073715240818946, + "calibration_in_the_large": -0.0014600374543557158, + "expected_calibration_error_10bin": 0.0015494323594264956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9912889518413598, + "auprc": 0.2765597147950089, + "brier": 0.0017261840224379694, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003222862337372521, + "calibration_in_the_large": -0.0014451227447003583, + "expected_calibration_error_10bin": 0.0015367051233790693, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9911473087818697, + "auprc": 0.2763071895424837, + "brier": 0.0017239945352351491, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003388946126618559, + "calibration_in_the_large": -0.0014285143657757546, + "expected_calibration_error_10bin": 0.0015231687328713887, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9911473087818697, + "auprc": 0.2763071895424837, + "brier": 0.0017238554456636564, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003399648608520368, + "calibration_in_the_large": -0.0014274441175855736, + "expected_calibration_error_10bin": 0.0015221779048680164, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "B34": { + "time_averaged_auroc": 0.9785803171295157, + "time_averaged_auprc": 0.08202981061018381, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 2.208114642907912e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00015377495216659776, + "calibration_in_the_large": 0.00015377495216659776, + "expected_calibration_error_10bin": 0.00015377495216659776, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9729586426299046, + "auprc": 0.13157894736842105, + "brier": 0.0006986693836044213, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0003255984815723654, + "calibration_in_the_large": -0.00038086566537217715, + "expected_calibration_error_10bin": 0.00038086566537217715, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.976897689768977, + "auprc": 0.10262345679012345, + "brier": 0.0010448154786367114, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0005330209856072132, + "calibration_in_the_large": -0.0005266752348096007, + "expected_calibration_error_10bin": 0.0005266752348096007, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9762999646268129, + "auprc": 0.05701932111815833, + "brier": 0.0013924883794096058, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007540973283133246, + "calibration_in_the_large": -0.0006588309655757605, + "expected_calibration_error_10bin": 0.0006588309655757605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9754156349487089, + "auprc": 0.05354569016647844, + "brier": 0.001392532866261071, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0008302297837837638, + "calibration_in_the_large": -0.0005826985101053212, + "expected_calibration_error_10bin": 0.0005826985101053212, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9765652635302441, + "auprc": 0.05450904816576458, + "brier": 0.0013905487888109746, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009670926364411879, + "calibration_in_the_large": -0.00044583565744789723, + "expected_calibration_error_10bin": 0.00044583565744789723, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.08156651458529167, + "brier": 0.0017171098419520403, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001127980482756021, + "calibration_in_the_large": -0.0006381798846053354, + "expected_calibration_error_10bin": 0.0006381798846053354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.08124905426783136, + "brier": 0.0017147580350896378, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0012588629436023327, + "calibration_in_the_large": -0.0005072974237590236, + "expected_calibration_error_10bin": 0.0006609184685782214, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806086341118189, + "auprc": 0.08308447238672617, + "brier": 0.00170896778625239, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0014632039358919036, + "calibration_in_the_large": -0.0003029564314694527, + "expected_calibration_error_10bin": 0.0004786194676258948, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.08298470125918252, + "brier": 0.0017074189128810713, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0016317945737292917, + "calibration_in_the_large": -0.00013436579363206459, + "expected_calibration_error_10bin": 0.00032046664316972716, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.980820948336872, + "auprc": 0.08545293539554658, + "brier": 0.0017078668200320598, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0017872190394091266, + "calibration_in_the_large": 2.1058672047770313e-05, + "expected_calibration_error_10bin": 0.0002738578518404999, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.0853717929093408, + "brier": 0.0017082121411185931, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0018221274966978298, + "calibration_in_the_large": 5.596712933647347e-05, + "expected_calibration_error_10bin": 0.000244245733592221, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.0853717929093408, + "brier": 0.001708272073903772, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0018294035864445302, + "calibration_in_the_large": 6.324321908317385e-05, + "expected_calibration_error_10bin": 0.000238057718108915, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "B35": { + "time_averaged_auroc": 0.878783091601644, + "time_averaged_auprc": 0.005036626148736838, + "valid_timepoint_cells": 6, + "timepoints": [ + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.749257868190538e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002568381807307654, + "calibration_in_the_large": 0.0002568381807307654, + "expected_calibration_error_10bin": 0.0002568381807307654, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.7495085101671112e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006132541750149583, + "calibration_in_the_large": 0.0006132541750149583, + "expected_calibration_error_10bin": 0.0006132541750149583, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 4.187365104524971e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008970459193009433, + "calibration_in_the_large": 0.0008970459193009433, + "expected_calibration_error_10bin": 0.0008970459193009433, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 5.7997058933489156e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011298317733358135, + "calibration_in_the_large": 0.0011298317733358135, + "expected_calibration_error_10bin": 0.0011298317733358135, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 6.795431967544791e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012298671782445716, + "calibration_in_the_large": 0.0012298671782445716, + "expected_calibration_error_10bin": 0.0012298671782445716, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 8.42271160407132e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001380460169950275, + "calibration_in_the_large": 0.001380460169950275, + "expected_calibration_error_10bin": 0.001380460169950275, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.1343000966335452e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015936160385160378, + "calibration_in_the_large": 0.0015936160385160378, + "expected_calibration_error_10bin": 0.0015936160385160378, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.8328042328042328, + "auprc": 0.002105263157894737, + "brier": 0.00036345523010731644, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.001714610730755115, + "calibration_in_the_large": 0.0013620014218693605, + "expected_calibration_error_10bin": 0.0013620014218693605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.8395061728395061, + "auprc": 0.0021929824561403508, + "brier": 0.00036571498155218453, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0018965126725910195, + "calibration_in_the_large": 0.0015439033637052648, + "expected_calibration_error_10bin": 0.0015439033637052648, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8985532815808045, + "auprc": 0.006541137326073805, + "brier": 0.0007140086876278808, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.001989953931035598, + "calibration_in_the_large": 0.0012847353132640889, + "expected_calibration_error_10bin": 0.0012847353132640889, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8989061397318278, + "auprc": 0.006517023483919646, + "brier": 0.0007147184557749323, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0020676301986339764, + "calibration_in_the_large": 0.0013624115808624673, + "expected_calibration_error_10bin": 0.0013624115808624673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9015525758645024, + "auprc": 0.006434240362811792, + "brier": 0.0007158835029280062, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.002246735664659498, + "calibration_in_the_large": 0.001541517046887989, + "expected_calibration_error_10bin": 0.001541517046887989, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9013761467889908, + "auprc": 0.0064291101055806935, + "brier": 0.0007161510659471924, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.002266851787142806, + "calibration_in_the_large": 0.001561633169371297, + "expected_calibration_error_10bin": 0.001561633169371297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + } + ], + "reason": null + }, + "B37": { + "time_averaged_auroc": 0.767464258553225, + "time_averaged_auprc": 0.0349091970996885, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.8591485507246377, + "auprc": 0.018199140870818364, + "brier": 0.0028699295323020148, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.001938671343677241, + "calibration_in_the_large": -0.0009515020667273831, + "expected_calibration_error_10bin": 0.0009515020667273831, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.7506962101949388, + "auprc": 0.023262016002362537, + "brier": 0.005367888560585043, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.003735311890344263, + "calibration_in_the_large": -0.0016837632541644074, + "expected_calibration_error_10bin": 0.0016837632541644074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 18, + "negatives": 2750, + "auroc": 0.7448282828282828, + "auprc": 0.02555613026335673, + "brier": 0.006446191657881689, + "calibration": { + "observed_rate": 0.006502890173410405, + "mean_prediction": 0.005236389909233982, + "calibration_in_the_large": -0.0012665002641764232, + "expected_calibration_error_10bin": 0.0015117819800483932, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.7577633582731907, + "auprc": 0.028243788319062227, + "brier": 0.007883200794599565, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.006424882244570753, + "calibration_in_the_large": -0.001523094634041963, + "expected_calibration_error_10bin": 0.002385844939561591, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 23, + "negatives": 2745, + "auroc": 0.7578047042052745, + "auprc": 0.028474637677959668, + "brier": 0.008275647332995533, + "calibration": { + "observed_rate": 0.008309248554913294, + "mean_prediction": 0.007368651207230617, + "calibration_in_the_large": -0.0009405973476826774, + "expected_calibration_error_10bin": 0.002365882342287294, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.7475593334455479, + "auprc": 0.028786675859695195, + "brier": 0.009372809660279728, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.008278200939862552, + "calibration_in_the_large": -0.0011148626439524776, + "expected_calibration_error_10bin": 0.00339385900628721, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 30, + "negatives": 2738, + "auroc": 0.7586803019235452, + "auprc": 0.034126552488978036, + "brier": 0.010742544703053672, + "calibration": { + "observed_rate": 0.01083815028901734, + "mean_prediction": 0.008892405853326488, + "calibration_in_the_large": -0.0019457444356908524, + "expected_calibration_error_10bin": 0.004327756352932932, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 31, + "negatives": 2737, + "auroc": 0.7674873596002216, + "auprc": 0.043296589045819144, + "brier": 0.010997071464406899, + "calibration": { + "observed_rate": 0.011199421965317919, + "mean_prediction": 0.009452657487415934, + "calibration_in_the_large": -0.001746764477901985, + "expected_calibration_error_10bin": 0.0036668669865867884, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 34, + "negatives": 2734, + "auroc": 0.7698373423985542, + "auprc": 0.04368960171612392, + "brier": 0.012079464487299626, + "calibration": { + "observed_rate": 0.012283236994219654, + "mean_prediction": 0.010177616111706148, + "calibration_in_the_large": -0.0021056208825135057, + "expected_calibration_error_10bin": 0.00392587057007078, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 35, + "negatives": 2733, + "auroc": 0.7599811823741571, + "auprc": 0.04281557288873966, + "brier": 0.012477244445730654, + "calibration": { + "observed_rate": 0.012644508670520232, + "mean_prediction": 0.01073284010779736, + "calibration_in_the_large": -0.0019116685627228718, + "expected_calibration_error_10bin": 0.004269812496572399, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 36, + "negatives": 2732, + "auroc": 0.7650378233284529, + "auprc": 0.044957268850545934, + "brier": 0.012818203284680885, + "calibration": { + "observed_rate": 0.01300578034682081, + "mean_prediction": 0.01135781034627459, + "calibration_in_the_large": -0.0016479700005462197, + "expected_calibration_error_10bin": 0.004296140031292031, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7689994216310005, + "auprc": 0.04620351588638252, + "brier": 0.01353080789041306, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.011877710630701612, + "calibration_in_the_large": -0.0018506130687203533, + "expected_calibration_error_10bin": 0.005126793921506319, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7692114902641218, + "auprc": 0.046208072426106694, + "brier": 0.013534447771403387, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.011945422714249927, + "calibration_in_the_large": -0.0017829009851720382, + "expected_calibration_error_10bin": 0.00508545735085735, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + } + ], + "reason": null + }, + "B95": { + "time_averaged_auroc": 0.7140636601546463, + "time_averaged_auprc": 0.036038506203427016, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2678, + "positives": 15, + "negatives": 2663, + "auroc": 0.6790336712980348, + "auprc": 0.012688390146085717, + "brier": 0.005579906697135944, + "calibration": { + "observed_rate": 0.005601194921583271, + "mean_prediction": 0.0045712941142188246, + "calibration_in_the_large": -0.0010299008073644464, + "expected_calibration_error_10bin": 0.0010299008073644464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 27, + "negatives": 2651, + "auroc": 0.7312544532461545, + "auprc": 0.02231207676048918, + "brier": 0.010014876596055865, + "calibration": { + "observed_rate": 0.010082150858849889, + "mean_prediction": 0.00886403744859306, + "calibration_in_the_large": -0.0012181134102568283, + "expected_calibration_error_10bin": 0.0018384567967160371, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 34, + "negatives": 2644, + "auroc": 0.7116334430897926, + "auprc": 0.02458710392355553, + "brier": 0.012637157677341958, + "calibration": { + "observed_rate": 0.012696041822255415, + "mean_prediction": 0.011263838189113947, + "calibration_in_the_large": -0.001432203633141468, + "expected_calibration_error_10bin": 0.00274428592014071, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 39, + "negatives": 2639, + "auroc": 0.693376473217322, + "auprc": 0.026005838010247626, + "brier": 0.014582910186557881, + "calibration": { + "observed_rate": 0.014563106796116505, + "mean_prediction": 0.013368730356817042, + "calibration_in_the_large": -0.0011943764392994636, + "expected_calibration_error_10bin": 0.004264762016463559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.7010080208107522, + "auprc": 0.02837163728400864, + "brier": 0.01576037154158414, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.015269218109065738, + "calibration_in_the_large": -0.00041412767136742197, + "expected_calibration_error_10bin": 0.005351662666015564, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.6998789652431534, + "auprc": 0.028295949330980515, + "brier": 0.01583167934208724, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.016538948102067498, + "calibration_in_the_large": 0.0008556023216343377, + "expected_calibration_error_10bin": 0.00434660957981103, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 51, + "negatives": 2627, + "auroc": 0.7116519999701442, + "auprc": 0.03753753608657917, + "brier": 0.01898726142338727, + "calibration": { + "observed_rate": 0.019044062733383122, + "mean_prediction": 0.017715135437082634, + "calibration_in_the_large": -0.0013289272963004882, + "expected_calibration_error_10bin": 0.006918598818301034, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 54, + "negatives": 2624, + "auroc": 0.7191028681120144, + "auprc": 0.04200516799297982, + "brier": 0.020042672580964316, + "calibration": { + "observed_rate": 0.020164301717699777, + "mean_prediction": 0.018840984214915864, + "calibration_in_the_large": -0.0013233175027839127, + "expected_calibration_error_10bin": 0.006920849748992887, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 56, + "negatives": 2622, + "auroc": 0.7245763866187207, + "auprc": 0.04429601352021332, + "brier": 0.020775040497935025, + "calibration": { + "observed_rate": 0.020911127707244213, + "mean_prediction": 0.019731477462569272, + "calibration_in_the_large": -0.0011796502446749409, + "expected_calibration_error_10bin": 0.007756046274359537, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7313980137509549, + "auprc": 0.0503468518362755, + "brier": 0.022098528387562943, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.020650692640188987, + "calibration_in_the_large": -0.0017540870461440969, + "expected_calibration_error_10bin": 0.007451348529800913, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7308632543926662, + "auprc": 0.05079076211848169, + "brier": 0.022129687799063078, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.021573723276294907, + "calibration_in_the_large": -0.0008310564100381772, + "expected_calibration_error_10bin": 0.00751934422973424, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.7245124877064841, + "auprc": 0.05064883436727917, + "brier": 0.02254331270695538, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.022587999840259353, + "calibration_in_the_large": -0.00019019284084595064, + "expected_calibration_error_10bin": 0.007228871094183949, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.7245375445542074, + "auprc": 0.05061441926737525, + "brier": 0.022548472362536764, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.02272727880078313, + "calibration_in_the_large": -5.091388032217245e-05, + "expected_calibration_error_10bin": 0.006464745836633957, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + } + ], + "reason": null + }, + "B96": { + "time_averaged_auroc": 0.7686123689860468, + "time_averaged_auprc": 0.06918117146593541, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2630, + "positives": 15, + "negatives": 2615, + "auroc": 0.7822052262587635, + "auprc": 0.018065365797984755, + "brier": 0.005649156665069944, + "calibration": { + "observed_rate": 0.005703422053231939, + "mean_prediction": 0.005867935311411748, + "calibration_in_the_large": 0.00016451325817980894, + "expected_calibration_error_10bin": 0.00016451325817980894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 30, + "negatives": 2600, + "auroc": 0.7867179487179488, + "auprc": 0.04220477448430487, + "brier": 0.011118640310366775, + "calibration": { + "observed_rate": 0.011406844106463879, + "mean_prediction": 0.010570977593317519, + "calibration_in_the_large": -0.0008358665131463598, + "expected_calibration_error_10bin": 0.0010014479953646043, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 44, + "negatives": 2586, + "auroc": 0.7693524572874921, + "auprc": 0.055939221098048525, + "brier": 0.01616087180206274, + "calibration": { + "observed_rate": 0.016730038022813688, + "mean_prediction": 0.013136635944873586, + "calibration_in_the_large": -0.0035934020779401013, + "expected_calibration_error_10bin": 0.0040602796342858625, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 52, + "negatives": 2578, + "auroc": 0.770707763919556, + "auprc": 0.06367661379220663, + "brier": 0.019005561390995785, + "calibration": { + "observed_rate": 0.01977186311787072, + "mean_prediction": 0.01545707219361749, + "calibration_in_the_large": -0.00431479092425323, + "expected_calibration_error_10bin": 0.0052710433058554005, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 57, + "negatives": 2573, + "auroc": 0.7668023537273031, + "auprc": 0.06487374532539827, + "brier": 0.020830880002124397, + "calibration": { + "observed_rate": 0.02167300380228137, + "mean_prediction": 0.01734745108160392, + "calibration_in_the_large": -0.004325552720677448, + "expected_calibration_error_10bin": 0.006102472339436313, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 61, + "negatives": 2569, + "auroc": 0.7649209681639216, + "auprc": 0.06771074662480428, + "brier": 0.022259147907222596, + "calibration": { + "observed_rate": 0.023193916349809884, + "mean_prediction": 0.01911709165023976, + "calibration_in_the_large": -0.004076824699570124, + "expected_calibration_error_10bin": 0.007130880152143561, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 70, + "negatives": 2560, + "auroc": 0.7668303571428572, + "auprc": 0.0752330106789969, + "brier": 0.025425866137203164, + "calibration": { + "observed_rate": 0.026615969581749048, + "mean_prediction": 0.02069741448627859, + "calibration_in_the_large": -0.005918555095470457, + "expected_calibration_error_10bin": 0.010071144140340538, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 72, + "negatives": 2558, + "auroc": 0.7674344105638086, + "auprc": 0.07930316992820508, + "brier": 0.02611946356642735, + "calibration": { + "observed_rate": 0.02737642585551331, + "mean_prediction": 0.022206659321522715, + "calibration_in_the_large": -0.005169766533990594, + "expected_calibration_error_10bin": 0.00941199012018365, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 74, + "negatives": 2556, + "auroc": 0.7612189654443176, + "auprc": 0.07879804869272881, + "brier": 0.026894774637797086, + "calibration": { + "observed_rate": 0.028136882129277566, + "mean_prediction": 0.023686894782470935, + "calibration_in_the_large": -0.004449987346806631, + "expected_calibration_error_10bin": 0.00811106775413239, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 77, + "negatives": 2553, + "auroc": 0.7601497601497601, + "auprc": 0.08070296728556028, + "brier": 0.027981112669317198, + "calibration": { + "observed_rate": 0.029277566539923954, + "mean_prediction": 0.024917381569369564, + "calibration_in_the_large": -0.00436018497055439, + "expected_calibration_error_10bin": 0.008546082008791159, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 83, + "negatives": 2547, + "auroc": 0.7639462443413229, + "auprc": 0.08830045653333908, + "brier": 0.02997536487451623, + "calibration": { + "observed_rate": 0.03155893536121673, + "mean_prediction": 0.02612296072102219, + "calibration_in_the_large": -0.005435974640194543, + "expected_calibration_error_10bin": 0.008749643369655733, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 87, + "negatives": 2543, + "auroc": 0.7659565812846624, + "auprc": 0.09219961163331006, + "brier": 0.031323683342112066, + "calibration": { + "observed_rate": 0.03307984790874525, + "mean_prediction": 0.027654448843794827, + "calibration_in_the_large": -0.005425399064950421, + "expected_calibration_error_10bin": 0.008223203968118606, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + { + "valid": 2630, + "positives": 88, + "negatives": 2542, + "auroc": 0.7657177598168944, + "auprc": 0.09234749718227282, + "brier": 0.03168614435740158, + "calibration": { + "observed_rate": 0.033460076045627375, + "mean_prediction": 0.027818640750547793, + "calibration_in_the_large": -0.0056414352950795825, + "expected_calibration_error_10bin": 0.008628323310304487, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + } + ], + "reason": null + }, + "B97": { + "time_averaged_auroc": 0.8287994262491771, + "time_averaged_auprc": 0.011364990953196243, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6250442164839052, + "auprc": 0.000942507068803016, + "brier": 0.00035375271199852593, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 9.870223779749977e-05, + "calibration_in_the_large": -0.00025490455145285384, + "expected_calibration_error_10bin": 0.00025490455145285384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7845772904138663, + "auprc": 0.001639344262295082, + "brier": 0.0003553780966099681, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0002880586938237962, + "calibration_in_the_large": -6.55480954265574e-05, + "expected_calibration_error_10bin": 6.55480954265574e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.789175804740007, + "auprc": 0.0016750418760469012, + "brier": 0.000358264778922395, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0004500188385741709, + "calibration_in_the_large": 9.641204932381726e-05, + "expected_calibration_error_10bin": 9.641204932381726e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7898832684824902, + "auprc": 0.0016806722689075631, + "brier": 0.00035939663107552793, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005301859146438312, + "calibration_in_the_large": 0.00017657912539347762, + "expected_calibration_error_10bin": 0.00017657912539347762, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7934205871949063, + "auprc": 0.0017094017094017094, + "brier": 0.0003603963252579623, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006691159277209085, + "calibration_in_the_large": 0.0003155091384705549, + "expected_calibration_error_10bin": 0.0003155091384705549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7845772904138663, + "auprc": 0.001639344262295082, + "brier": 0.00036297076356351613, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0007535371984231512, + "calibration_in_the_large": 0.00039993040917279753, + "expected_calibration_error_10bin": 0.00039993040917279753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8835810332625619, + "auprc": 0.018823657791357487, + "brier": 0.0007104804546624557, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0008204174791590537, + "calibration_in_the_large": 0.0001132039006583465, + "expected_calibration_error_10bin": 0.00011320390065834651, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.883934890304317, + "auprc": 0.018828680897646416, + "brier": 0.0007127828289552922, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0009125784465843278, + "calibration_in_the_large": 0.0002053648680836206, + "expected_calibration_error_10bin": 0.00020536486808362065, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.888004246284501, + "auprc": 0.020160554643313264, + "brier": 0.0007191720442419131, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0011226557621733199, + "calibration_in_the_large": 0.0004154421836726126, + "expected_calibration_error_10bin": 0.00041544218367261257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8862349610757254, + "auprc": 0.020134027403817388, + "brier": 0.0007244446762301286, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001263354548937162, + "calibration_in_the_large": 0.0005561409704364547, + "expected_calibration_error_10bin": 0.0005561409704364547, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8894196744515216, + "auprc": 0.020182412029333824, + "brier": 0.0007276130796143621, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0013766594294916817, + "calibration_in_the_large": 0.0006694458509909745, + "expected_calibration_error_10bin": 0.0006694458509909745, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8885350318471338, + "auprc": 0.020168683535020167, + "brier": 0.0007286610438742772, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0014393241303820425, + "calibration_in_the_large": 0.0007321105518813352, + "expected_calibration_error_10bin": 0.0007321105518813352, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.888004246284501, + "auprc": 0.020160554643313264, + "brier": 0.0007288296369467641, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0014455918948715278, + "calibration_in_the_large": 0.0007383783163708205, + "expected_calibration_error_10bin": 0.0007383783163708207, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + }, + "C18": { + "time_averaged_auroc": 0.9797755271112097, + "time_averaged_auprc": 0.02455121988249122, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9730782855118668, + "auprc": 0.012987012987012988, + "brier": 0.00035342371242305486, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00016071388865376696, + "calibration_in_the_large": -0.00019339376007144552, + "expected_calibration_error_10bin": 0.00019339376007144552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9819341126461212, + "auprc": 0.019230769230769232, + "brier": 0.000352713140284844, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0002940943660101594, + "calibration_in_the_large": -6.0013282715053065e-05, + "expected_calibration_error_10bin": 6.0013282715053065e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9836995038979447, + "auprc": 0.03075489282385834, + "brier": 0.0007038241057531439, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0003847111260686929, + "calibration_in_the_large": -0.00032350417138173206, + "expected_calibration_error_10bin": 0.00032350417138173206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9829907866761163, + "auprc": 0.029449152542372882, + "brier": 0.0007029387233574866, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005136573488383827, + "calibration_in_the_large": -0.00019455794861204226, + "expected_calibration_error_10bin": 0.00019455794861204226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9828136073706591, + "auprc": 0.029166666666666667, + "brier": 0.0007029310433099945, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005257841120795925, + "calibration_in_the_large": -0.00018243118537083244, + "expected_calibration_error_10bin": 0.00018243118537083244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.981218993621545, + "auprc": 0.026992753623188405, + "brier": 0.0007028847792905197, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005704918689498499, + "calibration_in_the_large": -0.00013772342850057505, + "expected_calibration_error_10bin": 0.00013772342850057505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9810418143160878, + "auprc": 0.026785714285714288, + "brier": 0.0007028527142225919, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005984734661961305, + "calibration_in_the_large": -0.00010974183125429446, + "expected_calibration_error_10bin": 0.00010974183125429446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9796243798724309, + "auprc": 0.02506265664160401, + "brier": 0.0007026761952999196, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006591356950679108, + "calibration_in_the_large": -4.9079602382514145e-05, + "expected_calibration_error_10bin": 4.9079602382514145e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9787384833451452, + "auprc": 0.024250440917107582, + "brier": 0.0007025503071003204, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0007218451129550056, + "calibration_in_the_large": 1.3629815504580668e-05, + "expected_calibration_error_10bin": 1.3629815504580668e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.978206945428774, + "auprc": 0.023558758314855877, + "brier": 0.0007026075670390998, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0007513222386826593, + "calibration_in_the_large": 4.31069412322343e-05, + "expected_calibration_error_10bin": 4.31069412322343e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9787384833451452, + "auprc": 0.024390243902439025, + "brier": 0.0007024633677985741, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008170857189037294, + "calibration_in_the_large": 0.00010887042145330439, + "expected_calibration_error_10bin": 0.00010887042145330439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9774982282069454, + "auprc": 0.023268398268398268, + "brier": 0.0007025202193878297, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008538693711001692, + "calibration_in_the_large": 0.00014565407364974423, + "expected_calibration_error_10bin": 0.00014565407364974423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9774982282069454, + "auprc": 0.023268398268398268, + "brier": 0.0007025248476348967, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008564042631157447, + "calibration_in_the_large": 0.0001481889656653198, + "expected_calibration_error_10bin": 0.0001481889656653198, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "C22": { + "time_averaged_auroc": 0.9099653411570154, + "time_averaged_auprc": 0.029932340645873582, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2812, + "positives": 2, + "negatives": 2810, + "auroc": 0.8852313167259787, + "auprc": 0.017749777801014274, + "brier": 0.000711835708854224, + "calibration": { + "observed_rate": 0.0007112375533428165, + "mean_prediction": 0.0002642763549819365, + "calibration_in_the_large": -0.00044696119836088003, + "expected_calibration_error_10bin": 0.00044696119836088003, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 3, + "negatives": 2809, + "auroc": 0.9113563545745818, + "auprc": 0.02436170742415396, + "brier": 0.0010682665110156647, + "calibration": { + "observed_rate": 0.0010668563300142249, + "mean_prediction": 0.0004117818293258648, + "calibration_in_the_large": -0.00065507450068836, + "expected_calibration_error_10bin": 0.00065507450068836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9203420021375134, + "auprc": 0.03213573007189582, + "brier": 0.0017739640250297641, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0004883344688768591, + "calibration_in_the_large": -0.001289759414480182, + "expected_calibration_error_10bin": 0.001289759414480182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9189169932312077, + "auprc": 0.031482618868728746, + "brier": 0.0017741649215812056, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005388965082139008, + "calibration_in_the_large": -0.0012391973751431406, + "expected_calibration_error_10bin": 0.0013107148253031571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.917990737442109, + "auprc": 0.03122800078543577, + "brier": 0.001774232962622544, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005869871484452448, + "calibration_in_the_large": -0.0011911067349117965, + "expected_calibration_error_10bin": 0.0012675864519198772, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.916993231207695, + "auprc": 0.03193994916317965, + "brier": 0.0017732247153342863, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0006629204358688685, + "calibration_in_the_large": -0.001115173447488173, + "expected_calibration_error_10bin": 0.0011975852627163703, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9166369789811186, + "auprc": 0.03227014183530487, + "brier": 0.0017729889610427906, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0006932072539218839, + "calibration_in_the_large": -0.0010848866294351574, + "expected_calibration_error_10bin": 0.0011691868806915089, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9234972677595629, + "auprc": 0.032907107339057495, + "brier": 0.002127495758007071, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0007606127869715254, + "calibration_in_the_large": -0.0013730998730569243, + "expected_calibration_error_10bin": 0.0014634011642500114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.92320028510335, + "auprc": 0.03329655393888322, + "brier": 0.002127474249453003, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0007860891120677073, + "calibration_in_the_large": -0.0013476235479607424, + "expected_calibration_error_10bin": 0.001439455599621136, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9233190781658351, + "auprc": 0.03305913294683379, + "brier": 0.002129244074630361, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0008517049819197775, + "calibration_in_the_large": -0.0012820076781086722, + "expected_calibration_error_10bin": 0.0014557847126016263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.8905525846702317, + "auprc": 0.02945611490438093, + "brier": 0.0024845780610469126, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0008713232378048339, + "calibration_in_the_large": -0.001618008198895024, + "expected_calibration_error_10bin": 0.0017934748989480015, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.8907053730583142, + "auprc": 0.02961294332226195, + "brier": 0.0024855002208637616, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0009176672009847868, + "calibration_in_the_large": -0.001571664235715071, + "expected_calibration_error_10bin": 0.0017557415177127597, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.8908072319837026, + "auprc": 0.029620649995226126, + "brier": 0.0024854875714202594, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0009195078644194349, + "calibration_in_the_large": -0.0015698235722804228, + "expected_calibration_error_10bin": 0.0017540392517272226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + } + ], + "reason": null + }, + "C25": { + "time_averaged_auroc": 0.9600229146387577, + "time_averaged_auprc": 0.27629012563992333, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2809, + "positives": 0, + "negatives": 2809, + "auroc": null, + "auprc": null, + "brier": 2.4097466735381312e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00018453029908606952, + "calibration_in_the_large": 0.00018453029908606952, + "expected_calibration_error_10bin": 0.00018453029908606952, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9996438746438746, + "auprc": 0.5, + "brier": 0.00030899814863680875, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0004322558774361879, + "calibration_in_the_large": 7.625730143049188e-05, + "expected_calibration_error_10bin": 7.625730143049188e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9996438746438746, + "auprc": 0.5, + "brier": 0.00030488950190287725, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0005279601204844581, + "calibration_in_the_large": 0.0001719615444787621, + "expected_calibration_error_10bin": 0.0001719615444787621, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9996438746438746, + "auprc": 0.5, + "brier": 0.000301646343937013, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0005789245788295089, + "calibration_in_the_large": 0.00022292600282381293, + "expected_calibration_error_10bin": 0.0007371725288564886, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9852155325970787, + "auprc": 0.2619047619047619, + "brier": 0.0006541228614533967, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0006331620684447588, + "calibration_in_the_large": -7.883508356663319e-05, + "expected_calibration_error_10bin": 0.0004240215815594789, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9873530459565373, + "auprc": 0.2638888888888889, + "brier": 0.0006529535111257014, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0006984912777110494, + "calibration_in_the_large": -1.3505874300342546e-05, + "expected_calibration_error_10bin": 0.00047570996867864326, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9869967937299609, + "auprc": 0.2635135135135135, + "brier": 0.0006517802341825475, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007528316396407898, + "calibration_in_the_large": 4.083448762939781e-05, + "expected_calibration_error_10bin": 0.0005183985190646707, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9869967937299609, + "auprc": 0.2635135135135135, + "brier": 0.0006509664277468356, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007940557282924934, + "calibration_in_the_large": 8.205857628110138e-05, + "expected_calibration_error_10bin": 0.0006977605733787375, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.95272036113091, + "auprc": 0.17872445616348054, + "brier": 0.0010059174951228252, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0008491524929564465, + "calibration_in_the_large": -0.00021884323506064145, + "expected_calibration_error_10bin": 0.00039404112167810816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.95272036113091, + "auprc": 0.17861365953109068, + "brier": 0.0010045507491441255, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0009131440858042555, + "calibration_in_the_large": -0.0001548516422128325, + "expected_calibration_error_10bin": 0.0004508897588266903, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.8919786096256684, + "auprc": 0.13516102892235823, + "brier": 0.0013605157782808912, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0009329653346576987, + "calibration_in_the_large": -0.0004910289693650853, + "expected_calibration_error_10bin": 0.0006557812258576537, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.888680926916221, + "auprc": 0.13508084262073622, + "brier": 0.0013604610916817192, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.000962451104189605, + "calibration_in_the_large": -0.000461543199833179, + "expected_calibration_error_10bin": 0.0006279456498535286, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.888680926916221, + "auprc": 0.13508084262073622, + "brier": 0.0013604558697702326, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0009645224525044222, + "calibration_in_the_large": -0.0004594718515183618, + "expected_calibration_error_10bin": 0.0006260354186863724, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + } + ], + "reason": null + }, + "C61": { + "time_averaged_auroc": 0.958630762708623, + "time_averaged_auprc": 0.023849957361796237, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.9536376604850214, + "auprc": 0.007633587786259542, + "brier": 0.00035621007353161817, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.0002494154784941342, + "calibration_in_the_large": -0.00010709076036504584, + "expected_calibration_error_10bin": 0.00010709076036504584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9645023189439886, + "auprc": 0.023604269293924465, + "brier": 0.0007089701780993393, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0005174746027067883, + "calibration_in_the_large": -0.00019553787501157174, + "expected_calibration_error_10bin": 0.00019553787501157174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.962183374955405, + "auprc": 0.02694746376811594, + "brier": 0.0007083959749986767, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0006293602776815237, + "calibration_in_the_large": -8.36522000368363e-05, + "expected_calibration_error_10bin": 8.36522000368363e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9545130217623974, + "auprc": 0.022847522847522846, + "brier": 0.0007089134141001741, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0008212888443152422, + "calibration_in_the_large": 0.00010827636659688211, + "expected_calibration_error_10bin": 0.00010827636659688211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9582590082054941, + "auprc": 0.023970105723660227, + "brier": 0.0007087428749290889, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0009052903356745343, + "calibration_in_the_large": 0.00019227785795617423, + "expected_calibration_error_10bin": 0.00019227785795617423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9568319657509811, + "auprc": 0.023796979276431332, + "brier": 0.0007089489845160815, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0010332203257679869, + "calibration_in_the_large": 0.0003202078480496268, + "expected_calibration_error_10bin": 0.0003202078480496268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.956653585444167, + "auprc": 0.02377622377622378, + "brier": 0.0007090926555912827, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0011112906557482769, + "calibration_in_the_large": 0.00039827817802991683, + "expected_calibration_error_10bin": 0.00039827817802991683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9582590082054941, + "auprc": 0.025528169014084508, + "brier": 0.0007092358080631762, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0012329999949979894, + "calibration_in_the_large": 0.0005199875172796294, + "expected_calibration_error_10bin": 0.0005199875172796294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9591509097395647, + "auprc": 0.02564102564102564, + "brier": 0.000709682781934315, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0013609691295253545, + "calibration_in_the_large": 0.0006479566518069944, + "expected_calibration_error_10bin": 0.0006479566518069944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9598644309668213, + "auprc": 0.026617179215270414, + "brier": 0.0007099765211635586, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.001467577161434721, + "calibration_in_the_large": 0.0007545646837163609, + "expected_calibration_error_10bin": 0.0007545646837163609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.959507670353193, + "auprc": 0.026570048309178744, + "brier": 0.0007101254142615547, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.001485274220722009, + "calibration_in_the_large": 0.000772261743003649, + "expected_calibration_error_10bin": 0.000772261743003649, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9593292900463789, + "auprc": 0.026546822742474916, + "brier": 0.0007108246794527475, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0015811260692212296, + "calibration_in_the_large": 0.0008681135915028696, + "expected_calibration_error_10bin": 0.0008681135915028696, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.959507670353193, + "auprc": 0.026570048309178744, + "brier": 0.0007111052698466113, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.001613730900629591, + "calibration_in_the_large": 0.0009007184229112309, + "expected_calibration_error_10bin": 0.0009007184229112309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + } + ], + "reason": null + }, + "C67": { + "time_averaged_auroc": 0.9883948736088815, + "time_averaged_auprc": 0.04665589550811279, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9876193845065441, + "auprc": 0.04083333333333333, + "brier": 0.0007053245545656925, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00013514397370504284, + "calibration_in_the_large": -0.0005718196176700014, + "expected_calibration_error_10bin": 0.0005718196176700014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9819596745666784, + "auprc": 0.027972027972027972, + "brier": 0.0007048040012204885, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00021700048048157276, + "calibration_in_the_large": -0.0004899631108934714, + "expected_calibration_error_10bin": 0.0004899631108934714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.984082065794128, + "auprc": 0.031818181818181815, + "brier": 0.0007040709752791815, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0002801147996279821, + "calibration_in_the_large": -0.00042684879174706213, + "expected_calibration_error_10bin": 0.00042684879174706213, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9888574460558897, + "auprc": 0.051250000000000004, + "brier": 0.0007017202573809403, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004404209485226916, + "calibration_in_the_large": -0.0002665426428523526, + "expected_calibration_error_10bin": 0.0002665426428523526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.989388043862752, + "auprc": 0.05115089514066496, + "brier": 0.0007013053314183948, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004893888089246432, + "calibration_in_the_large": -0.00021757478245040102, + "expected_calibration_error_10bin": 0.00021757478245040102, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.052667578659370724, + "brier": 0.0007007061140591298, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005544384341871185, + "calibration_in_the_large": -0.0001525251571879257, + "expected_calibration_error_10bin": 0.0001525251571879257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9883268482490273, + "auprc": 0.04738562091503268, + "brier": 0.0007006010300469615, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006228728816973494, + "calibration_in_the_large": -8.409070967769485e-05, + "expected_calibration_error_10bin": 8.409070967769485e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9895649097983729, + "auprc": 0.04957160342717258, + "brier": 0.0007001223924112263, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006811149219830534, + "calibration_in_the_large": -2.5848669391990813e-05, + "expected_calibration_error_10bin": 2.5848669391990813e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9888574460558897, + "auprc": 0.046031746031746035, + "brier": 0.000700206286475664, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007208083253132116, + "calibration_in_the_large": 1.3844733938167346e-05, + "expected_calibration_error_10bin": 1.3844733938167346e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9908029713477184, + "auprc": 0.05572755417956656, + "brier": 0.000698506846529592, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0008182100494195122, + "calibration_in_the_large": 0.00011124645804446798, + "expected_calibration_error_10bin": 0.00011124645804446798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.050706033376123234, + "brier": 0.0006984748713677847, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0008885115572871503, + "calibration_in_the_large": 0.00018154796591210605, + "expected_calibration_error_10bin": 0.00018154796591210605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.050706033376123234, + "brier": 0.0006984705122892971, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009194199000743886, + "calibration_in_the_large": 0.00021245630869934438, + "expected_calibration_error_10bin": 0.00021245630869934438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.050706033376123234, + "brier": 0.0006983899223228865, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009312806715864817, + "calibration_in_the_large": 0.00022431708021143745, + "expected_calibration_error_10bin": 0.00022431708021143745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "C77": { + "time_averaged_auroc": 0.8784320487074987, + "time_averaged_auprc": 0.12164045170135726, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2762, + "positives": 4, + "negatives": 2758, + "auroc": 0.7849891225525744, + "auprc": 0.25636162993028866, + "brier": 0.0014067202379178384, + "calibration": { + "observed_rate": 0.001448225923244026, + "mean_prediction": 0.001095079614273573, + "calibration_in_the_large": -0.0003531463089704529, + "expected_calibration_error_10bin": 0.0003531463089704529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 8, + "negatives": 2754, + "auroc": 0.8767247639796659, + "auprc": 0.12129755795311656, + "brier": 0.002774415794815202, + "calibration": { + "observed_rate": 0.002896451846488052, + "mean_prediction": 0.0019505222154935188, + "calibration_in_the_large": -0.0009459296309945332, + "expected_calibration_error_10bin": 0.0009459296309945334, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 11, + "negatives": 2751, + "auroc": 0.8561845279402531, + "auprc": 0.09280022893905039, + "brier": 0.0038482090017361516, + "calibration": { + "observed_rate": 0.0039826212889210715, + "mean_prediction": 0.0026181161454868923, + "calibration_in_the_large": -0.0013645051434341793, + "expected_calibration_error_10bin": 0.0013645051434341795, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 13, + "negatives": 2749, + "auroc": 0.8732406189663374, + "auprc": 0.10650857243182149, + "brier": 0.0044983934616608665, + "calibration": { + "observed_rate": 0.004706734250543085, + "mean_prediction": 0.00307842556078029, + "calibration_in_the_large": -0.0016283086897627952, + "expected_calibration_error_10bin": 0.0017863495961254457, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8790289041380744, + "auprc": 0.11400812120445493, + "brier": 0.00484239824107813, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.003598782242606844, + "calibration_in_the_large": -0.0014700084887472472, + "expected_calibration_error_10bin": 0.001924070257917477, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.8813956664238893, + "auprc": 0.10658950116318715, + "brier": 0.005556043037669748, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.0038292877000528714, + "calibration_in_the_large": -0.0019636159929232325, + "expected_calibration_error_10bin": 0.0026145222525259244, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 17, + "negatives": 2745, + "auroc": 0.8838315654130504, + "auprc": 0.10425506813780801, + "brier": 0.005909203925997966, + "calibration": { + "observed_rate": 0.006154960173787111, + "mean_prediction": 0.00405821679060264, + "calibration_in_the_large": -0.002096743383184471, + "expected_calibration_error_10bin": 0.0032682556440340963, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8989059080962801, + "auprc": 0.11535480038936016, + "brier": 0.006910242126007189, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.004318359914986717, + "calibration_in_the_large": -0.002922769701233413, + "expected_calibration_error_10bin": 0.00412109720589831, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8995258935083881, + "auprc": 0.1161484954902936, + "brier": 0.006905538848097342, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.004604897027035148, + "calibration_in_the_large": -0.0026362325891849826, + "expected_calibration_error_10bin": 0.0039297041591343325, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8992341356673961, + "auprc": 0.11625015505178034, + "brier": 0.0069056435931877545, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.0047636342015239894, + "calibration_in_the_large": -0.002477495414696141, + "expected_calibration_error_10bin": 0.0038293340831281773, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 22, + "negatives": 2740, + "auroc": 0.893978102189781, + "auprc": 0.1099147238981717, + "brier": 0.007620220902747472, + "calibration": { + "observed_rate": 0.007965242577842143, + "mean_prediction": 0.0049715573963656536, + "calibration_in_the_large": -0.0029936851814764895, + "expected_calibration_error_10bin": 0.004351260020079232, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8962331539597124, + "auprc": 0.11089455614333879, + "brier": 0.007966180993082305, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.005174510972317245, + "calibration_in_the_large": -0.0031527880863359047, + "expected_calibration_error_10bin": 0.004571309612962269, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8963442703620808, + "auprc": 0.1109424613849725, + "brier": 0.007965694909238237, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.005221191151289792, + "calibration_in_the_large": -0.0031061079073633575, + "expected_calibration_error_10bin": 0.004613174637112323, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + } + ], + "reason": null + }, + "C78": { + "time_averaged_auroc": 0.8920141350250457, + "time_averaged_auprc": 0.11671089593675998, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2762, + "positives": 7, + "negatives": 2755, + "auroc": 0.9181747472128597, + "auprc": 0.06003043869838665, + "brier": 0.002475773979893027, + "calibration": { + "observed_rate": 0.0025343953656770456, + "mean_prediction": 0.001762087934362273, + "calibration_in_the_large": -0.0007723074313147726, + "expected_calibration_error_10bin": 0.0013595441259017314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8896080266167602, + "auprc": 0.08348298412282285, + "brier": 0.004855967172544574, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.0032713323829366156, + "calibration_in_the_large": -0.0017974583484174755, + "expected_calibration_error_10bin": 0.0018448105376790039, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.8981245447924253, + "auprc": 0.09348494492577994, + "brier": 0.005545854692624462, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.004293398756274429, + "calibration_in_the_large": -0.001499504936701675, + "expected_calibration_error_10bin": 0.002078196754084747, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 18, + "negatives": 2744, + "auroc": 0.8620019436345967, + "auprc": 0.08844516804589288, + "brier": 0.006283704231154986, + "calibration": { + "observed_rate": 0.0065170166545981175, + "mean_prediction": 0.005177065427320436, + "calibration_in_the_large": -0.0013399512272776817, + "expected_calibration_error_10bin": 0.003115206245366225, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 21, + "negatives": 2741, + "auroc": 0.8740119177915603, + "auprc": 0.09437338170264623, + "brier": 0.007330311160417175, + "calibration": { + "observed_rate": 0.007603186097031137, + "mean_prediction": 0.005737033404906105, + "calibration_in_the_large": -0.001866152692125032, + "expected_calibration_error_10bin": 0.004254740438298068, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8791847230820515, + "auprc": 0.09571575206467467, + "brier": 0.008037776367430954, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.006108713282347859, + "calibration_in_the_large": -0.0022185857763052912, + "expected_calibration_error_10bin": 0.004974175154867324, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8867080745341615, + "auprc": 0.11667489115777864, + "brier": 0.008582372260846374, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.006691364876063057, + "calibration_in_the_large": -0.0023600471442121063, + "expected_calibration_error_10bin": 0.00558776059259536, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8863865546218488, + "auprc": 0.11499803342740861, + "brier": 0.00863225102395817, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.007399054553427707, + "calibration_in_the_large": -0.0016523574668474567, + "expected_calibration_error_10bin": 0.0051077259356537875, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 28, + "negatives": 2734, + "auroc": 0.894947225415404, + "auprc": 0.1469544654200086, + "brier": 0.009409536408770923, + "calibration": { + "observed_rate": 0.010137581462708182, + "mean_prediction": 0.00787761116560822, + "calibration_in_the_large": -0.0022599702970999627, + "expected_calibration_error_10bin": 0.005943248125736381, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 32, + "negatives": 2730, + "auroc": 0.8979395604395605, + "auprc": 0.14380181817560012, + "brier": 0.010822258665598251, + "calibration": { + "observed_rate": 0.011585807385952208, + "mean_prediction": 0.008430544746129432, + "calibration_in_the_large": -0.0031552626398227753, + "expected_calibration_error_10bin": 0.007318782693056849, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 35, + "negatives": 2727, + "auroc": 0.9051390853371052, + "auprc": 0.15962007257642508, + "brier": 0.011703031367815003, + "calibration": { + "observed_rate": 0.012671976828385228, + "mean_prediction": 0.008978228345227969, + "calibration_in_the_large": -0.003693748483157259, + "expected_calibration_error_10bin": 0.008603185284938869, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.9019885940986858, + "auprc": 0.160794653325237, + "brier": 0.012397460037561547, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.009418467048559385, + "calibration_in_the_large": -0.003977622741447856, + "expected_calibration_error_10bin": 0.009090689176523888, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.9019687577485742, + "auprc": 0.1588650435352183, + "brier": 0.01239877480977202, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.0094730834771629, + "calibration_in_the_large": -0.003923006312844342, + "expected_calibration_error_10bin": 0.009078121898772284, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + } + ], + "reason": null + }, + "C79": { + "time_averaged_auroc": 0.899971749477007, + "time_averaged_auprc": 0.141232718593663, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2751, + "positives": 4, + "negatives": 2747, + "auroc": 0.9378412813978886, + "auprc": 0.11340579710144927, + "brier": 0.0014074151511121668, + "calibration": { + "observed_rate": 0.0014540167211922936, + "mean_prediction": 0.0017420146397375, + "calibration_in_the_large": 0.0002879979185452064, + "expected_calibration_error_10bin": 0.0005692441899074281, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 8, + "negatives": 2743, + "auroc": 0.935107546481954, + "auprc": 0.07860340591164354, + "brier": 0.0029940386971204487, + "calibration": { + "observed_rate": 0.0029080334423845873, + "mean_prediction": 0.0038020153546305005, + "calibration_in_the_large": 0.0008939819122459132, + "expected_calibration_error_10bin": 0.0016353679036385758, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 9, + "negatives": 2742, + "auroc": 0.9342734419320853, + "auprc": 0.06484854149431685, + "brier": 0.003672610610203933, + "calibration": { + "observed_rate": 0.003271537622682661, + "mean_prediction": 0.0055533115620923015, + "calibration_in_the_large": 0.0022817739394096407, + "expected_calibration_error_10bin": 0.0022817739394096407, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.8739756772274127, + "auprc": 0.14133570511167817, + "brier": 0.00536690446604709, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.006744413014321825, + "calibration_in_the_large": 0.001655354490148797, + "expected_calibration_error_10bin": 0.003911300647701244, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.8754110339788089, + "auprc": 0.1414477739378522, + "brier": 0.0054849670787599225, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.007465390307354252, + "calibration_in_the_large": 0.0023763317831812236, + "expected_calibration_error_10bin": 0.003915683568837389, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 16, + "negatives": 2735, + "auroc": 0.8829981718464351, + "auprc": 0.13263295291745117, + "brier": 0.00631659789586536, + "calibration": { + "observed_rate": 0.0058160668847691745, + "mean_prediction": 0.008198203238245756, + "calibration_in_the_large": 0.0023821363534765813, + "expected_calibration_error_10bin": 0.004653280277691631, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.8767434692147645, + "auprc": 0.14098547917732793, + "brier": 0.00723970529344588, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.008934322244475764, + "calibration_in_the_large": 0.0020277428188123685, + "expected_calibration_error_10bin": 0.005720944466907656, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.8831380446722812, + "auprc": 0.15600959764052078, + "brier": 0.007675429168004661, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.00986407051210988, + "calibration_in_the_large": 0.002593986906148411, + "expected_calibration_error_10bin": 0.005332334029265238, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8959263037103149, + "auprc": 0.1716083945811937, + "brier": 0.008493037088292382, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.010548508525490195, + "calibration_in_the_large": 0.002187912378634506, + "expected_calibration_error_10bin": 0.006198078846041312, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 25, + "negatives": 2726, + "auroc": 0.9023330887747616, + "auprc": 0.1748400362484222, + "brier": 0.009132495579672693, + "calibration": { + "observed_rate": 0.009087604507451835, + "mean_prediction": 0.011140774318366487, + "calibration_in_the_large": 0.002053169810914652, + "expected_calibration_error_10bin": 0.006736753933952606, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8966831333803811, + "auprc": 0.17048162423507335, + "brier": 0.009637425094380947, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.011879745862558872, + "calibration_in_the_large": 0.0024286371748089633, + "expected_calibration_error_10bin": 0.006673253007088159, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9026197775469356, + "auprc": 0.17492797920432748, + "brier": 0.01053438795754849, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.012258488479141877, + "calibration_in_the_large": 0.001716867250497748, + "expected_calibration_error_10bin": 0.007265085283272709, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9025817730370671, + "auprc": 0.1748980541563623, + "brier": 0.01055291924812552, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.012378990089064726, + "calibration_in_the_large": 0.0018373688604205966, + "expected_calibration_error_10bin": 0.007288001543208584, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + } + ], + "reason": null + }, + "C83": { + "time_averaged_auroc": 0.4855334920622532, + "time_averaged_auprc": 0.0010458791144636582, + "valid_timepoint_cells": 5, + "timepoints": [ + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.6058803025397395e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00019776864706041035, + "calibration_in_the_large": 0.00019776864706041035, + "expected_calibration_error_10bin": 0.00019776864706041035, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 1.3522646129499783e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003805764035853944, + "calibration_in_the_large": 0.0003805764035853944, + "expected_calibration_error_10bin": 0.0003805764035853944, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.491834694640405e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006036619666617019, + "calibration_in_the_large": 0.0006036619666617019, + "expected_calibration_error_10bin": 0.0006036619666617019, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 5.3264382347992036e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007476255251577949, + "calibration_in_the_large": 0.0007476255251577949, + "expected_calibration_error_10bin": 0.0007476255251577949, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 5.7602807011456814e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000798293854166401, + "calibration_in_the_large": 0.000798293854166401, + "expected_calibration_error_10bin": 0.000798293854166401, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 6.315687964132438e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008425075477783733, + "calibration_in_the_large": 0.0008425075477783733, + "expected_calibration_error_10bin": 0.0008425075477783733, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 6.902450383281933e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008891423905677113, + "calibration_in_the_large": 0.0008891423905677113, + "expected_calibration_error_10bin": 0.0008891423905677113, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 7.039999488462244e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009052932798511341, + "calibration_in_the_large": 0.0009052932798511341, + "expected_calibration_error_10bin": 0.0009052932798511342, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 1, + "negatives": 2819, + "auroc": 0.3330968428520752, + "auprc": 0.000531632110579479, + "brier": 0.00042650388581438544, + "calibration": { + "observed_rate": 0.0003546099290780142, + "mean_prediction": 0.0009339566222827651, + "calibration_in_the_large": 0.0005793466932047509, + "expected_calibration_error_10bin": 0.0005793466932047509, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5241305890702626, + "auprc": 0.001170974470317017, + "brier": 0.0007824008924183373, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0009503275467136035, + "calibration_in_the_large": 0.00024110768855757506, + "expected_calibration_error_10bin": 0.0003045464085784556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5230660042583393, + "auprc": 0.0011739801939276606, + "brier": 0.0007881154590980011, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0009907391624076661, + "calibration_in_the_large": 0.0002815193042516377, + "expected_calibration_error_10bin": 0.0002845313068148423, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5241305890702626, + "auprc": 0.0011773752563226246, + "brier": 0.0008024695507060659, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0010815136219733189, + "calibration_in_the_large": 0.00037229376381729044, + "expected_calibration_error_10bin": 0.0006063670574632904, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5232434350603264, + "auprc": 0.0011754335411715098, + "brier": 0.0008028297528355583, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0010849362601115674, + "calibration_in_the_large": 0.00037571640195553895, + "expected_calibration_error_10bin": 0.0006047806017029046, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + } + ], + "reason": null + }, + "D25": { + "time_averaged_auroc": 0.9459495746365822, + "time_averaged_auprc": 0.4002712204957424, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9270609318996416, + "auprc": 0.05804932114159046, + "brier": 0.000713923824567028, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.00019343344542442715, + "calibration_in_the_large": -0.0005228989327990685, + "expected_calibration_error_10bin": 0.0005228989327990685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9358422939068101, + "auprc": 0.05839646464646464, + "brier": 0.0007127129317452878, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0003106677507749531, + "calibration_in_the_large": -0.0004056646274485426, + "expected_calibration_error_10bin": 0.0004056646274485426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9329749103942653, + "auprc": 0.5026595744680851, + "brier": 0.0007093721438139733, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0004361598502559913, + "calibration_in_the_large": -0.0002801725279675044, + "expected_calibration_error_10bin": 0.0002801725279675044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9358422939068101, + "auprc": 0.5027777777777778, + "brier": 0.0007086804332215871, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0004901018522129111, + "calibration_in_the_large": -0.0002262305260105846, + "expected_calibration_error_10bin": 0.0002262305260105846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9345878136200717, + "auprc": 0.502724795640327, + "brier": 0.0007060723190427669, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005996661924418053, + "calibration_in_the_large": -0.00011666618578169035, + "expected_calibration_error_10bin": 0.00011666618578169035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9333333333333333, + "auprc": 0.5026737967914439, + "brier": 0.0007055408877588645, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.000633476610034989, + "calibration_in_the_large": -8.285576818850668e-05, + "expected_calibration_error_10bin": 8.285576818850668e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9399641577060932, + "auprc": 0.5029673590504451, + "brier": 0.0007040353755412213, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.000702629911876834, + "calibration_in_the_large": -1.3702466346661685e-05, + "expected_calibration_error_10bin": 1.3702466346661685e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.960439823114617, + "auprc": 0.5585585585585585, + "brier": 0.0010505190767212099, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0007587787955803195, + "calibration_in_the_large": -0.0003157197717549241, + "expected_calibration_error_10bin": 0.0003157197717549241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9592446516075057, + "auprc": 0.5584710074505993, + "brier": 0.001049855725177122, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.000802030777806932, + "calibration_in_the_large": -0.0002724677895283115, + "expected_calibration_error_10bin": 0.0002724677895283115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9585275487032389, + "auprc": 0.3917624521072796, + "brier": 0.0010493853259998852, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0008289453606489574, + "calibration_in_the_large": -0.00024555320668628617, + "expected_calibration_error_10bin": 0.00024555320668628617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9580494801003944, + "auprc": 0.39172979797979796, + "brier": 0.0010482082071021168, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0008657318565091449, + "calibration_in_the_large": -0.0002087667108260987, + "expected_calibration_error_10bin": 0.0002087667108260987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9606788574160392, + "auprc": 0.3363728470111449, + "brier": 0.0010473695799058037, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0009295788987195591, + "calibration_in_the_large": -0.0001449196686156845, + "expected_calibration_error_10bin": 0.0001449196686156845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9607983745667503, + "auprc": 0.3363821138211382, + "brier": 0.0010468983628975444, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0009395704031251503, + "calibration_in_the_large": -0.0001349281642100933, + "expected_calibration_error_10bin": 0.0001349281642100933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + } + ], + "reason": null + }, + "D47": { + "time_averaged_auroc": 0.6045478137456436, + "time_averaged_auprc": 0.004423961128511954, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.6508775071633238, + "auprc": 0.002593749079831189, + "brier": 0.0014307404213267038, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.00104716668959415, + "calibration_in_the_large": -0.0003834484749265939, + "expected_calibration_error_10bin": 0.0003834484749265939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 5, + "negatives": 2791, + "auroc": 0.6108921533500538, + "auprc": 0.00299760781256342, + "brier": 0.0017966809580353157, + "calibration": { + "observed_rate": 0.00178826895565093, + "mean_prediction": 0.0018878431199652092, + "calibration_in_the_large": 9.957416431427926e-05, + "expected_calibration_error_10bin": 9.957416431427926e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5379928315412187, + "auprc": 0.0028120034140856117, + "brier": 0.0021631707402006155, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0025529688095079412, + "calibration_in_the_large": 0.00040704606272682535, + "expected_calibration_error_10bin": 0.00040704606272682535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5350657108721625, + "auprc": 0.00283537747382059, + "brier": 0.0021768086856184814, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002991733538466895, + "calibration_in_the_large": 0.0008458107916857792, + "expected_calibration_error_10bin": 0.0008458107916857792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5330346475507766, + "auprc": 0.0028500196560948374, + "brier": 0.00219814850711615, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0036829121508128813, + "calibration_in_the_large": 0.0015369894040317654, + "expected_calibration_error_10bin": 0.0015369894040317658, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5332138590203106, + "auprc": 0.0028578043564722543, + "brier": 0.0022092501615584223, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.00390927838405102, + "calibration_in_the_large": 0.0017633556372699038, + "expected_calibration_error_10bin": 0.001763355637269904, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.5796752548276392, + "auprc": 0.003716891475626738, + "brier": 0.0025781304637054227, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.004387293430980179, + "calibration_in_the_large": 0.0018837168930688772, + "expected_calibration_error_10bin": 0.0018837168930688772, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6390782601762149, + "auprc": 0.005586014635777389, + "brier": 0.0033072727321056105, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.004826398533270174, + "calibration_in_the_large": 0.0016075144130984998, + "expected_calibration_error_10bin": 0.0016075144130985005, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.637961966271977, + "auprc": 0.005563557721690829, + "brier": 0.003318172205810572, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.005090425409890877, + "calibration_in_the_large": 0.0018715412897192035, + "expected_calibration_error_10bin": 0.0018715412897192035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6480976310122039, + "auprc": 0.006040860240454503, + "brier": 0.003684697524841161, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.005304208266564447, + "calibration_in_the_large": 0.0017276703552625873, + "expected_calibration_error_10bin": 0.0017276703552625873, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6484565685570711, + "auprc": 0.006048882191512578, + "brier": 0.0036930087614874115, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.0054572482794946605, + "calibration_in_the_large": 0.0018807103681928007, + "expected_calibration_error_10bin": 0.0018807103681928007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 11, + "negatives": 2785, + "auroc": 0.6422392688101844, + "auprc": 0.0062521786259911, + "brier": 0.0040712606658459645, + "calibration": { + "observed_rate": 0.003934191702432046, + "mean_prediction": 0.0060559997355996015, + "calibration_in_the_large": 0.0021218080331675557, + "expected_calibration_error_10bin": 0.0021218080331675557, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 12, + "negatives": 2784, + "auroc": 0.6625359195402298, + "auprc": 0.00735654798673437, + "brier": 0.0044212264980746105, + "calibration": { + "observed_rate": 0.004291845493562232, + "mean_prediction": 0.006107857114571829, + "calibration_in_the_large": 0.0018160116210095972, + "expected_calibration_error_10bin": 0.001816011621009597, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + } + ], + "reason": null + }, + "D50": { + "time_averaged_auroc": 0.8011621150023183, + "time_averaged_auprc": 0.099682597355257, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2663, + "positives": 15, + "negatives": 2648, + "auroc": 0.7989425981873112, + "auprc": 0.06311179021895702, + "brier": 0.0055140482917284935, + "calibration": { + "observed_rate": 0.005632745024408562, + "mean_prediction": 0.003471523227153722, + "calibration_in_the_large": -0.00216122179725484, + "expected_calibration_error_10bin": 0.00216122179725484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 19, + "negatives": 2644, + "auroc": 0.8249462536826181, + "auprc": 0.08731862868409097, + "brier": 0.006869717868763735, + "calibration": { + "observed_rate": 0.007134810364250845, + "mean_prediction": 0.006011893018412774, + "calibration_in_the_large": -0.001122917345838071, + "expected_calibration_error_10bin": 0.001122917345838071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 28, + "negatives": 2635, + "auroc": 0.8304418541610192, + "auprc": 0.0835170808256993, + "brier": 0.01006973909255986, + "calibration": { + "observed_rate": 0.010514457378895982, + "mean_prediction": 0.007702499115886595, + "calibration_in_the_large": -0.0028119582630093867, + "expected_calibration_error_10bin": 0.0028119582630093867, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 36, + "negatives": 2627, + "auroc": 0.8052700587911855, + "auprc": 0.09013819456802112, + "brier": 0.012891105937600383, + "calibration": { + "observed_rate": 0.013518588058580548, + "mean_prediction": 0.00962654922993652, + "calibration_in_the_large": -0.003892038828644029, + "expected_calibration_error_10bin": 0.0038920388286440306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 39, + "negatives": 2624, + "auroc": 0.8076727642276422, + "auprc": 0.10477567239427231, + "brier": 0.013891455341065992, + "calibration": { + "observed_rate": 0.01464513706346226, + "mean_prediction": 0.010735312705970078, + "calibration_in_the_large": -0.003909824357492183, + "expected_calibration_error_10bin": 0.0039098243574921835, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 42, + "negatives": 2621, + "auroc": 0.8027107065641976, + "auprc": 0.09724168165291222, + "brier": 0.014951214908256726, + "calibration": { + "observed_rate": 0.015771686068343973, + "mean_prediction": 0.01193767936570564, + "calibration_in_the_large": -0.003834006702638332, + "expected_calibration_error_10bin": 0.003834006702638333, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 44, + "negatives": 2619, + "auroc": 0.8054340657433441, + "auprc": 0.10583061734743483, + "brier": 0.015597027765721362, + "calibration": { + "observed_rate": 0.016522718738265114, + "mean_prediction": 0.013257148568467532, + "calibration_in_the_large": -0.003265570169797583, + "expected_calibration_error_10bin": 0.003265570169797582, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 46, + "negatives": 2617, + "auroc": 0.7934325729760263, + "auprc": 0.10260033582440502, + "brier": 0.0163323249386591, + "calibration": { + "observed_rate": 0.017273751408186256, + "mean_prediction": 0.01428108736161416, + "calibration_in_the_large": -0.002992664046572096, + "expected_calibration_error_10bin": 0.003266801430891508, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 50, + "negatives": 2613, + "auroc": 0.7852047455032529, + "auprc": 0.10431513130616764, + "brier": 0.017707456333440716, + "calibration": { + "observed_rate": 0.01877581674802854, + "mean_prediction": 0.015258811837296512, + "calibration_in_the_large": -0.003517004910732027, + "expected_calibration_error_10bin": 0.004055238915480777, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 52, + "negatives": 2611, + "auroc": 0.7906195680994609, + "auprc": 0.11005289782885358, + "brier": 0.018337819440542736, + "calibration": { + "observed_rate": 0.01952684941794968, + "mean_prediction": 0.016184694754939492, + "calibration_in_the_large": -0.0033421546630101884, + "expected_calibration_error_10bin": 0.0033421546630101875, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 57, + "negatives": 2606, + "auroc": 0.7936273915794859, + "auprc": 0.11698794604112357, + "brier": 0.020014651179689823, + "calibration": { + "observed_rate": 0.021404431092752536, + "mean_prediction": 0.0168347268881575, + "calibration_in_the_large": -0.004569704204595036, + "expected_calibration_error_10bin": 0.0045697042045950344, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7883894399750059, + "auprc": 0.11502162383297283, + "brier": 0.020734076507593634, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.017602922881658687, + "calibration_in_the_large": -0.004552540881014991, + "expected_calibration_error_10bin": 0.004777886592502814, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7884154755395871, + "auprc": 0.1149621650934306, + "brier": 0.02073265031533124, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.0177444778596658, + "calibration_in_the_large": -0.0044109859030078795, + "expected_calibration_error_10bin": 0.004637522185380002, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + } + ], + "reason": null + }, + "D53": { + "time_averaged_auroc": 0.8235223027457176, + "time_averaged_auprc": 0.029073276981969324, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.7938571428571428, + "auprc": 0.020522710245201706, + "brier": 0.0017731414270002821, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0011577950674651859, + "calibration_in_the_large": -0.0006247361268307142, + "expected_calibration_error_10bin": 0.0006247361268307142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.8336056366792607, + "auprc": 0.0360632128075808, + "brier": 0.002470982069576385, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.002543599694058158, + "calibration_in_the_large": 4.8056022043897403e-05, + "expected_calibration_error_10bin": 4.8056022043897403e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 9, + "negatives": 2796, + "auroc": 0.8321808933396916, + "auprc": 0.03457063904479596, + "brier": 0.0031831547414135045, + "calibration": { + "observed_rate": 0.0032085561497326204, + "mean_prediction": 0.0035321914787217147, + "calibration_in_the_large": 0.0003236353289890943, + "expected_calibration_error_10bin": 0.0003236353289890941, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 11, + "negatives": 2794, + "auroc": 0.830122990824494, + "auprc": 0.03112800055152465, + "brier": 0.0038972209503454398, + "calibration": { + "observed_rate": 0.00392156862745098, + "mean_prediction": 0.003901397600807505, + "calibration_in_the_large": -2.0171026643475438e-05, + "expected_calibration_error_10bin": 3.068994610949494e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.8365258384055376, + "auprc": 0.03077398529566999, + "brier": 0.004265435763119074, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.004492483249087982, + "calibration_in_the_large": 0.00021440838277782173, + "expected_calibration_error_10bin": 0.00021440838277782175, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.8380474997016351, + "auprc": 0.029382665167585514, + "brier": 0.004301948701060056, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.005170555098633739, + "calibration_in_the_large": 0.0008924802323235781, + "expected_calibration_error_10bin": 0.0008924802323235785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8229001381993141, + "auprc": 0.02850125623017744, + "brier": 0.0050126548234151694, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.005369130151361034, + "calibration_in_the_large": 0.0003780428073325128, + "expected_calibration_error_10bin": 0.0008658510081143646, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8242565388749552, + "auprc": 0.028133993711907505, + "brier": 0.005047651215764143, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.00592445412780219, + "calibration_in_the_large": 0.0009333667837736689, + "expected_calibration_error_10bin": 0.0009333667837736701, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8264386877016852, + "auprc": 0.029064327788699416, + "brier": 0.0057764171480883695, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.006476677541113515, + "calibration_in_the_large": 0.0007725777193666348, + "expected_calibration_error_10bin": 0.0012450089814774077, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8270661527429186, + "auprc": 0.02933315974059937, + "brier": 0.0058012355800802105, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.006816739582892181, + "calibration_in_the_large": 0.0011126397611453008, + "expected_calibration_error_10bin": 0.0011491313438322165, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 17, + "negatives": 2788, + "auroc": 0.8200692041522492, + "auprc": 0.02757547829430589, + "brier": 0.0061864205631393145, + "calibration": { + "observed_rate": 0.006060606060606061, + "mean_prediction": 0.007266756477308366, + "calibration_in_the_large": 0.001206150416702305, + "expected_calibration_error_10bin": 0.0014617674443181963, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.810309771558426, + "auprc": 0.026448654150971723, + "brier": 0.006586212696195528, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.007688975548096522, + "calibration_in_the_large": 0.0012718632486312812, + "expected_calibration_error_10bin": 0.001878299888070251, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.8104094406570187, + "auprc": 0.026454517736581227, + "brier": 0.006587663238917421, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.007706748245820009, + "calibration_in_the_large": 0.001289635946354768, + "expected_calibration_error_10bin": 0.0018700282238475318, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + } + ], + "reason": null + }, + "D59": { + "time_averaged_auroc": 0.9923703759712934, + "time_averaged_auprc": 0.05564963054187192, + "valid_timepoint_cells": 8, + "timepoints": [ + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.1584966902663139e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022035126799965608, + "calibration_in_the_large": 0.00022035126799965608, + "expected_calibration_error_10bin": 0.00022035126799965608, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 6.977863071629514e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00035671589075509806, + "calibration_in_the_large": 0.00035671589075509806, + "expected_calibration_error_10bin": 0.00035671589075509806, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.060505800392297e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005139429443235964, + "calibration_in_the_large": 0.0005139429443235964, + "expected_calibration_error_10bin": 0.0005139429443235964, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.743909778553746e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005714693161681864, + "calibration_in_the_large": 0.0005714693161681864, + "expected_calibration_error_10bin": 0.0005714693161681864, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.6072364296127164e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006348856331810781, + "calibration_in_the_large": 0.0006348856331810781, + "expected_calibration_error_10bin": 0.0006348856331810781, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9929453262786596, + "auprc": 0.047619047619047616, + "brier": 0.0003483918259910983, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0006850238979004785, + "calibration_in_the_large": 0.0003324145890147239, + "expected_calibration_error_10bin": 0.0003324145890147239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9929453262786596, + "auprc": 0.047619047619047616, + "brier": 0.0003484381878633169, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007610392844442337, + "calibration_in_the_large": 0.00040842997555847914, + "expected_calibration_error_10bin": 0.00040842997555847914, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9929453262786596, + "auprc": 0.047619047619047616, + "brier": 0.0003484479340611, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007789606669836619, + "calibration_in_the_large": 0.0004263513580979073, + "expected_calibration_error_10bin": 0.0004263513580979073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.0006921816729639677, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0008334061270286387, + "calibration_in_the_large": 0.0001281875092571295, + "expected_calibration_error_10bin": 0.0001281875092571295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.0006920750313536983, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0008517454227899339, + "calibration_in_the_large": 0.00014652680501842476, + "expected_calibration_error_10bin": 0.00014652680501842476, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9918842625264643, + "auprc": 0.059482758620689656, + "brier": 0.0006918691582131671, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009168985227778724, + "calibration_in_the_large": 0.00021167990500636324, + "expected_calibration_error_10bin": 0.00021167990500636324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.0006913530260861084, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009631279220413209, + "calibration_in_the_large": 0.0002579093042698118, + "expected_calibration_error_10bin": 0.0002579093042698118, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.000691336908435852, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009667794611652351, + "calibration_in_the_large": 0.00026156084339372593, + "expected_calibration_error_10bin": 0.00026156084339372593, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + } + ], + "reason": null + }, + "D61": { + "time_averaged_auroc": 0.8998969007948835, + "time_averaged_auprc": 0.15562632213063354, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.9665041531238714, + "auprc": 0.024987902636417487, + "brier": 0.001444079209010744, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.001541965994858373, + "calibration_in_the_large": 9.948492742238297e-05, + "expected_calibration_error_10bin": 9.948492742238297e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 9, + "negatives": 2764, + "auroc": 0.9609663933108217, + "auprc": 0.05861489635445178, + "brier": 0.0032060589403823227, + "calibration": { + "observed_rate": 0.0032455824017309774, + "mean_prediction": 0.003781882660515447, + "calibration_in_the_large": 0.0005363002587844695, + "expected_calibration_error_10bin": 0.0005363002587844694, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 15, + "negatives": 2758, + "auroc": 0.9526951897510273, + "auprc": 0.10810117893769412, + "brier": 0.005147527918063705, + "calibration": { + "observed_rate": 0.005409304002884962, + "mean_prediction": 0.005641703372330472, + "calibration_in_the_large": 0.00023239936944550923, + "expected_calibration_error_10bin": 0.001136882175207182, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 17, + "negatives": 2756, + "auroc": 0.886066763425254, + "auprc": 0.09648466976473735, + "brier": 0.005940198938626501, + "calibration": { + "observed_rate": 0.006130544536602957, + "mean_prediction": 0.006787160011044906, + "calibration_in_the_large": 0.0006566154744419486, + "expected_calibration_error_10bin": 0.0013727304643159244, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 21, + "negatives": 2752, + "auroc": 0.8700858250276855, + "auprc": 0.1206448932434016, + "brier": 0.007209821629462782, + "calibration": { + "observed_rate": 0.007573025604038947, + "mean_prediction": 0.007914910341426575, + "calibration_in_the_large": 0.00034188473738762815, + "expected_calibration_error_10bin": 0.0016937155943421878, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 24, + "negatives": 2749, + "auroc": 0.8756669091790954, + "auprc": 0.12002275651493259, + "brier": 0.008289558497179241, + "calibration": { + "observed_rate": 0.00865488640461594, + "mean_prediction": 0.008668376604795242, + "calibration_in_the_large": 1.3490200179301637e-05, + "expected_calibration_error_10bin": 0.003472966033107358, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 30, + "negatives": 2743, + "auroc": 0.877931704945923, + "auprc": 0.16054735819319454, + "brier": 0.009914487284623788, + "calibration": { + "observed_rate": 0.010818608005769925, + "mean_prediction": 0.009328779688548177, + "calibration_in_the_large": -0.0014898283172217475, + "expected_calibration_error_10bin": 0.003205909320533955, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 32, + "negatives": 2741, + "auroc": 0.8847934148121124, + "auprc": 0.1884791318456286, + "brier": 0.01031837187864177, + "calibration": { + "observed_rate": 0.01153984853948792, + "mean_prediction": 0.010004988486935963, + "calibration_in_the_large": -0.0015348600525519566, + "expected_calibration_error_10bin": 0.00364741077598859, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 33, + "negatives": 2740, + "auroc": 0.8886529528865296, + "auprc": 0.23086386245090423, + "brier": 0.010263724917609232, + "calibration": { + "observed_rate": 0.011900468806346917, + "mean_prediction": 0.010587401439417539, + "calibration_in_the_large": -0.0013130673669293786, + "expected_calibration_error_10bin": 0.003573748524044939, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 35, + "negatives": 2738, + "auroc": 0.89293540644892, + "auprc": 0.2345923415063529, + "brier": 0.010845792753570237, + "calibration": { + "observed_rate": 0.012621709340064912, + "mean_prediction": 0.011243009252884796, + "calibration_in_the_large": -0.0013787000871801156, + "expected_calibration_error_10bin": 0.0024554740085565106, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 36, + "negatives": 2737, + "auroc": 0.8794401818698494, + "auprc": 0.227670993673676, + "brier": 0.011211482168978212, + "calibration": { + "observed_rate": 0.01298232960692391, + "mean_prediction": 0.011808016396262843, + "calibration_in_the_large": -0.0011743132106610665, + "expected_calibration_error_10bin": 0.00293031329634284, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8814505294768452, + "auprc": 0.22593018216301958, + "brier": 0.011550824240787398, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.012316892227641412, + "calibration_in_the_large": -0.0010260576461414948, + "expected_calibration_error_10bin": 0.0028243948218044605, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8814702860755492, + "auprc": 0.2262020204138252, + "brier": 0.011553390063424823, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.012436220956861704, + "calibration_in_the_large": -0.0009067289169212029, + "expected_calibration_error_10bin": 0.0029951558533376768, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + } + ], + "reason": null + }, + "D62": { + "time_averaged_auroc": 0.8064457550757311, + "time_averaged_auprc": 0.07869098826211954, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2499, + "positives": 10, + "negatives": 2489, + "auroc": 0.8705905986339896, + "auprc": 0.03261745776159111, + "brier": 0.003948142158931945, + "calibration": { + "observed_rate": 0.004001600640256103, + "mean_prediction": 0.00626540086989594, + "calibration_in_the_large": 0.0022638002296398374, + "expected_calibration_error_10bin": 0.0022638002296398374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 21, + "negatives": 2478, + "auroc": 0.8172105000192167, + "auprc": 0.03073224919076015, + "brier": 0.008245318605015556, + "calibration": { + "observed_rate": 0.008403361344537815, + "mean_prediction": 0.010176832448928154, + "calibration_in_the_large": 0.0017734711043903388, + "expected_calibration_error_10bin": 0.0017734711043903388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 30, + "negatives": 2469, + "auroc": 0.7998109896044282, + "auprc": 0.04272772800035033, + "brier": 0.011693337380339659, + "calibration": { + "observed_rate": 0.012004801920768308, + "mean_prediction": 0.013442222512147876, + "calibration_in_the_large": 0.0014374205913795686, + "expected_calibration_error_10bin": 0.001437420591379569, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 36, + "negatives": 2463, + "auroc": 0.7925858257770559, + "auprc": 0.04788233389370157, + "brier": 0.013995923024993574, + "calibration": { + "observed_rate": 0.014405762304921969, + "mean_prediction": 0.015774386901977328, + "calibration_in_the_large": 0.0013686245970553589, + "expected_calibration_error_10bin": 0.0013686245970553584, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 45, + "negatives": 2454, + "auroc": 0.8097346735488545, + "auprc": 0.07134504440752493, + "brier": 0.0172107021747617, + "calibration": { + "observed_rate": 0.01800720288115246, + "mean_prediction": 0.017805628534428783, + "calibration_in_the_large": -0.00020157434672367705, + "expected_calibration_error_10bin": 0.0014540345354729452, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 49, + "negatives": 2450, + "auroc": 0.8119200333194502, + "auprc": 0.08019376161547201, + "brier": 0.018641036015073106, + "calibration": { + "observed_rate": 0.0196078431372549, + "mean_prediction": 0.01948449082771635, + "calibration_in_the_large": -0.00012335230953855122, + "expected_calibration_error_10bin": 0.0006573380863138621, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 55, + "negatives": 2444, + "auroc": 0.8007736943907157, + "auprc": 0.08472558827929906, + "brier": 0.02087829471770166, + "calibration": { + "observed_rate": 0.022008803521408563, + "mean_prediction": 0.020663090065407123, + "calibration_in_the_large": -0.0013457134560014399, + "expected_calibration_error_10bin": 0.0020721694403307506, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 60, + "negatives": 2439, + "auroc": 0.805992893262266, + "auprc": 0.09778463302235077, + "brier": 0.022588290702053516, + "calibration": { + "observed_rate": 0.024009603841536616, + "mean_prediction": 0.022136546719326255, + "calibration_in_the_large": -0.0018730571222103608, + "expected_calibration_error_10bin": 0.002242178419277313, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 64, + "negatives": 2435, + "auroc": 0.801995636550308, + "auprc": 0.10520252683345407, + "brier": 0.02397934305102394, + "calibration": { + "observed_rate": 0.025610244097639057, + "mean_prediction": 0.023630660394167138, + "calibration_in_the_large": -0.0019795837034719196, + "expected_calibration_error_10bin": 0.0025865557970998626, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 69, + "negatives": 2430, + "auroc": 0.7884415816782967, + "auprc": 0.10235623795602465, + "brier": 0.025880784099522998, + "calibration": { + "observed_rate": 0.027611044417767107, + "mean_prediction": 0.024767581985204245, + "calibration_in_the_large": -0.002843462432562862, + "expected_calibration_error_10bin": 0.003360938986859508, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 71, + "negatives": 2428, + "auroc": 0.7937153398148363, + "auprc": 0.10835575747054495, + "brier": 0.026528025693766423, + "calibration": { + "observed_rate": 0.028411364545818326, + "mean_prediction": 0.025945362635655608, + "calibration_in_the_large": -0.0024660019101627184, + "expected_calibration_error_10bin": 0.003003496036841711, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7955312877615783, + "auprc": 0.10952298881064618, + "brier": 0.027245480502466737, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.027203516061727082, + "calibration_in_the_large": -0.0020081686121424663, + "expected_calibration_error_10bin": 0.002563678391776062, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7954917616235079, + "auprc": 0.10953654016583406, + "brier": 0.02724518461622162, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.02739217910970956, + "calibration_in_the_large": -0.0018195055641599886, + "expected_calibration_error_10bin": 0.00237958305356029, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + } + ], + "reason": null + }, + "D63": { + "time_averaged_auroc": 0.8626414169613797, + "time_averaged_auprc": 0.11479677906137249, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2686, + "positives": 20, + "negatives": 2666, + "auroc": 0.9023818454613654, + "auprc": 0.05689536452739091, + "brier": 0.007243505918275839, + "calibration": { + "observed_rate": 0.007446016381236039, + "mean_prediction": 0.004884992944576921, + "calibration_in_the_large": -0.0025610234366591177, + "expected_calibration_error_10bin": 0.0030993928096898615, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 31, + "negatives": 2655, + "auroc": 0.9046837980681611, + "auprc": 0.08291861451566385, + "brier": 0.011110832179143573, + "calibration": { + "observed_rate": 0.01154132539091586, + "mean_prediction": 0.009239652848246536, + "calibration_in_the_large": -0.002301672542669324, + "expected_calibration_error_10bin": 0.004368268315157265, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 43, + "negatives": 2643, + "auroc": 0.8922207850487026, + "auprc": 0.10109292410134883, + "brier": 0.01521893145800007, + "calibration": { + "observed_rate": 0.01600893521965748, + "mean_prediction": 0.012013908113444546, + "calibration_in_the_large": -0.003995027106212936, + "expected_calibration_error_10bin": 0.006841754516040851, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 52, + "negatives": 2634, + "auroc": 0.8792126628117517, + "auprc": 0.12248939039892141, + "brier": 0.018167788643637724, + "calibration": { + "observed_rate": 0.0193596425912137, + "mean_prediction": 0.014599688902745257, + "calibration_in_the_large": -0.004759953688468443, + "expected_calibration_error_10bin": 0.008636523953928442, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 55, + "negatives": 2631, + "auroc": 0.8727894682284648, + "auprc": 0.11927235791633313, + "brier": 0.019320139965181643, + "calibration": { + "observed_rate": 0.020476545048399106, + "mean_prediction": 0.016401040503737013, + "calibration_in_the_large": -0.004075504544662094, + "expected_calibration_error_10bin": 0.008994339891740762, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 62, + "negatives": 2624, + "auroc": 0.863142948465775, + "auprc": 0.12240334576965897, + "brier": 0.02186802032170185, + "calibration": { + "observed_rate": 0.02308265078183172, + "mean_prediction": 0.018352799108163093, + "calibration_in_the_large": -0.004729851673668628, + "expected_calibration_error_10bin": 0.011854696054639935, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 66, + "negatives": 2620, + "auroc": 0.8450150358547305, + "auprc": 0.1205580085318793, + "brier": 0.02341946647801483, + "calibration": { + "observed_rate": 0.024571854058078928, + "mean_prediction": 0.020015383476537047, + "calibration_in_the_large": -0.004556470581541881, + "expected_calibration_error_10bin": 0.01216470747771699, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 68, + "negatives": 2618, + "auroc": 0.8412292724576461, + "auprc": 0.1227240767335474, + "brier": 0.024171131405736537, + "calibration": { + "observed_rate": 0.02531645569620253, + "mean_prediction": 0.021135917655664468, + "calibration_in_the_large": -0.0041805380405380635, + "expected_calibration_error_10bin": 0.01281134494942604, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 71, + "negatives": 2615, + "auroc": 0.844020143807395, + "auprc": 0.1268145445681257, + "brier": 0.025187897753915663, + "calibration": { + "observed_rate": 0.02643335815338794, + "mean_prediction": 0.022279448673761873, + "calibration_in_the_large": -0.004153909479626065, + "expected_calibration_error_10bin": 0.012276423977478178, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 74, + "negatives": 2612, + "auroc": 0.8413403832622822, + "auprc": 0.12733459256537905, + "brier": 0.026385416045011715, + "calibration": { + "observed_rate": 0.027550260610573342, + "mean_prediction": 0.02354707127612033, + "calibration_in_the_large": -0.004003189334453011, + "expected_calibration_error_10bin": 0.012380669734833868, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8432849364791288, + "auprc": 0.13014088888735542, + "brier": 0.027266843150327853, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.02459611309266509, + "calibration_in_the_large": -0.0036987491560318553, + "expected_calibration_error_10bin": 0.012414868951914194, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8425337769711635, + "auprc": 0.12983536964747283, + "brier": 0.02741215080529358, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.025823160262329503, + "calibration_in_the_large": -0.0024717019863674423, + "expected_calibration_error_10bin": 0.013123468552326576, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8424833635813672, + "auprc": 0.1298786496347656, + "brier": 0.02741968025939433, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.025938804506474563, + "calibration_in_the_large": -0.0023560577422223825, + "expected_calibration_error_10bin": 0.013352842510216874, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + } + ], + "reason": null + }, + "D64": { + "time_averaged_auroc": 0.8229176811030968, + "time_averaged_auprc": 0.16221520702861686, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2434, + "positives": 37, + "negatives": 2397, + "auroc": 0.8442422397366077, + "auprc": 0.07210705466977518, + "brier": 0.014630338840942012, + "calibration": { + "observed_rate": 0.015201314708299097, + "mean_prediction": 0.010657417401403569, + "calibration_in_the_large": -0.004543897306895528, + "expected_calibration_error_10bin": 0.004543897306895527, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 51, + "negatives": 2383, + "auroc": 0.8476874593731744, + "auprc": 0.1037032893655989, + "brier": 0.019648498592568377, + "calibration": { + "observed_rate": 0.0209531635168447, + "mean_prediction": 0.018416884804239968, + "calibration_in_the_large": -0.0025362787126047316, + "expected_calibration_error_10bin": 0.00253627871260473, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 66, + "negatives": 2368, + "auroc": 0.8302044942669943, + "auprc": 0.1237825078668328, + "brier": 0.025064536515838228, + "calibration": { + "observed_rate": 0.027115858668857847, + "mean_prediction": 0.02315232508041285, + "calibration_in_the_large": -0.003963533588444996, + "expected_calibration_error_10bin": 0.003963533588444995, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 77, + "negatives": 2357, + "auroc": 0.836348208431365, + "auprc": 0.1547430828012621, + "brier": 0.02862967235772529, + "calibration": { + "observed_rate": 0.031635168447000823, + "mean_prediction": 0.027681013550415166, + "calibration_in_the_large": -0.003954154896585658, + "expected_calibration_error_10bin": 0.004239771244682996, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 85, + "negatives": 2349, + "auroc": 0.8166478852077229, + "auprc": 0.1543207811714838, + "brier": 0.03154707107574124, + "calibration": { + "observed_rate": 0.03492193919474117, + "mean_prediction": 0.03129856184991318, + "calibration_in_the_large": -0.0036233773448279896, + "expected_calibration_error_10bin": 0.0036233773448279896, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 89, + "negatives": 2345, + "auroc": 0.8182650152128602, + "auprc": 0.15657716310721248, + "brier": 0.03293843180649658, + "calibration": { + "observed_rate": 0.03656532456861134, + "mean_prediction": 0.03400643404164553, + "calibration_in_the_large": -0.0025588905269658124, + "expected_calibration_error_10bin": 0.00367117151748098, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 97, + "negatives": 2337, + "auroc": 0.8066558147947187, + "auprc": 0.17552499795804952, + "brier": 0.035651335323321307, + "calibration": { + "observed_rate": 0.039852095316351685, + "mean_prediction": 0.036804722162354246, + "calibration_in_the_large": -0.003047373153997439, + "expected_calibration_error_10bin": 0.0038994358400140797, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 103, + "negatives": 2331, + "auroc": 0.8103484899601404, + "auprc": 0.18288304052143334, + "brier": 0.037595732685974693, + "calibration": { + "observed_rate": 0.042317173377156944, + "mean_prediction": 0.039021241278362734, + "calibration_in_the_large": -0.0032959320987942103, + "expected_calibration_error_10bin": 0.004714289478620559, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 107, + "negatives": 2327, + "auroc": 0.8119354670286639, + "auprc": 0.18677114406817413, + "brier": 0.03888920672673607, + "calibration": { + "observed_rate": 0.04396055875102712, + "mean_prediction": 0.041143859836822734, + "calibration_in_the_large": -0.0028166989142043852, + "expected_calibration_error_10bin": 0.003984438781976632, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 116, + "negatives": 2318, + "auroc": 0.819292791050549, + "auprc": 0.19978443239165328, + "brier": 0.04172126961560772, + "calibration": { + "observed_rate": 0.047658175842235, + "mean_prediction": 0.04298498768159689, + "calibration_in_the_large": -0.004673188160638109, + "expected_calibration_error_10bin": 0.005104987899870012, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 119, + "negatives": 2315, + "auroc": 0.8181389186344084, + "auprc": 0.1988302605147761, + "brier": 0.04277322181150056, + "calibration": { + "observed_rate": 0.04889071487263763, + "mean_prediction": 0.04483017840718463, + "calibration_in_the_large": -0.004060536465452999, + "expected_calibration_error_10bin": 0.005452519328709946, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 121, + "negatives": 2313, + "auroc": 0.8191822719590671, + "auprc": 0.19996313945850352, + "brier": 0.043423911950250284, + "calibration": { + "observed_rate": 0.04971240755957272, + "mean_prediction": 0.04688417352649905, + "calibration_in_the_large": -0.0028282340330736747, + "expected_calibration_error_10bin": 0.0068908394638628025, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + { + "valid": 2434, + "positives": 122, + "negatives": 2312, + "auroc": 0.8189807986839867, + "auprc": 0.19980679747726404, + "brier": 0.043777949272854944, + "calibration": { + "observed_rate": 0.05012325390304026, + "mean_prediction": 0.04722372594770831, + "calibration_in_the_large": -0.0028995279553319514, + "expected_calibration_error_10bin": 0.006511820419006598, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + } + ], + "reason": null + }, + "D65": { + "time_averaged_auroc": 0.9381903621041932, + "time_averaged_auprc": 0.019378566371960244, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.9473870056497176, + "auprc": 0.006666666666666667, + "brier": 0.00035351201342593647, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.0002960062441259663, + "calibration_in_the_large": -5.697645972154515e-05, + "expected_calibration_error_10bin": 5.697645972154515e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.9346751412429378, + "auprc": 0.005376344086021506, + "brier": 0.00035493752379867625, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.0004695190232411803, + "calibration_in_the_large": 0.00011653631939366883, + "expected_calibration_error_10bin": 0.00011653631939366883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 2, + "negatives": 2831, + "auroc": 0.9553161427057577, + "auprc": 0.015631469979296066, + "brier": 0.0007041825620609185, + "calibration": { + "observed_rate": 0.0007059654076950229, + "mean_prediction": 0.000585976142684342, + "calibration_in_the_large": -0.00011998926501068097, + "expected_calibration_error_10bin": 0.00011998926501068097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9607773851590106, + "auprc": 0.022073066146191436, + "brier": 0.0010529830467800323, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0007111694322585997, + "calibration_in_the_large": -0.00034777867928393474, + "expected_calibration_error_10bin": 0.00034777867928393474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9612485276796231, + "auprc": 0.023341350008016678, + "brier": 0.0010532157743312468, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0009048498490897911, + "calibration_in_the_large": -0.00015409826245274332, + "expected_calibration_error_10bin": 0.00015409826245274332, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9603062426383981, + "auprc": 0.022599861235008428, + "brier": 0.001053686462058443, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0009571316754052126, + "calibration_in_the_large": -0.0001018164361373218, + "expected_calibration_error_10bin": 0.0001018164361373218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9599528857479388, + "auprc": 0.022546673517825248, + "brier": 0.001054271936568195, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0010234921822993115, + "calibration_in_the_large": -3.545592924322294e-05, + "expected_calibration_error_10bin": 3.545592924322294e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9597173144876325, + "auprc": 0.0225119506927762, + "brier": 0.001054469654328426, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0010762177155266073, + "calibration_in_the_large": 1.726960398407292e-05, + "expected_calibration_error_10bin": 1.726960398407292e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9605867797808413, + "auprc": 0.02469066017535392, + "brier": 0.0014028644408820288, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0011260148584425285, + "calibration_in_the_large": -0.0002859159569475174, + "expected_calibration_error_10bin": 0.0002859159569475174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9603216684340756, + "auprc": 0.024362571950816793, + "brier": 0.0014029660840146215, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0011434013038991854, + "calibration_in_the_large": -0.0002685295114908605, + "expected_calibration_error_10bin": 0.0002685295114908605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9599681866383881, + "auprc": 0.023907553113445015, + "brier": 0.0014038977900727024, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0012010986493676454, + "calibration_in_the_large": -0.00021083216602240046, + "expected_calibration_error_10bin": 0.00021083216602240046, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8381087135950949, + "auprc": 0.019148245222093605, + "brier": 0.0021091556643614956, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.001289888129352462, + "calibration_in_the_large": -0.0008280080937326068, + "expected_calibration_error_10bin": 0.0008280080937326068, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8381087135950949, + "auprc": 0.01906495004197157, + "brier": 0.002109468796475229, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.0013070408304972968, + "calibration_in_the_large": -0.000810855392587772, + "expected_calibration_error_10bin": 0.000810855392587772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + } + ], + "reason": null + }, + "D68": { + "time_averaged_auroc": 0.813913424885247, + "time_averaged_auprc": 0.10259286550059335, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2682, + "positives": 10, + "negatives": 2672, + "auroc": 0.8118263473053893, + "auprc": 0.02352776823903207, + "brier": 0.0037016898487893953, + "calibration": { + "observed_rate": 0.0037285607755406414, + "mean_prediction": 0.0023269443065633295, + "calibration_in_the_large": -0.001401616468977312, + "expected_calibration_error_10bin": 0.0015046461977131652, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 21, + "negatives": 2661, + "auroc": 0.8407329861670335, + "auprc": 0.05131106134303698, + "brier": 0.0076766189625798766, + "calibration": { + "observed_rate": 0.007829977628635347, + "mean_prediction": 0.004378470101806096, + "calibration_in_the_large": -0.0034515075268292507, + "expected_calibration_error_10bin": 0.004159140564568848, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 29, + "negatives": 2653, + "auroc": 0.8172660748404539, + "auprc": 0.05737020699417431, + "brier": 0.010581745347860471, + "calibration": { + "observed_rate": 0.01081282624906786, + "mean_prediction": 0.005908387444311799, + "calibration_in_the_large": -0.00490443880475606, + "expected_calibration_error_10bin": 0.005975135095819072, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 32, + "negatives": 2650, + "auroc": 0.8170754716981132, + "auprc": 0.06100041704456315, + "brier": 0.011705254334438451, + "calibration": { + "observed_rate": 0.011931394481730051, + "mean_prediction": 0.007208722035976482, + "calibration_in_the_large": -0.004722672445753569, + "expected_calibration_error_10bin": 0.005592057466020635, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 39, + "negatives": 2643, + "auroc": 0.7922038864150102, + "auprc": 0.06665238330563127, + "brier": 0.014214551720982049, + "calibration": { + "observed_rate": 0.0145413870246085, + "mean_prediction": 0.008380726190194651, + "calibration_in_the_large": -0.006160660834413849, + "expected_calibration_error_10bin": 0.007356391068921953, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 44, + "negatives": 2638, + "auroc": 0.7969536149975877, + "auprc": 0.0738435347214703, + "brier": 0.015970969219040357, + "calibration": { + "observed_rate": 0.01640566741237882, + "mean_prediction": 0.009342947154782736, + "calibration_in_the_large": -0.007062720257596085, + "expected_calibration_error_10bin": 0.008568563558099013, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 49, + "negatives": 2633, + "auroc": 0.8109628963624949, + "auprc": 0.11258442123049911, + "brier": 0.017316210664140103, + "calibration": { + "observed_rate": 0.018269947800149143, + "mean_prediction": 0.010005164666322794, + "calibration_in_the_large": -0.008264783133826349, + "expected_calibration_error_10bin": 0.009439586459798026, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 51, + "negatives": 2631, + "auroc": 0.8159351920167535, + "auprc": 0.11443723601832242, + "brier": 0.018032193822628242, + "calibration": { + "observed_rate": 0.01901565995525727, + "mean_prediction": 0.011203260355610405, + "calibration_in_the_large": -0.0078123995996468645, + "expected_calibration_error_10bin": 0.00940999800585042, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 54, + "negatives": 2628, + "auroc": 0.808768814476577, + "auprc": 0.12835461027644685, + "brier": 0.018885656266403046, + "calibration": { + "observed_rate": 0.020134228187919462, + "mean_prediction": 0.012020631164366968, + "calibration_in_the_large": -0.008113597023552493, + "expected_calibration_error_10bin": 0.010147192205415186, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 57, + "negatives": 2625, + "auroc": 0.8182456140350877, + "auprc": 0.1376948189299664, + "brier": 0.019810553834402795, + "calibration": { + "observed_rate": 0.021252796420581657, + "mean_prediction": 0.012481946074739353, + "calibration_in_the_large": -0.008770850345842305, + "expected_calibration_error_10bin": 0.010842305322426948, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 59, + "negatives": 2623, + "auroc": 0.8243892037193794, + "auprc": 0.17068133504759708, + "brier": 0.020021673782105957, + "calibration": { + "observed_rate": 0.021998508575689784, + "mean_prediction": 0.013254928578522415, + "calibration_in_the_large": -0.008743579997167369, + "expected_calibration_error_10bin": 0.011307582322860424, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.8133299393322303, + "auprc": 0.16821605335597725, + "brier": 0.02146402028954222, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.013862839458505678, + "calibration_in_the_large": -0.009627093427400363, + "expected_calibration_error_10bin": 0.012793961832276646, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.8131844821420996, + "auprc": 0.16803340500099648, + "brier": 0.02146056152502156, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.013997914671898235, + "calibration_in_the_large": -0.009492018214007806, + "expected_calibration_error_10bin": 0.012085137675361086, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + } + ], + "reason": null + }, + "D69": { + "time_averaged_auroc": 0.8517728054598508, + "time_averaged_auprc": 0.2271761949209097, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2586, + "positives": 13, + "negatives": 2573, + "auroc": 0.888397261502586, + "auprc": 0.18673413044306947, + "brier": 0.004756964165320188, + "calibration": { + "observed_rate": 0.005027068832173241, + "mean_prediction": 0.003252915140080199, + "calibration_in_the_large": -0.0017741536920930418, + "expected_calibration_error_10bin": 0.0017741536920930407, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 30, + "negatives": 2556, + "auroc": 0.8878716744913928, + "auprc": 0.166964306664718, + "brier": 0.01072350848450255, + "calibration": { + "observed_rate": 0.01160092807424594, + "mean_prediction": 0.0063018632541895665, + "calibration_in_the_large": -0.005299064820056373, + "expected_calibration_error_10bin": 0.0052990648200563735, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 40, + "negatives": 2546, + "auroc": 0.8708071484681854, + "auprc": 0.2106403625430636, + "brier": 0.013814275364729199, + "calibration": { + "observed_rate": 0.015467904098994586, + "mean_prediction": 0.008822488395710315, + "calibration_in_the_large": -0.006645415703284271, + "expected_calibration_error_10bin": 0.006658868720538987, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 47, + "negatives": 2539, + "auroc": 0.8602901125422138, + "auprc": 0.22313560282125208, + "brier": 0.016060370739279958, + "calibration": { + "observed_rate": 0.01817478731631864, + "mean_prediction": 0.010900155610450669, + "calibration_in_the_large": -0.00727463170586797, + "expected_calibration_error_10bin": 0.008630049556543796, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 52, + "negatives": 2534, + "auroc": 0.8442869285410722, + "auprc": 0.21478490339790374, + "brier": 0.017706333117579617, + "calibration": { + "observed_rate": 0.020108275328692964, + "mean_prediction": 0.012594621621646446, + "calibration_in_the_large": -0.007513653707046517, + "expected_calibration_error_10bin": 0.008480688983108399, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 60, + "negatives": 2526, + "auroc": 0.8512140406439694, + "auprc": 0.2185664243765629, + "brier": 0.020425869524338374, + "calibration": { + "observed_rate": 0.02320185614849188, + "mean_prediction": 0.01386646453390959, + "calibration_in_the_large": -0.009335391614582288, + "expected_calibration_error_10bin": 0.011128960627517007, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 65, + "negatives": 2521, + "auroc": 0.8347053977359412, + "auprc": 0.21639058546690088, + "brier": 0.022119732257139868, + "calibration": { + "observed_rate": 0.025135344160866203, + "mean_prediction": 0.015094542616312096, + "calibration_in_the_large": -0.010040801544554107, + "expected_calibration_error_10bin": 0.010788552945915453, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 71, + "negatives": 2515, + "auroc": 0.8445776047937725, + "auprc": 0.25599589210326795, + "brier": 0.023531788848020176, + "calibration": { + "observed_rate": 0.02745552977571539, + "mean_prediction": 0.016252452258763834, + "calibration_in_the_large": -0.011203077516951557, + "expected_calibration_error_10bin": 0.012460884371981425, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 75, + "negatives": 2511, + "auroc": 0.8399628302137263, + "auprc": 0.2521379287087824, + "brier": 0.02491155919878669, + "calibration": { + "observed_rate": 0.029002320185614848, + "mean_prediction": 0.01746079724532369, + "calibration_in_the_large": -0.01154152294029116, + "expected_calibration_error_10bin": 0.013954621893454148, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 81, + "negatives": 2505, + "auroc": 0.8370074665483848, + "auprc": 0.25124313550471583, + "brier": 0.026977567502215995, + "calibration": { + "observed_rate": 0.031322505800464036, + "mean_prediction": 0.018357473951793893, + "calibration_in_the_large": -0.012965031848670143, + "expected_calibration_error_10bin": 0.014760031350030503, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 85, + "negatives": 2501, + "auroc": 0.8365500858480137, + "auprc": 0.2505708565394879, + "brier": 0.0283021891244456, + "calibration": { + "observed_rate": 0.0328692962103635, + "mean_prediction": 0.019343453673758847, + "calibration_in_the_large": -0.01352584253660465, + "expected_calibration_error_10bin": 0.014430512892003911, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 86, + "negatives": 2500, + "auroc": 0.8376837209302326, + "auprc": 0.25085584966650737, + "brier": 0.028607021055105382, + "calibration": { + "observed_rate": 0.033255993812838364, + "mean_prediction": 0.020058081894771082, + "calibration_in_the_large": -0.013197911918067282, + "expected_calibration_error_10bin": 0.013376040744713132, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + { + "valid": 2586, + "positives": 87, + "negatives": 2499, + "auroc": 0.8396921987185679, + "auprc": 0.255270555735594, + "brier": 0.028875758397065802, + "calibration": { + "observed_rate": 0.033642691415313224, + "mean_prediction": 0.02020629925868027, + "calibration_in_the_large": -0.013436392156632955, + "expected_calibration_error_10bin": 0.013436392156632953, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + } + ], + "reason": null + }, + "D70": { + "time_averaged_auroc": 0.8938257425634102, + "time_averaged_auprc": 0.20419556705513126, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2787, + "positives": 5, + "negatives": 2782, + "auroc": 0.9108554996405464, + "auprc": 0.2734747313414348, + "brier": 0.0016741208887034193, + "calibration": { + "observed_rate": 0.001794043774668102, + "mean_prediction": 0.002006726110045989, + "calibration_in_the_large": 0.0002126823353778872, + "expected_calibration_error_10bin": 0.00037955081059050594, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9326196473551638, + "auprc": 0.12341680198995256, + "brier": 0.0030520118674975992, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.004294573049797958, + "calibration_in_the_large": 0.0014241030103289945, + "expected_calibration_error_10bin": 0.0021928908722697866, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 17, + "negatives": 2770, + "auroc": 0.9018687619452113, + "auprc": 0.20485567403564417, + "brier": 0.0056255924905160085, + "calibration": { + "observed_rate": 0.006099748833871547, + "mean_prediction": 0.005869294238512887, + "calibration_in_the_large": -0.00023045459535865967, + "expected_calibration_error_10bin": 0.003262290517742563, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8733285146367907, + "auprc": 0.18042866792732568, + "brier": 0.006922123203272404, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.007097712149175136, + "calibration_in_the_large": -7.84629494972721e-05, + "expected_calibration_error_10bin": 0.004755614974713548, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8739790386700398, + "auprc": 0.18129274227830458, + "brier": 0.007221507205595192, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.008174122932715782, + "calibration_in_the_large": 0.0009979478340433742, + "expected_calibration_error_10bin": 0.005198776596650972, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.883084004602992, + "auprc": 0.1811658841923935, + "brier": 0.007981340724656918, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.008653525370924666, + "calibration_in_the_large": 0.0007597327623850188, + "expected_calibration_error_10bin": 0.0059860497556853, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 24, + "negatives": 2763, + "auroc": 0.8866871757751237, + "auprc": 0.21771940361440378, + "brier": 0.008467993622626185, + "calibration": { + "observed_rate": 0.008611410118406888, + "mean_prediction": 0.009230768708367346, + "calibration_in_the_large": 0.0006193585899604576, + "expected_calibration_error_10bin": 0.006353798838006629, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8933914690886803, + "auprc": 0.21943038781441174, + "brier": 0.00929622503369325, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.009867203273109542, + "calibration_in_the_large": 0.0005381756448354126, + "expected_calibration_error_10bin": 0.007335494439905399, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8929874905970524, + "auprc": 0.21582329942451497, + "brier": 0.009475834173076986, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.01035722851255551, + "calibration_in_the_large": 0.0010282008842813807, + "expected_calibration_error_10bin": 0.00746958466132883, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8930014208898671, + "auprc": 0.21426600765665693, + "brier": 0.009616826565990916, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.010837250306891063, + "calibration_in_the_large": 0.0015082226786169335, + "expected_calibration_error_10bin": 0.007480283084735348, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8931267935251999, + "auprc": 0.2143065877600498, + "brier": 0.009743720661455025, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.011265904425024623, + "calibration_in_the_large": 0.0019368767967504943, + "expected_calibration_error_10bin": 0.007653967655566481, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8924024182988326, + "auprc": 0.2141821797548124, + "brier": 0.009861339738704835, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.011714754620694668, + "calibration_in_the_large": 0.0023857269924205393, + "expected_calibration_error_10bin": 0.007742814542682188, + "nonempty_bins": 10 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8924024182988326, + "auprc": 0.21418000392680187, + "brier": 0.009864562873158738, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.011727423877719807, + "calibration_in_the_large": 0.002398396249445678, + "expected_calibration_error_10bin": 0.007739774355068508, + "nonempty_bins": 10 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + } + ], + "reason": null + }, + "D72": { + "time_averaged_auroc": 0.7187039660037071, + "time_averaged_auprc": 0.06064638193126837, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2595, + "positives": 16, + "negatives": 2579, + "auroc": 0.7313639007367196, + "auprc": 0.03816807544229159, + "brier": 0.006085612723362515, + "calibration": { + "observed_rate": 0.006165703275529865, + "mean_prediction": 0.005383111613462562, + "calibration_in_the_large": -0.0007825916620673029, + "expected_calibration_error_10bin": 0.0007825916620673029, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 26, + "negatives": 2569, + "auroc": 0.7506662275054645, + "auprc": 0.05959457939219089, + "brier": 0.00978406285136386, + "calibration": { + "observed_rate": 0.01001926782273603, + "mean_prediction": 0.008976591114469119, + "calibration_in_the_large": -0.0010426767082669115, + "expected_calibration_error_10bin": 0.0010426767082669115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 34, + "negatives": 2561, + "auroc": 0.7143808714426809, + "auprc": 0.06845233489906771, + "brier": 0.01276382126554009, + "calibration": { + "observed_rate": 0.013102119460500963, + "mean_prediction": 0.011173949970388005, + "calibration_in_the_large": -0.0019281694901129576, + "expected_calibration_error_10bin": 0.0019281694901129587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 39, + "negatives": 2556, + "auroc": 0.6979655712050078, + "auprc": 0.06426796464079922, + "brier": 0.014639303471920136, + "calibration": { + "observed_rate": 0.015028901734104046, + "mean_prediction": 0.013456614787081572, + "calibration_in_the_large": -0.0015722869470224735, + "expected_calibration_error_10bin": 0.0017740763759851526, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 45, + "negatives": 2550, + "auroc": 0.7036688453159041, + "auprc": 0.05761163952776352, + "brier": 0.01682078163420947, + "calibration": { + "observed_rate": 0.017341040462427744, + "mean_prediction": 0.01523869841345873, + "calibration_in_the_large": -0.0021023420489690147, + "expected_calibration_error_10bin": 0.002843174914551743, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 46, + "negatives": 2549, + "auroc": 0.708402271990721, + "auprc": 0.0686432336617789, + "brier": 0.0171936707994264, + "calibration": { + "observed_rate": 0.017726396917148363, + "mean_prediction": 0.01672304495369436, + "calibration_in_the_large": -0.0010033519634540036, + "expected_calibration_error_10bin": 0.0026155455042549763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 50, + "negatives": 2545, + "auroc": 0.7178467583497053, + "auprc": 0.05549821498215507, + "brier": 0.018670357242641933, + "calibration": { + "observed_rate": 0.019267822736030827, + "mean_prediction": 0.018024507328721663, + "calibration_in_the_large": -0.0012433154073091639, + "expected_calibration_error_10bin": 0.0036127667234149997, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 54, + "negatives": 2541, + "auroc": 0.7163554739312316, + "auprc": 0.05929998483927427, + "brier": 0.02014822401871637, + "calibration": { + "observed_rate": 0.020809248554913295, + "mean_prediction": 0.019410206734647828, + "calibration_in_the_large": -0.0013990418202654668, + "expected_calibration_error_10bin": 0.004273772465382739, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 58, + "negatives": 2537, + "auroc": 0.7138216465279382, + "auprc": 0.05942413895515512, + "brier": 0.021628239864839607, + "calibration": { + "observed_rate": 0.022350674373795763, + "mean_prediction": 0.020776156338177594, + "calibration_in_the_large": -0.0015745180356181686, + "expected_calibration_error_10bin": 0.0036343020504082126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 60, + "negatives": 2535, + "auroc": 0.7197961867192636, + "auprc": 0.06100393494075676, + "brier": 0.022363571112060873, + "calibration": { + "observed_rate": 0.023121387283236993, + "mean_prediction": 0.021937812896317986, + "calibration_in_the_large": -0.001183574386919007, + "expected_calibration_error_10bin": 0.004418253307212825, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 65, + "negatives": 2530, + "auroc": 0.724901185770751, + "auprc": 0.06492838127605928, + "brier": 0.024155201203301564, + "calibration": { + "observed_rate": 0.025048169556840076, + "mean_prediction": 0.022832594710753905, + "calibration_in_the_large": -0.0022155748460861713, + "expected_calibration_error_10bin": 0.005561394459004507, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7218850368411109, + "auprc": 0.06573069669864896, + "brier": 0.024896036661290085, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.02405226506379851, + "calibration_in_the_large": -0.0017666174024827987, + "expected_calibration_error_10bin": 0.006052228244360686, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7220975817116947, + "auprc": 0.06577978585054754, + "brier": 0.024900540336079083, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.024263301634822786, + "calibration_in_the_large": -0.0015555808314585244, + "expected_calibration_error_10bin": 0.005974828996421924, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + } + ], + "reason": null + }, + "D73": { + "time_averaged_auroc": 0.8139907182471481, + "time_averaged_auprc": 0.04154742063239906, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 1.9504110524711797e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00025313025771450215, + "calibration_in_the_large": 0.00025313025771450215, + "expected_calibration_error_10bin": 0.00025313025771450215, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9968119022316685, + "auprc": 0.1, + "brier": 0.00034547936038455514, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00046313496483699066, + "calibration_in_the_large": 0.00010902731611177818, + "expected_calibration_error_10bin": 0.00010902731611177818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.7248405386250886, + "auprc": 0.056201967966673844, + "brier": 0.0007002585790677525, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.000715673733393748, + "calibration_in_the_large": 7.458435943323008e-06, + "expected_calibration_error_10bin": 7.458435943323008e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.7344082211197732, + "auprc": 0.04233780760626398, + "brier": 0.0007030521560314522, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008506269056481505, + "calibration_in_the_large": 0.00014241160819772553, + "expected_calibration_error_10bin": 0.00014241160819772558, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8098782937492615, + "auprc": 0.03653244030602521, + "brier": 0.0010583751532471759, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0009581079535638231, + "calibration_in_the_large": -0.0001042149926118144, + "expected_calibration_error_10bin": 0.00019238568578071105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8109417464256173, + "auprc": 0.03677580742798134, + "brier": 0.0010619977320263892, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010848539121158162, + "calibration_in_the_large": 2.2530965940178744e-05, + "expected_calibration_error_10bin": 7.54439472915329e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8121233605104573, + "auprc": 0.03683079317270165, + "brier": 0.0010627817029087092, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011258455738679745, + "calibration_in_the_large": 6.352262769233701e-05, + "expected_calibration_error_10bin": 6.352262769233723e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8123596833274253, + "auprc": 0.03425654248540352, + "brier": 0.0010677474174888729, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012467208474711416, + "calibration_in_the_large": 0.00018439790129550415, + "expected_calibration_error_10bin": 0.00018439790129550434, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8128323289613613, + "auprc": 0.03425840622636961, + "brier": 0.001072460737264063, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0013547609155051034, + "calibration_in_the_large": 0.00029243796932946586, + "expected_calibration_error_10bin": 0.0002924379693294659, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8135412974122651, + "auprc": 0.030344290212711265, + "brier": 0.0010790808570350604, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014746780182581904, + "calibration_in_the_large": 0.0004123550720825529, + "expected_calibration_error_10bin": 0.00041235507208255313, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8129504903698452, + "auprc": 0.030341939722681104, + "brier": 0.0010878727964508453, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0016301861705855175, + "calibration_in_the_large": 0.00056786322440988, + "expected_calibration_error_10bin": 0.0005678632244098802, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8136594588207492, + "auprc": 0.030344762249265776, + "brier": 0.0010962894274434293, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001725780532993125, + "calibration_in_the_large": 0.0006634575868174875, + "expected_calibration_error_10bin": 0.0006634575868174875, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8135412974122651, + "auprc": 0.030344290212711265, + "brier": 0.001096471423451946, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0017298332565814662, + "calibration_in_the_large": 0.0006675103104058287, + "expected_calibration_error_10bin": 0.0006675103104058287, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "D75": { + "time_averaged_auroc": 0.8807559570525346, + "time_averaged_auprc": 0.00863502565238169, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 2.49393718349922e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002851172042081186, + "calibration_in_the_large": 0.0002851172042081186, + "expected_calibration_error_10bin": 0.0002851172042081186, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 9.295928190257744e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004911594269968966, + "calibration_in_the_large": 0.0004911594269968966, + "expected_calibration_error_10bin": 0.0004911594269968966, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.9473498233215548, + "auprc": 0.006666666666666667, + "brier": 0.0003554792822506667, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0007910655730175904, + "calibration_in_the_large": 0.0004378334995453191, + "expected_calibration_error_10bin": 0.0004378334995453191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9188759278897137, + "auprc": 0.006526692361746982, + "brier": 0.0007085950207772566, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0009463096645160032, + "calibration_in_the_large": 0.00023984551757146066, + "expected_calibration_error_10bin": 0.00023984551757146066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9194061505832449, + "auprc": 0.006495971653941874, + "brier": 0.0007098039814718551, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0010756573479457593, + "calibration_in_the_large": 0.00036919320100121673, + "expected_calibration_error_10bin": 0.00036919320100121673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.8468882602545968, + "auprc": 0.005306873363862833, + "brier": 0.00106322302119167, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.001185949191079657, + "calibration_in_the_large": 0.00012625297066284316, + "expected_calibration_error_10bin": 0.00012625297066284316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.8498349834983498, + "auprc": 0.0053959806305415884, + "brier": 0.0010646678163314432, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.001308058017248549, + "calibration_in_the_large": 0.00024836179683173504, + "expected_calibration_error_10bin": 0.00024836179683173504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8788468340997524, + "auprc": 0.010517468191240381, + "brier": 0.0014136887008022164, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0014284616274364119, + "calibration_in_the_large": 1.5533333547326778e-05, + "expected_calibration_error_10bin": 1.5533333547326778e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.874336752741422, + "auprc": 0.011035523616168778, + "brier": 0.0014146089096501334, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0015422036944791968, + "calibration_in_the_large": 0.00012927540059011174, + "expected_calibration_error_10bin": 0.00012927540059011174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8686770428015564, + "auprc": 0.010822045165089063, + "brier": 0.0014173865536529374, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0017098831890958802, + "calibration_in_the_large": 0.0002969548952067951, + "expected_calibration_error_10bin": 0.0002969548952067951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8634594977007428, + "auprc": 0.010666273369554082, + "brier": 0.0014205149403855783, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0018572505108080681, + "calibration_in_the_large": 0.000444322216918983, + "expected_calibration_error_10bin": 0.000444322216918983, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8604527767951893, + "auprc": 0.010742749223357445, + "brier": 0.0014255679311028799, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0019867897276974653, + "calibration_in_the_large": 0.0005738614338083802, + "expected_calibration_error_10bin": 0.0005738614338083802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8601874778917581, + "auprc": 0.010809037934028898, + "brier": 0.0014259446555396976, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.002006929318383333, + "calibration_in_the_large": 0.0005940010244942478, + "expected_calibration_error_10bin": 0.0005940010244942478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "D80": { + "time_averaged_auroc": 0.9884408020114637, + "time_averaged_auprc": 0.09490044503943719, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9936418226774991, + "auprc": 0.05263157894736842, + "brier": 0.0003500363648031491, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 0.00017743002507566354, + "calibration_in_the_large": -0.00017567731955710482, + "expected_calibration_error_10bin": 0.00017567731955710482, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.9904559915164369, + "auprc": 0.08762626262626262, + "brier": 0.0010375068490008823, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.00040256521460478156, + "calibration_in_the_large": -0.0006567568192935235, + "expected_calibration_error_10bin": 0.0006567568192935235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.9907178217821783, + "auprc": 0.10593671679197994, + "brier": 0.0013703133034203918, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006758975675346696, + "calibration_in_the_large": -0.0007365318109964038, + "expected_calibration_error_10bin": 0.0008207739841249494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.9908029713477184, + "auprc": 0.10905179615705932, + "brier": 0.0017040626723463892, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0008084722000886439, + "calibration_in_the_large": -0.0009570645230751979, + "expected_calibration_error_10bin": 0.0010545025531463756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9876739797121963, + "auprc": 0.10169698552466915, + "brier": 0.0020546717866872515, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009290849352633765, + "calibration_in_the_large": -0.0011895591325332337, + "expected_calibration_error_10bin": 0.0013835953501816643, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9875560273649445, + "auprc": 0.09960972877639544, + "brier": 0.0020522993553681802, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0011237014086648582, + "calibration_in_the_large": -0.000994942659131752, + "expected_calibration_error_10bin": 0.0014685523373685304, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.987379098844067, + "auprc": 0.09798430831246303, + "brier": 0.0020570048536956197, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0012886570519774613, + "calibration_in_the_large": -0.0008299870158191489, + "expected_calibration_error_10bin": 0.00137913723097582, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9870842179759377, + "auprc": 0.0959977109947961, + "brier": 0.0020594495852435907, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.00143894254702832, + "calibration_in_the_large": -0.0006797015207682903, + "expected_calibration_error_10bin": 0.001355540335006324, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9869662656286861, + "auprc": 0.09623880086183162, + "brier": 0.002074178669056824, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0016944774123270187, + "calibration_in_the_large": -0.0004241666554695915, + "expected_calibration_error_10bin": 0.0014674716774486323, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9869662656286861, + "auprc": 0.09584048673232733, + "brier": 0.0020871646831931608, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0018293261456363526, + "calibration_in_the_large": -0.00028931792216025753, + "expected_calibration_error_10bin": 0.001503449203613595, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9867893371078085, + "auprc": 0.09694339225589226, + "brier": 0.0020920234029795917, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0019559877838652017, + "calibration_in_the_large": -0.0001626562839314085, + "expected_calibration_error_10bin": 0.0008714125788116179, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9868483132814343, + "auprc": 0.0970740087658191, + "brier": 0.002093037299356732, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.001995225487643898, + "calibration_in_the_large": -0.00012341858015271203, + "expected_calibration_error_10bin": 0.0008431127219774155, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9868483132814343, + "auprc": 0.0970740087658191, + "brier": 0.00209328152307807, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0019999326421244446, + "calibration_in_the_large": -0.00011871142567216556, + "expected_calibration_error_10bin": 0.0008405798584357717, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + } + ], + "reason": null + }, + "D89": { + "time_averaged_auroc": 0.7448250386191148, + "time_averaged_auprc": 0.008255699812589699, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2837, + "positives": 1, + "negatives": 2836, + "auroc": 0.9732016925246827, + "auprc": 0.012987012987012988, + "brier": 0.0003535482707142341, + "calibration": { + "observed_rate": 0.00035248501938667606, + "mean_prediction": 0.00011698943559988827, + "calibration_in_the_large": -0.0002354955837867878, + "expected_calibration_error_10bin": 0.0002354955837867878, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7317460317460317, + "auprc": 0.007830615052073098, + "brier": 0.0007162174799651672, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0003508666197286298, + "calibration_in_the_large": -0.0003541034190447223, + "expected_calibration_error_10bin": 0.0003541034190447223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7213403880070547, + "auprc": 0.007511566724122289, + "brier": 0.0007492374453323964, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006570756990272853, + "calibration_in_the_large": -4.789433974606682e-05, + "expected_calibration_error_10bin": 0.0004144084531097503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7165784832451499, + "auprc": 0.0075946395029619996, + "brier": 0.0008266944366264798, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0010764587830692904, + "calibration_in_the_large": 0.00037148874429593825, + "expected_calibration_error_10bin": 0.0006978893963179659, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7139329805996473, + "auprc": 0.007889050333445103, + "brier": 0.0008658629397269303, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0012510402118740245, + "calibration_in_the_large": 0.0005460701731006724, + "expected_calibration_error_10bin": 0.000825297888903885, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7148148148148148, + "auprc": 0.007788018433179724, + "brier": 0.0009403289482036849, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0014977020993768128, + "calibration_in_the_large": 0.0007927320606034607, + "expected_calibration_error_10bin": 0.00109072356082378, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.717989417989418, + "auprc": 0.007898692532403075, + "brier": 0.0009678205593414529, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0015965838794154738, + "calibration_in_the_large": 0.0008916138406421216, + "expected_calibration_error_10bin": 0.001323135027377391, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7333333333333333, + "auprc": 0.007834898665348491, + "brier": 0.001019922600834947, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0017649876323250502, + "calibration_in_the_large": 0.0010600175935516981, + "expected_calibration_error_10bin": 0.001590651950259507, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7296296296296296, + "auprc": 0.007928040069944579, + "brier": 0.0010955566360080788, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.001974150264713182, + "calibration_in_the_large": 0.0012691802259398297, + "expected_calibration_error_10bin": 0.0017647673478792952, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7298059964726631, + "auprc": 0.007928505051703344, + "brier": 0.0011729460079312783, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0021667567302214065, + "calibration_in_the_large": 0.0014617866914480543, + "expected_calibration_error_10bin": 0.001863410454362239, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7324514991181658, + "auprc": 0.008041646410630368, + "brier": 0.0012254152083259293, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.002295115407355433, + "calibration_in_the_large": 0.001590145368582081, + "expected_calibration_error_10bin": 0.0019199600921425326, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7333333333333333, + "auprc": 0.008044026179926013, + "brier": 0.0012917342477800943, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.002450454551166915, + "calibration_in_the_large": 0.0017454845123935627, + "expected_calibration_error_10bin": 0.0020610532565875717, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7345679012345679, + "auprc": 0.008047385620915032, + "brier": 0.001292461191607905, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0024532081193773475, + "calibration_in_the_large": 0.0017482380806039953, + "expected_calibration_error_10bin": 0.0020607957247947405, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + } + ], + "reason": null + }, + "E03": { + "time_averaged_auroc": 0.7719252658380616, + "time_averaged_auprc": 0.026314689984468252, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2480, + "positives": 7, + "negatives": 2473, + "auroc": 0.8018023222228641, + "auprc": 0.017732046626330857, + "brier": 0.0028105494695815775, + "calibration": { + "observed_rate": 0.00282258064516129, + "mean_prediction": 0.0011538897573099083, + "calibration_in_the_large": -0.0016686908878513818, + "expected_calibration_error_10bin": 0.0016686908878513818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 11, + "negatives": 2469, + "auroc": 0.784417688427409, + "auprc": 0.01974432175627984, + "brier": 0.004406192074114288, + "calibration": { + "observed_rate": 0.004435483870967742, + "mean_prediction": 0.001888365844751749, + "calibration_in_the_large": -0.002547118026215993, + "expected_calibration_error_10bin": 0.002547118026215993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 14, + "negatives": 2466, + "auroc": 0.7528965357432511, + "auprc": 0.01871429387767563, + "brier": 0.005604877724220608, + "calibration": { + "observed_rate": 0.00564516129032258, + "mean_prediction": 0.0023993716922720318, + "calibration_in_the_large": -0.0032457895980505485, + "expected_calibration_error_10bin": 0.0032457895980505485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 17, + "negatives": 2463, + "auroc": 0.779393852547109, + "auprc": 0.025887687597935662, + "brier": 0.006788813880102334, + "calibration": { + "observed_rate": 0.0068548387096774195, + "mean_prediction": 0.002920852277459803, + "calibration_in_the_large": -0.003933986432217616, + "expected_calibration_error_10bin": 0.003933986432217616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.7854499503565304, + "auprc": 0.028399026831329523, + "brier": 0.007177247592806332, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.0033776343385867338, + "calibration_in_the_large": -0.003880430177542299, + "expected_calibration_error_10bin": 0.003880430177542299, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.7866007762433432, + "auprc": 0.027966445914145908, + "brier": 0.0071716836617183605, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.0037961231600899823, + "calibration_in_the_large": -0.0034619413560390503, + "expected_calibration_error_10bin": 0.0034619413560390503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 20, + "negatives": 2460, + "auroc": 0.7803861788617886, + "auprc": 0.029805818257624267, + "brier": 0.007958729351120094, + "calibration": { + "observed_rate": 0.008064516129032258, + "mean_prediction": 0.00426211753178171, + "calibration_in_the_large": -0.003802398597250548, + "expected_calibration_error_10bin": 0.003802398597250548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 21, + "negatives": 2459, + "auroc": 0.7760413640852843, + "auprc": 0.029732337747231587, + "brier": 0.008351187123863502, + "calibration": { + "observed_rate": 0.008467741935483872, + "mean_prediction": 0.004665701727126068, + "calibration_in_the_large": -0.0038020402083578037, + "expected_calibration_error_10bin": 0.0038020402083578037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 22, + "negatives": 2458, + "auroc": 0.7690472668096753, + "auprc": 0.029097208736929135, + "brier": 0.00874703362325911, + "calibration": { + "observed_rate": 0.008870967741935484, + "mean_prediction": 0.00503106600974881, + "calibration_in_the_large": -0.003839901732186674, + "expected_calibration_error_10bin": 0.003839901732186674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 23, + "negatives": 2457, + "auroc": 0.7648953301127214, + "auprc": 0.02874823808852411, + "brier": 0.00914176355134964, + "calibration": { + "observed_rate": 0.009274193548387096, + "mean_prediction": 0.005433697250842787, + "calibration_in_the_large": -0.003840496297544309, + "expected_calibration_error_10bin": 0.003840496297544309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 24, + "negatives": 2456, + "auroc": 0.7692216340933767, + "auprc": 0.029749456598034213, + "brier": 0.00953272841521258, + "calibration": { + "observed_rate": 0.00967741935483871, + "mean_prediction": 0.005691429847895286, + "calibration_in_the_large": -0.003985989506943424, + "expected_calibration_error_10bin": 0.003985989506943424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.7424299416964454, + "auprc": 0.02823701344803842, + "brier": 0.010331791394976713, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.006089743030318665, + "calibration_in_the_large": -0.004394127937423271, + "expected_calibration_error_10bin": 0.004394127937423271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.7424456146950035, + "auprc": 0.028277074318008168, + "brier": 0.010330959593317729, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.00615778250737182, + "calibration_in_the_large": -0.004326088460370117, + "expected_calibration_error_10bin": 0.004326088460370117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + } + ], + "reason": null + }, + "E04": { + "time_averaged_auroc": 0.7654078691491295, + "time_averaged_auprc": 0.008443636034542306, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8083213083213083, + "auprc": 0.003740959024264235, + "brier": 0.0010802816832026522, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.0003224926221825323, + "calibration_in_the_large": -0.0007585884588985489, + "expected_calibration_error_10bin": 0.0007585884588985489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 4, + "negatives": 2771, + "auroc": 0.7426921688920968, + "auprc": 0.003624542445420509, + "brier": 0.0014400162044832102, + "calibration": { + "observed_rate": 0.0014414414414414415, + "mean_prediction": 0.0006687557164473179, + "calibration_in_the_large": -0.0007726857249941236, + "expected_calibration_error_10bin": 0.0007726857249941236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.7754303599374022, + "auprc": 0.00577995379916111, + "brier": 0.0021581450629026043, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0010410764478404639, + "calibration_in_the_large": -0.0011210857143216983, + "expected_calibration_error_10bin": 0.0011210857143216983, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.7841976870256595, + "auprc": 0.007580836689640611, + "brier": 0.0028755908170891124, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.001371773971447043, + "calibration_in_the_large": -0.00151110891143584, + "expected_calibration_error_10bin": 0.00151110891143584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.8046517233068209, + "auprc": 0.010304430181906955, + "brier": 0.0032301044159560133, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0016293897360866378, + "calibration_in_the_large": -0.0016138535071566053, + "expected_calibration_error_10bin": 0.0016138535071566053, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.804370531051659, + "auprc": 0.010234018942221333, + "brier": 0.0032299698467063783, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0018681050947555844, + "calibration_in_the_large": -0.0013751381484876587, + "expected_calibration_error_10bin": 0.0013751381484876587, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.8030449104201816, + "auprc": 0.010101194112064496, + "brier": 0.0032305200829710152, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.002136071996220864, + "calibration_in_the_large": -0.0011071712470223792, + "expected_calibration_error_10bin": 0.0011071712470223792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.8030047400980156, + "auprc": 0.010087949486056735, + "brier": 0.003230868138709444, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.002238682882204418, + "calibration_in_the_large": -0.001004560361038825, + "expected_calibration_error_10bin": 0.001004560361038825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7239179055387449, + "auprc": 0.009588941925127466, + "brier": 0.003951436594632473, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0024164158430049847, + "calibration_in_the_large": -0.0015475481209589795, + "expected_calibration_error_10bin": 0.0015475481209589795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7243783712669386, + "auprc": 0.009726857293219168, + "brier": 0.003952911213984702, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.002528337321898623, + "calibration_in_the_large": -0.0014356266420653412, + "expected_calibration_error_10bin": 0.0014356266420653412, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7255624259965794, + "auprc": 0.009698943573834143, + "brier": 0.003954773654406154, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.002687320263937943, + "calibration_in_the_large": -0.0012766437000260211, + "expected_calibration_error_10bin": 0.0012766437000260211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.725397973950796, + "auprc": 0.009652332671141114, + "brier": 0.003958167325990614, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0029204628179142164, + "calibration_in_the_large": -0.0010435011460497479, + "expected_calibration_error_10bin": 0.0010435011460497479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7253321931324825, + "auprc": 0.00964630830499211, + "brier": 0.003958621594704624, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0029608830488546487, + "calibration_in_the_large": -0.0010030809151093155, + "expected_calibration_error_10bin": 0.0010030809151093155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + } + ], + "reason": null + }, + "E05": { + "time_averaged_auroc": 0.3188795680530342, + "time_averaged_auprc": 0.001514750859788177, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.16815263908701855, + "auprc": 0.0006329533404029693, + "brier": 0.0007128591907678174, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0002707396092122215, + "calibration_in_the_large": -0.00044201876569868373, + "expected_calibration_error_10bin": 0.00044201876569868373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.19008559201141226, + "auprc": 0.0006455398602807348, + "brier": 0.0007131870052526652, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0004536771845190961, + "calibration_in_the_large": -0.0002590811903918091, + "expected_calibration_error_10bin": 0.0002590811903918091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.1952567760342368, + "auprc": 0.0006534012789304021, + "brier": 0.0007136367799516613, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0005918213579966826, + "calibration_in_the_large": -0.00012093701691422262, + "expected_calibration_error_10bin": 0.00012093701691422262, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.18955064194008558, + "auprc": 0.000649441340782123, + "brier": 0.0007141963782207059, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0007184969936762514, + "calibration_in_the_large": 5.738618765346176e-06, + "expected_calibration_error_10bin": 5.738618765346176e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.1924037089871612, + "auprc": 0.0006523734208111222, + "brier": 0.000714899951299455, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0008666416829817656, + "calibration_in_the_large": 0.00015388330807086033, + "expected_calibration_error_10bin": 0.00015388330807086033, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.2045292439372325, + "auprc": 0.0006637107190537965, + "brier": 0.0007152157101347351, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0009306031449029581, + "calibration_in_the_large": 0.0002178447699920529, + "expected_calibration_error_10bin": 0.0002178447699920529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.311927696515638, + "auprc": 0.0009894083804222733, + "brier": 0.001071579927095035, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0010253598320313496, + "calibration_in_the_large": -4.3777730335008234e-05, + "expected_calibration_error_10bin": 4.3777730335008234e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.3176358663336901, + "auprc": 0.000997814140394902, + "brier": 0.0010722580946016936, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0011320671977305952, + "calibration_in_the_large": 6.292963536423733e-05, + "expected_calibration_error_10bin": 6.292963536423733e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4738579586009993, + "auprc": 0.002823374263040885, + "brier": 0.0014262687706311022, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0012278480665198247, + "calibration_in_the_large": -0.00019766868330198576, + "expected_calibration_error_10bin": 0.00019766868330198576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.47778372591006424, + "auprc": 0.0028203095628040672, + "brier": 0.0014264536080450196, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.001276289479579634, + "calibration_in_the_large": -0.00014922727024217655, + "expected_calibration_error_10bin": 0.00014922727024217655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4763561741613134, + "auprc": 0.0027959528340991157, + "brier": 0.0014269256762217922, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0013608701735502524, + "calibration_in_the_large": -6.464657627155805e-05, + "expected_calibration_error_10bin": 6.464657627155805e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4739471805852962, + "auprc": 0.002683716440660162, + "brier": 0.0014275608169382712, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0014561061192734665, + "calibration_in_the_large": 3.058936945165604e-05, + "expected_calibration_error_10bin": 3.058936945165604e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4739471805852962, + "auprc": 0.0026837655955637483, + "brier": 0.0014276629075974576, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.001469692707658925, + "calibration_in_the_large": 4.417595783711456e-05, + "expected_calibration_error_10bin": 4.417595783711456e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "E11": { + "time_averaged_auroc": 0.7535014078928756, + "time_averaged_auprc": 0.06592794788347625, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2194, + "positives": 6, + "negatives": 2188, + "auroc": 0.6689518586227909, + "auprc": 0.09691164946092255, + "brier": 0.0027088117524846195, + "calibration": { + "observed_rate": 0.0027347310847766638, + "mean_prediction": 0.001781540918422069, + "calibration_in_the_large": -0.0009531901663545948, + "expected_calibration_error_10bin": 0.0009531901663545948, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 9, + "negatives": 2185, + "auroc": 0.6856343757945589, + "auprc": 0.06961833720734374, + "brier": 0.004062085070980716, + "calibration": { + "observed_rate": 0.004102096627164996, + "mean_prediction": 0.0026906840305722995, + "calibration_in_the_large": -0.0014114125965926962, + "expected_calibration_error_10bin": 0.0014114125965926962, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 11, + "negatives": 2183, + "auroc": 0.7502602756840046, + "auprc": 0.0892733997592852, + "brier": 0.004929129022475302, + "calibration": { + "observed_rate": 0.005013673655423883, + "mean_prediction": 0.0032763995494132937, + "calibration_in_the_large": -0.0017372741060105897, + "expected_calibration_error_10bin": 0.0018305498329931305, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.7446831023172151, + "auprc": 0.06991196414236671, + "brier": 0.005825846222775635, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.004058246386010146, + "calibration_in_the_large": -0.0018670042976726246, + "expected_calibration_error_10bin": 0.0019743590003569967, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.745988078862907, + "auprc": 0.06138248148847568, + "brier": 0.005822741212765412, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.00484180934939292, + "calibration_in_the_large": -0.001083441334289851, + "expected_calibration_error_10bin": 0.0012195734121259287, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 15, + "negatives": 2179, + "auroc": 0.7674162459843965, + "auprc": 0.059158028238614976, + "brier": 0.00670627775795418, + "calibration": { + "observed_rate": 0.0068368277119416595, + "mean_prediction": 0.005240474801599229, + "calibration_in_the_large": -0.0015963529103424304, + "expected_calibration_error_10bin": 0.001743047086085248, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 17, + "negatives": 2177, + "auroc": 0.7824853414034424, + "auprc": 0.05714579417503384, + "brier": 0.007578439153307648, + "calibration": { + "observed_rate": 0.007748404740200547, + "mean_prediction": 0.00569609299426372, + "calibration_in_the_large": -0.0020523117459368273, + "expected_calibration_error_10bin": 0.002206523211121257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.7861826981246219, + "auprc": 0.05698923403697925, + "brier": 0.008463684053583744, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.006398478787269134, + "calibration_in_the_large": -0.002261502981190301, + "expected_calibration_error_10bin": 0.002537525509912137, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.7852147610405323, + "auprc": 0.05150412611449149, + "brier": 0.008472405889300262, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.007033839955784392, + "calibration_in_the_large": -0.0016261418126750438, + "expected_calibration_error_10bin": 0.001819976429906406, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 20, + "negatives": 2174, + "auroc": 0.796803127874885, + "auprc": 0.059213995321471945, + "brier": 0.008871553772924177, + "calibration": { + "observed_rate": 0.009115770282588878, + "mean_prediction": 0.007588257417552806, + "calibration_in_the_large": -0.0015275128650360723, + "expected_calibration_error_10bin": 0.0017283896460789318, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 21, + "negatives": 2173, + "auroc": 0.7819560405846646, + "auprc": 0.05680999058612229, + "brier": 0.00932393987718072, + "calibration": { + "observed_rate": 0.009571558796718322, + "mean_prediction": 0.00820442257454007, + "calibration_in_the_large": -0.001367136222178253, + "expected_calibration_error_10bin": 0.0015831957787029005, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7499615975422427, + "auprc": 0.06431174431037512, + "brier": 0.01061131671625204, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.008945213874438083, + "calibration_in_the_large": -0.001993710464668572, + "expected_calibration_error_10bin": 0.0022299808315180965, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7499807987711213, + "auprc": 0.06483257764370845, + "brier": 0.010611265475825199, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.008964073494794979, + "calibration_in_the_large": -0.0019748508443116763, + "expected_calibration_error_10bin": 0.002211392556280625, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + } + ], + "reason": null + }, + "E16": { + "time_averaged_auroc": 0.6317614801029963, + "time_averaged_auprc": 0.004527867528422758, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.866785079928952, + "auprc": 0.0026595744680851063, + "brier": 0.00035565678608553286, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.000529907276890769, + "calibration_in_the_large": 0.00017479364052713265, + "expected_calibration_error_10bin": 0.00017479364052713265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.5923687640715725, + "auprc": 0.0018631644912610993, + "brier": 0.0010698295671586644, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.001103658046044519, + "calibration_in_the_large": 3.831713695361008e-05, + "expected_calibration_error_10bin": 3.831713695361008e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.6097083926031295, + "auprc": 0.0022779384352206054, + "brier": 0.0014266206297692588, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0014240741891623802, + "calibration_in_the_large": 3.6196437078347098e-06, + "expected_calibration_error_10bin": 3.6196437078347098e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.5987731152204836, + "auprc": 0.0022327819787608064, + "brier": 0.0014294500818215672, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0017136327309446838, + "calibration_in_the_large": 0.0002931781854901383, + "expected_calibration_error_10bin": 0.0002931781854901383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.568125222340804, + "auprc": 0.0023998263507056276, + "brier": 0.001789761063870985, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0020480437302571822, + "calibration_in_the_large": 0.0002724755484390005, + "expected_calibration_error_10bin": 0.0002724755484390005, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.5607968694414799, + "auprc": 0.0023649746032298386, + "brier": 0.0017933749501155213, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0022507046620228784, + "calibration_in_the_large": 0.00047513648020469667, + "expected_calibration_error_10bin": 0.00047513648020469667, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.5980427046263345, + "auprc": 0.0030528949842483512, + "brier": 0.0021485570540993705, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0024098303169869887, + "calibration_in_the_large": 0.0002791484988051707, + "expected_calibration_error_10bin": 0.0002791484988051707, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.6437471392971571, + "auprc": 0.004203281000033319, + "brier": 0.0025012253086224238, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.002587954589708891, + "calibration_in_the_large": 0.00010215913516343654, + "expected_calibration_error_10bin": 0.00010215913516343654, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6525106837606838, + "auprc": 0.004668472854746957, + "brier": 0.002856192440594051, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0027386278133085602, + "calibration_in_the_large": -0.00010228127760053074, + "expected_calibration_error_10bin": 0.00010228127760053074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.652744119743407, + "auprc": 0.008227184695182393, + "brier": 0.0035515024436824708, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.002949492785748217, + "calibration_in_the_large": -0.0006016435778881464, + "expected_calibration_error_10bin": 0.0006016435778881464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6357287208749406, + "auprc": 0.008437254199970831, + "brier": 0.0042606378487039095, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.0031222580559800276, + "calibration_in_the_large": -0.0011391055803836084, + "expected_calibration_error_10bin": 0.0011391055803836084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6168116578391284, + "auprc": 0.008238915066368554, + "brier": 0.004618788943534262, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0033538291723441594, + "calibration_in_the_large": -0.0012626481003831136, + "expected_calibration_error_10bin": 0.0012626481003831136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6167567715908779, + "auprc": 0.008236014741682377, + "brier": 0.0046188716063239425, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0033606399257425064, + "calibration_in_the_large": -0.0012558373469847665, + "expected_calibration_error_10bin": 0.0012558373469847665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + } + ], + "reason": null + }, + "E21": { + "time_averaged_auroc": 0.9410431792786901, + "time_averaged_auprc": 0.04581119627055749, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9957340917170281, + "auprc": 0.07692307692307693, + "brier": 0.0003518865871810818, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0003504853018806943, + "calibration_in_the_large": -4.880725127123732e-06, + "expected_calibration_error_10bin": 4.880725127123732e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9939566299324565, + "auprc": 0.05555555555555555, + "brier": 0.00035149401953672775, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0005276992731959661, + "calibration_in_the_large": 0.0001723332461881481, + "expected_calibration_error_10bin": 0.0001723332461881481, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9939566299324565, + "auprc": 0.05555555555555555, + "brier": 0.0003512759075469191, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0006805037678130866, + "calibration_in_the_large": 0.00032513774080526856, + "expected_calibration_error_10bin": 0.00032513774080526856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9957340917170281, + "auprc": 0.07692307692307693, + "brier": 0.00034920200727957994, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0008372852092842055, + "calibration_in_the_large": 0.0004819191822763875, + "expected_calibration_error_10bin": 0.0004819191822763875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9950231070031994, + "auprc": 0.06666666666666667, + "brier": 0.0003497262837363412, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.000955182857574036, + "calibration_in_the_large": 0.000599816830566218, + "expected_calibration_error_10bin": 0.000599816830566218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9946676146462851, + "auprc": 0.0625, + "brier": 0.0003505851427530414, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0011456410571846255, + "calibration_in_the_large": 0.0007902750301768075, + "expected_calibration_error_10bin": 0.0007902750301768075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9655049786628734, + "auprc": 0.03677486187845304, + "brier": 0.0007030643576839405, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0012482175760082793, + "calibration_in_the_large": 0.0005374855219926432, + "expected_calibration_error_10bin": 0.0005374855219926432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9660384068278806, + "auprc": 0.03506148222000664, + "brier": 0.0007040677405972703, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0013539105316250593, + "calibration_in_the_large": 0.0006431784776094233, + "expected_calibration_error_10bin": 0.0006431784776094233, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9615795090715048, + "auprc": 0.030150632034380342, + "brier": 0.0010555419606670417, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001466339255712186, + "calibration_in_the_large": 0.00040024117468873176, + "expected_calibration_error_10bin": 0.00040024117468873176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9620538361200047, + "auprc": 0.031477591036414565, + "brier": 0.001055819028272441, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0015946295096455206, + "calibration_in_the_large": 0.0005285314286220665, + "expected_calibration_error_10bin": 0.0005285314286220665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7913701067615658, + "auprc": 0.024156567341202036, + "brier": 0.001411329452908645, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0016906676177365577, + "calibration_in_the_large": 0.00026920350970528555, + "expected_calibration_error_10bin": 0.00026920350970528555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.808686365254539, + "auprc": 0.021840803115832162, + "brier": 0.0017648591830373376, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0017681681252192398, + "calibration_in_the_large": -8.662009819850438e-06, + "expected_calibration_error_10bin": 8.662009819850438e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.8092559629761481, + "auprc": 0.02195968226702689, + "brier": 0.001764789501823326, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0017872742512823722, + "calibration_in_the_large": 1.0444116243282005e-05, + "expected_calibration_error_10bin": 1.0444116243282005e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + } + ], + "reason": null + }, + "E22": { + "time_averaged_auroc": 0.7816793051770501, + "time_averaged_auprc": 0.009559159373422941, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.7803977611051566, + "auprc": 0.0037127749724439048, + "brier": 0.001073924340486612, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0012962098788956, + "calibration_in_the_large": 0.00022554606733243073, + "expected_calibration_error_10bin": 0.00022554606733243073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.774443253542932, + "auprc": 0.0038939514774841894, + "brier": 0.0010889891189580446, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.002246804614874629, + "calibration_in_the_large": 0.0011761408033114597, + "expected_calibration_error_10bin": 0.0011761408033114597, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7534846318799142, + "auprc": 0.004289006359598262, + "brier": 0.0014575593872293317, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0028938261041968833, + "calibration_in_the_large": 0.001466274355445991, + "expected_calibration_error_10bin": 0.001466274355445991, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7645639742673338, + "auprc": 0.004470907872232987, + "brier": 0.0014694213333194353, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0034468473399923497, + "calibration_in_the_large": 0.0020192955912414576, + "expected_calibration_error_10bin": 0.0020192955912414576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7716225875625446, + "auprc": 0.004655112757961015, + "brier": 0.0014885944863387902, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003948782611621782, + "calibration_in_the_large": 0.0025212308628708904, + "expected_calibration_error_10bin": 0.0025212308628708904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8293991416309013, + "auprc": 0.010736847704858068, + "brier": 0.0021846035571440946, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.00432659124698233, + "calibration_in_the_large": 0.0021852636238559914, + "expected_calibration_error_10bin": 0.0021852636238559914, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.7551750575006388, + "auprc": 0.009383813536374238, + "brier": 0.002551022507704849, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.004645269396896739, + "calibration_in_the_large": 0.0021470538365826776, + "expected_calibration_error_10bin": 0.0021470538365826776, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7861319966583125, + "auprc": 0.014075720190074976, + "brier": 0.0032513183231984654, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.00512124962070064, + "calibration_in_the_large": 0.0019092581860111323, + "expected_calibration_error_10bin": 0.001909258186011132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7877630584397501, + "auprc": 0.013967735478263596, + "brier": 0.003265451632426139, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.00550559947385709, + "calibration_in_the_large": 0.0022936080391675823, + "expected_calibration_error_10bin": 0.0022936080391675814, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7896328121892031, + "auprc": 0.013982947523199849, + "brier": 0.0032918811930794886, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.005886940307278385, + "calibration_in_the_large": 0.002674948872588878, + "expected_calibration_error_10bin": 0.0026749488725888774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7899510681465569, + "auprc": 0.013749538950337967, + "brier": 0.0033042857889629, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.006242440455585233, + "calibration_in_the_large": 0.0030304490208957254, + "expected_calibration_error_10bin": 0.003030449020895726, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7893543382265187, + "auprc": 0.013695756103909787, + "brier": 0.003325461027474435, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.006549300614333814, + "calibration_in_the_large": 0.0033373091796443065, + "expected_calibration_error_10bin": 0.0033373091796443056, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7899112861518877, + "auprc": 0.013654958927759402, + "brier": 0.003328203276676452, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.006640728099613609, + "calibration_in_the_large": 0.003428736664924102, + "expected_calibration_error_10bin": 0.0034287366649241023, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "E27": { + "time_averaged_auroc": 0.7633718631861477, + "time_averaged_auprc": 0.007158512908293545, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 1.6168466677848494e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005976964605908547, + "calibration_in_the_large": 0.0005976964605908547, + "expected_calibration_error_10bin": 0.0005976964605908547, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 6.019266213656398e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010023191249909174, + "calibration_in_the_large": 0.0010023191249909174, + "expected_calibration_error_10bin": 0.0010023191249909174, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 1.0684385655161527e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001294685088143106, + "calibration_in_the_large": 0.001294685088143106, + "expected_calibration_error_10bin": 0.001294685088143106, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 4, + "negatives": 2807, + "auroc": 0.6927324545778412, + "auprc": 0.0028988467467633873, + "brier": 0.0014335004811618383, + "calibration": { + "observed_rate": 0.001422981145499822, + "mean_prediction": 0.0014993857711966456, + "calibration_in_the_large": 7.640462569682353e-05, + "expected_calibration_error_10bin": 7.640462569682353e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7429080541696365, + "auprc": 0.00482737513774665, + "brier": 0.0017894121286984273, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.0017314787382398734, + "calibration_in_the_large": -4.724769363490433e-05, + "expected_calibration_error_10bin": 4.724769363490433e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7491090520313614, + "auprc": 0.004860932118915356, + "brier": 0.001794122268947555, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.0019663717814419907, + "calibration_in_the_large": 0.00018764534956721302, + "expected_calibration_error_10bin": 0.00018764534956721302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7525252525252525, + "auprc": 0.0053860331103763835, + "brier": 0.0021544839962942693, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0021866610066807656, + "calibration_in_the_large": 5.2189288431032325e-05, + "expected_calibration_error_10bin": 5.2189288431032325e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7515151515151515, + "auprc": 0.005362132022318983, + "brier": 0.0021646984234689397, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0024087414965155082, + "calibration_in_the_large": 0.0002742697782657749, + "expected_calibration_error_10bin": 0.00027426977826577474, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 7, + "negatives": 2804, + "auroc": 0.7816894232728755, + "auprc": 0.00805193083798965, + "brier": 0.002520956962478293, + "calibration": { + "observed_rate": 0.0024902170046246885, + "mean_prediction": 0.0026940561965004117, + "calibration_in_the_large": 0.00020383919187572314, + "expected_calibration_error_10bin": 0.00020383919187572306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.80239921512665, + "auprc": 0.010225277744327329, + "brier": 0.00288837768822292, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0029719275178763586, + "calibration_in_the_large": 0.00012596522687671448, + "expected_calibration_error_10bin": 0.00019545884733188215, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.8012397431323582, + "auprc": 0.010176156938928807, + "brier": 0.002900812848092676, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0032320653783622683, + "calibration_in_the_large": 0.00038610308736262413, + "expected_calibration_error_10bin": 0.0003861030873626241, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.7797208343246887, + "auprc": 0.00988999082445669, + "brier": 0.0032824461300269654, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.0035714038202946043, + "calibration_in_the_large": 0.0003696962429200045, + "expected_calibration_error_10bin": 0.00036969624292000446, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.779879451185661, + "auprc": 0.009906453601112213, + "brier": 0.0032832071059802894, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.0035829326342918773, + "calibration_in_the_large": 0.00038122505691727754, + "expected_calibration_error_10bin": 0.00038122505691727754, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + } + ], + "reason": null + }, + "E43": { + "time_averaged_auroc": 0.8235400945145451, + "time_averaged_auprc": 0.0654840623925972, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2748, + "positives": 14, + "negatives": 2734, + "auroc": 0.8492005434214651, + "auprc": 0.02765113570834351, + "brier": 0.005032996836478632, + "calibration": { + "observed_rate": 0.005094614264919942, + "mean_prediction": 0.0024068306373253865, + "calibration_in_the_large": -0.0026877836275945553, + "expected_calibration_error_10bin": 0.0026877836275945553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 19, + "negatives": 2729, + "auroc": 0.8373223274382365, + "auprc": 0.05434849164031664, + "brier": 0.006755572323423971, + "calibration": { + "observed_rate": 0.006914119359534207, + "mean_prediction": 0.005468760214450533, + "calibration_in_the_large": -0.0014453591450836736, + "expected_calibration_error_10bin": 0.00184811355906981, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 25, + "negatives": 2723, + "auroc": 0.8056995960337863, + "auprc": 0.0592184564503902, + "brier": 0.008909455978302623, + "calibration": { + "observed_rate": 0.009097525473071324, + "mean_prediction": 0.007326150633340609, + "calibration_in_the_large": -0.0017713748397307147, + "expected_calibration_error_10bin": 0.004151821735275595, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 29, + "negatives": 2719, + "auroc": 0.8218538762983348, + "auprc": 0.06378817150717338, + "brier": 0.010331293924387775, + "calibration": { + "observed_rate": 0.010553129548762736, + "mean_prediction": 0.009093463564215936, + "calibration_in_the_large": -0.0014596659845468006, + "expected_calibration_error_10bin": 0.003349126375248887, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8268363402061856, + "auprc": 0.071126250187776, + "brier": 0.011367678321692632, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.010704237312764969, + "calibration_in_the_large": -0.0009405952927663275, + "expected_calibration_error_10bin": 0.004477512133614944, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8267212812960235, + "auprc": 0.07182627002594931, + "brier": 0.011441585020691699, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.011949889092671766, + "calibration_in_the_large": 0.00030505648714047005, + "expected_calibration_error_10bin": 0.0033815239782096188, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 33, + "negatives": 2715, + "auroc": 0.8182041408560745, + "auprc": 0.07123940770043152, + "brier": 0.011855614029802876, + "calibration": { + "observed_rate": 0.012008733624454149, + "mean_prediction": 0.012756055494003266, + "calibration_in_the_large": 0.0007473218695491172, + "expected_calibration_error_10bin": 0.003998664725051159, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 34, + "negatives": 2714, + "auroc": 0.8209393558455069, + "auprc": 0.0677979455518911, + "brier": 0.012293420640387843, + "calibration": { + "observed_rate": 0.012372634643377001, + "mean_prediction": 0.013775741189868723, + "calibration_in_the_large": 0.0014031065464917211, + "expected_calibration_error_10bin": 0.004119071356573967, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 36, + "negatives": 2712, + "auroc": 0.8144768108816781, + "auprc": 0.0670849694115946, + "brier": 0.013139683591613941, + "calibration": { + "observed_rate": 0.013100436681222707, + "mean_prediction": 0.01495197715259268, + "calibration_in_the_large": 0.001851540471369973, + "expected_calibration_error_10bin": 0.0058988219141986875, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 37, + "negatives": 2711, + "auroc": 0.8189956832524151, + "auprc": 0.07126318331698996, + "brier": 0.013476632878485896, + "calibration": { + "observed_rate": 0.013464337700145561, + "mean_prediction": 0.01590249489311141, + "calibration_in_the_large": 0.0024381571929658497, + "expected_calibration_error_10bin": 0.005524015156414937, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 39, + "negatives": 2709, + "auroc": 0.8214498679614959, + "auprc": 0.07432326086269235, + "brier": 0.014203284989375273, + "calibration": { + "observed_rate": 0.014192139737991267, + "mean_prediction": 0.016778278309812, + "calibration_in_the_large": 0.002586138571820733, + "expected_calibration_error_10bin": 0.005446093023888081, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 42, + "negatives": 2706, + "auroc": 0.8232235244430366, + "auprc": 0.07597109390899864, + "brier": 0.015345990971261424, + "calibration": { + "observed_rate": 0.015283842794759825, + "mean_prediction": 0.017651390760141654, + "calibration_in_the_large": 0.0023675479653818294, + "expected_calibration_error_10bin": 0.006920239817625261, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + { + "valid": 2748, + "positives": 43, + "negatives": 2705, + "auroc": 0.8210978807548468, + "auprc": 0.07565417483121623, + "brier": 0.015711586224919312, + "calibration": { + "observed_rate": 0.01564774381368268, + "mean_prediction": 0.01775179352790544, + "calibration_in_the_large": 0.002104049714222761, + "expected_calibration_error_10bin": 0.0074756023141334706, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + } + ], + "reason": null + }, + "E44": { + "time_averaged_auroc": 0.7633835668495104, + "time_averaged_auprc": 0.021816886659948242, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2800, + "positives": 5, + "negatives": 2795, + "auroc": 0.6965295169946333, + "auprc": 0.006349736753300193, + "brier": 0.001787908007646576, + "calibration": { + "observed_rate": 0.0017857142857142857, + "mean_prediction": 0.00191872326959786, + "calibration_in_the_large": 0.00013300898388357444, + "expected_calibration_error_10bin": 0.00013300898388357444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 8, + "negatives": 2792, + "auroc": 0.7673262893982808, + "auprc": 0.015464555605760242, + "brier": 0.00285194032030283, + "calibration": { + "observed_rate": 0.002857142857142857, + "mean_prediction": 0.0036332155805156876, + "calibration_in_the_large": 0.0007760727233728304, + "expected_calibration_error_10bin": 0.0007760727233728304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.7514912480850093, + "auprc": 0.014890032863449894, + "brier": 0.003931177342537076, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.00467427558131346, + "calibration_in_the_large": 0.0007457041527420315, + "expected_calibration_error_10bin": 0.0007457041527420315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.7452175992348159, + "auprc": 0.014934274626473348, + "brier": 0.004313713932816775, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.0055929172054071125, + "calibration_in_the_large": 0.0013072029196928266, + "expected_calibration_error_10bin": 0.0013072029196928266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7612687013764213, + "auprc": 0.016806626645909213, + "brier": 0.005397475513436956, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.006502094240743515, + "calibration_in_the_large": 0.0011449513836006581, + "expected_calibration_error_10bin": 0.001144951383600658, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7657450628366248, + "auprc": 0.017322112468751916, + "brier": 0.005440768220344047, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.007427534448911501, + "calibration_in_the_large": 0.002070391591768644, + "expected_calibration_error_10bin": 0.0020703915917686436, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 17, + "negatives": 2783, + "auroc": 0.776605863329881, + "auprc": 0.0253878973339759, + "brier": 0.0061154090463819725, + "calibration": { + "observed_rate": 0.006071428571428571, + "mean_prediction": 0.008217478433842709, + "calibration_in_the_large": 0.002146049862414137, + "expected_calibration_error_10bin": 0.0021460498624141368, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7839096122182478, + "auprc": 0.027755661930759408, + "brier": 0.006820006102107858, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.00882946327992938, + "calibration_in_the_large": 0.0020437489942150937, + "expected_calibration_error_10bin": 0.002043748994215094, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7835311039194535, + "auprc": 0.027656701515936945, + "brier": 0.006871004462742355, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.009501348828749931, + "calibration_in_the_large": 0.0027156345430356457, + "expected_calibration_error_10bin": 0.0027156345430356466, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 21, + "negatives": 2779, + "auroc": 0.7866652958412584, + "auprc": 0.028308116587066535, + "brier": 0.007608772481662413, + "calibration": { + "observed_rate": 0.0075, + "mean_prediction": 0.01003316460410068, + "calibration_in_the_large": 0.00253316460410068, + "expected_calibration_error_10bin": 0.002533164604100681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 23, + "negatives": 2777, + "auroc": 0.7626935541951746, + "auprc": 0.027534902074275214, + "brier": 0.008346457908073628, + "calibration": { + "observed_rate": 0.008214285714285714, + "mean_prediction": 0.010500133408772204, + "calibration_in_the_large": 0.0022858476944864897, + "expected_calibration_error_10bin": 0.00228584769448649, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7715237752161384, + "auprc": 0.03058469239928285, + "brier": 0.008679032846936574, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.010985523103848078, + "calibration_in_the_large": 0.0024140945324195064, + "expected_calibration_error_10bin": 0.0024140945324195072, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7714787463976945, + "auprc": 0.030624215774385535, + "brier": 0.008682784879284927, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.011059162367591852, + "calibration_in_the_large": 0.00248773379616328, + "expected_calibration_error_10bin": 0.002487733796163281, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + } + ], + "reason": null + }, + "E46": { + "time_averaged_auroc": 0.8222248578335685, + "time_averaged_auprc": 0.09164549156079864, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2772, + "positives": 10, + "negatives": 2762, + "auroc": 0.7995655322230268, + "auprc": 0.015495024261074793, + "brier": 0.003649846071488665, + "calibration": { + "observed_rate": 0.0036075036075036075, + "mean_prediction": 0.0032254555206298764, + "calibration_in_the_large": -0.00038204808687373115, + "expected_calibration_error_10bin": 0.0010142311137885478, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 16, + "negatives": 2756, + "auroc": 0.8371507619738752, + "auprc": 0.06679014331940358, + "brier": 0.005637589241802631, + "calibration": { + "observed_rate": 0.005772005772005772, + "mean_prediction": 0.005779652815612435, + "calibration_in_the_large": 7.647043606662934e-06, + "expected_calibration_error_10bin": 0.001253669819796685, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 23, + "negatives": 2749, + "auroc": 0.831875622756101, + "auprc": 0.10318189950149514, + "brier": 0.007970638243352856, + "calibration": { + "observed_rate": 0.008297258297258298, + "mean_prediction": 0.007493913428728759, + "calibration_in_the_large": -0.0008033448685295392, + "expected_calibration_error_10bin": 0.001886640644743974, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 27, + "negatives": 2745, + "auroc": 0.8231397153072927, + "auprc": 0.10318756860293013, + "brier": 0.00932665709191415, + "calibration": { + "observed_rate": 0.00974025974025974, + "mean_prediction": 0.008476961684083455, + "calibration_in_the_large": -0.0012632980561762853, + "expected_calibration_error_10bin": 0.0033952690935813348, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 28, + "negatives": 2744, + "auroc": 0.827688983756768, + "auprc": 0.10729798658530143, + "brier": 0.009669689572179705, + "calibration": { + "observed_rate": 0.010101010101010102, + "mean_prediction": 0.009715567133390578, + "calibration_in_the_large": -0.00038544296761952417, + "expected_calibration_error_10bin": 0.002492265177662375, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 30, + "negatives": 2742, + "auroc": 0.8267930950644299, + "auprc": 0.1035632762512836, + "brier": 0.010404042984706652, + "calibration": { + "observed_rate": 0.010822510822510822, + "mean_prediction": 0.010339950287892499, + "calibration_in_the_large": -0.0004825605346183235, + "expected_calibration_error_10bin": 0.002723201429379486, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8258599134831336, + "auprc": 0.10141371853596805, + "brier": 0.011475143413111653, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.011406919918556222, + "calibration_in_the_large": -0.000497841986205682, + "expected_calibration_error_10bin": 0.003116447964078776, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8250522752165688, + "auprc": 0.10141657320011245, + "brier": 0.011533036622401157, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.012469983920679124, + "calibration_in_the_large": 0.0005652220159172196, + "expected_calibration_error_10bin": 0.0026190097858933272, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 35, + "negatives": 2737, + "auroc": 0.8301581502166084, + "auprc": 0.11089491559021218, + "brier": 0.012137808688875514, + "calibration": { + "observed_rate": 0.012626262626262626, + "mean_prediction": 0.013269333356719856, + "calibration_in_the_large": 0.0006430707304572302, + "expected_calibration_error_10bin": 0.0029149704291815356, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 37, + "negatives": 2735, + "auroc": 0.8276298236078857, + "auprc": 0.09546150632187261, + "brier": 0.012929463767498775, + "calibration": { + "observed_rate": 0.013347763347763348, + "mean_prediction": 0.01417379214687022, + "calibration_in_the_large": 0.0008260287991068722, + "expected_calibration_error_10bin": 0.003966345666910854, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 39, + "negatives": 2733, + "auroc": 0.8183455768527119, + "auprc": 0.09288262834898972, + "brier": 0.013680179780700744, + "calibration": { + "observed_rate": 0.01406926406926407, + "mean_prediction": 0.01481376974530428, + "calibration_in_the_large": 0.0007445056760402094, + "expected_calibration_error_10bin": 0.0030885565074211096, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.807866736438165, + "auprc": 0.0949325702048829, + "brier": 0.014737325909105342, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.015717754599750066, + "calibration_in_the_large": 0.0005662394482349141, + "expected_calibration_error_10bin": 0.00382639807490084, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.8077969649398221, + "auprc": 0.0948735795668559, + "brier": 0.014742654044499742, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.01578748807252075, + "calibration_in_the_large": 0.0006359729210055967, + "expected_calibration_error_10bin": 0.0038048248325727166, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + } + ], + "reason": null + }, + "E53": { + "time_averaged_auroc": 0.7671677477971227, + "time_averaged_auprc": 0.006493296550070969, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.7170888333927934, + "auprc": 0.0012594458438287153, + "brier": 0.00035786702755048603, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0005190258466975556, + "calibration_in_the_large": 0.0001623924658131048, + "expected_calibration_error_10bin": 0.0001623924658131048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8511777301927195, + "auprc": 0.004915223665223665, + "brier": 0.00071421456573315, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0009022714519756316, + "calibration_in_the_large": 0.00018900469020672998, + "expected_calibration_error_10bin": 0.00018900469020672998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.7667499702487207, + "auprc": 0.004188425916613836, + "brier": 0.0010725868707715542, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.001290067910039872, + "calibration_in_the_large": 0.00022016776738651963, + "expected_calibration_error_10bin": 0.00022016776738651963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8174107142857143, + "auprc": 0.006747801415163184, + "brier": 0.0014270699175534833, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0015324219121428365, + "calibration_in_the_large": 0.0001058883886050333, + "expected_calibration_error_10bin": 0.0001058883886050333, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8216964285714285, + "auprc": 0.006672312709317781, + "brier": 0.0014283174754240596, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0017168190701369861, + "calibration_in_the_large": 0.00029028554659918295, + "expected_calibration_error_10bin": 0.00029028554659918295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8245535714285714, + "auprc": 0.006484515102814876, + "brier": 0.0014303926998857073, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0019422714041502688, + "calibration_in_the_large": 0.0005157378806124656, + "expected_calibration_error_10bin": 0.0005157378806124656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.7190254944007625, + "auprc": 0.005604421451861521, + "brier": 0.002146677797593706, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0022140186506945008, + "calibration_in_the_large": 7.4218365387796e-05, + "expected_calibration_error_10bin": 7.4218365387796e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.7203359542530379, + "auprc": 0.005587052701600172, + "brier": 0.0021488036235323693, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0023658407070201366, + "calibration_in_the_large": 0.0002260404217134318, + "expected_calibration_error_10bin": 0.0002260404217134318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.7387507022830584, + "auprc": 0.00641879159088062, + "brier": 0.0025049386387102613, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.00256486558167035, + "calibration_in_the_large": 6.84319154791945e-05, + "expected_calibration_error_10bin": 6.84319154791945e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.737167373205986, + "auprc": 0.0063707280071928956, + "brier": 0.0025083367514238952, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0027332212051606438, + "calibration_in_the_large": 0.00023678753896948842, + "expected_calibration_error_10bin": 0.00023678753896948842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.7816338700059631, + "auprc": 0.010371741989939835, + "brier": 0.0032160158603978415, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.0031216911513841203, + "calibration_in_the_large": -8.800927657593664e-05, + "expected_calibration_error_10bin": 0.0001668905821426348, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.7387624906421899, + "auprc": 0.009889214443820078, + "brier": 0.003931774422260759, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.003342841463124819, + "calibration_in_the_large": -0.0005801257266041396, + "expected_calibration_error_10bin": 0.000662893896971774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.7388275884516486, + "auprc": 0.00990318031266541, + "brier": 0.003931972005991468, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.0033536024518279963, + "calibration_in_the_large": -0.0005693647379009623, + "expected_calibration_error_10bin": 0.0006525021158912576, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + } + ], + "reason": null + }, + "E55": { + "time_averaged_auroc": 0.6070768763676685, + "time_averaged_auprc": 0.017367798754915422, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2737, + "positives": 9, + "negatives": 2728, + "auroc": 0.5514011078527208, + "auprc": 0.006838008830939466, + "brier": 0.003281853397602945, + "calibration": { + "observed_rate": 0.003288271830471319, + "mean_prediction": 0.0014658982630901616, + "calibration_in_the_large": -0.0018223735673811574, + "expected_calibration_error_10bin": 0.0018223735673811574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5802040952444474, + "auprc": 0.007872367515637205, + "brier": 0.004012767117891798, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.0028785467212064987, + "calibration_in_the_large": -0.0011404521827028916, + "expected_calibration_error_10bin": 0.0011404521827028916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5817381444674181, + "auprc": 0.0075752340522979265, + "brier": 0.004020947524828689, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.003950867710393628, + "calibration_in_the_large": -6.813119351576236e-05, + "expected_calibration_error_10bin": 6.813119351576236e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 14, + "negatives": 2723, + "auroc": 0.5618278159592885, + "auprc": 0.008522431118905386, + "brier": 0.005119372658175317, + "calibration": { + "observed_rate": 0.005115089514066497, + "mean_prediction": 0.004556923838220899, + "calibration_in_the_large": -0.0005581656758455976, + "expected_calibration_error_10bin": 0.0005581656758455976, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 19, + "negatives": 2718, + "auroc": 0.5665543549823787, + "auprc": 0.012745710095187792, + "brier": 0.006920703450551267, + "calibration": { + "observed_rate": 0.006941907197661673, + "mean_prediction": 0.005345890180934646, + "calibration_in_the_large": -0.0015960170167270277, + "expected_calibration_error_10bin": 0.0016763256626144757, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 21, + "negatives": 2716, + "auroc": 0.5863665053650327, + "auprc": 0.013828447276269978, + "brier": 0.007650191040387636, + "calibration": { + "observed_rate": 0.0076726342710997444, + "mean_prediction": 0.005955340544715545, + "calibration_in_the_large": -0.0017172937263841993, + "expected_calibration_error_10bin": 0.0018063523319469378, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.62476401179941, + "auprc": 0.018382432969438995, + "brier": 0.009075895781629902, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.006847892557859069, + "calibration_in_the_large": -0.0022861958601168176, + "expected_calibration_error_10bin": 0.0024617948294439447, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.6249262536873156, + "auprc": 0.018422967839635804, + "brier": 0.00908280027743109, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.007515201584045612, + "calibration_in_the_large": -0.0016188868339302746, + "expected_calibration_error_10bin": 0.0018075064945297316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 26, + "negatives": 2711, + "auroc": 0.6392758845728229, + "auprc": 0.02372030634559833, + "brier": 0.009416740568716291, + "calibration": { + "observed_rate": 0.009499451954694921, + "mean_prediction": 0.008242185905933015, + "calibration_in_the_large": -0.001257266048761906, + "expected_calibration_error_10bin": 0.0017027674696143363, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 27, + "negatives": 2710, + "auroc": 0.6454147874812082, + "auprc": 0.02434668758124259, + "brier": 0.009780368899840743, + "calibration": { + "observed_rate": 0.009864815491413957, + "mean_prediction": 0.008778320412345428, + "calibration_in_the_large": -0.0010864950790685293, + "expected_calibration_error_10bin": 0.001632086821119277, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 29, + "negatives": 2708, + "auroc": 0.6478123567462944, + "auprc": 0.02796337821236263, + "brier": 0.010474593738362022, + "calibration": { + "observed_rate": 0.010595542564852027, + "mean_prediction": 0.00933965419859102, + "calibration_in_the_large": -0.0012558883662610078, + "expected_calibration_error_10bin": 0.00205975403010165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6409678611008497, + "auprc": 0.027769118115867464, + "brier": 0.010845380802472063, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.010017031712895978, + "calibration_in_the_large": -0.000943874388675086, + "expected_calibration_error_10bin": 0.0017861226616928533, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6407462135205024, + "auprc": 0.02779429386051692, + "brier": 0.010847019075611471, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.010109562334775399, + "calibration_in_the_large": -0.0008513437667956644, + "expected_calibration_error_10bin": 0.0016982705525480008, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + } + ], + "reason": null + }, + "E66": { + "time_averaged_auroc": 0.7530328220654272, + "time_averaged_auprc": 0.03904096363719455, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2371, + "positives": 9, + "negatives": 2362, + "auroc": 0.6844011666196256, + "auprc": 0.0090593506897659, + "brier": 0.0037862178593386815, + "calibration": { + "observed_rate": 0.003795866722901729, + "mean_prediction": 0.004008972380401721, + "calibration_in_the_large": 0.00021310565749999184, + "expected_calibration_error_10bin": 0.00021310565749999184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 16, + "negatives": 2355, + "auroc": 0.7526539278131635, + "auprc": 0.01912482289684976, + "brier": 0.006681593900548712, + "calibration": { + "observed_rate": 0.006748207507380852, + "mean_prediction": 0.006235662137880422, + "calibration_in_the_large": -0.0005125453695004299, + "expected_calibration_error_10bin": 0.0006014168501437523, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 21, + "negatives": 2350, + "auroc": 0.7657548125633232, + "auprc": 0.02583766488477393, + "brier": 0.008741367206508551, + "calibration": { + "observed_rate": 0.008857022353437369, + "mean_prediction": 0.008097654008171293, + "calibration_in_the_large": -0.000759368345266076, + "expected_calibration_error_10bin": 0.0008965456196450574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7436480849450132, + "auprc": 0.029030099009209602, + "brier": 0.011212727287554132, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.009839075177927387, + "calibration_in_the_large": -0.0015485249907778009, + "expected_calibration_error_10bin": 0.0018868382395074662, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7461130072051574, + "auprc": 0.030023974210226272, + "brier": 0.011225760239620927, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.011129989186214922, + "calibration_in_the_large": -0.00025761098249026636, + "expected_calibration_error_10bin": 0.0008333157803098323, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 29, + "negatives": 2342, + "auroc": 0.7632880826879472, + "auprc": 0.03646920931551849, + "brier": 0.012006899571770513, + "calibration": { + "observed_rate": 0.012231126107127795, + "mean_prediction": 0.012459817076082161, + "calibration_in_the_large": 0.00022869096895436654, + "expected_calibration_error_10bin": 0.0006599258769560654, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 32, + "negatives": 2339, + "auroc": 0.7771884352287303, + "auprc": 0.04386364292467129, + "brier": 0.013185291116767148, + "calibration": { + "observed_rate": 0.013496415014761703, + "mean_prediction": 0.013481959563805001, + "calibration_in_the_large": -1.4455450956702559e-05, + "expected_calibration_error_10bin": 0.0012735392599083203, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 34, + "negatives": 2337, + "auroc": 0.7806514133252788, + "auprc": 0.050159874054909126, + "brier": 0.013958791594803021, + "calibration": { + "observed_rate": 0.01433994095318431, + "mean_prediction": 0.01418681995633026, + "calibration_in_the_large": -0.00015312099685405034, + "expected_calibration_error_10bin": 0.0015990835238423493, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 36, + "negatives": 2335, + "auroc": 0.7622055674518201, + "auprc": 0.04916336702689302, + "brier": 0.014795696752738901, + "calibration": { + "observed_rate": 0.015183466891606916, + "mean_prediction": 0.01510851263454638, + "calibration_in_the_large": -7.495425706053639e-05, + "expected_calibration_error_10bin": 0.001903793900461302, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 39, + "negatives": 2332, + "auroc": 0.7635681928134759, + "auprc": 0.052227514211457673, + "brier": 0.01599938188473256, + "calibration": { + "observed_rate": 0.016448755799240825, + "mean_prediction": 0.01609569196760158, + "calibration_in_the_large": -0.00035306383163924426, + "expected_calibration_error_10bin": 0.0019940252793706923, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7498108732544112, + "auprc": 0.05410912861850435, + "brier": 0.017227204171270053, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.0174402116475967, + "calibration_in_the_large": -0.00027383305927803844, + "expected_calibration_error_10bin": 0.001654878353860304, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7499233269950316, + "auprc": 0.054139404766579885, + "brier": 0.01724691847858319, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.0185570114961482, + "calibration_in_the_large": 0.0008429667892734631, + "expected_calibration_error_10bin": 0.0008429667892734671, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7502197959475762, + "auprc": 0.054324474674169954, + "brier": 0.017250562861514007, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.018699957021892713, + "calibration_in_the_large": 0.0009859123150179755, + "expected_calibration_error_10bin": 0.0009859123150179748, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + } + ], + "reason": null + }, + "E78": { + "time_averaged_auroc": 0.7312661605862901, + "time_averaged_auprc": 0.08393874539419356, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 1572, + "positives": 13, + "negatives": 1559, + "auroc": 0.6505649578131939, + "auprc": 0.022021677065004477, + "brier": 0.008196228382127324, + "calibration": { + "observed_rate": 0.00826972010178117, + "mean_prediction": 0.004556850566526197, + "calibration_in_the_large": -0.003712869535254973, + "expected_calibration_error_10bin": 0.003712869535254973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 19, + "negatives": 1553, + "auroc": 0.6745179110041685, + "auprc": 0.03140581028183488, + "brier": 0.011941293511624275, + "calibration": { + "observed_rate": 0.012086513994910942, + "mean_prediction": 0.00831109348919847, + "calibration_in_the_large": -0.0037754205057124717, + "expected_calibration_error_10bin": 0.004534064651727794, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 26, + "negatives": 1546, + "auroc": 0.7218628719275549, + "auprc": 0.042716650099977535, + "brier": 0.016259868155215487, + "calibration": { + "observed_rate": 0.01653944020356234, + "mean_prediction": 0.011705518160893736, + "calibration_in_the_large": -0.004833922042668604, + "expected_calibration_error_10bin": 0.007442502694904331, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 30, + "negatives": 1542, + "auroc": 0.7138564634673584, + "auprc": 0.056435456769118084, + "brier": 0.018605083439322743, + "calibration": { + "observed_rate": 0.019083969465648856, + "mean_prediction": 0.01390138726210422, + "calibration_in_the_large": -0.005182582203544636, + "expected_calibration_error_10bin": 0.008158961572671871, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.7244143936697996, + "auprc": 0.06550091895990601, + "brier": 0.019289442465271107, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.017444942701086145, + "calibration_in_the_large": -0.0022751590800843373, + "expected_calibration_error_10bin": 0.006708359601711186, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.724016662828913, + "auprc": 0.06603139983319342, + "brier": 0.019441287650276716, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.019392170586277173, + "calibration_in_the_large": -0.0003279311948933099, + "expected_calibration_error_10bin": 0.006288494710175476, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 35, + "negatives": 1537, + "auroc": 0.7365554419555721, + "auprc": 0.08560871381480638, + "brier": 0.021616644053137356, + "calibration": { + "observed_rate": 0.022264631043257, + "mean_prediction": 0.02105419207713724, + "calibration_in_the_large": -0.0012104389661197583, + "expected_calibration_error_10bin": 0.008496268059284825, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 38, + "negatives": 1534, + "auroc": 0.7526761819803747, + "auprc": 0.09951191419881594, + "brier": 0.023171545775516673, + "calibration": { + "observed_rate": 0.024173027989821884, + "mean_prediction": 0.022879165404803514, + "calibration_in_the_large": -0.0012938625850183703, + "expected_calibration_error_10bin": 0.007822551108623949, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 39, + "negatives": 1533, + "auroc": 0.7540936992991788, + "auprc": 0.09924396073620893, + "brier": 0.02395528928094228, + "calibration": { + "observed_rate": 0.02480916030534351, + "mean_prediction": 0.025137676812659167, + "calibration_in_the_large": 0.0003285165073156557, + "expected_calibration_error_10bin": 0.009206997026575046, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 47, + "negatives": 1525, + "auroc": 0.7651761423090339, + "auprc": 0.13021263719491827, + "brier": 0.027841370193694648, + "calibration": { + "observed_rate": 0.02989821882951654, + "mean_prediction": 0.026214423580942923, + "calibration_in_the_large": -0.0036837952485736167, + "expected_calibration_error_10bin": 0.009892972135428809, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7624572930354796, + "auprc": 0.13085266297553458, + "brier": 0.02968536806929366, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.028358166845587094, + "calibration_in_the_large": -0.0034484489304943307, + "expected_calibration_error_10bin": 0.01270601247910717, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.763180026281209, + "auprc": 0.1307555051077618, + "brier": 0.029728433891797634, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.02946796625234943, + "calibration_in_the_large": -0.0023386495237319935, + "expected_calibration_error_10bin": 0.01070630871130672, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7630880420499343, + "auprc": 0.13090638308743605, + "brier": 0.029745389428536367, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.029796237261523684, + "calibration_in_the_large": -0.0020103785145577403, + "expected_calibration_error_10bin": 0.010772455096947672, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + } + ], + "reason": null + }, + "E80": { + "time_averaged_auroc": 0.9120690436291805, + "time_averaged_auprc": 0.0183877022275443, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.9588798298475718, + "auprc": 0.012468919116571595, + "brier": 0.0007107255635773872, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0005968366165036998, + "calibration_in_the_large": -0.00011162955423664738, + "expected_calibration_error_10bin": 0.00011162955423664738, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 3, + "negatives": 2820, + "auroc": 0.9574468085106383, + "auprc": 0.015843339919947307, + "brier": 0.0010660419484001906, + "calibration": { + "observed_rate": 0.0010626992561105207, + "mean_prediction": 0.0009811631502761556, + "calibration_in_the_large": -8.153610583436503e-05, + "expected_calibration_error_10bin": 8.153610583436503e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9578751330258957, + "auprc": 0.019701872065488298, + "brier": 0.0014279515994881017, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0014344937988982026, + "calibration_in_the_large": 1.7561457417508307e-05, + "expected_calibration_error_10bin": 1.7561457417508307e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9573430294430649, + "auprc": 0.01943935602696363, + "brier": 0.0014377524097434295, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0016748014209810977, + "calibration_in_the_large": 0.0002578690795004034, + "expected_calibration_error_10bin": 0.0002578690795004035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9573430294430649, + "auprc": 0.019391516299587193, + "brier": 0.0014408958314371689, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0017700890245848496, + "calibration_in_the_large": 0.00035315668310415536, + "expected_calibration_error_10bin": 0.0003531566831041554, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9577864490954239, + "auprc": 0.019518913826711365, + "brier": 0.0014481490699773624, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0019469724585264503, + "calibration_in_the_large": 0.000530040117045756, + "expected_calibration_error_10bin": 0.0005300401170457561, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9027334043308484, + "auprc": 0.01905078033458018, + "brier": 0.002162767385303418, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0021592680782226317, + "calibration_in_the_large": 3.386956600159039e-05, + "expected_calibration_error_10bin": 0.00024488512627367264, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9017276062004497, + "auprc": 0.018741135263376008, + "brier": 0.0022143721432485845, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.002581335114088198, + "calibration_in_the_large": 0.0004559366018671565, + "expected_calibration_error_10bin": 0.0004559366018671563, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9012542894332032, + "auprc": 0.018619178564062883, + "brier": 0.0022299212247190972, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0027917775246642652, + "calibration_in_the_large": 0.0006663790124432239, + "expected_calibration_error_10bin": 0.0006663790124432232, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.842380275974026, + "auprc": 0.01687244441118906, + "brier": 0.0025894906548199976, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.002964804917733057, + "calibration_in_the_large": 0.0004851733201418416, + "expected_calibration_error_10bin": 0.0005650573114820835, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.8426339285714286, + "auprc": 0.016690386843494363, + "brier": 0.002599382732760957, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.00311224819227314, + "calibration_in_the_large": 0.0006326165946819247, + "expected_calibration_error_10bin": 0.0006326165946819249, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8597690941385435, + "auprc": 0.021375998646509485, + "brier": 0.002947643903845374, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0032272789096756353, + "calibration_in_the_large": 0.0003934142267142467, + "expected_calibration_error_10bin": 0.0008696993185508431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8597246891651865, + "auprc": 0.021326287639594547, + "brier": 0.002948383401607432, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.003238311127828157, + "calibration_in_the_large": 0.00040444644486676857, + "expected_calibration_error_10bin": 0.0008618244574564389, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "E83": { + "time_averaged_auroc": 0.8060417955685417, + "time_averaged_auprc": 0.1611260421481649, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2653, + "positives": 14, + "negatives": 2639, + "auroc": 0.8563579277864992, + "auprc": 0.09500542299325898, + "brier": 0.005114152951362085, + "calibration": { + "observed_rate": 0.005277044854881266, + "mean_prediction": 0.004350992522730788, + "calibration_in_the_large": -0.0009260523321504783, + "expected_calibration_error_10bin": 0.0009260523321504783, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 26, + "negatives": 2627, + "auroc": 0.8220403502093643, + "auprc": 0.08678537906673849, + "brier": 0.009340929659749104, + "calibration": { + "observed_rate": 0.00980022615906521, + "mean_prediction": 0.008046166398955112, + "calibration_in_the_large": -0.001754059760110097, + "expected_calibration_error_10bin": 0.0017540597601100965, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 40, + "negatives": 2613, + "auroc": 0.786796785304248, + "auprc": 0.11583076827240517, + "brier": 0.014235474740237997, + "calibration": { + "observed_rate": 0.015077271013946476, + "mean_prediction": 0.011234308391914074, + "calibration_in_the_large": -0.0038429626220324014, + "expected_calibration_error_10bin": 0.004224975058658675, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 47, + "negatives": 2606, + "auroc": 0.7874218252477915, + "auprc": 0.11553144953466155, + "brier": 0.016678012966530466, + "calibration": { + "observed_rate": 0.017715793441387108, + "mean_prediction": 0.013305219181967452, + "calibration_in_the_large": -0.004410574259419656, + "expected_calibration_error_10bin": 0.005522060758521604, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 53, + "negatives": 2600, + "auroc": 0.7890348330914368, + "auprc": 0.12790559777900903, + "brier": 0.018616093956804643, + "calibration": { + "observed_rate": 0.01997738409347908, + "mean_prediction": 0.015161871532908256, + "calibration_in_the_large": -0.004815512560570823, + "expected_calibration_error_10bin": 0.005532647888672434, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 58, + "negatives": 2595, + "auroc": 0.7957212145372401, + "auprc": 0.12694802640570185, + "brier": 0.02037528373838612, + "calibration": { + "observed_rate": 0.02186204297022239, + "mean_prediction": 0.017193093162052447, + "calibration_in_the_large": -0.004668949808169943, + "expected_calibration_error_10bin": 0.006753200207529061, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 65, + "negatives": 2588, + "auroc": 0.7970871477826655, + "auprc": 0.17606616061214123, + "brier": 0.022314802975617085, + "calibration": { + "observed_rate": 0.024500565397663022, + "mean_prediction": 0.0187370690630537, + "calibration_in_the_large": -0.005763496334609323, + "expected_calibration_error_10bin": 0.00764003808322416, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 70, + "negatives": 2583, + "auroc": 0.8119849565842597, + "auprc": 0.2131748874159162, + "brier": 0.0233578125661248, + "calibration": { + "observed_rate": 0.026385224274406333, + "mean_prediction": 0.020265255303890804, + "calibration_in_the_large": -0.006119968970515529, + "expected_calibration_error_10bin": 0.00733366505615387, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 74, + "negatives": 2579, + "auroc": 0.8090345094998062, + "auprc": 0.20287608712947494, + "brier": 0.024736369553742945, + "calibration": { + "observed_rate": 0.02789295137580098, + "mean_prediction": 0.021603301624022214, + "calibration_in_the_large": -0.0062896497517787656, + "expected_calibration_error_10bin": 0.006536861644833832, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 78, + "negatives": 2575, + "auroc": 0.8037391087876524, + "auprc": 0.20029126664178049, + "brier": 0.02606795307560657, + "calibration": { + "observed_rate": 0.029400678477195626, + "mean_prediction": 0.02305943513440219, + "calibration_in_the_large": -0.006341243342793436, + "expected_calibration_error_10bin": 0.0074432480414975445, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 82, + "negatives": 2571, + "auroc": 0.8078426350191157, + "auprc": 0.21301156028741713, + "brier": 0.0271366941540129, + "calibration": { + "observed_rate": 0.030908405578590276, + "mean_prediction": 0.024169684173298817, + "calibration_in_the_large": -0.00673872140529146, + "expected_calibration_error_10bin": 0.008097826566010406, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.8057319647403086, + "auprc": 0.2106150907553717, + "brier": 0.02851952806778951, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.025438373758021604, + "calibration_in_the_large": -0.006977758921963319, + "expected_calibration_error_10bin": 0.009171078036485897, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.805750083800654, + "auprc": 0.21059685103226697, + "brier": 0.028517769556041257, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.02575174612268924, + "calibration_in_the_large": -0.006664386557295683, + "expected_calibration_error_10bin": 0.01013093412626432, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + } + ], + "reason": null + }, + "E86": { + "time_averaged_auroc": 0.8056169677541666, + "time_averaged_auprc": 0.09509441963283849, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2587, + "positives": 26, + "negatives": 2561, + "auroc": 0.8578830384765567, + "auprc": 0.060116381553025594, + "brier": 0.009742095389834, + "calibration": { + "observed_rate": 0.010050251256281407, + "mean_prediction": 0.008050205270452141, + "calibration_in_the_large": -0.002000045985829266, + "expected_calibration_error_10bin": 0.002000045985829266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 38, + "negatives": 2549, + "auroc": 0.8192067064483493, + "auprc": 0.06652354203987527, + "brier": 0.014103772282541642, + "calibration": { + "observed_rate": 0.014688828759180518, + "mean_prediction": 0.013871951249171503, + "calibration_in_the_large": -0.0008168775100090148, + "expected_calibration_error_10bin": 0.0010648794538435228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 42, + "negatives": 2545, + "auroc": 0.8196182991860792, + "auprc": 0.06873896403315481, + "brier": 0.015547078779895392, + "calibration": { + "observed_rate": 0.01623502126014689, + "mean_prediction": 0.017700338795374155, + "calibration_in_the_large": 0.001465317535227266, + "expected_calibration_error_10bin": 0.0014653175352272643, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 52, + "negatives": 2535, + "auroc": 0.8021772113488089, + "auprc": 0.07822040342716462, + "brier": 0.019129455918183103, + "calibration": { + "observed_rate": 0.020100502512562814, + "mean_prediction": 0.021035247222365567, + "calibration_in_the_large": 0.0009347447098027525, + "expected_calibration_error_10bin": 0.001303620633296282, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 58, + "negatives": 2529, + "auroc": 0.7938806397512987, + "auprc": 0.07935092189406755, + "brier": 0.021333140512771537, + "calibration": { + "observed_rate": 0.02241979126401237, + "mean_prediction": 0.023827807326396302, + "calibration_in_the_large": 0.0014080160623839329, + "expected_calibration_error_10bin": 0.0021867056940048655, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 71, + "negatives": 2516, + "auroc": 0.8056046933428872, + "auprc": 0.09742959321509174, + "brier": 0.025701940541074893, + "calibration": { + "observed_rate": 0.027444916892153073, + "mean_prediction": 0.025965078350741636, + "calibration_in_the_large": -0.0014798385414114372, + "expected_calibration_error_10bin": 0.0038599679160932114, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 79, + "negatives": 2508, + "auroc": 0.7986998566612158, + "auprc": 0.10401023097608092, + "brier": 0.028477120679791006, + "calibration": { + "observed_rate": 0.030537301894085815, + "mean_prediction": 0.02816206324388306, + "calibration_in_the_large": -0.0023752386502027545, + "expected_calibration_error_10bin": 0.006218906849037095, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 82, + "negatives": 2505, + "auroc": 0.7949466919818898, + "auprc": 0.10532903984452492, + "brier": 0.029572530070822223, + "calibration": { + "observed_rate": 0.031696946269810594, + "mean_prediction": 0.030218009491832055, + "calibration_in_the_large": -0.0014789367779785394, + "expected_calibration_error_10bin": 0.00555588116345844, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 85, + "negatives": 2502, + "auroc": 0.7951615178445479, + "auprc": 0.10623288962979596, + "brier": 0.030646475579510824, + "calibration": { + "observed_rate": 0.032856590645535366, + "mean_prediction": 0.0319524016623137, + "calibration_in_the_large": -0.000904188983221664, + "expected_calibration_error_10bin": 0.005668887742939501, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 87, + "negatives": 2500, + "auroc": 0.7967356321839081, + "auprc": 0.10767103879078688, + "brier": 0.031362650698261746, + "calibration": { + "observed_rate": 0.03362968689601856, + "mean_prediction": 0.033594532164019274, + "calibration_in_the_large": -3.515473199928315e-05, + "expected_calibration_error_10bin": 0.0037301511483146003, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 92, + "negatives": 2495, + "auroc": 0.7958612877929773, + "auprc": 0.11564899622045387, + "brier": 0.03299604994310798, + "calibration": { + "observed_rate": 0.03556242752222652, + "mean_prediction": 0.03510934659706934, + "calibration_in_the_large": -0.00045308092515718157, + "expected_calibration_error_10bin": 0.0055017454343704655, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 97, + "negatives": 2490, + "auroc": 0.7957810623939056, + "auprc": 0.12254525861386074, + "brier": 0.0345805177193787, + "calibration": { + "observed_rate": 0.03749516814843448, + "mean_prediction": 0.03666708232301414, + "calibration_in_the_large": -0.0008280858254203424, + "expected_calibration_error_10bin": 0.005349436117848078, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + { + "valid": 2587, + "positives": 98, + "negatives": 2489, + "auroc": 0.79746394339174, + "auprc": 0.12441019498901755, + "brier": 0.034874453297429796, + "calibration": { + "observed_rate": 0.03788171627367607, + "mean_prediction": 0.0368826227211946, + "calibration_in_the_large": -0.0009990935524814698, + "expected_calibration_error_10bin": 0.0055918166284572865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + } + ], + "reason": null + }, + "E87": { + "time_averaged_auroc": 0.785639886540777, + "time_averaged_auprc": 0.18743866691642838, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2185, + "positives": 31, + "negatives": 2154, + "auroc": 0.7800790726929643, + "auprc": 0.0784436533705389, + "brier": 0.013758015680869165, + "calibration": { + "observed_rate": 0.014187643020594966, + "mean_prediction": 0.009856586217791938, + "calibration_in_the_large": -0.004331056802803029, + "expected_calibration_error_10bin": 0.004365392460791342, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 52, + "negatives": 2133, + "auroc": 0.7854141873129215, + "auprc": 0.09948126512880143, + "brier": 0.022477719173120112, + "calibration": { + "observed_rate": 0.02379862700228833, + "mean_prediction": 0.017485350802732186, + "calibration_in_the_large": -0.006313276199556142, + "expected_calibration_error_10bin": 0.007661034856337249, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 74, + "negatives": 2111, + "auroc": 0.7830284097456054, + "auprc": 0.13205014456701414, + "brier": 0.03128980663370986, + "calibration": { + "observed_rate": 0.033867276887871854, + "mean_prediction": 0.02239784639768872, + "calibration_in_the_large": -0.011469430490183133, + "expected_calibration_error_10bin": 0.012428059493834487, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 88, + "negatives": 2097, + "auroc": 0.7675304547622144, + "auprc": 0.14571399577264213, + "brier": 0.036991949705749295, + "calibration": { + "observed_rate": 0.040274599542334096, + "mean_prediction": 0.026606937956808987, + "calibration_in_the_large": -0.013667661585525109, + "expected_calibration_error_10bin": 0.01529656200545432, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 97, + "negatives": 2088, + "auroc": 0.7688312201287673, + "auprc": 0.1551028234420889, + "brier": 0.0405478569834928, + "calibration": { + "observed_rate": 0.044393592677345536, + "mean_prediction": 0.03001643731372694, + "calibration_in_the_large": -0.014377155363618596, + "expected_calibration_error_10bin": 0.01789350508517363, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 107, + "negatives": 2078, + "auroc": 0.77328577982064, + "auprc": 0.16990779395165073, + "brier": 0.04426863994971466, + "calibration": { + "observed_rate": 0.04897025171624714, + "mean_prediction": 0.033172913210660175, + "calibration_in_the_large": -0.015797338505586962, + "expected_calibration_error_10bin": 0.01920107282076518, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 121, + "negatives": 2064, + "auroc": 0.790361330001922, + "auprc": 0.20567476708242674, + "brier": 0.04881990500823969, + "calibration": { + "observed_rate": 0.05537757437070938, + "mean_prediction": 0.03576795343186832, + "calibration_in_the_large": -0.01960962093884106, + "expected_calibration_error_10bin": 0.023270914371264457, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 129, + "negatives": 2056, + "auroc": 0.7873344795342805, + "auprc": 0.21600960562580723, + "brier": 0.051607169286670446, + "calibration": { + "observed_rate": 0.059038901601830666, + "mean_prediction": 0.03801559656726578, + "calibration_in_the_large": -0.021023305034564885, + "expected_calibration_error_10bin": 0.02370908097144232, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 138, + "negatives": 2047, + "auroc": 0.7902409322939898, + "auprc": 0.22870361950045084, + "brier": 0.05469411596166022, + "calibration": { + "observed_rate": 0.06315789473684211, + "mean_prediction": 0.04002225690395294, + "calibration_in_the_large": -0.023135637832889168, + "expected_calibration_error_10bin": 0.025332466475369873, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 147, + "negatives": 2038, + "auroc": 0.7930277115753073, + "auprc": 0.23848511881845927, + "brier": 0.05798488071906022, + "calibration": { + "observed_rate": 0.06727688787185354, + "mean_prediction": 0.04203937614008409, + "calibration_in_the_large": -0.025237511731769448, + "expected_calibration_error_10bin": 0.02788161420150398, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 153, + "negatives": 2032, + "auroc": 0.7950922494982244, + "auprc": 0.24974082164160788, + "brier": 0.05982425378711245, + "calibration": { + "observed_rate": 0.0700228832951945, + "mean_prediction": 0.043973131381490456, + "calibration_in_the_large": -0.026049751913704046, + "expected_calibration_error_10bin": 0.029168752822143217, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 157, + "negatives": 2028, + "auroc": 0.7989421977663036, + "auprc": 0.2576594849449849, + "brier": 0.06099434453124545, + "calibration": { + "observed_rate": 0.07185354691075514, + "mean_prediction": 0.04595258208314059, + "calibration_in_the_large": -0.025900964827614552, + "expected_calibration_error_10bin": 0.02918108257396334, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + { + "valid": 2185, + "positives": 158, + "negatives": 2027, + "auroc": 0.8001504998969606, + "auprc": 0.25972957606709585, + "brier": 0.061297796392814866, + "calibration": { + "observed_rate": 0.07231121281464531, + "mean_prediction": 0.04617759603763253, + "calibration_in_the_large": -0.02613361677701278, + "expected_calibration_error_10bin": 0.02943045988675469, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + } + ], + "reason": null + }, + "E88": { + "time_averaged_auroc": 0.8120442289290141, + "time_averaged_auprc": 0.07323911121497358, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.9304667140488037, + "auprc": 0.054538388624167405, + "brier": 0.0010571743592389018, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0009069060769016688, + "calibration_in_the_large": -0.00015805664940291063, + "expected_calibration_error_10bin": 0.00015805664940291063, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.941601516228382, + "auprc": 0.0753314393939394, + "brier": 0.0010492581904646683, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.001725615156635938, + "calibration_in_the_large": 0.0006606524303313585, + "expected_calibration_error_10bin": 0.0006606524303313585, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 8, + "negatives": 2809, + "auroc": 0.7507119971520114, + "auprc": 0.06253487220661745, + "brier": 0.002793839248595213, + "calibration": { + "observed_rate": 0.0028399006034788782, + "mean_prediction": 0.0022390431370549685, + "calibration_in_the_large": -0.0006008574664239097, + "expected_calibration_error_10bin": 0.0006008574664239097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7729503007280785, + "auprc": 0.0818822768650919, + "brier": 0.003125213768509172, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.0028287447042799952, + "calibration_in_the_large": -0.00036614347463374266, + "expected_calibration_error_10bin": 0.00036614347463374266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7716445077556189, + "auprc": 0.08216461043209738, + "brier": 0.003115005436349019, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.0033070500697539623, + "calibration_in_the_large": 0.00011216189084022445, + "expected_calibration_error_10bin": 0.0006568400633738985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7885286783042394, + "auprc": 0.07764425714773478, + "brier": 0.003462608976880014, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.0034932314658936282, + "calibration_in_the_large": -5.664428845496977e-05, + "expected_calibration_error_10bin": 0.000481308916504714, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7860705379408621, + "auprc": 0.07829595440677244, + "brier": 0.0034615158399407034, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.0039056072238836475, + "calibration_in_the_large": 0.0003557314695350495, + "expected_calibration_error_10bin": 0.0007050459025983574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 11, + "negatives": 2806, + "auroc": 0.7982245836843128, + "auprc": 0.07471529026800422, + "brier": 0.0038091227400330603, + "calibration": { + "observed_rate": 0.0039048633297834577, + "mean_prediction": 0.0040748991726559484, + "calibration_in_the_large": 0.0001700358428724908, + "expected_calibration_error_10bin": 0.0005060338852377658, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 12, + "negatives": 2805, + "auroc": 0.7849970291146762, + "auprc": 0.06961823153277757, + "brier": 0.0041644680651248545, + "calibration": { + "observed_rate": 0.004259850905218318, + "mean_prediction": 0.004411417462112941, + "calibration_in_the_large": 0.00015156655689462298, + "expected_calibration_error_10bin": 0.00027360587688364226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 13, + "negatives": 2804, + "auroc": 0.7891473718863162, + "auprc": 0.06672917920362055, + "brier": 0.004516050381165734, + "calibration": { + "observed_rate": 0.004614838480653177, + "mean_prediction": 0.0047874521005582035, + "calibration_in_the_large": 0.00017261361990502603, + "expected_calibration_error_10bin": 0.00018258988120271804, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8148703307161551, + "auprc": 0.07628638259947923, + "brier": 0.005161962693351127, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.005403951766258739, + "calibration_in_the_large": 7.913813473584257e-05, + "expected_calibration_error_10bin": 0.0010694330604078491, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8136569117297169, + "auprc": 0.07616429224752454, + "brier": 0.005169569169695457, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.0057384859264695935, + "calibration_in_the_large": 0.00041367229494669675, + "expected_calibration_error_10bin": 0.0006276370793501914, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8137044967880086, + "auprc": 0.07620327086682961, + "brier": 0.005169874247412062, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.005751820541215012, + "calibration_in_the_large": 0.00042700690969211565, + "expected_calibration_error_10bin": 0.0006401648520235838, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "E89": { + "time_averaged_auroc": 0.6970570632615425, + "time_averaged_auprc": 0.004741768519588122, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2780, + "positives": 3, + "negatives": 2777, + "auroc": 0.9236586244148361, + "auprc": 0.01064889774567194, + "brier": 0.0010760496388824657, + "calibration": { + "observed_rate": 0.001079136690647482, + "mean_prediction": 0.0007180346966876426, + "calibration_in_the_large": -0.0003611019939598394, + "expected_calibration_error_10bin": 0.0003611019939598394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.798000720461095, + "auprc": 0.006077912518458076, + "brier": 0.0014351682120569268, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0011088246979198244, + "calibration_in_the_large": -0.000330024222943485, + "expected_calibration_error_10bin": 0.000330024222943485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7789985590778098, + "auprc": 0.005243117104623831, + "brier": 0.001435480807009148, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0013342824749808066, + "calibration_in_the_large": -0.00010456644588250274, + "expected_calibration_error_10bin": 0.00010456644588250274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7640489913544669, + "auprc": 0.004456302352048542, + "brier": 0.0014366428872681328, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0015551149386528581, + "calibration_in_the_large": 0.00011626601778954877, + "expected_calibration_error_10bin": 0.00011626601778954877, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7611671469740634, + "auprc": 0.004355004577242097, + "brier": 0.0014369631902634266, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0016442611443950135, + "calibration_in_the_large": 0.00020541222353170408, + "expected_calibration_error_10bin": 0.00020541222353170408, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6969369369369369, + "auprc": 0.003996612880324185, + "brier": 0.001797453208951135, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0018515905873133804, + "calibration_in_the_large": 5.302943623424362e-05, + "expected_calibration_error_10bin": 5.302943623424362e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6925405405405406, + "auprc": 0.0036930503261800723, + "brier": 0.0018003993054573895, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0021561645784838462, + "calibration_in_the_large": 0.00035760342740470945, + "expected_calibration_error_10bin": 0.00035760342740470945, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6936936936936937, + "auprc": 0.003670388528672584, + "brier": 0.00180146885783325, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.002248495736494602, + "calibration_in_the_large": 0.00044993458541546516, + "expected_calibration_error_10bin": 0.00044993458541546516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5903679653679653, + "auprc": 0.003908407439121959, + "brier": 0.0028817835990193126, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0025505706763979366, + "calibration_in_the_large": -0.00032712716532868214, + "expected_calibration_error_10bin": 0.00032712716532868214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5905934343434344, + "auprc": 0.0039050102657268897, + "brier": 0.0028823185625247304, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.002593513850748789, + "calibration_in_the_large": -0.00028418399097782966, + "expected_calibration_error_10bin": 0.00028418399097782966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5905483405483406, + "auprc": 0.003901639665384116, + "brier": 0.0028835259092892243, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.002771006450204119, + "calibration_in_the_large": -0.00010669139152249965, + "expected_calibration_error_10bin": 0.00010669139152249965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.590458152958153, + "auprc": 0.0038938237829137514, + "brier": 0.002884119967481301, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.002814418627575761, + "calibration_in_the_large": -6.327921415085792e-05, + "expected_calibration_error_10bin": 6.327921415085792e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5907287157287158, + "auprc": 0.0038928235682775484, + "brier": 0.0028846405380406615, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0028439478357789433, + "calibration_in_the_large": -3.375000594767544e-05, + "expected_calibration_error_10bin": 3.375000594767544e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + } + ], + "reason": null + }, + "F02": { + "time_averaged_auroc": 0.7456933979901884, + "time_averaged_auprc": 0.00856610854049322, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 2.789564387404986e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005408052910941822, + "calibration_in_the_large": 0.0005408052910941822, + "expected_calibration_error_10bin": 0.0005408052910941822, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6019278828989647, + "auprc": 0.0008960573476702509, + "brier": 0.0003679552221925876, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0010360404325986876, + "calibration_in_the_large": 0.0006791524954109646, + "expected_calibration_error_10bin": 0.0006791524954109646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5815780078543378, + "auprc": 0.0008525149190110827, + "brier": 0.0003832488948287129, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0014993934712633564, + "calibration_in_the_large": 0.0011425055340756334, + "expected_calibration_error_10bin": 0.0011425055340756332, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5747947161727954, + "auprc": 0.0008389261744966443, + "brier": 0.00039041017953510813, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0017296576489366398, + "calibration_in_the_large": 0.0013727697117489168, + "expected_calibration_error_10bin": 0.0013727697117489166, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.555872902534809, + "auprc": 0.0008032128514056225, + "brier": 0.00040032802379657076, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0019963590252664153, + "calibration_in_the_large": 0.0016394710880786923, + "expected_calibration_error_10bin": 0.0016394710880786923, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.8288674526616648, + "auprc": 0.014187090670205972, + "brier": 0.0010965669492796499, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.002167656201101355, + "calibration_in_the_large": 0.001096992389538186, + "expected_calibration_error_10bin": 0.0010969923895381862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.8270811003929975, + "auprc": 0.013558832590352924, + "brier": 0.001105462572005474, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0023772003053176153, + "calibration_in_the_large": 0.001306536493754446, + "expected_calibration_error_10bin": 0.0013065364937544463, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8273766976411723, + "auprc": 0.011740755159215658, + "brier": 0.001468758643551859, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0026052873263733706, + "calibration_in_the_large": 0.0011777355776224783, + "expected_calibration_error_10bin": 0.0011777355776224783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8279127948534668, + "auprc": 0.01178368081331706, + "brier": 0.0014761043955649744, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0027821403083544186, + "calibration_in_the_large": 0.0013545885596035264, + "expected_calibration_error_10bin": 0.0013545885596035264, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8305932809149392, + "auprc": 0.01209114281939793, + "brier": 0.0014854440773541843, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0029980267896660626, + "calibration_in_the_large": 0.0015704750409151703, + "expected_calibration_error_10bin": 0.0015704750409151701, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8310400285918513, + "auprc": 0.012032404667984848, + "brier": 0.0014948165826030786, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003186549008620379, + "calibration_in_the_large": 0.0017589972598694868, + "expected_calibration_error_10bin": 0.0017589972598694866, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8306826304503216, + "auprc": 0.012012015655705966, + "brier": 0.0015091520853648282, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003454607537079387, + "calibration_in_the_large": 0.002027055788328495, + "expected_calibration_error_10bin": 0.002027055788328495, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8305932809149392, + "auprc": 0.011996668817154707, + "brier": 0.0015099058163115812, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003470664981601797, + "calibration_in_the_large": 0.0020431132328509044, + "expected_calibration_error_10bin": 0.002043113232850905, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "F03": { + "time_averaged_auroc": 0.859082950482612, + "time_averaged_auprc": 0.02105058770922171, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2739, + "positives": 5, + "negatives": 2734, + "auroc": 0.8626188734455011, + "auprc": 0.007680891144753066, + "brier": 0.001826608373357215, + "calibration": { + "observed_rate": 0.0018254837531945967, + "mean_prediction": 0.0013537355934144556, + "calibration_in_the_large": -0.0004717481597801411, + "expected_calibration_error_10bin": 0.0004717481597801411, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 7, + "negatives": 2732, + "auroc": 0.8751830161054173, + "auprc": 0.011200335163048377, + "brier": 0.002564394401396396, + "calibration": { + "observed_rate": 0.002555677254472435, + "mean_prediction": 0.0023841790079295725, + "calibration_in_the_large": -0.00017149824654286248, + "expected_calibration_error_10bin": 0.00017149824654286248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 10, + "negatives": 2729, + "auroc": 0.8385489190179553, + "auprc": 0.01372340770584389, + "brier": 0.003661810573625726, + "calibration": { + "observed_rate": 0.0036509675063891934, + "mean_prediction": 0.0029813561481647943, + "calibration_in_the_large": -0.000669611358224399, + "expected_calibration_error_10bin": 0.000669611358224399, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8543055185283924, + "auprc": 0.01939613813381597, + "brier": 0.004018700096359992, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.004025844347444929, + "calibration_in_the_large": 9.780090416817294e-06, + "expected_calibration_error_10bin": 0.00014104029073102171, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8531724873367103, + "auprc": 0.019404423269315477, + "brier": 0.004037190476437372, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.004624141893458199, + "calibration_in_the_large": 0.0006080776364300869, + "expected_calibration_error_10bin": 0.0006080776364300865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 12, + "negatives": 2727, + "auroc": 0.8577191052438577, + "auprc": 0.02099349217902592, + "brier": 0.0044161698298019235, + "calibration": { + "observed_rate": 0.004381161007667032, + "mean_prediction": 0.005236872250212449, + "calibration_in_the_large": 0.0008557112425454172, + "expected_calibration_error_10bin": 0.0008557112425454166, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8598165137614678, + "auprc": 0.022863661776395677, + "brier": 0.005156448170868631, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.0057822463969190345, + "calibration_in_the_large": 0.0006708918879741645, + "expected_calibration_error_10bin": 0.0006708918879741643, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8597903014416776, + "auprc": 0.02281596228747231, + "brier": 0.005176691683035316, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.006213476121283286, + "calibration_in_the_large": 0.0011021216123384163, + "expected_calibration_error_10bin": 0.0011021216123384152, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8595019659239843, + "auprc": 0.022676900287088093, + "brier": 0.0052154232373293535, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.006853688891637636, + "calibration_in_the_large": 0.0017423343826927663, + "expected_calibration_error_10bin": 0.001742334382692766, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8595019659239843, + "auprc": 0.02220104127749867, + "brier": 0.0052489916199075165, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.007384420109335247, + "calibration_in_the_large": 0.0022730656003903766, + "expected_calibration_error_10bin": 0.002273065600390376, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 16, + "negatives": 2723, + "auroc": 0.8713734851266985, + "auprc": 0.03054153874010269, + "brier": 0.005910133711710716, + "calibration": { + "observed_rate": 0.005841548010222709, + "mean_prediction": 0.0078506585202196, + "calibration_in_the_large": 0.002009110509996891, + "expected_calibration_error_10bin": 0.0020091105099968904, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.8583649801951897, + "auprc": 0.03009590585070968, + "brier": 0.006652757817957641, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.008225991743529946, + "calibration_in_the_large": 0.0016542502320293986, + "expected_calibration_error_10bin": 0.0016542502320293989, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.8581812242231206, + "auprc": 0.030063942404812423, + "brier": 0.006656983225012105, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.008302337605080319, + "calibration_in_the_large": 0.0017305960935797716, + "expected_calibration_error_10bin": 0.0017305960935797707, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + } + ], + "reason": null + }, + "F05": { + "time_averaged_auroc": 0.7501037001258002, + "time_averaged_auprc": 0.018268096609311703, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2750, + "positives": 1, + "negatives": 2749, + "auroc": 0.9796289559839941, + "auprc": 0.017543859649122806, + "brier": 0.0003737507919484238, + "calibration": { + "observed_rate": 0.0003636363636363636, + "mean_prediction": 0.0023020131557151343, + "calibration_in_the_large": 0.0019383767920787705, + "expected_calibration_error_10bin": 0.0019383767920787705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.7676030645749726, + "auprc": 0.009221708526887883, + "brier": 0.0032735033375672724, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.0038221845809172754, + "calibration_in_the_large": 0.0005494573081900028, + "expected_calibration_error_10bin": 0.0005494573081900028, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 14, + "negatives": 2736, + "auroc": 0.7361111111111112, + "auprc": 0.012820062060389175, + "brier": 0.005091935178476173, + "calibration": { + "observed_rate": 0.005090909090909091, + "mean_prediction": 0.005809804224878834, + "calibration_in_the_large": 0.0007188951339697431, + "expected_calibration_error_10bin": 0.0007188951339697431, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 15, + "negatives": 2735, + "auroc": 0.7428397318708104, + "auprc": 0.013471255708178293, + "brier": 0.005474212409299359, + "calibration": { + "observed_rate": 0.005454545454545455, + "mean_prediction": 0.007006488409761666, + "calibration_in_the_large": 0.0015519429552162114, + "expected_calibration_error_10bin": 0.0015519429552162114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 16, + "negatives": 2734, + "auroc": 0.7323518653986832, + "auprc": 0.013110606639492827, + "brier": 0.005893046506990337, + "calibration": { + "observed_rate": 0.005818181818181818, + "mean_prediction": 0.008443780093859541, + "calibration_in_the_large": 0.0026255982756777235, + "expected_calibration_error_10bin": 0.002625598275677724, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 19, + "negatives": 2731, + "auroc": 0.7341247663281235, + "auprc": 0.015970361675810535, + "brier": 0.006980932110557678, + "calibration": { + "observed_rate": 0.006909090909090909, + "mean_prediction": 0.009408866147472756, + "calibration_in_the_large": 0.0024997752383818473, + "expected_calibration_error_10bin": 0.0024997752383818473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 20, + "negatives": 2730, + "auroc": 0.7275274725274725, + "auprc": 0.015896483714657524, + "brier": 0.007414042234338282, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.010491813656886156, + "calibration_in_the_large": 0.003219086384158883, + "expected_calibration_error_10bin": 0.0032190863841588834, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 23, + "negatives": 2727, + "auroc": 0.7148642400471932, + "auprc": 0.016849085627793005, + "brier": 0.008538774535312307, + "calibration": { + "observed_rate": 0.008363636363636363, + "mean_prediction": 0.01134185800469227, + "calibration_in_the_large": 0.0029782216410559077, + "expected_calibration_error_10bin": 0.0029782216410559077, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 28, + "negatives": 2722, + "auroc": 0.7067282460375774, + "auprc": 0.02059644207379938, + "brier": 0.010293718543540416, + "calibration": { + "observed_rate": 0.010181818181818183, + "mean_prediction": 0.011938273186616739, + "calibration_in_the_large": 0.0017564550047985562, + "expected_calibration_error_10bin": 0.0017564550047985581, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 29, + "negatives": 2721, + "auroc": 0.7138729422499335, + "auprc": 0.021925319035750113, + "brier": 0.010647109832880449, + "calibration": { + "observed_rate": 0.010545454545454545, + "mean_prediction": 0.012290060383813067, + "calibration_in_the_large": 0.0017446058383585213, + "expected_calibration_error_10bin": 0.0017446058383585217, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 31, + "negatives": 2719, + "auroc": 0.7302020429712062, + "auprc": 0.025880228700949564, + "brier": 0.011337596276679634, + "calibration": { + "observed_rate": 0.011272727272727273, + "mean_prediction": 0.012953079277538398, + "calibration_in_the_large": 0.001680352004811125, + "expected_calibration_error_10bin": 0.0016803520048111267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 32, + "negatives": 2718, + "auroc": 0.7290976821192053, + "auprc": 0.025972612657955245, + "brier": 0.01172945853251549, + "calibration": { + "observed_rate": 0.011636363636363636, + "mean_prediction": 0.013516901722558197, + "calibration_in_the_large": 0.0018805380861945612, + "expected_calibration_error_10bin": 0.0018805380861945619, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 33, + "negatives": 2717, + "auroc": 0.7363959804151192, + "auprc": 0.028227229850265784, + "brier": 0.012054370414383285, + "calibration": { + "observed_rate": 0.012, + "mean_prediction": 0.013685625668389217, + "calibration_in_the_large": 0.0016856256683892169, + "expected_calibration_error_10bin": 0.0017706416668089248, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + } + ], + "reason": null + }, + "F06": { + "time_averaged_auroc": 0.3887142086230044, + "time_averaged_auprc": 0.0009719137012606163, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.10328970640254687, + "auprc": 0.0003943217665615142, + "brier": 0.00035454213179898016, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0004999198047581016, + "calibration_in_the_large": 0.00014631301550774794, + "expected_calibration_error_10bin": 0.00014631301550774794, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.14892111779271314, + "auprc": 0.0004154549231408392, + "brier": 0.00035536430175344216, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0007164719014809741, + "calibration_in_the_large": 0.00036286511223062044, + "expected_calibration_error_10bin": 0.00036286511223062044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.16519278386982666, + "auprc": 0.00042354934349851756, + "brier": 0.0003601432640688925, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001276344104829348, + "calibration_in_the_large": 0.0009227373155789942, + "expected_calibration_error_10bin": 0.0009227373155789942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4594833687190375, + "auprc": 0.0011269012724543742, + "brier": 0.0007144362230512554, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001430362711740298, + "calibration_in_the_large": 0.0007231491332395907, + "expected_calibration_error_10bin": 0.0007231491332395907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4589525831564048, + "auprc": 0.001131204064531155, + "brier": 0.0007156965158399026, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0015674670538028822, + "calibration_in_the_large": 0.000860253475302175, + "expected_calibration_error_10bin": 0.000860253475302175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46797593772116064, + "auprc": 0.0011671850990318728, + "brier": 0.0007190057641583917, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0018468876244812828, + "calibration_in_the_large": 0.0011396740459805755, + "expected_calibration_error_10bin": 0.0011396740459805755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4686836518046709, + "auprc": 0.0011661148849422766, + "brier": 0.0007194936145340576, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0018878820859777818, + "calibration_in_the_large": 0.0011806685074770744, + "expected_calibration_error_10bin": 0.0011806685074770744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46443736730360935, + "auprc": 0.0011418039768555234, + "brier": 0.0007216482521649009, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.00204991486023337, + "calibration_in_the_large": 0.0013427012817326628, + "expected_calibration_error_10bin": 0.0013427012817326628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4578910120311394, + "auprc": 0.0011061432510730113, + "brier": 0.0007255537593131779, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0022657056658008682, + "calibration_in_the_large": 0.0015584920873001609, + "expected_calibration_error_10bin": 0.0015584920873001609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46496815286624205, + "auprc": 0.001144023574191172, + "brier": 0.0007289862757992735, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0024876402059815406, + "calibration_in_the_large": 0.0017804266274808332, + "expected_calibration_error_10bin": 0.0017804266274808332, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46461429582448693, + "auprc": 0.0011411601672723093, + "brier": 0.0007333789158813639, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.002682770346555014, + "calibration_in_the_large": 0.0019755567680543066, + "expected_calibration_error_10bin": 0.0019755567680543066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46443736730360935, + "auprc": 0.0011385078964177228, + "brier": 0.0007373795760650636, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.00283885834666326, + "calibration_in_the_large": 0.0021316447681625525, + "expected_calibration_error_10bin": 0.0021316447681625525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46443736730360935, + "auprc": 0.0011385078964177228, + "brier": 0.0007375841821048055, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0028480566731773063, + "calibration_in_the_large": 0.002140843094676599, + "expected_calibration_error_10bin": 0.002140843094676599, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + }, + "F10": { + "time_averaged_auroc": 0.8095077430557069, + "time_averaged_auprc": 0.0816091917406753, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2560, + "positives": 5, + "negatives": 2555, + "auroc": 0.8107240704500979, + "auprc": 0.02341157900639744, + "brier": 0.0019436071274090486, + "calibration": { + "observed_rate": 0.001953125, + "mean_prediction": 0.0018496105507345816, + "calibration_in_the_large": -0.00010351444926541835, + "expected_calibration_error_10bin": 0.00018771601008680245, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8082233546757263, + "auprc": 0.08150715689453654, + "brier": 0.003411273792878214, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.002887727433143539, + "calibration_in_the_large": -0.0006278975668564612, + "expected_calibration_error_10bin": 0.0006278975668564612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8017335249793109, + "auprc": 0.08607618154425282, + "brier": 0.003394645685247502, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.003597684738554108, + "calibration_in_the_large": 8.205973855410784e-05, + "expected_calibration_error_10bin": 0.0005595309004206682, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8005575155712357, + "auprc": 0.09308387829490146, + "brier": 0.003391896369067783, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.0044675880476575, + "calibration_in_the_large": 0.0009519630476575, + "expected_calibration_error_10bin": 0.0018740807035214852, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8012108541312775, + "auprc": 0.08579863385861655, + "brier": 0.003398865772430469, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.005320779439844614, + "calibration_in_the_large": 0.001805154439844614, + "expected_calibration_error_10bin": 0.0025804143767715008, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 10, + "negatives": 2550, + "auroc": 0.7737254901960784, + "auprc": 0.08474211314503084, + "brier": 0.0037893785361247474, + "calibration": { + "observed_rate": 0.00390625, + "mean_prediction": 0.005851610794471185, + "calibration_in_the_large": 0.0019453607944711852, + "expected_calibration_error_10bin": 0.0024611166716027814, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.8059986902423052, + "auprc": 0.07053547612810583, + "brier": 0.005672613779293944, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.006269737147218279, + "calibration_in_the_large": 0.0004103621472182793, + "expected_calibration_error_10bin": 0.001134467218494706, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.804898493778651, + "auprc": 0.0768294461593426, + "brier": 0.005667433737261874, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.006590843271717972, + "calibration_in_the_large": 0.0007314682717179718, + "expected_calibration_error_10bin": 0.0013939515233715835, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 16, + "negatives": 2544, + "auroc": 0.8146619496855346, + "auprc": 0.08774444133340524, + "brier": 0.0060356313938577325, + "calibration": { + "observed_rate": 0.00625, + "mean_prediction": 0.006981195937746066, + "calibration_in_the_large": 0.0007311959377460653, + "expected_calibration_error_10bin": 0.0013474122713290622, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8262358030117277, + "auprc": 0.10027493273609565, + "brier": 0.006394064987497132, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.007334783587492666, + "calibration_in_the_large": 0.0006941585874926659, + "expected_calibration_error_10bin": 0.001283396380375734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8257037773819713, + "auprc": 0.09047585739948454, + "brier": 0.00639900717506693, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.007651154662841009, + "calibration_in_the_large": 0.001010529662841009, + "expected_calibration_error_10bin": 0.0015625040055113003, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8248016469662973, + "auprc": 0.09017034810065273, + "brier": 0.006401430333992114, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.008006883019885436, + "calibration_in_the_large": 0.0013662580198854366, + "expected_calibration_error_10bin": 0.0018708949590347866, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8251254886539752, + "auprc": 0.09026944802795661, + "brier": 0.006403213279667379, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.008097755058196298, + "calibration_in_the_large": 0.0014571300581962985, + "expected_calibration_error_10bin": 0.00195459223957073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + } + ], + "reason": null + }, + "F11": { + "time_averaged_auroc": 0.8685843059881108, + "time_averaged_auprc": 0.037131696878698876, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.9717756667884545, + "auprc": 0.07188297454688217, + "brier": 0.0014307590440489903, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.001354164307870403, + "calibration_in_the_large": -0.00010515710767137012, + "expected_calibration_error_10bin": 0.00027779684561473613, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8412553321145643, + "auprc": 0.04277601510708093, + "brier": 0.002179510148588028, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.0022757076069691066, + "calibration_in_the_large": 8.67254836564471e-05, + "expected_calibration_error_10bin": 0.0002574832342551294, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8355271176112127, + "auprc": 0.03416862042822178, + "brier": 0.002222261349505293, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.002887282380571792, + "calibration_in_the_large": 0.0006983002572591326, + "expected_calibration_error_10bin": 0.0006983002572591328, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 7, + "negatives": 2734, + "auroc": 0.8451771344968126, + "auprc": 0.0326439449350214, + "brier": 0.002613739856329449, + "calibration": { + "observed_rate": 0.002553812477198103, + "mean_prediction": 0.0034195443784070917, + "calibration_in_the_large": 0.0008657319012089887, + "expected_calibration_error_10bin": 0.0009077505065052465, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8499817050859861, + "auprc": 0.029373687037637836, + "brier": 0.002982418041934859, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.0036177448273933092, + "calibration_in_the_large": 0.0006991019963097631, + "expected_calibration_error_10bin": 0.000866217801494504, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8503018660812294, + "auprc": 0.02939424280154243, + "brier": 0.0030236452833184418, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.004087503254197828, + "calibration_in_the_large": 0.0011688604231142818, + "expected_calibration_error_10bin": 0.0011688604231142818, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8622092077436148, + "auprc": 0.02968981067805485, + "brier": 0.0034082020473094584, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.00445617355232406, + "calibration_in_the_large": 0.0011727003673550705, + "expected_calibration_error_10bin": 0.0011727003673550698, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8618838457784285, + "auprc": 0.029612271436938578, + "brier": 0.0034210136346978187, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.004648531797623503, + "calibration_in_the_large": 0.0013650586126545136, + "expected_calibration_error_10bin": 0.0013650586126545136, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8604603871807386, + "auprc": 0.02825700683018638, + "brier": 0.003455500613368454, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.004992059255850668, + "calibration_in_the_large": 0.0017085860708816788, + "expected_calibration_error_10bin": 0.0017085860708816788, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8723910655437569, + "auprc": 0.033405238210928875, + "brier": 0.003814167505774874, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.005310248296008899, + "calibration_in_the_large": 0.0016619447571544661, + "expected_calibration_error_10bin": 0.0016619447571544661, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8728670816550714, + "auprc": 0.0333998487607637, + "brier": 0.003826483488448153, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.005488779031798516, + "calibration_in_the_large": 0.0018404754929440834, + "expected_calibration_error_10bin": 0.001840475492944084, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.8837495837495838, + "auprc": 0.044019348083961234, + "brier": 0.004147179583552174, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.005745258973727448, + "calibration_in_the_large": 0.0017321250809875718, + "expected_calibration_error_10bin": 0.0017321250809875727, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.884015984015984, + "auprc": 0.044089050565865234, + "brier": 0.004152242356606424, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.005810575090902227, + "calibration_in_the_large": 0.0017974411981623506, + "expected_calibration_error_10bin": 0.0017974411981623506, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + } + ], + "reason": null + }, + "F12": { + "time_averaged_auroc": 0.9249942599729566, + "time_averaged_auprc": 0.033290761061320374, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2777, + "positives": 5, + "negatives": 2772, + "auroc": 0.9632034632034632, + "auprc": 0.028912839912929377, + "brier": 0.001780437227943789, + "calibration": { + "observed_rate": 0.0018005041411595247, + "mean_prediction": 0.0011276827604104018, + "calibration_in_the_large": -0.0006728213807491229, + "expected_calibration_error_10bin": 0.0006728213807491229, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 8, + "negatives": 2769, + "auroc": 0.9349494402311304, + "auprc": 0.02751089196783469, + "brier": 0.0028510364555808503, + "calibration": { + "observed_rate": 0.0028808066258552397, + "mean_prediction": 0.001606617984349534, + "calibration_in_the_large": -0.0012741886415057056, + "expected_calibration_error_10bin": 0.0012741886415057056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9162631008312252, + "auprc": 0.02893150390413145, + "brier": 0.0035598860327242187, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.0020046991352469113, + "calibration_in_the_large": -0.001596309147072138, + "expected_calibration_error_10bin": 0.001596309147072138, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9164799421756414, + "auprc": 0.028968504153953106, + "brier": 0.0035578259776948376, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.002356285545615259, + "calibration_in_the_large": -0.0012447227367037902, + "expected_calibration_error_10bin": 0.00131857389500763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9211781713046621, + "auprc": 0.030829574333213462, + "brier": 0.0035521606557655516, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.002880737882924075, + "calibration_in_the_large": -0.0007202703993949744, + "expected_calibration_error_10bin": 0.0008050488201320924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 11, + "negatives": 2766, + "auroc": 0.9181949648327089, + "auprc": 0.030752401758247307, + "brier": 0.0039090819727782755, + "calibration": { + "observed_rate": 0.003961109110550955, + "mean_prediction": 0.00321796859924881, + "calibration_in_the_large": -0.0007431405113021445, + "expected_calibration_error_10bin": 0.0008362785102986141, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9210669077757685, + "auprc": 0.03521438336304374, + "brier": 0.004254047474736136, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.003532812317532121, + "calibration_in_the_large": -0.0007883976212507381, + "expected_calibration_error_10bin": 0.0008892733741767829, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9212778782399036, + "auprc": 0.0354009472268399, + "brier": 0.0042565385998509725, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0037699889927910817, + "calibration_in_the_large": -0.0005512209459917774, + "expected_calibration_error_10bin": 0.0006603804459888434, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9216998191681736, + "auprc": 0.035684267237697, + "brier": 0.004256841963748786, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0041483527612370995, + "calibration_in_the_large": -0.00017285717754575956, + "expected_calibration_error_10bin": 0.00028773708146959446, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9215792646172393, + "auprc": 0.035446129128236435, + "brier": 0.004258063039117359, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.004289918074669008, + "calibration_in_the_large": -3.129186411385092e-05, + "expected_calibration_error_10bin": 0.00014941747382665423, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9200120554550935, + "auprc": 0.034872453144421604, + "brier": 0.0042636531097148605, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.004547424741499344, + "calibration_in_the_large": 0.00022621480271648505, + "expected_calibration_error_10bin": 0.0002262148027164849, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.9244684403873984, + "auprc": 0.04012734684124409, + "brier": 0.0046003291696359435, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.004724197271058803, + "calibration_in_the_large": 4.288650404403894e-05, + "expected_calibration_error_10bin": 0.0001618232606024229, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.924551931426027, + "auprc": 0.04012865082537269, + "brier": 0.004600735383963657, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.0047525123339461515, + "calibration_in_the_large": 7.120156693138716e-05, + "expected_calibration_error_10bin": 0.00013460226060919514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + } + ], + "reason": null + }, + "F14": { + "time_averaged_auroc": 0.9489391039848487, + "time_averaged_auprc": 0.039799088484722085, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9781710384477182, + "auprc": 0.03779684303230915, + "brier": 0.001425883741306164, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0003956764322294142, + "calibration_in_the_large": -0.0010395585875050675, + "expected_calibration_error_10bin": 0.0010395585875050675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.976194753862738, + "auprc": 0.03473748278814624, + "brier": 0.0014224921506923729, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.000733715274766977, + "calibration_in_the_large": -0.0007015197449675046, + "expected_calibration_error_10bin": 0.0007015197449675046, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.940176322418136, + "auprc": 0.037341989866824146, + "brier": 0.002840742919042312, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.0009725432823433218, + "calibration_in_the_large": -0.0018979267571256416, + "expected_calibration_error_10bin": 0.0018979267571256416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.940176322418136, + "auprc": 0.03794535999203776, + "brier": 0.002838362048826695, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.0011134599166366678, + "calibration_in_the_large": -0.0017570101228322954, + "expected_calibration_error_10bin": 0.0017570101228322954, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.943524518038557, + "auprc": 0.04088433295530594, + "brier": 0.0031918844047154646, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0012741836769424278, + "calibration_in_the_large": -0.0019550951174601558, + "expected_calibration_error_10bin": 0.0019550951174601558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9437245020398368, + "auprc": 0.04042832998389109, + "brier": 0.003192292532541003, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0013922316524076254, + "calibration_in_the_large": -0.0018370471419949582, + "expected_calibration_error_10bin": 0.0018370471419949582, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9429645628349732, + "auprc": 0.03922018933347736, + "brier": 0.003194197103418237, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0015304478483912532, + "calibration_in_the_large": -0.0016988309460113304, + "expected_calibration_error_10bin": 0.0017735644772254803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9434045276377889, + "auprc": 0.03925647535282718, + "brier": 0.0031947673615046654, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0016889908271572472, + "calibration_in_the_large": -0.0015402879672453363, + "expected_calibration_error_10bin": 0.0017010570498324615, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9456247749369824, + "auprc": 0.04192686351798819, + "brier": 0.0035497544406256835, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.001827033163382951, + "calibration_in_the_large": -0.0017610543859532528, + "expected_calibration_error_10bin": 0.002095726890139797, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9455887648541592, + "auprc": 0.042340426833649435, + "brier": 0.0035490872191982735, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0018853755620006456, + "calibration_in_the_large": -0.0017027119873355583, + "expected_calibration_error_10bin": 0.0020424987336518444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9454087144400433, + "auprc": 0.04218999035349567, + "brier": 0.0035489602133434855, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0019445239038442738, + "calibration_in_the_large": -0.00164356364549193, + "expected_calibration_error_10bin": 0.001989789313484088, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9455887648541592, + "auprc": 0.04163343932933015, + "brier": 0.0035503329526026957, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0020421828230727597, + "calibration_in_the_large": -0.0015459047262634442, + "expected_calibration_error_10bin": 0.0019087806534295836, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9456607850198055, + "auprc": 0.04168642696210468, + "brier": 0.003550385533373178, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0020617349079967632, + "calibration_in_the_large": -0.0015263526413394407, + "expected_calibration_error_10bin": 0.001891730642959374, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + } + ], + "reason": null + }, + "F15": { + "time_averaged_auroc": 0.9451804411018918, + "time_averaged_auprc": 0.031695321160646654, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9828840014189429, + "auprc": 0.04688930269999669, + "brier": 0.0014084577608623053, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0002545198114381391, + "calibration_in_the_large": -0.0011624125300425552, + "expected_calibration_error_10bin": 0.0011624125300425552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9656493967352733, + "auprc": 0.03692875664326726, + "brier": 0.0017618868398390543, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.00029925773960303673, + "calibration_in_the_large": -0.0014719076872478313, + "expected_calibration_error_10bin": 0.0014719076872478313, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.963236337828247, + "auprc": 0.03524553350475025, + "brier": 0.001759616925989706, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0004133192918360364, + "calibration_in_the_large": -0.0013578461350148316, + "expected_calibration_error_10bin": 0.0013578461350148316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9411903916696249, + "auprc": 0.030031787337652726, + "brier": 0.0021135443439798504, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0004360850160977271, + "calibration_in_the_large": -0.0016893134961233143, + "expected_calibration_error_10bin": 0.0016893134961233143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9385871494497693, + "auprc": 0.028246331337648325, + "brier": 0.0021120221107005697, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0005330113976878713, + "calibration_in_the_large": -0.00159238711453317, + "expected_calibration_error_10bin": 0.00159238711453317, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9364572239971601, + "auprc": 0.0271981114960141, + "brier": 0.0021116651703970775, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0005854992357358092, + "calibration_in_the_large": -0.0015398992764852322, + "expected_calibration_error_10bin": 0.0015398992764852322, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9331440066264347, + "auprc": 0.024882863043014663, + "brier": 0.002111921115899741, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0006659844504494797, + "calibration_in_the_large": -0.0014594140617715616, + "expected_calibration_error_10bin": 0.0014594140617715616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9308365873861082, + "auprc": 0.023292911263630797, + "brier": 0.0021120941387365493, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0007602747224115255, + "calibration_in_the_large": -0.0013651237898095157, + "expected_calibration_error_10bin": 0.0013651237898095157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9317240563246953, + "auprc": 0.02388838129277658, + "brier": 0.00211071040755594, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0008443137492868968, + "calibration_in_the_large": -0.0012810847629341445, + "expected_calibration_error_10bin": 0.0012810847629341445, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9348006153117974, + "auprc": 0.02510074738668945, + "brier": 0.002108759577312354, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.000963636413564074, + "calibration_in_the_large": -0.0011617620986569674, + "expected_calibration_error_10bin": 0.0011617620986569674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9342089693527393, + "auprc": 0.024805693938096063, + "brier": 0.002108969762382346, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009884551599888877, + "calibration_in_the_large": -0.0011369433522321537, + "expected_calibration_error_10bin": 0.0011369433522321537, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.947291296625222, + "auprc": 0.042763890714007324, + "brier": 0.0027972309645495825, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.001013412338210123, + "calibration_in_the_large": -0.0018204523447512655, + "expected_calibration_error_10bin": 0.0018204523447512655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.947335701598579, + "auprc": 0.04276486443086227, + "brier": 0.002796644483927563, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0010319100835107663, + "calibration_in_the_large": -0.0018019545994506223, + "expected_calibration_error_10bin": 0.0018019545994506223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "F17": { + "time_averaged_auroc": 0.876011117296605, + "time_averaged_auprc": 0.11281876097816605, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2426, + "positives": 13, + "negatives": 2413, + "auroc": 0.8842806592495777, + "auprc": 0.10468306074267117, + "brier": 0.0051265040211691424, + "calibration": { + "observed_rate": 0.0053586150041220115, + "mean_prediction": 0.004256265174991603, + "calibration_in_the_large": -0.0011023498291304083, + "expected_calibration_error_10bin": 0.0011023498291304076, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 19, + "negatives": 2407, + "auroc": 0.8979074191502854, + "auprc": 0.11563727302458328, + "brier": 0.007401223051435473, + "calibration": { + "observed_rate": 0.007831821929101401, + "mean_prediction": 0.005877241890946514, + "calibration_in_the_large": -0.0019545800381548873, + "expected_calibration_error_10bin": 0.0023831085592512105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 22, + "negatives": 2404, + "auroc": 0.883489638481319, + "auprc": 0.12426270859927095, + "brier": 0.00846690169839365, + "calibration": { + "observed_rate": 0.009068425391591096, + "mean_prediction": 0.007849752657821438, + "calibration_in_the_large": -0.0012186727337696584, + "expected_calibration_error_10bin": 0.0017283528374553321, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8871803415243649, + "auprc": 0.11909787622603508, + "brier": 0.009622327214008701, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.008671074660148173, + "calibration_in_the_large": -0.0016339541939326182, + "expected_calibration_error_10bin": 0.002188621996587617, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8875301957517701, + "auprc": 0.11981864329466406, + "brier": 0.009614926087083286, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.009239130348498551, + "calibration_in_the_large": -0.0010658985055822402, + "expected_calibration_error_10bin": 0.0016378645908550276, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8882465639316951, + "auprc": 0.11943435108590178, + "brier": 0.009602414913448593, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.009965887331836726, + "calibration_in_the_large": -0.0003391415222440651, + "expected_calibration_error_10bin": 0.0016597546547203479, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 27, + "negatives": 2399, + "auroc": 0.8806755901378661, + "auprc": 0.11373773872418419, + "brier": 0.010408402465340064, + "calibration": { + "observed_rate": 0.011129431162407255, + "mean_prediction": 0.010750349622632677, + "calibration_in_the_large": -0.00037908153977457733, + "expected_calibration_error_10bin": 0.002322705408134241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 30, + "negatives": 2396, + "auroc": 0.864218141346689, + "auprc": 0.10797268088320963, + "brier": 0.011611087670065526, + "calibration": { + "observed_rate": 0.01236603462489695, + "mean_prediction": 0.01140721941778804, + "calibration_in_the_large": -0.0009588152071089099, + "expected_calibration_error_10bin": 0.0019556267021877687, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 32, + "negatives": 2394, + "auroc": 0.859766604010025, + "auprc": 0.10679521548628329, + "brier": 0.01239489437757035, + "calibration": { + "observed_rate": 0.013190436933223413, + "mean_prediction": 0.012097158415778752, + "calibration_in_the_large": -0.0010932785174446614, + "expected_calibration_error_10bin": 0.0014510400051656821, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8632121465385151, + "auprc": 0.10821431182672209, + "brier": 0.012756460293652037, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.012751488581896541, + "calibration_in_the_large": -0.0008511495054901036, + "expected_calibration_error_10bin": 0.00143158269344264, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8628069242360926, + "auprc": 0.10779657924508732, + "brier": 0.012757583913997679, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.013286794904544213, + "calibration_in_the_large": -0.00031584318284243185, + "expected_calibration_error_10bin": 0.0014029301494522743, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.864453139839684, + "auprc": 0.10965310252741031, + "brier": 0.012740865578400741, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.014069764959307845, + "calibration_in_the_large": 0.00046712687192120017, + "expected_calibration_error_10bin": 0.0020101832176540628, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8643771606579798, + "auprc": 0.10954035105013564, + "brier": 0.012742616227931046, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.014144148758996658, + "calibration_in_the_large": 0.0005415106716100127, + "expected_calibration_error_10bin": 0.002069770655659451, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + } + ], + "reason": null + }, + "F19": { + "time_averaged_auroc": 0.9414068159863399, + "time_averaged_auprc": 0.1614715900500849, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.9594514013118665, + "auprc": 0.18913165266106444, + "brier": 0.0020829099485776426, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.0007188739560998273, + "calibration_in_the_large": -0.001423218153860901, + "expected_calibration_error_10bin": 0.001423218153860901, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.939625850340136, + "auprc": 0.17541457877065808, + "brier": 0.002770107460881433, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.000950545973456152, + "calibration_in_the_large": -0.0019055768398248193, + "expected_calibration_error_10bin": 0.0019055768398248193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.9372986036519871, + "auprc": 0.17939312882725592, + "brier": 0.002761754860906027, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0010806048553265025, + "calibration_in_the_large": -0.0017755179579544687, + "expected_calibration_error_10bin": 0.0017755179579544687, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.9365249920407513, + "auprc": 0.1652990644955766, + "brier": 0.00309930369221981, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.00130899667019399, + "calibration_in_the_large": -0.0019041414947471025, + "expected_calibration_error_10bin": 0.0019041414947471025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9403439627373701, + "auprc": 0.16281014782414321, + "brier": 0.0034281497889507677, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0016061293640478123, + "calibration_in_the_large": -0.0019640241525534017, + "expected_calibration_error_10bin": 0.0019640241525534017, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9414546757434611, + "auprc": 0.16244174605607908, + "brier": 0.003412901964719853, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.001844428277666893, + "calibration_in_the_large": -0.0017257252389343211, + "expected_calibration_error_10bin": 0.0017257252389343211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.940057327122895, + "auprc": 0.16357333199014615, + "brier": 0.0034023727687188107, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.002027460637968195, + "calibration_in_the_large": -0.0015426928786330192, + "expected_calibration_error_10bin": 0.0016163831106940736, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.9411534701857283, + "auprc": 0.16649604842909682, + "brier": 0.003738339127347827, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.002222647835695755, + "calibration_in_the_large": -0.00170452103256558, + "expected_calibration_error_10bin": 0.0017832289447117105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9412868336828165, + "auprc": 0.13785582103972593, + "brier": 0.004435083296974644, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0023376372585259455, + "calibration_in_the_large": -0.002303562313055633, + "expected_calibration_error_10bin": 0.0023841861070236347, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9413971967773976, + "auprc": 0.15083116582740447, + "brier": 0.004425668208450522, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0024961572563350475, + "calibration_in_the_large": -0.002145042315246531, + "expected_calibration_error_10bin": 0.002230137021486677, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9412592429091712, + "auprc": 0.13800528746152174, + "brier": 0.004418789594964173, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0026222271108524795, + "calibration_in_the_large": -0.002018972460729099, + "expected_calibration_error_10bin": 0.002107360967306225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9392727072067101, + "auprc": 0.15396052208428174, + "brier": 0.004413514458231156, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0028483356064033715, + "calibration_in_the_large": -0.001792863965178207, + "expected_calibration_error_10bin": 0.0018841073022905462, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.939162344112129, + "auprc": 0.1539181751841496, + "brier": 0.004413382846127208, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0028556856180738366, + "calibration_in_the_large": -0.0017855139535077418, + "expected_calibration_error_10bin": 0.001876820895862221, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + } + ], + "reason": null + }, + "F20": { + "time_averaged_auroc": 0.715459174951432, + "time_averaged_auprc": 0.017598143365949726, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2808, + "positives": 0, + "negatives": 2808, + "auroc": null, + "auprc": null, + "brier": 2.9122801111730425e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001855501294859838, + "calibration_in_the_large": 0.0001855501294859838, + "expected_calibration_error_10bin": 0.0001855501294859838, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 1, + "negatives": 2807, + "auroc": 0.991449946562166, + "auprc": 0.04, + "brier": 0.0003530346916062498, + "calibration": { + "observed_rate": 0.00035612535612535614, + "mean_prediction": 0.0003791522874648685, + "calibration_in_the_large": 2.302693133951234e-05, + "expected_calibration_error_10bin": 2.302693133951234e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.575552387740556, + "auprc": 0.01894260672886627, + "brier": 0.0007092809631117037, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.0005038519789130782, + "calibration_in_the_large": -0.00020839873333763405, + "expected_calibration_error_10bin": 0.00020839873333763405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.5721667854597291, + "auprc": 0.01827801827801828, + "brier": 0.0007091363959380521, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.0006671523524803103, + "calibration_in_the_large": -4.509835977040198e-05, + "expected_calibration_error_10bin": 4.509835977040198e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6881758764111705, + "auprc": 0.015327932974991798, + "brier": 0.0010640847158269137, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0007700987655279954, + "calibration_in_the_large": -0.0002982773028480731, + "expected_calibration_error_10bin": 0.0002982773028480731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6915032679738562, + "auprc": 0.015193160110779043, + "brier": 0.0010641917528977514, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0008514928502208647, + "calibration_in_the_large": -0.00021688321815520383, + "expected_calibration_error_10bin": 0.00021688321815520383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6937611408199643, + "auprc": 0.01547621923651687, + "brier": 0.0010642318142726984, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0010387988982547489, + "calibration_in_the_large": -2.9577170121319624e-05, + "expected_calibration_error_10bin": 2.9577170121319624e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6936423054070113, + "auprc": 0.015051128809890929, + "brier": 0.0010645662921958978, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0011394713799731408, + "calibration_in_the_large": 7.109531159707233e-05, + "expected_calibration_error_10bin": 7.109531159707233e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6928104575163399, + "auprc": 0.01500693008615518, + "brier": 0.0010649109327627842, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0012113633683288377, + "calibration_in_the_large": 0.00014298729995276924, + "expected_calibration_error_10bin": 0.00014298729995276924, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7478601997146933, + "auprc": 0.014586324027413064, + "brier": 0.0014188800337313426, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001269567118346422, + "calibration_in_the_large": -0.00015493430615500263, + "expected_calibration_error_10bin": 0.00015493430615500263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7458987161198288, + "auprc": 0.014463979916361558, + "brier": 0.0014191657630950752, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0013304571984956723, + "calibration_in_the_large": -9.404422600575225e-05, + "expected_calibration_error_10bin": 9.404422600575225e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7464336661911555, + "auprc": 0.014443889823421194, + "brier": 0.0014194493101481363, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0013956793424425933, + "calibration_in_the_large": -2.8822082058831263e-05, + "expected_calibration_error_10bin": 2.8822082058831263e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7462553495007133, + "auprc": 0.01440753039898251, + "brier": 0.001419475306294058, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001400968557576292, + "calibration_in_the_large": -2.353286692513253e-05, + "expected_calibration_error_10bin": 2.353286692513253e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + } + ], + "reason": null + }, + "F22": { + "time_averaged_auroc": 0.6436879432624114, + "time_averaged_auprc": 0.0009947127431490055, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 1.1947669364650083e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00045510847299900175, + "calibration_in_the_large": 0.00045510847299900175, + "expected_calibration_error_10bin": 0.00045510847299900175, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 2.122616807634493e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006469697200413348, + "calibration_in_the_large": 0.0006469697200413348, + "expected_calibration_error_10bin": 0.0006469697200413348, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 2.8874852584808665e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007652120243432728, + "calibration_in_the_large": 0.0007652120243432728, + "expected_calibration_error_10bin": 0.0007652120243432728, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6475177304964539, + "auprc": 0.0010050251256281408, + "brier": 0.0003575027565214932, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0008404053353207463, + "calibration_in_the_large": 0.00048592110986877895, + "expected_calibration_error_10bin": 0.00048592110986877895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6460992907801418, + "auprc": 0.001001001001001001, + "brier": 0.00035800015762588844, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0009095191315793787, + "calibration_in_the_large": 0.0005550349061274113, + "expected_calibration_error_10bin": 0.0005550349061274113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6368794326241135, + "auprc": 0.000975609756097561, + "brier": 0.000358757232196191, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0010198655570014424, + "calibration_in_the_large": 0.000665381331549475, + "expected_calibration_error_10bin": 0.000665381331549475, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6510638297872341, + "auprc": 0.0010152284263959391, + "brier": 0.0003596698496349875, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0011409496184180295, + "calibration_in_the_large": 0.0007864653929660621, + "expected_calibration_error_10bin": 0.0007864653929660621, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6361702127659574, + "auprc": 0.0009737098344693282, + "brier": 0.00036098299138073026, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0012686741083424366, + "calibration_in_the_large": 0.0009141898828904692, + "expected_calibration_error_10bin": 0.0009141898828904692, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6379432624113475, + "auprc": 0.0009784735812133072, + "brier": 0.0003626073447427351, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0014563210595523964, + "calibration_in_the_large": 0.001101836834100429, + "expected_calibration_error_10bin": 0.001101836834100429, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6358156028368794, + "auprc": 0.0009727626459143969, + "brier": 0.00036352476604412125, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0015383040991135569, + "calibration_in_the_large": 0.0011838198736615895, + "expected_calibration_error_10bin": 0.0011838198736615895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6351063829787233, + "auprc": 0.000970873786407767, + "brier": 0.0003645227380035699, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0016127633713125381, + "calibration_in_the_large": 0.0012582791458605708, + "expected_calibration_error_10bin": 0.0012582791458605708, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6553191489361702, + "auprc": 0.0010277492291880781, + "brier": 0.0003668434875410225, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0017777913525970617, + "calibration_in_the_large": 0.0014233071271450943, + "expected_calibration_error_10bin": 0.0014233071271450943, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6549645390070922, + "auprc": 0.001026694045174538, + "brier": 0.00036694439207367454, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.001784979841467564, + "calibration_in_the_large": 0.0014304956160155965, + "expected_calibration_error_10bin": 0.0014304956160155965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + } + ], + "reason": null + }, + "F25": { + "time_averaged_auroc": 0.9328599197333264, + "time_averaged_auprc": 0.011325797695654116, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9737402413058907, + "auprc": 0.013333333333333334, + "brier": 0.00035374238259533035, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0003215927091296587, + "calibration_in_the_large": -3.3143012757535335e-05, + "expected_calibration_error_10bin": 3.3143012757535335e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9577564785232516, + "auprc": 0.012924606462303232, + "brier": 0.0007073294298323881, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.00043386622891360897, + "calibration_in_the_large": -0.00027560521486077907, + "expected_calibration_error_10bin": 0.00027560521486077907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9588214412495563, + "auprc": 0.013340965128566397, + "brier": 0.000707482958138513, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0006933206251411232, + "calibration_in_the_large": -1.615081863326484e-05, + "expected_calibration_error_10bin": 1.615081863326484e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9199810606060606, + "auprc": 0.010878981940808627, + "brier": 0.0010617793192348325, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0007669630659379407, + "calibration_in_the_large": -0.00029724409972364135, + "expected_calibration_error_10bin": 0.00029724409972364135, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9256628787878788, + "auprc": 0.010744369551957627, + "brier": 0.0010620021970937999, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0009453814895595353, + "calibration_in_the_large": -0.00011882567610204677, + "expected_calibration_error_10bin": 0.00011882567610204677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9237689393939394, + "auprc": 0.010916978501724265, + "brier": 0.0010629950105561351, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011182033125918095, + "calibration_in_the_large": 5.399614693022748e-05, + "expected_calibration_error_10bin": 5.399614693022748e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9237689393939394, + "auprc": 0.010896975544506146, + "brier": 0.001063085178423672, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011444860199190322, + "calibration_in_the_large": 8.027885425745018e-05, + "expected_calibration_error_10bin": 8.027885425745018e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9240056818181818, + "auprc": 0.010879195330414843, + "brier": 0.0010635315955847616, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0012210841535950636, + "calibration_in_the_large": 0.00015687698793348157, + "expected_calibration_error_10bin": 0.00015687698793348157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9253077651515151, + "auprc": 0.010724796249941578, + "brier": 0.0010640669493963545, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0013327222157061243, + "calibration_in_the_large": 0.0002685150500445423, + "expected_calibration_error_10bin": 0.0002685150500445423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9244791666666666, + "auprc": 0.010743575275985686, + "brier": 0.001065336250684586, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0014556588675111724, + "calibration_in_the_large": 0.0003914517018495903, + "expected_calibration_error_10bin": 0.0003914517018495903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.924124053030303, + "auprc": 0.010661656566018834, + "brier": 0.0010655019402910472, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001483323684302111, + "calibration_in_the_large": 0.00041911651864052894, + "expected_calibration_error_10bin": 0.00041911651864052894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9230587121212122, + "auprc": 0.010645112093945404, + "brier": 0.0010670269114576262, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0016027213530896325, + "calibration_in_the_large": 0.0005385141874280504, + "expected_calibration_error_10bin": 0.0005385141874280504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9227035984848485, + "auprc": 0.010544824063997557, + "brier": 0.0010670726527409655, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0016086311070086865, + "calibration_in_the_large": 0.0005444239413471045, + "expected_calibration_error_10bin": 0.0005444239413471045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": null + }, + "F29": { + "time_averaged_auroc": 0.7217752112266184, + "time_averaged_auprc": 0.012988671910778115, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.7539540968010465, + "auprc": 0.0029547059774732883, + "brier": 0.0010686996008345206, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.00022445368163561238, + "calibration_in_the_large": -0.0008446838807307454, + "expected_calibration_error_10bin": 0.0008446838807307454, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.8507675830060693, + "auprc": 0.014009222716579627, + "brier": 0.0017769335272264722, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0004795292017573106, + "calibration_in_the_large": -0.0013023667355199526, + "expected_calibration_error_10bin": 0.0013023667355199526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7091666666666666, + "auprc": 0.011336751057804973, + "brier": 0.0021328831892799428, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.000563448589594088, + "calibration_in_the_large": -0.0015748265351386277, + "expected_calibration_error_10bin": 0.0015748265351386277, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6870310825294748, + "auprc": 0.010387679261149035, + "brier": 0.0024885282148055343, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006624138930342435, + "calibration_in_the_large": -0.0018322404191539248, + "expected_calibration_error_10bin": 0.0018322404191539248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6815699484509774, + "auprc": 0.01026250333111585, + "brier": 0.002488502872636294, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006866110943438712, + "calibration_in_the_large": -0.0018080432178442971, + "expected_calibration_error_10bin": 0.0018080432178442971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6870310825294748, + "auprc": 0.010330293579430763, + "brier": 0.002488199053750305, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.000739479714183713, + "calibration_in_the_large": -0.0017551745980044554, + "expected_calibration_error_10bin": 0.0017551745980044554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6869800438932272, + "auprc": 0.010129293233704281, + "brier": 0.0024877494405654, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0008343818686873669, + "calibration_in_the_large": -0.0016602724435008016, + "expected_calibration_error_10bin": 0.0016602724435008016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6833052620833971, + "auprc": 0.010026738454132015, + "brier": 0.002487741342734876, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.000859697781350338, + "calibration_in_the_large": -0.0016349565308378302, + "expected_calibration_error_10bin": 0.0016349565308378302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7228377412437456, + "auprc": 0.01737191966004291, + "brier": 0.0028383180069809846, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0009254792914850823, + "calibration_in_the_large": -0.0019255542081585387, + "expected_calibration_error_10bin": 0.0019255542081585387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7274392423159399, + "auprc": 0.0178635569352006, + "brier": 0.00283665570748905, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0010463517548087967, + "calibration_in_the_large": -0.0018046817448348243, + "expected_calibration_error_10bin": 0.0018046817448348243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7290475339528234, + "auprc": 0.017851797858479644, + "brier": 0.0028361941143193723, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0010977218815978352, + "calibration_in_the_large": -0.0017533116180457858, + "expected_calibration_error_10bin": 0.0017533116180457858, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7321300929235168, + "auprc": 0.018172569871851757, + "brier": 0.002834260610346893, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0012891543713250352, + "calibration_in_the_large": -0.0015618791283185858, + "expected_calibration_error_10bin": 0.0015618791283185858, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7318173695496784, + "auprc": 0.018155702903150755, + "brier": 0.002834177433071904, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0013108072886559498, + "calibration_in_the_large": -0.0015402262109876711, + "expected_calibration_error_10bin": 0.0015402262109876711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "F31": { + "time_averaged_auroc": 0.8726378771592977, + "time_averaged_auprc": 0.018704351451195998, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2724, + "positives": 5, + "negatives": 2719, + "auroc": 0.8867230599485105, + "auprc": 0.01159910417630094, + "brier": 0.0018291176274762566, + "calibration": { + "observed_rate": 0.0018355359765051395, + "mean_prediction": 0.0013158394518279408, + "calibration_in_the_large": -0.0005196965246771987, + "expected_calibration_error_10bin": 0.0005196965246771987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.8618223881381776, + "auprc": 0.015274316373183276, + "brier": 0.002553640153174908, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0016114668676173083, + "calibration_in_the_large": -0.000958283499489887, + "expected_calibration_error_10bin": 0.000958283499489887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.8619275461380724, + "auprc": 0.01439783290564296, + "brier": 0.0025556479677618805, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0020189469994290293, + "calibration_in_the_large": -0.000550803367678166, + "expected_calibration_error_10bin": 0.000550803367678166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8726527982326951, + "auprc": 0.019273911252388067, + "brier": 0.0029099837400328706, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0022928401441916664, + "calibration_in_the_large": -0.0006440174182165566, + "expected_calibration_error_10bin": 0.0006440174182165566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8722385861561119, + "auprc": 0.018994525747961045, + "brier": 0.0029109911055971768, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.002559926944169558, + "calibration_in_the_large": -0.00037693061823866484, + "expected_calibration_error_10bin": 0.00037693061823866484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8699374079528719, + "auprc": 0.018574011504035218, + "brier": 0.0029118966909598646, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0027080651387105517, + "calibration_in_the_large": -0.00022879242369767136, + "expected_calibration_error_10bin": 0.00022879242369767136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8703055964653903, + "auprc": 0.01828128664859541, + "brier": 0.002913998148274798, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.003043692145884893, + "calibration_in_the_large": 0.00010683458347666985, + "expected_calibration_error_10bin": 0.00010683458347666985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8686027245949927, + "auprc": 0.01804895677121405, + "brier": 0.002914891015043759, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.003218369143918963, + "calibration_in_the_large": 0.0002815115815107401, + "expected_calibration_error_10bin": 0.0002815115815107401, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8682345360824743, + "auprc": 0.017937456887825134, + "brier": 0.002916676319632749, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.003507398298436766, + "calibration_in_the_large": 0.0005705407360285428, + "expected_calibration_error_10bin": 0.0005705407360285428, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.879926335174954, + "auprc": 0.023412495763609337, + "brier": 0.003267061909192531, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.0038129125111031627, + "calibration_in_the_large": 0.0005089477533939115, + "expected_calibration_error_10bin": 0.0005089477533939115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.8781256394516063, + "auprc": 0.022669527116476927, + "brier": 0.0032691498252409566, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.003973393761559067, + "calibration_in_the_large": 0.0006694290038498159, + "expected_calibration_error_10bin": 0.0006694290038498159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.8773480662983425, + "auprc": 0.022418643119853216, + "brier": 0.0032716248511455294, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.004178651555490211, + "calibration_in_the_large": 0.0008746867977809602, + "expected_calibration_error_10bin": 0.0008746867977809602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.8764477184366687, + "auprc": 0.02227450059846237, + "brier": 0.003271928454679797, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.004208237327349678, + "calibration_in_the_large": 0.0009042725696404266, + "expected_calibration_error_10bin": 0.0009042725696404266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + } + ], + "reason": null + }, + "F32": { + "time_averaged_auroc": 0.7131428258187602, + "time_averaged_auprc": 0.05941295291838111, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2200, + "positives": 16, + "negatives": 2184, + "auroc": 0.7193509615384616, + "auprc": 0.022822080102917336, + "brier": 0.007263772685097458, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.009621254190308471, + "calibration_in_the_large": 0.0023485269175811986, + "expected_calibration_error_10bin": 0.0023485269175811986, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 29, + "negatives": 2171, + "auroc": 0.7408948680887562, + "auprc": 0.047684361341036804, + "brier": 0.012885897197639419, + "calibration": { + "observed_rate": 0.013181818181818182, + "mean_prediction": 0.014879756601532625, + "calibration_in_the_large": 0.0016979384197144433, + "expected_calibration_error_10bin": 0.0016979384197144433, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 36, + "negatives": 2164, + "auroc": 0.728114089135346, + "auprc": 0.05023520883705707, + "brier": 0.015976352060362707, + "calibration": { + "observed_rate": 0.016363636363636365, + "mean_prediction": 0.017840675792203085, + "calibration_in_the_large": 0.0014770394285667197, + "expected_calibration_error_10bin": 0.0014770394285667197, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 40, + "negatives": 2160, + "auroc": 0.7232060185185185, + "auprc": 0.050823965040110976, + "brier": 0.017801305178152822, + "calibration": { + "observed_rate": 0.01818181818181818, + "mean_prediction": 0.020243201401912797, + "calibration_in_the_large": 0.002061383220094616, + "expected_calibration_error_10bin": 0.0022098524694262192, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 45, + "negatives": 2155, + "auroc": 0.7149780871358598, + "auprc": 0.05513484143430907, + "brier": 0.01999869532445026, + "calibration": { + "observed_rate": 0.020454545454545454, + "mean_prediction": 0.02262211670759081, + "calibration_in_the_large": 0.0021675712530453556, + "expected_calibration_error_10bin": 0.0027150825631344373, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 47, + "negatives": 2153, + "auroc": 0.7045389412101867, + "auprc": 0.05534431293694901, + "brier": 0.021009492971651517, + "calibration": { + "observed_rate": 0.021363636363636362, + "mean_prediction": 0.024982108914912468, + "calibration_in_the_large": 0.0036184725512761057, + "expected_calibration_error_10bin": 0.0037157709616903152, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 53, + "negatives": 2147, + "auroc": 0.7091246232127321, + "auprc": 0.06306503472096037, + "brier": 0.023602492418049206, + "calibration": { + "observed_rate": 0.02409090909090909, + "mean_prediction": 0.027606489461164032, + "calibration_in_the_large": 0.003515580370254942, + "expected_calibration_error_10bin": 0.005799579553396058, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 56, + "negatives": 2144, + "auroc": 0.7040744936034116, + "auprc": 0.06308713911647158, + "brier": 0.025058300354476544, + "calibration": { + "observed_rate": 0.025454545454545455, + "mean_prediction": 0.029496950266395948, + "calibration_in_the_large": 0.0040424048118504925, + "expected_calibration_error_10bin": 0.00733321760558862, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 60, + "negatives": 2140, + "auroc": 0.7122352024922118, + "auprc": 0.06980819399891466, + "brier": 0.026667694331229126, + "calibration": { + "observed_rate": 0.02727272727272727, + "mean_prediction": 0.031040550624179146, + "calibration_in_the_large": 0.0037678233514518746, + "expected_calibration_error_10bin": 0.008045306993404997, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 66, + "negatives": 2134, + "auroc": 0.7024367385192127, + "auprc": 0.07121029045266068, + "brier": 0.029309375312743177, + "calibration": { + "observed_rate": 0.03, + "mean_prediction": 0.032885743099905086, + "calibration_in_the_large": 0.0028857430999050873, + "expected_calibration_error_10bin": 0.0068962322330811425, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 68, + "negatives": 2132, + "auroc": 0.6965152852885995, + "auprc": 0.07038854007626778, + "brier": 0.03033204059892406, + "calibration": { + "observed_rate": 0.03090909090909091, + "mean_prediction": 0.034415243171758696, + "calibration_in_the_large": 0.0035061522626677853, + "expected_calibration_error_10bin": 0.008326022660264488, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.7076806599832915, + "auprc": 0.07643712563046333, + "brier": 0.03201091621804844, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.036104914538128384, + "calibration_in_the_large": 0.003377641810855654, + "expected_calibration_error_10bin": 0.010242693330510519, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.7077067669172933, + "auprc": 0.07632729425083568, + "brier": 0.03203469116837203, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.0364268036032974, + "calibration_in_the_large": 0.003699530876024669, + "expected_calibration_error_10bin": 0.010515313400934576, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + } + ], + "reason": null + }, + "F33": { + "time_averaged_auroc": 0.8059842990953198, + "time_averaged_auprc": 0.020660149466898075, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2800, + "positives": 6, + "negatives": 2794, + "auroc": 0.8084586017656884, + "auprc": 0.016356752654434616, + "brier": 0.0021338389183033434, + "calibration": { + "observed_rate": 0.002142857142857143, + "mean_prediction": 0.001619829669979416, + "calibration_in_the_large": -0.0005230274728777269, + "expected_calibration_error_10bin": 0.0005230274728777269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.8045624264743492, + "auprc": 0.015149817535441716, + "brier": 0.0024936761630030527, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.002041836933961219, + "calibration_in_the_large": -0.00045816306603878093, + "expected_calibration_error_10bin": 0.00045816306603878093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.7920822464324075, + "auprc": 0.014005384780929716, + "brier": 0.002500167487108311, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0024292212348739537, + "calibration_in_the_large": -7.077876512604636e-05, + "expected_calibration_error_10bin": 7.077876512604636e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.79238913610557, + "auprc": 0.013682880967077293, + "brier": 0.0025044908605817294, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0026917442063248537, + "calibration_in_the_large": 0.00019174420632485367, + "expected_calibration_error_10bin": 0.00019174420632485367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.7849214873919492, + "auprc": 0.013489963777345392, + "brier": 0.0025106201553213837, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0029578919319900314, + "calibration_in_the_large": 0.00045789193199003136, + "expected_calibration_error_10bin": 0.00045789193199003136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 9, + "negatives": 2791, + "auroc": 0.7969664397468053, + "auprc": 0.025732632604988596, + "brier": 0.003192123666652049, + "calibration": { + "observed_rate": 0.0032142857142857142, + "mean_prediction": 0.003178717904621798, + "calibration_in_the_large": -3.5567809663916445e-05, + "expected_calibration_error_10bin": 0.00010981919427129991, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.817269141758206, + "auprc": 0.026366777911541905, + "brier": 0.003894979039123445, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.003358279901140122, + "calibration_in_the_large": -0.0005702915274313066, + "expected_calibration_error_10bin": 0.0006463829925723985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8150852374588481, + "auprc": 0.024635574188557927, + "brier": 0.0038995610214129176, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.0036340179852556633, + "calibration_in_the_large": -0.0002945534433157655, + "expected_calibration_error_10bin": 0.0003751770487373769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8138792007562176, + "auprc": 0.02405907446822644, + "brier": 0.0039029548122255014, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.003803975609025656, + "calibration_in_the_large": -0.00012459581954577274, + "expected_calibration_error_10bin": 0.0002788470150361324, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8140841702534672, + "auprc": 0.023882100858719016, + "brier": 0.0042605139877093, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004044411283357477, + "calibration_in_the_large": -0.0002413030023568092, + "expected_calibration_error_10bin": 0.0004048188990262646, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8144129603060737, + "auprc": 0.023864123939469534, + "brier": 0.004262786938410459, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004206042490950495, + "calibration_in_the_large": -7.967179476379115e-05, + "expected_calibration_error_10bin": 0.0002472540799551226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.812051649928264, + "auprc": 0.023697111800676653, + "brier": 0.004268928971646505, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.0044393879408744395, + "calibration_in_the_large": 0.00015367365516015356, + "expected_calibration_error_10bin": 0.00015367365516015432, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8116331898613104, + "auprc": 0.023659747582266157, + "brier": 0.004270756604999197, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004491422679701438, + "calibration_in_the_large": 0.0002057083939871517, + "expected_calibration_error_10bin": 0.00020570839398715188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + } + ], + "reason": null + }, + "F39": { + "time_averaged_auroc": 0.7552614367344039, + "time_averaged_auprc": 0.013550765915222748, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.8382689556509298, + "auprc": 0.013396655772173059, + "brier": 0.0017788376630979196, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.0006400570704494078, + "calibration_in_the_large": -0.0011450196878511993, + "expected_calibration_error_10bin": 0.0011450196878511993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.8568276684555755, + "auprc": 0.01732164816447697, + "brier": 0.002130299691143125, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.0009345640393330385, + "calibration_in_the_large": -0.00120752807062769, + "expected_calibration_error_10bin": 0.00120752807062769, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 7, + "negatives": 2794, + "auroc": 0.735913692606606, + "auprc": 0.01385033798989584, + "brier": 0.002485850025065755, + "calibration": { + "observed_rate": 0.0024991074616208496, + "mean_prediction": 0.0015209901566127042, + "calibration_in_the_large": -0.0009781173050081454, + "expected_calibration_error_10bin": 0.0009781173050081454, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7432420336555675, + "auprc": 0.012258152032425917, + "brier": 0.0028428732333685507, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.002118691606768976, + "calibration_in_the_large": -0.0007374312065119952, + "expected_calibration_error_10bin": 0.0007374312065119952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7351414249910491, + "auprc": 0.011072528095870568, + "brier": 0.0028469149049190107, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0025109170284591848, + "calibration_in_the_large": -0.00034520578482178646, + "expected_calibration_error_10bin": 0.00034520578482178646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7585561922954474, + "auprc": 0.013988162043192464, + "brier": 0.0031954839703257185, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.002664169602188955, + "calibration_in_the_large": -0.0005489685627521374, + "expected_calibration_error_10bin": 0.0005489685627521374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7570837312957657, + "auprc": 0.013691573196282598, + "brier": 0.0031979365712674116, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.002936135992194441, + "calibration_in_the_large": -0.00027700217274665134, + "expected_calibration_error_10bin": 0.00027700217274665134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.771228950197062, + "auprc": 0.01481559651181993, + "brier": 0.0035511680452966475, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0031135356986350853, + "calibration_in_the_large": -0.00045661781796612873, + "expected_calibration_error_10bin": 0.00045661781796612873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.7677534933715514, + "auprc": 0.014119144537409273, + "brier": 0.003558181237484624, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.00353008977639864, + "calibration_in_the_large": -4.006374020257405e-05, + "expected_calibration_error_10bin": 4.006374020257405e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7152166829586184, + "auprc": 0.013195697738712124, + "brier": 0.00391774714558913, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0036947570636965267, + "calibration_in_the_large": -0.00023241180456480852, + "expected_calibration_error_10bin": 0.00023241180456480852, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7150537634408602, + "auprc": 0.013215808882810572, + "brier": 0.003919471764035088, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.003857276011103506, + "calibration_in_the_large": -6.989285715782931e-05, + "expected_calibration_error_10bin": 6.989285715782931e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7119582926034539, + "auprc": 0.0125979559840992, + "brier": 0.0039267337771081955, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0040727623581727065, + "calibration_in_the_large": 0.0001455934899113713, + "expected_calibration_error_10bin": 0.0001455934899113713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7121537960247638, + "auprc": 0.012636695948727199, + "brier": 0.003927639768936666, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.004121211102999733, + "calibration_in_the_large": 0.00019404223473839816, + "expected_calibration_error_10bin": 0.00019404223473839816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + } + ], + "reason": null + }, + "F41": { + "time_averaged_auroc": 0.7328227628048161, + "time_averaged_auprc": 0.09931977495005694, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2247, + "positives": 16, + "negatives": 2231, + "auroc": 0.7467503361721202, + "auprc": 0.038404874177037696, + "brier": 0.006990769970967948, + "calibration": { + "observed_rate": 0.007120605251446373, + "mean_prediction": 0.010078284272839202, + "calibration_in_the_large": 0.0029576790213928297, + "expected_calibration_error_10bin": 0.0029576790213928297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 34, + "negatives": 2213, + "auroc": 0.7583397570505834, + "auprc": 0.0900128265203315, + "brier": 0.014491560092419744, + "calibration": { + "observed_rate": 0.015131286159323543, + "mean_prediction": 0.01571818541289437, + "calibration_in_the_large": 0.0005868992535708276, + "expected_calibration_error_10bin": 0.001683080092264803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 43, + "negatives": 2204, + "auroc": 0.7299624361625797, + "auprc": 0.08172190137017768, + "brier": 0.01828821864336634, + "calibration": { + "observed_rate": 0.01913662661326213, + "mean_prediction": 0.020411918410417115, + "calibration_in_the_large": 0.0012752917971549857, + "expected_calibration_error_10bin": 0.0012752917971549898, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 51, + "negatives": 2196, + "auroc": 0.737812064716597, + "auprc": 0.10727794605881699, + "brier": 0.02145985128220176, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.023651992722925688, + "calibration_in_the_large": 0.0009550634839403729, + "expected_calibration_error_10bin": 0.0017771714227968294, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 61, + "negatives": 2186, + "auroc": 0.7336028077332654, + "auprc": 0.10889688332016026, + "brier": 0.02555929860118942, + "calibration": { + "observed_rate": 0.027147307521139297, + "mean_prediction": 0.026860600282520165, + "calibration_in_the_large": -0.000286707238619132, + "expected_calibration_error_10bin": 0.001321936180555224, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 66, + "negatives": 2181, + "auroc": 0.7409375738124019, + "auprc": 0.11505154965265182, + "brier": 0.027511402621962108, + "calibration": { + "observed_rate": 0.029372496662216287, + "mean_prediction": 0.029278308049534022, + "calibration_in_the_large": -9.418861268226456e-05, + "expected_calibration_error_10bin": 0.0007055547207753089, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 72, + "negatives": 2175, + "auroc": 0.7346296296296296, + "auprc": 0.10732164143892647, + "brier": 0.030025405338805166, + "calibration": { + "observed_rate": 0.03204272363150868, + "mean_prediction": 0.031775698042339984, + "calibration_in_the_large": -0.00026702558916869706, + "expected_calibration_error_10bin": 0.0033372103221694627, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 74, + "negatives": 2173, + "auroc": 0.728473526448676, + "auprc": 0.11413799046898106, + "brier": 0.03089801525410266, + "calibration": { + "observed_rate": 0.032932799287939477, + "mean_prediction": 0.03368023023833896, + "calibration_in_the_large": 0.0007474309503994817, + "expected_calibration_error_10bin": 0.004294954570087809, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 77, + "negatives": 2170, + "auroc": 0.7232210186127237, + "auprc": 0.11135400433732766, + "brier": 0.03218847620779408, + "calibration": { + "observed_rate": 0.03426791277258567, + "mean_prediction": 0.035656939809114024, + "calibration_in_the_large": 0.0013890270365283577, + "expected_calibration_error_10bin": 0.002378689460800386, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.724101854807249, + "auprc": 0.10453918310230015, + "brier": 0.032635227484699984, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.03706543497348716, + "calibration_in_the_large": 0.0023524843726860922, + "expected_calibration_error_10bin": 0.0024861535785863135, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.7241314087787117, + "auprc": 0.1041703006448623, + "brier": 0.03268783648547884, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.038650012143829966, + "calibration_in_the_large": 0.003937061543028898, + "expected_calibration_error_10bin": 0.0039370615430289, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7223580987540379, + "auprc": 0.10417551332733492, + "brier": 0.033556700833423415, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.04051044126539431, + "calibration_in_the_large": 0.004907415008162448, + "expected_calibration_error_10bin": 0.004907415008162447, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7223754037840332, + "auprc": 0.1040924599318315, + "brier": 0.033569697928643644, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.04085734540192078, + "calibration_in_the_large": 0.005254319144688914, + "expected_calibration_error_10bin": 0.005254319144688916, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + } + ], + "reason": null + }, + "F43": { + "time_averaged_auroc": 0.7585044935977237, + "time_averaged_auprc": 0.044481849150061044, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.9204545454545454, + "auprc": 0.0727348247186053, + "brier": 0.002146696181371946, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0028461865448706713, + "calibration_in_the_large": 0.0006515998586965675, + "expected_calibration_error_10bin": 0.0006515998586965675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 9, + "negatives": 2725, + "auroc": 0.7725993883792049, + "auprc": 0.05762451648486812, + "brier": 0.0032237495715073897, + "calibration": { + "observed_rate": 0.0032918800292611556, + "mean_prediction": 0.004330413864305786, + "calibration_in_the_large": 0.0010385338350446301, + "expected_calibration_error_10bin": 0.0010385338350446304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 13, + "negatives": 2721, + "auroc": 0.7357023718655472, + "auprc": 0.038575460578392715, + "brier": 0.004686026183906401, + "calibration": { + "observed_rate": 0.004754937820043892, + "mean_prediction": 0.005413650340448454, + "calibration_in_the_large": 0.000658712520404562, + "expected_calibration_error_10bin": 0.0006587125204045624, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7425278901556945, + "auprc": 0.03698217879819943, + "brier": 0.005405341917497908, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.006102880849364381, + "calibration_in_the_large": 0.0006164141339291213, + "expected_calibration_error_10bin": 0.0006164141339291207, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7491479710677945, + "auprc": 0.03644871251577339, + "brier": 0.005409296769169965, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.006738047574172168, + "calibration_in_the_large": 0.0012515808587369084, + "expected_calibration_error_10bin": 0.0012515808587369082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.7563695732155997, + "auprc": 0.035263847503031714, + "brier": 0.005781633502708859, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.007462354593604718, + "calibration_in_the_large": 0.0016101234304737744, + "expected_calibration_error_10bin": 0.0017399350924253184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.7605316409124356, + "auprc": 0.041831131697635665, + "brier": 0.005800745330217141, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.008147292370443322, + "calibration_in_the_large": 0.0022950612073123784, + "expected_calibration_error_10bin": 0.0023756891613534556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7481386025200458, + "auprc": 0.04180128054160642, + "brier": 0.006515927149072146, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.008823706740807676, + "calibration_in_the_large": 0.002239946682285365, + "expected_calibration_error_10bin": 0.0022838215871802464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7487522500409098, + "auprc": 0.04094126800314437, + "brier": 0.006537913188728892, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.009382712020286755, + "calibration_in_the_large": 0.0027989519617644433, + "expected_calibration_error_10bin": 0.002798951961764444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7344509948415623, + "auprc": 0.03836958762375593, + "brier": 0.007272980541709311, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.009800310399446836, + "calibration_in_the_large": 0.002485021445533157, + "expected_calibration_error_10bin": 0.002485021445533157, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7352800294767871, + "auprc": 0.04632575052777589, + "brier": 0.007288409344509708, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.010249702758889426, + "calibration_in_the_large": 0.002934413804975747, + "expected_calibration_error_10bin": 0.002934413804975746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7356300663227708, + "auprc": 0.046505565206267384, + "brier": 0.007304966168040583, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.010756165740854633, + "calibration_in_the_large": 0.003440876786940953, + "expected_calibration_error_10bin": 0.0034408767869409528, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 21, + "negatives": 2713, + "auroc": 0.7209730925175083, + "auprc": 0.04485991475173726, + "brier": 0.007670742241302058, + "calibration": { + "observed_rate": 0.007681053401609363, + "mean_prediction": 0.010815863383556383, + "calibration_in_the_large": 0.00313480998194702, + "expected_calibration_error_10bin": 0.0031348099819470186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + } + ], + "reason": null + }, + "F60": { + "time_averaged_auroc": 0.9468337905796176, + "time_averaged_auprc": 0.03954113967431559, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.9691051136363636, + "auprc": 0.02098108747044917, + "brier": 0.0007087976460963847, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.000972529354800076, + "calibration_in_the_large": 0.00026280614685117605, + "expected_calibration_error_10bin": 0.00026280614685117605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 4, + "negatives": 2814, + "auroc": 0.9674840085287847, + "auprc": 0.02651413311772159, + "brier": 0.0014092093927331128, + "calibration": { + "observed_rate": 0.0014194464158978, + "mean_prediction": 0.0013212367980671884, + "calibration_in_the_large": -9.820961783061147e-05, + "expected_calibration_error_10bin": 9.820961783061147e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9411304656949876, + "auprc": 0.02265218909484766, + "brier": 0.0017731636060479557, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0017740083615652206, + "calibration_in_the_large": -2.996583070291603e-07, + "expected_calibration_error_10bin": 2.996583070291603e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9399217916814788, + "auprc": 0.02206874302294319, + "brier": 0.0017795157301729795, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002062207834248593, + "calibration_in_the_large": 0.00028789981437634315, + "expected_calibration_error_10bin": 0.0002878998143763435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9404905794525418, + "auprc": 0.021897130295758745, + "brier": 0.0017879882611549257, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0023743426955526656, + "calibration_in_the_large": 0.0006000346756804159, + "expected_calibration_error_10bin": 0.0006000346756804156, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9382154283682901, + "auprc": 0.021584978690106556, + "brier": 0.0017966963106144924, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0026429281105661874, + "calibration_in_the_large": 0.0008686200906939377, + "expected_calibration_error_10bin": 0.0008686200906939378, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9360824742268041, + "auprc": 0.021342914829755717, + "brier": 0.0018028871901432238, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0028159421559007455, + "calibration_in_the_large": 0.0010416341360284958, + "expected_calibration_error_10bin": 0.0010416341360284958, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.93672236046925, + "auprc": 0.02123103440704389, + "brier": 0.0018119031297158849, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.003033535953218195, + "calibration_in_the_large": 0.0012592279333459452, + "expected_calibration_error_10bin": 0.0012592279333459456, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9473684210526315, + "auprc": 0.06724795865372636, + "brier": 0.0020904853033104046, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0032367879711711705, + "calibration_in_the_large": 0.0011076183473244707, + "expected_calibration_error_10bin": 0.001189322905324027, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9491465149359887, + "auprc": 0.06748368706049808, + "brier": 0.0020968148155241836, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0035052062795763255, + "calibration_in_the_large": 0.0013760366557296257, + "expected_calibration_error_10bin": 0.0013760366557296257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9484945471787577, + "auprc": 0.06706027573475283, + "brier": 0.002104901162818818, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0037205214594099338, + "calibration_in_the_large": 0.001591351835563234, + "expected_calibration_error_10bin": 0.001591351835563234, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9474869606448554, + "auprc": 0.06703704309174251, + "brier": 0.002117662963395139, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.004015043755996283, + "calibration_in_the_large": 0.0018858741321495834, + "expected_calibration_error_10bin": 0.0018858741321495837, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9471906116642959, + "auprc": 0.06693364029675632, + "brier": 0.002118806814329805, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.004042023934982897, + "calibration_in_the_large": 0.0019128543111361974, + "expected_calibration_error_10bin": 0.001912854311136197, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "F90": { + "time_averaged_auroc": 0.9273879103851735, + "time_averaged_auprc": 0.023837941108200214, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8943001443001443, + "auprc": 0.008337523043405397, + "brier": 0.0010794455065094091, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.0002867644295398956, + "calibration_in_the_large": -0.0007943166515411856, + "expected_calibration_error_10bin": 0.0007943166515411856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9300361010830325, + "auprc": 0.02119512561853522, + "brier": 0.0017927355566970038, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.0005547567259865802, + "calibration_in_the_large": -0.0012470450758152217, + "expected_calibration_error_10bin": 0.0012470450758152217, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9311913357400722, + "auprc": 0.02098839161077424, + "brier": 0.0017905943645823803, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.0007374721134812291, + "calibration_in_the_large": -0.0010643296883205728, + "expected_calibration_error_10bin": 0.0010643296883205728, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.9363187673046828, + "auprc": 0.02694554825078947, + "brier": 0.002144571691062565, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0008932390554743121, + "calibration_in_the_large": -0.00126892310668785, + "expected_calibration_error_10bin": 0.00126892310668785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9331131296449215, + "auprc": 0.026461587680863794, + "brier": 0.0025020146614590623, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.0009637043970948841, + "calibration_in_the_large": -0.0015588181254276383, + "expected_calibration_error_10bin": 0.0015588181254276383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9320809248554913, + "auprc": 0.026136341236726344, + "brier": 0.002501926654816652, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.000993594452911484, + "calibration_in_the_large": -0.0015289280696110384, + "expected_calibration_error_10bin": 0.0015289280696110384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9344033856317093, + "auprc": 0.026692656162523625, + "brier": 0.0024990653687592887, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.0011568587952196312, + "calibration_in_the_large": -0.0013656637273028911, + "expected_calibration_error_10bin": 0.0013656637273028911, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9316164327002477, + "auprc": 0.02557914227294111, + "brier": 0.0024985765507409335, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.001273953698631279, + "calibration_in_the_large": -0.0012485688238912432, + "expected_calibration_error_10bin": 0.0012485688238912432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9299649050371593, + "auprc": 0.025255642312704975, + "brier": 0.002498324996823315, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.0013547156494897938, + "calibration_in_the_large": -0.0011678068730327285, + "expected_calibration_error_10bin": 0.0011678068730327285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.926273942898446, + "auprc": 0.025767789334677837, + "brier": 0.002853103270164655, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.00154277554158447, + "calibration_in_the_large": -0.001340107341298413, + "expected_calibration_error_10bin": 0.001340107341298413, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9258221900975786, + "auprc": 0.02552017801836209, + "brier": 0.002851995195937554, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0016720360860114222, + "calibration_in_the_large": -0.0012108467968714608, + "expected_calibration_error_10bin": 0.0012108467968714608, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9255511384170582, + "auprc": 0.025513760991818395, + "brier": 0.0028519414074572153, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.001703886985626079, + "calibration_in_the_large": -0.001178995897256804, + "expected_calibration_error_10bin": 0.001178995897256804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9253704372967112, + "auprc": 0.02549954787248032, + "brier": 0.0028519264494269495, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0017105503661747077, + "calibration_in_the_large": -0.0011723325167081753, + "expected_calibration_error_10bin": 0.0011723325167081753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + } + ], + "reason": null + }, + "G25": { + "time_averaged_auroc": 0.6825580769110806, + "time_averaged_auprc": 0.00502281206471668, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9808871258564731, + "auprc": 0.018518518518518517, + "brier": 0.000359278336777215, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007275708534244811, + "calibration_in_the_large": 0.00036708058666168374, + "expected_calibration_error_10bin": 0.00036708058666168374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.7009503187778179, + "auprc": 0.0036096775043237706, + "brier": 0.0010831449772489609, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.001286418581519886, + "calibration_in_the_large": 0.0002049477812314938, + "expected_calibration_error_10bin": 0.0002049477812314938, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6708483754512635, + "auprc": 0.00327868720426053, + "brier": 0.0014498493046359228, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0017536728539892608, + "calibration_in_the_large": 0.00031171178693807124, + "expected_calibration_error_10bin": 0.00031171178693807124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6644404332129964, + "auprc": 0.0031075497028431615, + "brier": 0.0014550513093835246, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0020898059814762593, + "calibration_in_the_large": 0.0006478449144250698, + "expected_calibration_error_10bin": 0.0006478449144250698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6584837545126354, + "auprc": 0.0030732284493158513, + "brier": 0.0014610318134479095, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0024066675096819173, + "calibration_in_the_large": 0.0009647064426307277, + "expected_calibration_error_10bin": 0.0009647064426307277, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6530685920577617, + "auprc": 0.002989771683653898, + "brier": 0.0014706919758825964, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.002745906909849319, + "calibration_in_the_large": 0.0013039458427981294, + "expected_calibration_error_10bin": 0.0013039458427981294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6949079089924161, + "auprc": 0.004019070774119063, + "brier": 0.0018341646964097785, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.003068366965695832, + "calibration_in_the_large": 0.0012659156318818453, + "expected_calibration_error_10bin": 0.0012659156318818453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6390895953757225, + "auprc": 0.003936127922846726, + "brier": 0.0022036915099080128, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0033988442168214317, + "calibration_in_the_large": 0.0012359026162446474, + "expected_calibration_error_10bin": 0.0012359026162446474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6358381502890174, + "auprc": 0.003850616746398436, + "brier": 0.002214485502759738, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0037448007211009406, + "calibration_in_the_large": 0.0015818591205241563, + "expected_calibration_error_10bin": 0.0015818591205241563, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6360789980732178, + "auprc": 0.003849567264223646, + "brier": 0.0022220967752089927, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003943400615295791, + "calibration_in_the_large": 0.0017804590147190071, + "expected_calibration_error_10bin": 0.001780459014719007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6371628131021194, + "auprc": 0.0038673508996550266, + "brier": 0.0022340318613288447, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.004209338307758706, + "calibration_in_the_large": 0.0020463967071819213, + "expected_calibration_error_10bin": 0.0020463967071819218, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 8, + "negatives": 2766, + "auroc": 0.6332248734634852, + "auprc": 0.004759022335211709, + "brier": 0.0029573246493919065, + "calibration": { + "observed_rate": 0.002883922134102379, + "mean_prediction": 0.004442057416879312, + "calibration_in_the_large": 0.0015581352827769325, + "expected_calibration_error_10bin": 0.0015581352827769325, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 9, + "negatives": 2765, + "auroc": 0.668274060679124, + "auprc": 0.006437367835946504, + "brier": 0.003309231069832676, + "calibration": { + "observed_rate": 0.0032444124008651765, + "mean_prediction": 0.004492939581739214, + "calibration_in_the_large": 0.0012485271808740372, + "expected_calibration_error_10bin": 0.0012485271808740372, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + } + ], + "reason": null + }, + "G31": { + "time_averaged_auroc": 0.7458181033813935, + "time_averaged_auprc": 0.006151507882266097, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 1.4189361376923245e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005797892708377408, + "calibration_in_the_large": 0.0005797892708377408, + "expected_calibration_error_10bin": 0.0005797892708377408, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5926454837558015, + "auprc": 0.0008756567425569177, + "brier": 0.0003655351457996165, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0013201454359872216, + "calibration_in_the_large": 0.0009632574987994986, + "expected_calibration_error_10bin": 0.0009632574987994986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5837200999642984, + "auprc": 0.000856898029134533, + "brier": 0.0003724737553703811, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0017620390397606962, + "calibration_in_the_large": 0.0014051511025729732, + "expected_calibration_error_10bin": 0.0014051511025729732, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5837200999642984, + "auprc": 0.000856898029134533, + "brier": 0.000379173717239908, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.002066485024507872, + "calibration_in_the_large": 0.0017095970873201491, + "expected_calibration_error_10bin": 0.0017095970873201491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.7085714285714285, + "auprc": 0.0019176676503658853, + "brier": 0.0007382378109807136, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.0022888016749982665, + "calibration_in_the_large": 0.0015750258006228205, + "expected_calibration_error_10bin": 0.0015750258006228205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8236240171551108, + "auprc": 0.006442974236024504, + "brier": 0.0014469457736137517, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0026333803822351297, + "calibration_in_the_large": 0.0012058286334842374, + "expected_calibration_error_10bin": 0.0012058286334842374, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8197424892703863, + "auprc": 0.007472739036169136, + "brier": 0.0021609056265371306, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0030175576865567864, + "calibration_in_the_large": 0.0008762300634304479, + "expected_calibration_error_10bin": 0.000876230063430448, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.8338870431893688, + "auprc": 0.009405300157794257, + "brier": 0.0025166348601269434, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.0032998810924886914, + "calibration_in_the_large": 0.0008016655321746299, + "expected_calibration_error_10bin": 0.0008016655321746299, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8151395848246242, + "auprc": 0.009311118413900397, + "brier": 0.0028739894202339583, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.00342669381957749, + "calibration_in_the_large": 0.0005715903220757054, + "expected_calibration_error_10bin": 0.0005715903220757052, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8154527559055118, + "auprc": 0.009306743938780698, + "brier": 0.002879585795512455, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0036689180394695775, + "calibration_in_the_large": 0.0008138145419677931, + "expected_calibration_error_10bin": 0.0008138145419677931, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7913832199546486, + "auprc": 0.00912943792715388, + "brier": 0.0032413506471584974, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0038864431438302995, + "calibration_in_the_large": 0.000674451709140792, + "expected_calibration_error_10bin": 0.0006744517091407919, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7911843099813025, + "auprc": 0.009133898643403963, + "brier": 0.003251484705772869, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.004180684270549052, + "calibration_in_the_large": 0.0009686928358595449, + "expected_calibration_error_10bin": 0.0009686928358595453, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7907467080399411, + "auprc": 0.009108761782774442, + "brier": 0.0032524188696294097, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.004206688957536764, + "calibration_in_the_large": 0.000994697522847257, + "expected_calibration_error_10bin": 0.0009946975228472571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "G40": { + "time_averaged_auroc": 0.7580593383319434, + "time_averaged_auprc": 0.039091098303861115, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7521163047478837, + "auprc": 0.012992131846622653, + "brier": 0.0021950328862586827, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0013683705230286333, + "calibration_in_the_large": -0.0008350815518887375, + "expected_calibration_error_10bin": 0.0008350815518887375, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 8, + "negatives": 2715, + "auroc": 0.6688305709023941, + "auprc": 0.011197788498997534, + "brier": 0.0029310948612100117, + "calibration": { + "observed_rate": 0.0029379360998898272, + "mean_prediction": 0.0021491702082537846, + "calibration_in_the_large": -0.0007887658916360426, + "expected_calibration_error_10bin": 0.0007887658916360426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 11, + "negatives": 2712, + "auroc": 0.736893268972915, + "auprc": 0.03462808542809107, + "brier": 0.003990040379395323, + "calibration": { + "observed_rate": 0.004039662137348513, + "mean_prediction": 0.002664562148125861, + "calibration_in_the_large": -0.001375099989222652, + "expected_calibration_error_10bin": 0.0014500135715148866, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 17, + "negatives": 2706, + "auroc": 0.767379679144385, + "auprc": 0.043708879844854547, + "brier": 0.006144116896033118, + "calibration": { + "observed_rate": 0.006243114212265883, + "mean_prediction": 0.003227901087927721, + "calibration_in_the_large": -0.003015213124338162, + "expected_calibration_error_10bin": 0.0031838428783787123, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 18, + "negatives": 2705, + "auroc": 0.7377490244403369, + "auprc": 0.040397738935906174, + "brier": 0.006513758554307586, + "calibration": { + "observed_rate": 0.006610356224752111, + "mean_prediction": 0.004018834919507001, + "calibration_in_the_large": -0.0025915213052451107, + "expected_calibration_error_10bin": 0.003013675552371093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 20, + "negatives": 2703, + "auroc": 0.7605253422123567, + "auprc": 0.04248100396587039, + "brier": 0.007226864316475374, + "calibration": { + "observed_rate": 0.007344840249724568, + "mean_prediction": 0.0046530920549141845, + "calibration_in_the_large": -0.002691748194810384, + "expected_calibration_error_10bin": 0.003175752537931128, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.7666455183109513, + "auprc": 0.043149572005874604, + "brier": 0.007592131192775416, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.005218416382234793, + "calibration_in_the_large": -0.0024936658799760035, + "expected_calibration_error_10bin": 0.003044676471093857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.7660815621585422, + "auprc": 0.042608341712161636, + "brier": 0.0075951358918818195, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.005613277608111169, + "calibration_in_the_large": -0.002098804654099628, + "expected_calibration_error_10bin": 0.0027501711237609503, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7795942941830307, + "auprc": 0.047915325611231026, + "brier": 0.008656804811999722, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006076662088830275, + "calibration_in_the_large": -0.0027371462108392083, + "expected_calibration_error_10bin": 0.0031287929981828424, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7786062739286156, + "auprc": 0.04743813214945894, + "brier": 0.008660949069180654, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006361075463401692, + "calibration_in_the_large": -0.002452732836267791, + "expected_calibration_error_10bin": 0.0028596333890727596, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.779547980733605, + "auprc": 0.047388836439290066, + "brier": 0.00866323202859606, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006688276087446514, + "calibration_in_the_large": -0.0021255322122229687, + "expected_calibration_error_10bin": 0.002549808711948434, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7790076571569717, + "auprc": 0.04716398133692553, + "brier": 0.008672902771169227, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.00706316002481198, + "calibration_in_the_large": -0.0017506482748575027, + "expected_calibration_error_10bin": 0.002204618859707624, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 25, + "negatives": 2698, + "auroc": 0.7817939214232765, + "auprc": 0.04711446017491037, + "brier": 0.009032416517285934, + "calibration": { + "observed_rate": 0.00918105031215571, + "mean_prediction": 0.0070794363965044705, + "calibration_in_the_large": -0.00210161391565124, + "expected_calibration_error_10bin": 0.002630722109138421, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + } + ], + "reason": null + }, + "G43": { + "time_averaged_auroc": 0.751182083341726, + "time_averaged_auprc": 0.020149566790646094, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2725, + "positives": 3, + "negatives": 2722, + "auroc": 0.6274797942689199, + "auprc": 0.002036223263844747, + "brier": 0.0011013721372727366, + "calibration": { + "observed_rate": 0.0011009174311926607, + "mean_prediction": 0.0008096478246243184, + "calibration_in_the_large": -0.00029126960656834225, + "expected_calibration_error_10bin": 0.00029126960656834225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 7, + "negatives": 2718, + "auroc": 0.7084515925575529, + "auprc": 0.02822508508633324, + "brier": 0.002557341369708381, + "calibration": { + "observed_rate": 0.002568807339449541, + "mean_prediction": 0.0013858917878712142, + "calibration_in_the_large": -0.001182915551578327, + "expected_calibration_error_10bin": 0.001182915551578327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 8, + "negatives": 2717, + "auroc": 0.7413967611336032, + "auprc": 0.0241650161531282, + "brier": 0.0029167276146046307, + "calibration": { + "observed_rate": 0.0029357798165137615, + "mean_prediction": 0.001718685979065229, + "calibration_in_the_large": -0.0012170938374485324, + "expected_calibration_error_10bin": 0.0012170938374485324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7346754203791787, + "auprc": 0.017395444938613416, + "brier": 0.004013657258266167, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0020650457588709046, + "calibration_in_the_large": -0.0019716514888355172, + "expected_calibration_error_10bin": 0.0019716514888355172, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7347759094258726, + "auprc": 0.017438967095199417, + "brier": 0.0040132727143952045, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0022803124570775855, + "calibration_in_the_large": -0.0017563847906288364, + "expected_calibration_error_10bin": 0.0017563847906288364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7341729751457091, + "auprc": 0.020812716672370772, + "brier": 0.00401214229491147, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0026806237304571445, + "calibration_in_the_large": -0.0013560735172492774, + "expected_calibration_error_10bin": 0.0013560735172492774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 13, + "negatives": 2712, + "auroc": 0.7694576809621058, + "auprc": 0.02180212271544258, + "brier": 0.00472994470336332, + "calibration": { + "observed_rate": 0.0047706422018348625, + "mean_prediction": 0.002948845669252311, + "calibration_in_the_large": -0.0018217965325825515, + "expected_calibration_error_10bin": 0.0018217965325825515, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7859778597785978, + "auprc": 0.02080686628618403, + "brier": 0.00545569752123773, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0032921072408538784, + "calibration_in_the_large": -0.0022124799151094247, + "expected_calibration_error_10bin": 0.0022124799151094247, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7858548585485855, + "auprc": 0.02136955788180719, + "brier": 0.005453254458338833, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.003551583472242015, + "calibration_in_the_large": -0.001953003683721288, + "expected_calibration_error_10bin": 0.001953003683721288, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7868880688806889, + "auprc": 0.022159001601491958, + "brier": 0.00545173776157223, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.00378492547897622, + "calibration_in_the_large": -0.001719661676987083, + "expected_calibration_error_10bin": 0.001719661676987083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7854612546125461, + "auprc": 0.021945532854777086, + "brier": 0.005453138401495026, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.00399021314988404, + "calibration_in_the_large": -0.0015143740060792627, + "expected_calibration_error_10bin": 0.0015143740060792627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7854366543665436, + "auprc": 0.02189548224965788, + "brier": 0.00545398107588661, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.004180900073469266, + "calibration_in_the_large": -0.0013236870824940372, + "expected_calibration_error_10bin": 0.0013236870824940372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7853382533825338, + "auprc": 0.021892351479548697, + "brier": 0.005454249649259613, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.004218977932682594, + "calibration_in_the_large": -0.001285609223280709, + "expected_calibration_error_10bin": 0.001285609223280709, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + } + ], + "reason": null + }, + "G44": { + "time_averaged_auroc": 0.6221184545304058, + "time_averaged_auprc": 0.005424399106427212, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.7639087018544936, + "auprc": 0.0015082956259426848, + "brier": 0.00035719356074638775, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.0005155734882529306, + "calibration_in_the_large": 0.00015906724939375054, + "expected_calibration_error_10bin": 0.00015906724939375054, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.7136569117297169, + "auprc": 0.007175266678183902, + "brier": 0.0010710300488420434, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0008143001262648151, + "calibration_in_the_large": -0.000255218590312725, + "expected_calibration_error_10bin": 0.000255218590312725, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.7019985724482513, + "auprc": 0.007018567093449335, + "brier": 0.0010722309081836415, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0009306420633500257, + "calibration_in_the_large": -0.00013887665322751441, + "expected_calibration_error_10bin": 0.00013887665322751441, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.6884368308351178, + "auprc": 0.007335163190971085, + "brier": 0.0010754950870811724, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0011491454294911766, + "calibration_in_the_large": 7.96267129136365e-05, + "expected_calibration_error_10bin": 7.96267129136365e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5813102463405927, + "auprc": 0.005818559229067372, + "brier": 0.0014345035634571036, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.001271354857815696, + "calibration_in_the_large": -0.0001546700976210241, + "expected_calibration_error_10bin": 0.0001546700976210241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5738129239557301, + "auprc": 0.005442989164624414, + "brier": 0.0014416930210681782, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.0014642893442992878, + "calibration_in_the_large": 3.8264388862567673e-05, + "expected_calibration_error_10bin": 3.8264388862567673e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.6162857142857143, + "auprc": 0.005479534284846319, + "brier": 0.0018018508369610435, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0015775415385617694, + "calibration_in_the_large": -0.00020498965573413066, + "expected_calibration_error_10bin": 0.00020498965573413066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.617, + "auprc": 0.005488628736865847, + "brier": 0.0018030315644250291, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0017007676404474407, + "calibration_in_the_large": -8.176355384845939e-05, + "expected_calibration_error_10bin": 8.176355384845939e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 6, + "negatives": 2799, + "auroc": 0.5696677384780279, + "auprc": 0.0051469599955759355, + "brier": 0.0021625720819221424, + "calibration": { + "observed_rate": 0.0021390374331550803, + "mean_prediction": 0.0018202389906472945, + "calibration_in_the_large": -0.00031879844250778575, + "expected_calibration_error_10bin": 0.00031879844250778575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.566680281833963, + "auprc": 0.005056687762595874, + "brier": 0.002524667483185932, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0019238172085752272, + "calibration_in_the_large": -0.0005717264634390333, + "expected_calibration_error_10bin": 0.0005717264634390333, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5697436944756459, + "auprc": 0.005046534962042844, + "brier": 0.0025264754136377797, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.002006449564035582, + "calibration_in_the_large": -0.0004890941079786783, + "expected_calibration_error_10bin": 0.0004890941079786783, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5625957316450526, + "auprc": 0.005017450222635679, + "brier": 0.002535299972440691, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0021956995980807457, + "calibration_in_the_large": -0.00029984407393351476, + "expected_calibration_error_10bin": 0.00044944557529806085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5624425610129684, + "auprc": 0.004982551436752465, + "brier": 0.0025356433794340868, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.002204155752695445, + "calibration_in_the_large": -0.00029138791931881524, + "expected_calibration_error_10bin": 0.0004416160663070429, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + } + ], + "reason": null + }, + "G47": { + "time_averaged_auroc": 0.7171727408004092, + "time_averaged_auprc": 0.07581640133466823, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2315, + "positives": 23, + "negatives": 2292, + "auroc": 0.7257948251005387, + "auprc": 0.028670343494278522, + "brier": 0.009787229607902567, + "calibration": { + "observed_rate": 0.009935205183585313, + "mean_prediction": 0.006212869860896236, + "calibration_in_the_large": -0.003722335322689077, + "expected_calibration_error_10bin": 0.003722335322689077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 36, + "negatives": 2279, + "auroc": 0.7136902150065818, + "auprc": 0.042016713613472395, + "brier": 0.015180110857221605, + "calibration": { + "observed_rate": 0.015550755939524838, + "mean_prediction": 0.010549481678760377, + "calibration_in_the_large": -0.00500127426076446, + "expected_calibration_error_10bin": 0.00500127426076446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 47, + "negatives": 2268, + "auroc": 0.7347836691808323, + "auprc": 0.06002326069543593, + "brier": 0.019619527370392128, + "calibration": { + "observed_rate": 0.020302375809935207, + "mean_prediction": 0.013951262602223397, + "calibration_in_the_large": -0.00635111320771181, + "expected_calibration_error_10bin": 0.0076906891714221565, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 59, + "negatives": 2256, + "auroc": 0.7163646471931723, + "auprc": 0.06541624128313045, + "brier": 0.0245720712774585, + "calibration": { + "observed_rate": 0.025485961123110152, + "mean_prediction": 0.016158194826257348, + "calibration_in_the_large": -0.009327766296852804, + "expected_calibration_error_10bin": 0.010633670064774302, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 66, + "negatives": 2249, + "auroc": 0.7247328779120686, + "auprc": 0.07752913626173186, + "brier": 0.027268480353018643, + "calibration": { + "observed_rate": 0.028509719222462204, + "mean_prediction": 0.018076267790346764, + "calibration_in_the_large": -0.01043345143211544, + "expected_calibration_error_10bin": 0.011709977216375178, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 70, + "negatives": 2245, + "auroc": 0.7145084314349348, + "auprc": 0.07919020531454989, + "brier": 0.02888631198537365, + "calibration": { + "observed_rate": 0.03023758099352052, + "mean_prediction": 0.020035087018426895, + "calibration_in_the_large": -0.010202493975093624, + "expected_calibration_error_10bin": 0.011669983270171512, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 76, + "negatives": 2239, + "auroc": 0.7233962530264921, + "auprc": 0.08960823596841673, + "brier": 0.031135447292261555, + "calibration": { + "observed_rate": 0.03282937365010799, + "mean_prediction": 0.022164049353759804, + "calibration_in_the_large": -0.010665324296348186, + "expected_calibration_error_10bin": 0.011717697287485764, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 78, + "negatives": 2237, + "auroc": 0.7248833717318295, + "auprc": 0.08923224762246676, + "brier": 0.031924694881309404, + "calibration": { + "observed_rate": 0.033693304535637146, + "mean_prediction": 0.0239629826926225, + "calibration_in_the_large": -0.009730321843014648, + "expected_calibration_error_10bin": 0.009768182571766674, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 82, + "negatives": 2233, + "auroc": 0.7122158749576748, + "auprc": 0.08760646767276442, + "brier": 0.03359476939939197, + "calibration": { + "observed_rate": 0.035421166306695465, + "mean_prediction": 0.025677540334551063, + "calibration_in_the_large": -0.009743625972144402, + "expected_calibration_error_10bin": 0.011183515304275114, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 84, + "negatives": 2231, + "auroc": 0.7043606326439137, + "auprc": 0.08627365508071551, + "brier": 0.034443064196331266, + "calibration": { + "observed_rate": 0.03628509719222462, + "mean_prediction": 0.027055352272254116, + "calibration_in_the_large": -0.009229744919970504, + "expected_calibration_error_10bin": 0.011195596374159466, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 88, + "negatives": 2227, + "auroc": 0.7070100420459648, + "auprc": 0.09109649780299583, + "brier": 0.035978916935709246, + "calibration": { + "observed_rate": 0.03801295896328294, + "mean_prediction": 0.028534168427982055, + "calibration_in_the_large": -0.009478790535300884, + "expected_calibration_error_10bin": 0.011924340376619363, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.710691823899371, + "auprc": 0.09443609117196507, + "brier": 0.03629551297118459, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.029602950662057686, + "calibration_in_the_large": -0.008841973743989828, + "expected_calibration_error_10bin": 0.01159375304279278, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.7108129662719445, + "auprc": 0.09451412136876358, + "brier": 0.03629819347823613, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.029882762368142878, + "calibration_in_the_large": -0.008562162037904636, + "expected_calibration_error_10bin": 0.011369763069070041, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + } + ], + "reason": null + }, + "G51": { + "time_averaged_auroc": null, + "time_averaged_auprc": null, + "valid_timepoint_cells": 0, + "timepoints": [ + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 4.04395088914286e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001079830489315682, + "calibration_in_the_large": 0.0001079830489315682, + "expected_calibration_error_10bin": 0.0001079830489315682, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.3071002969517988e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000190904915986683, + "calibration_in_the_large": 0.000190904915986683, + "expected_calibration_error_10bin": 0.000190904915986683, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.1107683482246064e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023254090336447965, + "calibration_in_the_large": 0.00023254090336447965, + "expected_calibration_error_10bin": 0.00023254090336447965, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 3.2646046718071726e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002938673200283078, + "calibration_in_the_large": 0.0002938673200283078, + "expected_calibration_error_10bin": 0.0002938673200283078, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 6.942675457438257e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00037475407617789075, + "calibration_in_the_large": 0.00037475407617789075, + "expected_calibration_error_10bin": 0.00037475407617789075, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 7.629154324785673e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00039381840255612156, + "calibration_in_the_large": 0.00039381840255612156, + "expected_calibration_error_10bin": 0.00039381840255612156, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 8.453366479535041e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00042704816459389827, + "calibration_in_the_large": 0.00042704816459389827, + "expected_calibration_error_10bin": 0.00042704816459389827, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 9.898900150750877e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004789810336082933, + "calibration_in_the_large": 0.0004789810336082933, + "expected_calibration_error_10bin": 0.0004789810336082933, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.2164556697708302e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005130560016012466, + "calibration_in_the_large": 0.0005130560016012466, + "expected_calibration_error_10bin": 0.0005130560016012466, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.4876369577597927e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000565415749045025, + "calibration_in_the_large": 0.000565415749045025, + "expected_calibration_error_10bin": 0.000565415749045025, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.6505644012650608e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005921356036891289, + "calibration_in_the_large": 0.0005921356036891289, + "expected_calibration_error_10bin": 0.0005921356036891289, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.852413912011245e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000631042661943025, + "calibration_in_the_large": 0.000631042661943025, + "expected_calibration_error_10bin": 0.000631042661943025, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.8716620996836185e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006334493492247438, + "calibration_in_the_large": 0.0006334493492247438, + "expected_calibration_error_10bin": 0.0006334493492247438, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + } + ], + "reason": "no_two_class_timepoint" + }, + "G62": { + "time_averaged_auroc": 0.8839318626014928, + "time_averaged_auprc": 0.10559516193705334, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8915556018325698, + "auprc": 0.055961269420459356, + "brier": 0.002509092535820527, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.0012869254881768006, + "calibration_in_the_large": -0.0012576037739097136, + "expected_calibration_error_10bin": 0.0012576037739097136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 13, + "negatives": 2738, + "auroc": 0.9131033320222509, + "auprc": 0.08756235558119542, + "brier": 0.00454320894701413, + "calibration": { + "observed_rate": 0.004725554343874954, + "mean_prediction": 0.0026724847226989494, + "calibration_in_the_large": -0.002053069621176005, + "expected_calibration_error_10bin": 0.0022742274068963727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.8980227023068473, + "auprc": 0.1059965165476453, + "brier": 0.0068853976900765616, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.0039927616593686535, + "calibration_in_the_large": -0.003277321946592815, + "expected_calibration_error_10bin": 0.0035797172069138294, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8991457350503633, + "auprc": 0.12095176033236393, + "brier": 0.007837102751858784, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.005020103862530464, + "calibration_in_the_large": -0.0033404922843252244, + "expected_calibration_error_10bin": 0.003999054617421126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 27, + "negatives": 2724, + "auroc": 0.8990863109805841, + "auprc": 0.12123181615132142, + "brier": 0.009230306016829923, + "calibration": { + "observed_rate": 0.009814612868047983, + "mean_prediction": 0.005814014658933276, + "calibration_in_the_large": -0.004000598209114707, + "expected_calibration_error_10bin": 0.004828331919420001, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 28, + "negatives": 2723, + "auroc": 0.8983526572582761, + "auprc": 0.11874558579018095, + "brier": 0.009577039819084917, + "calibration": { + "observed_rate": 0.010178117048346057, + "mean_prediction": 0.00629839744525637, + "calibration_in_the_large": -0.003879719603089687, + "expected_calibration_error_10bin": 0.0048070026846959175, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.8709199154100772, + "auprc": 0.10773874315839319, + "brier": 0.011004021455328037, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.006904978728826083, + "calibration_in_the_large": -0.004727155040712266, + "expected_calibration_error_10bin": 0.004828199256854406, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.870747517469658, + "auprc": 0.10612241347998073, + "brier": 0.01101803032908334, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.007396464588550673, + "calibration_in_the_large": -0.004235669180987676, + "expected_calibration_error_10bin": 0.00473816814292133, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.8736816286485161, + "auprc": 0.10704561019635642, + "brier": 0.011363898213134063, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.008036699089734247, + "calibration_in_the_large": -0.003958938860102176, + "expected_calibration_error_10bin": 0.004740831821103667, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 34, + "negatives": 2717, + "auroc": 0.876063564918054, + "auprc": 0.11157325860130296, + "brier": 0.011695615584158875, + "calibration": { + "observed_rate": 0.012359142130134497, + "mean_prediction": 0.008384736259619607, + "calibration_in_the_large": -0.00397440587051489, + "expected_calibration_error_10bin": 0.004956135568886706, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.8651272880286135, + "auprc": 0.10912093254279186, + "brier": 0.012046959921857071, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.008898651544645999, + "calibration_in_the_large": -0.0038239947657865703, + "expected_calibration_error_10bin": 0.0045121682194930015, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8676897892367506, + "auprc": 0.11035952920597002, + "brier": 0.012416470240555302, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.009318667783790952, + "calibration_in_the_large": -0.0037674827069396916, + "expected_calibration_error_10bin": 0.0051833104657259795, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8676181706568447, + "auprc": 0.11032731417373201, + "brier": 0.012416674693160384, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.009386204692572089, + "calibration_in_the_large": -0.0036999457981585545, + "expected_calibration_error_10bin": 0.005127244190250208, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + } + ], + "reason": null + }, + "G81": { + "time_averaged_auroc": 0.7558441830097371, + "time_averaged_auprc": 0.04047116801330064, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.7326051779935275, + "auprc": 0.06888920652631299, + "brier": 0.002859410665454107, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0005273949556610422, + "calibration_in_the_large": -0.0023410166614060072, + "expected_calibration_error_10bin": 0.0023410166614060072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.7583533173461231, + "auprc": 0.06348361641705463, + "brier": 0.0032114342007001713, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.0009160619720295925, + "calibration_in_the_large": -0.002310901097170838, + "expected_calibration_error_10bin": 0.002310901097170838, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7681540122346168, + "auprc": 0.026826876038974417, + "brier": 0.003562775666331426, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.001294243417232179, + "calibration_in_the_large": -0.0022912711041016324, + "expected_calibration_error_10bin": 0.0022912711041016324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7669665347247211, + "auprc": 0.027059954417963723, + "brier": 0.003559885948196544, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0015816275284385407, + "calibration_in_the_large": -0.0020038869928952706, + "expected_calibration_error_10bin": 0.0020038869928952706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.7856535113554552, + "auprc": 0.033308779886100565, + "brier": 0.0039025530199771614, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.00196708450621418, + "calibration_in_the_large": -0.0019769814672530124, + "expected_calibration_error_10bin": 0.0019769814672530124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.7388668827271636, + "auprc": 0.031203435393408478, + "brier": 0.004261040201485102, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.002077936570808311, + "calibration_in_the_large": -0.0022246808547922627, + "expected_calibration_error_10bin": 0.0022246808547922627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.7385968071059896, + "auprc": 0.03133544139439017, + "brier": 0.004258713400989951, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.00225444720749182, + "calibration_in_the_large": -0.002048170218108754, + "expected_calibration_error_10bin": 0.002048170218108754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7592020592020592, + "auprc": 0.03942011968343277, + "brier": 0.004950760976965085, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.002429400728651176, + "calibration_in_the_large": -0.00259031960121616, + "expected_calibration_error_10bin": 0.00259031960121616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7566795366795367, + "auprc": 0.039726014736764674, + "brier": 0.004950113234557942, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.00262545189321056, + "calibration_in_the_large": -0.0023942684366567756, + "expected_calibration_error_10bin": 0.0023942684366567756, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7575289575289575, + "auprc": 0.039780044149048725, + "brier": 0.004945743939691917, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0029309067633932827, + "calibration_in_the_large": -0.002088813566474053, + "expected_calibration_error_10bin": 0.002088813566474053, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7564221364221364, + "auprc": 0.0434805643935912, + "brier": 0.00494426030005756, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0030661424922612934, + "calibration_in_the_large": -0.0019535778376060424, + "expected_calibration_error_10bin": 0.0019535778376060424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.7532564287430906, + "auprc": 0.039954307517730686, + "brier": 0.00530073748243112, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.0031934934559452494, + "calibration_in_the_large": -0.002184778326055468, + "expected_calibration_error_10bin": 0.002184778326055468, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.753689017063206, + "auprc": 0.041656823618135316, + "brier": 0.005300063587057403, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.003231325714895336, + "calibration_in_the_large": -0.0021469460671053814, + "expected_calibration_error_10bin": 0.0021469460671053814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + } + ], + "reason": null + }, + "G83": { + "time_averaged_auroc": 0.7157620836175168, + "time_averaged_auprc": 0.0064773441392866, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.6213248317392844, + "auprc": 0.0009345794392523365, + "brier": 0.0003546121196376694, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0003059817517677526, + "calibration_in_the_large": -4.81258969574599e-05, + "expected_calibration_error_10bin": 4.81258969574599e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.6144578313253012, + "auprc": 0.0013535410256974056, + "brier": 0.0007095459649264809, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.000525738165446624, + "calibration_in_the_large": -0.0001824771320038009, + "expected_calibration_error_10bin": 0.0001824771320038009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7155854897790381, + "auprc": 0.0078123029668300675, + "brier": 0.0010609760298037616, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0006468261921785824, + "calibration_in_the_large": -0.0004154967539970551, + "expected_calibration_error_10bin": 0.0004154967539970551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7313009571074087, + "auprc": 0.007892371643635548, + "brier": 0.0010613618808149247, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0008165259605915213, + "calibration_in_the_large": -0.0002457969855841162, + "expected_calibration_error_10bin": 0.0002457969855841162, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7310646342904408, + "auprc": 0.007655105769792679, + "brier": 0.0010620246010304326, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000940493670218813, + "calibration_in_the_large": -0.0001218292759568245, + "expected_calibration_error_10bin": 0.0001218292759568245, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.727756114852889, + "auprc": 0.007751590264424049, + "brier": 0.0010625117733469465, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010024992465868523, + "calibration_in_the_large": -5.9823699588785204e-05, + "expected_calibration_error_10bin": 5.9823699588785204e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7344913151364765, + "auprc": 0.007351372974786813, + "brier": 0.0010633096797493533, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011027580573911224, + "calibration_in_the_large": 4.043511121548486e-05, + "expected_calibration_error_10bin": 4.043511121548486e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7344913151364765, + "auprc": 0.007250685398768226, + "brier": 0.0010635655330131024, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011298959519199627, + "calibration_in_the_large": 6.757300574432518e-05, + "expected_calibration_error_10bin": 6.757300574432518e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.738863287250384, + "auprc": 0.007378691705781068, + "brier": 0.0010641417031521667, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012341442676579932, + "calibration_in_the_large": 0.00017182132148235566, + "expected_calibration_error_10bin": 0.00017182132148235566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7408720311946119, + "auprc": 0.007193801375509374, + "brier": 0.0010650077329089841, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012996651007011245, + "calibration_in_the_large": 0.000237342154525487, + "expected_calibration_error_10bin": 0.000237342154525487, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.738626964433416, + "auprc": 0.007277091631457948, + "brier": 0.0010656820629702526, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001366053840370204, + "calibration_in_the_large": 0.0003037308941945666, + "expected_calibration_error_10bin": 0.0003037308941945666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7380361573909962, + "auprc": 0.007177169807395134, + "brier": 0.001066034860868376, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0013941451596035993, + "calibration_in_the_large": 0.0003318222134279618, + "expected_calibration_error_10bin": 0.0003318222134279618, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7380361573909962, + "auprc": 0.007177169807395134, + "brier": 0.001066109097929616, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014000189886026228, + "calibration_in_the_large": 0.0003376960424269853, + "expected_calibration_error_10bin": 0.0003376960424269853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "G89": { + "time_averaged_auroc": 0.7798952044824052, + "time_averaged_auprc": 0.08919543020582589, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2537, + "positives": 15, + "negatives": 2522, + "auroc": 0.7506212001057362, + "auprc": 0.015780138790796552, + "brier": 0.00591516600715013, + "calibration": { + "observed_rate": 0.005912495072920773, + "mean_prediction": 0.007280916939164721, + "calibration_in_the_large": 0.001368421866243948, + "expected_calibration_error_10bin": 0.0013684218662439488, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 21, + "negatives": 2516, + "auroc": 0.7738095238095238, + "auprc": 0.030663174354448045, + "brier": 0.008251288731442178, + "calibration": { + "observed_rate": 0.008277493102089082, + "mean_prediction": 0.01163346191669633, + "calibration_in_the_large": 0.003355968814607247, + "expected_calibration_error_10bin": 0.0033559688146072492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 29, + "negatives": 2508, + "auroc": 0.8153220040697354, + "auprc": 0.050716907700993075, + "brier": 0.011228577141593369, + "calibration": { + "observed_rate": 0.011430823807646828, + "mean_prediction": 0.0157161372937461, + "calibration_in_the_large": 0.004285313486099271, + "expected_calibration_error_10bin": 0.004285313486099269, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 37, + "negatives": 2500, + "auroc": 0.7917837837837838, + "auprc": 0.06922820027734847, + "brier": 0.014189969603484268, + "calibration": { + "observed_rate": 0.014584154513204573, + "mean_prediction": 0.018766303698423394, + "calibration_in_the_large": 0.004182149185218821, + "expected_calibration_error_10bin": 0.004182149185218821, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 41, + "negatives": 2496, + "auroc": 0.80239602876798, + "auprc": 0.1166608969310021, + "brier": 0.015466162248410244, + "calibration": { + "observed_rate": 0.016160819865983445, + "mean_prediction": 0.0210290851987175, + "calibration_in_the_large": 0.004868265332734056, + "expected_calibration_error_10bin": 0.005416311410587125, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 45, + "negatives": 2492, + "auroc": 0.773729266987694, + "auprc": 0.09745396803297311, + "brier": 0.01712819749063453, + "calibration": { + "observed_rate": 0.017737485218762318, + "mean_prediction": 0.02332684666412301, + "calibration_in_the_large": 0.00558936144536069, + "expected_calibration_error_10bin": 0.005611835168750073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 50, + "negatives": 2487, + "auroc": 0.7680659429030962, + "auprc": 0.09753275587256444, + "brier": 0.018942853443226774, + "calibration": { + "observed_rate": 0.019708316909735908, + "mean_prediction": 0.024969002775337923, + "calibration_in_the_large": 0.005260685865602015, + "expected_calibration_error_10bin": 0.005769527945740464, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 57, + "negatives": 2480, + "auroc": 0.7881861912846633, + "auprc": 0.10804684676129525, + "brier": 0.021226352787402012, + "calibration": { + "observed_rate": 0.022467481277098935, + "mean_prediction": 0.0270279354419872, + "calibration_in_the_large": 0.004560454164888265, + "expected_calibration_error_10bin": 0.004560454164888264, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 59, + "negatives": 2478, + "auroc": 0.7921574260270038, + "auprc": 0.11040571436003767, + "brier": 0.021969513347747653, + "calibration": { + "observed_rate": 0.023255813953488372, + "mean_prediction": 0.028773978293765445, + "calibration_in_the_large": 0.005518164340277073, + "expected_calibration_error_10bin": 0.005518164340277073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 61, + "negatives": 2476, + "auroc": 0.7764307847135782, + "auprc": 0.10923658628601655, + "brier": 0.02283701431593366, + "calibration": { + "observed_rate": 0.02404414662987781, + "mean_prediction": 0.030162793185604938, + "calibration_in_the_large": 0.006118646555727129, + "expected_calibration_error_10bin": 0.0061186465557271285, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 63, + "negatives": 2474, + "auroc": 0.7678138353158563, + "auprc": 0.10596992151573606, + "brier": 0.02369090829412763, + "calibration": { + "observed_rate": 0.024832479306267245, + "mean_prediction": 0.03124974673941952, + "calibration_in_the_large": 0.006417267433152275, + "expected_calibration_error_10bin": 0.006558322635561226, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 70, + "negatives": 2467, + "auroc": 0.7677746250506688, + "auprc": 0.12300832579081752, + "brier": 0.02592676046421627, + "calibration": { + "observed_rate": 0.027591643673630272, + "mean_prediction": 0.032865389894816514, + "calibration_in_the_large": 0.005273746221186242, + "expected_calibration_error_10bin": 0.0052737462211862466, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + { + "valid": 2537, + "positives": 71, + "negatives": 2466, + "auroc": 0.7705470454519493, + "auprc": 0.12483715600170765, + "brier": 0.026238060427597364, + "calibration": { + "observed_rate": 0.02798581001182499, + "mean_prediction": 0.03309281219296357, + "calibration_in_the_large": 0.005107002181138579, + "expected_calibration_error_10bin": 0.005107002181138579, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + } + ], + "reason": null + }, + "G90": { + "time_averaged_auroc": null, + "time_averaged_auprc": null, + "valid_timepoint_cells": 0, + "timepoints": [ + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 5.111124229490292e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00037489491573360236, + "calibration_in_the_large": 0.00037489491573360236, + "expected_calibration_error_10bin": 0.00037489491573360236, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.7075513382957668e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000698077691477094, + "calibration_in_the_large": 0.000698077691477094, + "expected_calibration_error_10bin": 0.000698077691477094, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.7080763892174297e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008978937342393011, + "calibration_in_the_large": 0.0008978937342393011, + "expected_calibration_error_10bin": 0.0008978937342393011, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 4.2064667867974365e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010969049769267451, + "calibration_in_the_large": 0.0010969049769267451, + "expected_calibration_error_10bin": 0.0010969049769267451, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 9.173371309113424e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014028729609384372, + "calibration_in_the_large": 0.0014028729609384372, + "expected_calibration_error_10bin": 0.0014028729609384372, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.1222822099446624e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015506102997890087, + "calibration_in_the_large": 0.0015506102997890087, + "expected_calibration_error_10bin": 0.0015506102997890087, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.3594755906291316e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0016479491883760297, + "calibration_in_the_large": 0.0016479491883760297, + "expected_calibration_error_10bin": 0.0016479491883760297, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.6161387238865448e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017484039441230048, + "calibration_in_the_large": 0.0017484039441230048, + "expected_calibration_error_10bin": 0.0017484039441230048, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.9600019645557393e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0019075203715729556, + "calibration_in_the_large": 0.0019075203715729556, + "expected_calibration_error_10bin": 0.0019075203715729556, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.1032446433688202e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0019888385617520135, + "calibration_in_the_large": 0.0019888385617520135, + "expected_calibration_error_10bin": 0.0019888385617520135, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.4588109110040883e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0021755495223690826, + "calibration_in_the_large": 0.0021755495223690826, + "expected_calibration_error_10bin": 0.0021755495223690826, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.945167129991991e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002388173484490356, + "calibration_in_the_large": 0.002388173484490356, + "expected_calibration_error_10bin": 0.002388173484490356, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 3.0319267671870975e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002421744931200533, + "calibration_in_the_large": 0.002421744931200533, + "expected_calibration_error_10bin": 0.002421744931200533, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + } + ], + "reason": "no_two_class_timepoint" + }, + "G92": { + "time_averaged_auroc": 0.766600150212756, + "time_averaged_auprc": 0.04735459559573107, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.7314034444851594, + "auprc": 0.011873575675710277, + "brier": 0.001471586186346365, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0029037749267416227, + "calibration_in_the_large": 0.001440181805629292, + "expected_calibration_error_10bin": 0.001440181805629292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 12, + "negatives": 2721, + "auroc": 0.7559414430969007, + "auprc": 0.014173719681803277, + "brier": 0.0044072059581679104, + "calibration": { + "observed_rate": 0.0043907793633369925, + "mean_prediction": 0.005332050832156771, + "calibration_in_the_large": 0.0009412714688197786, + "expected_calibration_error_10bin": 0.0009412714688197786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 19, + "negatives": 2714, + "auroc": 0.7604817127564675, + "auprc": 0.01897904911691982, + "brier": 0.006949714206099689, + "calibration": { + "observed_rate": 0.006952067325283571, + "mean_prediction": 0.007074615507150207, + "calibration_in_the_large": 0.00012254818186663557, + "expected_calibration_error_10bin": 0.00026013953606033376, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 24, + "negatives": 2709, + "auroc": 0.7668573889504122, + "auprc": 0.02161461701640455, + "brier": 0.00882931481972573, + "calibration": { + "observed_rate": 0.008781558726673985, + "mean_prediction": 0.009215518435077844, + "calibration_in_the_large": 0.00043395970840385927, + "expected_calibration_error_10bin": 0.0010199885011810991, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 29, + "negatives": 2704, + "auroc": 0.8056519077739237, + "auprc": 0.06866231163357864, + "brier": 0.01033107602028451, + "calibration": { + "observed_rate": 0.010611050128064398, + "mean_prediction": 0.01058039751664904, + "calibration_in_the_large": -3.065261141535838e-05, + "expected_calibration_error_10bin": 0.0013716441633708138, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 32, + "negatives": 2701, + "auroc": 0.7756849315068494, + "auprc": 0.06498278770449031, + "brier": 0.011464291193710854, + "calibration": { + "observed_rate": 0.011708744968898645, + "mean_prediction": 0.011709624851114169, + "calibration_in_the_large": 8.798822155233615e-07, + "expected_calibration_error_10bin": 0.0019888077965835808, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 37, + "negatives": 2696, + "auroc": 0.7775884192798139, + "auprc": 0.0637784309349907, + "brier": 0.013270868716436072, + "calibration": { + "observed_rate": 0.01353823637028906, + "mean_prediction": 0.012917701553974521, + "calibration_in_the_large": -0.0006205348163145392, + "expected_calibration_error_10bin": 0.004435206614203009, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 38, + "negatives": 2695, + "auroc": 0.7713016307001269, + "auprc": 0.059014567902545285, + "brier": 0.013727294110922427, + "calibration": { + "observed_rate": 0.013904134650567142, + "mean_prediction": 0.014001739882458784, + "calibration_in_the_large": 9.760523189164191e-05, + "expected_calibration_error_10bin": 0.0034872392396591116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 39, + "negatives": 2694, + "auroc": 0.7647288371119106, + "auprc": 0.054097321701657396, + "brier": 0.014176637381708122, + "calibration": { + "observed_rate": 0.014270032930845226, + "mean_prediction": 0.015103364677254452, + "calibration_in_the_large": 0.0008333317464092257, + "expected_calibration_error_10bin": 0.004716591940444608, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 42, + "negatives": 2691, + "auroc": 0.7528888181062094, + "auprc": 0.05493728770439009, + "brier": 0.01524129417463806, + "calibration": { + "observed_rate": 0.015367727771679473, + "mean_prediction": 0.015769839003507414, + "calibration_in_the_large": 0.00040211123182794066, + "expected_calibration_error_10bin": 0.005188459098835489, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 45, + "negatives": 2688, + "auroc": 0.7646990740740741, + "auprc": 0.060291987866801594, + "brier": 0.016286293365035884, + "calibration": { + "observed_rate": 0.01646542261251372, + "mean_prediction": 0.01677517249078886, + "calibration_in_the_large": 0.00030974987827513817, + "expected_calibration_error_10bin": 0.005490996124072174, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 47, + "negatives": 2686, + "auroc": 0.7674228862026901, + "auprc": 0.060916942135361266, + "brier": 0.01702765456721098, + "calibration": { + "observed_rate": 0.017197219173069888, + "mean_prediction": 0.01789778974582821, + "calibration_in_the_large": 0.000700570572758321, + "expected_calibration_error_10bin": 0.005883082694972283, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 48, + "negatives": 2685, + "auroc": 0.7711514587212911, + "auprc": 0.062287143669850636, + "brier": 0.017368549008328005, + "calibration": { + "observed_rate": 0.01756311745334797, + "mean_prediction": 0.018105033229391176, + "calibration_in_the_large": 0.0005419157760432058, + "expected_calibration_error_10bin": 0.006059304728513054, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + } + ], + "reason": null + }, + "G93": { + "time_averaged_auroc": 0.7906064346096824, + "time_averaged_auprc": 0.04912771758354681, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2656, + "positives": 9, + "negatives": 2647, + "auroc": 0.812911891869202, + "auprc": 0.01699784879890391, + "brier": 0.003362048405631859, + "calibration": { + "observed_rate": 0.00338855421686747, + "mean_prediction": 0.0022637338679960136, + "calibration_in_the_large": -0.0011248203488714564, + "expected_calibration_error_10bin": 0.0011248203488714564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 17, + "negatives": 2639, + "auroc": 0.7499498473129305, + "auprc": 0.019271263465712875, + "brier": 0.006346306421215004, + "calibration": { + "observed_rate": 0.006400602409638554, + "mean_prediction": 0.004907672476063903, + "calibration_in_the_large": -0.0014929299335746512, + "expected_calibration_error_10bin": 0.0014929299335746512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 26, + "negatives": 2630, + "auroc": 0.7887247733255338, + "auprc": 0.032345563690795345, + "brier": 0.009626280277098094, + "calibration": { + "observed_rate": 0.009789156626506024, + "mean_prediction": 0.006699711338125824, + "calibration_in_the_large": -0.0030894452883802005, + "expected_calibration_error_10bin": 0.0032485107350955977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 31, + "negatives": 2625, + "auroc": 0.7701382488479263, + "auprc": 0.036896317768913514, + "brier": 0.01144973493906191, + "calibration": { + "observed_rate": 0.011671686746987951, + "mean_prediction": 0.008101841809160574, + "calibration_in_the_large": -0.0035698449378273774, + "expected_calibration_error_10bin": 0.004092678474150313, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 35, + "negatives": 2621, + "auroc": 0.7884667793099689, + "auprc": 0.0488377465586458, + "brier": 0.01282432144222315, + "calibration": { + "observed_rate": 0.013177710843373495, + "mean_prediction": 0.00925717510620646, + "calibration_in_the_large": -0.003920535737167035, + "expected_calibration_error_10bin": 0.004651722470849146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 37, + "negatives": 2619, + "auroc": 0.7887887887887888, + "auprc": 0.04964142157625119, + "brier": 0.013552913351904727, + "calibration": { + "observed_rate": 0.013930722891566265, + "mean_prediction": 0.010258007765914734, + "calibration_in_the_large": -0.003672715125651531, + "expected_calibration_error_10bin": 0.0042409070055853875, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 41, + "negatives": 2615, + "auroc": 0.7925103763465933, + "auprc": 0.05201492119611338, + "brier": 0.014985328870125538, + "calibration": { + "observed_rate": 0.015436746987951807, + "mean_prediction": 0.011456227140011417, + "calibration_in_the_large": -0.00398051984794039, + "expected_calibration_error_10bin": 0.004444491901240215, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 44, + "negatives": 2612, + "auroc": 0.7961767367395238, + "auprc": 0.054807484844948795, + "brier": 0.01606328465511417, + "calibration": { + "observed_rate": 0.016566265060240965, + "mean_prediction": 0.01227475857343008, + "calibration_in_the_large": -0.0042915064868108855, + "expected_calibration_error_10bin": 0.005149637301116513, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 45, + "negatives": 2611, + "auroc": 0.7996510489808077, + "auprc": 0.05894084871139877, + "brier": 0.01637609879869761, + "calibration": { + "observed_rate": 0.01694277108433735, + "mean_prediction": 0.012983847297451816, + "calibration_in_the_large": -0.003958923786885532, + "expected_calibration_error_10bin": 0.004584829951183389, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 47, + "negatives": 2609, + "auroc": 0.8008856413560262, + "auprc": 0.0647513486967579, + "brier": 0.017036749069943593, + "calibration": { + "observed_rate": 0.017695783132530122, + "mean_prediction": 0.013876448750023477, + "calibration_in_the_large": -0.003819334382506645, + "expected_calibration_error_10bin": 0.003999857372302513, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 50, + "negatives": 2606, + "auroc": 0.7985188027628549, + "auprc": 0.06522571878268266, + "brier": 0.018120500879415333, + "calibration": { + "observed_rate": 0.01882530120481928, + "mean_prediction": 0.01452554971685831, + "calibration_in_the_large": -0.0042997514879609695, + "expected_calibration_error_10bin": 0.004789623324710872, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7956043956043956, + "auprc": 0.06930439304904933, + "brier": 0.02025310570462626, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.015331263676452215, + "calibration_in_the_large": -0.005753073672945374, + "expected_calibration_error_10bin": 0.0064291085272888725, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7955563186813187, + "auprc": 0.06962545144593506, + "brier": 0.020254044477618794, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.01547501704187954, + "calibration_in_the_large": -0.0056093203075180485, + "expected_calibration_error_10bin": 0.006502163303889849, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + } + ], + "reason": null + }, + "G99": { + "time_averaged_auroc": 0.9354225352112676, + "time_averaged_auprc": 0.00542992441018824, + "valid_timepoint_cells": 5, + "timepoints": [ + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 2.136545021451626e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 5.871619791738563e-05, + "calibration_in_the_large": 5.871619791738563e-05, + "expected_calibration_error_10bin": 5.871619791738563e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 7.099381499007073e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00011201860304269432, + "calibration_in_the_large": 0.00011201860304269432, + "expected_calibration_error_10bin": 0.00011201860304269432, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.5826670241430677e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001728986484523436, + "calibration_in_the_large": 0.0001728986484523436, + "expected_calibration_error_10bin": 0.0001728986484523436, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 2.674972230856157e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022045054938818443, + "calibration_in_the_large": 0.00022045054938818443, + "expected_calibration_error_10bin": 0.00022045054938818443, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 3.4573649042036816e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002561436417986631, + "calibration_in_the_large": 0.0002561436417986631, + "expected_calibration_error_10bin": 0.0002561436417986631, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 4.0414677874490125e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002810930327775824, + "calibration_in_the_large": 0.0002810930327775824, + "expected_calibration_error_10bin": 0.0002810930327775824, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 4.954696248155444e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003131970419537554, + "calibration_in_the_large": 0.0003131970419537554, + "expected_calibration_error_10bin": 0.0003131970419537554, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 5.500733024850327e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00033508640894912756, + "calibration_in_the_large": 0.00033508640894912756, + "expected_calibration_error_10bin": 0.00033508640894912756, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9320422535211268, + "auprc": 0.005154639175257732, + "brier": 0.0003518682563500265, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.000362397161045419, + "calibration_in_the_large": 1.0408424684982547e-05, + "expected_calibration_error_10bin": 1.0408424684982547e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9345070422535211, + "auprc": 0.0053475935828877, + "brier": 0.00035189285761980294, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.00039122847292973045, + "calibration_in_the_large": 3.9239736569293996e-05, + "expected_calibration_error_10bin": 3.9239736569293996e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9345070422535211, + "auprc": 0.0053475935828877, + "brier": 0.00035194478372414025, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004183807105413248, + "calibration_in_the_large": 6.639197418088836e-05, + "expected_calibration_error_10bin": 6.639197418088836e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9376760563380282, + "auprc": 0.0056179775280898875, + "brier": 0.0003519419928459035, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.00043387431587051345, + "calibration_in_the_large": 8.188557951007699e-05, + "expected_calibration_error_10bin": 8.188557951007699e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9383802816901409, + "auprc": 0.005681818181818182, + "brier": 0.00035194296137025483, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004352885676490676, + "calibration_in_the_large": 8.329983128863114e-05, + "expected_calibration_error_10bin": 8.329983128863114e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + } + ], + "reason": null + }, + "H10": { + "time_averaged_auroc": 0.8029349191648598, + "time_averaged_auprc": 0.006836052266190908, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2832, + "positives": 0, + "negatives": 2832, + "auroc": null, + "auprc": null, + "brier": 7.768654585364987e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001437151640886642, + "calibration_in_the_large": 0.0001437151640886642, + "expected_calibration_error_10bin": 0.0001437151640886642, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9586718474037442, + "auprc": 0.00847457627118644, + "brier": 0.0003525789564869499, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 0.00023008484186892657, + "calibration_in_the_large": -0.0001230225027638418, + "expected_calibration_error_10bin": 0.0001230225027638418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.8157181571815718, + "auprc": 0.0064822005979665075, + "brier": 0.0010578595189164525, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.0003602654494459471, + "calibration_in_the_large": -0.000699056584452358, + "expected_calibration_error_10bin": 0.000699056584452358, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8265558698727016, + "auprc": 0.007044762257367353, + "brier": 0.0014102539444599896, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0004971400338361537, + "calibration_in_the_large": -0.0009152893446949198, + "expected_calibration_error_10bin": 0.0009152893446949198, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8238154172560113, + "auprc": 0.006882198749751454, + "brier": 0.0014101865812892475, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0005774439809783228, + "calibration_in_the_large": -0.0008349853975527506, + "expected_calibration_error_10bin": 0.0008349853975527506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8271746817538896, + "auprc": 0.006817294556861539, + "brier": 0.001410257200840031, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006336514313655161, + "calibration_in_the_large": -0.0007787779471655574, + "expected_calibration_error_10bin": 0.0007787779471655574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8185355500530598, + "auprc": 0.0069924882665057695, + "brier": 0.0017626345919763736, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.000692647363695797, + "calibration_in_the_large": -0.0010728893594680448, + "expected_calibration_error_10bin": 0.0010728893594680448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8178280863105766, + "auprc": 0.006967444784833904, + "brier": 0.0017626184115303633, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0007475157298757548, + "calibration_in_the_large": -0.0010180209932880869, + "expected_calibration_error_10bin": 0.0010180209932880869, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8183233109303149, + "auprc": 0.006878639662586875, + "brier": 0.0017625775157047942, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.000845711431057387, + "calibration_in_the_large": -0.0009198252921064548, + "expected_calibration_error_10bin": 0.0009198252921064548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8207286876547577, + "auprc": 0.006812997357099243, + "brier": 0.0017625857035916915, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0009052234649893993, + "calibration_in_the_large": -0.0008603132581744425, + "expected_calibration_error_10bin": 0.0008603132581744425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7021703231894315, + "auprc": 0.006201906360526478, + "brier": 0.002115645137221908, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009518741944812115, + "calibration_in_the_large": -0.0011667698733153985, + "expected_calibration_error_10bin": 0.0011667698733153985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7028780372729417, + "auprc": 0.0062400418213647176, + "brier": 0.0021156506749388597, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009918227532969438, + "calibration_in_the_large": -0.0011268213144996664, + "expected_calibration_error_10bin": 0.0011268213144996664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7028190610993159, + "auprc": 0.006238076508240621, + "brier": 0.0021156543320289506, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009946186256883198, + "calibration_in_the_large": -0.0011240254421082904, + "expected_calibration_error_10bin": 0.0011240254421082904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + } + ], + "reason": null + }, + "H26": { + "time_averaged_auroc": null, + "time_averaged_auprc": null, + "valid_timepoint_cells": 0, + "timepoints": [ + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.8802910094203017e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00026007737844681446, + "calibration_in_the_large": 0.00026007737844681446, + "expected_calibration_error_10bin": 0.00026007737844681446, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 7.755365534042073e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00048403914030726366, + "calibration_in_the_large": 0.00048403914030726366, + "expected_calibration_error_10bin": 0.00048403914030726366, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.398926512768126e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006368807427200461, + "calibration_in_the_large": 0.0006368807427200461, + "expected_calibration_error_10bin": 0.0006368807427200461, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 2.2695931840067776e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008252657644258028, + "calibration_in_the_large": 0.0008252657644258028, + "expected_calibration_error_10bin": 0.0008252657644258028, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 4.323560622300067e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010450334208331386, + "calibration_in_the_large": 0.0010450334208331386, + "expected_calibration_error_10bin": 0.0010450334208331386, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 5.282971519299814e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011655181483712035, + "calibration_in_the_large": 0.0011655181483712035, + "expected_calibration_error_10bin": 0.0011655181483712035, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 6.006098854707309e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001247751287163795, + "calibration_in_the_large": 0.001247751287163795, + "expected_calibration_error_10bin": 0.001247751287163795, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 8.331246262170085e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014042146373431466, + "calibration_in_the_large": 0.0014042146373431466, + "expected_calibration_error_10bin": 0.0014042146373431466, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 9.394333224836828e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015093286853496972, + "calibration_in_the_large": 0.0015093286853496972, + "expected_calibration_error_10bin": 0.0015093286853496972, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.0529948111954547e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015943636885855817, + "calibration_in_the_large": 0.0015943636885855817, + "expected_calibration_error_10bin": 0.0015943636885855817, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.2074283713918676e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017199017864790603, + "calibration_in_the_large": 0.0017199017864790603, + "expected_calibration_error_10bin": 0.0017199017864790603, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.3419180390691393e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00179405470990963, + "calibration_in_the_large": 0.00179405470990963, + "expected_calibration_error_10bin": 0.00179405470990963, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.3761308594181168e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0018164929899117269, + "calibration_in_the_large": 0.0018164929899117269, + "expected_calibration_error_10bin": 0.0018164929899117269, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": "no_two_class_timepoint" + }, + "H35": { + "time_averaged_auroc": 0.5833644514729491, + "time_averaged_auprc": 0.007561228460653606, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5672493756689262, + "auprc": 0.0033795309252548787, + "brier": 0.001068625306807003, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.00017514759164507338, + "calibration_in_the_large": -0.0008939899707212845, + "expected_calibration_error_10bin": 0.0008939899707212845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5729575454869782, + "auprc": 0.003448264277873963, + "brier": 0.0010683861946674412, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.000333087781216917, + "calibration_in_the_large": -0.0007360497811494408, + "expected_calibration_error_10bin": 0.0007360497811494408, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5028551034975017, + "auprc": 0.0036980152415798714, + "brier": 0.0014244207740541181, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0004557623244320467, + "calibration_in_the_large": -0.0009697544253897638, + "expected_calibration_error_10bin": 0.0009697544253897638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5027658815132049, + "auprc": 0.004058300354132214, + "brier": 0.001424246950241339, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.000594581123892792, + "calibration_in_the_large": -0.0008309356259290185, + "expected_calibration_error_10bin": 0.0008309356259290185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5021413276231264, + "auprc": 0.003877999804002874, + "brier": 0.0014244102137368946, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0006751974713088789, + "calibration_in_the_large": -0.0007503192785129316, + "expected_calibration_error_10bin": 0.0007503192785129316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5016952177016417, + "auprc": 0.004298710027883365, + "brier": 0.001424477769231597, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0007851593168562365, + "calibration_in_the_large": -0.000640357432965574, + "expected_calibration_error_10bin": 0.000640357432965574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.5961442342020707, + "auprc": 0.010070722628382224, + "brier": 0.0017764209432631992, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0008780052727235316, + "calibration_in_the_large": -0.0009038906645537315, + "expected_calibration_error_10bin": 0.0009038906645537315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.5983577293823634, + "auprc": 0.01002311536043975, + "brier": 0.0017762638762802952, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0009405829117205274, + "calibration_in_the_large": -0.0008413130255567357, + "expected_calibration_error_10bin": 0.0008413130255567357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.5999285969296679, + "auprc": 0.010030130343358958, + "brier": 0.0017762629384077985, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0009907255265895634, + "calibration_in_the_large": -0.0007911704106876997, + "expected_calibration_error_10bin": 0.0007911704106876997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6561904761904762, + "auprc": 0.011417065855644386, + "brier": 0.002129625412530375, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.001046156675515305, + "calibration_in_the_large": -0.0010921184492174107, + "expected_calibration_error_10bin": 0.0010921184492174107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6608333333333334, + "auprc": 0.011284353969596768, + "brier": 0.00212930872033931, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.001130026617677881, + "calibration_in_the_large": -0.0010082485070548348, + "expected_calibration_error_10bin": 0.0010082485070548348, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6613095238095238, + "auprc": 0.011363588691957228, + "brier": 0.0021291691901966095, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0011962559250070926, + "calibration_in_the_large": -0.0009420191997256231, + "expected_calibration_error_10bin": 0.0009420191997256231, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6613095238095238, + "auprc": 0.011346172508390394, + "brier": 0.0021291260052313152, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0012126742889203804, + "calibration_in_the_large": -0.0009256008358123353, + "expected_calibration_error_10bin": 0.0009256008358123353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "H40": { + "time_averaged_auroc": 0.8102924066132204, + "time_averaged_auprc": 0.01898172969825404, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2750, + "positives": 3, + "negatives": 2747, + "auroc": 0.8212595558791409, + "auprc": 0.01678449883640132, + "brier": 0.00108523266226327, + "calibration": { + "observed_rate": 0.001090909090909091, + "mean_prediction": 0.0008929772925742286, + "calibration_in_the_large": -0.00019793179833486234, + "expected_calibration_error_10bin": 0.00019793179833486234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 4, + "negatives": 2746, + "auroc": 0.8230152949745084, + "auprc": 0.01531229744912832, + "brier": 0.0014469378892882894, + "calibration": { + "observed_rate": 0.0014545454545454545, + "mean_prediction": 0.0014634134393618917, + "calibration_in_the_large": 8.867984816437243e-06, + "expected_calibration_error_10bin": 8.867984816437243e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8179234972677596, + "auprc": 0.013646153070326312, + "brier": 0.0018095968669386993, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.00186549482107921, + "calibration_in_the_large": 4.7313002897391744e-05, + "expected_calibration_error_10bin": 4.7313002897391744e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8117304189435337, + "auprc": 0.012249664979169126, + "brier": 0.0018140286541040223, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.002361521370808904, + "calibration_in_the_large": 0.0005433395526270859, + "expected_calibration_error_10bin": 0.0005433395526270859, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8075774134790529, + "auprc": 0.010845300896328812, + "brier": 0.0018220480395602088, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.0028667488242064628, + "calibration_in_the_large": 0.0010485670060246446, + "expected_calibration_error_10bin": 0.0010485670060246446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8070673952641165, + "auprc": 0.010223842809073581, + "brier": 0.001828241093274867, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.0031249461064733787, + "calibration_in_the_large": 0.0013067642882915605, + "expected_calibration_error_10bin": 0.0013067642882915605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.8411078717201166, + "auprc": 0.023901119416790892, + "brier": 0.002166714547021685, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.0032651518097102533, + "calibration_in_the_large": 0.0010833336278920714, + "expected_calibration_error_10bin": 0.0010833336278920714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.8399538386783285, + "auprc": 0.023643081019768142, + "brier": 0.002169905044861844, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.0035225173152008543, + "calibration_in_the_large": 0.0013406991333826724, + "expected_calibration_error_10bin": 0.0013406991333826724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.7825611090842758, + "auprc": 0.019316470046625456, + "brier": 0.00325518940747187, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.003820482520230309, + "calibration_in_the_large": 0.0005477552475030363, + "expected_calibration_error_10bin": 0.0005477552475030363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.7830475495561231, + "auprc": 0.019574196136748028, + "brier": 0.0032573291550138423, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.004061964019204176, + "calibration_in_the_large": 0.0007892367464769033, + "expected_calibration_error_10bin": 0.0007892367464769033, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.799336498660823, + "auprc": 0.027287968904870685, + "brier": 0.004309802618272905, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004288013744195764, + "calibration_in_the_large": -7.562261944059952e-05, + "expected_calibration_error_10bin": 7.562261944059952e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7995191137083029, + "auprc": 0.02690198810618548, + "brier": 0.004311530978190497, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004498829417868116, + "calibration_in_the_large": 0.00013519305423175237, + "expected_calibration_error_10bin": 0.00013519305423175237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7997017287557828, + "auprc": 0.027075904405886395, + "brier": 0.004311719246796799, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004528423161223559, + "calibration_in_the_large": 0.00016478679758719517, + "expected_calibration_error_10bin": 0.00016478679758719517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + } + ], + "reason": null + }, + "H53": { + "time_averaged_auroc": 0.6333561467067792, + "time_averaged_auprc": 0.013070501374315927, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.6248056452577443, + "auprc": 0.005494595518067751, + "brier": 0.001073643236115158, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0009120238169255386, + "calibration_in_the_large": -0.0001632450002787625, + "expected_calibration_error_10bin": 0.0001632450002787625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.6602081090778615, + "auprc": 0.008542090820571833, + "brier": 0.001073322159306676, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0014279471184760223, + "calibration_in_the_large": 0.00035267830127172126, + "expected_calibration_error_10bin": 0.00035267830127172126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 7, + "negatives": 2783, + "auroc": 0.6764026487346645, + "auprc": 0.01658314534881501, + "brier": 0.002494811663541984, + "calibration": { + "observed_rate": 0.0025089605734767025, + "mean_prediction": 0.001919991931153877, + "calibration_in_the_large": -0.0005889686423228256, + "expected_calibration_error_10bin": 0.0005889686423228256, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 8, + "negatives": 2782, + "auroc": 0.6593727534148095, + "auprc": 0.014652517824306667, + "brier": 0.0028520626093718154, + "calibration": { + "observed_rate": 0.002867383512544803, + "mean_prediction": 0.002451649613252434, + "calibration_in_the_large": -0.00041573389929236903, + "expected_calibration_error_10bin": 0.00041573389929236903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.639697950377562, + "auprc": 0.014362542021501945, + "brier": 0.00321071177311495, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.0027969029032878534, + "calibration_in_the_large": -0.00042890354832504987, + "expected_calibration_error_10bin": 0.00042890354832504987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.6531223780414719, + "auprc": 0.0141416704750921, + "brier": 0.0032112988323691957, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.00326117683477628, + "calibration_in_the_large": 3.537038316337674e-05, + "expected_calibration_error_10bin": 3.537038316337674e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.626726618705036, + "auprc": 0.01325752946190337, + "brier": 0.0035704969487086982, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.0035487048222877814, + "calibration_in_the_large": -3.552456839322213e-05, + "expected_calibration_error_10bin": 3.552456839322213e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.6351079136690647, + "auprc": 0.013951166590983114, + "brier": 0.0035721016179295524, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.0037155599475214023, + "calibration_in_the_large": 0.0001313305568403987, + "expected_calibration_error_10bin": 0.0001313305568403987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 11, + "negatives": 2779, + "auroc": 0.600608459550525, + "auprc": 0.013418083286782194, + "brier": 0.003935384004167837, + "calibration": { + "observed_rate": 0.003942652329749104, + "mean_prediction": 0.004059149714927005, + "calibration_in_the_large": 0.00011649738517790099, + "expected_calibration_error_10bin": 0.00011649738517790183, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 12, + "negatives": 2778, + "auroc": 0.6029217662586993, + "auprc": 0.01301736363163753, + "brier": 0.004296984096069638, + "calibration": { + "observed_rate": 0.004301075268817204, + "mean_prediction": 0.004404813541242549, + "calibration_in_the_large": 0.00010373827242534436, + "expected_calibration_error_10bin": 0.00010373827242534487, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 13, + "negatives": 2777, + "auroc": 0.6250796376831667, + "auprc": 0.01338821745598947, + "brier": 0.004656600907046468, + "calibration": { + "observed_rate": 0.004659498207885305, + "mean_prediction": 0.004783886727907421, + "calibration_in_the_large": 0.0001243885200221161, + "expected_calibration_error_10bin": 0.0001243885200221171, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 14, + "negatives": 2776, + "auroc": 0.6027171675586661, + "auprc": 0.013453021692771261, + "brier": 0.005021746779130388, + "calibration": { + "observed_rate": 0.005017921146953405, + "mean_prediction": 0.005201350370374855, + "calibration_in_the_large": 0.00018342922342145032, + "expected_calibration_error_10bin": 0.0001834292234214503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 15, + "negatives": 2775, + "auroc": 0.6268588588588588, + "auprc": 0.015654573737684797, + "brier": 0.005368140455369762, + "calibration": { + "observed_rate": 0.005376344086021506, + "mean_prediction": 0.005213184696522051, + "calibration_in_the_large": -0.00016315938949945478, + "expected_calibration_error_10bin": 0.000433769566674574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + } + ], + "reason": null + }, + "H54": { + "time_averaged_auroc": 0.43617711517606855, + "time_averaged_auprc": 0.0011019748393173202, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.6175213675213675, + "auprc": 0.0009302325581395349, + "brier": 0.00035638878122092954, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.00042258451414740184, + "calibration_in_the_large": 6.658593814170584e-05, + "expected_calibration_error_10bin": 6.658593814170584e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.40096188101175634, + "auprc": 0.0008978555816319336, + "brier": 0.0007136597419839788, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007863987233507127, + "calibration_in_the_large": 7.440157133932067e-05, + "expected_calibration_error_10bin": 7.440157133932067e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.38617741360883506, + "auprc": 0.0008716844080751901, + "brier": 0.0007155054155099905, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0010510971417516293, + "calibration_in_the_large": 0.0003390999897402373, + "expected_calibration_error_10bin": 0.0003390999897402373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3908086925543285, + "auprc": 0.0008800185837624376, + "brier": 0.0007179236996536663, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001316276537687112, + "calibration_in_the_large": 0.00060427938567572, + "expected_calibration_error_10bin": 0.00060427938567572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3936587103669398, + "auprc": 0.0008849429338060337, + "brier": 0.0007194673855404143, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001446176889020894, + "calibration_in_the_large": 0.000734179737009502, + "expected_calibration_error_10bin": 0.000734179737009502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.393836836480228, + "auprc": 0.0008836670915504093, + "brier": 0.0007211652769488582, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0015980366869927786, + "calibration_in_the_large": 0.0008860395349813866, + "expected_calibration_error_10bin": 0.0008860395349813866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.39668685429283934, + "auprc": 0.0008905632014448808, + "brier": 0.0007236365224038971, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0017615186156697438, + "calibration_in_the_large": 0.0010495214636583518, + "expected_calibration_error_10bin": 0.0010495214636583518, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3893836836480228, + "auprc": 0.0008766678399119605, + "brier": 0.0007275338192474456, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0019901326491257696, + "calibration_in_the_large": 0.0012781354971143776, + "expected_calibration_error_10bin": 0.0012781354971143776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3982899893124332, + "auprc": 0.0008929496632258579, + "brier": 0.0007297284436144048, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0021663885350643227, + "calibration_in_the_large": 0.0014543913830529307, + "expected_calibration_error_10bin": 0.0014543913830529307, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.482656212877168, + "auprc": 0.0013945658788639796, + "brier": 0.0010866767720119023, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0023237438528150153, + "calibration_in_the_large": 0.0012557481247979273, + "expected_calibration_error_10bin": 0.0012557481247979273, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.47424242424242424, + "auprc": 0.001644480913967186, + "brier": 0.0014445580989442808, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0024720984014841036, + "calibration_in_the_large": 0.0010481040974613196, + "expected_calibration_error_10bin": 0.0010481040974613196, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.47299465240641714, + "auprc": 0.0016388214803730577, + "brier": 0.0014485714718128397, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0026555544593804725, + "calibration_in_the_large": 0.0012315601553576886, + "expected_calibration_error_10bin": 0.0012315601553576886, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.4730837789661319, + "auprc": 0.0016392227763727, + "brier": 0.0014486671538852935, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.002661533714151947, + "calibration_in_the_large": 0.001237539410129163, + "expected_calibration_error_10bin": 0.001237539410129163, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + } + ], + "reason": null + }, + "H91": { + "time_averaged_auroc": 0.8100494493190807, + "time_averaged_auprc": 0.007215106844539664, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2791, + "positives": 1, + "negatives": 2790, + "auroc": 0.6627240143369175, + "auprc": 0.0010615711252653928, + "brier": 0.00035831915741713316, + "calibration": { + "observed_rate": 0.00035829451809387314, + "mean_prediction": 0.00031813305934348787, + "calibration_in_the_large": -4.0161458750385265e-05, + "expected_calibration_error_10bin": 4.0161458750385265e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 2, + "negatives": 2789, + "auroc": 0.8289709573323772, + "auprc": 0.003471336841373235, + "brier": 0.0007157238311293348, + "calibration": { + "observed_rate": 0.0007165890361877463, + "mean_prediction": 0.0007147802111373126, + "calibration_in_the_large": -1.808825050433633e-06, + "expected_calibration_error_10bin": 1.808825050433633e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8086862885857861, + "auprc": 0.006116099428235589, + "brier": 0.0017867948602446598, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0010257721940765247, + "calibration_in_the_large": -0.0007657003963928411, + "expected_calibration_error_10bin": 0.0007657003963928411, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8063890882986361, + "auprc": 0.006116446777065438, + "brier": 0.0017867307308580983, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.001157131778957949, + "calibration_in_the_large": -0.0006343408115114168, + "expected_calibration_error_10bin": 0.0006343408115114168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8061019382627422, + "auprc": 0.006113802348791028, + "brier": 0.001786982523556875, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0013429891307868834, + "calibration_in_the_large": -0.00044848345968248235, + "expected_calibration_error_10bin": 0.00044848345968248235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8062455132806892, + "auprc": 0.006163327842865518, + "brier": 0.0017873735206248781, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0015037249619088869, + "calibration_in_the_large": -0.00028774762856047893, + "expected_calibration_error_10bin": 0.00028774762856047893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8269704433497537, + "auprc": 0.008881491380252035, + "brier": 0.0024988787082262567, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0017506451493607353, + "calibration_in_the_large": -0.000757416477296377, + "expected_calibration_error_10bin": 0.000757416477296377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8266112479474549, + "auprc": 0.008873967010330186, + "brier": 0.002499017587273777, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.001885041337062749, + "calibration_in_the_large": -0.0006230202895943632, + "expected_calibration_error_10bin": 0.0006230202895943632, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8286637931034483, + "auprc": 0.009051363949506378, + "brier": 0.002498980603016935, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0019479502630288692, + "calibration_in_the_large": -0.000560111363628243, + "expected_calibration_error_10bin": 0.000560111363628243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8324096880131363, + "auprc": 0.009481735991298215, + "brier": 0.0024995512084502575, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.002230898669379698, + "calibration_in_the_large": -0.0002771629572774141, + "expected_calibration_error_10bin": 0.0002771629572774141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8316912972085386, + "auprc": 0.009413456659460886, + "brier": 0.00249986661290461, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0023181845303764915, + "calibration_in_the_large": -0.00018987709628062082, + "expected_calibration_error_10bin": 0.00018987709628062082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8325636288998358, + "auprc": 0.009522826389876783, + "brier": 0.002500395263174318, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0024917128064430023, + "calibration_in_the_large": -1.634882021410997e-05, + "expected_calibration_error_10bin": 1.634882021410997e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8326149425287356, + "auprc": 0.009528963234694926, + "brier": 0.002500458118712286, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0024998273373074546, + "calibration_in_the_large": -8.234289349657708e-06, + "expected_calibration_error_10bin": 8.234289349657708e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + } + ], + "reason": null + }, + "I07": { + "time_averaged_auroc": 0.8958026278888575, + "time_averaged_auprc": 0.0123574822011261, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2823, + "positives": 0, + "negatives": 2823, + "auroc": null, + "auprc": null, + "brier": 5.029841087272284e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021209917223988744, + "calibration_in_the_large": 0.00021209917223988744, + "expected_calibration_error_10bin": 0.00021209917223988744, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.8621056362991847, + "auprc": 0.004334691834691835, + "brier": 0.0007093098049066195, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0004186818684840576, + "calibration_in_the_large": -0.00028978430225628957, + "expected_calibration_error_10bin": 0.00028978430225628957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.8635235732009926, + "auprc": 0.0042741821771009585, + "brier": 0.0007099158361796633, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0005040520211986827, + "calibration_in_the_large": -0.0002044141495416644, + "expected_calibration_error_10bin": 0.0002044141495416644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9009400496630011, + "auprc": 0.008940493129244961, + "brier": 0.0014165337281114038, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0007221428577546694, + "calibration_in_the_large": -0.0006947894837260249, + "expected_calibration_error_10bin": 0.0006947894837260249, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9165365507452093, + "auprc": 0.014196564985385293, + "brier": 0.001767320377463869, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0008507867511881709, + "calibration_in_the_large": -0.000920378675662697, + "expected_calibration_error_10bin": 0.000920378675662697, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9170333569907736, + "auprc": 0.01417400290181436, + "brier": 0.0017680425009121037, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0010021958674269514, + "calibration_in_the_large": -0.0007689695594239165, + "expected_calibration_error_10bin": 0.0007689695594239165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8965211217607384, + "auprc": 0.01386336351393625, + "brier": 0.0021224485764079386, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001180113771497569, + "calibration_in_the_large": -0.0009452847407234724, + "expected_calibration_error_10bin": 0.0009452847407234724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8974677552952314, + "auprc": 0.01410500563509888, + "brier": 0.0021230294995310383, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0012720674941178703, + "calibration_in_the_large": -0.000853331018103171, + "expected_calibration_error_10bin": 0.000853331018103171, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8975860844870429, + "auprc": 0.014798927646046922, + "brier": 0.002124440340370137, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001457580992456858, + "calibration_in_the_large": -0.0006678175197641833, + "expected_calibration_error_10bin": 0.0006678175197641833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.899124363980594, + "auprc": 0.014810176995500171, + "brier": 0.002125997336743147, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0015326432568353256, + "calibration_in_the_large": -0.0005927552553857158, + "expected_calibration_error_10bin": 0.0005927552553857158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8994793515560289, + "auprc": 0.014894335061885746, + "brier": 0.0021277015477534672, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0016326533826555517, + "calibration_in_the_large": -0.0004927451295654896, + "expected_calibration_error_10bin": 0.0004927451295654896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8996568453437463, + "auprc": 0.01495675175637863, + "brier": 0.002131306106152719, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001783321571811123, + "calibration_in_the_large": -0.0003420769404099183, + "expected_calibration_error_10bin": 0.0003420769404099183, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8996568453437463, + "auprc": 0.014941290776429209, + "brier": 0.002131420314436638, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.00179023772410359, + "calibration_in_the_large": -0.0003351607881174512, + "expected_calibration_error_10bin": 0.0003351607881174512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "I08": { + "time_averaged_auroc": 0.8862689440588938, + "time_averaged_auprc": 0.027555342916596733, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2767, + "positives": 1, + "negatives": 2766, + "auroc": 0.9446854663774403, + "auprc": 0.006493506493506494, + "brier": 0.0003904019334845525, + "calibration": { + "observed_rate": 0.0003614022406938923, + "mean_prediction": 0.0019198934216614564, + "calibration_in_the_large": 0.001558491180967564, + "expected_calibration_error_10bin": 0.001558491180967564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 4, + "negatives": 2763, + "auroc": 0.912775968150561, + "auprc": 0.009891633049159779, + "brier": 0.001488274726731633, + "calibration": { + "observed_rate": 0.0014456089627755693, + "mean_prediction": 0.0027985412827320733, + "calibration_in_the_large": 0.001352932319956504, + "expected_calibration_error_10bin": 0.0013529323199565038, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 5, + "negatives": 2762, + "auroc": 0.8598117306299783, + "auprc": 0.00890207598295624, + "brier": 0.0019182963522043999, + "calibration": { + "observed_rate": 0.0018070112034694614, + "mean_prediction": 0.004046762741641535, + "calibration_in_the_large": 0.0022397515381720736, + "expected_calibration_error_10bin": 0.0022397515381720736, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8784432765494744, + "auprc": 0.020631095255315066, + "brier": 0.0029956925841780452, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.005154187546496684, + "calibration_in_the_large": 0.0022629696209455455, + "expected_calibration_error_10bin": 0.0022629696209455455, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8764498006524103, + "auprc": 0.020380066884407556, + "brier": 0.003029519513402928, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.005681855900696715, + "calibration_in_the_large": 0.002790637975145576, + "expected_calibration_error_10bin": 0.002790637975145576, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8751812250815513, + "auprc": 0.020297018725911074, + "brier": 0.0030992930661274324, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.006407340800594807, + "calibration_in_the_large": 0.003516122875043668, + "expected_calibration_error_10bin": 0.0035161228750436677, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 9, + "negatives": 2758, + "auroc": 0.8867939730883894, + "auprc": 0.0341227939699439, + "brier": 0.0034463863308811394, + "calibration": { + "observed_rate": 0.0032526201662450307, + "mean_prediction": 0.007170896768491764, + "calibration_in_the_large": 0.0039182766022467334, + "expected_calibration_error_10bin": 0.0039182766022467334, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.879189352692075, + "auprc": 0.03465894921595727, + "brier": 0.004509908177768812, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.00773761418281398, + "calibration_in_the_large": 0.003400787294487273, + "expected_calibration_error_10bin": 0.0034007872944872737, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8772534785238959, + "auprc": 0.03395881327363426, + "brier": 0.004555257881118405, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.00818898259231688, + "calibration_in_the_large": 0.003852155703990173, + "expected_calibration_error_10bin": 0.003852155703990174, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8766787658802178, + "auprc": 0.03437923278561426, + "brier": 0.004618150640341905, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.008711046521528406, + "calibration_in_the_large": 0.004374219633201698, + "expected_calibration_error_10bin": 0.004374219633201699, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8825763923803139, + "auprc": 0.034996908500698407, + "brier": 0.004986759562744761, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.00911635311865851, + "calibration_in_the_large": 0.004418123989637911, + "expected_calibration_error_10bin": 0.00441812398963791, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8814591363610972, + "auprc": 0.03343945932368102, + "brier": 0.005048407387853435, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.009667014720192716, + "calibration_in_the_large": 0.004968785591172116, + "expected_calibration_error_10bin": 0.004968785591172116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + { + "valid": 2767, + "positives": 14, + "negatives": 2753, + "auroc": 0.8901977063982149, + "auprc": 0.06606790445497225, + "brier": 0.005232590187887501, + "calibration": { + "observed_rate": 0.005059631369714492, + "mean_prediction": 0.009683452336316142, + "calibration_in_the_large": 0.00462382096660165, + "expected_calibration_error_10bin": 0.00462382096660165, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + } + ], + "reason": null + }, + "I10": { + "time_averaged_auroc": 0.6809395826774932, + "time_averaged_auprc": 0.059451325252204236, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 1498, + "positives": 14, + "negatives": 1484, + "auroc": 0.6343858298036196, + "auprc": 0.028674451654377136, + "brier": 0.009247656130061689, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.004415204633730412, + "calibration_in_the_large": -0.004930589758792952, + "expected_calibration_error_10bin": 0.004930589758792952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 22, + "negatives": 1476, + "auroc": 0.6292806109879281, + "auprc": 0.03385299980988039, + "brier": 0.014486002199118475, + "calibration": { + "observed_rate": 0.014686248331108143, + "mean_prediction": 0.006719521367724643, + "calibration_in_the_large": -0.0079667269633835, + "expected_calibration_error_10bin": 0.008112753090871517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 24, + "negatives": 1474, + "auroc": 0.6504127091813658, + "auprc": 0.0481305166970474, + "brier": 0.015679775579630587, + "calibration": { + "observed_rate": 0.01602136181575434, + "mean_prediction": 0.008585708231768904, + "calibration_in_the_large": -0.007435653583985437, + "expected_calibration_error_10bin": 0.007435653583985435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 27, + "negatives": 1471, + "auroc": 0.6566709469496689, + "auprc": 0.05075908196416794, + "brier": 0.017613769151898877, + "calibration": { + "observed_rate": 0.018024032042723633, + "mean_prediction": 0.010296805644387197, + "calibration_in_the_large": -0.007727226398336435, + "expected_calibration_error_10bin": 0.008013384060323201, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 31, + "negatives": 1467, + "auroc": 0.6853354442905205, + "auprc": 0.06181975633572324, + "brier": 0.02011956061191056, + "calibration": { + "observed_rate": 0.02069425901201602, + "mean_prediction": 0.011823400760302086, + "calibration_in_the_large": -0.008870858251713933, + "expected_calibration_error_10bin": 0.009966096533936071, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 33, + "negatives": 1465, + "auroc": 0.6834626124728513, + "auprc": 0.06045863642660988, + "brier": 0.021455194894135953, + "calibration": { + "observed_rate": 0.022029372496662217, + "mean_prediction": 0.013050899476821483, + "calibration_in_the_large": -0.008978473019840734, + "expected_calibration_error_10bin": 0.0109215625553031, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 34, + "negatives": 1464, + "auroc": 0.6912568306010929, + "auprc": 0.061641514891592204, + "brier": 0.022088510298903758, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.014107590247213265, + "calibration_in_the_large": -0.00858933899177205, + "expected_calibration_error_10bin": 0.009782781258052297, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 36, + "negatives": 1462, + "auroc": 0.6949954400364797, + "auprc": 0.06272883039974166, + "brier": 0.023400838590893407, + "calibration": { + "observed_rate": 0.02403204272363151, + "mean_prediction": 0.015255922130540632, + "calibration_in_the_large": -0.008776120593090877, + "expected_calibration_error_10bin": 0.011143433116897082, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 38, + "negatives": 1460, + "auroc": 0.7014419610670511, + "auprc": 0.07173420231588834, + "brier": 0.02456508847519743, + "calibration": { + "observed_rate": 0.025367156208277702, + "mean_prediction": 0.01621832411011335, + "calibration_in_the_large": -0.00914883209816435, + "expected_calibration_error_10bin": 0.011189028323231355, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.7050068587105625, + "auprc": 0.07246445436410259, + "brier": 0.025878086377648386, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.017572369564858355, + "calibration_in_the_large": -0.009129900128065544, + "expected_calibration_error_10bin": 0.012173666829796311, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.7061556927297667, + "auprc": 0.07286968269562343, + "brier": 0.025895974203432103, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.01856542746926557, + "calibration_in_the_large": -0.00813684222365833, + "expected_calibration_error_10bin": 0.01119411571390581, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.7067529769040198, + "auprc": 0.07381134880129878, + "brier": 0.027980890704209765, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.01962115156719724, + "calibration_in_the_large": -0.009083788352695951, + "expected_calibration_error_10bin": 0.0134749367506312, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.7070566610724847, + "auprc": 0.07392175192260203, + "brier": 0.02798295300681902, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.019866579850337178, + "calibration_in_the_large": -0.008838360069556014, + "expected_calibration_error_10bin": 0.013431273204109258, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + } + ], + "reason": null + }, + "I11": { + "time_averaged_auroc": 0.8207260384104009, + "time_averaged_auprc": 0.05404853098002898, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2676, + "positives": 8, + "negatives": 2668, + "auroc": 0.8047694902548725, + "auprc": 0.016181598188569155, + "brier": 0.0029672455350680882, + "calibration": { + "observed_rate": 0.0029895366218236174, + "mean_prediction": 0.002103450915795603, + "calibration_in_the_large": -0.0008860857060280143, + "expected_calibration_error_10bin": 0.0008860857060280143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 17, + "negatives": 2659, + "auroc": 0.8116054244187333, + "auprc": 0.026494632268493995, + "brier": 0.0062855393903262025, + "calibration": { + "observed_rate": 0.006352765321375187, + "mean_prediction": 0.004338334606879752, + "calibration_in_the_large": -0.0020144307144954344, + "expected_calibration_error_10bin": 0.002101338769176893, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 22, + "negatives": 2654, + "auroc": 0.829742412824553, + "auprc": 0.03770451539245955, + "brier": 0.008070830212734506, + "calibration": { + "observed_rate": 0.008221225710014948, + "mean_prediction": 0.005652001568778375, + "calibration_in_the_large": -0.002569224141236573, + "expected_calibration_error_10bin": 0.002779770794380779, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 27, + "negatives": 2649, + "auroc": 0.8215818687694867, + "auprc": 0.04003812372102425, + "brier": 0.009894384095098432, + "calibration": { + "observed_rate": 0.010089686098654708, + "mean_prediction": 0.006983943503689511, + "calibration_in_the_large": -0.0031057425949651968, + "expected_calibration_error_10bin": 0.0037668903227034223, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 28, + "negatives": 2648, + "auroc": 0.8250296719896418, + "auprc": 0.04161987208306044, + "brier": 0.010253028078046202, + "calibration": { + "observed_rate": 0.01046337817638266, + "mean_prediction": 0.007717198611714283, + "calibration_in_the_large": -0.0027461795646683777, + "expected_calibration_error_10bin": 0.0036109513482875605, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 32, + "negatives": 2644, + "auroc": 0.8301579046898638, + "auprc": 0.046095093788273436, + "brier": 0.011681657146168038, + "calibration": { + "observed_rate": 0.01195814648729447, + "mean_prediction": 0.008585284005549839, + "calibration_in_the_large": -0.003372862481744631, + "expected_calibration_error_10bin": 0.004021502667027357, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 38, + "negatives": 2638, + "auroc": 0.8225330194325845, + "auprc": 0.050790442749169835, + "brier": 0.013840295495380708, + "calibration": { + "observed_rate": 0.014200298953662182, + "mean_prediction": 0.009706360005690803, + "calibration_in_the_large": -0.00449393894797138, + "expected_calibration_error_10bin": 0.0056122996561286005, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 43, + "negatives": 2633, + "auroc": 0.8353191602116252, + "auprc": 0.06645668465162219, + "brier": 0.015490730441722039, + "calibration": { + "observed_rate": 0.016068759342301942, + "mean_prediction": 0.010402075219572536, + "calibration_in_the_large": -0.0056666841227294065, + "expected_calibration_error_10bin": 0.0068890212246482865, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 45, + "negatives": 2631, + "auroc": 0.823235778537945, + "auprc": 0.06776198120472973, + "brier": 0.01619991081081961, + "calibration": { + "observed_rate": 0.016816143497757848, + "mean_prediction": 0.011064748793304212, + "calibration_in_the_large": -0.005751394704453636, + "expected_calibration_error_10bin": 0.007415959809350169, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 48, + "negatives": 2628, + "auroc": 0.8188974505327246, + "auprc": 0.06757561652860351, + "brier": 0.017296258901275174, + "calibration": { + "observed_rate": 0.017937219730941704, + "mean_prediction": 0.01157197211681221, + "calibration_in_the_large": -0.006365247614129493, + "expected_calibration_error_10bin": 0.008511393614006577, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 53, + "negatives": 2623, + "auroc": 0.8203195246692898, + "auprc": 0.08094385206148243, + "brier": 0.018934263866152344, + "calibration": { + "observed_rate": 0.019805680119581465, + "mean_prediction": 0.012396970830820324, + "calibration_in_the_large": -0.007408709288761141, + "expected_calibration_error_10bin": 0.008835796458709142, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8131334445315274, + "auprc": 0.08055422550496483, + "brier": 0.02037836990441192, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.012940747009587633, + "calibration_in_the_large": -0.008359701420905639, + "expected_calibration_error_10bin": 0.010192732511335897, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8131133484723646, + "auprc": 0.0804142645979235, + "brier": 0.020377728430628135, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.013022069467159466, + "calibration_in_the_large": -0.008278378963333806, + "expected_calibration_error_10bin": 0.01014485452398468, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + } + ], + "reason": null + }, + "I12": { + "time_averaged_auroc": 0.8391566363229915, + "time_averaged_auprc": 0.10140351564778392, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2552, + "positives": 8, + "negatives": 2544, + "auroc": 0.8406544811320755, + "auprc": 0.05417111295717488, + "brier": 0.0030962694808782483, + "calibration": { + "observed_rate": 0.003134796238244514, + "mean_prediction": 0.0012271507825746225, + "calibration_in_the_large": -0.0019076454556698915, + "expected_calibration_error_10bin": 0.0019076454556698915, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 10, + "negatives": 2542, + "auroc": 0.8593627065302911, + "auprc": 0.09904253181051154, + "brier": 0.003805002920094388, + "calibration": { + "observed_rate": 0.003918495297805642, + "mean_prediction": 0.0022965402814313918, + "calibration_in_the_large": -0.0016219550163742505, + "expected_calibration_error_10bin": 0.0017113279654475586, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 11, + "negatives": 2541, + "auroc": 0.8651926585810883, + "auprc": 0.09436325647400738, + "brier": 0.004174301008827624, + "calibration": { + "observed_rate": 0.004310344827586207, + "mean_prediction": 0.002864251613163979, + "calibration_in_the_large": -0.0014460932144222277, + "expected_calibration_error_10bin": 0.0016319158737140447, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 16, + "negatives": 2536, + "auroc": 0.8128943217665615, + "auprc": 0.0913970266178482, + "brier": 0.006088727792689463, + "calibration": { + "observed_rate": 0.006269592476489028, + "mean_prediction": 0.003658008998206982, + "calibration_in_the_large": -0.002611583478282046, + "expected_calibration_error_10bin": 0.0026115834782820466, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 17, + "negatives": 2535, + "auroc": 0.820211161387632, + "auprc": 0.0837427736671384, + "brier": 0.006459250635341552, + "calibration": { + "observed_rate": 0.0066614420062695925, + "mean_prediction": 0.004422911758477741, + "calibration_in_the_large": -0.002238530247791851, + "expected_calibration_error_10bin": 0.002238530247791852, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 19, + "negatives": 2533, + "auroc": 0.8249838967731211, + "auprc": 0.11292602777842178, + "brier": 0.007210910287946637, + "calibration": { + "observed_rate": 0.007445141065830721, + "mean_prediction": 0.005058650308125256, + "calibration_in_the_large": -0.002386490757705465, + "expected_calibration_error_10bin": 0.003041935143335302, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 21, + "negatives": 2531, + "auroc": 0.8328911967789882, + "auprc": 0.11174933281357421, + "brier": 0.007917549825699994, + "calibration": { + "observed_rate": 0.008228840125391849, + "mean_prediction": 0.005749250378239241, + "calibration_in_the_large": -0.002479589747152608, + "expected_calibration_error_10bin": 0.0029952939918081096, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 23, + "negatives": 2529, + "auroc": 0.8345625526501281, + "auprc": 0.11067725832913854, + "brier": 0.008690389089333886, + "calibration": { + "observed_rate": 0.009012539184952978, + "mean_prediction": 0.006306006750682398, + "calibration_in_the_large": -0.0027065324342705806, + "expected_calibration_error_10bin": 0.00409125529728218, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 26, + "negatives": 2526, + "auroc": 0.850995797551617, + "auprc": 0.11732690398749192, + "brier": 0.009743593613297305, + "calibration": { + "observed_rate": 0.01018808777429467, + "mean_prediction": 0.00672878477758732, + "calibration_in_the_large": -0.0034593029967073504, + "expected_calibration_error_10bin": 0.004894422013124492, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 28, + "negatives": 2524, + "auroc": 0.8572985057731491, + "auprc": 0.11461797188875755, + "brier": 0.010499418880361138, + "calibration": { + "observed_rate": 0.0109717868338558, + "mean_prediction": 0.007560436577818662, + "calibration_in_the_large": -0.0034113502560371373, + "expected_calibration_error_10bin": 0.006046567688355199, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 29, + "negatives": 2523, + "auroc": 0.8502876980059316, + "auprc": 0.1114857224059426, + "brier": 0.010895259156595682, + "calibration": { + "observed_rate": 0.011363636363636364, + "mean_prediction": 0.008036636942139548, + "calibration_in_the_large": -0.0033269994214968155, + "expected_calibration_error_10bin": 0.00650722566835528, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8297911710282845, + "auprc": 0.10838888674952572, + "brier": 0.011301648647836334, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.00853284091828978, + "calibration_in_the_large": -0.0032226449751271494, + "expected_calibration_error_10bin": 0.006482863493034509, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8299101242400212, + "auprc": 0.1083568979416582, + "brier": 0.011302280990596204, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.008584945152095673, + "calibration_in_the_large": -0.0031705407413212556, + "expected_calibration_error_10bin": 0.006454360333759401, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + } + ], + "reason": null + }, + "I13": { + "time_averaged_auroc": 0.8779960000153602, + "time_averaged_auprc": 0.0990883610181056, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2727, + "positives": 4, + "negatives": 2723, + "auroc": 0.8524605214836577, + "auprc": 0.017928021287804574, + "brier": 0.001468873747455631, + "calibration": { + "observed_rate": 0.0014668133480014668, + "mean_prediction": 0.0021252661036191547, + "calibration_in_the_large": 0.0006584527556176879, + "expected_calibration_error_10bin": 0.0006584527556176879, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 7, + "negatives": 2720, + "auroc": 0.8776785714285714, + "auprc": 0.03635724039966791, + "brier": 0.0025730564113177114, + "calibration": { + "observed_rate": 0.002566923359002567, + "mean_prediction": 0.0042911734596343745, + "calibration_in_the_large": 0.0017242501006318077, + "expected_calibration_error_10bin": 0.0017242501006318077, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 11, + "negatives": 2716, + "auroc": 0.8734100950595796, + "auprc": 0.03416421995468874, + "brier": 0.00407403475687485, + "calibration": { + "observed_rate": 0.004033736707004034, + "mean_prediction": 0.005724788206401525, + "calibration_in_the_large": 0.001691051499397491, + "expected_calibration_error_10bin": 0.0016910514993974909, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 16, + "negatives": 2711, + "auroc": 0.8427010328292143, + "auprc": 0.04157686540845089, + "brier": 0.005870237933785192, + "calibration": { + "observed_rate": 0.005867253392005867, + "mean_prediction": 0.006730678008219531, + "calibration_in_the_large": 0.0008634246162136641, + "expected_calibration_error_10bin": 0.001986949581807436, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 18, + "negatives": 2709, + "auroc": 0.8575735203642181, + "auprc": 0.049536458053475806, + "brier": 0.0065966457086192596, + "calibration": { + "observed_rate": 0.006600660066006601, + "mean_prediction": 0.007815458448455815, + "calibration_in_the_large": 0.0012147983824492142, + "expected_calibration_error_10bin": 0.0022931420051192438, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 20, + "negatives": 2707, + "auroc": 0.8690432212781677, + "auprc": 0.0644286321760095, + "brier": 0.007241863304056113, + "calibration": { + "observed_rate": 0.007334066740007334, + "mean_prediction": 0.008928622679634372, + "calibration_in_the_large": 0.0015945559396270377, + "expected_calibration_error_10bin": 0.0024220539781458408, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 23, + "negatives": 2704, + "auroc": 0.8859821198868022, + "auprc": 0.12158836556267479, + "brier": 0.007892781349359494, + "calibration": { + "observed_rate": 0.008434176751008434, + "mean_prediction": 0.009673424104626977, + "calibration_in_the_large": 0.001239247353618543, + "expected_calibration_error_10bin": 0.001984384829000029, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 24, + "negatives": 2703, + "auroc": 0.8822142064372919, + "auprc": 0.11655135609033056, + "brier": 0.008293875725927793, + "calibration": { + "observed_rate": 0.0088008800880088, + "mean_prediction": 0.010446040601872321, + "calibration_in_the_large": 0.0016451605138635209, + "expected_calibration_error_10bin": 0.0016451605138635204, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 26, + "negatives": 2701, + "auroc": 0.888075641500299, + "auprc": 0.12527984136138487, + "brier": 0.008930683329629213, + "calibration": { + "observed_rate": 0.009534286762009535, + "mean_prediction": 0.01130419914403436, + "calibration_in_the_large": 0.0017699123820248252, + "expected_calibration_error_10bin": 0.0017699123820248256, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 27, + "negatives": 2700, + "auroc": 0.8921124828532236, + "auprc": 0.12996338895870818, + "brier": 0.00923124100039487, + "calibration": { + "observed_rate": 0.009900990099009901, + "mean_prediction": 0.011759029209004818, + "calibration_in_the_large": 0.0018580391099949165, + "expected_calibration_error_10bin": 0.0018580391099949163, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 30, + "negatives": 2697, + "auroc": 0.8975281176615993, + "auprc": 0.18356069215933696, + "brier": 0.00993437744900103, + "calibration": { + "observed_rate": 0.011001100110011002, + "mean_prediction": 0.012780389561263244, + "calibration_in_the_large": 0.001779289451252242, + "expected_calibration_error_10bin": 0.0021615426717995676, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.8975662869723365, + "auprc": 0.18408146248941315, + "brier": 0.01031450762857579, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.013409176802164465, + "calibration_in_the_large": 0.002041373355153097, + "expected_calibration_error_10bin": 0.0024080377862980558, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.897602182444721, + "auprc": 0.18313214933342686, + "brier": 0.01031774160369179, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.013495742027030414, + "calibration_in_the_large": 0.002127938580019046, + "expected_calibration_error_10bin": 0.0024924979858141592, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + } + ], + "reason": null + }, + "I16": { + "time_averaged_auroc": 0.929731005281696, + "time_averaged_auprc": 0.0283801460910381, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2390, + "positives": 1, + "negatives": 2389, + "auroc": 0.9514441188781917, + "auprc": 0.008547008547008548, + "brier": 0.0004177283404511363, + "calibration": { + "observed_rate": 0.00041841004184100416, + "mean_prediction": 0.00033155725387612364, + "calibration_in_the_large": -8.685278796488052e-05, + "expected_calibration_error_10bin": 8.685278796488052e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 2, + "negatives": 2388, + "auroc": 0.9172948073701842, + "auprc": 0.00759344111120717, + "brier": 0.0008346037849518334, + "calibration": { + "observed_rate": 0.0008368200836820083, + "mean_prediction": 0.0006590577610953607, + "calibration_in_the_large": -0.00017776232258664764, + "expected_calibration_error_10bin": 0.00017776232258664764, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 4, + "negatives": 2386, + "auroc": 0.9313704945515507, + "auprc": 0.01626901760503123, + "brier": 0.0016649265527148422, + "calibration": { + "observed_rate": 0.0016736401673640166, + "mean_prediction": 0.0009056333864430477, + "calibration_in_the_large": -0.000768006780920969, + "expected_calibration_error_10bin": 0.000768006780920969, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 7, + "negatives": 2383, + "auroc": 0.9281218152388946, + "auprc": 0.025472906314429913, + "brier": 0.0029067297156271034, + "calibration": { + "observed_rate": 0.0029288702928870294, + "mean_prediction": 0.0011997774944564749, + "calibration_in_the_large": -0.0017290927984305545, + "expected_calibration_error_10bin": 0.0017290927984305545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.923436188077246, + "auprc": 0.026937520672782277, + "brier": 0.003319070158871335, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0014059579139855441, + "calibration_in_the_large": -0.0019413224207424891, + "expected_calibration_error_10bin": 0.0019413224207424891, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.9245906801007556, + "auprc": 0.02692590161286413, + "brier": 0.0033165095610107843, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0015870959078323015, + "calibration_in_the_large": -0.0017601844268957318, + "expected_calibration_error_10bin": 0.0017601844268957318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.9264273719563392, + "auprc": 0.02677010971058992, + "brier": 0.0033146975226939633, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0017354081987446365, + "calibration_in_the_large": -0.0016118721359833967, + "expected_calibration_error_10bin": 0.0016118721359833967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 9, + "negatives": 2381, + "auroc": 0.9207615847683046, + "auprc": 0.027029147961418944, + "brier": 0.003727092893727032, + "calibration": { + "observed_rate": 0.0037656903765690376, + "mean_prediction": 0.0018837735866034403, + "calibration_in_the_large": -0.0018819167899655972, + "expected_calibration_error_10bin": 0.0018819167899655972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 10, + "negatives": 2380, + "auroc": 0.9255042016806723, + "auprc": 0.03166027568589283, + "brier": 0.004133282898279263, + "calibration": { + "observed_rate": 0.0041841004184100415, + "mean_prediction": 0.0021702346141366327, + "calibration_in_the_large": -0.002013865804273409, + "expected_calibration_error_10bin": 0.002013865804273409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 11, + "negatives": 2379, + "auroc": 0.9307577668233405, + "auprc": 0.03676840097732481, + "brier": 0.004539904537210627, + "calibration": { + "observed_rate": 0.004602510460251046, + "mean_prediction": 0.0023724541701231907, + "calibration_in_the_large": -0.0022300562901278556, + "expected_calibration_error_10bin": 0.0022300562901278556, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 12, + "negatives": 2378, + "auroc": 0.9364662181104569, + "auprc": 0.0444921952564262, + "brier": 0.004941374187451654, + "calibration": { + "observed_rate": 0.00502092050209205, + "mean_prediction": 0.0025916280427504506, + "calibration_in_the_large": -0.0024292924593415995, + "expected_calibration_error_10bin": 0.0024292924593415995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.9352448140836866, + "auprc": 0.04532948617382083, + "brier": 0.00535012692518372, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.002781339727462334, + "calibration_in_the_large": -0.00265799081647072, + "expected_calibration_error_10bin": 0.00265799081647072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.9350830070224264, + "auprc": 0.04514648755469852, + "brier": 0.005349372363126054, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.002811097628976515, + "calibration_in_the_large": -0.0026282329149565392, + "expected_calibration_error_10bin": 0.0026282329149565392, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + } + ], + "reason": null + }, + "I21": { + "time_averaged_auroc": 0.8374221623863181, + "time_averaged_auprc": 0.031742426106696434, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2671, + "positives": 3, + "negatives": 2668, + "auroc": 0.9237881059470265, + "auprc": 0.053037509559248686, + "brier": 0.0011120230611768006, + "calibration": { + "observed_rate": 0.0011231748408835642, + "mean_prediction": 0.0016423587837927718, + "calibration_in_the_large": 0.0005191839429092076, + "expected_calibration_error_10bin": 0.0005191839429092076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 5, + "negatives": 2666, + "auroc": 0.9095273818454613, + "auprc": 0.02569720671344198, + "brier": 0.0018774253778326387, + "calibration": { + "observed_rate": 0.0018719580681392737, + "mean_prediction": 0.003837360150822937, + "calibration_in_the_large": 0.0019654020826836635, + "expected_calibration_error_10bin": 0.0019654020826836635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 8, + "negatives": 2663, + "auroc": 0.878942921517086, + "auprc": 0.02205913202927304, + "brier": 0.0030072824967478343, + "calibration": { + "observed_rate": 0.002995132909022838, + "mean_prediction": 0.005195307537161425, + "calibration_in_the_large": 0.002200174628138587, + "expected_calibration_error_10bin": 0.0022001746281385876, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.8203105434510393, + "auprc": 0.022495453589939388, + "brier": 0.0034186186389767643, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.006520774014404629, + "calibration_in_the_large": 0.0031512494917539367, + "expected_calibration_error_10bin": 0.0031512494917539375, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 11, + "negatives": 2660, + "auroc": 0.8179767600820232, + "auprc": 0.025012115843634056, + "brier": 0.004172061895553608, + "calibration": { + "observed_rate": 0.0041183077499064025, + "mean_prediction": 0.00768170259862382, + "calibration_in_the_large": 0.0035633948487174176, + "expected_calibration_error_10bin": 0.003563394848717418, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.8270068283241034, + "auprc": 0.02607215736653377, + "brier": 0.0052806653948474945, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.008437522960996813, + "calibration_in_the_large": 0.0031960403702068468, + "expected_calibration_error_10bin": 0.0031960403702068455, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 18, + "negatives": 2653, + "auroc": 0.8123298571847385, + "auprc": 0.02920531504485378, + "brier": 0.006756580639606862, + "calibration": { + "observed_rate": 0.0067390490453013855, + "mean_prediction": 0.009375115183385069, + "calibration_in_the_large": 0.0026360661380836837, + "expected_calibration_error_10bin": 0.002636066138083683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8208502024291497, + "auprc": 0.03274925742186372, + "brier": 0.007105940894612652, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.009831645084725926, + "calibration_in_the_large": 0.002718204425796686, + "expected_calibration_error_10bin": 0.002718204425796687, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8206517424783679, + "auprc": 0.032774229538912424, + "brier": 0.007134367079650645, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.010428209986447104, + "calibration_in_the_large": 0.003314769327517864, + "expected_calibration_error_10bin": 0.003314769327517864, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 20, + "negatives": 2651, + "auroc": 0.8263674085250848, + "auprc": 0.03475523500710451, + "brier": 0.00750821831616803, + "calibration": { + "observed_rate": 0.007487832272557095, + "mean_prediction": 0.010975814877628012, + "calibration_in_the_large": 0.0034879826050709176, + "expected_calibration_error_10bin": 0.0034879826050709176, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.8049349668828718, + "auprc": 0.0338681416634791, + "brier": 0.008277669890236499, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.01145777022304309, + "calibration_in_the_large": 0.003221154723230285, + "expected_calibration_error_10bin": 0.003221154723230286, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.811835019046368, + "auprc": 0.0374280957783018, + "brier": 0.008658068738292979, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.012110719747412166, + "calibration_in_the_large": 0.0034997126339715075, + "expected_calibration_error_10bin": 0.0034997126339715084, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.8119663733088138, + "auprc": 0.037497689830467376, + "brier": 0.008668520827495698, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.012286682836584411, + "calibration_in_the_large": 0.003675675723143753, + "expected_calibration_error_10bin": 0.003675675723143753, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + } + ], + "reason": null + }, + "I24": { + "time_averaged_auroc": 0.8844833485587186, + "time_averaged_auprc": 0.01834856261506008, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9846866096866097, + "auprc": 0.022727272727272728, + "brier": 0.00035434798766959165, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.00045397631061318814, + "calibration_in_the_large": 9.797773460749215e-05, + "expected_calibration_error_10bin": 9.797773460749215e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.8311364446027788, + "auprc": 0.010045889864325619, + "brier": 0.0007111197010128418, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007501840201023426, + "calibration_in_the_large": 3.8186868090950635e-05, + "expected_calibration_error_10bin": 3.8186868090950635e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.880375386077453, + "auprc": 0.015772378962034133, + "brier": 0.001063399428120266, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0009598246192904397, + "calibration_in_the_large": -0.00010817110872664824, + "expected_calibration_error_10bin": 0.00010817110872664824, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.8828700403896412, + "auprc": 0.0154592830345686, + "brier": 0.0010650484637098844, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0012240937204316394, + "calibration_in_the_large": 0.00015609799241455137, + "expected_calibration_error_10bin": 0.00015609799241455137, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 5, + "negatives": 2804, + "auroc": 0.8717546362339516, + "auprc": 0.0192435514699068, + "brier": 0.001769952678879476, + "calibration": { + "observed_rate": 0.00177999288002848, + "mean_prediction": 0.0013612027810267237, + "calibration_in_the_large": -0.0004187900990017563, + "expected_calibration_error_10bin": 0.0004187900990017563, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.8658580092757759, + "auprc": 0.018198519182554326, + "brier": 0.0021247788066841196, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0014362640900075984, + "calibration_in_the_large": -0.0006997273660265776, + "expected_calibration_error_10bin": 0.0006997273660265776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.8701985967415864, + "auprc": 0.018316074910610398, + "brier": 0.002125702353003243, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0015885410841561852, + "calibration_in_the_large": -0.0005474503718779907, + "expected_calibration_error_10bin": 0.0005474503718779907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 7, + "negatives": 2802, + "auroc": 0.8746303660650556, + "auprc": 0.01839153960745648, + "brier": 0.002479202965574462, + "calibration": { + "observed_rate": 0.002491990032039872, + "mean_prediction": 0.0017153985454539161, + "calibration_in_the_large": -0.0007765914865859559, + "expected_calibration_error_10bin": 0.0007765914865859559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8852195644412709, + "auprc": 0.01995326069434565, + "brier": 0.002831241379807055, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0018664760472938125, + "calibration_in_the_large": -0.0009815125607517555, + "expected_calibration_error_10bin": 0.0009815125607517555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8877186719028918, + "auprc": 0.01978709545427553, + "brier": 0.0028331417724663296, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0020440087032186256, + "calibration_in_the_large": -0.0008039799048269423, + "expected_calibration_error_10bin": 0.0008039799048269423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8876294180649767, + "auprc": 0.019469402891528268, + "brier": 0.0028379730176505548, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0022659660287235503, + "calibration_in_the_large": -0.0005820225793220176, + "expected_calibration_error_10bin": 0.0005820225793220176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8880314397999286, + "auprc": 0.020579257969471514, + "brier": 0.00354436833927153, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.0024629082252055315, + "calibration_in_the_large": -0.0010970775348514285, + "expected_calibration_error_10bin": 0.0010970775348514285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8881743479814219, + "auprc": 0.020587787227431008, + "brier": 0.0035444590782323614, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.0024701709609937015, + "calibration_in_the_large": -0.0010898147990632584, + "expected_calibration_error_10bin": 0.0010898147990632584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + } + ], + "reason": null + }, + "I25": { + "time_averaged_auroc": 0.8277883839289786, + "time_averaged_auprc": 0.06361179610040171, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2243, + "positives": 13, + "negatives": 2230, + "auroc": 0.8406347016212488, + "auprc": 0.03495815398020725, + "brier": 0.0057233777624842745, + "calibration": { + "observed_rate": 0.0057958091841284, + "mean_prediction": 0.002970403364323449, + "calibration_in_the_large": -0.002825405819804951, + "expected_calibration_error_10bin": 0.002825405819804951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 19, + "negatives": 2224, + "auroc": 0.8034125331313896, + "auprc": 0.03696610300952334, + "brier": 0.008323194608734387, + "calibration": { + "observed_rate": 0.008470798038341507, + "mean_prediction": 0.005638536916527731, + "calibration_in_the_large": -0.002832261121813776, + "expected_calibration_error_10bin": 0.002832261121813776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 24, + "negatives": 2219, + "auroc": 0.8135045816433829, + "auprc": 0.048938393568900986, + "brier": 0.010439272839765333, + "calibration": { + "observed_rate": 0.01069995541685243, + "mean_prediction": 0.006740388159513922, + "calibration_in_the_large": -0.003959567257338508, + "expected_calibration_error_10bin": 0.003959567257338508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 28, + "negatives": 2215, + "auroc": 0.8149629151886488, + "auprc": 0.053845577881978336, + "brier": 0.012130531178120197, + "calibration": { + "observed_rate": 0.012483281319661168, + "mean_prediction": 0.007761628713816612, + "calibration_in_the_large": -0.004721652605844556, + "expected_calibration_error_10bin": 0.004840077827251592, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 30, + "negatives": 2213, + "auroc": 0.8270823919264949, + "auprc": 0.06519887899433828, + "brier": 0.012916332771078351, + "calibration": { + "observed_rate": 0.013374944271065538, + "mean_prediction": 0.008759792306160787, + "calibration_in_the_large": -0.004615151964904751, + "expected_calibration_error_10bin": 0.005225894744337603, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 32, + "negatives": 2211, + "auroc": 0.8368668023518769, + "auprc": 0.06948400733567128, + "brier": 0.013725953221370723, + "calibration": { + "observed_rate": 0.014266607222469906, + "mean_prediction": 0.009907646278912536, + "calibration_in_the_large": -0.00435896094355737, + "expected_calibration_error_10bin": 0.005548094786006924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 36, + "negatives": 2207, + "auroc": 0.8379650606655591, + "auprc": 0.07289912088956013, + "brier": 0.015404816410604927, + "calibration": { + "observed_rate": 0.016049933125278644, + "mean_prediction": 0.010874647681032542, + "calibration_in_the_large": -0.005175285444246102, + "expected_calibration_error_10bin": 0.005901734624256857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 39, + "negatives": 2204, + "auroc": 0.8322397505700591, + "auprc": 0.07250352116344846, + "brier": 0.016683606798527602, + "calibration": { + "observed_rate": 0.017387427552385197, + "mean_prediction": 0.011632257532976554, + "calibration_in_the_large": -0.0057551700194086435, + "expected_calibration_error_10bin": 0.005965646868459077, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.8328642759872901, + "auprc": 0.07256276190438182, + "brier": 0.01710246974026083, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.01248068584859723, + "calibration_in_the_large": -0.005352573179490153, + "expected_calibration_error_10bin": 0.005574361557800475, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.833057194734453, + "auprc": 0.07180636812009203, + "brier": 0.01710021252587673, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.013157380930059845, + "calibration_in_the_large": -0.004675878098027539, + "expected_calibration_error_10bin": 0.004910105511293465, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 44, + "negatives": 2199, + "auroc": 0.8392554466906446, + "auprc": 0.07746848642447274, + "brier": 0.018747007510235482, + "calibration": { + "observed_rate": 0.01961658493089612, + "mean_prediction": 0.014125645090757087, + "calibration_in_the_large": -0.005490939840139033, + "expected_calibration_error_10bin": 0.006206243403328446, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8246719835348598, + "auprc": 0.07515844378867038, + "brier": 0.019634462988594163, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.015089409878225914, + "calibration_in_the_large": -0.005418838004074576, + "expected_calibration_error_10bin": 0.006450237421678387, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8247313530308128, + "auprc": 0.07516353224397732, + "brier": 0.0196334082708666, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.015224211031808843, + "calibration_in_the_large": -0.0052840368504916465, + "expected_calibration_error_10bin": 0.006438136521704116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + } + ], + "reason": null + }, + "I26": { + "time_averaged_auroc": 0.761583126562543, + "time_averaged_auprc": 0.07873041471819374, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2760, + "positives": 3, + "negatives": 2757, + "auroc": 0.863619876677548, + "auprc": 0.08115517879368923, + "brier": 0.001073015843591932, + "calibration": { + "observed_rate": 0.0010869565217391304, + "mean_prediction": 0.0013495614747705037, + "calibration_in_the_large": 0.00026260495303137327, + "expected_calibration_error_10bin": 0.00026260495303137327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 6, + "negatives": 2754, + "auroc": 0.6680585814572743, + "auprc": 0.04343680685367721, + "brier": 0.002152051411929586, + "calibration": { + "observed_rate": 0.002173913043478261, + "mean_prediction": 0.002613537590381041, + "calibration_in_the_large": 0.00043962454690278, + "expected_calibration_error_10bin": 0.00043962454690278, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 11, + "negatives": 2749, + "auroc": 0.7881874400608486, + "auprc": 0.03466942354544234, + "brier": 0.0039236064671207575, + "calibration": { + "observed_rate": 0.003985507246376811, + "mean_prediction": 0.0033526994860461645, + "calibration_in_the_large": -0.000632807760330647, + "expected_calibration_error_10bin": 0.000632807760330647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7752513231217272, + "auprc": 0.12051320437273744, + "brier": 0.004581845722783788, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.0038675664199837373, + "calibration_in_the_large": -0.0008425785075524949, + "expected_calibration_error_10bin": 0.0008425785075524949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7758113746464674, + "auprc": 0.11665344438854941, + "brier": 0.004576681126144467, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.004331061842487437, + "calibration_in_the_large": -0.00037908308504879494, + "expected_calibration_error_10bin": 0.000379083085048794, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 14, + "negatives": 2746, + "auroc": 0.7898761835396941, + "auprc": 0.1137623474638104, + "brier": 0.004918713490801502, + "calibration": { + "observed_rate": 0.005072463768115942, + "mean_prediction": 0.004670555899104764, + "calibration_in_the_large": -0.0004019078690111781, + "expected_calibration_error_10bin": 0.0004019078690111779, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 16, + "negatives": 2744, + "auroc": 0.7230092930029155, + "auprc": 0.09733892346397026, + "brier": 0.0056480143184958155, + "calibration": { + "observed_rate": 0.005797101449275362, + "mean_prediction": 0.005139803559931338, + "calibration_in_the_large": -0.000657297889344024, + "expected_calibration_error_10bin": 0.0006572978893440243, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.7381784649696553, + "auprc": 0.07788262154781515, + "brier": 0.005962367371466108, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.005470540642575846, + "calibration_in_the_large": -0.0006888796472792266, + "expected_calibration_error_10bin": 0.000688879647279227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.7390148184684009, + "auprc": 0.06927375923113192, + "brier": 0.005962715888029123, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.005923147589791093, + "calibration_in_the_large": -0.00023627270006397992, + "expected_calibration_error_10bin": 0.00023627270006397997, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 18, + "negatives": 2742, + "auroc": 0.7457046762298404, + "auprc": 0.06635151294711344, + "brier": 0.006318811761475012, + "calibration": { + "observed_rate": 0.006521739130434782, + "mean_prediction": 0.006229397739627819, + "calibration_in_the_large": -0.00029234139080696296, + "expected_calibration_error_10bin": 0.0002923413908069626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7639051094890511, + "auprc": 0.06753007901629579, + "brier": 0.007013555191592903, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.006511730981704507, + "calibration_in_the_large": -0.0007346458298896959, + "expected_calibration_error_10bin": 0.0007346458298896953, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7649817518248175, + "auprc": 0.06746171506739529, + "brier": 0.007012169741045658, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.006906560116566244, + "calibration_in_the_large": -0.0003398166950279594, + "expected_calibration_error_10bin": 0.0003398166950279596, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7649817518248175, + "auprc": 0.06746637464489076, + "brier": 0.007012242751596122, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.006922103657621925, + "calibration_in_the_large": -0.00032427315397227756, + "expected_calibration_error_10bin": 0.0003242731539722777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + } + ], + "reason": null + }, + "I27": { + "time_averaged_auroc": 0.8470445227054527, + "time_averaged_auprc": 0.042855261614054126, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2716, + "positives": 6, + "negatives": 2710, + "auroc": 0.9146371463714638, + "auprc": 0.01720430485694862, + "brier": 0.002202385477118469, + "calibration": { + "observed_rate": 0.0022091310751104565, + "mean_prediction": 0.0023810054237250406, + "calibration_in_the_large": 0.00017187434861458406, + "expected_calibration_error_10bin": 0.00017187434861458406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.855061327869319, + "auprc": 0.02298044082372177, + "brier": 0.004789669477863041, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.0045006991014915655, + "calibration_in_the_large": -0.00028575156124775736, + "expected_calibration_error_10bin": 0.0007593775905372805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 15, + "negatives": 2701, + "auroc": 0.8250030852770579, + "auprc": 0.021645126160730468, + "brier": 0.005578023456671604, + "calibration": { + "observed_rate": 0.005522827687776142, + "mean_prediction": 0.005825602306345242, + "calibration_in_the_large": 0.00030277461856910003, + "expected_calibration_error_10bin": 0.000978906461095257, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.8152528150186367, + "auprc": 0.024904909628853618, + "brier": 0.007053032109080297, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.006954741677149098, + "calibration_in_the_large": -4.084006070068178e-05, + "expected_calibration_error_10bin": 0.0016233861078537896, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 22, + "negatives": 2694, + "auroc": 0.8299250860498076, + "auprc": 0.03232298206983473, + "brier": 0.008105894697081383, + "calibration": { + "observed_rate": 0.008100147275405008, + "mean_prediction": 0.00788425278517831, + "calibration_in_the_large": -0.00021589449022669724, + "expected_calibration_error_10bin": 0.002185932867798225, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 26, + "negatives": 2690, + "auroc": 0.8432656562768087, + "auprc": 0.03939098445203403, + "brier": 0.009522753825601521, + "calibration": { + "observed_rate": 0.009572901325478646, + "mean_prediction": 0.008646304878220556, + "calibration_in_the_large": -0.00092659644725809, + "expected_calibration_error_10bin": 0.003910207710867162, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8440439718868264, + "auprc": 0.05096958021566395, + "brier": 0.011238559145180713, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.00967781634481687, + "calibration_in_the_large": -0.0017360275432538215, + "expected_calibration_error_10bin": 0.005051047808072846, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8439358442962696, + "auprc": 0.050320600644948386, + "brier": 0.011295096917250412, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.010419124060686066, + "calibration_in_the_large": -0.000994719827384626, + "expected_calibration_error_10bin": 0.004360526162849998, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8443923830119541, + "auprc": 0.05051350948956251, + "brier": 0.011331152574513313, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.011221612699227588, + "calibration_in_the_large": -0.00019223118884310365, + "expected_calibration_error_10bin": 0.004042892873356546, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 34, + "negatives": 2682, + "auroc": 0.8513400886081502, + "auprc": 0.055031705961482935, + "brier": 0.012388031771669071, + "calibration": { + "observed_rate": 0.012518409425625921, + "mean_prediction": 0.011690800756798061, + "calibration_in_the_large": -0.0008276086688278599, + "expected_calibration_error_10bin": 0.0051553981280791986, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 36, + "negatives": 2680, + "auroc": 0.8498963515754561, + "auprc": 0.060278382983219574, + "brier": 0.013051898727199538, + "calibration": { + "observed_rate": 0.013254786450662739, + "mean_prediction": 0.012549928381882177, + "calibration_in_the_large": -0.000704858068780562, + "expected_calibration_error_10bin": 0.004682837924483011, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 38, + "negatives": 2678, + "auroc": 0.8438347549231555, + "auprc": 0.06045036915443811, + "brier": 0.013786803028531738, + "calibration": { + "observed_rate": 0.013991163475699559, + "mean_prediction": 0.012989000203632525, + "calibration_in_the_large": -0.0010021632720670342, + "expected_calibration_error_10bin": 0.00535036395348201, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 40, + "negatives": 2676, + "auroc": 0.8509902840059791, + "auprc": 0.07110550454126488, + "brier": 0.014308494614338741, + "calibration": { + "observed_rate": 0.014727540500736377, + "mean_prediction": 0.013005927137235977, + "calibration_in_the_large": -0.0017216133635004002, + "expected_calibration_error_10bin": 0.0054169948149259675, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + } + ], + "reason": null + }, + "I31": { + "time_averaged_auroc": 0.7850368508146224, + "time_averaged_auprc": 0.07340739743730622, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.7894406597346719, + "auprc": 0.006310341014057039, + "brier": 0.001429833605285596, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.001255001568760041, + "calibration_in_the_large": -0.00017715023933161686, + "expected_calibration_error_10bin": 0.00017715023933161686, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.8168905753256076, + "auprc": 0.054762372325758014, + "brier": 0.0024779415614758905, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.0018703445142635958, + "calibration_in_the_large": -0.000635921149896805, + "expected_calibration_error_10bin": 0.000635921149896805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7935424648786717, + "auprc": 0.06891243069869617, + "brier": 0.0031801076421055937, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0021689412423746154, + "calibration_in_the_large": -0.0010534003258316146, + "expected_calibration_error_10bin": 0.0010534003258316146, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7896711366538953, + "auprc": 0.06788962213069849, + "brier": 0.0031749297351170505, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.00237633129061427, + "calibration_in_the_large": -0.0008460102775919602, + "expected_calibration_error_10bin": 0.0008460102775919602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7871168582375478, + "auprc": 0.06761592565466869, + "brier": 0.003173796267913198, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002701971896882249, + "calibration_in_the_large": -0.0005203696713239809, + "expected_calibration_error_10bin": 0.0005203696713239809, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.8038363505653225, + "auprc": 0.10423345397516225, + "brier": 0.0038571098201828757, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.0030476554078387157, + "calibration_in_the_large": -0.0008907620644133434, + "expected_calibration_error_10bin": 0.0008907620644133433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7818334533237341, + "auprc": 0.0873782961869501, + "brier": 0.005251634590047343, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.0034837070714123794, + "calibration_in_the_large": -0.001886862208931337, + "expected_calibration_error_10bin": 0.0018868622089313375, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7828653707703384, + "auprc": 0.0877989555927189, + "brier": 0.005246639559135622, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.0037229523759636186, + "calibration_in_the_large": -0.001647616904380098, + "expected_calibration_error_10bin": 0.0016476169043800981, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.778560496939143, + "auprc": 0.08334603702987978, + "brier": 0.005599071197832001, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0039036932327653866, + "calibration_in_the_large": -0.0018249139996012447, + "expected_calibration_error_10bin": 0.0018249139996012443, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7777277637738567, + "auprc": 0.08356952501976242, + "brier": 0.005596193546298369, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0041366098210550385, + "calibration_in_the_large": -0.0015919974113115928, + "expected_calibration_error_10bin": 0.0015919974113115928, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.778290421317969, + "auprc": 0.08355932144405785, + "brier": 0.005593286116409289, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.004265608161033192, + "calibration_in_the_large": -0.0014629990713334396, + "expected_calibration_error_10bin": 0.0014629990713334387, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7627987794541448, + "auprc": 0.07945637434952915, + "brier": 0.005949913253317946, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.0043839650342059906, + "calibration_in_the_large": -0.0017026801501835546, + "expected_calibration_error_10bin": 0.0017026801501835546, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7629047296151891, + "auprc": 0.07946351126304194, + "brier": 0.005949845907620312, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.0043929419121070765, + "calibration_in_the_large": -0.0016937032722824687, + "expected_calibration_error_10bin": 0.001693703272282469, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + } + ], + "reason": null + }, + "I34": { + "time_averaged_auroc": 0.7624450944112768, + "time_averaged_auprc": 0.019460690088373138, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2753, + "positives": 4, + "negatives": 2749, + "auroc": 0.667697344488905, + "auprc": 0.003282904721201381, + "brier": 0.0014569860579384459, + "calibration": { + "observed_rate": 0.001452960406828914, + "mean_prediction": 0.000984003980701287, + "calibration_in_the_large": -0.0004689564261276271, + "expected_calibration_error_10bin": 0.0004689564261276271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7587313160772876, + "auprc": 0.010556393090314892, + "brier": 0.003630408105522344, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.001714076804736784, + "calibration_in_the_large": -0.0019183242123355009, + "expected_calibration_error_10bin": 0.0019183242123355009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7593875318993802, + "auprc": 0.010491361456180995, + "brier": 0.0036367448665604136, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.002284108044102632, + "calibration_in_the_large": -0.0013482929729696528, + "expected_calibration_error_10bin": 0.0013482929729696528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 13, + "negatives": 2740, + "auroc": 0.7384053902302078, + "auprc": 0.013074245236174368, + "brier": 0.004731129676554478, + "calibration": { + "observed_rate": 0.00472212132219397, + "mean_prediction": 0.0031010575342618574, + "calibration_in_the_large": -0.001621063787932113, + "expected_calibration_error_10bin": 0.001621063787932113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 14, + "negatives": 2739, + "auroc": 0.7606790799561884, + "auprc": 0.01735397007688896, + "brier": 0.0050751521764172995, + "calibration": { + "observed_rate": 0.005085361423901199, + "mean_prediction": 0.00362518813968303, + "calibration_in_the_large": -0.001460173284218169, + "expected_calibration_error_10bin": 0.001534511215318382, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7772583394205016, + "auprc": 0.023436846874216242, + "brier": 0.00540926462117032, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.0040322782970777064, + "calibration_in_the_large": -0.001416323228530721, + "expected_calibration_error_10bin": 0.0016488628800571143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7788653518383248, + "auprc": 0.023878147573612375, + "brier": 0.005413917824997581, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.004434041793008585, + "calibration_in_the_large": -0.0010145597325998427, + "expected_calibration_error_10bin": 0.0012652704977019924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7766943734015346, + "auprc": 0.024070761006467635, + "brier": 0.005787316339403351, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.004869773304476946, + "calibration_in_the_large": -0.0009420683228387097, + "expected_calibration_error_10bin": 0.0015353886916498354, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7767857142857143, + "auprc": 0.02403264055502923, + "brier": 0.005801965761270169, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.005325931091459055, + "calibration_in_the_large": -0.00048591053585660127, + "expected_calibration_error_10bin": 0.0011327803519022967, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.791549867966687, + "auprc": 0.02636247929616291, + "brier": 0.006520607345792323, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.005682817644568554, + "calibration_in_the_large": -0.0008555041861615592, + "expected_calibration_error_10bin": 0.0018495033180920698, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.7910420475319927, + "auprc": 0.026215456814165736, + "brier": 0.006531875339693101, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.006134485679474554, + "calibration_in_the_large": -0.0004038361512555587, + "expected_calibration_error_10bin": 0.0016024524752704964, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.7672775574635198, + "auprc": 0.025091755910675785, + "brier": 0.0069200312250799175, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.00665315783386465, + "calibration_in_the_large": -0.0002484040985726915, + "expected_calibration_error_10bin": 0.001797342803460688, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.767412312786355, + "auprc": 0.025142008537760264, + "brier": 0.006921733028751825, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.006696505317916394, + "calibration_in_the_large": -0.00020505661452094748, + "expected_calibration_error_10bin": 0.0017632156794730777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + } + ], + "reason": null + }, + "I35": { + "time_averaged_auroc": 0.6826791243799567, + "time_averaged_auprc": 0.00904055861727337, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2723, + "positives": 2, + "negatives": 2721, + "auroc": 0.3647556045571481, + "auprc": 0.0008541710321063537, + "brier": 0.0007396774808439319, + "calibration": { + "observed_rate": 0.0007344840249724568, + "mean_prediction": 0.000962305623868373, + "calibration_in_the_large": 0.00022782159889591616, + "expected_calibration_error_10bin": 0.00022782159889591616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 4, + "negatives": 2719, + "auroc": 0.6308385435821994, + "auprc": 0.006893255485646795, + "brier": 0.0014765713822682183, + "calibration": { + "observed_rate": 0.0014689680499449136, + "mean_prediction": 0.002059428350693675, + "calibration_in_the_large": 0.0005904603007487613, + "expected_calibration_error_10bin": 0.0005904603007487613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7089771891096395, + "auprc": 0.009011578815810174, + "brier": 0.001846973652522623, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.00255099204531235, + "calibration_in_the_large": 0.0007147819828812079, + "expected_calibration_error_10bin": 0.0007147819828812079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7125827814569536, + "auprc": 0.0114142845424525, + "brier": 0.0018554386597636927, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.0030348547716651316, + "calibration_in_the_large": 0.0011986447092339895, + "expected_calibration_error_10bin": 0.0011986447092339895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7121412803532009, + "auprc": 0.011145250551177144, + "brier": 0.0018654443769554872, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.003394759115269307, + "calibration_in_the_large": 0.0015585490528381648, + "expected_calibration_error_10bin": 0.001558549052838165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7146431199411332, + "auprc": 0.010749822625264291, + "brier": 0.0018833873703596588, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.003876293984951336, + "calibration_in_the_large": 0.0020400839225201937, + "expected_calibration_error_10bin": 0.002040083922520194, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.706232364127101, + "auprc": 0.00942083663947535, + "brier": 0.0022650187586517605, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.004307978260463458, + "calibration_in_the_large": 0.002104526185546087, + "expected_calibration_error_10bin": 0.0021045261855460865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7089927616243406, + "auprc": 0.009526484572457099, + "brier": 0.002274799514574819, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.004523756091019695, + "calibration_in_the_large": 0.002320304016102324, + "expected_calibration_error_10bin": 0.0023203040161023244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7110783952889216, + "auprc": 0.00969040038215179, + "brier": 0.002290356730227936, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.004898786155050513, + "calibration_in_the_large": 0.002695334080133142, + "expected_calibration_error_10bin": 0.0026953340801331425, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.7256469598148538, + "auprc": 0.009577026287366234, + "brier": 0.0026546055792343445, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.004958324136855066, + "calibration_in_the_large": 0.0023876300494514676, + "expected_calibration_error_10bin": 0.002387630049451467, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.7261729434041658, + "auprc": 0.009599767128521326, + "brier": 0.0026673460679000195, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.005233950373617472, + "calibration_in_the_large": 0.0026632562862138735, + "expected_calibration_error_10bin": 0.002663256286213874, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.7262781401220282, + "auprc": 0.009873311621794719, + "brier": 0.0026828423200792417, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.005626995993595882, + "calibration_in_the_large": 0.003056301906192283, + "expected_calibration_error_10bin": 0.003056301906192283, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.726488533557753, + "auprc": 0.009771072340330042, + "brier": 0.0026833672549297395, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.005640098449241301, + "calibration_in_the_large": 0.003069404361837702, + "expected_calibration_error_10bin": 0.003069404361837702, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + } + ], + "reason": null + }, + "I42": { + "time_averaged_auroc": 0.9325814348679494, + "time_averaged_auprc": 0.05598659206906989, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2740, + "positives": 1, + "negatives": 2739, + "auroc": 0.9496166484118291, + "auprc": 0.007194244604316547, + "brier": 0.00036744187886827604, + "calibration": { + "observed_rate": 0.000364963503649635, + "mean_prediction": 0.0009192264295732824, + "calibration_in_the_large": 0.0005542629259236475, + "expected_calibration_error_10bin": 0.0005542629259236475, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.9478252923976608, + "auprc": 0.021003456839491102, + "brier": 0.0014497431467221003, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0018055066502782843, + "calibration_in_the_large": 0.0003456526356797442, + "expected_calibration_error_10bin": 0.0003456526356797442, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.951297514619883, + "auprc": 0.02120295871411516, + "brier": 0.0014545960327818257, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.002470344986459122, + "calibration_in_the_large": 0.001010490971860582, + "expected_calibration_error_10bin": 0.001010490971860582, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 8, + "negatives": 2732, + "auroc": 0.9412518301610542, + "auprc": 0.06420020004841653, + "brier": 0.0028445863345117938, + "calibration": { + "observed_rate": 0.00291970802919708, + "mean_prediction": 0.0028730250473299533, + "calibration_in_the_large": -4.668298186712681e-05, + "expected_calibration_error_10bin": 0.0001232248139783047, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.9343589743589743, + "auprc": 0.0775389255163311, + "brier": 0.0035390743993463565, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0031863757953947257, + "calibration_in_the_large": -0.0004632592411016245, + "expected_calibration_error_10bin": 0.000549249584099781, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9364069422698957, + "auprc": 0.0790023965594811, + "brier": 0.003886894135119727, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0035268106129973417, + "calibration_in_the_large": -0.0004877879271486438, + "expected_calibration_error_10bin": 0.0005796956789698967, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9361737566208068, + "auprc": 0.07511603051084133, + "brier": 0.003884064596366708, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.003848738673326704, + "calibration_in_the_large": -0.0001658598668192817, + "expected_calibration_error_10bin": 0.0002647394260159763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.9258614369501467, + "auprc": 0.0695341963924678, + "brier": 0.004242445951625099, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.004162280318035277, + "calibration_in_the_large": -0.0002172817257603439, + "expected_calibration_error_10bin": 0.0003228397026083612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.9257697947214076, + "auprc": 0.06807823566521973, + "brier": 0.004243111802390172, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.004359895294418075, + "calibration_in_the_large": -1.966674937754591e-05, + "expected_calibration_error_10bin": 0.00013040283623338514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9204817917689205, + "auprc": 0.06265327150212693, + "brier": 0.0046026448372031665, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.0046770692161664, + "calibration_in_the_large": -6.74563312788555e-05, + "expected_calibration_error_10bin": 0.00018784405251459082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9182815717469183, + "auprc": 0.06319114172448517, + "brier": 0.004604757546379527, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.0052304640634770125, + "calibration_in_the_large": 0.00048593851603175725, + "expected_calibration_error_10bin": 0.00048593851603175703, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9180903469238025, + "auprc": 0.059542732877897686, + "brier": 0.004960648145724446, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.005467617406183819, + "calibration_in_the_large": 0.00035812835508892884, + "expected_calibration_error_10bin": 0.0003581283550889285, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9181427523320407, + "auprc": 0.05956790594271834, + "brier": 0.004960733630420073, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.005479438762602075, + "calibration_in_the_large": 0.0003699497115071844, + "expected_calibration_error_10bin": 0.00036994971150718396, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + } + ], + "reason": null + }, + "I44": { + "time_averaged_auroc": 0.8449538859834269, + "time_averaged_auprc": 0.03681103775850736, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2722, + "positives": 4, + "negatives": 2718, + "auroc": 0.8777593818984547, + "auprc": 0.026151345927334615, + "brier": 0.001468267959976231, + "calibration": { + "observed_rate": 0.0014695077149155032, + "mean_prediction": 0.002243746707810837, + "calibration_in_the_large": 0.0007742389928953337, + "expected_calibration_error_10bin": 0.0007742389928953337, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 8, + "negatives": 2714, + "auroc": 0.8212969786293294, + "auprc": 0.021713554672244038, + "brier": 0.0029388465279579314, + "calibration": { + "observed_rate": 0.0029390154298310064, + "mean_prediction": 0.0035129474820566864, + "calibration_in_the_large": 0.00057393205222568, + "expected_calibration_error_10bin": 0.0005739320522256796, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 10, + "negatives": 2712, + "auroc": 0.8529498525073747, + "auprc": 0.03184889579344049, + "brier": 0.003641781426334678, + "calibration": { + "observed_rate": 0.0036737692872887582, + "mean_prediction": 0.004451530140849507, + "calibration_in_the_large": 0.0007777608535607487, + "expected_calibration_error_10bin": 0.0007777608535607487, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 13, + "negatives": 2709, + "auroc": 0.8692960785984042, + "auprc": 0.033672254660638896, + "brier": 0.004717414483113677, + "calibration": { + "observed_rate": 0.004775900073475386, + "mean_prediction": 0.005118597635851391, + "calibration_in_the_large": 0.00034269756237600545, + "expected_calibration_error_10bin": 0.00034269756237600556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8723623127242034, + "auprc": 0.03533895610322008, + "brier": 0.005091173433637561, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.005966292050082935, + "calibration_in_the_large": 0.0008230150478786731, + "expected_calibration_error_10bin": 0.0008230150478786733, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8741031863262292, + "auprc": 0.0371121491964319, + "brier": 0.005102266798661061, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.006577279632724496, + "calibration_in_the_large": 0.0014340026305202343, + "expected_calibration_error_10bin": 0.0014340026305202343, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 17, + "negatives": 2705, + "auroc": 0.8459497662281179, + "auprc": 0.039484632179104355, + "brier": 0.006174413017864265, + "calibration": { + "observed_rate": 0.006245407788390889, + "mean_prediction": 0.007138480731267301, + "calibration_in_the_large": 0.0008930729428764123, + "expected_calibration_error_10bin": 0.0008930729428764118, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 18, + "negatives": 2704, + "auroc": 0.8471194937541091, + "auprc": 0.03939882652474795, + "brier": 0.006547726242994293, + "calibration": { + "observed_rate": 0.006612784717119765, + "mean_prediction": 0.007632381468982372, + "calibration_in_the_large": 0.0010195967518626071, + "expected_calibration_error_10bin": 0.0010195967518626067, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 21, + "negatives": 2701, + "auroc": 0.8503023571516722, + "auprc": 0.04645815650528112, + "brier": 0.007578908206549807, + "calibration": { + "observed_rate": 0.007714915503306392, + "mean_prediction": 0.008060747892468672, + "calibration_in_the_large": 0.00034583238916227957, + "expected_calibration_error_10bin": 0.0010184718631514648, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.8199816357104885, + "auprc": 0.043590466094046716, + "brier": 0.008326586147904167, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.008630506917365595, + "calibration_in_the_large": 0.00018083755660145036, + "expected_calibration_error_10bin": 0.001103630587817811, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.820094398891699, + "auprc": 0.04170592955336838, + "brier": 0.008356761784581527, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.009170650849183863, + "calibration_in_the_large": 0.0007209814884197186, + "expected_calibration_error_10bin": 0.0013634675820402317, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.816716085989622, + "auprc": 0.04095865014543618, + "brier": 0.008728832199534853, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.00948301810391709, + "calibration_in_the_large": 0.0006659718144240694, + "expected_calibration_error_10bin": 0.0017205503877926588, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.8164689893748456, + "auprc": 0.04110967350530093, + "brier": 0.008734199927874397, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.009667795478771904, + "calibration_in_the_large": 0.0008507491892788838, + "expected_calibration_error_10bin": 0.001583775877471031, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + } + ], + "reason": null + }, + "I45": { + "time_averaged_auroc": 0.7007050940618303, + "time_averaged_auprc": 0.01837996464154299, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2766, + "positives": 2, + "negatives": 2764, + "auroc": 0.8286903039073806, + "auprc": 0.01425438596491228, + "brier": 0.0007211996298986983, + "calibration": { + "observed_rate": 0.0007230657989877079, + "mean_prediction": 0.0012187713863517568, + "calibration_in_the_large": 0.0004957055873640489, + "expected_calibration_error_10bin": 0.0004957055873640489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 5, + "negatives": 2761, + "auroc": 0.6701195219123506, + "auprc": 0.02192660955029919, + "brier": 0.0018000209743967031, + "calibration": { + "observed_rate": 0.0018076644974692696, + "mean_prediction": 0.0024334663657911313, + "calibration_in_the_large": 0.0006258018683218617, + "expected_calibration_error_10bin": 0.0006258018683218617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6892766530316368, + "auprc": 0.019260642331245807, + "brier": 0.0025195882166942174, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.003273150557226764, + "calibration_in_the_large": 0.0007424202607697866, + "expected_calibration_error_10bin": 0.0007424202607697866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6890695386527209, + "auprc": 0.018584935822467508, + "brier": 0.0025226172988184973, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.0037179801548226973, + "calibration_in_the_large": 0.0011872498583657197, + "expected_calibration_error_10bin": 0.0011872498583657197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 8, + "negatives": 2758, + "auroc": 0.6983321247280638, + "auprc": 0.018187451063032288, + "brier": 0.002883650249203121, + "calibration": { + "observed_rate": 0.0028922631959508315, + "mean_prediction": 0.004145797282583805, + "calibration_in_the_large": 0.0012535340866329735, + "expected_calibration_error_10bin": 0.0012535340866329735, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 10, + "negatives": 2756, + "auroc": 0.7060595065312046, + "auprc": 0.017137344810561284, + "brier": 0.0035991044007977592, + "calibration": { + "observed_rate": 0.0036153289949385392, + "mean_prediction": 0.004561180669888802, + "calibration_in_the_large": 0.0009458516749502629, + "expected_calibration_error_10bin": 0.0009458516749502629, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 12, + "negatives": 2754, + "auroc": 0.6798293391430646, + "auprc": 0.014321911478814923, + "brier": 0.004323785873902152, + "calibration": { + "observed_rate": 0.004338394793926247, + "mean_prediction": 0.0050095267683581655, + "calibration_in_the_large": 0.0006711319744319181, + "expected_calibration_error_10bin": 0.0006711319744319181, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 14, + "negatives": 2752, + "auroc": 0.7170369601328903, + "auprc": 0.015757276758442487, + "brier": 0.005028472633107993, + "calibration": { + "observed_rate": 0.005061460592913955, + "mean_prediction": 0.005377702099324444, + "calibration_in_the_large": 0.00031624150641048916, + "expected_calibration_error_10bin": 0.00031624150641048916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 16, + "negatives": 2750, + "auroc": 0.6715, + "auprc": 0.014760414612913081, + "brier": 0.005754342894686352, + "calibration": { + "observed_rate": 0.005784526391901663, + "mean_prediction": 0.005922356321680021, + "calibration_in_the_large": 0.00013782992977835837, + "expected_calibration_error_10bin": 0.00013782992977835837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 18, + "negatives": 2748, + "auroc": 0.6807172893417435, + "auprc": 0.015621913142744297, + "brier": 0.006466414056779218, + "calibration": { + "observed_rate": 0.006507592190889371, + "mean_prediction": 0.0063631952481090085, + "calibration_in_the_large": -0.00014439694278036222, + "expected_calibration_error_10bin": 0.00014439694278036222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6924032600053008, + "auprc": 0.0231640131090565, + "brier": 0.00786447088028366, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.006771422327860888, + "calibration_in_the_large": -0.0011823014610038993, + "expected_calibration_error_10bin": 0.0011823014610038993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.692966472303207, + "auprc": 0.022839895821130794, + "brier": 0.00786737547744364, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.007121500123524912, + "calibration_in_the_large": -0.0008322236653398752, + "expected_calibration_error_10bin": 0.0008322236653398752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6931652531142327, + "auprc": 0.023122745874438442, + "brier": 0.007867371327598908, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.0072124401496197026, + "calibration_in_the_large": -0.0007412836392450845, + "expected_calibration_error_10bin": 0.0007412836392450845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + } + ], + "reason": null + }, + "I46": { + "time_averaged_auroc": 0.628305621150608, + "time_averaged_auprc": 0.0022361262487569254, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 5.0019466603386e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003059369418073555, + "calibration_in_the_large": 0.0003059369418073555, + "expected_calibration_error_10bin": 0.0003059369418073555, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 3.349362522943098e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008437807810937, + "calibration_in_the_large": 0.0008437807810937, + "expected_calibration_error_10bin": 0.0008437807810937, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5939929328621908, + "auprc": 0.0008695652173913044, + "brier": 0.00035780715995333185, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0010071168403315183, + "calibration_in_the_large": 0.0006538847668592471, + "expected_calibration_error_10bin": 0.0006538847668592471, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5897526501766784, + "auprc": 0.0008605851979345956, + "brier": 0.0003589428964509011, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0011239005470125728, + "calibration_in_the_large": 0.0007706684735403015, + "expected_calibration_error_10bin": 0.0007706684735403015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5819787985865724, + "auprc": 0.0008445945945945946, + "brier": 0.00036020575753350023, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0012734055669064573, + "calibration_in_the_large": 0.0009201734934341861, + "expected_calibration_error_10bin": 0.0009201734934341861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5724381625441696, + "auprc": 0.0008257638315441783, + "brier": 0.00036122869003720246, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.001396726894716505, + "calibration_in_the_large": 0.0010434948212442337, + "expected_calibration_error_10bin": 0.0010434948212442337, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5678445229681979, + "auprc": 0.0008169934640522876, + "brier": 0.0003622468054656436, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0014948606953332562, + "calibration_in_the_large": 0.001141628621860985, + "expected_calibration_error_10bin": 0.001141628621860985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5664310954063604, + "auprc": 0.0008143322475570033, + "brier": 0.0003640173614682645, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0016252435999461168, + "calibration_in_the_large": 0.0012720115264738456, + "expected_calibration_error_10bin": 0.0012720115264738456, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6230116648992576, + "auprc": 0.001364380079239517, + "brier": 0.0007177941114360577, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0017556300327388281, + "calibration_in_the_large": 0.0010491658857942855, + "expected_calibration_error_10bin": 0.0010491658857942855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.642032060348892, + "auprc": 0.0019131054820900118, + "brier": 0.0010704533022539108, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0017921520740618493, + "calibration_in_the_large": 0.0007324558536450354, + "expected_calibration_error_10bin": 0.0007324558536450354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6409712399811409, + "auprc": 0.0019080847525924348, + "brier": 0.001071600316229685, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0018843509601836215, + "calibration_in_the_large": 0.0008246547397668077, + "expected_calibration_error_10bin": 0.0008246547397668077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7664543524416136, + "auprc": 0.0071899919346651246, + "brier": 0.0017666812648063491, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0020542367148437867, + "calibration_in_the_large": 0.0002880763474824304, + "expected_calibration_error_10bin": 0.0002880763474824304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7664543524416136, + "auprc": 0.0071899919346651246, + "brier": 0.0017667550495395555, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0020621263529287093, + "calibration_in_the_large": 0.000295965985567353, + "expected_calibration_error_10bin": 0.000295965985567353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "I47": { + "time_averaged_auroc": 0.7163951265493975, + "time_averaged_auprc": 0.0097344413106092, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2716, + "positives": 3, + "negatives": 2713, + "auroc": 0.8348691485440471, + "auprc": 0.004474168869188452, + "brier": 0.0011038645691596736, + "calibration": { + "observed_rate": 0.0011045655375552283, + "mean_prediction": 0.0014446687141678757, + "calibration_in_the_large": 0.0003401031766126475, + "expected_calibration_error_10bin": 0.0003401031766126475, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 5, + "negatives": 2711, + "auroc": 0.6896348210992254, + "auprc": 0.004459446300587494, + "brier": 0.0018455193451648207, + "calibration": { + "observed_rate": 0.001840942562592047, + "mean_prediction": 0.0025272739093297023, + "calibration_in_the_large": 0.0006863313467376552, + "expected_calibration_error_10bin": 0.0006863313467376552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 7, + "negatives": 2709, + "auroc": 0.714654854189738, + "auprc": 0.005821258412271262, + "brier": 0.0025830188017936487, + "calibration": { + "observed_rate": 0.002577319587628866, + "mean_prediction": 0.0032742778438658686, + "calibration_in_the_large": 0.0006969582562370027, + "expected_calibration_error_10bin": 0.0006969582562370027, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 8, + "negatives": 2708, + "auroc": 0.7175498522895125, + "auprc": 0.006459617053200444, + "brier": 0.0029543449883623054, + "calibration": { + "observed_rate": 0.0029455081001472753, + "mean_prediction": 0.00397683032074028, + "calibration_in_the_large": 0.0010313222205930042, + "expected_calibration_error_10bin": 0.0010313222205930042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 9, + "negatives": 2707, + "auroc": 0.6882978286746295, + "auprc": 0.006309280092943459, + "brier": 0.00333097423509787, + "calibration": { + "observed_rate": 0.0033136966126656848, + "mean_prediction": 0.004509015329731563, + "calibration_in_the_large": 0.0011953187170658784, + "expected_calibration_error_10bin": 0.0011953187170658784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 11, + "negatives": 2705, + "auroc": 0.7182994454713494, + "auprc": 0.009754959577830985, + "brier": 0.004056184239170339, + "calibration": { + "observed_rate": 0.004050073637702504, + "mean_prediction": 0.005109910640503224, + "calibration_in_the_large": 0.0010598370028007198, + "expected_calibration_error_10bin": 0.0010598370028007198, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 12, + "negatives": 2704, + "auroc": 0.7339127218934911, + "auprc": 0.011108632130054521, + "brier": 0.0044261289020002354, + "calibration": { + "observed_rate": 0.004418262150220913, + "mean_prediction": 0.00565757058565756, + "calibration_in_the_large": 0.0012393084354366474, + "expected_calibration_error_10bin": 0.0012393084354366474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.7480577136514983, + "auprc": 0.012437146109651503, + "brier": 0.004796001559637218, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.006082289048390789, + "calibration_in_the_large": 0.0012958383856514662, + "expected_calibration_error_10bin": 0.0012958383856514662, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 16, + "negatives": 2700, + "auroc": 0.7126388888888889, + "auprc": 0.01283712127273454, + "brier": 0.00589885141249669, + "calibration": { + "observed_rate": 0.005891016200294551, + "mean_prediction": 0.006474446706339967, + "calibration_in_the_large": 0.0005834305060454159, + "expected_calibration_error_10bin": 0.0005834305060454161, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.6988510007412898, + "auprc": 0.013195056816373804, + "brier": 0.006639768519687947, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.006845490043377513, + "calibration_in_the_large": 0.00021809681804614307, + "expected_calibration_error_10bin": 0.00021809681804614258, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.7001070751997365, + "auprc": 0.01334193645051155, + "brier": 0.006648698700618432, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.0073148031360353175, + "calibration_in_the_large": 0.000687409910703948, + "expected_calibration_error_10bin": 0.0006874099107039478, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6780828600979646, + "auprc": 0.013172268937522413, + "brier": 0.0070283317549185795, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.007817002016754714, + "calibration_in_the_large": 0.0008214202789049345, + "expected_calibration_error_10bin": 0.0008214202789049346, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6781804344007962, + "auprc": 0.013176845015049198, + "brier": 0.007031850872333743, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.007924975273811674, + "calibration_in_the_large": 0.0009293935359618944, + "expected_calibration_error_10bin": 0.0009293935359618952, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + } + ], + "reason": null + }, + "I48": { + "time_averaged_auroc": 0.7802280303400904, + "time_averaged_auprc": 0.027988957665290044, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2385, + "positives": 7, + "negatives": 2378, + "auroc": 0.8301093355761143, + "auprc": 0.011214523944068569, + "brier": 0.0029212691386601777, + "calibration": { + "observed_rate": 0.0029350104821802936, + "mean_prediction": 0.0020165608684177606, + "calibration_in_the_large": -0.000918449613762533, + "expected_calibration_error_10bin": 0.000918449613762533, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 12, + "negatives": 2373, + "auroc": 0.7914735215620171, + "auprc": 0.016623451521332152, + "brier": 0.004991776548275473, + "calibration": { + "observed_rate": 0.005031446540880503, + "mean_prediction": 0.003685098458215868, + "calibration_in_the_large": -0.001346348082664635, + "expected_calibration_error_10bin": 0.001346348082664635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 15, + "negatives": 2370, + "auroc": 0.7924050632911392, + "auprc": 0.022469306303561136, + "brier": 0.00621645312247377, + "calibration": { + "observed_rate": 0.006289308176100629, + "mean_prediction": 0.004921319019160605, + "calibration_in_the_large": -0.0013679891569400244, + "expected_calibration_error_10bin": 0.0013679891569400244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 17, + "negatives": 2368, + "auroc": 0.7791633545310016, + "auprc": 0.02242907826036912, + "brier": 0.007050585293898977, + "calibration": { + "observed_rate": 0.007127882599580713, + "mean_prediction": 0.006243824993938654, + "calibration_in_the_large": -0.0008840576056420588, + "expected_calibration_error_10bin": 0.000971602608673344, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 19, + "negatives": 2366, + "auroc": 0.7973706455487832, + "auprc": 0.028271794223528938, + "brier": 0.00784730446398145, + "calibration": { + "observed_rate": 0.007966457023060796, + "mean_prediction": 0.006771469316107577, + "calibration_in_the_large": -0.0011949877069532188, + "expected_calibration_error_10bin": 0.0012866382579234624, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 21, + "negatives": 2364, + "auroc": 0.7814841672709693, + "auprc": 0.02836728811194205, + "brier": 0.008676096176133255, + "calibration": { + "observed_rate": 0.00880503144654088, + "mean_prediction": 0.007678375226461116, + "calibration_in_the_large": -0.0011266562200797645, + "expected_calibration_error_10bin": 0.0012251984862516976, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 22, + "negatives": 2363, + "auroc": 0.7861154926326318, + "auprc": 0.02929952385591281, + "brier": 0.009099035457399995, + "calibration": { + "observed_rate": 0.009224318658280923, + "mean_prediction": 0.00861318581382017, + "calibration_in_the_large": -0.0006111328444607534, + "expected_calibration_error_10bin": 0.0011662176245380174, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 23, + "negatives": 2362, + "auroc": 0.7861429149946618, + "auprc": 0.029615059646949056, + "brier": 0.009518296174124627, + "calibration": { + "observed_rate": 0.009643605870020965, + "mean_prediction": 0.009137657084490687, + "calibration_in_the_large": -0.0005059487855302771, + "expected_calibration_error_10bin": 0.001178388350978919, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 25, + "negatives": 2360, + "auroc": 0.763406779661017, + "auprc": 0.028932412495920188, + "brier": 0.01036947036899093, + "calibration": { + "observed_rate": 0.010482180293501049, + "mean_prediction": 0.01003250703756796, + "calibration_in_the_large": -0.00044967325593308835, + "expected_calibration_error_10bin": 0.0012837154584347636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 30, + "negatives": 2355, + "auroc": 0.748478414720453, + "auprc": 0.0321561235529108, + "brier": 0.012414643473616066, + "calibration": { + "observed_rate": 0.012578616352201259, + "mean_prediction": 0.010698176674550669, + "calibration_in_the_large": -0.0018804396776505895, + "expected_calibration_error_10bin": 0.0030394093473725004, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7618731406714833, + "auprc": 0.03796499532903286, + "brier": 0.013178100564904932, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.011616673492125466, + "calibration_in_the_large": -0.0018005172835558747, + "expected_calibration_error_10bin": 0.0033107137204318954, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7624707819804505, + "auprc": 0.038276508016300344, + "brier": 0.013192381195992484, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.012315517899535028, + "calibration_in_the_large": -0.0011016728761463132, + "expected_calibration_error_10bin": 0.0032308333030938692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7624707819804505, + "auprc": 0.03823638438694251, + "brier": 0.013197169613687876, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.012453179725352334, + "calibration_in_the_large": -0.0009640110503290073, + "expected_calibration_error_10bin": 0.00328888417810638, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + } + ], + "reason": null + }, + "I49": { + "time_averaged_auroc": 0.7223779672266618, + "time_averaged_auprc": 0.01475865826087925, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2734, + "positives": 4, + "negatives": 2730, + "auroc": 0.7034798534798535, + "auprc": 0.004346319249218309, + "brier": 0.0014614317568622686, + "calibration": { + "observed_rate": 0.001463057790782736, + "mean_prediction": 0.0004379192944997335, + "calibration_in_the_large": -0.0010251384962830024, + "expected_calibration_error_10bin": 0.0010251384962830024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 5, + "negatives": 2729, + "auroc": 0.776181751557347, + "auprc": 0.02128320623794074, + "brier": 0.0018211827198814274, + "calibration": { + "observed_rate": 0.0018288222384784199, + "mean_prediction": 0.001301450738186534, + "calibration_in_the_large": -0.0005273715002918858, + "expected_calibration_error_10bin": 0.0005273715002918858, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7221407624633431, + "auprc": 0.014747859675656514, + "brier": 0.0021861157221109854, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0017282626366004273, + "calibration_in_the_large": -0.0004663240495736765, + "expected_calibration_error_10bin": 0.0004663240495736765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.7694566813509545, + "auprc": 0.014695741591037656, + "brier": 0.003634411576088693, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0021412914788669114, + "calibration_in_the_large": -0.0015163529980899283, + "expected_calibration_error_10bin": 0.0015163529980899283, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 12, + "negatives": 2722, + "auroc": 0.7284166054371786, + "auprc": 0.013354253666827506, + "brier": 0.004361688804520394, + "calibration": { + "observed_rate": 0.0043891733723482075, + "mean_prediction": 0.002454649430359896, + "calibration_in_the_large": -0.0019345239419883116, + "expected_calibration_error_10bin": 0.0019345239419883116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 14, + "negatives": 2720, + "auroc": 0.7379201680672269, + "auprc": 0.013928181276179308, + "brier": 0.005085359923734699, + "calibration": { + "observed_rate": 0.005120702267739576, + "mean_prediction": 0.0028013705446025, + "calibration_in_the_large": -0.002319331723137076, + "expected_calibration_error_10bin": 0.002319331723137076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7399043766090474, + "auprc": 0.014916402291857355, + "brier": 0.005445801184733847, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003202887442297726, + "calibration_in_the_large": -0.0022835792731375334, + "expected_calibration_error_10bin": 0.0022835792731375334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7392668873360304, + "auprc": 0.014947163937716916, + "brier": 0.00544680727076525, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003458558674150709, + "calibration_in_the_large": -0.0020279080412845506, + "expected_calibration_error_10bin": 0.0020279080412845506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6886488124878217, + "auprc": 0.014059790174379035, + "brier": 0.006177028521255277, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.003741634900001407, + "calibration_in_the_large": -0.0024763607108252207, + "expected_calibration_error_10bin": 0.0024763607108252207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6884539608997813, + "auprc": 0.013924242118404217, + "brier": 0.006178304236053267, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.003968713054242683, + "calibration_in_the_large": -0.0022492825565839447, + "expected_calibration_error_10bin": 0.0022492825565839447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6996219831346322, + "auprc": 0.01730732255173051, + "brier": 0.006891164236721169, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004150642257947644, + "calibration_in_the_large": -0.002798882248270352, + "expected_calibration_error_10bin": 0.002798882248270352, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.698691480081419, + "auprc": 0.017143224631558353, + "brier": 0.006892302031488136, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004416567256642597, + "calibration_in_the_large": -0.002532957249575399, + "expected_calibration_error_10bin": 0.002532957249575399, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6987302510419696, + "auprc": 0.01720884998892385, + "brier": 0.006892435001334012, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004451611736057194, + "calibration_in_the_large": -0.002497912770160802, + "expected_calibration_error_10bin": 0.002497912770160802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + } + ], + "reason": null + }, + "I50": { + "time_averaged_auroc": 0.8277734732303673, + "time_averaged_auprc": 0.0762374412656027, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2415, + "positives": 7, + "negatives": 2408, + "auroc": 0.8217252017085904, + "auprc": 0.06531938748299325, + "brier": 0.002849535361938805, + "calibration": { + "observed_rate": 0.002898550724637681, + "mean_prediction": 0.0029511832355768905, + "calibration_in_the_large": 5.2632510939209284e-05, + "expected_calibration_error_10bin": 5.263251093920902e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 17, + "negatives": 2398, + "auroc": 0.8510032870529363, + "auprc": 0.03904115607542279, + "brier": 0.006990985006533248, + "calibration": { + "observed_rate": 0.007039337474120083, + "mean_prediction": 0.006735315027202789, + "calibration_in_the_large": -0.0003040224469172941, + "expected_calibration_error_10bin": 0.0012703162142895677, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 25, + "negatives": 2390, + "auroc": 0.8447196652719665, + "auprc": 0.05143475035450204, + "brier": 0.010199727380408795, + "calibration": { + "observed_rate": 0.010351966873706004, + "mean_prediction": 0.008832915861945163, + "calibration_in_the_large": -0.001519051011760841, + "expected_calibration_error_10bin": 0.003426853744348936, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 31, + "negatives": 2384, + "auroc": 0.822228837410695, + "auprc": 0.056185135929449896, + "brier": 0.012642822737443413, + "calibration": { + "observed_rate": 0.012836438923395446, + "mean_prediction": 0.010494987482993668, + "calibration_in_the_large": -0.002341451440401777, + "expected_calibration_error_10bin": 0.004578444566895826, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 33, + "negatives": 2382, + "auroc": 0.8331170648551001, + "auprc": 0.07303981251671059, + "brier": 0.013300988859913508, + "calibration": { + "observed_rate": 0.013664596273291925, + "mean_prediction": 0.011855670332899788, + "calibration_in_the_large": -0.0018089259403921368, + "expected_calibration_error_10bin": 0.004002327876317039, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 35, + "negatives": 2380, + "auroc": 0.8377430972388955, + "auprc": 0.07835149083840613, + "brier": 0.014071875676550818, + "calibration": { + "observed_rate": 0.014492753623188406, + "mean_prediction": 0.013246443669104374, + "calibration_in_the_large": -0.0012463099540840315, + "expected_calibration_error_10bin": 0.0040694385037862045, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 38, + "negatives": 2377, + "auroc": 0.8236277483780972, + "auprc": 0.07720318603421275, + "brier": 0.015388689590023855, + "calibration": { + "observed_rate": 0.015734989648033125, + "mean_prediction": 0.014842250560021125, + "calibration_in_the_large": -0.0008927390880120005, + "expected_calibration_error_10bin": 0.00495343265140025, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 42, + "negatives": 2373, + "auroc": 0.8295406658238517, + "auprc": 0.08099204500462871, + "brier": 0.01697517730523071, + "calibration": { + "observed_rate": 0.017391304347826087, + "mean_prediction": 0.015613891565598075, + "calibration_in_the_large": -0.0017774127822280123, + "expected_calibration_error_10bin": 0.0060293918669635915, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 44, + "negatives": 2371, + "auroc": 0.8167727464437713, + "auprc": 0.08145962898032776, + "brier": 0.01789928797179338, + "calibration": { + "observed_rate": 0.018219461697722567, + "mean_prediction": 0.016944362563063236, + "calibration_in_the_large": -0.0012750991346593306, + "expected_calibration_error_10bin": 0.007826470843819516, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 46, + "negatives": 2369, + "auroc": 0.8170389267164645, + "auprc": 0.08347214313202801, + "brier": 0.018732132081666283, + "calibration": { + "observed_rate": 0.01904761904761905, + "mean_prediction": 0.017645503282954934, + "calibration_in_the_large": -0.0014021157646641157, + "expected_calibration_error_10bin": 0.008133513683943812, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 50, + "negatives": 2365, + "auroc": 0.8207272727272727, + "auprc": 0.10327683907142206, + "brier": 0.019928637994102993, + "calibration": { + "observed_rate": 0.020703933747412008, + "mean_prediction": 0.018842468374836392, + "calibration_in_the_large": -0.0018614653725756158, + "expected_calibration_error_10bin": 0.008256729104919095, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8213890426120642, + "auprc": 0.10051974147185949, + "brier": 0.02087898079772493, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.020059557540391952, + "calibration_in_the_large": -0.0014725335569165353, + "expected_calibration_error_10bin": 0.0098916612852978, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8214215957550701, + "auprc": 0.10079141956087158, + "brier": 0.020897105072416572, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.020221890139021093, + "calibration_in_the_large": -0.0013102009582873948, + "expected_calibration_error_10bin": 0.009967084000585389, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + } + ], + "reason": null + }, + "I51": { + "time_averaged_auroc": 0.7804718814914112, + "time_averaged_auprc": 0.009623800525121406, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 2, + "negatives": 2805, + "auroc": 0.6982174688057041, + "auprc": 0.001802077613255516, + "brier": 0.0007123118798254265, + "calibration": { + "observed_rate": 0.0007125044531528322, + "mean_prediction": 0.0004981202908761235, + "calibration_in_the_large": -0.00021438416227670864, + "expected_calibration_error_10bin": 0.00021438416227670864, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8302425106990015, + "auprc": 0.006535720763908684, + "brier": 0.0010662466299328447, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0009405331971296153, + "calibration_in_the_large": -0.000128223482599633, + "expected_calibration_error_10bin": 0.000128223482599633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7675945753033547, + "auprc": 0.005928261089705165, + "brier": 0.0017769621946136184, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0011532219245393304, + "calibration_in_the_large": -0.0006280392083427501, + "expected_calibration_error_10bin": 0.0006280392083427501, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7550321199143469, + "auprc": 0.005329383383823651, + "brier": 0.00177838110606773, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0013885630130388818, + "calibration_in_the_large": -0.00039269811984319865, + "expected_calibration_error_10bin": 0.00039269811984319865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7497501784439686, + "auprc": 0.0052518098131972375, + "brier": 0.0017788655959338302, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0014607551639921562, + "calibration_in_the_large": -0.00032050596888992425, + "expected_calibration_error_10bin": 0.00032050596888992425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.761573247649649, + "auprc": 0.0059810162082468135, + "brier": 0.0021338753674797406, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.0016580426633656172, + "calibration_in_the_large": -0.00047947069609287937, + "expected_calibration_error_10bin": 0.00047947069609287937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.7621087706771391, + "auprc": 0.005982978077701327, + "brier": 0.0021347287900391836, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.001802030629135904, + "calibration_in_the_large": -0.00033548273032259256, + "expected_calibration_error_10bin": 0.00033548273032259256, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7883163265306122, + "auprc": 0.008510260489074823, + "brier": 0.002486413870050747, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0019763078840673506, + "calibration_in_the_large": -0.000517457701967562, + "expected_calibration_error_10bin": 0.000517457701967562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7853571428571429, + "auprc": 0.008253339846183207, + "brier": 0.0024875782277558388, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0020823176755043332, + "calibration_in_the_large": -0.00041144791053057943, + "expected_calibration_error_10bin": 0.00041144791053057943, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 8, + "negatives": 2799, + "auroc": 0.8035459092533047, + "auprc": 0.010155118467027675, + "brier": 0.002839565973570731, + "calibration": { + "observed_rate": 0.0028500178126113287, + "mean_prediction": 0.0022151590788455936, + "calibration_in_the_large": -0.0006348587337657351, + "expected_calibration_error_10bin": 0.0006348587337657351, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8238027162258756, + "auprc": 0.021619718961546262, + "brier": 0.0031787027647761155, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.0023773173043330218, + "calibration_in_the_large": -0.0008289527348547231, + "expected_calibration_error_10bin": 0.0008289527348547231, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8103682516982481, + "auprc": 0.019893867663913316, + "brier": 0.0035330176909115357, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0025108844065080773, + "calibration_in_the_large": -0.0010516378592560836, + "expected_calibration_error_10bin": 0.0010516378592560836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8102252413299964, + "auprc": 0.0198658544489946, + "brier": 0.0035330179654920932, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0025167954165447198, + "calibration_in_the_large": -0.0010457268492194412, + "expected_calibration_error_10bin": 0.0010457268492194412, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "I61": { + "time_averaged_auroc": 0.8738922723644186, + "time_averaged_auprc": 0.02156885232181965, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9167857142857143, + "auprc": 0.006214541654225142, + "brier": 0.0007131966738652288, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.00016479779764666001, + "calibration_in_the_large": -0.0005489780767287861, + "expected_calibration_error_10bin": 0.0005489780767287861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9710714285714286, + "auprc": 0.020034843205574915, + "brier": 0.0007120852757953654, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.0002893086089295983, + "calibration_in_the_large": -0.0004244672654458478, + "expected_calibration_error_10bin": 0.0004244672654458478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8233559685489635, + "auprc": 0.01178244314949063, + "brier": 0.0014246808711659857, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.00039555058509547277, + "calibration_in_the_large": -0.0010320011636554193, + "expected_calibration_error_10bin": 0.0010320011636554193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.831748301751877, + "auprc": 0.011085609101296384, + "brier": 0.0017806776008780028, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.0004460339860727862, + "calibration_in_the_large": -0.001338405699865829, + "expected_calibration_error_10bin": 0.001338405699865829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.8367536646406865, + "auprc": 0.011088629364604197, + "brier": 0.0017802516402293746, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.00050360640444527, + "calibration_in_the_large": -0.0012808332814933452, + "expected_calibration_error_10bin": 0.0012808332814933452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8482951835956127, + "auprc": 0.011466970981746975, + "brier": 0.0021358555753463165, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0005786259623844705, + "calibration_in_the_large": -0.001562701660741868, + "expected_calibration_error_10bin": 0.001562701660741868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.8686429849220547, + "auprc": 0.019947142647636047, + "brier": 0.00248905692083449, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.000600933523157416, + "calibration_in_the_large": -0.0018972820371566455, + "expected_calibration_error_10bin": 0.0018972820371566455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8843503937007874, + "auprc": 0.03174439871531926, + "brier": 0.0028395770706943066, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0007042545984763077, + "calibration_in_the_large": -0.002150848899025477, + "expected_calibration_error_10bin": 0.002150848899025477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8809502505368647, + "auprc": 0.03197769264651227, + "brier": 0.0028386275477418083, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0007898544180022174, + "calibration_in_the_large": -0.002065249079499567, + "expected_calibration_error_10bin": 0.002065249079499567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8780869720830351, + "auprc": 0.03293280941203696, + "brier": 0.002836026221387925, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0008995391724124878, + "calibration_in_the_large": -0.0019555643250892965, + "expected_calibration_error_10bin": 0.0019555643250892965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8768342877594846, + "auprc": 0.03264374718238583, + "brier": 0.002834957234886575, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0009817019357392022, + "calibration_in_the_large": -0.0018734015617625822, + "expected_calibration_error_10bin": 0.0018734015617625822, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8718224131757967, + "auprc": 0.02973399296085344, + "brier": 0.0031893278513696233, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0010902725372390581, + "calibration_in_the_large": -0.0021217188974504493, + "expected_calibration_error_10bin": 0.0021217188974504493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8719019771651351, + "auprc": 0.02974225916197339, + "brier": 0.0031892382216584373, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0010951458762401107, + "calibration_in_the_large": -0.002116845558449397, + "expected_calibration_error_10bin": 0.002116845558449397, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + } + ], + "reason": null + }, + "I63": { + "time_averaged_auroc": 0.7602350187275866, + "time_averaged_auprc": 0.014244912747082776, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2735, + "positives": 4, + "negatives": 2731, + "auroc": 0.7954961552544856, + "auprc": 0.007761891236835319, + "brier": 0.0014581265729172288, + "calibration": { + "observed_rate": 0.0014625228519195613, + "mean_prediction": 0.0009771221078225254, + "calibration_in_the_large": -0.0004854007440970359, + "expected_calibration_error_10bin": 0.0004854007440970359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 6, + "negatives": 2729, + "auroc": 0.715158177598632, + "auprc": 0.005866591469099648, + "brier": 0.0021910726909462413, + "calibration": { + "observed_rate": 0.0021937842778793418, + "mean_prediction": 0.001564050984837426, + "calibration_in_the_large": -0.0006297332930419158, + "expected_calibration_error_10bin": 0.0006297332930419158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 8, + "negatives": 2727, + "auroc": 0.7794279427942794, + "auprc": 0.014506669627405589, + "brier": 0.002911321699921549, + "calibration": { + "observed_rate": 0.0029250457038391227, + "mean_prediction": 0.0021579913487209377, + "calibration_in_the_large": -0.0007670543551181849, + "expected_calibration_error_10bin": 0.0007670543551181849, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 9, + "negatives": 2726, + "auroc": 0.7549930708404663, + "auprc": 0.014589487423367138, + "brier": 0.0032765368002147994, + "calibration": { + "observed_rate": 0.0032906764168190127, + "mean_prediction": 0.0025694989120690448, + "calibration_in_the_large": -0.0007211775047499679, + "expected_calibration_error_10bin": 0.0007211775047499679, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 10, + "negatives": 2725, + "auroc": 0.7603669724770642, + "auprc": 0.014623205051460031, + "brier": 0.003640500320135755, + "calibration": { + "observed_rate": 0.003656307129798903, + "mean_prediction": 0.0028933096291798286, + "calibration_in_the_large": -0.0007629975006190745, + "expected_calibration_error_10bin": 0.0007629975006190745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7694233079695635, + "auprc": 0.014754900245199749, + "brier": 0.004005442583668329, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.003107875614298058, + "calibration_in_the_large": -0.0009140622284807354, + "expected_calibration_error_10bin": 0.0010019810463687477, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7699239086904285, + "auprc": 0.015272388518112747, + "brier": 0.004007551513604979, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.003388909959758698, + "calibration_in_the_large": -0.0006330278830200954, + "expected_calibration_error_10bin": 0.0007278226959983898, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 12, + "negatives": 2723, + "auroc": 0.7747888358428204, + "auprc": 0.01618209097309738, + "brier": 0.004372549653536396, + "calibration": { + "observed_rate": 0.0043875685557586835, + "mean_prediction": 0.0036458653371294913, + "calibration_in_the_large": -0.0007417032186291922, + "expected_calibration_error_10bin": 0.0008449404138795132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.765264871108311, + "auprc": 0.01636143789130163, + "brier": 0.0051006260625254705, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.0038959199006024787, + "calibration_in_the_large": -0.0012229100811159857, + "expected_calibration_error_10bin": 0.0013306098118304381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.7653436236677692, + "auprc": 0.016490342074085403, + "brier": 0.005104545232778598, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.004116617703863115, + "calibration_in_the_large": -0.0010022122778553496, + "expected_calibration_error_10bin": 0.0011177293375267267, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 15, + "negatives": 2720, + "auroc": 0.7683823529411765, + "auprc": 0.016702741231055605, + "brier": 0.005468628023579656, + "calibration": { + "observed_rate": 0.005484460694698354, + "mean_prediction": 0.004332479781384892, + "calibration_in_the_large": -0.0011519809133134625, + "expected_calibration_error_10bin": 0.0012766251875630532, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7323004781169548, + "auprc": 0.016037808141421923, + "brier": 0.005835646374479737, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.004435704567091785, + "calibration_in_the_large": -0.00141438684058646, + "expected_calibration_error_10bin": 0.0016165282022414628, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7321855461566752, + "auprc": 0.01603431182963393, + "brier": 0.005837114986001583, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.004534821479493613, + "calibration_in_the_large": -0.0013152699281846324, + "expected_calibration_error_10bin": 0.0015949826378765185, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + } + ], + "reason": null + }, + "I65": { + "time_averaged_auroc": 0.6487514456826787, + "time_averaged_auprc": 0.01597488936683958, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 7.520101910703062e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005279835088440607, + "calibration_in_the_large": 0.0005279835088440607, + "expected_calibration_error_10bin": 0.0005279835088440607, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.5762987012987013, + "auprc": 0.001239043453987159, + "brier": 0.0007220254908354206, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0008090748205694776, + "calibration_in_the_large": 8.809428704388284e-05, + "expected_calibration_error_10bin": 8.809428704388284e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.560064935064935, + "auprc": 0.001193683274204824, + "brier": 0.0007236191826383081, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0010957013160294079, + "calibration_in_the_large": 0.0003747207825038131, + "expected_calibration_error_10bin": 0.0003747207825038131, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.6880789125466137, + "auprc": 0.03460990178743938, + "brier": 0.0010775246007607361, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0014592379368057711, + "calibration_in_the_large": 0.000377767136517379, + "expected_calibration_error_10bin": 0.000377767136517379, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.6869962709009985, + "auprc": 0.03157497072170985, + "brier": 0.0010787023116209525, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0017964994159935684, + "calibration_in_the_large": 0.0007150286157051762, + "expected_calibration_error_10bin": 0.0007150286157051762, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6622607439508847, + "auprc": 0.01662467646837339, + "brier": 0.0017987905301315402, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.001959605706895636, + "calibration_in_the_large": 0.00015715437308164897, + "expected_calibration_error_10bin": 0.00015715437308164897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6725893824485374, + "auprc": 0.017797745731027957, + "brier": 0.0018000381036334162, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0022767060552375514, + "calibration_in_the_large": 0.00047425472142356446, + "expected_calibration_error_10bin": 0.00047425472142356446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6664499819429397, + "auprc": 0.01665348846154251, + "brier": 0.001800951745399773, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.002395100601539996, + "calibration_in_the_large": 0.0005926492677260091, + "expected_calibration_error_10bin": 0.0005926492677260091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6407755298651252, + "auprc": 0.014605406942870986, + "brier": 0.0021617853673489, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0025635444016291506, + "calibration_in_the_large": 0.00040060280105236627, + "expected_calibration_error_10bin": 0.00040060280105236627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6528179190751445, + "auprc": 0.014702839008392277, + "brier": 0.002163345772607162, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002823957050808237, + "calibration_in_the_large": 0.0006610154502314529, + "expected_calibration_error_10bin": 0.0006610154502314529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.659320809248555, + "auprc": 0.014759365112571624, + "brier": 0.0021644982799711625, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003031108551540528, + "calibration_in_the_large": 0.0008681669509637436, + "expected_calibration_error_10bin": 0.0008681669509637436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6597422928709056, + "auprc": 0.013969248081178866, + "brier": 0.002166144773964905, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003170955136142428, + "calibration_in_the_large": 0.0010080135355656438, + "expected_calibration_error_10bin": 0.0010080135355656438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6596218689788054, + "auprc": 0.013968303358776095, + "brier": 0.0021662288199076393, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0031793333298404834, + "calibration_in_the_large": 0.001016391729263699, + "expected_calibration_error_10bin": 0.001016391729263699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + } + ], + "reason": null + }, + "I67": { + "time_averaged_auroc": 0.7179852351722096, + "time_averaged_auprc": 0.0038922181297982475, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8455431252255503, + "auprc": 0.0037237805043937207, + "brier": 0.0007209459518018834, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0005956568879305948, + "calibration_in_the_large": -0.0001255836457874002, + "expected_calibration_error_10bin": 0.0001255836457874002, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8404907975460123, + "auprc": 0.0033899863251399087, + "brier": 0.0007229203125555992, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0009889405982646089, + "calibration_in_the_large": 0.0002677000645466139, + "expected_calibration_error_10bin": 0.0002677000645466139, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.826055575604475, + "auprc": 0.0031865643731489625, + "brier": 0.0007256373371887827, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0013684362595920373, + "calibration_in_the_large": 0.0006471957258740423, + "expected_calibration_error_10bin": 0.0006471957258740423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8148682785997835, + "auprc": 0.0029758488233476094, + "brier": 0.0007310258681389421, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0017739946757101975, + "calibration_in_the_large": 0.0010527541419922026, + "expected_calibration_error_10bin": 0.0010527541419922026, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8094550703717069, + "auprc": 0.0028763163328515383, + "brier": 0.0007370098780420578, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0021577888404101615, + "calibration_in_the_large": 0.0014365483066921666, + "expected_calibration_error_10bin": 0.0014365483066921666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6131167268351384, + "auprc": 0.0023941517528376214, + "brier": 0.0010986704214219262, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0022428651748898844, + "calibration_in_the_large": 0.0011610043743128919, + "expected_calibration_error_10bin": 0.0011610043743128919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6075812274368231, + "auprc": 0.0023238062608306356, + "brier": 0.0011027083692756016, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002480997072936275, + "calibration_in_the_large": 0.0013991362723592825, + "expected_calibration_error_10bin": 0.0013991362723592825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6086642599277978, + "auprc": 0.002326446534691293, + "brier": 0.0011074737292552368, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002715409144866384, + "calibration_in_the_large": 0.0016335483442893913, + "expected_calibration_error_10bin": 0.0016335483442893913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6048134777376655, + "auprc": 0.0022916153121468013, + "brier": 0.0011099106023724878, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0028427830281618828, + "calibration_in_the_large": 0.0017609222275848902, + "expected_calibration_error_10bin": 0.0017609222275848902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6057761732851985, + "auprc": 0.0023054952008351552, + "brier": 0.0011136137648219639, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0030051274609071443, + "calibration_in_the_large": 0.0019232666603301518, + "expected_calibration_error_10bin": 0.0019232666603301518, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.6968219573853377, + "auprc": 0.0071472345393548825, + "brier": 0.0014647568241639992, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.0032502444531042423, + "calibration_in_the_large": 0.0018077633856682523, + "expected_calibration_error_10bin": 0.0018077633856682523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7302023121387283, + "auprc": 0.007822578449803483, + "brier": 0.0018241632420472505, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.003478261388059709, + "calibration_in_the_large": 0.0016751600537647214, + "expected_calibration_error_10bin": 0.0016751600537647214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7304190751445087, + "auprc": 0.007835011277995612, + "brier": 0.0018244723878550442, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.0034957724046299995, + "calibration_in_the_large": 0.001692671070335012, + "expected_calibration_error_10bin": 0.001692671070335012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + } + ], + "reason": null + }, + "I69": { + "time_averaged_auroc": 0.7960945016432438, + "time_averaged_auprc": 0.03022598394474328, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2752, + "positives": 4, + "negatives": 2748, + "auroc": 0.8523471615720524, + "auprc": 0.031696095330173465, + "brier": 0.0014428672451948033, + "calibration": { + "observed_rate": 0.0014534883720930232, + "mean_prediction": 0.0018498834115883362, + "calibration_in_the_large": 0.00039639503949531296, + "expected_calibration_error_10bin": 0.00039639503949531296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 9, + "negatives": 2743, + "auroc": 0.8278446145744724, + "auprc": 0.02049191973406074, + "brier": 0.0032548740466667382, + "calibration": { + "observed_rate": 0.0032703488372093025, + "mean_prediction": 0.003161723574282992, + "calibration_in_the_large": -0.00010862526292631071, + "expected_calibration_error_10bin": 0.00010862526292631071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 12, + "negatives": 2740, + "auroc": 0.7943430656934306, + "auprc": 0.016782460801922628, + "brier": 0.004359274951461223, + "calibration": { + "observed_rate": 0.00436046511627907, + "mean_prediction": 0.003860324310527648, + "calibration_in_the_large": -0.0005001408057514218, + "expected_calibration_error_10bin": 0.0006603572029024268, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7881665449233016, + "auprc": 0.016523943828819998, + "brier": 0.005110219734366033, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004568377944795345, + "calibration_in_the_large": -0.0005188313575302372, + "expected_calibration_error_10bin": 0.0007868273283737259, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7891578837524783, + "auprc": 0.016396538110309833, + "brier": 0.005122162095404308, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004883049213818531, + "calibration_in_the_large": -0.00020416008850705075, + "expected_calibration_error_10bin": 0.0006325028741499879, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.78568819785036, + "auprc": 0.01564985748784891, + "brier": 0.005149479464629238, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.005375498240548324, + "calibration_in_the_large": 0.00028828893822274194, + "expected_calibration_error_10bin": 0.0005680346788762417, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.768944099378882, + "auprc": 0.015187418501811923, + "brier": 0.005537893410112088, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.005770169674065734, + "calibration_in_the_large": 0.0003195882787168968, + "expected_calibration_error_10bin": 0.0009154675667738248, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.7683351601510169, + "auprc": 0.014955409687997958, + "brier": 0.005557427695038284, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.006070702534613403, + "calibration_in_the_large": 0.0006201211392645655, + "expected_calibration_error_10bin": 0.0007521053313403202, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 16, + "negatives": 2736, + "auroc": 0.7826663011695907, + "auprc": 0.0489469469247508, + "brier": 0.0058250142480538915, + "calibration": { + "observed_rate": 0.005813953488372093, + "mean_prediction": 0.006372534352623842, + "calibration_in_the_large": 0.0005585808642517487, + "expected_calibration_error_10bin": 0.0006194682932734688, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 17, + "negatives": 2735, + "auroc": 0.7844714485428541, + "auprc": 0.047391289499052254, + "brier": 0.006193999363389235, + "calibration": { + "observed_rate": 0.0061773255813953485, + "mean_prediction": 0.006696424933813014, + "calibration_in_the_large": 0.0005190993524176657, + "expected_calibration_error_10bin": 0.0007216826324590886, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.8024149286498353, + "auprc": 0.049706805466744, + "brier": 0.00688452216574515, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.00715955734239126, + "calibration_in_the_large": 0.0002554875749493993, + "expected_calibration_error_10bin": 0.0014633746671809465, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.8024727020625109, + "auprc": 0.04960792543034729, + "brier": 0.006910964059484127, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.007615584400606315, + "calibration_in_the_large": 0.0007115146331644548, + "expected_calibration_error_10bin": 0.0019639913553519787, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.8023764130413851, + "auprc": 0.04960118047782288, + "brier": 0.006911572296226753, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.007630166118726826, + "calibration_in_the_large": 0.0007260963512849654, + "expected_calibration_error_10bin": 0.001954056698633489, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + } + ], + "reason": null + }, + "I70": { + "time_averaged_auroc": 0.8213862817716145, + "time_averaged_auprc": 0.01761845098751143, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.8990610328638498, + "auprc": 0.007562442183163737, + "brier": 0.0007204660663763765, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.0006473194004738777, + "calibration_in_the_large": -7.444169660298977e-05, + "expected_calibration_error_10bin": 7.444169660298977e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.9142289635247381, + "auprc": 0.008364973896535358, + "brier": 0.0007248666597115043, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.0013602646271821382, + "calibration_in_the_large": 0.0006385035301052707, + "expected_calibration_error_10bin": 0.0006385035301052707, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8405639913232104, + "auprc": 0.013326126023570034, + "brier": 0.0017969666140859157, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0016613878483290863, + "calibration_in_the_large": -0.00014301489436308263, + "expected_calibration_error_10bin": 0.00014301489436308263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.853000723065799, + "auprc": 0.015143275291562605, + "brier": 0.0017972389677751936, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0019150104942154077, + "calibration_in_the_large": 0.0001106077515232388, + "expected_calibration_error_10bin": 0.0001106077515232388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8556037599421548, + "auprc": 0.016556334717908034, + "brier": 0.0017983551947196273, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0022306552919509857, + "calibration_in_the_large": 0.0004262525492588168, + "expected_calibration_error_10bin": 0.0004262525492588168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7832334091378954, + "auprc": 0.01576949169598043, + "brier": 0.002515733499845908, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0024157709528629745, + "calibration_in_the_large": -0.000110392886906062, + "expected_calibration_error_10bin": 0.000110392886906062, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7830266694231962, + "auprc": 0.015581558942490322, + "brier": 0.0025177896628127585, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0026871342196474407, + "calibration_in_the_large": 0.0001609703798784042, + "expected_calibration_error_10bin": 0.0001609703798784042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 10, + "negatives": 2761, + "auroc": 0.7613545816733067, + "auprc": 0.015127935566818556, + "brier": 0.003596120555097605, + "calibration": { + "observed_rate": 0.003608805485384338, + "mean_prediction": 0.0028885532864606927, + "calibration_in_the_large": -0.0007202521989236451, + "expected_calibration_error_10bin": 0.0007202521989236451, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.796151987435061, + "auprc": 0.022927597476935683, + "brier": 0.004290442922749773, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.003070741971008335, + "calibration_in_the_large": -0.0012598246114528702, + "expected_calibration_error_10bin": 0.0013346612705229571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.7975111755466957, + "auprc": 0.023900828014375482, + "brier": 0.0042921480079802345, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0033598905371280577, + "calibration_in_the_large": -0.0009706760453331476, + "expected_calibration_error_10bin": 0.0010547267898362283, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.797752808988764, + "auprc": 0.024394283912709733, + "brier": 0.004292799562204468, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0035420506188888613, + "calibration_in_the_large": -0.0007885159635723439, + "expected_calibration_error_10bin": 0.0008762789201984895, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.7982360758729008, + "auprc": 0.025140927535836997, + "brier": 0.004292394350583228, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0036812273893662073, + "calibration_in_the_large": -0.000649339193094998, + "expected_calibration_error_10bin": 0.0008149235420303319, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.7982964842334179, + "auprc": 0.025244087579761626, + "brier": 0.004292134280620945, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0036911177966890674, + "calibration_in_the_large": -0.0006394487857721378, + "expected_calibration_error_10bin": 0.0008054480118587186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + } + ], + "reason": null + }, + "I71": { + "time_averaged_auroc": 0.7486430700470827, + "time_averaged_auprc": 0.006755286782103621, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2769, + "positives": 1, + "negatives": 2768, + "auroc": 0.9757947976878613, + "auprc": 0.014705882352941176, + "brier": 0.0003596613281460906, + "calibration": { + "observed_rate": 0.00036114120621162876, + "mean_prediction": 0.0005464840844956456, + "calibration_in_the_large": 0.00018534287828401682, + "expected_calibration_error_10bin": 0.00018534287828401682, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.7045071101470234, + "auprc": 0.007100648474984413, + "brier": 0.0010816624735678294, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0010411367160582357, + "calibration_in_the_large": -4.228690257665046e-05, + "expected_calibration_error_10bin": 4.228690257665046e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.7016148469510726, + "auprc": 0.0063755450140149305, + "brier": 0.0010830457651618563, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0013188312206601676, + "calibration_in_the_large": 0.00023540760202528138, + "expected_calibration_error_10bin": 0.00023540760202528138, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.700530248252591, + "auprc": 0.006275317402060734, + "brier": 0.0010845056614755904, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0015357484506469705, + "calibration_in_the_large": 0.00045232483201208427, + "expected_calibration_error_10bin": 0.00045232483201208427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6998071824536033, + "auprc": 0.005751587735175672, + "brier": 0.0010857753485943253, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0017115573262903236, + "calibration_in_the_large": 0.0006281337076554374, + "expected_calibration_error_10bin": 0.0006281337076554374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.735623869801085, + "auprc": 0.005898734003146034, + "brier": 0.0014464561441366128, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0019338842076095247, + "calibration_in_the_large": 0.0004893193827630097, + "expected_calibration_error_10bin": 0.0004893193827630097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7361663652802893, + "auprc": 0.005814112747936055, + "brier": 0.0014494455209585998, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.002183537729031609, + "calibration_in_the_large": 0.000738972904185094, + "expected_calibration_error_10bin": 0.000738972904185094, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7359855334538878, + "auprc": 0.00574302312978447, + "brier": 0.0014505277964030519, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0022865895572181175, + "calibration_in_the_large": 0.0008420247323716024, + "expected_calibration_error_10bin": 0.0008420247323716024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7479739507959479, + "auprc": 0.006024167818873415, + "brier": 0.001811846782957965, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0025493331213547778, + "calibration_in_the_large": 0.0007436270902966341, + "expected_calibration_error_10bin": 0.0007436270902966341, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7460202604920405, + "auprc": 0.005938509933115395, + "brier": 0.0018135848422442368, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0026865776071960403, + "calibration_in_the_large": 0.0008808715761378966, + "expected_calibration_error_10bin": 0.0008808715761378966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7491316931982633, + "auprc": 0.00605035187427887, + "brier": 0.0018156014249839033, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0028587568051819555, + "calibration_in_the_large": 0.0010530507741238117, + "expected_calibration_error_10bin": 0.0010530507741238117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7495658465991317, + "auprc": 0.006057939446011082, + "brier": 0.00181671567152953, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0029675474239268863, + "calibration_in_the_large": 0.0011618413928687426, + "expected_calibration_error_10bin": 0.0011618413928687426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7496382054992764, + "auprc": 0.006082908235024815, + "brier": 0.0018171253785620812, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.002987555994939516, + "calibration_in_the_large": 0.0011818499638813723, + "expected_calibration_error_10bin": 0.0011818499638813723, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + } + ], + "reason": null + }, + "I72": { + "time_averaged_auroc": 0.632647513781555, + "time_averaged_auprc": 0.009330356204541871, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5296519886363636, + "auprc": 0.0038236998327302145, + "brier": 0.0007092542034887337, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0004349869353279047, + "calibration_in_the_large": -0.00027473627262099526, + "expected_calibration_error_10bin": 0.00027473627262099526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5159801136363636, + "auprc": 0.00265113537949597, + "brier": 0.0007101538634730324, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0006641663499770946, + "calibration_in_the_large": -4.5556857971805345e-05, + "expected_calibration_error_10bin": 4.5556857971805345e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.6172883362936649, + "auprc": 0.0031694710331517753, + "brier": 0.001065244784739579, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0008596709650663622, + "calibration_in_the_large": -0.00020491384685698767, + "expected_calibration_error_10bin": 0.00020491384685698767, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6745111980092428, + "auprc": 0.013882329626146103, + "brier": 0.001768276723215166, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0009327264133387269, + "calibration_in_the_large": -0.0008415816065335228, + "expected_calibration_error_10bin": 0.0008415816065335228, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6745111980092428, + "auprc": 0.013002847526354885, + "brier": 0.001768653792954449, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0010816046943441851, + "calibration_in_the_large": -0.0006927033255280646, + "expected_calibration_error_10bin": 0.0006927033255280646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6783505154639176, + "auprc": 0.012544963397091036, + "brier": 0.0017690822588887808, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001283637721944021, + "calibration_in_the_large": -0.0004906702979282287, + "expected_calibration_error_10bin": 0.0004906702979282287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6757198720227515, + "auprc": 0.011825484736877398, + "brier": 0.0017697125162158729, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0013681365436906822, + "calibration_in_the_large": -0.0004061714761815676, + "expected_calibration_error_10bin": 0.0004061714761815676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6439663347558084, + "auprc": 0.010431357446889783, + "brier": 0.0021261037440700784, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0014895721830945105, + "calibration_in_the_large": -0.0006395974407521893, + "expected_calibration_error_10bin": 0.0006395974407521893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.644262683736368, + "auprc": 0.010185519548721819, + "brier": 0.0021279484957203963, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0016032811364604512, + "calibration_in_the_large": -0.0005258884873862485, + "expected_calibration_error_10bin": 0.0005258884873862485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6428402086296823, + "auprc": 0.010146413852330881, + "brier": 0.0021287366933532836, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0017052666881714864, + "calibration_in_the_large": -0.0004239029356752134, + "expected_calibration_error_10bin": 0.0004239029356752134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6431958274063537, + "auprc": 0.010200156869719168, + "brier": 0.0021292030908247944, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018061092606609136, + "calibration_in_the_large": -0.00032306036318578615, + "expected_calibration_error_10bin": 0.00032306036318578615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6421289710763395, + "auprc": 0.00971744141176846, + "brier": 0.0021306321588435203, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018731888426211816, + "calibration_in_the_large": -0.00025598078122551814, + "expected_calibration_error_10bin": 0.00025598078122551814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6420104314841157, + "auprc": 0.009713809997766812, + "brier": 0.0021307347219052175, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018776995947337644, + "calibration_in_the_large": -0.0002514700291129353, + "expected_calibration_error_10bin": 0.0002514700291129353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "I73": { + "time_averaged_auroc": 0.7814481790885032, + "time_averaged_auprc": 0.128371789073348, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.7021587998536407, + "auprc": 0.001226993865030675, + "brier": 0.00036875962116947726, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0007190237398138859, + "calibration_in_the_large": 0.0003532592921182019, + "expected_calibration_error_10bin": 0.0003532592921182019, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.7145993413830956, + "auprc": 0.0012804097311139564, + "brier": 0.00037417129717078686, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0011625630329287454, + "calibration_in_the_large": 0.0007967985852330614, + "expected_calibration_error_10bin": 0.0007967985852330614, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 3, + "negatives": 2731, + "auroc": 0.6196753326010008, + "auprc": 0.0022098045354998173, + "brier": 0.001109197169271202, + "calibration": { + "observed_rate": 0.0010972933430870519, + "mean_prediction": 0.001506436197080499, + "calibration_in_the_large": 0.00040914285399344706, + "expected_calibration_error_10bin": 0.00040914285399344706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7980205278592375, + "auprc": 0.1801857851926252, + "brier": 0.0021535178161147155, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0017365262826999992, + "calibration_in_the_large": -0.00045806040347410454, + "expected_calibration_error_10bin": 0.00045806040347410454, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7993035190615836, + "auprc": 0.18064201171115638, + "brier": 0.002149730169156001, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0020486687158902867, + "calibration_in_the_large": -0.00014591797028381702, + "expected_calibration_error_10bin": 0.00014591797028381702, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7981427174975562, + "auprc": 0.1813044519783058, + "brier": 0.002148406685953398, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.002355345112036545, + "calibration_in_the_large": 0.00016075842586244123, + "expected_calibration_error_10bin": 0.00016075842586244123, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 7, + "negatives": 2727, + "auroc": 0.7731154067787731, + "auprc": 0.15617837940133544, + "brier": 0.002512070605983239, + "calibration": { + "observed_rate": 0.002560351133869788, + "mean_prediction": 0.00258934109373644, + "calibration_in_the_large": 2.898995986665197e-05, + "expected_calibration_error_10bin": 2.898995986665197e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.7988352898019075, + "auprc": 0.1443518498212916, + "brier": 0.0028642677879975632, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.0027596972696749, + "calibration_in_the_large": -0.00016641831189057217, + "expected_calibration_error_10bin": 0.00016641831189057217, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.798514306676449, + "auprc": 0.14406522009702125, + "brier": 0.0028644699938464454, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.0029460177714120657, + "calibration_in_the_large": 1.9902189846593768e-05, + "expected_calibration_error_10bin": 1.9902189846593768e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.838582966226138, + "auprc": 0.167768696289552, + "brier": 0.0035198967509080252, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0031260171604097246, + "calibration_in_the_large": -0.0005316273165471151, + "expected_calibration_error_10bin": 0.0005316273165471151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8388766519823788, + "auprc": 0.17031840821694283, + "brier": 0.00351690892278705, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.003287701214204884, + "calibration_in_the_large": -0.0003699432627519558, + "expected_calibration_error_10bin": 0.0003699432627519558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8395374449339207, + "auprc": 0.1706149131269828, + "brier": 0.003512519565902664, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0035033865102585848, + "calibration_in_the_large": -0.00015425796669825496, + "expected_calibration_error_10bin": 0.0005039048653438645, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8394640234948605, + "auprc": 0.1686863339866665, + "brier": 0.003512479769027173, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0035155253209799195, + "calibration_in_the_large": -0.0001421191559769202, + "expected_calibration_error_10bin": 0.0005159678294817413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + } + ], + "reason": null + }, + "I74": { + "time_averaged_auroc": 0.7410860091874445, + "time_averaged_auprc": 0.01909195819758114, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.7316424263923377, + "auprc": 0.10066181336863005, + "brier": 0.0007075718522892451, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.00018193563525435052, + "calibration_in_the_large": -0.0005270328156495843, + "expected_calibration_error_10bin": 0.0005270328156495843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.7637804589543411, + "auprc": 0.019930193085684552, + "brier": 0.00106109269554108, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0003332944606103187, + "calibration_in_the_large": -0.0007301582157455835, + "expected_calibration_error_10bin": 0.0007301582157455835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7065140220092296, + "auprc": 0.01297342816414345, + "brier": 0.0014149094476691708, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.00043401902126452807, + "calibration_in_the_large": -0.0009839178805433415, + "expected_calibration_error_10bin": 0.0009839178805433415, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7069577564785232, + "auprc": 0.012962021472603214, + "brier": 0.0014147769392364306, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0004666653553168776, + "calibration_in_the_large": -0.000951271546490992, + "expected_calibration_error_10bin": 0.000951271546490992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7081114660986866, + "auprc": 0.012510589463489125, + "brier": 0.001414549660554554, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0005239741246534809, + "calibration_in_the_large": -0.0008939627771543887, + "expected_calibration_error_10bin": 0.0008939627771543887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.712637557685481, + "auprc": 0.011860943575471778, + "brier": 0.0014144393479151598, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.000549054917168881, + "calibration_in_the_large": -0.0008688819846389886, + "expected_calibration_error_10bin": 0.0008688819846389886, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7490767045454545, + "auprc": 0.010558748027192078, + "brier": 0.0017679287816830124, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0006315543555702686, + "calibration_in_the_large": -0.0011408667716895683, + "expected_calibration_error_10bin": 0.0011408667716895683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7517755681818182, + "auprc": 0.010808905046378353, + "brier": 0.0017677476123084273, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0006660913047154274, + "calibration_in_the_large": -0.0011063298225444094, + "expected_calibration_error_10bin": 0.0011063298225444094, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7602982954545454, + "auprc": 0.011332755120607373, + "brier": 0.0017671357976808521, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0007372615668337219, + "calibration_in_the_large": -0.0010351595604261151, + "expected_calibration_error_10bin": 0.0010351595604261151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7600852272727273, + "auprc": 0.011167260473184884, + "brier": 0.001766901483780033, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008028685355657523, + "calibration_in_the_large": -0.0009695525916940846, + "expected_calibration_error_10bin": 0.0009695525916940846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7620738636363636, + "auprc": 0.01163617588161189, + "brier": 0.0017664281500272177, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008815836461205079, + "calibration_in_the_large": -0.000890837481139329, + "expected_calibration_error_10bin": 0.000890837481139329, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7605823863636364, + "auprc": 0.010898154664128783, + "brier": 0.0017665586376138028, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0009604260870822686, + "calibration_in_the_large": -0.0008119950401775683, + "expected_calibration_error_10bin": 0.0008119950401775683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7605823863636364, + "auprc": 0.010894468225429266, + "brier": 0.0017665818843629344, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0009669416254016581, + "calibration_in_the_large": -0.0008054795018581788, + "expected_calibration_error_10bin": 0.0008054795018581788, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + } + ], + "reason": null + }, + "I77": { + "time_averaged_auroc": 0.5435858630088721, + "time_averaged_auprc": 0.003643036376371273, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.39202299676607977, + "auprc": 0.0008811035972931628, + "brier": 0.0007182844567052406, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.00035309897980017924, + "calibration_in_the_large": -0.00036503387477791776, + "expected_calibration_error_10bin": 0.00036503387477791776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.39815480469686076, + "auprc": 0.0011733515429775817, + "brier": 0.0010780554423725766, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0006992782923486533, + "calibration_in_the_large": -0.000377920989518492, + "expected_calibration_error_10bin": 0.000377920989518492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.4390127006949437, + "auprc": 0.0014643926303089354, + "brier": 0.0010794373749480862, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0009915850058424117, + "calibration_in_the_large": -8.561427602473358e-05, + "expected_calibration_error_10bin": 8.561427602473358e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.4411694224778337, + "auprc": 0.001503288430784841, + "brier": 0.0010812873192248547, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.00123683211207092, + "calibration_in_the_large": 0.0001596328302037747, + "expected_calibration_error_10bin": 0.0001596328302037747, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5621179431859044, + "auprc": 0.0030234587257796297, + "brier": 0.0014394970754387287, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0013763861326892186, + "calibration_in_the_large": -5.987957646697538e-05, + "expected_calibration_error_10bin": 5.987957646697538e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5647249190938511, + "auprc": 0.003148593289279147, + "brier": 0.0014413468938625049, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0016072988097792736, + "calibration_in_the_large": 0.00017103310062307965, + "expected_calibration_error_10bin": 0.00017103310062307965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5667026249550522, + "auprc": 0.0031954237520098617, + "brier": 0.0014427951663798344, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.001740228869722801, + "calibration_in_the_large": 0.0003039631605666071, + "expected_calibration_error_10bin": 0.0003039631605666071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6165887009715725, + "auprc": 0.005339303932874461, + "brier": 0.0021568547183636, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.001840254500204547, + "calibration_in_the_large": -0.0003141440635297437, + "expected_calibration_error_10bin": 0.0003141440635297437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6167686218064051, + "auprc": 0.005459590803599308, + "brier": 0.002158575748795821, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0019715060536833837, + "calibration_in_the_large": -0.00018289251005090693, + "expected_calibration_error_10bin": 0.00018289251005090693, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.616828595418016, + "auprc": 0.005407705216933467, + "brier": 0.0021602578972943856, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002120385142628967, + "calibration_in_the_large": -3.401342110532363e-05, + "expected_calibration_error_10bin": 3.401342110532363e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6170085162528487, + "auprc": 0.005496315397717326, + "brier": 0.0021616261411804712, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0022510670254890703, + "calibration_in_the_large": 9.666846175477965e-05, + "expected_calibration_error_10bin": 9.666846175477965e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6178481468154012, + "auprc": 0.005633829021949285, + "brier": 0.0021630316352341974, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002347646025083911, + "calibration_in_the_large": 0.00019324746134962052, + "expected_calibration_error_10bin": 0.00019324746134962052, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6176682259805686, + "auprc": 0.005633116551319549, + "brier": 0.0021631277367744855, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0023523906560692456, + "calibration_in_the_large": 0.00019799209233495492, + "expected_calibration_error_10bin": 0.00019799209233495492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "I80": { + "time_averaged_auroc": 0.7618681385410176, + "time_averaged_auprc": 0.13306975364473814, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.5867256637168141, + "auprc": 0.0014108330450159534, + "brier": 0.0007094210862918497, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0003419442077343806, + "calibration_in_the_large": -0.00036551953474881713, + "expected_calibration_error_10bin": 0.00036551953474881713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.6005309734513274, + "auprc": 0.0016363966341791155, + "brier": 0.00071196409491285, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0005725903460657363, + "calibration_in_the_large": -0.00013487339641746145, + "expected_calibration_error_10bin": 0.00013487339641746145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.6060176991150442, + "auprc": 0.0016647018675932247, + "brier": 0.0007192164491273652, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0007811865049642234, + "calibration_in_the_large": 7.372276248102572e-05, + "expected_calibration_error_10bin": 7.372276248102572e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7941020191285866, + "auprc": 0.2570592046455668, + "brier": 0.0013645215215079434, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0010763025593519885, + "calibration_in_the_large": -0.000338624925614407, + "expected_calibration_error_10bin": 0.00033862492561440694, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7987956075097414, + "auprc": 0.25666092683485303, + "brier": 0.0013608333346820302, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.001250289184462808, + "calibration_in_the_large": -0.00016463830050358745, + "expected_calibration_error_10bin": 0.00037840172294692314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7941905773999292, + "auprc": 0.25707172465539346, + "brier": 0.0013600891490863692, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.001430719120085455, + "calibration_in_the_large": 1.5791635119059583e-05, + "expected_calibration_error_10bin": 0.0005479559456593926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7951647183846972, + "auprc": 0.13203263077100727, + "brier": 0.0013602678297184759, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0015102509176526757, + "calibration_in_the_large": 9.532343268628027e-05, + "expected_calibration_error_10bin": 0.0006225983807517477, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7933935529578463, + "auprc": 0.2573593689790694, + "brier": 0.0013581891492464302, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0017041299535512197, + "calibration_in_the_large": 0.0002892024685848243, + "expected_calibration_error_10bin": 0.0007113790945268021, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8283486888731396, + "auprc": 0.11304787983246227, + "brier": 0.0017081050241999545, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0018802848626881077, + "calibration_in_the_large": 0.00011162550648011324, + "expected_calibration_error_10bin": 0.0005007928397871671, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.827710843373494, + "auprc": 0.11297324344382764, + "brier": 0.0017087989585433238, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0019217289836164222, + "calibration_in_the_large": 0.00015306962740842776, + "expected_calibration_error_10bin": 0.0005352662164846559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8261516654854713, + "auprc": 0.1130639442736531, + "brier": 0.0017106052446420263, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0020315576686441425, + "calibration_in_the_large": 0.00026289831243614804, + "expected_calibration_error_10bin": 0.0005553073301234948, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8265768958185684, + "auprc": 0.11296297119948728, + "brier": 0.0017123335852944506, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.002189368578560594, + "calibration_in_the_large": 0.00042070922235259967, + "expected_calibration_error_10bin": 0.0007433800895705066, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8265768958185684, + "auprc": 0.11296297119948728, + "brier": 0.0017125616849359647, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.002198119765088339, + "calibration_in_the_large": 0.00042946040888034473, + "expected_calibration_error_10bin": 0.0007508602075755183, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + } + ], + "reason": null + }, + "I81": { + "time_averaged_auroc": 0.8452170596899895, + "time_averaged_auprc": 0.015419998173582323, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8572820694542878, + "auprc": 0.012211697297806634, + "brier": 0.001415260005343722, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0004855864941600901, + "calibration_in_the_large": -0.0009298416728604336, + "expected_calibration_error_10bin": 0.0009298416728604336, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8794753633463311, + "auprc": 0.014614584538807433, + "brier": 0.0017821479852669297, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009585110912883598, + "calibration_in_the_large": -0.0008107741174872947, + "expected_calibration_error_10bin": 0.0008107741174872947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8740872031194612, + "auprc": 0.013665433530338255, + "brier": 0.001803133626475704, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0013272595056986302, + "calibration_in_the_large": -0.0004420257030770243, + "expected_calibration_error_10bin": 0.0006917386399788513, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8740163062743708, + "auprc": 0.013540757680560043, + "brier": 0.0018106545882373138, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0014826973432166236, + "calibration_in_the_large": -0.00028658786555903096, + "expected_calibration_error_10bin": 0.000554354033806478, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.8645390070921986, + "auprc": 0.012930517959082101, + "brier": 0.002181425445245251, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.0017780683689387774, + "calibration_in_the_large": -0.00034507388159200816, + "expected_calibration_error_10bin": 0.0009471032562957413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.8629432624113476, + "auprc": 0.012718709596464983, + "brier": 0.002210048905739603, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.0020655805224327833, + "calibration_in_the_large": -5.756172809800227e-05, + "expected_calibration_error_10bin": 0.0009282178262903296, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8793391780266558, + "auprc": 0.017688805140437146, + "brier": 0.0025682477007348183, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.002262338613898127, + "calibration_in_the_large": -0.00021466067838778972, + "expected_calibration_error_10bin": 0.0013010689547280473, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8118789921930447, + "auprc": 0.015708070645898162, + "brier": 0.0029441703254452023, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.00244668340445971, + "calibration_in_the_large": -0.0003841729295813376, + "expected_calibration_error_10bin": 0.0016408589631292322, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8113910574875799, + "auprc": 0.01556333335156238, + "brier": 0.0029659779401583946, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0026469192299625704, + "calibration_in_the_large": -0.00018393710407847708, + "expected_calibration_error_10bin": 0.0016809944068629076, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8097941802696949, + "auprc": 0.015311487814807545, + "brier": 0.002981346963445601, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002763519787667369, + "calibration_in_the_large": -6.733654637367838e-05, + "expected_calibration_error_10bin": 0.0017804424053911015, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8089513839602555, + "auprc": 0.015247831266035137, + "brier": 0.0029994560049764257, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002900051953372577, + "calibration_in_the_large": 6.91956193315294e-05, + "expected_calibration_error_10bin": 0.0018013866603010227, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8270816076992861, + "auprc": 0.020629519572815627, + "brier": 0.0033408287191722913, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0030025421819990976, + "calibration_in_the_large": -0.00018217119379708088, + "expected_calibration_error_10bin": 0.002101053557380375, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8270421646353489, + "auprc": 0.020629227861954768, + "brier": 0.003342433505061003, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0030173855831949147, + "calibration_in_the_large": -0.0001673277926012638, + "expected_calibration_error_10bin": 0.002093688788507438, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + } + ], + "reason": null + }, + "I82": { + "time_averaged_auroc": 0.7378191580577659, + "time_averaged_auprc": 0.04414086395069795, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2739, + "positives": 6, + "negatives": 2733, + "auroc": 0.6717892425905598, + "auprc": 0.013932892616342998, + "brier": 0.002181895484036691, + "calibration": { + "observed_rate": 0.002190580503833516, + "mean_prediction": 0.0015809593053789793, + "calibration_in_the_large": -0.0006096211984545365, + "expected_calibration_error_10bin": 0.0006096211984545365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 13, + "negatives": 2726, + "auroc": 0.660392798690671, + "auprc": 0.016311671124465747, + "brier": 0.004719659137080518, + "calibration": { + "observed_rate": 0.004746257758305951, + "mean_prediction": 0.0033786458187786586, + "calibration_in_the_large": -0.0013676119395272927, + "expected_calibration_error_10bin": 0.0013676119395272927, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.726101514965903, + "auprc": 0.043292518189261414, + "brier": 0.006472138084699556, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.004709239215038758, + "calibration_in_the_large": -0.0018625022964617894, + "expected_calibration_error_10bin": 0.002447550512135681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 20, + "negatives": 2719, + "auroc": 0.7251195292386907, + "auprc": 0.040791781253022255, + "brier": 0.007217330325986623, + "calibration": { + "observed_rate": 0.007301935012778387, + "mean_prediction": 0.005789526733175215, + "calibration_in_the_large": -0.001512408279603172, + "expected_calibration_error_10bin": 0.001512408279603171, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 22, + "negatives": 2717, + "auroc": 0.7275905912269549, + "auprc": 0.03947440469888838, + "brier": 0.007954211602570836, + "calibration": { + "observed_rate": 0.008032128514056224, + "mean_prediction": 0.00665056809008556, + "calibration_in_the_large": -0.0013815604239706646, + "expected_calibration_error_10bin": 0.0016935698483661898, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 23, + "negatives": 2716, + "auroc": 0.7352244349106742, + "auprc": 0.03846187072790434, + "brier": 0.0083315411109825, + "calibration": { + "observed_rate": 0.008397225264695144, + "mean_prediction": 0.007349146218368678, + "calibration_in_the_large": -0.0010480790463264656, + "expected_calibration_error_10bin": 0.00216402065922714, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 26, + "negatives": 2713, + "auroc": 0.7390342793955031, + "auprc": 0.03763104493794466, + "brier": 0.009437338197070459, + "calibration": { + "observed_rate": 0.009492515516611903, + "mean_prediction": 0.007944219592937007, + "calibration_in_the_large": -0.0015482959236748951, + "expected_calibration_error_10bin": 0.00296775297266867, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 28, + "negatives": 2711, + "auroc": 0.756481530273489, + "auprc": 0.05268154190929523, + "brier": 0.010039188409036408, + "calibration": { + "observed_rate": 0.01022270901788974, + "mean_prediction": 0.00858364764242199, + "calibration_in_the_large": -0.0016390613754677496, + "expected_calibration_error_10bin": 0.0030374901549535083, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.7611747321758404, + "auprc": 0.05300077943382116, + "brier": 0.011504693342806889, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.009359590645400703, + "calibration_in_the_large": -0.002323505375044716, + "expected_calibration_error_10bin": 0.005821628417730025, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.7611516438862209, + "auprc": 0.05363040080696914, + "brier": 0.011545404812610073, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.009984237457012761, + "calibration_in_the_large": -0.0016988585634326574, + "expected_calibration_error_10bin": 0.005464005289887384, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7760460693153001, + "auprc": 0.06121385051033434, + "brier": 0.012525018027309633, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.01053327099852565, + "calibration_in_the_large": -0.0022451152738365253, + "expected_calibration_error_10bin": 0.005521585437010558, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7757502113271344, + "auprc": 0.06171519233733674, + "brier": 0.012549978684953616, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.0109767135052188, + "calibration_in_the_large": -0.0018016727671433756, + "expected_calibration_error_10bin": 0.0056730313146622115, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7757924767540152, + "auprc": 0.061693282813487016, + "brier": 0.012557597038103243, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.011107776574115054, + "calibration_in_the_large": -0.0016706096982471216, + "expected_calibration_error_10bin": 0.005523042574169354, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + } + ], + "reason": null + }, + "I85": { + "time_averaged_auroc": 0.9904640147643611, + "time_averaged_auprc": 0.2336084693580679, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2793, + "positives": 1, + "negatives": 2792, + "auroc": 0.9749283667621776, + "auprc": 0.014084507042253521, + "brier": 0.000407097276253629, + "calibration": { + "observed_rate": 0.00035803795202291446, + "mean_prediction": 0.0005722088716959762, + "calibration_in_the_large": 0.00021417091967306174, + "expected_calibration_error_10bin": 0.0002141709196730618, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 2, + "negatives": 2791, + "auroc": 0.9845933357219635, + "auprc": 0.09538152610441766, + "brier": 0.0007469635166934718, + "calibration": { + "observed_rate": 0.0007160759040458289, + "mean_prediction": 0.0009701872905949219, + "calibration_in_the_large": 0.000254111386549093, + "expected_calibration_error_10bin": 0.0005723725534108734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9912154894227322, + "auprc": 0.1775991623552599, + "brier": 0.0013670268702263395, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0011430703936444481, + "calibration_in_the_large": -0.0002890814144472097, + "expected_calibration_error_10bin": 0.0009568729679691085, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9912154894227322, + "auprc": 0.1775991623552599, + "brier": 0.0013801516915683445, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0013686812269733224, + "calibration_in_the_large": -6.347058111833546e-05, + "expected_calibration_error_10bin": 0.0011342893012109994, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9911258515596988, + "auprc": 0.18425324675324672, + "brier": 0.001397816780282831, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.001578286674087178, + "calibration_in_the_large": 0.0001461348659955201, + "expected_calibration_error_10bin": 0.0012294559644351532, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.9916418828838068, + "auprc": 0.2662220651572672, + "brier": 0.0022216881642933544, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.0017098238209517038, + "calibration_in_the_large": -0.000796441843208697, + "expected_calibration_error_10bin": 0.0016911624923133224, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.99245960502693, + "auprc": 0.28687319624819624, + "brier": 0.002491385519707137, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0018552452822414066, + "calibration_in_the_large": -0.001009058333941909, + "expected_calibration_error_10bin": 0.002162603606023327, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9929358237547893, + "auprc": 0.3034854764768682, + "brier": 0.0027696488550305338, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0020008103148072055, + "calibration_in_the_large": -0.0012215312533990245, + "expected_calibration_error_10bin": 0.0024345266207257714, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.992816091954023, + "auprc": 0.29784652687933943, + "brier": 0.0027523927583449547, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002185394970080041, + "calibration_in_the_large": -0.0010369465981261892, + "expected_calibration_error_10bin": 0.0018420720335329758, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9930555555555556, + "auprc": 0.305588757144982, + "brier": 0.0027423745173663187, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0022653415934249578, + "calibration_in_the_large": -0.0009569999747812722, + "expected_calibration_error_10bin": 0.0018308391676916775, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9931353767560664, + "auprc": 0.30605135870047984, + "brier": 0.0027379585798884853, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0023555454698576273, + "calibration_in_the_large": -0.0008667960983486027, + "expected_calibration_error_10bin": 0.002083686316216602, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9934546615581098, + "auprc": 0.3109625582186558, + "brier": 0.002693716031874606, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002559217218164881, + "calibration_in_the_large": -0.000663124350041349, + "expected_calibration_error_10bin": 0.002237113488385877, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9934546615581098, + "auprc": 0.3109625582186558, + "brier": 0.0026935540942484267, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0025623943148409996, + "calibration_in_the_large": -0.0006599472533652304, + "expected_calibration_error_10bin": 0.0022389047077136116, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + } + ], + "reason": null + }, + "I87": { + "time_averaged_auroc": 0.6982064792290077, + "time_averaged_auprc": 0.013216776174615962, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.8148414985590778, + "auprc": 0.008816266267800403, + "brier": 0.0014346539590263687, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0009378952756095576, + "calibration_in_the_large": -0.0005009536452537517, + "expected_calibration_error_10bin": 0.0005009536452537517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 7, + "negatives": 2773, + "auroc": 0.6795631343052908, + "auprc": 0.006212665643924463, + "brier": 0.0025136043047702546, + "calibration": { + "observed_rate": 0.002517985611510791, + "mean_prediction": 0.0016872003955267828, + "calibration_in_the_large": -0.0008307852159840084, + "expected_calibration_error_10bin": 0.0008307852159840084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 10, + "negatives": 2770, + "auroc": 0.6612996389891697, + "auprc": 0.009242282022472424, + "brier": 0.003590013028234913, + "calibration": { + "observed_rate": 0.0035971223021582736, + "mean_prediction": 0.0024857575469718705, + "calibration_in_the_large": -0.001111364755186403, + "expected_calibration_error_10bin": 0.001111364755186403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6720837847598411, + "auprc": 0.009639488368804985, + "brier": 0.003950864055979487, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.0030415649907455655, + "calibration_in_the_large": -0.0009152695416285352, + "expected_calibration_error_10bin": 0.0009152695416285352, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6761876621031551, + "auprc": 0.009687209422363372, + "brier": 0.003958468816828367, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.0035919750589030845, + "calibration_in_the_large": -0.00036485947347101623, + "expected_calibration_error_10bin": 0.00036485947347101623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6720509537410946, + "auprc": 0.009665575740526672, + "brier": 0.003965092554350561, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.003932771623827622, + "calibration_in_the_large": -2.4062908546478544e-05, + "expected_calibration_error_10bin": 2.4062908546478544e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6864763969171483, + "auprc": 0.010689923674088149, + "brier": 0.004332182112618144, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.004456198993854721, + "calibration_in_the_large": 0.00013965223126479343, + "expected_calibration_error_10bin": 0.00013965223126479335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6850915221579962, + "auprc": 0.011137074965762413, + "brier": 0.004340161652851259, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.004875526472388504, + "calibration_in_the_large": 0.0005589797097985761, + "expected_calibration_error_10bin": 0.0005589797097985763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6836464354527938, + "auprc": 0.010904717697851334, + "brier": 0.004349452857751439, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.005228341181478597, + "calibration_in_the_large": 0.000911794418888669, + "expected_calibration_error_10bin": 0.0009117944188886695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7069305829696144, + "auprc": 0.01944185653180954, + "brier": 0.0046787672975238635, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.00556411801968522, + "calibration_in_the_large": 0.0008878590268794652, + "expected_calibration_error_10bin": 0.000887859026879465, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7067359817630869, + "auprc": 0.01968548958775596, + "brier": 0.004688214815102462, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.005955979111893599, + "calibration_in_the_large": 0.0012797201190878436, + "expected_calibration_error_10bin": 0.0012797201190878436, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7058185760751716, + "auprc": 0.020086658616820817, + "brier": 0.004700825059120297, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.006351461711833083, + "calibration_in_the_large": 0.001675202719027328, + "expected_calibration_error_10bin": 0.0016752027190273277, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + { + "valid": 2780, + "positives": 14, + "negatives": 2766, + "auroc": 0.7259580621836587, + "auprc": 0.026608881730026953, + "brier": 0.005022669463576909, + "calibration": { + "observed_rate": 0.005035971223021582, + "mean_prediction": 0.006426417282587902, + "calibration_in_the_large": 0.0013904460595663198, + "expected_calibration_error_10bin": 0.00139044605956632, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + } + ], + "reason": null + }, + "I89": { + "time_averaged_auroc": 0.8576158590772552, + "time_averaged_auprc": 0.017257192092151822, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2826, + "positives": 1, + "negatives": 2825, + "auroc": 0.9596460176991151, + "auprc": 0.008695652173913044, + "brier": 0.0003533621446556422, + "calibration": { + "observed_rate": 0.00035385704175513094, + "mean_prediction": 0.0001692427049050372, + "calibration_in_the_large": -0.00018461433685009374, + "expected_calibration_error_10bin": 0.00018461433685009374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.8624394851812492, + "auprc": 0.010150103815456122, + "brier": 0.0010595202497726657, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0003184060717007837, + "calibration_in_the_large": -0.0007431650535646091, + "expected_calibration_error_10bin": 0.0007431650535646091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8263642806520198, + "auprc": 0.008777216266475003, + "brier": 0.0014127144459660386, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0004093423013398776, + "calibration_in_the_large": -0.0010060858656806462, + "expected_calibration_error_10bin": 0.0010060858656806462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8304394046775336, + "auprc": 0.008715575603891154, + "brier": 0.0014123560374721684, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0004946393491424907, + "calibration_in_the_large": -0.0009207888178780331, + "expected_calibration_error_10bin": 0.0009207888178780331, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8637362637362638, + "auprc": 0.023521268538869367, + "brier": 0.0017609209989978656, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0005936731907999312, + "calibration_in_the_large": -0.0011756120179757233, + "expected_calibration_error_10bin": 0.0011756120179757233, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8591279688053881, + "auprc": 0.02252732336403736, + "brier": 0.0017598432085821098, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0007048608493563617, + "calibration_in_the_large": -0.001064424359419293, + "expected_calibration_error_10bin": 0.001064424359419293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8556540233959589, + "auprc": 0.022131749966356324, + "brier": 0.0017592330101467908, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0007755905018798179, + "calibration_in_the_large": -0.0009936947068958366, + "expected_calibration_error_10bin": 0.0009936947068958366, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8525345622119815, + "auprc": 0.02084048614221028, + "brier": 0.0017590722712680223, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008145731737803823, + "calibration_in_the_large": -0.0009547120349952722, + "expected_calibration_error_10bin": 0.0009547120349952722, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8488479262672811, + "auprc": 0.019621625785792067, + "brier": 0.0017587484985251932, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008717527640439336, + "calibration_in_the_large": -0.0008975324447317209, + "expected_calibration_error_10bin": 0.0008975324447317209, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8484225451967388, + "auprc": 0.019554255883612197, + "brier": 0.0017585405176160501, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009127559512033726, + "calibration_in_the_large": -0.0008565292575722819, + "expected_calibration_error_10bin": 0.0008565292575722819, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8477844735909252, + "auprc": 0.019721822457601686, + "brier": 0.0017582504964127905, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009827126236630923, + "calibration_in_the_large": -0.0007865725851125623, + "expected_calibration_error_10bin": 0.0007865725851125623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8470046082949308, + "auprc": 0.02004320859987955, + "brier": 0.0017577291304649752, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0010657384553601496, + "calibration_in_the_large": -0.0007035467534155049, + "expected_calibration_error_10bin": 0.0007035467534155049, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8470046082949308, + "auprc": 0.02004320859987955, + "brier": 0.0017577228789542989, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.001068342750708517, + "calibration_in_the_large": -0.0007009424580671376, + "expected_calibration_error_10bin": 0.0007009424580671376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + } + ], + "reason": null + }, + "I95": { + "time_averaged_auroc": 0.7510613474409784, + "time_averaged_auprc": 0.08233376224034125, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2485, + "positives": 19, + "negatives": 2466, + "auroc": 0.7463183506210782, + "auprc": 0.03386900184748469, + "brier": 0.007534350791958531, + "calibration": { + "observed_rate": 0.007645875251509054, + "mean_prediction": 0.006025067724276852, + "calibration_in_the_large": -0.0016208075272322016, + "expected_calibration_error_10bin": 0.0016208075272322016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 33, + "negatives": 2452, + "auroc": 0.7540659449305452, + "auprc": 0.04617608788098722, + "brier": 0.012984997332224265, + "calibration": { + "observed_rate": 0.013279678068410463, + "mean_prediction": 0.010353693775553912, + "calibration_in_the_large": -0.002925984292856551, + "expected_calibration_error_10bin": 0.002925984292856551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 41, + "negatives": 2444, + "auroc": 0.7266077202506886, + "auprc": 0.04572285172396389, + "brier": 0.016126267130977093, + "calibration": { + "observed_rate": 0.016498993963782696, + "mean_prediction": 0.013793527267685195, + "calibration_in_the_large": -0.002705466696097501, + "expected_calibration_error_10bin": 0.002705466696097499, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 52, + "negatives": 2433, + "auroc": 0.7356302760125202, + "auprc": 0.05507652372473681, + "brier": 0.020259142913343763, + "calibration": { + "observed_rate": 0.020925553319919517, + "mean_prediction": 0.01621342709692527, + "calibration_in_the_large": -0.004712126222994249, + "expected_calibration_error_10bin": 0.004855025522525644, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 58, + "negatives": 2427, + "auroc": 0.7362928548086896, + "auprc": 0.06047316091144049, + "brier": 0.022525101527913906, + "calibration": { + "observed_rate": 0.023340040241448694, + "mean_prediction": 0.018404772638643565, + "calibration_in_the_large": -0.004935267602805129, + "expected_calibration_error_10bin": 0.006596786322639471, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 66, + "negatives": 2419, + "auroc": 0.7492953511969634, + "auprc": 0.06805087740980527, + "brier": 0.025468669917262588, + "calibration": { + "observed_rate": 0.026559356136820925, + "mean_prediction": 0.020688063949634652, + "calibration_in_the_large": -0.005871292187186274, + "expected_calibration_error_10bin": 0.008628870232016228, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 77, + "negatives": 2408, + "auroc": 0.7524107951848815, + "auprc": 0.0985045851334859, + "brier": 0.029330145741304478, + "calibration": { + "observed_rate": 0.030985915492957747, + "mean_prediction": 0.02260119656718784, + "calibration_in_the_large": -0.008384718925769908, + "expected_calibration_error_10bin": 0.01020772960667088, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 82, + "negatives": 2403, + "auroc": 0.7587568385047146, + "auprc": 0.10460971639607733, + "brier": 0.031072744980633456, + "calibration": { + "observed_rate": 0.03299798792756539, + "mean_prediction": 0.024201065507460706, + "calibration_in_the_large": -0.008796922420104686, + "expected_calibration_error_10bin": 0.010974198680041241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 87, + "negatives": 2398, + "auroc": 0.7578777333601756, + "auprc": 0.10774392220376977, + "brier": 0.03287415335156898, + "calibration": { + "observed_rate": 0.03501006036217304, + "mean_prediction": 0.0256371566788968, + "calibration_in_the_large": -0.009372903683276236, + "expected_calibration_error_10bin": 0.011874904308980607, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 93, + "negatives": 2392, + "auroc": 0.7617776099543281, + "auprc": 0.10833435977487768, + "brier": 0.03499788671231431, + "calibration": { + "observed_rate": 0.03742454728370221, + "mean_prediction": 0.02687119977261545, + "calibration_in_the_large": -0.01055334751108676, + "expected_calibration_error_10bin": 0.013438290763684777, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 97, + "negatives": 2388, + "auroc": 0.7610734082785059, + "auprc": 0.10931520812608712, + "brier": 0.03646886480281438, + "calibration": { + "observed_rate": 0.03903420523138833, + "mean_prediction": 0.028318184974342884, + "calibration_in_the_large": -0.010716020257045444, + "expected_calibration_error_10bin": 0.015331791319942448, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 103, + "negatives": 2382, + "auroc": 0.7609172352514408, + "auprc": 0.1153284870539963, + "brier": 0.0385476243424645, + "calibration": { + "observed_rate": 0.04144869215291751, + "mean_prediction": 0.029714079927095592, + "calibration_in_the_large": -0.011734612225821915, + "expected_calibration_error_10bin": 0.013873703705528246, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + { + "valid": 2485, + "positives": 104, + "negatives": 2381, + "auroc": 0.7627733983781863, + "auprc": 0.11713412693772364, + "brier": 0.03888086507386707, + "calibration": { + "observed_rate": 0.041851106639839035, + "mean_prediction": 0.02993973979173168, + "calibration_in_the_large": -0.011911366848107355, + "expected_calibration_error_10bin": 0.014082873996063297, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + } + ], + "reason": null + }, + "I96": { + "time_averaged_auroc": 0.8698406905411593, + "time_averaged_auprc": 0.043202342755436364, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.458149316097419e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003072230502190431, + "calibration_in_the_large": 0.0003072230502190431, + "expected_calibration_error_10bin": 0.0003072230502190431, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.9946996466431095, + "auprc": 0.0625, + "brier": 0.0003490421384590154, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005269743222628325, + "calibration_in_the_large": 0.00017374224879056118, + "expected_calibration_error_10bin": 0.00017374224879056118, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9864450730787364, + "auprc": 0.06201396253092966, + "brier": 0.0010452538698899779, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0007133135882361318, + "calibration_in_the_large": -0.00034638263218068205, + "expected_calibration_error_10bin": 0.00034638263218068205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8506367173682349, + "auprc": 0.0452102808995084, + "brier": 0.0013970571911628028, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007837216069336179, + "calibration_in_the_large": -0.0006292066869554672, + "expected_calibration_error_10bin": 0.0006292066869554672, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8546162009197029, + "auprc": 0.04644640472167497, + "brier": 0.0013927953230968614, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009785730170534725, + "calibration_in_the_large": -0.0004343552768356126, + "expected_calibration_error_10bin": 0.0004343552768356126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8538203042094092, + "auprc": 0.0462380705076177, + "brier": 0.001392239153953326, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0010481582484486171, + "calibration_in_the_large": -0.00036477004544046795, + "expected_calibration_error_10bin": 0.00036477004544046795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8385704175513092, + "auprc": 0.03752680121902282, + "brier": 0.0017429090767184534, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0012249691488145018, + "calibration_in_the_large": -0.0005411912185468546, + "expected_calibration_error_10bin": 0.0005411912185468546, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8377211606510969, + "auprc": 0.03821967716942652, + "brier": 0.001742002002803333, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0013031920659014157, + "calibration_in_the_large": -0.0004629683014599406, + "expected_calibration_error_10bin": 0.0004629683014599406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8374380750176929, + "auprc": 0.037495355145658896, + "brier": 0.0017417629403057076, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0014188195061833912, + "calibration_in_the_large": -0.0003473408611779651, + "expected_calibration_error_10bin": 0.0003473408611779651, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8358811040339703, + "auprc": 0.037217364786098675, + "brier": 0.0017412370261433404, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001497703376448531, + "calibration_in_the_large": -0.00026845699091282535, + "expected_calibration_error_10bin": 0.00026845699091282535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8514454277286135, + "auprc": 0.03503867356487426, + "brier": 0.002089475054390204, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0017007097610279376, + "calibration_in_the_large": -0.0004186826798056901, + "expected_calibration_error_10bin": 0.0004186826798056901, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.848495575221239, + "auprc": 0.03528597373593324, + "brier": 0.002088577071648415, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0018064964613419784, + "calibration_in_the_large": -0.00031289597949164935, + "expected_calibration_error_10bin": 0.00031289597949164935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8483185840707964, + "auprc": 0.0352355487844912, + "brier": 0.0020885633802491866, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.00181321993011637, + "calibration_in_the_large": -0.0003061725107172577, + "expected_calibration_error_10bin": 0.0003061725107172577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "I97": { + "time_averaged_auroc": 0.8031052070635164, + "time_averaged_auprc": 0.017716274912341914, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8927266081871345, + "auprc": 0.0301053384269963, + "brier": 0.0014494237362125695, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0008644309555849599, + "calibration_in_the_large": -0.0005954230590135801, + "expected_calibration_error_10bin": 0.0005954230590135801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8760964912280702, + "auprc": 0.025169601573482414, + "brier": 0.0014479526596896117, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0012954999996721724, + "calibration_in_the_large": -0.00016435401492636767, + "expected_calibration_error_10bin": 0.00016435401492636767, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.8347707908629972, + "auprc": 0.018420506513996373, + "brier": 0.0025373419213269442, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.001599951704157738, + "calibration_in_the_large": -0.0009547928213897072, + "expected_calibration_error_10bin": 0.0009547928213897072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.832470858815535, + "auprc": 0.017701678098710545, + "brier": 0.0025363872648185384, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0019000724789359985, + "calibration_in_the_large": -0.0006546720466114467, + "expected_calibration_error_10bin": 0.0006546720466114467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.8288118760127542, + "auprc": 0.016416271899485944, + "brier": 0.002536433695656683, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.002156053810904268, + "calibration_in_the_large": -0.00039869071464317726, + "expected_calibration_error_10bin": 0.00039869071464317726, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.8245779101981078, + "auprc": 0.015266788337266243, + "brier": 0.0025371922522616497, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.002448042785534491, + "calibration_in_the_large": -0.0001067017400129544, + "expected_calibration_error_10bin": 0.0001067017400129544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 9, + "negatives": 2731, + "auroc": 0.7514544936734611, + "auprc": 0.012983336130342804, + "brier": 0.003265708193979395, + "calibration": { + "observed_rate": 0.0032846715328467154, + "mean_prediction": 0.0026585931759382886, + "calibration_in_the_large": -0.0006260783569084268, + "expected_calibration_error_10bin": 0.0006260783569084268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7681684981684982, + "auprc": 0.01462742094437602, + "brier": 0.0036246585628360497, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.002851401689386099, + "calibration_in_the_large": -0.0007982333471102513, + "expected_calibration_error_10bin": 0.0007982333471102513, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7655677655677655, + "auprc": 0.014285728533215724, + "brier": 0.003626084725215886, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0030886065545370784, + "calibration_in_the_large": -0.0005610284819592718, + "expected_calibration_error_10bin": 0.0005610284819592718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7626170092274892, + "auprc": 0.013942592964625843, + "brier": 0.003989590261482183, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0033122369665954175, + "calibration_in_the_large": -0.000702361573550568, + "expected_calibration_error_10bin": 0.000702361573550568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.761517705453213, + "auprc": 0.013679221418214373, + "brier": 0.003990990160906874, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0034469076140771406, + "calibration_in_the_large": -0.0005676909260688449, + "expected_calibration_error_10bin": 0.0005676909260688449, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7609180852126987, + "auprc": 0.013611792710891978, + "brier": 0.003992574751173278, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.003622921669972979, + "calibration_in_the_large": -0.00039167687017300666, + "expected_calibration_error_10bin": 0.00039167687017300666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.7806695992179863, + "auprc": 0.024101296308840333, + "brier": 0.0043309087673362315, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.003660742399322267, + "calibration_in_the_large": -0.0007188196444733539, + "expected_calibration_error_10bin": 0.0007188196444733539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + } + ], + "reason": null + }, + "J02": { + "time_averaged_auroc": 0.6712948486014448, + "time_averaged_auprc": 0.0016411093048449984, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 4.1690671598758185e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034703257176204764, + "calibration_in_the_large": 0.00034703257176204764, + "expected_calibration_error_10bin": 0.00034703257176204764, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5630311614730878, + "auprc": 0.0008097165991902834, + "brier": 0.00035518146633097507, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007244124110459465, + "calibration_in_the_large": 0.0003704301101609908, + "expected_calibration_error_10bin": 0.0003704301101609908, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5718838526912181, + "auprc": 0.0008264462809917355, + "brier": 0.00035614580896273527, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0008916766826561508, + "calibration_in_the_large": 0.000537694381771195, + "expected_calibration_error_10bin": 0.000537694381771195, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6666666666666666, + "auprc": 0.0015838897221483715, + "brier": 0.0007113271506484924, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0010486005173441831, + "calibration_in_the_large": 0.0003406359155742716, + "expected_calibration_error_10bin": 0.0003406359155742716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6707403471484237, + "auprc": 0.0016047407117504612, + "brier": 0.000715300265940334, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001271351824882358, + "calibration_in_the_large": 0.0005633872231124464, + "expected_calibration_error_10bin": 0.0005633872231124464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6964222458377612, + "auprc": 0.001710116398245171, + "brier": 0.0007194630271380296, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0014382751447182618, + "calibration_in_the_large": 0.0007303105429483503, + "expected_calibration_error_10bin": 0.0007303105429483503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.699964576691463, + "auprc": 0.0017216806172933254, + "brier": 0.000721578415676357, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0015932186855213404, + "calibration_in_the_large": 0.0008852540837514289, + "expected_calibration_error_10bin": 0.0008852540837514289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.699964576691463, + "auprc": 0.001726683497955146, + "brier": 0.0007243437675575421, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0016896007721213442, + "calibration_in_the_large": 0.0009816361703514328, + "expected_calibration_error_10bin": 0.0009816361703514328, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6902231668437833, + "auprc": 0.0016718429007200615, + "brier": 0.0007267786027910707, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0017864319758538149, + "calibration_in_the_large": 0.0010784673740839032, + "expected_calibration_error_10bin": 0.0010784673740839032, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6895147006730429, + "auprc": 0.0016709531149806866, + "brier": 0.0007336384351518931, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001964060591000124, + "calibration_in_the_large": 0.0012560959892302125, + "expected_calibration_error_10bin": 0.0012560959892302125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6879206517888771, + "auprc": 0.0016635620834226244, + "brier": 0.0007380861708444089, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0021278477018179818, + "calibration_in_the_large": 0.0014198831000480703, + "expected_calibration_error_10bin": 0.0014198831000480703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7094259390503189, + "auprc": 0.002350359393678055, + "brier": 0.0010978512275583515, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0022791213894044504, + "calibration_in_the_large": 0.001217174486749583, + "expected_calibration_error_10bin": 0.001217174486749583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7097802976612332, + "auprc": 0.0023533203377640623, + "brier": 0.0010982493435961395, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0022898995818825753, + "calibration_in_the_large": 0.001227952679227708, + "expected_calibration_error_10bin": 0.001227952679227708, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "J06": { + "time_averaged_auroc": 0.6700723635466823, + "time_averaged_auprc": 0.009571175589977868, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.4397868561278863, + "auprc": 0.0006337135614702154, + "brier": 0.0003608868242483996, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.000609474395954258, + "calibration_in_the_large": 0.00025436075959062165, + "expected_calibration_error_10bin": 0.00025436075959062165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.6551172707889126, + "auprc": 0.0020031752366245327, + "brier": 0.0007320872691411383, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.001343008014785919, + "calibration_in_the_large": 0.0006327807420586462, + "expected_calibration_error_10bin": 0.0006327807420586462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.6462851048702453, + "auprc": 0.002261115465772017, + "brier": 0.0011030153699949053, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0018139084515773618, + "calibration_in_the_large": 0.0007485675424864528, + "expected_calibration_error_10bin": 0.0007485675424864528, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.6582443653618031, + "auprc": 0.00914302718699672, + "brier": 0.0021543717779025705, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0022235370424836406, + "calibration_in_the_large": 9.285522430182254e-05, + "expected_calibration_error_10bin": 0.00014848740077091186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.6545077105575327, + "auprc": 0.009318873086034431, + "brier": 0.002166334514138857, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.002582749654438872, + "calibration_in_the_large": 0.00045206783625705406, + "expected_calibration_error_10bin": 0.0004520678362570539, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.6753801556222346, + "auprc": 0.008745499518235271, + "brier": 0.0025502125379052594, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.003007314681818746, + "calibration_in_the_large": 0.0005215192272732916, + "expected_calibration_error_10bin": 0.0005215192272732918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7197293447293447, + "auprc": 0.012591102779144693, + "brier": 0.0029092533835456957, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0033966275329643347, + "calibration_in_the_large": 0.0005557184420552437, + "expected_calibration_error_10bin": 0.0005557184420552435, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.719284188034188, + "auprc": 0.012671377121086685, + "brier": 0.0029214373497922284, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0036104396242412854, + "calibration_in_the_large": 0.0007695305333321944, + "expected_calibration_error_10bin": 0.0007695305333321947, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7161235754985755, + "auprc": 0.012626095797610905, + "brier": 0.002931615264199697, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0039281879088587275, + "calibration_in_the_large": 0.0010872788179496365, + "expected_calibration_error_10bin": 0.001087278817949637, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 9, + "negatives": 2807, + "auroc": 0.7350275105886078, + "auprc": 0.012783969887438318, + "brier": 0.0033635580816394383, + "calibration": { + "observed_rate": 0.0031960227272727275, + "mean_prediction": 0.004433258054874691, + "calibration_in_the_large": 0.001237235327601964, + "expected_calibration_error_10bin": 0.001237235327601964, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.697255880256593, + "auprc": 0.011970044531034858, + "brier": 0.0037313726089218163, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.004757305648881397, + "calibration_in_the_large": 0.0012061692852450337, + "expected_calibration_error_10bin": 0.001206169285245034, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6970993818354732, + "auprc": 0.014836552857172747, + "brier": 0.0044401388535656, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.004961394181460899, + "calibration_in_the_large": 0.0007000305450972633, + "expected_calibration_error_10bin": 0.0016668918220552405, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6970993818354732, + "auprc": 0.014840735641090877, + "brier": 0.004444046461864292, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.005019830242002466, + "calibration_in_the_large": 0.0007584666056388301, + "expected_calibration_error_10bin": 0.0016987713026391693, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + } + ], + "reason": null + }, + "J12": { + "time_averaged_auroc": 0.9797560113154173, + "time_averaged_auprc": 0.017189132706374084, + "valid_timepoint_cells": 4, + "timepoints": [ + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.2858493068348036e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000414937873621224, + "calibration_in_the_large": 0.000414937873621224, + "expected_calibration_error_10bin": 0.000414937873621224, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.329360950575243e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000675730907922395, + "calibration_in_the_large": 0.000675730907922395, + "expected_calibration_error_10bin": 0.000675730907922395, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.7234941156847827e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012805200897928726, + "calibration_in_the_large": 0.0012805200897928726, + "expected_calibration_error_10bin": 0.0012805200897928726, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.6467649214452928e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014421503708635965, + "calibration_in_the_large": 0.0014421503708635965, + "expected_calibration_error_10bin": 0.0014421503708635965, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.698788131701915e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017775156043578276, + "calibration_in_the_large": 0.0017775156043578276, + "expected_calibration_error_10bin": 0.0017775156043578276, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 5.189487627676587e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002020638484087743, + "calibration_in_the_large": 0.002020638484087743, + "expected_calibration_error_10bin": 0.002020638484087743, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.425789867164042e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0022632097862533627, + "calibration_in_the_large": 0.0022632097862533627, + "expected_calibration_error_10bin": 0.002263209786253363, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 9.581455109973587e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002550884544044416, + "calibration_in_the_large": 0.002550884544044416, + "expected_calibration_error_10bin": 0.0025508845440444156, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 0.0001177248831579357, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0027706102538178723, + "calibration_in_the_large": 0.0027706102538178723, + "expected_calibration_error_10bin": 0.0027706102538178727, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9809052333804809, + "auprc": 0.01818181818181818, + "brier": 0.000505633962514574, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0031507888017863208, + "calibration_in_the_large": 0.0027973070060987987, + "expected_calibration_error_10bin": 0.0027973070060987983, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9798444130127298, + "auprc": 0.017241379310344827, + "brier": 0.0005369797408460106, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0034228649648279166, + "calibration_in_the_large": 0.0030693831691403946, + "expected_calibration_error_10bin": 0.003069383169140394, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9791371994342292, + "auprc": 0.016666666666666666, + "brier": 0.0005646562976237984, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0036388179041439, + "calibration_in_the_large": 0.003285336108456378, + "expected_calibration_error_10bin": 0.0032853361084563782, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9791371994342292, + "auprc": 0.016666666666666666, + "brier": 0.0005673235579673323, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.003675697719675999, + "calibration_in_the_large": 0.0033222159239884768, + "expected_calibration_error_10bin": 0.003322215923988477, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "J15": { + "time_averaged_auroc": 0.7983200678195105, + "time_averaged_auprc": 0.014105238086750503, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2795, + "positives": 1, + "negatives": 2794, + "auroc": 0.9226914817465999, + "auprc": 0.004608294930875576, + "brier": 0.0003629582016705506, + "calibration": { + "observed_rate": 0.00035778175313059033, + "mean_prediction": 0.0010733148037067543, + "calibration_in_the_large": 0.0007155330505761639, + "expected_calibration_error_10bin": 0.0007155330505761639, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 3, + "negatives": 2792, + "auroc": 0.8636580706781279, + "auprc": 0.005903494893132199, + "brier": 0.0010855828544468996, + "calibration": { + "observed_rate": 0.001073345259391771, + "mean_prediction": 0.0019419299924250078, + "calibration_in_the_large": 0.0008685847330332369, + "expected_calibration_error_10bin": 0.0008685847330332369, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 7, + "negatives": 2788, + "auroc": 0.763527362164378, + "auprc": 0.010025865898324946, + "brier": 0.0025157689861506688, + "calibration": { + "observed_rate": 0.0025044722719141325, + "mean_prediction": 0.0027747986626685123, + "calibration_in_the_large": 0.0002703263907543798, + "expected_calibration_error_10bin": 0.00027032639075437963, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.77749860413177, + "auprc": 0.012907943943550552, + "brier": 0.00322944009420536, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.0033577627616951694, + "calibration_in_the_large": 0.00013772698351985618, + "expected_calibration_error_10bin": 0.00013772698351985612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.77749860413177, + "auprc": 0.013047119529245964, + "brier": 0.003238494099051933, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.003781980648665941, + "calibration_in_the_large": 0.0005619448704906279, + "expected_calibration_error_10bin": 0.0005619448704906279, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 10, + "negatives": 2785, + "auroc": 0.791310592459605, + "auprc": 0.014708119082039292, + "brier": 0.003598140991949757, + "calibration": { + "observed_rate": 0.0035778175313059034, + "mean_prediction": 0.004168910046242649, + "calibration_in_the_large": 0.0005910925149367457, + "expected_calibration_error_10bin": 0.0005910925149367458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.7772487723080609, + "auprc": 0.015675850272081026, + "brier": 0.004314043217885838, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.004610411924557424, + "calibration_in_the_large": 0.00031703088699033995, + "expected_calibration_error_10bin": 0.0003170308869903402, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.7771289974847287, + "auprc": 0.016155481266965088, + "brier": 0.004322079530647997, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.0049070641506140725, + "calibration_in_the_large": 0.0006136831130469887, + "expected_calibration_error_10bin": 0.0006136831130469883, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 14, + "negatives": 2781, + "auroc": 0.7812194996661016, + "auprc": 0.017111048017342253, + "brier": 0.005037270609987942, + "calibration": { + "observed_rate": 0.005008944543828265, + "mean_prediction": 0.005277234670358247, + "calibration_in_the_large": 0.0002682901265299818, + "expected_calibration_error_10bin": 0.0002682901265299816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7858513189448442, + "auprc": 0.01803326398793367, + "brier": 0.005396654234928237, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.005530252257905531, + "calibration_in_the_large": 0.0001635259609466767, + "expected_calibration_error_10bin": 0.0004560324879215992, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7864748201438849, + "auprc": 0.018345825257741716, + "brier": 0.005409602032721482, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.00585371921365281, + "calibration_in_the_large": 0.00048699291669395545, + "expected_calibration_error_10bin": 0.00048699291669395496, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.786978417266187, + "auprc": 0.018425310512525, + "brier": 0.005423194298927054, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.006202215796380897, + "calibration_in_the_large": 0.0008354894994220419, + "expected_calibration_error_10bin": 0.0008354894994220411, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.787074340527578, + "auprc": 0.018420477535999246, + "brier": 0.005424877764922088, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.006245427034790475, + "calibration_in_the_large": 0.0008787007378316201, + "expected_calibration_error_10bin": 0.0008787007378316193, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + } + ], + "reason": null + }, + "J18": { + "time_averaged_auroc": 0.7851818738952843, + "time_averaged_auprc": 0.06286560463845445, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.8201853243175558, + "auprc": 0.01386407488673623, + "brier": 0.0033563587338244394, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.0036824245178323813, + "calibration_in_the_large": 0.0003128999951816885, + "expected_calibration_error_10bin": 0.0003128999951816885, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.8027313296413786, + "auprc": 0.02317029754354643, + "brier": 0.0052290706337231934, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.007157892881673084, + "calibration_in_the_large": 0.0019164102908831183, + "expected_calibration_error_10bin": 0.0019164102908831178, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.7984831325714677, + "auprc": 0.040573686133057014, + "brier": 0.008116621320178494, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.009166242956274486, + "calibration_in_the_large": 0.0009296274564616815, + "expected_calibration_error_10bin": 0.0009296274564616815, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 27, + "negatives": 2644, + "auroc": 0.7681963355185746, + "auprc": 0.0398862063195684, + "brier": 0.009964604802460225, + "calibration": { + "observed_rate": 0.010108573567952079, + "mean_prediction": 0.010682099743929975, + "calibration_in_the_large": 0.0005735261759778967, + "expected_calibration_error_10bin": 0.0005996862788329362, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 31, + "negatives": 2640, + "auroc": 0.773985826001955, + "auprc": 0.05012923605791129, + "brier": 0.01132939501350416, + "calibration": { + "observed_rate": 0.011606140022463497, + "mean_prediction": 0.012145339630354418, + "calibration_in_the_large": 0.0005391996078909205, + "expected_calibration_error_10bin": 0.0016861908514568152, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 37, + "negatives": 2634, + "auroc": 0.7774733731453549, + "auprc": 0.05417745649402558, + "brier": 0.013493861621752774, + "calibration": { + "observed_rate": 0.013852489704230626, + "mean_prediction": 0.013633745365258835, + "calibration_in_the_large": -0.0002187443389717915, + "expected_calibration_error_10bin": 0.0031816417740758228, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 44, + "negatives": 2627, + "auroc": 0.7819064262726234, + "auprc": 0.06784556911806941, + "brier": 0.015857245020662037, + "calibration": { + "observed_rate": 0.01647323099962561, + "mean_prediction": 0.015503867190100308, + "calibration_in_the_large": -0.0009693638095253018, + "expected_calibration_error_10bin": 0.004297460721879697, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 51, + "negatives": 2620, + "auroc": 0.7764182008681335, + "auprc": 0.07932222423614373, + "brier": 0.01823743835224969, + "calibration": { + "observed_rate": 0.019093972295020592, + "mean_prediction": 0.016833386931153934, + "calibration_in_the_large": -0.002260585363866658, + "expected_calibration_error_10bin": 0.004195575912900624, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 52, + "negatives": 2619, + "auroc": 0.7811628043586807, + "auprc": 0.08450106709960797, + "brier": 0.018549101214995825, + "calibration": { + "observed_rate": 0.019468363908648447, + "mean_prediction": 0.017638521673796898, + "calibration_in_the_large": -0.0018298422348515496, + "expected_calibration_error_10bin": 0.0028063354118156095, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 55, + "negatives": 2616, + "auroc": 0.7795663052543786, + "auprc": 0.08362241427269822, + "brier": 0.01965180518698371, + "calibration": { + "observed_rate": 0.02059153874953201, + "mean_prediction": 0.018813089539265936, + "calibration_in_the_large": -0.0017784492102660733, + "expected_calibration_error_10bin": 0.003034952534032083, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 62, + "negatives": 2609, + "auroc": 0.7818964131604001, + "auprc": 0.09313695176141021, + "brier": 0.021978805499533002, + "calibration": { + "observed_rate": 0.023212280044926994, + "mean_prediction": 0.019613623777886696, + "calibration_in_the_large": -0.0035986562670402983, + "expected_calibration_error_10bin": 0.004932866853516743, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7826524741081703, + "auprc": 0.09354286792737633, + "brier": 0.022717123659619497, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.02092412218961291, + "calibration_in_the_large": -0.003036941082569796, + "expected_calibration_error_10bin": 0.005587580877693187, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7827064154200231, + "auprc": 0.09348080844975688, + "brier": 0.022722126353806556, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.02106855657578831, + "calibration_in_the_large": -0.002892506696394393, + "expected_calibration_error_10bin": 0.005779735002865151, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + } + ], + "reason": null + }, + "J30": { + "time_averaged_auroc": 0.6306466067808097, + "time_averaged_auprc": 0.04826350782241454, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2815, + "positives": 0, + "negatives": 2815, + "auroc": null, + "auprc": null, + "brier": 1.4704135087027062e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006984673529325169, + "calibration_in_the_large": 0.0006984673529325169, + "expected_calibration_error_10bin": 0.0006984673529325169, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 1, + "negatives": 2814, + "auroc": 0.9992892679459844, + "auprc": 0.3333333333333333, + "brier": 0.00033845809097088553, + "calibration": { + "observed_rate": 0.00035523978685612787, + "mean_prediction": 0.0013554166348268876, + "calibration_in_the_large": 0.0010001768479707598, + "expected_calibration_error_10bin": 0.0010001768479707598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.5665007112375533, + "auprc": 0.06757752143588792, + "brier": 0.0010547632780668408, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.001865708278064453, + "calibration_in_the_large": 0.0007999889174960693, + "expected_calibration_error_10bin": 0.0007999889174960693, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.5889046941678521, + "auprc": 0.026617322697640892, + "brier": 0.0010772996037182307, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.002364995510917658, + "calibration_in_the_large": 0.0012992761503492743, + "expected_calibration_error_10bin": 0.001299276150349274, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.5545864483208733, + "auprc": 0.018448017617266207, + "brier": 0.0021422721816537066, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0025887950602748273, + "calibration_in_the_large": 0.00045735633913806, + "expected_calibration_error_10bin": 0.0004573563391380598, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.5663344013290613, + "auprc": 0.0163394951906389, + "brier": 0.0021642617257271604, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0029204201419190767, + "calibration_in_the_large": 0.0007889814207823094, + "expected_calibration_error_10bin": 0.0007889814207823093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.5650884063130415, + "auprc": 0.016292040056995482, + "brier": 0.002173188960172912, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0031084321977971384, + "calibration_in_the_large": 0.0009769934766603711, + "expected_calibration_error_10bin": 0.0009769934766603713, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6218966218966219, + "auprc": 0.016865166708322714, + "brier": 0.0025339539039697556, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.003280274197682798, + "calibration_in_the_large": 0.0007935956896899031, + "expected_calibration_error_10bin": 0.0007935956896899033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.622049247049247, + "auprc": 0.016788842391980672, + "brier": 0.0025501007513195053, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0034932642122243655, + "calibration_in_the_large": 0.0010065857042314704, + "expected_calibration_error_10bin": 0.00100658570423147, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6174196174196174, + "auprc": 0.016769071288873366, + "brier": 0.002565290287423698, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0038247205474584317, + "calibration_in_the_large": 0.0013380420394655365, + "expected_calibration_error_10bin": 0.0013380420394655363, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6194037444037443, + "auprc": 0.01672427857042306, + "brier": 0.0025765335429825797, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.004016813180198666, + "calibration_in_the_large": 0.001530134672205771, + "expected_calibration_error_10bin": 0.0015301346722057711, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6235754985754985, + "auprc": 0.0166732236888682, + "brier": 0.002599676720145865, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.004347909076423546, + "calibration_in_the_large": 0.0018612305684306508, + "expected_calibration_error_10bin": 0.0018612305684306504, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6227106227106227, + "auprc": 0.016733780888743773, + "brier": 0.002601738245610673, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.004444217248154981, + "calibration_in_the_large": 0.001957538740162086, + "expected_calibration_error_10bin": 0.001957538740162086, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + } + ], + "reason": null + }, + "J32": { + "time_averaged_auroc": 0.5982090010001555, + "time_averaged_auprc": 0.003047084443855335, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8946251768033946, + "auprc": 0.0033444816053511705, + "brier": 0.0003537507383684846, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00024227275253547613, + "calibration_in_the_large": -0.00011120904315204598, + "expected_calibration_error_10bin": 0.00011120904315204598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.905940594059406, + "auprc": 0.003745318352059925, + "brier": 0.00035466741076998343, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0003878699146405997, + "calibration_in_the_large": 3.438811895307758e-05, + "expected_calibration_error_10bin": 3.438811895307758e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9204384724186704, + "auprc": 0.004424778761061947, + "brier": 0.00035915013719905564, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.000636944943765497, + "calibration_in_the_large": 0.0002834631480779749, + "expected_calibration_error_10bin": 0.0002834631480779749, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5051291121330032, + "auprc": 0.0027447400832258393, + "brier": 0.0007147760596972662, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007669977953278237, + "calibration_in_the_large": 6.003420395277951e-05, + "expected_calibration_error_10bin": 6.003420395277951e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5040679165192784, + "auprc": 0.0026798274988394798, + "brier": 0.0007193267373058786, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009243727007028535, + "calibration_in_the_large": 0.0002174091093278093, + "expected_calibration_error_10bin": 0.0002174091093278093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.506190307746728, + "auprc": 0.0028134339832075208, + "brier": 0.0007208698229774649, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0010238788305353243, + "calibration_in_the_large": 0.0003169152391602801, + "expected_calibration_error_10bin": 0.0003169152391602801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.505305978068624, + "auprc": 0.0027896486229819564, + "brier": 0.0007232958210313386, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0011656408539947856, + "calibration_in_the_large": 0.0004586772626197414, + "expected_calibration_error_10bin": 0.0004586772626197414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5056597099398655, + "auprc": 0.002824678073236575, + "brier": 0.000735111583555186, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0013463235407431852, + "calibration_in_the_large": 0.000639359949368141, + "expected_calibration_error_10bin": 0.000639359949368141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5063671736823487, + "auprc": 0.002873215872047399, + "brier": 0.0007382316040454744, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0014405531231163975, + "calibration_in_the_large": 0.0007335895317413533, + "expected_calibration_error_10bin": 0.0007335895317413533, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5063671736823487, + "auprc": 0.0028855050115651503, + "brier": 0.0007413106064380334, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0015153785207137082, + "calibration_in_the_large": 0.000808414929338664, + "expected_calibration_error_10bin": 0.000808414929338664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5045985143261408, + "auprc": 0.0027890541661728103, + "brier": 0.0007456554489425171, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0016227945882645095, + "calibration_in_the_large": 0.0009158309968894653, + "expected_calibration_error_10bin": 0.0009158309968894653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5060134418111072, + "auprc": 0.0028487078701847908, + "brier": 0.0007478507307161426, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0017260205961937248, + "calibration_in_the_large": 0.0010190570048186805, + "expected_calibration_error_10bin": 0.0010190570048186805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5060134418111072, + "auprc": 0.0028487078701847908, + "brier": 0.000749117515913088, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0017521182056954253, + "calibration_in_the_large": 0.001045154614320381, + "expected_calibration_error_10bin": 0.001045154614320381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "J38": { + "time_averaged_auroc": 0.6856871290359551, + "time_averaged_auprc": 0.005048154896574013, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5623229461756374, + "auprc": 0.0008084074373484236, + "brier": 0.0003544860193691522, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0003728699825322601, + "calibration_in_the_large": 1.888768164730434e-05, + "expected_calibration_error_10bin": 1.888768164730434e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5123937677053825, + "auprc": 0.000725689404934688, + "brier": 0.0003563644370312804, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007329428988072347, + "calibration_in_the_large": 0.0003789605979222789, + "expected_calibration_error_10bin": 0.0003789605979222789, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5046033994334278, + "auprc": 0.0007142857142857143, + "brier": 0.0003569667694184354, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0008445763941619641, + "calibration_in_the_large": 0.0004905940932770083, + "expected_calibration_error_10bin": 0.0004905940932770083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7247608926673751, + "auprc": 0.0052365395489099706, + "brier": 0.0007091448887162934, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0010411186542648215, + "calibration_in_the_large": 0.00033315405249491, + "expected_calibration_error_10bin": 0.00033315405249491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7240524264966348, + "auprc": 0.006425552488341989, + "brier": 0.0007096165975144284, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0011811147796967928, + "calibration_in_the_large": 0.0004731501779268813, + "expected_calibration_error_10bin": 0.0004731501779268813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7215727948990436, + "auprc": 0.0069975631219115954, + "brier": 0.0007107061471495608, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001339237586714435, + "calibration_in_the_large": 0.0006312729849445234, + "expected_calibration_error_10bin": 0.0006312729849445234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7196245129295076, + "auprc": 0.006762454592631033, + "brier": 0.0007121022327653699, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001477126687331196, + "calibration_in_the_large": 0.0007691620855612844, + "expected_calibration_error_10bin": 0.0007691620855612844, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7424994094023152, + "auprc": 0.005947486554957998, + "brier": 0.0010652963178664106, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.001546296984924309, + "calibration_in_the_large": 0.0004843500822694416, + "expected_calibration_error_10bin": 0.0004843500822694416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7423812898653437, + "auprc": 0.005861024925433261, + "brier": 0.0010666878780885803, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0016781029683778218, + "calibration_in_the_large": 0.0006161560657229545, + "expected_calibration_error_10bin": 0.0006161560657229545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7429718875502008, + "auprc": 0.006303752786895379, + "brier": 0.001067400596780848, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0017784423096609276, + "calibration_in_the_large": 0.0007164954070060603, + "expected_calibration_error_10bin": 0.0007164954070060603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.73789274746043, + "auprc": 0.006340906023296068, + "brier": 0.0010692212553090517, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0019614635531136635, + "calibration_in_the_large": 0.0008995166504587961, + "expected_calibration_error_10bin": 0.0008995166504587961, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7394283014410583, + "auprc": 0.006752691243709069, + "brier": 0.0010711866381749942, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0021072460109926557, + "calibration_in_the_large": 0.0010452991083377884, + "expected_calibration_error_10bin": 0.0010452991083377884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7394283014410583, + "auprc": 0.006749659812806984, + "brier": 0.0010713568154377346, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0021245679330481877, + "calibration_in_the_large": 0.0010626210303933204, + "expected_calibration_error_10bin": 0.0010626210303933204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "J43": { + "time_averaged_auroc": 0.6110988439316345, + "time_averaged_auprc": 0.006068406955474368, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.2001427042454513, + "auprc": 0.00044583147570218456, + "brier": 0.0003572710124845071, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.000510212572816111, + "calibration_in_the_large": 0.00015357919193166017, + "expected_calibration_error_10bin": 0.00015357919193166017, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.26873661670235544, + "auprc": 0.0007135586980531433, + "brier": 0.0007153856274509255, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0008421526876214912, + "calibration_in_the_large": 0.0001288859258525896, + "expected_calibration_error_10bin": 0.0001288859258525896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.60875, + "auprc": 0.005200882482059346, + "brier": 0.001425167099833045, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0011028115827211255, + "calibration_in_the_large": -0.0003237219408166777, + "expected_calibration_error_10bin": 0.0003237219408166777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.673383351196856, + "auprc": 0.007240482258884291, + "brier": 0.0017797778884393034, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.001284271030497818, + "calibration_in_the_large": -0.0004988958739244359, + "expected_calibration_error_10bin": 0.0004988958739244359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.6774562343694176, + "auprc": 0.007052347669531803, + "brier": 0.001780236650816762, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0015041537987836868, + "calibration_in_the_large": -0.00027901310563856717, + "expected_calibration_error_10bin": 0.00027901310563856717, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.6848160057163273, + "auprc": 0.006574936920196059, + "brier": 0.0017822442903697993, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0017710181241480797, + "calibration_in_the_large": -1.2148780274174285e-05, + "expected_calibration_error_10bin": 1.2148780274174285e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.726032994534961, + "auprc": 0.007672847207613127, + "brier": 0.0024918344203843606, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0019992103455274087, + "calibration_in_the_large": -0.0004972233206637466, + "expected_calibration_error_10bin": 0.0004972233206637466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6759656652360515, + "auprc": 0.007104829492441308, + "brier": 0.0028493203410987667, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.002175814640620505, + "calibration_in_the_large": -0.0006772524064551015, + "expected_calibration_error_10bin": 0.0006772524064551015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6766362660944206, + "auprc": 0.006985653662607507, + "brier": 0.002851123864660658, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.0023425462188116967, + "calibration_in_the_large": -0.0005105208282639097, + "expected_calibration_error_10bin": 0.0005105208282639097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6769045064377682, + "auprc": 0.006954147593685965, + "brier": 0.002851540839282396, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.002382777941968013, + "calibration_in_the_large": -0.00047028910510759324, + "expected_calibration_error_10bin": 0.00047028910510759324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.6852315643013317, + "auprc": 0.00731433495584546, + "brier": 0.0032064329317398155, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.002469670767854256, + "calibration_in_the_large": -0.0007400296601058009, + "expected_calibration_error_10bin": 0.0007400296601058009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.695025053686471, + "auprc": 0.007814108299436975, + "brier": 0.003561389204153254, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.002611857307704651, + "calibration_in_the_large": -0.0009544765011398572, + "expected_calibration_error_10bin": 0.0009544765011398572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.6952040085898353, + "auprc": 0.00781532970510962, + "brier": 0.0035614723044190373, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.002620509352512424, + "calibration_in_the_large": -0.0009458244563320842, + "expected_calibration_error_10bin": 0.0009458244563320842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + } + ], + "reason": null + }, + "J44": { + "time_averaged_auroc": 0.833372155793631, + "time_averaged_auprc": 0.03704960239908204, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2570, + "positives": 6, + "negatives": 2564, + "auroc": 0.84431877275091, + "auprc": 0.012299597359091216, + "brier": 0.002322424100428021, + "calibration": { + "observed_rate": 0.0023346303501945525, + "mean_prediction": 0.0017443119923091094, + "calibration_in_the_large": -0.0005903183578854431, + "expected_calibration_error_10bin": 0.0005903183578854431, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 10, + "negatives": 2560, + "auroc": 0.8671484375, + "auprc": 0.024919746631698766, + "brier": 0.003840794272690601, + "calibration": { + "observed_rate": 0.0038910505836575876, + "mean_prediction": 0.003258808024537994, + "calibration_in_the_large": -0.0006322425591195938, + "expected_calibration_error_10bin": 0.0006322425591195938, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 14, + "negatives": 2556, + "auroc": 0.8464676950592444, + "auprc": 0.029293633761029125, + "brier": 0.0053657403571851815, + "calibration": { + "observed_rate": 0.005447470817120622, + "mean_prediction": 0.003996916520518178, + "calibration_in_the_large": -0.0014505542966024446, + "expected_calibration_error_10bin": 0.0014505542966024446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 16, + "negatives": 2554, + "auroc": 0.8562793657008614, + "auprc": 0.034862119467433124, + "brier": 0.006113290202821739, + "calibration": { + "observed_rate": 0.0062256809338521405, + "mean_prediction": 0.0046732939958185745, + "calibration_in_the_large": -0.001552386938033566, + "expected_calibration_error_10bin": 0.001552386938033566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 17, + "negatives": 2553, + "auroc": 0.857537844750121, + "auprc": 0.035948391525879426, + "brier": 0.006486315564985659, + "calibration": { + "observed_rate": 0.006614785992217899, + "mean_prediction": 0.006063219065863309, + "calibration_in_the_large": -0.0005515669263545901, + "expected_calibration_error_10bin": 0.0006294432706197667, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 20, + "negatives": 2550, + "auroc": 0.8315490196078431, + "auprc": 0.03821863311625493, + "brier": 0.0076226021733200085, + "calibration": { + "observed_rate": 0.007782101167315175, + "mean_prediction": 0.006819234720164486, + "calibration_in_the_large": -0.0009628664471506895, + "expected_calibration_error_10bin": 0.0012216965382875922, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 22, + "negatives": 2548, + "auroc": 0.8029292136434993, + "auprc": 0.03604439590961906, + "brier": 0.008399513578427654, + "calibration": { + "observed_rate": 0.008560311284046693, + "mean_prediction": 0.007405278084686176, + "calibration_in_the_large": -0.0011550331993605174, + "expected_calibration_error_10bin": 0.0014350900525992273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.8192262372348782, + "auprc": 0.04308872513432854, + "brier": 0.00912510064097883, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.008141756445573986, + "calibration_in_the_large": -0.0011967649552042242, + "expected_calibration_error_10bin": 0.0017477180829669104, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.8197990311599895, + "auprc": 0.0426567316399229, + "brier": 0.009136010506060166, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.008740149171774325, + "calibration_in_the_large": -0.0005983722290038851, + "expected_calibration_error_10bin": 0.0017032818802462273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 27, + "negatives": 2543, + "auroc": 0.8310831476383973, + "auprc": 0.04658366892151681, + "brier": 0.010250672044702508, + "calibration": { + "observed_rate": 0.010505836575875487, + "mean_prediction": 0.009241337880051421, + "calibration_in_the_large": -0.001264498695824066, + "expected_calibration_error_10bin": 0.0025328609584255855, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 28, + "negatives": 2542, + "auroc": 0.8307013600089918, + "auprc": 0.04713084300977598, + "brier": 0.010632934398263912, + "calibration": { + "observed_rate": 0.010894941634241245, + "mean_prediction": 0.010007121979503222, + "calibration_in_the_large": -0.0008878196547380222, + "expected_calibration_error_10bin": 0.0023320127203683458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8133333333333334, + "auprc": 0.04526761722568743, + "brier": 0.011419949796221717, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.010462208314159465, + "calibration_in_the_large": -0.0012109434368132981, + "expected_calibration_error_10bin": 0.0028522408467837705, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8134645669291338, + "auprc": 0.04533072748582918, + "brier": 0.011421678021677524, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.010578355768462175, + "calibration_in_the_large": -0.0010947959825105876, + "expected_calibration_error_10bin": 0.002753976652907414, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + } + ], + "reason": null + }, + "J45": { + "time_averaged_auroc": 0.6761830861237033, + "time_averaged_auprc": 0.03008512477585425, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2518, + "positives": 9, + "negatives": 2509, + "auroc": 0.6534254461715602, + "auprc": 0.00934876263338275, + "brier": 0.0035606375960947016, + "calibration": { + "observed_rate": 0.003574265289912629, + "mean_prediction": 0.0025939180057847114, + "calibration_in_the_large": -0.0009803472841279177, + "expected_calibration_error_10bin": 0.0009803472841279177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 13, + "negatives": 2505, + "auroc": 0.6331030247197912, + "auprc": 0.011001513979312991, + "brier": 0.0051409969179010764, + "calibration": { + "observed_rate": 0.005162827640984908, + "mean_prediction": 0.0038307830005178374, + "calibration_in_the_large": -0.001332044640467071, + "expected_calibration_error_10bin": 0.001332044640467071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 17, + "negatives": 2501, + "auroc": 0.6741538678646188, + "auprc": 0.01422006868855381, + "brier": 0.006709494600488222, + "calibration": { + "observed_rate": 0.006751389992057188, + "mean_prediction": 0.004533327858334208, + "calibration_in_the_large": -0.0022180621337229804, + "expected_calibration_error_10bin": 0.0022180621337229804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 19, + "negatives": 2499, + "auroc": 0.6726058844590468, + "auprc": 0.021504415110976255, + "brier": 0.007469798922533051, + "calibration": { + "observed_rate": 0.007545671167593328, + "mean_prediction": 0.005174023570395127, + "calibration_in_the_large": -0.0023716475971982016, + "expected_calibration_error_10bin": 0.0023716475971982016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6767413931144916, + "auprc": 0.021533920460990813, + "brier": 0.00786217892974491, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.006077006231855245, + "calibration_in_the_large": -0.0018658055235061524, + "expected_calibration_error_10bin": 0.0018658055235061524, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6736589271417134, + "auprc": 0.02143990140609514, + "brier": 0.00786806408129589, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.006879789317266223, + "calibration_in_the_large": -0.001063022438095175, + "expected_calibration_error_10bin": 0.001063022438095175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 21, + "negatives": 2497, + "auroc": 0.6887693803993363, + "auprc": 0.04296757093607983, + "brier": 0.008197041548056623, + "calibration": { + "observed_rate": 0.008339952343129467, + "mean_prediction": 0.007456329942978083, + "calibration_in_the_large": -0.000883622400151384, + "expected_calibration_error_10bin": 0.001051919618045402, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6986633158508159, + "auprc": 0.043640265933953926, + "brier": 0.008573970642917006, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.008069011328654157, + "calibration_in_the_large": -0.0006680816022433811, + "expected_calibration_error_10bin": 0.0006680816022433807, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6995738636363636, + "auprc": 0.04638328346988795, + "brier": 0.008577830341649181, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.008765220236289057, + "calibration_in_the_large": 2.8127305391518684e-05, + "expected_calibration_error_10bin": 0.00037606902868936955, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 23, + "negatives": 2495, + "auroc": 0.6899363945281868, + "auprc": 0.04506716566827858, + "brier": 0.008975567927762341, + "calibration": { + "observed_rate": 0.009134233518665607, + "mean_prediction": 0.009187106974203324, + "calibration_in_the_large": 5.287345553771708e-05, + "expected_calibration_error_10bin": 0.00037312631808434764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 24, + "negatives": 2494, + "auroc": 0.6816860465116279, + "auprc": 0.03932880503056629, + "brier": 0.009382266394790659, + "calibration": { + "observed_rate": 0.009531374106433678, + "mean_prediction": 0.010075923014100976, + "calibration_in_the_large": 0.0005445489076672978, + "expected_calibration_error_10bin": 0.0006437898068006406, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6740794223826715, + "auprc": 0.03734205199836682, + "brier": 0.009787091170041794, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.010607605677179313, + "calibration_in_the_large": 0.0006790909829775659, + "expected_calibration_error_10bin": 0.0007345031108942979, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6739831528279182, + "auprc": 0.03732889676966003, + "brier": 0.009787540211799386, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.010627543231059695, + "calibration_in_the_large": 0.0006990285368579478, + "expected_calibration_error_10bin": 0.000753405158346681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + } + ], + "reason": null + }, + "J47": { + "time_averaged_auroc": 0.8486945608961406, + "time_averaged_auprc": 0.009775413548106699, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 1.8510524178489052e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016676559268403917, + "calibration_in_the_large": 0.00016676559268403917, + "expected_calibration_error_10bin": 0.00016676559268403917, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.81657223796034, + "auprc": 0.0019267822736030828, + "brier": 0.0003542158777972551, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0003374330609209037, + "calibration_in_the_large": -1.654923996405208e-05, + "expected_calibration_error_10bin": 1.654923996405208e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.9024087849805171, + "auprc": 0.012838069154399178, + "brier": 0.0007057938996661687, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.00042734075676001865, + "calibration_in_the_large": -0.00028062384500989287, + "expected_calibration_error_10bin": 0.00028062384500989287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8751476494212143, + "auprc": 0.008956808504782655, + "brier": 0.0010593380880635271, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0005127524634499419, + "calibration_in_the_large": -0.0005491944392049254, + "expected_calibration_error_10bin": 0.0005491944392049254, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.8933888691953208, + "auprc": 0.010917485387389628, + "brier": 0.0014113629126544214, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0006002463830168884, + "calibration_in_the_large": -0.0008156828205229346, + "expected_calibration_error_10bin": 0.0008156828205229346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.8971995746189294, + "auprc": 0.010982713556524906, + "brier": 0.0014112109631900269, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0007153249011943088, + "calibration_in_the_large": -0.0007006043023455143, + "expected_calibration_error_10bin": 0.0007006043023455143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.84007331204919, + "auprc": 0.010333399347284767, + "brier": 0.0021178536953092007, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0007903510383791058, + "calibration_in_the_large": -0.0013335427669306289, + "expected_calibration_error_10bin": 0.0013335427669306289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8399550668085609, + "auprc": 0.010357554169965496, + "brier": 0.002118072523121624, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0008224878373385658, + "calibration_in_the_large": -0.0013014059679711688, + "expected_calibration_error_10bin": 0.0013014059679711688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8404871703913918, + "auprc": 0.010444346131974524, + "brier": 0.0021177157035491266, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0008929242987344207, + "calibration_in_the_large": -0.001230969506575314, + "expected_calibration_error_10bin": 0.001230969506575314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8404871703913918, + "auprc": 0.010512476981926255, + "brier": 0.0021178878138326538, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0009732933660552841, + "calibration_in_the_large": -0.0011506004392544504, + "expected_calibration_error_10bin": 0.0011506004392544504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8403689251507627, + "auprc": 0.010480578878886065, + "brier": 0.002117919493573398, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.001030696014934966, + "calibration_in_the_large": -0.0010931977903747686, + "expected_calibration_error_10bin": 0.0010931977903747686, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7990976376356078, + "auprc": 0.009775700483209021, + "brier": 0.0024716661035145164, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0010996205195227412, + "calibration_in_the_large": -0.001378255586671949, + "expected_calibration_error_10bin": 0.001378255586671949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7991483321504613, + "auprc": 0.009779047707334801, + "brier": 0.0024716820957864593, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0011023189048345705, + "calibration_in_the_large": -0.0013755572013601197, + "expected_calibration_error_10bin": 0.0013755572013601197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "J69": { + "time_averaged_auroc": 0.7961985531908358, + "time_averaged_auprc": 0.022708908443675617, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2777, + "positives": 6, + "negatives": 2771, + "auroc": 0.8944424395525081, + "auprc": 0.012030076258214744, + "brier": 0.002149349165275692, + "calibration": { + "observed_rate": 0.0021606049693914295, + "mean_prediction": 0.001510972409052702, + "calibration_in_the_large": -0.0006496325603387275, + "expected_calibration_error_10bin": 0.0006496325603387275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 14, + "negatives": 2763, + "auroc": 0.814900987539424, + "auprc": 0.01811663767217489, + "brier": 0.004998197098935873, + "calibration": { + "observed_rate": 0.005041411595246669, + "mean_prediction": 0.003001233871649852, + "calibration_in_the_large": -0.002040177723596817, + "expected_calibration_error_10bin": 0.002040177723596817, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 19, + "negatives": 2758, + "auroc": 0.7889584367008893, + "auprc": 0.019792738783231116, + "brier": 0.006778735163120051, + "calibration": { + "observed_rate": 0.0068419157364061935, + "mean_prediction": 0.004077150372761145, + "calibration_in_the_large": -0.0027647653636450487, + "expected_calibration_error_10bin": 0.0027647653636450487, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 21, + "negatives": 2756, + "auroc": 0.7990013131522565, + "auprc": 0.022641022774004208, + "brier": 0.007480634119047351, + "calibration": { + "observed_rate": 0.007562117392870004, + "mean_prediction": 0.004802544127333982, + "calibration_in_the_large": -0.0027595732655360224, + "expected_calibration_error_10bin": 0.0027595732655360224, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.7915855469394489, + "auprc": 0.02219626322170764, + "brier": 0.007841167954058393, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.005568906853192661, + "calibration_in_the_large": -0.0023533113679092485, + "expected_calibration_error_10bin": 0.0023533113679092485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.789325193862399, + "auprc": 0.021655775061613262, + "brier": 0.007846730550203098, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.006172640935201939, + "calibration_in_the_large": -0.00174957728589997, + "expected_calibration_error_10bin": 0.00174957728589997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 24, + "negatives": 2753, + "auroc": 0.798189853493159, + "auprc": 0.024437189139162357, + "brier": 0.008546437238457476, + "calibration": { + "observed_rate": 0.008642419877565718, + "mean_prediction": 0.006806393024261114, + "calibration_in_the_large": -0.0018360268533046042, + "expected_calibration_error_10bin": 0.0018360268533046042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 25, + "negatives": 2752, + "auroc": 0.7826889534883721, + "auprc": 0.0239721014429495, + "brier": 0.008908892162287217, + "calibration": { + "observed_rate": 0.009002520705797623, + "mean_prediction": 0.007186913840683468, + "calibration_in_the_large": -0.0018156068651141557, + "expected_calibration_error_10bin": 0.0018156068651141557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 26, + "negatives": 2751, + "auroc": 0.7764868719067193, + "auprc": 0.023807098653712944, + "brier": 0.009271558332557064, + "calibration": { + "observed_rate": 0.009362621534029529, + "mean_prediction": 0.007625882104698509, + "calibration_in_the_large": -0.0017367394293310197, + "expected_calibration_error_10bin": 0.0018869853103000353, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 27, + "negatives": 2750, + "auroc": 0.7791919191919192, + "auprc": 0.02476832021114674, + "brier": 0.009623209550186836, + "calibration": { + "observed_rate": 0.009722722362261434, + "mean_prediction": 0.007982851067052004, + "calibration_in_the_large": -0.0017398712952094303, + "expected_calibration_error_10bin": 0.0019700924273391702, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 30, + "negatives": 2747, + "auroc": 0.7806091493750759, + "auprc": 0.027217000443758393, + "brier": 0.010673092262253128, + "calibration": { + "observed_rate": 0.010803024846957148, + "mean_prediction": 0.00855934429208497, + "calibration_in_the_large": -0.0022436805548721774, + "expected_calibration_error_10bin": 0.0025601758312453335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7776237577238446, + "auprc": 0.02730400110873399, + "brier": 0.011033357168582463, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.008926948057198245, + "calibration_in_the_large": -0.0022361776179908085, + "expected_calibration_error_10bin": 0.0027955186047000724, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7775767685548481, + "auprc": 0.027277584997373185, + "brier": 0.011034400552204294, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.009015534761739111, + "calibration_in_the_large": -0.002147590913449942, + "expected_calibration_error_10bin": 0.002711517529953114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + } + ], + "reason": null + }, + "J81": { + "time_averaged_auroc": 0.7695842834645601, + "time_averaged_auprc": 0.024366941840268354, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7239913544668588, + "auprc": 0.008217452851163855, + "brier": 0.0017940178647765839, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0006150711478605041, + "calibration_in_the_large": -0.0011828432714131383, + "expected_calibration_error_10bin": 0.0011828432714131383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7769595220929035, + "auprc": 0.013649907045136283, + "brier": 0.002506986449031233, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.0012457263027413792, + "calibration_in_the_large": -0.0012713538842417204, + "expected_calibration_error_10bin": 0.0012713538842417204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.7611749261568757, + "auprc": 0.022158408766703375, + "brier": 0.003928266202205437, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.0016776658325615274, + "calibration_in_the_large": -0.0022777458898404863, + "expected_calibration_error_10bin": 0.0022777458898404863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 12, + "negatives": 2769, + "auroc": 0.7305585650656073, + "auprc": 0.01979534641977238, + "brier": 0.004288290105947193, + "calibration": { + "observed_rate": 0.004314994606256742, + "mean_prediction": 0.0020467685406133536, + "calibration_in_the_large": -0.0022682260656433882, + "expected_calibration_error_10bin": 0.0022682260656433882, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.7473282048634415, + "auprc": 0.020011474266354346, + "brier": 0.005001041549337895, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.002337392202563393, + "calibration_in_the_large": -0.0026967681714028064, + "expected_calibration_error_10bin": 0.0026967681714028064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 16, + "negatives": 2765, + "auroc": 0.7659584086799277, + "auprc": 0.0225997706906962, + "brier": 0.005709559444330072, + "calibration": { + "observed_rate": 0.005753326141675656, + "mean_prediction": 0.0025473433117632733, + "calibration_in_the_large": -0.0032059828299123828, + "expected_calibration_error_10bin": 0.003278676518582105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.7772835617604494, + "auprc": 0.026032344677961495, + "brier": 0.006059753261588108, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.0027005703996048104, + "calibration_in_the_large": -0.0034123386259255744, + "expected_calibration_error_10bin": 0.003493372619361612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.7735592066059419, + "auprc": 0.02539343171217317, + "brier": 0.006059799832772801, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.002979059753883855, + "calibration_in_the_large": -0.0031338492716465297, + "expected_calibration_error_10bin": 0.0032249329596897827, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 19, + "negatives": 2762, + "auroc": 0.7863866763215062, + "auprc": 0.031291027632207945, + "brier": 0.00675388814382927, + "calibration": { + "observed_rate": 0.0068320747932398415, + "mean_prediction": 0.0031707565633168557, + "calibration_in_the_large": -0.003661318229922986, + "expected_calibration_error_10bin": 0.003763088413509537, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 20, + "negatives": 2761, + "auroc": 0.7911082940963419, + "auprc": 0.03177068871428539, + "brier": 0.007107231268990418, + "calibration": { + "observed_rate": 0.00719165767709457, + "mean_prediction": 0.0033620457427269487, + "calibration_in_the_large": -0.0038296119343676216, + "expected_calibration_error_10bin": 0.003936956513224111, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 21, + "negatives": 2760, + "auroc": 0.7873188405797101, + "auprc": 0.03144771040460402, + "brier": 0.007462655871951472, + "calibration": { + "observed_rate": 0.007551240560949299, + "mean_prediction": 0.003541600240628735, + "calibration_in_the_large": -0.0040096403203205636, + "expected_calibration_error_10bin": 0.00411983790625531, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.7915313554245358, + "auprc": 0.032215222017955514, + "brier": 0.008170000744526014, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.003837576872141155, + "calibration_in_the_large": -0.004432829456517601, + "expected_calibration_error_10bin": 0.0045506579372803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.7914367689251821, + "auprc": 0.03218745872447466, + "brier": 0.008170033608597192, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.0038737570756223446, + "calibration_in_the_large": -0.004396649253036411, + "expected_calibration_error_10bin": 0.004516855854104881, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + } + ], + "reason": null + }, + "J84": { + "time_averaged_auroc": 0.9173188478424577, + "time_averaged_auprc": 0.018434102295019912, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.8909527195165304, + "auprc": 0.009432486179931482, + "brier": 0.0014177774807302857, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0002600862724332153, + "calibration_in_the_large": -0.0011598640293062237, + "expected_calibration_error_10bin": 0.0011598640293062237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.9194879089615932, + "auprc": 0.015133683175904179, + "brier": 0.0017691583700186584, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0005094672146798872, + "calibration_in_the_large": -0.0012654706624944116, + "expected_calibration_error_10bin": 0.0012654706624944116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.9208392603129445, + "auprc": 0.015561437954057506, + "brier": 0.0017675920360240996, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0006852082388045049, + "calibration_in_the_large": -0.001089729638369794, + "expected_calibration_error_10bin": 0.001089729638369794, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.9194879089615932, + "auprc": 0.015212482040242161, + "brier": 0.001766449658218998, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0008725511928222996, + "calibration_in_the_large": -0.0009023866843519994, + "expected_calibration_error_10bin": 0.0009023866843519994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9216573462125064, + "auprc": 0.02158459161176268, + "brier": 0.0024660381604952697, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0011997553614068047, + "calibration_in_the_large": -0.0012851576666372138, + "expected_calibration_error_10bin": 0.0012851576666372138, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9195729537366548, + "auprc": 0.020927183726002673, + "brier": 0.002464983662839074, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0013730895506501018, + "calibration_in_the_large": -0.0011118234773939168, + "expected_calibration_error_10bin": 0.0011118234773939168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9202338586680223, + "auprc": 0.021090146906993797, + "brier": 0.0024635400150446324, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0016115406328159859, + "calibration_in_the_large": -0.0008733723952280327, + "expected_calibration_error_10bin": 0.0008733723952280327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9196237925775292, + "auprc": 0.020754111843629124, + "brier": 0.002463366337375769, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0017477524633050614, + "calibration_in_the_large": -0.0007371605647389571, + "expected_calibration_error_10bin": 0.0007371605647389571, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9198779867819014, + "auprc": 0.020433754850918917, + "brier": 0.002462915451827688, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0019106282889895874, + "calibration_in_the_large": -0.0005742847390544311, + "expected_calibration_error_10bin": 0.0005742847390544311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9185053380782918, + "auprc": 0.019873592266689714, + "brier": 0.0024631698448886047, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0020528524951323257, + "calibration_in_the_large": -0.0004320605329116928, + "expected_calibration_error_10bin": 0.0004320605329116928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9185561769191662, + "auprc": 0.01989706188832344, + "brier": 0.002463315438559507, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0020882828602363005, + "calibration_in_the_large": -0.00039663016780771805, + "expected_calibration_error_10bin": 0.00039663016780771805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9182003050330453, + "auprc": 0.019872625141504213, + "brier": 0.002463475355490618, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.00212382403097651, + "calibration_in_the_large": -0.0003610889970675087, + "expected_calibration_error_10bin": 0.0003610889970675087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9181494661921709, + "auprc": 0.019870172249299014, + "brier": 0.002463504887508869, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0021311956285019746, + "calibration_in_the_large": -0.0003537173995420439, + "expected_calibration_error_10bin": 0.0003537173995420439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "J90": { + "time_averaged_auroc": 0.6719916990669214, + "time_averaged_auprc": 0.024356902179611048, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2754, + "positives": 11, + "negatives": 2743, + "auroc": 0.6463394425479734, + "auprc": 0.007685755304233535, + "brier": 0.003984790720268511, + "calibration": { + "observed_rate": 0.0039941902687000725, + "mean_prediction": 0.002376966746546413, + "calibration_in_the_large": -0.0016172235221536594, + "expected_calibration_error_10bin": 0.0016172235221536594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 13, + "negatives": 2741, + "auroc": 0.6115118008587546, + "auprc": 0.007372809501962841, + "brier": 0.0047290025993951415, + "calibration": { + "observed_rate": 0.004720406681190995, + "mean_prediction": 0.003973782860976378, + "calibration_in_the_large": -0.0007466238202146168, + "expected_calibration_error_10bin": 0.0007466238202146168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 20, + "negatives": 2734, + "auroc": 0.6379846378931968, + "auprc": 0.012187125465857034, + "brier": 0.007242749203444277, + "calibration": { + "observed_rate": 0.007262164124909223, + "mean_prediction": 0.004840115667684388, + "calibration_in_the_large": -0.0024220484572248357, + "expected_calibration_error_10bin": 0.0024220484572248357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 22, + "negatives": 2732, + "auroc": 0.6374617329961401, + "auprc": 0.012911543441797745, + "brier": 0.007980915462825694, + "calibration": { + "observed_rate": 0.007988380537400145, + "mean_prediction": 0.0056534289280353745, + "calibration_in_the_large": -0.0023349516093647705, + "expected_calibration_error_10bin": 0.002485361852733647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.6382264565775009, + "auprc": 0.015138765019757522, + "brier": 0.009065448570921758, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.006395552867362103, + "calibration_in_the_large": -0.0026821522887744264, + "expected_calibration_error_10bin": 0.002931558006961786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.639105899596922, + "auprc": 0.015316893027299208, + "brier": 0.009076236221269247, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.006778596684403131, + "calibration_in_the_large": -0.0022991084717333982, + "expected_calibration_error_10bin": 0.0025714457567790143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 28, + "negatives": 2726, + "auroc": 0.6665836914369563, + "auprc": 0.024654812632588136, + "brier": 0.010095870515085608, + "calibration": { + "observed_rate": 0.010167029774872912, + "mean_prediction": 0.007404398268183877, + "calibration_in_the_large": -0.0027626315066890342, + "expected_calibration_error_10bin": 0.002762631506689035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 29, + "negatives": 2725, + "auroc": 0.6783802594115786, + "auprc": 0.02729070646502871, + "brier": 0.010452881201518492, + "calibration": { + "observed_rate": 0.010530137981118372, + "mean_prediction": 0.008057279578368869, + "calibration_in_the_large": -0.0024728584027495035, + "expected_calibration_error_10bin": 0.00295879602040916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 31, + "negatives": 2723, + "auroc": 0.6958880741118074, + "auprc": 0.032042333165326814, + "brier": 0.011132375864051733, + "calibration": { + "observed_rate": 0.011256354393609296, + "mean_prediction": 0.008581445514946363, + "calibration_in_the_large": -0.0026749088786629325, + "expected_calibration_error_10bin": 0.003473857420671577, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 36, + "negatives": 2718, + "auroc": 0.7191562423350503, + "auprc": 0.03766027666615302, + "brier": 0.0128658381452926, + "calibration": { + "observed_rate": 0.013071895424836602, + "mean_prediction": 0.008964348249811287, + "calibration_in_the_large": -0.004107547175025315, + "expected_calibration_error_10bin": 0.005128659764300451, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 37, + "negatives": 2717, + "auroc": 0.726457042246516, + "auprc": 0.04141556125427205, + "brier": 0.013188983469587622, + "calibration": { + "observed_rate": 0.013435003631082063, + "mean_prediction": 0.009220556147253074, + "calibration_in_the_large": -0.004214447483828989, + "expected_calibration_error_10bin": 0.005355441327110178, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.7194220144496387, + "auprc": 0.04144442103174628, + "brier": 0.01391674969100144, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.00979471029116482, + "calibration_in_the_large": -0.004366509752408165, + "expected_calibration_error_10bin": 0.005845023943477107, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.7193747934079425, + "auprc": 0.041518725358920754, + "brier": 0.013916951686301228, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.009859537519086959, + "calibration_in_the_large": -0.004301682524486025, + "expected_calibration_error_10bin": 0.005862887235909053, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + } + ], + "reason": null + }, + "J91": { + "time_averaged_auroc": 0.8396119350542163, + "time_averaged_auprc": 0.04901425069638175, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 1, + "negatives": 2806, + "auroc": 0.84248039914469, + "auprc": 0.002257336343115124, + "brier": 0.00036155498836954527, + "calibration": { + "observed_rate": 0.0003562522265764161, + "mean_prediction": 0.0007439018894640633, + "calibration_in_the_large": 0.00038764966288764723, + "expected_calibration_error_10bin": 0.00038764966288764723, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8912268188302425, + "auprc": 0.03394477543890657, + "brier": 0.0010693646651212135, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0016524046398980537, + "calibration_in_the_large": 0.0005836479601688054, + "expected_calibration_error_10bin": 0.0005836479601688054, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7825124910778015, + "auprc": 0.038715160494546035, + "brier": 0.0017713124857888455, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0022058871501125744, + "calibration_in_the_large": 0.00042462601723049394, + "expected_calibration_error_10bin": 0.00042462601723049367, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.8190306122448979, + "auprc": 0.0671425684422433, + "brier": 0.002437410595559907, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0026472783761908067, + "calibration_in_the_large": 0.00015351279015589402, + "expected_calibration_error_10bin": 0.00015351279015589416, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8325391152410452, + "auprc": 0.05258230473569118, + "brier": 0.003148695800174302, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.002953464842571376, + "calibration_in_the_large": -0.00025280519661636863, + "expected_calibration_error_10bin": 0.0007453751568799708, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8386127994279585, + "auprc": 0.05464794972796402, + "brier": 0.003500584338545588, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.003185746064712005, + "calibration_in_the_large": -0.00037677620105215593, + "expected_calibration_error_10bin": 0.0008937891565940755, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8385412942438327, + "auprc": 0.05347332849294183, + "brier": 0.0035053892127997993, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0035308596669988953, + "calibration_in_the_large": -3.166259876526568e-05, + "expected_calibration_error_10bin": 3.1662598765265684e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8400071505184126, + "auprc": 0.05463330069190438, + "brier": 0.0035174564792647117, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0038388274500864975, + "calibration_in_the_large": 0.0002763051843223366, + "expected_calibration_error_10bin": 0.0004455015896379736, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.838863067572399, + "auprc": 0.05481589561558753, + "brier": 0.003531551436008879, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.004249786711254032, + "calibration_in_the_large": 0.0006872644454898715, + "expected_calibration_error_10bin": 0.0013155583066673685, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8376117268501967, + "auprc": 0.04831315705382586, + "brier": 0.003547637399351401, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.004511417612432926, + "calibration_in_the_large": 0.0009488953466687648, + "expected_calibration_error_10bin": 0.0012999431927310742, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8512160228898427, + "auprc": 0.06125693876490839, + "brier": 0.0038571212706472895, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.0047480692834446165, + "calibration_in_the_large": 0.0008292947911040394, + "expected_calibration_error_10bin": 0.001125997236995175, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8515086487189492, + "auprc": 0.05917022183631327, + "brier": 0.0038710134885367436, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.00500510969563865, + "calibration_in_the_large": 0.0010863352032980727, + "expected_calibration_error_10bin": 0.0013237479088961895, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8508050089445438, + "auprc": 0.0562323214150153, + "brier": 0.004224450800655557, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.005032347515563028, + "calibration_in_the_large": 0.0007573207966460353, + "expected_calibration_error_10bin": 0.0009882015806236865, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "J94": { + "time_averaged_auroc": 0.6390482932862523, + "time_averaged_auprc": 0.02161751699992311, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.7423893805309735, + "auprc": 0.005462864435851475, + "brier": 0.0014141639207278685, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0002554291709355425, + "calibration_in_the_large": -0.0011584980118145459, + "expected_calibration_error_10bin": 0.0011584980118145459, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.7113274336283186, + "auprc": 0.004167863765103817, + "brier": 0.0014299891603986481, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0006828239510730138, + "calibration_in_the_large": -0.0007311032316770746, + "expected_calibration_error_10bin": 0.0008189372651324227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.5941218130311615, + "auprc": 0.003522739110151582, + "brier": 0.0017887114609325397, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.000810203315623521, + "calibration_in_the_large": -0.0009572056628140895, + "expected_calibration_error_10bin": 0.0010573661696231715, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.5895184135977337, + "auprc": 0.0034371982035887915, + "brier": 0.001797757840199974, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0009532042711039588, + "calibration_in_the_large": -0.0008142047073336517, + "expected_calibration_error_10bin": 0.0010071126750578502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.5754608294930875, + "auprc": 0.025029382404106848, + "brier": 0.0028182297920026833, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.0012025370465475387, + "calibration_in_the_large": -0.0016253173189526382, + "expected_calibration_error_10bin": 0.002066152739715216, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6125689519306541, + "auprc": 0.02422098737348748, + "brier": 0.0031891147655754024, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.001417226465435072, + "calibration_in_the_large": -0.001764109695752627, + "expected_calibration_error_10bin": 0.0021126284303140926, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6145390070921986, + "auprc": 0.024397327456002663, + "brier": 0.0032014253626006673, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0016185692847942848, + "calibration_in_the_large": -0.0015627668763934142, + "expected_calibration_error_10bin": 0.0019450607546304835, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.614775413711584, + "auprc": 0.028050713116285486, + "brier": 0.003212436948547281, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0017930703789627975, + "calibration_in_the_large": -0.0013882657822249015, + "expected_calibration_error_10bin": 0.0018020496012455176, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6532458318552679, + "auprc": 0.030275577839296568, + "brier": 0.003551597747167815, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.001884213053137162, + "calibration_in_the_large": -0.001650604903738059, + "expected_calibration_error_10bin": 0.0020770328557904857, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6512238382405108, + "auprc": 0.03331573842194911, + "brier": 0.0035566527786197104, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0020032446084148497, + "calibration_in_the_large": -0.0015315733484603713, + "expected_calibration_error_10bin": 0.002069954145945313, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6507981553742462, + "auprc": 0.0332796718842371, + "brier": 0.003562556939292964, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0020961321172910884, + "calibration_in_the_large": -0.0014386858395841326, + "expected_calibration_error_10bin": 0.0020373746440427182, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6488471089038667, + "auprc": 0.032931856220854414, + "brier": 0.0035720293596732244, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.002230825958480114, + "calibration_in_the_large": -0.001303991998395107, + "expected_calibration_error_10bin": 0.0019628421790301247, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6488116353316778, + "auprc": 0.0329358007680851, + "brier": 0.003572552476794717, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.002238755134908492, + "calibration_in_the_large": -0.0012960628219667288, + "expected_calibration_error_10bin": 0.001957912892363872, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "J95": { + "time_averaged_auroc": 0.7895535695962205, + "time_averaged_auprc": 0.03916528920390933, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2770, + "positives": 5, + "negatives": 2765, + "auroc": 0.8001446654611212, + "auprc": 0.025010183292870736, + "brier": 0.001796128189106059, + "calibration": { + "observed_rate": 0.0018050541516245488, + "mean_prediction": 0.0007168081158820134, + "calibration_in_the_large": -0.0010882460357425354, + "expected_calibration_error_10bin": 0.0010882460357425354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 8, + "negatives": 2762, + "auroc": 0.7924058653149891, + "auprc": 0.021057972799662136, + "brier": 0.0028681492684601005, + "calibration": { + "observed_rate": 0.002888086642599278, + "mean_prediction": 0.0014907042699516607, + "calibration_in_the_large": -0.0013973823726476172, + "expected_calibration_error_10bin": 0.0013973823726476172, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.7807506013377706, + "auprc": 0.03967717646569249, + "brier": 0.003920005574140483, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.0023496589007458504, + "calibration_in_the_large": -0.0016214602328281568, + "expected_calibration_error_10bin": 0.0016214602328281568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.7751490988170945, + "auprc": 0.03870420012908963, + "brier": 0.0039173338906387965, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.0027888192601205728, + "calibration_in_the_large": -0.0011822998734534345, + "expected_calibration_error_10bin": 0.0011822998734534345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.7902465554749819, + "auprc": 0.045826134619540104, + "brier": 0.0042567519161996826, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.003175890600780702, + "calibration_in_the_large": -0.001156239363118215, + "expected_calibration_error_10bin": 0.001156239363118215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.787708484408992, + "auprc": 0.04341281686085616, + "brier": 0.004257155575802295, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.0033732843291102324, + "calibration_in_the_large": -0.0009588456347886846, + "expected_calibration_error_10bin": 0.0009588456347886846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.7864998791394731, + "auprc": 0.0410328552553777, + "brier": 0.0042551118571847206, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.003863026708773884, + "calibration_in_the_large": -0.0004691032551250329, + "expected_calibration_error_10bin": 0.0004691032551250329, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.7844452501812907, + "auprc": 0.038867433701442904, + "brier": 0.004258616961479634, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.004126894825897609, + "calibration_in_the_large": -0.0002052351380013081, + "expected_calibration_error_10bin": 0.0002052351380013081, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 13, + "negatives": 2757, + "auroc": 0.7976897966016573, + "auprc": 0.049819286917286654, + "brier": 0.004596327166348516, + "calibration": { + "observed_rate": 0.004693140794223827, + "mean_prediction": 0.004610057781422055, + "calibration_in_the_large": -8.308301280177122e-05, + "expected_calibration_error_10bin": 8.308301280177122e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 14, + "negatives": 2756, + "auroc": 0.7995801368442877, + "auprc": 0.04340059945673928, + "brier": 0.00495570427586987, + "calibration": { + "observed_rate": 0.005054151624548736, + "mean_prediction": 0.004937891041080406, + "calibration_in_the_large": -0.00011626058346833005, + "expected_calibration_error_10bin": 0.0001892200469872092, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.7899645969498911, + "auprc": 0.041308163792566216, + "brier": 0.005660524205840514, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.005259636075878184, + "calibration_in_the_large": -0.0005165372093203719, + "expected_calibration_error_10bin": 0.0006726531623474977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.7898738198983297, + "auprc": 0.0405336735811637, + "brier": 0.005663510426994042, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.005564241521018046, + "calibration_in_the_large": -0.00021193176418050994, + "expected_calibration_error_10bin": 0.0005318446217078468, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.7897376543209876, + "auprc": 0.0404982627785336, + "brier": 0.005663756007639343, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.0055741426014338895, + "calibration_in_the_large": -0.00020203068376466616, + "expected_calibration_error_10bin": 0.0005226811272531768, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + } + ], + "reason": null + }, + "J96": { + "time_averaged_auroc": 0.8481957342044809, + "time_averaged_auprc": 0.11335172239278374, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2605, + "positives": 10, + "negatives": 2595, + "auroc": 0.8930635838150289, + "auprc": 0.12137733119564179, + "brier": 0.00374733690955264, + "calibration": { + "observed_rate": 0.003838771593090211, + "mean_prediction": 0.00420495535322996, + "calibration_in_the_large": 0.00036618376013974885, + "expected_calibration_error_10bin": 0.0009587394006660794, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 20, + "negatives": 2585, + "auroc": 0.8749516441005802, + "auprc": 0.09026721491254745, + "brier": 0.007464051865546958, + "calibration": { + "observed_rate": 0.007677543186180422, + "mean_prediction": 0.00843001622993221, + "calibration_in_the_large": 0.0007524730437517887, + "expected_calibration_error_10bin": 0.0013644203976310178, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 36, + "negatives": 2569, + "auroc": 0.8504065568098266, + "auprc": 0.10525312456673626, + "brier": 0.01312096818949386, + "calibration": { + "observed_rate": 0.01381957773512476, + "mean_prediction": 0.011041541930513115, + "calibration_in_the_large": -0.0027780358046116446, + "expected_calibration_error_10bin": 0.0027780358046116467, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 42, + "negatives": 2563, + "auroc": 0.8526373483455029, + "auprc": 0.1078579841941748, + "brier": 0.015247161711902532, + "calibration": { + "observed_rate": 0.016122840690978888, + "mean_prediction": 0.012959421496656949, + "calibration_in_the_large": -0.0031634191943219394, + "expected_calibration_error_10bin": 0.003681948977834426, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 49, + "negatives": 2556, + "auroc": 0.8502762607390374, + "auprc": 0.11370879889076746, + "brier": 0.01768594773036711, + "calibration": { + "observed_rate": 0.018809980806142036, + "mean_prediction": 0.015069364249250606, + "calibration_in_the_large": -0.0037406165568914292, + "expected_calibration_error_10bin": 0.0048734248422367, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 54, + "negatives": 2551, + "auroc": 0.8447522394993975, + "auprc": 0.11312113296079605, + "brier": 0.019502644269289784, + "calibration": { + "observed_rate": 0.02072936660268714, + "mean_prediction": 0.017106207577464352, + "calibration_in_the_large": -0.0036231590252227865, + "expected_calibration_error_10bin": 0.005541264317222708, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 59, + "negatives": 2546, + "auroc": 0.8452940471593859, + "auprc": 0.10905912477967014, + "brier": 0.021196488659246976, + "calibration": { + "observed_rate": 0.022648752399232246, + "mean_prediction": 0.018949325920941833, + "calibration_in_the_large": -0.003699426478290413, + "expected_calibration_error_10bin": 0.006227346290364733, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 64, + "negatives": 2541, + "auroc": 0.8340650826446281, + "auprc": 0.10751611733781596, + "brier": 0.02304444643914502, + "calibration": { + "observed_rate": 0.024568138195777352, + "mean_prediction": 0.020265510719350906, + "calibration_in_the_large": -0.004302627476426447, + "expected_calibration_error_10bin": 0.007069339706561512, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 68, + "negatives": 2537, + "auroc": 0.8384613601057294, + "auprc": 0.11866205029683885, + "brier": 0.02429506501943802, + "calibration": { + "observed_rate": 0.026103646833013437, + "mean_prediction": 0.021676428727533847, + "calibration_in_the_large": -0.0044272181054795905, + "expected_calibration_error_10bin": 0.008714658033424569, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 70, + "negatives": 2535, + "auroc": 0.838698224852071, + "auprc": 0.11742481549777042, + "brier": 0.025114893416117112, + "calibration": { + "observed_rate": 0.026871401151631478, + "mean_prediction": 0.02311205691383541, + "calibration_in_the_large": -0.003759344237796069, + "expected_calibration_error_10bin": 0.00855742566921238, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 76, + "negatives": 2529, + "auroc": 0.8358775051507773, + "auprc": 0.12262682895482546, + "brier": 0.027174636528867094, + "calibration": { + "observed_rate": 0.029174664107485603, + "mean_prediction": 0.024381764730667735, + "calibration_in_the_large": -0.004792899376817868, + "expected_calibration_error_10bin": 0.009765119953702751, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8340817045254446, + "auprc": 0.12346351941066257, + "brier": 0.029000153889959995, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.02556246136870821, + "calibration_in_the_large": -0.005531588535322499, + "expected_calibration_error_10bin": 0.011515356981754238, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8339789869108412, + "auprc": 0.12323434810794118, + "brier": 0.029014690866222277, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.02581717022031292, + "calibration_in_the_large": -0.005276879683717789, + "expected_calibration_error_10bin": 0.011711665911927004, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + } + ], + "reason": null + }, + "J98": { + "time_averaged_auroc": 0.7371519964632964, + "time_averaged_auprc": 0.057886347876742184, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2692, + "positives": 6, + "negatives": 2686, + "auroc": 0.6657359146190122, + "auprc": 0.00571634253974541, + "brier": 0.0022237663288466793, + "calibration": { + "observed_rate": 0.002228826151560178, + "mean_prediction": 0.0018873270523838605, + "calibration_in_the_large": -0.00034149909917631765, + "expected_calibration_error_10bin": 0.00034149909917631765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 9, + "negatives": 2683, + "auroc": 0.7287447716072389, + "auprc": 0.010922851251490253, + "brier": 0.0033256224535759987, + "calibration": { + "observed_rate": 0.0033432392273402673, + "mean_prediction": 0.0032241575088658883, + "calibration_in_the_large": -0.000119081718474379, + "expected_calibration_error_10bin": 0.000119081718474379, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 16, + "negatives": 2676, + "auroc": 0.71863322122571, + "auprc": 0.02744667869886802, + "brier": 0.005880005859484848, + "calibration": { + "observed_rate": 0.005943536404160475, + "mean_prediction": 0.004339896756430872, + "calibration_in_the_large": -0.001603639647729603, + "expected_calibration_error_10bin": 0.001603639647729603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6933570359281437, + "auprc": 0.03164081898799459, + "brier": 0.007326625064629754, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.005184601893352699, + "calibration_in_the_large": -0.0022448186118478953, + "expected_calibration_error_10bin": 0.0022448186118478953, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6921781437125748, + "auprc": 0.04650656579785779, + "brier": 0.007323367445433609, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.00582835523352432, + "calibration_in_the_large": -0.001601065271676274, + "expected_calibration_error_10bin": 0.001601065271676274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 27, + "negatives": 2665, + "auroc": 0.7271072197901466, + "auprc": 0.0756641808005915, + "brier": 0.00980876428726108, + "calibration": { + "observed_rate": 0.010029717682020803, + "mean_prediction": 0.006436248580937016, + "calibration_in_the_large": -0.0035934691010837874, + "expected_calibration_error_10bin": 0.0035934691010837874, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 29, + "negatives": 2663, + "auroc": 0.7439626037525736, + "auprc": 0.06610839485223254, + "brier": 0.010486864640870067, + "calibration": { + "observed_rate": 0.010772659732540862, + "mean_prediction": 0.0070399559787165476, + "calibration_in_the_large": -0.003732703753824314, + "expected_calibration_error_10bin": 0.003732703753824314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 31, + "negatives": 2661, + "auroc": 0.7556581930149956, + "auprc": 0.09228527156228886, + "brier": 0.011166169289012942, + "calibration": { + "observed_rate": 0.011515601783060922, + "mean_prediction": 0.007457015990065347, + "calibration_in_the_large": -0.0040585857929955746, + "expected_calibration_error_10bin": 0.0040585857929955746, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 34, + "negatives": 2658, + "auroc": 0.7677377948922233, + "auprc": 0.0902836260761455, + "brier": 0.01221943735353833, + "calibration": { + "observed_rate": 0.01263001485884101, + "mean_prediction": 0.008021613139493419, + "calibration_in_the_large": -0.004608401719347592, + "expected_calibration_error_10bin": 0.004608401719347592, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 35, + "negatives": 2657, + "auroc": 0.7713855583633529, + "auprc": 0.07553700417880688, + "brier": 0.012562473806283983, + "calibration": { + "observed_rate": 0.01300148588410104, + "mean_prediction": 0.008381739967523368, + "calibration_in_the_large": -0.004619745916577673, + "expected_calibration_error_10bin": 0.004619745916577673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 37, + "negatives": 2655, + "auroc": 0.7744083066116965, + "auprc": 0.07702807829975854, + "brier": 0.013259024887676118, + "calibration": { + "observed_rate": 0.0137444279346211, + "mean_prediction": 0.008881739515798263, + "calibration_in_the_large": -0.004862688418822836, + "expected_calibration_error_10bin": 0.004862688418822836, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.772130244425759, + "auprc": 0.07679130030714647, + "brier": 0.013953709782078192, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.009422046963277387, + "calibration_in_the_large": -0.005065323021863773, + "expected_calibration_error_10bin": 0.005065323021863772, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.7719369460794263, + "auprc": 0.07659140904472206, + "brier": 0.01395187036217099, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.009501879252157801, + "calibration_in_the_large": -0.0049854907329833584, + "expected_calibration_error_10bin": 0.004985490732983358, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + } + ], + "reason": null + }, + "K04": { + "time_averaged_auroc": 0.9464292435393353, + "time_averaged_auprc": 0.023274870870344945, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.0093165413794704e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 6.245923916231131e-05, + "calibration_in_the_large": 6.245923916231131e-05, + "expected_calibration_error_10bin": 6.245923916231131e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 6.74948901610063e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00012353170968559858, + "calibration_in_the_large": 0.00012353170968559858, + "expected_calibration_error_10bin": 0.00012353170968559858, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.8245798249033733e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00019465102176282419, + "calibration_in_the_large": 0.00019465102176282419, + "expected_calibration_error_10bin": 0.00019465102176282419, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9231040564373898, + "auprc": 0.0045662100456621, + "brier": 0.0003524257661192522, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0002740299056446002, + "calibration_in_the_large": -7.85794032411544e-05, + "expected_calibration_error_10bin": 7.85794032411544e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9209876543209876, + "auprc": 0.0044444444444444444, + "brier": 0.0003525092211207407, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0003470663050777375, + "calibration_in_the_large": -5.5430038080171045e-06, + "expected_calibration_error_10bin": 5.5430038080171045e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9216931216931217, + "auprc": 0.004484304932735426, + "brier": 0.0003525449013685647, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.00035955874849788325, + "calibration_in_the_large": 6.949439612128673e-06, + "expected_calibration_error_10bin": 6.949439612128673e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9294532627865961, + "auprc": 0.004975124378109453, + "brier": 0.00035264442028025227, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0004131883921680789, + "calibration_in_the_large": 6.0579083282324346e-05, + "expected_calibration_error_10bin": 6.0579083282324346e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9625970359915315, + "auprc": 0.03833333333333333, + "brier": 0.0007006240052420612, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0004749780717129615, + "calibration_in_the_large": -0.00023024054605854765, + "expected_calibration_error_10bin": 0.00023024054605854765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9620677487649965, + "auprc": 0.03825944170771757, + "brier": 0.0007005031910955009, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0005125522185198363, + "calibration_in_the_large": -0.00019266639925167282, + "expected_calibration_error_10bin": 0.00019266639925167282, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9627734650670431, + "auprc": 0.03835845896147404, + "brier": 0.000700209098346426, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.00056842943203377, + "calibration_in_the_large": -0.0001367891857377391, + "expected_calibration_error_10bin": 0.0001367891857377391, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9617148906139732, + "auprc": 0.03433787308026659, + "brier": 0.0007001364408683159, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0005926150319839626, + "calibration_in_the_large": -0.00011260358578754658, + "expected_calibration_error_10bin": 0.00011260358578754658, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9599505998588568, + "auprc": 0.03249475890985325, + "brier": 0.000699683463664672, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006412101880910368, + "calibration_in_the_large": -6.400842968047236e-05, + "expected_calibration_error_10bin": 6.400842968047236e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9599505998588568, + "auprc": 0.03249475890985325, + "brier": 0.0006996692586378093, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006438402638299665, + "calibration_in_the_large": -6.13783539415427e-05, + "expected_calibration_error_10bin": 6.13783539415427e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + } + ], + "reason": null + }, + "K12": { + "time_averaged_auroc": 0.9131756118986065, + "time_averaged_auprc": 0.09741525018485245, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9920269312544295, + "auprc": 0.061669829222011384, + "brier": 0.0006878326010127899, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.000631289234375956, + "calibration_in_the_large": -7.692606307446899e-05, + "expected_calibration_error_10bin": 7.692606307446899e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9937987243090007, + "auprc": 0.10368663594470046, + "brier": 0.0008413240237991282, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0023608627384606976, + "calibration_in_the_large": 0.0016526474410102727, + "expected_calibration_error_10bin": 0.0016526474410102727, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.9023767293366441, + "auprc": 0.07003464416312125, + "brier": 0.002152875958358216, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0038612807394859936, + "calibration_in_the_large": 0.0020907424958599313, + "expected_calibration_error_10bin": 0.0020907424958599313, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.9076376554174067, + "auprc": 0.0857150502218774, + "brier": 0.003967831418028653, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.005609092565944973, + "calibration_in_the_large": 0.0024221237274180607, + "expected_calibration_error_10bin": 0.003982947883900244, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.9093743832642589, + "auprc": 0.0840701290158319, + "brier": 0.004071006502715382, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.005975894750753354, + "calibration_in_the_large": 0.002788925912226442, + "expected_calibration_error_10bin": 0.003789934976637991, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.9102032761002565, + "auprc": 0.08600753233417086, + "brier": 0.004326721697429337, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.006574496407948649, + "calibration_in_the_large": 0.0033875275694217367, + "expected_calibration_error_10bin": 0.004246665673947428, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 10, + "negatives": 2814, + "auroc": 0.8950959488272922, + "auprc": 0.078733942125661, + "brier": 0.004766084593822068, + "calibration": { + "observed_rate": 0.0035410764872521247, + "mean_prediction": 0.006784811290305514, + "calibration_in_the_large": 0.0032437348030533893, + "expected_calibration_error_10bin": 0.004647456303246788, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 13, + "negatives": 2811, + "auroc": 0.9140738308294338, + "auprc": 0.13789250214421778, + "brier": 0.0056179806809504625, + "calibration": { + "observed_rate": 0.004603399433427762, + "mean_prediction": 0.007318540995740565, + "calibration_in_the_large": 0.002715141562312803, + "expected_calibration_error_10bin": 0.005369446802593616, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8902897813929842, + "auprc": 0.10965032747657374, + "brier": 0.006153349244623899, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.007656020868515148, + "calibration_in_the_large": 0.0026985137863621738, + "expected_calibration_error_10bin": 0.005976521218466363, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8897051347229283, + "auprc": 0.109350520038953, + "brier": 0.006239720080673723, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.007842145619547016, + "calibration_in_the_large": 0.0028846385373940417, + "expected_calibration_error_10bin": 0.006032245458473274, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8892475851550584, + "auprc": 0.10932251269209534, + "brier": 0.00631944394636296, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.00805396772784017, + "calibration_in_the_large": 0.003096460645687196, + "expected_calibration_error_10bin": 0.006054722723832157, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8886883579054398, + "auprc": 0.11512909218067831, + "brier": 0.006420790981495129, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.00825565999770283, + "calibration_in_the_large": 0.003298152915549856, + "expected_calibration_error_10bin": 0.006192350631450963, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8887646161667514, + "auprc": 0.11513553484318949, + "brier": 0.0064347397629301315, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.008298474481091715, + "calibration_in_the_large": 0.003340967398938741, + "expected_calibration_error_10bin": 0.0061902979315278635, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "K20": { + "time_averaged_auroc": 0.7208578390833211, + "time_averaged_auprc": 0.010337628790182594, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.6728307254623044, + "auprc": 0.0010857763300760044, + "brier": 0.0003612224315526707, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0011794035439365125, + "calibration_in_the_large": 0.0008239111870221861, + "expected_calibration_error_10bin": 0.0008239111870221861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 3, + "negatives": 2810, + "auroc": 0.662870699881376, + "auprc": 0.013528255129866997, + "brier": 0.001078538359700775, + "calibration": { + "observed_rate": 0.001066477070742979, + "mean_prediction": 0.00239313772437489, + "calibration_in_the_large": 0.0013266606536319109, + "expected_calibration_error_10bin": 0.0013266606536319109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6543253826984692, + "auprc": 0.009302279205417086, + "brier": 0.001447901281349821, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.00303274326510856, + "calibration_in_the_large": 0.0016107738374512548, + "expected_calibration_error_10bin": 0.0016107738374512546, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6524563901744393, + "auprc": 0.008658179584809961, + "brier": 0.0014664675221782992, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0037466129804070913, + "calibration_in_the_large": 0.002324643552749786, + "expected_calibration_error_10bin": 0.0023246435527497855, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7003561253561253, + "auprc": 0.008537711695280878, + "brier": 0.0018373413862352139, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.004433300172343715, + "calibration_in_the_large": 0.0026558383877720833, + "expected_calibration_error_10bin": 0.0026558383877720833, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.6992165242165242, + "auprc": 0.008234357359661647, + "brier": 0.0018591762718679402, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.004869916488547548, + "calibration_in_the_large": 0.0030924547039759163, + "expected_calibration_error_10bin": 0.0030924547039759163, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 6, + "negatives": 2807, + "auroc": 0.7411827573922337, + "auprc": 0.01032096965865853, + "brier": 0.002214057900147217, + "calibration": { + "observed_rate": 0.002132954141485958, + "mean_prediction": 0.005272974934958303, + "calibration_in_the_large": 0.003140020793472345, + "expected_calibration_error_10bin": 0.0031400207934723454, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.7701863354037267, + "auprc": 0.011880805673617089, + "brier": 0.0025623072953246968, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.0055737156688430035, + "calibration_in_the_large": 0.0030852691704427193, + "expected_calibration_error_10bin": 0.003085269170442719, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7861933642525866, + "auprc": 0.013179354270549856, + "brier": 0.0036203085972590456, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.005848282524042798, + "calibration_in_the_large": 0.002293358954899534, + "expected_calibration_error_10bin": 0.002293358954899534, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7882982518729932, + "auprc": 0.013075789329027004, + "brier": 0.003643341922885918, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0062589563146715835, + "calibration_in_the_large": 0.00270403274552832, + "expected_calibration_error_10bin": 0.00270403274552832, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7484913373564337, + "auprc": 0.012352501327192787, + "brier": 0.004013208781070257, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.006558262507432999, + "calibration_in_the_large": 0.0026478465813754093, + "expected_calibration_error_10bin": 0.0026478465813754093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7473557848290182, + "auprc": 0.012113299413223096, + "brier": 0.004028014297763783, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.006935114821650275, + "calibration_in_the_large": 0.0030246988955926852, + "expected_calibration_error_10bin": 0.0030246988955926844, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7473882291869444, + "auprc": 0.012119895294992798, + "brier": 0.00402855674482591, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.0069470996283827885, + "calibration_in_the_large": 0.003036683702325199, + "expected_calibration_error_10bin": 0.0030366837023251985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K21": { + "time_averaged_auroc": 0.7592774598555392, + "time_averaged_auprc": 0.12735700400204084, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2043, + "positives": 16, + "negatives": 2027, + "auroc": 0.7779353724716329, + "auprc": 0.054357036680343834, + "brier": 0.007700230040041801, + "calibration": { + "observed_rate": 0.00783162016642193, + "mean_prediction": 0.008113730584559697, + "calibration_in_the_large": 0.0002821104181377678, + "expected_calibration_error_10bin": 0.0002821104181377678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 33, + "negatives": 2010, + "auroc": 0.8023368008442635, + "auprc": 0.12072118049079501, + "brier": 0.015469618293451445, + "calibration": { + "observed_rate": 0.016152716593245228, + "mean_prediction": 0.01385674864848547, + "calibration_in_the_large": -0.0022959679447597577, + "expected_calibration_error_10bin": 0.0022959679447597564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 44, + "negatives": 1999, + "auroc": 0.7786734276229024, + "auprc": 0.10851148476063069, + "brier": 0.0205209346454622, + "calibration": { + "observed_rate": 0.021536955457660302, + "mean_prediction": 0.01833120269563386, + "calibration_in_the_large": -0.003205752762026441, + "expected_calibration_error_10bin": 0.003347072253057622, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 52, + "negatives": 1991, + "auroc": 0.755061237105436, + "auprc": 0.11344899821150856, + "brier": 0.024081509685967947, + "calibration": { + "observed_rate": 0.025452765540871267, + "mean_prediction": 0.02172638485148892, + "calibration_in_the_large": -0.0037263806893823477, + "expected_calibration_error_10bin": 0.0037263806893823494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 56, + "negatives": 1987, + "auroc": 0.756488604500683, + "auprc": 0.12248604740911595, + "brier": 0.02570092033481683, + "calibration": { + "observed_rate": 0.02741067058247675, + "mean_prediction": 0.024644911926806932, + "calibration_in_the_large": -0.002765758655669817, + "expected_calibration_error_10bin": 0.0029701157185123444, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 59, + "negatives": 1984, + "auroc": 0.7468732914160744, + "auprc": 0.12437767331281194, + "brier": 0.02705319525817516, + "calibration": { + "observed_rate": 0.02887909936368086, + "mean_prediction": 0.027287823792686707, + "calibration_in_the_large": -0.0015912755709941544, + "expected_calibration_error_10bin": 0.002678863100161182, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 67, + "negatives": 1976, + "auroc": 0.7637697141821258, + "auprc": 0.14636417380673292, + "brier": 0.030206455574804912, + "calibration": { + "observed_rate": 0.032794909446891826, + "mean_prediction": 0.030185259843819076, + "calibration_in_the_large": -0.00260964960307275, + "expected_calibration_error_10bin": 0.003358854933817815, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 73, + "negatives": 1970, + "auroc": 0.7412210555594186, + "auprc": 0.13219203082901188, + "brier": 0.033003956061546776, + "calibration": { + "observed_rate": 0.03573176700930005, + "mean_prediction": 0.03225319588803506, + "calibration_in_the_large": -0.003478571121264991, + "expected_calibration_error_10bin": 0.005801995067979833, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 76, + "negatives": 1967, + "auroc": 0.747043320043882, + "auprc": 0.13590377861689357, + "brier": 0.03425218979578223, + "calibration": { + "observed_rate": 0.03720019579050416, + "mean_prediction": 0.034840593034235375, + "calibration_in_the_large": -0.002359602756268786, + "expected_calibration_error_10bin": 0.005561975488760356, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 85, + "negatives": 1958, + "auroc": 0.7516733761941957, + "auprc": 0.14259755840321367, + "brier": 0.03803710614316993, + "calibration": { + "observed_rate": 0.041605482134116495, + "mean_prediction": 0.036664167063277006, + "calibration_in_the_large": -0.004941315070839489, + "expected_calibration_error_10bin": 0.006369542568690465, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 88, + "negatives": 1955, + "auroc": 0.7553766565914903, + "auprc": 0.15146454911908522, + "brier": 0.03911050824538865, + "calibration": { + "observed_rate": 0.043073910915320604, + "mean_prediction": 0.03843875127787302, + "calibration_in_the_large": -0.004635159637447581, + "expected_calibration_error_10bin": 0.005403095465237788, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.747044310775848, + "auprc": 0.15178768641490523, + "brier": 0.041721164135782, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.04044727177876109, + "calibration_in_the_large": -0.005563496698967739, + "expected_calibration_error_10bin": 0.005563496698967734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.7471098108140564, + "auprc": 0.15142885397148229, + "brier": 0.04171796221887983, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.04073662670800231, + "calibration_in_the_large": -0.005274141769726522, + "expected_calibration_error_10bin": 0.005274141769726525, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + } + ], + "reason": null + }, + "K22": { + "time_averaged_auroc": 0.7968263925731031, + "time_averaged_auprc": 0.03256166935160688, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2764, + "positives": 1, + "negatives": 2763, + "auroc": 0.9916757148027506, + "auprc": 0.041666666666666664, + "brier": 0.00035993428512848193, + "calibration": { + "observed_rate": 0.000361794500723589, + "mean_prediction": 0.0011455995104424524, + "calibration_in_the_large": 0.0007838050097188633, + "expected_calibration_error_10bin": 0.0007838050097188633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 4, + "negatives": 2760, + "auroc": 0.7477355072463768, + "auprc": 0.030456138082831135, + "brier": 0.0014377613302250514, + "calibration": { + "observed_rate": 0.001447178002894356, + "mean_prediction": 0.0020331615767345324, + "calibration_in_the_large": 0.0005859835738401765, + "expected_calibration_error_10bin": 0.0005859835738401765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 8, + "negatives": 2756, + "auroc": 0.7983037010159652, + "auprc": 0.01953566064459602, + "brier": 0.0028747407123146207, + "calibration": { + "observed_rate": 0.002894356005788712, + "mean_prediction": 0.002711581139616488, + "calibration_in_the_large": -0.00018277486617222392, + "expected_calibration_error_10bin": 0.00018277486617222392, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 9, + "negatives": 2755, + "auroc": 0.7411978221415608, + "auprc": 0.01840625220873808, + "brier": 0.0032396464942909173, + "calibration": { + "observed_rate": 0.003256150506512301, + "mean_prediction": 0.0033574002513180076, + "calibration_in_the_large": 0.00010124974480570656, + "expected_calibration_error_10bin": 0.00010124974480570656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 13, + "negatives": 2751, + "auroc": 0.8129071945865839, + "auprc": 0.037661147636431754, + "brier": 0.004633123786735901, + "calibration": { + "observed_rate": 0.004703328509406657, + "mean_prediction": 0.003946251027035733, + "calibration_in_the_large": -0.0007570774823709246, + "expected_calibration_error_10bin": 0.0007570774823709246, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.7833246753246753, + "auprc": 0.03490970275625486, + "brier": 0.004993709202821189, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.004259938285376742, + "calibration_in_the_large": -0.0008051847247535042, + "expected_calibration_error_10bin": 0.0008051847247535042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.784, + "auprc": 0.03472257160660861, + "brier": 0.00499290020813367, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.004781459398574094, + "calibration_in_the_large": -0.00028366361155615204, + "expected_calibration_error_10bin": 0.0003618817097414935, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 15, + "negatives": 2749, + "auroc": 0.7912938038074452, + "auprc": 0.03418620162742767, + "brier": 0.005348353977587752, + "calibration": { + "observed_rate": 0.005426917510853835, + "mean_prediction": 0.005190356591512877, + "calibration_in_the_large": -0.00023656091934095777, + "expected_calibration_error_10bin": 0.00032048918670327965, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 17, + "negatives": 2747, + "auroc": 0.7826077646202274, + "auprc": 0.032327535289713424, + "brier": 0.006062803741167495, + "calibration": { + "observed_rate": 0.006150506512301013, + "mean_prediction": 0.005606034215543069, + "calibration_in_the_large": -0.0005444722967579444, + "expected_calibration_error_10bin": 0.000633416438382922, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 18, + "negatives": 2746, + "auroc": 0.7934571497936392, + "auprc": 0.03354530259591966, + "brier": 0.006412206812767176, + "calibration": { + "observed_rate": 0.006512301013024602, + "mean_prediction": 0.006015820097184675, + "calibration_in_the_large": -0.000496480915839927, + "expected_calibration_error_10bin": 0.0007368033393214883, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 19, + "negatives": 2745, + "auroc": 0.8043332374652479, + "auprc": 0.036528869170946686, + "brier": 0.006757284980169419, + "calibration": { + "observed_rate": 0.006874095513748191, + "mean_prediction": 0.00631077376108045, + "calibration_in_the_large": -0.0005633217526677409, + "expected_calibration_error_10bin": 0.0008821211847059666, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7638317448743989, + "auprc": 0.034698179415059094, + "brier": 0.00747750569889124, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.0066996142743158205, + "calibration_in_the_large": -0.0008980702408795489, + "expected_calibration_error_10bin": 0.001306034701075471, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7640747877714702, + "auprc": 0.0346574738696957, + "brier": 0.007477540126783505, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.006731885938632189, + "calibration_in_the_large": -0.0008657985765631801, + "expected_calibration_error_10bin": 0.001275662180049173, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + } + ], + "reason": null + }, + "K25": { + "time_averaged_auroc": 0.7979657199776583, + "time_averaged_auprc": 0.00603397911530526, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.8952042628774423, + "auprc": 0.004996809334974247, + "brier": 0.0007105723707504705, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0005314990603676528, + "calibration_in_the_large": -0.00017847609050206678, + "expected_calibration_error_10bin": 0.00017847609050206678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.8449378330373002, + "auprc": 0.003389538615690511, + "brier": 0.0007211192596997265, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001162642903626149, + "calibration_in_the_large": 0.00045266775275642937, + "expected_calibration_error_10bin": 0.00045266775275642937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.8328595119639896, + "auprc": 0.0041446215797579415, + "brier": 0.0010851996436195743, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0017333574229237466, + "calibration_in_the_large": 0.0006683946966191672, + "expected_calibration_error_10bin": 0.0006683946966191672, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.827027027027027, + "auprc": 0.006693080546432327, + "brier": 0.001821637496141875, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0023714624828196466, + "calibration_in_the_large": 0.0005965246056453476, + "expected_calibration_error_10bin": 0.0005965246056453475, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8271692745376956, + "auprc": 0.006664770083522145, + "brier": 0.001831792054870475, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.002603300943403624, + "calibration_in_the_large": 0.0008283630662293251, + "expected_calibration_error_10bin": 0.0008283630662293251, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7722044349579035, + "auprc": 0.006231168135242121, + "brier": 0.002192812144357843, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.002778902587561634, + "calibration_in_the_large": 0.0006489771349524752, + "expected_calibration_error_10bin": 0.0006489771349524753, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7742796157950907, + "auprc": 0.006413102498107646, + "brier": 0.0022128864365988654, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0030574493610571974, + "calibration_in_the_large": 0.0009275239084480386, + "expected_calibration_error_10bin": 0.0009275239084480381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7740424522708408, + "auprc": 0.006389219530987883, + "brier": 0.0022194765494659104, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0032209053552201376, + "calibration_in_the_large": 0.0010909799026109787, + "expected_calibration_error_10bin": 0.0010909799026109785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7749911063678406, + "auprc": 0.006474675986413012, + "brier": 0.0022442207085118424, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.003527805396253638, + "calibration_in_the_large": 0.0013978799436444793, + "expected_calibration_error_10bin": 0.0013978799436444793, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7630910015251652, + "auprc": 0.006679252631134125, + "brier": 0.002605545249761671, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0036457375162030946, + "calibration_in_the_large": 0.001160824488159076, + "expected_calibration_error_10bin": 0.0011608244881590763, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7622267412303, + "auprc": 0.006721131571119636, + "brier": 0.002627561298920839, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.003984782696881999, + "calibration_in_the_large": 0.0014998696688379807, + "expected_calibration_error_10bin": 0.001499869668837981, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7626842907981698, + "auprc": 0.006821474064613575, + "brier": 0.0026444704761978575, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.004208607409500488, + "calibration_in_the_large": 0.0017236943814564693, + "expected_calibration_error_10bin": 0.0017236943814564695, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7628368073207931, + "auprc": 0.006822883920973209, + "brier": 0.002645210778940395, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.004220193041317222, + "calibration_in_the_large": 0.0017352800132732034, + "expected_calibration_error_10bin": 0.0017352800132732034, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "K26": { + "time_averaged_auroc": 0.9256138399255155, + "time_averaged_auprc": 0.07216385550548601, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 5.47236526031866e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00042150795609829456, + "calibration_in_the_large": 0.00042150795609829456, + "expected_calibration_error_10bin": 0.00042150795609829456, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9267425320056899, + "auprc": 0.05246913580246914, + "brier": 0.0007050957835622179, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0008823762708921182, + "calibration_in_the_large": 0.00017164421687648214, + "expected_calibration_error_10bin": 0.00017164421687648214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9126052413138859, + "auprc": 0.030312200913059282, + "brier": 0.0010586394822069238, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0012899613992321548, + "calibration_in_the_large": 0.00022386331820870064, + "expected_calibration_error_10bin": 0.00022386331820870064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9265978892446342, + "auprc": 0.02778908627354223, + "brier": 0.001058574900371052, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0013736133393023283, + "calibration_in_the_large": 0.00030751525827887416, + "expected_calibration_error_10bin": 0.00030751525827887416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.9548932384341637, + "auprc": 0.15978899572649574, + "brier": 0.001389287229983091, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0014819724350111833, + "calibration_in_the_large": 6.050832697991116e-05, + "expected_calibration_error_10bin": 6.050832697991116e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9418298326806693, + "auprc": 0.0946820420958352, + "brier": 0.0017403115365307972, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0016335299262788627, + "calibration_in_the_large": -0.0001433002087602275, + "expected_calibration_error_10bin": 0.0001433002087602275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9445354218583125, + "auprc": 0.09283233873851356, + "brier": 0.001738014352477527, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.001772873193230676, + "calibration_in_the_large": -3.956941808414298e-06, + "expected_calibration_error_10bin": 3.956941808414298e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9453186187255251, + "auprc": 0.09060835199191364, + "brier": 0.001737212434950968, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0019526476474162173, + "calibration_in_the_large": 0.00017581751237712704, + "expected_calibration_error_10bin": 0.00017581751237712704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9113247863247863, + "auprc": 0.07694567327890593, + "brier": 0.0020901459683414316, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002066953035792174, + "calibration_in_the_large": -6.524312625473408e-05, + "expected_calibration_error_10bin": 6.524312625473408e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9106125356125356, + "auprc": 0.07528984125715195, + "brier": 0.002090599595516734, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0022158937195348887, + "calibration_in_the_large": 8.369755748798046e-05, + "expected_calibration_error_10bin": 8.369755748798046e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9106718898385565, + "auprc": 0.06135671969855195, + "brier": 0.0020912572503917187, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002307105408772162, + "calibration_in_the_large": 0.0001749092467252535, + "expected_calibration_error_10bin": 0.0001749092467252535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9110280151946819, + "auprc": 0.052025061857519476, + "brier": 0.002092160984876129, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0023892995020183662, + "calibration_in_the_large": 0.00025710333997145795, + "expected_calibration_error_10bin": 0.00025710333997145795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9112060778727445, + "auprc": 0.051866818431874, + "brier": 0.0020919805781067285, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002417468449108495, + "calibration_in_the_large": 0.0002852722870615868, + "expected_calibration_error_10bin": 0.0002852722870615868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + } + ], + "reason": null + }, + "K29": { + "time_averaged_auroc": 0.7725127849655395, + "time_averaged_auprc": 0.019863885984906033, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 8.0150037786114e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001624128601311696, + "calibration_in_the_large": 0.001624128601311696, + "expected_calibration_error_10bin": 0.001624128601311696, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7928348909657321, + "auprc": 0.009545269416102023, + "brier": 0.0010838408686080407, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.002669699740410311, + "calibration_in_the_large": 0.0015925004585431656, + "expected_calibration_error_10bin": 0.0015925004585431656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.821826681049982, + "auprc": 0.013440141955949447, + "brier": 0.00144684478009384, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0036498308247860265, + "calibration_in_the_large": 0.0022135651156298328, + "expected_calibration_error_10bin": 0.0022135651156298328, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.8254225098885293, + "auprc": 0.016759146364409522, + "brier": 0.0014554798040892474, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.004207008282966031, + "calibration_in_the_large": 0.002770742573809837, + "expected_calibration_error_10bin": 0.002770742573809837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.801007556675063, + "auprc": 0.022356534421446108, + "brier": 0.0021632368778284282, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.004758871199834433, + "calibration_in_the_large": 0.0026044726361001426, + "expected_calibration_error_10bin": 0.002604472636100142, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.8241283554458501, + "auprc": 0.023565674166633244, + "brier": 0.0025188674609757304, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.005183105989098273, + "calibration_in_the_large": 0.002669640998074934, + "expected_calibration_error_10bin": 0.0026696409980749335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.7509189189189189, + "auprc": 0.019354210422900343, + "brier": 0.003594632530738661, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.005606115715962975, + "calibration_in_the_large": 0.00201545144307249, + "expected_calibration_error_10bin": 0.00201545144307249, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.751927927927928, + "auprc": 0.01922983834382761, + "brier": 0.0036082327529761366, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.006059995682615807, + "calibration_in_the_large": 0.002469331409725322, + "expected_calibration_error_10bin": 0.0024693314097253226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 12, + "negatives": 2773, + "auroc": 0.7164923668710181, + "auprc": 0.01774443566837037, + "brier": 0.004333917093564593, + "calibration": { + "observed_rate": 0.004308797127468581, + "mean_prediction": 0.006579187604453652, + "calibration_in_the_large": 0.002270390476985071, + "expected_calibration_error_10bin": 0.0022703904769850705, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 13, + "negatives": 2772, + "auroc": 0.723914973914974, + "auprc": 0.01777956509213507, + "brier": 0.004698326786489482, + "calibration": { + "observed_rate": 0.00466786355475763, + "mean_prediction": 0.007077135351710975, + "calibration_in_the_large": 0.0024092717969533446, + "expected_calibration_error_10bin": 0.0024092717969533446, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 14, + "negatives": 2771, + "auroc": 0.7437490333556736, + "auprc": 0.02500723633892885, + "brier": 0.0050163325519693176, + "calibration": { + "observed_rate": 0.005026929982046679, + "mean_prediction": 0.007409804183642816, + "calibration_in_the_large": 0.0023828742015961375, + "expected_calibration_error_10bin": 0.0023828742015961383, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.7588447653429603, + "auprc": 0.026827792073947924, + "brier": 0.0053670944605858474, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.0077836389808152275, + "calibration_in_the_large": 0.0023976425714795, + "expected_calibration_error_10bin": 0.0023976425714794997, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.7590854392298436, + "auprc": 0.026756787554221905, + "brier": 0.005368553587962091, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.00784890794306425, + "calibration_in_the_large": 0.002462911533728523, + "expected_calibration_error_10bin": 0.0024629115337285227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "K30": { + "time_averaged_auroc": 0.8624667890722937, + "time_averaged_auprc": 0.004649390699609444, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 6.705253531077001e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034521978328568606, + "calibration_in_the_large": 0.00034521978328568606, + "expected_calibration_error_10bin": 0.00034521978328568606, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 2.8783472068838284e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006756194252218996, + "calibration_in_the_large": 0.0006756194252218996, + "expected_calibration_error_10bin": 0.0006756194252218996, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8673721340388008, + "auprc": 0.0038837056308124755, + "brier": 0.0007072272651757689, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0008273508101187091, + "calibration_in_the_large": 0.000122380771345357, + "expected_calibration_error_10bin": 0.000122380771345357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8580246913580247, + "auprc": 0.0036246724791459423, + "brier": 0.0007085283342967453, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0009810657907735937, + "calibration_in_the_large": 0.00027609575200024156, + "expected_calibration_error_10bin": 0.00027609575200024156, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8493827160493828, + "auprc": 0.003410786001147447, + "brier": 0.0007100747065215304, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0011241833307901862, + "calibration_in_the_large": 0.0004192132920168341, + "expected_calibration_error_10bin": 0.0004192132920168341, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8481481481481481, + "auprc": 0.003383798440854141, + "brier": 0.0007114154389507878, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0012390293640728493, + "calibration_in_the_large": 0.0005340593252994972, + "expected_calibration_error_10bin": 0.0005340593252994972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8469135802469135, + "auprc": 0.003353827406668882, + "brier": 0.0007132948308662748, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0013523894847906428, + "calibration_in_the_large": 0.0006474194460172907, + "expected_calibration_error_10bin": 0.0006474194460172907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.844268077601411, + "auprc": 0.003296209759775013, + "brier": 0.000714572841826595, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0014479854500046674, + "calibration_in_the_large": 0.0007430154112313152, + "expected_calibration_error_10bin": 0.0007430154112313152, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8462081128747796, + "auprc": 0.003333333333333333, + "brier": 0.0007191561950851754, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.001625060839950059, + "calibration_in_the_large": 0.0009200908011767068, + "expected_calibration_error_10bin": 0.0009200908011767068, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.8842625264643613, + "auprc": 0.006857014092574955, + "brier": 0.001068632921077533, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.001776473694038153, + "calibration_in_the_large": 0.000719018635878125, + "expected_calibration_error_10bin": 0.000719018635878125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.881439661256175, + "auprc": 0.006709030850111331, + "brier": 0.0010703420709846023, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.001877052848332117, + "calibration_in_the_large": 0.0008195977901720888, + "expected_calibration_error_10bin": 0.0008195977901720888, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.880616325570454, + "auprc": 0.006658116572006839, + "brier": 0.0010715925718926328, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.001938636014782299, + "calibration_in_the_large": 0.0008811809566222708, + "expected_calibration_error_10bin": 0.0008811809566222708, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.8804987061867796, + "auprc": 0.006632803129273529, + "brier": 0.0010719835590799383, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0019514521403104516, + "calibration_in_the_large": 0.0008939970821504235, + "expected_calibration_error_10bin": 0.0008939970821504235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + } + ], + "reason": null + }, + "K31": { + "time_averaged_auroc": 0.9337926408402921, + "time_averaged_auprc": 0.08205363812067328, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2756, + "positives": 3, + "negatives": 2753, + "auroc": 0.9434556241675748, + "auprc": 0.07617209045780475, + "brier": 0.001069479871143472, + "calibration": { + "observed_rate": 0.0010885341074020319, + "mean_prediction": 0.0011548097758375276, + "calibration_in_the_large": 6.627566843549573e-05, + "expected_calibration_error_10bin": 6.627566843549573e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.9625590694292985, + "auprc": 0.09715936293128212, + "brier": 0.0017523557731036542, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.002414454516310296, + "calibration_in_the_large": 0.0006002310039735761, + "expected_calibration_error_10bin": 0.0006002310039735764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.9596216806111313, + "auprc": 0.09166500719367868, + "brier": 0.0024427395023497384, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.003234276778279314, + "calibration_in_the_large": 0.0006943638610079064, + "expected_calibration_error_10bin": 0.0006943638610079064, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.9578329694323144, + "auprc": 0.0883866729718967, + "brier": 0.0027980145344753647, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.003946846997684821, + "calibration_in_the_large": 0.0010440893779460696, + "expected_calibration_error_10bin": 0.0012671314726016537, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 10, + "negatives": 2746, + "auroc": 0.9504734158776402, + "auprc": 0.07789925080645159, + "brier": 0.0035167617108183735, + "calibration": { + "observed_rate": 0.00362844702467344, + "mean_prediction": 0.00457618152270213, + "calibration_in_the_large": 0.0009477344980286903, + "expected_calibration_error_10bin": 0.0011167034903553962, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.9314124855108462, + "auprc": 0.06938641421902837, + "brier": 0.003888039683595438, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.0051679346306020635, + "calibration_in_the_large": 0.00117664290346128, + "expected_calibration_error_10bin": 0.001397067497772932, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.9285418946856379, + "auprc": 0.07521004712558708, + "brier": 0.005263908334781001, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.005631360275867643, + "calibration_in_the_large": 0.00018868973885748357, + "expected_calibration_error_10bin": 0.00032044957913463396, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 17, + "negatives": 2739, + "auroc": 0.934003393252153, + "auprc": 0.08521963571615558, + "brier": 0.005922507846527931, + "calibration": { + "observed_rate": 0.006168359941944848, + "mean_prediction": 0.006099932082027491, + "calibration_in_the_large": -6.842785991735632e-05, + "expected_calibration_error_10bin": 0.0008528209516831768, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.9198522847171496, + "auprc": 0.07969719813283654, + "brier": 0.006285079191133956, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.006502886876062371, + "calibration_in_the_large": -2.8317768349820326e-05, + "expected_calibration_error_10bin": 0.0006107841650435609, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.9195682168655142, + "auprc": 0.07968940259224505, + "brier": 0.006294302439452879, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.006871208986188352, + "calibration_in_the_large": 0.00034000434177616, + "expected_calibration_error_10bin": 0.0011459798461146426, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.9238697767436495, + "auprc": 0.0855702934936116, + "brier": 0.006602859502443458, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.00741401742046384, + "calibration_in_the_large": 0.0005199680735843044, + "expected_calibration_error_10bin": 0.0010277494016094652, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.9039609993906155, + "auprc": 0.08035508682091155, + "brier": 0.007331463193953909, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.007937372113098463, + "calibration_in_the_large": 0.00031763336128423896, + "expected_calibration_error_10bin": 0.0008162656444485529, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.9041525202402716, + "auprc": 0.08028683310726314, + "brier": 0.007332514137732848, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.00800233399307617, + "calibration_in_the_large": 0.0003825952412619465, + "expected_calibration_error_10bin": 0.000759765093643088, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + } + ], + "reason": null + }, + "K40": { + "time_averaged_auroc": 0.9151335415247518, + "time_averaged_auprc": 0.009166601967526052, + "valid_timepoint_cells": 10, + "timepoints": [ + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 9.806029122006247e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022361855712425095, + "calibration_in_the_large": 0.00022361855712425095, + "expected_calibration_error_10bin": 0.00022361855712425095, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 4.1508203138717356e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004182308695771155, + "calibration_in_the_large": 0.0004182308695771155, + "expected_calibration_error_10bin": 0.0004182308695771155, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 7.558368683947004e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005408217914748246, + "calibration_in_the_large": 0.0005408217914748246, + "expected_calibration_error_10bin": 0.0005408217914748246, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 1, + "negatives": 2826, + "auroc": 0.8874734607218684, + "auprc": 0.003134796238244514, + "brier": 0.0003537968070723186, + "calibration": { + "observed_rate": 0.00035373187124159886, + "mean_prediction": 0.0006464028746030715, + "calibration_in_the_large": 0.00029267100336147266, + "expected_calibration_error_10bin": 0.00029267100336147266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.884424778761062, + "auprc": 0.0044498037546696935, + "brier": 0.0007065317970810437, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0007477856345558696, + "calibration_in_the_large": 4.032189207267187e-05, + "expected_calibration_error_10bin": 4.032189207267187e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.9198230088495575, + "auprc": 0.006440927493559073, + "brier": 0.0007062559129258916, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0008705431506178434, + "calibration_in_the_large": 0.00016307940813464566, + "expected_calibration_error_10bin": 0.00016307940813464566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9172568460812087, + "auprc": 0.008360929409497585, + "brier": 0.0010586573415623573, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0010231231494283075, + "calibration_in_the_large": -3.8072464296489165e-05, + "expected_calibration_error_10bin": 3.8072464296489165e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9171388101983002, + "auprc": 0.008287500047842677, + "brier": 0.0010586897369481573, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0011411075240714903, + "calibration_in_the_large": 7.991191034669365e-05, + "expected_calibration_error_10bin": 7.991191034669365e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9212700661000944, + "auprc": 0.008722675736536655, + "brier": 0.0010588051273503003, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001209658194525249, + "calibration_in_the_large": 0.00014846258080045225, + "expected_calibration_error_10bin": 0.00014846258080045225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9180830972615676, + "auprc": 0.008382129932124442, + "brier": 0.0010590355806027094, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001301493807310363, + "calibration_in_the_large": 0.00024029819358556631, + "expected_calibration_error_10bin": 0.00024029819358556631, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9187913125590179, + "auprc": 0.008432595661362995, + "brier": 0.0010591253749701378, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001364206013685721, + "calibration_in_the_large": 0.00030301039996092423, + "expected_calibration_error_10bin": 0.00030301039996092423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9334927382217499, + "auprc": 0.01772214182565956, + "brier": 0.0014061525559054414, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0015065267133140916, + "calibration_in_the_large": 9.159922834769615e-05, + "expected_calibration_error_10bin": 9.159922834769615e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9335812964930924, + "auprc": 0.017732519575763335, + "brier": 0.0014061130818970894, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.001524568379528371, + "calibration_in_the_large": 0.00010964089456197553, + "expected_calibration_error_10bin": 0.00010964089456197553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + } + ], + "reason": null + }, + "K42": { + "time_averaged_auroc": 0.7756816770478335, + "time_averaged_auprc": 0.010984151842431171, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7350958126330731, + "auprc": 0.0034241004619688983, + "brier": 0.0007093646757162908, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00023589205893457033, + "calibration_in_the_large": -0.00047332779922145806, + "expected_calibration_error_10bin": 0.00047332779922145806, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7709368346344926, + "auprc": 0.002725128681850264, + "brier": 0.0007097830448159854, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00042566060853350274, + "calibration_in_the_large": -0.0002835592496225257, + "expected_calibration_error_10bin": 0.0002835592496225257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.75529523133357, + "auprc": 0.002888363531326394, + "brier": 0.0010653745398760454, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0005755932926155849, + "calibration_in_the_large": -0.0004882364946184577, + "expected_calibration_error_10bin": 0.0004882364946184577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.7396757780144362, + "auprc": 0.0026709625878728813, + "brier": 0.0010682206876813222, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0007125838326931875, + "calibration_in_the_large": -0.000351245954540855, + "expected_calibration_error_10bin": 0.000351245954540855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.7170749023784168, + "auprc": 0.002448468329201567, + "brier": 0.0010696067196784309, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0008085116169769717, + "calibration_in_the_large": -0.00025531817025707085, + "expected_calibration_error_10bin": 0.00025531817025707085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.719796473790084, + "auprc": 0.0024993881872400975, + "brier": 0.0010739653294859243, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0009577967737757408, + "calibration_in_the_large": -0.00010603301345830181, + "expected_calibration_error_10bin": 0.00010603301345830181, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.818259325044405, + "auprc": 0.013842155895606213, + "brier": 0.0017752178171748833, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0011152649251222966, + "calibration_in_the_large": -0.0006577847202677743, + "expected_calibration_error_10bin": 0.0007330422633987435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.8169094138543517, + "auprc": 0.013978850668816958, + "brier": 0.001777444866261017, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0012171360420583086, + "calibration_in_the_large": -0.0005559136033317623, + "expected_calibration_error_10bin": 0.0006386365912321514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.8452380952380952, + "auprc": 0.02130862062241376, + "brier": 0.002126348630504305, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0013303527638959328, + "calibration_in_the_large": -0.0007973068105721524, + "expected_calibration_error_10bin": 0.0008873049522430556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.8426913053778725, + "auprc": 0.021121176737804056, + "brier": 0.002127767230955932, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0014510639438380657, + "calibration_in_the_large": -0.0006765956306300194, + "expected_calibration_error_10bin": 0.0007720349577313547, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7745670610939007, + "auprc": 0.01863009142077901, + "brier": 0.0024833428388274076, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.001535680482758693, + "calibration_in_the_large": -0.0009465890207874064, + "expected_calibration_error_10bin": 0.0010471379032211154, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7742623533594027, + "auprc": 0.018629856130734198, + "brier": 0.0024839761603492193, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0016320235203483666, + "calibration_in_the_large": -0.0008502459831977328, + "expected_calibration_error_10bin": 0.0009531273200862557, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7740592148697374, + "auprc": 0.01862681069599092, + "brier": 0.00248403347671553, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0016358419891659638, + "calibration_in_the_large": -0.0008464275143801356, + "expected_calibration_error_10bin": 0.0009495494680332413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + } + ], + "reason": null + }, + "K43": { + "time_averaged_auroc": 0.829065205001947, + "time_averaged_auprc": 0.018383883054599325, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.9665718349928877, + "auprc": 0.010526315789473684, + "brier": 0.0003549539676227192, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.00015920819380051062, + "calibration_in_the_large": -0.00019628416311381571, + "expected_calibration_error_10bin": 0.00019628416311381571, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.9711948790896159, + "auprc": 0.012195121951219513, + "brier": 0.0003546411330071357, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.00029613058701559144, + "calibration_in_the_large": -5.9361769898734896e-05, + "expected_calibration_error_10bin": 5.9361769898734896e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.9263607257203842, + "auprc": 0.009217359050445104, + "brier": 0.0007090614898989166, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.0005170002008357581, + "calibration_in_the_large": -0.0001939845129928946, + "expected_calibration_error_10bin": 0.0001939845129928946, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7661979352082592, + "auprc": 0.01462494282262436, + "brier": 0.0014149553502073042, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.000813980852757006, + "calibration_in_the_large": -0.0006079885749002993, + "expected_calibration_error_10bin": 0.0006079885749002993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7662869348522606, + "auprc": 0.014956323008396296, + "brier": 0.0014144649157800864, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0009535994764477888, + "calibration_in_the_large": -0.0004683699512095165, + "expected_calibration_error_10bin": 0.0004683699512095165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7621929512281951, + "auprc": 0.01389608781703873, + "brier": 0.0014149200645063263, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0011426676954750924, + "calibration_in_the_large": -0.0002793017321822129, + "expected_calibration_error_10bin": 0.0002793017321822129, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8066239316239316, + "auprc": 0.02511562025879922, + "brier": 0.0017594736002354446, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0014333776262823099, + "calibration_in_the_large": -0.0003440841582893219, + "expected_calibration_error_10bin": 0.0003440841582893219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8047720797720798, + "auprc": 0.024102663560935742, + "brier": 0.0017597281102589416, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0016659564435060014, + "calibration_in_the_large": -0.0001115053410656304, + "expected_calibration_error_10bin": 0.0001115053410656304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.7797576621525303, + "auprc": 0.021257219465480537, + "brier": 0.0024659856941659964, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.0018164384382576416, + "calibration_in_the_large": -0.0006720080601426426, + "expected_calibration_error_10bin": 0.0006720080601426426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8092011412268189, + "auprc": 0.02320277296007317, + "brier": 0.003167700653678697, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.001968503267897117, + "calibration_in_the_large": -0.00123092794433182, + "expected_calibration_error_10bin": 0.00123092794433182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8089633856395625, + "auprc": 0.02367664722566705, + "brier": 0.0031667676871745885, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0021343343780078215, + "calibration_in_the_large": -0.0010650968342211155, + "expected_calibration_error_10bin": 0.0010650968342211155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8048026628625773, + "auprc": 0.023057126947918775, + "brier": 0.0031671020575787644, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002449478037551183, + "calibration_in_the_large": -0.0007499531746777543, + "expected_calibration_error_10bin": 0.0007499531746777543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8049215406562055, + "auprc": 0.023162278851719047, + "brier": 0.0031670782762267067, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002464710754533215, + "calibration_in_the_large": -0.0007347204576957219, + "expected_calibration_error_10bin": 0.0007347204576957219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K44": { + "time_averaged_auroc": 0.6437813200659671, + "time_averaged_auprc": 0.00718477260680094, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5337643678160919, + "auprc": 0.0007698229407236335, + "brier": 0.00035988664020889796, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0006070641934106699, + "calibration_in_the_large": 0.0002479977661216214, + "expected_calibration_error_10bin": 0.0002479977661216214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.40190441969098095, + "auprc": 0.0008884128284292105, + "brier": 0.0007215518585154, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0011544633732798112, + "calibration_in_the_large": 0.00043633051870171425, + "expected_calibration_error_10bin": 0.00043633051870171425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6033800791082344, + "auprc": 0.005253044956029501, + "brier": 0.0014359796542348516, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0015435653264700133, + "calibration_in_the_large": 0.00010729961731381936, + "expected_calibration_error_10bin": 0.00010729961731381936, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6040992448759439, + "auprc": 0.004870921531128145, + "brier": 0.0014376579857662665, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.001802073586741391, + "calibration_in_the_large": 0.0003658078775851971, + "expected_calibration_error_10bin": 0.0003658078775851971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.678705035971223, + "auprc": 0.007931269840925494, + "brier": 0.0017926807149873313, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.002126143590465672, + "calibration_in_the_large": 0.0003308114540204296, + "expected_calibration_error_10bin": 0.0003308114540204296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6784172661870503, + "auprc": 0.009716109068935412, + "brier": 0.0017927666931363535, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0023692488147655823, + "calibration_in_the_large": 0.0005739166783203398, + "expected_calibration_error_10bin": 0.0005739166783203398, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6797122302158274, + "auprc": 0.00873490151646043, + "brier": 0.0017956020531119962, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.002707762181144487, + "calibration_in_the_large": 0.0009124300446992444, + "expected_calibration_error_10bin": 0.0009124300446992444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7134460837231618, + "auprc": 0.009586004255010544, + "brier": 0.002151210505766548, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0029285861947368637, + "calibration_in_the_large": 0.0007741876310025731, + "expected_calibration_error_10bin": 0.0007741876310025731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7129662948302746, + "auprc": 0.009421764840856174, + "brier": 0.0021532715777730946, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.003183596790300886, + "calibration_in_the_large": 0.0010291982265665952, + "expected_calibration_error_10bin": 0.0010291982265665952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7134460837231618, + "auprc": 0.00967709717538289, + "brier": 0.0021552701823983112, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0034247394769288024, + "calibration_in_the_large": 0.0012703409131945118, + "expected_calibration_error_10bin": 0.0012703409131945118, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6829682196852823, + "auprc": 0.009206509244725632, + "brier": 0.002514678130636777, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.00357890987283135, + "calibration_in_the_large": 0.0010654448818080108, + "expected_calibration_error_10bin": 0.0010654448818080108, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6830196441427543, + "auprc": 0.00869625662524081, + "brier": 0.0025187756389550837, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0038416090790159936, + "calibration_in_the_large": 0.0013281440879926542, + "expected_calibration_error_10bin": 0.0013281440879926542, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6833281908875861, + "auprc": 0.008649929064564351, + "brier": 0.0025191380312939195, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0038712897212838404, + "calibration_in_the_large": 0.001357824730260501, + "expected_calibration_error_10bin": 0.001357824730260501, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "K52": { + "time_averaged_auroc": 0.831302277482274, + "time_averaged_auprc": 0.06029348665245197, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2749, + "positives": 4, + "negatives": 2745, + "auroc": 0.9003642987249545, + "auprc": 0.02516110783275896, + "brier": 0.0014443369495098794, + "calibration": { + "observed_rate": 0.0014550745725718443, + "mean_prediction": 0.001736705118728774, + "calibration_in_the_large": 0.00028163054615692974, + "expected_calibration_error_10bin": 0.00028163054615692974, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 10, + "negatives": 2739, + "auroc": 0.8313253012048193, + "auprc": 0.03714548383669943, + "brier": 0.003613528879369459, + "calibration": { + "observed_rate": 0.0036376864314296106, + "mean_prediction": 0.004203025484691851, + "calibration_in_the_large": 0.0005653390532622403, + "expected_calibration_error_10bin": 0.0009193262820682582, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 17, + "negatives": 2732, + "auroc": 0.8573550943071225, + "auprc": 0.056245054437505285, + "brier": 0.006010800061079452, + "calibration": { + "observed_rate": 0.0061840669334303384, + "mean_prediction": 0.005247598146969635, + "calibration_in_the_large": -0.0009364687864607032, + "expected_calibration_error_10bin": 0.002092025687996633, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 23, + "negatives": 2726, + "auroc": 0.8193562793071549, + "auprc": 0.0680444396507656, + "brier": 0.008122004736924477, + "calibration": { + "observed_rate": 0.008366678792288106, + "mean_prediction": 0.006753381399232822, + "calibration_in_the_large": -0.0016132973930552833, + "expected_calibration_error_10bin": 0.0025164908901146267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 26, + "negatives": 2723, + "auroc": 0.8237662080849741, + "auprc": 0.0663192971480935, + "brier": 0.009238367133738221, + "calibration": { + "observed_rate": 0.009457984721716987, + "mean_prediction": 0.008059227359620984, + "calibration_in_the_large": -0.001398757362096003, + "expected_calibration_error_10bin": 0.0037584727795083378, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 28, + "negatives": 2721, + "auroc": 0.8263374809681314, + "auprc": 0.06632466793029093, + "brier": 0.010029856671628002, + "calibration": { + "observed_rate": 0.01018552200800291, + "mean_prediction": 0.009290205527691012, + "calibration_in_the_large": -0.0008953164803118981, + "expected_calibration_error_10bin": 0.0038922475598308715, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 31, + "negatives": 2718, + "auroc": 0.8315886918749555, + "auprc": 0.0669435880926444, + "brier": 0.01116533457102985, + "calibration": { + "observed_rate": 0.011276827937431793, + "mean_prediction": 0.009990442171706877, + "calibration_in_the_large": -0.0012863857657249168, + "expected_calibration_error_10bin": 0.005137225150066861, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 33, + "negatives": 2716, + "auroc": 0.8269960280269558, + "auprc": 0.06526090422861554, + "brier": 0.012003341839084851, + "calibration": { + "observed_rate": 0.012004365223717716, + "mean_prediction": 0.01086797897284158, + "calibration_in_the_large": -0.0011363862508761355, + "expected_calibration_error_10bin": 0.005940074907557149, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.8243709864196231, + "auprc": 0.06540097989384855, + "brier": 0.012846974425207264, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.011796513201563136, + "calibration_in_the_large": -0.0009353893084405023, + "expected_calibration_error_10bin": 0.006695438306627593, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.8246341720181072, + "auprc": 0.06547911146786985, + "brier": 0.012940971596388528, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.012501688872587775, + "calibration_in_the_large": -0.0002302136374158631, + "expected_calibration_error_10bin": 0.00663452676377729, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.8131006231920636, + "auprc": 0.06695917108722041, + "brier": 0.014063028778432022, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.013078167520028985, + "calibration_in_the_large": -0.0007450409194035366, + "expected_calibration_error_10bin": 0.007862927979149866, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.8133432992292609, + "auprc": 0.06717132972837148, + "brier": 0.014247866430619316, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.01401881493432498, + "calibration_in_the_large": 0.00019560649489245782, + "expected_calibration_error_10bin": 0.008206658498182955, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + { + "valid": 2749, + "positives": 39, + "negatives": 2710, + "auroc": 0.8143911439114391, + "auprc": 0.06736019114719165, + "brier": 0.014604439838593525, + "calibration": { + "observed_rate": 0.014186977082575483, + "mean_prediction": 0.014044854847442842, + "calibration_in_the_large": -0.00014212223513264052, + "expected_calibration_error_10bin": 0.00856229226076907, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + } + ], + "reason": null + }, + "K55": { + "time_averaged_auroc": 0.7599883077554813, + "time_averaged_auprc": 0.006479418154937271, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2815, + "positives": 2, + "negatives": 2813, + "auroc": 0.8421613935300392, + "auprc": 0.003301274905243529, + "brier": 0.000712416952637116, + "calibration": { + "observed_rate": 0.0007104795737122557, + "mean_prediction": 0.0006977661078747879, + "calibration_in_the_large": -1.2713465837467801e-05, + "expected_calibration_error_10bin": 1.2713465837467801e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 5, + "negatives": 2810, + "auroc": 0.771459074733096, + "auprc": 0.005114900529118982, + "brier": 0.001779729837775243, + "calibration": { + "observed_rate": 0.0017761989342806395, + "mean_prediction": 0.0010808828754018127, + "calibration_in_the_large": -0.0006953160588788268, + "expected_calibration_error_10bin": 0.0006953160588788268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.764625608164234, + "auprc": 0.005400327170499371, + "brier": 0.0021441315145567744, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0015646629774741423, + "calibration_in_the_large": -0.000566775743662625, + "expected_calibration_error_10bin": 0.000566775743662625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7682641432641433, + "auprc": 0.006100083685765569, + "brier": 0.002503632864345586, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0018457240717025117, + "calibration_in_the_large": -0.0006409544362903834, + "expected_calibration_error_10bin": 0.0006409544362903834, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.774002493765586, + "auprc": 0.006974119173664742, + "brier": 0.0028670260044101428, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.002198621323273243, + "calibration_in_the_large": -0.0006432969715757801, + "expected_calibration_error_10bin": 0.0007967436560861956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7728892055575347, + "auprc": 0.006931316123146407, + "brier": 0.0028717383091016414, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.002527367517164154, + "calibration_in_the_large": -0.000314550777684869, + "expected_calibration_error_10bin": 0.0004759059133924873, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7729337370858568, + "auprc": 0.0069328497387420845, + "brier": 0.0028785203471976746, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.002808402249302501, + "calibration_in_the_large": -3.351604554652178e-05, + "expected_calibration_error_10bin": 0.0002074486770747085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7746704666904168, + "auprc": 0.0069927526293586785, + "brier": 0.0028849035799565804, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.003006200471340413, + "calibration_in_the_large": 0.00016428217649139005, + "expected_calibration_error_10bin": 0.00016428217649139016, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7760954755967224, + "auprc": 0.007060024521821579, + "brier": 0.002895910583027624, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.003277321899995465, + "calibration_in_the_large": 0.0004354036051464421, + "expected_calibration_error_10bin": 0.0004354036051464421, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 9, + "negatives": 2806, + "auroc": 0.7074522847865685, + "auprc": 0.006698614851525843, + "brier": 0.00325748925613044, + "calibration": { + "observed_rate": 0.003197158081705151, + "mean_prediction": 0.003460513212770526, + "calibration_in_the_large": 0.00026335513106537497, + "expected_calibration_error_10bin": 0.00026335513106537524, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7182887700534759, + "auprc": 0.007566548641813074, + "brier": 0.00362008934265258, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.0036487842534722596, + "calibration_in_the_large": 9.638638491098065e-05, + "expected_calibration_error_10bin": 0.00013903380529714258, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7185383244206773, + "auprc": 0.007579883868832264, + "brier": 0.003631605582600465, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.003874369137660482, + "calibration_in_the_large": 0.0003219712690992029, + "expected_calibration_error_10bin": 0.0003219712690992035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7184670231729056, + "auprc": 0.0075797401746523965, + "brier": 0.003631903160652867, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.003881122744849007, + "calibration_in_the_large": 0.000328724876287728, + "expected_calibration_error_10bin": 0.00032872487628772865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + } + ], + "reason": null + }, + "K56": { + "time_averaged_auroc": 0.7853702570359816, + "time_averaged_auprc": 0.03951106737823439, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2745, + "positives": 7, + "negatives": 2738, + "auroc": 0.7875926119169362, + "auprc": 0.030671337554288657, + "brier": 0.002526174636370255, + "calibration": { + "observed_rate": 0.0025500910746812386, + "mean_prediction": 0.002183240262656942, + "calibration_in_the_large": -0.0003668508120242965, + "expected_calibration_error_10bin": 0.0003668508120242965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 10, + "negatives": 2735, + "auroc": 0.7277148080438757, + "auprc": 0.019883082133557835, + "brier": 0.0036201639743972565, + "calibration": { + "observed_rate": 0.0036429872495446266, + "mean_prediction": 0.004261792743298144, + "calibration_in_the_large": 0.0006188054937535173, + "expected_calibration_error_10bin": 0.0006188054937535173, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 15, + "negatives": 2730, + "auroc": 0.80002442002442, + "auprc": 0.03098862852843876, + "brier": 0.005374424069928295, + "calibration": { + "observed_rate": 0.00546448087431694, + "mean_prediction": 0.005272104468812953, + "calibration_in_the_large": -0.00019237640550398647, + "expected_calibration_error_10bin": 0.00019237640550398647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 19, + "negatives": 2726, + "auroc": 0.7547978530331698, + "auprc": 0.030705071167363786, + "brier": 0.006816111233435783, + "calibration": { + "observed_rate": 0.0069216757741347905, + "mean_prediction": 0.006963570819846299, + "calibration_in_the_large": 4.189504571150849e-05, + "expected_calibration_error_10bin": 4.189504571150864e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 21, + "negatives": 2724, + "auroc": 0.7721138381931334, + "auprc": 0.03475803338585359, + "brier": 0.007518396539324281, + "calibration": { + "observed_rate": 0.007650273224043716, + "mean_prediction": 0.008011125951318558, + "calibration_in_the_large": 0.00036085272727484196, + "expected_calibration_error_10bin": 0.00036085272727484185, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 23, + "negatives": 2722, + "auroc": 0.7773216624604671, + "auprc": 0.034815617802107034, + "brier": 0.008233403058337207, + "calibration": { + "observed_rate": 0.008378870673952642, + "mean_prediction": 0.008657492213113401, + "calibration_in_the_large": 0.00027862153916075917, + "expected_calibration_error_10bin": 0.0006290273353843809, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 26, + "negatives": 2719, + "auroc": 0.7907601776671288, + "auprc": 0.039373440767163634, + "brier": 0.009287395031466387, + "calibration": { + "observed_rate": 0.00947176684881603, + "mean_prediction": 0.009621846335752929, + "calibration_in_the_large": 0.00015007948693689967, + "expected_calibration_error_10bin": 0.0006997858764412244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7976862071784809, + "auprc": 0.04432693990145885, + "brier": 0.0096116079151188, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.01026558451108685, + "calibration_in_the_large": 0.00042951893731635674, + "expected_calibration_error_10bin": 0.000609539353010607, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7973182895920202, + "auprc": 0.04434687672174732, + "brier": 0.009628421362161865, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.011143722302625053, + "calibration_in_the_large": 0.0013076567288545608, + "expected_calibration_error_10bin": 0.0013076567288545626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.8017679558011049, + "auprc": 0.05011751000521272, + "brier": 0.010644013610567197, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.011641214139803435, + "calibration_in_the_large": 0.0007122523911695551, + "expected_calibration_error_10bin": 0.0010822068575486788, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.8020380601596071, + "auprc": 0.0497803678115776, + "brier": 0.010659274327244736, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.01233747743647113, + "calibration_in_the_large": 0.0014085156878372498, + "expected_calibration_error_10bin": 0.0014085156878372502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 32, + "negatives": 2713, + "auroc": 0.8026976594176188, + "auprc": 0.05229390622725762, + "brier": 0.011351241853483426, + "calibration": { + "observed_rate": 0.011657559198542805, + "mean_prediction": 0.01295075072291543, + "calibration_in_the_large": 0.0012931915243726243, + "expected_calibration_error_10bin": 0.0012931915243726251, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + { + "valid": 2745, + "positives": 33, + "negatives": 2712, + "auroc": 0.797979797979798, + "auprc": 0.05158306391101972, + "brier": 0.011711094586236898, + "calibration": { + "observed_rate": 0.012021857923497269, + "mean_prediction": 0.013027230696731463, + "calibration_in_the_large": 0.0010053727732341946, + "expected_calibration_error_10bin": 0.0010053727732341942, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + } + ], + "reason": null + }, + "K57": { + "time_averaged_auroc": 0.6642658653004124, + "time_averaged_auprc": 0.015469362428169226, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2741, + "positives": 3, + "negatives": 2738, + "auroc": 0.6411005600194789, + "auprc": 0.0032235100819078765, + "brier": 0.0010961133236898307, + "calibration": { + "observed_rate": 0.0010944910616563297, + "mean_prediction": 0.0011270702465795213, + "calibration_in_the_large": 3.257918492319159e-05, + "expected_calibration_error_10bin": 3.257918492319159e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.5253014249177932, + "auprc": 0.002812020358982381, + "brier": 0.0014695400503164221, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.0019697385576024403, + "calibration_in_the_large": 0.0005104171420606673, + "expected_calibration_error_10bin": 0.0005104171420606673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.6625045770779934, + "auprc": 0.00672384851997361, + "brier": 0.0036556313159371166, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.002536529574507397, + "calibration_in_the_large": -0.0011117739643470357, + "expected_calibration_error_10bin": 0.0011117739643470357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 12, + "negatives": 2729, + "auroc": 0.6021741785757909, + "auprc": 0.006584014210665345, + "brier": 0.004402893284846685, + "calibration": { + "observed_rate": 0.004377964246625319, + "mean_prediction": 0.003148784657586487, + "calibration_in_the_large": -0.001229179589038832, + "expected_calibration_error_10bin": 0.001229179589038832, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 16, + "negatives": 2725, + "auroc": 0.6792201834862386, + "auprc": 0.017989761251115913, + "brier": 0.005806454754052378, + "calibration": { + "observed_rate": 0.005837285662167092, + "mean_prediction": 0.0036775827202528773, + "calibration_in_the_large": -0.002159702941914215, + "expected_calibration_error_10bin": 0.002159702941914215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 18, + "negatives": 2723, + "auroc": 0.6532011262088383, + "auprc": 0.015858348397716163, + "brier": 0.006546124748574811, + "calibration": { + "observed_rate": 0.006566946369937978, + "mean_prediction": 0.004189595532469754, + "calibration_in_the_large": -0.0023773508374682244, + "expected_calibration_error_10bin": 0.002459543788802483, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 20, + "negatives": 2721, + "auroc": 0.6812752664461595, + "auprc": 0.01893953982265387, + "brier": 0.007261311452192113, + "calibration": { + "observed_rate": 0.0072966070777088655, + "mean_prediction": 0.00472283480179082, + "calibration_in_the_large": -0.0025737722759180456, + "expected_calibration_error_10bin": 0.0027432522337748682, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.6906616737436891, + "auprc": 0.019830170826090746, + "brier": 0.00798274568638839, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.00480032826072429, + "calibration_in_the_large": -0.0032259395247554628, + "expected_calibration_error_10bin": 0.0035481762005123213, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.6914139556655188, + "auprc": 0.020049159150143478, + "brier": 0.00798952315073145, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.005151247409041846, + "calibration_in_the_large": -0.0028750203764379067, + "expected_calibration_error_10bin": 0.0033723720573062502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 23, + "negatives": 2718, + "auroc": 0.6872220622580542, + "auprc": 0.020063891601517118, + "brier": 0.008361831206255577, + "calibration": { + "observed_rate": 0.008391098139365194, + "mean_prediction": 0.005560015980110377, + "calibration_in_the_large": -0.002831082159254817, + "expected_calibration_error_10bin": 0.003517405897666098, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 25, + "negatives": 2716, + "auroc": 0.7053166421207658, + "auprc": 0.02268673992307018, + "brier": 0.009077723275702252, + "calibration": { + "observed_rate": 0.009120758847136081, + "mean_prediction": 0.005900248514682626, + "calibration_in_the_large": -0.0032205103324534556, + "expected_calibration_error_10bin": 0.004198575914377091, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7079614676299759, + "auprc": 0.023168882096340083, + "brier": 0.009442853019988455, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.006353403320319152, + "calibration_in_the_large": -0.003132185880702373, + "expected_calibration_error_10bin": 0.004155449402724903, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7081031307550645, + "auprc": 0.02317182532602315, + "brier": 0.00944332813691168, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.00641380477345652, + "calibration_in_the_large": -0.0030717844275650052, + "expected_calibration_error_10bin": 0.004172731595350536, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + } + ], + "reason": null + }, + "K58": { + "time_averaged_auroc": 0.7284565354274781, + "time_averaged_auprc": 0.01667083881038626, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.5617306083422972, + "auprc": 0.001962263662741761, + "brier": 0.0010743913497801168, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0005785918191200147, + "calibration_in_the_large": -0.0004959067482152289, + "expected_calibration_error_10bin": 0.0004959067482152289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.698313598851812, + "auprc": 0.025626495555636702, + "brier": 0.0017844388323030366, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0007453473156205718, + "calibration_in_the_large": -0.0010454836299381674, + "expected_calibration_error_10bin": 0.0010454836299381674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7117330462863294, + "auprc": 0.019014018716640095, + "brier": 0.0017837353281058052, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0009657958413973291, + "calibration_in_the_large": -0.0008250351041614103, + "expected_calibration_error_10bin": 0.0008250351041614103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7153928955866523, + "auprc": 0.013286115081881222, + "brier": 0.0017840319186885189, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0012498508066382365, + "calibration_in_the_large": -0.0005409801389205029, + "expected_calibration_error_10bin": 0.0005409801389205029, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7512182610925878, + "auprc": 0.019468448407109477, + "brier": 0.002491586127233704, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0014246699257692622, + "calibration_in_the_large": -0.001082493398012973, + "expected_calibration_error_10bin": 0.001082493398012973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7544498589381893, + "auprc": 0.019649067226396366, + "brier": 0.0024908163145810056, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0016209892248068947, + "calibration_in_the_large": -0.0008861740989753405, + "expected_calibration_error_10bin": 0.0008861740989753405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.754295973326494, + "auprc": 0.018802760613989666, + "brier": 0.0024906852579561606, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0017777359538894465, + "calibration_in_the_large": -0.0007294273698927886, + "expected_calibration_error_10bin": 0.0007294273698927886, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.75147473711208, + "auprc": 0.017281997440687147, + "brier": 0.002492548929494838, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0019449691531646756, + "calibration_in_the_large": -0.0005621941706175596, + "expected_calibration_error_10bin": 0.0005621941706175596, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7542446781225955, + "auprc": 0.016269204757290146, + "brier": 0.0024941097317866053, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0021530952780434184, + "calibration_in_the_large": -0.00035406804573881673, + "expected_calibration_error_10bin": 0.00035406804573881673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7533726596563222, + "auprc": 0.015624376292896758, + "brier": 0.0024959637372945938, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0023433065693720724, + "calibration_in_the_large": -0.0001638567544101628, + "expected_calibration_error_10bin": 0.0001638567544101628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7545011541420877, + "auprc": 0.016354455715912763, + "brier": 0.002496785797983844, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0025311731785814507, + "calibration_in_the_large": 2.4009854799215535e-05, + "expected_calibration_error_10bin": 2.4009854799215535e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.754655039753783, + "auprc": 0.01684726937476041, + "brier": 0.002497291616937208, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.002629298877775813, + "calibration_in_the_large": 0.0001221355539935778, + "expected_calibration_error_10bin": 0.0001221355539935778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7545524493459862, + "auprc": 0.01653443168907885, + "brier": 0.002497441634170988, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.002639301752408581, + "calibration_in_the_large": 0.00013213842862634575, + "expected_calibration_error_10bin": 0.00013213842862634575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + } + ], + "reason": null + }, + "K59": { + "time_averaged_auroc": 0.7247938666116216, + "time_averaged_auprc": 0.09875144988017841, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2560, + "positives": 29, + "negatives": 2531, + "auroc": 0.6672434229349173, + "auprc": 0.029992722693990496, + "brier": 0.011174283372451861, + "calibration": { + "observed_rate": 0.011328125, + "mean_prediction": 0.006097065146909131, + "calibration_in_the_large": -0.0052310598530908685, + "expected_calibration_error_10bin": 0.0052310598530908685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 40, + "negatives": 2520, + "auroc": 0.7109126984126984, + "auprc": 0.04686533365166189, + "brier": 0.015244244103762133, + "calibration": { + "observed_rate": 0.015625, + "mean_prediction": 0.010126733697831014, + "calibration_in_the_large": -0.005498266302168986, + "expected_calibration_error_10bin": 0.005971706234271323, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 52, + "negatives": 2508, + "auroc": 0.7103959636854373, + "auprc": 0.06926679363113217, + "brier": 0.019552431123225807, + "calibration": { + "observed_rate": 0.0203125, + "mean_prediction": 0.013591542366179965, + "calibration_in_the_large": -0.006720957633820036, + "expected_calibration_error_10bin": 0.007218563460060068, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 67, + "negatives": 2493, + "auroc": 0.721452903951961, + "auprc": 0.09729683591382905, + "brier": 0.024803595129208447, + "calibration": { + "observed_rate": 0.026171875, + "mean_prediction": 0.015960980237542798, + "calibration_in_the_large": -0.010210894762457203, + "expected_calibration_error_10bin": 0.011348033275606894, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 69, + "negatives": 2491, + "auroc": 0.7188079986502133, + "auprc": 0.10507031601526143, + "brier": 0.025369733577080743, + "calibration": { + "observed_rate": 0.026953125, + "mean_prediction": 0.018080391824230446, + "calibration_in_the_large": -0.008872733175769556, + "expected_calibration_error_10bin": 0.009119321223363386, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 72, + "negatives": 2488, + "auroc": 0.7268332440157199, + "auprc": 0.11510981883096916, + "brier": 0.026287456599059622, + "calibration": { + "observed_rate": 0.028125, + "mean_prediction": 0.01991423819627016, + "calibration_in_the_large": -0.00821076180372984, + "expected_calibration_error_10bin": 0.009093388763085386, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.7308363809169611, + "auprc": 0.1175239219388141, + "brier": 0.02842868297197687, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.021538874493614912, + "calibration_in_the_large": -0.008929875506385087, + "expected_calibration_error_10bin": 0.010303010996960892, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.730350833694911, + "auprc": 0.11386898794163192, + "brier": 0.028444540527476726, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.02304612695909327, + "calibration_in_the_large": -0.007422623040906729, + "expected_calibration_error_10bin": 0.00894509920879045, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 83, + "negatives": 2477, + "auroc": 0.7351489121605518, + "auprc": 0.11790439309625297, + "brier": 0.030180115737718016, + "calibration": { + "observed_rate": 0.032421875, + "mean_prediction": 0.02450613139978941, + "calibration_in_the_large": -0.007915743600210592, + "expected_calibration_error_10bin": 0.009029515980842005, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 85, + "negatives": 2475, + "auroc": 0.7378300653594771, + "auprc": 0.11718888623478484, + "brier": 0.030909753599904166, + "calibration": { + "observed_rate": 0.033203125, + "mean_prediction": 0.026037488987913093, + "calibration_in_the_large": -0.007165636012086907, + "expected_calibration_error_10bin": 0.00920857822684411, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 87, + "negatives": 2473, + "auroc": 0.7418510720377781, + "auprc": 0.11601768810633924, + "brier": 0.03164637363600845, + "calibration": { + "observed_rate": 0.033984375, + "mean_prediction": 0.027448837962856486, + "calibration_in_the_large": -0.0065355370371435115, + "expected_calibration_error_10bin": 0.00897098515097241, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.745272154745839, + "auprc": 0.11879799275727616, + "brier": 0.03267826154595756, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.028859314102851384, + "calibration_in_the_large": -0.006296935897148616, + "expected_calibration_error_10bin": 0.00874966154649428, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.7453846153846154, + "auprc": 0.11886515763037576, + "brier": 0.03267937367269318, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.02903097256507863, + "calibration_in_the_large": -0.006125277434921372, + "expected_calibration_error_10bin": 0.00881180681449223, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + } + ], + "reason": null + }, + "K62": { + "time_averaged_auroc": 0.8066955727717912, + "time_averaged_auprc": 0.013720761490551507, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.722972972972973, + "auprc": 0.001282051282051282, + "brier": 0.0003562399872231245, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0007699194421498405, + "calibration_in_the_large": 0.00041442708523551416, + "expected_calibration_error_10bin": 0.00041442708523551416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.7682319459267165, + "auprc": 0.002235586725264872, + "brier": 0.000712696636209313, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.0011891991296041362, + "calibration_in_the_large": 0.0004782144157754835, + "expected_calibration_error_10bin": 0.0004782144157754835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7953703703703704, + "auprc": 0.005153912529622461, + "brier": 0.001774717624144213, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0015454895827119216, + "calibration_in_the_large": -0.00023197220185971015, + "expected_calibration_error_10bin": 0.00023197220185971015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 8, + "negatives": 2805, + "auroc": 0.7668003565062389, + "auprc": 0.006750258588438659, + "brier": 0.0028380334579472134, + "calibration": { + "observed_rate": 0.0028439388553146107, + "mean_prediction": 0.0018321858382044347, + "calibration_in_the_large": -0.001011753017110176, + "expected_calibration_error_10bin": 0.001011753017110176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.8129147342133428, + "auprc": 0.012406261402097362, + "brier": 0.003535804159950429, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0021329244235807152, + "calibration_in_the_large": -0.0014219991455625483, + "expected_calibration_error_10bin": 0.0014219991455625483, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.8218804749854001, + "auprc": 0.013545184007589904, + "brier": 0.003887683355505434, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.002335924658790472, + "calibration_in_the_large": -0.0015744912672671176, + "expected_calibration_error_10bin": 0.0015744912672671176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8162560990122575, + "auprc": 0.01357571602644622, + "brier": 0.004241193899539066, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0026199577255033085, + "calibration_in_the_large": -0.001645950557468608, + "expected_calibration_error_10bin": 0.001645950557468608, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8364722094625632, + "auprc": 0.019981112141052904, + "brier": 0.004932094089218491, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.002898332701453601, + "calibration_in_the_large": -0.0020785602953469675, + "expected_calibration_error_10bin": 0.0020785602953469675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8365487674169346, + "auprc": 0.02029226234909609, + "brier": 0.004930290414664282, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.003129389332306211, + "calibration_in_the_large": -0.0018475036644943574, + "expected_calibration_error_10bin": 0.0018475036644943574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8363701321900678, + "auprc": 0.020211942785929148, + "brier": 0.004929560183147299, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0032964897347157944, + "calibration_in_the_large": -0.001680403262084774, + "expected_calibration_error_10bin": 0.001680403262084774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 16, + "negatives": 2797, + "auroc": 0.8321192348945299, + "auprc": 0.02088003416525144, + "brier": 0.005633240508875619, + "calibration": { + "observed_rate": 0.005687877710629221, + "mean_prediction": 0.003424849133508191, + "calibration_in_the_large": -0.0022630285771210305, + "expected_calibration_error_10bin": 0.0022630285771210305, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.8204929437487577, + "auprc": 0.021015804256821712, + "brier": 0.006338290511265425, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.0035867135208737613, + "calibration_in_the_large": -0.002812148903584113, + "expected_calibration_error_10bin": 0.002812148903584113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.8206122043331345, + "auprc": 0.021039773117507543, + "brier": 0.006338141429693172, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.003613299113169655, + "calibration_in_the_large": -0.002785563311288219, + "expected_calibration_error_10bin": 0.002785563311288219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K63": { + "time_averaged_auroc": 0.7050869945489583, + "time_averaged_auprc": 0.011561621786181206, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.5778133903133903, + "auprc": 0.0043514859750667855, + "brier": 0.0007110808862375645, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0007529270446031524, + "calibration_in_the_large": 4.1183272361159425e-05, + "expected_calibration_error_10bin": 4.1183272361159425e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 6, + "negatives": 2804, + "auroc": 0.698644793152639, + "auprc": 0.006024107524126913, + "brier": 0.0021304082789508397, + "calibration": { + "observed_rate": 0.002135231316725979, + "mean_prediction": 0.001258858517464636, + "calibration_in_the_large": -0.0008763727992613427, + "expected_calibration_error_10bin": 0.0008763727992613427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 10, + "negatives": 2800, + "auroc": 0.7305, + "auprc": 0.008618265917727009, + "brier": 0.0035472446328370035, + "calibration": { + "observed_rate": 0.0035587188612099642, + "mean_prediction": 0.001885182554529606, + "calibration_in_the_large": -0.0016735363066803582, + "expected_calibration_error_10bin": 0.0016735363066803582, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.6931327521245291, + "auprc": 0.00931590723471076, + "brier": 0.004611817924026046, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.002279386968323988, + "calibration_in_the_large": -0.0023469475512489656, + "expected_calibration_error_10bin": 0.0023469475512489656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.6923076923076923, + "auprc": 0.009199223310331954, + "brier": 0.004615053348824945, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.002698287233400012, + "calibration_in_the_large": -0.0019280472861729413, + "expected_calibration_error_10bin": 0.0019280472861729413, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 14, + "negatives": 2796, + "auroc": 0.7173002248109545, + "auprc": 0.011711801605991447, + "brier": 0.004961284212557578, + "calibration": { + "observed_rate": 0.00498220640569395, + "mean_prediction": 0.0031180300538764375, + "calibration_in_the_large": -0.0018641763518175126, + "expected_calibration_error_10bin": 0.0018641763518175126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7045438282647585, + "auprc": 0.011679274449539008, + "brier": 0.005316681722420125, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.0033662688990873536, + "calibration_in_the_large": -0.001971809392727593, + "expected_calibration_error_10bin": 0.001971809392727593, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7061896243291592, + "auprc": 0.011675582150320302, + "brier": 0.0053208451617993155, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.0037003364573141477, + "calibration_in_the_large": -0.001637741834500799, + "expected_calibration_error_10bin": 0.001637741834500799, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7057602862254025, + "auprc": 0.01152094574512482, + "brier": 0.005324068600311229, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.003936577832468291, + "calibration_in_the_large": -0.0014015004593466562, + "expected_calibration_error_10bin": 0.0014015004593466562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7078592725104353, + "auprc": 0.011603588028531288, + "brier": 0.005327033330726924, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.004161341000413891, + "calibration_in_the_large": -0.0011767372914010558, + "expected_calibration_error_10bin": 0.0011767372914010558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 19, + "negatives": 2791, + "auroc": 0.747949235324068, + "auprc": 0.01813145026895433, + "brier": 0.0067122512456081725, + "calibration": { + "observed_rate": 0.006761565836298933, + "mean_prediction": 0.004528286838662959, + "calibration_in_the_large": -0.002233278997635974, + "expected_calibration_error_10bin": 0.002233278997635974, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.7419624716146767, + "auprc": 0.018230025867093623, + "brier": 0.007420412711228779, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.0048663635253604854, + "calibration_in_the_large": -0.0026069460831804397, + "expected_calibration_error_10bin": 0.0026069460831804397, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.7421673581587529, + "auprc": 0.01823942514283744, + "brier": 0.007420773479000687, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.004893892327594605, + "calibration_in_the_large": -0.0025794172809463205, + "expected_calibration_error_10bin": 0.0025794172809463205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + } + ], + "reason": null + }, + "K64": { + "time_averaged_auroc": 0.8048003281699445, + "time_averaged_auprc": 0.02042421014630443, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2801, + "positives": 2, + "negatives": 2799, + "auroc": 0.886030725259021, + "auprc": 0.004559052536677322, + "brier": 0.000717654211739943, + "calibration": { + "observed_rate": 0.0007140307033202428, + "mean_prediction": 0.0010913709022733896, + "calibration_in_the_large": 0.0003773401989531468, + "expected_calibration_error_10bin": 0.0003773401989531468, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.7879113018597997, + "auprc": 0.008459513832668127, + "brier": 0.0017924937867727499, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.001995402719260605, + "calibration_in_the_large": 0.0002103259609599979, + "expected_calibration_error_10bin": 0.0002103259609599979, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.8024514485832538, + "auprc": 0.01224491686598135, + "brier": 0.0032586694039467715, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.003008668182452465, + "calibration_in_the_large": -0.00020446998248862744, + "expected_calibration_error_10bin": 0.00043471206940952394, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.8081459758879114, + "auprc": 0.013574465682666287, + "brier": 0.003991806133263319, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0036491518829348648, + "calibration_in_the_large": -0.00027801698532647044, + "expected_calibration_error_10bin": 0.0008514377142094611, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.803857190155612, + "auprc": 0.017401749646592888, + "brier": 0.004694388459645687, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.004170500900313675, + "calibration_in_the_large": -0.00047069867126790354, + "expected_calibration_error_10bin": 0.0013425350549655924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 16, + "negatives": 2785, + "auroc": 0.7775359066427289, + "auprc": 0.019824502913991127, + "brier": 0.005803322507838427, + "calibration": { + "observed_rate": 0.005712245626561942, + "mean_prediction": 0.004849910234158503, + "calibration_in_the_large": -0.0008623353924034393, + "expected_calibration_error_10bin": 0.002689427291376067, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 17, + "negatives": 2784, + "auroc": 0.7870605138607167, + "auprc": 0.02132433431793716, + "brier": 0.00617370223521612, + "calibration": { + "observed_rate": 0.006069260978222063, + "mean_prediction": 0.005388564327547505, + "calibration_in_the_large": -0.0006806966506745582, + "expected_calibration_error_10bin": 0.0028496244645191274, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 18, + "negatives": 2783, + "auroc": 0.7978600231564659, + "auprc": 0.025680227030153942, + "brier": 0.006515507780117999, + "calibration": { + "observed_rate": 0.006426276329882185, + "mean_prediction": 0.005887931565977221, + "calibration_in_the_large": -0.0005383447639049641, + "expected_calibration_error_10bin": 0.003368127122784073, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 20, + "negatives": 2781, + "auroc": 0.8000539374325782, + "auprc": 0.026939664924278434, + "brier": 0.0072335891325359765, + "calibration": { + "observed_rate": 0.007140307033202428, + "mean_prediction": 0.006385447710213178, + "calibration_in_the_large": -0.00075485932298925, + "expected_calibration_error_10bin": 0.0038558038629715155, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 21, + "negatives": 2780, + "auroc": 0.7967797190818774, + "auprc": 0.027232146348722105, + "brier": 0.007629125378532842, + "calibration": { + "observed_rate": 0.007497322384862549, + "mean_prediction": 0.006796323926228387, + "calibration_in_the_large": -0.0007009984586341615, + "expected_calibration_error_10bin": 0.004396327756759459, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.8044587654159443, + "auprc": 0.029366041778550914, + "brier": 0.007986791628182662, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.0071318835676465265, + "calibration_in_the_large": -0.000722454168876144, + "expected_calibration_error_10bin": 0.004611329904358902, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.8050966665576237, + "auprc": 0.029431668622986996, + "brier": 0.00799919012753662, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.007541833581727372, + "calibration_in_the_large": -0.000312504154795298, + "expected_calibration_error_10bin": 0.004296562773085473, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.8051620923157448, + "auprc": 0.029476447400750908, + "brier": 0.0080007730147557, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.007562059703227651, + "calibration_in_the_large": -0.0002922780332950195, + "expected_calibration_error_10bin": 0.0042872574843985985, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + } + ], + "reason": null + }, + "K65": { + "time_averaged_auroc": 0.8498876803188421, + "time_averaged_auprc": 0.037526031872209625, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8526353276353277, + "auprc": 0.01564077066924638, + "brier": 0.001785722149295288, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0021178455035941062, + "calibration_in_the_large": 0.00034038371902247446, + "expected_calibration_error_10bin": 0.0003403837190224746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.8127991039609002, + "auprc": 0.016761014819660087, + "brier": 0.002556548498152488, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.00394872065448444, + "calibration_in_the_large": 0.0014602741560841557, + "expected_calibration_error_10bin": 0.0014602741560841555, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8558408622602631, + "auprc": 0.026193030899045504, + "brier": 0.0032813930498683916, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.004867598463751712, + "calibration_in_the_large": 0.0016681672515227752, + "expected_calibration_error_10bin": 0.001668167251522775, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8584957996512919, + "auprc": 0.025703326487483417, + "brier": 0.0033586026993109113, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0057067357174053045, + "calibration_in_the_large": 0.0025073045051763674, + "expected_calibration_error_10bin": 0.002507304505176368, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8595656997939451, + "auprc": 0.025196117114463044, + "brier": 0.003399116095352204, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.00620682714433015, + "calibration_in_the_large": 0.003007395932101213, + "expected_calibration_error_10bin": 0.0030073959321012117, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.87588298251873, + "auprc": 0.04551011720937799, + "brier": 0.0036733793282064183, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.006795243230298239, + "calibration_in_the_large": 0.0032403196611549756, + "expected_calibration_error_10bin": 0.003240319661154975, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.8863474141846733, + "auprc": 0.049008979286491214, + "brier": 0.004026144394015355, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.007321727104804023, + "calibration_in_the_large": 0.0034113111787464337, + "expected_calibration_error_10bin": 0.003411311178746434, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8901285255265976, + "auprc": 0.048752424499284054, + "brier": 0.004391277022514244, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0076726484450361015, + "calibration_in_the_large": 0.003406740162064185, + "expected_calibration_error_10bin": 0.003406740162064185, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8895632512198024, + "auprc": 0.048691597315402034, + "brier": 0.004420019592755941, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.007989533884917913, + "calibration_in_the_large": 0.003723625601945997, + "expected_calibration_error_10bin": 0.0037236256019459973, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8300274725274726, + "auprc": 0.04815650407377121, + "brier": 0.004788371656870387, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.008233174888806509, + "calibration_in_the_large": 0.0036117742489202662, + "expected_calibration_error_10bin": 0.0036117742489202662, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8310164835164835, + "auprc": 0.04801199966815969, + "brier": 0.004818616758480614, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.008583869437437813, + "calibration_in_the_large": 0.00396246879755157, + "expected_calibration_error_10bin": 0.003962468797551571, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8030929413566069, + "auprc": 0.045091619535051315, + "brier": 0.005201613558043639, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.008911527832290796, + "calibration_in_the_large": 0.003934634835490228, + "expected_calibration_error_10bin": 0.003934634835490227, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8031439799928546, + "auprc": 0.04512091276128929, + "brier": 0.005212366770383402, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.008984166878744298, + "calibration_in_the_large": 0.004007273881943729, + "expected_calibration_error_10bin": 0.004007273881943728, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + } + ], + "reason": null + }, + "K66": { + "time_averaged_auroc": 0.7492738817533914, + "time_averaged_auprc": 0.011285453971851834, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.8701252236135957, + "auprc": 0.0027472527472527475, + "brier": 0.00035816348409510666, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.000500759011155006, + "calibration_in_the_large": 0.00014310522002482, + "expected_calibration_error_10bin": 0.00014310522002482, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.8661896243291592, + "auprc": 0.0026666666666666666, + "brier": 0.0003623179809800109, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.001125885385845036, + "calibration_in_the_large": 0.0007682315947148499, + "expected_calibration_error_10bin": 0.0007682315947148499, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.8868194842406877, + "auprc": 0.014646952218910336, + "brier": 0.0014267853722751992, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.0018109230385359137, + "calibration_in_the_large": 0.0003803078740151698, + "expected_calibration_error_10bin": 0.0003803078740151698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7117084826762247, + "auprc": 0.013231361393311858, + "brier": 0.00214390222446791, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0022765884310321, + "calibration_in_the_large": 0.0001306656842509843, + "expected_calibration_error_10bin": 0.0001306656842509843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7072879330943848, + "auprc": 0.012651471915959988, + "brier": 0.002151271509510449, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002757519665850361, + "calibration_in_the_large": 0.000611596919069245, + "expected_calibration_error_10bin": 0.000611596919069245, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7060334528076464, + "auprc": 0.01189072559258926, + "brier": 0.0021596814784156267, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.003135642693376626, + "calibration_in_the_large": 0.0009897199465955103, + "expected_calibration_error_10bin": 0.0009897199465955103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.7043487168980177, + "auprc": 0.01153732111534955, + "brier": 0.00252618344202077, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.0035642277010672903, + "calibration_in_the_large": 0.0010606511631559884, + "expected_calibration_error_10bin": 0.0010606511631559884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.7046718077474893, + "auprc": 0.011785353664795044, + "brier": 0.002887898864228746, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.003850449659492601, + "calibration_in_the_large": 0.000989219330451113, + "expected_calibration_error_10bin": 0.000989219330451113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.7012643472022956, + "auprc": 0.01245330926308276, + "brier": 0.002893019089513301, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.004123870278074827, + "calibration_in_the_large": 0.0012626399490333392, + "expected_calibration_error_10bin": 0.0012626399490333394, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7238767292588606, + "auprc": 0.01339611025264154, + "brier": 0.003250052228682023, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0043458263366163595, + "calibration_in_the_large": 0.0011269422164446857, + "expected_calibration_error_10bin": 0.0011269422164446857, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7202886417095243, + "auprc": 0.01325840390551132, + "brier": 0.003258988477192703, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0046077496218394935, + "calibration_in_the_large": 0.0013888655016678197, + "expected_calibration_error_10bin": 0.0013888655016678195, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7190926125264123, + "auprc": 0.01322759540207808, + "brier": 0.0032656406077978366, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.004860315578682304, + "calibration_in_the_large": 0.0016414314585106301, + "expected_calibration_error_10bin": 0.0016414314585106301, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7188534066897899, + "auprc": 0.013218377495924735, + "brier": 0.0032659630715323375, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.004871029812035466, + "calibration_in_the_large": 0.0016521456918637918, + "expected_calibration_error_10bin": 0.0016521456918637918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + } + ], + "reason": null + }, + "K70": { + "time_averaged_auroc": 0.954697627554206, + "time_averaged_auprc": 0.01391171039736907, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 2.282250210367807e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00025707961603215813, + "calibration_in_the_large": 0.00025707961603215813, + "expected_calibration_error_10bin": 0.00025707961603215813, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9592499098449333, + "auprc": 0.008771929824561403, + "brier": 0.00036617896974846316, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0005068464254382481, + "calibration_in_the_large": 0.00014635615867545076, + "expected_calibration_error_10bin": 0.00014635615867545076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9552830869094843, + "auprc": 0.008, + "brier": 0.00037000697382734443, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0006408828901794352, + "calibration_in_the_large": 0.00028039262341663783, + "expected_calibration_error_10bin": 0.00028039262341663783, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9527587450414713, + "auprc": 0.007575757575757576, + "brier": 0.0003733994709913684, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007373659548857439, + "calibration_in_the_large": 0.00037687568812294647, + "expected_calibration_error_10bin": 0.0003768756881229465, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9542012261089073, + "auprc": 0.0078125, + "brier": 0.0003788997930520557, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0008808632758001946, + "calibration_in_the_large": 0.0005203730090373972, + "expected_calibration_error_10bin": 0.0005203730090373972, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9531193653083303, + "auprc": 0.007633587786259542, + "brier": 0.00038131399675648127, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0009476869702554782, + "calibration_in_the_large": 0.0005871967034926808, + "expected_calibration_error_10bin": 0.0005871967034926807, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9534799855751893, + "auprc": 0.007692307692307693, + "brier": 0.00038396451491207265, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0010201868186526142, + "calibration_in_the_large": 0.0006596965518898168, + "expected_calibration_error_10bin": 0.0006596965518898167, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9560043274432023, + "auprc": 0.008130081300813009, + "brier": 0.00039083252637028864, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0011724407536138238, + "calibration_in_the_large": 0.0008119504868510264, + "expected_calibration_error_10bin": 0.0008119504868510263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.9462481962481962, + "auprc": 0.009683018178496393, + "brier": 0.0007516147996493354, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.001241739848955863, + "calibration_in_the_large": 0.0005207593154302683, + "expected_calibration_error_10bin": 0.0005207593154302683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.9576566823048238, + "auprc": 0.017801876000915123, + "brier": 0.0011034309666944691, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0012896918007863777, + "calibration_in_the_large": 0.00020822100049798552, + "expected_calibration_error_10bin": 0.00020822100049798555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.9518237630913687, + "auprc": 0.021508335221978796, + "brier": 0.0018197701081329514, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0013406277365517185, + "calibration_in_the_large": -0.0004618235972622684, + "expected_calibration_error_10bin": 0.0007607895371395372, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9582731213872833, + "auprc": 0.03116556559366965, + "brier": 0.002166473441775538, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0013965382947634735, + "calibration_in_the_large": -0.0007664033058133108, + "expected_calibration_error_10bin": 0.0010730923445678516, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9582731213872833, + "auprc": 0.03116556559366965, + "brier": 0.0021664826294382146, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0014008546179395615, + "calibration_in_the_large": -0.0007620869826372228, + "expected_calibration_error_10bin": 0.0010691575050848074, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + } + ], + "reason": null + }, + "K72": { + "time_averaged_auroc": 0.9522104521898284, + "time_averaged_auprc": 0.18159332573626674, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9846388789076536, + "auprc": 0.08596681096681097, + "brier": 0.0014144143371331215, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0010370484097108159, + "calibration_in_the_large": -0.0003981866100236657, + "expected_calibration_error_10bin": 0.000547002587413135, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 6, + "negatives": 2781, + "auroc": 0.9782452355267889, + "auprc": 0.08409324018844143, + "brier": 0.0022318941516335056, + "calibration": { + "observed_rate": 0.002152852529601722, + "mean_prediction": 0.0022051685333689544, + "calibration_in_the_large": 5.2316003767232354e-05, + "expected_calibration_error_10bin": 0.001415743696983756, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9487936622254232, + "auprc": 0.1441181848957996, + "brier": 0.003484111519740091, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0027929291335532093, + "calibration_in_the_large": -0.0007951584157829946, + "expected_calibration_error_10bin": 0.002475045693785134, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 13, + "negatives": 2774, + "auroc": 0.9575176085630304, + "auprc": 0.16970813432250656, + "brier": 0.0045246354294509955, + "calibration": { + "observed_rate": 0.0046645138141370645, + "mean_prediction": 0.003302416921396935, + "calibration_in_the_large": -0.0013620968927401294, + "expected_calibration_error_10bin": 0.0035479612634400203, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.9584415584415584, + "auprc": 0.17378991038139605, + "brier": 0.0052244860994949726, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.0038163597696562147, + "calibration_in_the_large": -0.0015657715543480914, + "expected_calibration_error_10bin": 0.00397384043142384, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.9582491582491582, + "auprc": 0.17423130145474294, + "brier": 0.005270172208876467, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.00422698194305162, + "calibration_in_the_large": -0.0011551493809526863, + "expected_calibration_error_10bin": 0.003399317017657037, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9634244211709, + "auprc": 0.22525093132695956, + "brier": 0.005922820809268241, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.004669138528333795, + "calibration_in_the_large": -0.0017894190604713723, + "expected_calibration_error_10bin": 0.003450166339606723, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9631435335660687, + "auprc": 0.2230451720015827, + "brier": 0.005956324787990176, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.005124605383000093, + "calibration_in_the_large": -0.0013339522058050737, + "expected_calibration_error_10bin": 0.003491157863435558, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9626018217567514, + "auprc": 0.22229333988901598, + "brier": 0.0059869225567239235, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.0055164394058905795, + "calibration_in_the_large": -0.0009421181829145876, + "expected_calibration_error_10bin": 0.0034489872069593183, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.9351644380195158, + "auprc": 0.2230736618596545, + "brier": 0.00663414325643894, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.005686852753094776, + "calibration_in_the_large": -0.001489322345577632, + "expected_calibration_error_10bin": 0.004038778834847708, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 21, + "negatives": 2766, + "auroc": 0.935423337809455, + "auprc": 0.21784517178968343, + "brier": 0.006998945094325317, + "calibration": { + "observed_rate": 0.007534983853606028, + "mean_prediction": 0.005868321509564297, + "calibration_in_the_large": -0.001666662344041731, + "expected_calibration_error_10bin": 0.004369275406142369, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.9165543317442052, + "auprc": 0.20864885452017115, + "brier": 0.007354207590354391, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.006077919722241246, + "calibration_in_the_large": -0.0018158728862984015, + "expected_calibration_error_10bin": 0.0046958165568730375, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.9165378924872596, + "auprc": 0.2086485209747029, + "brier": 0.007354328888802099, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.006087592655829481, + "calibration_in_the_large": -0.0018061999527101665, + "expected_calibration_error_10bin": 0.004688260390174394, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + } + ], + "reason": null + }, + "K74": { + "time_averaged_auroc": 0.9700620858249104, + "time_averaged_auprc": 0.04780481544810537, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2763, + "positives": 1, + "negatives": 2762, + "auroc": 0.9916727009413469, + "auprc": 0.041666666666666664, + "brier": 0.0003796305300943236, + "calibration": { + "observed_rate": 0.0003619254433586681, + "mean_prediction": 0.0010228243245070875, + "calibration_in_the_large": 0.0006608988811484195, + "expected_calibration_error_10bin": 0.0006608988811484195, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 3, + "negatives": 2760, + "auroc": 0.9788647342995169, + "auprc": 0.03988625402432761, + "brier": 0.0011139341477185863, + "calibration": { + "observed_rate": 0.0010857763300760044, + "mean_prediction": 0.0016231786147105005, + "calibration_in_the_large": 0.0005374022846344961, + "expected_calibration_error_10bin": 0.0005374022846344961, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 5, + "negatives": 2758, + "auroc": 0.971718636693256, + "auprc": 0.04067580404046353, + "brier": 0.0018835286853126428, + "calibration": { + "observed_rate": 0.0018096272167933405, + "mean_prediction": 0.0022293241530159883, + "calibration_in_the_large": 0.0004196969362226478, + "expected_calibration_error_10bin": 0.0009022618280161549, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9755168661588683, + "auprc": 0.05076907423500084, + "brier": 0.0022460292145522133, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0025349999138950833, + "calibration_in_the_large": 0.00036344725374307454, + "expected_calibration_error_10bin": 0.0013530646075934887, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9748518921533067, + "auprc": 0.05003460004236523, + "brier": 0.002284560783732918, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.002942308817650613, + "calibration_in_the_large": 0.000770756157498604, + "expected_calibration_error_10bin": 0.001321664018264656, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.975335509611897, + "auprc": 0.05121309613573937, + "brier": 0.0022962515128243013, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0031293234979905974, + "calibration_in_the_large": 0.0009577708378385886, + "expected_calibration_error_10bin": 0.0012269323963845606, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9625233257308728, + "auprc": 0.048143555497229144, + "brier": 0.0026739896109660823, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0033317934607603413, + "calibration_in_the_large": 0.0007983153572496647, + "expected_calibration_error_10bin": 0.0016383568968474384, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9625233257308728, + "auprc": 0.04959907629945557, + "brier": 0.0026958617685763106, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.003548589828528369, + "calibration_in_the_large": 0.0010151117250176925, + "expected_calibration_error_10bin": 0.0016254355307651679, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9628861704333402, + "auprc": 0.04945867584022739, + "brier": 0.0027172579807887886, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.003697784281905689, + "calibration_in_the_large": 0.0011643061783950122, + "expected_calibration_error_10bin": 0.0011643061783950122, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9633008500933029, + "auprc": 0.050235597506227074, + "brier": 0.0027960566861191306, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.004137765449969344, + "calibration_in_the_large": 0.0016042873464586671, + "expected_calibration_error_10bin": 0.0016042873464586667, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9638191996682562, + "auprc": 0.0498827630225644, + "brier": 0.0028435875346951443, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.004365556407353279, + "calibration_in_the_large": 0.0018320783038426026, + "expected_calibration_error_10bin": 0.0018320783038426028, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9638710346257516, + "auprc": 0.0499437898326486, + "brier": 0.00285567787502071, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.004496496422375782, + "calibration_in_the_large": 0.0019630183188651053, + "expected_calibration_error_10bin": 0.0019630183188651053, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9639228695832469, + "auprc": 0.0499536476824544, + "brier": 0.0028569133893752855, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.00450724114264873, + "calibration_in_the_large": 0.0019737630391380534, + "expected_calibration_error_10bin": 0.001973763039138054, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + } + ], + "reason": null + }, + "K75": { + "time_averaged_auroc": 0.8037899986847642, + "time_averaged_auprc": 0.024819205441619377, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2798, + "positives": 2, + "negatives": 2796, + "auroc": 0.9261444921316166, + "auprc": 0.00985142118863049, + "brier": 0.0007152608857999266, + "calibration": { + "observed_rate": 0.0007147962830593281, + "mean_prediction": 0.000500942560864014, + "calibration_in_the_large": -0.00021385372219531414, + "expected_calibration_error_10bin": 0.00021385372219531414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 4, + "negatives": 2794, + "auroc": 0.8438618468146027, + "auprc": 0.021135062253057186, + "brier": 0.0014250151578441073, + "calibration": { + "observed_rate": 0.0014295925661186562, + "mean_prediction": 0.0011292746173136598, + "calibration_in_the_large": -0.0003003179488049964, + "expected_calibration_error_10bin": 0.0003003179488049964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 5, + "negatives": 2793, + "auroc": 0.7394199785177229, + "auprc": 0.015161198537781853, + "brier": 0.0017898480527301557, + "calibration": { + "observed_rate": 0.0017869907076483202, + "mean_prediction": 0.0014849783936561223, + "calibration_in_the_large": -0.00030201231399219785, + "expected_calibration_error_10bin": 0.00030201231399219785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 9, + "negatives": 2789, + "auroc": 0.8150272897494124, + "auprc": 0.026182237971240124, + "brier": 0.0031926122499398484, + "calibration": { + "observed_rate": 0.0032165832737669764, + "mean_prediction": 0.0018863324345931728, + "calibration_in_the_large": -0.0013302508391738036, + "expected_calibration_error_10bin": 0.0014046838861493927, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7841463414634147, + "auprc": 0.024363988544680446, + "brier": 0.003552795117008996, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002121819694709352, + "calibration_in_the_large": -0.0014521617205872882, + "expected_calibration_error_10bin": 0.0016085470906601364, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7858321377331421, + "auprc": 0.023795308593125793, + "brier": 0.0035569023156770633, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002352983719136454, + "calibration_in_the_large": -0.0012209976961601865, + "expected_calibration_error_10bin": 0.001543151683662966, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.787948350071736, + "auprc": 0.024028046808372627, + "brier": 0.003563583156497125, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0025580291588450954, + "calibration_in_the_large": -0.001015952256451545, + "expected_calibration_error_10bin": 0.0014453208603116244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7874461979913917, + "auprc": 0.02380139239274586, + "brier": 0.0035678795291874447, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0027457159094378095, + "calibration_in_the_large": -0.0008282655058588309, + "expected_calibration_error_10bin": 0.0013550393630259749, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7868364418938307, + "auprc": 0.024223873824543565, + "brier": 0.003573031886081089, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002963948081478819, + "calibration_in_the_large": -0.0006100333338178213, + "expected_calibration_error_10bin": 0.0011760039339378148, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.787051649928264, + "auprc": 0.02459772005029731, + "brier": 0.0035778049920460087, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.003163221278242259, + "calibration_in_the_large": -0.00041076013705438133, + "expected_calibration_error_10bin": 0.001008102842039675, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.804873275271553, + "auprc": 0.03609662557867655, + "brier": 0.0038952522232596955, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.003301895846287801, + "calibration_in_the_large": -0.0006294837105385032, + "expected_calibration_error_10bin": 0.0012425457346124141, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.7999521416606844, + "auprc": 0.034680490569998064, + "brier": 0.00425346622427654, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.003415442015869461, + "calibration_in_the_large": -0.0008733356824865072, + "expected_calibration_error_10bin": 0.0015007263979471862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.8007298396745632, + "auprc": 0.03473230442790203, + "brier": 0.004254113279399009, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.003449960084515681, + "calibration_in_the_large": -0.0008388176138402871, + "expected_calibration_error_10bin": 0.001542946817046337, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + } + ], + "reason": null + }, + "K76": { + "time_averaged_auroc": 0.8216283847045117, + "time_averaged_auprc": 0.19757951414347, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2681, + "positives": 10, + "negatives": 2671, + "auroc": 0.8519655559715462, + "auprc": 0.2586416318301815, + "brier": 0.003357868442438621, + "calibration": { + "observed_rate": 0.003729951510630362, + "mean_prediction": 0.00126538240740721, + "calibration_in_the_large": -0.002464569103223152, + "expected_calibration_error_10bin": 0.002464569103223152, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 14, + "negatives": 2667, + "auroc": 0.8244683700251755, + "auprc": 0.1902694789178995, + "brier": 0.004751917792459653, + "calibration": { + "observed_rate": 0.005221932114882507, + "mean_prediction": 0.002222382192105438, + "calibration_in_the_large": -0.0029995499227770685, + "expected_calibration_error_10bin": 0.003511269876741981, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 17, + "negatives": 2664, + "auroc": 0.8266207383854443, + "auprc": 0.22792793914311502, + "brier": 0.0056831991681437965, + "calibration": { + "observed_rate": 0.006340917568071615, + "mean_prediction": 0.0032581139841221375, + "calibration_in_the_large": -0.003082803583949477, + "expected_calibration_error_10bin": 0.0033758697734262103, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 18, + "negatives": 2663, + "auroc": 0.8369633245712855, + "auprc": 0.21887136076107583, + "brier": 0.00604042872055475, + "calibration": { + "observed_rate": 0.006713912719134651, + "mean_prediction": 0.004032106426839184, + "calibration_in_the_large": -0.0026818062922954666, + "expected_calibration_error_10bin": 0.003379761575805845, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8564804869316147, + "auprc": 0.18743471736489115, + "brier": 0.0071454865803177075, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.004462469954840145, + "calibration_in_the_large": -0.0033704282174836144, + "expected_calibration_error_10bin": 0.004143512704628529, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8588614393125671, + "auprc": 0.16448243991979916, + "brier": 0.00717121611411296, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.004874625950451452, + "calibration_in_the_large": -0.0029582722218723066, + "expected_calibration_error_10bin": 0.0038489517987396835, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 26, + "negatives": 2655, + "auroc": 0.7999130812690135, + "auprc": 0.16918549452844692, + "brier": 0.00891667327209488, + "calibration": { + "observed_rate": 0.00969787392763894, + "mean_prediction": 0.005386042842024636, + "calibration_in_the_large": -0.004311831085614304, + "expected_calibration_error_10bin": 0.005247169637111773, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 29, + "negatives": 2652, + "auroc": 0.7925963488843814, + "auprc": 0.1851821807475906, + "brier": 0.009798894989962547, + "calibration": { + "observed_rate": 0.01081685938082805, + "mean_prediction": 0.005810899999279942, + "calibration_in_the_large": -0.005005959381548107, + "expected_calibration_error_10bin": 0.0061038286054134715, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 30, + "negatives": 2651, + "auroc": 0.8013956997359487, + "auprc": 0.19405718391446322, + "brier": 0.010111121074910395, + "calibration": { + "observed_rate": 0.011189854531891086, + "mean_prediction": 0.006241205046038826, + "calibration_in_the_large": -0.00494864948585226, + "expected_calibration_error_10bin": 0.0061170457889288266, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 31, + "negatives": 2650, + "auroc": 0.808277541083384, + "auprc": 0.1953085727259582, + "brier": 0.010457717303941048, + "calibration": { + "observed_rate": 0.011562849682954122, + "mean_prediction": 0.006564326261355557, + "calibration_in_the_large": -0.0049985234215985655, + "expected_calibration_error_10bin": 0.005850181442699471, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 32, + "negatives": 2649, + "auroc": 0.8118511702529256, + "auprc": 0.19378002069783987, + "brier": 0.010810156602191884, + "calibration": { + "observed_rate": 0.011935844834017158, + "mean_prediction": 0.006868032906450775, + "calibration_in_the_large": -0.005067811927566383, + "expected_calibration_error_10bin": 0.005966975006178981, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 33, + "negatives": 2648, + "auroc": 0.804723976929415, + "auprc": 0.19336771370885847, + "brier": 0.011177468092931837, + "calibration": { + "observed_rate": 0.012308839985080195, + "mean_prediction": 0.007252998755416628, + "calibration_in_the_large": -0.005055841229663567, + "expected_calibration_error_10bin": 0.006642120939560293, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + { + "valid": 2681, + "positives": 34, + "negatives": 2647, + "auroc": 0.8070512678059513, + "auprc": 0.19002494960499058, + "brier": 0.011543005918733149, + "calibration": { + "observed_rate": 0.01268183513614323, + "mean_prediction": 0.007282367037163902, + "calibration_in_the_large": -0.0053994680989793275, + "expected_calibration_error_10bin": 0.006991166095631796, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + } + ], + "reason": null + }, + "K80": { + "time_averaged_auroc": 0.7263157875297408, + "time_averaged_auprc": 0.01157123026206705, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2731, + "positives": 2, + "negatives": 2729, + "auroc": 0.7834371564675705, + "auprc": 0.003942831850160741, + "brier": 0.0007319864324804138, + "calibration": { + "observed_rate": 0.0007323324789454412, + "mean_prediction": 0.0006697168764054988, + "calibration_in_the_large": -6.261560253994233e-05, + "expected_calibration_error_10bin": 6.261560253994233e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 3, + "negatives": 2728, + "auroc": 0.8000977517106549, + "auprc": 0.004184850020808088, + "brier": 0.0011011901183804, + "calibration": { + "observed_rate": 0.0010984987184181618, + "mean_prediction": 0.0014045831278556014, + "calibration_in_the_large": 0.00030608440943743955, + "expected_calibration_error_10bin": 0.00030608440943743955, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 5, + "negatives": 2726, + "auroc": 0.7382978723404255, + "auprc": 0.004532878224977391, + "brier": 0.0018337162301174951, + "calibration": { + "observed_rate": 0.001830831197363603, + "mean_prediction": 0.0017843439754100614, + "calibration_in_the_large": -4.6487221953541704e-05, + "expected_calibration_error_10bin": 4.6487221953541704e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 6, + "negatives": 2725, + "auroc": 0.7307033639143731, + "auprc": 0.0048023907813312386, + "brier": 0.0022016070539037395, + "calibration": { + "observed_rate": 0.0021969974368363236, + "mean_prediction": 0.0022369938980053438, + "calibration_in_the_large": 3.9996461169020114e-05, + "expected_calibration_error_10bin": 3.9996461169020114e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 7, + "negatives": 2724, + "auroc": 0.7572897000209775, + "auprc": 0.006163244541875198, + "brier": 0.002568560363531374, + "calibration": { + "observed_rate": 0.002563163676309044, + "mean_prediction": 0.002614429830773208, + "calibration_in_the_large": 5.1266154464164014e-05, + "expected_calibration_error_10bin": 5.1266154464164014e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 10, + "negatives": 2721, + "auroc": 0.7332965821389195, + "auprc": 0.013618625768575306, + "brier": 0.003644939230990111, + "calibration": { + "observed_rate": 0.003661662394727206, + "mean_prediction": 0.0028957717587401043, + "calibration_in_the_large": -0.0007658906359871019, + "expected_calibration_error_10bin": 0.0007658906359871019, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.7376486453352948, + "auprc": 0.01629971340954513, + "brier": 0.004364831390865132, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.0033385739542876125, + "calibration_in_the_large": -0.0010554209193850347, + "expected_calibration_error_10bin": 0.0010554209193850347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.7372808630624004, + "auprc": 0.01633342036023662, + "brier": 0.004365995681475306, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.003588512861114033, + "calibration_in_the_large": -0.0008054820125586145, + "expected_calibration_error_10bin": 0.0008054820125586145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 13, + "negatives": 2718, + "auroc": 0.7493915209146997, + "auprc": 0.01726862663385056, + "brier": 0.004729057138083342, + "calibration": { + "observed_rate": 0.004760161113145368, + "mean_prediction": 0.0039019545515532345, + "calibration_in_the_large": -0.0008582065615921333, + "expected_calibration_error_10bin": 0.0008582065615921333, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 14, + "negatives": 2717, + "auroc": 0.7082654187917345, + "auprc": 0.01637606272063385, + "brier": 0.005097270037219221, + "calibration": { + "observed_rate": 0.005126327352618088, + "mean_prediction": 0.0041571107874300035, + "calibration_in_the_large": -0.0009692165651880849, + "expected_calibration_error_10bin": 0.0009692165651880849, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6563050333783839, + "auprc": 0.01563411511137501, + "brier": 0.006559183804837115, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.004462894820939626, + "calibration_in_the_large": -0.002128097489569345, + "expected_calibration_error_10bin": 0.002128097489569345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6550763812098128, + "auprc": 0.015658484799826906, + "brier": 0.00656291120095886, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.0047458454330907215, + "calibration_in_the_large": -0.0018451468774182498, + "expected_calibration_error_10bin": 0.0019190767870636038, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6550149486013843, + "auprc": 0.015610749183675613, + "brier": 0.006563367312406381, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.00479274521036646, + "calibration_in_the_large": -0.0017982471001425117, + "expected_calibration_error_10bin": 0.0018727758880564395, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + } + ], + "reason": null + }, + "K81": { + "time_averaged_auroc": 0.8417805180338185, + "time_averaged_auprc": 0.019930207875758343, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 2.3027013795187908e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004766214924771236, + "calibration_in_the_large": 0.0004766214924771236, + "expected_calibration_error_10bin": 0.0004766214924771236, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.8290825363088913, + "auprc": 0.022797331492983665, + "brier": 0.0007065107849446954, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0008437762335169467, + "calibration_in_the_large": 0.00013581163174703522, + "expected_calibration_error_10bin": 0.00013581163174703522, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.8488124778447359, + "auprc": 0.020353975267266934, + "brier": 0.0014113390406104433, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0009784568948951959, + "calibration_in_the_large": -0.00043747230864462716, + "expected_calibration_error_10bin": 0.00043747230864462716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8401418439716312, + "auprc": 0.017748195933922368, + "brier": 0.001765575460607557, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0011493907727875986, + "calibration_in_the_large": -0.0006205207316371801, + "expected_calibration_error_10bin": 0.0006205207316371801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8402127659574468, + "auprc": 0.01872359640149756, + "brier": 0.001765898008659954, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0012424905363272512, + "calibration_in_the_large": -0.0005274209680975275, + "expected_calibration_error_10bin": 0.0005274209680975275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8358156028368794, + "auprc": 0.018418719248708804, + "brier": 0.0017672393810782097, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.001366952962948543, + "calibration_in_the_large": -0.00040295854147623573, + "expected_calibration_error_10bin": 0.00040295854147623573, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8364539007092199, + "auprc": 0.018210201787105716, + "brier": 0.0017683118050705298, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.001474414529394517, + "calibration_in_the_large": -0.00029549697503026173, + "expected_calibration_error_10bin": 0.00029549697503026173, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8335460992907802, + "auprc": 0.01811188557720985, + "brier": 0.0017688733316631262, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0015858970497465957, + "calibration_in_the_large": -0.00018401445467818305, + "expected_calibration_error_10bin": 0.00018401445467818305, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.839290780141844, + "auprc": 0.018950352808035118, + "brier": 0.001769774337925205, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0017628241458854152, + "calibration_in_the_large": -7.087358539363585e-06, + "expected_calibration_error_10bin": 7.087358539363585e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8390780141843972, + "auprc": 0.01877740773150665, + "brier": 0.0017706930258866997, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.001852818493974968, + "calibration_in_the_large": 8.290698955018918e-05, + "expected_calibration_error_10bin": 8.290698955018918e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8368085106382979, + "auprc": 0.018603498402333482, + "brier": 0.0017713378415489772, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0019073049269258085, + "calibration_in_the_large": 0.0001373934225010298, + "expected_calibration_error_10bin": 0.0001373934225010298, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8608844743999055, + "auprc": 0.024164611042896366, + "brier": 0.002115824637267864, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.001955541933446801, + "calibration_in_the_large": -0.0001683518718629336, + "expected_calibration_error_10bin": 0.00024454536488737133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8612392101217926, + "auprc": 0.024302718815633575, + "brier": 0.002116134165042509, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0019756522076230174, + "calibration_in_the_large": -0.0001482415976867173, + "expected_calibration_error_10bin": 0.00022567143346197455, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + } + ], + "reason": null + }, + "K82": { + "time_averaged_auroc": 0.6943306223717681, + "time_averaged_auprc": 0.005825874182440392, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.942968473255402, + "auprc": 0.006172839506172839, + "brier": 0.0003542290699496577, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0003362504948608478, + "calibration_in_the_large": -1.7857153864364692e-05, + "expected_calibration_error_10bin": 1.7857153864364692e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9741409847679773, + "auprc": 0.013513513513513514, + "brier": 0.00035417480633630774, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0005949138812547456, + "calibration_in_the_large": 0.0002408062325295331, + "expected_calibration_error_10bin": 0.0002408062325295331, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9227498228206945, + "auprc": 0.008833085149587113, + "brier": 0.0007079203718710326, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006957089431499085, + "calibration_in_the_large": -1.2506354300516461e-05, + "expected_calibration_error_10bin": 1.2506354300516461e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6592224979321754, + "auprc": 0.00599617733358022, + "brier": 0.0010625687173536744, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0008067369502994232, + "calibration_in_the_large": -0.0002555859958762143, + "expected_calibration_error_10bin": 0.0002555859958762143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6177304964539007, + "auprc": 0.0049459562775391736, + "brier": 0.0014171448471738382, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0008646051394632992, + "calibration_in_the_large": -0.0005518254554375508, + "expected_calibration_error_10bin": 0.0005518254554375508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6191489361702127, + "auprc": 0.005010909101103993, + "brier": 0.0014176255857925712, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0009713175883766124, + "calibration_in_the_large": -0.00044511300652423755, + "expected_calibration_error_10bin": 0.00044511300652423755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6195035460992908, + "auprc": 0.004669717298281036, + "brier": 0.001419092026124376, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0011054424420146034, + "calibration_in_the_large": -0.0003109881528862465, + "expected_calibration_error_10bin": 0.0003109881528862465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6142730496453901, + "auprc": 0.0045801328950575175, + "brier": 0.0014196737305255621, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0012052180713019573, + "calibration_in_the_large": -0.00021121252359889266, + "expected_calibration_error_10bin": 0.00021121252359889266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6118794326241135, + "auprc": 0.004606512178899074, + "brier": 0.00141990611602647, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0012625046564841227, + "calibration_in_the_large": -0.0001539259384167272, + "expected_calibration_error_10bin": 0.0001539259384167272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6124113475177305, + "auprc": 0.004578012480084251, + "brier": 0.0014200394880982512, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.001277859845865245, + "calibration_in_the_large": -0.000138570749035605, + "expected_calibration_error_10bin": 0.000138570749035605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6093971631205674, + "auprc": 0.004355515763282754, + "brier": 0.0014214770214168542, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0013732253202049952, + "calibration_in_the_large": -4.320527469585476e-05, + "expected_calibration_error_10bin": 4.320527469585476e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6113475177304964, + "auprc": 0.004236808057164439, + "brier": 0.0014225796477340513, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0014593212438948704, + "calibration_in_the_large": 4.289064899402049e-05, + "expected_calibration_error_10bin": 4.289064899402049e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6115248226950355, + "auprc": 0.004237184817459178, + "brier": 0.001422613313962249, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0014624080899032072, + "calibration_in_the_large": 4.597749500235724e-05, + "expected_calibration_error_10bin": 4.597749500235724e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "K83": { + "time_averaged_auroc": 0.8686940462397339, + "time_averaged_auprc": 0.12609362045630965, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2757, + "positives": 1, + "negatives": 2756, + "auroc": 0.7148040638606676, + "auprc": 0.0012706480304955528, + "brier": 0.0004030441829484759, + "calibration": { + "observed_rate": 0.0003627130939426913, + "mean_prediction": 0.0011869678985822194, + "calibration_in_the_large": 0.0008242548046395281, + "expected_calibration_error_10bin": 0.000824254804639528, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 4, + "negatives": 2753, + "auroc": 0.8815837268434435, + "auprc": 0.2558500886611174, + "brier": 0.0013577709199113547, + "calibration": { + "observed_rate": 0.0014508523757707653, + "mean_prediction": 0.0018754928583289488, + "calibration_in_the_large": 0.0004246404825581835, + "expected_calibration_error_10bin": 0.0009758894780731234, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 5, + "negatives": 2752, + "auroc": 0.8892441860465117, + "auprc": 0.20811808264475906, + "brier": 0.0017165278470338632, + "calibration": { + "observed_rate": 0.0018135654697134566, + "mean_prediction": 0.0023134963605283276, + "calibration_in_the_large": 0.0004999308908148711, + "expected_calibration_error_10bin": 0.0010040936978851329, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 7, + "negatives": 2750, + "auroc": 0.8498181818181818, + "auprc": 0.15421238214476793, + "brier": 0.002448494035390169, + "calibration": { + "observed_rate": 0.0025389916575988395, + "mean_prediction": 0.0027846009586965435, + "calibration_in_the_large": 0.000245609301097704, + "expected_calibration_error_10bin": 0.0007153090226806495, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 8, + "negatives": 2749, + "auroc": 0.858903237540924, + "auprc": 0.13872441042522923, + "brier": 0.0028225741981862114, + "calibration": { + "observed_rate": 0.0029017047515415306, + "mean_prediction": 0.0032004076354118596, + "calibration_in_the_large": 0.000298702883870329, + "expected_calibration_error_10bin": 0.001116080190797819, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 9, + "negatives": 2748, + "auroc": 0.8715025068736859, + "auprc": 0.12939991820768476, + "brier": 0.003194935566703118, + "calibration": { + "observed_rate": 0.003264417845484222, + "mean_prediction": 0.0035688317268327495, + "calibration_in_the_large": 0.0003044138813485275, + "expected_calibration_error_10bin": 0.0015011974922885642, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 10, + "negatives": 2747, + "auroc": 0.8693483800509647, + "auprc": 0.11859947382503652, + "brier": 0.0035723106463443847, + "calibration": { + "observed_rate": 0.003627130939426913, + "mean_prediction": 0.0038206997035089975, + "calibration_in_the_large": 0.00019356876408208436, + "expected_calibration_error_10bin": 0.0018547073439910318, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 11, + "negatives": 2746, + "auroc": 0.8776070979275641, + "auprc": 0.11354881846559534, + "brier": 0.0039344980556765595, + "calibration": { + "observed_rate": 0.003989844033369605, + "mean_prediction": 0.004079876837575398, + "calibration_in_the_large": 9.003280420579254e-05, + "expected_calibration_error_10bin": 0.002135785877822445, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 12, + "negatives": 2745, + "auroc": 0.8872191863995142, + "auprc": 0.11184055836685601, + "brier": 0.004289420101277117, + "calibration": { + "observed_rate": 0.004352557127312296, + "mean_prediction": 0.004411166191624215, + "calibration_in_the_large": 5.86090643119189e-05, + "expected_calibration_error_10bin": 0.0023921554500182865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 14, + "negatives": 2743, + "auroc": 0.8937034529451591, + "auprc": 0.10403154351403701, + "brier": 0.005008321306915467, + "calibration": { + "observed_rate": 0.005077983315197679, + "mean_prediction": 0.004638301333391906, + "calibration_in_the_large": -0.0004396819818057729, + "expected_calibration_error_10bin": 0.0031269422741492144, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.899831265961328, + "auprc": 0.10131353160684771, + "brier": 0.005705661870804826, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.004863526822883259, + "calibration_in_the_large": -0.0009398826801998023, + "expected_calibration_error_10bin": 0.00385022877564158, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.8997400583728566, + "auprc": 0.10112229339768558, + "brier": 0.005711740947559708, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.005027390062172982, + "calibration_in_the_large": -0.0007760194409100795, + "expected_calibration_error_10bin": 0.0037342369786980117, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.8997172564757387, + "auprc": 0.10118531664191346, + "brier": 0.005714071784485589, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.005070562707801264, + "calibration_in_the_large": -0.0007328467952817976, + "expected_calibration_error_10bin": 0.003709702648199624, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + } + ], + "reason": null + }, + "K85": { + "time_averaged_auroc": 0.7688881490796734, + "time_averaged_auprc": 0.04972867297670951, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2779, + "positives": 1, + "negatives": 2778, + "auroc": 0.4712023038156947, + "auprc": 0.0006802721088435374, + "brier": 0.0003599318035453255, + "calibration": { + "observed_rate": 0.0003598416696653472, + "mean_prediction": 0.0002275157736570319, + "calibration_in_the_large": -0.00013232589600831532, + "expected_calibration_error_10bin": 0.00013232589600831532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.6429600288080662, + "auprc": 0.0022650090302985845, + "brier": 0.0007197083317316065, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0005818866335154753, + "calibration_in_the_large": -0.00013779670581521913, + "expected_calibration_error_10bin": 0.00013779670581521913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.6571840115232265, + "auprc": 0.0022786820985744053, + "brier": 0.0007207307622721391, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0008613827970317533, + "calibration_in_the_large": 0.00014169945770105882, + "expected_calibration_error_10bin": 0.00014169945770105882, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.7674111431316042, + "auprc": 0.08620880976504076, + "brier": 0.0010707813737141846, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0011746591820114463, + "calibration_in_the_large": 9.51341730154045e-05, + "expected_calibration_error_10bin": 9.51341730154045e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.7622478386167147, + "auprc": 0.08652675121389995, + "brier": 0.0010698327431463844, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0014441246855436166, + "calibration_in_the_large": 0.00036459967654757486, + "expected_calibration_error_10bin": 0.00036459967654757486, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8210810810810811, + "auprc": 0.080166235436545, + "brier": 0.0014228154251713268, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0015299161222291498, + "calibration_in_the_large": 9.054944356776096e-05, + "expected_calibration_error_10bin": 9.054944356776096e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8159459459459459, + "auprc": 0.07772871592075745, + "brier": 0.0014226288933130574, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0017442252546476665, + "calibration_in_the_large": 0.00030485857598627764, + "expected_calibration_error_10bin": 0.00030485857598627764, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 5, + "negatives": 2774, + "auroc": 0.8175919250180245, + "auprc": 0.05355294866995001, + "brier": 0.001780842794401419, + "calibration": { + "observed_rate": 0.0017992083483267362, + "mean_prediction": 0.001844849283572599, + "calibration_in_the_large": 4.5640935245862746e-05, + "expected_calibration_error_10bin": 4.5640935245862746e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 8, + "negatives": 2771, + "auroc": 0.8280404186214363, + "auprc": 0.043870570795451175, + "brier": 0.0028467542075511355, + "calibration": { + "observed_rate": 0.0028787333573227778, + "mean_prediction": 0.0020568153036798894, + "calibration_in_the_large": -0.0008219180536428883, + "expected_calibration_error_10bin": 0.0008219180536428883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 9, + "negatives": 2770, + "auroc": 0.8452868030485359, + "auprc": 0.06300398141785199, + "brier": 0.0031896686441402165, + "calibration": { + "observed_rate": 0.0032385750269881253, + "mean_prediction": 0.0023283673750531795, + "calibration_in_the_large": -0.0009102076519349458, + "expected_calibration_error_10bin": 0.0009102076519349458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8564463705308776, + "auprc": 0.0527041390020925, + "brier": 0.0035414053486680333, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0024614042119569515, + "calibration_in_the_large": -0.001137012484696521, + "expected_calibration_error_10bin": 0.001137012484696521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8549295774647887, + "auprc": 0.048713883436298226, + "brier": 0.0035387295954929445, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0026796428272557607, + "calibration_in_the_large": -0.0009187738693977117, + "expected_calibration_error_10bin": 0.0009187738693977117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8552184904297581, + "auprc": 0.048772749801620004, + "brier": 0.0035386092350930963, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0026892147787970456, + "calibration_in_the_large": -0.0009092019178564268, + "expected_calibration_error_10bin": 0.0009092019178564268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + } + ], + "reason": null + }, + "K86": { + "time_averaged_auroc": 0.7164076163951797, + "time_averaged_auprc": 0.01671807320667794, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5201149425287356, + "auprc": 0.0007479431563201197, + "brier": 0.00036176910298891916, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0005867202460911699, + "calibration_in_the_large": 0.0002276538188021214, + "expected_calibration_error_10bin": 0.0002276538188021214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7691477885652643, + "auprc": 0.020062335654886826, + "brier": 0.0014310314056321422, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0010970211342108812, + "calibration_in_the_large": -0.00033924457494531276, + "expected_calibration_error_10bin": 0.00033924457494531276, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.767529665587918, + "auprc": 0.021112937928794706, + "brier": 0.001432836939469003, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0014386466447796375, + "calibration_in_the_large": 2.3809356234434816e-06, + "expected_calibration_error_10bin": 2.3809356234434816e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.696978417266187, + "auprc": 0.014308939415537772, + "brier": 0.0017947710861846435, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0018431250197093144, + "calibration_in_the_large": 4.779288326407197e-05, + "expected_calibration_error_10bin": 4.779288326407197e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6942446043165468, + "auprc": 0.014192878197687789, + "brier": 0.0017980228188878918, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0021621925590434117, + "calibration_in_the_large": 0.00036686042259816923, + "expected_calibration_error_10bin": 0.00036686042259816923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7421734436847787, + "auprc": 0.02147976378969881, + "brier": 0.0021489153901815337, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.00252545827217188, + "calibration_in_the_large": 0.0003710597084375894, + "expected_calibration_error_10bin": 0.0003710597084375894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7298673248997223, + "auprc": 0.018587853870817288, + "brier": 0.0025103379422632913, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0027758642470762165, + "calibration_in_the_large": 0.0002623992560528772, + "expected_calibration_error_10bin": 0.0002623992560528772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7304844183893859, + "auprc": 0.018445048034363098, + "brier": 0.002513376641540212, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0029825089047077506, + "calibration_in_the_large": 0.00046904391368441127, + "expected_calibration_error_10bin": 0.00046904391368441127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7307415406767459, + "auprc": 0.018105978705606283, + "brier": 0.002518633747925167, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.003203823264255961, + "calibration_in_the_large": 0.0006903582732326217, + "expected_calibration_error_10bin": 0.0006903582732326212, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.73058726730433, + "auprc": 0.017985715056456665, + "brier": 0.00252626605282665, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.003481158414472129, + "calibration_in_the_large": 0.0009676934234487899, + "expected_calibration_error_10bin": 0.0009676934234487901, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7339298570400082, + "auprc": 0.017597332770557993, + "brier": 0.0025333235566000296, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0038163962902139086, + "calibration_in_the_large": 0.0013029312991905692, + "expected_calibration_error_10bin": 0.0013029312991905692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7335698858377044, + "auprc": 0.017405180847569226, + "brier": 0.0025389941102805366, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.004003911012376983, + "calibration_in_the_large": 0.0014904460213536436, + "expected_calibration_error_10bin": 0.001490446021353644, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7339298570400082, + "auprc": 0.017303044258516656, + "brier": 0.002541037266546029, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.004087166386826299, + "calibration_in_the_large": 0.0015737013958029597, + "expected_calibration_error_10bin": 0.0015737013958029593, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "K90": { + "time_averaged_auroc": 0.6617351167418317, + "time_averaged_auprc": 0.002190691723010102, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6763250883392227, + "auprc": 0.0010905125408942203, + "brier": 0.00035331318725900486, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00023151484076890235, + "calibration_in_the_large": -0.00012171723270336892, + "expected_calibration_error_10bin": 0.00012171723270336892, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6254416961130742, + "auprc": 0.000942507068803016, + "brier": 0.0003538840377234241, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0003626838490034864, + "calibration_in_the_large": 9.451775531215149e-06, + "expected_calibration_error_10bin": 9.451775531215149e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6367491166077739, + "auprc": 0.0009718172983479105, + "brier": 0.00035415907906315896, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0004340718454583113, + "calibration_in_the_large": 8.083977198604001e-05, + "expected_calibration_error_10bin": 8.083977198604001e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.620494699646643, + "auprc": 0.0009302325581395349, + "brier": 0.0003543785901272776, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0004824130004293839, + "calibration_in_the_large": 0.00012918092695711264, + "expected_calibration_error_10bin": 0.00012918092695711264, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6268551236749117, + "auprc": 0.000946073793755913, + "brier": 0.00035468312664019134, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005322133461261849, + "calibration_in_the_large": 0.00017898127265391365, + "expected_calibration_error_10bin": 0.00017898127265391365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6522968197879858, + "auprc": 0.0010152284263959391, + "brier": 0.00035517969337118356, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006145130425518416, + "calibration_in_the_large": 0.00026128096907957035, + "expected_calibration_error_10bin": 0.00026128096907957035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6501766784452296, + "auprc": 0.0010090817356205853, + "brier": 0.0003555957783717239, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006777579856092488, + "calibration_in_the_large": 0.00032452591213697754, + "expected_calibration_error_10bin": 0.00032452591213697754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6799222340049488, + "auprc": 0.0016259656649741982, + "brier": 0.0007096890658524254, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0007931866458413953, + "calibration_in_the_large": 8.672249889685277e-05, + "expected_calibration_error_10bin": 8.672249889685277e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6891127606928243, + "auprc": 0.0016651080631753948, + "brier": 0.0007102293226871646, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0008446579035840612, + "calibration_in_the_large": 0.00013819375663951861, + "expected_calibration_error_10bin": 0.00013819375663951861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6422677982083923, + "auprc": 0.00190332326459456, + "brier": 0.0010638086864335789, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009063432649005874, + "calibration_in_the_large": -0.00015335295551622652, + "expected_calibration_error_10bin": 0.00015335295551622652, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.644035832154644, + "auprc": 0.00191216252600314, + "brier": 0.001063899844820228, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009200818241776014, + "calibration_in_the_large": -0.00013961439623921248, + "expected_calibration_error_10bin": 0.00013961439623921248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.7294835514679873, + "auprc": 0.007233034193193556, + "brier": 0.00141182361581062, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009876936641509879, + "calibration_in_the_large": -0.0004252346297380972, + "expected_calibration_error_10bin": 0.0004252346297380972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.7293951185001769, + "auprc": 0.00723394526523336, + "brier": 0.001411889502066226, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009990666002282005, + "calibration_in_the_large": -0.00041386169366088455, + "expected_calibration_error_10bin": 0.00041386169366088455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "K91": { + "time_averaged_auroc": 0.8556206964820017, + "time_averaged_auprc": 0.04641151595969268, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.8148550724637681, + "auprc": 0.020605424019140398, + "brier": 0.0028663688614688674, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.0020383890823966193, + "calibration_in_the_large": -0.0008517843280080048, + "expected_calibration_error_10bin": 0.0008517843280080048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 13, + "negatives": 2755, + "auroc": 0.8409046488901298, + "auprc": 0.025761365070170704, + "brier": 0.004669324755564259, + "calibration": { + "observed_rate": 0.004696531791907515, + "mean_prediction": 0.003417815192724999, + "calibration_in_the_large": -0.0012787165991825157, + "expected_calibration_error_10bin": 0.0014611662768724317, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 14, + "negatives": 2754, + "auroc": 0.8442265795206971, + "auprc": 0.027692250433359506, + "brier": 0.005035217213336963, + "calibration": { + "observed_rate": 0.0050578034682080926, + "mean_prediction": 0.004121269970055752, + "calibration_in_the_large": -0.0009365334981523404, + "expected_calibration_error_10bin": 0.0013856141912625605, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.8504419421237438, + "auprc": 0.03122808430408491, + "brier": 0.005409713660220986, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.005075510912962862, + "calibration_in_the_large": -0.00034356423154580876, + "expected_calibration_error_10bin": 0.0013754080961793226, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8652468621036201, + "auprc": 0.04447903053393385, + "brier": 0.006040873877267605, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.005785230125556117, + "calibration_in_the_large": -0.0003563883715537097, + "expected_calibration_error_10bin": 0.0016399715436069807, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8640494365685205, + "auprc": 0.0439756700522426, + "brier": 0.006050804314018093, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.006311613524742515, + "calibration_in_the_large": 0.00016999502763268785, + "expected_calibration_error_10bin": 0.0008411984492861168, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 20, + "negatives": 2748, + "auroc": 0.8512372634643377, + "auprc": 0.05146942870318336, + "brier": 0.007067399551398266, + "calibration": { + "observed_rate": 0.0072254335260115606, + "mean_prediction": 0.007022652531407145, + "calibration_in_the_large": -0.00020278099460441582, + "expected_calibration_error_10bin": 0.0011052914042300403, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.8563861484473283, + "auprc": 0.05336584734689149, + "brier": 0.007767338325474211, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.0074510833930743255, + "calibration_in_the_large": -0.0004968934855383907, + "expected_calibration_error_10bin": 0.0018755816231506382, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.8561544064093226, + "auprc": 0.05357631289413365, + "brier": 0.007779392331353781, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.007904852696038042, + "calibration_in_the_large": -4.3124182574674416e-05, + "expected_calibration_error_10bin": 0.001734477501496767, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 24, + "negatives": 2744, + "auroc": 0.8650236880466472, + "auprc": 0.05944323908351503, + "brier": 0.00844850531028432, + "calibration": { + "observed_rate": 0.008670520231213872, + "mean_prediction": 0.00825762724588789, + "calibration_in_the_large": -0.00041289298532598204, + "expected_calibration_error_10bin": 0.0023567156393655125, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8716265499635303, + "auprc": 0.06418597131917524, + "brier": 0.009130291324756179, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.008697916826042137, + "calibration_in_the_large": -0.000695146757772892, + "expected_calibration_error_10bin": 0.0034949277648298727, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8715003085900241, + "auprc": 0.06383953938260495, + "brier": 0.009142071156453846, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.009122649909909472, + "calibration_in_the_large": -0.00027041367390555696, + "expected_calibration_error_10bin": 0.0036757720147766832, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8714161476743534, + "auprc": 0.06372754433356913, + "brier": 0.009143404319089539, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.009186252903876166, + "calibration_in_the_large": -0.00020681067993886387, + "expected_calibration_error_10bin": 0.003636371063688352, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + } + ], + "reason": null + }, + "K92": { + "time_averaged_auroc": 0.8430593356328134, + "time_averaged_auprc": 0.06659542057744702, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8174718867138692, + "auprc": 0.046614332804328744, + "brier": 0.0025123796780609138, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.0026352609505347286, + "calibration_in_the_large": 9.073168844821438e-05, + "expected_calibration_error_10bin": 9.073168844821438e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 11, + "negatives": 2740, + "auroc": 0.8669542136695422, + "auprc": 0.039626581605849115, + "brier": 0.003930125682541055, + "calibration": { + "observed_rate": 0.003998545983278807, + "mean_prediction": 0.004043704057731864, + "calibration_in_the_large": 4.515807445305657e-05, + "expected_calibration_error_10bin": 4.515807445305657e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 17, + "negatives": 2734, + "auroc": 0.8654847454709755, + "auprc": 0.06226158331764598, + "brier": 0.00602105695722924, + "calibration": { + "observed_rate": 0.0061795710650672485, + "mean_prediction": 0.005253012235988678, + "calibration_in_the_large": -0.0009265588290785706, + "expected_calibration_error_10bin": 0.001010849730898435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.8369422824998074, + "auprc": 0.0461904133928098, + "brier": 0.0067413993864674105, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.006169429633364703, + "calibration_in_the_large": -0.0007371497922986922, + "expected_calibration_error_10bin": 0.0008400340824745786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8491648603850568, + "auprc": 0.057464725487159425, + "brier": 0.008112901183856427, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.006982906574138001, + "calibration_in_the_large": -0.001377689572717688, + "expected_calibration_error_10bin": 0.0016565715048372821, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8587014820042344, + "auprc": 0.07616225444515917, + "brier": 0.009105794570349171, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.0077410136589008095, + "calibration_in_the_large": -0.0017100950288490993, + "expected_calibration_error_10bin": 0.0021958105220568564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.8655780485950999, + "auprc": 0.07834125185974636, + "brier": 0.010132905049712747, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.008346282579721412, + "calibration_in_the_large": -0.0021953386489227174, + "expected_calibration_error_10bin": 0.003027721521520493, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 30, + "negatives": 2721, + "auroc": 0.8699130221732206, + "auprc": 0.08305603224536813, + "brier": 0.01045524537935091, + "calibration": { + "observed_rate": 0.010905125408942203, + "mean_prediction": 0.008995766006527553, + "calibration_in_the_large": -0.0019093594024146496, + "expected_calibration_error_10bin": 0.0028036699626098893, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.8589760742078623, + "auprc": 0.08130185964826636, + "brier": 0.011496418272522641, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.00965595950195059, + "calibration_in_the_large": -0.002339678447885834, + "expected_calibration_error_10bin": 0.003509328136314647, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.8328213759730696, + "auprc": 0.07635040142514064, + "brier": 0.012214535821626689, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.010186959281313239, + "calibration_in_the_large": -0.0025356870291193302, + "expected_calibration_error_10bin": 0.002696515093968862, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.823122570083896, + "auprc": 0.07437955864747957, + "brier": 0.01257334053029915, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.010629064830513004, + "calibration_in_the_large": -0.0024570856602176387, + "expected_calibration_error_10bin": 0.002622670288386241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8073552550339581, + "auprc": 0.07201492159801365, + "brier": 0.012937363853708262, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.011049166118400565, + "calibration_in_the_large": -0.0024004885526281525, + "expected_calibration_error_10bin": 0.0025685704117473914, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8072855464159812, + "auprc": 0.07197655102984431, + "brier": 0.012937253684850956, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.011139358966868617, + "calibration_in_the_large": -0.0023102957041601004, + "expected_calibration_error_10bin": 0.002479416311255401, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + } + ], + "reason": null + }, + "K94": { + "time_averaged_auroc": 0.8955868027607081, + "time_averaged_auprc": 0.0624957212425648, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.8919801277501774, + "auprc": 0.009411190090637, + "brier": 0.0017845740283293158, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0014637685611544199, + "calibration_in_the_large": -0.00030739686569644805, + "expected_calibration_error_10bin": 0.00030739686569644805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.9248223801065719, + "auprc": 0.0487627616600779, + "brier": 0.0027799675250955156, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0020605136076636077, + "calibration_in_the_large": -0.0007733510752977808, + "expected_calibration_error_10bin": 0.0007733510752977808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 11, + "negatives": 2812, + "auroc": 0.9084766584766585, + "auprc": 0.0813477962087343, + "brier": 0.0037562790064660503, + "calibration": { + "observed_rate": 0.0038965639390719092, + "mean_prediction": 0.0024391213409993414, + "calibration_in_the_large": -0.0014574425980725678, + "expected_calibration_error_10bin": 0.001612241798849101, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 12, + "negatives": 2811, + "auroc": 0.9045713269299182, + "auprc": 0.07203827370565145, + "brier": 0.0041050909212544725, + "calibration": { + "observed_rate": 0.004250797024442083, + "mean_prediction": 0.0028839608744520248, + "calibration_in_the_large": -0.0013668361499900579, + "expected_calibration_error_10bin": 0.0013668361499900579, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.9066794415548864, + "auprc": 0.06958490405439995, + "brier": 0.004449763047809532, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.003217667231411177, + "calibration_in_the_large": -0.001387362878401079, + "expected_calibration_error_10bin": 0.0013873628784010798, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.9071174377224199, + "auprc": 0.07690189087928517, + "brier": 0.004446083853646019, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.00366343100044005, + "calibration_in_the_large": -0.0009415991093722062, + "expected_calibration_error_10bin": 0.0011157222658356356, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8852413161775924, + "auprc": 0.072152049702643, + "brier": 0.004801396861444905, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.003924063484815608, + "calibration_in_the_large": -0.0010351997103668223, + "expected_calibration_error_10bin": 0.0014059369851080023, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8845038905558663, + "auprc": 0.06582002188791006, + "brier": 0.004804546912144924, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.004100238950852406, + "calibration_in_the_large": -0.000859024244330024, + "expected_calibration_error_10bin": 0.0014084608997309827, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8843004627981488, + "auprc": 0.06559191350282191, + "brier": 0.004805522463730306, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.004323123036776055, + "calibration_in_the_large": -0.0006361401584063751, + "expected_calibration_error_10bin": 0.001239812955006087, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8846564613741545, + "auprc": 0.06505424719772268, + "brier": 0.004812393426130318, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.004605585092905721, + "calibration_in_the_large": -0.0003536781022767093, + "expected_calibration_error_10bin": 0.0010341099156056075, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8843767482072928, + "auprc": 0.06567434221793869, + "brier": 0.004813952102177502, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0047676121076095195, + "calibration_in_the_large": -0.00019165108757291088, + "expected_calibration_error_10bin": 0.0009749671264464837, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.8879392212725546, + "auprc": 0.060044558843232745, + "brier": 0.005162963008134799, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.005069263453118645, + "calibration_in_the_large": -0.00024423282743395863, + "expected_calibration_error_10bin": 0.0011000537730666146, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.887962962962963, + "auprc": 0.06006042620228761, + "brier": 0.00516313734850152, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.005077318509779769, + "calibration_in_the_large": -0.00023617777077283506, + "expected_calibration_error_10bin": 0.0010932348582525266, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + } + ], + "reason": null + }, + "L02": { + "time_averaged_auroc": 0.7343466142212841, + "time_averaged_auprc": 0.015031567456011936, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.5507608178792202, + "auprc": 0.0015496108353251208, + "brier": 0.0010727529464950316, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0014228506565106354, + "calibration_in_the_large": 0.0003540939767813871, + "expected_calibration_error_10bin": 0.0003540939767813871, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.7258359145421333, + "auprc": 0.014148271518133693, + "brier": 0.003190003603003853, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.002078937984070381, + "calibration_in_the_large": -0.0011273320551173638, + "expected_calibration_error_10bin": 0.0011273320551173638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.7473364318913122, + "auprc": 0.01442133043239253, + "brier": 0.0035408522805361925, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0026885880528370897, + "calibration_in_the_large": -0.0008739342129270712, + "expected_calibration_error_10bin": 0.0008739342129270712, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.7481467030823254, + "auprc": 0.014474517064697111, + "brier": 0.0038938027855227974, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.003390028045274234, + "calibration_in_the_large": -0.0005287464470663432, + "expected_calibration_error_10bin": 0.0005287464470663432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.7695336159903089, + "auprc": 0.015787768708534575, + "brier": 0.0045956398311637345, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003752804647664123, + "calibration_in_the_large": -0.0008784742978292862, + "expected_calibration_error_10bin": 0.0008784742978292862, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7749044890162369, + "auprc": 0.016277581410843553, + "brier": 0.005301496198077909, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.0041826086781720055, + "calibration_in_the_large": -0.0011611747204742359, + "expected_calibration_error_10bin": 0.0011611747204742359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7742836676217765, + "auprc": 0.016438425684785124, + "brier": 0.005301355762627906, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004609185984620676, + "calibration_in_the_large": -0.0007345974140255656, + "expected_calibration_error_10bin": 0.0007345974140255656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 16, + "negatives": 2791, + "auroc": 0.7486340021497672, + "auprc": 0.01567581595033942, + "brier": 0.0056584376427246865, + "calibration": { + "observed_rate": 0.0057000356252226575, + "mean_prediction": 0.0049952814297388615, + "calibration_in_the_large": -0.000704754195483796, + "expected_calibration_error_10bin": 0.000704754195483796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.750685220324689, + "auprc": 0.016184335147438354, + "brier": 0.006011564048387944, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.0053273493292567125, + "calibration_in_the_large": -0.0007289385225423611, + "expected_calibration_error_10bin": 0.0007289385225423611, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.7498840396373603, + "auprc": 0.016339600769992642, + "brier": 0.006014481458804751, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.006029982294603088, + "calibration_in_the_large": -2.6305557195985436e-05, + "expected_calibration_error_10bin": 2.6305557195985436e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 19, + "negatives": 2788, + "auroc": 0.741542701804727, + "auprc": 0.017285446359268455, + "brier": 0.006714827674927692, + "calibration": { + "observed_rate": 0.006768792304951906, + "mean_prediction": 0.006304573352106654, + "calibration_in_the_large": -0.0004642189528452521, + "expected_calibration_error_10bin": 0.0004642189528452521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7324955116696589, + "auprc": 0.01841564066952909, + "brier": 0.007768236495453161, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.006540227243410109, + "calibration_in_the_large": -0.0012973217412710451, + "expected_calibration_error_10bin": 0.0012973217412710451, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7324628692671781, + "auprc": 0.0184120323768755, + "brier": 0.0077683599415305695, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.006556678064407671, + "calibration_in_the_large": -0.0012808709202734832, + "expected_calibration_error_10bin": 0.0012808709202734832, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "L03": { + "time_averaged_auroc": 0.6640728286705531, + "time_averaged_auprc": 0.050987080263485716, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2701, + "positives": 7, + "negatives": 2694, + "auroc": 0.4634107540566338, + "auprc": 0.010581186945299368, + "brier": 0.0025856592369503215, + "calibration": { + "observed_rate": 0.00259163272861903, + "mean_prediction": 0.0018187572374626744, + "calibration_in_the_large": -0.0007728754911563557, + "expected_calibration_error_10bin": 0.0007728754911563557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 11, + "negatives": 2690, + "auroc": 0.6106792835417371, + "auprc": 0.01727534932140844, + "brier": 0.004066226094496119, + "calibration": { + "observed_rate": 0.004072565716401333, + "mean_prediction": 0.0037635125147644213, + "calibration_in_the_large": -0.00030905320163691127, + "expected_calibration_error_10bin": 0.00030905320163691127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 21, + "negatives": 2680, + "auroc": 0.6311122956645344, + "auprc": 0.018234234614101404, + "brier": 0.007750480738449024, + "calibration": { + "observed_rate": 0.00777489818585709, + "mean_prediction": 0.004893416466437312, + "calibration_in_the_large": -0.002881481719419778, + "expected_calibration_error_10bin": 0.003057397220661946, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 25, + "negatives": 2676, + "auroc": 0.6738863976083707, + "auprc": 0.042520777907595245, + "brier": 0.009129675437483605, + "calibration": { + "observed_rate": 0.009255831173639394, + "mean_prediction": 0.006645858842846163, + "calibration_in_the_large": -0.002609972330793231, + "expected_calibration_error_10bin": 0.002916108925235084, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 27, + "negatives": 2674, + "auroc": 0.6610016897975013, + "auprc": 0.04084088332576163, + "brier": 0.009911107322835648, + "calibration": { + "observed_rate": 0.009996297667530544, + "mean_prediction": 0.00790157592098328, + "calibration_in_the_large": -0.002094721746547264, + "expected_calibration_error_10bin": 0.002978680707221288, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 31, + "negatives": 2670, + "auroc": 0.6913616044460553, + "auprc": 0.04471301601704481, + "brier": 0.011334647916144719, + "calibration": { + "observed_rate": 0.011477230655312847, + "mean_prediction": 0.008777344530930164, + "calibration_in_the_large": -0.0026998861243826833, + "expected_calibration_error_10bin": 0.004373004623625162, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 35, + "negatives": 2666, + "auroc": 0.7007180366520201, + "auprc": 0.05711271046930594, + "brier": 0.012646328081183503, + "calibration": { + "observed_rate": 0.01295816364309515, + "mean_prediction": 0.009676775310347961, + "calibration_in_the_large": -0.003281388332747189, + "expected_calibration_error_10bin": 0.004605520687922045, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 36, + "negatives": 2665, + "auroc": 0.6904002501563478, + "auprc": 0.05586509253498792, + "brier": 0.013041863723794003, + "calibration": { + "observed_rate": 0.013328396890040726, + "mean_prediction": 0.010623643391728953, + "calibration_in_the_large": -0.0027047534983117728, + "expected_calibration_error_10bin": 0.004680665888045835, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 41, + "negatives": 2660, + "auroc": 0.7064093159728589, + "auprc": 0.07222077493839311, + "brier": 0.014702304908841824, + "calibration": { + "observed_rate": 0.015179563124768604, + "mean_prediction": 0.011560426994587907, + "calibration_in_the_large": -0.0036191361301806963, + "expected_calibration_error_10bin": 0.005916213705028899, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 43, + "negatives": 2658, + "auroc": 0.7052076224473726, + "auprc": 0.07286405133660381, + "brier": 0.015427130921219511, + "calibration": { + "observed_rate": 0.015920029618659754, + "mean_prediction": 0.01222290434416357, + "calibration_in_the_large": -0.0036971252744961835, + "expected_calibration_error_10bin": 0.006609283745804572, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 46, + "negatives": 2655, + "auroc": 0.6885695570293949, + "auprc": 0.07170698247927092, + "brier": 0.01656010151249728, + "calibration": { + "observed_rate": 0.017030729359496483, + "mean_prediction": 0.013031860325952768, + "calibration_in_the_large": -0.003998869033543715, + "expected_calibration_error_10bin": 0.007510483229052436, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 48, + "negatives": 2653, + "auroc": 0.7002842693805754, + "auprc": 0.07851474374620408, + "brier": 0.01718038848785753, + "calibration": { + "observed_rate": 0.017771195853387635, + "mean_prediction": 0.013546003547097075, + "calibration_in_the_large": -0.00422519230629056, + "expected_calibration_error_10bin": 0.0074065847153055525, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + { + "valid": 2701, + "positives": 50, + "negatives": 2651, + "auroc": 0.7099056959637873, + "auprc": 0.08038223978933771, + "brier": 0.017859612716551225, + "calibration": { + "observed_rate": 0.018511662347278787, + "mean_prediction": 0.013632447193243323, + "calibration_in_the_large": -0.004879215154035464, + "expected_calibration_error_10bin": 0.008174509860038636, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + } + ], + "reason": null + }, + "L08": { + "time_averaged_auroc": 0.6512289888972389, + "time_averaged_auprc": 0.004068851280928681, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.7217309279566089, + "auprc": 0.004273409753891238, + "brier": 0.0010597866655393362, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.00032095591483488975, + "calibration_in_the_large": -0.000739114756543202, + "expected_calibration_error_10bin": 0.000739114756543202, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.7341115434500648, + "auprc": 0.004744465725668602, + "brier": 0.0010600318651688022, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.0005190515086006441, + "calibration_in_the_large": -0.0005410191627774477, + "expected_calibration_error_10bin": 0.0005410191627774477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 4, + "negatives": 2826, + "auroc": 0.7203644727530077, + "auprc": 0.004486526406010425, + "brier": 0.001413639897681609, + "calibration": { + "observed_rate": 0.0014134275618374558, + "mean_prediction": 0.0006165342548970065, + "calibration_in_the_large": -0.0007968933069404493, + "expected_calibration_error_10bin": 0.0007968933069404493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631221238938053, + "auprc": 0.004070605829754636, + "brier": 0.001767728385552425, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.000788416540153617, + "calibration_in_the_large": -0.0009783679121432027, + "expected_calibration_error_10bin": 0.0009783679121432027, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6297345132743363, + "auprc": 0.004079380684442092, + "brier": 0.001768624893724251, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0009173295185312451, + "calibration_in_the_large": -0.0008494549337655747, + "expected_calibration_error_10bin": 0.0008494549337655747, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6274690265486725, + "auprc": 0.004007875627905167, + "brier": 0.0017699779632543446, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0010677760938819193, + "calibration_in_the_large": -0.0006990083584149005, + "expected_calibration_error_10bin": 0.0006990083584149005, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6277522123893805, + "auprc": 0.0039393938558939644, + "brier": 0.0017712160813387983, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0011919495421019595, + "calibration_in_the_large": -0.0005748349101948602, + "expected_calibration_error_10bin": 0.0005748349101948602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6230088495575221, + "auprc": 0.0038532274931124726, + "brier": 0.001773762847243004, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013633528065083184, + "calibration_in_the_large": -0.00040343164578850134, + "expected_calibration_error_10bin": 0.00040343164578850134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6248495575221239, + "auprc": 0.003866630853632873, + "brier": 0.001774768671421519, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0014356984015347486, + "calibration_in_the_large": -0.00033108605076207116, + "expected_calibration_error_10bin": 0.00033108605076207116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631504424778761, + "auprc": 0.0039170432634460465, + "brier": 0.0017760378106801379, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0015359055077014752, + "calibration_in_the_large": -0.00023087894459534455, + "expected_calibration_error_10bin": 0.00023087894459534455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6304424778761062, + "auprc": 0.0038851887876183732, + "brier": 0.0017763342978492822, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0015577287111768348, + "calibration_in_the_large": -0.00020905574111998492, + "expected_calibration_error_10bin": 0.00020905574111998492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631858407079646, + "auprc": 0.003885843305490362, + "brier": 0.0017769654369978152, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0016088886011663508, + "calibration_in_the_large": -0.00015789585113046897, + "expected_calibration_error_10bin": 0.00015789585113046897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631929203539823, + "auprc": 0.0038854750652066007, + "brier": 0.0017770324210763582, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0016134530045193573, + "calibration_in_the_large": -0.0001533314477774625, + "expected_calibration_error_10bin": 0.0001533314477774625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + } + ], + "reason": null + }, + "L27": { + "time_averaged_auroc": 0.7137957651619738, + "time_averaged_auprc": 0.01683246013830554, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.6737714624037893, + "auprc": 0.006622204659405574, + "brier": 0.001072762173641705, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001214190775438609, + "calibration_in_the_large": 0.00014960596351525903, + "expected_calibration_error_10bin": 0.00014960596351525903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.743547813722005, + "auprc": 0.007252322338022424, + "brier": 0.0017921580422892635, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002018375321156361, + "calibration_in_the_large": 0.0002440673012841111, + "expected_calibration_error_10bin": 0.0002440673012841111, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7415570565232847, + "auprc": 0.0071264346085543025, + "brier": 0.0018764012622801585, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0030948817982262115, + "calibration_in_the_large": 0.0013205737783539618, + "expected_calibration_error_10bin": 0.0013205737783539616, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6751029120292728, + "auprc": 0.007966787594587299, + "brier": 0.002755302363331955, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.004145358679136853, + "calibration_in_the_large": 0.001661327451315703, + "expected_calibration_error_10bin": 0.0016613274513157025, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6750012705188799, + "auprc": 0.007937834744695992, + "brier": 0.002780352506319194, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.004497268940524088, + "calibration_in_the_large": 0.002013237712702938, + "expected_calibration_error_10bin": 0.0020132377127029377, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6720536667174875, + "auprc": 0.007834494914239667, + "brier": 0.0028114301226901013, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.00477618283370741, + "calibration_in_the_large": 0.00229215160588626, + "expected_calibration_error_10bin": 0.00229215160588626, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 8, + "negatives": 2810, + "auroc": 0.702846975088968, + "auprc": 0.009357322837957831, + "brier": 0.0031721651785353217, + "calibration": { + "observed_rate": 0.0028388928317956, + "mean_prediction": 0.0049327581627413505, + "calibration_in_the_large": 0.0020938653309457507, + "expected_calibration_error_10bin": 0.0020938653309457503, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 9, + "negatives": 2809, + "auroc": 0.734306396107749, + "auprc": 0.030248168733787814, + "brier": 0.003415352150078698, + "calibration": { + "observed_rate": 0.00319375443577005, + "mean_prediction": 0.0052660742339693005, + "calibration_in_the_large": 0.0020723197981992506, + "expected_calibration_error_10bin": 0.00207231979819925, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.725, + "auprc": 0.02820859191665163, + "brier": 0.0038392772271808773, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.005737595859863699, + "calibration_in_the_large": 0.0021889798201191997, + "expected_calibration_error_10bin": 0.0021889798201191993, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7256857855361596, + "auprc": 0.02680719637751478, + "brier": 0.0042010543063397895, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.005822762735601069, + "calibration_in_the_large": 0.0019192850918821197, + "expected_calibration_error_10bin": 0.0019531583560583607, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7373782371109527, + "auprc": 0.02647050143215857, + "brier": 0.004644379719768362, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.006247252061534228, + "calibration_in_the_large": 0.0019889128138408287, + "expected_calibration_error_10bin": 0.002447173264192794, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7365466856735566, + "auprc": 0.02648608358726137, + "brier": 0.004661017181307958, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0064218229021236065, + "calibration_in_the_large": 0.002163483654430207, + "expected_calibration_error_10bin": 0.002427993276585049, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7365466856735566, + "auprc": 0.02650403805313478, + "brier": 0.004663343113756622, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0064402221215711965, + "calibration_in_the_large": 0.002181882873877797, + "expected_calibration_error_10bin": 0.0024212557809752335, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "L29": { + "time_averaged_auroc": 0.6247355118543183, + "time_averaged_auprc": 0.008213897800052442, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.380461811722913, + "auprc": 0.0009293899264061177, + "brier": 0.000713864690692913, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001015248667217189, + "calibration_in_the_large": 0.00030527351634746934, + "expected_calibration_error_10bin": 0.00030527351634746934, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.4172291296625222, + "auprc": 0.0009813482642608493, + "brier": 0.0007207535463302562, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0014614378727401507, + "calibration_in_the_large": 0.0007514627218704311, + "expected_calibration_error_10bin": 0.0007514627218704311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.47904085257548845, + "auprc": 0.001150325116545268, + "brier": 0.0007347230769306274, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0021061018546909616, + "calibration_in_the_large": 0.001396126703821242, + "expected_calibration_error_10bin": 0.001396126703821242, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6684434968017058, + "auprc": 0.01029371927325758, + "brier": 0.001085396346986695, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.002620544271657434, + "calibration_in_the_large": 0.0015555815453528543, + "expected_calibration_error_10bin": 0.0015555815453528543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6882255389718076, + "auprc": 0.010857255000870055, + "brier": 0.0010938747103784489, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0031133310942539957, + "calibration_in_the_large": 0.0020483683679494162, + "expected_calibration_error_10bin": 0.0020483683679494167, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6858564321250888, + "auprc": 0.01136649469790086, + "brier": 0.0011054258098010406, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.00355204912226646, + "calibration_in_the_large": 0.0024870863959618804, + "expected_calibration_error_10bin": 0.002487086395961881, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.685737976782753, + "auprc": 0.011349366572825604, + "brier": 0.0011186245426421354, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.003997174703019038, + "calibration_in_the_large": 0.0029322119767144585, + "expected_calibration_error_10bin": 0.0029322119767144585, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6805259417199716, + "auprc": 0.01131956747610526, + "brier": 0.0011338502423639872, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0043965934809223105, + "calibration_in_the_large": 0.003331630754617731, + "expected_calibration_error_10bin": 0.003331630754617731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6923714759535655, + "auprc": 0.011080096678852512, + "brier": 0.0011433204926887635, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.004601851649540068, + "calibration_in_the_large": 0.0035368889232354887, + "expected_calibration_error_10bin": 0.0035368889232354882, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6952144041696281, + "auprc": 0.010817082122327362, + "brier": 0.0011583689241617939, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.004887143152095085, + "calibration_in_the_large": 0.0038221804257905054, + "expected_calibration_error_10bin": 0.003822180425790506, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.697228144989339, + "auprc": 0.01033378544943527, + "brier": 0.0011701872246789428, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0052008484570904776, + "calibration_in_the_large": 0.004135885730785898, + "expected_calibration_error_10bin": 0.004135885730785898, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.6753466050479915, + "auprc": 0.008224458803179105, + "brier": 0.0015373889627171141, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.00549930770466809, + "calibration_in_the_large": 0.004079357402928651, + "expected_calibration_error_10bin": 0.004079357402928651, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.675879843583363, + "auprc": 0.008077782018715925, + "brier": 0.0015409479305783255, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.005572088394393975, + "calibration_in_the_large": 0.0041521380926545365, + "expected_calibration_error_10bin": 0.004152138092654536, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + } + ], + "reason": null + }, + "L30": { + "time_averaged_auroc": 0.7987750693546143, + "time_averaged_auprc": 0.03514719550674813, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.997158081705151, + "auprc": 0.1111111111111111, + "brier": 0.00035193526998218927, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.0003599858173420597, + "calibration_in_the_large": 4.872180978423332e-06, + "expected_calibration_error_10bin": 4.872180978423332e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.8903695806680881, + "auprc": 0.0470965815793402, + "brier": 0.0007044634673034904, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.0006933362580622573, + "calibration_in_the_large": -1.6891014665015402e-05, + "expected_calibration_error_10bin": 1.6891014665015402e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.8674013508709563, + "auprc": 0.03327755410860933, + "brier": 0.0010577929711160464, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.001039438958615206, + "calibration_in_the_large": -2.5901950475702967e-05, + "expected_calibration_error_10bin": 2.5901950475702967e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.743649946638207, + "auprc": 0.03260000511681411, + "brier": 0.0017642133752044757, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.001367477024048905, + "calibration_in_the_large": -0.0004080911577692768, + "expected_calibration_error_10bin": 0.0004080911577692768, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.76429418742586, + "auprc": 0.029215024388392043, + "brier": 0.002119031506788152, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0016328393337198771, + "calibration_in_the_large": -0.0004978424844619409, + "expected_calibration_error_10bin": 0.0004978424844619409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7436301683364696, + "auprc": 0.0259764895217121, + "brier": 0.0024787549602195576, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0019941160372056936, + "calibration_in_the_large": -0.0004916794173397609, + "expected_calibration_error_10bin": 0.0005684915378329239, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7439861669124752, + "auprc": 0.02597672777406588, + "brier": 0.002484297525161021, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0022533609792470795, + "calibration_in_the_large": -0.000232434475298375, + "expected_calibration_error_10bin": 0.0003179047154805336, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.746478156944515, + "auprc": 0.02606029627195221, + "brier": 0.0024891966927559493, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.002438121895528379, + "calibration_in_the_large": -4.76735590170755e-05, + "expected_calibration_error_10bin": 0.00022171734907336127, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7750623219373219, + "auprc": 0.02671511973491092, + "brier": 0.0028412647361955173, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002706366136867609, + "calibration_in_the_large": -0.00013454295404148218, + "expected_calibration_error_10bin": 0.000397637125838492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.77693198005698, + "auprc": 0.0245922649118853, + "brier": 0.002848581032971608, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0029255335825575783, + "calibration_in_the_large": 8.462449164848727e-05, + "expected_calibration_error_10bin": 0.0003424522865991263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7776887464387464, + "auprc": 0.024664128905706757, + "brier": 0.002849863827268892, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002971946451028758, + "calibration_in_the_large": 0.0001310373601196668, + "expected_calibration_error_10bin": 0.0003017351594552571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7786680911680912, + "auprc": 0.024813377175805208, + "brier": 0.0028542717041729563, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.00316147158387604, + "calibration_in_the_large": 0.0003205624929669489, + "expected_calibration_error_10bin": 0.00032056249296694936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7787571225071225, + "auprc": 0.024814860987420483, + "brier": 0.0028545801440952073, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.003171460049908668, + "calibration_in_the_large": 0.000330550958999577, + "expected_calibration_error_10bin": 0.000330550958999577, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + } + ], + "reason": null + }, + "L50": { + "time_averaged_auroc": 0.7518873881941132, + "time_averaged_auprc": 0.011264650472275302, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2835, + "positives": 1, + "negatives": 2834, + "auroc": 0.7043048694424842, + "auprc": 0.0011918951132300357, + "brier": 0.00035275057388874494, + "calibration": { + "observed_rate": 0.0003527336860670194, + "mean_prediction": 0.000182185704195903, + "calibration_in_the_large": -0.00017054798187111643, + "expected_calibration_error_10bin": 0.00017054798187111643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8228026826685493, + "auprc": 0.01769020812009553, + "brier": 0.0007036979465650815, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.00039243932820181486, + "calibration_in_the_large": -0.000313028043932224, + "expected_calibration_error_10bin": 0.000313028043932224, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8235086480762442, + "auprc": 0.019543108682452945, + "brier": 0.0007030328187956053, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0005832904406416535, + "calibration_in_the_large": -0.00012217693149238539, + "expected_calibration_error_10bin": 0.00012217693149238539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8146840804800565, + "auprc": 0.018217941810344827, + "brier": 0.0007029213904090493, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.000707247098129673, + "calibration_in_the_large": 1.7797259956341994e-06, + "expected_calibration_error_10bin": 1.7797259956341994e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8109777620896577, + "auprc": 0.01524817819331775, + "brier": 0.0007033331603888478, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0008109970606529446, + "calibration_in_the_large": 0.00010552968851890577, + "expected_calibration_error_10bin": 0.00010552968851890577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7190442561205274, + "auprc": 0.009735660890372113, + "brier": 0.001056315481884425, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0008616706983832441, + "calibration_in_the_large": -0.0001965303598178142, + "expected_calibration_error_10bin": 0.0001965303598178142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7202212806026366, + "auprc": 0.009741647241647241, + "brier": 0.001056706343579175, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009507349336263601, + "calibration_in_the_large": -0.00010746612457469818, + "expected_calibration_error_10bin": 0.00010746612457469818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.722457627118644, + "auprc": 0.009753403391449726, + "brier": 0.0010568808156070067, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009828638793342452, + "calibration_in_the_large": -7.533717886681304e-05, + "expected_calibration_error_10bin": 7.533717886681304e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7254001883239172, + "auprc": 0.009013661467721548, + "brier": 0.0010571703252769636, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.00103717443444801, + "calibration_in_the_large": -2.1026623753048288e-05, + "expected_calibration_error_10bin": 2.1026623753048288e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7283427495291902, + "auprc": 0.009208720198535554, + "brier": 0.0010575275894127412, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.001109331930330314, + "calibration_in_the_large": 5.1130872129255675e-05, + "expected_calibration_error_10bin": 5.1130872129255675e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7274011299435028, + "auprc": 0.009030714616453156, + "brier": 0.0010578278167581142, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0011726870586884347, + "calibration_in_the_large": 0.00011448600048737643, + "expected_calibration_error_10bin": 0.00011448600048737643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.727283427495292, + "auprc": 0.009031600600581665, + "brier": 0.0010579724581439545, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0011900844010754408, + "calibration_in_the_large": 0.0001318833428743825, + "expected_calibration_error_10bin": 0.0001318833428743825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7281073446327684, + "auprc": 0.00903371581337683, + "brier": 0.0010580494525670677, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0012186720425689493, + "calibration_in_the_large": 0.00016047098436789103, + "expected_calibration_error_10bin": 0.00016047098436789103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + } + ], + "reason": null + }, + "L53": { + "time_averaged_auroc": null, + "time_averaged_auprc": null, + "valid_timepoint_cells": 0, + "timepoints": [ + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.451474618819217e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002580321474074445, + "calibration_in_the_large": 0.0002580321474074445, + "expected_calibration_error_10bin": 0.0002580321474074445, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.7146544243866148e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005219296922048841, + "calibration_in_the_large": 0.0005219296922048841, + "expected_calibration_error_10bin": 0.0005219296922048841, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.805392233758094e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007336979150574332, + "calibration_in_the_large": 0.0007336979150574332, + "expected_calibration_error_10bin": 0.0007336979150574332, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.978957742800225e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009221277524593715, + "calibration_in_the_large": 0.0009221277524593715, + "expected_calibration_error_10bin": 0.0009221277524593715, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 5.22481739087587e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010372006343462336, + "calibration_in_the_large": 0.0010372006343462336, + "expected_calibration_error_10bin": 0.0010372006343462336, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.2403450325157915e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011172815482684167, + "calibration_in_the_large": 0.0011172815482684167, + "expected_calibration_error_10bin": 0.0011172815482684167, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.96255489202472e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001174277900269732, + "calibration_in_the_large": 0.001174277900269732, + "expected_calibration_error_10bin": 0.001174277900269732, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 7.362212728038062e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001215339866442501, + "calibration_in_the_large": 0.001215339866442501, + "expected_calibration_error_10bin": 0.001215339866442501, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 9.769839285326015e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013498485570138498, + "calibration_in_the_large": 0.0013498485570138498, + "expected_calibration_error_10bin": 0.0013498485570138498, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.0719542383333757e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001423787310188497, + "calibration_in_the_large": 0.001423787310188497, + "expected_calibration_error_10bin": 0.001423787310188497, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.1274051294115046e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014716969282408568, + "calibration_in_the_large": 0.0014716969282408568, + "expected_calibration_error_10bin": 0.0014716969282408568, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.2828506515076924e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015772994511776457, + "calibration_in_the_large": 0.0015772994511776457, + "expected_calibration_error_10bin": 0.0015772994511776457, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.2897754739342372e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015813414089350076, + "calibration_in_the_large": 0.0015813414089350076, + "expected_calibration_error_10bin": 0.0015813414089350076, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": "no_two_class_timepoint" + }, + "L76": { + "time_averaged_auroc": 0.6805748078367386, + "time_averaged_auprc": 0.010251566584555625, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2793, + "positives": 6, + "negatives": 2787, + "auroc": 0.660267910537017, + "auprc": 0.005050850127904934, + "brier": 0.00214856747739159, + "calibration": { + "observed_rate": 0.0021482277121374865, + "mean_prediction": 0.0021358257965674605, + "calibration_in_the_large": -1.2401915570026036e-05, + "expected_calibration_error_10bin": 1.2401915570026036e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6098294434470377, + "auprc": 0.005247675040049407, + "brier": 0.0028681415118313237, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0029966153781202038, + "calibration_in_the_large": 0.00013231176193688812, + "expected_calibration_error_10bin": 0.00013231176193688812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6225763016157989, + "auprc": 0.005096558206762831, + "brier": 0.002871067110179671, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0032686461257482266, + "calibration_in_the_large": 0.0004043425095649109, + "expected_calibration_error_10bin": 0.0004043425095649109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6348544735896514, + "auprc": 0.005854171687834285, + "brier": 0.003583555172264548, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.003631041120607892, + "calibration_in_the_large": 5.066160037874761e-05, + "expected_calibration_error_10bin": 5.066160037874761e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6443406395975566, + "auprc": 0.005858375496478526, + "brier": 0.003585810260153513, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.003919832405290386, + "calibration_in_the_large": 0.0003394528850612418, + "expected_calibration_error_10bin": 0.0003394528850612418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.6643683419384354, + "auprc": 0.006575958396476122, + "brier": 0.0039401348997631465, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.004098458388527887, + "calibration_in_the_large": 0.00016004091627582796, + "expected_calibration_error_10bin": 0.00016004091627582796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7081627006087438, + "auprc": 0.013306689464806811, + "brier": 0.004631512107964332, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.004406790003377332, + "calibration_in_the_large": -0.0002477033729205557, + "expected_calibration_error_10bin": 0.0002477033729205557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7102102933038185, + "auprc": 0.01364179025265978, + "brier": 0.004633178510994258, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.00471857138471279, + "calibration_in_the_large": 6.407800841490199e-05, + "expected_calibration_error_10bin": 6.407800841490199e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.710902047592695, + "auprc": 0.013115670974666075, + "brier": 0.0046357928832779895, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.00494090438774114, + "calibration_in_the_large": 0.00028641101144325203, + "expected_calibration_error_10bin": 0.00028641101144325203, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7120641947980078, + "auprc": 0.01438163677521863, + "brier": 0.004638443510188857, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.005293743438526514, + "calibration_in_the_large": 0.000639250062228626, + "expected_calibration_error_10bin": 0.000639250062228626, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7116768123962368, + "auprc": 0.014391408110260833, + "brier": 0.004639928617620634, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.005433370494702943, + "calibration_in_the_large": 0.0007788771184050556, + "expected_calibration_error_10bin": 0.0007788771184050556, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7290616750659947, + "auprc": 0.015371007485486619, + "brier": 0.0053444154692500485, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.0056919061208869585, + "calibration_in_the_large": 0.00032133684054324197, + "expected_calibration_error_10bin": 0.00032133684054324197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.729157667386609, + "auprc": 0.01537857358061828, + "brier": 0.005344540423297765, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.005707180874658712, + "calibration_in_the_large": 0.00033661159431499534, + "expected_calibration_error_10bin": 0.00033661159431499534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + } + ], + "reason": null + }, + "L89": { + "time_averaged_auroc": 0.8591592754259987, + "time_averaged_auprc": 0.03348372876722915, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2798, + "positives": 8, + "negatives": 2790, + "auroc": 0.8619623655913978, + "auprc": 0.012793073680499104, + "brier": 0.002851544230644527, + "calibration": { + "observed_rate": 0.0028591851322373124, + "mean_prediction": 0.000768247435575956, + "calibration_in_the_large": -0.0020909376966613564, + "expected_calibration_error_10bin": 0.0020909376966613564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8459110473457676, + "auprc": 0.020045476010628234, + "brier": 0.0035512390385686464, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.00170906005258742, + "calibration_in_the_large": -0.0018649213627092204, + "expected_calibration_error_10bin": 0.0018649213627092204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.8451250937795609, + "auprc": 0.019708974392303697, + "brier": 0.003907621893553374, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.0022413455372153894, + "calibration_in_the_large": -0.0016900340196109149, + "expected_calibration_error_10bin": 0.001761888670414768, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 14, + "negatives": 2784, + "auroc": 0.8539100985221675, + "auprc": 0.026923150263661544, + "brier": 0.004951679942622859, + "calibration": { + "observed_rate": 0.005003573981415297, + "mean_prediction": 0.0029437454561520695, + "calibration_in_the_large": -0.0020598285252632275, + "expected_calibration_error_10bin": 0.0022177251702522514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 15, + "negatives": 2783, + "auroc": 0.863935800694694, + "auprc": 0.03095183974023751, + "brier": 0.005294656196814933, + "calibration": { + "observed_rate": 0.005360972122944961, + "mean_prediction": 0.0032790749551259136, + "calibration_in_the_large": -0.0020818971678190474, + "expected_calibration_error_10bin": 0.002270732862661764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 17, + "negatives": 2781, + "auroc": 0.8647756837362777, + "auprc": 0.03628979032059492, + "brier": 0.005985527065318635, + "calibration": { + "observed_rate": 0.006075768406004289, + "mean_prediction": 0.003541953468369628, + "calibration_in_the_large": -0.002533814937634661, + "expected_calibration_error_10bin": 0.0027380311125810783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 19, + "negatives": 2779, + "auroc": 0.8550216851953562, + "auprc": 0.03597970959686891, + "brier": 0.006691854390559189, + "calibration": { + "observed_rate": 0.006790564689063617, + "mean_prediction": 0.0039019670443686937, + "calibration_in_the_large": -0.002888597644694923, + "expected_calibration_error_10bin": 0.003206433916891662, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 20, + "negatives": 2778, + "auroc": 0.8605831533477322, + "auprc": 0.040468941509591086, + "brier": 0.007031629066764789, + "calibration": { + "observed_rate": 0.007147962830593281, + "mean_prediction": 0.004280596187987681, + "calibration_in_the_large": -0.0028673666426055995, + "expected_calibration_error_10bin": 0.003236393265819206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 21, + "negatives": 2777, + "auroc": 0.860212288012072, + "auprc": 0.04031072167801062, + "brier": 0.007391877019637515, + "calibration": { + "observed_rate": 0.007505360972122945, + "mean_prediction": 0.004569975626300396, + "calibration_in_the_large": -0.002935385345822549, + "expected_calibration_error_10bin": 0.0034282916276070345, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 22, + "negatives": 2776, + "auroc": 0.8634235001309929, + "auprc": 0.04171265460460443, + "brier": 0.007745303838733973, + "calibration": { + "observed_rate": 0.007862759113652609, + "mean_prediction": 0.0048312842614245885, + "calibration_in_the_large": -0.00303147485222802, + "expected_calibration_error_10bin": 0.0036385254347282713, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 24, + "negatives": 2774, + "auroc": 0.8627132900745014, + "auprc": 0.042383305855266167, + "brier": 0.008454741060431982, + "calibration": { + "observed_rate": 0.008577555396711936, + "mean_prediction": 0.005153587377014438, + "calibration_in_the_large": -0.0034239680196974983, + "expected_calibration_error_10bin": 0.0042299185349200154, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8656761630003607, + "auprc": 0.0438237880965049, + "brier": 0.00880609824289041, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005325243650446936, + "calibration_in_the_large": -0.003609709887794665, + "expected_calibration_error_10bin": 0.004450106753773343, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8658204111071042, + "auprc": 0.04389704822520791, + "brier": 0.008806667245159222, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005369172687651118, + "calibration_in_the_large": -0.0035657808505904836, + "expected_calibration_error_10bin": 0.004413536088908434, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + } + ], + "reason": null + }, + "L97": { + "time_averaged_auroc": 0.8795989668158033, + "time_averaged_auprc": 0.09099739162852419, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2789, + "positives": 2, + "negatives": 2787, + "auroc": 0.8349479727305347, + "auprc": 0.006314162028447742, + "brier": 0.0007240947886532811, + "calibration": { + "observed_rate": 0.0007171029042667623, + "mean_prediction": 0.0006914250956584845, + "calibration_in_the_large": -2.5677808608277875e-05, + "expected_calibration_error_10bin": 2.5677808608277875e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.8783201722900216, + "auprc": 0.008016468755356504, + "brier": 0.0011147289168139702, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0016281475288571357, + "calibration_in_the_large": 0.0005524931724569923, + "expected_calibration_error_10bin": 0.0005524931724569924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.9149910233393178, + "auprc": 0.046016864355548144, + "brier": 0.0014400381654276978, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.002206677475515167, + "calibration_in_the_large": 0.0007724716669816423, + "expected_calibration_error_10bin": 0.0007724716669816425, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.930603448275862, + "auprc": 0.1294525604686179, + "brier": 0.0017068977553950457, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0028706747634770955, + "calibration_in_the_large": 0.0010779175028101898, + "expected_calibration_error_10bin": 0.0018056137114922037, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.9282327586206897, + "auprc": 0.11923556016477974, + "brier": 0.0017486721607417647, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0037309304635822584, + "calibration_in_the_large": 0.0019381732029153528, + "expected_calibration_error_10bin": 0.002349377205544657, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.8892035239122618, + "auprc": 0.08075751221193482, + "brier": 0.002842284319240004, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.00436432363558611, + "calibration_in_the_large": 0.0014959120185190603, + "expected_calibration_error_10bin": 0.0017299683240880796, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.8910014383315354, + "auprc": 0.0831473969072858, + "brier": 0.002894509071993084, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0050039676971305085, + "calibration_in_the_large": 0.002135556080063459, + "expected_calibration_error_10bin": 0.002135556080063459, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.8671379016951372, + "auprc": 0.12562111438534102, + "brier": 0.00379832832193774, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.00549959645189722, + "calibration_in_the_large": 0.0015555304784300276, + "expected_calibration_error_10bin": 0.0024791890369565157, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.8667452058380785, + "auprc": 0.12553822279406937, + "brier": 0.003805073815394334, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.00564271766333296, + "calibration_in_the_large": 0.0016986516898657676, + "expected_calibration_error_10bin": 0.002596005184191243, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.8685932060977074, + "auprc": 0.12228688356676871, + "brier": 0.004185528811569281, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.0060749148528827625, + "calibration_in_the_large": 0.0017722974272821887, + "expected_calibration_error_10bin": 0.002750179329202051, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.8658024246789101, + "auprc": 0.11771126891665708, + "brier": 0.004217845733057782, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.006498389464710802, + "calibration_in_the_large": 0.0021957720391102284, + "expected_calibration_error_10bin": 0.00315330689428911, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8495898913766349, + "auprc": 0.10943498883915172, + "brier": 0.004604869399941633, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.006925882933651766, + "calibration_in_the_large": 0.0022647140559178104, + "expected_calibration_error_10bin": 0.002756242231007837, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8496176014187542, + "auprc": 0.10943308777685595, + "brier": 0.004605859167359317, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.006940084789841389, + "calibration_in_the_large": 0.002278915912107434, + "expected_calibration_error_10bin": 0.002769011972872956, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + } + ], + "reason": null + }, + "L98": { + "time_averaged_auroc": 0.6459787423106196, + "time_averaged_auprc": 0.003687523275772136, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 2.7220328661675422e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008949389290998358, + "calibration_in_the_large": 0.0008949389290998358, + "expected_calibration_error_10bin": 0.0008949389290998358, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.5607509741409847, + "auprc": 0.0008058017727639, + "brier": 0.00036792273737932206, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0015827432539070754, + "calibration_in_the_large": 0.001228635605181863, + "expected_calibration_error_10bin": 0.001228635605181863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.5565001771165426, + "auprc": 0.0007980845969672786, + "brier": 0.0003761169266096752, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0020837942755145855, + "calibration_in_the_large": 0.001729686626789373, + "expected_calibration_error_10bin": 0.001729686626789373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.684745362164717, + "auprc": 0.0031592006769483455, + "brier": 0.0010875337312545557, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0026626110190788236, + "calibration_in_the_large": 0.0016002880729031861, + "expected_calibration_error_10bin": 0.0016002880729031861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6570415040794608, + "auprc": 0.0036730115305145293, + "brier": 0.0017966546991373645, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0029202364315869225, + "calibration_in_the_large": 0.0011496981879608602, + "expected_calibration_error_10bin": 0.0011496981879608602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6561191912025541, + "auprc": 0.0036648553504281664, + "brier": 0.0018001058604607833, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.00309080455160511, + "calibration_in_the_large": 0.0013202663079790477, + "expected_calibration_error_10bin": 0.0013202663079790477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6561901383469315, + "auprc": 0.003682054804257187, + "brier": 0.0018106105513184334, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0034278223722060083, + "calibration_in_the_large": 0.001657284128579946, + "expected_calibration_error_10bin": 0.001657284128579946, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6558354026250444, + "auprc": 0.0036869810819069237, + "brier": 0.001825326643728087, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0037909492588879315, + "calibration_in_the_large": 0.002020411015261869, + "expected_calibration_error_10bin": 0.002020411015261869, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6560482440581766, + "auprc": 0.0036622722328960716, + "brier": 0.0018417174181548045, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.004151153044174748, + "calibration_in_the_large": 0.002380614800548686, + "expected_calibration_error_10bin": 0.0023806148005486856, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 7, + "negatives": 2817, + "auroc": 0.6433896242202951, + "auprc": 0.0043215609862472, + "brier": 0.0025573418593826946, + "calibration": { + "observed_rate": 0.002478753541076487, + "mean_prediction": 0.00452114027395301, + "calibration_in_the_large": 0.002042386732876523, + "expected_calibration_error_10bin": 0.0020423867328765236, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6759144176136364, + "auprc": 0.005625016714109678, + "brier": 0.0029226143295822027, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.004847737971043584, + "calibration_in_the_large": 0.0020148767812418838, + "expected_calibration_error_10bin": 0.002014876781241884, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6749822443181818, + "auprc": 0.005599400014790634, + "brier": 0.0029472572444241463, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.0054229105878643704, + "calibration_in_the_large": 0.0025900493980626706, + "expected_calibration_error_10bin": 0.00259004939806267, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6742276278409091, + "auprc": 0.005572039547435722, + "brier": 0.00295000915824554, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.005490859102717094, + "calibration_in_the_large": 0.0026579979129153944, + "expected_calibration_error_10bin": 0.002657997912915394, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + } + ], + "reason": null + }, + "M10": { + "time_averaged_auroc": 0.7669072689629413, + "time_averaged_auprc": 0.05633720510622902, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2713, + "positives": 4, + "negatives": 2709, + "auroc": 0.73624953857512, + "auprc": 0.010449698066258594, + "brier": 0.0014698069939438362, + "calibration": { + "observed_rate": 0.001474382602285293, + "mean_prediction": 0.0013115007505150877, + "calibration_in_the_large": -0.00016288185177020529, + "expected_calibration_error_10bin": 0.00016288185177020529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 8, + "negatives": 2705, + "auroc": 0.838724584103512, + "auprc": 0.06137612432523918, + "brier": 0.0029031497480874625, + "calibration": { + "observed_rate": 0.002948765204570586, + "mean_prediction": 0.0020612500985637567, + "calibration_in_the_large": -0.0008875151060068294, + "expected_calibration_error_10bin": 0.0008875151060068294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7732889382167961, + "auprc": 0.06587394545627871, + "brier": 0.003633428223013725, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.002769076550257027, + "calibration_in_the_large": -0.0009168799554562057, + "expected_calibration_error_10bin": 0.0009168799554562057, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.77118017018128, + "auprc": 0.06538631186970965, + "brier": 0.0036338825191259325, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003106099040796017, + "calibration_in_the_large": -0.0005798574649172159, + "expected_calibration_error_10bin": 0.0005798574649172159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.770662227155013, + "auprc": 0.06517385425779042, + "brier": 0.003634389497061262, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003703827762165559, + "calibration_in_the_large": 1.787125645232642e-05, + "expected_calibration_error_10bin": 1.787125645232642e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7675175730669627, + "auprc": 0.06484939035153578, + "brier": 0.0036413443106775994, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.004546376711388673, + "calibration_in_the_large": 0.0008604202056754404, + "expected_calibration_error_10bin": 0.0014471783361852245, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 12, + "negatives": 2701, + "auroc": 0.7472232506479082, + "auprc": 0.06583478936179675, + "brier": 0.004348629212864602, + "calibration": { + "observed_rate": 0.0044231478068558795, + "mean_prediction": 0.005042050012549196, + "calibration_in_the_large": 0.0006189022056933167, + "expected_calibration_error_10bin": 0.0010268783902155926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.7652136752136752, + "auprc": 0.05567752329305425, + "brier": 0.004691460228401835, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.00544437316508115, + "calibration_in_the_large": 0.0006526297076539476, + "expected_calibration_error_10bin": 0.0007269203777651687, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.7664102564102564, + "auprc": 0.05567420324381778, + "brier": 0.004698643405798106, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.006005093231808744, + "calibration_in_the_large": 0.0012133497743815414, + "expected_calibration_error_10bin": 0.001213349774381541, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.7670370370370371, + "auprc": 0.055368245865402274, + "brier": 0.004708924484874477, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.0063063536708709, + "calibration_in_the_large": 0.001514610213443698, + "expected_calibration_error_10bin": 0.0015146102134436976, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.7504102048377707, + "auprc": 0.05284797712261844, + "brier": 0.005087361833847708, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.006887530709067172, + "calibration_in_the_large": 0.0017271916010686466, + "expected_calibration_error_10bin": 0.001727191601068647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.7494574710210131, + "auprc": 0.0527429268523847, + "brier": 0.005106264363416634, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.00745759096621302, + "calibration_in_the_large": 0.0022972518582144944, + "expected_calibration_error_10bin": 0.0022972518582144944, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + { + "valid": 2713, + "positives": 15, + "negatives": 2698, + "auroc": 0.7664195700518903, + "auprc": 0.06112867631509073, + "brier": 0.005413233399053264, + "calibration": { + "observed_rate": 0.0055289347585698485, + "mean_prediction": 0.007569004372495028, + "calibration_in_the_large": 0.002040069613925179, + "expected_calibration_error_10bin": 0.0020400696139251783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + } + ], + "reason": null + }, + "M16": { + "time_averaged_auroc": 0.7781799509681679, + "time_averaged_auprc": 0.005748082558207638, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.6041591968447472, + "auprc": 0.0009049773755656109, + "brier": 0.00035858277563381415, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.0002930903419752949, + "calibration_in_the_large": -6.533259709280546e-05, + "expected_calibration_error_10bin": 6.533259709280546e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.6439584080315526, + "auprc": 0.001006036217303823, + "brier": 0.00035943109727311465, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.0005555331080987625, + "calibration_in_the_large": 0.0001971101690306621, + "expected_calibration_error_10bin": 0.0001971101690306621, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7501793400286944, + "auprc": 0.002190008013683065, + "brier": 0.0007173350241847217, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0006279833198538008, + "calibration_in_the_large": -8.88625582823999e-05, + "expected_calibration_error_10bin": 8.88625582823999e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7313486370157819, + "auprc": 0.0020910639991004315, + "brier": 0.0007175618428353564, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0007764593144197192, + "calibration_in_the_large": 5.9613436283518454e-05, + "expected_calibration_error_10bin": 5.9613436283518454e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7440817790530847, + "auprc": 0.002238901340883174, + "brier": 0.0007181127994490124, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0009372118096962368, + "calibration_in_the_large": 0.00022036593156003607, + "expected_calibration_error_10bin": 0.00022036593156003607, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7670373027259685, + "auprc": 0.002387039844333326, + "brier": 0.0007211918194394746, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0011818820822810596, + "calibration_in_the_large": 0.00046503620414485884, + "expected_calibration_error_10bin": 0.00046503620414485884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7733142037302726, + "auprc": 0.002445387339846443, + "brier": 0.0007223137851237502, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0012998174419817424, + "calibration_in_the_large": 0.0005829715638455417, + "expected_calibration_error_10bin": 0.0005829715638455417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8420045449108958, + "auprc": 0.010063724182396228, + "brier": 0.0010743531145087923, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0014569373057677314, + "calibration_in_the_large": 0.0003816684885634303, + "expected_calibration_error_10bin": 0.0003816684885634303, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8459514412151656, + "auprc": 0.010264724462458557, + "brier": 0.0010746512579040766, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0014952872269563204, + "calibration_in_the_large": 0.0004200184097520193, + "expected_calibration_error_10bin": 0.0004200184097520193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8491807200095682, + "auprc": 0.010303385477682546, + "brier": 0.0010760805437266666, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0016381626981979269, + "calibration_in_the_large": 0.0005628938809936258, + "expected_calibration_error_10bin": 0.0005628938809936258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8551608659251285, + "auprc": 0.010373141499022307, + "brier": 0.0010779624861262556, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0017755470206731751, + "calibration_in_the_large": 0.000700278203468874, + "expected_calibration_error_10bin": 0.000700278203468874, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.855400071761751, + "auprc": 0.010235525867328817, + "brier": 0.0010789510224034455, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0018714322756535186, + "calibration_in_the_large": 0.0007961634584492175, + "expected_calibration_error_10bin": 0.0007961634584492175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8545628513335726, + "auprc": 0.010221157637094956, + "brier": 0.0010791460012806796, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.001903421522283223, + "calibration_in_the_large": 0.0008281527050789219, + "expected_calibration_error_10bin": 0.0008281527050789219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + } + ], + "reason": null + }, + "M17": { + "time_averaged_auroc": 0.6961197886192488, + "time_averaged_auprc": 0.007090699075559574, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2733, + "positives": 2, + "negatives": 2731, + "auroc": 0.7958623214939583, + "auprc": 0.00380175915373601, + "brier": 0.0007311973827780305, + "calibration": { + "observed_rate": 0.0007317965605561653, + "mean_prediction": 0.00032177521088109986, + "calibration_in_the_large": -0.0004100213496750655, + "expected_calibration_error_10bin": 0.0004100213496750655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.6994320263832906, + "auprc": 0.0033586876712960625, + "brier": 0.0014634935600918249, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0007423371357349003, + "calibration_in_the_large": -0.0007212559853774303, + "expected_calibration_error_10bin": 0.0007212559853774303, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 5, + "negatives": 2728, + "auroc": 0.6451612903225806, + "auprc": 0.003454916651959713, + "brier": 0.001833024673556726, + "calibration": { + "observed_rate": 0.0018294914013904135, + "mean_prediction": 0.0012842269747370696, + "calibration_in_the_large": -0.0005452644266533439, + "expected_calibration_error_10bin": 0.0005452644266533439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 6, + "negatives": 2727, + "auroc": 0.6952695269526953, + "auprc": 0.005203230860752085, + "brier": 0.002207050946567708, + "calibration": { + "observed_rate": 0.0021953896816684962, + "mean_prediction": 0.00167208750453748, + "calibration_in_the_large": -0.0005233021771310162, + "expected_calibration_error_10bin": 0.0005233021771310162, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 7, + "negatives": 2726, + "auroc": 0.6712608741222094, + "auprc": 0.005362047756933078, + "brier": 0.0025781319783238985, + "calibration": { + "observed_rate": 0.002561287961946579, + "mean_prediction": 0.0020754106199604833, + "calibration_in_the_large": -0.0004858773419860957, + "expected_calibration_error_10bin": 0.0005608449749061581, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 8, + "negatives": 2725, + "auroc": 0.6703211009174312, + "auprc": 0.005715899851167565, + "brier": 0.002957982144816274, + "calibration": { + "observed_rate": 0.0029271862422246614, + "mean_prediction": 0.0024733777479497817, + "calibration_in_the_large": -0.0004538084942748797, + "expected_calibration_error_10bin": 0.000554316930121258, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.6966062979278839, + "auprc": 0.006842881026299662, + "brier": 0.003326337049525601, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.0027735705189706524, + "calibration_in_the_large": -0.0005195140035320917, + "expected_calibration_error_10bin": 0.0006272195639273675, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.6970957741882852, + "auprc": 0.006782299300250913, + "brier": 0.003335855615868786, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.00305164905034547, + "calibration_in_the_large": -0.00024143547215727413, + "expected_calibration_error_10bin": 0.0005165003139588193, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 10, + "negatives": 2723, + "auroc": 0.6702901211898641, + "auprc": 0.006780815928121654, + "brier": 0.0037112766175259105, + "calibration": { + "observed_rate": 0.003658982802780827, + "mean_prediction": 0.003336367277742351, + "calibration_in_the_large": -0.00032261552503847586, + "expected_calibration_error_10bin": 0.0006221971824697786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7026583710407239, + "auprc": 0.01114421119474901, + "brier": 0.004786317462986461, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.0035775624831397676, + "calibration_in_the_large": -0.0011791151604753076, + "expected_calibration_error_10bin": 0.0015708657232028239, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7027432126696832, + "auprc": 0.011027851513259638, + "brier": 0.004796604566419503, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.003855570160024516, + "calibration_in_the_large": -0.000901107483590559, + "expected_calibration_error_10bin": 0.0013222981336357977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7016402714932126, + "auprc": 0.011349553406379153, + "brier": 0.004801917138987645, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.0042122902442627355, + "calibration_in_the_large": -0.0005443873993523397, + "expected_calibration_error_10bin": 0.0009845386620195072, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7012160633484162, + "auprc": 0.011354933667369919, + "brier": 0.004805185455135463, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.00427780567008203, + "calibration_in_the_large": -0.0004788719735330455, + "expected_calibration_error_10bin": 0.0010011740848282632, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + } + ], + "reason": null + }, + "M19": { + "time_averaged_auroc": 0.68072994430612, + "time_averaged_auprc": 0.024957261586947367, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2674, + "positives": 8, + "negatives": 2666, + "auroc": 0.67634096024006, + "auprc": 0.008860938720514473, + "brier": 0.002980139073240843, + "calibration": { + "observed_rate": 0.0029917726252804786, + "mean_prediction": 0.0019728312950894624, + "calibration_in_the_large": -0.0010189413301910162, + "expected_calibration_error_10bin": 0.0010189413301910162, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 15, + "negatives": 2659, + "auroc": 0.6786511219756801, + "auprc": 0.016814564488785454, + "brier": 0.0055670757683181455, + "calibration": { + "observed_rate": 0.005609573672400898, + "mean_prediction": 0.0036540605538493524, + "calibration_in_the_large": -0.001955513118551545, + "expected_calibration_error_10bin": 0.001955513118551545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 17, + "negatives": 2657, + "auroc": 0.6729172662666874, + "auprc": 0.015348259257170123, + "brier": 0.00631646299590488, + "calibration": { + "observed_rate": 0.006357516828721017, + "mean_prediction": 0.0043586409566645015, + "calibration_in_the_large": -0.0019988758720565153, + "expected_calibration_error_10bin": 0.0019988758720565153, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 24, + "negatives": 2650, + "auroc": 0.6521383647798742, + "auprc": 0.0207232075555449, + "brier": 0.008888474953786984, + "calibration": { + "observed_rate": 0.008975317875841436, + "mean_prediction": 0.00555348301024727, + "calibration_in_the_large": -0.003421834865594166, + "expected_calibration_error_10bin": 0.003502269890412368, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 25, + "negatives": 2649, + "auroc": 0.6683276708191771, + "auprc": 0.02291736256429162, + "brier": 0.009246625759227684, + "calibration": { + "observed_rate": 0.009349289454001496, + "mean_prediction": 0.0064402271417433165, + "calibration_in_the_large": -0.00290906231225818, + "expected_calibration_error_10bin": 0.003003424768127668, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 27, + "negatives": 2647, + "auroc": 0.6844086247184094, + "auprc": 0.026284826692769745, + "brier": 0.00997941932178817, + "calibration": { + "observed_rate": 0.010097232610321616, + "mean_prediction": 0.007455725400608069, + "calibration_in_the_large": -0.0026415072097135464, + "expected_calibration_error_10bin": 0.002928478062894956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 30, + "negatives": 2644, + "auroc": 0.6927634896621281, + "auprc": 0.03021716220881654, + "brier": 0.011074414516080858, + "calibration": { + "observed_rate": 0.011219147344801795, + "mean_prediction": 0.008433322939455154, + "calibration_in_the_large": -0.002785824405346641, + "expected_calibration_error_10bin": 0.003797403608791802, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 32, + "negatives": 2642, + "auroc": 0.6854064155942468, + "auprc": 0.029536841657990077, + "brier": 0.011830776099038837, + "calibration": { + "observed_rate": 0.011967090501121914, + "mean_prediction": 0.009075076658958932, + "calibration_in_the_large": -0.0028920138421629823, + "expected_calibration_error_10bin": 0.004250336262431231, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 33, + "negatives": 2641, + "auroc": 0.6837630374169564, + "auprc": 0.029666094975655366, + "brier": 0.012233523808097306, + "calibration": { + "observed_rate": 0.012341062079281975, + "mean_prediction": 0.01019981881844048, + "calibration_in_the_large": -0.0021412432608414952, + "expected_calibration_error_10bin": 0.003203224951021108, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 34, + "negatives": 2640, + "auroc": 0.6860294117647059, + "auprc": 0.02986419290377548, + "brier": 0.012619673997691457, + "calibration": { + "observed_rate": 0.012715033657442034, + "mean_prediction": 0.010683497674052586, + "calibration_in_the_large": -0.0020315359833894472, + "expected_calibration_error_10bin": 0.003344879036834858, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 35, + "negatives": 2639, + "auroc": 0.6910409787257078, + "auprc": 0.030519057757657862, + "brier": 0.012998699186841014, + "calibration": { + "observed_rate": 0.013089005235602094, + "mean_prediction": 0.011091246356571136, + "calibration_in_the_large": -0.001997758879030958, + "expected_calibration_error_10bin": 0.0036774919736864537, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6888150949584396, + "auprc": 0.03173507509084578, + "brier": 0.013761473283563022, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.01176606703664134, + "calibration_in_the_large": -0.0020708813552808725, + "expected_calibration_error_10bin": 0.00450669220253475, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6888868390574875, + "auprc": 0.031956816756498384, + "brier": 0.013768669347076616, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.01185288339508242, + "calibration_in_the_large": -0.0019840649968397937, + "expected_calibration_error_10bin": 0.00447881009264844, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + } + ], + "reason": null + }, + "M21": { + "time_averaged_auroc": 0.943232668171052, + "time_averaged_auprc": 0.04824799867807739, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9929078014184397, + "auprc": 0.047619047619047616, + "brier": 0.00035291061741271346, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.00018110278439368598, + "calibration_in_the_large": -0.0001733814410582814, + "expected_calibration_error_10bin": 0.0001733814410582814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9939716312056738, + "auprc": 0.05555555555555555, + "brier": 0.000351852025533896, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.00037868451129765483, + "calibration_in_the_large": 2.4200285845687444e-05, + "expected_calibration_error_10bin": 2.4200285845687444e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003498457320956387, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0006819687476482634, + "calibration_in_the_large": 0.00032748452219629604, + "expected_calibration_error_10bin": 0.00032748452219629604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003491483134550734, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0008599270328361682, + "calibration_in_the_large": 0.0005054428073842008, + "expected_calibration_error_10bin": 0.0005054428073842008, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9943262411347518, + "auprc": 0.058823529411764705, + "brier": 0.0003492168280282407, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0009995300705878023, + "calibration_in_the_large": 0.0006450458451358349, + "expected_calibration_error_10bin": 0.0006450458451358349, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003486696925266113, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.001120582440998839, + "calibration_in_the_large": 0.0007660982155468716, + "expected_calibration_error_10bin": 0.0007660982155468716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003489717268797388, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0012641479473060274, + "calibration_in_the_large": 0.00090966372185406, + "expected_calibration_error_10bin": 0.00090966372185406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9950354609929078, + "auprc": 0.06666666666666667, + "brier": 0.00034912045056760473, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0014282528893140515, + "calibration_in_the_large": 0.0010737686638620841, + "expected_calibration_error_10bin": 0.0010737686638620841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.8515431003902093, + "auprc": 0.036924939467312345, + "brier": 0.000702554269480869, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.001535952115170628, + "calibration_in_the_large": 0.0008269836642666932, + "expected_calibration_error_10bin": 0.0008269836642666932, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.852962043277758, + "auprc": 0.034557323541411666, + "brier": 0.0007030912922790302, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.0016268054770447414, + "calibration_in_the_large": 0.0009178370261408067, + "expected_calibration_error_10bin": 0.0009178370261408067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8692926425360776, + "auprc": 0.025677830940988838, + "brier": 0.0010561241571962181, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.001752442851709332, + "calibration_in_the_large": 0.0006889901753534299, + "expected_calibration_error_10bin": 0.0006889901753534299, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8665720369056068, + "auprc": 0.02569570146088165, + "brier": 0.0010565636041150984, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0018725541089162315, + "calibration_in_the_large": 0.0008091014325603294, + "expected_calibration_error_10bin": 0.0008091014325603294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8666903241069316, + "auprc": 0.025703388151377054, + "brier": 0.00105659326267028, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0018803300396715542, + "calibration_in_the_large": 0.000816877363315652, + "expected_calibration_error_10bin": 0.000816877363315652, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + } + ], + "reason": null + }, + "M25": { + "time_averaged_auroc": 0.6825458200826667, + "time_averaged_auprc": 0.03727090191836884, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2717, + "positives": 5, + "negatives": 2712, + "auroc": 0.8372418879056047, + "auprc": 0.06308295064810625, + "brier": 0.001818110438175396, + "calibration": { + "observed_rate": 0.001840264998159735, + "mean_prediction": 0.002165757425829954, + "calibration_in_the_large": 0.00032549242767021904, + "expected_calibration_error_10bin": 0.00032549242767021904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 8, + "negatives": 2709, + "auroc": 0.720514950166113, + "auprc": 0.051244123218534755, + "brier": 0.0029122797274782177, + "calibration": { + "observed_rate": 0.002944423997055576, + "mean_prediction": 0.0034867211853399764, + "calibration_in_the_large": 0.0005422971882844004, + "expected_calibration_error_10bin": 0.0005422971882844004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 13, + "negatives": 2704, + "auroc": 0.7222917614929449, + "auprc": 0.037985785025270634, + "brier": 0.004734130459793919, + "calibration": { + "observed_rate": 0.004784688995215311, + "mean_prediction": 0.004562709758739061, + "calibration_in_the_large": -0.0002219792364762498, + "expected_calibration_error_10bin": 0.0002219792364762498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 20, + "negatives": 2697, + "auroc": 0.6925472747497219, + "auprc": 0.02836286793202908, + "brier": 0.0072855588274300795, + "calibration": { + "observed_rate": 0.00736105999263894, + "mean_prediction": 0.005783822241901589, + "calibration_in_the_large": -0.0015772377507373512, + "expected_calibration_error_10bin": 0.001655101232012904, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 22, + "negatives": 2695, + "auroc": 0.6841457244054646, + "auprc": 0.03883485377071071, + "brier": 0.008021174709205632, + "calibration": { + "observed_rate": 0.008097165991902834, + "mean_prediction": 0.006743767206377202, + "calibration_in_the_large": -0.001353398785525632, + "expected_calibration_error_10bin": 0.0013533987855256326, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 26, + "negatives": 2691, + "auroc": 0.6736414830060315, + "auprc": 0.03623798650246471, + "brier": 0.009495526276283856, + "calibration": { + "observed_rate": 0.009569377990430622, + "mean_prediction": 0.007636642006714362, + "calibration_in_the_large": -0.00193273598371626, + "expected_calibration_error_10bin": 0.002214723161458372, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 28, + "negatives": 2689, + "auroc": 0.6642272751421133, + "auprc": 0.03647111911592776, + "brier": 0.010227096464533661, + "calibration": { + "observed_rate": 0.010305483989694516, + "mean_prediction": 0.008561066296319982, + "calibration_in_the_large": -0.0017444176933745347, + "expected_calibration_error_10bin": 0.0022093062811605205, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 31, + "negatives": 2686, + "auroc": 0.6567386448250186, + "auprc": 0.03082996105142817, + "brier": 0.011337226419666566, + "calibration": { + "observed_rate": 0.011409642988590356, + "mean_prediction": 0.009416746033328514, + "calibration_in_the_large": -0.001992896955261843, + "expected_calibration_error_10bin": 0.003348907828613785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 34, + "negatives": 2683, + "auroc": 0.6532196180745873, + "auprc": 0.03052873823192369, + "brier": 0.012434018538799623, + "calibration": { + "observed_rate": 0.012513801987486198, + "mean_prediction": 0.010237991016848608, + "calibration_in_the_large": -0.0022758109706375908, + "expected_calibration_error_10bin": 0.0039467944010703904, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 37, + "negatives": 2680, + "auroc": 0.6520169423154498, + "auprc": 0.03123309028788984, + "brier": 0.013547376801956001, + "calibration": { + "observed_rate": 0.013617960986382039, + "mean_prediction": 0.01133134508712029, + "calibration_in_the_large": -0.002286615899261749, + "expected_calibration_error_10bin": 0.005049746583172959, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 41, + "negatives": 2676, + "auroc": 0.6443545152940319, + "auprc": 0.03209808886956696, + "brier": 0.01501434543634209, + "calibration": { + "observed_rate": 0.015090172984909826, + "mean_prediction": 0.01201182738858766, + "calibration_in_the_large": -0.0030783455963221667, + "expected_calibration_error_10bin": 0.005961899825209068, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 48, + "negatives": 2669, + "auroc": 0.6333754839515424, + "auprc": 0.03338794943750112, + "brier": 0.017577167908504485, + "calibration": { + "observed_rate": 0.017666543982333457, + "mean_prediction": 0.012912157878641872, + "calibration_in_the_large": -0.004754386103691586, + "expected_calibration_error_10bin": 0.008343712788816762, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + { + "valid": 2717, + "positives": 49, + "negatives": 2668, + "auroc": 0.6387800997460453, + "auprc": 0.034224210847441254, + "brier": 0.017936866364192783, + "calibration": { + "observed_rate": 0.0180345969819654, + "mean_prediction": 0.013078971339912973, + "calibration_in_the_large": -0.0049556256420524285, + "expected_calibration_error_10bin": 0.008605174610550778, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + } + ], + "reason": null + }, + "M35": { + "time_averaged_auroc": 0.9564013417982539, + "time_averaged_auprc": 0.010182310457881372, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9550802139037433, + "auprc": 0.007874015748031496, + "brier": 0.0003560155739356127, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.00017167304002611722, + "calibration_in_the_large": -0.0001847061474293354, + "expected_calibration_error_10bin": 0.0001847061474293354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9679144385026738, + "auprc": 0.01098901098901099, + "brier": 0.0003555970283851623, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0003630425484806522, + "calibration_in_the_large": 6.663361025199604e-06, + "expected_calibration_error_10bin": 6.663361025199604e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9625668449197861, + "auprc": 0.009433962264150943, + "brier": 0.0003558282499341572, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.00046179089788338766, + "calibration_in_the_large": 0.00010541171042793504, + "expected_calibration_error_10bin": 0.00010541171042793504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9650623885918004, + "auprc": 0.010101010101010102, + "brier": 0.00035619792161454167, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0006254758661994264, + "calibration_in_the_large": 0.0002690966787439738, + "expected_calibration_error_10bin": 0.0002690966787439738, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9679144385026738, + "auprc": 0.01098901098901099, + "brier": 0.0003566411997556702, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0008183251413899701, + "calibration_in_the_large": 0.0004619459539345175, + "expected_calibration_error_10bin": 0.0004619459539345175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9711229946524064, + "auprc": 0.012195121951219513, + "brier": 0.00035735981995064315, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0009456093792692713, + "calibration_in_the_large": 0.0005892301918138187, + "expected_calibration_error_10bin": 0.0005892301918138187, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9686274509803922, + "auprc": 0.011235955056179775, + "brier": 0.00035801785509282833, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.001022646062635868, + "calibration_in_the_large": 0.0006662668751804153, + "expected_calibration_error_10bin": 0.0006662668751804153, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9463266761768901, + "auprc": 0.010081053698074976, + "brier": 0.0007127336669737857, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0011488961274024065, + "calibration_in_the_large": 0.00043613775249150125, + "expected_calibration_error_10bin": 0.00043613775249150125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9466833095577746, + "auprc": 0.010126841243862521, + "brier": 0.0007130506088673725, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0011985356200958208, + "calibration_in_the_large": 0.0004857772451849155, + "expected_calibration_error_10bin": 0.0004857772451849155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9461483594864479, + "auprc": 0.010025062656641603, + "brier": 0.0007139663705518598, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0012972041882154256, + "calibration_in_the_large": 0.0005844458133045204, + "expected_calibration_error_10bin": 0.0005844458133045204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9459700427960057, + "auprc": 0.009939328170473043, + "brier": 0.0007145680650219309, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0013496902826181118, + "calibration_in_the_large": 0.0006369319077072066, + "expected_calibration_error_10bin": 0.0006369319077072066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9449001426533523, + "auprc": 0.009689831542395947, + "brier": 0.000715875281835015, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0014706703249874951, + "calibration_in_the_large": 0.0007579119500765899, + "expected_calibration_error_10bin": 0.0007579119500765899, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9449001426533523, + "auprc": 0.009689831542395947, + "brier": 0.0007159218236902276, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0014753455490522606, + "calibration_in_the_large": 0.0007625871741413553, + "expected_calibration_error_10bin": 0.0007625871741413553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "M46": { + "time_averaged_auroc": 0.6588271363445201, + "time_averaged_auprc": 0.0031172241548913095, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 3.888097392055118e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00033361792716520917, + "calibration_in_the_large": 0.00033361792716520917, + "expected_calibration_error_10bin": 0.00033361792716520917, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.36473515819409885, + "auprc": 0.0005592841163310962, + "brier": 0.00035680553930114023, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0007037024196183818, + "calibration_in_the_large": 0.0003483363926105637, + "expected_calibration_error_10bin": 0.0003483363926105637, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.5263157894736842, + "auprc": 0.0011140869694602536, + "brier": 0.000712721985695798, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0009698748888224356, + "calibration_in_the_large": 0.0002591428348067995, + "expected_calibration_error_10bin": 0.0002591428348067995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.6412901695719199, + "auprc": 0.001895453713620478, + "brier": 0.0010687531295272433, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001253425623715402, + "calibration_in_the_large": 0.00018732754269194796, + "expected_calibration_error_10bin": 0.00018732754269194796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.6511324558282936, + "auprc": 0.0019481058044002709, + "brier": 0.0010707607340713773, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001502100668491154, + "calibration_in_the_large": 0.0004360025874676999, + "expected_calibration_error_10bin": 0.0004360025874676999, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7141459074733096, + "auprc": 0.00323251968282839, + "brier": 0.0014241203200119176, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0016339497828238058, + "calibration_in_the_large": 0.0002124856747925336, + "expected_calibration_error_10bin": 0.0002124856747925336, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7290035587188612, + "auprc": 0.0033948792950564514, + "brier": 0.0014251326938289769, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0018077395413321443, + "calibration_in_the_large": 0.0003862754333008721, + "expected_calibration_error_10bin": 0.0003862754333008721, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7269572953736655, + "auprc": 0.0033306296297359395, + "brier": 0.0014264480849709277, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.001959399698024965, + "calibration_in_the_large": 0.000537935589993693, + "expected_calibration_error_10bin": 0.000537935589993693, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7306939501779359, + "auprc": 0.003356664967450659, + "brier": 0.0014273376384396701, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.002045152112310596, + "calibration_in_the_large": 0.0006236880042793237, + "expected_calibration_error_10bin": 0.0006236880042793237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7320284697508896, + "auprc": 0.003359772814158137, + "brier": 0.0014276785559659507, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.002083859523170535, + "calibration_in_the_large": 0.0006623954151392629, + "expected_calibration_error_10bin": 0.0006623954151392629, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6983052572650008, + "auprc": 0.005118019059371377, + "brier": 0.002488235207628899, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.002231504150378764, + "calibration_in_the_large": -0.00025605803867596215, + "expected_calibration_error_10bin": 0.00025605803867596215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6957097053285154, + "auprc": 0.005050891317334335, + "brier": 0.002488902017982175, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.0023274427333602643, + "calibration_in_the_large": -0.000160119455694462, + "expected_calibration_error_10bin": 0.000160119455694462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6956079189780651, + "auprc": 0.005046382488948321, + "brier": 0.0024889709423960176, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.002335801730767792, + "calibration_in_the_large": -0.00015176045828693436, + "expected_calibration_error_10bin": 0.00015176045828693436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + } + ], + "reason": null + }, + "M47": { + "time_averaged_auroc": 0.6993991481499163, + "time_averaged_auprc": 0.017100462163931882, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2743, + "positives": 1, + "negatives": 2742, + "auroc": 0.1462436177972283, + "auprc": 0.0004269854824935952, + "brier": 0.00036494967052743565, + "calibration": { + "observed_rate": 0.0003645643456069996, + "mean_prediction": 0.0004339788355088885, + "calibration_in_the_large": 6.941448990188887e-05, + "expected_calibration_error_10bin": 6.941448990188887e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 2, + "negatives": 2741, + "auroc": 0.5534476468442174, + "auprc": 0.007269836515086926, + "brier": 0.0007282343962055156, + "calibration": { + "observed_rate": 0.0007291286912139992, + "mean_prediction": 0.0008785934380911078, + "calibration_in_the_large": 0.00014946474687710853, + "expected_calibration_error_10bin": 0.00014946474687710853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.6920924574209246, + "auprc": 0.013302902120210375, + "brier": 0.0010896953395042675, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.0010687578816470664, + "calibration_in_the_large": -2.4935155173932532e-05, + "expected_calibration_error_10bin": 2.4935155173932532e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.6907542579075425, + "auprc": 0.012684448168319137, + "brier": 0.001089928908609934, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.0014465790106718529, + "calibration_in_the_large": 0.00035288597385085396, + "expected_calibration_error_10bin": 0.00035288597385085396, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.7630522088353414, + "auprc": 0.020431432269358382, + "brier": 0.0014485314514977386, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0015766628683054865, + "calibration_in_the_large": 0.00011840548587748801, + "expected_calibration_error_10bin": 0.00011840548587748801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.7717311906501095, + "auprc": 0.019204552282634506, + "brier": 0.0018107954733380953, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0018265715080084978, + "calibration_in_the_large": 3.7497799734995726e-06, + "expected_calibration_error_10bin": 3.7497799734995726e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 7, + "negatives": 2736, + "auroc": 0.8068609022556391, + "auprc": 0.023471933010737273, + "brier": 0.0025294543364502734, + "calibration": { + "observed_rate": 0.0025519504192489974, + "mean_prediction": 0.0021183245684030603, + "calibration_in_the_large": -0.0004336258508459371, + "expected_calibration_error_10bin": 0.0004336258508459371, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 9, + "negatives": 2734, + "auroc": 0.8158579208323173, + "auprc": 0.02293284262188598, + "brier": 0.003250786768702116, + "calibration": { + "observed_rate": 0.0032810791104629965, + "mean_prediction": 0.002363226758127125, + "calibration_in_the_large": -0.0009178523523358717, + "expected_calibration_error_10bin": 0.0009178523523358717, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.8008781558726674, + "auprc": 0.021184949021062976, + "brier": 0.0036136713673500668, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.0024890016452036217, + "calibration_in_the_large": -0.0011566418108663748, + "expected_calibration_error_10bin": 0.0011566418108663748, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.801536772777168, + "auprc": 0.021146309174827273, + "brier": 0.003613702077987353, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.0026747317503454495, + "calibration_in_the_large": -0.000970911705724547, + "expected_calibration_error_10bin": 0.000970911705724547, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.7495341408225742, + "auprc": 0.019321320234943304, + "brier": 0.0039774766863508474, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.002913439287908949, + "calibration_in_the_large": -0.0010967685137680465, + "expected_calibration_error_10bin": 0.0010967685137680465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.7501331026221216, + "auprc": 0.020465717564351747, + "brier": 0.003977033785564456, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.003137896486487759, + "calibration_in_the_large": -0.0008723113151892364, + "expected_calibration_error_10bin": 0.0008723113151892364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.7500665513110608, + "auprc": 0.020462779665202994, + "brier": 0.003977139623934425, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.0031478094940337697, + "calibration_in_the_large": -0.0008623983076432259, + "expected_calibration_error_10bin": 0.0008623983076432259, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + } + ], + "reason": null + }, + "M48": { + "time_averaged_auroc": 0.7046540907323793, + "time_averaged_auprc": 0.03737015067910313, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2690, + "positives": 2, + "negatives": 2688, + "auroc": 0.7202380952380952, + "auprc": 0.2506644518272425, + "brier": 0.0007377355705442697, + "calibration": { + "observed_rate": 0.0007434944237918215, + "mean_prediction": 0.0011591295445876036, + "calibration_in_the_large": 0.00041563512079578204, + "expected_calibration_error_10bin": 0.00041563512079578204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 3, + "negatives": 2687, + "auroc": 0.8069718397221188, + "auprc": 0.04697151574261635, + "brier": 0.0011057371105736191, + "calibration": { + "observed_rate": 0.0011152416356877324, + "mean_prediction": 0.0019412029852137358, + "calibration_in_the_large": 0.0008259613495260035, + "expected_calibration_error_10bin": 0.0008259613495260035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 4, + "negatives": 2686, + "auroc": 0.6521779597915115, + "auprc": 0.023250935910390708, + "brier": 0.0014833735030268965, + "calibration": { + "observed_rate": 0.001486988847583643, + "mean_prediction": 0.0028824697508438727, + "calibration_in_the_large": 0.0013954809032602296, + "expected_calibration_error_10bin": 0.0013954809032602296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 5, + "negatives": 2685, + "auroc": 0.6108007448789572, + "auprc": 0.01822578332584724, + "brier": 0.0018598390149887384, + "calibration": { + "observed_rate": 0.0018587360594795538, + "mean_prediction": 0.003426816904901455, + "calibration_in_the_large": 0.0015680808454219012, + "expected_calibration_error_10bin": 0.0015680808454219012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 7, + "negatives": 2683, + "auroc": 0.6903785740908365, + "auprc": 0.018072385269453674, + "brier": 0.0025919417151316687, + "calibration": { + "observed_rate": 0.0026022304832713753, + "mean_prediction": 0.003927363557428775, + "calibration_in_the_large": 0.0013251330741573994, + "expected_calibration_error_10bin": 0.0013251330741573994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 8, + "negatives": 2682, + "auroc": 0.671607009694258, + "auprc": 0.01641660432212916, + "brier": 0.0029681513337751608, + "calibration": { + "observed_rate": 0.002973977695167286, + "mean_prediction": 0.004417328256287711, + "calibration_in_the_large": 0.0014433505611204252, + "expected_calibration_error_10bin": 0.0014433505611204252, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7145522388059702, + "auprc": 0.016669094452675864, + "brier": 0.003702661808036115, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.004867082195749417, + "calibration_in_the_large": 0.001149610076790309, + "expected_calibration_error_10bin": 0.001149610076790309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7148880597014925, + "auprc": 0.01602317630299655, + "brier": 0.003710062189852368, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.005301800765734991, + "calibration_in_the_large": 0.0015843286467758831, + "expected_calibration_error_10bin": 0.0015843286467758831, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7123880597014925, + "auprc": 0.01610858179811855, + "brier": 0.0037176902838570473, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.005733918918289094, + "calibration_in_the_large": 0.0020164467993299866, + "expected_calibration_error_10bin": 0.0020164467993299866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7141417910447762, + "auprc": 0.01612764797639541, + "brier": 0.0037259655680166085, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006150913952556495, + "calibration_in_the_large": 0.002433441833597387, + "expected_calibration_error_10bin": 0.002433441833597387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7125746268656716, + "auprc": 0.01599593765643209, + "brier": 0.0037364023551742288, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006599323747994676, + "calibration_in_the_large": 0.002881851629035568, + "expected_calibration_error_10bin": 0.002881851629035568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7199090569751264, + "auprc": 0.015645580982274247, + "brier": 0.004113645759888968, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.007057765780735883, + "calibration_in_the_large": 0.002968546449880864, + "expected_calibration_error_10bin": 0.002968546449880864, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7198751230106213, + "auprc": 0.015640263261768317, + "brier": 0.004115305121666328, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.00711937463130979, + "calibration_in_the_large": 0.003030155300454772, + "expected_calibration_error_10bin": 0.0030301553004547723, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + } + ], + "reason": null + }, + "M51": { + "time_averaged_auroc": 0.7364686015323234, + "time_averaged_auprc": 0.02964967756532383, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 4.169874489925243e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004546684559488706, + "calibration_in_the_large": 0.0004546684559488706, + "expected_calibration_error_10bin": 0.0004546684559488706, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 1.412382039269019e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008411977784627872, + "calibration_in_the_large": 0.0008411977784627872, + "expected_calibration_error_10bin": 0.0008411977784627872, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7137212643678161, + "auprc": 0.0012531328320802004, + "brier": 0.00036018264836643656, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0010273191152796563, + "calibration_in_the_large": 0.0006682526879906079, + "expected_calibration_error_10bin": 0.0006682526879906079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7410201149425287, + "auprc": 0.0013850415512465374, + "brier": 0.00036099176384720507, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0012940964620991792, + "calibration_in_the_large": 0.0009350300348101308, + "expected_calibration_error_10bin": 0.0009350300348101308, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7848419540229885, + "auprc": 0.0016666666666666668, + "brier": 0.00036118724665940347, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0013822903030177094, + "calibration_in_the_large": 0.001023223875728661, + "expected_calibration_error_10bin": 0.001023223875728661, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.6489399928135106, + "auprc": 0.0016033465568100905, + "brier": 0.0007200680112635828, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0015574825898165172, + "calibration_in_the_large": 0.0008393497352384203, + "expected_calibration_error_10bin": 0.0008393497352384203, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.6656485806683435, + "auprc": 0.0017576955323990897, + "brier": 0.0007206690120025869, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0017106668376719381, + "calibration_in_the_large": 0.000992533983093841, + "expected_calibration_error_10bin": 0.000992533983093841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7711478552600048, + "auprc": 0.005247342713111173, + "brier": 0.0010762568888139476, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0018625181420755643, + "calibration_in_the_large": 0.000785318860208419, + "expected_calibration_error_10bin": 0.000785318860208419, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7562904385334291, + "auprc": 0.005090800168754996, + "brier": 0.0010771046397957977, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.00208931767236509, + "calibration_in_the_large": 0.0010121183904979447, + "expected_calibration_error_10bin": 0.0010121183904979447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.8165228335131248, + "auprc": 0.09021881700630459, + "brier": 0.001425543351817164, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002246257825220316, + "calibration_in_the_large": 0.0008099921160641219, + "expected_calibration_error_10bin": 0.0008099921160641219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7340287769784173, + "auprc": 0.07269303571876432, + "brier": 0.0017834073051012915, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0023777450620015134, + "calibration_in_the_large": 0.000582412925556271, + "expected_calibration_error_10bin": 0.000582412925556271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7344604316546762, + "auprc": 0.07261405040842812, + "brier": 0.0017833783160477565, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0025260251283799142, + "calibration_in_the_large": 0.0007306929919346718, + "expected_calibration_error_10bin": 0.0007306929919346718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7345323741007195, + "auprc": 0.07261652406399632, + "brier": 0.0017833576758054244, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0025345730316949358, + "calibration_in_the_large": 0.0007392408952496933, + "expected_calibration_error_10bin": 0.0007392408952496933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + } + ], + "reason": null + }, + "M54": { + "time_averaged_auroc": 0.6994098829669096, + "time_averaged_auprc": 0.044956168209880035, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2567, + "positives": 10, + "negatives": 2557, + "auroc": 0.6442315213140399, + "auprc": 0.008921483679037574, + "brier": 0.003886614985398804, + "calibration": { + "observed_rate": 0.0038955979742890533, + "mean_prediction": 0.004429868380725965, + "calibration_in_the_large": 0.0005342704064369114, + "expected_calibration_error_10bin": 0.0005342704064369114, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 13, + "negatives": 2554, + "auroc": 0.6883019095235227, + "auprc": 0.014509709352899745, + "brier": 0.005062823860124473, + "calibration": { + "observed_rate": 0.00506427736657577, + "mean_prediction": 0.006928156907111932, + "calibration_in_the_large": 0.0018638795405361624, + "expected_calibration_error_10bin": 0.0018638795405361624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 22, + "negatives": 2545, + "auroc": 0.6846936953027326, + "auprc": 0.037115033337026475, + "brier": 0.008463308416630944, + "calibration": { + "observed_rate": 0.008570315543435918, + "mean_prediction": 0.009033353552319982, + "calibration_in_the_large": 0.0004630380088840643, + "expected_calibration_error_10bin": 0.0009736915325825669, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 27, + "negatives": 2540, + "auroc": 0.6879848352289297, + "auprc": 0.036466093662927405, + "brier": 0.01038430355528494, + "calibration": { + "observed_rate": 0.010518114530580444, + "mean_prediction": 0.010614916189507674, + "calibration_in_the_large": 9.680165892722928e-05, + "expected_calibration_error_10bin": 0.0003628399830154082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 29, + "negatives": 2538, + "auroc": 0.7062172223580881, + "auprc": 0.041393612713414615, + "brier": 0.011119201688228272, + "calibration": { + "observed_rate": 0.011297234125438255, + "mean_prediction": 0.012097192112607486, + "calibration_in_the_large": 0.0007999579871692305, + "expected_calibration_error_10bin": 0.0007999579871692316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 32, + "negatives": 2535, + "auroc": 0.7044748520710059, + "auprc": 0.048311464410432686, + "brier": 0.012211790254092867, + "calibration": { + "observed_rate": 0.012465913517724971, + "mean_prediction": 0.013554685829520402, + "calibration_in_the_large": 0.0010887723117954315, + "expected_calibration_error_10bin": 0.001088772311795431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 35, + "negatives": 2532, + "auroc": 0.7073685398329949, + "auprc": 0.04952558904369427, + "brier": 0.013354239949693638, + "calibration": { + "observed_rate": 0.013634592910011687, + "mean_prediction": 0.014658147682617485, + "calibration_in_the_large": 0.0010235547726057982, + "expected_calibration_error_10bin": 0.0012829027901427009, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 39, + "negatives": 2528, + "auroc": 0.7127961700746511, + "auprc": 0.05099119679815088, + "brier": 0.014861852085886921, + "calibration": { + "observed_rate": 0.015192832099727308, + "mean_prediction": 0.015708316882523877, + "calibration_in_the_large": 0.000515484782796569, + "expected_calibration_error_10bin": 0.0018553798345032247, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 40, + "negatives": 2527, + "auroc": 0.7189750692520775, + "auprc": 0.05824125955043634, + "brier": 0.015160941211454055, + "calibration": { + "observed_rate": 0.015582391897156213, + "mean_prediction": 0.016836216019138723, + "calibration_in_the_large": 0.0012538241219825098, + "expected_calibration_error_10bin": 0.0012538241219825115, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 43, + "negatives": 2524, + "auroc": 0.7211513654958907, + "auprc": 0.05906864584862819, + "brier": 0.016318710215339267, + "calibration": { + "observed_rate": 0.01675107128944293, + "mean_prediction": 0.01834071564189161, + "calibration_in_the_large": 0.001589644352448679, + "expected_calibration_error_10bin": 0.0015896443524486788, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 46, + "negatives": 2521, + "auroc": 0.7016280633978925, + "auprc": 0.05888091063766967, + "brier": 0.01747238322749693, + "calibration": { + "observed_rate": 0.017919750681729647, + "mean_prediction": 0.019464518202037557, + "calibration_in_the_large": 0.0015447675203079103, + "expected_calibration_error_10bin": 0.0015447675203079133, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.7072357311719014, + "auprc": 0.06048799002781246, + "brier": 0.017827484995724542, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.02016296346378823, + "calibration_in_the_large": 0.0018536529846296772, + "expected_calibration_error_10bin": 0.0018536529846296776, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.7072695035460993, + "auprc": 0.060517197666310224, + "brier": 0.017833332141571352, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.020391432610289622, + "calibration_in_the_large": 0.00208212213113107, + "expected_calibration_error_10bin": 0.002082122131131073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + } + ], + "reason": null + }, + "M62": { + "time_averaged_auroc": 0.6959982782300312, + "time_averaged_auprc": 0.023906074874723005, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2781, + "positives": 0, + "negatives": 2781, + "auroc": null, + "auprc": null, + "brier": 1.0109290897441933e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007437705262045779, + "calibration_in_the_large": 0.0007437705262045779, + "expected_calibration_error_10bin": 0.0007437705262045779, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 2, + "negatives": 2779, + "auroc": 0.5158330334652753, + "auprc": 0.001572915172890303, + "brier": 0.0007207313968022821, + "calibration": { + "observed_rate": 0.000719165767709457, + "mean_prediction": 0.001327826089257168, + "calibration_in_the_large": 0.0006086603215477109, + "expected_calibration_error_10bin": 0.0006086603215477109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7547550432276657, + "auprc": 0.045005217620473444, + "brier": 0.0017870244323419753, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0017263666814195766, + "calibration_in_the_large": -7.154773785406597e-05, + "expected_calibration_error_10bin": 7.154773785406597e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7602305475504323, + "auprc": 0.04512038973096468, + "brier": 0.0017865333792105422, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.002000077912745614, + "calibration_in_the_large": 0.00020216349347197161, + "expected_calibration_error_10bin": 0.00020216349347197161, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 6, + "negatives": 2775, + "auroc": 0.7906906906906906, + "auprc": 0.03134192756346361, + "brier": 0.002141924482134548, + "calibration": { + "observed_rate": 0.002157497303128371, + "mean_prediction": 0.00227960967801652, + "calibration_in_the_large": 0.0001221123748881489, + "expected_calibration_error_10bin": 0.0001221123748881489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7995674116798847, + "auprc": 0.029176513468283035, + "brier": 0.002497237735654932, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.002603227673942885, + "calibration_in_the_large": 8.614748695978539e-05, + "expected_calibration_error_10bin": 8.614748695978539e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 8, + "negatives": 2773, + "auroc": 0.7168229354489722, + "auprc": 0.026121711889759515, + "brier": 0.0028563388747443862, + "calibration": { + "observed_rate": 0.002876663070837828, + "mean_prediction": 0.0029615708962309225, + "calibration_in_the_large": 8.490782539309454e-05, + "expected_calibration_error_10bin": 8.490782539309454e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 9, + "negatives": 2772, + "auroc": 0.6868686868686869, + "auprc": 0.02025387425076935, + "brier": 0.0032152367712019294, + "calibration": { + "observed_rate": 0.003236245954692557, + "mean_prediction": 0.003173368628868878, + "calibration_in_the_large": -6.287732582367861e-05, + "expected_calibration_error_10bin": 6.287732582367861e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6476001443522195, + "auprc": 0.017791432516375685, + "brier": 0.0035745400177590847, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.0034739260400387635, + "calibration_in_the_large": -0.00012190279850852158, + "expected_calibration_error_10bin": 0.00012190279850852158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6470588235294118, + "auprc": 0.01752521914699107, + "brier": 0.0035759543787036224, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.0037430848390056443, + "calibration_in_the_large": 0.00014725600045835917, + "expected_calibration_error_10bin": 0.00014725600045835917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.6731211027239908, + "auprc": 0.018024468242942744, + "brier": 0.003927753179298759, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.00392808405551493, + "calibration_in_the_large": -2.7327666887083484e-05, + "expected_calibration_error_10bin": 2.7327666887083484e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 13, + "negatives": 2768, + "auroc": 0.6854157403290351, + "auprc": 0.017757036144801716, + "brier": 0.004639035468248344, + "calibration": { + "observed_rate": 0.004674577490111471, + "mean_prediction": 0.00421488384373539, + "calibration_in_the_large": -0.00045969364637608087, + "expected_calibration_error_10bin": 0.00045969364637608087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.6740151788941091, + "auprc": 0.017182192748960958, + "brier": 0.004996776372183482, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.004231616097847722, + "calibration_in_the_large": -0.0008025442761184776, + "expected_calibration_error_10bin": 0.0008025442761184776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + } + ], + "reason": null + }, + "M79": { + "time_averaged_auroc": 0.7531983134371504, + "time_averaged_auprc": 0.046537366543377146, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2697, + "positives": 7, + "negatives": 2690, + "auroc": 0.8471056824216675, + "auprc": 0.04378498407109808, + "brier": 0.0025693052758276455, + "calibration": { + "observed_rate": 0.0025954764553207266, + "mean_prediction": 0.00345833773843999, + "calibration_in_the_large": 0.0008628612831192632, + "expected_calibration_error_10bin": 0.0008628612831192632, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 15, + "negatives": 2682, + "auroc": 0.7474770072085508, + "auprc": 0.04243006222312668, + "brier": 0.00548023922511809, + "calibration": { + "observed_rate": 0.0055617352614015575, + "mean_prediction": 0.0058711532514567726, + "calibration_in_the_large": 0.0003094179900552151, + "expected_calibration_error_10bin": 0.0003094179900552151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.738768130183562, + "auprc": 0.0452634277206354, + "brier": 0.006924629789712204, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.007752983392137317, + "calibration_in_the_large": 0.0007081187276953447, + "expected_calibration_error_10bin": 0.0007081187276953443, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.7397507959592783, + "auprc": 0.044887872819656394, + "brier": 0.006938326369313404, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.008997347445371506, + "calibration_in_the_large": 0.0019524827809295339, + "expected_calibration_error_10bin": 0.002367798354172421, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 23, + "negatives": 2674, + "auroc": 0.7728203960846802, + "auprc": 0.050029751979468205, + "brier": 0.008346466507769155, + "calibration": { + "observed_rate": 0.008527994067482388, + "mean_prediction": 0.010410102748131282, + "calibration_in_the_large": 0.0018821086806488935, + "expected_calibration_error_10bin": 0.002467438436485723, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 24, + "negatives": 2673, + "auroc": 0.7758760443945629, + "auprc": 0.04462699470775972, + "brier": 0.008753710584542789, + "calibration": { + "observed_rate": 0.008898776418242492, + "mean_prediction": 0.012060266792788705, + "calibration_in_the_large": 0.003161490374546213, + "expected_calibration_error_10bin": 0.0031614903745462108, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 29, + "negatives": 2668, + "auroc": 0.7584914439332058, + "auprc": 0.04320390597311603, + "brier": 0.010630095230825354, + "calibration": { + "observed_rate": 0.010752688172043012, + "mean_prediction": 0.013376241886966182, + "calibration_in_the_large": 0.00262355371492317, + "expected_calibration_error_10bin": 0.002623553714923172, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 31, + "negatives": 2666, + "auroc": 0.7575442247658689, + "auprc": 0.045480319768392265, + "brier": 0.011368000754927192, + "calibration": { + "observed_rate": 0.011494252873563218, + "mean_prediction": 0.014665345507006593, + "calibration_in_the_large": 0.0031710926334433745, + "expected_calibration_error_10bin": 0.003329021814081564, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 33, + "negatives": 2664, + "auroc": 0.7386704886704887, + "auprc": 0.043088635601173174, + "brier": 0.012182299464806324, + "calibration": { + "observed_rate": 0.012235817575083427, + "mean_prediction": 0.01587870340417885, + "calibration_in_the_large": 0.0036428858290954245, + "expected_calibration_error_10bin": 0.0036428858290954258, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 39, + "negatives": 2658, + "auroc": 0.7360845825857113, + "auprc": 0.04952770961288153, + "brier": 0.014290610735497642, + "calibration": { + "observed_rate": 0.014460511679644048, + "mean_prediction": 0.01670628794734014, + "calibration_in_the_large": 0.0022457762676960924, + "expected_calibration_error_10bin": 0.002298194020542393, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 42, + "negatives": 2655, + "auroc": 0.7337727558066541, + "auprc": 0.05138994658595118, + "brier": 0.015393507075142247, + "calibration": { + "observed_rate": 0.01557285873192436, + "mean_prediction": 0.01760769231334877, + "calibration_in_the_large": 0.002034833581424412, + "expected_calibration_error_10bin": 0.002780882260571539, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7225337796393333, + "auprc": 0.05065512671108432, + "brier": 0.015841101200855388, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.018759868900165323, + "calibration_in_the_large": 0.0028162278174808583, + "expected_calibration_error_10bin": 0.0029862956170569883, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7226827430293896, + "auprc": 0.0506170272895599, + "brier": 0.015853730075407326, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.018934406176743655, + "calibration_in_the_large": 0.0029907650940591904, + "expected_calibration_error_10bin": 0.0029907650940591926, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + } + ], + "reason": null + }, + "M81": { + "time_averaged_auroc": 0.729943507246477, + "time_averaged_auprc": 0.015111283514379672, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2705, + "positives": 2, + "negatives": 2703, + "auroc": 0.5036995930447651, + "auprc": 0.0016701235848241294, + "brier": 0.0007411194187419496, + "calibration": { + "observed_rate": 0.0007393715341959334, + "mean_prediction": 0.0006275598411422994, + "calibration_in_the_large": -0.00011181169305363398, + "expected_calibration_error_10bin": 0.00011181169305363398, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 5, + "negatives": 2700, + "auroc": 0.7534074074074074, + "auprc": 0.008877650730903712, + "brier": 0.001847570515466588, + "calibration": { + "observed_rate": 0.0018484288354898336, + "mean_prediction": 0.0012518780477961452, + "calibration_in_the_large": -0.0005965507876936884, + "expected_calibration_error_10bin": 0.0005965507876936884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 6, + "negatives": 2699, + "auroc": 0.7899221934049648, + "auprc": 0.012164047107283622, + "brier": 0.002216024832763065, + "calibration": { + "observed_rate": 0.0022181146025878, + "mean_prediction": 0.0017673233694385654, + "calibration_in_the_large": -0.0004507912331492348, + "expected_calibration_error_10bin": 0.0004507912331492348, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7244160177975528, + "auprc": 0.011075015533647046, + "brier": 0.002961555910702918, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.0023124042541834704, + "calibration_in_the_large": -0.0006450818826002633, + "expected_calibration_error_10bin": 0.0006450818826002633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7207081942899518, + "auprc": 0.01055276595962003, + "brier": 0.0029864330204911597, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.0029181767757165008, + "calibration_in_the_large": -3.930936106723293e-05, + "expected_calibration_error_10bin": 0.00019467551673216688, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 9, + "negatives": 2696, + "auroc": 0.7492581602373887, + "auprc": 0.014554842756562707, + "brier": 0.0033458569414515, + "calibration": { + "observed_rate": 0.0033271719038817007, + "mean_prediction": 0.003142598403609959, + "calibration_in_the_large": -0.0001845735002717415, + "expected_calibration_error_10bin": 0.0004320279231713649, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 11, + "negatives": 2694, + "auroc": 0.784841735843963, + "auprc": 0.02051022097870615, + "brier": 0.004068335820078541, + "calibration": { + "observed_rate": 0.004066543438077634, + "mean_prediction": 0.003482243547578272, + "calibration_in_the_large": -0.0005842998904993617, + "expected_calibration_error_10bin": 0.0009339290747339665, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.7542862041376157, + "auprc": 0.01959520089926819, + "brier": 0.004818100071221527, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.003899701215089596, + "calibration_in_the_large": -0.0009062137571839717, + "expected_calibration_error_10bin": 0.0014592208037125035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.7554863412961481, + "auprc": 0.01964205963721262, + "brier": 0.00482300125424903, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.0040554397585478765, + "calibration_in_the_large": -0.0007504752137256912, + "expected_calibration_error_10bin": 0.001324386104964201, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.756743627843182, + "auprc": 0.02044072403405397, + "brier": 0.004835555269552402, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.004514529348262603, + "calibration_in_the_large": -0.00029138562401096434, + "expected_calibration_error_10bin": 0.001078640659762152, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 16, + "negatives": 2689, + "auroc": 0.7301970992934176, + "auprc": 0.019082297362990573, + "brier": 0.00596257963892948, + "calibration": { + "observed_rate": 0.005914972273567467, + "mean_prediction": 0.004906124483365927, + "calibration_in_the_large": -0.0010088477902015407, + "expected_calibration_error_10bin": 0.0019545940112767586, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7331057422969187, + "auprc": 0.01913745392299658, + "brier": 0.006340888329253135, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.005147103071761895, + "calibration_in_the_large": -0.0011375549689035388, + "expected_calibration_error_10bin": 0.0021958568989697167, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7331932773109243, + "auprc": 0.019144283178866392, + "brier": 0.006344399980969894, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.005205915643628133, + "calibration_in_the_large": -0.0010787423970373012, + "expected_calibration_error_10bin": 0.0021514246087052063, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + } + ], + "reason": null + }, + "M84": { + "time_averaged_auroc": 0.8144161370013349, + "time_averaged_auprc": 0.028866994900220877, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2818, + "positives": 0, + "negatives": 2818, + "auroc": null, + "auprc": null, + "brier": 4.848226873882587e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00039662528913119, + "calibration_in_the_large": 0.00039662528913119, + "expected_calibration_error_10bin": 0.00039662528913119, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 1, + "negatives": 2817, + "auroc": 0.9843805466808662, + "auprc": 0.022222222222222223, + "brier": 0.00035382059708261856, + "calibration": { + "observed_rate": 0.00035486160397445, + "mean_prediction": 0.0007716909780590924, + "calibration_in_the_large": 0.0004168293740846424, + "expected_calibration_error_10bin": 0.0004168293740846424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7386619301361752, + "auprc": 0.031187119042373507, + "brier": 0.0010564030176123563, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001193682230357117, + "calibration_in_the_large": 0.00012909741843376713, + "expected_calibration_error_10bin": 0.00012909741843376713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7374777975133215, + "auprc": 0.03194964627548897, + "brier": 0.001055693932366398, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001404505751881525, + "calibration_in_the_large": 0.00033992093995817516, + "expected_calibration_error_10bin": 0.00033992093995817516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.738898756660746, + "auprc": 0.03182567387266088, + "brier": 0.0010561611902242336, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001578550064412893, + "calibration_in_the_large": 0.0005139652524895431, + "expected_calibration_error_10bin": 0.0005139652524895431, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8127977248489158, + "auprc": 0.03069032671745145, + "brier": 0.0017555607881871813, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001964282219034653, + "calibration_in_the_large": 0.00018997419916240346, + "expected_calibration_error_10bin": 0.00018997419916240346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.814219694276573, + "auprc": 0.028981611805259704, + "brier": 0.0017578183714309526, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002241933773060531, + "calibration_in_the_large": 0.00046762575318828143, + "expected_calibration_error_10bin": 0.00046762575318828143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8145040881621045, + "auprc": 0.03002072291470716, + "brier": 0.001758472830056421, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.00239575402567363, + "calibration_in_the_large": 0.0006214460058013801, + "expected_calibration_error_10bin": 0.0006214460058013801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8242057847321005, + "auprc": 0.027185662133414373, + "brier": 0.002111709222601115, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0025133659931793175, + "calibration_in_the_large": 0.0003841963693326177, + "expected_calibration_error_10bin": 0.0003841963693326177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8266951161688004, + "auprc": 0.028205668088240637, + "brier": 0.0021163567656955853, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0029130762089643082, + "calibration_in_the_large": 0.0007839065851176085, + "expected_calibration_error_10bin": 0.0007839065851176087, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8268136557610242, + "auprc": 0.027855137535794227, + "brier": 0.002118872425524367, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003029442268344924, + "calibration_in_the_large": 0.000900272644498224, + "expected_calibration_error_10bin": 0.0009002726444982242, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.826932195353248, + "auprc": 0.028074480949341188, + "brier": 0.0021199576661924658, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0031495414510498633, + "calibration_in_the_large": 0.0010203718272031636, + "expected_calibration_error_10bin": 0.0010203718272031638, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8274063537221432, + "auprc": 0.028205667245696227, + "brier": 0.0021204776298958832, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003193002546511951, + "calibration_in_the_large": 0.0010638329226652513, + "expected_calibration_error_10bin": 0.001063832922665251, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + } + ], + "reason": null + }, + "M85": { + "time_averaged_auroc": 0.6258690326096201, + "time_averaged_auprc": 0.0035872815823067565, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.8020607375271149, + "auprc": 0.0034773613432004455, + "brier": 0.0007218227395261109, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.00043579476476118497, + "calibration_in_the_large": -0.00028674858783997106, + "expected_calibration_error_10bin": 0.00028674858783997106, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.8026030368763557, + "auprc": 0.0035950683534198887, + "brier": 0.0007218958154178886, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.0006777672364427584, + "calibration_in_the_large": -4.477611615839763e-05, + "expected_calibration_error_10bin": 4.477611615839763e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 3, + "negatives": 2765, + "auroc": 0.6470162748643762, + "auprc": 0.0033332163277049985, + "brier": 0.0010841051686323517, + "calibration": { + "observed_rate": 0.001083815028901734, + "mean_prediction": 0.0011676527243956883, + "calibration_in_the_large": 8.383769549395433e-05, + "expected_calibration_error_10bin": 8.383769549395433e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5867956744450769, + "auprc": 0.0037011760600828905, + "brier": 0.0025284075674038213, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0014678756909196468, + "calibration_in_the_large": -0.0010610260431843995, + "expected_calibration_error_10bin": 0.0010610260431843995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5886583535985926, + "auprc": 0.0036268243638236533, + "brier": 0.002530264699540114, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0017150240488685955, + "calibration_in_the_large": -0.0008138776852354508, + "expected_calibration_error_10bin": 0.0008138776852354508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5897966575257412, + "auprc": 0.003639224611841106, + "brier": 0.0025317206630320736, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0019634778129754963, + "calibration_in_the_large": -0.00056542392112855, + "expected_calibration_error_10bin": 0.00056542392112855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.589227505562167, + "auprc": 0.0036314994571201844, + "brier": 0.002533679433508056, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.002192191042032349, + "calibration_in_the_large": -0.0003367106920716973, + "expected_calibration_error_10bin": 0.0003367106920716973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5871061209706628, + "auprc": 0.0036161688049739494, + "brier": 0.002536490491848733, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.002450865394442944, + "calibration_in_the_large": -7.803633966110227e-05, + "expected_calibration_error_10bin": 7.803633966110227e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5863817457442956, + "auprc": 0.003590111743011313, + "brier": 0.0025378228018983007, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0025418893023445473, + "calibration_in_the_large": 1.2987568240500989e-05, + "expected_calibration_error_10bin": 1.2987568240500989e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5891757644745692, + "auprc": 0.003603221908889739, + "brier": 0.002541991911944849, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.00278492640221151, + "calibration_in_the_large": 0.00025602466810746355, + "expected_calibration_error_10bin": 0.00025602466810746355, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5893827288249599, + "auprc": 0.0036111694318754625, + "brier": 0.0025439031839464494, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0029722407823792414, + "calibration_in_the_large": 0.0004433390482751951, + "expected_calibration_error_10bin": 0.0004433390482751951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5891757644745692, + "auprc": 0.003602801099148729, + "brier": 0.002546000698234006, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.00308697842785505, + "calibration_in_the_large": 0.0005580766937510039, + "expected_calibration_error_10bin": 0.0005580766937510039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.588917059036581, + "auprc": 0.003606817064895476, + "brier": 0.0025464866136844827, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0031280311391319207, + "calibration_in_the_large": 0.0005991294050278744, + "expected_calibration_error_10bin": 0.0005991294050278744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + } + ], + "reason": null + }, + "M86": { + "time_averaged_auroc": 0.7693436427099727, + "time_averaged_auprc": 0.0383307324174325, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2803, + "positives": 3, + "negatives": 2800, + "auroc": 0.7901190476190476, + "auprc": 0.010083119315580659, + "brier": 0.0010701080048626352, + "calibration": { + "observed_rate": 0.0010702818408847663, + "mean_prediction": 0.0003863055655857227, + "calibration_in_the_large": -0.0006839762752990435, + "expected_calibration_error_10bin": 0.0006839762752990435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 4, + "negatives": 2799, + "auroc": 0.8051982851018221, + "auprc": 0.01271712522423283, + "brier": 0.0014292801244667201, + "calibration": { + "observed_rate": 0.0014270424545130217, + "mean_prediction": 0.0010601462416009691, + "calibration_in_the_large": -0.0003668962129120526, + "expected_calibration_error_10bin": 0.0003668962129120526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 8, + "negatives": 2795, + "auroc": 0.7591681574239714, + "auprc": 0.014060960936314097, + "brier": 0.0028526495628384348, + "calibration": { + "observed_rate": 0.0028540849090260435, + "mean_prediction": 0.0012942895428100167, + "calibration_in_the_large": -0.0015597953662160268, + "expected_calibration_error_10bin": 0.0015597953662160268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 9, + "negatives": 2794, + "auroc": 0.7396404994830191, + "auprc": 0.013556553132016444, + "brier": 0.003214334646455536, + "calibration": { + "observed_rate": 0.003210845522654299, + "mean_prediction": 0.0015952278978849574, + "calibration_in_the_large": -0.0016156176247693417, + "expected_calibration_error_10bin": 0.0016890520781830773, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 11, + "negatives": 2792, + "auroc": 0.784579317530607, + "auprc": 0.035955122766378696, + "brier": 0.003879891498073952, + "calibration": { + "observed_rate": 0.00392436674991081, + "mean_prediction": 0.0019206679778177925, + "calibration_in_the_large": -0.0020036987720930175, + "expected_calibration_error_10bin": 0.002169628044996803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 13, + "negatives": 2790, + "auroc": 0.7610697546181417, + "auprc": 0.04068473972289196, + "brier": 0.004579147369013994, + "calibration": { + "observed_rate": 0.00463788797716732, + "mean_prediction": 0.002263079107156269, + "calibration_in_the_large": -0.0023748088700110514, + "expected_calibration_error_10bin": 0.002569170462217759, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7653024637606926, + "auprc": 0.04826039532352576, + "brier": 0.004930093173469618, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.002602173846788311, + "calibration_in_the_large": -0.0023924747440072654, + "expected_calibration_error_10bin": 0.002392474744007265, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7639707012241971, + "auprc": 0.047895173578369324, + "brier": 0.004931515515836183, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.002869818610153657, + "calibration_in_the_large": -0.0021248299806419196, + "expected_calibration_error_10bin": 0.0021248299806419188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7640219228602162, + "auprc": 0.047753952098770334, + "brier": 0.004933528183971014, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.0030265865763722346, + "calibration_in_the_large": -0.001968062014423342, + "expected_calibration_error_10bin": 0.0019965414188438846, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7571736011477762, + "auprc": 0.04538839700548751, + "brier": 0.005294094159773792, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.003287789250806533, + "calibration_in_the_large": -0.002063619953617299, + "expected_calibration_error_10bin": 0.002138845273557918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7566714490674319, + "auprc": 0.045170175166526064, + "brier": 0.005300740898839391, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.0035285349220581567, + "calibration_in_the_large": -0.001822874282365675, + "expected_calibration_error_10bin": 0.002032445845453204, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 16, + "negatives": 2787, + "auroc": 0.7713715464657338, + "auprc": 0.06744115901165625, + "brier": 0.00556751692214433, + "calibration": { + "observed_rate": 0.005708169818052087, + "mean_prediction": 0.0036802740445337863, + "calibration_in_the_large": -0.0020278957735183007, + "expected_calibration_error_10bin": 0.0023274080077559773, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + { + "valid": 2803, + "positives": 17, + "negatives": 2786, + "auroc": 0.7831806089269879, + "auprc": 0.06933264814487253, + "brier": 0.005909134629119742, + "calibration": { + "observed_rate": 0.006064930431680342, + "mean_prediction": 0.003688295811326662, + "calibration_in_the_large": -0.00237663462035368, + "expected_calibration_error_10bin": 0.0026764794859348803, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + } + ], + "reason": null + }, + "M94": { + "time_averaged_auroc": 0.8284147730712168, + "time_averaged_auprc": 0.003197079000704889, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8601845280340668, + "auprc": 0.002531645569620253, + "brier": 0.00035464089976977863, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 9.784335959476747e-05, + "calibration_in_the_large": -0.0002568923622924265, + "expected_calibration_error_10bin": 0.0002568923622924265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8349893541518808, + "auprc": 0.002145922746781116, + "brier": 0.0003546323990428709, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0001526256324120367, + "calibration_in_the_large": -0.00020211008947515732, + "expected_calibration_error_10bin": 0.00020211008947515732, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8541518807665011, + "auprc": 0.0024271844660194173, + "brier": 0.00035463202219889026, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.00020108058053278934, + "calibration_in_the_large": -0.00015365514135440468, + "expected_calibration_error_10bin": 0.00015365514135440468, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8364088005677786, + "auprc": 0.0021645021645021645, + "brier": 0.0003547337862588562, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0002695856463892456, + "calibration_in_the_large": -8.515007549794842e-05, + "expected_calibration_error_10bin": 8.515007549794842e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.8109691160809371, + "auprc": 0.002735042735042735, + "brier": 0.000709291913300662, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0003034898669899236, + "calibration_in_the_large": -0.00040598157678446446, + "expected_calibration_error_10bin": 0.00040598157678446446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.8095491657791978, + "auprc": 0.0027131129104813316, + "brier": 0.0007093037442809312, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0003541165314945332, + "calibration_in_the_large": -0.00035535491227985485, + "expected_calibration_error_10bin": 0.00035535491227985485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.821969696969697, + "auprc": 0.0037968735702383787, + "brier": 0.0010636107408864537, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0004378641021399217, + "calibration_in_the_large": -0.0006263430635216604, + "expected_calibration_error_10bin": 0.0006263430635216604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8366477272727273, + "auprc": 0.004151686363899462, + "brier": 0.0010635388090376905, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0004829612108593638, + "calibration_in_the_large": -0.0005812459548022183, + "expected_calibration_error_10bin": 0.0005812459548022183, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8299005681818182, + "auprc": 0.003982841165111039, + "brier": 0.001063686646050689, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0005239232597803929, + "calibration_in_the_large": -0.0005402839058811892, + "expected_calibration_error_10bin": 0.0005402839058811892, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8239820075757576, + "auprc": 0.0038421004398826986, + "brier": 0.0010639233998494364, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0005777960718426417, + "calibration_in_the_large": -0.0004864110938189403, + "expected_calibration_error_10bin": 0.0004864110938189403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8177083333333334, + "auprc": 0.003707115406300763, + "brier": 0.0010641915593885248, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0006448675888390092, + "calibration_in_the_large": -0.0004193395768225729, + "expected_calibration_error_10bin": 0.0004193395768225729, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8165246212121212, + "auprc": 0.0036831022859828873, + "brier": 0.0010643796365988963, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0006704865756863319, + "calibration_in_the_large": -0.00039372058997525015, + "expected_calibration_error_10bin": 0.00039372058997525015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.81640625, + "auprc": 0.00368089718530132, + "brier": 0.0010643992167811446, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0006800996578085903, + "calibration_in_the_large": -0.0003841075078529917, + "expected_calibration_error_10bin": 0.0003841075078529917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + } + ], + "reason": null + }, + "M96": { + "time_averaged_auroc": 0.8620335750267437, + "time_averaged_auprc": 0.018440041946344677, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2804, + "positives": 0, + "negatives": 2804, + "auroc": null, + "auprc": null, + "brier": 2.373586710283535e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008560109644208303, + "calibration_in_the_large": 0.0008560109644208303, + "expected_calibration_error_10bin": 0.0008560109644208303, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9090260435247949, + "auprc": 0.00390625, + "brier": 0.00035898154646109987, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0012379242888842397, + "calibration_in_the_large": 0.0008812909079997889, + "expected_calibration_error_10bin": 0.0008812909079997889, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9058151980021406, + "auprc": 0.0037735849056603774, + "brier": 0.00035947792267541163, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0013385424662787364, + "calibration_in_the_large": 0.0009819090853942856, + "expected_calibration_error_10bin": 0.0009819090853942856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.8990367463432037, + "auprc": 0.0035211267605633804, + "brier": 0.00036097112941071427, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.001580120316178476, + "calibration_in_the_large": 0.0012234869352940251, + "expected_calibration_error_10bin": 0.0012234869352940251, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7969307637401856, + "auprc": 0.0028355165110989095, + "brier": 0.0007174118211778945, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0017221771354213476, + "calibration_in_the_large": 0.001008910373652446, + "expected_calibration_error_10bin": 0.001008910373652446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7949678800856531, + "auprc": 0.002785674110332457, + "brier": 0.0007176614695302283, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0017632478789235552, + "calibration_in_the_large": 0.0010499811171546536, + "expected_calibration_error_10bin": 0.0010499811171546536, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7997858672376874, + "auprc": 0.0027499379713239553, + "brier": 0.0007183411262149898, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0018669902454377173, + "calibration_in_the_large": 0.0011537234836688157, + "expected_calibration_error_10bin": 0.0011537234836688157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8717124836367964, + "auprc": 0.03667247386759582, + "brier": 0.0010641488375701062, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.001959067894609136, + "calibration_in_the_large": 0.0008891677519557836, + "expected_calibration_error_10bin": 0.0008891677519557836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8751636320361775, + "auprc": 0.03669785135299517, + "brier": 0.0010643502827928785, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.002047182297032688, + "calibration_in_the_large": 0.0009772821543793358, + "expected_calibration_error_10bin": 0.0009772821543793358, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.874375, + "auprc": 0.03261145866274888, + "brier": 0.001418390490537197, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0021728407670756687, + "calibration_in_the_large": 0.0007463072435378655, + "expected_calibration_error_10bin": 0.0007463072435378655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.876875, + "auprc": 0.03620986797515482, + "brier": 0.0014183272990657507, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.002216426870986308, + "calibration_in_the_large": 0.0007898933474485047, + "expected_calibration_error_10bin": 0.0007898933474485047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8704464285714286, + "auprc": 0.029762843186871963, + "brier": 0.0014193271581645545, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.002471250759176182, + "calibration_in_the_large": 0.0010447172356383787, + "expected_calibration_error_10bin": 0.0010447172356383787, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8702678571428571, + "auprc": 0.029753918051790392, + "brier": 0.001419419393027974, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.002505293649985687, + "calibration_in_the_large": 0.0010787601264478836, + "expected_calibration_error_10bin": 0.0010787601264478836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + } + ], + "reason": null + }, + "N12": { + "time_averaged_auroc": 0.6487264591793209, + "time_averaged_auprc": 0.006704116699260941, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6311881188118812, + "auprc": 0.0025068151203527333, + "brier": 0.001059764121091312, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0002809733860476771, + "calibration_in_the_large": -0.0007787228343691367, + "expected_calibration_error_10bin": 0.0007787228343691367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6438804386275203, + "auprc": 0.002480226744932627, + "brier": 0.0014183233374123593, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007216713789291144, + "calibration_in_the_large": -0.0006912569149599706, + "expected_calibration_error_10bin": 0.0006912569149599706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.5881676689069685, + "auprc": 0.0024087101714535208, + "brier": 0.0014193220461449973, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009055856027648647, + "calibration_in_the_large": -0.0005073426911242204, + "expected_calibration_error_10bin": 0.0005073426911242204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.5996639547223205, + "auprc": 0.0023263309405528007, + "brier": 0.0014260509788218752, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0012508092920555278, + "calibration_in_the_large": -0.00016211900183355724, + "expected_calibration_error_10bin": 0.00016211900183355724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.603555005305978, + "auprc": 0.0023226017716364115, + "brier": 0.001432438686024645, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0015205954189306367, + "calibration_in_the_large": 0.00010766712504155164, + "expected_calibration_error_10bin": 0.00010766712504155164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.6790516631280963, + "auprc": 0.008941050350899546, + "brier": 0.0017751676669690499, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0016704505121541858, + "calibration_in_the_large": -9.570985520717052e-05, + "expected_calibration_error_10bin": 9.570985520717052e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6724504249291785, + "auprc": 0.008739837966208508, + "brier": 0.002481960242450087, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0018602640691012338, + "calibration_in_the_large": -0.0006123604452046654, + "expected_calibration_error_10bin": 0.0006854759165143391, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6702751922298664, + "auprc": 0.00980279043666239, + "brier": 0.0024858121013784746, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.002138159345366563, + "calibration_in_the_large": -0.000334465168939336, + "expected_calibration_error_10bin": 0.0004988374568273594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6675435046539863, + "auprc": 0.009613214359595003, + "brier": 0.0024890614828527737, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0023215240539901454, + "calibration_in_the_large": -0.00015110046031575376, + "expected_calibration_error_10bin": 0.0003929167884021891, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6694152165115338, + "auprc": 0.00958207707728143, + "brier": 0.0024939451521197305, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0024873221596135022, + "calibration_in_the_large": 1.4697645307603074e-05, + "expected_calibration_error_10bin": 0.00023963647403471436, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6666835289356536, + "auprc": 0.009565881859076763, + "brier": 0.002495040828940164, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0025394276945952246, + "calibration_in_the_large": 6.68031802893254e-05, + "expected_calibration_error_10bin": 0.00019079770414655127, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.67096174282678, + "auprc": 0.00943334111871979, + "brier": 0.0028501493529938054, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.002768813147801294, + "calibration_in_the_large": -5.7043439976876224e-05, + "expected_calibration_error_10bin": 0.00032571473972194337, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.6706075097414098, + "auprc": 0.009430639173020719, + "brier": 0.0028504019792992084, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.0027798116817213518, + "calibration_in_the_large": -4.604490605681841e-05, + "expected_calibration_error_10bin": 0.0003154440519940033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "N13": { + "time_averaged_auroc": 0.7127747986029606, + "time_averaged_auprc": 0.042943667141116894, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7893972403776325, + "auprc": 0.0031373196096969266, + "brier": 0.0007259648999080362, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0007736907041883837, + "calibration_in_the_large": 4.800129925369571e-05, + "expected_calibration_error_10bin": 4.800129925369571e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7919389978213508, + "auprc": 0.0030238828967642526, + "brier": 0.0007309685956347188, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0015258680985409758, + "calibration_in_the_large": 0.0008001786936062879, + "expected_calibration_error_10bin": 0.0008001786936062879, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 4, + "negatives": 2752, + "auroc": 0.84765625, + "auprc": 0.0065851066236582885, + "brier": 0.001454059596418383, + "calibration": { + "observed_rate": 0.001451378809869376, + "mean_prediction": 0.0020907304852752994, + "calibration_in_the_large": 0.0006393516754059235, + "expected_calibration_error_10bin": 0.0006393516754059235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.6952380952380952, + "auprc": 0.00529602705961836, + "brier": 0.0018227312110407003, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.0025488679733118315, + "calibration_in_the_large": 0.0007346444609751116, + "expected_calibration_error_10bin": 0.0007346444609751116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.6341007119472016, + "auprc": 0.005002158610122613, + "brier": 0.0025518624063663093, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.0028813940853769262, + "calibration_in_the_large": 0.00034148116810551847, + "expected_calibration_error_10bin": 0.00034148116810551847, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.6761735807860262, + "auprc": 0.008629717615028499, + "brier": 0.0029075716074371746, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.003467210262311335, + "calibration_in_the_large": 0.0005644526425725833, + "expected_calibration_error_10bin": 0.0005644526425725833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.6390793177678423, + "auprc": 0.010637727552430361, + "brier": 0.003984765091136985, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.003767042170671017, + "calibration_in_the_large": -0.00022424955646976625, + "expected_calibration_error_10bin": 0.00022424955646976625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.6656451416757875, + "auprc": 0.0932316806724403, + "brier": 0.005341197509409253, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.004049461440144192, + "calibration_in_the_large": -0.0013932090968659678, + "expected_calibration_error_10bin": 0.0013932090968659678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.703670942061035, + "auprc": 0.08498658540464252, + "brier": 0.0067478886496293855, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.004372332152894775, + "calibration_in_the_large": -0.002521717193984761, + "expected_calibration_error_10bin": 0.002521717193984761, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 20, + "negatives": 2736, + "auroc": 0.6957236842105263, + "auprc": 0.08099719482911032, + "brier": 0.0071033821493041525, + "calibration": { + "observed_rate": 0.00725689404934688, + "mean_prediction": 0.004765165458765004, + "calibration_in_the_large": -0.0024917285905818754, + "expected_calibration_error_10bin": 0.0024917285905818754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7092017062766606, + "auprc": 0.08501590936193154, + "brier": 0.007425245519581653, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005222053591449034, + "calibration_in_the_large": -0.00239768516036519, + "expected_calibration_error_10bin": 0.00239768516036519, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7091842952903282, + "auprc": 0.08586917617333831, + "brier": 0.007419606319726103, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005517167075685114, + "calibration_in_the_large": -0.0021025716761291094, + "expected_calibration_error_10bin": 0.002176615551508146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7090624183860016, + "auprc": 0.08585518642573728, + "brier": 0.007419435873899568, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005530249348288086, + "calibration_in_the_large": -0.0020894894035261378, + "expected_calibration_error_10bin": 0.0021636496550276477, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + } + ], + "reason": null + }, + "N14": { + "time_averaged_auroc": 0.8549632716429044, + "time_averaged_auprc": 0.02222939279495042, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.7163773763136143, + "auprc": 0.0034116642144379414, + "brier": 0.001061239995667525, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.000262847602686469, + "calibration_in_the_large": -0.0007987235225789238, + "expected_calibration_error_10bin": 0.0007987235225789238, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.7867516826071556, + "auprc": 0.003293908762083073, + "brier": 0.001061135378562377, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0004879794697080604, + "calibration_in_the_large": -0.0005735916555573324, + "expected_calibration_error_10bin": 0.0005735916555573324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.832612548741581, + "auprc": 0.006822423021900488, + "brier": 0.001767338255935086, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0006676691471726393, + "calibration_in_the_large": -0.0011016160616030154, + "expected_calibration_error_10bin": 0.0011016160616030154, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.8603427895981087, + "auprc": 0.018314197676662643, + "brier": 0.0021122604687407896, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.0007680889292410901, + "calibration_in_the_large": -0.0013550533212896955, + "expected_calibration_error_10bin": 0.0013550533212896955, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8758931738711803, + "auprc": 0.02482780471264604, + "brier": 0.0024584720465103413, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0009466633830270992, + "calibration_in_the_large": -0.0015303359092588174, + "expected_calibration_error_10bin": 0.0015303359092588174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8756904677443875, + "auprc": 0.02572028370089843, + "brier": 0.002456162697367533, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0010928348795317326, + "calibration_in_the_large": -0.001384164412754184, + "expected_calibration_error_10bin": 0.001384164412754184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8745755840470278, + "auprc": 0.025790588481300124, + "brier": 0.002455532494094336, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0012002980597475327, + "calibration_in_the_large": -0.0012767012325383838, + "expected_calibration_error_10bin": 0.0012767012325383838, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8758931738711803, + "auprc": 0.027419933792217254, + "brier": 0.0024516711442481814, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.001419800278682614, + "calibration_in_the_large": -0.0010571990136033025, + "expected_calibration_error_10bin": 0.0010571990136033025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8843151171043293, + "auprc": 0.03031553656859761, + "brier": 0.0027986750397052135, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0015466258494630978, + "calibration_in_the_large": -0.0012842304845779497, + "expected_calibration_error_10bin": 0.0012842304845779497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.88347232079489, + "auprc": 0.03092313151302391, + "brier": 0.0027961568293712524, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.001723122316683231, + "calibration_in_the_large": -0.0011077340173578165, + "expected_calibration_error_10bin": 0.0011077340173578165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.883694109297374, + "auprc": 0.03137612243950438, + "brier": 0.0027956911250396387, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0018011637351925051, + "calibration_in_the_large": -0.0010296925988485424, + "expected_calibration_error_10bin": 0.0010296925988485424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8824077359829666, + "auprc": 0.030354259779122844, + "brier": 0.0027963060500080217, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.00192609252263664, + "calibration_in_the_large": -0.0009047638114044075, + "expected_calibration_error_10bin": 0.0009047638114044075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8824964513839603, + "auprc": 0.030412251671960655, + "brier": 0.0027962500310502493, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0019509365139458487, + "calibration_in_the_large": -0.0008799198200951988, + "expected_calibration_error_10bin": 0.0008799198200951988, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + } + ], + "reason": null + }, + "N17": { + "time_averaged_auroc": 0.8075281550734451, + "time_averaged_auprc": 0.13762366113748475, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2292, + "positives": 25, + "negatives": 2267, + "auroc": 0.770163211292457, + "auprc": 0.046171971209052254, + "brier": 0.010673512610918423, + "calibration": { + "observed_rate": 0.010907504363001745, + "mean_prediction": 0.007443732418380775, + "calibration_in_the_large": -0.00346377194462097, + "expected_calibration_error_10bin": 0.0034637719446209696, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 41, + "negatives": 2251, + "auroc": 0.8032202489950266, + "auprc": 0.08102953960882897, + "brier": 0.01704152646498489, + "calibration": { + "observed_rate": 0.01788830715532286, + "mean_prediction": 0.013480509402025614, + "calibration_in_the_large": -0.004407797753297247, + "expected_calibration_error_10bin": 0.005889675610983171, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 53, + "negatives": 2239, + "auroc": 0.7996494391869686, + "auprc": 0.09253522608455245, + "brier": 0.02187899464922662, + "calibration": { + "observed_rate": 0.0231239092495637, + "mean_prediction": 0.017719405439953432, + "calibration_in_the_large": -0.005404503809610269, + "expected_calibration_error_10bin": 0.006170946758481316, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 61, + "negatives": 2231, + "auroc": 0.7923521761174508, + "auprc": 0.10174232169383625, + "brier": 0.02507879777384841, + "calibration": { + "observed_rate": 0.026614310645724257, + "mean_prediction": 0.020961316379882897, + "calibration_in_the_large": -0.005652994265841361, + "expected_calibration_error_10bin": 0.007907066263979856, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 64, + "negatives": 2228, + "auroc": 0.7994487769299821, + "auprc": 0.10931726968429334, + "brier": 0.026266201731707586, + "calibration": { + "observed_rate": 0.027923211169284468, + "mean_prediction": 0.023819029290141923, + "calibration_in_the_large": -0.004104181879142545, + "expected_calibration_error_10bin": 0.0093105142634863, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 69, + "negatives": 2223, + "auroc": 0.8045531889925482, + "auprc": 0.11752508874502625, + "brier": 0.028205929239515128, + "calibration": { + "observed_rate": 0.030104712041884817, + "mean_prediction": 0.026102348687482013, + "calibration_in_the_large": -0.004002363354402804, + "expected_calibration_error_10bin": 0.008852485411317255, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 77, + "negatives": 2215, + "auroc": 0.8150743162029844, + "auprc": 0.14604683283843545, + "brier": 0.030760589981395376, + "calibration": { + "observed_rate": 0.033595113438045374, + "mean_prediction": 0.02844238674058381, + "calibration_in_the_large": -0.005152726697461564, + "expected_calibration_error_10bin": 0.011782966032803793, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 83, + "negatives": 2209, + "auroc": 0.8189389518235913, + "auprc": 0.15501701514731606, + "brier": 0.032965086029663374, + "calibration": { + "observed_rate": 0.036212914485165795, + "mean_prediction": 0.030456183265976326, + "calibration_in_the_large": -0.00575673121918947, + "expected_calibration_error_10bin": 0.01318066827334215, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 89, + "negatives": 2203, + "auroc": 0.822922776397864, + "auprc": 0.16597918522551777, + "brier": 0.03500738977047456, + "calibration": { + "observed_rate": 0.03883071553228621, + "mean_prediction": 0.03241928765096124, + "calibration_in_the_large": -0.006411427881324969, + "expected_calibration_error_10bin": 0.012129648784312148, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 93, + "negatives": 2199, + "auroc": 0.8180551276973405, + "auprc": 0.16883194824566705, + "brier": 0.036514147787339815, + "calibration": { + "observed_rate": 0.04057591623036649, + "mean_prediction": 0.03442225068956727, + "calibration_in_the_large": -0.0061536655407992205, + "expected_calibration_error_10bin": 0.013068950163825444, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 101, + "negatives": 2191, + "auroc": 0.8203406374411973, + "auprc": 0.203923676835226, + "brier": 0.03876652044160974, + "calibration": { + "observed_rate": 0.04406631762652705, + "mean_prediction": 0.03622120033129729, + "calibration_in_the_large": -0.007845117295229763, + "expected_calibration_error_10bin": 0.012464997778746404, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 103, + "negatives": 2189, + "auroc": 0.8167403655523868, + "auprc": 0.20060311564259312, + "brier": 0.03961595652095523, + "calibration": { + "observed_rate": 0.04493891797556719, + "mean_prediction": 0.03799009062131645, + "calibration_in_the_large": -0.0069488273542507445, + "expected_calibration_error_10bin": 0.014154080226338316, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + { + "valid": 2292, + "positives": 104, + "negatives": 2188, + "auroc": 0.8164067993249895, + "auprc": 0.20038440382695716, + "brier": 0.04001946332431599, + "calibration": { + "observed_rate": 0.04537521815008726, + "mean_prediction": 0.03826870153816614, + "calibration_in_the_large": -0.007106516611921118, + "expected_calibration_error_10bin": 0.014047649899589766, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + } + ], + "reason": null + }, + "N18": { + "time_averaged_auroc": 0.8694260155006551, + "time_averaged_auprc": 0.21910318212621632, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2440, + "positives": 11, + "negatives": 2429, + "auroc": 0.8868969647067629, + "auprc": 0.14224448813064827, + "brier": 0.004344526689486669, + "calibration": { + "observed_rate": 0.004508196721311476, + "mean_prediction": 0.002220285857287472, + "calibration_in_the_large": -0.0022879108640240036, + "expected_calibration_error_10bin": 0.002287910864024003, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 15, + "negatives": 2425, + "auroc": 0.902955326460481, + "auprc": 0.22568240276013904, + "brier": 0.005730265876221586, + "calibration": { + "observed_rate": 0.006147540983606557, + "mean_prediction": 0.0035830168395250437, + "calibration_in_the_large": -0.0025645241440815135, + "expected_calibration_error_10bin": 0.0025645241440815135, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 21, + "negatives": 2419, + "auroc": 0.9009823028012363, + "auprc": 0.2214079554990187, + "brier": 0.007934836794059026, + "calibration": { + "observed_rate": 0.00860655737704918, + "mean_prediction": 0.004815026251714296, + "calibration_in_the_large": -0.0037915311253348847, + "expected_calibration_error_10bin": 0.0037915311253348847, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 30, + "negatives": 2410, + "auroc": 0.8599031811894883, + "auprc": 0.18232697652214494, + "brier": 0.011412851688726782, + "calibration": { + "observed_rate": 0.012295081967213115, + "mean_prediction": 0.005843041921757429, + "calibration_in_the_large": -0.006452040045455685, + "expected_calibration_error_10bin": 0.006452040045455685, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 32, + "negatives": 2408, + "auroc": 0.8626453488372093, + "auprc": 0.18427393503259365, + "brier": 0.012102343358988675, + "calibration": { + "observed_rate": 0.013114754098360656, + "mean_prediction": 0.006939920743369556, + "calibration_in_the_large": -0.0061748333549911, + "expected_calibration_error_10bin": 0.0061748333549911, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 34, + "negatives": 2406, + "auroc": 0.8631118282724561, + "auprc": 0.20589464795170778, + "brier": 0.012690158403893629, + "calibration": { + "observed_rate": 0.013934426229508197, + "mean_prediction": 0.007979033934475037, + "calibration_in_the_large": -0.00595539229503316, + "expected_calibration_error_10bin": 0.005955392295033159, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 37, + "negatives": 2403, + "auroc": 0.8593537357582302, + "auprc": 0.20233125599885976, + "brier": 0.013766236179018738, + "calibration": { + "observed_rate": 0.015163934426229509, + "mean_prediction": 0.008873693183197069, + "calibration_in_the_large": -0.00629024124303244, + "expected_calibration_error_10bin": 0.00726175352575768, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 41, + "negatives": 2399, + "auroc": 0.8583556156528634, + "auprc": 0.1896743705978952, + "brier": 0.01521991346345481, + "calibration": { + "observed_rate": 0.01680327868852459, + "mean_prediction": 0.009528486406562762, + "calibration_in_the_large": -0.0072747922819618276, + "expected_calibration_error_10bin": 0.007274792281961828, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 45, + "negatives": 2395, + "auroc": 0.8710183252145673, + "auprc": 0.24097306283336617, + "brier": 0.016214962082923032, + "calibration": { + "observed_rate": 0.018442622950819672, + "mean_prediction": 0.010306959198507803, + "calibration_in_the_large": -0.008135663752311869, + "expected_calibration_error_10bin": 0.00814087156158032, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 46, + "negatives": 2394, + "auroc": 0.8704914460063201, + "auprc": 0.23950048417599687, + "brier": 0.0165432533204074, + "calibration": { + "observed_rate": 0.018852459016393444, + "mean_prediction": 0.011044104161357579, + "calibration_in_the_large": -0.007808354855035865, + "expected_calibration_error_10bin": 0.007808354855035864, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 49, + "negatives": 2391, + "auroc": 0.8609496496214546, + "auprc": 0.2743153867474732, + "brier": 0.017403930478264797, + "calibration": { + "observed_rate": 0.020081967213114754, + "mean_prediction": 0.011650728367281087, + "calibration_in_the_large": -0.008431238845833668, + "expected_calibration_error_10bin": 0.008431238845833668, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8529121338912133, + "auprc": 0.2698734309691092, + "brier": 0.017728692455445904, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.012256048972249417, + "calibration_in_the_large": -0.008235754306439106, + "expected_calibration_error_10bin": 0.008235754306439108, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8529623430962343, + "auprc": 0.26984297042185895, + "brier": 0.017718119809028977, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.012361859850655297, + "calibration_in_the_large": -0.008129943428033226, + "expected_calibration_error_10bin": 0.008129943428033228, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + } + ], + "reason": null + }, + "N20": { + "time_averaged_auroc": 0.8182443026841903, + "time_averaged_auprc": 0.012634197711119908, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.8058928571428572, + "auprc": 0.010607569599371066, + "brier": 0.002135887322302143, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.00027936243019855333, + "calibration_in_the_large": -0.0018589126945341623, + "expected_calibration_error_10bin": 0.0018589126945341623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.8464757821671005, + "auprc": 0.011005976154466164, + "brier": 0.002489663030095705, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0005243960998923441, + "calibration_in_the_large": -0.001970258212295824, + "expected_calibration_error_10bin": 0.001970258212295824, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.8663298116674323, + "auprc": 0.014088805179399514, + "brier": 0.002486842479783065, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0007677604650325844, + "calibration_in_the_large": -0.001726893847155584, + "expected_calibration_error_10bin": 0.001726893847155584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8133041458184418, + "auprc": 0.012982055470318658, + "brier": 0.002842506219916819, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008934908888199915, + "calibration_in_the_large": -0.0019575426108236296, + "expected_calibration_error_10bin": 0.0019575426108236296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8139742673338098, + "auprc": 0.013191951756968145, + "brier": 0.0028421692217407432, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.00093646296341845, + "calibration_in_the_large": -0.001914570536225171, + "expected_calibration_error_10bin": 0.001914570536225171, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.813125446747677, + "auprc": 0.013150689793336532, + "brier": 0.0028416218789386657, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0010472596463521025, + "calibration_in_the_large": -0.0018037738532915184, + "expected_calibration_error_10bin": 0.0018037738532915184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8155825589706933, + "auprc": 0.013167848485269595, + "brier": 0.0028411633024582965, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0011321154744146614, + "calibration_in_the_large": -0.0017189180252289596, + "expected_calibration_error_10bin": 0.0017189180252289596, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8125, + "auprc": 0.013109909374820091, + "brier": 0.0028417145885926047, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0012876597179991246, + "calibration_in_the_large": -0.0015633737816444964, + "expected_calibration_error_10bin": 0.0015633737816444964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8095067905646891, + "auprc": 0.012748351128826468, + "brier": 0.002841066368007248, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001485302569535692, + "calibration_in_the_large": -0.001365730930107929, + "expected_calibration_error_10bin": 0.001365730930107929, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8113831308077198, + "auprc": 0.012538251287264776, + "brier": 0.002840895439745391, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0016199498549642666, + "calibration_in_the_large": -0.0012310836446793544, + "expected_calibration_error_10bin": 0.0012310836446793544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8126340243030736, + "auprc": 0.012604162054988596, + "brier": 0.0028406168788086975, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0017552307563203399, + "calibration_in_the_large": -0.001095802743323281, + "expected_calibration_error_10bin": 0.001095802743323281, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.808211222301644, + "auprc": 0.01250695135463049, + "brier": 0.002840365953374598, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0019157686435086626, + "calibration_in_the_large": -0.0009352648561349584, + "expected_calibration_error_10bin": 0.0009352648561349584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8082558970693352, + "auprc": 0.012542048604898715, + "brier": 0.002840398286602869, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0019249993108255432, + "calibration_in_the_large": -0.0009260341888180778, + "expected_calibration_error_10bin": 0.0009260341888180778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + } + ], + "reason": null + }, + "N25": { + "time_averaged_auroc": 0.9247883941465797, + "time_averaged_auprc": 0.052066398079086265, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9768469423824673, + "auprc": 0.02542892156862745, + "brier": 0.0007049092376321604, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00016180239611632215, + "calibration_in_the_large": -0.0005446617508282204, + "expected_calibration_error_10bin": 0.0005446617508282204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8948532012734347, + "auprc": 0.03433553544054311, + "brier": 0.001406248222843465, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0003815664246927814, + "calibration_in_the_large": -0.0010313618691963036, + "expected_calibration_error_10bin": 0.0010313618691963036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9145789101203113, + "auprc": 0.04234115417794494, + "brier": 0.0017536095623649282, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0005702281508055203, + "calibration_in_the_large": -0.001195932216555836, + "expected_calibration_error_10bin": 0.001195932216555836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9127388535031847, + "auprc": 0.04612960856716991, + "brier": 0.0017503852216303733, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.00074345029924168, + "calibration_in_the_large": -0.0010227100681196762, + "expected_calibration_error_10bin": 0.0010227100681196762, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9230678466076696, + "auprc": 0.05112012419320864, + "brier": 0.002098260823902008, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0008641838687033059, + "calibration_in_the_large": -0.0012552085721303217, + "expected_calibration_error_10bin": 0.0012552085721303217, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9255457227138643, + "auprc": 0.05687945412838835, + "brier": 0.002095822228752548, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.000980348624289251, + "calibration_in_the_large": -0.0011390438165443768, + "expected_calibration_error_10bin": 0.001210340946157228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9234808259587021, + "auprc": 0.05834012775052156, + "brier": 0.002093967331706802, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0010998203840768789, + "calibration_in_the_large": -0.0010195720567567489, + "expected_calibration_error_10bin": 0.00109888486889762, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9229498525073746, + "auprc": 0.059597101999886465, + "brier": 0.0020935399644081225, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0011984964511343973, + "calibration_in_the_large": -0.0009208959896992305, + "expected_calibration_error_10bin": 0.001009468765541, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9248785916632942, + "auprc": 0.05564251610373323, + "brier": 0.002443932527434822, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0012887800009527273, + "calibration_in_the_large": -0.001183844513353172, + "expected_calibration_error_10bin": 0.0012812213226299936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9248280048563334, + "auprc": 0.06024653476181705, + "brier": 0.0024428307311830607, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0014084122563197397, + "calibration_in_the_large": -0.0010642122579861595, + "expected_calibration_error_10bin": 0.001241040111228393, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9258397409955483, + "auprc": 0.06245893266010028, + "brier": 0.002441663776899417, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001494808234907667, + "calibration_in_the_large": -0.0009778162793982323, + "expected_calibration_error_10bin": 0.0012343702243551476, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.926295022258195, + "auprc": 0.06217111281957705, + "brier": 0.002441314359675924, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0015880410137863426, + "calibration_in_the_large": -0.0008845835005195566, + "expected_calibration_error_10bin": 0.0011544919545663414, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9263456090651558, + "auprc": 0.06217205085660325, + "brier": 0.0024413758987814993, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0015999275965973175, + "calibration_in_the_large": -0.0008726969177085817, + "expected_calibration_error_10bin": 0.0011447387432644862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + } + ], + "reason": null + }, + "N28": { + "time_averaged_auroc": 0.8532273783822336, + "time_averaged_auprc": 0.030345569270575953, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9436468054558507, + "auprc": 0.05964439373017252, + "brier": 0.0010659508205799195, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0009349765207391728, + "calibration_in_the_large": -0.00014067783566097062, + "expected_calibration_error_10bin": 0.00014067783566097062, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9410145967934913, + "auprc": 0.04372643089457249, + "brier": 0.0010647115853858532, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0015146541800635086, + "calibration_in_the_large": 0.0004389998236633652, + "expected_calibration_error_10bin": 0.0004389998236633652, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9386216798277099, + "auprc": 0.045760498292143854, + "brier": 0.0010645435252883105, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.002022839226620296, + "calibration_in_the_large": 0.0009471848702201527, + "expected_calibration_error_10bin": 0.0009471848702201527, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.940655659248624, + "auprc": 0.04038933791097442, + "brier": 0.0010657033339410238, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.002540322753006741, + "calibration_in_the_large": 0.0014646683966065975, + "expected_calibration_error_10bin": 0.0014646683966065975, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.8140933572710951, + "auprc": 0.032281356432104134, + "brier": 0.0014256907336319612, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.002947298512849053, + "calibration_in_the_large": 0.0015130927043155282, + "expected_calibration_error_10bin": 0.0015130927043155282, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.8128366247755835, + "auprc": 0.027019559031754153, + "brier": 0.0014298924835455414, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.003339570086691307, + "calibration_in_the_large": 0.0019053642781577823, + "expected_calibration_error_10bin": 0.0019053642781577823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.8383620689655172, + "auprc": 0.02340407775165685, + "brier": 0.001784667201819085, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0036708174720282197, + "calibration_in_the_large": 0.001878060211361314, + "expected_calibration_error_10bin": 0.001878060211361314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 6, + "negatives": 2783, + "auroc": 0.8066834351419332, + "auprc": 0.020280772803772096, + "brier": 0.002143511449558128, + "calibration": { + "observed_rate": 0.002151308712800287, + "mean_prediction": 0.00391003173766711, + "calibration_in_the_large": 0.0017587230248668232, + "expected_calibration_error_10bin": 0.0017587230248668232, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 7, + "negatives": 2782, + "auroc": 0.8108760398480025, + "auprc": 0.018685295653798024, + "brier": 0.002499039870074219, + "calibration": { + "observed_rate": 0.002509860164933668, + "mean_prediction": 0.004058204442854118, + "calibration_in_the_large": 0.0015483442779204502, + "expected_calibration_error_10bin": 0.0015483442779204502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.8308162531463502, + "auprc": 0.022579518362909175, + "brier": 0.0028454251792002666, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.004311810585373823, + "calibration_in_the_large": 0.001443398968306774, + "expected_calibration_error_10bin": 0.001443398968306774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.8119504396482814, + "auprc": 0.020772290998494494, + "brier": 0.0032034092431418994, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.004563453888012966, + "calibration_in_the_large": 0.001336490818812536, + "expected_calibration_error_10bin": 0.001336490818812536, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.8110711430855315, + "auprc": 0.020661848425111776, + "brier": 0.003207158994555671, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.004830319654029245, + "calibration_in_the_large": 0.001603356584828815, + "expected_calibration_error_10bin": 0.001603356584828815, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7913278157610651, + "auprc": 0.019287020230023412, + "brier": 0.0035639324459368696, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.004887210539474628, + "calibration_in_the_large": 0.0013016960181408163, + "expected_calibration_error_10bin": 0.0013016960181408163, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + } + ], + "reason": null + }, + "N30": { + "time_averaged_auroc": 0.7050691099942935, + "time_averaged_auprc": 0.011690173006819708, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.6798230088495575, + "auprc": 0.0069583004292218965, + "brier": 0.0014117269485415692, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0006614335033086805, + "calibration_in_the_large": -0.0007524936794414079, + "expected_calibration_error_10bin": 0.0007524936794414079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.7438894792773645, + "auprc": 0.008438950336775932, + "brier": 0.002115958623976934, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.001445766650815669, + "calibration_in_the_large": -0.0006751241233094638, + "expected_calibration_error_10bin": 0.0006751241233094638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 7, + "negatives": 2822, + "auroc": 0.7744760554824339, + "auprc": 0.012278462042663838, + "brier": 0.0024663716927917742, + "calibration": { + "observed_rate": 0.002474372569812655, + "mean_prediction": 0.0019048663299651787, + "calibration_in_the_large": -0.0005695062398474761, + "expected_calibration_error_10bin": 0.0005695062398474761, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.7097660404112017, + "auprc": 0.01066680272625668, + "brier": 0.0028272413690796096, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.002338095865369686, + "calibration_in_the_large": -0.0004897585001304907, + "expected_calibration_error_10bin": 0.0004897585001304907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6678881008668243, + "auprc": 0.009605520295366283, + "brier": 0.0031859028460953214, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0026165337237256214, + "calibration_in_the_large": -0.0005648024374620775, + "expected_calibration_error_10bin": 0.0005648024374620775, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.668006304176517, + "auprc": 0.009509322445424765, + "brier": 0.003190003785117497, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0028105785466054456, + "calibration_in_the_large": -0.00037075761458225335, + "expected_calibration_error_10bin": 0.00037075761458225335, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6669424743892829, + "auprc": 0.009130988440460421, + "brier": 0.0031978366176172203, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0030683723135860354, + "calibration_in_the_large": -0.00011296384760166355, + "expected_calibration_error_10bin": 0.00011296384760166355, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.697091167080525, + "auprc": 0.013177020581560773, + "brier": 0.00355740048996688, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.003671716061866727, + "calibration_in_the_large": 0.00013689810499150582, + "expected_calibration_error_10bin": 0.00013689810499150604, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6957431713373536, + "auprc": 0.012989265126415291, + "brier": 0.0035712895945479205, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.004092093143082757, + "calibration_in_the_large": 0.0005572751862075362, + "expected_calibration_error_10bin": 0.0005572751862075359, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6975523235189783, + "auprc": 0.013096402959920614, + "brier": 0.0035799321487722923, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.004418308368463405, + "calibration_in_the_large": 0.0008834904115881839, + "expected_calibration_error_10bin": 0.0008834904115881848, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.720917478547003, + "auprc": 0.015603627039236402, + "brier": 0.003929181034888441, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.00465004969552017, + "calibration_in_the_large": 0.0007617499429574269, + "expected_calibration_error_10bin": 0.0007617499429574265, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.721853022775663, + "auprc": 0.015257112592810575, + "brier": 0.0039388560192793525, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.004896490937790125, + "calibration_in_the_large": 0.001008191185227382, + "expected_calibration_error_10bin": 0.0010081911852273823, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7219498032131105, + "auprc": 0.015260474072542708, + "brier": 0.0039394612240412396, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.004910224430306988, + "calibration_in_the_large": 0.0010219246777442453, + "expected_calibration_error_10bin": 0.0010219246777442457, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "N32": { + "time_averaged_auroc": 0.836043391421427, + "time_averaged_auprc": 0.07010039120187156, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.8418986438258387, + "auprc": 0.010422383770333722, + "brier": 0.0017758264541192664, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0008423329869384793, + "calibration_in_the_large": -0.0009389281459436012, + "expected_calibration_error_10bin": 0.0009389281459436012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.8349489795918368, + "auprc": 0.010712053452921767, + "brier": 0.0024833399407342242, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0013450962026545726, + "calibration_in_the_large": -0.00114866938338034, + "expected_calibration_error_10bin": 0.00114866938338034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8020411404971806, + "auprc": 0.010111953069759252, + "brier": 0.0031922808594236417, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.001741078652164077, + "calibration_in_the_large": -0.001465191387023668, + "expected_calibration_error_10bin": 0.001465191387023668, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8247407937075438, + "auprc": 0.045630580161821525, + "brier": 0.0035313322856680113, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0021094914872808145, + "calibration_in_the_large": -0.0014530307784833465, + "expected_calibration_error_10bin": 0.0014530307784833465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8298891669646049, + "auprc": 0.03235263282262269, + "brier": 0.003529897867597465, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0023020934134552837, + "calibration_in_the_large": -0.0012604288523088772, + "expected_calibration_error_10bin": 0.0012604288523088772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8315337861994995, + "auprc": 0.029160425105253147, + "brier": 0.0035285211985917335, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002507121591688646, + "calibration_in_the_large": -0.0010554006740755148, + "expected_calibration_error_10bin": 0.0010554006740755148, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.830782981766178, + "auprc": 0.02672658556291444, + "brier": 0.003527577809659908, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002707428825973713, + "calibration_in_the_large": -0.0008550934397904479, + "expected_calibration_error_10bin": 0.0008550934397904479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8476069709975289, + "auprc": 0.13122729284865758, + "brier": 0.003850433350292698, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.0028803274916837434, + "calibration_in_the_large": -0.0010384470006568336, + "expected_calibration_error_10bin": 0.0010384470006568336, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8600477042337508, + "auprc": 0.14523988267133256, + "brier": 0.004183760952395755, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.003031203074576903, + "calibration_in_the_large": -0.0012438236443400902, + "expected_calibration_error_10bin": 0.0012438236443400902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8426298111337481, + "auprc": 0.12425313268406374, + "brier": 0.004532342345796707, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003303523175890135, + "calibration_in_the_large": -0.0013277557696032742, + "expected_calibration_error_10bin": 0.0013277557696032742, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8423820274213975, + "auprc": 0.12461035431481429, + "brier": 0.00453087804562022, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003387161069556152, + "calibration_in_the_large": -0.001244117875937257, + "expected_calibration_error_10bin": 0.001244117875937257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8400191021967526, + "auprc": 0.1104614961272752, + "brier": 0.005226723845048745, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.0037256980243418375, + "calibration_in_the_large": -0.0016180853743044039, + "expected_calibration_error_10bin": 0.0016180853743044039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8400429799426934, + "auprc": 0.1103963130325605, + "brier": 0.005225729578729518, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.003787725287081434, + "calibration_in_the_large": -0.0015560581115648072, + "expected_calibration_error_10bin": 0.0015560581115648072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + } + ], + "reason": null + }, + "N39": { + "time_averaged_auroc": 0.759982292898695, + "time_averaged_auprc": 0.06775158558101366, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2520, + "positives": 16, + "negatives": 2504, + "auroc": 0.7612819488817891, + "auprc": 0.01733233598806609, + "brier": 0.006295480117409459, + "calibration": { + "observed_rate": 0.006349206349206349, + "mean_prediction": 0.007281091986938947, + "calibration_in_the_large": 0.000931885637732598, + "expected_calibration_error_10bin": 0.000931885637732598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 31, + "negatives": 2489, + "auroc": 0.7579413937453829, + "auprc": 0.035221938448410546, + "brier": 0.01206589069515181, + "calibration": { + "observed_rate": 0.012301587301587301, + "mean_prediction": 0.012411389173749263, + "calibration_in_the_large": 0.00010980187216196209, + "expected_calibration_error_10bin": 0.0005138372154298908, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 44, + "negatives": 2476, + "auroc": 0.742317153767073, + "auprc": 0.04098545882034548, + "brier": 0.017063537620216077, + "calibration": { + "observed_rate": 0.01746031746031746, + "mean_prediction": 0.015871327082358118, + "calibration_in_the_large": -0.0015889903779593428, + "expected_calibration_error_10bin": 0.0028789745360665517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 54, + "negatives": 2466, + "auroc": 0.7610840767775074, + "auprc": 0.05970435211137674, + "brier": 0.02063341479707414, + "calibration": { + "observed_rate": 0.02142857142857143, + "mean_prediction": 0.01830778124903667, + "calibration_in_the_large": -0.0031207901795347603, + "expected_calibration_error_10bin": 0.004609608922224392, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 61, + "negatives": 2459, + "auroc": 0.7638117587450584, + "auprc": 0.06933488614930286, + "brier": 0.023170302792466416, + "calibration": { + "observed_rate": 0.024206349206349207, + "mean_prediction": 0.02077984103941292, + "calibration_in_the_large": -0.003426508166936286, + "expected_calibration_error_10bin": 0.004297088150679696, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 65, + "negatives": 2455, + "auroc": 0.7592668024439918, + "auprc": 0.07410384680418398, + "brier": 0.024636455534881974, + "calibration": { + "observed_rate": 0.025793650793650792, + "mean_prediction": 0.023216238742535342, + "calibration_in_the_large": -0.00257741205111545, + "expected_calibration_error_10bin": 0.004181929967007675, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 71, + "negatives": 2449, + "auroc": 0.7597237159173909, + "auprc": 0.078429303561278, + "brier": 0.0268271220186988, + "calibration": { + "observed_rate": 0.028174603174603175, + "mean_prediction": 0.02521190874577437, + "calibration_in_the_large": -0.002962694428828804, + "expected_calibration_error_10bin": 0.005728584604216775, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 74, + "negatives": 2446, + "auroc": 0.7637400278446885, + "auprc": 0.08178246442321861, + "brier": 0.027921931308418763, + "calibration": { + "observed_rate": 0.029365079365079365, + "mean_prediction": 0.026952700923951824, + "calibration_in_the_large": -0.0024123784411275405, + "expected_calibration_error_10bin": 0.006349453651360126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 78, + "negatives": 2442, + "auroc": 0.7605630105630106, + "auprc": 0.08311227433277428, + "brier": 0.029415908627683514, + "calibration": { + "observed_rate": 0.030952380952380953, + "mean_prediction": 0.028664644532684525, + "calibration_in_the_large": -0.002287736419696429, + "expected_calibration_error_10bin": 0.006828301148567651, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 81, + "negatives": 2439, + "auroc": 0.7609524243390582, + "auprc": 0.084329538997928, + "brier": 0.030526588941176352, + "calibration": { + "observed_rate": 0.03214285714285714, + "mean_prediction": 0.030127683033822992, + "calibration_in_the_large": -0.002015174109034148, + "expected_calibration_error_10bin": 0.007826427789866952, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 82, + "negatives": 2438, + "auroc": 0.762215130354749, + "auprc": 0.08505486412186207, + "brier": 0.030921256452210333, + "calibration": { + "observed_rate": 0.03253968253968254, + "mean_prediction": 0.031530348419711654, + "calibration_in_the_large": -0.001009334119970888, + "expected_calibration_error_10bin": 0.00849983495138567, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.7634114628394579, + "auprc": 0.08568481175769387, + "brier": 0.03132107096364108, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.03306898016940862, + "calibration_in_the_large": 0.00013247223290067944, + "expected_calibration_error_10bin": 0.008237682756716538, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.7634609014638777, + "auprc": 0.08569453703673713, + "brier": 0.03133275646615091, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.033309091341872106, + "calibration_in_the_large": 0.00037258340536416856, + "expected_calibration_error_10bin": 0.00849141006266499, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + } + ], + "reason": null + }, + "N40": { + "time_averaged_auroc": 0.8176959211401742, + "time_averaged_auprc": 0.037662468714468184, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2606, + "positives": 5, + "negatives": 2601, + "auroc": 0.8788158400615148, + "auprc": 0.03984244025576838, + "brier": 0.001893439815111355, + "calibration": { + "observed_rate": 0.001918649270913277, + "mean_prediction": 0.0020389814305973924, + "calibration_in_the_large": 0.00012033215968411544, + "expected_calibration_error_10bin": 0.00012033215968411544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 7, + "negatives": 2599, + "auroc": 0.8706645413070961, + "auprc": 0.029690911708527022, + "brier": 0.002653157632853742, + "calibration": { + "observed_rate": 0.002686108979278588, + "mean_prediction": 0.003192323529154719, + "calibration_in_the_large": 0.0005062145498761312, + "expected_calibration_error_10bin": 0.0005062145498761312, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 11, + "negatives": 2595, + "auroc": 0.828481345244351, + "auprc": 0.02488452740673834, + "brier": 0.004179529383949041, + "calibration": { + "observed_rate": 0.00422102839600921, + "mean_prediction": 0.004003455640101174, + "calibration_in_the_large": -0.0002175727559080359, + "expected_calibration_error_10bin": 0.0003158806223653616, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8184164466462962, + "auprc": 0.02840724231242137, + "brier": 0.00493586473353763, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.004570046964745042, + "calibration_in_the_large": -0.0004184411396294784, + "expected_calibration_error_10bin": 0.0006499074178688654, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8173188169331632, + "auprc": 0.02775476997776301, + "brier": 0.004964727491276633, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.005418408471818557, + "calibration_in_the_large": 0.00042992036744403644, + "expected_calibration_error_10bin": 0.0004299203674440362, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7685328185328185, + "auprc": 0.03252127713468729, + "brier": 0.006085325061444444, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.006010564153531257, + "calibration_in_the_large": -0.00012911351339122985, + "expected_calibration_error_10bin": 0.000735108093005765, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7695704633204633, + "auprc": 0.03273820212212121, + "brier": 0.006094466906959114, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.006313950351337178, + "calibration_in_the_large": 0.0001742726844146912, + "expected_calibration_error_10bin": 0.0004693728067132663, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 19, + "negatives": 2587, + "auroc": 0.796899477142799, + "auprc": 0.038312748094651995, + "brier": 0.007198067491359835, + "calibration": { + "observed_rate": 0.0072908672294704525, + "mean_prediction": 0.006736950302846787, + "calibration_in_the_large": -0.0005539169266236656, + "expected_calibration_error_10bin": 0.001554794456440941, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 21, + "negatives": 2585, + "auroc": 0.8133370175923368, + "auprc": 0.044254027744514715, + "brier": 0.007927498295012497, + "calibration": { + "observed_rate": 0.008058326937835763, + "mean_prediction": 0.007235434270985917, + "calibration_in_the_large": -0.0008228926668498466, + "expected_calibration_error_10bin": 0.0018889375032399847, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 22, + "negatives": 2584, + "auroc": 0.8170032367013791, + "auprc": 0.044631229544974844, + "brier": 0.008317608747412556, + "calibration": { + "observed_rate": 0.00844205679201842, + "mean_prediction": 0.007782951655702869, + "calibration_in_the_large": -0.0006591051363155501, + "expected_calibration_error_10bin": 0.002151673668910889, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8152756261296152, + "auprc": 0.048576896666495784, + "brier": 0.009084267400704045, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.00842171574158497, + "calibration_in_the_large": -0.0007878007587987599, + "expected_calibration_error_10bin": 0.003010420200666275, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8178414665633875, + "auprc": 0.0489587886715148, + "brier": 0.009088169799179972, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.008787941147452325, + "calibration_in_the_large": -0.000421575352931405, + "expected_calibration_error_10bin": 0.0029328379206809982, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8178898786470437, + "auprc": 0.04903903164790763, + "brier": 0.009088904142714608, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.00880544450179836, + "calibration_in_the_large": -0.00040407199858536955, + "expected_calibration_error_10bin": 0.0029202182703887054, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + } + ], + "reason": null + }, + "N73": { + "time_averaged_auroc": 0.9635087110453829, + "time_averaged_auprc": 0.07629423713566222, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9664073550212164, + "auprc": 0.010416666666666666, + "brier": 0.0003528481280099304, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0002113477733983825, + "calibration_in_the_large": -0.00014213402228913961, + "expected_calibration_error_10bin": 0.00014213402228913961, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9798444130127298, + "auprc": 0.017241379310344827, + "brier": 0.00035226167999934067, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0003511800988317236, + "calibration_in_the_large": -2.301696855798506e-06, + "expected_calibration_error_10bin": 2.301696855798506e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9800141492748496, + "auprc": 0.02541827541827542, + "brier": 0.0007016464015033332, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006126117236049302, + "calibration_in_the_large": -9.435186777011402e-05, + "expected_calibration_error_10bin": 9.435186777011402e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9826671383091616, + "auprc": 0.029030910609857977, + "brier": 0.0007009986874499277, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007726411175705371, + "calibration_in_the_large": 6.567752619549287e-05, + "expected_calibration_error_10bin": 6.567752619549287e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9821365405022993, + "auprc": 0.028309409888357256, + "brier": 0.000701069598575486, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007918221217313937, + "calibration_in_the_large": 8.485853035634949e-05, + "expected_calibration_error_10bin": 8.485853035634949e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9821365405022993, + "auprc": 0.028205128205128206, + "brier": 0.0007012598255390236, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009139682903400189, + "calibration_in_the_large": 0.00020700469896497466, + "expected_calibration_error_10bin": 0.00020700469896497466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9587166784619013, + "auprc": 0.021352819661998406, + "brier": 0.001054408900514575, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.001063245301879518, + "calibration_in_the_large": 2.799914816951519e-06, + "expected_calibration_error_10bin": 2.799914816951519e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.968495575221239, + "auprc": 0.0544146759911205, + "brier": 0.0013872305816657344, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0011014174166966777, + "calibration_in_the_large": -0.0003125097660534107, + "expected_calibration_error_10bin": 0.0003125097660534107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.974929178470255, + "auprc": 0.17350948509485095, + "brier": 0.0016995397266489289, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0012039894089548124, + "calibration_in_the_large": -0.0005634195694827981, + "expected_calibration_error_10bin": 0.0005634195694827981, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9375959381272878, + "auprc": 0.14593110479579885, + "brier": 0.002050775243312583, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0012467608023273079, + "calibration_in_the_large": -0.0008741299717978249, + "expected_calibration_error_10bin": 0.0008741299717978249, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9377140158224111, + "auprc": 0.1461037056625292, + "brier": 0.0020475429458818068, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0013640234261558172, + "calibration_in_the_large": -0.0007568673479693155, + "expected_calibration_error_10bin": 0.0007568673479693155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9374778604321644, + "auprc": 0.15594576072934027, + "brier": 0.0020445148337472725, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0014326755676614745, + "calibration_in_the_large": -0.0006882152064636583, + "expected_calibration_error_10bin": 0.0006882152064636583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9374778604321644, + "auprc": 0.15594576072934027, + "brier": 0.002044371799033474, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0014366765546820275, + "calibration_in_the_large": -0.0006842142194431052, + "expected_calibration_error_10bin": 0.0006842142194431052, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + } + ], + "reason": null + }, + "N99": { + "time_averaged_auroc": 0.7719948813956747, + "time_averaged_auprc": 0.00465748689201646, + "valid_timepoint_cells": 13, + "timepoints": [ + { + "valid": 2799, + "positives": 2, + "negatives": 2797, + "auroc": 0.7733285663210583, + "auprc": 0.0030688945471702717, + "brier": 0.0007141590668134988, + "calibration": { + "observed_rate": 0.0007145409074669524, + "mean_prediction": 0.00029485886100871403, + "calibration_in_the_large": -0.0004196820464582384, + "expected_calibration_error_10bin": 0.0004196820464582384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7796852646638054, + "auprc": 0.0037118007919986398, + "brier": 0.001071229427297354, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0005205834839012815, + "calibration_in_the_large": -0.0005512278772991472, + "expected_calibration_error_10bin": 0.0005512278772991472, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7751549833094897, + "auprc": 0.003582392894299386, + "brier": 0.0010718411910614057, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0007297251333603299, + "calibration_in_the_large": -0.0003420862278400988, + "expected_calibration_error_10bin": 0.0003420862278400988, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7814735336194564, + "auprc": 0.0039555586636486765, + "brier": 0.0010722050529316047, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0009061223424109385, + "calibration_in_the_large": -0.00016568901878949026, + "expected_calibration_error_10bin": 0.00016568901878949026, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7829041487839771, + "auprc": 0.004143740086646661, + "brier": 0.0010730095096617939, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0010710187864639673, + "calibration_in_the_large": -7.925747364614412e-07, + "expected_calibration_error_10bin": 7.925747364614412e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7857653791130186, + "auprc": 0.004344326007808045, + "brier": 0.0010735875403451577, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.001219212454090147, + "calibration_in_the_large": 0.00014740109288971818, + "expected_calibration_error_10bin": 0.00014740109288971818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7537580529706513, + "auprc": 0.004770302127180749, + "brier": 0.0017870403744427489, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0013515540833935833, + "calibration_in_the_large": -0.00043479818527379795, + "expected_calibration_error_10bin": 0.00043479818527379795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7537580529706513, + "auprc": 0.004704464050069751, + "brier": 0.001788495225931853, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0014998774690845292, + "calibration_in_the_large": -0.00028647479958285207, + "expected_calibration_error_10bin": 0.00028647479958285207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7554044380816034, + "auprc": 0.0047459453280165285, + "brier": 0.0017887071997692388, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.001536085088994762, + "calibration_in_the_large": -0.0002502671796726192, + "expected_calibration_error_10bin": 0.0002502671796726192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.77640529896169, + "auprc": 0.005942001804959071, + "brier": 0.0021450819554862865, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0017271578087949865, + "calibration_in_the_large": -0.00041646491360587093, + "expected_calibration_error_10bin": 0.00041646491360587093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7734216493614989, + "auprc": 0.005871376416509141, + "brier": 0.0021468042667378063, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.001967960058410563, + "calibration_in_the_large": -0.0001756626639902942, + "expected_calibration_error_10bin": 0.0001756626639902942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7723475355054302, + "auprc": 0.0058526864743015895, + "brier": 0.0021483607495956705, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0021466965541219658, + "calibration_in_the_large": 3.073831721108356e-06, + "expected_calibration_error_10bin": 3.073831721108356e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7725265544814417, + "auprc": 0.005853840403605461, + "brier": 0.0021484329142224126, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.002154444441562482, + "calibration_in_the_large": 1.0821719161624617e-05, + "expected_calibration_error_10bin": 1.0821719161624617e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + } + ], + "reason": null + }, + "O69": { + "time_averaged_auroc": 0.9970131536439707, + "time_averaged_auprc": 0.3263341886310152, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2743, + "positives": 0, + "negatives": 2743, + "auroc": null, + "auprc": null, + "brier": 1.3191255236369745e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002696634393612041, + "calibration_in_the_large": 0.0002696634393612041, + "expected_calibration_error_10bin": 0.0002696634393612041, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.998661800486618, + "auprc": 0.33730158730158727, + "brier": 0.0009420328494926235, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.0005619748106801088, + "calibration_in_the_large": -0.0005317182261408901, + "expected_calibration_error_10bin": 0.0007089365247869666, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9979006936838262, + "auprc": 0.31547619047619047, + "brier": 0.0012735833568249628, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.000731855653661198, + "calibration_in_the_large": -0.0007264017287668005, + "expected_calibration_error_10bin": 0.0011176039290211844, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9978094194961665, + "auprc": 0.3117997198879552, + "brier": 0.0012704145956940513, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0007737809205563845, + "calibration_in_the_large": -0.0006844764618716139, + "expected_calibration_error_10bin": 0.0010893520828050326, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.997954711468225, + "auprc": 0.3579365079365079, + "brier": 0.0015433664799815597, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0009692339068559324, + "calibration_in_the_large": -0.0008535878211790659, + "expected_calibration_error_10bin": 0.0014765776435605028, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.997954711468225, + "auprc": 0.3579365079365079, + "brier": 0.0015363182599775638, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.001045053095392074, + "calibration_in_the_large": -0.0007777686326429242, + "expected_calibration_error_10bin": 0.0014311534883465137, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.31234448734448733, + "brier": 0.0018921943224700975, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.001126673121455646, + "calibration_in_the_large": -0.0010607129521863518, + "expected_calibration_error_10bin": 0.0015781368752115074, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.31234448734448733, + "brier": 0.0018918183105113605, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0011412633687516993, + "calibration_in_the_large": -0.0010461227048902985, + "expected_calibration_error_10bin": 0.0015652624941823313, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9963463646328097, + "auprc": 0.32287080313396105, + "brier": 0.0018855283945997021, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012117373517411992, + "calibration_in_the_large": -0.0009756487219007987, + "expected_calibration_error_10bin": 0.0015067695445764363, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9963463646328097, + "auprc": 0.32287080313396105, + "brier": 0.0018851631071198417, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012268121754223328, + "calibration_in_the_large": -0.000960573898219665, + "expected_calibration_error_10bin": 0.0014934487228353771, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962854707100232, + "auprc": 0.3221595655806182, + "brier": 0.0018847860209599842, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.001242154872864124, + "calibration_in_the_large": -0.0009452312007778739, + "expected_calibration_error_10bin": 0.0014799145254922816, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.3214848017479596, + "brier": 0.0018844015062973154, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012576493621517268, + "calibration_in_the_large": -0.000929736711490271, + "expected_calibration_error_10bin": 0.0014662536993287657, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.3214848017479596, + "brier": 0.0018842913496208821, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012608183854341207, + "calibration_in_the_large": -0.0009265676882078771, + "expected_calibration_error_10bin": 0.0014636189666062467, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + } + ], + "reason": null + }, + "O99": { + "time_averaged_auroc": 0.9400351943262951, + "time_averaged_auprc": 0.1331557837463281, + "valid_timepoint_cells": 11, + "timepoints": [ + { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 8.291392451681359e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023989981641462093, + "calibration_in_the_large": 0.00023989981641462093, + "expected_calibration_error_10bin": 0.00023989981641462093, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 2.4409417894786297e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003949795407316095, + "calibration_in_the_large": 0.0003949795407316095, + "expected_calibration_error_10bin": 0.0003949795407316095, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.000391181697985081, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.00044946609039329835, + "calibration_in_the_large": 7.239218390762714e-05, + "expected_calibration_error_10bin": 0.0001245511144566698, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.00040153242498938013, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0005282562527162901, + "calibration_in_the_large": 0.0001511823462306189, + "expected_calibration_error_10bin": 0.0001511823462306189, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.0004042666211017674, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0005626239861076591, + "calibration_in_the_large": 0.00018555007962198791, + "expected_calibration_error_10bin": 0.00018555007962198797, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.0004104847947361952, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0006311716559908886, + "calibration_in_the_large": 0.0002540977495052174, + "expected_calibration_error_10bin": 0.0002540977495052174, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.0004209888179630057, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0007220172714301351, + "calibration_in_the_large": 0.0003449433649444639, + "expected_calibration_error_10bin": 0.000344943364944464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998113919275745, + "auprc": 0.16666666666666666, + "brier": 0.0004241133705817511, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0007585136247210324, + "calibration_in_the_large": 0.00038143971823536123, + "expected_calibration_error_10bin": 0.00038143971823536123, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8724046810117025, + "auprc": 0.05979756881655615, + "brier": 0.001180539676128311, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0008023649661945449, + "calibration_in_the_large": -0.00032885675326246877, + "expected_calibration_error_10bin": 0.0006389984195252263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8707688435887756, + "auprc": 0.059655061250805934, + "brier": 0.0011835276108787065, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0008442917562773338, + "calibration_in_the_large": -0.0002869299631796799, + "expected_calibration_error_10bin": 0.0006034368076599727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8690071725179312, + "auprc": 0.059552172612601456, + "brier": 0.0011885042654329633, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0009028439444571063, + "calibration_in_the_large": -0.00022837777499990733, + "expected_calibration_error_10bin": 0.0005554249996776132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8688813388700138, + "auprc": 0.059521864062861723, + "brier": 0.0011890922158724867, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0009187782350547044, + "calibration_in_the_large": -0.00021244348440230927, + "expected_calibration_error_10bin": 0.0005405627386224347, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8687555052220964, + "auprc": 0.059520287800117644, + "brier": 0.0011892490067585701, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0009219074918084398, + "calibration_in_the_large": -0.00020931422764857387, + "expected_calibration_error_10bin": 0.0005377375734387636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + } + ], + "reason": null + }, + "Q21": { + "time_averaged_auroc": 0.7587688375210383, + "time_averaged_auprc": 0.0045495178555199165, + "valid_timepoint_cells": 12, + "timepoints": [ + { + "valid": 2810, + "positives": 0, + "negatives": 2810, + "auroc": null, + "auprc": null, + "brier": 2.563890335770581e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032168706823417566, + "calibration_in_the_large": 0.00032168706823417566, + "expected_calibration_error_10bin": 0.00032168706823417566, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8857244571021716, + "auprc": 0.003105590062111801, + "brier": 0.00035563631964601804, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.000497482772378497, + "calibration_in_the_large": 0.00014161088625750057, + "expected_calibration_error_10bin": 0.00014161088625750057, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8689925240299039, + "auprc": 0.0027100271002710027, + "brier": 0.00035613255926470567, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0007322692964430563, + "calibration_in_the_large": 0.00037639741032205985, + "expected_calibration_error_10bin": 0.00037639741032205985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8572445710217159, + "auprc": 0.0024875621890547263, + "brier": 0.0003566530696736763, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0008749693269972184, + "calibration_in_the_large": 0.000519097440876222, + "expected_calibration_error_10bin": 0.000519097440876222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.8758903133903134, + "auprc": 0.0041894702038614475, + "brier": 0.0007112370222623684, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0010545385428958592, + "calibration_in_the_large": 0.00034279477065386624, + "expected_calibration_error_10bin": 0.00034279477065386624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.8719729344729344, + "auprc": 0.0040623133504062315, + "brier": 0.0007115162978646274, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0011270592310544587, + "calibration_in_the_large": 0.00041531545881246575, + "expected_calibration_error_10bin": 0.00041531545881246575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6449352808455053, + "auprc": 0.003097426042972871, + "brier": 0.001067420650895661, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0011811617949458724, + "calibration_in_the_large": 0.00011354613658288298, + "expected_calibration_error_10bin": 0.00011354613658288298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6418477615485096, + "auprc": 0.002989246417970546, + "brier": 0.0010678187931814022, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0012778999887723653, + "calibration_in_the_large": 0.0002102843304093759, + "expected_calibration_error_10bin": 0.0002102843304093759, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6413727585797411, + "auprc": 0.0029603025337130453, + "brier": 0.001068205871889992, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0013495119161635813, + "calibration_in_the_large": 0.00028189625780059187, + "expected_calibration_error_10bin": 0.00028189625780059187, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6413727585797411, + "auprc": 0.0029572721354747832, + "brier": 0.0010686812127992046, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0014585207548235657, + "calibration_in_the_large": 0.0003909050964605763, + "expected_calibration_error_10bin": 0.0003909050964605763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 4, + "negatives": 2806, + "auroc": 0.7271026372059872, + "auprc": 0.008770520765804354, + "brier": 0.0014194783771565834, + "calibration": { + "observed_rate": 0.0014234875444839859, + "mean_prediction": 0.0015467914409229215, + "calibration_in_the_large": 0.00012330389643893562, + "expected_calibration_error_10bin": 0.00012330389643893562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.7244206773618538, + "auprc": 0.008633746532612088, + "brier": 0.00177418359187116, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0016624001713223743, + "calibration_in_the_large": -0.00011695925928260778, + "expected_calibration_error_10bin": 0.00011695925928260778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.724349376114082, + "auprc": 0.00863073693198609, + "brier": 0.0017741880720594564, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0016665205646082457, + "calibration_in_the_large": -0.00011283886599673643, + "expected_calibration_error_10bin": 0.00011283886599673643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + } + ], + "reason": null + }, + "U07": { + "time_averaged_auroc": 0.8777764462792095, + "time_averaged_auprc": 0.02459331545656534, + "valid_timepoint_cells": 4, + "timepoints": [ + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.669390282727547e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000383252161669483, + "calibration_in_the_large": 0.000383252161669483, + "expected_calibration_error_10bin": 0.000383252161669483, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.8704987068135477e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007562365883847107, + "calibration_in_the_large": 0.0007562365883847107, + "expected_calibration_error_10bin": 0.0007562365883847107, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 7.628098112752809e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001394780542120703, + "calibration_in_the_large": 0.001394780542120703, + "expected_calibration_error_10bin": 0.001394780542120703, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 9.373205258966065e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015292804464440966, + "calibration_in_the_large": 0.0015292804464440966, + "expected_calibration_error_10bin": 0.0015292804464440966, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.6326899924829666e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0019821807904731857, + "calibration_in_the_large": 0.0019821807904731857, + "expected_calibration_error_10bin": 0.0019821807904731857, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.0841143792026753e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0022128552050503297, + "calibration_in_the_large": 0.0022128552050503297, + "expected_calibration_error_10bin": 0.0022128552050503297, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.0411785763597974e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0025764609156883667, + "calibration_in_the_large": 0.0025764609156883667, + "expected_calibration_error_10bin": 0.0025764609156883667, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.6202855123581194e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002773869383717794, + "calibration_in_the_large": 0.002773869383717794, + "expected_calibration_error_10bin": 0.002773869383717794, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 4.141326353232405e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002982662526304113, + "calibration_in_the_large": 0.002982662526304113, + "expected_calibration_error_10bin": 0.002982662526304113, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9900955076052352, + "auprc": 0.034482758620689655, + "brier": 0.0003795471432934492, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0031855536490750045, + "calibration_in_the_large": 0.002831946859824651, + "expected_calibration_error_10bin": 0.002831946859824651, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.9792993630573248, + "auprc": 0.027777777777777776, + "brier": 0.0007245950422673391, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.003357911667110358, + "calibration_in_the_large": 0.002650698088609651, + "expected_calibration_error_10bin": 0.002650698088609651, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.7708554572271387, + "auprc": 0.018056362713896962, + "brier": 0.0010821719258412813, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.003521616096808651, + "calibration_in_the_large": 0.0024607957290575903, + "expected_calibration_error_10bin": 0.0024607957290575903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.7708554572271387, + "auprc": 0.018056362713896962, + "brier": 0.0010825476545206216, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.0035340412017614994, + "calibration_in_the_large": 0.0024732208340104388, + "expected_calibration_error_10bin": 0.0024732208340104388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + ], + "reason": null + } + }, + "30": { + "A04": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.8180400623725561, + "auprc": 0.007845594521016281, + "brier": 0.0010845015127120014, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.002115685497436148, + "calibration_in_the_large": 0.0010373246059911443, + "expected_calibration_error_10bin": 0.0010373246059911443, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7753999289015286, + "auprc": 0.018847947908795622, + "brier": 0.0017660210595364244, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0006766110287327756, + "calibration_in_the_large": -0.001097696991139474, + "expected_calibration_error_10bin": 0.001097696991139474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 5, + "negatives": 2659, + "auroc": 0.7004136893569011, + "auprc": 0.009142257416332351, + "brier": 0.0019038240746429617, + "calibration": { + "observed_rate": 0.0018768768768768769, + "mean_prediction": 0.003990968083145618, + "calibration_in_the_large": 0.002114091206268741, + "expected_calibration_error_10bin": 0.002114091206268741, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 2.4042215336779303e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023241376407399057, + "calibration_in_the_large": 0.00023241376407399057, + "expected_calibration_error_10bin": 0.00023241376407399057, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.160539780100866e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001513366870066706, + "calibration_in_the_large": 0.0001513366870066706, + "expected_calibration_error_10bin": 0.0001513366870066706, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 1, + "negatives": 2781, + "auroc": 0.9381517439769866, + "auprc": 0.005780346820809248, + "brier": 0.00036249100064592304, + "calibration": { + "observed_rate": 0.0003594536304816679, + "mean_prediction": 0.0003726081604654419, + "calibration_in_the_large": 1.315452998377402e-05, + "expected_calibration_error_10bin": 1.315452998377402e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.827856106157993, + "auprc": 0.021938710341667323, + "brier": 0.002523365455123251, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0004819621029329358, + "calibration_in_the_large": -0.0020515160005777407, + "expected_calibration_error_10bin": 0.0020515160005777407, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.759933069316497e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 7.094447724194433e-05, + "calibration_in_the_large": 7.094447724194433e-05, + "expected_calibration_error_10bin": 7.094447724194433e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 2.208114642907912e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00015377495216659776, + "calibration_in_the_large": 0.00015377495216659776, + "expected_calibration_error_10bin": 0.00015377495216659776, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.749257868190538e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002568381807307654, + "calibration_in_the_large": 0.0002568381807307654, + "expected_calibration_error_10bin": 0.0002568381807307654, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.8591485507246377, + "auprc": 0.018199140870818364, + "brier": 0.0028699295323020148, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.001938671343677241, + "calibration_in_the_large": -0.0009515020667273831, + "expected_calibration_error_10bin": 0.0009515020667273831, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 15, + "negatives": 2663, + "auroc": 0.6790336712980348, + "auprc": 0.012688390146085717, + "brier": 0.005579906697135944, + "calibration": { + "observed_rate": 0.005601194921583271, + "mean_prediction": 0.0045712941142188246, + "calibration_in_the_large": -0.0010299008073644464, + "expected_calibration_error_10bin": 0.0010299008073644464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 15, + "negatives": 2615, + "auroc": 0.7822052262587635, + "auprc": 0.018065365797984755, + "brier": 0.005649156665069944, + "calibration": { + "observed_rate": 0.005703422053231939, + "mean_prediction": 0.005867935311411748, + "calibration_in_the_large": 0.00016451325817980894, + "expected_calibration_error_10bin": 0.00016451325817980894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6250442164839052, + "auprc": 0.000942507068803016, + "brier": 0.00035375271199852593, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 9.870223779749977e-05, + "calibration_in_the_large": -0.00025490455145285384, + "expected_calibration_error_10bin": 0.00025490455145285384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9730782855118668, + "auprc": 0.012987012987012988, + "brier": 0.00035342371242305486, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00016071388865376696, + "calibration_in_the_large": -0.00019339376007144552, + "expected_calibration_error_10bin": 0.00019339376007144552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 2, + "negatives": 2810, + "auroc": 0.8852313167259787, + "auprc": 0.017749777801014274, + "brier": 0.000711835708854224, + "calibration": { + "observed_rate": 0.0007112375533428165, + "mean_prediction": 0.0002642763549819365, + "calibration_in_the_large": -0.00044696119836088003, + "expected_calibration_error_10bin": 0.00044696119836088003, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 0, + "negatives": 2809, + "auroc": null, + "auprc": null, + "brier": 2.4097466735381312e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00018453029908606952, + "calibration_in_the_large": 0.00018453029908606952, + "expected_calibration_error_10bin": 0.00018453029908606952, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.9536376604850214, + "auprc": 0.007633587786259542, + "brier": 0.00035621007353161817, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.0002494154784941342, + "calibration_in_the_large": -0.00010709076036504584, + "expected_calibration_error_10bin": 0.00010709076036504584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9876193845065441, + "auprc": 0.04083333333333333, + "brier": 0.0007053245545656925, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00013514397370504284, + "calibration_in_the_large": -0.0005718196176700014, + "expected_calibration_error_10bin": 0.0005718196176700014, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 4, + "negatives": 2758, + "auroc": 0.7849891225525744, + "auprc": 0.25636162993028866, + "brier": 0.0014067202379178384, + "calibration": { + "observed_rate": 0.001448225923244026, + "mean_prediction": 0.001095079614273573, + "calibration_in_the_large": -0.0003531463089704529, + "expected_calibration_error_10bin": 0.0003531463089704529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 7, + "negatives": 2755, + "auroc": 0.9181747472128597, + "auprc": 0.06003043869838665, + "brier": 0.002475773979893027, + "calibration": { + "observed_rate": 0.0025343953656770456, + "mean_prediction": 0.001762087934362273, + "calibration_in_the_large": -0.0007723074313147726, + "expected_calibration_error_10bin": 0.0013595441259017314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 4, + "negatives": 2747, + "auroc": 0.9378412813978886, + "auprc": 0.11340579710144927, + "brier": 0.0014074151511121668, + "calibration": { + "observed_rate": 0.0014540167211922936, + "mean_prediction": 0.0017420146397375, + "calibration_in_the_large": 0.0002879979185452064, + "expected_calibration_error_10bin": 0.0005692441899074281, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.6058803025397395e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00019776864706041035, + "calibration_in_the_large": 0.00019776864706041035, + "expected_calibration_error_10bin": 0.00019776864706041035, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9270609318996416, + "auprc": 0.05804932114159046, + "brier": 0.000713923824567028, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.00019343344542442715, + "calibration_in_the_large": -0.0005228989327990685, + "expected_calibration_error_10bin": 0.0005228989327990685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.6508775071633238, + "auprc": 0.002593749079831189, + "brier": 0.0014307404213267038, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.00104716668959415, + "calibration_in_the_large": -0.0003834484749265939, + "expected_calibration_error_10bin": 0.0003834484749265939, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 15, + "negatives": 2648, + "auroc": 0.7989425981873112, + "auprc": 0.06311179021895702, + "brier": 0.0055140482917284935, + "calibration": { + "observed_rate": 0.005632745024408562, + "mean_prediction": 0.003471523227153722, + "calibration_in_the_large": -0.00216122179725484, + "expected_calibration_error_10bin": 0.00216122179725484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.7938571428571428, + "auprc": 0.020522710245201706, + "brier": 0.0017731414270002821, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0011577950674651859, + "calibration_in_the_large": -0.0006247361268307142, + "expected_calibration_error_10bin": 0.0006247361268307142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.1584966902663139e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022035126799965608, + "calibration_in_the_large": 0.00022035126799965608, + "expected_calibration_error_10bin": 0.00022035126799965608, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.9665041531238714, + "auprc": 0.024987902636417487, + "brier": 0.001444079209010744, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.001541965994858373, + "calibration_in_the_large": 9.948492742238297e-05, + "expected_calibration_error_10bin": 9.948492742238297e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 10, + "negatives": 2489, + "auroc": 0.8705905986339896, + "auprc": 0.03261745776159111, + "brier": 0.003948142158931945, + "calibration": { + "observed_rate": 0.004001600640256103, + "mean_prediction": 0.00626540086989594, + "calibration_in_the_large": 0.0022638002296398374, + "expected_calibration_error_10bin": 0.0022638002296398374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 20, + "negatives": 2666, + "auroc": 0.9023818454613654, + "auprc": 0.05689536452739091, + "brier": 0.007243505918275839, + "calibration": { + "observed_rate": 0.007446016381236039, + "mean_prediction": 0.004884992944576921, + "calibration_in_the_large": -0.0025610234366591177, + "expected_calibration_error_10bin": 0.0030993928096898615, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 37, + "negatives": 2397, + "auroc": 0.8442422397366077, + "auprc": 0.07210705466977518, + "brier": 0.014630338840942012, + "calibration": { + "observed_rate": 0.015201314708299097, + "mean_prediction": 0.010657417401403569, + "calibration_in_the_large": -0.004543897306895528, + "expected_calibration_error_10bin": 0.004543897306895527, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.9473870056497176, + "auprc": 0.006666666666666667, + "brier": 0.00035351201342593647, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.0002960062441259663, + "calibration_in_the_large": -5.697645972154515e-05, + "expected_calibration_error_10bin": 5.697645972154515e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 10, + "negatives": 2672, + "auroc": 0.8118263473053893, + "auprc": 0.02352776823903207, + "brier": 0.0037016898487893953, + "calibration": { + "observed_rate": 0.0037285607755406414, + "mean_prediction": 0.0023269443065633295, + "calibration_in_the_large": -0.001401616468977312, + "expected_calibration_error_10bin": 0.0015046461977131652, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 13, + "negatives": 2573, + "auroc": 0.888397261502586, + "auprc": 0.18673413044306947, + "brier": 0.004756964165320188, + "calibration": { + "observed_rate": 0.005027068832173241, + "mean_prediction": 0.003252915140080199, + "calibration_in_the_large": -0.0017741536920930418, + "expected_calibration_error_10bin": 0.0017741536920930407, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 5, + "negatives": 2782, + "auroc": 0.9108554996405464, + "auprc": 0.2734747313414348, + "brier": 0.0016741208887034193, + "calibration": { + "observed_rate": 0.001794043774668102, + "mean_prediction": 0.002006726110045989, + "calibration_in_the_large": 0.0002126823353778872, + "expected_calibration_error_10bin": 0.00037955081059050594, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 16, + "negatives": 2579, + "auroc": 0.7313639007367196, + "auprc": 0.03816807544229159, + "brier": 0.006085612723362515, + "calibration": { + "observed_rate": 0.006165703275529865, + "mean_prediction": 0.005383111613462562, + "calibration_in_the_large": -0.0007825916620673029, + "expected_calibration_error_10bin": 0.0007825916620673029, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 1.9504110524711797e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00025313025771450215, + "calibration_in_the_large": 0.00025313025771450215, + "expected_calibration_error_10bin": 0.00025313025771450215, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 2.49393718349922e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002851172042081186, + "calibration_in_the_large": 0.0002851172042081186, + "expected_calibration_error_10bin": 0.0002851172042081186, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9936418226774991, + "auprc": 0.05263157894736842, + "brier": 0.0003500363648031491, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 0.00017743002507566354, + "calibration_in_the_large": -0.00017567731955710482, + "expected_calibration_error_10bin": 0.00017567731955710482, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 1, + "negatives": 2836, + "auroc": 0.9732016925246827, + "auprc": 0.012987012987012988, + "brier": 0.0003535482707142341, + "calibration": { + "observed_rate": 0.00035248501938667606, + "mean_prediction": 0.00011698943559988827, + "calibration_in_the_large": -0.0002354955837867878, + "expected_calibration_error_10bin": 0.0002354955837867878, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 7, + "negatives": 2473, + "auroc": 0.8018023222228641, + "auprc": 0.017732046626330857, + "brier": 0.0028105494695815775, + "calibration": { + "observed_rate": 0.00282258064516129, + "mean_prediction": 0.0011538897573099083, + "calibration_in_the_large": -0.0016686908878513818, + "expected_calibration_error_10bin": 0.0016686908878513818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8083213083213083, + "auprc": 0.003740959024264235, + "brier": 0.0010802816832026522, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.0003224926221825323, + "calibration_in_the_large": -0.0007585884588985489, + "expected_calibration_error_10bin": 0.0007585884588985489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.16815263908701855, + "auprc": 0.0006329533404029693, + "brier": 0.0007128591907678174, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0002707396092122215, + "calibration_in_the_large": -0.00044201876569868373, + "expected_calibration_error_10bin": 0.00044201876569868373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 6, + "negatives": 2188, + "auroc": 0.6689518586227909, + "auprc": 0.09691164946092255, + "brier": 0.0027088117524846195, + "calibration": { + "observed_rate": 0.0027347310847766638, + "mean_prediction": 0.001781540918422069, + "calibration_in_the_large": -0.0009531901663545948, + "expected_calibration_error_10bin": 0.0009531901663545948, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.866785079928952, + "auprc": 0.0026595744680851063, + "brier": 0.00035565678608553286, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.000529907276890769, + "calibration_in_the_large": 0.00017479364052713265, + "expected_calibration_error_10bin": 0.00017479364052713265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9957340917170281, + "auprc": 0.07692307692307693, + "brier": 0.0003518865871810818, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0003504853018806943, + "calibration_in_the_large": -4.880725127123732e-06, + "expected_calibration_error_10bin": 4.880725127123732e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.7803977611051566, + "auprc": 0.0037127749724439048, + "brier": 0.001073924340486612, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0012962098788956, + "calibration_in_the_large": 0.00022554606733243073, + "expected_calibration_error_10bin": 0.00022554606733243073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 1.6168466677848494e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005976964605908547, + "calibration_in_the_large": 0.0005976964605908547, + "expected_calibration_error_10bin": 0.0005976964605908547, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 14, + "negatives": 2734, + "auroc": 0.8492005434214651, + "auprc": 0.02765113570834351, + "brier": 0.005032996836478632, + "calibration": { + "observed_rate": 0.005094614264919942, + "mean_prediction": 0.0024068306373253865, + "calibration_in_the_large": -0.0026877836275945553, + "expected_calibration_error_10bin": 0.0026877836275945553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 5, + "negatives": 2795, + "auroc": 0.6965295169946333, + "auprc": 0.006349736753300193, + "brier": 0.001787908007646576, + "calibration": { + "observed_rate": 0.0017857142857142857, + "mean_prediction": 0.00191872326959786, + "calibration_in_the_large": 0.00013300898388357444, + "expected_calibration_error_10bin": 0.00013300898388357444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 10, + "negatives": 2762, + "auroc": 0.7995655322230268, + "auprc": 0.015495024261074793, + "brier": 0.003649846071488665, + "calibration": { + "observed_rate": 0.0036075036075036075, + "mean_prediction": 0.0032254555206298764, + "calibration_in_the_large": -0.00038204808687373115, + "expected_calibration_error_10bin": 0.0010142311137885478, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.7170888333927934, + "auprc": 0.0012594458438287153, + "brier": 0.00035786702755048603, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0005190258466975556, + "calibration_in_the_large": 0.0001623924658131048, + "expected_calibration_error_10bin": 0.0001623924658131048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 9, + "negatives": 2728, + "auroc": 0.5514011078527208, + "auprc": 0.006838008830939466, + "brier": 0.003281853397602945, + "calibration": { + "observed_rate": 0.003288271830471319, + "mean_prediction": 0.0014658982630901616, + "calibration_in_the_large": -0.0018223735673811574, + "expected_calibration_error_10bin": 0.0018223735673811574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 9, + "negatives": 2362, + "auroc": 0.6844011666196256, + "auprc": 0.0090593506897659, + "brier": 0.0037862178593386815, + "calibration": { + "observed_rate": 0.003795866722901729, + "mean_prediction": 0.004008972380401721, + "calibration_in_the_large": 0.00021310565749999184, + "expected_calibration_error_10bin": 0.00021310565749999184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 13, + "negatives": 1559, + "auroc": 0.6505649578131939, + "auprc": 0.022021677065004477, + "brier": 0.008196228382127324, + "calibration": { + "observed_rate": 0.00826972010178117, + "mean_prediction": 0.004556850566526197, + "calibration_in_the_large": -0.003712869535254973, + "expected_calibration_error_10bin": 0.003712869535254973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.9588798298475718, + "auprc": 0.012468919116571595, + "brier": 0.0007107255635773872, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0005968366165036998, + "calibration_in_the_large": -0.00011162955423664738, + "expected_calibration_error_10bin": 0.00011162955423664738, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 14, + "negatives": 2639, + "auroc": 0.8563579277864992, + "auprc": 0.09500542299325898, + "brier": 0.005114152951362085, + "calibration": { + "observed_rate": 0.005277044854881266, + "mean_prediction": 0.004350992522730788, + "calibration_in_the_large": -0.0009260523321504783, + "expected_calibration_error_10bin": 0.0009260523321504783, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 26, + "negatives": 2561, + "auroc": 0.8578830384765567, + "auprc": 0.060116381553025594, + "brier": 0.009742095389834, + "calibration": { + "observed_rate": 0.010050251256281407, + "mean_prediction": 0.008050205270452141, + "calibration_in_the_large": -0.002000045985829266, + "expected_calibration_error_10bin": 0.002000045985829266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 31, + "negatives": 2154, + "auroc": 0.7800790726929643, + "auprc": 0.0784436533705389, + "brier": 0.013758015680869165, + "calibration": { + "observed_rate": 0.014187643020594966, + "mean_prediction": 0.009856586217791938, + "calibration_in_the_large": -0.004331056802803029, + "expected_calibration_error_10bin": 0.004365392460791342, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.9304667140488037, + "auprc": 0.054538388624167405, + "brier": 0.0010571743592389018, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0009069060769016688, + "calibration_in_the_large": -0.00015805664940291063, + "expected_calibration_error_10bin": 0.00015805664940291063, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 3, + "negatives": 2777, + "auroc": 0.9236586244148361, + "auprc": 0.01064889774567194, + "brier": 0.0010760496388824657, + "calibration": { + "observed_rate": 0.001079136690647482, + "mean_prediction": 0.0007180346966876426, + "calibration_in_the_large": -0.0003611019939598394, + "expected_calibration_error_10bin": 0.0003611019939598394, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 2.789564387404986e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005408052910941822, + "calibration_in_the_large": 0.0005408052910941822, + "expected_calibration_error_10bin": 0.0005408052910941822, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 5, + "negatives": 2734, + "auroc": 0.8626188734455011, + "auprc": 0.007680891144753066, + "brier": 0.001826608373357215, + "calibration": { + "observed_rate": 0.0018254837531945967, + "mean_prediction": 0.0013537355934144556, + "calibration_in_the_large": -0.0004717481597801411, + "expected_calibration_error_10bin": 0.0004717481597801411, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 1, + "negatives": 2749, + "auroc": 0.9796289559839941, + "auprc": 0.017543859649122806, + "brier": 0.0003737507919484238, + "calibration": { + "observed_rate": 0.0003636363636363636, + "mean_prediction": 0.0023020131557151343, + "calibration_in_the_large": 0.0019383767920787705, + "expected_calibration_error_10bin": 0.0019383767920787705, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.10328970640254687, + "auprc": 0.0003943217665615142, + "brier": 0.00035454213179898016, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0004999198047581016, + "calibration_in_the_large": 0.00014631301550774794, + "expected_calibration_error_10bin": 0.00014631301550774794, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 5, + "negatives": 2555, + "auroc": 0.8107240704500979, + "auprc": 0.02341157900639744, + "brier": 0.0019436071274090486, + "calibration": { + "observed_rate": 0.001953125, + "mean_prediction": 0.0018496105507345816, + "calibration_in_the_large": -0.00010351444926541835, + "expected_calibration_error_10bin": 0.00018771601008680245, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.9717756667884545, + "auprc": 0.07188297454688217, + "brier": 0.0014307590440489903, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.001354164307870403, + "calibration_in_the_large": -0.00010515710767137012, + "expected_calibration_error_10bin": 0.00027779684561473613, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 5, + "negatives": 2772, + "auroc": 0.9632034632034632, + "auprc": 0.028912839912929377, + "brier": 0.001780437227943789, + "calibration": { + "observed_rate": 0.0018005041411595247, + "mean_prediction": 0.0011276827604104018, + "calibration_in_the_large": -0.0006728213807491229, + "expected_calibration_error_10bin": 0.0006728213807491229, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9781710384477182, + "auprc": 0.03779684303230915, + "brier": 0.001425883741306164, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0003956764322294142, + "calibration_in_the_large": -0.0010395585875050675, + "expected_calibration_error_10bin": 0.0010395585875050675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9828840014189429, + "auprc": 0.04688930269999669, + "brier": 0.0014084577608623053, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0002545198114381391, + "calibration_in_the_large": -0.0011624125300425552, + "expected_calibration_error_10bin": 0.0011624125300425552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 13, + "negatives": 2413, + "auroc": 0.8842806592495777, + "auprc": 0.10468306074267117, + "brier": 0.0051265040211691424, + "calibration": { + "observed_rate": 0.0053586150041220115, + "mean_prediction": 0.004256265174991603, + "calibration_in_the_large": -0.0011023498291304083, + "expected_calibration_error_10bin": 0.0011023498291304076, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.9594514013118665, + "auprc": 0.18913165266106444, + "brier": 0.0020829099485776426, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.0007188739560998273, + "calibration_in_the_large": -0.001423218153860901, + "expected_calibration_error_10bin": 0.001423218153860901, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 0, + "negatives": 2808, + "auroc": null, + "auprc": null, + "brier": 2.9122801111730425e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001855501294859838, + "calibration_in_the_large": 0.0001855501294859838, + "expected_calibration_error_10bin": 0.0001855501294859838, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 1.1947669364650083e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00045510847299900175, + "calibration_in_the_large": 0.00045510847299900175, + "expected_calibration_error_10bin": 0.00045510847299900175, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9737402413058907, + "auprc": 0.013333333333333334, + "brier": 0.00035374238259533035, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0003215927091296587, + "calibration_in_the_large": -3.3143012757535335e-05, + "expected_calibration_error_10bin": 3.3143012757535335e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.7539540968010465, + "auprc": 0.0029547059774732883, + "brier": 0.0010686996008345206, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.00022445368163561238, + "calibration_in_the_large": -0.0008446838807307454, + "expected_calibration_error_10bin": 0.0008446838807307454, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 5, + "negatives": 2719, + "auroc": 0.8867230599485105, + "auprc": 0.01159910417630094, + "brier": 0.0018291176274762566, + "calibration": { + "observed_rate": 0.0018355359765051395, + "mean_prediction": 0.0013158394518279408, + "calibration_in_the_large": -0.0005196965246771987, + "expected_calibration_error_10bin": 0.0005196965246771987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 16, + "negatives": 2184, + "auroc": 0.7193509615384616, + "auprc": 0.022822080102917336, + "brier": 0.007263772685097458, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.009621254190308471, + "calibration_in_the_large": 0.0023485269175811986, + "expected_calibration_error_10bin": 0.0023485269175811986, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 6, + "negatives": 2794, + "auroc": 0.8084586017656884, + "auprc": 0.016356752654434616, + "brier": 0.0021338389183033434, + "calibration": { + "observed_rate": 0.002142857142857143, + "mean_prediction": 0.001619829669979416, + "calibration_in_the_large": -0.0005230274728777269, + "expected_calibration_error_10bin": 0.0005230274728777269, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.8382689556509298, + "auprc": 0.013396655772173059, + "brier": 0.0017788376630979196, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.0006400570704494078, + "calibration_in_the_large": -0.0011450196878511993, + "expected_calibration_error_10bin": 0.0011450196878511993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 16, + "negatives": 2231, + "auroc": 0.7467503361721202, + "auprc": 0.038404874177037696, + "brier": 0.006990769970967948, + "calibration": { + "observed_rate": 0.007120605251446373, + "mean_prediction": 0.010078284272839202, + "calibration_in_the_large": 0.0029576790213928297, + "expected_calibration_error_10bin": 0.0029576790213928297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.9204545454545454, + "auprc": 0.0727348247186053, + "brier": 0.002146696181371946, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0028461865448706713, + "calibration_in_the_large": 0.0006515998586965675, + "expected_calibration_error_10bin": 0.0006515998586965675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.9691051136363636, + "auprc": 0.02098108747044917, + "brier": 0.0007087976460963847, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.000972529354800076, + "calibration_in_the_large": 0.00026280614685117605, + "expected_calibration_error_10bin": 0.00026280614685117605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 3, + "negatives": 2772, + "auroc": 0.8943001443001443, + "auprc": 0.008337523043405397, + "brier": 0.0010794455065094091, + "calibration": { + "observed_rate": 0.001081081081081081, + "mean_prediction": 0.0002867644295398956, + "calibration_in_the_large": -0.0007943166515411856, + "expected_calibration_error_10bin": 0.0007943166515411856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9808871258564731, + "auprc": 0.018518518518518517, + "brier": 0.000359278336777215, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007275708534244811, + "calibration_in_the_large": 0.00036708058666168374, + "expected_calibration_error_10bin": 0.00036708058666168374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 0, + "negatives": 2802, + "auroc": null, + "auprc": null, + "brier": 1.4189361376923245e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005797892708377408, + "calibration_in_the_large": 0.0005797892708377408, + "expected_calibration_error_10bin": 0.0005797892708377408, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7521163047478837, + "auprc": 0.012992131846622653, + "brier": 0.0021950328862586827, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.0013683705230286333, + "calibration_in_the_large": -0.0008350815518887375, + "expected_calibration_error_10bin": 0.0008350815518887375, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 3, + "negatives": 2722, + "auroc": 0.6274797942689199, + "auprc": 0.002036223263844747, + "brier": 0.0011013721372727366, + "calibration": { + "observed_rate": 0.0011009174311926607, + "mean_prediction": 0.0008096478246243184, + "calibration_in_the_large": -0.00029126960656834225, + "expected_calibration_error_10bin": 0.00029126960656834225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 1, + "negatives": 2804, + "auroc": 0.7639087018544936, + "auprc": 0.0015082956259426848, + "brier": 0.00035719356074638775, + "calibration": { + "observed_rate": 0.00035650623885918, + "mean_prediction": 0.0005155734882529306, + "calibration_in_the_large": 0.00015906724939375054, + "expected_calibration_error_10bin": 0.00015906724939375054, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 23, + "negatives": 2292, + "auroc": 0.7257948251005387, + "auprc": 0.028670343494278522, + "brier": 0.009787229607902567, + "calibration": { + "observed_rate": 0.009935205183585313, + "mean_prediction": 0.006212869860896236, + "calibration_in_the_large": -0.003722335322689077, + "expected_calibration_error_10bin": 0.003722335322689077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 4.04395088914286e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001079830489315682, + "calibration_in_the_large": 0.0001079830489315682, + "expected_calibration_error_10bin": 0.0001079830489315682, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8915556018325698, + "auprc": 0.055961269420459356, + "brier": 0.002509092535820527, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.0012869254881768006, + "calibration_in_the_large": -0.0012576037739097136, + "expected_calibration_error_10bin": 0.0012576037739097136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.7326051779935275, + "auprc": 0.06888920652631299, + "brier": 0.002859410665454107, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0005273949556610422, + "calibration_in_the_large": -0.0023410166614060072, + "expected_calibration_error_10bin": 0.0023410166614060072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.6213248317392844, + "auprc": 0.0009345794392523365, + "brier": 0.0003546121196376694, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0003059817517677526, + "calibration_in_the_large": -4.81258969574599e-05, + "expected_calibration_error_10bin": 4.81258969574599e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 15, + "negatives": 2522, + "auroc": 0.7506212001057362, + "auprc": 0.015780138790796552, + "brier": 0.00591516600715013, + "calibration": { + "observed_rate": 0.005912495072920773, + "mean_prediction": 0.007280916939164721, + "calibration_in_the_large": 0.001368421866243948, + "expected_calibration_error_10bin": 0.0013684218662439488, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 5.111124229490292e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00037489491573360236, + "calibration_in_the_large": 0.00037489491573360236, + "expected_calibration_error_10bin": 0.00037489491573360236, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.7314034444851594, + "auprc": 0.011873575675710277, + "brier": 0.001471586186346365, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0029037749267416227, + "calibration_in_the_large": 0.001440181805629292, + "expected_calibration_error_10bin": 0.001440181805629292, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 9, + "negatives": 2647, + "auroc": 0.812911891869202, + "auprc": 0.01699784879890391, + "brier": 0.003362048405631859, + "calibration": { + "observed_rate": 0.00338855421686747, + "mean_prediction": 0.0022637338679960136, + "calibration_in_the_large": -0.0011248203488714564, + "expected_calibration_error_10bin": 0.0011248203488714564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 2.136545021451626e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 5.871619791738563e-05, + "calibration_in_the_large": 5.871619791738563e-05, + "expected_calibration_error_10bin": 5.871619791738563e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 0, + "negatives": 2832, + "auroc": null, + "auprc": null, + "brier": 7.768654585364987e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001437151640886642, + "calibration_in_the_large": 0.0001437151640886642, + "expected_calibration_error_10bin": 0.0001437151640886642, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.8802910094203017e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00026007737844681446, + "calibration_in_the_large": 0.00026007737844681446, + "expected_calibration_error_10bin": 0.00026007737844681446, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5672493756689262, + "auprc": 0.0033795309252548787, + "brier": 0.001068625306807003, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.00017514759164507338, + "calibration_in_the_large": -0.0008939899707212845, + "expected_calibration_error_10bin": 0.0008939899707212845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 3, + "negatives": 2747, + "auroc": 0.8212595558791409, + "auprc": 0.01678449883640132, + "brier": 0.00108523266226327, + "calibration": { + "observed_rate": 0.001090909090909091, + "mean_prediction": 0.0008929772925742286, + "calibration_in_the_large": -0.00019793179833486234, + "expected_calibration_error_10bin": 0.00019793179833486234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.6248056452577443, + "auprc": 0.005494595518067751, + "brier": 0.001073643236115158, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0009120238169255386, + "calibration_in_the_large": -0.0001632450002787625, + "expected_calibration_error_10bin": 0.0001632450002787625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.6175213675213675, + "auprc": 0.0009302325581395349, + "brier": 0.00035638878122092954, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.00042258451414740184, + "calibration_in_the_large": 6.658593814170584e-05, + "expected_calibration_error_10bin": 6.658593814170584e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 1, + "negatives": 2790, + "auroc": 0.6627240143369175, + "auprc": 0.0010615711252653928, + "brier": 0.00035831915741713316, + "calibration": { + "observed_rate": 0.00035829451809387314, + "mean_prediction": 0.00031813305934348787, + "calibration_in_the_large": -4.0161458750385265e-05, + "expected_calibration_error_10bin": 4.0161458750385265e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 0, + "negatives": 2823, + "auroc": null, + "auprc": null, + "brier": 5.029841087272284e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00021209917223988744, + "calibration_in_the_large": 0.00021209917223988744, + "expected_calibration_error_10bin": 0.00021209917223988744, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 1, + "negatives": 2766, + "auroc": 0.9446854663774403, + "auprc": 0.006493506493506494, + "brier": 0.0003904019334845525, + "calibration": { + "observed_rate": 0.0003614022406938923, + "mean_prediction": 0.0019198934216614564, + "calibration_in_the_large": 0.001558491180967564, + "expected_calibration_error_10bin": 0.001558491180967564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 14, + "negatives": 1484, + "auroc": 0.6343858298036196, + "auprc": 0.028674451654377136, + "brier": 0.009247656130061689, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.004415204633730412, + "calibration_in_the_large": -0.004930589758792952, + "expected_calibration_error_10bin": 0.004930589758792952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 8, + "negatives": 2668, + "auroc": 0.8047694902548725, + "auprc": 0.016181598188569155, + "brier": 0.0029672455350680882, + "calibration": { + "observed_rate": 0.0029895366218236174, + "mean_prediction": 0.002103450915795603, + "calibration_in_the_large": -0.0008860857060280143, + "expected_calibration_error_10bin": 0.0008860857060280143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 8, + "negatives": 2544, + "auroc": 0.8406544811320755, + "auprc": 0.05417111295717488, + "brier": 0.0030962694808782483, + "calibration": { + "observed_rate": 0.003134796238244514, + "mean_prediction": 0.0012271507825746225, + "calibration_in_the_large": -0.0019076454556698915, + "expected_calibration_error_10bin": 0.0019076454556698915, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 4, + "negatives": 2723, + "auroc": 0.8524605214836577, + "auprc": 0.017928021287804574, + "brier": 0.001468873747455631, + "calibration": { + "observed_rate": 0.0014668133480014668, + "mean_prediction": 0.0021252661036191547, + "calibration_in_the_large": 0.0006584527556176879, + "expected_calibration_error_10bin": 0.0006584527556176879, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 1, + "negatives": 2389, + "auroc": 0.9514441188781917, + "auprc": 0.008547008547008548, + "brier": 0.0004177283404511363, + "calibration": { + "observed_rate": 0.00041841004184100416, + "mean_prediction": 0.00033155725387612364, + "calibration_in_the_large": -8.685278796488052e-05, + "expected_calibration_error_10bin": 8.685278796488052e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 3, + "negatives": 2668, + "auroc": 0.9237881059470265, + "auprc": 0.053037509559248686, + "brier": 0.0011120230611768006, + "calibration": { + "observed_rate": 0.0011231748408835642, + "mean_prediction": 0.0016423587837927718, + "calibration_in_the_large": 0.0005191839429092076, + "expected_calibration_error_10bin": 0.0005191839429092076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9846866096866097, + "auprc": 0.022727272727272728, + "brier": 0.00035434798766959165, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.00045397631061318814, + "calibration_in_the_large": 9.797773460749215e-05, + "expected_calibration_error_10bin": 9.797773460749215e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 13, + "negatives": 2230, + "auroc": 0.8406347016212488, + "auprc": 0.03495815398020725, + "brier": 0.0057233777624842745, + "calibration": { + "observed_rate": 0.0057958091841284, + "mean_prediction": 0.002970403364323449, + "calibration_in_the_large": -0.002825405819804951, + "expected_calibration_error_10bin": 0.002825405819804951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 3, + "negatives": 2757, + "auroc": 0.863619876677548, + "auprc": 0.08115517879368923, + "brier": 0.001073015843591932, + "calibration": { + "observed_rate": 0.0010869565217391304, + "mean_prediction": 0.0013495614747705037, + "calibration_in_the_large": 0.00026260495303137327, + "expected_calibration_error_10bin": 0.00026260495303137327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 6, + "negatives": 2710, + "auroc": 0.9146371463714638, + "auprc": 0.01720430485694862, + "brier": 0.002202385477118469, + "calibration": { + "observed_rate": 0.0022091310751104565, + "mean_prediction": 0.0023810054237250406, + "calibration_in_the_large": 0.00017187434861458406, + "expected_calibration_error_10bin": 0.00017187434861458406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.7894406597346719, + "auprc": 0.006310341014057039, + "brier": 0.001429833605285596, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.001255001568760041, + "calibration_in_the_large": -0.00017715023933161686, + "expected_calibration_error_10bin": 0.00017715023933161686, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 4, + "negatives": 2749, + "auroc": 0.667697344488905, + "auprc": 0.003282904721201381, + "brier": 0.0014569860579384459, + "calibration": { + "observed_rate": 0.001452960406828914, + "mean_prediction": 0.000984003980701287, + "calibration_in_the_large": -0.0004689564261276271, + "expected_calibration_error_10bin": 0.0004689564261276271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 2, + "negatives": 2721, + "auroc": 0.3647556045571481, + "auprc": 0.0008541710321063537, + "brier": 0.0007396774808439319, + "calibration": { + "observed_rate": 0.0007344840249724568, + "mean_prediction": 0.000962305623868373, + "calibration_in_the_large": 0.00022782159889591616, + "expected_calibration_error_10bin": 0.00022782159889591616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 1, + "negatives": 2739, + "auroc": 0.9496166484118291, + "auprc": 0.007194244604316547, + "brier": 0.00036744187886827604, + "calibration": { + "observed_rate": 0.000364963503649635, + "mean_prediction": 0.0009192264295732824, + "calibration_in_the_large": 0.0005542629259236475, + "expected_calibration_error_10bin": 0.0005542629259236475, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 4, + "negatives": 2718, + "auroc": 0.8777593818984547, + "auprc": 0.026151345927334615, + "brier": 0.001468267959976231, + "calibration": { + "observed_rate": 0.0014695077149155032, + "mean_prediction": 0.002243746707810837, + "calibration_in_the_large": 0.0007742389928953337, + "expected_calibration_error_10bin": 0.0007742389928953337, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 2, + "negatives": 2764, + "auroc": 0.8286903039073806, + "auprc": 0.01425438596491228, + "brier": 0.0007211996298986983, + "calibration": { + "observed_rate": 0.0007230657989877079, + "mean_prediction": 0.0012187713863517568, + "calibration_in_the_large": 0.0004957055873640489, + "expected_calibration_error_10bin": 0.0004957055873640489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 5.0019466603386e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003059369418073555, + "calibration_in_the_large": 0.0003059369418073555, + "expected_calibration_error_10bin": 0.0003059369418073555, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 3, + "negatives": 2713, + "auroc": 0.8348691485440471, + "auprc": 0.004474168869188452, + "brier": 0.0011038645691596736, + "calibration": { + "observed_rate": 0.0011045655375552283, + "mean_prediction": 0.0014446687141678757, + "calibration_in_the_large": 0.0003401031766126475, + "expected_calibration_error_10bin": 0.0003401031766126475, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 7, + "negatives": 2378, + "auroc": 0.8301093355761143, + "auprc": 0.011214523944068569, + "brier": 0.0029212691386601777, + "calibration": { + "observed_rate": 0.0029350104821802936, + "mean_prediction": 0.0020165608684177606, + "calibration_in_the_large": -0.000918449613762533, + "expected_calibration_error_10bin": 0.000918449613762533, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 4, + "negatives": 2730, + "auroc": 0.7034798534798535, + "auprc": 0.004346319249218309, + "brier": 0.0014614317568622686, + "calibration": { + "observed_rate": 0.001463057790782736, + "mean_prediction": 0.0004379192944997335, + "calibration_in_the_large": -0.0010251384962830024, + "expected_calibration_error_10bin": 0.0010251384962830024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 7, + "negatives": 2408, + "auroc": 0.8217252017085904, + "auprc": 0.06531938748299325, + "brier": 0.002849535361938805, + "calibration": { + "observed_rate": 0.002898550724637681, + "mean_prediction": 0.0029511832355768905, + "calibration_in_the_large": 5.2632510939209284e-05, + "expected_calibration_error_10bin": 5.263251093920902e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 2, + "negatives": 2805, + "auroc": 0.6982174688057041, + "auprc": 0.001802077613255516, + "brier": 0.0007123118798254265, + "calibration": { + "observed_rate": 0.0007125044531528322, + "mean_prediction": 0.0004981202908761235, + "calibration_in_the_large": -0.00021438416227670864, + "expected_calibration_error_10bin": 0.00021438416227670864, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9167857142857143, + "auprc": 0.006214541654225142, + "brier": 0.0007131966738652288, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.00016479779764666001, + "calibration_in_the_large": -0.0005489780767287861, + "expected_calibration_error_10bin": 0.0005489780767287861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 4, + "negatives": 2731, + "auroc": 0.7954961552544856, + "auprc": 0.007761891236835319, + "brier": 0.0014581265729172288, + "calibration": { + "observed_rate": 0.0014625228519195613, + "mean_prediction": 0.0009771221078225254, + "calibration_in_the_large": -0.0004854007440970359, + "expected_calibration_error_10bin": 0.0004854007440970359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 7.520101910703062e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005279835088440607, + "calibration_in_the_large": 0.0005279835088440607, + "expected_calibration_error_10bin": 0.0005279835088440607, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8455431252255503, + "auprc": 0.0037237805043937207, + "brier": 0.0007209459518018834, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0005956568879305948, + "calibration_in_the_large": -0.0001255836457874002, + "expected_calibration_error_10bin": 0.0001255836457874002, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 4, + "negatives": 2748, + "auroc": 0.8523471615720524, + "auprc": 0.031696095330173465, + "brier": 0.0014428672451948033, + "calibration": { + "observed_rate": 0.0014534883720930232, + "mean_prediction": 0.0018498834115883362, + "calibration_in_the_large": 0.00039639503949531296, + "expected_calibration_error_10bin": 0.00039639503949531296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.8990610328638498, + "auprc": 0.007562442183163737, + "brier": 0.0007204660663763765, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.0006473194004738777, + "calibration_in_the_large": -7.444169660298977e-05, + "expected_calibration_error_10bin": 7.444169660298977e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 1, + "negatives": 2768, + "auroc": 0.9757947976878613, + "auprc": 0.014705882352941176, + "brier": 0.0003596613281460906, + "calibration": { + "observed_rate": 0.00036114120621162876, + "mean_prediction": 0.0005464840844956456, + "calibration_in_the_large": 0.00018534287828401682, + "expected_calibration_error_10bin": 0.00018534287828401682, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5296519886363636, + "auprc": 0.0038236998327302145, + "brier": 0.0007092542034887337, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0004349869353279047, + "calibration_in_the_large": -0.00027473627262099526, + "expected_calibration_error_10bin": 0.00027473627262099526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.7021587998536407, + "auprc": 0.001226993865030675, + "brier": 0.00036875962116947726, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0007190237398138859, + "calibration_in_the_large": 0.0003532592921182019, + "expected_calibration_error_10bin": 0.0003532592921182019, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.7316424263923377, + "auprc": 0.10066181336863005, + "brier": 0.0007075718522892451, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.00018193563525435052, + "calibration_in_the_large": -0.0005270328156495843, + "expected_calibration_error_10bin": 0.0005270328156495843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.39202299676607977, + "auprc": 0.0008811035972931628, + "brier": 0.0007182844567052406, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.00035309897980017924, + "calibration_in_the_large": -0.00036503387477791776, + "expected_calibration_error_10bin": 0.00036503387477791776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.5867256637168141, + "auprc": 0.0014108330450159534, + "brier": 0.0007094210862918497, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0003419442077343806, + "calibration_in_the_large": -0.00036551953474881713, + "expected_calibration_error_10bin": 0.00036551953474881713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8572820694542878, + "auprc": 0.012211697297806634, + "brier": 0.001415260005343722, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0004855864941600901, + "calibration_in_the_large": -0.0009298416728604336, + "expected_calibration_error_10bin": 0.0009298416728604336, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 6, + "negatives": 2733, + "auroc": 0.6717892425905598, + "auprc": 0.013932892616342998, + "brier": 0.002181895484036691, + "calibration": { + "observed_rate": 0.002190580503833516, + "mean_prediction": 0.0015809593053789793, + "calibration_in_the_large": -0.0006096211984545365, + "expected_calibration_error_10bin": 0.0006096211984545365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 1, + "negatives": 2792, + "auroc": 0.9749283667621776, + "auprc": 0.014084507042253521, + "brier": 0.000407097276253629, + "calibration": { + "observed_rate": 0.00035803795202291446, + "mean_prediction": 0.0005722088716959762, + "calibration_in_the_large": 0.00021417091967306174, + "expected_calibration_error_10bin": 0.0002141709196730618, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.8148414985590778, + "auprc": 0.008816266267800403, + "brier": 0.0014346539590263687, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0009378952756095576, + "calibration_in_the_large": -0.0005009536452537517, + "expected_calibration_error_10bin": 0.0005009536452537517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 1, + "negatives": 2825, + "auroc": 0.9596460176991151, + "auprc": 0.008695652173913044, + "brier": 0.0003533621446556422, + "calibration": { + "observed_rate": 0.00035385704175513094, + "mean_prediction": 0.0001692427049050372, + "calibration_in_the_large": -0.00018461433685009374, + "expected_calibration_error_10bin": 0.00018461433685009374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 19, + "negatives": 2466, + "auroc": 0.7463183506210782, + "auprc": 0.03386900184748469, + "brier": 0.007534350791958531, + "calibration": { + "observed_rate": 0.007645875251509054, + "mean_prediction": 0.006025067724276852, + "calibration_in_the_large": -0.0016208075272322016, + "expected_calibration_error_10bin": 0.0016208075272322016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 6.458149316097419e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003072230502190431, + "calibration_in_the_large": 0.0003072230502190431, + "expected_calibration_error_10bin": 0.0003072230502190431, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8927266081871345, + "auprc": 0.0301053384269963, + "brier": 0.0014494237362125695, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0008644309555849599, + "calibration_in_the_large": -0.0005954230590135801, + "expected_calibration_error_10bin": 0.0005954230590135801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 4.1690671598758185e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034703257176204764, + "calibration_in_the_large": 0.00034703257176204764, + "expected_calibration_error_10bin": 0.00034703257176204764, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.4397868561278863, + "auprc": 0.0006337135614702154, + "brier": 0.0003608868242483996, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.000609474395954258, + "calibration_in_the_large": 0.00025436075959062165, + "expected_calibration_error_10bin": 0.00025436075959062165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.2858493068348036e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000414937873621224, + "calibration_in_the_large": 0.000414937873621224, + "expected_calibration_error_10bin": 0.000414937873621224, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 1, + "negatives": 2794, + "auroc": 0.9226914817465999, + "auprc": 0.004608294930875576, + "brier": 0.0003629582016705506, + "calibration": { + "observed_rate": 0.00035778175313059033, + "mean_prediction": 0.0010733148037067543, + "calibration_in_the_large": 0.0007155330505761639, + "expected_calibration_error_10bin": 0.0007155330505761639, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.8201853243175558, + "auprc": 0.01386407488673623, + "brier": 0.0033563587338244394, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.0036824245178323813, + "calibration_in_the_large": 0.0003128999951816885, + "expected_calibration_error_10bin": 0.0003128999951816885, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 0, + "negatives": 2815, + "auroc": null, + "auprc": null, + "brier": 1.4704135087027062e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006984673529325169, + "calibration_in_the_large": 0.0006984673529325169, + "expected_calibration_error_10bin": 0.0006984673529325169, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.8946251768033946, + "auprc": 0.0033444816053511705, + "brier": 0.0003537507383684846, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00024227275253547613, + "calibration_in_the_large": -0.00011120904315204598, + "expected_calibration_error_10bin": 0.00011120904315204598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5623229461756374, + "auprc": 0.0008084074373484236, + "brier": 0.0003544860193691522, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0003728699825322601, + "calibration_in_the_large": 1.888768164730434e-05, + "expected_calibration_error_10bin": 1.888768164730434e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.2001427042454513, + "auprc": 0.00044583147570218456, + "brier": 0.0003572710124845071, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.000510212572816111, + "calibration_in_the_large": 0.00015357919193166017, + "expected_calibration_error_10bin": 0.00015357919193166017, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 6, + "negatives": 2564, + "auroc": 0.84431877275091, + "auprc": 0.012299597359091216, + "brier": 0.002322424100428021, + "calibration": { + "observed_rate": 0.0023346303501945525, + "mean_prediction": 0.0017443119923091094, + "calibration_in_the_large": -0.0005903183578854431, + "expected_calibration_error_10bin": 0.0005903183578854431, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 9, + "negatives": 2509, + "auroc": 0.6534254461715602, + "auprc": 0.00934876263338275, + "brier": 0.0035606375960947016, + "calibration": { + "observed_rate": 0.003574265289912629, + "mean_prediction": 0.0025939180057847114, + "calibration_in_the_large": -0.0009803472841279177, + "expected_calibration_error_10bin": 0.0009803472841279177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 1.8510524178489052e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00016676559268403917, + "calibration_in_the_large": 0.00016676559268403917, + "expected_calibration_error_10bin": 0.00016676559268403917, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 6, + "negatives": 2771, + "auroc": 0.8944424395525081, + "auprc": 0.012030076258214744, + "brier": 0.002149349165275692, + "calibration": { + "observed_rate": 0.0021606049693914295, + "mean_prediction": 0.001510972409052702, + "calibration_in_the_large": -0.0006496325603387275, + "expected_calibration_error_10bin": 0.0006496325603387275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7239913544668588, + "auprc": 0.008217452851163855, + "brier": 0.0017940178647765839, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0006150711478605041, + "calibration_in_the_large": -0.0011828432714131383, + "expected_calibration_error_10bin": 0.0011828432714131383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.8909527195165304, + "auprc": 0.009432486179931482, + "brier": 0.0014177774807302857, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.0002600862724332153, + "calibration_in_the_large": -0.0011598640293062237, + "expected_calibration_error_10bin": 0.0011598640293062237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 11, + "negatives": 2743, + "auroc": 0.6463394425479734, + "auprc": 0.007685755304233535, + "brier": 0.003984790720268511, + "calibration": { + "observed_rate": 0.0039941902687000725, + "mean_prediction": 0.002376966746546413, + "calibration_in_the_large": -0.0016172235221536594, + "expected_calibration_error_10bin": 0.0016172235221536594, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 1, + "negatives": 2806, + "auroc": 0.84248039914469, + "auprc": 0.002257336343115124, + "brier": 0.00036155498836954527, + "calibration": { + "observed_rate": 0.0003562522265764161, + "mean_prediction": 0.0007439018894640633, + "calibration_in_the_large": 0.00038764966288764723, + "expected_calibration_error_10bin": 0.00038764966288764723, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.7423893805309735, + "auprc": 0.005462864435851475, + "brier": 0.0014141639207278685, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0002554291709355425, + "calibration_in_the_large": -0.0011584980118145459, + "expected_calibration_error_10bin": 0.0011584980118145459, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 5, + "negatives": 2765, + "auroc": 0.8001446654611212, + "auprc": 0.025010183292870736, + "brier": 0.001796128189106059, + "calibration": { + "observed_rate": 0.0018050541516245488, + "mean_prediction": 0.0007168081158820134, + "calibration_in_the_large": -0.0010882460357425354, + "expected_calibration_error_10bin": 0.0010882460357425354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 10, + "negatives": 2595, + "auroc": 0.8930635838150289, + "auprc": 0.12137733119564179, + "brier": 0.00374733690955264, + "calibration": { + "observed_rate": 0.003838771593090211, + "mean_prediction": 0.00420495535322996, + "calibration_in_the_large": 0.00036618376013974885, + "expected_calibration_error_10bin": 0.0009587394006660794, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 6, + "negatives": 2686, + "auroc": 0.6657359146190122, + "auprc": 0.00571634253974541, + "brier": 0.0022237663288466793, + "calibration": { + "observed_rate": 0.002228826151560178, + "mean_prediction": 0.0018873270523838605, + "calibration_in_the_large": -0.00034149909917631765, + "expected_calibration_error_10bin": 0.00034149909917631765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.0093165413794704e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 6.245923916231131e-05, + "calibration_in_the_large": 6.245923916231131e-05, + "expected_calibration_error_10bin": 6.245923916231131e-05, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9920269312544295, + "auprc": 0.061669829222011384, + "brier": 0.0006878326010127899, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.000631289234375956, + "calibration_in_the_large": -7.692606307446899e-05, + "expected_calibration_error_10bin": 7.692606307446899e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.6728307254623044, + "auprc": 0.0010857763300760044, + "brier": 0.0003612224315526707, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0011794035439365125, + "calibration_in_the_large": 0.0008239111870221861, + "expected_calibration_error_10bin": 0.0008239111870221861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 16, + "negatives": 2027, + "auroc": 0.7779353724716329, + "auprc": 0.054357036680343834, + "brier": 0.007700230040041801, + "calibration": { + "observed_rate": 0.00783162016642193, + "mean_prediction": 0.008113730584559697, + "calibration_in_the_large": 0.0002821104181377678, + "expected_calibration_error_10bin": 0.0002821104181377678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 1, + "negatives": 2763, + "auroc": 0.9916757148027506, + "auprc": 0.041666666666666664, + "brier": 0.00035993428512848193, + "calibration": { + "observed_rate": 0.000361794500723589, + "mean_prediction": 0.0011455995104424524, + "calibration_in_the_large": 0.0007838050097188633, + "expected_calibration_error_10bin": 0.0007838050097188633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.8952042628774423, + "auprc": 0.004996809334974247, + "brier": 0.0007105723707504705, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0005314990603676528, + "calibration_in_the_large": -0.00017847609050206678, + "expected_calibration_error_10bin": 0.00017847609050206678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 5.47236526031866e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00042150795609829456, + "calibration_in_the_large": 0.00042150795609829456, + "expected_calibration_error_10bin": 0.00042150795609829456, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 8.0150037786114e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001624128601311696, + "calibration_in_the_large": 0.001624128601311696, + "expected_calibration_error_10bin": 0.001624128601311696, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 6.705253531077001e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00034521978328568606, + "calibration_in_the_large": 0.00034521978328568606, + "expected_calibration_error_10bin": 0.00034521978328568606, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 3, + "negatives": 2753, + "auroc": 0.9434556241675748, + "auprc": 0.07617209045780475, + "brier": 0.001069479871143472, + "calibration": { + "observed_rate": 0.0010885341074020319, + "mean_prediction": 0.0011548097758375276, + "calibration_in_the_large": 6.627566843549573e-05, + "expected_calibration_error_10bin": 6.627566843549573e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 9.806029122006247e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022361855712425095, + "calibration_in_the_large": 0.00022361855712425095, + "expected_calibration_error_10bin": 0.00022361855712425095, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7350958126330731, + "auprc": 0.0034241004619688983, + "brier": 0.0007093646757162908, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00023589205893457033, + "calibration_in_the_large": -0.00047332779922145806, + "expected_calibration_error_10bin": 0.00047332779922145806, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.9665718349928877, + "auprc": 0.010526315789473684, + "brier": 0.0003549539676227192, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.00015920819380051062, + "calibration_in_the_large": -0.00019628416311381571, + "expected_calibration_error_10bin": 0.00019628416311381571, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5337643678160919, + "auprc": 0.0007698229407236335, + "brier": 0.00035988664020889796, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0006070641934106699, + "calibration_in_the_large": 0.0002479977661216214, + "expected_calibration_error_10bin": 0.0002479977661216214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 4, + "negatives": 2745, + "auroc": 0.9003642987249545, + "auprc": 0.02516110783275896, + "brier": 0.0014443369495098794, + "calibration": { + "observed_rate": 0.0014550745725718443, + "mean_prediction": 0.001736705118728774, + "calibration_in_the_large": 0.00028163054615692974, + "expected_calibration_error_10bin": 0.00028163054615692974, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 2, + "negatives": 2813, + "auroc": 0.8421613935300392, + "auprc": 0.003301274905243529, + "brier": 0.000712416952637116, + "calibration": { + "observed_rate": 0.0007104795737122557, + "mean_prediction": 0.0006977661078747879, + "calibration_in_the_large": -1.2713465837467801e-05, + "expected_calibration_error_10bin": 1.2713465837467801e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 7, + "negatives": 2738, + "auroc": 0.7875926119169362, + "auprc": 0.030671337554288657, + "brier": 0.002526174636370255, + "calibration": { + "observed_rate": 0.0025500910746812386, + "mean_prediction": 0.002183240262656942, + "calibration_in_the_large": -0.0003668508120242965, + "expected_calibration_error_10bin": 0.0003668508120242965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 3, + "negatives": 2738, + "auroc": 0.6411005600194789, + "auprc": 0.0032235100819078765, + "brier": 0.0010961133236898307, + "calibration": { + "observed_rate": 0.0010944910616563297, + "mean_prediction": 0.0011270702465795213, + "calibration_in_the_large": 3.257918492319159e-05, + "expected_calibration_error_10bin": 3.257918492319159e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.5617306083422972, + "auprc": 0.001962263662741761, + "brier": 0.0010743913497801168, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0005785918191200147, + "calibration_in_the_large": -0.0004959067482152289, + "expected_calibration_error_10bin": 0.0004959067482152289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 29, + "negatives": 2531, + "auroc": 0.6672434229349173, + "auprc": 0.029992722693990496, + "brier": 0.011174283372451861, + "calibration": { + "observed_rate": 0.011328125, + "mean_prediction": 0.006097065146909131, + "calibration_in_the_large": -0.0052310598530908685, + "expected_calibration_error_10bin": 0.0052310598530908685, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.722972972972973, + "auprc": 0.001282051282051282, + "brier": 0.0003562399872231245, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.0007699194421498405, + "calibration_in_the_large": 0.00041442708523551416, + "expected_calibration_error_10bin": 0.00041442708523551416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.5778133903133903, + "auprc": 0.0043514859750667855, + "brier": 0.0007110808862375645, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0007529270446031524, + "calibration_in_the_large": 4.1183272361159425e-05, + "expected_calibration_error_10bin": 4.1183272361159425e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 2, + "negatives": 2799, + "auroc": 0.886030725259021, + "auprc": 0.004559052536677322, + "brier": 0.000717654211739943, + "calibration": { + "observed_rate": 0.0007140307033202428, + "mean_prediction": 0.0010913709022733896, + "calibration_in_the_large": 0.0003773401989531468, + "expected_calibration_error_10bin": 0.0003773401989531468, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8526353276353277, + "auprc": 0.01564077066924638, + "brier": 0.001785722149295288, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0021178455035941062, + "calibration_in_the_large": 0.00034038371902247446, + "expected_calibration_error_10bin": 0.0003403837190224746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.8701252236135957, + "auprc": 0.0027472527472527475, + "brier": 0.00035816348409510666, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.000500759011155006, + "calibration_in_the_large": 0.00014310522002482, + "expected_calibration_error_10bin": 0.00014310522002482, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 0, + "negatives": 2774, + "auroc": null, + "auprc": null, + "brier": 2.282250210367807e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00025707961603215813, + "calibration_in_the_large": 0.00025707961603215813, + "expected_calibration_error_10bin": 0.00025707961603215813, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.9846388789076536, + "auprc": 0.08596681096681097, + "brier": 0.0014144143371331215, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.0010370484097108159, + "calibration_in_the_large": -0.0003981866100236657, + "expected_calibration_error_10bin": 0.000547002587413135, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 1, + "negatives": 2762, + "auroc": 0.9916727009413469, + "auprc": 0.041666666666666664, + "brier": 0.0003796305300943236, + "calibration": { + "observed_rate": 0.0003619254433586681, + "mean_prediction": 0.0010228243245070875, + "calibration_in_the_large": 0.0006608988811484195, + "expected_calibration_error_10bin": 0.0006608988811484195, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 2, + "negatives": 2796, + "auroc": 0.9261444921316166, + "auprc": 0.00985142118863049, + "brier": 0.0007152608857999266, + "calibration": { + "observed_rate": 0.0007147962830593281, + "mean_prediction": 0.000500942560864014, + "calibration_in_the_large": -0.00021385372219531414, + "expected_calibration_error_10bin": 0.00021385372219531414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 10, + "negatives": 2671, + "auroc": 0.8519655559715462, + "auprc": 0.2586416318301815, + "brier": 0.003357868442438621, + "calibration": { + "observed_rate": 0.003729951510630362, + "mean_prediction": 0.00126538240740721, + "calibration_in_the_large": -0.002464569103223152, + "expected_calibration_error_10bin": 0.002464569103223152, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 2, + "negatives": 2729, + "auroc": 0.7834371564675705, + "auprc": 0.003942831850160741, + "brier": 0.0007319864324804138, + "calibration": { + "observed_rate": 0.0007323324789454412, + "mean_prediction": 0.0006697168764054988, + "calibration_in_the_large": -6.261560253994233e-05, + "expected_calibration_error_10bin": 6.261560253994233e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 0, + "negatives": 2825, + "auroc": null, + "auprc": null, + "brier": 2.3027013795187908e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004766214924771236, + "calibration_in_the_large": 0.0004766214924771236, + "expected_calibration_error_10bin": 0.0004766214924771236, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.942968473255402, + "auprc": 0.006172839506172839, + "brier": 0.0003542290699496577, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0003362504948608478, + "calibration_in_the_large": -1.7857153864364692e-05, + "expected_calibration_error_10bin": 1.7857153864364692e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 1, + "negatives": 2756, + "auroc": 0.7148040638606676, + "auprc": 0.0012706480304955528, + "brier": 0.0004030441829484759, + "calibration": { + "observed_rate": 0.0003627130939426913, + "mean_prediction": 0.0011869678985822194, + "calibration_in_the_large": 0.0008242548046395281, + "expected_calibration_error_10bin": 0.000824254804639528, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 1, + "negatives": 2778, + "auroc": 0.4712023038156947, + "auprc": 0.0006802721088435374, + "brier": 0.0003599318035453255, + "calibration": { + "observed_rate": 0.0003598416696653472, + "mean_prediction": 0.0002275157736570319, + "calibration_in_the_large": -0.00013232589600831532, + "expected_calibration_error_10bin": 0.00013232589600831532, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.5201149425287356, + "auprc": 0.0007479431563201197, + "brier": 0.00036176910298891916, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0005867202460911699, + "calibration_in_the_large": 0.0002276538188021214, + "expected_calibration_error_10bin": 0.0002276538188021214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6763250883392227, + "auprc": 0.0010905125408942203, + "brier": 0.00035331318725900486, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.00023151484076890235, + "calibration_in_the_large": -0.00012171723270336892, + "expected_calibration_error_10bin": 0.00012171723270336892, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 8, + "negatives": 2760, + "auroc": 0.8148550724637681, + "auprc": 0.020605424019140398, + "brier": 0.0028663688614688674, + "calibration": { + "observed_rate": 0.002890173410404624, + "mean_prediction": 0.0020383890823966193, + "calibration_in_the_large": -0.0008517843280080048, + "expected_calibration_error_10bin": 0.0008517843280080048, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 7, + "negatives": 2744, + "auroc": 0.8174718867138692, + "auprc": 0.046614332804328744, + "brier": 0.0025123796780609138, + "calibration": { + "observed_rate": 0.002544529262086514, + "mean_prediction": 0.0026352609505347286, + "calibration_in_the_large": 9.073168844821438e-05, + "expected_calibration_error_10bin": 9.073168844821438e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.8919801277501774, + "auprc": 0.009411190090637, + "brier": 0.0017845740283293158, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0014637685611544199, + "calibration_in_the_large": -0.00030739686569644805, + "expected_calibration_error_10bin": 0.00030739686569644805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.5507608178792202, + "auprc": 0.0015496108353251208, + "brier": 0.0010727529464950316, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0014228506565106354, + "calibration_in_the_large": 0.0003540939767813871, + "expected_calibration_error_10bin": 0.0003540939767813871, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 7, + "negatives": 2694, + "auroc": 0.4634107540566338, + "auprc": 0.010581186945299368, + "brier": 0.0025856592369503215, + "calibration": { + "observed_rate": 0.00259163272861903, + "mean_prediction": 0.0018187572374626744, + "calibration_in_the_large": -0.0007728754911563557, + "expected_calibration_error_10bin": 0.0007728754911563557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.7217309279566089, + "auprc": 0.004273409753891238, + "brier": 0.0010597866655393362, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.00032095591483488975, + "calibration_in_the_large": -0.000739114756543202, + "expected_calibration_error_10bin": 0.000739114756543202, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.6737714624037893, + "auprc": 0.006622204659405574, + "brier": 0.001072762173641705, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001214190775438609, + "calibration_in_the_large": 0.00014960596351525903, + "expected_calibration_error_10bin": 0.00014960596351525903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.380461811722913, + "auprc": 0.0009293899264061177, + "brier": 0.000713864690692913, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001015248667217189, + "calibration_in_the_large": 0.00030527351634746934, + "expected_calibration_error_10bin": 0.00030527351634746934, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 1, + "negatives": 2815, + "auroc": 0.997158081705151, + "auprc": 0.1111111111111111, + "brier": 0.00035193526998218927, + "calibration": { + "observed_rate": 0.0003551136363636364, + "mean_prediction": 0.0003599858173420597, + "calibration_in_the_large": 4.872180978423332e-06, + "expected_calibration_error_10bin": 4.872180978423332e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 1, + "negatives": 2834, + "auroc": 0.7043048694424842, + "auprc": 0.0011918951132300357, + "brier": 0.00035275057388874494, + "calibration": { + "observed_rate": 0.0003527336860670194, + "mean_prediction": 0.000182185704195903, + "calibration_in_the_large": -0.00017054798187111643, + "expected_calibration_error_10bin": 0.00017054798187111643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.451474618819217e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002580321474074445, + "calibration_in_the_large": 0.0002580321474074445, + "expected_calibration_error_10bin": 0.0002580321474074445, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 6, + "negatives": 2787, + "auroc": 0.660267910537017, + "auprc": 0.005050850127904934, + "brier": 0.00214856747739159, + "calibration": { + "observed_rate": 0.0021482277121374865, + "mean_prediction": 0.0021358257965674605, + "calibration_in_the_large": -1.2401915570026036e-05, + "expected_calibration_error_10bin": 1.2401915570026036e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 8, + "negatives": 2790, + "auroc": 0.8619623655913978, + "auprc": 0.012793073680499104, + "brier": 0.002851544230644527, + "calibration": { + "observed_rate": 0.0028591851322373124, + "mean_prediction": 0.000768247435575956, + "calibration_in_the_large": -0.0020909376966613564, + "expected_calibration_error_10bin": 0.0020909376966613564, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 2, + "negatives": 2787, + "auroc": 0.8349479727305347, + "auprc": 0.006314162028447742, + "brier": 0.0007240947886532811, + "calibration": { + "observed_rate": 0.0007171029042667623, + "mean_prediction": 0.0006914250956584845, + "calibration_in_the_large": -2.5677808608277875e-05, + "expected_calibration_error_10bin": 2.5677808608277875e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 0, + "negatives": 2824, + "auroc": null, + "auprc": null, + "brier": 2.7220328661675422e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008949389290998358, + "calibration_in_the_large": 0.0008949389290998358, + "expected_calibration_error_10bin": 0.0008949389290998358, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 4, + "negatives": 2709, + "auroc": 0.73624953857512, + "auprc": 0.010449698066258594, + "brier": 0.0014698069939438362, + "calibration": { + "observed_rate": 0.001474382602285293, + "mean_prediction": 0.0013115007505150877, + "calibration_in_the_large": -0.00016288185177020529, + "expected_calibration_error_10bin": 0.00016288185177020529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.6041591968447472, + "auprc": 0.0009049773755656109, + "brier": 0.00035858277563381415, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.0002930903419752949, + "calibration_in_the_large": -6.533259709280546e-05, + "expected_calibration_error_10bin": 6.533259709280546e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 2, + "negatives": 2731, + "auroc": 0.7958623214939583, + "auprc": 0.00380175915373601, + "brier": 0.0007311973827780305, + "calibration": { + "observed_rate": 0.0007317965605561653, + "mean_prediction": 0.00032177521088109986, + "calibration_in_the_large": -0.0004100213496750655, + "expected_calibration_error_10bin": 0.0004100213496750655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 8, + "negatives": 2666, + "auroc": 0.67634096024006, + "auprc": 0.008860938720514473, + "brier": 0.002980139073240843, + "calibration": { + "observed_rate": 0.0029917726252804786, + "mean_prediction": 0.0019728312950894624, + "calibration_in_the_large": -0.0010189413301910162, + "expected_calibration_error_10bin": 0.0010189413301910162, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9929078014184397, + "auprc": 0.047619047619047616, + "brier": 0.00035291061741271346, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.00018110278439368598, + "calibration_in_the_large": -0.0001733814410582814, + "expected_calibration_error_10bin": 0.0001733814410582814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 5, + "negatives": 2712, + "auroc": 0.8372418879056047, + "auprc": 0.06308295064810625, + "brier": 0.001818110438175396, + "calibration": { + "observed_rate": 0.001840264998159735, + "mean_prediction": 0.002165757425829954, + "calibration_in_the_large": 0.00032549242767021904, + "expected_calibration_error_10bin": 0.00032549242767021904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9550802139037433, + "auprc": 0.007874015748031496, + "brier": 0.0003560155739356127, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.00017167304002611722, + "calibration_in_the_large": -0.0001847061474293354, + "expected_calibration_error_10bin": 0.0001847061474293354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 0, + "negatives": 2814, + "auroc": null, + "auprc": null, + "brier": 3.888097392055118e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00033361792716520917, + "calibration_in_the_large": 0.00033361792716520917, + "expected_calibration_error_10bin": 0.00033361792716520917, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 1, + "negatives": 2742, + "auroc": 0.1462436177972283, + "auprc": 0.0004269854824935952, + "brier": 0.00036494967052743565, + "calibration": { + "observed_rate": 0.0003645643456069996, + "mean_prediction": 0.0004339788355088885, + "calibration_in_the_large": 6.941448990188887e-05, + "expected_calibration_error_10bin": 6.941448990188887e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 2, + "negatives": 2688, + "auroc": 0.7202380952380952, + "auprc": 0.2506644518272425, + "brier": 0.0007377355705442697, + "calibration": { + "observed_rate": 0.0007434944237918215, + "mean_prediction": 0.0011591295445876036, + "calibration_in_the_large": 0.00041563512079578204, + "expected_calibration_error_10bin": 0.00041563512079578204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 4.169874489925243e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004546684559488706, + "calibration_in_the_large": 0.0004546684559488706, + "expected_calibration_error_10bin": 0.0004546684559488706, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 10, + "negatives": 2557, + "auroc": 0.6442315213140399, + "auprc": 0.008921483679037574, + "brier": 0.003886614985398804, + "calibration": { + "observed_rate": 0.0038955979742890533, + "mean_prediction": 0.004429868380725965, + "calibration_in_the_large": 0.0005342704064369114, + "expected_calibration_error_10bin": 0.0005342704064369114, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 0, + "negatives": 2781, + "auroc": null, + "auprc": null, + "brier": 1.0109290897441933e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007437705262045779, + "calibration_in_the_large": 0.0007437705262045779, + "expected_calibration_error_10bin": 0.0007437705262045779, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 7, + "negatives": 2690, + "auroc": 0.8471056824216675, + "auprc": 0.04378498407109808, + "brier": 0.0025693052758276455, + "calibration": { + "observed_rate": 0.0025954764553207266, + "mean_prediction": 0.00345833773843999, + "calibration_in_the_large": 0.0008628612831192632, + "expected_calibration_error_10bin": 0.0008628612831192632, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 2, + "negatives": 2703, + "auroc": 0.5036995930447651, + "auprc": 0.0016701235848241294, + "brier": 0.0007411194187419496, + "calibration": { + "observed_rate": 0.0007393715341959334, + "mean_prediction": 0.0006275598411422994, + "calibration_in_the_large": -0.00011181169305363398, + "expected_calibration_error_10bin": 0.00011181169305363398, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 0, + "negatives": 2818, + "auroc": null, + "auprc": null, + "brier": 4.848226873882587e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00039662528913119, + "calibration_in_the_large": 0.00039662528913119, + "expected_calibration_error_10bin": 0.00039662528913119, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.8020607375271149, + "auprc": 0.0034773613432004455, + "brier": 0.0007218227395261109, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.00043579476476118497, + "calibration_in_the_large": -0.00028674858783997106, + "expected_calibration_error_10bin": 0.00028674858783997106, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 3, + "negatives": 2800, + "auroc": 0.7901190476190476, + "auprc": 0.010083119315580659, + "brier": 0.0010701080048626352, + "calibration": { + "observed_rate": 0.0010702818408847663, + "mean_prediction": 0.0003863055655857227, + "calibration_in_the_large": -0.0006839762752990435, + "expected_calibration_error_10bin": 0.0006839762752990435, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8601845280340668, + "auprc": 0.002531645569620253, + "brier": 0.00035464089976977863, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 9.784335959476747e-05, + "calibration_in_the_large": -0.0002568923622924265, + "expected_calibration_error_10bin": 0.0002568923622924265, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 0, + "negatives": 2804, + "auroc": null, + "auprc": null, + "brier": 2.373586710283535e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008560109644208303, + "calibration_in_the_large": 0.0008560109644208303, + "expected_calibration_error_10bin": 0.0008560109644208303, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6311881188118812, + "auprc": 0.0025068151203527333, + "brier": 0.001059764121091312, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0002809733860476771, + "calibration_in_the_large": -0.0007787228343691367, + "expected_calibration_error_10bin": 0.0007787228343691367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7893972403776325, + "auprc": 0.0031373196096969266, + "brier": 0.0007259648999080362, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0007736907041883837, + "calibration_in_the_large": 4.800129925369571e-05, + "expected_calibration_error_10bin": 4.800129925369571e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.7163773763136143, + "auprc": 0.0034116642144379414, + "brier": 0.001061239995667525, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.000262847602686469, + "calibration_in_the_large": -0.0007987235225789238, + "expected_calibration_error_10bin": 0.0007987235225789238, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 25, + "negatives": 2267, + "auroc": 0.770163211292457, + "auprc": 0.046171971209052254, + "brier": 0.010673512610918423, + "calibration": { + "observed_rate": 0.010907504363001745, + "mean_prediction": 0.007443732418380775, + "calibration_in_the_large": -0.00346377194462097, + "expected_calibration_error_10bin": 0.0034637719446209696, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 11, + "negatives": 2429, + "auroc": 0.8868969647067629, + "auprc": 0.14224448813064827, + "brier": 0.004344526689486669, + "calibration": { + "observed_rate": 0.004508196721311476, + "mean_prediction": 0.002220285857287472, + "calibration_in_the_large": -0.0022879108640240036, + "expected_calibration_error_10bin": 0.002287910864024003, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.8058928571428572, + "auprc": 0.010607569599371066, + "brier": 0.002135887322302143, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.00027936243019855333, + "calibration_in_the_large": -0.0018589126945341623, + "expected_calibration_error_10bin": 0.0018589126945341623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9768469423824673, + "auprc": 0.02542892156862745, + "brier": 0.0007049092376321604, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.00016180239611632215, + "calibration_in_the_large": -0.0005446617508282204, + "expected_calibration_error_10bin": 0.0005446617508282204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9436468054558507, + "auprc": 0.05964439373017252, + "brier": 0.0010659508205799195, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0009349765207391728, + "calibration_in_the_large": -0.00014067783566097062, + "expected_calibration_error_10bin": 0.00014067783566097062, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.6798230088495575, + "auprc": 0.0069583004292218965, + "brier": 0.0014117269485415692, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0006614335033086805, + "calibration_in_the_large": -0.0007524936794414079, + "expected_calibration_error_10bin": 0.0007524936794414079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.8418986438258387, + "auprc": 0.010422383770333722, + "brier": 0.0017758264541192664, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0008423329869384793, + "calibration_in_the_large": -0.0009389281459436012, + "expected_calibration_error_10bin": 0.0009389281459436012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 16, + "negatives": 2504, + "auroc": 0.7612819488817891, + "auprc": 0.01733233598806609, + "brier": 0.006295480117409459, + "calibration": { + "observed_rate": 0.006349206349206349, + "mean_prediction": 0.007281091986938947, + "calibration_in_the_large": 0.000931885637732598, + "expected_calibration_error_10bin": 0.000931885637732598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 5, + "negatives": 2601, + "auroc": 0.8788158400615148, + "auprc": 0.03984244025576838, + "brier": 0.001893439815111355, + "calibration": { + "observed_rate": 0.001918649270913277, + "mean_prediction": 0.0020389814305973924, + "calibration_in_the_large": 0.00012033215968411544, + "expected_calibration_error_10bin": 0.00012033215968411544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9664073550212164, + "auprc": 0.010416666666666666, + "brier": 0.0003528481280099304, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0002113477733983825, + "calibration_in_the_large": -0.00014213402228913961, + "expected_calibration_error_10bin": 0.00014213402228913961, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 2, + "negatives": 2797, + "auroc": 0.7733285663210583, + "auprc": 0.0030688945471702717, + "brier": 0.0007141590668134988, + "calibration": { + "observed_rate": 0.0007145409074669524, + "mean_prediction": 0.00029485886100871403, + "calibration_in_the_large": -0.0004196820464582384, + "expected_calibration_error_10bin": 0.0004196820464582384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 0, + "negatives": 2743, + "auroc": null, + "auprc": null, + "brier": 1.3191255236369745e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002696634393612041, + "calibration_in_the_large": 0.0002696634393612041, + "expected_calibration_error_10bin": 0.0002696634393612041, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 8.291392451681359e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023989981641462093, + "calibration_in_the_large": 0.00023989981641462093, + "expected_calibration_error_10bin": 0.00023989981641462093, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 0, + "negatives": 2810, + "auroc": null, + "auprc": null, + "brier": 2.563890335770581e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00032168706823417566, + "calibration_in_the_large": 0.00032168706823417566, + "expected_calibration_error_10bin": 0.00032168706823417566, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 5.669390282727547e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000383252161669483, + "calibration_in_the_large": 0.000383252161669483, + "expected_calibration_error_10bin": 0.000383252161669483, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "60": { + "A04": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.7708108108108108, + "auprc": 0.03717660834481222, + "brier": 0.0024936018884589373, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.003309976544205828, + "calibration_in_the_large": 0.0007938011308341528, + "expected_calibration_error_10bin": 0.0007938011308341528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.8276668191289323, + "auprc": 0.05788436395129924, + "brier": 0.002451635025591646, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.001315997204894839, + "calibration_in_the_large": -0.001168034022926311, + "expected_calibration_error_10bin": 0.001168034022926311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 19, + "negatives": 2645, + "auroc": 0.7784300069644812, + "auprc": 0.037299881943418045, + "brier": 0.0070960766629992135, + "calibration": { + "observed_rate": 0.007132132132132132, + "mean_prediction": 0.009028503488944363, + "calibration_in_the_large": 0.0018963713568122308, + "expected_calibration_error_10bin": 0.0018963713568122306, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9932576295244855, + "auprc": 0.05, + "brier": 0.0003503639869673488, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0005473986551436131, + "calibration_in_the_large": 0.0001926629332564191, + "expected_calibration_error_10bin": 0.0001926629332564191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 7.038541270777056e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002938113138635175, + "calibration_in_the_large": 0.0002938113138635175, + "expected_calibration_error_10bin": 0.0002938113138635175, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9519011634880653, + "auprc": 0.06387159981558323, + "brier": 0.0010592478476763884, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0008048475673009365, + "calibration_in_the_large": -0.000273513324144067, + "expected_calibration_error_10bin": 0.000273513324144067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.8749545619774627, + "auprc": 0.07254011709078974, + "brier": 0.0042842368235705905, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.0008962057462587184, + "calibration_in_the_large": -0.003446899574045299, + "expected_calibration_error_10bin": 0.003446899574045299, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 9.353179332487731e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00010946406764749657, + "calibration_in_the_large": 0.00010946406764749657, + "expected_calibration_error_10bin": 0.00010946406764749657, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9729586426299046, + "auprc": 0.13157894736842105, + "brier": 0.0006986693836044213, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0003255984815723654, + "calibration_in_the_large": -0.00038086566537217715, + "expected_calibration_error_10bin": 0.00038086566537217715, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.7495085101671112e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006132541750149583, + "calibration_in_the_large": 0.0006132541750149583, + "expected_calibration_error_10bin": 0.0006132541750149583, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.7506962101949388, + "auprc": 0.023262016002362537, + "brier": 0.005367888560585043, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.003735311890344263, + "calibration_in_the_large": -0.0016837632541644074, + "expected_calibration_error_10bin": 0.0016837632541644074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 27, + "negatives": 2651, + "auroc": 0.7312544532461545, + "auprc": 0.02231207676048918, + "brier": 0.010014876596055865, + "calibration": { + "observed_rate": 0.010082150858849889, + "mean_prediction": 0.00886403744859306, + "calibration_in_the_large": -0.0012181134102568283, + "expected_calibration_error_10bin": 0.0018384567967160371, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 30, + "negatives": 2600, + "auroc": 0.7867179487179488, + "auprc": 0.04220477448430487, + "brier": 0.011118640310366775, + "calibration": { + "observed_rate": 0.011406844106463879, + "mean_prediction": 0.010570977593317519, + "calibration_in_the_large": -0.0008358665131463598, + "expected_calibration_error_10bin": 0.0010014479953646043, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7845772904138663, + "auprc": 0.001639344262295082, + "brier": 0.0003553780966099681, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0002880586938237962, + "calibration_in_the_large": -6.55480954265574e-05, + "expected_calibration_error_10bin": 6.55480954265574e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9819341126461212, + "auprc": 0.019230769230769232, + "brier": 0.000352713140284844, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0002940943660101594, + "calibration_in_the_large": -6.0013282715053065e-05, + "expected_calibration_error_10bin": 6.0013282715053065e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 3, + "negatives": 2809, + "auroc": 0.9113563545745818, + "auprc": 0.02436170742415396, + "brier": 0.0010682665110156647, + "calibration": { + "observed_rate": 0.0010668563300142249, + "mean_prediction": 0.0004117818293258648, + "calibration_in_the_large": -0.00065507450068836, + "expected_calibration_error_10bin": 0.00065507450068836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9996438746438746, + "auprc": 0.5, + "brier": 0.00030899814863680875, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0004322558774361879, + "calibration_in_the_large": 7.625730143049188e-05, + "expected_calibration_error_10bin": 7.625730143049188e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9645023189439886, + "auprc": 0.023604269293924465, + "brier": 0.0007089701780993393, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0005174746027067883, + "calibration_in_the_large": -0.00019553787501157174, + "expected_calibration_error_10bin": 0.00019553787501157174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9819596745666784, + "auprc": 0.027972027972027972, + "brier": 0.0007048040012204885, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.00021700048048157276, + "calibration_in_the_large": -0.0004899631108934714, + "expected_calibration_error_10bin": 0.0004899631108934714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 8, + "negatives": 2754, + "auroc": 0.8767247639796659, + "auprc": 0.12129755795311656, + "brier": 0.002774415794815202, + "calibration": { + "observed_rate": 0.002896451846488052, + "mean_prediction": 0.0019505222154935188, + "calibration_in_the_large": -0.0009459296309945332, + "expected_calibration_error_10bin": 0.0009459296309945334, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8896080266167602, + "auprc": 0.08348298412282285, + "brier": 0.004855967172544574, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.0032713323829366156, + "calibration_in_the_large": -0.0017974583484174755, + "expected_calibration_error_10bin": 0.0018448105376790039, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 8, + "negatives": 2743, + "auroc": 0.935107546481954, + "auprc": 0.07860340591164354, + "brier": 0.0029940386971204487, + "calibration": { + "observed_rate": 0.0029080334423845873, + "mean_prediction": 0.0038020153546305005, + "calibration_in_the_large": 0.0008939819122459132, + "expected_calibration_error_10bin": 0.0016353679036385758, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 1.3522646129499783e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003805764035853944, + "calibration_in_the_large": 0.0003805764035853944, + "expected_calibration_error_10bin": 0.0003805764035853944, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9358422939068101, + "auprc": 0.05839646464646464, + "brier": 0.0007127129317452878, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0003106677507749531, + "calibration_in_the_large": -0.0004056646274485426, + "expected_calibration_error_10bin": 0.0004056646274485426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 5, + "negatives": 2791, + "auroc": 0.6108921533500538, + "auprc": 0.00299760781256342, + "brier": 0.0017966809580353157, + "calibration": { + "observed_rate": 0.00178826895565093, + "mean_prediction": 0.0018878431199652092, + "calibration_in_the_large": 9.957416431427926e-05, + "expected_calibration_error_10bin": 9.957416431427926e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 19, + "negatives": 2644, + "auroc": 0.8249462536826181, + "auprc": 0.08731862868409097, + "brier": 0.006869717868763735, + "calibration": { + "observed_rate": 0.007134810364250845, + "mean_prediction": 0.006011893018412774, + "calibration_in_the_large": -0.001122917345838071, + "expected_calibration_error_10bin": 0.001122917345838071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.8336056366792607, + "auprc": 0.0360632128075808, + "brier": 0.002470982069576385, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.002543599694058158, + "calibration_in_the_large": 4.8056022043897403e-05, + "expected_calibration_error_10bin": 4.8056022043897403e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 6.977863071629514e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00035671589075509806, + "calibration_in_the_large": 0.00035671589075509806, + "expected_calibration_error_10bin": 0.00035671589075509806, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 9, + "negatives": 2764, + "auroc": 0.9609663933108217, + "auprc": 0.05861489635445178, + "brier": 0.0032060589403823227, + "calibration": { + "observed_rate": 0.0032455824017309774, + "mean_prediction": 0.003781882660515447, + "calibration_in_the_large": 0.0005363002587844695, + "expected_calibration_error_10bin": 0.0005363002587844694, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 21, + "negatives": 2478, + "auroc": 0.8172105000192167, + "auprc": 0.03073224919076015, + "brier": 0.008245318605015556, + "calibration": { + "observed_rate": 0.008403361344537815, + "mean_prediction": 0.010176832448928154, + "calibration_in_the_large": 0.0017734711043903388, + "expected_calibration_error_10bin": 0.0017734711043903388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 31, + "negatives": 2655, + "auroc": 0.9046837980681611, + "auprc": 0.08291861451566385, + "brier": 0.011110832179143573, + "calibration": { + "observed_rate": 0.01154132539091586, + "mean_prediction": 0.009239652848246536, + "calibration_in_the_large": -0.002301672542669324, + "expected_calibration_error_10bin": 0.004368268315157265, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 51, + "negatives": 2383, + "auroc": 0.8476874593731744, + "auprc": 0.1037032893655989, + "brier": 0.019648498592568377, + "calibration": { + "observed_rate": 0.0209531635168447, + "mean_prediction": 0.018416884804239968, + "calibration_in_the_large": -0.0025362787126047316, + "expected_calibration_error_10bin": 0.00253627871260473, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 1, + "negatives": 2832, + "auroc": 0.9346751412429378, + "auprc": 0.005376344086021506, + "brier": 0.00035493752379867625, + "calibration": { + "observed_rate": 0.00035298270384751147, + "mean_prediction": 0.0004695190232411803, + "calibration_in_the_large": 0.00011653631939366883, + "expected_calibration_error_10bin": 0.00011653631939366883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 21, + "negatives": 2661, + "auroc": 0.8407329861670335, + "auprc": 0.05131106134303698, + "brier": 0.0076766189625798766, + "calibration": { + "observed_rate": 0.007829977628635347, + "mean_prediction": 0.004378470101806096, + "calibration_in_the_large": -0.0034515075268292507, + "expected_calibration_error_10bin": 0.004159140564568848, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 30, + "negatives": 2556, + "auroc": 0.8878716744913928, + "auprc": 0.166964306664718, + "brier": 0.01072350848450255, + "calibration": { + "observed_rate": 0.01160092807424594, + "mean_prediction": 0.0063018632541895665, + "calibration_in_the_large": -0.005299064820056373, + "expected_calibration_error_10bin": 0.0052990648200563735, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.9326196473551638, + "auprc": 0.12341680198995256, + "brier": 0.0030520118674975992, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.004294573049797958, + "calibration_in_the_large": 0.0014241030103289945, + "expected_calibration_error_10bin": 0.0021928908722697866, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 26, + "negatives": 2569, + "auroc": 0.7506662275054645, + "auprc": 0.05959457939219089, + "brier": 0.00978406285136386, + "calibration": { + "observed_rate": 0.01001926782273603, + "mean_prediction": 0.008976591114469119, + "calibration_in_the_large": -0.0010426767082669115, + "expected_calibration_error_10bin": 0.0010426767082669115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9968119022316685, + "auprc": 0.1, + "brier": 0.00034547936038455514, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.00046313496483699066, + "calibration_in_the_large": 0.00010902731611177818, + "expected_calibration_error_10bin": 0.00010902731611177818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 9.295928190257744e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004911594269968966, + "calibration_in_the_large": 0.0004911594269968966, + "expected_calibration_error_10bin": 0.0004911594269968966, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.9904559915164369, + "auprc": 0.08762626262626262, + "brier": 0.0010375068490008823, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.00040256521460478156, + "calibration_in_the_large": -0.0006567568192935235, + "expected_calibration_error_10bin": 0.0006567568192935235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7317460317460317, + "auprc": 0.007830615052073098, + "brier": 0.0007162174799651672, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0003508666197286298, + "calibration_in_the_large": -0.0003541034190447223, + "expected_calibration_error_10bin": 0.0003541034190447223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 11, + "negatives": 2469, + "auroc": 0.784417688427409, + "auprc": 0.01974432175627984, + "brier": 0.004406192074114288, + "calibration": { + "observed_rate": 0.004435483870967742, + "mean_prediction": 0.001888365844751749, + "calibration_in_the_large": -0.002547118026215993, + "expected_calibration_error_10bin": 0.002547118026215993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 4, + "negatives": 2771, + "auroc": 0.7426921688920968, + "auprc": 0.003624542445420509, + "brier": 0.0014400162044832102, + "calibration": { + "observed_rate": 0.0014414414414414415, + "mean_prediction": 0.0006687557164473179, + "calibration_in_the_large": -0.0007726857249941236, + "expected_calibration_error_10bin": 0.0007726857249941236, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.19008559201141226, + "auprc": 0.0006455398602807348, + "brier": 0.0007131870052526652, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0004536771845190961, + "calibration_in_the_large": -0.0002590811903918091, + "expected_calibration_error_10bin": 0.0002590811903918091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 9, + "negatives": 2185, + "auroc": 0.6856343757945589, + "auprc": 0.06961833720734374, + "brier": 0.004062085070980716, + "calibration": { + "observed_rate": 0.004102096627164996, + "mean_prediction": 0.0026906840305722995, + "calibration_in_the_large": -0.0014114125965926962, + "expected_calibration_error_10bin": 0.0014114125965926962, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.5923687640715725, + "auprc": 0.0018631644912610993, + "brier": 0.0010698295671586644, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.001103658046044519, + "calibration_in_the_large": 3.831713695361008e-05, + "expected_calibration_error_10bin": 3.831713695361008e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9939566299324565, + "auprc": 0.05555555555555555, + "brier": 0.00035149401953672775, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0005276992731959661, + "calibration_in_the_large": 0.0001723332461881481, + "expected_calibration_error_10bin": 0.0001723332461881481, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.774443253542932, + "auprc": 0.0038939514774841894, + "brier": 0.0010889891189580446, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.002246804614874629, + "calibration_in_the_large": 0.0011761408033114597, + "expected_calibration_error_10bin": 0.0011761408033114597, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 6.019266213656398e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010023191249909174, + "calibration_in_the_large": 0.0010023191249909174, + "expected_calibration_error_10bin": 0.0010023191249909174, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 19, + "negatives": 2729, + "auroc": 0.8373223274382365, + "auprc": 0.05434849164031664, + "brier": 0.006755572323423971, + "calibration": { + "observed_rate": 0.006914119359534207, + "mean_prediction": 0.005468760214450533, + "calibration_in_the_large": -0.0014453591450836736, + "expected_calibration_error_10bin": 0.00184811355906981, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 8, + "negatives": 2792, + "auroc": 0.7673262893982808, + "auprc": 0.015464555605760242, + "brier": 0.00285194032030283, + "calibration": { + "observed_rate": 0.002857142857142857, + "mean_prediction": 0.0036332155805156876, + "calibration_in_the_large": 0.0007760727233728304, + "expected_calibration_error_10bin": 0.0007760727233728304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 16, + "negatives": 2756, + "auroc": 0.8371507619738752, + "auprc": 0.06679014331940358, + "brier": 0.005637589241802631, + "calibration": { + "observed_rate": 0.005772005772005772, + "mean_prediction": 0.005779652815612435, + "calibration_in_the_large": 7.647043606662934e-06, + "expected_calibration_error_10bin": 0.001253669819796685, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.8511777301927195, + "auprc": 0.004915223665223665, + "brier": 0.00071421456573315, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0009022714519756316, + "calibration_in_the_large": 0.00018900469020672998, + "expected_calibration_error_10bin": 0.00018900469020672998, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5802040952444474, + "auprc": 0.007872367515637205, + "brier": 0.004012767117891798, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.0028785467212064987, + "calibration_in_the_large": -0.0011404521827028916, + "expected_calibration_error_10bin": 0.0011404521827028916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 16, + "negatives": 2355, + "auroc": 0.7526539278131635, + "auprc": 0.01912482289684976, + "brier": 0.006681593900548712, + "calibration": { + "observed_rate": 0.006748207507380852, + "mean_prediction": 0.006235662137880422, + "calibration_in_the_large": -0.0005125453695004299, + "expected_calibration_error_10bin": 0.0006014168501437523, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 19, + "negatives": 1553, + "auroc": 0.6745179110041685, + "auprc": 0.03140581028183488, + "brier": 0.011941293511624275, + "calibration": { + "observed_rate": 0.012086513994910942, + "mean_prediction": 0.00831109348919847, + "calibration_in_the_large": -0.0037754205057124717, + "expected_calibration_error_10bin": 0.004534064651727794, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 3, + "negatives": 2820, + "auroc": 0.9574468085106383, + "auprc": 0.015843339919947307, + "brier": 0.0010660419484001906, + "calibration": { + "observed_rate": 0.0010626992561105207, + "mean_prediction": 0.0009811631502761556, + "calibration_in_the_large": -8.153610583436503e-05, + "expected_calibration_error_10bin": 8.153610583436503e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 26, + "negatives": 2627, + "auroc": 0.8220403502093643, + "auprc": 0.08678537906673849, + "brier": 0.009340929659749104, + "calibration": { + "observed_rate": 0.00980022615906521, + "mean_prediction": 0.008046166398955112, + "calibration_in_the_large": -0.001754059760110097, + "expected_calibration_error_10bin": 0.0017540597601100965, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 38, + "negatives": 2549, + "auroc": 0.8192067064483493, + "auprc": 0.06652354203987527, + "brier": 0.014103772282541642, + "calibration": { + "observed_rate": 0.014688828759180518, + "mean_prediction": 0.013871951249171503, + "calibration_in_the_large": -0.0008168775100090148, + "expected_calibration_error_10bin": 0.0010648794538435228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 52, + "negatives": 2133, + "auroc": 0.7854141873129215, + "auprc": 0.09948126512880143, + "brier": 0.022477719173120112, + "calibration": { + "observed_rate": 0.02379862700228833, + "mean_prediction": 0.017485350802732186, + "calibration_in_the_large": -0.006313276199556142, + "expected_calibration_error_10bin": 0.007661034856337249, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.941601516228382, + "auprc": 0.0753314393939394, + "brier": 0.0010492581904646683, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.001725615156635938, + "calibration_in_the_large": 0.0006606524303313585, + "expected_calibration_error_10bin": 0.0006606524303313585, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.798000720461095, + "auprc": 0.006077912518458076, + "brier": 0.0014351682120569268, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0011088246979198244, + "calibration_in_the_large": -0.000330024222943485, + "expected_calibration_error_10bin": 0.000330024222943485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.6019278828989647, + "auprc": 0.0008960573476702509, + "brier": 0.0003679552221925876, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0010360404325986876, + "calibration_in_the_large": 0.0006791524954109646, + "expected_calibration_error_10bin": 0.0006791524954109646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 7, + "negatives": 2732, + "auroc": 0.8751830161054173, + "auprc": 0.011200335163048377, + "brier": 0.002564394401396396, + "calibration": { + "observed_rate": 0.002555677254472435, + "mean_prediction": 0.0023841790079295725, + "calibration_in_the_large": -0.00017149824654286248, + "expected_calibration_error_10bin": 0.00017149824654286248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.7676030645749726, + "auprc": 0.009221708526887883, + "brier": 0.0032735033375672724, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.0038221845809172754, + "calibration_in_the_large": 0.0005494573081900028, + "expected_calibration_error_10bin": 0.0005494573081900028, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.14892111779271314, + "auprc": 0.0004154549231408392, + "brier": 0.00035536430175344216, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0007164719014809741, + "calibration_in_the_large": 0.00036286511223062044, + "expected_calibration_error_10bin": 0.00036286511223062044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8082233546757263, + "auprc": 0.08150715689453654, + "brier": 0.003411273792878214, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.002887727433143539, + "calibration_in_the_large": -0.0006278975668564612, + "expected_calibration_error_10bin": 0.0006278975668564612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8412553321145643, + "auprc": 0.04277601510708093, + "brier": 0.002179510148588028, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.0022757076069691066, + "calibration_in_the_large": 8.67254836564471e-05, + "expected_calibration_error_10bin": 0.0002574832342551294, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 8, + "negatives": 2769, + "auroc": 0.9349494402311304, + "auprc": 0.02751089196783469, + "brier": 0.0028510364555808503, + "calibration": { + "observed_rate": 0.0028808066258552397, + "mean_prediction": 0.001606617984349534, + "calibration_in_the_large": -0.0012741886415057056, + "expected_calibration_error_10bin": 0.0012741886415057056, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 4, + "negatives": 2783, + "auroc": 0.976194753862738, + "auprc": 0.03473748278814624, + "brier": 0.0014224921506923729, + "calibration": { + "observed_rate": 0.0014352350197344816, + "mean_prediction": 0.000733715274766977, + "calibration_in_the_large": -0.0007015197449675046, + "expected_calibration_error_10bin": 0.0007015197449675046, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9656493967352733, + "auprc": 0.03692875664326726, + "brier": 0.0017618868398390543, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.00029925773960303673, + "calibration_in_the_large": -0.0014719076872478313, + "expected_calibration_error_10bin": 0.0014719076872478313, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 19, + "negatives": 2407, + "auroc": 0.8979074191502854, + "auprc": 0.11563727302458328, + "brier": 0.007401223051435473, + "calibration": { + "observed_rate": 0.007831821929101401, + "mean_prediction": 0.005877241890946514, + "calibration_in_the_large": -0.0019545800381548873, + "expected_calibration_error_10bin": 0.0023831085592512105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.939625850340136, + "auprc": 0.17541457877065808, + "brier": 0.002770107460881433, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.000950545973456152, + "calibration_in_the_large": -0.0019055768398248193, + "expected_calibration_error_10bin": 0.0019055768398248193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 1, + "negatives": 2807, + "auroc": 0.991449946562166, + "auprc": 0.04, + "brier": 0.0003530346916062498, + "calibration": { + "observed_rate": 0.00035612535612535614, + "mean_prediction": 0.0003791522874648685, + "calibration_in_the_large": 2.302693133951234e-05, + "expected_calibration_error_10bin": 2.302693133951234e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 2.122616807634493e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006469697200413348, + "calibration_in_the_large": 0.0006469697200413348, + "expected_calibration_error_10bin": 0.0006469697200413348, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9577564785232516, + "auprc": 0.012924606462303232, + "brier": 0.0007073294298323881, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.00043386622891360897, + "calibration_in_the_large": -0.00027560521486077907, + "expected_calibration_error_10bin": 0.00027560521486077907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.8507675830060693, + "auprc": 0.014009222716579627, + "brier": 0.0017769335272264722, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0004795292017573106, + "calibration_in_the_large": -0.0013023667355199526, + "expected_calibration_error_10bin": 0.0013023667355199526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.8618223881381776, + "auprc": 0.015274316373183276, + "brier": 0.002553640153174908, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0016114668676173083, + "calibration_in_the_large": -0.000958283499489887, + "expected_calibration_error_10bin": 0.000958283499489887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 29, + "negatives": 2171, + "auroc": 0.7408948680887562, + "auprc": 0.047684361341036804, + "brier": 0.012885897197639419, + "calibration": { + "observed_rate": 0.013181818181818182, + "mean_prediction": 0.014879756601532625, + "calibration_in_the_large": 0.0016979384197144433, + "expected_calibration_error_10bin": 0.0016979384197144433, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.8045624264743492, + "auprc": 0.015149817535441716, + "brier": 0.0024936761630030527, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.002041836933961219, + "calibration_in_the_large": -0.00045816306603878093, + "expected_calibration_error_10bin": 0.00045816306603878093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 6, + "negatives": 2795, + "auroc": 0.8568276684555755, + "auprc": 0.01732164816447697, + "brier": 0.002130299691143125, + "calibration": { + "observed_rate": 0.0021420921099607284, + "mean_prediction": 0.0009345640393330385, + "calibration_in_the_large": -0.00120752807062769, + "expected_calibration_error_10bin": 0.00120752807062769, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 34, + "negatives": 2213, + "auroc": 0.7583397570505834, + "auprc": 0.0900128265203315, + "brier": 0.014491560092419744, + "calibration": { + "observed_rate": 0.015131286159323543, + "mean_prediction": 0.01571818541289437, + "calibration_in_the_large": 0.0005868992535708276, + "expected_calibration_error_10bin": 0.001683080092264803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 9, + "negatives": 2725, + "auroc": 0.7725993883792049, + "auprc": 0.05762451648486812, + "brier": 0.0032237495715073897, + "calibration": { + "observed_rate": 0.0032918800292611556, + "mean_prediction": 0.004330413864305786, + "calibration_in_the_large": 0.0010385338350446301, + "expected_calibration_error_10bin": 0.0010385338350446304, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 4, + "negatives": 2814, + "auroc": 0.9674840085287847, + "auprc": 0.02651413311772159, + "brier": 0.0014092093927331128, + "calibration": { + "observed_rate": 0.0014194464158978, + "mean_prediction": 0.0013212367980671884, + "calibration_in_the_large": -9.820961783061147e-05, + "expected_calibration_error_10bin": 9.820961783061147e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9300361010830325, + "auprc": 0.02119512561853522, + "brier": 0.0017927355566970038, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.0005547567259865802, + "calibration_in_the_large": -0.0012470450758152217, + "expected_calibration_error_10bin": 0.0012470450758152217, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.7009503187778179, + "auprc": 0.0036096775043237706, + "brier": 0.0010831449772489609, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.001286418581519886, + "calibration_in_the_large": 0.0002049477812314938, + "expected_calibration_error_10bin": 0.0002049477812314938, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5926454837558015, + "auprc": 0.0008756567425569177, + "brier": 0.0003655351457996165, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0013201454359872216, + "calibration_in_the_large": 0.0009632574987994986, + "expected_calibration_error_10bin": 0.0009632574987994986, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 8, + "negatives": 2715, + "auroc": 0.6688305709023941, + "auprc": 0.011197788498997534, + "brier": 0.0029310948612100117, + "calibration": { + "observed_rate": 0.0029379360998898272, + "mean_prediction": 0.0021491702082537846, + "calibration_in_the_large": -0.0007887658916360426, + "expected_calibration_error_10bin": 0.0007887658916360426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 7, + "negatives": 2718, + "auroc": 0.7084515925575529, + "auprc": 0.02822508508633324, + "brier": 0.002557341369708381, + "calibration": { + "observed_rate": 0.002568807339449541, + "mean_prediction": 0.0013858917878712142, + "calibration_in_the_large": -0.001182915551578327, + "expected_calibration_error_10bin": 0.001182915551578327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.7136569117297169, + "auprc": 0.007175266678183902, + "brier": 0.0010710300488420434, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0008143001262648151, + "calibration_in_the_large": -0.000255218590312725, + "expected_calibration_error_10bin": 0.000255218590312725, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 36, + "negatives": 2279, + "auroc": 0.7136902150065818, + "auprc": 0.042016713613472395, + "brier": 0.015180110857221605, + "calibration": { + "observed_rate": 0.015550755939524838, + "mean_prediction": 0.010549481678760377, + "calibration_in_the_large": -0.00500127426076446, + "expected_calibration_error_10bin": 0.00500127426076446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.3071002969517988e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000190904915986683, + "calibration_in_the_large": 0.000190904915986683, + "expected_calibration_error_10bin": 0.000190904915986683, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 13, + "negatives": 2738, + "auroc": 0.9131033320222509, + "auprc": 0.08756235558119542, + "brier": 0.00454320894701413, + "calibration": { + "observed_rate": 0.004725554343874954, + "mean_prediction": 0.0026724847226989494, + "calibration_in_the_large": -0.002053069621176005, + "expected_calibration_error_10bin": 0.0022742274068963727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.7583533173461231, + "auprc": 0.06348361641705463, + "brier": 0.0032114342007001713, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.0009160619720295925, + "calibration_in_the_large": -0.002310901097170838, + "expected_calibration_error_10bin": 0.002310901097170838, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.6144578313253012, + "auprc": 0.0013535410256974056, + "brier": 0.0007095459649264809, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.000525738165446624, + "calibration_in_the_large": -0.0001824771320038009, + "expected_calibration_error_10bin": 0.0001824771320038009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 21, + "negatives": 2516, + "auroc": 0.7738095238095238, + "auprc": 0.030663174354448045, + "brier": 0.008251288731442178, + "calibration": { + "observed_rate": 0.008277493102089082, + "mean_prediction": 0.01163346191669633, + "calibration_in_the_large": 0.003355968814607247, + "expected_calibration_error_10bin": 0.0033559688146072492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.7075513382957668e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000698077691477094, + "calibration_in_the_large": 0.000698077691477094, + "expected_calibration_error_10bin": 0.000698077691477094, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 12, + "negatives": 2721, + "auroc": 0.7559414430969007, + "auprc": 0.014173719681803277, + "brier": 0.0044072059581679104, + "calibration": { + "observed_rate": 0.0043907793633369925, + "mean_prediction": 0.005332050832156771, + "calibration_in_the_large": 0.0009412714688197786, + "expected_calibration_error_10bin": 0.0009412714688197786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 17, + "negatives": 2639, + "auroc": 0.7499498473129305, + "auprc": 0.019271263465712875, + "brier": 0.006346306421215004, + "calibration": { + "observed_rate": 0.006400602409638554, + "mean_prediction": 0.004907672476063903, + "calibration_in_the_large": -0.0014929299335746512, + "expected_calibration_error_10bin": 0.0014929299335746512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 7.099381499007073e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00011201860304269432, + "calibration_in_the_large": 0.00011201860304269432, + "expected_calibration_error_10bin": 0.00011201860304269432, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 1, + "negatives": 2831, + "auroc": 0.9586718474037442, + "auprc": 0.00847457627118644, + "brier": 0.0003525789564869499, + "calibration": { + "observed_rate": 0.00035310734463276836, + "mean_prediction": 0.00023008484186892657, + "calibration_in_the_large": -0.0001230225027638418, + "expected_calibration_error_10bin": 0.0001230225027638418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 7.755365534042073e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00048403914030726366, + "calibration_in_the_large": 0.00048403914030726366, + "expected_calibration_error_10bin": 0.00048403914030726366, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.5729575454869782, + "auprc": 0.003448264277873963, + "brier": 0.0010683861946674412, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.000333087781216917, + "calibration_in_the_large": -0.0007360497811494408, + "expected_calibration_error_10bin": 0.0007360497811494408, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 4, + "negatives": 2746, + "auroc": 0.8230152949745084, + "auprc": 0.01531229744912832, + "brier": 0.0014469378892882894, + "calibration": { + "observed_rate": 0.0014545454545454545, + "mean_prediction": 0.0014634134393618917, + "calibration_in_the_large": 8.867984816437243e-06, + "expected_calibration_error_10bin": 8.867984816437243e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.6602081090778615, + "auprc": 0.008542090820571833, + "brier": 0.001073322159306676, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0014279471184760223, + "calibration_in_the_large": 0.00035267830127172126, + "expected_calibration_error_10bin": 0.00035267830127172126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.40096188101175634, + "auprc": 0.0008978555816319336, + "brier": 0.0007136597419839788, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007863987233507127, + "calibration_in_the_large": 7.440157133932067e-05, + "expected_calibration_error_10bin": 7.440157133932067e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 2, + "negatives": 2789, + "auroc": 0.8289709573323772, + "auprc": 0.003471336841373235, + "brier": 0.0007157238311293348, + "calibration": { + "observed_rate": 0.0007165890361877463, + "mean_prediction": 0.0007147802111373126, + "calibration_in_the_large": -1.808825050433633e-06, + "expected_calibration_error_10bin": 1.808825050433633e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.8621056362991847, + "auprc": 0.004334691834691835, + "brier": 0.0007093098049066195, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0004186818684840576, + "calibration_in_the_large": -0.00028978430225628957, + "expected_calibration_error_10bin": 0.00028978430225628957, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 4, + "negatives": 2763, + "auroc": 0.912775968150561, + "auprc": 0.009891633049159779, + "brier": 0.001488274726731633, + "calibration": { + "observed_rate": 0.0014456089627755693, + "mean_prediction": 0.0027985412827320733, + "calibration_in_the_large": 0.001352932319956504, + "expected_calibration_error_10bin": 0.0013529323199565038, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 22, + "negatives": 1476, + "auroc": 0.6292806109879281, + "auprc": 0.03385299980988039, + "brier": 0.014486002199118475, + "calibration": { + "observed_rate": 0.014686248331108143, + "mean_prediction": 0.006719521367724643, + "calibration_in_the_large": -0.0079667269633835, + "expected_calibration_error_10bin": 0.008112753090871517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 17, + "negatives": 2659, + "auroc": 0.8116054244187333, + "auprc": 0.026494632268493995, + "brier": 0.0062855393903262025, + "calibration": { + "observed_rate": 0.006352765321375187, + "mean_prediction": 0.004338334606879752, + "calibration_in_the_large": -0.0020144307144954344, + "expected_calibration_error_10bin": 0.002101338769176893, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 10, + "negatives": 2542, + "auroc": 0.8593627065302911, + "auprc": 0.09904253181051154, + "brier": 0.003805002920094388, + "calibration": { + "observed_rate": 0.003918495297805642, + "mean_prediction": 0.0022965402814313918, + "calibration_in_the_large": -0.0016219550163742505, + "expected_calibration_error_10bin": 0.0017113279654475586, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 7, + "negatives": 2720, + "auroc": 0.8776785714285714, + "auprc": 0.03635724039966791, + "brier": 0.0025730564113177114, + "calibration": { + "observed_rate": 0.002566923359002567, + "mean_prediction": 0.0042911734596343745, + "calibration_in_the_large": 0.0017242501006318077, + "expected_calibration_error_10bin": 0.0017242501006318077, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 2, + "negatives": 2388, + "auroc": 0.9172948073701842, + "auprc": 0.00759344111120717, + "brier": 0.0008346037849518334, + "calibration": { + "observed_rate": 0.0008368200836820083, + "mean_prediction": 0.0006590577610953607, + "calibration_in_the_large": -0.00017776232258664764, + "expected_calibration_error_10bin": 0.00017776232258664764, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 5, + "negatives": 2666, + "auroc": 0.9095273818454613, + "auprc": 0.02569720671344198, + "brier": 0.0018774253778326387, + "calibration": { + "observed_rate": 0.0018719580681392737, + "mean_prediction": 0.003837360150822937, + "calibration_in_the_large": 0.0019654020826836635, + "expected_calibration_error_10bin": 0.0019654020826836635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.8311364446027788, + "auprc": 0.010045889864325619, + "brier": 0.0007111197010128418, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007501840201023426, + "calibration_in_the_large": 3.8186868090950635e-05, + "expected_calibration_error_10bin": 3.8186868090950635e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 19, + "negatives": 2224, + "auroc": 0.8034125331313896, + "auprc": 0.03696610300952334, + "brier": 0.008323194608734387, + "calibration": { + "observed_rate": 0.008470798038341507, + "mean_prediction": 0.005638536916527731, + "calibration_in_the_large": -0.002832261121813776, + "expected_calibration_error_10bin": 0.002832261121813776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 6, + "negatives": 2754, + "auroc": 0.6680585814572743, + "auprc": 0.04343680685367721, + "brier": 0.002152051411929586, + "calibration": { + "observed_rate": 0.002173913043478261, + "mean_prediction": 0.002613537590381041, + "calibration_in_the_large": 0.00043962454690278, + "expected_calibration_error_10bin": 0.00043962454690278, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.855061327869319, + "auprc": 0.02298044082372177, + "brier": 0.004789669477863041, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.0045006991014915655, + "calibration_in_the_large": -0.00028575156124775736, + "expected_calibration_error_10bin": 0.0007593775905372805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.8168905753256076, + "auprc": 0.054762372325758014, + "brier": 0.0024779415614758905, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.0018703445142635958, + "calibration_in_the_large": -0.000635921149896805, + "expected_calibration_error_10bin": 0.000635921149896805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7587313160772876, + "auprc": 0.010556393090314892, + "brier": 0.003630408105522344, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.001714076804736784, + "calibration_in_the_large": -0.0019183242123355009, + "expected_calibration_error_10bin": 0.0019183242123355009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 4, + "negatives": 2719, + "auroc": 0.6308385435821994, + "auprc": 0.006893255485646795, + "brier": 0.0014765713822682183, + "calibration": { + "observed_rate": 0.0014689680499449136, + "mean_prediction": 0.002059428350693675, + "calibration_in_the_large": 0.0005904603007487613, + "expected_calibration_error_10bin": 0.0005904603007487613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.9478252923976608, + "auprc": 0.021003456839491102, + "brier": 0.0014497431467221003, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0018055066502782843, + "calibration_in_the_large": 0.0003456526356797442, + "expected_calibration_error_10bin": 0.0003456526356797442, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 8, + "negatives": 2714, + "auroc": 0.8212969786293294, + "auprc": 0.021713554672244038, + "brier": 0.0029388465279579314, + "calibration": { + "observed_rate": 0.0029390154298310064, + "mean_prediction": 0.0035129474820566864, + "calibration_in_the_large": 0.00057393205222568, + "expected_calibration_error_10bin": 0.0005739320522256796, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 5, + "negatives": 2761, + "auroc": 0.6701195219123506, + "auprc": 0.02192660955029919, + "brier": 0.0018000209743967031, + "calibration": { + "observed_rate": 0.0018076644974692696, + "mean_prediction": 0.0024334663657911313, + "calibration_in_the_large": 0.0006258018683218617, + "expected_calibration_error_10bin": 0.0006258018683218617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 0, + "negatives": 2831, + "auroc": null, + "auprc": null, + "brier": 3.349362522943098e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008437807810937, + "calibration_in_the_large": 0.0008437807810937, + "expected_calibration_error_10bin": 0.0008437807810937, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 5, + "negatives": 2711, + "auroc": 0.6896348210992254, + "auprc": 0.004459446300587494, + "brier": 0.0018455193451648207, + "calibration": { + "observed_rate": 0.001840942562592047, + "mean_prediction": 0.0025272739093297023, + "calibration_in_the_large": 0.0006863313467376552, + "expected_calibration_error_10bin": 0.0006863313467376552, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 12, + "negatives": 2373, + "auroc": 0.7914735215620171, + "auprc": 0.016623451521332152, + "brier": 0.004991776548275473, + "calibration": { + "observed_rate": 0.005031446540880503, + "mean_prediction": 0.003685098458215868, + "calibration_in_the_large": -0.001346348082664635, + "expected_calibration_error_10bin": 0.001346348082664635, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 5, + "negatives": 2729, + "auroc": 0.776181751557347, + "auprc": 0.02128320623794074, + "brier": 0.0018211827198814274, + "calibration": { + "observed_rate": 0.0018288222384784199, + "mean_prediction": 0.001301450738186534, + "calibration_in_the_large": -0.0005273715002918858, + "expected_calibration_error_10bin": 0.0005273715002918858, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 17, + "negatives": 2398, + "auroc": 0.8510032870529363, + "auprc": 0.03904115607542279, + "brier": 0.006990985006533248, + "calibration": { + "observed_rate": 0.007039337474120083, + "mean_prediction": 0.006735315027202789, + "calibration_in_the_large": -0.0003040224469172941, + "expected_calibration_error_10bin": 0.0012703162142895677, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8302425106990015, + "auprc": 0.006535720763908684, + "brier": 0.0010662466299328447, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0009405331971296153, + "calibration_in_the_large": -0.000128223482599633, + "expected_calibration_error_10bin": 0.000128223482599633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.9710714285714286, + "auprc": 0.020034843205574915, + "brier": 0.0007120852757953654, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.0002893086089295983, + "calibration_in_the_large": -0.0004244672654458478, + "expected_calibration_error_10bin": 0.0004244672654458478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 6, + "negatives": 2729, + "auroc": 0.715158177598632, + "auprc": 0.005866591469099648, + "brier": 0.0021910726909462413, + "calibration": { + "observed_rate": 0.0021937842778793418, + "mean_prediction": 0.001564050984837426, + "calibration_in_the_large": -0.0006297332930419158, + "expected_calibration_error_10bin": 0.0006297332930419158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.5762987012987013, + "auprc": 0.001239043453987159, + "brier": 0.0007220254908354206, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0008090748205694776, + "calibration_in_the_large": 8.809428704388284e-05, + "expected_calibration_error_10bin": 8.809428704388284e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8404907975460123, + "auprc": 0.0033899863251399087, + "brier": 0.0007229203125555992, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0009889405982646089, + "calibration_in_the_large": 0.0002677000645466139, + "expected_calibration_error_10bin": 0.0002677000645466139, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 9, + "negatives": 2743, + "auroc": 0.8278446145744724, + "auprc": 0.02049191973406074, + "brier": 0.0032548740466667382, + "calibration": { + "observed_rate": 0.0032703488372093025, + "mean_prediction": 0.003161723574282992, + "calibration_in_the_large": -0.00010862526292631071, + "expected_calibration_error_10bin": 0.00010862526292631071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 2, + "negatives": 2769, + "auroc": 0.9142289635247381, + "auprc": 0.008364973896535358, + "brier": 0.0007248666597115043, + "calibration": { + "observed_rate": 0.0007217610970768675, + "mean_prediction": 0.0013602646271821382, + "calibration_in_the_large": 0.0006385035301052707, + "expected_calibration_error_10bin": 0.0006385035301052707, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.7045071101470234, + "auprc": 0.007100648474984413, + "brier": 0.0010816624735678294, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0010411367160582357, + "calibration_in_the_large": -4.228690257665046e-05, + "expected_calibration_error_10bin": 4.228690257665046e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 2, + "negatives": 2816, + "auroc": 0.5159801136363636, + "auprc": 0.00265113537949597, + "brier": 0.0007101538634730324, + "calibration": { + "observed_rate": 0.0007097232079489, + "mean_prediction": 0.0006641663499770946, + "calibration_in_the_large": -4.5556857971805345e-05, + "expected_calibration_error_10bin": 4.5556857971805345e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 1, + "negatives": 2733, + "auroc": 0.7145993413830956, + "auprc": 0.0012804097311139564, + "brier": 0.00037417129717078686, + "calibration": { + "observed_rate": 0.000365764447695684, + "mean_prediction": 0.0011625630329287454, + "calibration_in_the_large": 0.0007967985852330614, + "expected_calibration_error_10bin": 0.0007967985852330614, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.7637804589543411, + "auprc": 0.019930193085684552, + "brier": 0.00106109269554108, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0003332944606103187, + "calibration_in_the_large": -0.0007301582157455835, + "expected_calibration_error_10bin": 0.0007301582157455835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.39815480469686076, + "auprc": 0.0011733515429775817, + "brier": 0.0010780554423725766, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0006992782923486533, + "calibration_in_the_large": -0.000377920989518492, + "expected_calibration_error_10bin": 0.000377920989518492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.6005309734513274, + "auprc": 0.0016363966341791155, + "brier": 0.00071196409491285, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0005725903460657363, + "calibration_in_the_large": -0.00013487339641746145, + "expected_calibration_error_10bin": 0.00013487339641746145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8794753633463311, + "auprc": 0.014614584538807433, + "brier": 0.0017821479852669297, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009585110912883598, + "calibration_in_the_large": -0.0008107741174872947, + "expected_calibration_error_10bin": 0.0008107741174872947, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 13, + "negatives": 2726, + "auroc": 0.660392798690671, + "auprc": 0.016311671124465747, + "brier": 0.004719659137080518, + "calibration": { + "observed_rate": 0.004746257758305951, + "mean_prediction": 0.0033786458187786586, + "calibration_in_the_large": -0.0013676119395272927, + "expected_calibration_error_10bin": 0.0013676119395272927, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 2, + "negatives": 2791, + "auroc": 0.9845933357219635, + "auprc": 0.09538152610441766, + "brier": 0.0007469635166934718, + "calibration": { + "observed_rate": 0.0007160759040458289, + "mean_prediction": 0.0009701872905949219, + "calibration_in_the_large": 0.000254111386549093, + "expected_calibration_error_10bin": 0.0005723725534108734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 7, + "negatives": 2773, + "auroc": 0.6795631343052908, + "auprc": 0.006212665643924463, + "brier": 0.0025136043047702546, + "calibration": { + "observed_rate": 0.002517985611510791, + "mean_prediction": 0.0016872003955267828, + "calibration_in_the_large": -0.0008307852159840084, + "expected_calibration_error_10bin": 0.0008307852159840084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.8624394851812492, + "auprc": 0.010150103815456122, + "brier": 0.0010595202497726657, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0003184060717007837, + "calibration_in_the_large": -0.0007431650535646091, + "expected_calibration_error_10bin": 0.0007431650535646091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 33, + "negatives": 2452, + "auroc": 0.7540659449305452, + "auprc": 0.04617608788098722, + "brier": 0.012984997332224265, + "calibration": { + "observed_rate": 0.013279678068410463, + "mean_prediction": 0.010353693775553912, + "calibration_in_the_large": -0.002925984292856551, + "expected_calibration_error_10bin": 0.002925984292856551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.9946996466431095, + "auprc": 0.0625, + "brier": 0.0003490421384590154, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005269743222628325, + "calibration_in_the_large": 0.00017374224879056118, + "expected_calibration_error_10bin": 0.00017374224879056118, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.8760964912280702, + "auprc": 0.025169601573482414, + "brier": 0.0014479526596896117, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.0012954999996721724, + "calibration_in_the_large": -0.00016435401492636767, + "expected_calibration_error_10bin": 0.00016435401492636767, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5630311614730878, + "auprc": 0.0008097165991902834, + "brier": 0.00035518146633097507, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007244124110459465, + "calibration_in_the_large": 0.0003704301101609908, + "expected_calibration_error_10bin": 0.0003704301101609908, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.6551172707889126, + "auprc": 0.0020031752366245327, + "brier": 0.0007320872691411383, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.001343008014785919, + "calibration_in_the_large": 0.0006327807420586462, + "expected_calibration_error_10bin": 0.0006327807420586462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.329360950575243e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000675730907922395, + "calibration_in_the_large": 0.000675730907922395, + "expected_calibration_error_10bin": 0.000675730907922395, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 3, + "negatives": 2792, + "auroc": 0.8636580706781279, + "auprc": 0.005903494893132199, + "brier": 0.0010855828544468996, + "calibration": { + "observed_rate": 0.001073345259391771, + "mean_prediction": 0.0019419299924250078, + "calibration_in_the_large": 0.0008685847330332369, + "expected_calibration_error_10bin": 0.0008685847330332369, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.8027313296413786, + "auprc": 0.02317029754354643, + "brier": 0.0052290706337231934, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.007157892881673084, + "calibration_in_the_large": 0.0019164102908831183, + "expected_calibration_error_10bin": 0.0019164102908831178, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 1, + "negatives": 2814, + "auroc": 0.9992892679459844, + "auprc": 0.3333333333333333, + "brier": 0.00033845809097088553, + "calibration": { + "observed_rate": 0.00035523978685612787, + "mean_prediction": 0.0013554166348268876, + "calibration_in_the_large": 0.0010001768479707598, + "expected_calibration_error_10bin": 0.0010001768479707598, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.905940594059406, + "auprc": 0.003745318352059925, + "brier": 0.00035466741076998343, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0003878699146405997, + "calibration_in_the_large": 3.438811895307758e-05, + "expected_calibration_error_10bin": 3.438811895307758e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5123937677053825, + "auprc": 0.000725689404934688, + "brier": 0.0003563644370312804, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0007329428988072347, + "calibration_in_the_large": 0.0003789605979222789, + "expected_calibration_error_10bin": 0.0003789605979222789, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.26873661670235544, + "auprc": 0.0007135586980531433, + "brier": 0.0007153856274509255, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0008421526876214912, + "calibration_in_the_large": 0.0001288859258525896, + "expected_calibration_error_10bin": 0.0001288859258525896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 10, + "negatives": 2560, + "auroc": 0.8671484375, + "auprc": 0.024919746631698766, + "brier": 0.003840794272690601, + "calibration": { + "observed_rate": 0.0038910505836575876, + "mean_prediction": 0.003258808024537994, + "calibration_in_the_large": -0.0006322425591195938, + "expected_calibration_error_10bin": 0.0006322425591195938, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 13, + "negatives": 2505, + "auroc": 0.6331030247197912, + "auprc": 0.011001513979312991, + "brier": 0.0051409969179010764, + "calibration": { + "observed_rate": 0.005162827640984908, + "mean_prediction": 0.0038307830005178374, + "calibration_in_the_large": -0.001332044640467071, + "expected_calibration_error_10bin": 0.001332044640467071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.81657223796034, + "auprc": 0.0019267822736030828, + "brier": 0.0003542158777972551, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0003374330609209037, + "calibration_in_the_large": -1.654923996405208e-05, + "expected_calibration_error_10bin": 1.654923996405208e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 14, + "negatives": 2763, + "auroc": 0.814900987539424, + "auprc": 0.01811663767217489, + "brier": 0.004998197098935873, + "calibration": { + "observed_rate": 0.005041411595246669, + "mean_prediction": 0.003001233871649852, + "calibration_in_the_large": -0.002040177723596817, + "expected_calibration_error_10bin": 0.002040177723596817, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7769595220929035, + "auprc": 0.013649907045136283, + "brier": 0.002506986449031233, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.0012457263027413792, + "calibration_in_the_large": -0.0012713538842417204, + "expected_calibration_error_10bin": 0.0012713538842417204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.9194879089615932, + "auprc": 0.015133683175904179, + "brier": 0.0017691583700186584, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0005094672146798872, + "calibration_in_the_large": -0.0012654706624944116, + "expected_calibration_error_10bin": 0.0012654706624944116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 13, + "negatives": 2741, + "auroc": 0.6115118008587546, + "auprc": 0.007372809501962841, + "brier": 0.0047290025993951415, + "calibration": { + "observed_rate": 0.004720406681190995, + "mean_prediction": 0.003973782860976378, + "calibration_in_the_large": -0.0007466238202146168, + "expected_calibration_error_10bin": 0.0007466238202146168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 3, + "negatives": 2804, + "auroc": 0.8912268188302425, + "auprc": 0.03394477543890657, + "brier": 0.0010693646651212135, + "calibration": { + "observed_rate": 0.0010687566797292483, + "mean_prediction": 0.0016524046398980537, + "calibration_in_the_large": 0.0005836479601688054, + "expected_calibration_error_10bin": 0.0005836479601688054, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.7113274336283186, + "auprc": 0.004167863765103817, + "brier": 0.0014299891603986481, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0006828239510730138, + "calibration_in_the_large": -0.0007311032316770746, + "expected_calibration_error_10bin": 0.0008189372651324227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 8, + "negatives": 2762, + "auroc": 0.7924058653149891, + "auprc": 0.021057972799662136, + "brier": 0.0028681492684601005, + "calibration": { + "observed_rate": 0.002888086642599278, + "mean_prediction": 0.0014907042699516607, + "calibration_in_the_large": -0.0013973823726476172, + "expected_calibration_error_10bin": 0.0013973823726476172, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 20, + "negatives": 2585, + "auroc": 0.8749516441005802, + "auprc": 0.09026721491254745, + "brier": 0.007464051865546958, + "calibration": { + "observed_rate": 0.007677543186180422, + "mean_prediction": 0.00843001622993221, + "calibration_in_the_large": 0.0007524730437517887, + "expected_calibration_error_10bin": 0.0013644203976310178, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 9, + "negatives": 2683, + "auroc": 0.7287447716072389, + "auprc": 0.010922851251490253, + "brier": 0.0033256224535759987, + "calibration": { + "observed_rate": 0.0033432392273402673, + "mean_prediction": 0.0032241575088658883, + "calibration_in_the_large": -0.000119081718474379, + "expected_calibration_error_10bin": 0.000119081718474379, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 6.74948901610063e-08, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00012353170968559858, + "calibration_in_the_large": 0.00012353170968559858, + "expected_calibration_error_10bin": 0.00012353170968559858, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9937987243090007, + "auprc": 0.10368663594470046, + "brier": 0.0008413240237991282, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0023608627384606976, + "calibration_in_the_large": 0.0016526474410102727, + "expected_calibration_error_10bin": 0.0016526474410102727, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 3, + "negatives": 2810, + "auroc": 0.662870699881376, + "auprc": 0.013528255129866997, + "brier": 0.001078538359700775, + "calibration": { + "observed_rate": 0.001066477070742979, + "mean_prediction": 0.00239313772437489, + "calibration_in_the_large": 0.0013266606536319109, + "expected_calibration_error_10bin": 0.0013266606536319109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 33, + "negatives": 2010, + "auroc": 0.8023368008442635, + "auprc": 0.12072118049079501, + "brier": 0.015469618293451445, + "calibration": { + "observed_rate": 0.016152716593245228, + "mean_prediction": 0.01385674864848547, + "calibration_in_the_large": -0.0022959679447597577, + "expected_calibration_error_10bin": 0.0022959679447597564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 4, + "negatives": 2760, + "auroc": 0.7477355072463768, + "auprc": 0.030456138082831135, + "brier": 0.0014377613302250514, + "calibration": { + "observed_rate": 0.001447178002894356, + "mean_prediction": 0.0020331615767345324, + "calibration_in_the_large": 0.0005859835738401765, + "expected_calibration_error_10bin": 0.0005859835738401765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.8449378330373002, + "auprc": 0.003389538615690511, + "brier": 0.0007211192596997265, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.001162642903626149, + "calibration_in_the_large": 0.00045266775275642937, + "expected_calibration_error_10bin": 0.00045266775275642937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9267425320056899, + "auprc": 0.05246913580246914, + "brier": 0.0007050957835622179, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0008823762708921182, + "calibration_in_the_large": 0.00017164421687648214, + "expected_calibration_error_10bin": 0.00017164421687648214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7928348909657321, + "auprc": 0.009545269416102023, + "brier": 0.0010838408686080407, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.002669699740410311, + "calibration_in_the_large": 0.0015925004585431656, + "expected_calibration_error_10bin": 0.0015925004585431656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 0, + "negatives": 2837, + "auroc": null, + "auprc": null, + "brier": 2.8783472068838284e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006756194252218996, + "calibration_in_the_large": 0.0006756194252218996, + "expected_calibration_error_10bin": 0.0006756194252218996, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.9625590694292985, + "auprc": 0.09715936293128212, + "brier": 0.0017523557731036542, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.002414454516310296, + "calibration_in_the_large": 0.0006002310039735761, + "expected_calibration_error_10bin": 0.0006002310039735764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 4.1508203138717356e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004182308695771155, + "calibration_in_the_large": 0.0004182308695771155, + "expected_calibration_error_10bin": 0.0004182308695771155, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.7709368346344926, + "auprc": 0.002725128681850264, + "brier": 0.0007097830448159854, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.00042566060853350274, + "calibration_in_the_large": -0.0002835592496225257, + "expected_calibration_error_10bin": 0.0002835592496225257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 1, + "negatives": 2812, + "auroc": 0.9711948790896159, + "auprc": 0.012195121951219513, + "brier": 0.0003546411330071357, + "calibration": { + "observed_rate": 0.00035549235691432633, + "mean_prediction": 0.00029613058701559144, + "calibration_in_the_large": -5.9361769898734896e-05, + "expected_calibration_error_10bin": 5.9361769898734896e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.40190441969098095, + "auprc": 0.0008884128284292105, + "brier": 0.0007215518585154, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0011544633732798112, + "calibration_in_the_large": 0.00043633051870171425, + "expected_calibration_error_10bin": 0.00043633051870171425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 10, + "negatives": 2739, + "auroc": 0.8313253012048193, + "auprc": 0.03714548383669943, + "brier": 0.003613528879369459, + "calibration": { + "observed_rate": 0.0036376864314296106, + "mean_prediction": 0.004203025484691851, + "calibration_in_the_large": 0.0005653390532622403, + "expected_calibration_error_10bin": 0.0009193262820682582, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 5, + "negatives": 2810, + "auroc": 0.771459074733096, + "auprc": 0.005114900529118982, + "brier": 0.001779729837775243, + "calibration": { + "observed_rate": 0.0017761989342806395, + "mean_prediction": 0.0010808828754018127, + "calibration_in_the_large": -0.0006953160588788268, + "expected_calibration_error_10bin": 0.0006953160588788268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 10, + "negatives": 2735, + "auroc": 0.7277148080438757, + "auprc": 0.019883082133557835, + "brier": 0.0036201639743972565, + "calibration": { + "observed_rate": 0.0036429872495446266, + "mean_prediction": 0.004261792743298144, + "calibration_in_the_large": 0.0006188054937535173, + "expected_calibration_error_10bin": 0.0006188054937535173, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 4, + "negatives": 2737, + "auroc": 0.5253014249177932, + "auprc": 0.002812020358982381, + "brier": 0.0014695400503164221, + "calibration": { + "observed_rate": 0.001459321415541773, + "mean_prediction": 0.0019697385576024403, + "calibration_in_the_large": 0.0005104171420606673, + "expected_calibration_error_10bin": 0.0005104171420606673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.698313598851812, + "auprc": 0.025626495555636702, + "brier": 0.0017844388323030366, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0007453473156205718, + "calibration_in_the_large": -0.0010454836299381674, + "expected_calibration_error_10bin": 0.0010454836299381674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 40, + "negatives": 2520, + "auroc": 0.7109126984126984, + "auprc": 0.04686533365166189, + "brier": 0.015244244103762133, + "calibration": { + "observed_rate": 0.015625, + "mean_prediction": 0.010126733697831014, + "calibration_in_the_large": -0.005498266302168986, + "expected_calibration_error_10bin": 0.005971706234271323, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.7682319459267165, + "auprc": 0.002235586725264872, + "brier": 0.000712696636209313, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.0011891991296041362, + "calibration_in_the_large": 0.0004782144157754835, + "expected_calibration_error_10bin": 0.0004782144157754835, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 6, + "negatives": 2804, + "auroc": 0.698644793152639, + "auprc": 0.006024107524126913, + "brier": 0.0021304082789508397, + "calibration": { + "observed_rate": 0.002135231316725979, + "mean_prediction": 0.001258858517464636, + "calibration_in_the_large": -0.0008763727992613427, + "expected_calibration_error_10bin": 0.0008763727992613427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 5, + "negatives": 2796, + "auroc": 0.7879113018597997, + "auprc": 0.008459513832668127, + "brier": 0.0017924937867727499, + "calibration": { + "observed_rate": 0.001785076758300607, + "mean_prediction": 0.001995402719260605, + "calibration_in_the_large": 0.0002103259609599979, + "expected_calibration_error_10bin": 0.0002103259609599979, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.8127991039609002, + "auprc": 0.016761014819660087, + "brier": 0.002556548498152488, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.00394872065448444, + "calibration_in_the_large": 0.0014602741560841557, + "expected_calibration_error_10bin": 0.0014602741560841555, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 1, + "negatives": 2795, + "auroc": 0.8661896243291592, + "auprc": 0.0026666666666666666, + "brier": 0.0003623179809800109, + "calibration": { + "observed_rate": 0.000357653791130186, + "mean_prediction": 0.001125885385845036, + "calibration_in_the_large": 0.0007682315947148499, + "expected_calibration_error_10bin": 0.0007682315947148499, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9592499098449333, + "auprc": 0.008771929824561403, + "brier": 0.00036617896974846316, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0005068464254382481, + "calibration_in_the_large": 0.00014635615867545076, + "expected_calibration_error_10bin": 0.00014635615867545076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 6, + "negatives": 2781, + "auroc": 0.9782452355267889, + "auprc": 0.08409324018844143, + "brier": 0.0022318941516335056, + "calibration": { + "observed_rate": 0.002152852529601722, + "mean_prediction": 0.0022051685333689544, + "calibration_in_the_large": 5.2316003767232354e-05, + "expected_calibration_error_10bin": 0.001415743696983756, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 3, + "negatives": 2760, + "auroc": 0.9788647342995169, + "auprc": 0.03988625402432761, + "brier": 0.0011139341477185863, + "calibration": { + "observed_rate": 0.0010857763300760044, + "mean_prediction": 0.0016231786147105005, + "calibration_in_the_large": 0.0005374022846344961, + "expected_calibration_error_10bin": 0.0005374022846344961, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 4, + "negatives": 2794, + "auroc": 0.8438618468146027, + "auprc": 0.021135062253057186, + "brier": 0.0014250151578441073, + "calibration": { + "observed_rate": 0.0014295925661186562, + "mean_prediction": 0.0011292746173136598, + "calibration_in_the_large": -0.0003003179488049964, + "expected_calibration_error_10bin": 0.0003003179488049964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 14, + "negatives": 2667, + "auroc": 0.8244683700251755, + "auprc": 0.1902694789178995, + "brier": 0.004751917792459653, + "calibration": { + "observed_rate": 0.005221932114882507, + "mean_prediction": 0.002222382192105438, + "calibration_in_the_large": -0.0029995499227770685, + "expected_calibration_error_10bin": 0.003511269876741981, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 3, + "negatives": 2728, + "auroc": 0.8000977517106549, + "auprc": 0.004184850020808088, + "brier": 0.0011011901183804, + "calibration": { + "observed_rate": 0.0010984987184181618, + "mean_prediction": 0.0014045831278556014, + "calibration_in_the_large": 0.00030608440943743955, + "expected_calibration_error_10bin": 0.00030608440943743955, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.8290825363088913, + "auprc": 0.022797331492983665, + "brier": 0.0007065107849446954, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0008437762335169467, + "calibration_in_the_large": 0.00013581163174703522, + "expected_calibration_error_10bin": 0.00013581163174703522, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.9741409847679773, + "auprc": 0.013513513513513514, + "brier": 0.00035417480633630774, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0005949138812547456, + "calibration_in_the_large": 0.0002408062325295331, + "expected_calibration_error_10bin": 0.0002408062325295331, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 4, + "negatives": 2753, + "auroc": 0.8815837268434435, + "auprc": 0.2558500886611174, + "brier": 0.0013577709199113547, + "calibration": { + "observed_rate": 0.0014508523757707653, + "mean_prediction": 0.0018754928583289488, + "calibration_in_the_large": 0.0004246404825581835, + "expected_calibration_error_10bin": 0.0009758894780731234, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.6429600288080662, + "auprc": 0.0022650090302985845, + "brier": 0.0007197083317316065, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0005818866335154753, + "calibration_in_the_large": -0.00013779670581521913, + "expected_calibration_error_10bin": 0.00013779670581521913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.7691477885652643, + "auprc": 0.020062335654886826, + "brier": 0.0014310314056321422, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0010970211342108812, + "calibration_in_the_large": -0.00033924457494531276, + "expected_calibration_error_10bin": 0.00033924457494531276, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6254416961130742, + "auprc": 0.000942507068803016, + "brier": 0.0003538840377234241, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0003626838490034864, + "calibration_in_the_large": 9.451775531215149e-06, + "expected_calibration_error_10bin": 9.451775531215149e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 13, + "negatives": 2755, + "auroc": 0.8409046488901298, + "auprc": 0.025761365070170704, + "brier": 0.004669324755564259, + "calibration": { + "observed_rate": 0.004696531791907515, + "mean_prediction": 0.003417815192724999, + "calibration_in_the_large": -0.0012787165991825157, + "expected_calibration_error_10bin": 0.0014611662768724317, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 11, + "negatives": 2740, + "auroc": 0.8669542136695422, + "auprc": 0.039626581605849115, + "brier": 0.003930125682541055, + "calibration": { + "observed_rate": 0.003998545983278807, + "mean_prediction": 0.004043704057731864, + "calibration_in_the_large": 4.515807445305657e-05, + "expected_calibration_error_10bin": 4.515807445305657e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.9248223801065719, + "auprc": 0.0487627616600779, + "brier": 0.0027799675250955156, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0020605136076636077, + "calibration_in_the_large": -0.0007733510752977808, + "expected_calibration_error_10bin": 0.0007733510752977808, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.7258359145421333, + "auprc": 0.014148271518133693, + "brier": 0.003190003603003853, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.002078937984070381, + "calibration_in_the_large": -0.0011273320551173638, + "expected_calibration_error_10bin": 0.0011273320551173638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 11, + "negatives": 2690, + "auroc": 0.6106792835417371, + "auprc": 0.01727534932140844, + "brier": 0.004066226094496119, + "calibration": { + "observed_rate": 0.004072565716401333, + "mean_prediction": 0.0037635125147644213, + "calibration_in_the_large": -0.00030905320163691127, + "expected_calibration_error_10bin": 0.00030905320163691127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 3, + "negatives": 2827, + "auroc": 0.7341115434500648, + "auprc": 0.004744465725668602, + "brier": 0.0010600318651688022, + "calibration": { + "observed_rate": 0.0010600706713780918, + "mean_prediction": 0.0005190515086006441, + "calibration_in_the_large": -0.0005410191627774477, + "expected_calibration_error_10bin": 0.0005410191627774477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.743547813722005, + "auprc": 0.007252322338022424, + "brier": 0.0017921580422892635, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002018375321156361, + "calibration_in_the_large": 0.0002440673012841111, + "expected_calibration_error_10bin": 0.0002440673012841111, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.4172291296625222, + "auprc": 0.0009813482642608493, + "brier": 0.0007207535463302562, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0014614378727401507, + "calibration_in_the_large": 0.0007514627218704311, + "expected_calibration_error_10bin": 0.0007514627218704311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 2, + "negatives": 2814, + "auroc": 0.8903695806680881, + "auprc": 0.0470965815793402, + "brier": 0.0007044634673034904, + "calibration": { + "observed_rate": 0.0007102272727272727, + "mean_prediction": 0.0006933362580622573, + "calibration_in_the_large": -1.6891014665015402e-05, + "expected_calibration_error_10bin": 1.6891014665015402e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8228026826685493, + "auprc": 0.01769020812009553, + "brier": 0.0007036979465650815, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.00039243932820181486, + "calibration_in_the_large": -0.000313028043932224, + "expected_calibration_error_10bin": 0.000313028043932224, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.7146544243866148e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005219296922048841, + "calibration_in_the_large": 0.0005219296922048841, + "expected_calibration_error_10bin": 0.0005219296922048841, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6098294434470377, + "auprc": 0.005247675040049407, + "brier": 0.0028681415118313237, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0029966153781202038, + "calibration_in_the_large": 0.00013231176193688812, + "expected_calibration_error_10bin": 0.00013231176193688812, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.8459110473457676, + "auprc": 0.020045476010628234, + "brier": 0.0035512390385686464, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.00170906005258742, + "calibration_in_the_large": -0.0018649213627092204, + "expected_calibration_error_10bin": 0.0018649213627092204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.8783201722900216, + "auprc": 0.008016468755356504, + "brier": 0.0011147289168139702, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0016281475288571357, + "calibration_in_the_large": 0.0005524931724569923, + "expected_calibration_error_10bin": 0.0005524931724569924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.5607509741409847, + "auprc": 0.0008058017727639, + "brier": 0.00036792273737932206, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0015827432539070754, + "calibration_in_the_large": 0.001228635605181863, + "expected_calibration_error_10bin": 0.001228635605181863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 8, + "negatives": 2705, + "auroc": 0.838724584103512, + "auprc": 0.06137612432523918, + "brier": 0.0029031497480874625, + "calibration": { + "observed_rate": 0.002948765204570586, + "mean_prediction": 0.0020612500985637567, + "calibration_in_the_large": -0.0008875151060068294, + "expected_calibration_error_10bin": 0.0008875151060068294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 1, + "negatives": 2789, + "auroc": 0.6439584080315526, + "auprc": 0.001006036217303823, + "brier": 0.00035943109727311465, + "calibration": { + "observed_rate": 0.00035842293906810036, + "mean_prediction": 0.0005555331080987625, + "calibration_in_the_large": 0.0001971101690306621, + "expected_calibration_error_10bin": 0.0001971101690306621, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 4, + "negatives": 2729, + "auroc": 0.6994320263832906, + "auprc": 0.0033586876712960625, + "brier": 0.0014634935600918249, + "calibration": { + "observed_rate": 0.0014635931211123307, + "mean_prediction": 0.0007423371357349003, + "calibration_in_the_large": -0.0007212559853774303, + "expected_calibration_error_10bin": 0.0007212559853774303, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 15, + "negatives": 2659, + "auroc": 0.6786511219756801, + "auprc": 0.016814564488785454, + "brier": 0.0055670757683181455, + "calibration": { + "observed_rate": 0.005609573672400898, + "mean_prediction": 0.0036540605538493524, + "calibration_in_the_large": -0.001955513118551545, + "expected_calibration_error_10bin": 0.001955513118551545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9939716312056738, + "auprc": 0.05555555555555555, + "brier": 0.000351852025533896, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.00037868451129765483, + "calibration_in_the_large": 2.4200285845687444e-05, + "expected_calibration_error_10bin": 2.4200285845687444e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 8, + "negatives": 2709, + "auroc": 0.720514950166113, + "auprc": 0.051244123218534755, + "brier": 0.0029122797274782177, + "calibration": { + "observed_rate": 0.002944423997055576, + "mean_prediction": 0.0034867211853399764, + "calibration_in_the_large": 0.0005422971882844004, + "expected_calibration_error_10bin": 0.0005422971882844004, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9679144385026738, + "auprc": 0.01098901098901099, + "brier": 0.0003555970283851623, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0003630425484806522, + "calibration_in_the_large": 6.663361025199604e-06, + "expected_calibration_error_10bin": 6.663361025199604e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.36473515819409885, + "auprc": 0.0005592841163310962, + "brier": 0.00035680553930114023, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0007037024196183818, + "calibration_in_the_large": 0.0003483363926105637, + "expected_calibration_error_10bin": 0.0003483363926105637, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 2, + "negatives": 2741, + "auroc": 0.5534476468442174, + "auprc": 0.007269836515086926, + "brier": 0.0007282343962055156, + "calibration": { + "observed_rate": 0.0007291286912139992, + "mean_prediction": 0.0008785934380911078, + "calibration_in_the_large": 0.00014946474687710853, + "expected_calibration_error_10bin": 0.00014946474687710853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 3, + "negatives": 2687, + "auroc": 0.8069718397221188, + "auprc": 0.04697151574261635, + "brier": 0.0011057371105736191, + "calibration": { + "observed_rate": 0.0011152416356877324, + "mean_prediction": 0.0019412029852137358, + "calibration_in_the_large": 0.0008259613495260035, + "expected_calibration_error_10bin": 0.0008259613495260035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 0, + "negatives": 2785, + "auroc": null, + "auprc": null, + "brier": 1.412382039269019e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008411977784627872, + "calibration_in_the_large": 0.0008411977784627872, + "expected_calibration_error_10bin": 0.0008411977784627872, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 13, + "negatives": 2554, + "auroc": 0.6883019095235227, + "auprc": 0.014509709352899745, + "brier": 0.005062823860124473, + "calibration": { + "observed_rate": 0.00506427736657577, + "mean_prediction": 0.006928156907111932, + "calibration_in_the_large": 0.0018638795405361624, + "expected_calibration_error_10bin": 0.0018638795405361624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 2, + "negatives": 2779, + "auroc": 0.5158330334652753, + "auprc": 0.001572915172890303, + "brier": 0.0007207313968022821, + "calibration": { + "observed_rate": 0.000719165767709457, + "mean_prediction": 0.001327826089257168, + "calibration_in_the_large": 0.0006086603215477109, + "expected_calibration_error_10bin": 0.0006086603215477109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 15, + "negatives": 2682, + "auroc": 0.7474770072085508, + "auprc": 0.04243006222312668, + "brier": 0.00548023922511809, + "calibration": { + "observed_rate": 0.0055617352614015575, + "mean_prediction": 0.0058711532514567726, + "calibration_in_the_large": 0.0003094179900552151, + "expected_calibration_error_10bin": 0.0003094179900552151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 5, + "negatives": 2700, + "auroc": 0.7534074074074074, + "auprc": 0.008877650730903712, + "brier": 0.001847570515466588, + "calibration": { + "observed_rate": 0.0018484288354898336, + "mean_prediction": 0.0012518780477961452, + "calibration_in_the_large": -0.0005965507876936884, + "expected_calibration_error_10bin": 0.0005965507876936884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 1, + "negatives": 2817, + "auroc": 0.9843805466808662, + "auprc": 0.022222222222222223, + "brier": 0.00035382059708261856, + "calibration": { + "observed_rate": 0.00035486160397445, + "mean_prediction": 0.0007716909780590924, + "calibration_in_the_large": 0.0004168293740846424, + "expected_calibration_error_10bin": 0.0004168293740846424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 2, + "negatives": 2766, + "auroc": 0.8026030368763557, + "auprc": 0.0035950683534198887, + "brier": 0.0007218958154178886, + "calibration": { + "observed_rate": 0.000722543352601156, + "mean_prediction": 0.0006777672364427584, + "calibration_in_the_large": -4.477611615839763e-05, + "expected_calibration_error_10bin": 4.477611615839763e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 4, + "negatives": 2799, + "auroc": 0.8051982851018221, + "auprc": 0.01271712522423283, + "brier": 0.0014292801244667201, + "calibration": { + "observed_rate": 0.0014270424545130217, + "mean_prediction": 0.0010601462416009691, + "calibration_in_the_large": -0.0003668962129120526, + "expected_calibration_error_10bin": 0.0003668962129120526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8349893541518808, + "auprc": 0.002145922746781116, + "brier": 0.0003546323990428709, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0001526256324120367, + "calibration_in_the_large": -0.00020211008947515732, + "expected_calibration_error_10bin": 0.00020211008947515732, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9090260435247949, + "auprc": 0.00390625, + "brier": 0.00035898154646109987, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0012379242888842397, + "calibration_in_the_large": 0.0008812909079997889, + "expected_calibration_error_10bin": 0.0008812909079997889, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.6438804386275203, + "auprc": 0.002480226744932627, + "brier": 0.0014183233374123593, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007216713789291144, + "calibration_in_the_large": -0.0006912569149599706, + "expected_calibration_error_10bin": 0.0006912569149599706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 2, + "negatives": 2754, + "auroc": 0.7919389978213508, + "auprc": 0.0030238828967642526, + "brier": 0.0007309685956347188, + "calibration": { + "observed_rate": 0.000725689404934688, + "mean_prediction": 0.0015258680985409758, + "calibration_in_the_large": 0.0008001786936062879, + "expected_calibration_error_10bin": 0.0008001786936062879, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 3, + "negatives": 2823, + "auroc": 0.7867516826071556, + "auprc": 0.003293908762083073, + "brier": 0.001061135378562377, + "calibration": { + "observed_rate": 0.0010615711252653928, + "mean_prediction": 0.0004879794697080604, + "calibration_in_the_large": -0.0005735916555573324, + "expected_calibration_error_10bin": 0.0005735916555573324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 41, + "negatives": 2251, + "auroc": 0.8032202489950266, + "auprc": 0.08102953960882897, + "brier": 0.01704152646498489, + "calibration": { + "observed_rate": 0.01788830715532286, + "mean_prediction": 0.013480509402025614, + "calibration_in_the_large": -0.004407797753297247, + "expected_calibration_error_10bin": 0.005889675610983171, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 15, + "negatives": 2425, + "auroc": 0.902955326460481, + "auprc": 0.22568240276013904, + "brier": 0.005730265876221586, + "calibration": { + "observed_rate": 0.006147540983606557, + "mean_prediction": 0.0035830168395250437, + "calibration_in_the_large": -0.0025645241440815135, + "expected_calibration_error_10bin": 0.0025645241440815135, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.8464757821671005, + "auprc": 0.011005976154466164, + "brier": 0.002489663030095705, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0005243960998923441, + "calibration_in_the_large": -0.001970258212295824, + "expected_calibration_error_10bin": 0.001970258212295824, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8948532012734347, + "auprc": 0.03433553544054311, + "brier": 0.001406248222843465, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0003815664246927814, + "calibration_in_the_large": -0.0010313618691963036, + "expected_calibration_error_10bin": 0.0010313618691963036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9410145967934913, + "auprc": 0.04372643089457249, + "brier": 0.0010647115853858532, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.0015146541800635086, + "calibration_in_the_large": 0.0004389998236633652, + "expected_calibration_error_10bin": 0.0004389998236633652, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.7438894792773645, + "auprc": 0.008438950336775932, + "brier": 0.002115958623976934, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.001445766650815669, + "calibration_in_the_large": -0.0006751241233094638, + "expected_calibration_error_10bin": 0.0006751241233094638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.8349489795918368, + "auprc": 0.010712053452921767, + "brier": 0.0024833399407342242, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0013450962026545726, + "calibration_in_the_large": -0.00114866938338034, + "expected_calibration_error_10bin": 0.00114866938338034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 31, + "negatives": 2489, + "auroc": 0.7579413937453829, + "auprc": 0.035221938448410546, + "brier": 0.01206589069515181, + "calibration": { + "observed_rate": 0.012301587301587301, + "mean_prediction": 0.012411389173749263, + "calibration_in_the_large": 0.00010980187216196209, + "expected_calibration_error_10bin": 0.0005138372154298908, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 7, + "negatives": 2599, + "auroc": 0.8706645413070961, + "auprc": 0.029690911708527022, + "brier": 0.002653157632853742, + "calibration": { + "observed_rate": 0.002686108979278588, + "mean_prediction": 0.003192323529154719, + "calibration_in_the_large": 0.0005062145498761312, + "expected_calibration_error_10bin": 0.0005062145498761312, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9798444130127298, + "auprc": 0.017241379310344827, + "brier": 0.00035226167999934067, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0003511800988317236, + "calibration_in_the_large": -2.301696855798506e-06, + "expected_calibration_error_10bin": 2.301696855798506e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7796852646638054, + "auprc": 0.0037118007919986398, + "brier": 0.001071229427297354, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0005205834839012815, + "calibration_in_the_large": -0.0005512278772991472, + "expected_calibration_error_10bin": 0.0005512278772991472, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.998661800486618, + "auprc": 0.33730158730158727, + "brier": 0.0009420328494926235, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.0005619748106801088, + "calibration_in_the_large": -0.0005317182261408901, + "expected_calibration_error_10bin": 0.0007089365247869666, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 0, + "negatives": 2652, + "auroc": null, + "auprc": null, + "brier": 2.4409417894786297e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003949795407316095, + "calibration_in_the_large": 0.0003949795407316095, + "expected_calibration_error_10bin": 0.0003949795407316095, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8857244571021716, + "auprc": 0.003105590062111801, + "brier": 0.00035563631964601804, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.000497482772378497, + "calibration_in_the_large": 0.00014161088625750057, + "expected_calibration_error_10bin": 0.00014161088625750057, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.8704987068135477e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007562365883847107, + "calibration_in_the_large": 0.0007562365883847107, + "expected_calibration_error_10bin": 0.0007562365883847107, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "90": { + "A04": { + "valid": 2782, + "positives": 14, + "negatives": 2768, + "auroc": 0.774489058629232, + "auprc": 0.05287303962776386, + "brier": 0.0049728411291243115, + "calibration": { + "observed_rate": 0.0050323508267433505, + "mean_prediction": 0.004725809675127187, + "calibration_in_the_large": -0.00030654115161616365, + "expected_calibration_error_10bin": 0.00030654115161616344, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.8281750266808965, + "auprc": 0.09617993359435546, + "brier": 0.0024379392490717776, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.001961359658842391, + "calibration_in_the_large": -0.0005226715689787588, + "expected_calibration_error_10bin": 0.0005226715689787588, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 27, + "negatives": 2637, + "auroc": 0.759013469290299, + "auprc": 0.04686915230360125, + "brier": 0.010048396308914484, + "calibration": { + "observed_rate": 0.010135135135135136, + "mean_prediction": 0.012158605048646243, + "calibration_in_the_large": 0.002023469913511107, + "expected_calibration_error_10bin": 0.0020234699135111087, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.99361249112846, + "auprc": 0.05263157894736842, + "brier": 0.00037601947499250036, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0011244994256859517, + "calibration_in_the_large": 0.0007697637037987577, + "expected_calibration_error_10bin": 0.0007697637037987577, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.636717368234878, + "auprc": 0.0009727626459143969, + "brier": 0.0003546669524846148, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0003883980394148959, + "calibration_in_the_large": 3.479125016454229e-05, + "expected_calibration_error_10bin": 3.479125016454229e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9513014273719563, + "auprc": 0.049931693989071047, + "brier": 0.0010666420993757544, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.0011498776126628062, + "calibration_in_the_large": 7.15167212178027e-05, + "expected_calibration_error_10bin": 7.151672121780255e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 12, + "negatives": 2751, + "auroc": 0.8818005573730765, + "auprc": 0.07203240442484311, + "brier": 0.004270227159722788, + "calibration": { + "observed_rate": 0.004343105320304018, + "mean_prediction": 0.001194917209634482, + "calibration_in_the_large": -0.0031481881106695357, + "expected_calibration_error_10bin": 0.0031481881106695357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9773691654879774, + "auprc": 0.015384615384615385, + "brier": 0.00035449390352917145, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.00013808414461984587, + "calibration_in_the_large": -0.00021539765106767624, + "expected_calibration_error_10bin": 0.00021539765106767624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.976897689768977, + "auprc": 0.10262345679012345, + "brier": 0.0010448154786367114, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0005330209856072132, + "calibration_in_the_large": -0.0005266752348096007, + "expected_calibration_error_10bin": 0.0005266752348096007, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 4.187365104524971e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008970459193009433, + "calibration_in_the_large": 0.0008970459193009433, + "expected_calibration_error_10bin": 0.0008970459193009433, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 18, + "negatives": 2750, + "auroc": 0.7448282828282828, + "auprc": 0.02555613026335673, + "brier": 0.006446191657881689, + "calibration": { + "observed_rate": 0.006502890173410405, + "mean_prediction": 0.005236389909233982, + "calibration_in_the_large": -0.0012665002641764232, + "expected_calibration_error_10bin": 0.0015117819800483932, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 34, + "negatives": 2644, + "auroc": 0.7116334430897926, + "auprc": 0.02458710392355553, + "brier": 0.012637157677341958, + "calibration": { + "observed_rate": 0.012696041822255415, + "mean_prediction": 0.011263838189113947, + "calibration_in_the_large": -0.001432203633141468, + "expected_calibration_error_10bin": 0.00274428592014071, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 44, + "negatives": 2586, + "auroc": 0.7693524572874921, + "auprc": 0.055939221098048525, + "brier": 0.01616087180206274, + "calibration": { + "observed_rate": 0.016730038022813688, + "mean_prediction": 0.013136635944873586, + "calibration_in_the_large": -0.0035934020779401013, + "expected_calibration_error_10bin": 0.0040602796342858625, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.789175804740007, + "auprc": 0.0016750418760469012, + "brier": 0.000358264778922395, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0004500188385741709, + "calibration_in_the_large": 9.641204932381726e-05, + "expected_calibration_error_10bin": 9.641204932381726e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9836995038979447, + "auprc": 0.03075489282385834, + "brier": 0.0007038241057531439, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0003847111260686929, + "calibration_in_the_large": -0.00032350417138173206, + "expected_calibration_error_10bin": 0.00032350417138173206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9203420021375134, + "auprc": 0.03213573007189582, + "brier": 0.0017739640250297641, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0004883344688768591, + "calibration_in_the_large": -0.001289759414480182, + "expected_calibration_error_10bin": 0.001289759414480182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9996438746438746, + "auprc": 0.5, + "brier": 0.00030488950190287725, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0005279601204844581, + "calibration_in_the_large": 0.0001719615444787621, + "expected_calibration_error_10bin": 0.0001719615444787621, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.962183374955405, + "auprc": 0.02694746376811594, + "brier": 0.0007083959749986767, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0006293602776815237, + "calibration_in_the_large": -8.36522000368363e-05, + "expected_calibration_error_10bin": 8.36522000368363e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.984082065794128, + "auprc": 0.031818181818181815, + "brier": 0.0007040709752791815, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0002801147996279821, + "calibration_in_the_large": -0.00042684879174706213, + "expected_calibration_error_10bin": 0.00042684879174706213, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 11, + "negatives": 2751, + "auroc": 0.8561845279402531, + "auprc": 0.09280022893905039, + "brier": 0.0038482090017361516, + "calibration": { + "observed_rate": 0.0039826212889210715, + "mean_prediction": 0.0026181161454868923, + "calibration_in_the_large": -0.0013645051434341793, + "expected_calibration_error_10bin": 0.0013645051434341795, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.8981245447924253, + "auprc": 0.09348494492577994, + "brier": 0.005545854692624462, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.004293398756274429, + "calibration_in_the_large": -0.001499504936701675, + "expected_calibration_error_10bin": 0.002078196754084747, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 9, + "negatives": 2742, + "auroc": 0.9342734419320853, + "auprc": 0.06484854149431685, + "brier": 0.003672610610203933, + "calibration": { + "observed_rate": 0.003271537622682661, + "mean_prediction": 0.0055533115620923015, + "calibration_in_the_large": 0.0022817739394096407, + "expected_calibration_error_10bin": 0.0022817739394096407, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 3.491834694640405e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006036619666617019, + "calibration_in_the_large": 0.0006036619666617019, + "expected_calibration_error_10bin": 0.0006036619666617019, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9329749103942653, + "auprc": 0.5026595744680851, + "brier": 0.0007093721438139733, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0004361598502559913, + "calibration_in_the_large": -0.0002801725279675044, + "expected_calibration_error_10bin": 0.0002801725279675044, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5379928315412187, + "auprc": 0.0028120034140856117, + "brier": 0.0021631707402006155, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0025529688095079412, + "calibration_in_the_large": 0.00040704606272682535, + "expected_calibration_error_10bin": 0.00040704606272682535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 28, + "negatives": 2635, + "auroc": 0.8304418541610192, + "auprc": 0.0835170808256993, + "brier": 0.01006973909255986, + "calibration": { + "observed_rate": 0.010514457378895982, + "mean_prediction": 0.007702499115886595, + "calibration_in_the_large": -0.0028119582630093867, + "expected_calibration_error_10bin": 0.0028119582630093867, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 9, + "negatives": 2796, + "auroc": 0.8321808933396916, + "auprc": 0.03457063904479596, + "brier": 0.0031831547414135045, + "calibration": { + "observed_rate": 0.0032085561497326204, + "mean_prediction": 0.0035321914787217147, + "calibration_in_the_large": 0.0003236353289890943, + "expected_calibration_error_10bin": 0.0003236353289890941, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.060505800392297e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005139429443235964, + "calibration_in_the_large": 0.0005139429443235964, + "expected_calibration_error_10bin": 0.0005139429443235964, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 15, + "negatives": 2758, + "auroc": 0.9526951897510273, + "auprc": 0.10810117893769412, + "brier": 0.005147527918063705, + "calibration": { + "observed_rate": 0.005409304002884962, + "mean_prediction": 0.005641703372330472, + "calibration_in_the_large": 0.00023239936944550923, + "expected_calibration_error_10bin": 0.001136882175207182, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 30, + "negatives": 2469, + "auroc": 0.7998109896044282, + "auprc": 0.04272772800035033, + "brier": 0.011693337380339659, + "calibration": { + "observed_rate": 0.012004801920768308, + "mean_prediction": 0.013442222512147876, + "calibration_in_the_large": 0.0014374205913795686, + "expected_calibration_error_10bin": 0.001437420591379569, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 43, + "negatives": 2643, + "auroc": 0.8922207850487026, + "auprc": 0.10109292410134883, + "brier": 0.01521893145800007, + "calibration": { + "observed_rate": 0.01600893521965748, + "mean_prediction": 0.012013908113444546, + "calibration_in_the_large": -0.003995027106212936, + "expected_calibration_error_10bin": 0.006841754516040851, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 66, + "negatives": 2368, + "auroc": 0.8302044942669943, + "auprc": 0.1237825078668328, + "brier": 0.025064536515838228, + "calibration": { + "observed_rate": 0.027115858668857847, + "mean_prediction": 0.02315232508041285, + "calibration_in_the_large": -0.003963533588444996, + "expected_calibration_error_10bin": 0.003963533588444995, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 2, + "negatives": 2831, + "auroc": 0.9553161427057577, + "auprc": 0.015631469979296066, + "brier": 0.0007041825620609185, + "calibration": { + "observed_rate": 0.0007059654076950229, + "mean_prediction": 0.000585976142684342, + "calibration_in_the_large": -0.00011998926501068097, + "expected_calibration_error_10bin": 0.00011998926501068097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 29, + "negatives": 2653, + "auroc": 0.8172660748404539, + "auprc": 0.05737020699417431, + "brier": 0.010581745347860471, + "calibration": { + "observed_rate": 0.01081282624906786, + "mean_prediction": 0.005908387444311799, + "calibration_in_the_large": -0.00490443880475606, + "expected_calibration_error_10bin": 0.005975135095819072, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 40, + "negatives": 2546, + "auroc": 0.8708071484681854, + "auprc": 0.2106403625430636, + "brier": 0.013814275364729199, + "calibration": { + "observed_rate": 0.015467904098994586, + "mean_prediction": 0.008822488395710315, + "calibration_in_the_large": -0.006645415703284271, + "expected_calibration_error_10bin": 0.006658868720538987, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 17, + "negatives": 2770, + "auroc": 0.9018687619452113, + "auprc": 0.20485567403564417, + "brier": 0.0056255924905160085, + "calibration": { + "observed_rate": 0.006099748833871547, + "mean_prediction": 0.005869294238512887, + "calibration_in_the_large": -0.00023045459535865967, + "expected_calibration_error_10bin": 0.003262290517742563, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 34, + "negatives": 2561, + "auroc": 0.7143808714426809, + "auprc": 0.06845233489906771, + "brier": 0.01276382126554009, + "calibration": { + "observed_rate": 0.013102119460500963, + "mean_prediction": 0.011173949970388005, + "calibration_in_the_large": -0.0019281694901129576, + "expected_calibration_error_10bin": 0.0019281694901129587, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.7248405386250886, + "auprc": 0.056201967966673844, + "brier": 0.0007002585790677525, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.000715673733393748, + "calibration_in_the_large": 7.458435943323008e-06, + "expected_calibration_error_10bin": 7.458435943323008e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.9473498233215548, + "auprc": 0.006666666666666667, + "brier": 0.0003554792822506667, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0007910655730175904, + "calibration_in_the_large": 0.0004378334995453191, + "expected_calibration_error_10bin": 0.0004378334995453191, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.9907178217821783, + "auprc": 0.10593671679197994, + "brier": 0.0013703133034203918, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006758975675346696, + "calibration_in_the_large": -0.0007365318109964038, + "expected_calibration_error_10bin": 0.0008207739841249494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7213403880070547, + "auprc": 0.007511566724122289, + "brier": 0.0007492374453323964, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0006570756990272853, + "calibration_in_the_large": -4.789433974606682e-05, + "expected_calibration_error_10bin": 0.0004144084531097503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 14, + "negatives": 2466, + "auroc": 0.7528965357432511, + "auprc": 0.01871429387767563, + "brier": 0.005604877724220608, + "calibration": { + "observed_rate": 0.00564516129032258, + "mean_prediction": 0.0023993716922720318, + "calibration_in_the_large": -0.0032457895980505485, + "expected_calibration_error_10bin": 0.0032457895980505485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.7754303599374022, + "auprc": 0.00577995379916111, + "brier": 0.0021581450629026043, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0010410764478404639, + "calibration_in_the_large": -0.0011210857143216983, + "expected_calibration_error_10bin": 0.0011210857143216983, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.1952567760342368, + "auprc": 0.0006534012789304021, + "brier": 0.0007136367799516613, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0005918213579966826, + "calibration_in_the_large": -0.00012093701691422262, + "expected_calibration_error_10bin": 0.00012093701691422262, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 11, + "negatives": 2183, + "auroc": 0.7502602756840046, + "auprc": 0.0892733997592852, + "brier": 0.004929129022475302, + "calibration": { + "observed_rate": 0.005013673655423883, + "mean_prediction": 0.0032763995494132937, + "calibration_in_the_large": -0.0017372741060105897, + "expected_calibration_error_10bin": 0.0018305498329931305, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.6097083926031295, + "auprc": 0.0022779384352206054, + "brier": 0.0014266206297692588, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0014240741891623802, + "calibration_in_the_large": 3.6196437078347098e-06, + "expected_calibration_error_10bin": 3.6196437078347098e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9939566299324565, + "auprc": 0.05555555555555555, + "brier": 0.0003512759075469191, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0006805037678130866, + "calibration_in_the_large": 0.00032513774080526856, + "expected_calibration_error_10bin": 0.00032513774080526856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7534846318799142, + "auprc": 0.004289006359598262, + "brier": 0.0014575593872293317, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0028938261041968833, + "calibration_in_the_large": 0.001466274355445991, + "expected_calibration_error_10bin": 0.001466274355445991, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 0, + "negatives": 2811, + "auroc": null, + "auprc": null, + "brier": 1.0684385655161527e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001294685088143106, + "calibration_in_the_large": 0.001294685088143106, + "expected_calibration_error_10bin": 0.001294685088143106, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 25, + "negatives": 2723, + "auroc": 0.8056995960337863, + "auprc": 0.0592184564503902, + "brier": 0.008909455978302623, + "calibration": { + "observed_rate": 0.009097525473071324, + "mean_prediction": 0.007326150633340609, + "calibration_in_the_large": -0.0017713748397307147, + "expected_calibration_error_10bin": 0.004151821735275595, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.7514912480850093, + "auprc": 0.014890032863449894, + "brier": 0.003931177342537076, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.00467427558131346, + "calibration_in_the_large": 0.0007457041527420315, + "expected_calibration_error_10bin": 0.0007457041527420315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 23, + "negatives": 2749, + "auroc": 0.831875622756101, + "auprc": 0.10318189950149514, + "brier": 0.007970638243352856, + "calibration": { + "observed_rate": 0.008297258297258298, + "mean_prediction": 0.007493913428728759, + "calibration_in_the_large": -0.0008033448685295392, + "expected_calibration_error_10bin": 0.001886640644743974, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.7667499702487207, + "auprc": 0.004188425916613836, + "brier": 0.0010725868707715542, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.001290067910039872, + "calibration_in_the_large": 0.00022016776738651963, + "expected_calibration_error_10bin": 0.00022016776738651963, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 11, + "negatives": 2726, + "auroc": 0.5817381444674181, + "auprc": 0.0075752340522979265, + "brier": 0.004020947524828689, + "calibration": { + "observed_rate": 0.00401899890390939, + "mean_prediction": 0.003950867710393628, + "calibration_in_the_large": -6.813119351576236e-05, + "expected_calibration_error_10bin": 6.813119351576236e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 21, + "negatives": 2350, + "auroc": 0.7657548125633232, + "auprc": 0.02583766488477393, + "brier": 0.008741367206508551, + "calibration": { + "observed_rate": 0.008857022353437369, + "mean_prediction": 0.008097654008171293, + "calibration_in_the_large": -0.000759368345266076, + "expected_calibration_error_10bin": 0.0008965456196450574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 26, + "negatives": 1546, + "auroc": 0.7218628719275549, + "auprc": 0.042716650099977535, + "brier": 0.016259868155215487, + "calibration": { + "observed_rate": 0.01653944020356234, + "mean_prediction": 0.011705518160893736, + "calibration_in_the_large": -0.004833922042668604, + "expected_calibration_error_10bin": 0.007442502694904331, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9578751330258957, + "auprc": 0.019701872065488298, + "brier": 0.0014279515994881017, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0014344937988982026, + "calibration_in_the_large": 1.7561457417508307e-05, + "expected_calibration_error_10bin": 1.7561457417508307e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 40, + "negatives": 2613, + "auroc": 0.786796785304248, + "auprc": 0.11583076827240517, + "brier": 0.014235474740237997, + "calibration": { + "observed_rate": 0.015077271013946476, + "mean_prediction": 0.011234308391914074, + "calibration_in_the_large": -0.0038429626220324014, + "expected_calibration_error_10bin": 0.004224975058658675, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 42, + "negatives": 2545, + "auroc": 0.8196182991860792, + "auprc": 0.06873896403315481, + "brier": 0.015547078779895392, + "calibration": { + "observed_rate": 0.01623502126014689, + "mean_prediction": 0.017700338795374155, + "calibration_in_the_large": 0.001465317535227266, + "expected_calibration_error_10bin": 0.0014653175352272643, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 74, + "negatives": 2111, + "auroc": 0.7830284097456054, + "auprc": 0.13205014456701414, + "brier": 0.03128980663370986, + "calibration": { + "observed_rate": 0.033867276887871854, + "mean_prediction": 0.02239784639768872, + "calibration_in_the_large": -0.011469430490183133, + "expected_calibration_error_10bin": 0.012428059493834487, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 8, + "negatives": 2809, + "auroc": 0.7507119971520114, + "auprc": 0.06253487220661745, + "brier": 0.002793839248595213, + "calibration": { + "observed_rate": 0.0028399006034788782, + "mean_prediction": 0.0022390431370549685, + "calibration_in_the_large": -0.0006008574664239097, + "expected_calibration_error_10bin": 0.0006008574664239097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7789985590778098, + "auprc": 0.005243117104623831, + "brier": 0.001435480807009148, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0013342824749808066, + "calibration_in_the_large": -0.00010456644588250274, + "expected_calibration_error_10bin": 0.00010456644588250274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5815780078543378, + "auprc": 0.0008525149190110827, + "brier": 0.0003832488948287129, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0014993934712633564, + "calibration_in_the_large": 0.0011425055340756334, + "expected_calibration_error_10bin": 0.0011425055340756332, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 10, + "negatives": 2729, + "auroc": 0.8385489190179553, + "auprc": 0.01372340770584389, + "brier": 0.003661810573625726, + "calibration": { + "observed_rate": 0.0036509675063891934, + "mean_prediction": 0.0029813561481647943, + "calibration_in_the_large": -0.000669611358224399, + "expected_calibration_error_10bin": 0.000669611358224399, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 14, + "negatives": 2736, + "auroc": 0.7361111111111112, + "auprc": 0.012820062060389175, + "brier": 0.005091935178476173, + "calibration": { + "observed_rate": 0.005090909090909091, + "mean_prediction": 0.005809804224878834, + "calibration_in_the_large": 0.0007188951339697431, + "expected_calibration_error_10bin": 0.0007188951339697431, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.16519278386982666, + "auprc": 0.00042354934349851756, + "brier": 0.0003601432640688925, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001276344104829348, + "calibration_in_the_large": 0.0009227373155789942, + "expected_calibration_error_10bin": 0.0009227373155789942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8017335249793109, + "auprc": 0.08607618154425282, + "brier": 0.003394645685247502, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.003597684738554108, + "calibration_in_the_large": 8.205973855410784e-05, + "expected_calibration_error_10bin": 0.0005595309004206682, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 6, + "negatives": 2735, + "auroc": 0.8355271176112127, + "auprc": 0.03416862042822178, + "brier": 0.002222261349505293, + "calibration": { + "observed_rate": 0.0021889821233126595, + "mean_prediction": 0.002887282380571792, + "calibration_in_the_large": 0.0006983002572591326, + "expected_calibration_error_10bin": 0.0006983002572591328, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9162631008312252, + "auprc": 0.02893150390413145, + "brier": 0.0035598860327242187, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.0020046991352469113, + "calibration_in_the_large": -0.001596309147072138, + "expected_calibration_error_10bin": 0.001596309147072138, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.940176322418136, + "auprc": 0.037341989866824146, + "brier": 0.002840742919042312, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.0009725432823433218, + "calibration_in_the_large": -0.0018979267571256416, + "expected_calibration_error_10bin": 0.0018979267571256416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.963236337828247, + "auprc": 0.03524553350475025, + "brier": 0.001759616925989706, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0004133192918360364, + "calibration_in_the_large": -0.0013578461350148316, + "expected_calibration_error_10bin": 0.0013578461350148316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 22, + "negatives": 2404, + "auroc": 0.883489638481319, + "auprc": 0.12426270859927095, + "brier": 0.00846690169839365, + "calibration": { + "observed_rate": 0.009068425391591096, + "mean_prediction": 0.007849752657821438, + "calibration_in_the_large": -0.0012186727337696584, + "expected_calibration_error_10bin": 0.0017283528374553321, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.9372986036519871, + "auprc": 0.17939312882725592, + "brier": 0.002761754860906027, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0010806048553265025, + "calibration_in_the_large": -0.0017755179579544687, + "expected_calibration_error_10bin": 0.0017755179579544687, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.575552387740556, + "auprc": 0.01894260672886627, + "brier": 0.0007092809631117037, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.0005038519789130782, + "calibration_in_the_large": -0.00020839873333763405, + "expected_calibration_error_10bin": 0.00020839873333763405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 0, + "negatives": 2821, + "auroc": null, + "auprc": null, + "brier": 2.8874852584808665e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007652120243432728, + "calibration_in_the_large": 0.0007652120243432728, + "expected_calibration_error_10bin": 0.0007652120243432728, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.9588214412495563, + "auprc": 0.013340965128566397, + "brier": 0.000707482958138513, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0006933206251411232, + "calibration_in_the_large": -1.615081863326484e-05, + "expected_calibration_error_10bin": 1.615081863326484e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.7091666666666666, + "auprc": 0.011336751057804973, + "brier": 0.0021328831892799428, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.000563448589594088, + "calibration_in_the_large": -0.0015748265351386277, + "expected_calibration_error_10bin": 0.0015748265351386277, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 7, + "negatives": 2717, + "auroc": 0.8619275461380724, + "auprc": 0.01439783290564296, + "brier": 0.0025556479677618805, + "calibration": { + "observed_rate": 0.0025697503671071953, + "mean_prediction": 0.0020189469994290293, + "calibration_in_the_large": -0.000550803367678166, + "expected_calibration_error_10bin": 0.000550803367678166, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 36, + "negatives": 2164, + "auroc": 0.728114089135346, + "auprc": 0.05023520883705707, + "brier": 0.015976352060362707, + "calibration": { + "observed_rate": 0.016363636363636365, + "mean_prediction": 0.017840675792203085, + "calibration_in_the_large": 0.0014770394285667197, + "expected_calibration_error_10bin": 0.0014770394285667197, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.7920822464324075, + "auprc": 0.014005384780929716, + "brier": 0.002500167487108311, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0024292212348739537, + "calibration_in_the_large": -7.077876512604636e-05, + "expected_calibration_error_10bin": 7.077876512604636e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 7, + "negatives": 2794, + "auroc": 0.735913692606606, + "auprc": 0.01385033798989584, + "brier": 0.002485850025065755, + "calibration": { + "observed_rate": 0.0024991074616208496, + "mean_prediction": 0.0015209901566127042, + "calibration_in_the_large": -0.0009781173050081454, + "expected_calibration_error_10bin": 0.0009781173050081454, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 43, + "negatives": 2204, + "auroc": 0.7299624361625797, + "auprc": 0.08172190137017768, + "brier": 0.01828821864336634, + "calibration": { + "observed_rate": 0.01913662661326213, + "mean_prediction": 0.020411918410417115, + "calibration_in_the_large": 0.0012752917971549857, + "expected_calibration_error_10bin": 0.0012752917971549898, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 13, + "negatives": 2721, + "auroc": 0.7357023718655472, + "auprc": 0.038575460578392715, + "brier": 0.004686026183906401, + "calibration": { + "observed_rate": 0.004754937820043892, + "mean_prediction": 0.005413650340448454, + "calibration_in_the_large": 0.000658712520404562, + "expected_calibration_error_10bin": 0.0006587125204045624, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9411304656949876, + "auprc": 0.02265218909484766, + "brier": 0.0017731636060479557, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0017740083615652206, + "calibration_in_the_large": -2.996583070291603e-07, + "expected_calibration_error_10bin": 2.996583070291603e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 5, + "negatives": 2770, + "auroc": 0.9311913357400722, + "auprc": 0.02098839161077424, + "brier": 0.0017905943645823803, + "calibration": { + "observed_rate": 0.0018018018018018018, + "mean_prediction": 0.0007374721134812291, + "calibration_in_the_large": -0.0010643296883205728, + "expected_calibration_error_10bin": 0.0010643296883205728, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6708483754512635, + "auprc": 0.00327868720426053, + "brier": 0.0014498493046359228, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0017536728539892608, + "calibration_in_the_large": 0.00031171178693807124, + "expected_calibration_error_10bin": 0.00031171178693807124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5837200999642984, + "auprc": 0.000856898029134533, + "brier": 0.0003724737553703811, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0017620390397606962, + "calibration_in_the_large": 0.0014051511025729732, + "expected_calibration_error_10bin": 0.0014051511025729732, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 11, + "negatives": 2712, + "auroc": 0.736893268972915, + "auprc": 0.03462808542809107, + "brier": 0.003990040379395323, + "calibration": { + "observed_rate": 0.004039662137348513, + "mean_prediction": 0.002664562148125861, + "calibration_in_the_large": -0.001375099989222652, + "expected_calibration_error_10bin": 0.0014500135715148866, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 8, + "negatives": 2717, + "auroc": 0.7413967611336032, + "auprc": 0.0241650161531282, + "brier": 0.0029167276146046307, + "calibration": { + "observed_rate": 0.0029357798165137615, + "mean_prediction": 0.001718685979065229, + "calibration_in_the_large": -0.0012170938374485324, + "expected_calibration_error_10bin": 0.0012170938374485324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.7019985724482513, + "auprc": 0.007018567093449335, + "brier": 0.0010722309081836415, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0009306420633500257, + "calibration_in_the_large": -0.00013887665322751441, + "expected_calibration_error_10bin": 0.00013887665322751441, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 47, + "negatives": 2268, + "auroc": 0.7347836691808323, + "auprc": 0.06002326069543593, + "brier": 0.019619527370392128, + "calibration": { + "observed_rate": 0.020302375809935207, + "mean_prediction": 0.013951262602223397, + "calibration_in_the_large": -0.00635111320771181, + "expected_calibration_error_10bin": 0.0076906891714221565, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 2.1107683482246064e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00023254090336447965, + "calibration_in_the_large": 0.00023254090336447965, + "expected_calibration_error_10bin": 0.00023254090336447965, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.8980227023068473, + "auprc": 0.1059965165476453, + "brier": 0.0068853976900765616, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.0039927616593686535, + "calibration_in_the_large": -0.003277321946592815, + "expected_calibration_error_10bin": 0.0035797172069138294, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7681540122346168, + "auprc": 0.026826876038974417, + "brier": 0.003562775666331426, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.001294243417232179, + "calibration_in_the_large": -0.0022912711041016324, + "expected_calibration_error_10bin": 0.0022912711041016324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7155854897790381, + "auprc": 0.0078123029668300675, + "brier": 0.0010609760298037616, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0006468261921785824, + "calibration_in_the_large": -0.0004154967539970551, + "expected_calibration_error_10bin": 0.0004154967539970551, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 29, + "negatives": 2508, + "auroc": 0.8153220040697354, + "auprc": 0.050716907700993075, + "brier": 0.011228577141593369, + "calibration": { + "observed_rate": 0.011430823807646828, + "mean_prediction": 0.0157161372937461, + "calibration_in_the_large": 0.004285313486099271, + "expected_calibration_error_10bin": 0.004285313486099269, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.7080763892174297e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008978937342393011, + "calibration_in_the_large": 0.0008978937342393011, + "expected_calibration_error_10bin": 0.0008978937342393011, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 19, + "negatives": 2714, + "auroc": 0.7604817127564675, + "auprc": 0.01897904911691982, + "brier": 0.006949714206099689, + "calibration": { + "observed_rate": 0.006952067325283571, + "mean_prediction": 0.007074615507150207, + "calibration_in_the_large": 0.00012254818186663557, + "expected_calibration_error_10bin": 0.00026013953606033376, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 26, + "negatives": 2630, + "auroc": 0.7887247733255338, + "auprc": 0.032345563690795345, + "brier": 0.009626280277098094, + "calibration": { + "observed_rate": 0.009789156626506024, + "mean_prediction": 0.006699711338125824, + "calibration_in_the_large": -0.0030894452883802005, + "expected_calibration_error_10bin": 0.0032485107350955977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 1.5826670241430677e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0001728986484523436, + "calibration_in_the_large": 0.0001728986484523436, + "expected_calibration_error_10bin": 0.0001728986484523436, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 3, + "negatives": 2829, + "auroc": 0.8157181571815718, + "auprc": 0.0064822005979665075, + "brier": 0.0010578595189164525, + "calibration": { + "observed_rate": 0.001059322033898305, + "mean_prediction": 0.0003602654494459471, + "calibration_in_the_large": -0.000699056584452358, + "expected_calibration_error_10bin": 0.000699056584452358, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.398926512768126e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006368807427200461, + "calibration_in_the_large": 0.0006368807427200461, + "expected_calibration_error_10bin": 0.0006368807427200461, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5028551034975017, + "auprc": 0.0036980152415798714, + "brier": 0.0014244207740541181, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0004557623244320467, + "calibration_in_the_large": -0.0009697544253897638, + "expected_calibration_error_10bin": 0.0009697544253897638, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8179234972677596, + "auprc": 0.013646153070326312, + "brier": 0.0018095968669386993, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.00186549482107921, + "calibration_in_the_large": 4.7313002897391744e-05, + "expected_calibration_error_10bin": 4.7313002897391744e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 7, + "negatives": 2783, + "auroc": 0.6764026487346645, + "auprc": 0.01658314534881501, + "brier": 0.002494811663541984, + "calibration": { + "observed_rate": 0.0025089605734767025, + "mean_prediction": 0.001919991931153877, + "calibration_in_the_large": -0.0005889686423228256, + "expected_calibration_error_10bin": 0.0005889686423228256, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.38617741360883506, + "auprc": 0.0008716844080751901, + "brier": 0.0007155054155099905, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0010510971417516293, + "calibration_in_the_large": 0.0003390999897402373, + "expected_calibration_error_10bin": 0.0003390999897402373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8086862885857861, + "auprc": 0.006116099428235589, + "brier": 0.0017867948602446598, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0010257721940765247, + "calibration_in_the_large": -0.0007657003963928411, + "expected_calibration_error_10bin": 0.0007657003963928411, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 2, + "negatives": 2821, + "auroc": 0.8635235732009926, + "auprc": 0.0042741821771009585, + "brier": 0.0007099158361796633, + "calibration": { + "observed_rate": 0.0007084661707403471, + "mean_prediction": 0.0005040520211986827, + "calibration_in_the_large": -0.0002044141495416644, + "expected_calibration_error_10bin": 0.0002044141495416644, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 5, + "negatives": 2762, + "auroc": 0.8598117306299783, + "auprc": 0.00890207598295624, + "brier": 0.0019182963522043999, + "calibration": { + "observed_rate": 0.0018070112034694614, + "mean_prediction": 0.004046762741641535, + "calibration_in_the_large": 0.0022397515381720736, + "expected_calibration_error_10bin": 0.0022397515381720736, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 24, + "negatives": 1474, + "auroc": 0.6504127091813658, + "auprc": 0.0481305166970474, + "brier": 0.015679775579630587, + "calibration": { + "observed_rate": 0.01602136181575434, + "mean_prediction": 0.008585708231768904, + "calibration_in_the_large": -0.007435653583985437, + "expected_calibration_error_10bin": 0.007435653583985435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 22, + "negatives": 2654, + "auroc": 0.829742412824553, + "auprc": 0.03770451539245955, + "brier": 0.008070830212734506, + "calibration": { + "observed_rate": 0.008221225710014948, + "mean_prediction": 0.005652001568778375, + "calibration_in_the_large": -0.002569224141236573, + "expected_calibration_error_10bin": 0.002779770794380779, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 11, + "negatives": 2541, + "auroc": 0.8651926585810883, + "auprc": 0.09436325647400738, + "brier": 0.004174301008827624, + "calibration": { + "observed_rate": 0.004310344827586207, + "mean_prediction": 0.002864251613163979, + "calibration_in_the_large": -0.0014460932144222277, + "expected_calibration_error_10bin": 0.0016319158737140447, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 11, + "negatives": 2716, + "auroc": 0.8734100950595796, + "auprc": 0.03416421995468874, + "brier": 0.00407403475687485, + "calibration": { + "observed_rate": 0.004033736707004034, + "mean_prediction": 0.005724788206401525, + "calibration_in_the_large": 0.001691051499397491, + "expected_calibration_error_10bin": 0.0016910514993974909, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 4, + "negatives": 2386, + "auroc": 0.9313704945515507, + "auprc": 0.01626901760503123, + "brier": 0.0016649265527148422, + "calibration": { + "observed_rate": 0.0016736401673640166, + "mean_prediction": 0.0009056333864430477, + "calibration_in_the_large": -0.000768006780920969, + "expected_calibration_error_10bin": 0.000768006780920969, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 8, + "negatives": 2663, + "auroc": 0.878942921517086, + "auprc": 0.02205913202927304, + "brier": 0.0030072824967478343, + "calibration": { + "observed_rate": 0.002995132909022838, + "mean_prediction": 0.005195307537161425, + "calibration_in_the_large": 0.002200174628138587, + "expected_calibration_error_10bin": 0.0022001746281385876, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.880375386077453, + "auprc": 0.015772378962034133, + "brier": 0.001063399428120266, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0009598246192904397, + "calibration_in_the_large": -0.00010817110872664824, + "expected_calibration_error_10bin": 0.00010817110872664824, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 24, + "negatives": 2219, + "auroc": 0.8135045816433829, + "auprc": 0.048938393568900986, + "brier": 0.010439272839765333, + "calibration": { + "observed_rate": 0.01069995541685243, + "mean_prediction": 0.006740388159513922, + "calibration_in_the_large": -0.003959567257338508, + "expected_calibration_error_10bin": 0.003959567257338508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 11, + "negatives": 2749, + "auroc": 0.7881874400608486, + "auprc": 0.03466942354544234, + "brier": 0.0039236064671207575, + "calibration": { + "observed_rate": 0.003985507246376811, + "mean_prediction": 0.0033526994860461645, + "calibration_in_the_large": -0.000632807760330647, + "expected_calibration_error_10bin": 0.000632807760330647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 15, + "negatives": 2701, + "auroc": 0.8250030852770579, + "auprc": 0.021645126160730468, + "brier": 0.005578023456671604, + "calibration": { + "observed_rate": 0.005522827687776142, + "mean_prediction": 0.005825602306345242, + "calibration_in_the_large": 0.00030277461856910003, + "expected_calibration_error_10bin": 0.000978906461095257, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7935424648786717, + "auprc": 0.06891243069869617, + "brier": 0.0031801076421055937, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0021689412423746154, + "calibration_in_the_large": -0.0010534003258316146, + "expected_calibration_error_10bin": 0.0010534003258316146, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 10, + "negatives": 2743, + "auroc": 0.7593875318993802, + "auprc": 0.010491361456180995, + "brier": 0.0036367448665604136, + "calibration": { + "observed_rate": 0.003632401017072285, + "mean_prediction": 0.002284108044102632, + "calibration_in_the_large": -0.0013482929729696528, + "expected_calibration_error_10bin": 0.0013482929729696528, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7089771891096395, + "auprc": 0.009011578815810174, + "brier": 0.001846973652522623, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.00255099204531235, + "calibration_in_the_large": 0.0007147819828812079, + "expected_calibration_error_10bin": 0.0007147819828812079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 4, + "negatives": 2736, + "auroc": 0.951297514619883, + "auprc": 0.02120295871411516, + "brier": 0.0014545960327818257, + "calibration": { + "observed_rate": 0.00145985401459854, + "mean_prediction": 0.002470344986459122, + "calibration_in_the_large": 0.001010490971860582, + "expected_calibration_error_10bin": 0.001010490971860582, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 10, + "negatives": 2712, + "auroc": 0.8529498525073747, + "auprc": 0.03184889579344049, + "brier": 0.003641781426334678, + "calibration": { + "observed_rate": 0.0036737692872887582, + "mean_prediction": 0.004451530140849507, + "calibration_in_the_large": 0.0007777608535607487, + "expected_calibration_error_10bin": 0.0007777608535607487, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6892766530316368, + "auprc": 0.019260642331245807, + "brier": 0.0025195882166942174, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.003273150557226764, + "calibration_in_the_large": 0.0007424202607697866, + "expected_calibration_error_10bin": 0.0007424202607697866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5939929328621908, + "auprc": 0.0008695652173913044, + "brier": 0.00035780715995333185, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0010071168403315183, + "calibration_in_the_large": 0.0006538847668592471, + "expected_calibration_error_10bin": 0.0006538847668592471, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 7, + "negatives": 2709, + "auroc": 0.714654854189738, + "auprc": 0.005821258412271262, + "brier": 0.0025830188017936487, + "calibration": { + "observed_rate": 0.002577319587628866, + "mean_prediction": 0.0032742778438658686, + "calibration_in_the_large": 0.0006969582562370027, + "expected_calibration_error_10bin": 0.0006969582562370027, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 15, + "negatives": 2370, + "auroc": 0.7924050632911392, + "auprc": 0.022469306303561136, + "brier": 0.00621645312247377, + "calibration": { + "observed_rate": 0.006289308176100629, + "mean_prediction": 0.004921319019160605, + "calibration_in_the_large": -0.0013679891569400244, + "expected_calibration_error_10bin": 0.0013679891569400244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7221407624633431, + "auprc": 0.014747859675656514, + "brier": 0.0021861157221109854, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0017282626366004273, + "calibration_in_the_large": -0.0004663240495736765, + "expected_calibration_error_10bin": 0.0004663240495736765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 25, + "negatives": 2390, + "auroc": 0.8447196652719665, + "auprc": 0.05143475035450204, + "brier": 0.010199727380408795, + "calibration": { + "observed_rate": 0.010351966873706004, + "mean_prediction": 0.008832915861945163, + "calibration_in_the_large": -0.001519051011760841, + "expected_calibration_error_10bin": 0.003426853744348936, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7675945753033547, + "auprc": 0.005928261089705165, + "brier": 0.0017769621946136184, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0011532219245393304, + "calibration_in_the_large": -0.0006280392083427501, + "expected_calibration_error_10bin": 0.0006280392083427501, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8233559685489635, + "auprc": 0.01178244314949063, + "brier": 0.0014246808711659857, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.00039555058509547277, + "calibration_in_the_large": -0.0010320011636554193, + "expected_calibration_error_10bin": 0.0010320011636554193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 8, + "negatives": 2727, + "auroc": 0.7794279427942794, + "auprc": 0.014506669627405589, + "brier": 0.002911321699921549, + "calibration": { + "observed_rate": 0.0029250457038391227, + "mean_prediction": 0.0021579913487209377, + "calibration_in_the_large": -0.0007670543551181849, + "expected_calibration_error_10bin": 0.0007670543551181849, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.560064935064935, + "auprc": 0.001193683274204824, + "brier": 0.0007236191826383081, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.0010957013160294079, + "calibration_in_the_large": 0.0003747207825038131, + "expected_calibration_error_10bin": 0.0003747207825038131, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.826055575604475, + "auprc": 0.0031865643731489625, + "brier": 0.0007256373371887827, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0013684362595920373, + "calibration_in_the_large": 0.0006471957258740423, + "expected_calibration_error_10bin": 0.0006471957258740423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 12, + "negatives": 2740, + "auroc": 0.7943430656934306, + "auprc": 0.016782460801922628, + "brier": 0.004359274951461223, + "calibration": { + "observed_rate": 0.00436046511627907, + "mean_prediction": 0.003860324310527648, + "calibration_in_the_large": -0.0005001408057514218, + "expected_calibration_error_10bin": 0.0006603572029024268, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8405639913232104, + "auprc": 0.013326126023570034, + "brier": 0.0017969666140859157, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0016613878483290863, + "calibration_in_the_large": -0.00014301489436308263, + "expected_calibration_error_10bin": 0.00014301489436308263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.7016148469510726, + "auprc": 0.0063755450140149305, + "brier": 0.0010830457651618563, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0013188312206601676, + "calibration_in_the_large": 0.00023540760202528138, + "expected_calibration_error_10bin": 0.00023540760202528138, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.6172883362936649, + "auprc": 0.0031694710331517753, + "brier": 0.001065244784739579, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.0008596709650663622, + "calibration_in_the_large": -0.00020491384685698767, + "expected_calibration_error_10bin": 0.00020491384685698767, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 3, + "negatives": 2731, + "auroc": 0.6196753326010008, + "auprc": 0.0022098045354998173, + "brier": 0.001109197169271202, + "calibration": { + "observed_rate": 0.0010972933430870519, + "mean_prediction": 0.001506436197080499, + "calibration_in_the_large": 0.00040914285399344706, + "expected_calibration_error_10bin": 0.00040914285399344706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7065140220092296, + "auprc": 0.01297342816414345, + "brier": 0.0014149094476691708, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.00043401902126452807, + "calibration_in_the_large": -0.0009839178805433415, + "expected_calibration_error_10bin": 0.0009839178805433415, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.4390127006949437, + "auprc": 0.0014643926303089354, + "brier": 0.0010794373749480862, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0009915850058424117, + "calibration_in_the_large": -8.561427602473358e-05, + "expected_calibration_error_10bin": 8.561427602473358e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.6060176991150442, + "auprc": 0.0016647018675932247, + "brier": 0.0007192164491273652, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0007811865049642234, + "calibration_in_the_large": 7.372276248102572e-05, + "expected_calibration_error_10bin": 7.372276248102572e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8740872031194612, + "auprc": 0.013665433530338255, + "brier": 0.001803133626475704, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0013272595056986302, + "calibration_in_the_large": -0.0004420257030770243, + "expected_calibration_error_10bin": 0.0006917386399788513, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.726101514965903, + "auprc": 0.043292518189261414, + "brier": 0.006472138084699556, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.004709239215038758, + "calibration_in_the_large": -0.0018625022964617894, + "expected_calibration_error_10bin": 0.002447550512135681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9912154894227322, + "auprc": 0.1775991623552599, + "brier": 0.0013670268702263395, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0011430703936444481, + "calibration_in_the_large": -0.0002890814144472097, + "expected_calibration_error_10bin": 0.0009568729679691085, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 10, + "negatives": 2770, + "auroc": 0.6612996389891697, + "auprc": 0.009242282022472424, + "brier": 0.003590013028234913, + "calibration": { + "observed_rate": 0.0035971223021582736, + "mean_prediction": 0.0024857575469718705, + "calibration_in_the_large": -0.001111364755186403, + "expected_calibration_error_10bin": 0.001111364755186403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8263642806520198, + "auprc": 0.008777216266475003, + "brier": 0.0014127144459660386, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0004093423013398776, + "calibration_in_the_large": -0.0010060858656806462, + "expected_calibration_error_10bin": 0.0010060858656806462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 41, + "negatives": 2444, + "auroc": 0.7266077202506886, + "auprc": 0.04572285172396389, + "brier": 0.016126267130977093, + "calibration": { + "observed_rate": 0.016498993963782696, + "mean_prediction": 0.013793527267685195, + "calibration_in_the_large": -0.002705466696097501, + "expected_calibration_error_10bin": 0.002705466696097499, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.9864450730787364, + "auprc": 0.06201396253092966, + "brier": 0.0010452538698899779, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0007133135882361318, + "calibration_in_the_large": -0.00034638263218068205, + "expected_calibration_error_10bin": 0.00034638263218068205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.8347707908629972, + "auprc": 0.018420506513996373, + "brier": 0.0025373419213269442, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.001599951704157738, + "calibration_in_the_large": -0.0009547928213897072, + "expected_calibration_error_10bin": 0.0009547928213897072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5718838526912181, + "auprc": 0.0008264462809917355, + "brier": 0.00035614580896273527, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0008916766826561508, + "calibration_in_the_large": 0.000537694381771195, + "expected_calibration_error_10bin": 0.000537694381771195, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.6462851048702453, + "auprc": 0.002261115465772017, + "brier": 0.0011030153699949053, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.0018139084515773618, + "calibration_in_the_large": 0.0007485675424864528, + "expected_calibration_error_10bin": 0.0007485675424864528, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.7234941156847827e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012805200897928726, + "calibration_in_the_large": 0.0012805200897928726, + "expected_calibration_error_10bin": 0.0012805200897928726, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 7, + "negatives": 2788, + "auroc": 0.763527362164378, + "auprc": 0.010025865898324946, + "brier": 0.0025157689861506688, + "calibration": { + "observed_rate": 0.0025044722719141325, + "mean_prediction": 0.0027747986626685123, + "calibration_in_the_large": 0.0002703263907543798, + "expected_calibration_error_10bin": 0.00027032639075437963, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.7984831325714677, + "auprc": 0.040573686133057014, + "brier": 0.008116621320178494, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.009166242956274486, + "calibration_in_the_large": 0.0009296274564616815, + "expected_calibration_error_10bin": 0.0009296274564616815, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.5665007112375533, + "auprc": 0.06757752143588792, + "brier": 0.0010547632780668408, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.001865708278064453, + "calibration_in_the_large": 0.0007999889174960693, + "expected_calibration_error_10bin": 0.0007999889174960693, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9204384724186704, + "auprc": 0.004424778761061947, + "brier": 0.00035915013719905564, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.000636944943765497, + "calibration_in_the_large": 0.0002834631480779749, + "expected_calibration_error_10bin": 0.0002834631480779749, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 1, + "negatives": 2824, + "auroc": 0.5046033994334278, + "auprc": 0.0007142857142857143, + "brier": 0.0003569667694184354, + "calibration": { + "observed_rate": 0.00035398230088495576, + "mean_prediction": 0.0008445763941619641, + "calibration_in_the_large": 0.0004905940932770083, + "expected_calibration_error_10bin": 0.0004905940932770083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.60875, + "auprc": 0.005200882482059346, + "brier": 0.001425167099833045, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0011028115827211255, + "calibration_in_the_large": -0.0003237219408166777, + "expected_calibration_error_10bin": 0.0003237219408166777, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 14, + "negatives": 2556, + "auroc": 0.8464676950592444, + "auprc": 0.029293633761029125, + "brier": 0.0053657403571851815, + "calibration": { + "observed_rate": 0.005447470817120622, + "mean_prediction": 0.003996916520518178, + "calibration_in_the_large": -0.0014505542966024446, + "expected_calibration_error_10bin": 0.0014505542966024446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 17, + "negatives": 2501, + "auroc": 0.6741538678646188, + "auprc": 0.01422006868855381, + "brier": 0.006709494600488222, + "calibration": { + "observed_rate": 0.006751389992057188, + "mean_prediction": 0.004533327858334208, + "calibration_in_the_large": -0.0022180621337229804, + "expected_calibration_error_10bin": 0.0022180621337229804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.9024087849805171, + "auprc": 0.012838069154399178, + "brier": 0.0007057938996661687, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.00042734075676001865, + "calibration_in_the_large": -0.00028062384500989287, + "expected_calibration_error_10bin": 0.00028062384500989287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 19, + "negatives": 2758, + "auroc": 0.7889584367008893, + "auprc": 0.019792738783231116, + "brier": 0.006778735163120051, + "calibration": { + "observed_rate": 0.0068419157364061935, + "mean_prediction": 0.004077150372761145, + "calibration_in_the_large": -0.0027647653636450487, + "expected_calibration_error_10bin": 0.0027647653636450487, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.7611749261568757, + "auprc": 0.022158408766703375, + "brier": 0.003928266202205437, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.0016776658325615274, + "calibration_in_the_large": -0.0022777458898404863, + "expected_calibration_error_10bin": 0.0022777458898404863, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.9208392603129445, + "auprc": 0.015561437954057506, + "brier": 0.0017675920360240996, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0006852082388045049, + "calibration_in_the_large": -0.001089729638369794, + "expected_calibration_error_10bin": 0.001089729638369794, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 20, + "negatives": 2734, + "auroc": 0.6379846378931968, + "auprc": 0.012187125465857034, + "brier": 0.007242749203444277, + "calibration": { + "observed_rate": 0.007262164124909223, + "mean_prediction": 0.004840115667684388, + "calibration_in_the_large": -0.0024220484572248357, + "expected_calibration_error_10bin": 0.0024220484572248357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7825124910778015, + "auprc": 0.038715160494546035, + "brier": 0.0017713124857888455, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0022058871501125744, + "calibration_in_the_large": 0.00042462601723049394, + "expected_calibration_error_10bin": 0.00042462601723049367, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.5941218130311615, + "auprc": 0.003522739110151582, + "brier": 0.0017887114609325397, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.000810203315623521, + "calibration_in_the_large": -0.0009572056628140895, + "expected_calibration_error_10bin": 0.0010573661696231715, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.7807506013377706, + "auprc": 0.03967717646569249, + "brier": 0.003920005574140483, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.0023496589007458504, + "calibration_in_the_large": -0.0016214602328281568, + "expected_calibration_error_10bin": 0.0016214602328281568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 36, + "negatives": 2569, + "auroc": 0.8504065568098266, + "auprc": 0.10525312456673626, + "brier": 0.01312096818949386, + "calibration": { + "observed_rate": 0.01381957773512476, + "mean_prediction": 0.011041541930513115, + "calibration_in_the_large": -0.0027780358046116446, + "expected_calibration_error_10bin": 0.0027780358046116467, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 16, + "negatives": 2676, + "auroc": 0.71863322122571, + "auprc": 0.02744667869886802, + "brier": 0.005880005859484848, + "calibration": { + "observed_rate": 0.005943536404160475, + "mean_prediction": 0.004339896756430872, + "calibration_in_the_large": -0.001603639647729603, + "expected_calibration_error_10bin": 0.001603639647729603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.8245798249033733e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00019465102176282419, + "calibration_in_the_large": 0.00019465102176282419, + "expected_calibration_error_10bin": 0.00019465102176282419, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.9023767293366441, + "auprc": 0.07003464416312125, + "brier": 0.002152875958358216, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0038612807394859936, + "calibration_in_the_large": 0.0020907424958599313, + "expected_calibration_error_10bin": 0.0020907424958599313, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6543253826984692, + "auprc": 0.009302279205417086, + "brier": 0.001447901281349821, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.00303274326510856, + "calibration_in_the_large": 0.0016107738374512548, + "expected_calibration_error_10bin": 0.0016107738374512546, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 44, + "negatives": 1999, + "auroc": 0.7786734276229024, + "auprc": 0.10851148476063069, + "brier": 0.0205209346454622, + "calibration": { + "observed_rate": 0.021536955457660302, + "mean_prediction": 0.01833120269563386, + "calibration_in_the_large": -0.003205752762026441, + "expected_calibration_error_10bin": 0.003347072253057622, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 8, + "negatives": 2756, + "auroc": 0.7983037010159652, + "auprc": 0.01953566064459602, + "brier": 0.0028747407123146207, + "calibration": { + "observed_rate": 0.002894356005788712, + "mean_prediction": 0.002711581139616488, + "calibration_in_the_large": -0.00018277486617222392, + "expected_calibration_error_10bin": 0.00018277486617222392, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.8328595119639896, + "auprc": 0.0041446215797579415, + "brier": 0.0010851996436195743, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0017333574229237466, + "calibration_in_the_large": 0.0006683946966191672, + "expected_calibration_error_10bin": 0.0006683946966191672, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9126052413138859, + "auprc": 0.030312200913059282, + "brier": 0.0010586394822069238, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0012899613992321548, + "calibration_in_the_large": 0.00022386331820870064, + "expected_calibration_error_10bin": 0.00022386331820870064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.821826681049982, + "auprc": 0.013440141955949447, + "brier": 0.00144684478009384, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0036498308247860265, + "calibration_in_the_large": 0.0022135651156298328, + "expected_calibration_error_10bin": 0.0022135651156298328, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8673721340388008, + "auprc": 0.0038837056308124755, + "brier": 0.0007072272651757689, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0008273508101187091, + "calibration_in_the_large": 0.000122380771345357, + "expected_calibration_error_10bin": 0.000122380771345357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.9596216806111313, + "auprc": 0.09166500719367868, + "brier": 0.0024427395023497384, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.003234276778279314, + "calibration_in_the_large": 0.0006943638610079064, + "expected_calibration_error_10bin": 0.0006943638610079064, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 7.558368683947004e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005408217914748246, + "calibration_in_the_large": 0.0005408217914748246, + "expected_calibration_error_10bin": 0.0005408217914748246, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.75529523133357, + "auprc": 0.002888363531326394, + "brier": 0.0010653745398760454, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0005755932926155849, + "calibration_in_the_large": -0.0004882364946184577, + "expected_calibration_error_10bin": 0.0004882364946184577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 2, + "negatives": 2811, + "auroc": 0.9263607257203842, + "auprc": 0.009217359050445104, + "brier": 0.0007090614898989166, + "calibration": { + "observed_rate": 0.0007109847138286527, + "mean_prediction": 0.0005170002008357581, + "calibration_in_the_large": -0.0001939845129928946, + "expected_calibration_error_10bin": 0.0001939845129928946, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6033800791082344, + "auprc": 0.005253044956029501, + "brier": 0.0014359796542348516, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0015435653264700133, + "calibration_in_the_large": 0.00010729961731381936, + "expected_calibration_error_10bin": 0.00010729961731381936, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 17, + "negatives": 2732, + "auroc": 0.8573550943071225, + "auprc": 0.056245054437505285, + "brier": 0.006010800061079452, + "calibration": { + "observed_rate": 0.0061840669334303384, + "mean_prediction": 0.005247598146969635, + "calibration_in_the_large": -0.0009364687864607032, + "expected_calibration_error_10bin": 0.002092025687996633, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.764625608164234, + "auprc": 0.005400327170499371, + "brier": 0.0021441315145567744, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0015646629774741423, + "calibration_in_the_large": -0.000566775743662625, + "expected_calibration_error_10bin": 0.000566775743662625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 15, + "negatives": 2730, + "auroc": 0.80002442002442, + "auprc": 0.03098862852843876, + "brier": 0.005374424069928295, + "calibration": { + "observed_rate": 0.00546448087431694, + "mean_prediction": 0.005272104468812953, + "calibration_in_the_large": -0.00019237640550398647, + "expected_calibration_error_10bin": 0.00019237640550398647, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.6625045770779934, + "auprc": 0.00672384851997361, + "brier": 0.0036556313159371166, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.002536529574507397, + "calibration_in_the_large": -0.0011117739643470357, + "expected_calibration_error_10bin": 0.0011117739643470357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7117330462863294, + "auprc": 0.019014018716640095, + "brier": 0.0017837353281058052, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0009657958413973291, + "calibration_in_the_large": -0.0008250351041614103, + "expected_calibration_error_10bin": 0.0008250351041614103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 52, + "negatives": 2508, + "auroc": 0.7103959636854373, + "auprc": 0.06926679363113217, + "brier": 0.019552431123225807, + "calibration": { + "observed_rate": 0.0203125, + "mean_prediction": 0.013591542366179965, + "calibration_in_the_large": -0.006720957633820036, + "expected_calibration_error_10bin": 0.007218563460060068, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7953703703703704, + "auprc": 0.005153912529622461, + "brier": 0.001774717624144213, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0015454895827119216, + "calibration_in_the_large": -0.00023197220185971015, + "expected_calibration_error_10bin": 0.00023197220185971015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 10, + "negatives": 2800, + "auroc": 0.7305, + "auprc": 0.008618265917727009, + "brier": 0.0035472446328370035, + "calibration": { + "observed_rate": 0.0035587188612099642, + "mean_prediction": 0.001885182554529606, + "calibration_in_the_large": -0.0016735363066803582, + "expected_calibration_error_10bin": 0.0016735363066803582, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.8024514485832538, + "auprc": 0.01224491686598135, + "brier": 0.0032586694039467715, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.003008668182452465, + "calibration_in_the_large": -0.00020446998248862744, + "expected_calibration_error_10bin": 0.00043471206940952394, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8558408622602631, + "auprc": 0.026193030899045504, + "brier": 0.0032813930498683916, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.004867598463751712, + "calibration_in_the_large": 0.0016681672515227752, + "expected_calibration_error_10bin": 0.001668167251522775, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 4, + "negatives": 2792, + "auroc": 0.8868194842406877, + "auprc": 0.014646952218910336, + "brier": 0.0014267853722751992, + "calibration": { + "observed_rate": 0.001430615164520744, + "mean_prediction": 0.0018109230385359137, + "calibration_in_the_large": 0.0003803078740151698, + "expected_calibration_error_10bin": 0.0003803078740151698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9552830869094843, + "auprc": 0.008, + "brier": 0.00037000697382734443, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0006408828901794352, + "calibration_in_the_large": 0.00028039262341663783, + "expected_calibration_error_10bin": 0.00028039262341663783, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9487936622254232, + "auprc": 0.1441181848957996, + "brier": 0.003484111519740091, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0027929291335532093, + "calibration_in_the_large": -0.0007951584157829946, + "expected_calibration_error_10bin": 0.002475045693785134, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 5, + "negatives": 2758, + "auroc": 0.971718636693256, + "auprc": 0.04067580404046353, + "brier": 0.0018835286853126428, + "calibration": { + "observed_rate": 0.0018096272167933405, + "mean_prediction": 0.0022293241530159883, + "calibration_in_the_large": 0.0004196969362226478, + "expected_calibration_error_10bin": 0.0009022618280161549, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 5, + "negatives": 2793, + "auroc": 0.7394199785177229, + "auprc": 0.015161198537781853, + "brier": 0.0017898480527301557, + "calibration": { + "observed_rate": 0.0017869907076483202, + "mean_prediction": 0.0014849783936561223, + "calibration_in_the_large": -0.00030201231399219785, + "expected_calibration_error_10bin": 0.00030201231399219785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 17, + "negatives": 2664, + "auroc": 0.8266207383854443, + "auprc": 0.22792793914311502, + "brier": 0.0056831991681437965, + "calibration": { + "observed_rate": 0.006340917568071615, + "mean_prediction": 0.0032581139841221375, + "calibration_in_the_large": -0.003082803583949477, + "expected_calibration_error_10bin": 0.0033758697734262103, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 5, + "negatives": 2726, + "auroc": 0.7382978723404255, + "auprc": 0.004532878224977391, + "brier": 0.0018337162301174951, + "calibration": { + "observed_rate": 0.001830831197363603, + "mean_prediction": 0.0017843439754100614, + "calibration_in_the_large": -4.6487221953541704e-05, + "expected_calibration_error_10bin": 4.6487221953541704e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.8488124778447359, + "auprc": 0.020353975267266934, + "brier": 0.0014113390406104433, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0009784568948951959, + "calibration_in_the_large": -0.00043747230864462716, + "expected_calibration_error_10bin": 0.00043747230864462716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9227498228206945, + "auprc": 0.008833085149587113, + "brier": 0.0007079203718710326, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006957089431499085, + "calibration_in_the_large": -1.2506354300516461e-05, + "expected_calibration_error_10bin": 1.2506354300516461e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 5, + "negatives": 2752, + "auroc": 0.8892441860465117, + "auprc": 0.20811808264475906, + "brier": 0.0017165278470338632, + "calibration": { + "observed_rate": 0.0018135654697134566, + "mean_prediction": 0.0023134963605283276, + "calibration_in_the_large": 0.0004999308908148711, + "expected_calibration_error_10bin": 0.0010040936978851329, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 2, + "negatives": 2777, + "auroc": 0.6571840115232265, + "auprc": 0.0022786820985744053, + "brier": 0.0007207307622721391, + "calibration": { + "observed_rate": 0.0007196833393306944, + "mean_prediction": 0.0008613827970317533, + "calibration_in_the_large": 0.00014169945770105882, + "expected_calibration_error_10bin": 0.00014169945770105882, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.767529665587918, + "auprc": 0.021112937928794706, + "brier": 0.001432836939469003, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0014386466447796375, + "calibration_in_the_large": 2.3809356234434816e-06, + "expected_calibration_error_10bin": 2.3809356234434816e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6367491166077739, + "auprc": 0.0009718172983479105, + "brier": 0.00035415907906315896, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0004340718454583113, + "calibration_in_the_large": 8.083977198604001e-05, + "expected_calibration_error_10bin": 8.083977198604001e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 14, + "negatives": 2754, + "auroc": 0.8442265795206971, + "auprc": 0.027692250433359506, + "brier": 0.005035217213336963, + "calibration": { + "observed_rate": 0.0050578034682080926, + "mean_prediction": 0.004121269970055752, + "calibration_in_the_large": -0.0009365334981523404, + "expected_calibration_error_10bin": 0.0013856141912625605, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 17, + "negatives": 2734, + "auroc": 0.8654847454709755, + "auprc": 0.06226158331764598, + "brier": 0.00602105695722924, + "calibration": { + "observed_rate": 0.0061795710650672485, + "mean_prediction": 0.005253012235988678, + "calibration_in_the_large": -0.0009265588290785706, + "expected_calibration_error_10bin": 0.001010849730898435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 11, + "negatives": 2812, + "auroc": 0.9084766584766585, + "auprc": 0.0813477962087343, + "brier": 0.0037562790064660503, + "calibration": { + "observed_rate": 0.0038965639390719092, + "mean_prediction": 0.0024391213409993414, + "calibration_in_the_large": -0.0014574425980725678, + "expected_calibration_error_10bin": 0.001612241798849101, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.7473364318913122, + "auprc": 0.01442133043239253, + "brier": 0.0035408522805361925, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0026885880528370897, + "calibration_in_the_large": -0.0008739342129270712, + "expected_calibration_error_10bin": 0.0008739342129270712, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 21, + "negatives": 2680, + "auroc": 0.6311122956645344, + "auprc": 0.018234234614101404, + "brier": 0.007750480738449024, + "calibration": { + "observed_rate": 0.00777489818585709, + "mean_prediction": 0.004893416466437312, + "calibration_in_the_large": -0.002881481719419778, + "expected_calibration_error_10bin": 0.003057397220661946, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 4, + "negatives": 2826, + "auroc": 0.7203644727530077, + "auprc": 0.004486526406010425, + "brier": 0.001413639897681609, + "calibration": { + "observed_rate": 0.0014134275618374558, + "mean_prediction": 0.0006165342548970065, + "calibration_in_the_large": -0.0007968933069404493, + "expected_calibration_error_10bin": 0.0007968933069404493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.7415570565232847, + "auprc": 0.0071264346085543025, + "brier": 0.0018764012622801585, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0030948817982262115, + "calibration_in_the_large": 0.0013205737783539618, + "expected_calibration_error_10bin": 0.0013205737783539616, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 2, + "negatives": 2815, + "auroc": 0.47904085257548845, + "auprc": 0.001150325116545268, + "brier": 0.0007347230769306274, + "calibration": { + "observed_rate": 0.0007099751508697196, + "mean_prediction": 0.0021061018546909616, + "calibration_in_the_large": 0.001396126703821242, + "expected_calibration_error_10bin": 0.001396126703821242, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 3, + "negatives": 2813, + "auroc": 0.8674013508709563, + "auprc": 0.03327755410860933, + "brier": 0.0010577929711160464, + "calibration": { + "observed_rate": 0.001065340909090909, + "mean_prediction": 0.001039438958615206, + "calibration_in_the_large": -2.5901950475702967e-05, + "expected_calibration_error_10bin": 2.5901950475702967e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8235086480762442, + "auprc": 0.019543108682452945, + "brier": 0.0007030328187956053, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0005832904406416535, + "calibration_in_the_large": -0.00012217693149238539, + "expected_calibration_error_10bin": 0.00012217693149238539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.805392233758094e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007336979150574332, + "calibration_in_the_large": 0.0007336979150574332, + "expected_calibration_error_10bin": 0.0007336979150574332, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.6225763016157989, + "auprc": 0.005096558206762831, + "brier": 0.002871067110179671, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0032686461257482266, + "calibration_in_the_large": 0.0004043425095649109, + "expected_calibration_error_10bin": 0.0004043425095649109, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.8451250937795609, + "auprc": 0.019708974392303697, + "brier": 0.003907621893553374, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.0022413455372153894, + "calibration_in_the_large": -0.0016900340196109149, + "expected_calibration_error_10bin": 0.001761888670414768, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.9149910233393178, + "auprc": 0.046016864355548144, + "brier": 0.0014400381654276978, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.002206677475515167, + "calibration_in_the_large": 0.0007724716669816423, + "expected_calibration_error_10bin": 0.0007724716669816425, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 1, + "negatives": 2823, + "auroc": 0.5565001771165426, + "auprc": 0.0007980845969672786, + "brier": 0.0003761169266096752, + "calibration": { + "observed_rate": 0.0003541076487252125, + "mean_prediction": 0.0020837942755145855, + "calibration_in_the_large": 0.001729686626789373, + "expected_calibration_error_10bin": 0.001729686626789373, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7732889382167961, + "auprc": 0.06587394545627871, + "brier": 0.003633428223013725, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.002769076550257027, + "calibration_in_the_large": -0.0009168799554562057, + "expected_calibration_error_10bin": 0.0009168799554562057, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7501793400286944, + "auprc": 0.002190008013683065, + "brier": 0.0007173350241847217, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0006279833198538008, + "calibration_in_the_large": -8.88625582823999e-05, + "expected_calibration_error_10bin": 8.88625582823999e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 5, + "negatives": 2728, + "auroc": 0.6451612903225806, + "auprc": 0.003454916651959713, + "brier": 0.001833024673556726, + "calibration": { + "observed_rate": 0.0018294914013904135, + "mean_prediction": 0.0012842269747370696, + "calibration_in_the_large": -0.0005452644266533439, + "expected_calibration_error_10bin": 0.0005452644266533439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 17, + "negatives": 2657, + "auroc": 0.6729172662666874, + "auprc": 0.015348259257170123, + "brier": 0.00631646299590488, + "calibration": { + "observed_rate": 0.006357516828721017, + "mean_prediction": 0.0043586409566645015, + "calibration_in_the_large": -0.0019988758720565153, + "expected_calibration_error_10bin": 0.0019988758720565153, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003498457320956387, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0006819687476482634, + "calibration_in_the_large": 0.00032748452219629604, + "expected_calibration_error_10bin": 0.00032748452219629604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 13, + "negatives": 2704, + "auroc": 0.7222917614929449, + "auprc": 0.037985785025270634, + "brier": 0.004734130459793919, + "calibration": { + "observed_rate": 0.004784688995215311, + "mean_prediction": 0.004562709758739061, + "calibration_in_the_large": -0.0002219792364762498, + "expected_calibration_error_10bin": 0.0002219792364762498, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9625668449197861, + "auprc": 0.009433962264150943, + "brier": 0.0003558282499341572, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.00046179089788338766, + "calibration_in_the_large": 0.00010541171042793504, + "expected_calibration_error_10bin": 0.00010541171042793504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.5263157894736842, + "auprc": 0.0011140869694602536, + "brier": 0.000712721985695798, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0009698748888224356, + "calibration_in_the_large": 0.0002591428348067995, + "expected_calibration_error_10bin": 0.0002591428348067995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.6920924574209246, + "auprc": 0.013302902120210375, + "brier": 0.0010896953395042675, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.0010687578816470664, + "calibration_in_the_large": -2.4935155173932532e-05, + "expected_calibration_error_10bin": 2.4935155173932532e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 4, + "negatives": 2686, + "auroc": 0.6521779597915115, + "auprc": 0.023250935910390708, + "brier": 0.0014833735030268965, + "calibration": { + "observed_rate": 0.001486988847583643, + "mean_prediction": 0.0028824697508438727, + "calibration_in_the_large": 0.0013954809032602296, + "expected_calibration_error_10bin": 0.0013954809032602296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7137212643678161, + "auprc": 0.0012531328320802004, + "brier": 0.00036018264836643656, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0010273191152796563, + "calibration_in_the_large": 0.0006682526879906079, + "expected_calibration_error_10bin": 0.0006682526879906079, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 22, + "negatives": 2545, + "auroc": 0.6846936953027326, + "auprc": 0.037115033337026475, + "brier": 0.008463308416630944, + "calibration": { + "observed_rate": 0.008570315543435918, + "mean_prediction": 0.009033353552319982, + "calibration_in_the_large": 0.0004630380088840643, + "expected_calibration_error_10bin": 0.0009736915325825669, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7547550432276657, + "auprc": 0.045005217620473444, + "brier": 0.0017870244323419753, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.0017263666814195766, + "calibration_in_the_large": -7.154773785406597e-05, + "expected_calibration_error_10bin": 7.154773785406597e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.738768130183562, + "auprc": 0.0452634277206354, + "brier": 0.006924629789712204, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.007752983392137317, + "calibration_in_the_large": 0.0007081187276953447, + "expected_calibration_error_10bin": 0.0007081187276953443, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 6, + "negatives": 2699, + "auroc": 0.7899221934049648, + "auprc": 0.012164047107283622, + "brier": 0.002216024832763065, + "calibration": { + "observed_rate": 0.0022181146025878, + "mean_prediction": 0.0017673233694385654, + "calibration_in_the_large": -0.0004507912331492348, + "expected_calibration_error_10bin": 0.0004507912331492348, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7386619301361752, + "auprc": 0.031187119042373507, + "brier": 0.0010564030176123563, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001193682230357117, + "calibration_in_the_large": 0.00012909741843376713, + "expected_calibration_error_10bin": 0.00012909741843376713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 3, + "negatives": 2765, + "auroc": 0.6470162748643762, + "auprc": 0.0033332163277049985, + "brier": 0.0010841051686323517, + "calibration": { + "observed_rate": 0.001083815028901734, + "mean_prediction": 0.0011676527243956883, + "calibration_in_the_large": 8.383769549395433e-05, + "expected_calibration_error_10bin": 8.383769549395433e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 8, + "negatives": 2795, + "auroc": 0.7591681574239714, + "auprc": 0.014060960936314097, + "brier": 0.0028526495628384348, + "calibration": { + "observed_rate": 0.0028540849090260435, + "mean_prediction": 0.0012942895428100167, + "calibration_in_the_large": -0.0015597953662160268, + "expected_calibration_error_10bin": 0.0015597953662160268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8541518807665011, + "auprc": 0.0024271844660194173, + "brier": 0.00035463202219889026, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.00020108058053278934, + "calibration_in_the_large": -0.00015365514135440468, + "expected_calibration_error_10bin": 0.00015365514135440468, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.9058151980021406, + "auprc": 0.0037735849056603774, + "brier": 0.00035947792267541163, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.0013385424662787364, + "calibration_in_the_large": 0.0009819090853942856, + "expected_calibration_error_10bin": 0.0009819090853942856, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.5881676689069685, + "auprc": 0.0024087101714535208, + "brier": 0.0014193220461449973, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009055856027648647, + "calibration_in_the_large": -0.0005073426911242204, + "expected_calibration_error_10bin": 0.0005073426911242204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 4, + "negatives": 2752, + "auroc": 0.84765625, + "auprc": 0.0065851066236582885, + "brier": 0.001454059596418383, + "calibration": { + "observed_rate": 0.001451378809869376, + "mean_prediction": 0.0020907304852752994, + "calibration_in_the_large": 0.0006393516754059235, + "expected_calibration_error_10bin": 0.0006393516754059235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.832612548741581, + "auprc": 0.006822423021900488, + "brier": 0.001767338255935086, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0006676691471726393, + "calibration_in_the_large": -0.0011016160616030154, + "expected_calibration_error_10bin": 0.0011016160616030154, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 53, + "negatives": 2239, + "auroc": 0.7996494391869686, + "auprc": 0.09253522608455245, + "brier": 0.02187899464922662, + "calibration": { + "observed_rate": 0.0231239092495637, + "mean_prediction": 0.017719405439953432, + "calibration_in_the_large": -0.005404503809610269, + "expected_calibration_error_10bin": 0.006170946758481316, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 21, + "negatives": 2419, + "auroc": 0.9009823028012363, + "auprc": 0.2214079554990187, + "brier": 0.007934836794059026, + "calibration": { + "observed_rate": 0.00860655737704918, + "mean_prediction": 0.004815026251714296, + "calibration_in_the_large": -0.0037915311253348847, + "expected_calibration_error_10bin": 0.0037915311253348847, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.8663298116674323, + "auprc": 0.014088805179399514, + "brier": 0.002486842479783065, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0007677604650325844, + "calibration_in_the_large": -0.001726893847155584, + "expected_calibration_error_10bin": 0.001726893847155584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9145789101203113, + "auprc": 0.04234115417794494, + "brier": 0.0017536095623649282, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0005702281508055203, + "calibration_in_the_large": -0.001195932216555836, + "expected_calibration_error_10bin": 0.001195932216555836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.9386216798277099, + "auprc": 0.045760498292143854, + "brier": 0.0010645435252883105, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.002022839226620296, + "calibration_in_the_large": 0.0009471848702201527, + "expected_calibration_error_10bin": 0.0009471848702201527, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 7, + "negatives": 2822, + "auroc": 0.7744760554824339, + "auprc": 0.012278462042663838, + "brier": 0.0024663716927917742, + "calibration": { + "observed_rate": 0.002474372569812655, + "mean_prediction": 0.0019048663299651787, + "calibration_in_the_large": -0.0005695062398474761, + "expected_calibration_error_10bin": 0.0005695062398474761, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8020411404971806, + "auprc": 0.010111953069759252, + "brier": 0.0031922808594236417, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.001741078652164077, + "calibration_in_the_large": -0.001465191387023668, + "expected_calibration_error_10bin": 0.001465191387023668, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 44, + "negatives": 2476, + "auroc": 0.742317153767073, + "auprc": 0.04098545882034548, + "brier": 0.017063537620216077, + "calibration": { + "observed_rate": 0.01746031746031746, + "mean_prediction": 0.015871327082358118, + "calibration_in_the_large": -0.0015889903779593428, + "expected_calibration_error_10bin": 0.0028789745360665517, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 11, + "negatives": 2595, + "auroc": 0.828481345244351, + "auprc": 0.02488452740673834, + "brier": 0.004179529383949041, + "calibration": { + "observed_rate": 0.00422102839600921, + "mean_prediction": 0.004003455640101174, + "calibration_in_the_large": -0.0002175727559080359, + "expected_calibration_error_10bin": 0.0003158806223653616, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9800141492748496, + "auprc": 0.02541827541827542, + "brier": 0.0007016464015033332, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006126117236049302, + "calibration_in_the_large": -9.435186777011402e-05, + "expected_calibration_error_10bin": 9.435186777011402e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7751549833094897, + "auprc": 0.003582392894299386, + "brier": 0.0010718411910614057, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0007297251333603299, + "calibration_in_the_large": -0.0003420862278400988, + "expected_calibration_error_10bin": 0.0003420862278400988, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9979006936838262, + "auprc": 0.31547619047619047, + "brier": 0.0012735833568249628, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.000731855653661198, + "calibration_in_the_large": -0.0007264017287668005, + "expected_calibration_error_10bin": 0.0011176039290211844, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.000391181697985081, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.00044946609039329835, + "calibration_in_the_large": 7.239218390762714e-05, + "expected_calibration_error_10bin": 0.0001245511144566698, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8689925240299039, + "auprc": 0.0027100271002710027, + "brier": 0.00035613255926470567, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0007322692964430563, + "calibration_in_the_large": 0.00037639741032205985, + "expected_calibration_error_10bin": 0.00037639741032205985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 7.628098112752809e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001394780542120703, + "calibration_in_the_large": 0.001394780542120703, + "expected_calibration_error_10bin": 0.001394780542120703, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "120": { + "A04": { + "valid": 2782, + "positives": 18, + "negatives": 2764, + "auroc": 0.7482312268853514, + "auprc": 0.07599386006916978, + "brier": 0.006393601173999598, + "calibration": { + "observed_rate": 0.006470165348670022, + "mean_prediction": 0.005605191546536426, + "calibration_in_the_large": -0.0008649738021335954, + "expected_calibration_error_10bin": 0.0010815792558956196, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.8305636021751284, + "auprc": 0.16901193097803024, + "brier": 0.0024201712089427065, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.002794312088545864, + "calibration_in_the_large": 0.0003102808607247142, + "expected_calibration_error_10bin": 0.0003102808607247142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 33, + "negatives": 2631, + "auroc": 0.7490757057461732, + "auprc": 0.05409505513945959, + "brier": 0.012209276967498565, + "calibration": { + "observed_rate": 0.012387387387387387, + "mean_prediction": 0.014326796007472687, + "calibration_in_the_large": 0.0019394086200852992, + "expected_calibration_error_10bin": 0.0019394086200853, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.9932576295244855, + "auprc": 0.05, + "brier": 0.00038671188590853146, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.001340151842060521, + "calibration_in_the_large": 0.000985416120173327, + "expected_calibration_error_10bin": 0.0009854161201733273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6218606296427308, + "auprc": 0.0009345794392523365, + "brier": 0.0003551355409249262, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0004593059603391495, + "calibration_in_the_large": 0.00010569917108879586, + "expected_calibration_error_10bin": 0.00010569917108879586, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 3, + "negatives": 2779, + "auroc": 0.9498620606932949, + "auprc": 0.0635671037331088, + "brier": 0.001064812186162529, + "calibration": { + "observed_rate": 0.0010783608914450035, + "mean_prediction": 0.001324262645035982, + "calibration_in_the_large": 0.00024590175359097844, + "expected_calibration_error_10bin": 0.0002459017535909784, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 14, + "negatives": 2749, + "auroc": 0.8606506262017357, + "auprc": 0.08087047816018249, + "brier": 0.004968231184916854, + "calibration": { + "observed_rate": 0.005066956207021353, + "mean_prediction": 0.0013477713081105633, + "calibration_in_the_large": -0.00371918489891079, + "expected_calibration_error_10bin": 0.0037942378196464534, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.99103562160887, + "auprc": 0.2638888888888889, + "brier": 0.0010442759584952585, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.0001621188763020938, + "calibration_in_the_large": -0.0008983265107604726, + "expected_calibration_error_10bin": 0.0008983265107604726, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9762999646268129, + "auprc": 0.05701932111815833, + "brier": 0.0013924883794096058, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007540973283133246, + "calibration_in_the_large": -0.0006588309655757605, + "expected_calibration_error_10bin": 0.0006588309655757605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 5.7997058933489156e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011298317733358135, + "calibration_in_the_large": 0.0011298317733358135, + "expected_calibration_error_10bin": 0.0011298317733358135, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.7577633582731907, + "auprc": 0.028243788319062227, + "brier": 0.007883200794599565, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.006424882244570753, + "calibration_in_the_large": -0.001523094634041963, + "expected_calibration_error_10bin": 0.002385844939561591, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 39, + "negatives": 2639, + "auroc": 0.693376473217322, + "auprc": 0.026005838010247626, + "brier": 0.014582910186557881, + "calibration": { + "observed_rate": 0.014563106796116505, + "mean_prediction": 0.013368730356817042, + "calibration_in_the_large": -0.0011943764392994636, + "expected_calibration_error_10bin": 0.004264762016463559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 52, + "negatives": 2578, + "auroc": 0.770707763919556, + "auprc": 0.06367661379220663, + "brier": 0.019005561390995785, + "calibration": { + "observed_rate": 0.01977186311787072, + "mean_prediction": 0.01545707219361749, + "calibration_in_the_large": -0.00431479092425323, + "expected_calibration_error_10bin": 0.0052710433058554005, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7898832684824902, + "auprc": 0.0016806722689075631, + "brier": 0.00035939663107552793, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005301859146438312, + "calibration_in_the_large": 0.00017657912539347762, + "expected_calibration_error_10bin": 0.00017657912539347762, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9829907866761163, + "auprc": 0.029449152542372882, + "brier": 0.0007029387233574866, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005136573488383827, + "calibration_in_the_large": -0.00019455794861204226, + "expected_calibration_error_10bin": 0.00019455794861204226, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9189169932312077, + "auprc": 0.031482618868728746, + "brier": 0.0017741649215812056, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005388965082139008, + "calibration_in_the_large": -0.0012391973751431406, + "expected_calibration_error_10bin": 0.0013107148253031571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 1, + "negatives": 2808, + "auroc": 0.9996438746438746, + "auprc": 0.5, + "brier": 0.000301646343937013, + "calibration": { + "observed_rate": 0.000355998576005696, + "mean_prediction": 0.0005789245788295089, + "calibration_in_the_large": 0.00022292600282381293, + "expected_calibration_error_10bin": 0.0007371725288564886, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9545130217623974, + "auprc": 0.022847522847522846, + "brier": 0.0007089134141001741, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0008212888443152422, + "calibration_in_the_large": 0.00010827636659688211, + "expected_calibration_error_10bin": 0.00010827636659688211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9888574460558897, + "auprc": 0.051250000000000004, + "brier": 0.0007017202573809403, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004404209485226916, + "calibration_in_the_large": -0.0002665426428523526, + "expected_calibration_error_10bin": 0.0002665426428523526, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 13, + "negatives": 2749, + "auroc": 0.8732406189663374, + "auprc": 0.10650857243182149, + "brier": 0.0044983934616608665, + "calibration": { + "observed_rate": 0.004706734250543085, + "mean_prediction": 0.00307842556078029, + "calibration_in_the_large": -0.0016283086897627952, + "expected_calibration_error_10bin": 0.0017863495961254457, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 18, + "negatives": 2744, + "auroc": 0.8620019436345967, + "auprc": 0.08844516804589288, + "brier": 0.006283704231154986, + "calibration": { + "observed_rate": 0.0065170166545981175, + "mean_prediction": 0.005177065427320436, + "calibration_in_the_large": -0.0013399512272776817, + "expected_calibration_error_10bin": 0.003115206245366225, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.8739756772274127, + "auprc": 0.14133570511167817, + "brier": 0.00536690446604709, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.006744413014321825, + "calibration_in_the_large": 0.001655354490148797, + "expected_calibration_error_10bin": 0.003911300647701244, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 5.3264382347992036e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0007476255251577949, + "calibration_in_the_large": 0.0007476255251577949, + "expected_calibration_error_10bin": 0.0007476255251577949, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9358422939068101, + "auprc": 0.5027777777777778, + "brier": 0.0007086804332215871, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0004901018522129111, + "calibration_in_the_large": -0.0002262305260105846, + "expected_calibration_error_10bin": 0.0002262305260105846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5350657108721625, + "auprc": 0.00283537747382059, + "brier": 0.0021768086856184814, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002991733538466895, + "calibration_in_the_large": 0.0008458107916857792, + "expected_calibration_error_10bin": 0.0008458107916857792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 36, + "negatives": 2627, + "auroc": 0.8052700587911855, + "auprc": 0.09013819456802112, + "brier": 0.012891105937600383, + "calibration": { + "observed_rate": 0.013518588058580548, + "mean_prediction": 0.00962654922993652, + "calibration_in_the_large": -0.003892038828644029, + "expected_calibration_error_10bin": 0.0038920388286440306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 11, + "negatives": 2794, + "auroc": 0.830122990824494, + "auprc": 0.03112800055152465, + "brier": 0.0038972209503454398, + "calibration": { + "observed_rate": 0.00392156862745098, + "mean_prediction": 0.003901397600807505, + "calibration_in_the_large": -2.0171026643475438e-05, + "expected_calibration_error_10bin": 3.068994610949494e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 2.743909778553746e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005714693161681864, + "calibration_in_the_large": 0.0005714693161681864, + "expected_calibration_error_10bin": 0.0005714693161681864, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 17, + "negatives": 2756, + "auroc": 0.886066763425254, + "auprc": 0.09648466976473735, + "brier": 0.005940198938626501, + "calibration": { + "observed_rate": 0.006130544536602957, + "mean_prediction": 0.006787160011044906, + "calibration_in_the_large": 0.0006566154744419486, + "expected_calibration_error_10bin": 0.0013727304643159244, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 36, + "negatives": 2463, + "auroc": 0.7925858257770559, + "auprc": 0.04788233389370157, + "brier": 0.013995923024993574, + "calibration": { + "observed_rate": 0.014405762304921969, + "mean_prediction": 0.015774386901977328, + "calibration_in_the_large": 0.0013686245970553589, + "expected_calibration_error_10bin": 0.0013686245970553584, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 52, + "negatives": 2634, + "auroc": 0.8792126628117517, + "auprc": 0.12248939039892141, + "brier": 0.018167788643637724, + "calibration": { + "observed_rate": 0.0193596425912137, + "mean_prediction": 0.014599688902745257, + "calibration_in_the_large": -0.004759953688468443, + "expected_calibration_error_10bin": 0.008636523953928442, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 77, + "negatives": 2357, + "auroc": 0.836348208431365, + "auprc": 0.1547430828012621, + "brier": 0.02862967235772529, + "calibration": { + "observed_rate": 0.031635168447000823, + "mean_prediction": 0.027681013550415166, + "calibration_in_the_large": -0.003954154896585658, + "expected_calibration_error_10bin": 0.004239771244682996, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9607773851590106, + "auprc": 0.022073066146191436, + "brier": 0.0010529830467800323, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0007111694322585997, + "calibration_in_the_large": -0.00034777867928393474, + "expected_calibration_error_10bin": 0.00034777867928393474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 32, + "negatives": 2650, + "auroc": 0.8170754716981132, + "auprc": 0.06100041704456315, + "brier": 0.011705254334438451, + "calibration": { + "observed_rate": 0.011931394481730051, + "mean_prediction": 0.007208722035976482, + "calibration_in_the_large": -0.004722672445753569, + "expected_calibration_error_10bin": 0.005592057466020635, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 47, + "negatives": 2539, + "auroc": 0.8602901125422138, + "auprc": 0.22313560282125208, + "brier": 0.016060370739279958, + "calibration": { + "observed_rate": 0.01817478731631864, + "mean_prediction": 0.010900155610450669, + "calibration_in_the_large": -0.00727463170586797, + "expected_calibration_error_10bin": 0.008630049556543796, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8733285146367907, + "auprc": 0.18042866792732568, + "brier": 0.006922123203272404, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.007097712149175136, + "calibration_in_the_large": -7.84629494972721e-05, + "expected_calibration_error_10bin": 0.004755614974713548, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 39, + "negatives": 2556, + "auroc": 0.6979655712050078, + "auprc": 0.06426796464079922, + "brier": 0.014639303471920136, + "calibration": { + "observed_rate": 0.015028901734104046, + "mean_prediction": 0.013456614787081572, + "calibration_in_the_large": -0.0015722869470224735, + "expected_calibration_error_10bin": 0.0017740763759851526, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.7344082211197732, + "auprc": 0.04233780760626398, + "brier": 0.0007030521560314522, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008506269056481505, + "calibration_in_the_large": 0.00014241160819772553, + "expected_calibration_error_10bin": 0.00014241160819772558, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9188759278897137, + "auprc": 0.006526692361746982, + "brier": 0.0007085950207772566, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0009463096645160032, + "calibration_in_the_large": 0.00023984551757146066, + "expected_calibration_error_10bin": 0.00023984551757146066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.9908029713477184, + "auprc": 0.10905179615705932, + "brier": 0.0017040626723463892, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0008084722000886439, + "calibration_in_the_large": -0.0009570645230751979, + "expected_calibration_error_10bin": 0.0010545025531463756, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7165784832451499, + "auprc": 0.0075946395029619996, + "brier": 0.0008266944366264798, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0010764587830692904, + "calibration_in_the_large": 0.00037148874429593825, + "expected_calibration_error_10bin": 0.0006978893963179659, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 17, + "negatives": 2463, + "auroc": 0.779393852547109, + "auprc": 0.025887687597935662, + "brier": 0.006788813880102334, + "calibration": { + "observed_rate": 0.0068548387096774195, + "mean_prediction": 0.002920852277459803, + "calibration_in_the_large": -0.003933986432217616, + "expected_calibration_error_10bin": 0.003933986432217616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.7841976870256595, + "auprc": 0.007580836689640611, + "brier": 0.0028755908170891124, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.001371773971447043, + "calibration_in_the_large": -0.00151110891143584, + "expected_calibration_error_10bin": 0.00151110891143584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.18955064194008558, + "auprc": 0.000649441340782123, + "brier": 0.0007141963782207059, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0007184969936762514, + "calibration_in_the_large": 5.738618765346176e-06, + "expected_calibration_error_10bin": 5.738618765346176e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.7446831023172151, + "auprc": 0.06991196414236671, + "brier": 0.005825846222775635, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.004058246386010146, + "calibration_in_the_large": -0.0018670042976726246, + "expected_calibration_error_10bin": 0.0019743590003569967, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 4, + "negatives": 2812, + "auroc": 0.5987731152204836, + "auprc": 0.0022327819787608064, + "brier": 0.0014294500818215672, + "calibration": { + "observed_rate": 0.0014204545454545455, + "mean_prediction": 0.0017136327309446838, + "calibration_in_the_large": 0.0002931781854901383, + "expected_calibration_error_10bin": 0.0002931781854901383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9957340917170281, + "auprc": 0.07692307692307693, + "brier": 0.00034920200727957994, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0008372852092842055, + "calibration_in_the_large": 0.0004819191822763875, + "expected_calibration_error_10bin": 0.0004819191822763875, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7645639742673338, + "auprc": 0.004470907872232987, + "brier": 0.0014694213333194353, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0034468473399923497, + "calibration_in_the_large": 0.0020192955912414576, + "expected_calibration_error_10bin": 0.0020192955912414576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 4, + "negatives": 2807, + "auroc": 0.6927324545778412, + "auprc": 0.0028988467467633873, + "brier": 0.0014335004811618383, + "calibration": { + "observed_rate": 0.001422981145499822, + "mean_prediction": 0.0014993857711966456, + "calibration_in_the_large": 7.640462569682353e-05, + "expected_calibration_error_10bin": 7.640462569682353e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 29, + "negatives": 2719, + "auroc": 0.8218538762983348, + "auprc": 0.06378817150717338, + "brier": 0.010331293924387775, + "calibration": { + "observed_rate": 0.010553129548762736, + "mean_prediction": 0.009093463564215936, + "calibration_in_the_large": -0.0014596659845468006, + "expected_calibration_error_10bin": 0.003349126375248887, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.7452175992348159, + "auprc": 0.014934274626473348, + "brier": 0.004313713932816775, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.0055929172054071125, + "calibration_in_the_large": 0.0013072029196928266, + "expected_calibration_error_10bin": 0.0013072029196928266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 27, + "negatives": 2745, + "auroc": 0.8231397153072927, + "auprc": 0.10318756860293013, + "brier": 0.00932665709191415, + "calibration": { + "observed_rate": 0.00974025974025974, + "mean_prediction": 0.008476961684083455, + "calibration_in_the_large": -0.0012632980561762853, + "expected_calibration_error_10bin": 0.0033952690935813348, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8174107142857143, + "auprc": 0.006747801415163184, + "brier": 0.0014270699175534833, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0015324219121428365, + "calibration_in_the_large": 0.0001058883886050333, + "expected_calibration_error_10bin": 0.0001058883886050333, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 14, + "negatives": 2723, + "auroc": 0.5618278159592885, + "auprc": 0.008522431118905386, + "brier": 0.005119372658175317, + "calibration": { + "observed_rate": 0.005115089514066497, + "mean_prediction": 0.004556923838220899, + "calibration_in_the_large": -0.0005581656758455976, + "expected_calibration_error_10bin": 0.0005581656758455976, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7436480849450132, + "auprc": 0.029030099009209602, + "brier": 0.011212727287554132, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.009839075177927387, + "calibration_in_the_large": -0.0015485249907778009, + "expected_calibration_error_10bin": 0.0018868382395074662, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 30, + "negatives": 1542, + "auroc": 0.7138564634673584, + "auprc": 0.056435456769118084, + "brier": 0.018605083439322743, + "calibration": { + "observed_rate": 0.019083969465648856, + "mean_prediction": 0.01390138726210422, + "calibration_in_the_large": -0.005182582203544636, + "expected_calibration_error_10bin": 0.008158961572671871, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9573430294430649, + "auprc": 0.01943935602696363, + "brier": 0.0014377524097434295, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0016748014209810977, + "calibration_in_the_large": 0.0002578690795004034, + "expected_calibration_error_10bin": 0.0002578690795004035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 47, + "negatives": 2606, + "auroc": 0.7874218252477915, + "auprc": 0.11553144953466155, + "brier": 0.016678012966530466, + "calibration": { + "observed_rate": 0.017715793441387108, + "mean_prediction": 0.013305219181967452, + "calibration_in_the_large": -0.004410574259419656, + "expected_calibration_error_10bin": 0.005522060758521604, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 52, + "negatives": 2535, + "auroc": 0.8021772113488089, + "auprc": 0.07822040342716462, + "brier": 0.019129455918183103, + "calibration": { + "observed_rate": 0.020100502512562814, + "mean_prediction": 0.021035247222365567, + "calibration_in_the_large": 0.0009347447098027525, + "expected_calibration_error_10bin": 0.001303620633296282, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 88, + "negatives": 2097, + "auroc": 0.7675304547622144, + "auprc": 0.14571399577264213, + "brier": 0.036991949705749295, + "calibration": { + "observed_rate": 0.040274599542334096, + "mean_prediction": 0.026606937956808987, + "calibration_in_the_large": -0.013667661585525109, + "expected_calibration_error_10bin": 0.01529656200545432, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7729503007280785, + "auprc": 0.0818822768650919, + "brier": 0.003125213768509172, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.0028287447042799952, + "calibration_in_the_large": -0.00036614347463374266, + "expected_calibration_error_10bin": 0.00036614347463374266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7640489913544669, + "auprc": 0.004456302352048542, + "brier": 0.0014366428872681328, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0015551149386528581, + "calibration_in_the_large": 0.00011626601778954877, + "expected_calibration_error_10bin": 0.00011626601778954877, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5747947161727954, + "auprc": 0.0008389261744966443, + "brier": 0.00039041017953510813, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0017296576489366398, + "calibration_in_the_large": 0.0013727697117489168, + "expected_calibration_error_10bin": 0.0013727697117489166, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8543055185283924, + "auprc": 0.01939613813381597, + "brier": 0.004018700096359992, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.004025844347444929, + "calibration_in_the_large": 9.780090416817294e-06, + "expected_calibration_error_10bin": 0.00014104029073102171, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 15, + "negatives": 2735, + "auroc": 0.7428397318708104, + "auprc": 0.013471255708178293, + "brier": 0.005474212409299359, + "calibration": { + "observed_rate": 0.005454545454545455, + "mean_prediction": 0.007006488409761666, + "calibration_in_the_large": 0.0015519429552162114, + "expected_calibration_error_10bin": 0.0015519429552162114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4594833687190375, + "auprc": 0.0011269012724543742, + "brier": 0.0007144362230512554, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001430362711740298, + "calibration_in_the_large": 0.0007231491332395907, + "expected_calibration_error_10bin": 0.0007231491332395907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8005575155712357, + "auprc": 0.09308387829490146, + "brier": 0.003391896369067783, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.0044675880476575, + "calibration_in_the_large": 0.0009519630476575, + "expected_calibration_error_10bin": 0.0018740807035214852, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 7, + "negatives": 2734, + "auroc": 0.8451771344968126, + "auprc": 0.0326439449350214, + "brier": 0.002613739856329449, + "calibration": { + "observed_rate": 0.002553812477198103, + "mean_prediction": 0.0034195443784070917, + "calibration_in_the_large": 0.0008657319012089887, + "expected_calibration_error_10bin": 0.0009077505065052465, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9164799421756414, + "auprc": 0.028968504153953106, + "brier": 0.0035578259776948376, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.002356285545615259, + "calibration_in_the_large": -0.0012447227367037902, + "expected_calibration_error_10bin": 0.00131857389500763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 8, + "negatives": 2779, + "auroc": 0.940176322418136, + "auprc": 0.03794535999203776, + "brier": 0.002838362048826695, + "calibration": { + "observed_rate": 0.0028704700394689632, + "mean_prediction": 0.0011134599166366678, + "calibration_in_the_large": -0.0017570101228322954, + "expected_calibration_error_10bin": 0.0017570101228322954, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9411903916696249, + "auprc": 0.030031787337652726, + "brier": 0.0021135443439798504, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0004360850160977271, + "calibration_in_the_large": -0.0016893134961233143, + "expected_calibration_error_10bin": 0.0016893134961233143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8871803415243649, + "auprc": 0.11909787622603508, + "brier": 0.009622327214008701, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.008671074660148173, + "calibration_in_the_large": -0.0016339541939326182, + "expected_calibration_error_10bin": 0.002188621996587617, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.9365249920407513, + "auprc": 0.1652990644955766, + "brier": 0.00309930369221981, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.00130899667019399, + "calibration_in_the_large": -0.0019041414947471025, + "expected_calibration_error_10bin": 0.0019041414947471025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 2, + "negatives": 2806, + "auroc": 0.5721667854597291, + "auprc": 0.01827801827801828, + "brier": 0.0007091363959380521, + "calibration": { + "observed_rate": 0.0007122507122507123, + "mean_prediction": 0.0006671523524803103, + "calibration_in_the_large": -4.509835977040198e-05, + "expected_calibration_error_10bin": 4.509835977040198e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6475177304964539, + "auprc": 0.0010050251256281408, + "brier": 0.0003575027565214932, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0008404053353207463, + "calibration_in_the_large": 0.00048592110986877895, + "expected_calibration_error_10bin": 0.00048592110986877895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9199810606060606, + "auprc": 0.010878981940808627, + "brier": 0.0010617793192348325, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0007669630659379407, + "calibration_in_the_large": -0.00029724409972364135, + "expected_calibration_error_10bin": 0.00029724409972364135, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6870310825294748, + "auprc": 0.010387679261149035, + "brier": 0.0024885282148055343, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006624138930342435, + "calibration_in_the_large": -0.0018322404191539248, + "expected_calibration_error_10bin": 0.0018322404191539248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8726527982326951, + "auprc": 0.019273911252388067, + "brier": 0.0029099837400328706, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0022928401441916664, + "calibration_in_the_large": -0.0006440174182165566, + "expected_calibration_error_10bin": 0.0006440174182165566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 40, + "negatives": 2160, + "auroc": 0.7232060185185185, + "auprc": 0.050823965040110976, + "brier": 0.017801305178152822, + "calibration": { + "observed_rate": 0.01818181818181818, + "mean_prediction": 0.020243201401912797, + "calibration_in_the_large": 0.002061383220094616, + "expected_calibration_error_10bin": 0.0022098524694262192, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.79238913610557, + "auprc": 0.013682880967077293, + "brier": 0.0025044908605817294, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0026917442063248537, + "calibration_in_the_large": 0.00019174420632485367, + "expected_calibration_error_10bin": 0.00019174420632485367, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7432420336555675, + "auprc": 0.012258152032425917, + "brier": 0.0028428732333685507, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.002118691606768976, + "calibration_in_the_large": -0.0007374312065119952, + "expected_calibration_error_10bin": 0.0007374312065119952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 51, + "negatives": 2196, + "auroc": 0.737812064716597, + "auprc": 0.10727794605881699, + "brier": 0.02145985128220176, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.023651992722925688, + "calibration_in_the_large": 0.0009550634839403729, + "expected_calibration_error_10bin": 0.0017771714227968294, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7425278901556945, + "auprc": 0.03698217879819943, + "brier": 0.005405341917497908, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.006102880849364381, + "calibration_in_the_large": 0.0006164141339291213, + "expected_calibration_error_10bin": 0.0006164141339291207, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9399217916814788, + "auprc": 0.02206874302294319, + "brier": 0.0017795157301729795, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002062207834248593, + "calibration_in_the_large": 0.00028789981437634315, + "expected_calibration_error_10bin": 0.0002878998143763435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 6, + "negatives": 2769, + "auroc": 0.9363187673046828, + "auprc": 0.02694554825078947, + "brier": 0.002144571691062565, + "calibration": { + "observed_rate": 0.002162162162162162, + "mean_prediction": 0.0008932390554743121, + "calibration_in_the_large": -0.00126892310668785, + "expected_calibration_error_10bin": 0.00126892310668785, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6644404332129964, + "auprc": 0.0031075497028431615, + "brier": 0.0014550513093835246, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0020898059814762593, + "calibration_in_the_large": 0.0006478449144250698, + "expected_calibration_error_10bin": 0.0006478449144250698, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.5837200999642984, + "auprc": 0.000856898029134533, + "brier": 0.000379173717239908, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.002066485024507872, + "calibration_in_the_large": 0.0017095970873201491, + "expected_calibration_error_10bin": 0.0017095970873201491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 17, + "negatives": 2706, + "auroc": 0.767379679144385, + "auprc": 0.043708879844854547, + "brier": 0.006144116896033118, + "calibration": { + "observed_rate": 0.006243114212265883, + "mean_prediction": 0.003227901087927721, + "calibration_in_the_large": -0.003015213124338162, + "expected_calibration_error_10bin": 0.0031838428783787123, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7346754203791787, + "auprc": 0.017395444938613416, + "brier": 0.004013657258266167, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0020650457588709046, + "calibration_in_the_large": -0.0019716514888355172, + "expected_calibration_error_10bin": 0.0019716514888355172, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 3, + "negatives": 2802, + "auroc": 0.6884368308351178, + "auprc": 0.007335163190971085, + "brier": 0.0010754950870811724, + "calibration": { + "observed_rate": 0.0010695187165775401, + "mean_prediction": 0.0011491454294911766, + "calibration_in_the_large": 7.96267129136365e-05, + "expected_calibration_error_10bin": 7.96267129136365e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 59, + "negatives": 2256, + "auroc": 0.7163646471931723, + "auprc": 0.06541624128313045, + "brier": 0.0245720712774585, + "calibration": { + "observed_rate": 0.025485961123110152, + "mean_prediction": 0.016158194826257348, + "calibration_in_the_large": -0.009327766296852804, + "expected_calibration_error_10bin": 0.010633670064774302, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 3.2646046718071726e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002938673200283078, + "calibration_in_the_large": 0.0002938673200283078, + "expected_calibration_error_10bin": 0.0002938673200283078, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8991457350503633, + "auprc": 0.12095176033236393, + "brier": 0.007837102751858784, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.005020103862530464, + "calibration_in_the_large": -0.0033404922843252244, + "expected_calibration_error_10bin": 0.003999054617421126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7669665347247211, + "auprc": 0.027059954417963723, + "brier": 0.003559885948196544, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.0015816275284385407, + "calibration_in_the_large": -0.0020038869928952706, + "expected_calibration_error_10bin": 0.0020038869928952706, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7313009571074087, + "auprc": 0.007892371643635548, + "brier": 0.0010613618808149247, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0008165259605915213, + "calibration_in_the_large": -0.0002457969855841162, + "expected_calibration_error_10bin": 0.0002457969855841162, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 37, + "negatives": 2500, + "auroc": 0.7917837837837838, + "auprc": 0.06922820027734847, + "brier": 0.014189969603484268, + "calibration": { + "observed_rate": 0.014584154513204573, + "mean_prediction": 0.018766303698423394, + "calibration_in_the_large": 0.004182149185218821, + "expected_calibration_error_10bin": 0.004182149185218821, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 4.2064667867974365e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010969049769267451, + "calibration_in_the_large": 0.0010969049769267451, + "expected_calibration_error_10bin": 0.0010969049769267451, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 24, + "negatives": 2709, + "auroc": 0.7668573889504122, + "auprc": 0.02161461701640455, + "brier": 0.00882931481972573, + "calibration": { + "observed_rate": 0.008781558726673985, + "mean_prediction": 0.009215518435077844, + "calibration_in_the_large": 0.00043395970840385927, + "expected_calibration_error_10bin": 0.0010199885011810991, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 31, + "negatives": 2625, + "auroc": 0.7701382488479263, + "auprc": 0.036896317768913514, + "brier": 0.01144973493906191, + "calibration": { + "observed_rate": 0.011671686746987951, + "mean_prediction": 0.008101841809160574, + "calibration_in_the_large": -0.0035698449378273774, + "expected_calibration_error_10bin": 0.004092678474150313, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 2.674972230856157e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00022045054938818443, + "calibration_in_the_large": 0.00022045054938818443, + "expected_calibration_error_10bin": 0.00022045054938818443, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8265558698727016, + "auprc": 0.007044762257367353, + "brier": 0.0014102539444599896, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0004971400338361537, + "calibration_in_the_large": -0.0009152893446949198, + "expected_calibration_error_10bin": 0.0009152893446949198, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 2.2695931840067776e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008252657644258028, + "calibration_in_the_large": 0.0008252657644258028, + "expected_calibration_error_10bin": 0.0008252657644258028, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5027658815132049, + "auprc": 0.004058300354132214, + "brier": 0.001424246950241339, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.000594581123892792, + "calibration_in_the_large": -0.0008309356259290185, + "expected_calibration_error_10bin": 0.0008309356259290185, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8117304189435337, + "auprc": 0.012249664979169126, + "brier": 0.0018140286541040223, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.002361521370808904, + "calibration_in_the_large": 0.0005433395526270859, + "expected_calibration_error_10bin": 0.0005433395526270859, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 8, + "negatives": 2782, + "auroc": 0.6593727534148095, + "auprc": 0.014652517824306667, + "brier": 0.0028520626093718154, + "calibration": { + "observed_rate": 0.002867383512544803, + "mean_prediction": 0.002451649613252434, + "calibration_in_the_large": -0.00041573389929236903, + "expected_calibration_error_10bin": 0.00041573389929236903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3908086925543285, + "auprc": 0.0008800185837624376, + "brier": 0.0007179236996536663, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001316276537687112, + "calibration_in_the_large": 0.00060427938567572, + "expected_calibration_error_10bin": 0.00060427938567572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8063890882986361, + "auprc": 0.006116446777065438, + "brier": 0.0017867307308580983, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.001157131778957949, + "calibration_in_the_large": -0.0006343408115114168, + "expected_calibration_error_10bin": 0.0006343408115114168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9009400496630011, + "auprc": 0.008940493129244961, + "brier": 0.0014165337281114038, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0007221428577546694, + "calibration_in_the_large": -0.0006947894837260249, + "expected_calibration_error_10bin": 0.0006947894837260249, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8784432765494744, + "auprc": 0.020631095255315066, + "brier": 0.0029956925841780452, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.005154187546496684, + "calibration_in_the_large": 0.0022629696209455455, + "expected_calibration_error_10bin": 0.0022629696209455455, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 27, + "negatives": 1471, + "auroc": 0.6566709469496689, + "auprc": 0.05075908196416794, + "brier": 0.017613769151898877, + "calibration": { + "observed_rate": 0.018024032042723633, + "mean_prediction": 0.010296805644387197, + "calibration_in_the_large": -0.007727226398336435, + "expected_calibration_error_10bin": 0.008013384060323201, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 27, + "negatives": 2649, + "auroc": 0.8215818687694867, + "auprc": 0.04003812372102425, + "brier": 0.009894384095098432, + "calibration": { + "observed_rate": 0.010089686098654708, + "mean_prediction": 0.006983943503689511, + "calibration_in_the_large": -0.0031057425949651968, + "expected_calibration_error_10bin": 0.0037668903227034223, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 16, + "negatives": 2536, + "auroc": 0.8128943217665615, + "auprc": 0.0913970266178482, + "brier": 0.006088727792689463, + "calibration": { + "observed_rate": 0.006269592476489028, + "mean_prediction": 0.003658008998206982, + "calibration_in_the_large": -0.002611583478282046, + "expected_calibration_error_10bin": 0.0026115834782820466, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 16, + "negatives": 2711, + "auroc": 0.8427010328292143, + "auprc": 0.04157686540845089, + "brier": 0.005870237933785192, + "calibration": { + "observed_rate": 0.005867253392005867, + "mean_prediction": 0.006730678008219531, + "calibration_in_the_large": 0.0008634246162136641, + "expected_calibration_error_10bin": 0.001986949581807436, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 7, + "negatives": 2383, + "auroc": 0.9281218152388946, + "auprc": 0.025472906314429913, + "brier": 0.0029067297156271034, + "calibration": { + "observed_rate": 0.0029288702928870294, + "mean_prediction": 0.0011997774944564749, + "calibration_in_the_large": -0.0017290927984305545, + "expected_calibration_error_10bin": 0.0017290927984305545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 9, + "negatives": 2662, + "auroc": 0.8203105434510393, + "auprc": 0.022495453589939388, + "brier": 0.0034186186389767643, + "calibration": { + "observed_rate": 0.0033695245226506927, + "mean_prediction": 0.006520774014404629, + "calibration_in_the_large": 0.0031512494917539367, + "expected_calibration_error_10bin": 0.0031512494917539375, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.8828700403896412, + "auprc": 0.0154592830345686, + "brier": 0.0010650484637098844, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0012240937204316394, + "calibration_in_the_large": 0.00015609799241455137, + "expected_calibration_error_10bin": 0.00015609799241455137, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 28, + "negatives": 2215, + "auroc": 0.8149629151886488, + "auprc": 0.053845577881978336, + "brier": 0.012130531178120197, + "calibration": { + "observed_rate": 0.012483281319661168, + "mean_prediction": 0.007761628713816612, + "calibration_in_the_large": -0.004721652605844556, + "expected_calibration_error_10bin": 0.004840077827251592, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7752513231217272, + "auprc": 0.12051320437273744, + "brier": 0.004581845722783788, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.0038675664199837373, + "calibration_in_the_large": -0.0008425785075524949, + "expected_calibration_error_10bin": 0.0008425785075524949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.8152528150186367, + "auprc": 0.024904909628853618, + "brier": 0.007053032109080297, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.006954741677149098, + "calibration_in_the_large": -4.084006070068178e-05, + "expected_calibration_error_10bin": 0.0016233861078537896, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7896711366538953, + "auprc": 0.06788962213069849, + "brier": 0.0031749297351170505, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.00237633129061427, + "calibration_in_the_large": -0.0008460102775919602, + "expected_calibration_error_10bin": 0.0008460102775919602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 13, + "negatives": 2740, + "auroc": 0.7384053902302078, + "auprc": 0.013074245236174368, + "brier": 0.004731129676554478, + "calibration": { + "observed_rate": 0.00472212132219397, + "mean_prediction": 0.0031010575342618574, + "calibration_in_the_large": -0.001621063787932113, + "expected_calibration_error_10bin": 0.001621063787932113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7125827814569536, + "auprc": 0.0114142845424525, + "brier": 0.0018554386597636927, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.0030348547716651316, + "calibration_in_the_large": 0.0011986447092339895, + "expected_calibration_error_10bin": 0.0011986447092339895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 8, + "negatives": 2732, + "auroc": 0.9412518301610542, + "auprc": 0.06420020004841653, + "brier": 0.0028445863345117938, + "calibration": { + "observed_rate": 0.00291970802919708, + "mean_prediction": 0.0028730250473299533, + "calibration_in_the_large": -4.668298186712681e-05, + "expected_calibration_error_10bin": 0.0001232248139783047, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 13, + "negatives": 2709, + "auroc": 0.8692960785984042, + "auprc": 0.033672254660638896, + "brier": 0.004717414483113677, + "calibration": { + "observed_rate": 0.004775900073475386, + "mean_prediction": 0.005118597635851391, + "calibration_in_the_large": 0.00034269756237600545, + "expected_calibration_error_10bin": 0.00034269756237600556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 7, + "negatives": 2759, + "auroc": 0.6890695386527209, + "auprc": 0.018584935822467508, + "brier": 0.0025226172988184973, + "calibration": { + "observed_rate": 0.0025307302964569776, + "mean_prediction": 0.0037179801548226973, + "calibration_in_the_large": 0.0011872498583657197, + "expected_calibration_error_10bin": 0.0011872498583657197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5897526501766784, + "auprc": 0.0008605851979345956, + "brier": 0.0003589428964509011, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0011239005470125728, + "calibration_in_the_large": 0.0007706684735403015, + "expected_calibration_error_10bin": 0.0007706684735403015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 8, + "negatives": 2708, + "auroc": 0.7175498522895125, + "auprc": 0.006459617053200444, + "brier": 0.0029543449883623054, + "calibration": { + "observed_rate": 0.0029455081001472753, + "mean_prediction": 0.00397683032074028, + "calibration_in_the_large": 0.0010313222205930042, + "expected_calibration_error_10bin": 0.0010313222205930042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 17, + "negatives": 2368, + "auroc": 0.7791633545310016, + "auprc": 0.02242907826036912, + "brier": 0.007050585293898977, + "calibration": { + "observed_rate": 0.007127882599580713, + "mean_prediction": 0.006243824993938654, + "calibration_in_the_large": -0.0008840576056420588, + "expected_calibration_error_10bin": 0.000971602608673344, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.7694566813509545, + "auprc": 0.014695741591037656, + "brier": 0.003634411576088693, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0021412914788669114, + "calibration_in_the_large": -0.0015163529980899283, + "expected_calibration_error_10bin": 0.0015163529980899283, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 31, + "negatives": 2384, + "auroc": 0.822228837410695, + "auprc": 0.056185135929449896, + "brier": 0.012642822737443413, + "calibration": { + "observed_rate": 0.012836438923395446, + "mean_prediction": 0.010494987482993668, + "calibration_in_the_large": -0.002341451440401777, + "expected_calibration_error_10bin": 0.004578444566895826, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7550321199143469, + "auprc": 0.005329383383823651, + "brier": 0.00177838110606773, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0013885630130388818, + "calibration_in_the_large": -0.00039269811984319865, + "expected_calibration_error_10bin": 0.00039269811984319865, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.831748301751877, + "auprc": 0.011085609101296384, + "brier": 0.0017806776008780028, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.0004460339860727862, + "calibration_in_the_large": -0.001338405699865829, + "expected_calibration_error_10bin": 0.001338405699865829, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 9, + "negatives": 2726, + "auroc": 0.7549930708404663, + "auprc": 0.014589487423367138, + "brier": 0.0032765368002147994, + "calibration": { + "observed_rate": 0.0032906764168190127, + "mean_prediction": 0.0025694989120690448, + "calibration_in_the_large": -0.0007211775047499679, + "expected_calibration_error_10bin": 0.0007211775047499679, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.6880789125466137, + "auprc": 0.03460990178743938, + "brier": 0.0010775246007607361, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0014592379368057711, + "calibration_in_the_large": 0.000377767136517379, + "expected_calibration_error_10bin": 0.000377767136517379, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8148682785997835, + "auprc": 0.0029758488233476094, + "brier": 0.0007310258681389421, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0017739946757101975, + "calibration_in_the_large": 0.0010527541419922026, + "expected_calibration_error_10bin": 0.0010527541419922026, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7881665449233016, + "auprc": 0.016523943828819998, + "brier": 0.005110219734366033, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004568377944795345, + "calibration_in_the_large": -0.0005188313575302372, + "expected_calibration_error_10bin": 0.0007868273283737259, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.853000723065799, + "auprc": 0.015143275291562605, + "brier": 0.0017972389677751936, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0019150104942154077, + "calibration_in_the_large": 0.0001106077515232388, + "expected_calibration_error_10bin": 0.0001106077515232388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.700530248252591, + "auprc": 0.006275317402060734, + "brier": 0.0010845056614755904, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0015357484506469705, + "calibration_in_the_large": 0.00045232483201208427, + "expected_calibration_error_10bin": 0.00045232483201208427, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6745111980092428, + "auprc": 0.013882329626146103, + "brier": 0.001768276723215166, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0009327264133387269, + "calibration_in_the_large": -0.0008415816065335228, + "expected_calibration_error_10bin": 0.0008415816065335228, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7980205278592375, + "auprc": 0.1801857851926252, + "brier": 0.0021535178161147155, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0017365262826999992, + "calibration_in_the_large": -0.00045806040347410454, + "expected_calibration_error_10bin": 0.00045806040347410454, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7069577564785232, + "auprc": 0.012962021472603214, + "brier": 0.0014147769392364306, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0004666653553168776, + "calibration_in_the_large": -0.000951271546490992, + "expected_calibration_error_10bin": 0.000951271546490992, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.4411694224778337, + "auprc": 0.001503288430784841, + "brier": 0.0010812873192248547, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.00123683211207092, + "calibration_in_the_large": 0.0001596328302037747, + "expected_calibration_error_10bin": 0.0001596328302037747, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7941020191285866, + "auprc": 0.2570592046455668, + "brier": 0.0013645215215079434, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0010763025593519885, + "calibration_in_the_large": -0.000338624925614407, + "expected_calibration_error_10bin": 0.00033862492561440694, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8740163062743708, + "auprc": 0.013540757680560043, + "brier": 0.0018106545882373138, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0014826973432166236, + "calibration_in_the_large": -0.00028658786555903096, + "expected_calibration_error_10bin": 0.000554354033806478, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 20, + "negatives": 2719, + "auroc": 0.7251195292386907, + "auprc": 0.040791781253022255, + "brier": 0.007217330325986623, + "calibration": { + "observed_rate": 0.007301935012778387, + "mean_prediction": 0.005789526733175215, + "calibration_in_the_large": -0.001512408279603172, + "expected_calibration_error_10bin": 0.001512408279603171, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9912154894227322, + "auprc": 0.1775991623552599, + "brier": 0.0013801516915683445, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.0013686812269733224, + "calibration_in_the_large": -6.347058111833546e-05, + "expected_calibration_error_10bin": 0.0011342893012109994, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6720837847598411, + "auprc": 0.009639488368804985, + "brier": 0.003950864055979487, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.0030415649907455655, + "calibration_in_the_large": -0.0009152695416285352, + "expected_calibration_error_10bin": 0.0009152695416285352, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 4, + "negatives": 2822, + "auroc": 0.8304394046775336, + "auprc": 0.008715575603891154, + "brier": 0.0014123560374721684, + "calibration": { + "observed_rate": 0.0014154281670205238, + "mean_prediction": 0.0004946393491424907, + "calibration_in_the_large": -0.0009207888178780331, + "expected_calibration_error_10bin": 0.0009207888178780331, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 52, + "negatives": 2433, + "auroc": 0.7356302760125202, + "auprc": 0.05507652372473681, + "brier": 0.020259142913343763, + "calibration": { + "observed_rate": 0.020925553319919517, + "mean_prediction": 0.01621342709692527, + "calibration_in_the_large": -0.004712126222994249, + "expected_calibration_error_10bin": 0.004855025522525644, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8506367173682349, + "auprc": 0.0452102808995084, + "brier": 0.0013970571911628028, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0007837216069336179, + "calibration_in_the_large": -0.0006292066869554672, + "expected_calibration_error_10bin": 0.0006292066869554672, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.832470858815535, + "auprc": 0.017701678098710545, + "brier": 0.0025363872648185384, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.0019000724789359985, + "calibration_in_the_large": -0.0006546720466114467, + "expected_calibration_error_10bin": 0.0006546720466114467, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6666666666666666, + "auprc": 0.0015838897221483715, + "brier": 0.0007113271506484924, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0010486005173441831, + "calibration_in_the_large": 0.0003406359155742716, + "expected_calibration_error_10bin": 0.0003406359155742716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.6582443653618031, + "auprc": 0.00914302718699672, + "brier": 0.0021543717779025705, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0022235370424836406, + "calibration_in_the_large": 9.285522430182254e-05, + "expected_calibration_error_10bin": 0.00014848740077091186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 2.6467649214452928e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014421503708635965, + "calibration_in_the_large": 0.0014421503708635965, + "expected_calibration_error_10bin": 0.0014421503708635965, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.77749860413177, + "auprc": 0.012907943943550552, + "brier": 0.00322944009420536, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.0033577627616951694, + "calibration_in_the_large": 0.00013772698351985618, + "expected_calibration_error_10bin": 0.00013772698351985612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 27, + "negatives": 2644, + "auroc": 0.7681963355185746, + "auprc": 0.0398862063195684, + "brier": 0.009964604802460225, + "calibration": { + "observed_rate": 0.010108573567952079, + "mean_prediction": 0.010682099743929975, + "calibration_in_the_large": 0.0005735261759778967, + "expected_calibration_error_10bin": 0.0005996862788329362, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 3, + "negatives": 2812, + "auroc": 0.5889046941678521, + "auprc": 0.026617322697640892, + "brier": 0.0010772996037182307, + "calibration": { + "observed_rate": 0.0010657193605683837, + "mean_prediction": 0.002364995510917658, + "calibration_in_the_large": 0.0012992761503492743, + "expected_calibration_error_10bin": 0.001299276150349274, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5051291121330032, + "auprc": 0.0027447400832258393, + "brier": 0.0007147760596972662, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007669977953278237, + "calibration_in_the_large": 6.003420395277951e-05, + "expected_calibration_error_10bin": 6.003420395277951e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7247608926673751, + "auprc": 0.0052365395489099706, + "brier": 0.0007091448887162934, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0010411186542648215, + "calibration_in_the_large": 0.00033315405249491, + "expected_calibration_error_10bin": 0.00033315405249491, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.673383351196856, + "auprc": 0.007240482258884291, + "brier": 0.0017797778884393034, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.001284271030497818, + "calibration_in_the_large": -0.0004988958739244359, + "expected_calibration_error_10bin": 0.0004988958739244359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 16, + "negatives": 2554, + "auroc": 0.8562793657008614, + "auprc": 0.034862119467433124, + "brier": 0.006113290202821739, + "calibration": { + "observed_rate": 0.0062256809338521405, + "mean_prediction": 0.0046732939958185745, + "calibration_in_the_large": -0.001552386938033566, + "expected_calibration_error_10bin": 0.001552386938033566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 19, + "negatives": 2499, + "auroc": 0.6726058844590468, + "auprc": 0.021504415110976255, + "brier": 0.007469798922533051, + "calibration": { + "observed_rate": 0.007545671167593328, + "mean_prediction": 0.005174023570395127, + "calibration_in_the_large": -0.0023716475971982016, + "expected_calibration_error_10bin": 0.0023716475971982016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.8751476494212143, + "auprc": 0.008956808504782655, + "brier": 0.0010593380880635271, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0005127524634499419, + "calibration_in_the_large": -0.0005491944392049254, + "expected_calibration_error_10bin": 0.0005491944392049254, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 21, + "negatives": 2756, + "auroc": 0.7990013131522565, + "auprc": 0.022641022774004208, + "brier": 0.007480634119047351, + "calibration": { + "observed_rate": 0.007562117392870004, + "mean_prediction": 0.004802544127333982, + "calibration_in_the_large": -0.0027595732655360224, + "expected_calibration_error_10bin": 0.0027595732655360224, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 12, + "negatives": 2769, + "auroc": 0.7305585650656073, + "auprc": 0.01979534641977238, + "brier": 0.004288290105947193, + "calibration": { + "observed_rate": 0.004314994606256742, + "mean_prediction": 0.0020467685406133536, + "calibration_in_the_large": -0.0022682260656433882, + "expected_calibration_error_10bin": 0.0022682260656433882, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.9194879089615932, + "auprc": 0.015212482040242161, + "brier": 0.001766449658218998, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0008725511928222996, + "calibration_in_the_large": -0.0009023866843519994, + "expected_calibration_error_10bin": 0.0009023866843519994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 22, + "negatives": 2732, + "auroc": 0.6374617329961401, + "auprc": 0.012911543441797745, + "brier": 0.007980915462825694, + "calibration": { + "observed_rate": 0.007988380537400145, + "mean_prediction": 0.0056534289280353745, + "calibration_in_the_large": -0.0023349516093647705, + "expected_calibration_error_10bin": 0.002485361852733647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.8190306122448979, + "auprc": 0.0671425684422433, + "brier": 0.002437410595559907, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0026472783761908067, + "calibration_in_the_large": 0.00015351279015589402, + "expected_calibration_error_10bin": 0.00015351279015589416, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.5895184135977337, + "auprc": 0.0034371982035887915, + "brier": 0.001797757840199974, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0009532042711039588, + "calibration_in_the_large": -0.0008142047073336517, + "expected_calibration_error_10bin": 0.0010071126750578502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 11, + "negatives": 2759, + "auroc": 0.7751490988170945, + "auprc": 0.03870420012908963, + "brier": 0.0039173338906387965, + "calibration": { + "observed_rate": 0.003971119133574007, + "mean_prediction": 0.0027888192601205728, + "calibration_in_the_large": -0.0011822998734534345, + "expected_calibration_error_10bin": 0.0011822998734534345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 42, + "negatives": 2563, + "auroc": 0.8526373483455029, + "auprc": 0.1078579841941748, + "brier": 0.015247161711902532, + "calibration": { + "observed_rate": 0.016122840690978888, + "mean_prediction": 0.012959421496656949, + "calibration_in_the_large": -0.0031634191943219394, + "expected_calibration_error_10bin": 0.003681948977834426, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6933570359281437, + "auprc": 0.03164081898799459, + "brier": 0.007326625064629754, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.005184601893352699, + "calibration_in_the_large": -0.0022448186118478953, + "expected_calibration_error_10bin": 0.0022448186118478953, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9231040564373898, + "auprc": 0.0045662100456621, + "brier": 0.0003524257661192522, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0002740299056446002, + "calibration_in_the_large": -7.85794032411544e-05, + "expected_calibration_error_10bin": 7.85794032411544e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.9076376554174067, + "auprc": 0.0857150502218774, + "brier": 0.003967831418028653, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.005609092565944973, + "calibration_in_the_large": 0.0024221237274180607, + "expected_calibration_error_10bin": 0.003982947883900244, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.6524563901744393, + "auprc": 0.008658179584809961, + "brier": 0.0014664675221782992, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0037466129804070913, + "calibration_in_the_large": 0.002324643552749786, + "expected_calibration_error_10bin": 0.0023246435527497855, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 52, + "negatives": 1991, + "auroc": 0.755061237105436, + "auprc": 0.11344899821150856, + "brier": 0.024081509685967947, + "calibration": { + "observed_rate": 0.025452765540871267, + "mean_prediction": 0.02172638485148892, + "calibration_in_the_large": -0.0037263806893823477, + "expected_calibration_error_10bin": 0.0037263806893823494, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 9, + "negatives": 2755, + "auroc": 0.7411978221415608, + "auprc": 0.01840625220873808, + "brier": 0.0032396464942909173, + "calibration": { + "observed_rate": 0.003256150506512301, + "mean_prediction": 0.0033574002513180076, + "calibration_in_the_large": 0.00010124974480570656, + "expected_calibration_error_10bin": 0.00010124974480570656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.827027027027027, + "auprc": 0.006693080546432327, + "brier": 0.001821637496141875, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.0023714624828196466, + "calibration_in_the_large": 0.0005965246056453476, + "expected_calibration_error_10bin": 0.0005965246056453475, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9265978892446342, + "auprc": 0.02778908627354223, + "brier": 0.001058574900371052, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0013736133393023283, + "calibration_in_the_large": 0.00030751525827887416, + "expected_calibration_error_10bin": 0.00030751525827887416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.8254225098885293, + "auprc": 0.016759146364409522, + "brier": 0.0014554798040892474, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.004207008282966031, + "calibration_in_the_large": 0.002770742573809837, + "expected_calibration_error_10bin": 0.002770742573809837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8580246913580247, + "auprc": 0.0036246724791459423, + "brier": 0.0007085283342967453, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0009810657907735937, + "calibration_in_the_large": 0.00027609575200024156, + "expected_calibration_error_10bin": 0.00027609575200024156, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.9578329694323144, + "auprc": 0.0883866729718967, + "brier": 0.0027980145344753647, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.003946846997684821, + "calibration_in_the_large": 0.0010440893779460696, + "expected_calibration_error_10bin": 0.0012671314726016537, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 1, + "negatives": 2826, + "auroc": 0.8874734607218684, + "auprc": 0.003134796238244514, + "brier": 0.0003537968070723186, + "calibration": { + "observed_rate": 0.00035373187124159886, + "mean_prediction": 0.0006464028746030715, + "calibration_in_the_large": 0.00029267100336147266, + "expected_calibration_error_10bin": 0.00029267100336147266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.7396757780144362, + "auprc": 0.0026709625878728813, + "brier": 0.0010682206876813222, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0007125838326931875, + "calibration_in_the_large": -0.000351245954540855, + "expected_calibration_error_10bin": 0.000351245954540855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7661979352082592, + "auprc": 0.01462494282262436, + "brier": 0.0014149553502073042, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.000813980852757006, + "calibration_in_the_large": -0.0006079885749002993, + "expected_calibration_error_10bin": 0.0006079885749002993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.6040992448759439, + "auprc": 0.004870921531128145, + "brier": 0.0014376579857662665, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.001802073586741391, + "calibration_in_the_large": 0.0003658078775851971, + "expected_calibration_error_10bin": 0.0003658078775851971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 23, + "negatives": 2726, + "auroc": 0.8193562793071549, + "auprc": 0.0680444396507656, + "brier": 0.008122004736924477, + "calibration": { + "observed_rate": 0.008366678792288106, + "mean_prediction": 0.006753381399232822, + "calibration_in_the_large": -0.0016132973930552833, + "expected_calibration_error_10bin": 0.0025164908901146267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.7682641432641433, + "auprc": 0.006100083685765569, + "brier": 0.002503632864345586, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0018457240717025117, + "calibration_in_the_large": -0.0006409544362903834, + "expected_calibration_error_10bin": 0.0006409544362903834, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 19, + "negatives": 2726, + "auroc": 0.7547978530331698, + "auprc": 0.030705071167363786, + "brier": 0.006816111233435783, + "calibration": { + "observed_rate": 0.0069216757741347905, + "mean_prediction": 0.006963570819846299, + "calibration_in_the_large": 4.189504571150849e-05, + "expected_calibration_error_10bin": 4.189504571150864e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 12, + "negatives": 2729, + "auroc": 0.6021741785757909, + "auprc": 0.006584014210665345, + "brier": 0.004402893284846685, + "calibration": { + "observed_rate": 0.004377964246625319, + "mean_prediction": 0.003148784657586487, + "calibration_in_the_large": -0.001229179589038832, + "expected_calibration_error_10bin": 0.001229179589038832, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 5, + "negatives": 2787, + "auroc": 0.7153928955866523, + "auprc": 0.013286115081881222, + "brier": 0.0017840319186885189, + "calibration": { + "observed_rate": 0.0017908309455587394, + "mean_prediction": 0.0012498508066382365, + "calibration_in_the_large": -0.0005409801389205029, + "expected_calibration_error_10bin": 0.0005409801389205029, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 67, + "negatives": 2493, + "auroc": 0.721452903951961, + "auprc": 0.09729683591382905, + "brier": 0.024803595129208447, + "calibration": { + "observed_rate": 0.026171875, + "mean_prediction": 0.015960980237542798, + "calibration_in_the_large": -0.010210894762457203, + "expected_calibration_error_10bin": 0.011348033275606894, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 8, + "negatives": 2805, + "auroc": 0.7668003565062389, + "auprc": 0.006750258588438659, + "brier": 0.0028380334579472134, + "calibration": { + "observed_rate": 0.0028439388553146107, + "mean_prediction": 0.0018321858382044347, + "calibration_in_the_large": -0.001011753017110176, + "expected_calibration_error_10bin": 0.001011753017110176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.6931327521245291, + "auprc": 0.00931590723471076, + "brier": 0.004611817924026046, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.002279386968323988, + "calibration_in_the_large": -0.0023469475512489656, + "expected_calibration_error_10bin": 0.0023469475512489656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.8081459758879114, + "auprc": 0.013574465682666287, + "brier": 0.003991806133263319, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0036491518829348648, + "calibration_in_the_large": -0.00027801698532647044, + "expected_calibration_error_10bin": 0.0008514377142094611, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8584957996512919, + "auprc": 0.025703326487483417, + "brier": 0.0033586026993109113, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0057067357174053045, + "calibration_in_the_large": 0.0025073045051763674, + "expected_calibration_error_10bin": 0.002507304505176368, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7117084826762247, + "auprc": 0.013231361393311858, + "brier": 0.00214390222446791, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0022765884310321, + "calibration_in_the_large": 0.0001306656842509843, + "expected_calibration_error_10bin": 0.0001306656842509843, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9527587450414713, + "auprc": 0.007575757575757576, + "brier": 0.0003733994709913684, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0007373659548857439, + "calibration_in_the_large": 0.00037687568812294647, + "expected_calibration_error_10bin": 0.0003768756881229465, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 13, + "negatives": 2774, + "auroc": 0.9575176085630304, + "auprc": 0.16970813432250656, + "brier": 0.0045246354294509955, + "calibration": { + "observed_rate": 0.0046645138141370645, + "mean_prediction": 0.003302416921396935, + "calibration_in_the_large": -0.0013620968927401294, + "expected_calibration_error_10bin": 0.0035479612634400203, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9755168661588683, + "auprc": 0.05076907423500084, + "brier": 0.0022460292145522133, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0025349999138950833, + "calibration_in_the_large": 0.00036344725374307454, + "expected_calibration_error_10bin": 0.0013530646075934887, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 9, + "negatives": 2789, + "auroc": 0.8150272897494124, + "auprc": 0.026182237971240124, + "brier": 0.0031926122499398484, + "calibration": { + "observed_rate": 0.0032165832737669764, + "mean_prediction": 0.0018863324345931728, + "calibration_in_the_large": -0.0013302508391738036, + "expected_calibration_error_10bin": 0.0014046838861493927, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 18, + "negatives": 2663, + "auroc": 0.8369633245712855, + "auprc": 0.21887136076107583, + "brier": 0.00604042872055475, + "calibration": { + "observed_rate": 0.006713912719134651, + "mean_prediction": 0.004032106426839184, + "calibration_in_the_large": -0.0026818062922954666, + "expected_calibration_error_10bin": 0.003379761575805845, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 6, + "negatives": 2725, + "auroc": 0.7307033639143731, + "auprc": 0.0048023907813312386, + "brier": 0.0022016070539037395, + "calibration": { + "observed_rate": 0.0021969974368363236, + "mean_prediction": 0.0022369938980053438, + "calibration_in_the_large": 3.9996461169020114e-05, + "expected_calibration_error_10bin": 3.9996461169020114e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8401418439716312, + "auprc": 0.017748195933922368, + "brier": 0.001765575460607557, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0011493907727875986, + "calibration_in_the_large": -0.0006205207316371801, + "expected_calibration_error_10bin": 0.0006205207316371801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.6592224979321754, + "auprc": 0.00599617733358022, + "brier": 0.0010625687173536744, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0008067369502994232, + "calibration_in_the_large": -0.0002555859958762143, + "expected_calibration_error_10bin": 0.0002555859958762143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 7, + "negatives": 2750, + "auroc": 0.8498181818181818, + "auprc": 0.15421238214476793, + "brier": 0.002448494035390169, + "calibration": { + "observed_rate": 0.0025389916575988395, + "mean_prediction": 0.0027846009586965435, + "calibration_in_the_large": 0.000245609301097704, + "expected_calibration_error_10bin": 0.0007153090226806495, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.7674111431316042, + "auprc": 0.08620880976504076, + "brier": 0.0010707813737141846, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0011746591820114463, + "calibration_in_the_large": 9.51341730154045e-05, + "expected_calibration_error_10bin": 9.51341730154045e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.696978417266187, + "auprc": 0.014308939415537772, + "brier": 0.0017947710861846435, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0018431250197093144, + "calibration_in_the_large": 4.779288326407197e-05, + "expected_calibration_error_10bin": 4.779288326407197e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.620494699646643, + "auprc": 0.0009302325581395349, + "brier": 0.0003543785901272776, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0004824130004293839, + "calibration_in_the_large": 0.00012918092695711264, + "expected_calibration_error_10bin": 0.00012918092695711264, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 15, + "negatives": 2753, + "auroc": 0.8504419421237438, + "auprc": 0.03122808430408491, + "brier": 0.005409713660220986, + "calibration": { + "observed_rate": 0.00541907514450867, + "mean_prediction": 0.005075510912962862, + "calibration_in_the_large": -0.00034356423154580876, + "expected_calibration_error_10bin": 0.0013754080961793226, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.8369422824998074, + "auprc": 0.0461904133928098, + "brier": 0.0067413993864674105, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.006169429633364703, + "calibration_in_the_large": -0.0007371497922986922, + "expected_calibration_error_10bin": 0.0008400340824745786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 12, + "negatives": 2811, + "auroc": 0.9045713269299182, + "auprc": 0.07203827370565145, + "brier": 0.0041050909212544725, + "calibration": { + "observed_rate": 0.004250797024442083, + "mean_prediction": 0.0028839608744520248, + "calibration_in_the_large": -0.0013668361499900579, + "expected_calibration_error_10bin": 0.0013668361499900579, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.7481467030823254, + "auprc": 0.014474517064697111, + "brier": 0.0038938027855227974, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.003390028045274234, + "calibration_in_the_large": -0.0005287464470663432, + "expected_calibration_error_10bin": 0.0005287464470663432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 25, + "negatives": 2676, + "auroc": 0.6738863976083707, + "auprc": 0.042520777907595245, + "brier": 0.009129675437483605, + "calibration": { + "observed_rate": 0.009255831173639394, + "mean_prediction": 0.006645858842846163, + "calibration_in_the_large": -0.002609972330793231, + "expected_calibration_error_10bin": 0.002916108925235084, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631221238938053, + "auprc": 0.004070605829754636, + "brier": 0.001767728385552425, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.000788416540153617, + "calibration_in_the_large": -0.0009783679121432027, + "expected_calibration_error_10bin": 0.0009783679121432027, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6751029120292728, + "auprc": 0.007966787594587299, + "brier": 0.002755302363331955, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.004145358679136853, + "calibration_in_the_large": 0.001661327451315703, + "expected_calibration_error_10bin": 0.0016613274513157025, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6684434968017058, + "auprc": 0.01029371927325758, + "brier": 0.001085396346986695, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.002620544271657434, + "calibration_in_the_large": 0.0015555815453528543, + "expected_calibration_error_10bin": 0.0015555815453528543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.743649946638207, + "auprc": 0.03260000511681411, + "brier": 0.0017642133752044757, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.001367477024048905, + "calibration_in_the_large": -0.0004080911577692768, + "expected_calibration_error_10bin": 0.0004080911577692768, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8146840804800565, + "auprc": 0.018217941810344827, + "brier": 0.0007029213904090493, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.000707247098129673, + "calibration_in_the_large": 1.7797259956341994e-06, + "expected_calibration_error_10bin": 1.7797259956341994e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.978957742800225e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009221277524593715, + "calibration_in_the_large": 0.0009221277524593715, + "expected_calibration_error_10bin": 0.0009221277524593715, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6348544735896514, + "auprc": 0.005854171687834285, + "brier": 0.003583555172264548, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.003631041120607892, + "calibration_in_the_large": 5.066160037874761e-05, + "expected_calibration_error_10bin": 5.066160037874761e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 14, + "negatives": 2784, + "auroc": 0.8539100985221675, + "auprc": 0.026923150263661544, + "brier": 0.004951679942622859, + "calibration": { + "observed_rate": 0.005003573981415297, + "mean_prediction": 0.0029437454561520695, + "calibration_in_the_large": -0.0020598285252632275, + "expected_calibration_error_10bin": 0.0022177251702522514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.930603448275862, + "auprc": 0.1294525604686179, + "brier": 0.0017068977553950457, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0028706747634770955, + "calibration_in_the_large": 0.0010779175028101898, + "expected_calibration_error_10bin": 0.0018056137114922037, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.684745362164717, + "auprc": 0.0031592006769483455, + "brier": 0.0010875337312545557, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0026626110190788236, + "calibration_in_the_large": 0.0016002880729031861, + "expected_calibration_error_10bin": 0.0016002880729031861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.77118017018128, + "auprc": 0.06538631186970965, + "brier": 0.0036338825191259325, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003106099040796017, + "calibration_in_the_large": -0.0005798574649172159, + "expected_calibration_error_10bin": 0.0005798574649172159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7313486370157819, + "auprc": 0.0020910639991004315, + "brier": 0.0007175618428353564, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0007764593144197192, + "calibration_in_the_large": 5.9613436283518454e-05, + "expected_calibration_error_10bin": 5.9613436283518454e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 6, + "negatives": 2727, + "auroc": 0.6952695269526953, + "auprc": 0.005203230860752085, + "brier": 0.002207050946567708, + "calibration": { + "observed_rate": 0.0021953896816684962, + "mean_prediction": 0.00167208750453748, + "calibration_in_the_large": -0.0005233021771310162, + "expected_calibration_error_10bin": 0.0005233021771310162, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 24, + "negatives": 2650, + "auroc": 0.6521383647798742, + "auprc": 0.0207232075555449, + "brier": 0.008888474953786984, + "calibration": { + "observed_rate": 0.008975317875841436, + "mean_prediction": 0.00555348301024727, + "calibration_in_the_large": -0.003421834865594166, + "expected_calibration_error_10bin": 0.003502269890412368, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003491483134550734, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0008599270328361682, + "calibration_in_the_large": 0.0005054428073842008, + "expected_calibration_error_10bin": 0.0005054428073842008, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 20, + "negatives": 2697, + "auroc": 0.6925472747497219, + "auprc": 0.02836286793202908, + "brier": 0.0072855588274300795, + "calibration": { + "observed_rate": 0.00736105999263894, + "mean_prediction": 0.005783822241901589, + "calibration_in_the_large": -0.0015772377507373512, + "expected_calibration_error_10bin": 0.001655101232012904, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9650623885918004, + "auprc": 0.010101010101010102, + "brier": 0.00035619792161454167, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0006254758661994264, + "calibration_in_the_large": 0.0002690966787439738, + "expected_calibration_error_10bin": 0.0002690966787439738, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.6412901695719199, + "auprc": 0.001895453713620478, + "brier": 0.0010687531295272433, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001253425623715402, + "calibration_in_the_large": 0.00018732754269194796, + "expected_calibration_error_10bin": 0.00018732754269194796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 3, + "negatives": 2740, + "auroc": 0.6907542579075425, + "auprc": 0.012684448168319137, + "brier": 0.001089928908609934, + "calibration": { + "observed_rate": 0.001093693036820999, + "mean_prediction": 0.0014465790106718529, + "calibration_in_the_large": 0.00035288597385085396, + "expected_calibration_error_10bin": 0.00035288597385085396, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 5, + "negatives": 2685, + "auroc": 0.6108007448789572, + "auprc": 0.01822578332584724, + "brier": 0.0018598390149887384, + "calibration": { + "observed_rate": 0.0018587360594795538, + "mean_prediction": 0.003426816904901455, + "calibration_in_the_large": 0.0015680808454219012, + "expected_calibration_error_10bin": 0.0015680808454219012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7410201149425287, + "auprc": 0.0013850415512465374, + "brier": 0.00036099176384720507, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0012940964620991792, + "calibration_in_the_large": 0.0009350300348101308, + "expected_calibration_error_10bin": 0.0009350300348101308, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 27, + "negatives": 2540, + "auroc": 0.6879848352289297, + "auprc": 0.036466093662927405, + "brier": 0.01038430355528494, + "calibration": { + "observed_rate": 0.010518114530580444, + "mean_prediction": 0.010614916189507674, + "calibration_in_the_large": 9.680165892722928e-05, + "expected_calibration_error_10bin": 0.0003628399830154082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 5, + "negatives": 2776, + "auroc": 0.7602305475504323, + "auprc": 0.04512038973096468, + "brier": 0.0017865333792105422, + "calibration": { + "observed_rate": 0.0017979144192736426, + "mean_prediction": 0.002000077912745614, + "calibration_in_the_large": 0.00020216349347197161, + "expected_calibration_error_10bin": 0.00020216349347197161, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 19, + "negatives": 2678, + "auroc": 0.7397507959592783, + "auprc": 0.044887872819656394, + "brier": 0.006938326369313404, + "calibration": { + "observed_rate": 0.0070448646644419724, + "mean_prediction": 0.008997347445371506, + "calibration_in_the_large": 0.0019524827809295339, + "expected_calibration_error_10bin": 0.002367798354172421, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7244160177975528, + "auprc": 0.011075015533647046, + "brier": 0.002961555910702918, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.0023124042541834704, + "calibration_in_the_large": -0.0006450818826002633, + "expected_calibration_error_10bin": 0.0006450818826002633, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.7374777975133215, + "auprc": 0.03194964627548897, + "brier": 0.001055693932366398, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001404505751881525, + "calibration_in_the_large": 0.00033992093995817516, + "expected_calibration_error_10bin": 0.00033992093995817516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5867956744450769, + "auprc": 0.0037011760600828905, + "brier": 0.0025284075674038213, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0014678756909196468, + "calibration_in_the_large": -0.0010610260431843995, + "expected_calibration_error_10bin": 0.0010610260431843995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 9, + "negatives": 2794, + "auroc": 0.7396404994830191, + "auprc": 0.013556553132016444, + "brier": 0.003214334646455536, + "calibration": { + "observed_rate": 0.003210845522654299, + "mean_prediction": 0.0015952278978849574, + "calibration_in_the_large": -0.0016156176247693417, + "expected_calibration_error_10bin": 0.0016890520781830773, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 1, + "negatives": 2818, + "auroc": 0.8364088005677786, + "auprc": 0.0021645021645021645, + "brier": 0.0003547337862588562, + "calibration": { + "observed_rate": 0.000354735721887194, + "mean_prediction": 0.0002695856463892456, + "calibration_in_the_large": -8.515007549794842e-05, + "expected_calibration_error_10bin": 8.515007549794842e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 1, + "negatives": 2803, + "auroc": 0.8990367463432037, + "auprc": 0.0035211267605633804, + "brier": 0.00036097112941071427, + "calibration": { + "observed_rate": 0.0003566333808844508, + "mean_prediction": 0.001580120316178476, + "calibration_in_the_large": 0.0012234869352940251, + "expected_calibration_error_10bin": 0.0012234869352940251, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.5996639547223205, + "auprc": 0.0023263309405528007, + "brier": 0.0014260509788218752, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0012508092920555278, + "calibration_in_the_large": -0.00016211900183355724, + "expected_calibration_error_10bin": 0.00016211900183355724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 5, + "negatives": 2751, + "auroc": 0.6952380952380952, + "auprc": 0.00529602705961836, + "brier": 0.0018227312110407003, + "calibration": { + "observed_rate": 0.00181422351233672, + "mean_prediction": 0.0025488679733118315, + "calibration_in_the_large": 0.0007346444609751116, + "expected_calibration_error_10bin": 0.0007346444609751116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.8603427895981087, + "auprc": 0.018314197676662643, + "brier": 0.0021122604687407896, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.0007680889292410901, + "calibration_in_the_large": -0.0013550533212896955, + "expected_calibration_error_10bin": 0.0013550533212896955, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 61, + "negatives": 2231, + "auroc": 0.7923521761174508, + "auprc": 0.10174232169383625, + "brier": 0.02507879777384841, + "calibration": { + "observed_rate": 0.026614310645724257, + "mean_prediction": 0.020961316379882897, + "calibration_in_the_large": -0.005652994265841361, + "expected_calibration_error_10bin": 0.007907066263979856, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 30, + "negatives": 2410, + "auroc": 0.8599031811894883, + "auprc": 0.18232697652214494, + "brier": 0.011412851688726782, + "calibration": { + "observed_rate": 0.012295081967213115, + "mean_prediction": 0.005843041921757429, + "calibration_in_the_large": -0.006452040045455685, + "expected_calibration_error_10bin": 0.006452040045455685, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8133041458184418, + "auprc": 0.012982055470318658, + "brier": 0.002842506219916819, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0008934908888199915, + "calibration_in_the_large": -0.0019575426108236296, + "expected_calibration_error_10bin": 0.0019575426108236296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9127388535031847, + "auprc": 0.04612960856716991, + "brier": 0.0017503852216303733, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.00074345029924168, + "calibration_in_the_large": -0.0010227100681196762, + "expected_calibration_error_10bin": 0.0010227100681196762, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 3, + "negatives": 2786, + "auroc": 0.940655659248624, + "auprc": 0.04038933791097442, + "brier": 0.0010657033339410238, + "calibration": { + "observed_rate": 0.0010756543564001434, + "mean_prediction": 0.002540322753006741, + "calibration_in_the_large": 0.0014646683966065975, + "expected_calibration_error_10bin": 0.0014646683966065975, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.7097660404112017, + "auprc": 0.01066680272625668, + "brier": 0.0028272413690796096, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.002338095865369686, + "calibration_in_the_large": -0.0004897585001304907, + "expected_calibration_error_10bin": 0.0004897585001304907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8247407937075438, + "auprc": 0.045630580161821525, + "brier": 0.0035313322856680113, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0021094914872808145, + "calibration_in_the_large": -0.0014530307784833465, + "expected_calibration_error_10bin": 0.0014530307784833465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 54, + "negatives": 2466, + "auroc": 0.7610840767775074, + "auprc": 0.05970435211137674, + "brier": 0.02063341479707414, + "calibration": { + "observed_rate": 0.02142857142857143, + "mean_prediction": 0.01830778124903667, + "calibration_in_the_large": -0.0031207901795347603, + "expected_calibration_error_10bin": 0.004609608922224392, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8184164466462962, + "auprc": 0.02840724231242137, + "brier": 0.00493586473353763, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.004570046964745042, + "calibration_in_the_large": -0.0004184411396294784, + "expected_calibration_error_10bin": 0.0006499074178688654, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9826671383091616, + "auprc": 0.029030910609857977, + "brier": 0.0007009986874499277, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007726411175705371, + "calibration_in_the_large": 6.567752619549287e-05, + "expected_calibration_error_10bin": 6.567752619549287e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7814735336194564, + "auprc": 0.0039555586636486765, + "brier": 0.0010722050529316047, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0009061223424109385, + "calibration_in_the_large": -0.00016568901878949026, + "expected_calibration_error_10bin": 0.00016568901878949026, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.9978094194961665, + "auprc": 0.3117997198879552, + "brier": 0.0012704145956940513, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0007737809205563845, + "calibration_in_the_large": -0.0006844764618716139, + "expected_calibration_error_10bin": 0.0010893520828050326, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.00040153242498938013, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0005282562527162901, + "calibration_in_the_large": 0.0001511823462306189, + "expected_calibration_error_10bin": 0.0001511823462306189, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 1, + "negatives": 2809, + "auroc": 0.8572445710217159, + "auprc": 0.0024875621890547263, + "brier": 0.0003566530696736763, + "calibration": { + "observed_rate": 0.00035587188612099647, + "mean_prediction": 0.0008749693269972184, + "calibration_in_the_large": 0.000519097440876222, + "expected_calibration_error_10bin": 0.000519097440876222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 9.373205258966065e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015292804464440966, + "calibration_in_the_large": 0.0015292804464440966, + "expected_calibration_error_10bin": 0.0015292804464440966, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "150": { + "A04": { + "valid": 2782, + "positives": 20, + "negatives": 2762, + "auroc": 0.7678131788559015, + "auprc": 0.07625875031612948, + "brier": 0.007076950594277115, + "calibration": { + "observed_rate": 0.007189072609633357, + "mean_prediction": 0.006117093245997158, + "calibration_in_the_large": -0.001071979363636199, + "expected_calibration_error_10bin": 0.0015601428987477896, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.8583333333333333, + "auprc": 0.1387890042780103, + "brier": 0.003443833056419069, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.003134657614595879, + "calibration_in_the_large": -0.0004139584251486206, + "expected_calibration_error_10bin": 0.0004139584251486206, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 40, + "negatives": 2624, + "auroc": 0.7297160823170732, + "auprc": 0.054162823349286446, + "brier": 0.014842632021832334, + "calibration": { + "observed_rate": 0.015015015015015015, + "mean_prediction": 0.01641179675177798, + "calibration_in_the_large": 0.0013967817367629646, + "expected_calibration_error_10bin": 0.0020261856256588023, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.7220643939393939, + "auprc": 0.019271911446768115, + "brier": 0.0011282541050201655, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0016700814661821794, + "calibration_in_the_large": 0.0006058743005205973, + "expected_calibration_error_10bin": 0.000613987778414702, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6091262822780332, + "auprc": 0.0009041591320072332, + "brier": 0.00035568451591693796, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0005591048455660961, + "calibration_in_the_large": 0.00020549805631574252, + "expected_calibration_error_10bin": 0.00020549805631574252, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 4, + "negatives": 2778, + "auroc": 0.9483441324694024, + "auprc": 0.0741753361156216, + "brier": 0.001421058859411182, + "calibration": { + "observed_rate": 0.0014378145219266715, + "mean_prediction": 0.0017116245768698296, + "calibration_in_the_large": 0.0002738100549431581, + "expected_calibration_error_10bin": 0.000273810054943158, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.870402717127608, + "auprc": 0.08810315432161105, + "brier": 0.005308464091348447, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.0014647870811031493, + "calibration_in_the_large": -0.003964094569276872, + "expected_calibration_error_10bin": 0.0040447140471746796, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9911535739561217, + "auprc": 0.24782608695652172, + "brier": 0.0010422810961395724, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.00019567337882476832, + "calibration_in_the_large": -0.000864772008237798, + "expected_calibration_error_10bin": 0.000864772008237798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9754156349487089, + "auprc": 0.05354569016647844, + "brier": 0.001392532866261071, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0008302297837837638, + "calibration_in_the_large": -0.0005826985101053212, + "expected_calibration_error_10bin": 0.0005826985101053212, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 6.795431967544791e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0012298671782445716, + "calibration_in_the_large": 0.0012298671782445716, + "expected_calibration_error_10bin": 0.0012298671782445716, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 23, + "negatives": 2745, + "auroc": 0.7578047042052745, + "auprc": 0.028474637677959668, + "brier": 0.008275647332995533, + "calibration": { + "observed_rate": 0.008309248554913294, + "mean_prediction": 0.007368651207230617, + "calibration_in_the_large": -0.0009405973476826774, + "expected_calibration_error_10bin": 0.002365882342287294, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.7010080208107522, + "auprc": 0.02837163728400864, + "brier": 0.01576037154158414, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.015269218109065738, + "calibration_in_the_large": -0.00041412767136742197, + "expected_calibration_error_10bin": 0.005351662666015564, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 57, + "negatives": 2573, + "auroc": 0.7668023537273031, + "auprc": 0.06487374532539827, + "brier": 0.020830880002124397, + "calibration": { + "observed_rate": 0.02167300380228137, + "mean_prediction": 0.01734745108160392, + "calibration_in_the_large": -0.004325552720677448, + "expected_calibration_error_10bin": 0.006102472339436313, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7934205871949063, + "auprc": 0.0017094017094017094, + "brier": 0.0003603963252579623, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006691159277209085, + "calibration_in_the_large": 0.0003155091384705549, + "expected_calibration_error_10bin": 0.0003155091384705549, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9828136073706591, + "auprc": 0.029166666666666667, + "brier": 0.0007029310433099945, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005257841120795925, + "calibration_in_the_large": -0.00018243118537083244, + "expected_calibration_error_10bin": 0.00018243118537083244, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.917990737442109, + "auprc": 0.03122800078543577, + "brier": 0.001774232962622544, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0005869871484452448, + "calibration_in_the_large": -0.0011911067349117965, + "expected_calibration_error_10bin": 0.0012675864519198772, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9852155325970787, + "auprc": 0.2619047619047619, + "brier": 0.0006541228614533967, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0006331620684447588, + "calibration_in_the_large": -7.883508356663319e-05, + "expected_calibration_error_10bin": 0.0004240215815594789, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9582590082054941, + "auprc": 0.023970105723660227, + "brier": 0.0007087428749290889, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0009052903356745343, + "calibration_in_the_large": 0.00019227785795617423, + "expected_calibration_error_10bin": 0.00019227785795617423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.989388043862752, + "auprc": 0.05115089514066496, + "brier": 0.0007013053314183948, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0004893888089246432, + "calibration_in_the_large": -0.00021757478245040102, + "expected_calibration_error_10bin": 0.00021757478245040102, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 14, + "negatives": 2748, + "auroc": 0.8790289041380744, + "auprc": 0.11400812120445493, + "brier": 0.00484239824107813, + "calibration": { + "observed_rate": 0.005068790731354091, + "mean_prediction": 0.003598782242606844, + "calibration_in_the_large": -0.0014700084887472472, + "expected_calibration_error_10bin": 0.001924070257917477, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 21, + "negatives": 2741, + "auroc": 0.8740119177915603, + "auprc": 0.09437338170264623, + "brier": 0.007330311160417175, + "calibration": { + "observed_rate": 0.007603186097031137, + "mean_prediction": 0.005737033404906105, + "calibration_in_the_large": -0.001866152692125032, + "expected_calibration_error_10bin": 0.004254740438298068, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 14, + "negatives": 2737, + "auroc": 0.8754110339788089, + "auprc": 0.1414477739378522, + "brier": 0.0054849670787599225, + "calibration": { + "observed_rate": 0.005089058524173028, + "mean_prediction": 0.007465390307354252, + "calibration_in_the_large": 0.0023763317831812236, + "expected_calibration_error_10bin": 0.003915683568837389, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 5.7602807011456814e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000798293854166401, + "calibration_in_the_large": 0.000798293854166401, + "expected_calibration_error_10bin": 0.000798293854166401, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9345878136200717, + "auprc": 0.502724795640327, + "brier": 0.0007060723190427669, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.0005996661924418053, + "calibration_in_the_large": -0.00011666618578169035, + "expected_calibration_error_10bin": 0.00011666618578169035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5330346475507766, + "auprc": 0.0028500196560948374, + "brier": 0.00219814850711615, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.0036829121508128813, + "calibration_in_the_large": 0.0015369894040317654, + "expected_calibration_error_10bin": 0.0015369894040317658, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 39, + "negatives": 2624, + "auroc": 0.8076727642276422, + "auprc": 0.10477567239427231, + "brier": 0.013891455341065992, + "calibration": { + "observed_rate": 0.01464513706346226, + "mean_prediction": 0.010735312705970078, + "calibration_in_the_large": -0.003909824357492183, + "expected_calibration_error_10bin": 0.0039098243574921835, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.8365258384055376, + "auprc": 0.03077398529566999, + "brier": 0.004265435763119074, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.004492483249087982, + "calibration_in_the_large": 0.00021440838277782173, + "expected_calibration_error_10bin": 0.00021440838277782175, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 3.6072364296127164e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006348856331810781, + "calibration_in_the_large": 0.0006348856331810781, + "expected_calibration_error_10bin": 0.0006348856331810781, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 21, + "negatives": 2752, + "auroc": 0.8700858250276855, + "auprc": 0.1206448932434016, + "brier": 0.007209821629462782, + "calibration": { + "observed_rate": 0.007573025604038947, + "mean_prediction": 0.007914910341426575, + "calibration_in_the_large": 0.00034188473738762815, + "expected_calibration_error_10bin": 0.0016937155943421878, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 45, + "negatives": 2454, + "auroc": 0.8097346735488545, + "auprc": 0.07134504440752493, + "brier": 0.0172107021747617, + "calibration": { + "observed_rate": 0.01800720288115246, + "mean_prediction": 0.017805628534428783, + "calibration_in_the_large": -0.00020157434672367705, + "expected_calibration_error_10bin": 0.0014540345354729452, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 55, + "negatives": 2631, + "auroc": 0.8727894682284648, + "auprc": 0.11927235791633313, + "brier": 0.019320139965181643, + "calibration": { + "observed_rate": 0.020476545048399106, + "mean_prediction": 0.016401040503737013, + "calibration_in_the_large": -0.004075504544662094, + "expected_calibration_error_10bin": 0.008994339891740762, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 85, + "negatives": 2349, + "auroc": 0.8166478852077229, + "auprc": 0.1543207811714838, + "brier": 0.03154707107574124, + "calibration": { + "observed_rate": 0.03492193919474117, + "mean_prediction": 0.03129856184991318, + "calibration_in_the_large": -0.0036233773448279896, + "expected_calibration_error_10bin": 0.0036233773448279896, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9612485276796231, + "auprc": 0.023341350008016678, + "brier": 0.0010532157743312468, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0009048498490897911, + "calibration_in_the_large": -0.00015409826245274332, + "expected_calibration_error_10bin": 0.00015409826245274332, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 39, + "negatives": 2643, + "auroc": 0.7922038864150102, + "auprc": 0.06665238330563127, + "brier": 0.014214551720982049, + "calibration": { + "observed_rate": 0.0145413870246085, + "mean_prediction": 0.008380726190194651, + "calibration_in_the_large": -0.006160660834413849, + "expected_calibration_error_10bin": 0.007356391068921953, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 52, + "negatives": 2534, + "auroc": 0.8442869285410722, + "auprc": 0.21478490339790374, + "brier": 0.017706333117579617, + "calibration": { + "observed_rate": 0.020108275328692964, + "mean_prediction": 0.012594621621646446, + "calibration_in_the_large": -0.007513653707046517, + "expected_calibration_error_10bin": 0.008480688983108399, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.8739790386700398, + "auprc": 0.18129274227830458, + "brier": 0.007221507205595192, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.008174122932715782, + "calibration_in_the_large": 0.0009979478340433742, + "expected_calibration_error_10bin": 0.005198776596650972, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 45, + "negatives": 2550, + "auroc": 0.7036688453159041, + "auprc": 0.05761163952776352, + "brier": 0.01682078163420947, + "calibration": { + "observed_rate": 0.017341040462427744, + "mean_prediction": 0.01523869841345873, + "calibration_in_the_large": -0.0021023420489690147, + "expected_calibration_error_10bin": 0.002843174914551743, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8098782937492615, + "auprc": 0.03653244030602521, + "brier": 0.0010583751532471759, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0009581079535638231, + "calibration_in_the_large": -0.0001042149926118144, + "expected_calibration_error_10bin": 0.00019238568578071105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.9194061505832449, + "auprc": 0.006495971653941874, + "brier": 0.0007098039814718551, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0010756573479457593, + "calibration_in_the_large": 0.00036919320100121673, + "expected_calibration_error_10bin": 0.00036919320100121673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9876739797121963, + "auprc": 0.10169698552466915, + "brier": 0.0020546717866872515, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009290849352633765, + "calibration_in_the_large": -0.0011895591325332337, + "expected_calibration_error_10bin": 0.0013835953501816643, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7139329805996473, + "auprc": 0.007889050333445103, + "brier": 0.0008658629397269303, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0012510402118740245, + "calibration_in_the_large": 0.0005460701731006724, + "expected_calibration_error_10bin": 0.000825297888903885, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.7854499503565304, + "auprc": 0.028399026831329523, + "brier": 0.007177247592806332, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.0033776343385867338, + "calibration_in_the_large": -0.003880430177542299, + "expected_calibration_error_10bin": 0.003880430177542299, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.8046517233068209, + "auprc": 0.010304430181906955, + "brier": 0.0032301044159560133, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0016293897360866378, + "calibration_in_the_large": -0.0016138535071566053, + "expected_calibration_error_10bin": 0.0016138535071566053, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.1924037089871612, + "auprc": 0.0006523734208111222, + "brier": 0.000714899951299455, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0008666416829817656, + "calibration_in_the_large": 0.00015388330807086033, + "expected_calibration_error_10bin": 0.00015388330807086033, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 13, + "negatives": 2181, + "auroc": 0.745988078862907, + "auprc": 0.06138248148847568, + "brier": 0.005822741212765412, + "calibration": { + "observed_rate": 0.005925250683682771, + "mean_prediction": 0.00484180934939292, + "calibration_in_the_large": -0.001083441334289851, + "expected_calibration_error_10bin": 0.0012195734121259287, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.568125222340804, + "auprc": 0.0023998263507056276, + "brier": 0.001789761063870985, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0020480437302571822, + "calibration_in_the_large": 0.0002724755484390005, + "expected_calibration_error_10bin": 0.0002724755484390005, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9950231070031994, + "auprc": 0.06666666666666667, + "brier": 0.0003497262837363412, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.000955182857574036, + "calibration_in_the_large": 0.000599816830566218, + "expected_calibration_error_10bin": 0.000599816830566218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.7716225875625446, + "auprc": 0.004655112757961015, + "brier": 0.0014885944863387902, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003948782611621782, + "calibration_in_the_large": 0.0025212308628708904, + "expected_calibration_error_10bin": 0.0025212308628708904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7429080541696365, + "auprc": 0.00482737513774665, + "brier": 0.0017894121286984273, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.0017314787382398734, + "calibration_in_the_large": -4.724769363490433e-05, + "expected_calibration_error_10bin": 4.724769363490433e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8268363402061856, + "auprc": 0.071126250187776, + "brier": 0.011367678321692632, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.010704237312764969, + "calibration_in_the_large": -0.0009405952927663275, + "expected_calibration_error_10bin": 0.004477512133614944, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7612687013764213, + "auprc": 0.016806626645909213, + "brier": 0.005397475513436956, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.006502094240743515, + "calibration_in_the_large": 0.0011449513836006581, + "expected_calibration_error_10bin": 0.001144951383600658, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 28, + "negatives": 2744, + "auroc": 0.827688983756768, + "auprc": 0.10729798658530143, + "brier": 0.009669689572179705, + "calibration": { + "observed_rate": 0.010101010101010102, + "mean_prediction": 0.009715567133390578, + "calibration_in_the_large": -0.00038544296761952417, + "expected_calibration_error_10bin": 0.002492265177662375, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8216964285714285, + "auprc": 0.006672312709317781, + "brier": 0.0014283174754240596, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0017168190701369861, + "calibration_in_the_large": 0.00029028554659918295, + "expected_calibration_error_10bin": 0.00029028554659918295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 19, + "negatives": 2718, + "auroc": 0.5665543549823787, + "auprc": 0.012745710095187792, + "brier": 0.006920703450551267, + "calibration": { + "observed_rate": 0.006941907197661673, + "mean_prediction": 0.005345890180934646, + "calibration_in_the_large": -0.0015960170167270277, + "expected_calibration_error_10bin": 0.0016763256626144757, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 27, + "negatives": 2344, + "auroc": 0.7461130072051574, + "auprc": 0.030023974210226272, + "brier": 0.011225760239620927, + "calibration": { + "observed_rate": 0.011387600168705188, + "mean_prediction": 0.011129989186214922, + "calibration_in_the_large": -0.00025761098249026636, + "expected_calibration_error_10bin": 0.0008333157803098323, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.7244143936697996, + "auprc": 0.06550091895990601, + "brier": 0.019289442465271107, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.017444942701086145, + "calibration_in_the_large": -0.0022751590800843373, + "expected_calibration_error_10bin": 0.006708359601711186, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9573430294430649, + "auprc": 0.019391516299587193, + "brier": 0.0014408958314371689, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0017700890245848496, + "calibration_in_the_large": 0.00035315668310415536, + "expected_calibration_error_10bin": 0.0003531566831041554, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 53, + "negatives": 2600, + "auroc": 0.7890348330914368, + "auprc": 0.12790559777900903, + "brier": 0.018616093956804643, + "calibration": { + "observed_rate": 0.01997738409347908, + "mean_prediction": 0.015161871532908256, + "calibration_in_the_large": -0.004815512560570823, + "expected_calibration_error_10bin": 0.005532647888672434, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 58, + "negatives": 2529, + "auroc": 0.7938806397512987, + "auprc": 0.07935092189406755, + "brier": 0.021333140512771537, + "calibration": { + "observed_rate": 0.02241979126401237, + "mean_prediction": 0.023827807326396302, + "calibration_in_the_large": 0.0014080160623839329, + "expected_calibration_error_10bin": 0.0021867056940048655, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 97, + "negatives": 2088, + "auroc": 0.7688312201287673, + "auprc": 0.1551028234420889, + "brier": 0.0405478569834928, + "calibration": { + "observed_rate": 0.044393592677345536, + "mean_prediction": 0.03001643731372694, + "calibration_in_the_large": -0.014377155363618596, + "expected_calibration_error_10bin": 0.01789350508517363, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 9, + "negatives": 2808, + "auroc": 0.7716445077556189, + "auprc": 0.08216461043209738, + "brier": 0.003115005436349019, + "calibration": { + "observed_rate": 0.003194888178913738, + "mean_prediction": 0.0033070500697539623, + "calibration_in_the_large": 0.00011216189084022445, + "expected_calibration_error_10bin": 0.0006568400633738985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 4, + "negatives": 2776, + "auroc": 0.7611671469740634, + "auprc": 0.004355004577242097, + "brier": 0.0014369631902634266, + "calibration": { + "observed_rate": 0.0014388489208633094, + "mean_prediction": 0.0016442611443950135, + "calibration_in_the_large": 0.00020541222353170408, + "expected_calibration_error_10bin": 0.00020541222353170408, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 1, + "negatives": 2801, + "auroc": 0.555872902534809, + "auprc": 0.0008032128514056225, + "brier": 0.00040032802379657076, + "calibration": { + "observed_rate": 0.00035688793718772306, + "mean_prediction": 0.0019963590252664153, + "calibration_in_the_large": 0.0016394710880786923, + "expected_calibration_error_10bin": 0.0016394710880786923, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 11, + "negatives": 2728, + "auroc": 0.8531724873367103, + "auprc": 0.019404423269315477, + "brier": 0.004037190476437372, + "calibration": { + "observed_rate": 0.004016064257028112, + "mean_prediction": 0.004624141893458199, + "calibration_in_the_large": 0.0006080776364300869, + "expected_calibration_error_10bin": 0.0006080776364300865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 16, + "negatives": 2734, + "auroc": 0.7323518653986832, + "auprc": 0.013110606639492827, + "brier": 0.005893046506990337, + "calibration": { + "observed_rate": 0.005818181818181818, + "mean_prediction": 0.008443780093859541, + "calibration_in_the_large": 0.0026255982756777235, + "expected_calibration_error_10bin": 0.002625598275677724, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4589525831564048, + "auprc": 0.001131204064531155, + "brier": 0.0007156965158399026, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0015674670538028822, + "calibration_in_the_large": 0.000860253475302175, + "expected_calibration_error_10bin": 0.000860253475302175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 9, + "negatives": 2551, + "auroc": 0.8012108541312775, + "auprc": 0.08579863385861655, + "brier": 0.003398865772430469, + "calibration": { + "observed_rate": 0.003515625, + "mean_prediction": 0.005320779439844614, + "calibration_in_the_large": 0.001805154439844614, + "expected_calibration_error_10bin": 0.0025804143767715008, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8499817050859861, + "auprc": 0.029373687037637836, + "brier": 0.002982418041934859, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.0036177448273933092, + "calibration_in_the_large": 0.0006991019963097631, + "expected_calibration_error_10bin": 0.000866217801494504, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 10, + "negatives": 2767, + "auroc": 0.9211781713046621, + "auprc": 0.030829574333213462, + "brier": 0.0035521606557655516, + "calibration": { + "observed_rate": 0.0036010082823190494, + "mean_prediction": 0.002880737882924075, + "calibration_in_the_large": -0.0007202703993949744, + "expected_calibration_error_10bin": 0.0008050488201320924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.943524518038557, + "auprc": 0.04088433295530594, + "brier": 0.0031918844047154646, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0012741836769424278, + "calibration_in_the_large": -0.0019550951174601558, + "expected_calibration_error_10bin": 0.0019550951174601558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9385871494497693, + "auprc": 0.028246331337648325, + "brier": 0.0021120221107005697, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0005330113976878713, + "calibration_in_the_large": -0.00159238711453317, + "expected_calibration_error_10bin": 0.00159238711453317, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8875301957517701, + "auprc": 0.11981864329466406, + "brier": 0.009614926087083286, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.009239130348498551, + "calibration_in_the_large": -0.0010658985055822402, + "expected_calibration_error_10bin": 0.0016378645908550276, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9403439627373701, + "auprc": 0.16281014782414321, + "brier": 0.0034281497889507677, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0016061293640478123, + "calibration_in_the_large": -0.0019640241525534017, + "expected_calibration_error_10bin": 0.0019640241525534017, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6881758764111705, + "auprc": 0.015327932974991798, + "brier": 0.0010640847158269137, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0007700987655279954, + "calibration_in_the_large": -0.0002982773028480731, + "expected_calibration_error_10bin": 0.0002982773028480731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6460992907801418, + "auprc": 0.001001001001001001, + "brier": 0.00035800015762588844, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0009095191315793787, + "calibration_in_the_large": 0.0005550349061274113, + "expected_calibration_error_10bin": 0.0005550349061274113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9256628787878788, + "auprc": 0.010744369551957627, + "brier": 0.0010620021970937999, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0009453814895595353, + "calibration_in_the_large": -0.00011882567610204677, + "expected_calibration_error_10bin": 0.00011882567610204677, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6815699484509774, + "auprc": 0.01026250333111585, + "brier": 0.002488502872636294, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0006866110943438712, + "calibration_in_the_large": -0.0018080432178442971, + "expected_calibration_error_10bin": 0.0018080432178442971, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8722385861561119, + "auprc": 0.018994525747961045, + "brier": 0.0029109911055971768, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.002559926944169558, + "calibration_in_the_large": -0.00037693061823866484, + "expected_calibration_error_10bin": 0.00037693061823866484, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 45, + "negatives": 2155, + "auroc": 0.7149780871358598, + "auprc": 0.05513484143430907, + "brier": 0.01999869532445026, + "calibration": { + "observed_rate": 0.020454545454545454, + "mean_prediction": 0.02262211670759081, + "calibration_in_the_large": 0.0021675712530453556, + "expected_calibration_error_10bin": 0.0027150825631344373, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 7, + "negatives": 2793, + "auroc": 0.7849214873919492, + "auprc": 0.013489963777345392, + "brier": 0.0025106201553213837, + "calibration": { + "observed_rate": 0.0025, + "mean_prediction": 0.0029578919319900314, + "calibration_in_the_large": 0.00045789193199003136, + "expected_calibration_error_10bin": 0.00045789193199003136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 8, + "negatives": 2793, + "auroc": 0.7351414249910491, + "auprc": 0.011072528095870568, + "brier": 0.0028469149049190107, + "calibration": { + "observed_rate": 0.002856122813280971, + "mean_prediction": 0.0025109170284591848, + "calibration_in_the_large": -0.00034520578482178646, + "expected_calibration_error_10bin": 0.00034520578482178646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 61, + "negatives": 2186, + "auroc": 0.7336028077332654, + "auprc": 0.10889688332016026, + "brier": 0.02555929860118942, + "calibration": { + "observed_rate": 0.027147307521139297, + "mean_prediction": 0.026860600282520165, + "calibration_in_the_large": -0.000286707238619132, + "expected_calibration_error_10bin": 0.001321936180555224, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7491479710677945, + "auprc": 0.03644871251577339, + "brier": 0.005409296769169965, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.006738047574172168, + "calibration_in_the_large": 0.0012515808587369084, + "expected_calibration_error_10bin": 0.0012515808587369082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9404905794525418, + "auprc": 0.021897130295758745, + "brier": 0.0017879882611549257, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0023743426955526656, + "calibration_in_the_large": 0.0006000346756804159, + "expected_calibration_error_10bin": 0.0006000346756804156, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9331131296449215, + "auprc": 0.026461587680863794, + "brier": 0.0025020146614590623, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.0009637043970948841, + "calibration_in_the_large": -0.0015588181254276383, + "expected_calibration_error_10bin": 0.0015588181254276383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6584837545126354, + "auprc": 0.0030732284493158513, + "brier": 0.0014610318134479095, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.0024066675096819173, + "calibration_in_the_large": 0.0009647064426307277, + "expected_calibration_error_10bin": 0.0009647064426307277, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 2, + "negatives": 2800, + "auroc": 0.7085714285714285, + "auprc": 0.0019176676503658853, + "brier": 0.0007382378109807136, + "calibration": { + "observed_rate": 0.0007137758743754461, + "mean_prediction": 0.0022888016749982665, + "calibration_in_the_large": 0.0015750258006228205, + "expected_calibration_error_10bin": 0.0015750258006228205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 18, + "negatives": 2705, + "auroc": 0.7377490244403369, + "auprc": 0.040397738935906174, + "brier": 0.006513758554307586, + "calibration": { + "observed_rate": 0.006610356224752111, + "mean_prediction": 0.004018834919507001, + "calibration_in_the_large": -0.0025915213052451107, + "expected_calibration_error_10bin": 0.003013675552371093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7347759094258726, + "auprc": 0.017438967095199417, + "brier": 0.0040132727143952045, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0022803124570775855, + "calibration_in_the_large": -0.0017563847906288364, + "expected_calibration_error_10bin": 0.0017563847906288364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5813102463405927, + "auprc": 0.005818559229067372, + "brier": 0.0014345035634571036, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.001271354857815696, + "calibration_in_the_large": -0.0001546700976210241, + "expected_calibration_error_10bin": 0.0001546700976210241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 66, + "negatives": 2249, + "auroc": 0.7247328779120686, + "auprc": 0.07752913626173186, + "brier": 0.027268480353018643, + "calibration": { + "observed_rate": 0.028509719222462204, + "mean_prediction": 0.018076267790346764, + "calibration_in_the_large": -0.01043345143211544, + "expected_calibration_error_10bin": 0.011709977216375178, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 6.942675457438257e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00037475407617789075, + "calibration_in_the_large": 0.00037475407617789075, + "expected_calibration_error_10bin": 0.00037475407617789075, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 27, + "negatives": 2724, + "auroc": 0.8990863109805841, + "auprc": 0.12123181615132142, + "brier": 0.009230306016829923, + "calibration": { + "observed_rate": 0.009814612868047983, + "mean_prediction": 0.005814014658933276, + "calibration_in_the_large": -0.004000598209114707, + "expected_calibration_error_10bin": 0.004828331919420001, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.7856535113554552, + "auprc": 0.033308779886100565, + "brier": 0.0039025530199771614, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.00196708450621418, + "calibration_in_the_large": -0.0019769814672530124, + "expected_calibration_error_10bin": 0.0019769814672530124, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7310646342904408, + "auprc": 0.007655105769792679, + "brier": 0.0010620246010304326, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.000940493670218813, + "calibration_in_the_large": -0.0001218292759568245, + "expected_calibration_error_10bin": 0.0001218292759568245, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 41, + "negatives": 2496, + "auroc": 0.80239602876798, + "auprc": 0.1166608969310021, + "brier": 0.015466162248410244, + "calibration": { + "observed_rate": 0.016160819865983445, + "mean_prediction": 0.0210290851987175, + "calibration_in_the_large": 0.004868265332734056, + "expected_calibration_error_10bin": 0.005416311410587125, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 9.173371309113424e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014028729609384372, + "calibration_in_the_large": 0.0014028729609384372, + "expected_calibration_error_10bin": 0.0014028729609384372, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 29, + "negatives": 2704, + "auroc": 0.8056519077739237, + "auprc": 0.06866231163357864, + "brier": 0.01033107602028451, + "calibration": { + "observed_rate": 0.010611050128064398, + "mean_prediction": 0.01058039751664904, + "calibration_in_the_large": -3.065261141535838e-05, + "expected_calibration_error_10bin": 0.0013716441633708138, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 35, + "negatives": 2621, + "auroc": 0.7884667793099689, + "auprc": 0.0488377465586458, + "brier": 0.01282432144222315, + "calibration": { + "observed_rate": 0.013177710843373495, + "mean_prediction": 0.00925717510620646, + "calibration_in_the_large": -0.003920535737167035, + "expected_calibration_error_10bin": 0.004651722470849146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 3.4573649042036816e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002561436417986631, + "calibration_in_the_large": 0.0002561436417986631, + "expected_calibration_error_10bin": 0.0002561436417986631, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8238154172560113, + "auprc": 0.006882198749751454, + "brier": 0.0014101865812892475, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0005774439809783228, + "calibration_in_the_large": -0.0008349853975527506, + "expected_calibration_error_10bin": 0.0008349853975527506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 4.323560622300067e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010450334208331386, + "calibration_in_the_large": 0.0010450334208331386, + "expected_calibration_error_10bin": 0.0010450334208331386, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5021413276231264, + "auprc": 0.003877999804002874, + "brier": 0.0014244102137368946, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0006751974713088789, + "calibration_in_the_large": -0.0007503192785129316, + "expected_calibration_error_10bin": 0.0007503192785129316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8075774134790529, + "auprc": 0.010845300896328812, + "brier": 0.0018220480395602088, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.0028667488242064628, + "calibration_in_the_large": 0.0010485670060246446, + "expected_calibration_error_10bin": 0.0010485670060246446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.639697950377562, + "auprc": 0.014362542021501945, + "brier": 0.00321071177311495, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.0027969029032878534, + "calibration_in_the_large": -0.00042890354832504987, + "expected_calibration_error_10bin": 0.00042890354832504987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3936587103669398, + "auprc": 0.0008849429338060337, + "brier": 0.0007194673855404143, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.001446176889020894, + "calibration_in_the_large": 0.000734179737009502, + "expected_calibration_error_10bin": 0.000734179737009502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8061019382627422, + "auprc": 0.006113802348791028, + "brier": 0.001786982523556875, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0013429891307868834, + "calibration_in_the_large": -0.00044848345968248235, + "expected_calibration_error_10bin": 0.00044848345968248235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9165365507452093, + "auprc": 0.014196564985385293, + "brier": 0.001767320377463869, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0008507867511881709, + "calibration_in_the_large": -0.000920378675662697, + "expected_calibration_error_10bin": 0.000920378675662697, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8764498006524103, + "auprc": 0.020380066884407556, + "brier": 0.003029519513402928, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.005681855900696715, + "calibration_in_the_large": 0.002790637975145576, + "expected_calibration_error_10bin": 0.002790637975145576, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 31, + "negatives": 1467, + "auroc": 0.6853354442905205, + "auprc": 0.06181975633572324, + "brier": 0.02011956061191056, + "calibration": { + "observed_rate": 0.02069425901201602, + "mean_prediction": 0.011823400760302086, + "calibration_in_the_large": -0.008870858251713933, + "expected_calibration_error_10bin": 0.009966096533936071, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 28, + "negatives": 2648, + "auroc": 0.8250296719896418, + "auprc": 0.04161987208306044, + "brier": 0.010253028078046202, + "calibration": { + "observed_rate": 0.01046337817638266, + "mean_prediction": 0.007717198611714283, + "calibration_in_the_large": -0.0027461795646683777, + "expected_calibration_error_10bin": 0.0036109513482875605, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 17, + "negatives": 2535, + "auroc": 0.820211161387632, + "auprc": 0.0837427736671384, + "brier": 0.006459250635341552, + "calibration": { + "observed_rate": 0.0066614420062695925, + "mean_prediction": 0.004422911758477741, + "calibration_in_the_large": -0.002238530247791851, + "expected_calibration_error_10bin": 0.002238530247791852, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 18, + "negatives": 2709, + "auroc": 0.8575735203642181, + "auprc": 0.049536458053475806, + "brier": 0.0065966457086192596, + "calibration": { + "observed_rate": 0.006600660066006601, + "mean_prediction": 0.007815458448455815, + "calibration_in_the_large": 0.0012147983824492142, + "expected_calibration_error_10bin": 0.0022931420051192438, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.923436188077246, + "auprc": 0.026937520672782277, + "brier": 0.003319070158871335, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0014059579139855441, + "calibration_in_the_large": -0.0019413224207424891, + "expected_calibration_error_10bin": 0.0019413224207424891, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 11, + "negatives": 2660, + "auroc": 0.8179767600820232, + "auprc": 0.025012115843634056, + "brier": 0.004172061895553608, + "calibration": { + "observed_rate": 0.0041183077499064025, + "mean_prediction": 0.00768170259862382, + "calibration_in_the_large": 0.0035633948487174176, + "expected_calibration_error_10bin": 0.003563394848717418, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 5, + "negatives": 2804, + "auroc": 0.8717546362339516, + "auprc": 0.0192435514699068, + "brier": 0.001769952678879476, + "calibration": { + "observed_rate": 0.00177999288002848, + "mean_prediction": 0.0013612027810267237, + "calibration_in_the_large": -0.0004187900990017563, + "expected_calibration_error_10bin": 0.0004187900990017563, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 30, + "negatives": 2213, + "auroc": 0.8270823919264949, + "auprc": 0.06519887899433828, + "brier": 0.012916332771078351, + "calibration": { + "observed_rate": 0.013374944271065538, + "mean_prediction": 0.008759792306160787, + "calibration_in_the_large": -0.004615151964904751, + "expected_calibration_error_10bin": 0.005225894744337603, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 13, + "negatives": 2747, + "auroc": 0.7758113746464674, + "auprc": 0.11665344438854941, + "brier": 0.004576681126144467, + "calibration": { + "observed_rate": 0.004710144927536232, + "mean_prediction": 0.004331061842487437, + "calibration_in_the_large": -0.00037908308504879494, + "expected_calibration_error_10bin": 0.000379083085048794, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 22, + "negatives": 2694, + "auroc": 0.8299250860498076, + "auprc": 0.03232298206983473, + "brier": 0.008105894697081383, + "calibration": { + "observed_rate": 0.008100147275405008, + "mean_prediction": 0.00788425278517831, + "calibration_in_the_large": -0.00021589449022669724, + "expected_calibration_error_10bin": 0.002185932867798225, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.7871168582375478, + "auprc": 0.06761592565466869, + "brier": 0.003173796267913198, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002701971896882249, + "calibration_in_the_large": -0.0005203696713239809, + "expected_calibration_error_10bin": 0.0005203696713239809, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 14, + "negatives": 2739, + "auroc": 0.7606790799561884, + "auprc": 0.01735397007688896, + "brier": 0.0050751521764172995, + "calibration": { + "observed_rate": 0.005085361423901199, + "mean_prediction": 0.00362518813968303, + "calibration_in_the_large": -0.001460173284218169, + "expected_calibration_error_10bin": 0.001534511215318382, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7121412803532009, + "auprc": 0.011145250551177144, + "brier": 0.0018654443769554872, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.003394759115269307, + "calibration_in_the_large": 0.0015585490528381648, + "expected_calibration_error_10bin": 0.001558549052838165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.9343589743589743, + "auprc": 0.0775389255163311, + "brier": 0.0035390743993463565, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0031863757953947257, + "calibration_in_the_large": -0.0004632592411016245, + "expected_calibration_error_10bin": 0.000549249584099781, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8723623127242034, + "auprc": 0.03533895610322008, + "brier": 0.005091173433637561, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.005966292050082935, + "calibration_in_the_large": 0.0008230150478786731, + "expected_calibration_error_10bin": 0.0008230150478786733, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 8, + "negatives": 2758, + "auroc": 0.6983321247280638, + "auprc": 0.018187451063032288, + "brier": 0.002883650249203121, + "calibration": { + "observed_rate": 0.0028922631959508315, + "mean_prediction": 0.004145797282583805, + "calibration_in_the_large": 0.0012535340866329735, + "expected_calibration_error_10bin": 0.0012535340866329735, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5819787985865724, + "auprc": 0.0008445945945945946, + "brier": 0.00036020575753350023, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0012734055669064573, + "calibration_in_the_large": 0.0009201734934341861, + "expected_calibration_error_10bin": 0.0009201734934341861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 9, + "negatives": 2707, + "auroc": 0.6882978286746295, + "auprc": 0.006309280092943459, + "brier": 0.00333097423509787, + "calibration": { + "observed_rate": 0.0033136966126656848, + "mean_prediction": 0.004509015329731563, + "calibration_in_the_large": 0.0011953187170658784, + "expected_calibration_error_10bin": 0.0011953187170658784, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 19, + "negatives": 2366, + "auroc": 0.7973706455487832, + "auprc": 0.028271794223528938, + "brier": 0.00784730446398145, + "calibration": { + "observed_rate": 0.007966457023060796, + "mean_prediction": 0.006771469316107577, + "calibration_in_the_large": -0.0011949877069532188, + "expected_calibration_error_10bin": 0.0012866382579234624, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 12, + "negatives": 2722, + "auroc": 0.7284166054371786, + "auprc": 0.013354253666827506, + "brier": 0.004361688804520394, + "calibration": { + "observed_rate": 0.0043891733723482075, + "mean_prediction": 0.002454649430359896, + "calibration_in_the_large": -0.0019345239419883116, + "expected_calibration_error_10bin": 0.0019345239419883116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 33, + "negatives": 2382, + "auroc": 0.8331170648551001, + "auprc": 0.07303981251671059, + "brier": 0.013300988859913508, + "calibration": { + "observed_rate": 0.013664596273291925, + "mean_prediction": 0.011855670332899788, + "calibration_in_the_large": -0.0018089259403921368, + "expected_calibration_error_10bin": 0.004002327876317039, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 5, + "negatives": 2802, + "auroc": 0.7497501784439686, + "auprc": 0.0052518098131972375, + "brier": 0.0017788655959338302, + "calibration": { + "observed_rate": 0.0017812611328820805, + "mean_prediction": 0.0014607551639921562, + "calibration_in_the_large": -0.00032050596888992425, + "expected_calibration_error_10bin": 0.00032050596888992425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 5, + "negatives": 2797, + "auroc": 0.8367536646406865, + "auprc": 0.011088629364604197, + "brier": 0.0017802516402293746, + "calibration": { + "observed_rate": 0.0017844396859386152, + "mean_prediction": 0.00050360640444527, + "calibration_in_the_large": -0.0012808332814933452, + "expected_calibration_error_10bin": 0.0012808332814933452, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 10, + "negatives": 2725, + "auroc": 0.7603669724770642, + "auprc": 0.014623205051460031, + "brier": 0.003640500320135755, + "calibration": { + "observed_rate": 0.003656307129798903, + "mean_prediction": 0.0028933096291798286, + "calibration_in_the_large": -0.0007629975006190745, + "expected_calibration_error_10bin": 0.0007629975006190745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.6869962709009985, + "auprc": 0.03157497072170985, + "brier": 0.0010787023116209525, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0017964994159935684, + "calibration_in_the_large": 0.0007150286157051762, + "expected_calibration_error_10bin": 0.0007150286157051762, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 2, + "negatives": 2771, + "auroc": 0.8094550703717069, + "auprc": 0.0028763163328515383, + "brier": 0.0007370098780420578, + "calibration": { + "observed_rate": 0.000721240533717995, + "mean_prediction": 0.0021577888404101615, + "calibration_in_the_large": 0.0014365483066921666, + "expected_calibration_error_10bin": 0.0014365483066921666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.7891578837524783, + "auprc": 0.016396538110309833, + "brier": 0.005122162095404308, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.004883049213818531, + "calibration_in_the_large": -0.00020416008850705075, + "expected_calibration_error_10bin": 0.0006325028741499879, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 5, + "negatives": 2766, + "auroc": 0.8556037599421548, + "auprc": 0.016556334717908034, + "brier": 0.0017983551947196273, + "calibration": { + "observed_rate": 0.001804402742692169, + "mean_prediction": 0.0022306552919509857, + "calibration_in_the_large": 0.0004262525492588168, + "expected_calibration_error_10bin": 0.0004262525492588168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 3, + "negatives": 2766, + "auroc": 0.6998071824536033, + "auprc": 0.005751587735175672, + "brier": 0.0010857753485943253, + "calibration": { + "observed_rate": 0.0010834236186348862, + "mean_prediction": 0.0017115573262903236, + "calibration_in_the_large": 0.0006281337076554374, + "expected_calibration_error_10bin": 0.0006281337076554374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6745111980092428, + "auprc": 0.013002847526354885, + "brier": 0.001768653792954449, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0010816046943441851, + "calibration_in_the_large": -0.0006927033255280646, + "expected_calibration_error_10bin": 0.0006927033255280646, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7993035190615836, + "auprc": 0.18064201171115638, + "brier": 0.002149730169156001, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.0020486687158902867, + "calibration_in_the_large": -0.00014591797028381702, + "expected_calibration_error_10bin": 0.00014591797028381702, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.7081114660986866, + "auprc": 0.012510589463489125, + "brier": 0.001414549660554554, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.0005239741246534809, + "calibration_in_the_large": -0.0008939627771543887, + "expected_calibration_error_10bin": 0.0008939627771543887, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5621179431859044, + "auprc": 0.0030234587257796297, + "brier": 0.0014394970754387287, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0013763861326892186, + "calibration_in_the_large": -5.987957646697538e-05, + "expected_calibration_error_10bin": 5.987957646697538e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7987956075097414, + "auprc": 0.25666092683485303, + "brier": 0.0013608333346820302, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.001250289184462808, + "calibration_in_the_large": -0.00016463830050358745, + "expected_calibration_error_10bin": 0.00037840172294692314, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.8645390070921986, + "auprc": 0.012930517959082101, + "brier": 0.002181425445245251, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.0017780683689387774, + "calibration_in_the_large": -0.00034507388159200816, + "expected_calibration_error_10bin": 0.0009471032562957413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 22, + "negatives": 2717, + "auroc": 0.7275905912269549, + "auprc": 0.03947440469888838, + "brier": 0.007954211602570836, + "calibration": { + "observed_rate": 0.008032128514056224, + "mean_prediction": 0.00665056809008556, + "calibration_in_the_large": -0.0013815604239706646, + "expected_calibration_error_10bin": 0.0016935698483661898, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 4, + "negatives": 2789, + "auroc": 0.9911258515596988, + "auprc": 0.18425324675324672, + "brier": 0.001397816780282831, + "calibration": { + "observed_rate": 0.0014321518080916578, + "mean_prediction": 0.001578286674087178, + "calibration_in_the_large": 0.0001461348659955201, + "expected_calibration_error_10bin": 0.0012294559644351532, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6761876621031551, + "auprc": 0.009687209422363372, + "brier": 0.003958468816828367, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.0035919750589030845, + "calibration_in_the_large": -0.00036485947347101623, + "expected_calibration_error_10bin": 0.00036485947347101623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8637362637362638, + "auprc": 0.023521268538869367, + "brier": 0.0017609209989978656, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0005936731907999312, + "calibration_in_the_large": -0.0011756120179757233, + "expected_calibration_error_10bin": 0.0011756120179757233, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 58, + "negatives": 2427, + "auroc": 0.7362928548086896, + "auprc": 0.06047316091144049, + "brier": 0.022525101527913906, + "calibration": { + "observed_rate": 0.023340040241448694, + "mean_prediction": 0.018404772638643565, + "calibration_in_the_large": -0.004935267602805129, + "expected_calibration_error_10bin": 0.006596786322639471, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8546162009197029, + "auprc": 0.04644640472167497, + "brier": 0.0013927953230968614, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009785730170534725, + "calibration_in_the_large": -0.0004343552768356126, + "expected_calibration_error_10bin": 0.0004343552768356126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.8288118760127542, + "auprc": 0.016416271899485944, + "brier": 0.002536433695656683, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.002156053810904268, + "calibration_in_the_large": -0.00039869071464317726, + "expected_calibration_error_10bin": 0.00039869071464317726, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6707403471484237, + "auprc": 0.0016047407117504612, + "brier": 0.000715300265940334, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001271351824882358, + "calibration_in_the_large": 0.0005633872231124464, + "expected_calibration_error_10bin": 0.0005633872231124464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.6545077105575327, + "auprc": 0.009318873086034431, + "brier": 0.002166334514138857, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.002582749654438872, + "calibration_in_the_large": 0.00045206783625705406, + "expected_calibration_error_10bin": 0.0004520678362570539, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 3.698788131701915e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017775156043578276, + "calibration_in_the_large": 0.0017775156043578276, + "expected_calibration_error_10bin": 0.0017775156043578276, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 9, + "negatives": 2786, + "auroc": 0.77749860413177, + "auprc": 0.013047119529245964, + "brier": 0.003238494099051933, + "calibration": { + "observed_rate": 0.0032200357781753132, + "mean_prediction": 0.003781980648665941, + "calibration_in_the_large": 0.0005619448704906279, + "expected_calibration_error_10bin": 0.0005619448704906279, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 31, + "negatives": 2640, + "auroc": 0.773985826001955, + "auprc": 0.05012923605791129, + "brier": 0.01132939501350416, + "calibration": { + "observed_rate": 0.011606140022463497, + "mean_prediction": 0.012145339630354418, + "calibration_in_the_large": 0.0005391996078909205, + "expected_calibration_error_10bin": 0.0016861908514568152, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.5545864483208733, + "auprc": 0.018448017617266207, + "brier": 0.0021422721816537066, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0025887950602748273, + "calibration_in_the_large": 0.00045735633913806, + "expected_calibration_error_10bin": 0.0004573563391380598, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5040679165192784, + "auprc": 0.0026798274988394798, + "brier": 0.0007193267373058786, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009243727007028535, + "calibration_in_the_large": 0.0002174091093278093, + "expected_calibration_error_10bin": 0.0002174091093278093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7240524264966348, + "auprc": 0.006425552488341989, + "brier": 0.0007096165975144284, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0011811147796967928, + "calibration_in_the_large": 0.0004731501779268813, + "expected_calibration_error_10bin": 0.0004731501779268813, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.6774562343694176, + "auprc": 0.007052347669531803, + "brier": 0.001780236650816762, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0015041537987836868, + "calibration_in_the_large": -0.00027901310563856717, + "expected_calibration_error_10bin": 0.00027901310563856717, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 17, + "negatives": 2553, + "auroc": 0.857537844750121, + "auprc": 0.035948391525879426, + "brier": 0.006486315564985659, + "calibration": { + "observed_rate": 0.006614785992217899, + "mean_prediction": 0.006063219065863309, + "calibration_in_the_large": -0.0005515669263545901, + "expected_calibration_error_10bin": 0.0006294432706197667, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6767413931144916, + "auprc": 0.021533920460990813, + "brier": 0.00786217892974491, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.006077006231855245, + "calibration_in_the_large": -0.0018658055235061524, + "expected_calibration_error_10bin": 0.0018658055235061524, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.8933888691953208, + "auprc": 0.010917485387389628, + "brier": 0.0014113629126544214, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0006002463830168884, + "calibration_in_the_large": -0.0008156828205229346, + "expected_calibration_error_10bin": 0.0008156828205229346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.7915855469394489, + "auprc": 0.02219626322170764, + "brier": 0.007841167954058393, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.005568906853192661, + "calibration_in_the_large": -0.0023533113679092485, + "expected_calibration_error_10bin": 0.0023533113679092485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.7473282048634415, + "auprc": 0.020011474266354346, + "brier": 0.005001041549337895, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.002337392202563393, + "calibration_in_the_large": -0.0026967681714028064, + "expected_calibration_error_10bin": 0.0026967681714028064, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9216573462125064, + "auprc": 0.02158459161176268, + "brier": 0.0024660381604952697, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0011997553614068047, + "calibration_in_the_large": -0.0012851576666372138, + "expected_calibration_error_10bin": 0.0012851576666372138, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.6382264565775009, + "auprc": 0.015138765019757522, + "brier": 0.009065448570921758, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.006395552867362103, + "calibration_in_the_large": -0.0026821522887744264, + "expected_calibration_error_10bin": 0.002931558006961786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8325391152410452, + "auprc": 0.05258230473569118, + "brier": 0.003148695800174302, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.002953464842571376, + "calibration_in_the_large": -0.00025280519661636863, + "expected_calibration_error_10bin": 0.0007453751568799708, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 8, + "negatives": 2821, + "auroc": 0.5754608294930875, + "auprc": 0.025029382404106848, + "brier": 0.0028182297920026833, + "calibration": { + "observed_rate": 0.002827854365500177, + "mean_prediction": 0.0012025370465475387, + "calibration_in_the_large": -0.0016253173189526382, + "expected_calibration_error_10bin": 0.002066152739715216, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.7902465554749819, + "auprc": 0.045826134619540104, + "brier": 0.0042567519161996826, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.003175890600780702, + "calibration_in_the_large": -0.001156239363118215, + "expected_calibration_error_10bin": 0.001156239363118215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 49, + "negatives": 2556, + "auroc": 0.8502762607390374, + "auprc": 0.11370879889076746, + "brier": 0.01768594773036711, + "calibration": { + "observed_rate": 0.018809980806142036, + "mean_prediction": 0.015069364249250606, + "calibration_in_the_large": -0.0037406165568914292, + "expected_calibration_error_10bin": 0.0048734248422367, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 20, + "negatives": 2672, + "auroc": 0.6921781437125748, + "auprc": 0.04650656579785779, + "brier": 0.007323367445433609, + "calibration": { + "observed_rate": 0.007429420505200594, + "mean_prediction": 0.00582835523352432, + "calibration_in_the_large": -0.001601065271676274, + "expected_calibration_error_10bin": 0.001601065271676274, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9209876543209876, + "auprc": 0.0044444444444444444, + "brier": 0.0003525092211207407, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0003470663050777375, + "calibration_in_the_large": -5.5430038080171045e-06, + "expected_calibration_error_10bin": 5.5430038080171045e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.9093743832642589, + "auprc": 0.0840701290158319, + "brier": 0.004071006502715382, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.005975894750753354, + "calibration_in_the_large": 0.002788925912226442, + "expected_calibration_error_10bin": 0.003789934976637991, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.7003561253561253, + "auprc": 0.008537711695280878, + "brier": 0.0018373413862352139, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.004433300172343715, + "calibration_in_the_large": 0.0026558383877720833, + "expected_calibration_error_10bin": 0.0026558383877720833, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 56, + "negatives": 1987, + "auroc": 0.756488604500683, + "auprc": 0.12248604740911595, + "brier": 0.02570092033481683, + "calibration": { + "observed_rate": 0.02741067058247675, + "mean_prediction": 0.024644911926806932, + "calibration_in_the_large": -0.002765758655669817, + "expected_calibration_error_10bin": 0.0029701157185123444, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 13, + "negatives": 2751, + "auroc": 0.8129071945865839, + "auprc": 0.037661147636431754, + "brier": 0.004633123786735901, + "calibration": { + "observed_rate": 0.004703328509406657, + "mean_prediction": 0.003946251027035733, + "calibration_in_the_large": -0.0007570774823709246, + "expected_calibration_error_10bin": 0.0007570774823709246, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 5, + "negatives": 2812, + "auroc": 0.8271692745376956, + "auprc": 0.006664770083522145, + "brier": 0.001831792054870475, + "calibration": { + "observed_rate": 0.001774937877174299, + "mean_prediction": 0.002603300943403624, + "calibration_in_the_large": 0.0008283630662293251, + "expected_calibration_error_10bin": 0.0008283630662293251, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.9548932384341637, + "auprc": 0.15978899572649574, + "brier": 0.001389287229983091, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0014819724350111833, + "calibration_in_the_large": 6.050832697991116e-05, + "expected_calibration_error_10bin": 6.050832697991116e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.801007556675063, + "auprc": 0.022356534421446108, + "brier": 0.0021632368778284282, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.004758871199834433, + "calibration_in_the_large": 0.0026044726361001426, + "expected_calibration_error_10bin": 0.002604472636100142, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8493827160493828, + "auprc": 0.003410786001147447, + "brier": 0.0007100747065215304, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0011241833307901862, + "calibration_in_the_large": 0.0004192132920168341, + "expected_calibration_error_10bin": 0.0004192132920168341, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 10, + "negatives": 2746, + "auroc": 0.9504734158776402, + "auprc": 0.07789925080645159, + "brier": 0.0035167617108183735, + "calibration": { + "observed_rate": 0.00362844702467344, + "mean_prediction": 0.00457618152270213, + "calibration_in_the_large": 0.0009477344980286903, + "expected_calibration_error_10bin": 0.0011167034903553962, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.884424778761062, + "auprc": 0.0044498037546696935, + "brier": 0.0007065317970810437, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0007477856345558696, + "calibration_in_the_large": 4.032189207267187e-05, + "expected_calibration_error_10bin": 4.032189207267187e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.7170749023784168, + "auprc": 0.002448468329201567, + "brier": 0.0010696067196784309, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0008085116169769717, + "calibration_in_the_large": -0.00025531817025707085, + "expected_calibration_error_10bin": 0.00025531817025707085, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7662869348522606, + "auprc": 0.014956323008396296, + "brier": 0.0014144649157800864, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0009535994764477888, + "calibration_in_the_large": -0.0004683699512095165, + "expected_calibration_error_10bin": 0.0004683699512095165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.678705035971223, + "auprc": 0.007931269840925494, + "brier": 0.0017926807149873313, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.002126143590465672, + "calibration_in_the_large": 0.0003308114540204296, + "expected_calibration_error_10bin": 0.0003308114540204296, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 26, + "negatives": 2723, + "auroc": 0.8237662080849741, + "auprc": 0.0663192971480935, + "brier": 0.009238367133738221, + "calibration": { + "observed_rate": 0.009457984721716987, + "mean_prediction": 0.008059227359620984, + "calibration_in_the_large": -0.001398757362096003, + "expected_calibration_error_10bin": 0.0037584727795083378, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.774002493765586, + "auprc": 0.006974119173664742, + "brier": 0.0028670260044101428, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.002198621323273243, + "calibration_in_the_large": -0.0006432969715757801, + "expected_calibration_error_10bin": 0.0007967436560861956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 21, + "negatives": 2724, + "auroc": 0.7721138381931334, + "auprc": 0.03475803338585359, + "brier": 0.007518396539324281, + "calibration": { + "observed_rate": 0.007650273224043716, + "mean_prediction": 0.008011125951318558, + "calibration_in_the_large": 0.00036085272727484196, + "expected_calibration_error_10bin": 0.00036085272727484185, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 16, + "negatives": 2725, + "auroc": 0.6792201834862386, + "auprc": 0.017989761251115913, + "brier": 0.005806454754052378, + "calibration": { + "observed_rate": 0.005837285662167092, + "mean_prediction": 0.0036775827202528773, + "calibration_in_the_large": -0.002159702941914215, + "expected_calibration_error_10bin": 0.002159702941914215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7512182610925878, + "auprc": 0.019468448407109477, + "brier": 0.002491586127233704, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0014246699257692622, + "calibration_in_the_large": -0.001082493398012973, + "expected_calibration_error_10bin": 0.001082493398012973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 69, + "negatives": 2491, + "auroc": 0.7188079986502133, + "auprc": 0.10507031601526143, + "brier": 0.025369733577080743, + "calibration": { + "observed_rate": 0.026953125, + "mean_prediction": 0.018080391824230446, + "calibration_in_the_large": -0.008872733175769556, + "expected_calibration_error_10bin": 0.009119321223363386, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.8129147342133428, + "auprc": 0.012406261402097362, + "brier": 0.003535804159950429, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0021329244235807152, + "calibration_in_the_large": -0.0014219991455625483, + "expected_calibration_error_10bin": 0.0014219991455625483, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 13, + "negatives": 2797, + "auroc": 0.6923076923076923, + "auprc": 0.009199223310331954, + "brier": 0.004615053348824945, + "calibration": { + "observed_rate": 0.004626334519572953, + "mean_prediction": 0.002698287233400012, + "calibration_in_the_large": -0.0019280472861729413, + "expected_calibration_error_10bin": 0.0019280472861729413, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.803857190155612, + "auprc": 0.017401749646592888, + "brier": 0.004694388459645687, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.004170500900313675, + "calibration_in_the_large": -0.00047069867126790354, + "expected_calibration_error_10bin": 0.0013425350549655924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8595656997939451, + "auprc": 0.025196117114463044, + "brier": 0.003399116095352204, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.00620682714433015, + "calibration_in_the_large": 0.003007395932101213, + "expected_calibration_error_10bin": 0.0030073959321012117, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7072879330943848, + "auprc": 0.012651471915959988, + "brier": 0.002151271509510449, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.002757519665850361, + "calibration_in_the_large": 0.000611596919069245, + "expected_calibration_error_10bin": 0.000611596919069245, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9542012261089073, + "auprc": 0.0078125, + "brier": 0.0003788997930520557, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0008808632758001946, + "calibration_in_the_large": 0.0005203730090373972, + "expected_calibration_error_10bin": 0.0005203730090373972, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.9584415584415584, + "auprc": 0.17378991038139605, + "brier": 0.0052244860994949726, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.0038163597696562147, + "calibration_in_the_large": -0.0015657715543480914, + "expected_calibration_error_10bin": 0.00397384043142384, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.9748518921533067, + "auprc": 0.05003460004236523, + "brier": 0.002284560783732918, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.002942308817650613, + "calibration_in_the_large": 0.000770756157498604, + "expected_calibration_error_10bin": 0.001321664018264656, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7841463414634147, + "auprc": 0.024363988544680446, + "brier": 0.003552795117008996, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002121819694709352, + "calibration_in_the_large": -0.0014521617205872882, + "expected_calibration_error_10bin": 0.0016085470906601364, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8564804869316147, + "auprc": 0.18743471736489115, + "brier": 0.0071454865803177075, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.004462469954840145, + "calibration_in_the_large": -0.0033704282174836144, + "expected_calibration_error_10bin": 0.004143512704628529, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 7, + "negatives": 2724, + "auroc": 0.7572897000209775, + "auprc": 0.006163244541875198, + "brier": 0.002568560363531374, + "calibration": { + "observed_rate": 0.002563163676309044, + "mean_prediction": 0.002614429830773208, + "calibration_in_the_large": 5.1266154464164014e-05, + "expected_calibration_error_10bin": 5.1266154464164014e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8402127659574468, + "auprc": 0.01872359640149756, + "brier": 0.001765898008659954, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0012424905363272512, + "calibration_in_the_large": -0.0005274209680975275, + "expected_calibration_error_10bin": 0.0005274209680975275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6177304964539007, + "auprc": 0.0049459562775391736, + "brier": 0.0014171448471738382, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0008646051394632992, + "calibration_in_the_large": -0.0005518254554375508, + "expected_calibration_error_10bin": 0.0005518254554375508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 8, + "negatives": 2749, + "auroc": 0.858903237540924, + "auprc": 0.13872441042522923, + "brier": 0.0028225741981862114, + "calibration": { + "observed_rate": 0.0029017047515415306, + "mean_prediction": 0.0032004076354118596, + "calibration_in_the_large": 0.000298702883870329, + "expected_calibration_error_10bin": 0.001116080190797819, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 3, + "negatives": 2776, + "auroc": 0.7622478386167147, + "auprc": 0.08652675121389995, + "brier": 0.0010698327431463844, + "calibration": { + "observed_rate": 0.0010795250089960418, + "mean_prediction": 0.0014441246855436166, + "calibration_in_the_large": 0.00036459967654757486, + "expected_calibration_error_10bin": 0.00036459967654757486, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6942446043165468, + "auprc": 0.014192878197687789, + "brier": 0.0017980228188878918, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0021621925590434117, + "calibration_in_the_large": 0.00036686042259816923, + "expected_calibration_error_10bin": 0.00036686042259816923, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6268551236749117, + "auprc": 0.000946073793755913, + "brier": 0.00035468312664019134, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0005322133461261849, + "calibration_in_the_large": 0.00017898127265391365, + "expected_calibration_error_10bin": 0.00017898127265391365, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8652468621036201, + "auprc": 0.04447903053393385, + "brier": 0.006040873877267605, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.005785230125556117, + "calibration_in_the_large": -0.0003563883715537097, + "expected_calibration_error_10bin": 0.0016399715436069807, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8491648603850568, + "auprc": 0.057464725487159425, + "brier": 0.008112901183856427, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.006982906574138001, + "calibration_in_the_large": -0.001377689572717688, + "expected_calibration_error_10bin": 0.0016565715048372821, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.9066794415548864, + "auprc": 0.06958490405439995, + "brier": 0.004449763047809532, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.003217667231411177, + "calibration_in_the_large": -0.001387362878401079, + "expected_calibration_error_10bin": 0.0013873628784010798, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.7695336159903089, + "auprc": 0.015787768708534575, + "brier": 0.0045956398311637345, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003752804647664123, + "calibration_in_the_large": -0.0008784742978292862, + "expected_calibration_error_10bin": 0.0008784742978292862, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 27, + "negatives": 2674, + "auroc": 0.6610016897975013, + "auprc": 0.04084088332576163, + "brier": 0.009911107322835648, + "calibration": { + "observed_rate": 0.009996297667530544, + "mean_prediction": 0.00790157592098328, + "calibration_in_the_large": -0.002094721746547264, + "expected_calibration_error_10bin": 0.002978680707221288, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6297345132743363, + "auprc": 0.004079380684442092, + "brier": 0.001768624893724251, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0009173295185312451, + "calibration_in_the_large": -0.0008494549337655747, + "expected_calibration_error_10bin": 0.0008494549337655747, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6750012705188799, + "auprc": 0.007937834744695992, + "brier": 0.002780352506319194, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.004497268940524088, + "calibration_in_the_large": 0.002013237712702938, + "expected_calibration_error_10bin": 0.0020132377127029377, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6882255389718076, + "auprc": 0.010857255000870055, + "brier": 0.0010938747103784489, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0031133310942539957, + "calibration_in_the_large": 0.0020483683679494162, + "expected_calibration_error_10bin": 0.0020483683679494167, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.76429418742586, + "auprc": 0.029215024388392043, + "brier": 0.002119031506788152, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0016328393337198771, + "calibration_in_the_large": -0.0004978424844619409, + "expected_calibration_error_10bin": 0.0004978424844619409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 2, + "negatives": 2833, + "auroc": 0.8109777620896577, + "auprc": 0.01524817819331775, + "brier": 0.0007033331603888478, + "calibration": { + "observed_rate": 0.0007054673721340388, + "mean_prediction": 0.0008109970606529446, + "calibration_in_the_large": 0.00010552968851890577, + "expected_calibration_error_10bin": 0.00010552968851890577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 5.22481739087587e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0010372006343462336, + "calibration_in_the_large": 0.0010372006343462336, + "expected_calibration_error_10bin": 0.0010372006343462336, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 10, + "negatives": 2783, + "auroc": 0.6443406395975566, + "auprc": 0.005858375496478526, + "brier": 0.003585810260153513, + "calibration": { + "observed_rate": 0.0035803795202291443, + "mean_prediction": 0.003919832405290386, + "calibration_in_the_large": 0.0003394528850612418, + "expected_calibration_error_10bin": 0.0003394528850612418, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 15, + "negatives": 2783, + "auroc": 0.863935800694694, + "auprc": 0.03095183974023751, + "brier": 0.005294656196814933, + "calibration": { + "observed_rate": 0.005360972122944961, + "mean_prediction": 0.0032790749551259136, + "calibration_in_the_large": -0.0020818971678190474, + "expected_calibration_error_10bin": 0.002270732862661764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.9282327586206897, + "auprc": 0.11923556016477974, + "brier": 0.0017486721607417647, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0037309304635822584, + "calibration_in_the_large": 0.0019381732029153528, + "expected_calibration_error_10bin": 0.002349377205544657, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6570415040794608, + "auprc": 0.0036730115305145293, + "brier": 0.0017966546991373645, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0029202364315869225, + "calibration_in_the_large": 0.0011496981879608602, + "expected_calibration_error_10bin": 0.0011496981879608602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.770662227155013, + "auprc": 0.06517385425779042, + "brier": 0.003634389497061262, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.003703827762165559, + "calibration_in_the_large": 1.787125645232642e-05, + "expected_calibration_error_10bin": 1.787125645232642e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7440817790530847, + "auprc": 0.002238901340883174, + "brier": 0.0007181127994490124, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0009372118096962368, + "calibration_in_the_large": 0.00022036593156003607, + "expected_calibration_error_10bin": 0.00022036593156003607, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 7, + "negatives": 2726, + "auroc": 0.6712608741222094, + "auprc": 0.005362047756933078, + "brier": 0.0025781319783238985, + "calibration": { + "observed_rate": 0.002561287961946579, + "mean_prediction": 0.0020754106199604833, + "calibration_in_the_large": -0.0004858773419860957, + "expected_calibration_error_10bin": 0.0005608449749061581, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 25, + "negatives": 2649, + "auroc": 0.6683276708191771, + "auprc": 0.02291736256429162, + "brier": 0.009246625759227684, + "calibration": { + "observed_rate": 0.009349289454001496, + "mean_prediction": 0.0064402271417433165, + "calibration_in_the_large": -0.00290906231225818, + "expected_calibration_error_10bin": 0.003003424768127668, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9943262411347518, + "auprc": 0.058823529411764705, + "brier": 0.0003492168280282407, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0009995300705878023, + "calibration_in_the_large": 0.0006450458451358349, + "expected_calibration_error_10bin": 0.0006450458451358349, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 22, + "negatives": 2695, + "auroc": 0.6841457244054646, + "auprc": 0.03883485377071071, + "brier": 0.008021174709205632, + "calibration": { + "observed_rate": 0.008097165991902834, + "mean_prediction": 0.006743767206377202, + "calibration_in_the_large": -0.001353398785525632, + "expected_calibration_error_10bin": 0.0013533987855256326, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9679144385026738, + "auprc": 0.01098901098901099, + "brier": 0.0003566411997556702, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0008183251413899701, + "calibration_in_the_large": 0.0004619459539345175, + "expected_calibration_error_10bin": 0.0004619459539345175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.6511324558282936, + "auprc": 0.0019481058044002709, + "brier": 0.0010707607340713773, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001502100668491154, + "calibration_in_the_large": 0.0004360025874676999, + "expected_calibration_error_10bin": 0.0004360025874676999, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 4, + "negatives": 2739, + "auroc": 0.7630522088353414, + "auprc": 0.020431432269358382, + "brier": 0.0014485314514977386, + "calibration": { + "observed_rate": 0.0014582573824279985, + "mean_prediction": 0.0015766628683054865, + "calibration_in_the_large": 0.00011840548587748801, + "expected_calibration_error_10bin": 0.00011840548587748801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 7, + "negatives": 2683, + "auroc": 0.6903785740908365, + "auprc": 0.018072385269453674, + "brier": 0.0025919417151316687, + "calibration": { + "observed_rate": 0.0026022304832713753, + "mean_prediction": 0.003927363557428775, + "calibration_in_the_large": 0.0013251330741573994, + "expected_calibration_error_10bin": 0.0013251330741573994, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 1, + "negatives": 2784, + "auroc": 0.7848419540229885, + "auprc": 0.0016666666666666668, + "brier": 0.00036118724665940347, + "calibration": { + "observed_rate": 0.0003590664272890485, + "mean_prediction": 0.0013822903030177094, + "calibration_in_the_large": 0.001023223875728661, + "expected_calibration_error_10bin": 0.001023223875728661, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 29, + "negatives": 2538, + "auroc": 0.7062172223580881, + "auprc": 0.041393612713414615, + "brier": 0.011119201688228272, + "calibration": { + "observed_rate": 0.011297234125438255, + "mean_prediction": 0.012097192112607486, + "calibration_in_the_large": 0.0007999579871692305, + "expected_calibration_error_10bin": 0.0007999579871692316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 6, + "negatives": 2775, + "auroc": 0.7906906906906906, + "auprc": 0.03134192756346361, + "brier": 0.002141924482134548, + "calibration": { + "observed_rate": 0.002157497303128371, + "mean_prediction": 0.00227960967801652, + "calibration_in_the_large": 0.0001221123748881489, + "expected_calibration_error_10bin": 0.0001221123748881489, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 23, + "negatives": 2674, + "auroc": 0.7728203960846802, + "auprc": 0.050029751979468205, + "brier": 0.008346466507769155, + "calibration": { + "observed_rate": 0.008527994067482388, + "mean_prediction": 0.010410102748131282, + "calibration_in_the_large": 0.0018821086806488935, + "expected_calibration_error_10bin": 0.002467438436485723, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 8, + "negatives": 2697, + "auroc": 0.7207081942899518, + "auprc": 0.01055276595962003, + "brier": 0.0029864330204911597, + "calibration": { + "observed_rate": 0.0029574861367837337, + "mean_prediction": 0.0029181767757165008, + "calibration_in_the_large": -3.930936106723293e-05, + "expected_calibration_error_10bin": 0.00019467551673216688, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 3, + "negatives": 2815, + "auroc": 0.738898756660746, + "auprc": 0.03182567387266088, + "brier": 0.0010561611902242336, + "calibration": { + "observed_rate": 0.0010645848119233499, + "mean_prediction": 0.001578550064412893, + "calibration_in_the_large": 0.0005139652524895431, + "expected_calibration_error_10bin": 0.0005139652524895431, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5886583535985926, + "auprc": 0.0036268243638236533, + "brier": 0.002530264699540114, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0017150240488685955, + "calibration_in_the_large": -0.0008138776852354508, + "expected_calibration_error_10bin": 0.0008138776852354508, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 11, + "negatives": 2792, + "auroc": 0.784579317530607, + "auprc": 0.035955122766378696, + "brier": 0.003879891498073952, + "calibration": { + "observed_rate": 0.00392436674991081, + "mean_prediction": 0.0019206679778177925, + "calibration_in_the_large": -0.0020036987720930175, + "expected_calibration_error_10bin": 0.002169628044996803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.8109691160809371, + "auprc": 0.002735042735042735, + "brier": 0.000709291913300662, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0003034898669899236, + "calibration_in_the_large": -0.00040598157678446446, + "expected_calibration_error_10bin": 0.00040598157678446446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7969307637401856, + "auprc": 0.0028355165110989095, + "brier": 0.0007174118211778945, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0017221771354213476, + "calibration_in_the_large": 0.001008910373652446, + "expected_calibration_error_10bin": 0.001008910373652446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.603555005305978, + "auprc": 0.0023226017716364115, + "brier": 0.001432438686024645, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0015205954189306367, + "calibration_in_the_large": 0.00010766712504155164, + "expected_calibration_error_10bin": 0.00010766712504155164, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 7, + "negatives": 2749, + "auroc": 0.6341007119472016, + "auprc": 0.005002158610122613, + "brier": 0.0025518624063663093, + "calibration": { + "observed_rate": 0.0025399129172714078, + "mean_prediction": 0.0028813940853769262, + "calibration_in_the_large": 0.00034148116810551847, + "expected_calibration_error_10bin": 0.00034148116810551847, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8758931738711803, + "auprc": 0.02482780471264604, + "brier": 0.0024584720465103413, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0009466633830270992, + "calibration_in_the_large": -0.0015303359092588174, + "expected_calibration_error_10bin": 0.0015303359092588174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 64, + "negatives": 2228, + "auroc": 0.7994487769299821, + "auprc": 0.10931726968429334, + "brier": 0.026266201731707586, + "calibration": { + "observed_rate": 0.027923211169284468, + "mean_prediction": 0.023819029290141923, + "calibration_in_the_large": -0.004104181879142545, + "expected_calibration_error_10bin": 0.0093105142634863, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 32, + "negatives": 2408, + "auroc": 0.8626453488372093, + "auprc": 0.18427393503259365, + "brier": 0.012102343358988675, + "calibration": { + "observed_rate": 0.013114754098360656, + "mean_prediction": 0.006939920743369556, + "calibration_in_the_large": -0.0061748333549911, + "expected_calibration_error_10bin": 0.0061748333549911, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8139742673338098, + "auprc": 0.013191951756968145, + "brier": 0.0028421692217407432, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.00093646296341845, + "calibration_in_the_large": -0.001914570536225171, + "expected_calibration_error_10bin": 0.001914570536225171, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9230678466076696, + "auprc": 0.05112012419320864, + "brier": 0.002098260823902008, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0008641838687033059, + "calibration_in_the_large": -0.0012552085721303217, + "expected_calibration_error_10bin": 0.0012552085721303217, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.8140933572710951, + "auprc": 0.032281356432104134, + "brier": 0.0014256907336319612, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.002947298512849053, + "calibration_in_the_large": 0.0015130927043155282, + "expected_calibration_error_10bin": 0.0015130927043155282, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6678881008668243, + "auprc": 0.009605520295366283, + "brier": 0.0031859028460953214, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0026165337237256214, + "calibration_in_the_large": -0.0005648024374620775, + "expected_calibration_error_10bin": 0.0005648024374620775, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8298891669646049, + "auprc": 0.03235263282262269, + "brier": 0.003529897867597465, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0023020934134552837, + "calibration_in_the_large": -0.0012604288523088772, + "expected_calibration_error_10bin": 0.0012604288523088772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 61, + "negatives": 2459, + "auroc": 0.7638117587450584, + "auprc": 0.06933488614930286, + "brier": 0.023170302792466416, + "calibration": { + "observed_rate": 0.024206349206349207, + "mean_prediction": 0.02077984103941292, + "calibration_in_the_large": -0.003426508166936286, + "expected_calibration_error_10bin": 0.004297088150679696, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 13, + "negatives": 2593, + "auroc": 0.8173188169331632, + "auprc": 0.02775476997776301, + "brier": 0.004964727491276633, + "calibration": { + "observed_rate": 0.0049884881043745204, + "mean_prediction": 0.005418408471818557, + "calibration_in_the_large": 0.00042992036744403644, + "expected_calibration_error_10bin": 0.0004299203674440362, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9821365405022993, + "auprc": 0.028309409888357256, + "brier": 0.000701069598575486, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007918221217313937, + "calibration_in_the_large": 8.485853035634949e-05, + "expected_calibration_error_10bin": 8.485853035634949e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7829041487839771, + "auprc": 0.004143740086646661, + "brier": 0.0010730095096617939, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.0010710187864639673, + "calibration_in_the_large": -7.925747364614412e-07, + "expected_calibration_error_10bin": 7.925747364614412e-07, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.997954711468225, + "auprc": 0.3579365079365079, + "brier": 0.0015433664799815597, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0009692339068559324, + "calibration_in_the_large": -0.0008535878211790659, + "expected_calibration_error_10bin": 0.0014765776435605028, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.0004042666211017674, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0005626239861076591, + "calibration_in_the_large": 0.00018555007962198791, + "expected_calibration_error_10bin": 0.00018555007962198797, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.8758903133903134, + "auprc": 0.0041894702038614475, + "brier": 0.0007112370222623684, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0010545385428958592, + "calibration_in_the_large": 0.00034279477065386624, + "expected_calibration_error_10bin": 0.00034279477065386624, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 1.6326899924829666e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0019821807904731857, + "calibration_in_the_large": 0.0019821807904731857, + "expected_calibration_error_10bin": 0.0019821807904731857, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "180": { + "A04": { + "valid": 2782, + "positives": 21, + "negatives": 2761, + "auroc": 0.7767372070160915, + "auprc": 0.0744735837459537, + "brier": 0.007440500595193437, + "calibration": { + "observed_rate": 0.007548526240115025, + "mean_prediction": 0.006553028986665025, + "calibration_in_the_large": -0.0009954972534500003, + "expected_calibration_error_10bin": 0.0019962311402023447, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8490462156297568, + "auprc": 0.12884396221891692, + "brier": 0.0037886848833883287, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0036514960208794407, + "calibration_in_the_large": -0.0002519816228395088, + "expected_calibration_error_10bin": 0.0002519816228395088, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 49, + "negatives": 2615, + "auroc": 0.743380028875795, + "auprc": 0.058064491006619874, + "brier": 0.018051979182200348, + "calibration": { + "observed_rate": 0.01839339339339339, + "mean_prediction": 0.01785226628462815, + "calibration_in_the_large": -0.0005411271087652422, + "expected_calibration_error_10bin": 0.005407455881605083, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.7202888257575758, + "auprc": 0.019294336820110017, + "brier": 0.0011481645282388347, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0018500097339401195, + "calibration_in_the_large": 0.0007858025682785374, + "expected_calibration_error_10bin": 0.0007858025682785374, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6077113547930668, + "auprc": 0.0009009009009009009, + "brier": 0.00035640506983005923, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0006583374040361594, + "calibration_in_the_large": 0.0003047306147858058, + "expected_calibration_error_10bin": 0.0003047306147858058, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9574360821029888, + "auprc": 0.10684301657193825, + "brier": 0.0016992191207526365, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0018863615104113003, + "calibration_in_the_large": 8.909335800296098e-05, + "expected_calibration_error_10bin": 0.0004560635851892862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 15, + "negatives": 2748, + "auroc": 0.870790878214459, + "auprc": 0.08827728123425166, + "brier": 0.005300587930085894, + "calibration": { + "observed_rate": 0.0054288816503800215, + "mean_prediction": 0.0016076469993701419, + "calibration_in_the_large": -0.0038212346510098794, + "expected_calibration_error_10bin": 0.003907413950076225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9904458598726115, + "auprc": 0.262987012987013, + "brier": 0.001039466775918907, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.00022640971132849134, + "calibration_in_the_large": -0.000834035675734075, + "expected_calibration_error_10bin": 0.000834035675734075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.9765652635302441, + "auprc": 0.05450904816576458, + "brier": 0.0013905487888109746, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009670926364411879, + "calibration_in_the_large": -0.00044583565744789723, + "expected_calibration_error_10bin": 0.00044583565744789723, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 8.42271160407132e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001380460169950275, + "calibration_in_the_large": 0.001380460169950275, + "expected_calibration_error_10bin": 0.001380460169950275, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.7475593334455479, + "auprc": 0.028786675859695195, + "brier": 0.009372809660279728, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.008278200939862552, + "calibration_in_the_large": -0.0011148626439524776, + "expected_calibration_error_10bin": 0.00339385900628721, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 42, + "negatives": 2636, + "auroc": 0.6998789652431534, + "auprc": 0.028295949330980515, + "brier": 0.01583167934208724, + "calibration": { + "observed_rate": 0.01568334578043316, + "mean_prediction": 0.016538948102067498, + "calibration_in_the_large": 0.0008556023216343377, + "expected_calibration_error_10bin": 0.00434660957981103, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 61, + "negatives": 2569, + "auroc": 0.7649209681639216, + "auprc": 0.06771074662480428, + "brier": 0.022259147907222596, + "calibration": { + "observed_rate": 0.023193916349809884, + "mean_prediction": 0.01911709165023976, + "calibration_in_the_large": -0.004076824699570124, + "expected_calibration_error_10bin": 0.007130880152143561, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.7845772904138663, + "auprc": 0.001639344262295082, + "brier": 0.00036297076356351613, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0007535371984231512, + "calibration_in_the_large": 0.00039993040917279753, + "expected_calibration_error_10bin": 0.00039993040917279753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.981218993621545, + "auprc": 0.026992753623188405, + "brier": 0.0007028847792905197, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005704918689498499, + "calibration_in_the_large": -0.00013772342850057505, + "expected_calibration_error_10bin": 0.00013772342850057505, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.916993231207695, + "auprc": 0.03193994916317965, + "brier": 0.0017732247153342863, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0006629204358688685, + "calibration_in_the_large": -0.001115173447488173, + "expected_calibration_error_10bin": 0.0011975852627163703, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9873530459565373, + "auprc": 0.2638888888888889, + "brier": 0.0006529535111257014, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0006984912777110494, + "calibration_in_the_large": -1.3505874300342546e-05, + "expected_calibration_error_10bin": 0.00047570996867864326, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9568319657509811, + "auprc": 0.023796979276431332, + "brier": 0.0007089489845160815, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0010332203257679869, + "calibration_in_the_large": 0.0003202078480496268, + "expected_calibration_error_10bin": 0.0003202078480496268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.052667578659370724, + "brier": 0.0007007061140591298, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0005544384341871185, + "calibration_in_the_large": -0.0001525251571879257, + "expected_calibration_error_10bin": 0.0001525251571879257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 16, + "negatives": 2746, + "auroc": 0.8813956664238893, + "auprc": 0.10658950116318715, + "brier": 0.005556043037669748, + "calibration": { + "observed_rate": 0.005792903692976104, + "mean_prediction": 0.0038292877000528714, + "calibration_in_the_large": -0.0019636159929232325, + "expected_calibration_error_10bin": 0.0026145222525259244, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8791847230820515, + "auprc": 0.09571575206467467, + "brier": 0.008037776367430954, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.006108713282347859, + "calibration_in_the_large": -0.0022185857763052912, + "expected_calibration_error_10bin": 0.004974175154867324, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 16, + "negatives": 2735, + "auroc": 0.8829981718464351, + "auprc": 0.13263295291745117, + "brier": 0.00631659789586536, + "calibration": { + "observed_rate": 0.0058160668847691745, + "mean_prediction": 0.008198203238245756, + "calibration_in_the_large": 0.0023821363534765813, + "expected_calibration_error_10bin": 0.004653280277691631, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 6.315687964132438e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008425075477783733, + "calibration_in_the_large": 0.0008425075477783733, + "expected_calibration_error_10bin": 0.0008425075477783733, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9333333333333333, + "auprc": 0.5026737967914439, + "brier": 0.0007055408877588645, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.000633476610034989, + "calibration_in_the_large": -8.285576818850668e-05, + "expected_calibration_error_10bin": 8.285576818850668e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.5332138590203106, + "auprc": 0.0028578043564722543, + "brier": 0.0022092501615584223, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.00390927838405102, + "calibration_in_the_large": 0.0017633556372699038, + "expected_calibration_error_10bin": 0.001763355637269904, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 42, + "negatives": 2621, + "auroc": 0.8027107065641976, + "auprc": 0.09724168165291222, + "brier": 0.014951214908256726, + "calibration": { + "observed_rate": 0.015771686068343973, + "mean_prediction": 0.01193767936570564, + "calibration_in_the_large": -0.003834006702638332, + "expected_calibration_error_10bin": 0.003834006702638333, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 12, + "negatives": 2793, + "auroc": 0.8380474997016351, + "auprc": 0.029382665167585514, + "brier": 0.004301948701060056, + "calibration": { + "observed_rate": 0.0042780748663101605, + "mean_prediction": 0.005170555098633739, + "calibration_in_the_large": 0.0008924802323235781, + "expected_calibration_error_10bin": 0.0008924802323235785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9929453262786596, + "auprc": 0.047619047619047616, + "brier": 0.0003483918259910983, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0006850238979004785, + "calibration_in_the_large": 0.0003324145890147239, + "expected_calibration_error_10bin": 0.0003324145890147239, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 24, + "negatives": 2749, + "auroc": 0.8756669091790954, + "auprc": 0.12002275651493259, + "brier": 0.008289558497179241, + "calibration": { + "observed_rate": 0.00865488640461594, + "mean_prediction": 0.008668376604795242, + "calibration_in_the_large": 1.3490200179301637e-05, + "expected_calibration_error_10bin": 0.003472966033107358, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 49, + "negatives": 2450, + "auroc": 0.8119200333194502, + "auprc": 0.08019376161547201, + "brier": 0.018641036015073106, + "calibration": { + "observed_rate": 0.0196078431372549, + "mean_prediction": 0.01948449082771635, + "calibration_in_the_large": -0.00012335230953855122, + "expected_calibration_error_10bin": 0.0006573380863138621, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 62, + "negatives": 2624, + "auroc": 0.863142948465775, + "auprc": 0.12240334576965897, + "brier": 0.02186802032170185, + "calibration": { + "observed_rate": 0.02308265078183172, + "mean_prediction": 0.018352799108163093, + "calibration_in_the_large": -0.004729851673668628, + "expected_calibration_error_10bin": 0.011854696054639935, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 89, + "negatives": 2345, + "auroc": 0.8182650152128602, + "auprc": 0.15657716310721248, + "brier": 0.03293843180649658, + "calibration": { + "observed_rate": 0.03656532456861134, + "mean_prediction": 0.03400643404164553, + "calibration_in_the_large": -0.0025588905269658124, + "expected_calibration_error_10bin": 0.00367117151748098, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9603062426383981, + "auprc": 0.022599861235008428, + "brier": 0.001053686462058443, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0009571316754052126, + "calibration_in_the_large": -0.0001018164361373218, + "expected_calibration_error_10bin": 0.0001018164361373218, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 44, + "negatives": 2638, + "auroc": 0.7969536149975877, + "auprc": 0.0738435347214703, + "brier": 0.015970969219040357, + "calibration": { + "observed_rate": 0.01640566741237882, + "mean_prediction": 0.009342947154782736, + "calibration_in_the_large": -0.007062720257596085, + "expected_calibration_error_10bin": 0.008568563558099013, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 60, + "negatives": 2526, + "auroc": 0.8512140406439694, + "auprc": 0.2185664243765629, + "brier": 0.020425869524338374, + "calibration": { + "observed_rate": 0.02320185614849188, + "mean_prediction": 0.01386646453390959, + "calibration_in_the_large": -0.009335391614582288, + "expected_calibration_error_10bin": 0.011128960627517007, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.883084004602992, + "auprc": 0.1811658841923935, + "brier": 0.007981340724656918, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.008653525370924666, + "calibration_in_the_large": 0.0007597327623850188, + "expected_calibration_error_10bin": 0.0059860497556853, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 46, + "negatives": 2549, + "auroc": 0.708402271990721, + "auprc": 0.0686432336617789, + "brier": 0.0171936707994264, + "calibration": { + "observed_rate": 0.017726396917148363, + "mean_prediction": 0.01672304495369436, + "calibration_in_the_large": -0.0010033519634540036, + "expected_calibration_error_10bin": 0.0026155455042549763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8109417464256173, + "auprc": 0.03677580742798134, + "brier": 0.0010619977320263892, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010848539121158162, + "calibration_in_the_large": 2.2530965940178744e-05, + "expected_calibration_error_10bin": 7.54439472915329e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.8468882602545968, + "auprc": 0.005306873363862833, + "brier": 0.00106322302119167, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.001185949191079657, + "calibration_in_the_large": 0.00012625297066284316, + "expected_calibration_error_10bin": 0.00012625297066284316, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9875560273649445, + "auprc": 0.09960972877639544, + "brier": 0.0020522993553681802, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0011237014086648582, + "calibration_in_the_large": -0.000994942659131752, + "expected_calibration_error_10bin": 0.0014685523373685304, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7148148148148148, + "auprc": 0.007788018433179724, + "brier": 0.0009403289482036849, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0014977020993768128, + "calibration_in_the_large": 0.0007927320606034607, + "expected_calibration_error_10bin": 0.00109072356082378, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 18, + "negatives": 2462, + "auroc": 0.7866007762433432, + "auprc": 0.027966445914145908, + "brier": 0.0071716836617183605, + "calibration": { + "observed_rate": 0.007258064516129033, + "mean_prediction": 0.0037961231600899823, + "calibration_in_the_large": -0.0034619413560390503, + "expected_calibration_error_10bin": 0.0034619413560390503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.804370531051659, + "auprc": 0.010234018942221333, + "brier": 0.0032299698467063783, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.0018681050947555844, + "calibration_in_the_large": -0.0013751381484876587, + "expected_calibration_error_10bin": 0.0013751381484876587, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.2045292439372325, + "auprc": 0.0006637107190537965, + "brier": 0.0007152157101347351, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0009306031449029581, + "calibration_in_the_large": 0.0002178447699920529, + "expected_calibration_error_10bin": 0.0002178447699920529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 15, + "negatives": 2179, + "auroc": 0.7674162459843965, + "auprc": 0.059158028238614976, + "brier": 0.00670627775795418, + "calibration": { + "observed_rate": 0.0068368277119416595, + "mean_prediction": 0.005240474801599229, + "calibration_in_the_large": -0.0015963529103424304, + "expected_calibration_error_10bin": 0.001743047086085248, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 5, + "negatives": 2811, + "auroc": 0.5607968694414799, + "auprc": 0.0023649746032298386, + "brier": 0.0017933749501155213, + "calibration": { + "observed_rate": 0.0017755681818181818, + "mean_prediction": 0.0022507046620228784, + "calibration_in_the_large": 0.00047513648020469667, + "expected_calibration_error_10bin": 0.00047513648020469667, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 1, + "negatives": 2813, + "auroc": 0.9946676146462851, + "auprc": 0.0625, + "brier": 0.0003505851427530414, + "calibration": { + "observed_rate": 0.00035536602700781805, + "mean_prediction": 0.0011456410571846255, + "calibration_in_the_large": 0.0007902750301768075, + "expected_calibration_error_10bin": 0.0007902750301768075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8293991416309013, + "auprc": 0.010736847704858068, + "brier": 0.0021846035571440946, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.00432659124698233, + "calibration_in_the_large": 0.0021852636238559914, + "expected_calibration_error_10bin": 0.0021852636238559914, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 5, + "negatives": 2806, + "auroc": 0.7491090520313614, + "auprc": 0.004860932118915356, + "brier": 0.001794122268947555, + "calibration": { + "observed_rate": 0.0017787264318747777, + "mean_prediction": 0.0019663717814419907, + "calibration_in_the_large": 0.00018764534956721302, + "expected_calibration_error_10bin": 0.00018764534956721302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 32, + "negatives": 2716, + "auroc": 0.8267212812960235, + "auprc": 0.07182627002594931, + "brier": 0.011441585020691699, + "calibration": { + "observed_rate": 0.011644832605531296, + "mean_prediction": 0.011949889092671766, + "calibration_in_the_large": 0.00030505648714047005, + "expected_calibration_error_10bin": 0.0033815239782096188, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 15, + "negatives": 2785, + "auroc": 0.7657450628366248, + "auprc": 0.017322112468751916, + "brier": 0.005440768220344047, + "calibration": { + "observed_rate": 0.005357142857142857, + "mean_prediction": 0.007427534448911501, + "calibration_in_the_large": 0.002070391591768644, + "expected_calibration_error_10bin": 0.0020703915917686436, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 30, + "negatives": 2742, + "auroc": 0.8267930950644299, + "auprc": 0.1035632762512836, + "brier": 0.010404042984706652, + "calibration": { + "observed_rate": 0.010822510822510822, + "mean_prediction": 0.010339950287892499, + "calibration_in_the_large": -0.0004825605346183235, + "expected_calibration_error_10bin": 0.002723201429379486, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8245535714285714, + "auprc": 0.006484515102814876, + "brier": 0.0014303926998857073, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0019422714041502688, + "calibration_in_the_large": 0.0005157378806124656, + "expected_calibration_error_10bin": 0.0005157378806124656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 21, + "negatives": 2716, + "auroc": 0.5863665053650327, + "auprc": 0.013828447276269978, + "brier": 0.007650191040387636, + "calibration": { + "observed_rate": 0.0076726342710997444, + "mean_prediction": 0.005955340544715545, + "calibration_in_the_large": -0.0017172937263841993, + "expected_calibration_error_10bin": 0.0018063523319469378, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 29, + "negatives": 2342, + "auroc": 0.7632880826879472, + "auprc": 0.03646920931551849, + "brier": 0.012006899571770513, + "calibration": { + "observed_rate": 0.012231126107127795, + "mean_prediction": 0.012459817076082161, + "calibration_in_the_large": 0.00022869096895436654, + "expected_calibration_error_10bin": 0.0006599258769560654, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 31, + "negatives": 1541, + "auroc": 0.724016662828913, + "auprc": 0.06603139983319342, + "brier": 0.019441287650276716, + "calibration": { + "observed_rate": 0.019720101781170483, + "mean_prediction": 0.019392170586277173, + "calibration_in_the_large": -0.0003279311948933099, + "expected_calibration_error_10bin": 0.006288494710175476, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 4, + "negatives": 2819, + "auroc": 0.9577864490954239, + "auprc": 0.019518913826711365, + "brier": 0.0014481490699773624, + "calibration": { + "observed_rate": 0.0014169323414806943, + "mean_prediction": 0.0019469724585264503, + "calibration_in_the_large": 0.000530040117045756, + "expected_calibration_error_10bin": 0.0005300401170457561, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 58, + "negatives": 2595, + "auroc": 0.7957212145372401, + "auprc": 0.12694802640570185, + "brier": 0.02037528373838612, + "calibration": { + "observed_rate": 0.02186204297022239, + "mean_prediction": 0.017193093162052447, + "calibration_in_the_large": -0.004668949808169943, + "expected_calibration_error_10bin": 0.006753200207529061, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 71, + "negatives": 2516, + "auroc": 0.8056046933428872, + "auprc": 0.09742959321509174, + "brier": 0.025701940541074893, + "calibration": { + "observed_rate": 0.027444916892153073, + "mean_prediction": 0.025965078350741636, + "calibration_in_the_large": -0.0014798385414114372, + "expected_calibration_error_10bin": 0.0038599679160932114, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 107, + "negatives": 2078, + "auroc": 0.77328577982064, + "auprc": 0.16990779395165073, + "brier": 0.04426863994971466, + "calibration": { + "observed_rate": 0.04897025171624714, + "mean_prediction": 0.033172913210660175, + "calibration_in_the_large": -0.015797338505586962, + "expected_calibration_error_10bin": 0.01920107282076518, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7885286783042394, + "auprc": 0.07764425714773478, + "brier": 0.003462608976880014, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.0034932314658936282, + "calibration_in_the_large": -5.664428845496977e-05, + "expected_calibration_error_10bin": 0.000481308916504714, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6969369369369369, + "auprc": 0.003996612880324185, + "brier": 0.001797453208951135, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0018515905873133804, + "calibration_in_the_large": 5.302943623424362e-05, + "expected_calibration_error_10bin": 5.302943623424362e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.8288674526616648, + "auprc": 0.014187090670205972, + "brier": 0.0010965669492796499, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.002167656201101355, + "calibration_in_the_large": 0.001096992389538186, + "expected_calibration_error_10bin": 0.0010969923895381862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 12, + "negatives": 2727, + "auroc": 0.8577191052438577, + "auprc": 0.02099349217902592, + "brier": 0.0044161698298019235, + "calibration": { + "observed_rate": 0.004381161007667032, + "mean_prediction": 0.005236872250212449, + "calibration_in_the_large": 0.0008557112425454172, + "expected_calibration_error_10bin": 0.0008557112425454166, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 19, + "negatives": 2731, + "auroc": 0.7341247663281235, + "auprc": 0.015970361675810535, + "brier": 0.006980932110557678, + "calibration": { + "observed_rate": 0.006909090909090909, + "mean_prediction": 0.009408866147472756, + "calibration_in_the_large": 0.0024997752383818473, + "expected_calibration_error_10bin": 0.0024997752383818473, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46797593772116064, + "auprc": 0.0011671850990318728, + "brier": 0.0007190057641583917, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0018468876244812828, + "calibration_in_the_large": 0.0011396740459805755, + "expected_calibration_error_10bin": 0.0011396740459805755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 10, + "negatives": 2550, + "auroc": 0.7737254901960784, + "auprc": 0.08474211314503084, + "brier": 0.0037893785361247474, + "calibration": { + "observed_rate": 0.00390625, + "mean_prediction": 0.005851610794471185, + "calibration_in_the_large": 0.0019453607944711852, + "expected_calibration_error_10bin": 0.0024611166716027814, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 8, + "negatives": 2733, + "auroc": 0.8503018660812294, + "auprc": 0.02939424280154243, + "brier": 0.0030236452833184418, + "calibration": { + "observed_rate": 0.002918642831083546, + "mean_prediction": 0.004087503254197828, + "calibration_in_the_large": 0.0011688604231142818, + "expected_calibration_error_10bin": 0.0011688604231142818, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 11, + "negatives": 2766, + "auroc": 0.9181949648327089, + "auprc": 0.030752401758247307, + "brier": 0.0039090819727782755, + "calibration": { + "observed_rate": 0.003961109110550955, + "mean_prediction": 0.00321796859924881, + "calibration_in_the_large": -0.0007431405113021445, + "expected_calibration_error_10bin": 0.0008362785102986141, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9437245020398368, + "auprc": 0.04042832998389109, + "brier": 0.003192292532541003, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0013922316524076254, + "calibration_in_the_large": -0.0018370471419949582, + "expected_calibration_error_10bin": 0.0018370471419949582, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9364572239971601, + "auprc": 0.0271981114960141, + "brier": 0.0021116651703970775, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0005854992357358092, + "calibration_in_the_large": -0.0015398992764852322, + "expected_calibration_error_10bin": 0.0015398992764852322, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 25, + "negatives": 2401, + "auroc": 0.8882465639316951, + "auprc": 0.11943435108590178, + "brier": 0.009602414913448593, + "calibration": { + "observed_rate": 0.010305028854080791, + "mean_prediction": 0.009965887331836726, + "calibration_in_the_large": -0.0003391415222440651, + "expected_calibration_error_10bin": 0.0016597546547203479, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.9414546757434611, + "auprc": 0.16244174605607908, + "brier": 0.003412901964719853, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.001844428277666893, + "calibration_in_the_large": -0.0017257252389343211, + "expected_calibration_error_10bin": 0.0017257252389343211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6915032679738562, + "auprc": 0.015193160110779043, + "brier": 0.0010641917528977514, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0008514928502208647, + "calibration_in_the_large": -0.00021688321815520383, + "expected_calibration_error_10bin": 0.00021688321815520383, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6368794326241135, + "auprc": 0.000975609756097561, + "brier": 0.000358757232196191, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0010198655570014424, + "calibration_in_the_large": 0.000665381331549475, + "expected_calibration_error_10bin": 0.000665381331549475, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9237689393939394, + "auprc": 0.010916978501724265, + "brier": 0.0010629950105561351, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011182033125918095, + "calibration_in_the_large": 5.399614693022748e-05, + "expected_calibration_error_10bin": 5.399614693022748e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6870310825294748, + "auprc": 0.010330293579430763, + "brier": 0.002488199053750305, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.000739479714183713, + "calibration_in_the_large": -0.0017551745980044554, + "expected_calibration_error_10bin": 0.0017551745980044554, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8699374079528719, + "auprc": 0.018574011504035218, + "brier": 0.0029118966909598646, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.0027080651387105517, + "calibration_in_the_large": -0.00022879242369767136, + "expected_calibration_error_10bin": 0.00022879242369767136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 47, + "negatives": 2153, + "auroc": 0.7045389412101867, + "auprc": 0.05534431293694901, + "brier": 0.021009492971651517, + "calibration": { + "observed_rate": 0.021363636363636362, + "mean_prediction": 0.024982108914912468, + "calibration_in_the_large": 0.0036184725512761057, + "expected_calibration_error_10bin": 0.0037157709616903152, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 9, + "negatives": 2791, + "auroc": 0.7969664397468053, + "auprc": 0.025732632604988596, + "brier": 0.003192123666652049, + "calibration": { + "observed_rate": 0.0032142857142857142, + "mean_prediction": 0.003178717904621798, + "calibration_in_the_large": -3.5567809663916445e-05, + "expected_calibration_error_10bin": 0.00010981919427129991, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7585561922954474, + "auprc": 0.013988162043192464, + "brier": 0.0031954839703257185, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.002664169602188955, + "calibration_in_the_large": -0.0005489685627521374, + "expected_calibration_error_10bin": 0.0005489685627521374, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 66, + "negatives": 2181, + "auroc": 0.7409375738124019, + "auprc": 0.11505154965265182, + "brier": 0.027511402621962108, + "calibration": { + "observed_rate": 0.029372496662216287, + "mean_prediction": 0.029278308049534022, + "calibration_in_the_large": -9.418861268226456e-05, + "expected_calibration_error_10bin": 0.0007055547207753089, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.7563695732155997, + "auprc": 0.035263847503031714, + "brier": 0.005781633502708859, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.007462354593604718, + "calibration_in_the_large": 0.0016101234304737744, + "expected_calibration_error_10bin": 0.0017399350924253184, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9382154283682901, + "auprc": 0.021584978690106556, + "brier": 0.0017966963106144924, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0026429281105661874, + "calibration_in_the_large": 0.0008686200906939377, + "expected_calibration_error_10bin": 0.0008686200906939378, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9320809248554913, + "auprc": 0.026136341236726344, + "brier": 0.002501926654816652, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.000993594452911484, + "calibration_in_the_large": -0.0015289280696110384, + "expected_calibration_error_10bin": 0.0015289280696110384, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 4, + "negatives": 2770, + "auroc": 0.6530685920577617, + "auprc": 0.002989771683653898, + "brier": 0.0014706919758825964, + "calibration": { + "observed_rate": 0.0014419610670511895, + "mean_prediction": 0.002745906909849319, + "calibration_in_the_large": 0.0013039458427981294, + "expected_calibration_error_10bin": 0.0013039458427981294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8236240171551108, + "auprc": 0.006442974236024504, + "brier": 0.0014469457736137517, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0026333803822351297, + "calibration_in_the_large": 0.0012058286334842374, + "expected_calibration_error_10bin": 0.0012058286334842374, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 20, + "negatives": 2703, + "auroc": 0.7605253422123567, + "auprc": 0.04248100396587039, + "brier": 0.007226864316475374, + "calibration": { + "observed_rate": 0.007344840249724568, + "mean_prediction": 0.0046530920549141845, + "calibration_in_the_large": -0.002691748194810384, + "expected_calibration_error_10bin": 0.003175752537931128, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 11, + "negatives": 2714, + "auroc": 0.7341729751457091, + "auprc": 0.020812716672370772, + "brier": 0.00401214229491147, + "calibration": { + "observed_rate": 0.004036697247706422, + "mean_prediction": 0.0026806237304571445, + "calibration_in_the_large": -0.0013560735172492774, + "expected_calibration_error_10bin": 0.0013560735172492774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 4, + "negatives": 2801, + "auroc": 0.5738129239557301, + "auprc": 0.005442989164624414, + "brier": 0.0014416930210681782, + "calibration": { + "observed_rate": 0.00142602495543672, + "mean_prediction": 0.0014642893442992878, + "calibration_in_the_large": 3.8264388862567673e-05, + "expected_calibration_error_10bin": 3.8264388862567673e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 70, + "negatives": 2245, + "auroc": 0.7145084314349348, + "auprc": 0.07919020531454989, + "brier": 0.02888631198537365, + "calibration": { + "observed_rate": 0.03023758099352052, + "mean_prediction": 0.020035087018426895, + "calibration_in_the_large": -0.010202493975093624, + "expected_calibration_error_10bin": 0.011669983270171512, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 7.629154324785673e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00039381840255612156, + "calibration_in_the_large": 0.00039381840255612156, + "expected_calibration_error_10bin": 0.00039381840255612156, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 28, + "negatives": 2723, + "auroc": 0.8983526572582761, + "auprc": 0.11874558579018095, + "brier": 0.009577039819084917, + "calibration": { + "observed_rate": 0.010178117048346057, + "mean_prediction": 0.00629839744525637, + "calibration_in_the_large": -0.003879719603089687, + "expected_calibration_error_10bin": 0.0048070026846959175, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.7388668827271636, + "auprc": 0.031203435393408478, + "brier": 0.004261040201485102, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.002077936570808311, + "calibration_in_the_large": -0.0022246808547922627, + "expected_calibration_error_10bin": 0.0022246808547922627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.727756114852889, + "auprc": 0.007751590264424049, + "brier": 0.0010625117733469465, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0010024992465868523, + "calibration_in_the_large": -5.9823699588785204e-05, + "expected_calibration_error_10bin": 5.9823699588785204e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 45, + "negatives": 2492, + "auroc": 0.773729266987694, + "auprc": 0.09745396803297311, + "brier": 0.01712819749063453, + "calibration": { + "observed_rate": 0.017737485218762318, + "mean_prediction": 0.02332684666412301, + "calibration_in_the_large": 0.00558936144536069, + "expected_calibration_error_10bin": 0.005611835168750073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.1222822099446624e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015506102997890087, + "calibration_in_the_large": 0.0015506102997890087, + "expected_calibration_error_10bin": 0.0015506102997890087, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 32, + "negatives": 2701, + "auroc": 0.7756849315068494, + "auprc": 0.06498278770449031, + "brier": 0.011464291193710854, + "calibration": { + "observed_rate": 0.011708744968898645, + "mean_prediction": 0.011709624851114169, + "calibration_in_the_large": 8.798822155233615e-07, + "expected_calibration_error_10bin": 0.0019888077965835808, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 37, + "negatives": 2619, + "auroc": 0.7887887887887888, + "auprc": 0.04964142157625119, + "brier": 0.013552913351904727, + "calibration": { + "observed_rate": 0.013930722891566265, + "mean_prediction": 0.010258007765914734, + "calibration_in_the_large": -0.003672715125651531, + "expected_calibration_error_10bin": 0.0042409070055853875, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 4.0414677874490125e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0002810930327775824, + "calibration_in_the_large": 0.0002810930327775824, + "expected_calibration_error_10bin": 0.0002810930327775824, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 4, + "negatives": 2828, + "auroc": 0.8271746817538896, + "auprc": 0.006817294556861539, + "brier": 0.001410257200840031, + "calibration": { + "observed_rate": 0.0014124293785310734, + "mean_prediction": 0.0006336514313655161, + "calibration_in_the_large": -0.0007787779471655574, + "expected_calibration_error_10bin": 0.0007787779471655574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 5.282971519299814e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011655181483712035, + "calibration_in_the_large": 0.0011655181483712035, + "expected_calibration_error_10bin": 0.0011655181483712035, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.5016952177016417, + "auprc": 0.004298710027883365, + "brier": 0.001424477769231597, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0007851593168562365, + "calibration_in_the_large": -0.000640357432965574, + "expected_calibration_error_10bin": 0.000640357432965574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 5, + "negatives": 2745, + "auroc": 0.8070673952641165, + "auprc": 0.010223842809073581, + "brier": 0.001828241093274867, + "calibration": { + "observed_rate": 0.0018181818181818182, + "mean_prediction": 0.0031249461064733787, + "calibration_in_the_large": 0.0013067642882915605, + "expected_calibration_error_10bin": 0.0013067642882915605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 9, + "negatives": 2781, + "auroc": 0.6531223780414719, + "auprc": 0.0141416704750921, + "brier": 0.0032112988323691957, + "calibration": { + "observed_rate": 0.0032258064516129032, + "mean_prediction": 0.00326117683477628, + "calibration_in_the_large": 3.537038316337674e-05, + "expected_calibration_error_10bin": 3.537038316337674e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.393836836480228, + "auprc": 0.0008836670915504093, + "brier": 0.0007211652769488582, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0015980366869927786, + "calibration_in_the_large": 0.0008860395349813866, + "expected_calibration_error_10bin": 0.0008860395349813866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 5, + "negatives": 2786, + "auroc": 0.8062455132806892, + "auprc": 0.006163327842865518, + "brier": 0.0017873735206248781, + "calibration": { + "observed_rate": 0.0017914725904693658, + "mean_prediction": 0.0015037249619088869, + "calibration_in_the_large": -0.00028774762856047893, + "expected_calibration_error_10bin": 0.00028774762856047893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 5, + "negatives": 2818, + "auroc": 0.9170333569907736, + "auprc": 0.01417400290181436, + "brier": 0.0017680425009121037, + "calibration": { + "observed_rate": 0.001771165426850868, + "mean_prediction": 0.0010021958674269514, + "calibration_in_the_large": -0.0007689695594239165, + "expected_calibration_error_10bin": 0.0007689695594239165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 8, + "negatives": 2759, + "auroc": 0.8751812250815513, + "auprc": 0.020297018725911074, + "brier": 0.0030992930661274324, + "calibration": { + "observed_rate": 0.0028912179255511385, + "mean_prediction": 0.006407340800594807, + "calibration_in_the_large": 0.003516122875043668, + "expected_calibration_error_10bin": 0.0035161228750436677, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 33, + "negatives": 1465, + "auroc": 0.6834626124728513, + "auprc": 0.06045863642660988, + "brier": 0.021455194894135953, + "calibration": { + "observed_rate": 0.022029372496662217, + "mean_prediction": 0.013050899476821483, + "calibration_in_the_large": -0.008978473019840734, + "expected_calibration_error_10bin": 0.0109215625553031, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 32, + "negatives": 2644, + "auroc": 0.8301579046898638, + "auprc": 0.046095093788273436, + "brier": 0.011681657146168038, + "calibration": { + "observed_rate": 0.01195814648729447, + "mean_prediction": 0.008585284005549839, + "calibration_in_the_large": -0.003372862481744631, + "expected_calibration_error_10bin": 0.004021502667027357, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 19, + "negatives": 2533, + "auroc": 0.8249838967731211, + "auprc": 0.11292602777842178, + "brier": 0.007210910287946637, + "calibration": { + "observed_rate": 0.007445141065830721, + "mean_prediction": 0.005058650308125256, + "calibration_in_the_large": -0.002386490757705465, + "expected_calibration_error_10bin": 0.003041935143335302, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 20, + "negatives": 2707, + "auroc": 0.8690432212781677, + "auprc": 0.0644286321760095, + "brier": 0.007241863304056113, + "calibration": { + "observed_rate": 0.007334066740007334, + "mean_prediction": 0.008928622679634372, + "calibration_in_the_large": 0.0015945559396270377, + "expected_calibration_error_10bin": 0.0024220539781458408, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.9245906801007556, + "auprc": 0.02692590161286413, + "brier": 0.0033165095610107843, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0015870959078323015, + "calibration_in_the_large": -0.0017601844268957318, + "expected_calibration_error_10bin": 0.0017601844268957318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 14, + "negatives": 2657, + "auroc": 0.8270068283241034, + "auprc": 0.02607215736653377, + "brier": 0.0052806653948474945, + "calibration": { + "observed_rate": 0.005241482590789966, + "mean_prediction": 0.008437522960996813, + "calibration_in_the_large": 0.0031960403702068468, + "expected_calibration_error_10bin": 0.0031960403702068455, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.8658580092757759, + "auprc": 0.018198519182554326, + "brier": 0.0021247788066841196, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0014362640900075984, + "calibration_in_the_large": -0.0006997273660265776, + "expected_calibration_error_10bin": 0.0006997273660265776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 32, + "negatives": 2211, + "auroc": 0.8368668023518769, + "auprc": 0.06948400733567128, + "brier": 0.013725953221370723, + "calibration": { + "observed_rate": 0.014266607222469906, + "mean_prediction": 0.009907646278912536, + "calibration_in_the_large": -0.00435896094355737, + "expected_calibration_error_10bin": 0.005548094786006924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 14, + "negatives": 2746, + "auroc": 0.7898761835396941, + "auprc": 0.1137623474638104, + "brier": 0.004918713490801502, + "calibration": { + "observed_rate": 0.005072463768115942, + "mean_prediction": 0.004670555899104764, + "calibration_in_the_large": -0.0004019078690111781, + "expected_calibration_error_10bin": 0.0004019078690111779, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 26, + "negatives": 2690, + "auroc": 0.8432656562768087, + "auprc": 0.03939098445203403, + "brier": 0.009522753825601521, + "calibration": { + "observed_rate": 0.009572901325478646, + "mean_prediction": 0.008646304878220556, + "calibration_in_the_large": -0.00092659644725809, + "expected_calibration_error_10bin": 0.003910207710867162, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.8038363505653225, + "auprc": 0.10423345397516225, + "brier": 0.0038571098201828757, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.0030476554078387157, + "calibration_in_the_large": -0.0008907620644133434, + "expected_calibration_error_10bin": 0.0008907620644133433, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7772583394205016, + "auprc": 0.023436846874216242, + "brier": 0.00540926462117032, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.0040322782970777064, + "calibration_in_the_large": -0.001416323228530721, + "expected_calibration_error_10bin": 0.0016488628800571143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 5, + "negatives": 2718, + "auroc": 0.7146431199411332, + "auprc": 0.010749822625264291, + "brier": 0.0018833873703596588, + "calibration": { + "observed_rate": 0.001836210062431142, + "mean_prediction": 0.003876293984951336, + "calibration_in_the_large": 0.0020400839225201937, + "expected_calibration_error_10bin": 0.002040083922520194, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9364069422698957, + "auprc": 0.0790023965594811, + "brier": 0.003886894135119727, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0035268106129973417, + "calibration_in_the_large": -0.0004877879271486438, + "expected_calibration_error_10bin": 0.0005796956789698967, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 14, + "negatives": 2708, + "auroc": 0.8741031863262292, + "auprc": 0.0371121491964319, + "brier": 0.005102266798661061, + "calibration": { + "observed_rate": 0.005143277002204262, + "mean_prediction": 0.006577279632724496, + "calibration_in_the_large": 0.0014340026305202343, + "expected_calibration_error_10bin": 0.0014340026305202343, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 10, + "negatives": 2756, + "auroc": 0.7060595065312046, + "auprc": 0.017137344810561284, + "brier": 0.0035991044007977592, + "calibration": { + "observed_rate": 0.0036153289949385392, + "mean_prediction": 0.004561180669888802, + "calibration_in_the_large": 0.0009458516749502629, + "expected_calibration_error_10bin": 0.0009458516749502629, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5724381625441696, + "auprc": 0.0008257638315441783, + "brier": 0.00036122869003720246, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.001396726894716505, + "calibration_in_the_large": 0.0010434948212442337, + "expected_calibration_error_10bin": 0.0010434948212442337, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 11, + "negatives": 2705, + "auroc": 0.7182994454713494, + "auprc": 0.009754959577830985, + "brier": 0.004056184239170339, + "calibration": { + "observed_rate": 0.004050073637702504, + "mean_prediction": 0.005109910640503224, + "calibration_in_the_large": 0.0010598370028007198, + "expected_calibration_error_10bin": 0.0010598370028007198, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 21, + "negatives": 2364, + "auroc": 0.7814841672709693, + "auprc": 0.02836728811194205, + "brier": 0.008676096176133255, + "calibration": { + "observed_rate": 0.00880503144654088, + "mean_prediction": 0.007678375226461116, + "calibration_in_the_large": -0.0011266562200797645, + "expected_calibration_error_10bin": 0.0012251984862516976, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 14, + "negatives": 2720, + "auroc": 0.7379201680672269, + "auprc": 0.013928181276179308, + "brier": 0.005085359923734699, + "calibration": { + "observed_rate": 0.005120702267739576, + "mean_prediction": 0.0028013705446025, + "calibration_in_the_large": -0.002319331723137076, + "expected_calibration_error_10bin": 0.002319331723137076, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 35, + "negatives": 2380, + "auroc": 0.8377430972388955, + "auprc": 0.07835149083840613, + "brier": 0.014071875676550818, + "calibration": { + "observed_rate": 0.014492753623188406, + "mean_prediction": 0.013246443669104374, + "calibration_in_the_large": -0.0012463099540840315, + "expected_calibration_error_10bin": 0.0040694385037862045, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.761573247649649, + "auprc": 0.0059810162082468135, + "brier": 0.0021338753674797406, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.0016580426633656172, + "calibration_in_the_large": -0.00047947069609287937, + "expected_calibration_error_10bin": 0.00047947069609287937, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8482951835956127, + "auprc": 0.011466970981746975, + "brier": 0.0021358555753463165, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0005786259623844705, + "calibration_in_the_large": -0.001562701660741868, + "expected_calibration_error_10bin": 0.001562701660741868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7694233079695635, + "auprc": 0.014754900245199749, + "brier": 0.004005442583668329, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.003107875614298058, + "calibration_in_the_large": -0.0009140622284807354, + "expected_calibration_error_10bin": 0.0010019810463687477, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6622607439508847, + "auprc": 0.01662467646837339, + "brier": 0.0017987905301315402, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.001959605706895636, + "calibration_in_the_large": 0.00015715437308164897, + "expected_calibration_error_10bin": 0.00015715437308164897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6131167268351384, + "auprc": 0.0023941517528376214, + "brier": 0.0010986704214219262, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0022428651748898844, + "calibration_in_the_large": 0.0011610043743128919, + "expected_calibration_error_10bin": 0.0011610043743128919, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 14, + "negatives": 2738, + "auroc": 0.78568819785036, + "auprc": 0.01564985748784891, + "brier": 0.005149479464629238, + "calibration": { + "observed_rate": 0.005087209302325582, + "mean_prediction": 0.005375498240548324, + "calibration_in_the_large": 0.00028828893822274194, + "expected_calibration_error_10bin": 0.0005680346788762417, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7832334091378954, + "auprc": 0.01576949169598043, + "brier": 0.002515733499845908, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0024157709528629745, + "calibration_in_the_large": -0.000110392886906062, + "expected_calibration_error_10bin": 0.000110392886906062, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.735623869801085, + "auprc": 0.005898734003146034, + "brier": 0.0014464561441366128, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0019338842076095247, + "calibration_in_the_large": 0.0004893193827630097, + "expected_calibration_error_10bin": 0.0004893193827630097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6783505154639176, + "auprc": 0.012544963397091036, + "brier": 0.0017690822588887808, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001283637721944021, + "calibration_in_the_large": -0.0004906702979282287, + "expected_calibration_error_10bin": 0.0004906702979282287, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 6, + "negatives": 2728, + "auroc": 0.7981427174975562, + "auprc": 0.1813044519783058, + "brier": 0.002148406685953398, + "calibration": { + "observed_rate": 0.0021945866861741038, + "mean_prediction": 0.002355345112036545, + "calibration_in_the_large": 0.00016075842586244123, + "expected_calibration_error_10bin": 0.00016075842586244123, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 4, + "negatives": 2817, + "auroc": 0.712637557685481, + "auprc": 0.011860943575471778, + "brier": 0.0014144393479151598, + "calibration": { + "observed_rate": 0.0014179369018078695, + "mean_prediction": 0.000549054917168881, + "calibration_in_the_large": -0.0008688819846389886, + "expected_calibration_error_10bin": 0.0008688819846389886, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5647249190938511, + "auprc": 0.003148593289279147, + "brier": 0.0014413468938625049, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.0016072988097792736, + "calibration_in_the_large": 0.00017103310062307965, + "expected_calibration_error_10bin": 0.00017103310062307965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7941905773999292, + "auprc": 0.25707172465539346, + "brier": 0.0013600891490863692, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.001430719120085455, + "calibration_in_the_large": 1.5791635119059583e-05, + "expected_calibration_error_10bin": 0.0005479559456593926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 6, + "negatives": 2820, + "auroc": 0.8629432624113476, + "auprc": 0.012718709596464983, + "brier": 0.002210048905739603, + "calibration": { + "observed_rate": 0.0021231422505307855, + "mean_prediction": 0.0020655805224327833, + "calibration_in_the_large": -5.756172809800227e-05, + "expected_calibration_error_10bin": 0.0009282178262903296, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 23, + "negatives": 2716, + "auroc": 0.7352244349106742, + "auprc": 0.03846187072790434, + "brier": 0.0083315411109825, + "calibration": { + "observed_rate": 0.008397225264695144, + "mean_prediction": 0.007349146218368678, + "calibration_in_the_large": -0.0010480790463264656, + "expected_calibration_error_10bin": 0.00216402065922714, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 7, + "negatives": 2786, + "auroc": 0.9916418828838068, + "auprc": 0.2662220651572672, + "brier": 0.0022216881642933544, + "calibration": { + "observed_rate": 0.002506265664160401, + "mean_prediction": 0.0017098238209517038, + "calibration_in_the_large": -0.000796441843208697, + "expected_calibration_error_10bin": 0.0016911624923133224, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 11, + "negatives": 2769, + "auroc": 0.6720509537410946, + "auprc": 0.009665575740526672, + "brier": 0.003965092554350561, + "calibration": { + "observed_rate": 0.003956834532374101, + "mean_prediction": 0.003932771623827622, + "calibration_in_the_large": -2.4062908546478544e-05, + "expected_calibration_error_10bin": 2.4062908546478544e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8591279688053881, + "auprc": 0.02252732336403736, + "brier": 0.0017598432085821098, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0007048608493563617, + "calibration_in_the_large": -0.001064424359419293, + "expected_calibration_error_10bin": 0.001064424359419293, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 66, + "negatives": 2419, + "auroc": 0.7492953511969634, + "auprc": 0.06805087740980527, + "brier": 0.025468669917262588, + "calibration": { + "observed_rate": 0.026559356136820925, + "mean_prediction": 0.020688063949634652, + "calibration_in_the_large": -0.005871292187186274, + "expected_calibration_error_10bin": 0.008628870232016228, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8538203042094092, + "auprc": 0.0462380705076177, + "brier": 0.001392239153953326, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0010481582484486171, + "calibration_in_the_large": -0.00036477004544046795, + "expected_calibration_error_10bin": 0.00036477004544046795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 7, + "negatives": 2733, + "auroc": 0.8245779101981078, + "auprc": 0.015266788337266243, + "brier": 0.0025371922522616497, + "calibration": { + "observed_rate": 0.0025547445255474453, + "mean_prediction": 0.002448042785534491, + "calibration_in_the_large": -0.0001067017400129544, + "expected_calibration_error_10bin": 0.0001067017400129544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6964222458377612, + "auprc": 0.001710116398245171, + "brier": 0.0007194630271380296, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0014382751447182618, + "calibration_in_the_large": 0.0007303105429483503, + "expected_calibration_error_10bin": 0.0007303105429483503, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.6753801556222346, + "auprc": 0.008745499518235271, + "brier": 0.0025502125379052594, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.003007314681818746, + "calibration_in_the_large": 0.0005215192272732916, + "expected_calibration_error_10bin": 0.0005215192272732918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 5.189487627676587e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002020638484087743, + "calibration_in_the_large": 0.002020638484087743, + "expected_calibration_error_10bin": 0.002020638484087743, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 10, + "negatives": 2785, + "auroc": 0.791310592459605, + "auprc": 0.014708119082039292, + "brier": 0.003598140991949757, + "calibration": { + "observed_rate": 0.0035778175313059034, + "mean_prediction": 0.004168910046242649, + "calibration_in_the_large": 0.0005910925149367457, + "expected_calibration_error_10bin": 0.0005910925149367458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 37, + "negatives": 2634, + "auroc": 0.7774733731453549, + "auprc": 0.05417745649402558, + "brier": 0.013493861621752774, + "calibration": { + "observed_rate": 0.013852489704230626, + "mean_prediction": 0.013633745365258835, + "calibration_in_the_large": -0.0002187443389717915, + "expected_calibration_error_10bin": 0.0031816417740758228, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.5663344013290613, + "auprc": 0.0163394951906389, + "brier": 0.0021642617257271604, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0029204201419190767, + "calibration_in_the_large": 0.0007889814207823094, + "expected_calibration_error_10bin": 0.0007889814207823093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.506190307746728, + "auprc": 0.0028134339832075208, + "brier": 0.0007208698229774649, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0010238788305353243, + "calibration_in_the_large": 0.0003169152391602801, + "expected_calibration_error_10bin": 0.0003169152391602801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7215727948990436, + "auprc": 0.0069975631219115954, + "brier": 0.0007107061471495608, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001339237586714435, + "calibration_in_the_large": 0.0006312729849445234, + "expected_calibration_error_10bin": 0.0006312729849445234, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 5, + "negatives": 2799, + "auroc": 0.6848160057163273, + "auprc": 0.006574936920196059, + "brier": 0.0017822442903697993, + "calibration": { + "observed_rate": 0.001783166904422254, + "mean_prediction": 0.0017710181241480797, + "calibration_in_the_large": -1.2148780274174285e-05, + "expected_calibration_error_10bin": 1.2148780274174285e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 20, + "negatives": 2550, + "auroc": 0.8315490196078431, + "auprc": 0.03821863311625493, + "brier": 0.0076226021733200085, + "calibration": { + "observed_rate": 0.007782101167315175, + "mean_prediction": 0.006819234720164486, + "calibration_in_the_large": -0.0009628664471506895, + "expected_calibration_error_10bin": 0.0012216965382875922, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 20, + "negatives": 2498, + "auroc": 0.6736589271417134, + "auprc": 0.02143990140609514, + "brier": 0.00786806408129589, + "calibration": { + "observed_rate": 0.007942811755361398, + "mean_prediction": 0.006879789317266223, + "calibration_in_the_large": -0.001063022438095175, + "expected_calibration_error_10bin": 0.001063022438095175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 4, + "negatives": 2821, + "auroc": 0.8971995746189294, + "auprc": 0.010982713556524906, + "brier": 0.0014112109631900269, + "calibration": { + "observed_rate": 0.001415929203539823, + "mean_prediction": 0.0007153249011943088, + "calibration_in_the_large": -0.0007006043023455143, + "expected_calibration_error_10bin": 0.0007006043023455143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 22, + "negatives": 2755, + "auroc": 0.789325193862399, + "auprc": 0.021655775061613262, + "brier": 0.007846730550203098, + "calibration": { + "observed_rate": 0.00792221822110191, + "mean_prediction": 0.006172640935201939, + "calibration_in_the_large": -0.00174957728589997, + "expected_calibration_error_10bin": 0.00174957728589997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 16, + "negatives": 2765, + "auroc": 0.7659584086799277, + "auprc": 0.0225997706906962, + "brier": 0.005709559444330072, + "calibration": { + "observed_rate": 0.005753326141675656, + "mean_prediction": 0.0025473433117632733, + "calibration_in_the_large": -0.0032059828299123828, + "expected_calibration_error_10bin": 0.003278676518582105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9195729537366548, + "auprc": 0.020927183726002673, + "brier": 0.002464983662839074, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0013730895506501018, + "calibration_in_the_large": -0.0011118234773939168, + "expected_calibration_error_10bin": 0.0011118234773939168, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 25, + "negatives": 2729, + "auroc": 0.639105899596922, + "auprc": 0.015316893027299208, + "brier": 0.009076236221269247, + "calibration": { + "observed_rate": 0.00907770515613653, + "mean_prediction": 0.006778596684403131, + "calibration_in_the_large": -0.0022991084717333982, + "expected_calibration_error_10bin": 0.0025714457567790143, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8386127994279585, + "auprc": 0.05464794972796402, + "brier": 0.003500584338545588, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.003185746064712005, + "calibration_in_the_large": -0.00037677620105215593, + "expected_calibration_error_10bin": 0.0008937891565940755, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6125689519306541, + "auprc": 0.02422098737348748, + "brier": 0.0031891147655754024, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.001417226465435072, + "calibration_in_the_large": -0.001764109695752627, + "expected_calibration_error_10bin": 0.0021126284303140926, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.787708484408992, + "auprc": 0.04341281686085616, + "brier": 0.004257155575802295, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.0033732843291102324, + "calibration_in_the_large": -0.0009588456347886846, + "expected_calibration_error_10bin": 0.0009588456347886846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 54, + "negatives": 2551, + "auroc": 0.8447522394993975, + "auprc": 0.11312113296079605, + "brier": 0.019502644269289784, + "calibration": { + "observed_rate": 0.02072936660268714, + "mean_prediction": 0.017106207577464352, + "calibration_in_the_large": -0.0036231590252227865, + "expected_calibration_error_10bin": 0.005541264317222708, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 27, + "negatives": 2665, + "auroc": 0.7271072197901466, + "auprc": 0.0756641808005915, + "brier": 0.00980876428726108, + "calibration": { + "observed_rate": 0.010029717682020803, + "mean_prediction": 0.006436248580937016, + "calibration_in_the_large": -0.0035934691010837874, + "expected_calibration_error_10bin": 0.0035934691010837874, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9216931216931217, + "auprc": 0.004484304932735426, + "brier": 0.0003525449013685647, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.00035955874849788325, + "calibration_in_the_large": 6.949439612128673e-06, + "expected_calibration_error_10bin": 6.949439612128673e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 9, + "negatives": 2815, + "auroc": 0.9102032761002565, + "auprc": 0.08600753233417086, + "brier": 0.004326721697429337, + "calibration": { + "observed_rate": 0.003186968838526912, + "mean_prediction": 0.006574496407948649, + "calibration_in_the_large": 0.0033875275694217367, + "expected_calibration_error_10bin": 0.004246665673947428, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.6992165242165242, + "auprc": 0.008234357359661647, + "brier": 0.0018591762718679402, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.004869916488547548, + "calibration_in_the_large": 0.0030924547039759163, + "expected_calibration_error_10bin": 0.0030924547039759163, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 59, + "negatives": 1984, + "auroc": 0.7468732914160744, + "auprc": 0.12437767331281194, + "brier": 0.02705319525817516, + "calibration": { + "observed_rate": 0.02887909936368086, + "mean_prediction": 0.027287823792686707, + "calibration_in_the_large": -0.0015912755709941544, + "expected_calibration_error_10bin": 0.002678863100161182, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.7833246753246753, + "auprc": 0.03490970275625486, + "brier": 0.004993709202821189, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.004259938285376742, + "calibration_in_the_large": -0.0008051847247535042, + "expected_calibration_error_10bin": 0.0008051847247535042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7722044349579035, + "auprc": 0.006231168135242121, + "brier": 0.002192812144357843, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.002778902587561634, + "calibration_in_the_large": 0.0006489771349524752, + "expected_calibration_error_10bin": 0.0006489771349524753, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9418298326806693, + "auprc": 0.0946820420958352, + "brier": 0.0017403115365307972, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0016335299262788627, + "calibration_in_the_large": -0.0001433002087602275, + "expected_calibration_error_10bin": 0.0001433002087602275, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.8241283554458501, + "auprc": 0.023565674166633244, + "brier": 0.0025188674609757304, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.005183105989098273, + "calibration_in_the_large": 0.002669640998074934, + "expected_calibration_error_10bin": 0.0026696409980749335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8481481481481481, + "auprc": 0.003383798440854141, + "brier": 0.0007114154389507878, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0012390293640728493, + "calibration_in_the_large": 0.0005340593252994972, + "expected_calibration_error_10bin": 0.0005340593252994972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.9314124855108462, + "auprc": 0.06938641421902837, + "brier": 0.003888039683595438, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.0051679346306020635, + "calibration_in_the_large": 0.00117664290346128, + "expected_calibration_error_10bin": 0.001397067497772932, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 2, + "negatives": 2825, + "auroc": 0.9198230088495575, + "auprc": 0.006440927493559073, + "brier": 0.0007062559129258916, + "calibration": { + "observed_rate": 0.0007074637424831977, + "mean_prediction": 0.0008705431506178434, + "calibration_in_the_large": 0.00016307940813464566, + "expected_calibration_error_10bin": 0.00016307940813464566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 3, + "negatives": 2817, + "auroc": 0.719796473790084, + "auprc": 0.0024993881872400975, + "brier": 0.0010739653294859243, + "calibration": { + "observed_rate": 0.0010638297872340426, + "mean_prediction": 0.0009577967737757408, + "calibration_in_the_large": -0.00010603301345830181, + "expected_calibration_error_10bin": 0.00010603301345830181, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 4, + "negatives": 2809, + "auroc": 0.7621929512281951, + "auprc": 0.01389608781703873, + "brier": 0.0014149200645063263, + "calibration": { + "observed_rate": 0.0014219694276573053, + "mean_prediction": 0.0011426676954750924, + "calibration_in_the_large": -0.0002793017321822129, + "expected_calibration_error_10bin": 0.0002793017321822129, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6784172661870503, + "auprc": 0.009716109068935412, + "brier": 0.0017927666931363535, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0023692488147655823, + "calibration_in_the_large": 0.0005739166783203398, + "expected_calibration_error_10bin": 0.0005739166783203398, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 28, + "negatives": 2721, + "auroc": 0.8263374809681314, + "auprc": 0.06632466793029093, + "brier": 0.010029856671628002, + "calibration": { + "observed_rate": 0.01018552200800291, + "mean_prediction": 0.009290205527691012, + "calibration_in_the_large": -0.0008953164803118981, + "expected_calibration_error_10bin": 0.0038922475598308715, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7728892055575347, + "auprc": 0.006931316123146407, + "brier": 0.0028717383091016414, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.002527367517164154, + "calibration_in_the_large": -0.000314550777684869, + "expected_calibration_error_10bin": 0.0004759059133924873, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 23, + "negatives": 2722, + "auroc": 0.7773216624604671, + "auprc": 0.034815617802107034, + "brier": 0.008233403058337207, + "calibration": { + "observed_rate": 0.008378870673952642, + "mean_prediction": 0.008657492213113401, + "calibration_in_the_large": 0.00027862153916075917, + "expected_calibration_error_10bin": 0.0006290273353843809, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 18, + "negatives": 2723, + "auroc": 0.6532011262088383, + "auprc": 0.015858348397716163, + "brier": 0.006546124748574811, + "calibration": { + "observed_rate": 0.006566946369937978, + "mean_prediction": 0.004189595532469754, + "calibration_in_the_large": -0.0023773508374682244, + "expected_calibration_error_10bin": 0.002459543788802483, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7544498589381893, + "auprc": 0.019649067226396366, + "brier": 0.0024908163145810056, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0016209892248068947, + "calibration_in_the_large": -0.0008861740989753405, + "expected_calibration_error_10bin": 0.0008861740989753405, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 72, + "negatives": 2488, + "auroc": 0.7268332440157199, + "auprc": 0.11510981883096916, + "brier": 0.026287456599059622, + "calibration": { + "observed_rate": 0.028125, + "mean_prediction": 0.01991423819627016, + "calibration_in_the_large": -0.00821076180372984, + "expected_calibration_error_10bin": 0.009093388763085386, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.8218804749854001, + "auprc": 0.013545184007589904, + "brier": 0.003887683355505434, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.002335924658790472, + "calibration_in_the_large": -0.0015744912672671176, + "expected_calibration_error_10bin": 0.0015744912672671176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 14, + "negatives": 2796, + "auroc": 0.7173002248109545, + "auprc": 0.011711801605991447, + "brier": 0.004961284212557578, + "calibration": { + "observed_rate": 0.00498220640569395, + "mean_prediction": 0.0031180300538764375, + "calibration_in_the_large": -0.0018641763518175126, + "expected_calibration_error_10bin": 0.0018641763518175126, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 16, + "negatives": 2785, + "auroc": 0.7775359066427289, + "auprc": 0.019824502913991127, + "brier": 0.005803322507838427, + "calibration": { + "observed_rate": 0.005712245626561942, + "mean_prediction": 0.004849910234158503, + "calibration_in_the_large": -0.0008623353924034393, + "expected_calibration_error_10bin": 0.002689427291376067, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.87588298251873, + "auprc": 0.04551011720937799, + "brier": 0.0036733793282064183, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.006795243230298239, + "calibration_in_the_large": 0.0032403196611549756, + "expected_calibration_error_10bin": 0.003240319661154975, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 6, + "negatives": 2790, + "auroc": 0.7060334528076464, + "auprc": 0.01189072559258926, + "brier": 0.0021596814784156267, + "calibration": { + "observed_rate": 0.002145922746781116, + "mean_prediction": 0.003135642693376626, + "calibration_in_the_large": 0.0009897199465955103, + "expected_calibration_error_10bin": 0.0009897199465955103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9531193653083303, + "auprc": 0.007633587786259542, + "brier": 0.00038131399675648127, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0009476869702554782, + "calibration_in_the_large": 0.0005871967034926808, + "expected_calibration_error_10bin": 0.0005871967034926807, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 15, + "negatives": 2772, + "auroc": 0.9582491582491582, + "auprc": 0.17423130145474294, + "brier": 0.005270172208876467, + "calibration": { + "observed_rate": 0.005382131324004306, + "mean_prediction": 0.00422698194305162, + "calibration_in_the_large": -0.0011551493809526863, + "expected_calibration_error_10bin": 0.003399317017657037, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 6, + "negatives": 2757, + "auroc": 0.975335509611897, + "auprc": 0.05121309613573937, + "brier": 0.0022962515128243013, + "calibration": { + "observed_rate": 0.002171552660152009, + "mean_prediction": 0.0031293234979905974, + "calibration_in_the_large": 0.0009577708378385886, + "expected_calibration_error_10bin": 0.0012269323963845606, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7858321377331421, + "auprc": 0.023795308593125793, + "brier": 0.0035569023156770633, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002352983719136454, + "calibration_in_the_large": -0.0012209976961601865, + "expected_calibration_error_10bin": 0.001543151683662966, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 21, + "negatives": 2660, + "auroc": 0.8588614393125671, + "auprc": 0.16448243991979916, + "brier": 0.00717121611411296, + "calibration": { + "observed_rate": 0.007832898172323759, + "mean_prediction": 0.004874625950451452, + "calibration_in_the_large": -0.0029582722218723066, + "expected_calibration_error_10bin": 0.0038489517987396835, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 10, + "negatives": 2721, + "auroc": 0.7332965821389195, + "auprc": 0.013618625768575306, + "brier": 0.003644939230990111, + "calibration": { + "observed_rate": 0.003661662394727206, + "mean_prediction": 0.0028957717587401043, + "calibration_in_the_large": -0.0007658906359871019, + "expected_calibration_error_10bin": 0.0007658906359871019, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8358156028368794, + "auprc": 0.018418719248708804, + "brier": 0.0017672393810782097, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.001366952962948543, + "calibration_in_the_large": -0.00040295854147623573, + "expected_calibration_error_10bin": 0.00040295854147623573, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6191489361702127, + "auprc": 0.005010909101103993, + "brier": 0.0014176255857925712, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0009713175883766124, + "calibration_in_the_large": -0.00044511300652423755, + "expected_calibration_error_10bin": 0.00044511300652423755, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 9, + "negatives": 2748, + "auroc": 0.8715025068736859, + "auprc": 0.12939991820768476, + "brier": 0.003194935566703118, + "calibration": { + "observed_rate": 0.003264417845484222, + "mean_prediction": 0.0035688317268327495, + "calibration_in_the_large": 0.0003044138813485275, + "expected_calibration_error_10bin": 0.0015011974922885642, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8210810810810811, + "auprc": 0.080166235436545, + "brier": 0.0014228154251713268, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0015299161222291498, + "calibration_in_the_large": 9.054944356776096e-05, + "expected_calibration_error_10bin": 9.054944356776096e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7421734436847787, + "auprc": 0.02147976378969881, + "brier": 0.0021489153901815337, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.00252545827217188, + "calibration_in_the_large": 0.0003710597084375894, + "expected_calibration_error_10bin": 0.0003710597084375894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6522968197879858, + "auprc": 0.0010152284263959391, + "brier": 0.00035517969337118356, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006145130425518416, + "calibration_in_the_large": 0.00026128096907957035, + "expected_calibration_error_10bin": 0.00026128096907957035, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 17, + "negatives": 2751, + "auroc": 0.8640494365685205, + "auprc": 0.0439756700522426, + "brier": 0.006050804314018093, + "calibration": { + "observed_rate": 0.006141618497109827, + "mean_prediction": 0.006311613524742515, + "calibration_in_the_large": 0.00016999502763268785, + "expected_calibration_error_10bin": 0.0008411984492861168, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8587014820042344, + "auprc": 0.07616225444515917, + "brier": 0.009105794570349171, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.0077410136589008095, + "calibration_in_the_large": -0.0017100950288490993, + "expected_calibration_error_10bin": 0.0021958105220568564, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 13, + "negatives": 2810, + "auroc": 0.9071174377224199, + "auprc": 0.07690189087928517, + "brier": 0.004446083853646019, + "calibration": { + "observed_rate": 0.004605030109812256, + "mean_prediction": 0.00366343100044005, + "calibration_in_the_large": -0.0009415991093722062, + "expected_calibration_error_10bin": 0.0011157222658356356, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7749044890162369, + "auprc": 0.016277581410843553, + "brier": 0.005301496198077909, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.0041826086781720055, + "calibration_in_the_large": -0.0011611747204742359, + "expected_calibration_error_10bin": 0.0011611747204742359, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 31, + "negatives": 2670, + "auroc": 0.6913616044460553, + "auprc": 0.04471301601704481, + "brier": 0.011334647916144719, + "calibration": { + "observed_rate": 0.011477230655312847, + "mean_prediction": 0.008777344530930164, + "calibration_in_the_large": -0.0026998861243826833, + "expected_calibration_error_10bin": 0.004373004623625162, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6274690265486725, + "auprc": 0.004007875627905167, + "brier": 0.0017699779632543446, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0010677760938819193, + "calibration_in_the_large": -0.0006990083584149005, + "expected_calibration_error_10bin": 0.0006990083584149005, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 7, + "negatives": 2811, + "auroc": 0.6720536667174875, + "auprc": 0.007834494914239667, + "brier": 0.0028114301226901013, + "calibration": { + "observed_rate": 0.00248403122782115, + "mean_prediction": 0.00477618283370741, + "calibration_in_the_large": 0.00229215160588626, + "expected_calibration_error_10bin": 0.00229215160588626, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6858564321250888, + "auprc": 0.01136649469790086, + "brier": 0.0011054258098010406, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.00355204912226646, + "calibration_in_the_large": 0.0024870863959618804, + "expected_calibration_error_10bin": 0.002487086395961881, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7436301683364696, + "auprc": 0.0259764895217121, + "brier": 0.0024787549602195576, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0019941160372056936, + "calibration_in_the_large": -0.0004916794173397609, + "expected_calibration_error_10bin": 0.0005684915378329239, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7190442561205274, + "auprc": 0.009735660890372113, + "brier": 0.001056315481884425, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0008616706983832441, + "calibration_in_the_large": -0.0001965303598178142, + "expected_calibration_error_10bin": 0.0001965303598178142, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.2403450325157915e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0011172815482684167, + "calibration_in_the_large": 0.0011172815482684167, + "expected_calibration_error_10bin": 0.0011172815482684167, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 11, + "negatives": 2782, + "auroc": 0.6643683419384354, + "auprc": 0.006575958396476122, + "brier": 0.0039401348997631465, + "calibration": { + "observed_rate": 0.003938417472252059, + "mean_prediction": 0.004098458388527887, + "calibration_in_the_large": 0.00016004091627582796, + "expected_calibration_error_10bin": 0.00016004091627582796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 17, + "negatives": 2781, + "auroc": 0.8647756837362777, + "auprc": 0.03628979032059492, + "brier": 0.005985527065318635, + "calibration": { + "observed_rate": 0.006075768406004289, + "mean_prediction": 0.003541953468369628, + "calibration_in_the_large": -0.002533814937634661, + "expected_calibration_error_10bin": 0.0027380311125810783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.8892035239122618, + "auprc": 0.08075751221193482, + "brier": 0.002842284319240004, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.00436432363558611, + "calibration_in_the_large": 0.0014959120185190603, + "expected_calibration_error_10bin": 0.0017299683240880796, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6561191912025541, + "auprc": 0.0036648553504281664, + "brier": 0.0018001058604607833, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.00309080455160511, + "calibration_in_the_large": 0.0013202663079790477, + "expected_calibration_error_10bin": 0.0013202663079790477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 10, + "negatives": 2703, + "auroc": 0.7675175730669627, + "auprc": 0.06484939035153578, + "brier": 0.0036413443106775994, + "calibration": { + "observed_rate": 0.003685956505713233, + "mean_prediction": 0.004546376711388673, + "calibration_in_the_large": 0.0008604202056754404, + "expected_calibration_error_10bin": 0.0014471783361852245, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7670373027259685, + "auprc": 0.002387039844333326, + "brier": 0.0007211918194394746, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0011818820822810596, + "calibration_in_the_large": 0.00046503620414485884, + "expected_calibration_error_10bin": 0.00046503620414485884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 8, + "negatives": 2725, + "auroc": 0.6703211009174312, + "auprc": 0.005715899851167565, + "brier": 0.002957982144816274, + "calibration": { + "observed_rate": 0.0029271862422246614, + "mean_prediction": 0.0024733777479497817, + "calibration_in_the_large": -0.0004538084942748797, + "expected_calibration_error_10bin": 0.000554316930121258, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 27, + "negatives": 2647, + "auroc": 0.6844086247184094, + "auprc": 0.026284826692769745, + "brier": 0.00997941932178817, + "calibration": { + "observed_rate": 0.010097232610321616, + "mean_prediction": 0.007455725400608069, + "calibration_in_the_large": -0.0026415072097135464, + "expected_calibration_error_10bin": 0.002928478062894956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003486696925266113, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.001120582440998839, + "calibration_in_the_large": 0.0007660982155468716, + "expected_calibration_error_10bin": 0.0007660982155468716, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 26, + "negatives": 2691, + "auroc": 0.6736414830060315, + "auprc": 0.03623798650246471, + "brier": 0.009495526276283856, + "calibration": { + "observed_rate": 0.009569377990430622, + "mean_prediction": 0.007636642006714362, + "calibration_in_the_large": -0.00193273598371626, + "expected_calibration_error_10bin": 0.002214723161458372, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9711229946524064, + "auprc": 0.012195121951219513, + "brier": 0.00035735981995064315, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.0009456093792692713, + "calibration_in_the_large": 0.0005892301918138187, + "expected_calibration_error_10bin": 0.0005892301918138187, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7141459074733096, + "auprc": 0.00323251968282839, + "brier": 0.0014241203200119176, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0016339497828238058, + "calibration_in_the_large": 0.0002124856747925336, + "expected_calibration_error_10bin": 0.0002124856747925336, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.7717311906501095, + "auprc": 0.019204552282634506, + "brier": 0.0018107954733380953, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.0018265715080084978, + "calibration_in_the_large": 3.7497799734995726e-06, + "expected_calibration_error_10bin": 3.7497799734995726e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 8, + "negatives": 2682, + "auroc": 0.671607009694258, + "auprc": 0.01641660432212916, + "brier": 0.0029681513337751608, + "calibration": { + "observed_rate": 0.002973977695167286, + "mean_prediction": 0.004417328256287711, + "calibration_in_the_large": 0.0014433505611204252, + "expected_calibration_error_10bin": 0.0014433505611204252, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.6489399928135106, + "auprc": 0.0016033465568100905, + "brier": 0.0007200680112635828, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0015574825898165172, + "calibration_in_the_large": 0.0008393497352384203, + "expected_calibration_error_10bin": 0.0008393497352384203, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 32, + "negatives": 2535, + "auroc": 0.7044748520710059, + "auprc": 0.048311464410432686, + "brier": 0.012211790254092867, + "calibration": { + "observed_rate": 0.012465913517724971, + "mean_prediction": 0.013554685829520402, + "calibration_in_the_large": 0.0010887723117954315, + "expected_calibration_error_10bin": 0.001088772311795431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 7, + "negatives": 2774, + "auroc": 0.7995674116798847, + "auprc": 0.029176513468283035, + "brier": 0.002497237735654932, + "calibration": { + "observed_rate": 0.0025170801869830997, + "mean_prediction": 0.002603227673942885, + "calibration_in_the_large": 8.614748695978539e-05, + "expected_calibration_error_10bin": 8.614748695978539e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 24, + "negatives": 2673, + "auroc": 0.7758760443945629, + "auprc": 0.04462699470775972, + "brier": 0.008753710584542789, + "calibration": { + "observed_rate": 0.008898776418242492, + "mean_prediction": 0.012060266792788705, + "calibration_in_the_large": 0.003161490374546213, + "expected_calibration_error_10bin": 0.0031614903745462108, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 9, + "negatives": 2696, + "auroc": 0.7492581602373887, + "auprc": 0.014554842756562707, + "brier": 0.0033458569414515, + "calibration": { + "observed_rate": 0.0033271719038817007, + "mean_prediction": 0.003142598403609959, + "calibration_in_the_large": -0.0001845735002717415, + "expected_calibration_error_10bin": 0.0004320279231713649, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8127977248489158, + "auprc": 0.03069032671745145, + "brier": 0.0017555607881871813, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.001964282219034653, + "calibration_in_the_large": 0.00018997419916240346, + "expected_calibration_error_10bin": 0.00018997419916240346, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5897966575257412, + "auprc": 0.003639224611841106, + "brier": 0.0025317206630320736, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0019634778129754963, + "calibration_in_the_large": -0.00056542392112855, + "expected_calibration_error_10bin": 0.00056542392112855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 13, + "negatives": 2790, + "auroc": 0.7610697546181417, + "auprc": 0.04068473972289196, + "brier": 0.004579147369013994, + "calibration": { + "observed_rate": 0.00463788797716732, + "mean_prediction": 0.002263079107156269, + "calibration_in_the_large": -0.0023748088700110514, + "expected_calibration_error_10bin": 0.002569170462217759, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 2, + "negatives": 2817, + "auroc": 0.8095491657791978, + "auprc": 0.0027131129104813316, + "brier": 0.0007093037442809312, + "calibration": { + "observed_rate": 0.000709471443774388, + "mean_prediction": 0.0003541165314945332, + "calibration_in_the_large": -0.00035535491227985485, + "expected_calibration_error_10bin": 0.00035535491227985485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7949678800856531, + "auprc": 0.002785674110332457, + "brier": 0.0007176614695302283, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0017632478789235552, + "calibration_in_the_large": 0.0010499811171546536, + "expected_calibration_error_10bin": 0.0010499811171546536, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.6790516631280963, + "auprc": 0.008941050350899546, + "brier": 0.0017751676669690499, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0016704505121541858, + "calibration_in_the_large": -9.570985520717052e-05, + "expected_calibration_error_10bin": 9.570985520717052e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 8, + "negatives": 2748, + "auroc": 0.6761735807860262, + "auprc": 0.008629717615028499, + "brier": 0.0029075716074371746, + "calibration": { + "observed_rate": 0.002902757619738752, + "mean_prediction": 0.003467210262311335, + "calibration_in_the_large": 0.0005644526425725833, + "expected_calibration_error_10bin": 0.0005644526425725833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8756904677443875, + "auprc": 0.02572028370089843, + "brier": 0.002456162697367533, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0010928348795317326, + "calibration_in_the_large": -0.001384164412754184, + "expected_calibration_error_10bin": 0.001384164412754184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 69, + "negatives": 2223, + "auroc": 0.8045531889925482, + "auprc": 0.11752508874502625, + "brier": 0.028205929239515128, + "calibration": { + "observed_rate": 0.030104712041884817, + "mean_prediction": 0.026102348687482013, + "calibration_in_the_large": -0.004002363354402804, + "expected_calibration_error_10bin": 0.008852485411317255, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 34, + "negatives": 2406, + "auroc": 0.8631118282724561, + "auprc": 0.20589464795170778, + "brier": 0.012690158403893629, + "calibration": { + "observed_rate": 0.013934426229508197, + "mean_prediction": 0.007979033934475037, + "calibration_in_the_large": -0.00595539229503316, + "expected_calibration_error_10bin": 0.005955392295033159, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.813125446747677, + "auprc": 0.013150689793336532, + "brier": 0.0028416218789386657, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0010472596463521025, + "calibration_in_the_large": -0.0018037738532915184, + "expected_calibration_error_10bin": 0.0018037738532915184, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9255457227138643, + "auprc": 0.05687945412838835, + "brier": 0.002095822228752548, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.000980348624289251, + "calibration_in_the_large": -0.0011390438165443768, + "expected_calibration_error_10bin": 0.001210340946157228, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 4, + "negatives": 2785, + "auroc": 0.8128366247755835, + "auprc": 0.027019559031754153, + "brier": 0.0014298924835455414, + "calibration": { + "observed_rate": 0.0014342058085335247, + "mean_prediction": 0.003339570086691307, + "calibration_in_the_large": 0.0019053642781577823, + "expected_calibration_error_10bin": 0.0019053642781577823, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.668006304176517, + "auprc": 0.009509322445424765, + "brier": 0.003190003785117497, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0028105785466054456, + "calibration_in_the_large": -0.00037075761458225335, + "expected_calibration_error_10bin": 0.00037075761458225335, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8315337861994995, + "auprc": 0.029160425105253147, + "brier": 0.0035285211985917335, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002507121591688646, + "calibration_in_the_large": -0.0010554006740755148, + "expected_calibration_error_10bin": 0.0010554006740755148, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 65, + "negatives": 2455, + "auroc": 0.7592668024439918, + "auprc": 0.07410384680418398, + "brier": 0.024636455534881974, + "calibration": { + "observed_rate": 0.025793650793650792, + "mean_prediction": 0.023216238742535342, + "calibration_in_the_large": -0.00257741205111545, + "expected_calibration_error_10bin": 0.004181929967007675, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7685328185328185, + "auprc": 0.03252127713468729, + "brier": 0.006085325061444444, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.006010564153531257, + "calibration_in_the_large": -0.00012911351339122985, + "expected_calibration_error_10bin": 0.000735108093005765, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9821365405022993, + "auprc": 0.028205128205128206, + "brier": 0.0007012598255390236, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009139682903400189, + "calibration_in_the_large": 0.00020700469896497466, + "expected_calibration_error_10bin": 0.00020700469896497466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 3, + "negatives": 2796, + "auroc": 0.7857653791130186, + "auprc": 0.004344326007808045, + "brier": 0.0010735875403451577, + "calibration": { + "observed_rate": 0.0010718113612004287, + "mean_prediction": 0.001219212454090147, + "calibration_in_the_large": 0.00014740109288971818, + "expected_calibration_error_10bin": 0.00014740109288971818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 5, + "negatives": 2738, + "auroc": 0.997954711468225, + "auprc": 0.3579365079365079, + "brier": 0.0015363182599775638, + "calibration": { + "observed_rate": 0.0018228217280349982, + "mean_prediction": 0.001045053095392074, + "calibration_in_the_large": -0.0007777686326429242, + "expected_calibration_error_10bin": 0.0014311534883465137, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.0004104847947361952, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0006311716559908886, + "calibration_in_the_large": 0.0002540977495052174, + "expected_calibration_error_10bin": 0.0002540977495052174, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 2, + "negatives": 2808, + "auroc": 0.8719729344729344, + "auprc": 0.0040623133504062315, + "brier": 0.0007115162978646274, + "calibration": { + "observed_rate": 0.0007117437722419929, + "mean_prediction": 0.0011270592310544587, + "calibration_in_the_large": 0.00041531545881246575, + "expected_calibration_error_10bin": 0.00041531545881246575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 2.0841143792026753e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0022128552050503297, + "calibration_in_the_large": 0.0022128552050503297, + "expected_calibration_error_10bin": 0.0022128552050503297, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "210": { + "A04": { + "valid": 2782, + "positives": 22, + "negatives": 2760, + "auroc": 0.7879446640316206, + "auprc": 0.07973305605307018, + "brier": 0.007750909930225727, + "calibration": { + "observed_rate": 0.007907979870596693, + "mean_prediction": 0.007107916850884399, + "calibration_in_the_large": -0.0008000630197122936, + "expected_calibration_error_10bin": 0.0019995231628674066, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8482041649123944, + "auprc": 0.12962387315405752, + "brier": 0.0037816301315357435, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0041068553960313245, + "calibration_in_the_large": 0.00020337775231237497, + "expected_calibration_error_10bin": 0.000836415000191817, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 54, + "negatives": 2610, + "auroc": 0.743933588761175, + "auprc": 0.06593615498461336, + "brier": 0.019772529274056407, + "calibration": { + "observed_rate": 0.02027027027027027, + "mean_prediction": 0.01988770002481306, + "calibration_in_the_large": -0.0003825702454572123, + "expected_calibration_error_10bin": 0.006178021283199565, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7420959147424512, + "auprc": 0.016024953140328365, + "brier": 0.0015212812198147482, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0020142207372842807, + "calibration_in_the_large": 0.0005952778497355046, + "expected_calibration_error_10bin": 0.0011003500578733699, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6041740360806509, + "auprc": 0.0008928571428571428, + "brier": 0.0003576804422899254, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.000789692977538334, + "calibration_in_the_large": 0.00043608618828798034, + "expected_calibration_error_10bin": 0.00043608618828798034, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9568599207778178, + "auprc": 0.13596605338324325, + "brier": 0.0016967581098116492, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.002050066571251332, + "calibration_in_the_large": 0.00025279841884299267, + "expected_calibration_error_10bin": 0.0003689651719468784, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 16, + "negatives": 2747, + "auroc": 0.8777302511831089, + "auprc": 0.08962971958361916, + "brier": 0.005645404350210544, + "calibration": { + "observed_rate": 0.00579080709373869, + "mean_prediction": 0.001762751646541208, + "calibration_in_the_large": -0.004028055447197481, + "expected_calibration_error_10bin": 0.0041206155281133545, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.992212389380531, + "auprc": 0.31427845528455284, + "brier": 0.0013829269979046194, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.00024690687763043493, + "calibration_in_the_large": -0.0011670203051196535, + "expected_calibration_error_10bin": 0.0012397498547501028, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.08156651458529167, + "brier": 0.0017171098419520403, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001127980482756021, + "calibration_in_the_large": -0.0006381798846053354, + "expected_calibration_error_10bin": 0.0006381798846053354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 0, + "negatives": 2836, + "auroc": null, + "auprc": null, + "brier": 1.1343000966335452e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015936160385160378, + "calibration_in_the_large": 0.0015936160385160378, + "expected_calibration_error_10bin": 0.0015936160385160378, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 30, + "negatives": 2738, + "auroc": 0.7586803019235452, + "auprc": 0.034126552488978036, + "brier": 0.010742544703053672, + "calibration": { + "observed_rate": 0.01083815028901734, + "mean_prediction": 0.008892405853326488, + "calibration_in_the_large": -0.0019457444356908524, + "expected_calibration_error_10bin": 0.004327756352932932, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 51, + "negatives": 2627, + "auroc": 0.7116519999701442, + "auprc": 0.03753753608657917, + "brier": 0.01898726142338727, + "calibration": { + "observed_rate": 0.019044062733383122, + "mean_prediction": 0.017715135437082634, + "calibration_in_the_large": -0.0013289272963004882, + "expected_calibration_error_10bin": 0.006918598818301034, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 70, + "negatives": 2560, + "auroc": 0.7668303571428572, + "auprc": 0.0752330106789969, + "brier": 0.025425866137203164, + "calibration": { + "observed_rate": 0.026615969581749048, + "mean_prediction": 0.02069741448627859, + "calibration_in_the_large": -0.005918555095470457, + "expected_calibration_error_10bin": 0.010071144140340538, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8835810332625619, + "auprc": 0.018823657791357487, + "brier": 0.0007104804546624557, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0008204174791590537, + "calibration_in_the_large": 0.0001132039006583465, + "expected_calibration_error_10bin": 0.00011320390065834651, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9810418143160878, + "auprc": 0.026785714285714288, + "brier": 0.0007028527142225919, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0005984734661961305, + "calibration_in_the_large": -0.00010974183125429446, + "expected_calibration_error_10bin": 0.00010974183125429446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 5, + "negatives": 2807, + "auroc": 0.9166369789811186, + "auprc": 0.03227014183530487, + "brier": 0.0017729889610427906, + "calibration": { + "observed_rate": 0.0017780938833570413, + "mean_prediction": 0.0006932072539218839, + "calibration_in_the_large": -0.0010848866294351574, + "expected_calibration_error_10bin": 0.0011691868806915089, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9869967937299609, + "auprc": 0.2635135135135135, + "brier": 0.0006517802341825475, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007528316396407898, + "calibration_in_the_large": 4.083448762939781e-05, + "expected_calibration_error_10bin": 0.0005183985190646707, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.956653585444167, + "auprc": 0.02377622377622378, + "brier": 0.0007090926555912827, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0011112906557482769, + "calibration_in_the_large": 0.00039827817802991683, + "expected_calibration_error_10bin": 0.00039827817802991683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9883268482490273, + "auprc": 0.04738562091503268, + "brier": 0.0007006010300469615, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006228728816973494, + "calibration_in_the_large": -8.409070967769485e-05, + "expected_calibration_error_10bin": 8.409070967769485e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 17, + "negatives": 2745, + "auroc": 0.8838315654130504, + "auprc": 0.10425506813780801, + "brier": 0.005909203925997966, + "calibration": { + "observed_rate": 0.006154960173787111, + "mean_prediction": 0.00405821679060264, + "calibration_in_the_large": -0.002096743383184471, + "expected_calibration_error_10bin": 0.0032682556440340963, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8867080745341615, + "auprc": 0.11667489115777864, + "brier": 0.008582372260846374, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.006691364876063057, + "calibration_in_the_large": -0.0023600471442121063, + "expected_calibration_error_10bin": 0.00558776059259536, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 19, + "negatives": 2732, + "auroc": 0.8767434692147645, + "auprc": 0.14098547917732793, + "brier": 0.00723970529344588, + "calibration": { + "observed_rate": 0.0069065794256633955, + "mean_prediction": 0.008934322244475764, + "calibration_in_the_large": 0.0020277428188123685, + "expected_calibration_error_10bin": 0.005720944466907656, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 6.902450383281933e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0008891423905677113, + "calibration_in_the_large": 0.0008891423905677113, + "expected_calibration_error_10bin": 0.0008891423905677113, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 2, + "negatives": 2790, + "auroc": 0.9399641577060932, + "auprc": 0.5029673590504451, + "brier": 0.0007040353755412213, + "calibration": { + "observed_rate": 0.0007163323782234957, + "mean_prediction": 0.000702629911876834, + "calibration_in_the_large": -1.3702466346661685e-05, + "expected_calibration_error_10bin": 1.3702466346661685e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.5796752548276392, + "auprc": 0.003716891475626738, + "brier": 0.0025781304637054227, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.004387293430980179, + "calibration_in_the_large": 0.0018837168930688772, + "expected_calibration_error_10bin": 0.0018837168930688772, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 44, + "negatives": 2619, + "auroc": 0.8054340657433441, + "auprc": 0.10583061734743483, + "brier": 0.015597027765721362, + "calibration": { + "observed_rate": 0.016522718738265114, + "mean_prediction": 0.013257148568467532, + "calibration_in_the_large": -0.003265570169797583, + "expected_calibration_error_10bin": 0.003265570169797582, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8229001381993141, + "auprc": 0.02850125623017744, + "brier": 0.0050126548234151694, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.005369130151361034, + "calibration_in_the_large": 0.0003780428073325128, + "expected_calibration_error_10bin": 0.0008658510081143646, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9929453262786596, + "auprc": 0.047619047619047616, + "brier": 0.0003484381878633169, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007610392844442337, + "calibration_in_the_large": 0.00040842997555847914, + "expected_calibration_error_10bin": 0.00040842997555847914, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 30, + "negatives": 2743, + "auroc": 0.877931704945923, + "auprc": 0.16054735819319454, + "brier": 0.009914487284623788, + "calibration": { + "observed_rate": 0.010818608005769925, + "mean_prediction": 0.009328779688548177, + "calibration_in_the_large": -0.0014898283172217475, + "expected_calibration_error_10bin": 0.003205909320533955, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 55, + "negatives": 2444, + "auroc": 0.8007736943907157, + "auprc": 0.08472558827929906, + "brier": 0.02087829471770166, + "calibration": { + "observed_rate": 0.022008803521408563, + "mean_prediction": 0.020663090065407123, + "calibration_in_the_large": -0.0013457134560014399, + "expected_calibration_error_10bin": 0.0020721694403307506, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 66, + "negatives": 2620, + "auroc": 0.8450150358547305, + "auprc": 0.1205580085318793, + "brier": 0.02341946647801483, + "calibration": { + "observed_rate": 0.024571854058078928, + "mean_prediction": 0.020015383476537047, + "calibration_in_the_large": -0.004556470581541881, + "expected_calibration_error_10bin": 0.01216470747771699, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 97, + "negatives": 2337, + "auroc": 0.8066558147947187, + "auprc": 0.17552499795804952, + "brier": 0.035651335323321307, + "calibration": { + "observed_rate": 0.039852095316351685, + "mean_prediction": 0.036804722162354246, + "calibration_in_the_large": -0.003047373153997439, + "expected_calibration_error_10bin": 0.0038994358400140797, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9599528857479388, + "auprc": 0.022546673517825248, + "brier": 0.001054271936568195, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0010234921822993115, + "calibration_in_the_large": -3.545592924322294e-05, + "expected_calibration_error_10bin": 3.545592924322294e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 49, + "negatives": 2633, + "auroc": 0.8109628963624949, + "auprc": 0.11258442123049911, + "brier": 0.017316210664140103, + "calibration": { + "observed_rate": 0.018269947800149143, + "mean_prediction": 0.010005164666322794, + "calibration_in_the_large": -0.008264783133826349, + "expected_calibration_error_10bin": 0.009439586459798026, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 65, + "negatives": 2521, + "auroc": 0.8347053977359412, + "auprc": 0.21639058546690088, + "brier": 0.022119732257139868, + "calibration": { + "observed_rate": 0.025135344160866203, + "mean_prediction": 0.015094542616312096, + "calibration_in_the_large": -0.010040801544554107, + "expected_calibration_error_10bin": 0.010788552945915453, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 24, + "negatives": 2763, + "auroc": 0.8866871757751237, + "auprc": 0.21771940361440378, + "brier": 0.008467993622626185, + "calibration": { + "observed_rate": 0.008611410118406888, + "mean_prediction": 0.009230768708367346, + "calibration_in_the_large": 0.0006193585899604576, + "expected_calibration_error_10bin": 0.006353798838006629, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 50, + "negatives": 2545, + "auroc": 0.7178467583497053, + "auprc": 0.05549821498215507, + "brier": 0.018670357242641933, + "calibration": { + "observed_rate": 0.019267822736030827, + "mean_prediction": 0.018024507328721663, + "calibration_in_the_large": -0.0012433154073091639, + "expected_calibration_error_10bin": 0.0036127667234149997, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8121233605104573, + "auprc": 0.03683079317270165, + "brier": 0.0010627817029087092, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011258455738679745, + "calibration_in_the_large": 6.352262769233701e-05, + "expected_calibration_error_10bin": 6.352262769233723e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.8498349834983498, + "auprc": 0.0053959806305415884, + "brier": 0.0010646678163314432, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.001308058017248549, + "calibration_in_the_large": 0.00024836179683173504, + "expected_calibration_error_10bin": 0.00024836179683173504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.987379098844067, + "auprc": 0.09798430831246303, + "brier": 0.0020570048536956197, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0012886570519774613, + "calibration_in_the_large": -0.0008299870158191489, + "expected_calibration_error_10bin": 0.00137913723097582, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.717989417989418, + "auprc": 0.007898692532403075, + "brier": 0.0009678205593414529, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0015965838794154738, + "calibration_in_the_large": 0.0008916138406421216, + "expected_calibration_error_10bin": 0.001323135027377391, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 20, + "negatives": 2460, + "auroc": 0.7803861788617886, + "auprc": 0.029805818257624267, + "brier": 0.007958729351120094, + "calibration": { + "observed_rate": 0.008064516129032258, + "mean_prediction": 0.00426211753178171, + "calibration_in_the_large": -0.003802398597250548, + "expected_calibration_error_10bin": 0.003802398597250548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.8030449104201816, + "auprc": 0.010101194112064496, + "brier": 0.0032305200829710152, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.002136071996220864, + "calibration_in_the_large": -0.0011071712470223792, + "expected_calibration_error_10bin": 0.0011071712470223792, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.311927696515638, + "auprc": 0.0009894083804222733, + "brier": 0.001071579927095035, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0010253598320313496, + "calibration_in_the_large": -4.3777730335008234e-05, + "expected_calibration_error_10bin": 4.3777730335008234e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 17, + "negatives": 2177, + "auroc": 0.7824853414034424, + "auprc": 0.05714579417503384, + "brier": 0.007578439153307648, + "calibration": { + "observed_rate": 0.007748404740200547, + "mean_prediction": 0.00569609299426372, + "calibration_in_the_large": -0.0020523117459368273, + "expected_calibration_error_10bin": 0.002206523211121257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 6, + "negatives": 2810, + "auroc": 0.5980427046263345, + "auprc": 0.0030528949842483512, + "brier": 0.0021485570540993705, + "calibration": { + "observed_rate": 0.002130681818181818, + "mean_prediction": 0.0024098303169869887, + "calibration_in_the_large": 0.0002791484988051707, + "expected_calibration_error_10bin": 0.0002791484988051707, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9655049786628734, + "auprc": 0.03677486187845304, + "brier": 0.0007030643576839405, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0012482175760082793, + "calibration_in_the_large": 0.0005374855219926432, + "expected_calibration_error_10bin": 0.0005374855219926432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.7551750575006388, + "auprc": 0.009383813536374238, + "brier": 0.002551022507704849, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.004645269396896739, + "calibration_in_the_large": 0.0021470538365826776, + "expected_calibration_error_10bin": 0.0021470538365826776, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7525252525252525, + "auprc": 0.0053860331103763835, + "brier": 0.0021544839962942693, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0021866610066807656, + "calibration_in_the_large": 5.2189288431032325e-05, + "expected_calibration_error_10bin": 5.2189288431032325e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 33, + "negatives": 2715, + "auroc": 0.8182041408560745, + "auprc": 0.07123940770043152, + "brier": 0.011855614029802876, + "calibration": { + "observed_rate": 0.012008733624454149, + "mean_prediction": 0.012756055494003266, + "calibration_in_the_large": 0.0007473218695491172, + "expected_calibration_error_10bin": 0.003998664725051159, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 17, + "negatives": 2783, + "auroc": 0.776605863329881, + "auprc": 0.0253878973339759, + "brier": 0.0061154090463819725, + "calibration": { + "observed_rate": 0.006071428571428571, + "mean_prediction": 0.008217478433842709, + "calibration_in_the_large": 0.002146049862414137, + "expected_calibration_error_10bin": 0.0021460498624141368, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8258599134831336, + "auprc": 0.10141371853596805, + "brier": 0.011475143413111653, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.011406919918556222, + "calibration_in_the_large": -0.000497841986205682, + "expected_calibration_error_10bin": 0.003116447964078776, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.7190254944007625, + "auprc": 0.005604421451861521, + "brier": 0.002146677797593706, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0022140186506945008, + "calibration_in_the_large": 7.4218365387796e-05, + "expected_calibration_error_10bin": 7.4218365387796e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.62476401179941, + "auprc": 0.018382432969438995, + "brier": 0.009075895781629902, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.006847892557859069, + "calibration_in_the_large": -0.0022861958601168176, + "expected_calibration_error_10bin": 0.0024617948294439447, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 32, + "negatives": 2339, + "auroc": 0.7771884352287303, + "auprc": 0.04386364292467129, + "brier": 0.013185291116767148, + "calibration": { + "observed_rate": 0.013496415014761703, + "mean_prediction": 0.013481959563805001, + "calibration_in_the_large": -1.4455450956702559e-05, + "expected_calibration_error_10bin": 0.0012735392599083203, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 35, + "negatives": 1537, + "auroc": 0.7365554419555721, + "auprc": 0.08560871381480638, + "brier": 0.021616644053137356, + "calibration": { + "observed_rate": 0.022264631043257, + "mean_prediction": 0.02105419207713724, + "calibration_in_the_large": -0.0012104389661197583, + "expected_calibration_error_10bin": 0.008496268059284825, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9027334043308484, + "auprc": 0.01905078033458018, + "brier": 0.002162767385303418, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0021592680782226317, + "calibration_in_the_large": 3.386956600159039e-05, + "expected_calibration_error_10bin": 0.00024488512627367264, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 65, + "negatives": 2588, + "auroc": 0.7970871477826655, + "auprc": 0.17606616061214123, + "brier": 0.022314802975617085, + "calibration": { + "observed_rate": 0.024500565397663022, + "mean_prediction": 0.0187370690630537, + "calibration_in_the_large": -0.005763496334609323, + "expected_calibration_error_10bin": 0.00764003808322416, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 79, + "negatives": 2508, + "auroc": 0.7986998566612158, + "auprc": 0.10401023097608092, + "brier": 0.028477120679791006, + "calibration": { + "observed_rate": 0.030537301894085815, + "mean_prediction": 0.02816206324388306, + "calibration_in_the_large": -0.0023752386502027545, + "expected_calibration_error_10bin": 0.006218906849037095, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 121, + "negatives": 2064, + "auroc": 0.790361330001922, + "auprc": 0.20567476708242674, + "brier": 0.04881990500823969, + "calibration": { + "observed_rate": 0.05537757437070938, + "mean_prediction": 0.03576795343186832, + "calibration_in_the_large": -0.01960962093884106, + "expected_calibration_error_10bin": 0.023270914371264457, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 10, + "negatives": 2807, + "auroc": 0.7860705379408621, + "auprc": 0.07829595440677244, + "brier": 0.0034615158399407034, + "calibration": { + "observed_rate": 0.003549875754348598, + "mean_prediction": 0.0039056072238836475, + "calibration_in_the_large": 0.0003557314695350495, + "expected_calibration_error_10bin": 0.0007050459025983574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6925405405405406, + "auprc": 0.0036930503261800723, + "brier": 0.0018003993054573895, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.0021561645784838462, + "calibration_in_the_large": 0.00035760342740470945, + "expected_calibration_error_10bin": 0.00035760342740470945, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 3, + "negatives": 2799, + "auroc": 0.8270811003929975, + "auprc": 0.013558832590352924, + "brier": 0.001105462572005474, + "calibration": { + "observed_rate": 0.0010706638115631692, + "mean_prediction": 0.0023772003053176153, + "calibration_in_the_large": 0.001306536493754446, + "expected_calibration_error_10bin": 0.0013065364937544463, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8598165137614678, + "auprc": 0.022863661776395677, + "brier": 0.005156448170868631, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.0057822463969190345, + "calibration_in_the_large": 0.0006708918879741645, + "expected_calibration_error_10bin": 0.0006708918879741643, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 20, + "negatives": 2730, + "auroc": 0.7275274725274725, + "auprc": 0.015896483714657524, + "brier": 0.007414042234338282, + "calibration": { + "observed_rate": 0.007272727272727273, + "mean_prediction": 0.010491813656886156, + "calibration_in_the_large": 0.003219086384158883, + "expected_calibration_error_10bin": 0.0032190863841588834, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4686836518046709, + "auprc": 0.0011661148849422766, + "brier": 0.0007194936145340576, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0018878820859777818, + "calibration_in_the_large": 0.0011806685074770744, + "expected_calibration_error_10bin": 0.0011806685074770744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.8059986902423052, + "auprc": 0.07053547612810583, + "brier": 0.005672613779293944, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.006269737147218279, + "calibration_in_the_large": 0.0004103621472182793, + "expected_calibration_error_10bin": 0.001134467218494706, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8622092077436148, + "auprc": 0.02968981067805485, + "brier": 0.0034082020473094584, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.00445617355232406, + "calibration_in_the_large": 0.0011727003673550705, + "expected_calibration_error_10bin": 0.0011727003673550698, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9210669077757685, + "auprc": 0.03521438336304374, + "brier": 0.004254047474736136, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.003532812317532121, + "calibration_in_the_large": -0.0007883976212507381, + "expected_calibration_error_10bin": 0.0008892733741767829, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9429645628349732, + "auprc": 0.03922018933347736, + "brier": 0.003194197103418237, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0015304478483912532, + "calibration_in_the_large": -0.0016988309460113304, + "expected_calibration_error_10bin": 0.0017735644772254803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9331440066264347, + "auprc": 0.024882863043014663, + "brier": 0.002111921115899741, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0006659844504494797, + "calibration_in_the_large": -0.0014594140617715616, + "expected_calibration_error_10bin": 0.0014594140617715616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 27, + "negatives": 2399, + "auroc": 0.8806755901378661, + "auprc": 0.11373773872418419, + "brier": 0.010408402465340064, + "calibration": { + "observed_rate": 0.011129431162407255, + "mean_prediction": 0.010750349622632677, + "calibration_in_the_large": -0.00037908153977457733, + "expected_calibration_error_10bin": 0.002322705408134241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.940057327122895, + "auprc": 0.16357333199014615, + "brier": 0.0034023727687188107, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.002027460637968195, + "calibration_in_the_large": -0.0015426928786330192, + "expected_calibration_error_10bin": 0.0016163831106940736, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6937611408199643, + "auprc": 0.01547621923651687, + "brier": 0.0010642318142726984, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0010387988982547489, + "calibration_in_the_large": -2.9577170121319624e-05, + "expected_calibration_error_10bin": 2.9577170121319624e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6510638297872341, + "auprc": 0.0010152284263959391, + "brier": 0.0003596698496349875, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0011409496184180295, + "calibration_in_the_large": 0.0007864653929660621, + "expected_calibration_error_10bin": 0.0007864653929660621, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9237689393939394, + "auprc": 0.010896975544506146, + "brier": 0.001063085178423672, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0011444860199190322, + "calibration_in_the_large": 8.027885425745018e-05, + "expected_calibration_error_10bin": 8.027885425745018e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6869800438932272, + "auprc": 0.010129293233704281, + "brier": 0.0024877494405654, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.0008343818686873669, + "calibration_in_the_large": -0.0016602724435008016, + "expected_calibration_error_10bin": 0.0016602724435008016, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8703055964653903, + "auprc": 0.01828128664859541, + "brier": 0.002913998148274798, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.003043692145884893, + "calibration_in_the_large": 0.00010683458347666985, + "expected_calibration_error_10bin": 0.00010683458347666985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 53, + "negatives": 2147, + "auroc": 0.7091246232127321, + "auprc": 0.06306503472096037, + "brier": 0.023602492418049206, + "calibration": { + "observed_rate": 0.02409090909090909, + "mean_prediction": 0.027606489461164032, + "calibration_in_the_large": 0.003515580370254942, + "expected_calibration_error_10bin": 0.005799579553396058, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.817269141758206, + "auprc": 0.026366777911541905, + "brier": 0.003894979039123445, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.003358279901140122, + "calibration_in_the_large": -0.0005702915274313066, + "expected_calibration_error_10bin": 0.0006463829925723985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 9, + "negatives": 2792, + "auroc": 0.7570837312957657, + "auprc": 0.013691573196282598, + "brier": 0.0031979365712674116, + "calibration": { + "observed_rate": 0.0032131381649410924, + "mean_prediction": 0.002936135992194441, + "calibration_in_the_large": -0.00027700217274665134, + "expected_calibration_error_10bin": 0.00027700217274665134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 72, + "negatives": 2175, + "auroc": 0.7346296296296296, + "auprc": 0.10732164143892647, + "brier": 0.030025405338805166, + "calibration": { + "observed_rate": 0.03204272363150868, + "mean_prediction": 0.031775698042339984, + "calibration_in_the_large": -0.00026702558916869706, + "expected_calibration_error_10bin": 0.0033372103221694627, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 16, + "negatives": 2718, + "auroc": 0.7605316409124356, + "auprc": 0.041831131697635665, + "brier": 0.005800745330217141, + "calibration": { + "observed_rate": 0.005852231163130944, + "mean_prediction": 0.008147292370443322, + "calibration_in_the_large": 0.0022950612073123784, + "expected_calibration_error_10bin": 0.0023756891613534556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.9360824742268041, + "auprc": 0.021342914829755717, + "brier": 0.0018028871901432238, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0028159421559007455, + "calibration_in_the_large": 0.0010416341360284958, + "expected_calibration_error_10bin": 0.0010416341360284958, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9344033856317093, + "auprc": 0.026692656162523625, + "brier": 0.0024990653687592887, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.0011568587952196312, + "calibration_in_the_large": -0.0013656637273028911, + "expected_calibration_error_10bin": 0.0013656637273028911, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6949079089924161, + "auprc": 0.004019070774119063, + "brier": 0.0018341646964097785, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.003068366965695832, + "calibration_in_the_large": 0.0012659156318818453, + "expected_calibration_error_10bin": 0.0012659156318818453, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 6, + "negatives": 2796, + "auroc": 0.8197424892703863, + "auprc": 0.007472739036169136, + "brier": 0.0021609056265371306, + "calibration": { + "observed_rate": 0.0021413276231263384, + "mean_prediction": 0.0030175576865567864, + "calibration_in_the_large": 0.0008762300634304479, + "expected_calibration_error_10bin": 0.000876230063430448, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.7666455183109513, + "auprc": 0.043149572005874604, + "brier": 0.007592131192775416, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.005218416382234793, + "calibration_in_the_large": -0.0024936658799760035, + "expected_calibration_error_10bin": 0.003044676471093857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 13, + "negatives": 2712, + "auroc": 0.7694576809621058, + "auprc": 0.02180212271544258, + "brier": 0.00472994470336332, + "calibration": { + "observed_rate": 0.0047706422018348625, + "mean_prediction": 0.002948845669252311, + "calibration_in_the_large": -0.0018217965325825515, + "expected_calibration_error_10bin": 0.0018217965325825515, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.6162857142857143, + "auprc": 0.005479534284846319, + "brier": 0.0018018508369610435, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0015775415385617694, + "calibration_in_the_large": -0.00020498965573413066, + "expected_calibration_error_10bin": 0.00020498965573413066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 76, + "negatives": 2239, + "auroc": 0.7233962530264921, + "auprc": 0.08960823596841673, + "brier": 0.031135447292261555, + "calibration": { + "observed_rate": 0.03282937365010799, + "mean_prediction": 0.022164049353759804, + "calibration_in_the_large": -0.010665324296348186, + "expected_calibration_error_10bin": 0.011717697287485764, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 8.453366479535041e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00042704816459389827, + "calibration_in_the_large": 0.00042704816459389827, + "expected_calibration_error_10bin": 0.00042704816459389827, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.8709199154100772, + "auprc": 0.10773874315839319, + "brier": 0.011004021455328037, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.006904978728826083, + "calibration_in_the_large": -0.004727155040712266, + "expected_calibration_error_10bin": 0.004828199256854406, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.7385968071059896, + "auprc": 0.03133544139439017, + "brier": 0.004258713400989951, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.00225444720749182, + "calibration_in_the_large": -0.002048170218108754, + "expected_calibration_error_10bin": 0.002048170218108754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7344913151364765, + "auprc": 0.007351372974786813, + "brier": 0.0010633096797493533, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011027580573911224, + "calibration_in_the_large": 4.043511121548486e-05, + "expected_calibration_error_10bin": 4.043511121548486e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 50, + "negatives": 2487, + "auroc": 0.7680659429030962, + "auprc": 0.09753275587256444, + "brier": 0.018942853443226774, + "calibration": { + "observed_rate": 0.019708316909735908, + "mean_prediction": 0.024969002775337923, + "calibration_in_the_large": 0.005260685865602015, + "expected_calibration_error_10bin": 0.005769527945740464, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.3594755906291316e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0016479491883760297, + "calibration_in_the_large": 0.0016479491883760297, + "expected_calibration_error_10bin": 0.0016479491883760297, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 37, + "negatives": 2696, + "auroc": 0.7775884192798139, + "auprc": 0.0637784309349907, + "brier": 0.013270868716436072, + "calibration": { + "observed_rate": 0.01353823637028906, + "mean_prediction": 0.012917701553974521, + "calibration_in_the_large": -0.0006205348163145392, + "expected_calibration_error_10bin": 0.004435206614203009, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 41, + "negatives": 2615, + "auroc": 0.7925103763465933, + "auprc": 0.05201492119611338, + "brier": 0.014985328870125538, + "calibration": { + "observed_rate": 0.015436746987951807, + "mean_prediction": 0.011456227140011417, + "calibration_in_the_large": -0.00398051984794039, + "expected_calibration_error_10bin": 0.004444491901240215, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 4.954696248155444e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0003131970419537554, + "calibration_in_the_large": 0.0003131970419537554, + "expected_calibration_error_10bin": 0.0003131970419537554, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8185355500530598, + "auprc": 0.0069924882665057695, + "brier": 0.0017626345919763736, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.000692647363695797, + "calibration_in_the_large": -0.0010728893594680448, + "expected_calibration_error_10bin": 0.0010728893594680448, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 6.006098854707309e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001247751287163795, + "calibration_in_the_large": 0.001247751287163795, + "expected_calibration_error_10bin": 0.001247751287163795, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.5961442342020707, + "auprc": 0.010070722628382224, + "brier": 0.0017764209432631992, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0008780052727235316, + "calibration_in_the_large": -0.0009038906645537315, + "expected_calibration_error_10bin": 0.0009038906645537315, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.8411078717201166, + "auprc": 0.023901119416790892, + "brier": 0.002166714547021685, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.0032651518097102533, + "calibration_in_the_large": 0.0010833336278920714, + "expected_calibration_error_10bin": 0.0010833336278920714, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.626726618705036, + "auprc": 0.01325752946190337, + "brier": 0.0035704969487086982, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.0035487048222877814, + "calibration_in_the_large": -3.552456839322213e-05, + "expected_calibration_error_10bin": 3.552456839322213e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.39668685429283934, + "auprc": 0.0008905632014448808, + "brier": 0.0007236365224038971, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0017615186156697438, + "calibration_in_the_large": 0.0010495214636583518, + "expected_calibration_error_10bin": 0.0010495214636583518, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8269704433497537, + "auprc": 0.008881491380252035, + "brier": 0.0024988787082262567, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0017506451493607353, + "calibration_in_the_large": -0.000757416477296377, + "expected_calibration_error_10bin": 0.000757416477296377, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8965211217607384, + "auprc": 0.01386336351393625, + "brier": 0.0021224485764079386, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001180113771497569, + "calibration_in_the_large": -0.0009452847407234724, + "expected_calibration_error_10bin": 0.0009452847407234724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 9, + "negatives": 2758, + "auroc": 0.8867939730883894, + "auprc": 0.0341227939699439, + "brier": 0.0034463863308811394, + "calibration": { + "observed_rate": 0.0032526201662450307, + "mean_prediction": 0.007170896768491764, + "calibration_in_the_large": 0.0039182766022467334, + "expected_calibration_error_10bin": 0.0039182766022467334, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 34, + "negatives": 1464, + "auroc": 0.6912568306010929, + "auprc": 0.061641514891592204, + "brier": 0.022088510298903758, + "calibration": { + "observed_rate": 0.022696929238985315, + "mean_prediction": 0.014107590247213265, + "calibration_in_the_large": -0.00858933899177205, + "expected_calibration_error_10bin": 0.009782781258052297, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 38, + "negatives": 2638, + "auroc": 0.8225330194325845, + "auprc": 0.050790442749169835, + "brier": 0.013840295495380708, + "calibration": { + "observed_rate": 0.014200298953662182, + "mean_prediction": 0.009706360005690803, + "calibration_in_the_large": -0.00449393894797138, + "expected_calibration_error_10bin": 0.0056122996561286005, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 21, + "negatives": 2531, + "auroc": 0.8328911967789882, + "auprc": 0.11174933281357421, + "brier": 0.007917549825699994, + "calibration": { + "observed_rate": 0.008228840125391849, + "mean_prediction": 0.005749250378239241, + "calibration_in_the_large": -0.002479589747152608, + "expected_calibration_error_10bin": 0.0029952939918081096, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 23, + "negatives": 2704, + "auroc": 0.8859821198868022, + "auprc": 0.12158836556267479, + "brier": 0.007892781349359494, + "calibration": { + "observed_rate": 0.008434176751008434, + "mean_prediction": 0.009673424104626977, + "calibration_in_the_large": 0.001239247353618543, + "expected_calibration_error_10bin": 0.001984384829000029, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 8, + "negatives": 2382, + "auroc": 0.9264273719563392, + "auprc": 0.02677010971058992, + "brier": 0.0033146975226939633, + "calibration": { + "observed_rate": 0.0033472803347280333, + "mean_prediction": 0.0017354081987446365, + "calibration_in_the_large": -0.0016118721359833967, + "expected_calibration_error_10bin": 0.0016118721359833967, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 18, + "negatives": 2653, + "auroc": 0.8123298571847385, + "auprc": 0.02920531504485378, + "brier": 0.006756580639606862, + "calibration": { + "observed_rate": 0.0067390490453013855, + "mean_prediction": 0.009375115183385069, + "calibration_in_the_large": 0.0026360661380836837, + "expected_calibration_error_10bin": 0.002636066138083683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 6, + "negatives": 2803, + "auroc": 0.8701985967415864, + "auprc": 0.018316074910610398, + "brier": 0.002125702353003243, + "calibration": { + "observed_rate": 0.002135991456034176, + "mean_prediction": 0.0015885410841561852, + "calibration_in_the_large": -0.0005474503718779907, + "expected_calibration_error_10bin": 0.0005474503718779907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 36, + "negatives": 2207, + "auroc": 0.8379650606655591, + "auprc": 0.07289912088956013, + "brier": 0.015404816410604927, + "calibration": { + "observed_rate": 0.016049933125278644, + "mean_prediction": 0.010874647681032542, + "calibration_in_the_large": -0.005175285444246102, + "expected_calibration_error_10bin": 0.005901734624256857, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 16, + "negatives": 2744, + "auroc": 0.7230092930029155, + "auprc": 0.09733892346397026, + "brier": 0.0056480143184958155, + "calibration": { + "observed_rate": 0.005797101449275362, + "mean_prediction": 0.005139803559931338, + "calibration_in_the_large": -0.000657297889344024, + "expected_calibration_error_10bin": 0.0006572978893440243, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8440439718868264, + "auprc": 0.05096958021566395, + "brier": 0.011238559145180713, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.00967781634481687, + "calibration_in_the_large": -0.0017360275432538215, + "expected_calibration_error_10bin": 0.005051047808072846, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7818334533237341, + "auprc": 0.0873782961869501, + "brier": 0.005251634590047343, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.0034837070714123794, + "calibration_in_the_large": -0.001886862208931337, + "expected_calibration_error_10bin": 0.0018868622089313375, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 15, + "negatives": 2738, + "auroc": 0.7788653518383248, + "auprc": 0.023878147573612375, + "brier": 0.005413917824997581, + "calibration": { + "observed_rate": 0.005448601525608427, + "mean_prediction": 0.004434041793008585, + "calibration_in_the_large": -0.0010145597325998427, + "expected_calibration_error_10bin": 0.0012652704977019924, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.706232364127101, + "auprc": 0.00942083663947535, + "brier": 0.0022650187586517605, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.004307978260463458, + "calibration_in_the_large": 0.002104526185546087, + "expected_calibration_error_10bin": 0.0021045261855460865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.9361737566208068, + "auprc": 0.07511603051084133, + "brier": 0.003884064596366708, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.003848738673326704, + "calibration_in_the_large": -0.0001658598668192817, + "expected_calibration_error_10bin": 0.0002647394260159763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 17, + "negatives": 2705, + "auroc": 0.8459497662281179, + "auprc": 0.039484632179104355, + "brier": 0.006174413017864265, + "calibration": { + "observed_rate": 0.006245407788390889, + "mean_prediction": 0.007138480731267301, + "calibration_in_the_large": 0.0008930729428764123, + "expected_calibration_error_10bin": 0.0008930729428764118, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 12, + "negatives": 2754, + "auroc": 0.6798293391430646, + "auprc": 0.014321911478814923, + "brier": 0.004323785873902152, + "calibration": { + "observed_rate": 0.004338394793926247, + "mean_prediction": 0.0050095267683581655, + "calibration_in_the_large": 0.0006711319744319181, + "expected_calibration_error_10bin": 0.0006711319744319181, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5678445229681979, + "auprc": 0.0008169934640522876, + "brier": 0.0003622468054656436, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0014948606953332562, + "calibration_in_the_large": 0.001141628621860985, + "expected_calibration_error_10bin": 0.001141628621860985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 12, + "negatives": 2704, + "auroc": 0.7339127218934911, + "auprc": 0.011108632130054521, + "brier": 0.0044261289020002354, + "calibration": { + "observed_rate": 0.004418262150220913, + "mean_prediction": 0.00565757058565756, + "calibration_in_the_large": 0.0012393084354366474, + "expected_calibration_error_10bin": 0.0012393084354366474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 22, + "negatives": 2363, + "auroc": 0.7861154926326318, + "auprc": 0.02929952385591281, + "brier": 0.009099035457399995, + "calibration": { + "observed_rate": 0.009224318658280923, + "mean_prediction": 0.00861318581382017, + "calibration_in_the_large": -0.0006111328444607534, + "expected_calibration_error_10bin": 0.0011662176245380174, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7399043766090474, + "auprc": 0.014916402291857355, + "brier": 0.005445801184733847, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003202887442297726, + "calibration_in_the_large": -0.0022835792731375334, + "expected_calibration_error_10bin": 0.0022835792731375334, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 38, + "negatives": 2377, + "auroc": 0.8236277483780972, + "auprc": 0.07720318603421275, + "brier": 0.015388689590023855, + "calibration": { + "observed_rate": 0.015734989648033125, + "mean_prediction": 0.014842250560021125, + "calibration_in_the_large": -0.0008927390880120005, + "expected_calibration_error_10bin": 0.00495343265140025, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 6, + "negatives": 2801, + "auroc": 0.7621087706771391, + "auprc": 0.005982978077701327, + "brier": 0.0021347287900391836, + "calibration": { + "observed_rate": 0.0021375133594584966, + "mean_prediction": 0.001802030629135904, + "calibration_in_the_large": -0.00033548273032259256, + "expected_calibration_error_10bin": 0.00033548273032259256, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.8686429849220547, + "auprc": 0.019947142647636047, + "brier": 0.00248905692083449, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.000600933523157416, + "calibration_in_the_large": -0.0018972820371566455, + "expected_calibration_error_10bin": 0.0018972820371566455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 11, + "negatives": 2724, + "auroc": 0.7699239086904285, + "auprc": 0.015272388518112747, + "brier": 0.004007551513604979, + "calibration": { + "observed_rate": 0.0040219378427787935, + "mean_prediction": 0.003388909959758698, + "calibration_in_the_large": -0.0006330278830200954, + "expected_calibration_error_10bin": 0.0007278226959983898, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6725893824485374, + "auprc": 0.017797745731027957, + "brier": 0.0018000381036334162, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0022767060552375514, + "calibration_in_the_large": 0.00047425472142356446, + "expected_calibration_error_10bin": 0.00047425472142356446, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6075812274368231, + "auprc": 0.0023238062608306356, + "brier": 0.0011027083692756016, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002480997072936275, + "calibration_in_the_large": 0.0013991362723592825, + "expected_calibration_error_10bin": 0.0013991362723592825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.768944099378882, + "auprc": 0.015187418501811923, + "brier": 0.005537893410112088, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.005770169674065734, + "calibration_in_the_large": 0.0003195882787168968, + "expected_calibration_error_10bin": 0.0009154675667738248, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 7, + "negatives": 2764, + "auroc": 0.7830266694231962, + "auprc": 0.015581558942490322, + "brier": 0.0025177896628127585, + "calibration": { + "observed_rate": 0.0025261638397690365, + "mean_prediction": 0.0026871342196474407, + "calibration_in_the_large": 0.0001609703798784042, + "expected_calibration_error_10bin": 0.0001609703798784042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7361663652802893, + "auprc": 0.005814112747936055, + "brier": 0.0014494455209585998, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.002183537729031609, + "calibration_in_the_large": 0.000738972904185094, + "expected_calibration_error_10bin": 0.000738972904185094, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.6757198720227515, + "auprc": 0.011825484736877398, + "brier": 0.0017697125162158729, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.0013681365436906822, + "calibration_in_the_large": -0.0004061714761815676, + "expected_calibration_error_10bin": 0.0004061714761815676, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 7, + "negatives": 2727, + "auroc": 0.7731154067787731, + "auprc": 0.15617837940133544, + "brier": 0.002512070605983239, + "calibration": { + "observed_rate": 0.002560351133869788, + "mean_prediction": 0.00258934109373644, + "calibration_in_the_large": 2.898995986665197e-05, + "expected_calibration_error_10bin": 2.898995986665197e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7490767045454545, + "auprc": 0.010558748027192078, + "brier": 0.0017679287816830124, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0006315543555702686, + "calibration_in_the_large": -0.0011408667716895683, + "expected_calibration_error_10bin": 0.0011408667716895683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.5667026249550522, + "auprc": 0.0031954237520098617, + "brier": 0.0014427951663798344, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.001740228869722801, + "calibration_in_the_large": 0.0003039631605666071, + "expected_calibration_error_10bin": 0.0003039631605666071, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7951647183846972, + "auprc": 0.13203263077100727, + "brier": 0.0013602678297184759, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0015102509176526757, + "calibration_in_the_large": 9.532343268628027e-05, + "expected_calibration_error_10bin": 0.0006225983807517477, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8793391780266558, + "auprc": 0.017688805140437146, + "brier": 0.0025682477007348183, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.002262338613898127, + "calibration_in_the_large": -0.00021466067838778972, + "expected_calibration_error_10bin": 0.0013010689547280473, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 26, + "negatives": 2713, + "auroc": 0.7390342793955031, + "auprc": 0.03763104493794466, + "brier": 0.009437338197070459, + "calibration": { + "observed_rate": 0.009492515516611903, + "mean_prediction": 0.007944219592937007, + "calibration_in_the_large": -0.0015482959236748951, + "expected_calibration_error_10bin": 0.00296775297266867, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 8, + "negatives": 2785, + "auroc": 0.99245960502693, + "auprc": 0.28687319624819624, + "brier": 0.002491385519707137, + "calibration": { + "observed_rate": 0.0028643036161833156, + "mean_prediction": 0.0018552452822414066, + "calibration_in_the_large": -0.001009058333941909, + "expected_calibration_error_10bin": 0.002162603606023327, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6864763969171483, + "auprc": 0.010689923674088149, + "brier": 0.004332182112618144, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.004456198993854721, + "calibration_in_the_large": 0.00013965223126479343, + "expected_calibration_error_10bin": 0.00013965223126479335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8556540233959589, + "auprc": 0.022131749966356324, + "brier": 0.0017592330101467908, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0007755905018798179, + "calibration_in_the_large": -0.0009936947068958366, + "expected_calibration_error_10bin": 0.0009936947068958366, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 77, + "negatives": 2408, + "auroc": 0.7524107951848815, + "auprc": 0.0985045851334859, + "brier": 0.029330145741304478, + "calibration": { + "observed_rate": 0.030985915492957747, + "mean_prediction": 0.02260119656718784, + "calibration_in_the_large": -0.008384718925769908, + "expected_calibration_error_10bin": 0.01020772960667088, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8385704175513092, + "auprc": 0.03752680121902282, + "brier": 0.0017429090767184534, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0012249691488145018, + "calibration_in_the_large": -0.0005411912185468546, + "expected_calibration_error_10bin": 0.0005411912185468546, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 9, + "negatives": 2731, + "auroc": 0.7514544936734611, + "auprc": 0.012983336130342804, + "brier": 0.003265708193979395, + "calibration": { + "observed_rate": 0.0032846715328467154, + "mean_prediction": 0.0026585931759382886, + "calibration_in_the_large": -0.0006260783569084268, + "expected_calibration_error_10bin": 0.0006260783569084268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.699964576691463, + "auprc": 0.0017216806172933254, + "brier": 0.000721578415676357, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0015932186855213404, + "calibration_in_the_large": 0.0008852540837514289, + "expected_calibration_error_10bin": 0.0008852540837514289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7197293447293447, + "auprc": 0.012591102779144693, + "brier": 0.0029092533835456957, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0033966275329643347, + "calibration_in_the_large": 0.0005557184420552437, + "expected_calibration_error_10bin": 0.0005557184420552435, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.425789867164042e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0022632097862533627, + "calibration_in_the_large": 0.0022632097862533627, + "expected_calibration_error_10bin": 0.002263209786253363, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.7772487723080609, + "auprc": 0.015675850272081026, + "brier": 0.004314043217885838, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.004610411924557424, + "calibration_in_the_large": 0.00031703088699033995, + "expected_calibration_error_10bin": 0.0003170308869903402, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 44, + "negatives": 2627, + "auroc": 0.7819064262726234, + "auprc": 0.06784556911806941, + "brier": 0.015857245020662037, + "calibration": { + "observed_rate": 0.01647323099962561, + "mean_prediction": 0.015503867190100308, + "calibration_in_the_large": -0.0009693638095253018, + "expected_calibration_error_10bin": 0.004297460721879697, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 6, + "negatives": 2809, + "auroc": 0.5650884063130415, + "auprc": 0.016292040056995482, + "brier": 0.002173188960172912, + "calibration": { + "observed_rate": 0.0021314387211367673, + "mean_prediction": 0.0031084321977971384, + "calibration_in_the_large": 0.0009769934766603711, + "expected_calibration_error_10bin": 0.0009769934766603713, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.505305978068624, + "auprc": 0.0027896486229819564, + "brier": 0.0007232958210313386, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0011656408539947856, + "calibration_in_the_large": 0.0004586772626197414, + "expected_calibration_error_10bin": 0.0004586772626197414, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.7196245129295076, + "auprc": 0.006762454592631033, + "brier": 0.0007121022327653699, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001477126687331196, + "calibration_in_the_large": 0.0007691620855612844, + "expected_calibration_error_10bin": 0.0007691620855612844, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.726032994534961, + "auprc": 0.007672847207613127, + "brier": 0.0024918344203843606, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0019992103455274087, + "calibration_in_the_large": -0.0004972233206637466, + "expected_calibration_error_10bin": 0.0004972233206637466, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 22, + "negatives": 2548, + "auroc": 0.8029292136434993, + "auprc": 0.03604439590961906, + "brier": 0.008399513578427654, + "calibration": { + "observed_rate": 0.008560311284046693, + "mean_prediction": 0.007405278084686176, + "calibration_in_the_large": -0.0011550331993605174, + "expected_calibration_error_10bin": 0.0014350900525992273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 21, + "negatives": 2497, + "auroc": 0.6887693803993363, + "auprc": 0.04296757093607983, + "brier": 0.008197041548056623, + "calibration": { + "observed_rate": 0.008339952343129467, + "mean_prediction": 0.007456329942978083, + "calibration_in_the_large": -0.000883622400151384, + "expected_calibration_error_10bin": 0.001051919618045402, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.84007331204919, + "auprc": 0.010333399347284767, + "brier": 0.0021178536953092007, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0007903510383791058, + "calibration_in_the_large": -0.0013335427669306289, + "expected_calibration_error_10bin": 0.0013335427669306289, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 24, + "negatives": 2753, + "auroc": 0.798189853493159, + "auprc": 0.024437189139162357, + "brier": 0.008546437238457476, + "calibration": { + "observed_rate": 0.008642419877565718, + "mean_prediction": 0.006806393024261114, + "calibration_in_the_large": -0.0018360268533046042, + "expected_calibration_error_10bin": 0.0018360268533046042, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.7772835617604494, + "auprc": 0.026032344677961495, + "brier": 0.006059753261588108, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.0027005703996048104, + "calibration_in_the_large": -0.0034123386259255744, + "expected_calibration_error_10bin": 0.003493372619361612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9202338586680223, + "auprc": 0.021090146906993797, + "brier": 0.0024635400150446324, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0016115406328159859, + "calibration_in_the_large": -0.0008733723952280327, + "expected_calibration_error_10bin": 0.0008733723952280327, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 28, + "negatives": 2726, + "auroc": 0.6665836914369563, + "auprc": 0.024654812632588136, + "brier": 0.010095870515085608, + "calibration": { + "observed_rate": 0.010167029774872912, + "mean_prediction": 0.007404398268183877, + "calibration_in_the_large": -0.0027626315066890342, + "expected_calibration_error_10bin": 0.002762631506689035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8385412942438327, + "auprc": 0.05347332849294183, + "brier": 0.0035053892127997993, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0035308596669988953, + "calibration_in_the_large": -3.166259876526568e-05, + "expected_calibration_error_10bin": 3.1662598765265684e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6145390070921986, + "auprc": 0.024397327456002663, + "brier": 0.0032014253626006673, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0016185692847942848, + "calibration_in_the_large": -0.0015627668763934142, + "expected_calibration_error_10bin": 0.0019450607546304835, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.7864998791394731, + "auprc": 0.0410328552553777, + "brier": 0.0042551118571847206, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.003863026708773884, + "calibration_in_the_large": -0.0004691032551250329, + "expected_calibration_error_10bin": 0.0004691032551250329, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 59, + "negatives": 2546, + "auroc": 0.8452940471593859, + "auprc": 0.10905912477967014, + "brier": 0.021196488659246976, + "calibration": { + "observed_rate": 0.022648752399232246, + "mean_prediction": 0.018949325920941833, + "calibration_in_the_large": -0.003699426478290413, + "expected_calibration_error_10bin": 0.006227346290364733, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 29, + "negatives": 2663, + "auroc": 0.7439626037525736, + "auprc": 0.06610839485223254, + "brier": 0.010486864640870067, + "calibration": { + "observed_rate": 0.010772659732540862, + "mean_prediction": 0.0070399559787165476, + "calibration_in_the_large": -0.003732703753824314, + "expected_calibration_error_10bin": 0.003732703753824314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9294532627865961, + "auprc": 0.004975124378109453, + "brier": 0.00035264442028025227, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0004131883921680789, + "calibration_in_the_large": 6.0579083282324346e-05, + "expected_calibration_error_10bin": 6.0579083282324346e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 10, + "negatives": 2814, + "auroc": 0.8950959488272922, + "auprc": 0.078733942125661, + "brier": 0.004766084593822068, + "calibration": { + "observed_rate": 0.0035410764872521247, + "mean_prediction": 0.006784811290305514, + "calibration_in_the_large": 0.0032437348030533893, + "expected_calibration_error_10bin": 0.004647456303246788, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 6, + "negatives": 2807, + "auroc": 0.7411827573922337, + "auprc": 0.01032096965865853, + "brier": 0.002214057900147217, + "calibration": { + "observed_rate": 0.002132954141485958, + "mean_prediction": 0.005272974934958303, + "calibration_in_the_large": 0.003140020793472345, + "expected_calibration_error_10bin": 0.0031400207934723454, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 67, + "negatives": 1976, + "auroc": 0.7637697141821258, + "auprc": 0.14636417380673292, + "brier": 0.030206455574804912, + "calibration": { + "observed_rate": 0.032794909446891826, + "mean_prediction": 0.030185259843819076, + "calibration_in_the_large": -0.00260964960307275, + "expected_calibration_error_10bin": 0.003358854933817815, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 14, + "negatives": 2750, + "auroc": 0.784, + "auprc": 0.03472257160660861, + "brier": 0.00499290020813367, + "calibration": { + "observed_rate": 0.005065123010130246, + "mean_prediction": 0.004781459398574094, + "calibration_in_the_large": -0.00028366361155615204, + "expected_calibration_error_10bin": 0.0003618817097414935, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7742796157950907, + "auprc": 0.006413102498107646, + "brier": 0.0022128864365988654, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0030574493610571974, + "calibration_in_the_large": 0.0009275239084480386, + "expected_calibration_error_10bin": 0.0009275239084480381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9445354218583125, + "auprc": 0.09283233873851356, + "brier": 0.001738014352477527, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.001772873193230676, + "calibration_in_the_large": -3.956941808414298e-06, + "expected_calibration_error_10bin": 3.956941808414298e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.7509189189189189, + "auprc": 0.019354210422900343, + "brier": 0.003594632530738661, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.005606115715962975, + "calibration_in_the_large": 0.00201545144307249, + "expected_calibration_error_10bin": 0.00201545144307249, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8469135802469135, + "auprc": 0.003353827406668882, + "brier": 0.0007132948308662748, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0013523894847906428, + "calibration_in_the_large": 0.0006474194460172907, + "expected_calibration_error_10bin": 0.0006474194460172907, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.9285418946856379, + "auprc": 0.07521004712558708, + "brier": 0.005263908334781001, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.005631360275867643, + "calibration_in_the_large": 0.00018868973885748357, + "expected_calibration_error_10bin": 0.00032044957913463396, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9172568460812087, + "auprc": 0.008360929409497585, + "brier": 0.0010586573415623573, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0010231231494283075, + "calibration_in_the_large": -3.8072464296489165e-05, + "expected_calibration_error_10bin": 3.8072464296489165e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.818259325044405, + "auprc": 0.013842155895606213, + "brier": 0.0017752178171748833, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0011152649251222966, + "calibration_in_the_large": -0.0006577847202677743, + "expected_calibration_error_10bin": 0.0007330422633987435, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8066239316239316, + "auprc": 0.02511562025879922, + "brier": 0.0017594736002354446, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0014333776262823099, + "calibration_in_the_large": -0.0003440841582893219, + "expected_calibration_error_10bin": 0.0003440841582893219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.6797122302158274, + "auprc": 0.00873490151646043, + "brier": 0.0017956020531119962, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.002707762181144487, + "calibration_in_the_large": 0.0009124300446992444, + "expected_calibration_error_10bin": 0.0009124300446992444, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 31, + "negatives": 2718, + "auroc": 0.8315886918749555, + "auprc": 0.0669435880926444, + "brier": 0.01116533457102985, + "calibration": { + "observed_rate": 0.011276827937431793, + "mean_prediction": 0.009990442171706877, + "calibration_in_the_large": -0.0012863857657249168, + "expected_calibration_error_10bin": 0.005137225150066861, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7729337370858568, + "auprc": 0.0069328497387420845, + "brier": 0.0028785203471976746, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.002808402249302501, + "calibration_in_the_large": -3.351604554652178e-05, + "expected_calibration_error_10bin": 0.0002074486770747085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 26, + "negatives": 2719, + "auroc": 0.7907601776671288, + "auprc": 0.039373440767163634, + "brier": 0.009287395031466387, + "calibration": { + "observed_rate": 0.00947176684881603, + "mean_prediction": 0.009621846335752929, + "calibration_in_the_large": 0.00015007948693689967, + "expected_calibration_error_10bin": 0.0006997858764412244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 20, + "negatives": 2721, + "auroc": 0.6812752664461595, + "auprc": 0.01893953982265387, + "brier": 0.007261311452192113, + "calibration": { + "observed_rate": 0.0072966070777088655, + "mean_prediction": 0.00472283480179082, + "calibration_in_the_large": -0.0025737722759180456, + "expected_calibration_error_10bin": 0.0027432522337748682, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.754295973326494, + "auprc": 0.018802760613989666, + "brier": 0.0024906852579561606, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0017777359538894465, + "calibration_in_the_large": -0.0007294273698927886, + "expected_calibration_error_10bin": 0.0007294273698927886, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.7308363809169611, + "auprc": 0.1175239219388141, + "brier": 0.02842868297197687, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.021538874493614912, + "calibration_in_the_large": -0.008929875506385087, + "expected_calibration_error_10bin": 0.010303010996960892, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8162560990122575, + "auprc": 0.01357571602644622, + "brier": 0.004241193899539066, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0026199577255033085, + "calibration_in_the_large": -0.001645950557468608, + "expected_calibration_error_10bin": 0.001645950557468608, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7045438282647585, + "auprc": 0.011679274449539008, + "brier": 0.005316681722420125, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.0033662688990873536, + "calibration_in_the_large": -0.001971809392727593, + "expected_calibration_error_10bin": 0.001971809392727593, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 17, + "negatives": 2784, + "auroc": 0.7870605138607167, + "auprc": 0.02132433431793716, + "brier": 0.00617370223521612, + "calibration": { + "observed_rate": 0.006069260978222063, + "mean_prediction": 0.005388564327547505, + "calibration_in_the_large": -0.0006806966506745582, + "expected_calibration_error_10bin": 0.0028496244645191274, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.8863474141846733, + "auprc": 0.049008979286491214, + "brier": 0.004026144394015355, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.007321727104804023, + "calibration_in_the_large": 0.0034113111787464337, + "expected_calibration_error_10bin": 0.003411311178746434, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 7, + "negatives": 2789, + "auroc": 0.7043487168980177, + "auprc": 0.01153732111534955, + "brier": 0.00252618344202077, + "calibration": { + "observed_rate": 0.002503576537911302, + "mean_prediction": 0.0035642277010672903, + "calibration_in_the_large": 0.0010606511631559884, + "expected_calibration_error_10bin": 0.0010606511631559884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9534799855751893, + "auprc": 0.007692307692307693, + "brier": 0.00038396451491207265, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0010201868186526142, + "calibration_in_the_large": 0.0006596965518898168, + "expected_calibration_error_10bin": 0.0006596965518898167, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9634244211709, + "auprc": 0.22525093132695956, + "brier": 0.005922820809268241, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.004669138528333795, + "calibration_in_the_large": -0.0017894190604713723, + "expected_calibration_error_10bin": 0.003450166339606723, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9625233257308728, + "auprc": 0.048143555497229144, + "brier": 0.0026739896109660823, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.0033317934607603413, + "calibration_in_the_large": 0.0007983153572496647, + "expected_calibration_error_10bin": 0.0016383568968474384, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.787948350071736, + "auprc": 0.024028046808372627, + "brier": 0.003563583156497125, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0025580291588450954, + "calibration_in_the_large": -0.001015952256451545, + "expected_calibration_error_10bin": 0.0014453208603116244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 26, + "negatives": 2655, + "auroc": 0.7999130812690135, + "auprc": 0.16918549452844692, + "brier": 0.00891667327209488, + "calibration": { + "observed_rate": 0.00969787392763894, + "mean_prediction": 0.005386042842024636, + "calibration_in_the_large": -0.004311831085614304, + "expected_calibration_error_10bin": 0.005247169637111773, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.7376486453352948, + "auprc": 0.01629971340954513, + "brier": 0.004364831390865132, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.0033385739542876125, + "calibration_in_the_large": -0.0010554209193850347, + "expected_calibration_error_10bin": 0.0010554209193850347, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8364539007092199, + "auprc": 0.018210201787105716, + "brier": 0.0017683118050705298, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.001474414529394517, + "calibration_in_the_large": -0.00029549697503026173, + "expected_calibration_error_10bin": 0.00029549697503026173, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6195035460992908, + "auprc": 0.004669717298281036, + "brier": 0.001419092026124376, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0011054424420146034, + "calibration_in_the_large": -0.0003109881528862465, + "expected_calibration_error_10bin": 0.0003109881528862465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 10, + "negatives": 2747, + "auroc": 0.8693483800509647, + "auprc": 0.11859947382503652, + "brier": 0.0035723106463443847, + "calibration": { + "observed_rate": 0.003627130939426913, + "mean_prediction": 0.0038206997035089975, + "calibration_in_the_large": 0.00019356876408208436, + "expected_calibration_error_10bin": 0.0018547073439910318, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 4, + "negatives": 2775, + "auroc": 0.8159459459459459, + "auprc": 0.07772871592075745, + "brier": 0.0014226288933130574, + "calibration": { + "observed_rate": 0.0014393666786613889, + "mean_prediction": 0.0017442252546476665, + "calibration_in_the_large": 0.00030485857598627764, + "expected_calibration_error_10bin": 0.00030485857598627764, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7298673248997223, + "auprc": 0.018587853870817288, + "brier": 0.0025103379422632913, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0027758642470762165, + "calibration_in_the_large": 0.0002623992560528772, + "expected_calibration_error_10bin": 0.0002623992560528772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.6501766784452296, + "auprc": 0.0010090817356205853, + "brier": 0.0003555957783717239, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0006777579856092488, + "calibration_in_the_large": 0.00032452591213697754, + "expected_calibration_error_10bin": 0.00032452591213697754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 20, + "negatives": 2748, + "auroc": 0.8512372634643377, + "auprc": 0.05146942870318336, + "brier": 0.007067399551398266, + "calibration": { + "observed_rate": 0.0072254335260115606, + "mean_prediction": 0.007022652531407145, + "calibration_in_the_large": -0.00020278099460441582, + "expected_calibration_error_10bin": 0.0011052914042300403, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.8655780485950999, + "auprc": 0.07834125185974636, + "brier": 0.010132905049712747, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.008346282579721412, + "calibration_in_the_large": -0.0021953386489227174, + "expected_calibration_error_10bin": 0.003027721521520493, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8852413161775924, + "auprc": 0.072152049702643, + "brier": 0.004801396861444905, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.003924063484815608, + "calibration_in_the_large": -0.0010351997103668223, + "expected_calibration_error_10bin": 0.0014059369851080023, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.7742836676217765, + "auprc": 0.016438425684785124, + "brier": 0.005301355762627906, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.004609185984620676, + "calibration_in_the_large": -0.0007345974140255656, + "expected_calibration_error_10bin": 0.0007345974140255656, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 35, + "negatives": 2666, + "auroc": 0.7007180366520201, + "auprc": 0.05711271046930594, + "brier": 0.012646328081183503, + "calibration": { + "observed_rate": 0.01295816364309515, + "mean_prediction": 0.009676775310347961, + "calibration_in_the_large": -0.003281388332747189, + "expected_calibration_error_10bin": 0.004605520687922045, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6277522123893805, + "auprc": 0.0039393938558939644, + "brier": 0.0017712160813387983, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0011919495421019595, + "calibration_in_the_large": -0.0005748349101948602, + "expected_calibration_error_10bin": 0.0005748349101948602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 8, + "negatives": 2810, + "auroc": 0.702846975088968, + "auprc": 0.009357322837957831, + "brier": 0.0031721651785353217, + "calibration": { + "observed_rate": 0.0028388928317956, + "mean_prediction": 0.0049327581627413505, + "calibration_in_the_large": 0.0020938653309457507, + "expected_calibration_error_10bin": 0.0020938653309457503, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.685737976782753, + "auprc": 0.011349366572825604, + "brier": 0.0011186245426421354, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.003997174703019038, + "calibration_in_the_large": 0.0029322119767144585, + "expected_calibration_error_10bin": 0.0029322119767144585, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.7439861669124752, + "auprc": 0.02597672777406588, + "brier": 0.002484297525161021, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.0022533609792470795, + "calibration_in_the_large": -0.000232434475298375, + "expected_calibration_error_10bin": 0.0003179047154805336, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7202212806026366, + "auprc": 0.009741647241647241, + "brier": 0.001056706343579175, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009507349336263601, + "calibration_in_the_large": -0.00010746612457469818, + "expected_calibration_error_10bin": 0.00010746612457469818, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 6.96255489202472e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001174277900269732, + "calibration_in_the_large": 0.001174277900269732, + "expected_calibration_error_10bin": 0.001174277900269732, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7081627006087438, + "auprc": 0.013306689464806811, + "brier": 0.004631512107964332, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.004406790003377332, + "calibration_in_the_large": -0.0002477033729205557, + "expected_calibration_error_10bin": 0.0002477033729205557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 19, + "negatives": 2779, + "auroc": 0.8550216851953562, + "auprc": 0.03597970959686891, + "brier": 0.006691854390559189, + "calibration": { + "observed_rate": 0.006790564689063617, + "mean_prediction": 0.0039019670443686937, + "calibration_in_the_large": -0.002888597644694923, + "expected_calibration_error_10bin": 0.003206433916891662, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.8910014383315354, + "auprc": 0.0831473969072858, + "brier": 0.002894509071993084, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.0050039676971305085, + "calibration_in_the_large": 0.002135556080063459, + "expected_calibration_error_10bin": 0.002135556080063459, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6561901383469315, + "auprc": 0.003682054804257187, + "brier": 0.0018106105513184334, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0034278223722060083, + "calibration_in_the_large": 0.001657284128579946, + "expected_calibration_error_10bin": 0.001657284128579946, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 12, + "negatives": 2701, + "auroc": 0.7472232506479082, + "auprc": 0.06583478936179675, + "brier": 0.004348629212864602, + "calibration": { + "observed_rate": 0.0044231478068558795, + "mean_prediction": 0.005042050012549196, + "calibration_in_the_large": 0.0006189022056933167, + "expected_calibration_error_10bin": 0.0010268783902155926, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 2, + "negatives": 2788, + "auroc": 0.7733142037302726, + "auprc": 0.002445387339846443, + "brier": 0.0007223137851237502, + "calibration": { + "observed_rate": 0.0007168458781362007, + "mean_prediction": 0.0012998174419817424, + "calibration_in_the_large": 0.0005829715638455417, + "expected_calibration_error_10bin": 0.0005829715638455417, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.6966062979278839, + "auprc": 0.006842881026299662, + "brier": 0.003326337049525601, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.0027735705189706524, + "calibration_in_the_large": -0.0005195140035320917, + "expected_calibration_error_10bin": 0.0006272195639273675, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 30, + "negatives": 2644, + "auroc": 0.6927634896621281, + "auprc": 0.03021716220881654, + "brier": 0.011074414516080858, + "calibration": { + "observed_rate": 0.011219147344801795, + "mean_prediction": 0.008433322939455154, + "calibration_in_the_large": -0.002785824405346641, + "expected_calibration_error_10bin": 0.003797403608791802, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9946808510638298, + "auprc": 0.0625, + "brier": 0.0003489717268797388, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0012641479473060274, + "calibration_in_the_large": 0.00090966372185406, + "expected_calibration_error_10bin": 0.00090966372185406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 28, + "negatives": 2689, + "auroc": 0.6642272751421133, + "auprc": 0.03647111911592776, + "brier": 0.010227096464533661, + "calibration": { + "observed_rate": 0.010305483989694516, + "mean_prediction": 0.008561066296319982, + "calibration_in_the_large": -0.0017444176933745347, + "expected_calibration_error_10bin": 0.0022093062811605205, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 1, + "negatives": 2805, + "auroc": 0.9686274509803922, + "auprc": 0.011235955056179775, + "brier": 0.00035801785509282833, + "calibration": { + "observed_rate": 0.0003563791874554526, + "mean_prediction": 0.001022646062635868, + "calibration_in_the_large": 0.0006662668751804153, + "expected_calibration_error_10bin": 0.0006662668751804153, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7290035587188612, + "auprc": 0.0033948792950564514, + "brier": 0.0014251326938289769, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0018077395413321443, + "calibration_in_the_large": 0.0003862754333008721, + "expected_calibration_error_10bin": 0.0003862754333008721, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 7, + "negatives": 2736, + "auroc": 0.8068609022556391, + "auprc": 0.023471933010737273, + "brier": 0.0025294543364502734, + "calibration": { + "observed_rate": 0.0025519504192489974, + "mean_prediction": 0.0021183245684030603, + "calibration_in_the_large": -0.0004336258508459371, + "expected_calibration_error_10bin": 0.0004336258508459371, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7145522388059702, + "auprc": 0.016669094452675864, + "brier": 0.003702661808036115, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.004867082195749417, + "calibration_in_the_large": 0.001149610076790309, + "expected_calibration_error_10bin": 0.001149610076790309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 2, + "negatives": 2783, + "auroc": 0.6656485806683435, + "auprc": 0.0017576955323990897, + "brier": 0.0007206690120025869, + "calibration": { + "observed_rate": 0.000718132854578097, + "mean_prediction": 0.0017106668376719381, + "calibration_in_the_large": 0.000992533983093841, + "expected_calibration_error_10bin": 0.000992533983093841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 35, + "negatives": 2532, + "auroc": 0.7073685398329949, + "auprc": 0.04952558904369427, + "brier": 0.013354239949693638, + "calibration": { + "observed_rate": 0.013634592910011687, + "mean_prediction": 0.014658147682617485, + "calibration_in_the_large": 0.0010235547726057982, + "expected_calibration_error_10bin": 0.0012829027901427009, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 8, + "negatives": 2773, + "auroc": 0.7168229354489722, + "auprc": 0.026121711889759515, + "brier": 0.0028563388747443862, + "calibration": { + "observed_rate": 0.002876663070837828, + "mean_prediction": 0.0029615708962309225, + "calibration_in_the_large": 8.490782539309454e-05, + "expected_calibration_error_10bin": 8.490782539309454e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 29, + "negatives": 2668, + "auroc": 0.7584914439332058, + "auprc": 0.04320390597311603, + "brier": 0.010630095230825354, + "calibration": { + "observed_rate": 0.010752688172043012, + "mean_prediction": 0.013376241886966182, + "calibration_in_the_large": 0.00262355371492317, + "expected_calibration_error_10bin": 0.002623553714923172, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 11, + "negatives": 2694, + "auroc": 0.784841735843963, + "auprc": 0.02051022097870615, + "brier": 0.004068335820078541, + "calibration": { + "observed_rate": 0.004066543438077634, + "mean_prediction": 0.003482243547578272, + "calibration_in_the_large": -0.0005842998904993617, + "expected_calibration_error_10bin": 0.0009339290747339665, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.814219694276573, + "auprc": 0.028981611805259704, + "brier": 0.0017578183714309526, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.002241933773060531, + "calibration_in_the_large": 0.00046762575318828143, + "expected_calibration_error_10bin": 0.00046762575318828143, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.589227505562167, + "auprc": 0.0036314994571201844, + "brier": 0.002533679433508056, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.002192191042032349, + "calibration_in_the_large": -0.0003367106920716973, + "expected_calibration_error_10bin": 0.0003367106920716973, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7653024637606926, + "auprc": 0.04826039532352576, + "brier": 0.004930093173469618, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.002602173846788311, + "calibration_in_the_large": -0.0023924747440072654, + "expected_calibration_error_10bin": 0.002392474744007265, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.821969696969697, + "auprc": 0.0037968735702383787, + "brier": 0.0010636107408864537, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0004378641021399217, + "calibration_in_the_large": -0.0006263430635216604, + "expected_calibration_error_10bin": 0.0006263430635216604, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 2, + "negatives": 2802, + "auroc": 0.7997858672376874, + "auprc": 0.0027499379713239553, + "brier": 0.0007183411262149898, + "calibration": { + "observed_rate": 0.0007132667617689016, + "mean_prediction": 0.0018669902454377173, + "calibration_in_the_large": 0.0011537234836688157, + "expected_calibration_error_10bin": 0.0011537234836688157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6724504249291785, + "auprc": 0.008739837966208508, + "brier": 0.002481960242450087, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0018602640691012338, + "calibration_in_the_large": -0.0006123604452046654, + "expected_calibration_error_10bin": 0.0006854759165143391, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 11, + "negatives": 2745, + "auroc": 0.6390793177678423, + "auprc": 0.010637727552430361, + "brier": 0.003984765091136985, + "calibration": { + "observed_rate": 0.0039912917271407835, + "mean_prediction": 0.003767042170671017, + "calibration_in_the_large": -0.00022424955646976625, + "expected_calibration_error_10bin": 0.00022424955646976625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8745755840470278, + "auprc": 0.025790588481300124, + "brier": 0.002455532494094336, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.0012002980597475327, + "calibration_in_the_large": -0.0012767012325383838, + "expected_calibration_error_10bin": 0.0012767012325383838, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 77, + "negatives": 2215, + "auroc": 0.8150743162029844, + "auprc": 0.14604683283843545, + "brier": 0.030760589981395376, + "calibration": { + "observed_rate": 0.033595113438045374, + "mean_prediction": 0.02844238674058381, + "calibration_in_the_large": -0.005152726697461564, + "expected_calibration_error_10bin": 0.011782966032803793, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 37, + "negatives": 2403, + "auroc": 0.8593537357582302, + "auprc": 0.20233125599885976, + "brier": 0.013766236179018738, + "calibration": { + "observed_rate": 0.015163934426229509, + "mean_prediction": 0.008873693183197069, + "calibration_in_the_large": -0.00629024124303244, + "expected_calibration_error_10bin": 0.00726175352575768, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8155825589706933, + "auprc": 0.013167848485269595, + "brier": 0.0028411633024582965, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0011321154744146614, + "calibration_in_the_large": -0.0017189180252289596, + "expected_calibration_error_10bin": 0.0017189180252289596, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9234808259587021, + "auprc": 0.05834012775052156, + "brier": 0.002093967331706802, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0010998203840768789, + "calibration_in_the_large": -0.0010195720567567489, + "expected_calibration_error_10bin": 0.00109888486889762, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 5, + "negatives": 2784, + "auroc": 0.8383620689655172, + "auprc": 0.02340407775165685, + "brier": 0.001784667201819085, + "calibration": { + "observed_rate": 0.0017927572606669057, + "mean_prediction": 0.0036708174720282197, + "calibration_in_the_large": 0.001878060211361314, + "expected_calibration_error_10bin": 0.001878060211361314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.6669424743892829, + "auprc": 0.009130988440460421, + "brier": 0.0031978366176172203, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0030683723135860354, + "calibration_in_the_large": -0.00011296384760166355, + "expected_calibration_error_10bin": 0.00011296384760166355, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.830782981766178, + "auprc": 0.02672658556291444, + "brier": 0.003527577809659908, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.002707428825973713, + "calibration_in_the_large": -0.0008550934397904479, + "expected_calibration_error_10bin": 0.0008550934397904479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 71, + "negatives": 2449, + "auroc": 0.7597237159173909, + "auprc": 0.078429303561278, + "brier": 0.0268271220186988, + "calibration": { + "observed_rate": 0.028174603174603175, + "mean_prediction": 0.02521190874577437, + "calibration_in_the_large": -0.002962694428828804, + "expected_calibration_error_10bin": 0.005728584604216775, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 16, + "negatives": 2590, + "auroc": 0.7695704633204633, + "auprc": 0.03273820212212121, + "brier": 0.006094466906959114, + "calibration": { + "observed_rate": 0.0061396776669224865, + "mean_prediction": 0.006313950351337178, + "calibration_in_the_large": 0.0001742726844146912, + "expected_calibration_error_10bin": 0.0004693728067132663, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 3, + "negatives": 2826, + "auroc": 0.9587166784619013, + "auprc": 0.021352819661998406, + "brier": 0.001054408900514575, + "calibration": { + "observed_rate": 0.0010604453870625664, + "mean_prediction": 0.001063245301879518, + "calibration_in_the_large": 2.799914816951519e-06, + "expected_calibration_error_10bin": 2.799914816951519e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7537580529706513, + "auprc": 0.004770302127180749, + "brier": 0.0017870403744427489, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0013515540833935833, + "calibration_in_the_large": -0.00043479818527379795, + "expected_calibration_error_10bin": 0.00043479818527379795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.31234448734448733, + "brier": 0.0018921943224700975, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.001126673121455646, + "calibration_in_the_large": -0.0010607129521863518, + "expected_calibration_error_10bin": 0.0015781368752115074, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998491135420596, + "auprc": 0.2, + "brier": 0.0004209888179630057, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0007220172714301351, + "calibration_in_the_large": 0.0003449433649444639, + "expected_calibration_error_10bin": 0.000344943364944464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6449352808455053, + "auprc": 0.003097426042972871, + "brier": 0.001067420650895661, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0011811617949458724, + "calibration_in_the_large": 0.00011354613658288298, + "expected_calibration_error_10bin": 0.00011354613658288298, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.0411785763597974e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0025764609156883667, + "calibration_in_the_large": 0.0025764609156883667, + "expected_calibration_error_10bin": 0.0025764609156883667, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "240": { + "A04": { + "valid": 2782, + "positives": 23, + "negatives": 2759, + "auroc": 0.7963660431473281, + "auprc": 0.07878124575748585, + "brier": 0.00812411141393744, + "calibration": { + "observed_rate": 0.00826743350107836, + "mean_prediction": 0.0076891722756966974, + "calibration_in_the_large": -0.000578261225381663, + "expected_calibration_error_10bin": 0.003029817372940588, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8470706351005602, + "auprc": 0.12973738832806744, + "brier": 0.003779688153202643, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.004447380231656793, + "calibration_in_the_large": 0.0005439025879378431, + "expected_calibration_error_10bin": 0.0010923234862210232, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 57, + "negatives": 2607, + "auroc": 0.7498637272121615, + "auprc": 0.06883329793309541, + "brier": 0.020865624258372333, + "calibration": { + "observed_rate": 0.021396396396396396, + "mean_prediction": 0.021282212083202717, + "calibration_in_the_large": -0.00011418431319367914, + "expected_calibration_error_10bin": 0.006178383979510121, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7425399644760213, + "auprc": 0.01607089043502073, + "brier": 0.0015271602154289616, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002088727361791007, + "calibration_in_the_large": 0.0006697844742422311, + "expected_calibration_error_10bin": 0.0011335048938774027, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6236292889989388, + "auprc": 0.0009389671361502347, + "brier": 0.0003590120036452306, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0009080953180455382, + "calibration_in_the_large": 0.0005544885287951846, + "expected_calibration_error_10bin": 0.0005544885287951846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 5, + "negatives": 2777, + "auroc": 0.9577961829312207, + "auprc": 0.1362482526712006, + "brier": 0.0016998256034700498, + "calibration": { + "observed_rate": 0.0017972681524083393, + "mean_prediction": 0.0021902224731282934, + "calibration_in_the_large": 0.0003929543207199541, + "expected_calibration_error_10bin": 0.0006671860678234116, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8835311254873399, + "auprc": 0.09393853033328754, + "brier": 0.005989812817446358, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0018670258360610305, + "calibration_in_the_large": -0.004285706701036327, + "expected_calibration_error_10bin": 0.0043810216469365474, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9915014164305949, + "auprc": 0.2769607843137255, + "brier": 0.0017334368858119287, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.00025836851834354146, + "calibration_in_the_large": -0.001509040460094069, + "expected_calibration_error_10bin": 0.0015839326006581902, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.08124905426783136, + "brier": 0.0017147580350896378, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0012588629436023327, + "calibration_in_the_large": -0.0005072974237590236, + "expected_calibration_error_10bin": 0.0006609184685782214, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.8328042328042328, + "auprc": 0.002105263157894737, + "brier": 0.00036345523010731644, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.001714610730755115, + "calibration_in_the_large": 0.0013620014218693605, + "expected_calibration_error_10bin": 0.0013620014218693605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 31, + "negatives": 2737, + "auroc": 0.7674873596002216, + "auprc": 0.043296589045819144, + "brier": 0.010997071464406899, + "calibration": { + "observed_rate": 0.011199421965317919, + "mean_prediction": 0.009452657487415934, + "calibration_in_the_large": -0.001746764477901985, + "expected_calibration_error_10bin": 0.0036668669865867884, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 54, + "negatives": 2624, + "auroc": 0.7191028681120144, + "auprc": 0.04200516799297982, + "brier": 0.020042672580964316, + "calibration": { + "observed_rate": 0.020164301717699777, + "mean_prediction": 0.018840984214915864, + "calibration_in_the_large": -0.0013233175027839127, + "expected_calibration_error_10bin": 0.006920849748992887, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 72, + "negatives": 2558, + "auroc": 0.7674344105638086, + "auprc": 0.07930316992820508, + "brier": 0.02611946356642735, + "calibration": { + "observed_rate": 0.02737642585551331, + "mean_prediction": 0.022206659321522715, + "calibration_in_the_large": -0.005169766533990594, + "expected_calibration_error_10bin": 0.00941199012018365, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.883934890304317, + "auprc": 0.018828680897646416, + "brier": 0.0007127828289552922, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0009125784465843278, + "calibration_in_the_large": 0.0002053648680836206, + "expected_calibration_error_10bin": 0.00020536486808362065, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9796243798724309, + "auprc": 0.02506265664160401, + "brier": 0.0007026761952999196, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0006591356950679108, + "calibration_in_the_large": -4.9079602382514145e-05, + "expected_calibration_error_10bin": 4.9079602382514145e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9234972677595629, + "auprc": 0.032907107339057495, + "brier": 0.002127495758007071, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0007606127869715254, + "calibration_in_the_large": -0.0013730998730569243, + "expected_calibration_error_10bin": 0.0014634011642500114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.9869967937299609, + "auprc": 0.2635135135135135, + "brier": 0.0006509664277468356, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0007940557282924934, + "calibration_in_the_large": 8.205857628110138e-05, + "expected_calibration_error_10bin": 0.0006977605733787375, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9582590082054941, + "auprc": 0.025528169014084508, + "brier": 0.0007092358080631762, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0012329999949979894, + "calibration_in_the_large": 0.0005199875172796294, + "expected_calibration_error_10bin": 0.0005199875172796294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9895649097983729, + "auprc": 0.04957160342717258, + "brier": 0.0007001223924112263, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0006811149219830534, + "calibration_in_the_large": -2.5848669391990813e-05, + "expected_calibration_error_10bin": 2.5848669391990813e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8989059080962801, + "auprc": 0.11535480038936016, + "brier": 0.006910242126007189, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.004318359914986717, + "calibration_in_the_large": -0.002922769701233413, + "expected_calibration_error_10bin": 0.00412109720589831, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 25, + "negatives": 2737, + "auroc": 0.8863865546218488, + "auprc": 0.11499803342740861, + "brier": 0.00863225102395817, + "calibration": { + "observed_rate": 0.009051412020275163, + "mean_prediction": 0.007399054553427707, + "calibration_in_the_large": -0.0016523574668474567, + "expected_calibration_error_10bin": 0.0051077259356537875, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 20, + "negatives": 2731, + "auroc": 0.8831380446722812, + "auprc": 0.15600959764052078, + "brier": 0.007675429168004661, + "calibration": { + "observed_rate": 0.007270083605961469, + "mean_prediction": 0.00986407051210988, + "calibration_in_the_large": 0.002593986906148411, + "expected_calibration_error_10bin": 0.005332334029265238, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 0, + "negatives": 2820, + "auroc": null, + "auprc": null, + "brier": 7.039999488462244e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0009052932798511341, + "calibration_in_the_large": 0.0009052932798511341, + "expected_calibration_error_10bin": 0.0009052932798511342, + "nonempty_bins": 2 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.960439823114617, + "auprc": 0.5585585585585585, + "brier": 0.0010505190767212099, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0007587787955803195, + "calibration_in_the_large": -0.0003157197717549241, + "expected_calibration_error_10bin": 0.0003157197717549241, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.6390782601762149, + "auprc": 0.005586014635777389, + "brier": 0.0033072727321056105, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.004826398533270174, + "calibration_in_the_large": 0.0016075144130984998, + "expected_calibration_error_10bin": 0.0016075144130985005, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 46, + "negatives": 2617, + "auroc": 0.7934325729760263, + "auprc": 0.10260033582440502, + "brier": 0.0163323249386591, + "calibration": { + "observed_rate": 0.017273751408186256, + "mean_prediction": 0.01428108736161416, + "calibration_in_the_large": -0.002992664046572096, + "expected_calibration_error_10bin": 0.003266801430891508, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 14, + "negatives": 2791, + "auroc": 0.8242565388749552, + "auprc": 0.028133993711907505, + "brier": 0.005047651215764143, + "calibration": { + "observed_rate": 0.004991087344028521, + "mean_prediction": 0.00592445412780219, + "calibration_in_the_large": 0.0009333667837736689, + "expected_calibration_error_10bin": 0.0009333667837736701, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.9929453262786596, + "auprc": 0.047619047619047616, + "brier": 0.0003484479340611, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0007789606669836619, + "calibration_in_the_large": 0.0004263513580979073, + "expected_calibration_error_10bin": 0.0004263513580979073, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 32, + "negatives": 2741, + "auroc": 0.8847934148121124, + "auprc": 0.1884791318456286, + "brier": 0.01031837187864177, + "calibration": { + "observed_rate": 0.01153984853948792, + "mean_prediction": 0.010004988486935963, + "calibration_in_the_large": -0.0015348600525519566, + "expected_calibration_error_10bin": 0.00364741077598859, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 60, + "negatives": 2439, + "auroc": 0.805992893262266, + "auprc": 0.09778463302235077, + "brier": 0.022588290702053516, + "calibration": { + "observed_rate": 0.024009603841536616, + "mean_prediction": 0.022136546719326255, + "calibration_in_the_large": -0.0018730571222103608, + "expected_calibration_error_10bin": 0.002242178419277313, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 68, + "negatives": 2618, + "auroc": 0.8412292724576461, + "auprc": 0.1227240767335474, + "brier": 0.024171131405736537, + "calibration": { + "observed_rate": 0.02531645569620253, + "mean_prediction": 0.021135917655664468, + "calibration_in_the_large": -0.0041805380405380635, + "expected_calibration_error_10bin": 0.01281134494942604, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 103, + "negatives": 2331, + "auroc": 0.8103484899601404, + "auprc": 0.18288304052143334, + "brier": 0.037595732685974693, + "calibration": { + "observed_rate": 0.042317173377156944, + "mean_prediction": 0.039021241278362734, + "calibration_in_the_large": -0.0032959320987942103, + "expected_calibration_error_10bin": 0.004714289478620559, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 3, + "negatives": 2830, + "auroc": 0.9597173144876325, + "auprc": 0.0225119506927762, + "brier": 0.001054469654328426, + "calibration": { + "observed_rate": 0.0010589481115425344, + "mean_prediction": 0.0010762177155266073, + "calibration_in_the_large": 1.726960398407292e-05, + "expected_calibration_error_10bin": 1.726960398407292e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 51, + "negatives": 2631, + "auroc": 0.8159351920167535, + "auprc": 0.11443723601832242, + "brier": 0.018032193822628242, + "calibration": { + "observed_rate": 0.01901565995525727, + "mean_prediction": 0.011203260355610405, + "calibration_in_the_large": -0.0078123995996468645, + "expected_calibration_error_10bin": 0.00940999800585042, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 71, + "negatives": 2515, + "auroc": 0.8445776047937725, + "auprc": 0.25599589210326795, + "brier": 0.023531788848020176, + "calibration": { + "observed_rate": 0.02745552977571539, + "mean_prediction": 0.016252452258763834, + "calibration_in_the_large": -0.011203077516951557, + "expected_calibration_error_10bin": 0.012460884371981425, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8933914690886803, + "auprc": 0.21943038781441174, + "brier": 0.00929622503369325, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.009867203273109542, + "calibration_in_the_large": 0.0005381756448354126, + "expected_calibration_error_10bin": 0.007335494439905399, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 54, + "negatives": 2541, + "auroc": 0.7163554739312316, + "auprc": 0.05929998483927427, + "brier": 0.02014822401871637, + "calibration": { + "observed_rate": 0.020809248554913295, + "mean_prediction": 0.019410206734647828, + "calibration_in_the_large": -0.0013990418202654668, + "expected_calibration_error_10bin": 0.004273772465382739, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8123596833274253, + "auprc": 0.03425654248540352, + "brier": 0.0010677474174888729, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012467208474711416, + "calibration_in_the_large": 0.00018439790129550415, + "expected_calibration_error_10bin": 0.00018439790129550434, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8788468340997524, + "auprc": 0.010517468191240381, + "brier": 0.0014136887008022164, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0014284616274364119, + "calibration_in_the_large": 1.5533333547326778e-05, + "expected_calibration_error_10bin": 1.5533333547326778e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9870842179759377, + "auprc": 0.0959977109947961, + "brier": 0.0020594495852435907, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.00143894254702832, + "calibration_in_the_large": -0.0006797015207682903, + "expected_calibration_error_10bin": 0.001355540335006324, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7333333333333333, + "auprc": 0.007834898665348491, + "brier": 0.001019922600834947, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0017649876323250502, + "calibration_in_the_large": 0.0010600175935516981, + "expected_calibration_error_10bin": 0.001590651950259507, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 21, + "negatives": 2459, + "auroc": 0.7760413640852843, + "auprc": 0.029732337747231587, + "brier": 0.008351187123863502, + "calibration": { + "observed_rate": 0.008467741935483872, + "mean_prediction": 0.004665701727126068, + "calibration_in_the_large": -0.0038020402083578037, + "expected_calibration_error_10bin": 0.0038020402083578037, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 9, + "negatives": 2766, + "auroc": 0.8030047400980156, + "auprc": 0.010087949486056735, + "brier": 0.003230868138709444, + "calibration": { + "observed_rate": 0.003243243243243243, + "mean_prediction": 0.002238682882204418, + "calibration_in_the_large": -0.001004560361038825, + "expected_calibration_error_10bin": 0.001004560361038825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 3, + "negatives": 2803, + "auroc": 0.3176358663336901, + "auprc": 0.000997814140394902, + "brier": 0.0010722580946016936, + "calibration": { + "observed_rate": 0.0010691375623663579, + "mean_prediction": 0.0011320671977305952, + "calibration_in_the_large": 6.292963536423733e-05, + "expected_calibration_error_10bin": 6.292963536423733e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.7861826981246219, + "auprc": 0.05698923403697925, + "brier": 0.008463684053583744, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.006398478787269134, + "calibration_in_the_large": -0.002261502981190301, + "expected_calibration_error_10bin": 0.002537525509912137, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.6437471392971571, + "auprc": 0.004203281000033319, + "brier": 0.0025012253086224238, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.002587954589708891, + "calibration_in_the_large": 0.00010215913516343654, + "expected_calibration_error_10bin": 0.00010215913516343654, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 2, + "negatives": 2812, + "auroc": 0.9660384068278806, + "auprc": 0.03506148222000664, + "brier": 0.0007040677405972703, + "calibration": { + "observed_rate": 0.0007107320540156361, + "mean_prediction": 0.0013539105316250593, + "calibration_in_the_large": 0.0006431784776094233, + "expected_calibration_error_10bin": 0.0006431784776094233, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7861319966583125, + "auprc": 0.014075720190074976, + "brier": 0.0032513183231984654, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.00512124962070064, + "calibration_in_the_large": 0.0019092581860111323, + "expected_calibration_error_10bin": 0.001909258186011132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 6, + "negatives": 2805, + "auroc": 0.7515151515151515, + "auprc": 0.005362132022318983, + "brier": 0.0021646984234689397, + "calibration": { + "observed_rate": 0.0021344717182497333, + "mean_prediction": 0.0024087414965155082, + "calibration_in_the_large": 0.0002742697782657749, + "expected_calibration_error_10bin": 0.00027426977826577474, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 34, + "negatives": 2714, + "auroc": 0.8209393558455069, + "auprc": 0.0677979455518911, + "brier": 0.012293420640387843, + "calibration": { + "observed_rate": 0.012372634643377001, + "mean_prediction": 0.013775741189868723, + "calibration_in_the_large": 0.0014031065464917211, + "expected_calibration_error_10bin": 0.004119071356573967, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7839096122182478, + "auprc": 0.027755661930759408, + "brier": 0.006820006102107858, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.00882946327992938, + "calibration_in_the_large": 0.0020437489942150937, + "expected_calibration_error_10bin": 0.002043748994215094, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 33, + "negatives": 2739, + "auroc": 0.8250522752165688, + "auprc": 0.10141657320011245, + "brier": 0.011533036622401157, + "calibration": { + "observed_rate": 0.011904761904761904, + "mean_prediction": 0.012469983920679124, + "calibration_in_the_large": 0.0005652220159172196, + "expected_calibration_error_10bin": 0.0026190097858933272, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 6, + "negatives": 2798, + "auroc": 0.7203359542530379, + "auprc": 0.005587052701600172, + "brier": 0.0021488036235323693, + "calibration": { + "observed_rate": 0.0021398002853067048, + "mean_prediction": 0.0023658407070201366, + "calibration_in_the_large": 0.0002260404217134318, + "expected_calibration_error_10bin": 0.0002260404217134318, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 25, + "negatives": 2712, + "auroc": 0.6249262536873156, + "auprc": 0.018422967839635804, + "brier": 0.00908280027743109, + "calibration": { + "observed_rate": 0.009134088417975887, + "mean_prediction": 0.007515201584045612, + "calibration_in_the_large": -0.0016188868339302746, + "expected_calibration_error_10bin": 0.0018075064945297316, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 34, + "negatives": 2337, + "auroc": 0.7806514133252788, + "auprc": 0.050159874054909126, + "brier": 0.013958791594803021, + "calibration": { + "observed_rate": 0.01433994095318431, + "mean_prediction": 0.01418681995633026, + "calibration_in_the_large": -0.00015312099685405034, + "expected_calibration_error_10bin": 0.0015990835238423493, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 38, + "negatives": 1534, + "auroc": 0.7526761819803747, + "auprc": 0.09951191419881594, + "brier": 0.023171545775516673, + "calibration": { + "observed_rate": 0.024173027989821884, + "mean_prediction": 0.022879165404803514, + "calibration_in_the_large": -0.0012938625850183703, + "expected_calibration_error_10bin": 0.007822551108623949, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9017276062004497, + "auprc": 0.018741135263376008, + "brier": 0.0022143721432485845, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.002581335114088198, + "calibration_in_the_large": 0.0004559366018671565, + "expected_calibration_error_10bin": 0.0004559366018671563, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 70, + "negatives": 2583, + "auroc": 0.8119849565842597, + "auprc": 0.2131748874159162, + "brier": 0.0233578125661248, + "calibration": { + "observed_rate": 0.026385224274406333, + "mean_prediction": 0.020265255303890804, + "calibration_in_the_large": -0.006119968970515529, + "expected_calibration_error_10bin": 0.00733366505615387, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 82, + "negatives": 2505, + "auroc": 0.7949466919818898, + "auprc": 0.10532903984452492, + "brier": 0.029572530070822223, + "calibration": { + "observed_rate": 0.031696946269810594, + "mean_prediction": 0.030218009491832055, + "calibration_in_the_large": -0.0014789367779785394, + "expected_calibration_error_10bin": 0.00555588116345844, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 129, + "negatives": 2056, + "auroc": 0.7873344795342805, + "auprc": 0.21600960562580723, + "brier": 0.051607169286670446, + "calibration": { + "observed_rate": 0.059038901601830666, + "mean_prediction": 0.03801559656726578, + "calibration_in_the_large": -0.021023305034564885, + "expected_calibration_error_10bin": 0.02370908097144232, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 11, + "negatives": 2806, + "auroc": 0.7982245836843128, + "auprc": 0.07471529026800422, + "brier": 0.0038091227400330603, + "calibration": { + "observed_rate": 0.0039048633297834577, + "mean_prediction": 0.0040748991726559484, + "calibration_in_the_large": 0.0001700358428724908, + "expected_calibration_error_10bin": 0.0005060338852377658, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 5, + "negatives": 2775, + "auroc": 0.6936936936936937, + "auprc": 0.003670388528672584, + "brier": 0.00180146885783325, + "calibration": { + "observed_rate": 0.0017985611510791368, + "mean_prediction": 0.002248495736494602, + "calibration_in_the_large": 0.00044993458541546516, + "expected_calibration_error_10bin": 0.00044993458541546516, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8273766976411723, + "auprc": 0.011740755159215658, + "brier": 0.001468758643551859, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0026052873263733706, + "calibration_in_the_large": 0.0011777355776224783, + "expected_calibration_error_10bin": 0.0011777355776224783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8597903014416776, + "auprc": 0.02281596228747231, + "brier": 0.005176691683035316, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.006213476121283286, + "calibration_in_the_large": 0.0011021216123384163, + "expected_calibration_error_10bin": 0.0011021216123384152, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 23, + "negatives": 2727, + "auroc": 0.7148642400471932, + "auprc": 0.016849085627793005, + "brier": 0.008538774535312307, + "calibration": { + "observed_rate": 0.008363636363636363, + "mean_prediction": 0.01134185800469227, + "calibration_in_the_large": 0.0029782216410559077, + "expected_calibration_error_10bin": 0.0029782216410559077, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46443736730360935, + "auprc": 0.0011418039768555234, + "brier": 0.0007216482521649009, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.00204991486023337, + "calibration_in_the_large": 0.0013427012817326628, + "expected_calibration_error_10bin": 0.0013427012817326628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 15, + "negatives": 2545, + "auroc": 0.804898493778651, + "auprc": 0.0768294461593426, + "brier": 0.005667433737261874, + "calibration": { + "observed_rate": 0.005859375, + "mean_prediction": 0.006590843271717972, + "calibration_in_the_large": 0.0007314682717179718, + "expected_calibration_error_10bin": 0.0013939515233715835, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8618838457784285, + "auprc": 0.029612271436938578, + "brier": 0.0034210136346978187, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.004648531797623503, + "calibration_in_the_large": 0.0013650586126545136, + "expected_calibration_error_10bin": 0.0013650586126545136, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9212778782399036, + "auprc": 0.0354009472268399, + "brier": 0.0042565385998509725, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0037699889927910817, + "calibration_in_the_large": -0.0005512209459917774, + "expected_calibration_error_10bin": 0.0006603804459888434, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 9, + "negatives": 2778, + "auroc": 0.9434045276377889, + "auprc": 0.03925647535282718, + "brier": 0.0031947673615046654, + "calibration": { + "observed_rate": 0.0032292787944025836, + "mean_prediction": 0.0016889908271572472, + "calibration_in_the_large": -0.0015402879672453363, + "expected_calibration_error_10bin": 0.0017010570498324615, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9308365873861082, + "auprc": 0.023292911263630797, + "brier": 0.0021120941387365493, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0007602747224115255, + "calibration_in_the_large": -0.0013651237898095157, + "expected_calibration_error_10bin": 0.0013651237898095157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 30, + "negatives": 2396, + "auroc": 0.864218141346689, + "auprc": 0.10797268088320963, + "brier": 0.011611087670065526, + "calibration": { + "observed_rate": 0.01236603462489695, + "mean_prediction": 0.01140721941778804, + "calibration_in_the_large": -0.0009588152071089099, + "expected_calibration_error_10bin": 0.0019556267021877687, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.9411534701857283, + "auprc": 0.16649604842909682, + "brier": 0.003738339127347827, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.002222647835695755, + "calibration_in_the_large": -0.00170452103256558, + "expected_calibration_error_10bin": 0.0017832289447117105, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6936423054070113, + "auprc": 0.015051128809890929, + "brier": 0.0010645662921958978, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0011394713799731408, + "calibration_in_the_large": 7.109531159707233e-05, + "expected_calibration_error_10bin": 7.109531159707233e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6361702127659574, + "auprc": 0.0009737098344693282, + "brier": 0.00036098299138073026, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0012686741083424366, + "calibration_in_the_large": 0.0009141898828904692, + "expected_calibration_error_10bin": 0.0009141898828904692, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9240056818181818, + "auprc": 0.010879195330414843, + "brier": 0.0010635315955847616, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0012210841535950636, + "calibration_in_the_large": 0.00015687698793348157, + "expected_calibration_error_10bin": 0.00015687698793348157, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 7, + "negatives": 2799, + "auroc": 0.6833052620833971, + "auprc": 0.010026738454132015, + "brier": 0.002487741342734876, + "calibration": { + "observed_rate": 0.0024946543121881683, + "mean_prediction": 0.000859697781350338, + "calibration_in_the_large": -0.0016349565308378302, + "expected_calibration_error_10bin": 0.0016349565308378302, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8686027245949927, + "auprc": 0.01804895677121405, + "brier": 0.002914891015043759, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.003218369143918963, + "calibration_in_the_large": 0.0002815115815107401, + "expected_calibration_error_10bin": 0.0002815115815107401, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 56, + "negatives": 2144, + "auroc": 0.7040744936034116, + "auprc": 0.06308713911647158, + "brier": 0.025058300354476544, + "calibration": { + "observed_rate": 0.025454545454545455, + "mean_prediction": 0.029496950266395948, + "calibration_in_the_large": 0.0040424048118504925, + "expected_calibration_error_10bin": 0.00733321760558862, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8150852374588481, + "auprc": 0.024635574188557927, + "brier": 0.0038995610214129176, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.0036340179852556633, + "calibration_in_the_large": -0.0002945534433157655, + "expected_calibration_error_10bin": 0.0003751770487373769, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.771228950197062, + "auprc": 0.01481559651181993, + "brier": 0.0035511680452966475, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.0031135356986350853, + "calibration_in_the_large": -0.00045661781796612873, + "expected_calibration_error_10bin": 0.00045661781796612873, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 74, + "negatives": 2173, + "auroc": 0.728473526448676, + "auprc": 0.11413799046898106, + "brier": 0.03089801525410266, + "calibration": { + "observed_rate": 0.032932799287939477, + "mean_prediction": 0.03368023023833896, + "calibration_in_the_large": 0.0007474309503994817, + "expected_calibration_error_10bin": 0.004294954570087809, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7481386025200458, + "auprc": 0.04180128054160642, + "brier": 0.006515927149072146, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.008823706740807676, + "calibration_in_the_large": 0.002239946682285365, + "expected_calibration_error_10bin": 0.0022838215871802464, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.93672236046925, + "auprc": 0.02123103440704389, + "brier": 0.0018119031297158849, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.003033535953218195, + "calibration_in_the_large": 0.0012592279333459452, + "expected_calibration_error_10bin": 0.0012592279333459456, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9316164327002477, + "auprc": 0.02557914227294111, + "brier": 0.0024985765507409335, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.001273953698631279, + "calibration_in_the_large": -0.0012485688238912432, + "expected_calibration_error_10bin": 0.0012485688238912432, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6390895953757225, + "auprc": 0.003936127922846726, + "brier": 0.0022036915099080128, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0033988442168214317, + "calibration_in_the_large": 0.0012359026162446474, + "expected_calibration_error_10bin": 0.0012359026162446474, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 7, + "negatives": 2795, + "auroc": 0.8338870431893688, + "auprc": 0.009405300157794257, + "brier": 0.0025166348601269434, + "calibration": { + "observed_rate": 0.0024982155603140615, + "mean_prediction": 0.0032998810924886914, + "calibration_in_the_large": 0.0008016655321746299, + "expected_calibration_error_10bin": 0.0008016655321746299, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 21, + "negatives": 2702, + "auroc": 0.7660815621585422, + "auprc": 0.042608341712161636, + "brier": 0.0075951358918818195, + "calibration": { + "observed_rate": 0.007712082262210797, + "mean_prediction": 0.005613277608111169, + "calibration_in_the_large": -0.002098804654099628, + "expected_calibration_error_10bin": 0.0027501711237609503, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7859778597785978, + "auprc": 0.02080686628618403, + "brier": 0.00545569752123773, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.0032921072408538784, + "calibration_in_the_large": -0.0022124799151094247, + "expected_calibration_error_10bin": 0.0022124799151094247, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 5, + "negatives": 2800, + "auroc": 0.617, + "auprc": 0.005488628736865847, + "brier": 0.0018030315644250291, + "calibration": { + "observed_rate": 0.0017825311942959, + "mean_prediction": 0.0017007676404474407, + "calibration_in_the_large": -8.176355384845939e-05, + "expected_calibration_error_10bin": 8.176355384845939e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 78, + "negatives": 2237, + "auroc": 0.7248833717318295, + "auprc": 0.08923224762246676, + "brier": 0.031924694881309404, + "calibration": { + "observed_rate": 0.033693304535637146, + "mean_prediction": 0.0239629826926225, + "calibration_in_the_large": -0.009730321843014648, + "expected_calibration_error_10bin": 0.009768182571766674, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 9.898900150750877e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0004789810336082933, + "calibration_in_the_large": 0.0004789810336082933, + "expected_calibration_error_10bin": 0.0004789810336082933, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 32, + "negatives": 2719, + "auroc": 0.870747517469658, + "auprc": 0.10612241347998073, + "brier": 0.01101803032908334, + "calibration": { + "observed_rate": 0.011632133769538349, + "mean_prediction": 0.007396464588550673, + "calibration_in_the_large": -0.004235669180987676, + "expected_calibration_error_10bin": 0.00473816814292133, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7592020592020592, + "auprc": 0.03942011968343277, + "brier": 0.004950760976965085, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.002429400728651176, + "calibration_in_the_large": -0.00259031960121616, + "expected_calibration_error_10bin": 0.00259031960121616, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7344913151364765, + "auprc": 0.007250685398768226, + "brier": 0.0010635655330131024, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0011298959519199627, + "calibration_in_the_large": 6.757300574432518e-05, + "expected_calibration_error_10bin": 6.757300574432518e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 57, + "negatives": 2480, + "auroc": 0.7881861912846633, + "auprc": 0.10804684676129525, + "brier": 0.021226352787402012, + "calibration": { + "observed_rate": 0.022467481277098935, + "mean_prediction": 0.0270279354419872, + "calibration_in_the_large": 0.004560454164888265, + "expected_calibration_error_10bin": 0.004560454164888264, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.6161387238865448e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017484039441230048, + "calibration_in_the_large": 0.0017484039441230048, + "expected_calibration_error_10bin": 0.0017484039441230048, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 38, + "negatives": 2695, + "auroc": 0.7713016307001269, + "auprc": 0.059014567902545285, + "brier": 0.013727294110922427, + "calibration": { + "observed_rate": 0.013904134650567142, + "mean_prediction": 0.014001739882458784, + "calibration_in_the_large": 9.760523189164191e-05, + "expected_calibration_error_10bin": 0.0034872392396591116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 44, + "negatives": 2612, + "auroc": 0.7961767367395238, + "auprc": 0.054807484844948795, + "brier": 0.01606328465511417, + "calibration": { + "observed_rate": 0.016566265060240965, + "mean_prediction": 0.01227475857343008, + "calibration_in_the_large": -0.0042915064868108855, + "expected_calibration_error_10bin": 0.005149637301116513, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 0, + "negatives": 2841, + "auroc": null, + "auprc": null, + "brier": 5.500733024850327e-07, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00033508640894912756, + "calibration_in_the_large": 0.00033508640894912756, + "expected_calibration_error_10bin": 0.00033508640894912756, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8178280863105766, + "auprc": 0.006967444784833904, + "brier": 0.0017626184115303633, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0007475157298757548, + "calibration_in_the_large": -0.0010180209932880869, + "expected_calibration_error_10bin": 0.0010180209932880869, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 8.331246262170085e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014042146373431466, + "calibration_in_the_large": 0.0014042146373431466, + "expected_calibration_error_10bin": 0.0014042146373431466, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.5983577293823634, + "auprc": 0.01002311536043975, + "brier": 0.0017762638762802952, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0009405829117205274, + "calibration_in_the_large": -0.0008413130255567357, + "expected_calibration_error_10bin": 0.0008413130255567357, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 6, + "negatives": 2744, + "auroc": 0.8399538386783285, + "auprc": 0.023643081019768142, + "brier": 0.002169905044861844, + "calibration": { + "observed_rate": 0.002181818181818182, + "mean_prediction": 0.0035225173152008543, + "calibration_in_the_large": 0.0013406991333826724, + "expected_calibration_error_10bin": 0.0013406991333826724, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 10, + "negatives": 2780, + "auroc": 0.6351079136690647, + "auprc": 0.013951166590983114, + "brier": 0.0035721016179295524, + "calibration": { + "observed_rate": 0.0035842293906810036, + "mean_prediction": 0.0037155599475214023, + "calibration_in_the_large": 0.0001313305568403987, + "expected_calibration_error_10bin": 0.0001313305568403987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3893836836480228, + "auprc": 0.0008766678399119605, + "brier": 0.0007275338192474456, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0019901326491257696, + "calibration_in_the_large": 0.0012781354971143776, + "expected_calibration_error_10bin": 0.0012781354971143776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8266112479474549, + "auprc": 0.008873967010330186, + "brier": 0.002499017587273777, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.001885041337062749, + "calibration_in_the_large": -0.0006230202895943632, + "expected_calibration_error_10bin": 0.0006230202895943632, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8974677552952314, + "auprc": 0.01410500563509888, + "brier": 0.0021230294995310383, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0012720674941178703, + "calibration_in_the_large": -0.000853331018103171, + "expected_calibration_error_10bin": 0.000853331018103171, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.879189352692075, + "auprc": 0.03465894921595727, + "brier": 0.004509908177768812, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.00773761418281398, + "calibration_in_the_large": 0.003400787294487273, + "expected_calibration_error_10bin": 0.0034007872944872737, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 36, + "negatives": 1462, + "auroc": 0.6949954400364797, + "auprc": 0.06272883039974166, + "brier": 0.023400838590893407, + "calibration": { + "observed_rate": 0.02403204272363151, + "mean_prediction": 0.015255922130540632, + "calibration_in_the_large": -0.008776120593090877, + "expected_calibration_error_10bin": 0.011143433116897082, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 43, + "negatives": 2633, + "auroc": 0.8353191602116252, + "auprc": 0.06645668465162219, + "brier": 0.015490730441722039, + "calibration": { + "observed_rate": 0.016068759342301942, + "mean_prediction": 0.010402075219572536, + "calibration_in_the_large": -0.0056666841227294065, + "expected_calibration_error_10bin": 0.0068890212246482865, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 23, + "negatives": 2529, + "auroc": 0.8345625526501281, + "auprc": 0.11067725832913854, + "brier": 0.008690389089333886, + "calibration": { + "observed_rate": 0.009012539184952978, + "mean_prediction": 0.006306006750682398, + "calibration_in_the_large": -0.0027065324342705806, + "expected_calibration_error_10bin": 0.00409125529728218, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 24, + "negatives": 2703, + "auroc": 0.8822142064372919, + "auprc": 0.11655135609033056, + "brier": 0.008293875725927793, + "calibration": { + "observed_rate": 0.0088008800880088, + "mean_prediction": 0.010446040601872321, + "calibration_in_the_large": 0.0016451605138635209, + "expected_calibration_error_10bin": 0.0016451605138635204, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 9, + "negatives": 2381, + "auroc": 0.9207615847683046, + "auprc": 0.027029147961418944, + "brier": 0.003727092893727032, + "calibration": { + "observed_rate": 0.0037656903765690376, + "mean_prediction": 0.0018837735866034403, + "calibration_in_the_large": -0.0018819167899655972, + "expected_calibration_error_10bin": 0.0018819167899655972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8208502024291497, + "auprc": 0.03274925742186372, + "brier": 0.007105940894612652, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.009831645084725926, + "calibration_in_the_large": 0.002718204425796686, + "expected_calibration_error_10bin": 0.002718204425796687, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 7, + "negatives": 2802, + "auroc": 0.8746303660650556, + "auprc": 0.01839153960745648, + "brier": 0.002479202965574462, + "calibration": { + "observed_rate": 0.002491990032039872, + "mean_prediction": 0.0017153985454539161, + "calibration_in_the_large": -0.0007765914865859559, + "expected_calibration_error_10bin": 0.0007765914865859559, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 39, + "negatives": 2204, + "auroc": 0.8322397505700591, + "auprc": 0.07250352116344846, + "brier": 0.016683606798527602, + "calibration": { + "observed_rate": 0.017387427552385197, + "mean_prediction": 0.011632257532976554, + "calibration_in_the_large": -0.0057551700194086435, + "expected_calibration_error_10bin": 0.005965646868459077, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.7381784649696553, + "auprc": 0.07788262154781515, + "brier": 0.005962367371466108, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.005470540642575846, + "calibration_in_the_large": -0.0006888796472792266, + "expected_calibration_error_10bin": 0.000688879647279227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8439358442962696, + "auprc": 0.050320600644948386, + "brier": 0.011295096917250412, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.010419124060686066, + "calibration_in_the_large": -0.000994719827384626, + "expected_calibration_error_10bin": 0.004360526162849998, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7828653707703384, + "auprc": 0.0877989555927189, + "brier": 0.005246639559135622, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.0037229523759636186, + "calibration_in_the_large": -0.001647616904380098, + "expected_calibration_error_10bin": 0.0016476169043800981, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7766943734015346, + "auprc": 0.024070761006467635, + "brier": 0.005787316339403351, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.004869773304476946, + "calibration_in_the_large": -0.0009420683228387097, + "expected_calibration_error_10bin": 0.0015353886916498354, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7089927616243406, + "auprc": 0.009526484572457099, + "brier": 0.002274799514574819, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.004523756091019695, + "calibration_in_the_large": 0.002320304016102324, + "expected_calibration_error_10bin": 0.0023203040161023244, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.9258614369501467, + "auprc": 0.0695341963924678, + "brier": 0.004242445951625099, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.004162280318035277, + "calibration_in_the_large": -0.0002172817257603439, + "expected_calibration_error_10bin": 0.0003228397026083612, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 18, + "negatives": 2704, + "auroc": 0.8471194937541091, + "auprc": 0.03939882652474795, + "brier": 0.006547726242994293, + "calibration": { + "observed_rate": 0.006612784717119765, + "mean_prediction": 0.007632381468982372, + "calibration_in_the_large": 0.0010195967518626071, + "expected_calibration_error_10bin": 0.0010195967518626067, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 14, + "negatives": 2752, + "auroc": 0.7170369601328903, + "auprc": 0.015757276758442487, + "brier": 0.005028472633107993, + "calibration": { + "observed_rate": 0.005061460592913955, + "mean_prediction": 0.005377702099324444, + "calibration_in_the_large": 0.00031624150641048916, + "expected_calibration_error_10bin": 0.00031624150641048916, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 1, + "negatives": 2830, + "auroc": 0.5664310954063604, + "auprc": 0.0008143322475570033, + "brier": 0.0003640173614682645, + "calibration": { + "observed_rate": 0.00035323207347227127, + "mean_prediction": 0.0016252435999461168, + "calibration_in_the_large": 0.0012720115264738456, + "expected_calibration_error_10bin": 0.0012720115264738456, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 13, + "negatives": 2703, + "auroc": 0.7480577136514983, + "auprc": 0.012437146109651503, + "brier": 0.004796001559637218, + "calibration": { + "observed_rate": 0.004786450662739323, + "mean_prediction": 0.006082289048390789, + "calibration_in_the_large": 0.0012958383856514662, + "expected_calibration_error_10bin": 0.0012958383856514662, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 23, + "negatives": 2362, + "auroc": 0.7861429149946618, + "auprc": 0.029615059646949056, + "brier": 0.009518296174124627, + "calibration": { + "observed_rate": 0.009643605870020965, + "mean_prediction": 0.009137657084490687, + "calibration_in_the_large": -0.0005059487855302771, + "expected_calibration_error_10bin": 0.001178388350978919, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 15, + "negatives": 2719, + "auroc": 0.7392668873360304, + "auprc": 0.014947163937716916, + "brier": 0.00544680727076525, + "calibration": { + "observed_rate": 0.005486466715435259, + "mean_prediction": 0.003458558674150709, + "calibration_in_the_large": -0.0020279080412845506, + "expected_calibration_error_10bin": 0.0020279080412845506, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 42, + "negatives": 2373, + "auroc": 0.8295406658238517, + "auprc": 0.08099204500462871, + "brier": 0.01697517730523071, + "calibration": { + "observed_rate": 0.017391304347826087, + "mean_prediction": 0.015613891565598075, + "calibration_in_the_large": -0.0017774127822280123, + "expected_calibration_error_10bin": 0.0060293918669635915, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7883163265306122, + "auprc": 0.008510260489074823, + "brier": 0.002486413870050747, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0019763078840673506, + "calibration_in_the_large": -0.000517457701967562, + "expected_calibration_error_10bin": 0.000517457701967562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8843503937007874, + "auprc": 0.03174439871531926, + "brier": 0.0028395770706943066, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0007042545984763077, + "calibration_in_the_large": -0.002150848899025477, + "expected_calibration_error_10bin": 0.002150848899025477, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 12, + "negatives": 2723, + "auroc": 0.7747888358428204, + "auprc": 0.01618209097309738, + "brier": 0.004372549653536396, + "calibration": { + "observed_rate": 0.0043875685557586835, + "mean_prediction": 0.0036458653371294913, + "calibration_in_the_large": -0.0007417032186291922, + "expected_calibration_error_10bin": 0.0008449404138795132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.6664499819429397, + "auprc": 0.01665348846154251, + "brier": 0.001800951745399773, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.002395100601539996, + "calibration_in_the_large": 0.0005926492677260091, + "expected_calibration_error_10bin": 0.0005926492677260091, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6086642599277978, + "auprc": 0.002326446534691293, + "brier": 0.0011074737292552368, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.002715409144866384, + "calibration_in_the_large": 0.0016335483442893913, + "expected_calibration_error_10bin": 0.0016335483442893913, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 15, + "negatives": 2737, + "auroc": 0.7683351601510169, + "auprc": 0.014955409687997958, + "brier": 0.005557427695038284, + "calibration": { + "observed_rate": 0.005450581395348837, + "mean_prediction": 0.006070702534613403, + "calibration_in_the_large": 0.0006201211392645655, + "expected_calibration_error_10bin": 0.0007521053313403202, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 10, + "negatives": 2761, + "auroc": 0.7613545816733067, + "auprc": 0.015127935566818556, + "brier": 0.003596120555097605, + "calibration": { + "observed_rate": 0.003608805485384338, + "mean_prediction": 0.0028885532864606927, + "calibration_in_the_large": -0.0007202521989236451, + "expected_calibration_error_10bin": 0.0007202521989236451, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 4, + "negatives": 2765, + "auroc": 0.7359855334538878, + "auprc": 0.00574302312978447, + "brier": 0.0014505277964030519, + "calibration": { + "observed_rate": 0.001444564824846515, + "mean_prediction": 0.0022865895572181175, + "calibration_in_the_large": 0.0008420247323716024, + "expected_calibration_error_10bin": 0.0008420247323716024, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6439663347558084, + "auprc": 0.010431357446889783, + "brier": 0.0021261037440700784, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0014895721830945105, + "calibration_in_the_large": -0.0006395974407521893, + "expected_calibration_error_10bin": 0.0006395974407521893, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.7988352898019075, + "auprc": 0.1443518498212916, + "brier": 0.0028642677879975632, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.0027596972696749, + "calibration_in_the_large": -0.00016641831189057217, + "expected_calibration_error_10bin": 0.00016641831189057217, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7517755681818182, + "auprc": 0.010808905046378353, + "brier": 0.0017677476123084273, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0006660913047154274, + "calibration_in_the_large": -0.0011063298225444094, + "expected_calibration_error_10bin": 0.0011063298225444094, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6165887009715725, + "auprc": 0.005339303932874461, + "brier": 0.0021568547183636, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.001840254500204547, + "calibration_in_the_large": -0.0003141440635297437, + "expected_calibration_error_10bin": 0.0003141440635297437, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.7933935529578463, + "auprc": 0.2573593689790694, + "brier": 0.0013581891492464302, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0017041299535512197, + "calibration_in_the_large": 0.0002892024685848243, + "expected_calibration_error_10bin": 0.0007113790945268021, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8118789921930447, + "auprc": 0.015708070645898162, + "brier": 0.0029441703254452023, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.00244668340445971, + "calibration_in_the_large": -0.0003841729295813376, + "expected_calibration_error_10bin": 0.0016408589631292322, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 28, + "negatives": 2711, + "auroc": 0.756481530273489, + "auprc": 0.05268154190929523, + "brier": 0.010039188409036408, + "calibration": { + "observed_rate": 0.01022270901788974, + "mean_prediction": 0.00858364764242199, + "calibration_in_the_large": -0.0016390613754677496, + "expected_calibration_error_10bin": 0.0030374901549535083, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9929358237547893, + "auprc": 0.3034854764768682, + "brier": 0.0027696488550305338, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0020008103148072055, + "calibration_in_the_large": -0.0012215312533990245, + "expected_calibration_error_10bin": 0.0024345266207257714, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6850915221579962, + "auprc": 0.011137074965762413, + "brier": 0.004340161652851259, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.004875526472388504, + "calibration_in_the_large": 0.0005589797097985761, + "expected_calibration_error_10bin": 0.0005589797097985763, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8525345622119815, + "auprc": 0.02084048614221028, + "brier": 0.0017590722712680223, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008145731737803823, + "calibration_in_the_large": -0.0009547120349952722, + "expected_calibration_error_10bin": 0.0009547120349952722, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 82, + "negatives": 2403, + "auroc": 0.7587568385047146, + "auprc": 0.10460971639607733, + "brier": 0.031072744980633456, + "calibration": { + "observed_rate": 0.03299798792756539, + "mean_prediction": 0.024201065507460706, + "calibration_in_the_large": -0.008796922420104686, + "expected_calibration_error_10bin": 0.010974198680041241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8377211606510969, + "auprc": 0.03821967716942652, + "brier": 0.001742002002803333, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0013031920659014157, + "calibration_in_the_large": -0.0004629683014599406, + "expected_calibration_error_10bin": 0.0004629683014599406, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7681684981684982, + "auprc": 0.01462742094437602, + "brier": 0.0036246585628360497, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.002851401689386099, + "calibration_in_the_large": -0.0007982333471102513, + "expected_calibration_error_10bin": 0.0007982333471102513, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.699964576691463, + "auprc": 0.001726683497955146, + "brier": 0.0007243437675575421, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0016896007721213442, + "calibration_in_the_large": 0.0009816361703514328, + "expected_calibration_error_10bin": 0.0009816361703514328, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.719284188034188, + "auprc": 0.012671377121086685, + "brier": 0.0029214373497922284, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0036104396242412854, + "calibration_in_the_large": 0.0007695305333321944, + "expected_calibration_error_10bin": 0.0007695305333321947, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 9.581455109973587e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002550884544044416, + "calibration_in_the_large": 0.002550884544044416, + "expected_calibration_error_10bin": 0.0025508845440444156, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 12, + "negatives": 2783, + "auroc": 0.7771289974847287, + "auprc": 0.016155481266965088, + "brier": 0.004322079530647997, + "calibration": { + "observed_rate": 0.004293381037567084, + "mean_prediction": 0.0049070641506140725, + "calibration_in_the_large": 0.0006136831130469887, + "expected_calibration_error_10bin": 0.0006136831130469883, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 51, + "negatives": 2620, + "auroc": 0.7764182008681335, + "auprc": 0.07932222423614373, + "brier": 0.01823743835224969, + "calibration": { + "observed_rate": 0.019093972295020592, + "mean_prediction": 0.016833386931153934, + "calibration_in_the_large": -0.002260585363866658, + "expected_calibration_error_10bin": 0.004195575912900624, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6218966218966219, + "auprc": 0.016865166708322714, + "brier": 0.0025339539039697556, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.003280274197682798, + "calibration_in_the_large": 0.0007935956896899031, + "expected_calibration_error_10bin": 0.0007935956896899033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5056597099398655, + "auprc": 0.002824678073236575, + "brier": 0.000735111583555186, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0013463235407431852, + "calibration_in_the_large": 0.000639359949368141, + "expected_calibration_error_10bin": 0.000639359949368141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7424994094023152, + "auprc": 0.005947486554957998, + "brier": 0.0010652963178664106, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.001546296984924309, + "calibration_in_the_large": 0.0004843500822694416, + "expected_calibration_error_10bin": 0.0004843500822694416, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6759656652360515, + "auprc": 0.007104829492441308, + "brier": 0.0028493203410987667, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.002175814640620505, + "calibration_in_the_large": -0.0006772524064551015, + "expected_calibration_error_10bin": 0.0006772524064551015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.8192262372348782, + "auprc": 0.04308872513432854, + "brier": 0.00912510064097883, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.008141756445573986, + "calibration_in_the_large": -0.0011967649552042242, + "expected_calibration_error_10bin": 0.0017477180829669104, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6986633158508159, + "auprc": 0.043640265933953926, + "brier": 0.008573970642917006, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.008069011328654157, + "calibration_in_the_large": -0.0006680816022433811, + "expected_calibration_error_10bin": 0.0006680816022433807, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8399550668085609, + "auprc": 0.010357554169965496, + "brier": 0.002118072523121624, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0008224878373385658, + "calibration_in_the_large": -0.0013014059679711688, + "expected_calibration_error_10bin": 0.0013014059679711688, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 25, + "negatives": 2752, + "auroc": 0.7826889534883721, + "auprc": 0.0239721014429495, + "brier": 0.008908892162287217, + "calibration": { + "observed_rate": 0.009002520705797623, + "mean_prediction": 0.007186913840683468, + "calibration_in_the_large": -0.0018156068651141557, + "expected_calibration_error_10bin": 0.0018156068651141557, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 17, + "negatives": 2764, + "auroc": 0.7735592066059419, + "auprc": 0.02539343171217317, + "brier": 0.006059799832772801, + "calibration": { + "observed_rate": 0.006112909025530385, + "mean_prediction": 0.002979059753883855, + "calibration_in_the_large": -0.0031338492716465297, + "expected_calibration_error_10bin": 0.0032249329596897827, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9196237925775292, + "auprc": 0.020754111843629124, + "brier": 0.002463366337375769, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0017477524633050614, + "calibration_in_the_large": -0.0007371605647389571, + "expected_calibration_error_10bin": 0.0007371605647389571, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 29, + "negatives": 2725, + "auroc": 0.6783802594115786, + "auprc": 0.02729070646502871, + "brier": 0.010452881201518492, + "calibration": { + "observed_rate": 0.010530137981118372, + "mean_prediction": 0.008057279578368869, + "calibration_in_the_large": -0.0024728584027495035, + "expected_calibration_error_10bin": 0.00295879602040916, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8400071505184126, + "auprc": 0.05463330069190438, + "brier": 0.0035174564792647117, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0038388274500864975, + "calibration_in_the_large": 0.0002763051843223366, + "expected_calibration_error_10bin": 0.0004455015896379736, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 9, + "negatives": 2820, + "auroc": 0.614775413711584, + "auprc": 0.028050713116285486, + "brier": 0.003212436948547281, + "calibration": { + "observed_rate": 0.003181336161187699, + "mean_prediction": 0.0017930703789627975, + "calibration_in_the_large": -0.0013882657822249015, + "expected_calibration_error_10bin": 0.0018020496012455176, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 12, + "negatives": 2758, + "auroc": 0.7844452501812907, + "auprc": 0.038867433701442904, + "brier": 0.004258616961479634, + "calibration": { + "observed_rate": 0.004332129963898917, + "mean_prediction": 0.004126894825897609, + "calibration_in_the_large": -0.0002052351380013081, + "expected_calibration_error_10bin": 0.0002052351380013081, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 64, + "negatives": 2541, + "auroc": 0.8340650826446281, + "auprc": 0.10751611733781596, + "brier": 0.02304444643914502, + "calibration": { + "observed_rate": 0.024568138195777352, + "mean_prediction": 0.020265510719350906, + "calibration_in_the_large": -0.004302627476426447, + "expected_calibration_error_10bin": 0.007069339706561512, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 31, + "negatives": 2661, + "auroc": 0.7556581930149956, + "auprc": 0.09228527156228886, + "brier": 0.011166169289012942, + "calibration": { + "observed_rate": 0.011515601783060922, + "mean_prediction": 0.007457015990065347, + "calibration_in_the_large": -0.0040585857929955746, + "expected_calibration_error_10bin": 0.0040585857929955746, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9625970359915315, + "auprc": 0.03833333333333333, + "brier": 0.0007006240052420612, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0004749780717129615, + "calibration_in_the_large": -0.00023024054605854765, + "expected_calibration_error_10bin": 0.00023024054605854765, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 13, + "negatives": 2811, + "auroc": 0.9140738308294338, + "auprc": 0.13789250214421778, + "brier": 0.0056179806809504625, + "calibration": { + "observed_rate": 0.004603399433427762, + "mean_prediction": 0.007318540995740565, + "calibration_in_the_large": 0.002715141562312803, + "expected_calibration_error_10bin": 0.005369446802593616, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.7701863354037267, + "auprc": 0.011880805673617089, + "brier": 0.0025623072953246968, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.0055737156688430035, + "calibration_in_the_large": 0.0030852691704427193, + "expected_calibration_error_10bin": 0.003085269170442719, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 73, + "negatives": 1970, + "auroc": 0.7412210555594186, + "auprc": 0.13219203082901188, + "brier": 0.033003956061546776, + "calibration": { + "observed_rate": 0.03573176700930005, + "mean_prediction": 0.03225319588803506, + "calibration_in_the_large": -0.003478571121264991, + "expected_calibration_error_10bin": 0.005801995067979833, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 15, + "negatives": 2749, + "auroc": 0.7912938038074452, + "auprc": 0.03418620162742767, + "brier": 0.005348353977587752, + "calibration": { + "observed_rate": 0.005426917510853835, + "mean_prediction": 0.005190356591512877, + "calibration_in_the_large": -0.00023656091934095777, + "expected_calibration_error_10bin": 0.00032048918670327965, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7740424522708408, + "auprc": 0.006389219530987883, + "brier": 0.0022194765494659104, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.0032209053552201376, + "calibration_in_the_large": 0.0010909799026109787, + "expected_calibration_error_10bin": 0.0010909799026109785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.9453186187255251, + "auprc": 0.09060835199191364, + "brier": 0.001737212434950968, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0019526476474162173, + "calibration_in_the_large": 0.00017581751237712704, + "expected_calibration_error_10bin": 0.00017581751237712704, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 10, + "negatives": 2775, + "auroc": 0.751927927927928, + "auprc": 0.01922983834382761, + "brier": 0.0036082327529761366, + "calibration": { + "observed_rate": 0.003590664272890485, + "mean_prediction": 0.006059995682615807, + "calibration_in_the_large": 0.002469331409725322, + "expected_calibration_error_10bin": 0.0024693314097253226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.844268077601411, + "auprc": 0.003296209759775013, + "brier": 0.000714572841826595, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0014479854500046674, + "calibration_in_the_large": 0.0007430154112313152, + "expected_calibration_error_10bin": 0.0007430154112313152, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 17, + "negatives": 2739, + "auroc": 0.934003393252153, + "auprc": 0.08521963571615558, + "brier": 0.005922507846527931, + "calibration": { + "observed_rate": 0.006168359941944848, + "mean_prediction": 0.006099932082027491, + "calibration_in_the_large": -6.842785991735632e-05, + "expected_calibration_error_10bin": 0.0008528209516831768, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9171388101983002, + "auprc": 0.008287500047842677, + "brier": 0.0010586897369481573, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.0011411075240714903, + "calibration_in_the_large": 7.991191034669365e-05, + "expected_calibration_error_10bin": 7.991191034669365e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 5, + "negatives": 2815, + "auroc": 0.8169094138543517, + "auprc": 0.013978850668816958, + "brier": 0.001777444866261017, + "calibration": { + "observed_rate": 0.0017730496453900709, + "mean_prediction": 0.0012171360420583086, + "calibration_in_the_large": -0.0005559136033317623, + "expected_calibration_error_10bin": 0.0006386365912321514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 5, + "negatives": 2808, + "auroc": 0.8047720797720798, + "auprc": 0.024102663560935742, + "brier": 0.0017597281102589416, + "calibration": { + "observed_rate": 0.0017774617845716318, + "mean_prediction": 0.0016659564435060014, + "calibration_in_the_large": -0.0001115053410656304, + "expected_calibration_error_10bin": 0.0001115053410656304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7134460837231618, + "auprc": 0.009586004255010544, + "brier": 0.002151210505766548, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0029285861947368637, + "calibration_in_the_large": 0.0007741876310025731, + "expected_calibration_error_10bin": 0.0007741876310025731, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 33, + "negatives": 2716, + "auroc": 0.8269960280269558, + "auprc": 0.06526090422861554, + "brier": 0.012003341839084851, + "calibration": { + "observed_rate": 0.012004365223717716, + "mean_prediction": 0.01086797897284158, + "calibration_in_the_large": -0.0011363862508761355, + "expected_calibration_error_10bin": 0.005940074907557149, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7746704666904168, + "auprc": 0.0069927526293586785, + "brier": 0.0028849035799565804, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.003006200471340413, + "calibration_in_the_large": 0.00016428217649139005, + "expected_calibration_error_10bin": 0.00016428217649139016, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7976862071784809, + "auprc": 0.04432693990145885, + "brier": 0.0096116079151188, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.01026558451108685, + "calibration_in_the_large": 0.00042951893731635674, + "expected_calibration_error_10bin": 0.000609539353010607, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.6906616737436891, + "auprc": 0.019830170826090746, + "brier": 0.00798274568638839, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.00480032826072429, + "calibration_in_the_large": -0.0032259395247554628, + "expected_calibration_error_10bin": 0.0035481762005123213, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.75147473711208, + "auprc": 0.017281997440687147, + "brier": 0.002492548929494838, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0019449691531646756, + "calibration_in_the_large": -0.0005621941706175596, + "expected_calibration_error_10bin": 0.0005621941706175596, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 78, + "negatives": 2482, + "auroc": 0.730350833694911, + "auprc": 0.11386898794163192, + "brier": 0.028444540527476726, + "calibration": { + "observed_rate": 0.03046875, + "mean_prediction": 0.02304612695909327, + "calibration_in_the_large": -0.007422623040906729, + "expected_calibration_error_10bin": 0.00894509920879045, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8364722094625632, + "auprc": 0.019981112141052904, + "brier": 0.004932094089218491, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.002898332701453601, + "calibration_in_the_large": -0.0020785602953469675, + "expected_calibration_error_10bin": 0.0020785602953469675, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7061896243291592, + "auprc": 0.011675582150320302, + "brier": 0.0053208451617993155, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.0037003364573141477, + "calibration_in_the_large": -0.001637741834500799, + "expected_calibration_error_10bin": 0.001637741834500799, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 18, + "negatives": 2783, + "auroc": 0.7978600231564659, + "auprc": 0.025680227030153942, + "brier": 0.006515507780117999, + "calibration": { + "observed_rate": 0.006426276329882185, + "mean_prediction": 0.005887931565977221, + "calibration_in_the_large": -0.0005383447639049641, + "expected_calibration_error_10bin": 0.003368127122784073, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8901285255265976, + "auprc": 0.048752424499284054, + "brier": 0.004391277022514244, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.0076726484450361015, + "calibration_in_the_large": 0.003406740162064185, + "expected_calibration_error_10bin": 0.003406740162064185, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.7046718077474893, + "auprc": 0.011785353664795044, + "brier": 0.002887898864228746, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.003850449659492601, + "calibration_in_the_large": 0.000989219330451113, + "expected_calibration_error_10bin": 0.000989219330451113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 1, + "negatives": 2773, + "auroc": 0.9560043274432023, + "auprc": 0.008130081300813009, + "brier": 0.00039083252637028864, + "calibration": { + "observed_rate": 0.0003604902667627974, + "mean_prediction": 0.0011724407536138238, + "calibration_in_the_large": 0.0008119504868510264, + "expected_calibration_error_10bin": 0.0008119504868510263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9631435335660687, + "auprc": 0.2230451720015827, + "brier": 0.005956324787990176, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.005124605383000093, + "calibration_in_the_large": -0.0013339522058050737, + "expected_calibration_error_10bin": 0.003491157863435558, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9625233257308728, + "auprc": 0.04959907629945557, + "brier": 0.0026958617685763106, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.003548589828528369, + "calibration_in_the_large": 0.0010151117250176925, + "expected_calibration_error_10bin": 0.0016254355307651679, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7874461979913917, + "auprc": 0.02380139239274586, + "brier": 0.0035678795291874447, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.0027457159094378095, + "calibration_in_the_large": -0.0008282655058588309, + "expected_calibration_error_10bin": 0.0013550393630259749, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 29, + "negatives": 2652, + "auroc": 0.7925963488843814, + "auprc": 0.1851821807475906, + "brier": 0.009798894989962547, + "calibration": { + "observed_rate": 0.01081685938082805, + "mean_prediction": 0.005810899999279942, + "calibration_in_the_large": -0.005005959381548107, + "expected_calibration_error_10bin": 0.0061038286054134715, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 12, + "negatives": 2719, + "auroc": 0.7372808630624004, + "auprc": 0.01633342036023662, + "brier": 0.004365995681475306, + "calibration": { + "observed_rate": 0.004393994873672647, + "mean_prediction": 0.003588512861114033, + "calibration_in_the_large": -0.0008054820125586145, + "expected_calibration_error_10bin": 0.0008054820125586145, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8335460992907802, + "auprc": 0.01811188557720985, + "brier": 0.0017688733316631262, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0015858970497465957, + "calibration_in_the_large": -0.00018401445467818305, + "expected_calibration_error_10bin": 0.00018401445467818305, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6142730496453901, + "auprc": 0.0045801328950575175, + "brier": 0.0014196737305255621, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0012052180713019573, + "calibration_in_the_large": -0.00021121252359889266, + "expected_calibration_error_10bin": 0.00021121252359889266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 11, + "negatives": 2746, + "auroc": 0.8776070979275641, + "auprc": 0.11354881846559534, + "brier": 0.0039344980556765595, + "calibration": { + "observed_rate": 0.003989844033369605, + "mean_prediction": 0.004079876837575398, + "calibration_in_the_large": 9.003280420579254e-05, + "expected_calibration_error_10bin": 0.002135785877822445, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 5, + "negatives": 2774, + "auroc": 0.8175919250180245, + "auprc": 0.05355294866995001, + "brier": 0.001780842794401419, + "calibration": { + "observed_rate": 0.0017992083483267362, + "mean_prediction": 0.001844849283572599, + "calibration_in_the_large": 4.5640935245862746e-05, + "expected_calibration_error_10bin": 4.5640935245862746e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7304844183893859, + "auprc": 0.018445048034363098, + "brier": 0.002513376641540212, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0029825089047077506, + "calibration_in_the_large": 0.00046904391368441127, + "expected_calibration_error_10bin": 0.00046904391368441127, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6799222340049488, + "auprc": 0.0016259656649741982, + "brier": 0.0007096890658524254, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0007931866458413953, + "calibration_in_the_large": 8.672249889685277e-05, + "expected_calibration_error_10bin": 8.672249889685277e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.8563861484473283, + "auprc": 0.05336584734689149, + "brier": 0.007767338325474211, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.0074510833930743255, + "calibration_in_the_large": -0.0004968934855383907, + "expected_calibration_error_10bin": 0.0018755816231506382, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 30, + "negatives": 2721, + "auroc": 0.8699130221732206, + "auprc": 0.08305603224536813, + "brier": 0.01045524537935091, + "calibration": { + "observed_rate": 0.010905125408942203, + "mean_prediction": 0.008995766006527553, + "calibration_in_the_large": -0.0019093594024146496, + "expected_calibration_error_10bin": 0.0028036699626098893, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8845038905558663, + "auprc": 0.06582002188791006, + "brier": 0.004804546912144924, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.004100238950852406, + "calibration_in_the_large": -0.000859024244330024, + "expected_calibration_error_10bin": 0.0014084608997309827, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 16, + "negatives": 2791, + "auroc": 0.7486340021497672, + "auprc": 0.01567581595033942, + "brier": 0.0056584376427246865, + "calibration": { + "observed_rate": 0.0057000356252226575, + "mean_prediction": 0.0049952814297388615, + "calibration_in_the_large": -0.000704754195483796, + "expected_calibration_error_10bin": 0.000704754195483796, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 36, + "negatives": 2665, + "auroc": 0.6904002501563478, + "auprc": 0.05586509253498792, + "brier": 0.013041863723794003, + "calibration": { + "observed_rate": 0.013328396890040726, + "mean_prediction": 0.010623643391728953, + "calibration_in_the_large": -0.0027047534983117728, + "expected_calibration_error_10bin": 0.004680665888045835, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6230088495575221, + "auprc": 0.0038532274931124726, + "brier": 0.001773762847243004, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0013633528065083184, + "calibration_in_the_large": -0.00040343164578850134, + "expected_calibration_error_10bin": 0.00040343164578850134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 9, + "negatives": 2809, + "auroc": 0.734306396107749, + "auprc": 0.030248168733787814, + "brier": 0.003415352150078698, + "calibration": { + "observed_rate": 0.00319375443577005, + "mean_prediction": 0.0052660742339693005, + "calibration_in_the_large": 0.0020723197981992506, + "expected_calibration_error_10bin": 0.00207231979819925, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6805259417199716, + "auprc": 0.01131956747610526, + "brier": 0.0011338502423639872, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0043965934809223105, + "calibration_in_the_large": 0.003331630754617731, + "expected_calibration_error_10bin": 0.003331630754617731, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 7, + "negatives": 2809, + "auroc": 0.746478156944515, + "auprc": 0.02606029627195221, + "brier": 0.0024891966927559493, + "calibration": { + "observed_rate": 0.0024857954545454545, + "mean_prediction": 0.002438121895528379, + "calibration_in_the_large": -4.76735590170755e-05, + "expected_calibration_error_10bin": 0.00022171734907336127, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.722457627118644, + "auprc": 0.009753403391449726, + "brier": 0.0010568808156070067, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0009828638793342452, + "calibration_in_the_large": -7.533717886681304e-05, + "expected_calibration_error_10bin": 7.533717886681304e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 7.362212728038062e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001215339866442501, + "calibration_in_the_large": 0.001215339866442501, + "expected_calibration_error_10bin": 0.001215339866442501, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7102102933038185, + "auprc": 0.01364179025265978, + "brier": 0.004633178510994258, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.00471857138471279, + "calibration_in_the_large": 6.407800841490199e-05, + "expected_calibration_error_10bin": 6.407800841490199e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 20, + "negatives": 2778, + "auroc": 0.8605831533477322, + "auprc": 0.040468941509591086, + "brier": 0.007031629066764789, + "calibration": { + "observed_rate": 0.007147962830593281, + "mean_prediction": 0.004280596187987681, + "calibration_in_the_large": -0.0028673666426055995, + "expected_calibration_error_10bin": 0.003236393265819206, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.8671379016951372, + "auprc": 0.12562111438534102, + "brier": 0.00379832832193774, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.00549959645189722, + "calibration_in_the_large": 0.0015555304784300276, + "expected_calibration_error_10bin": 0.0024791890369565157, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6558354026250444, + "auprc": 0.0036869810819069237, + "brier": 0.001825326643728087, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.0037909492588879315, + "calibration_in_the_large": 0.002020411015261869, + "expected_calibration_error_10bin": 0.002020411015261869, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.7652136752136752, + "auprc": 0.05567752329305425, + "brier": 0.004691460228401835, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.00544437316508115, + "calibration_in_the_large": 0.0006526297076539476, + "expected_calibration_error_10bin": 0.0007269203777651687, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8420045449108958, + "auprc": 0.010063724182396228, + "brier": 0.0010743531145087923, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0014569373057677314, + "calibration_in_the_large": 0.0003816684885634303, + "expected_calibration_error_10bin": 0.0003816684885634303, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 9, + "negatives": 2724, + "auroc": 0.6970957741882852, + "auprc": 0.006782299300250913, + "brier": 0.003335855615868786, + "calibration": { + "observed_rate": 0.003293084522502744, + "mean_prediction": 0.00305164905034547, + "calibration_in_the_large": -0.00024143547215727413, + "expected_calibration_error_10bin": 0.0005165003139588193, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 32, + "negatives": 2642, + "auroc": 0.6854064155942468, + "auprc": 0.029536841657990077, + "brier": 0.011830776099038837, + "calibration": { + "observed_rate": 0.011967090501121914, + "mean_prediction": 0.009075076658958932, + "calibration_in_the_large": -0.0028920138421629823, + "expected_calibration_error_10bin": 0.004250336262431231, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.9950354609929078, + "auprc": 0.06666666666666667, + "brier": 0.00034912045056760473, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0014282528893140515, + "calibration_in_the_large": 0.0010737686638620841, + "expected_calibration_error_10bin": 0.0010737686638620841, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 31, + "negatives": 2686, + "auroc": 0.6567386448250186, + "auprc": 0.03082996105142817, + "brier": 0.011337226419666566, + "calibration": { + "observed_rate": 0.011409642988590356, + "mean_prediction": 0.009416746033328514, + "calibration_in_the_large": -0.001992896955261843, + "expected_calibration_error_10bin": 0.003348907828613785, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9463266761768901, + "auprc": 0.010081053698074976, + "brier": 0.0007127336669737857, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0011488961274024065, + "calibration_in_the_large": 0.00043613775249150125, + "expected_calibration_error_10bin": 0.00043613775249150125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7269572953736655, + "auprc": 0.0033306296297359395, + "brier": 0.0014264480849709277, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.001959399698024965, + "calibration_in_the_large": 0.000537935589993693, + "expected_calibration_error_10bin": 0.000537935589993693, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 9, + "negatives": 2734, + "auroc": 0.8158579208323173, + "auprc": 0.02293284262188598, + "brier": 0.003250786768702116, + "calibration": { + "observed_rate": 0.0032810791104629965, + "mean_prediction": 0.002363226758127125, + "calibration_in_the_large": -0.0009178523523358717, + "expected_calibration_error_10bin": 0.0009178523523358717, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7148880597014925, + "auprc": 0.01602317630299655, + "brier": 0.003710062189852368, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.005301800765734991, + "calibration_in_the_large": 0.0015843286467758831, + "expected_calibration_error_10bin": 0.0015843286467758831, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7711478552600048, + "auprc": 0.005247342713111173, + "brier": 0.0010762568888139476, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.0018625181420755643, + "calibration_in_the_large": 0.000785318860208419, + "expected_calibration_error_10bin": 0.000785318860208419, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 39, + "negatives": 2528, + "auroc": 0.7127961700746511, + "auprc": 0.05099119679815088, + "brier": 0.014861852085886921, + "calibration": { + "observed_rate": 0.015192832099727308, + "mean_prediction": 0.015708316882523877, + "calibration_in_the_large": 0.000515484782796569, + "expected_calibration_error_10bin": 0.0018553798345032247, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 9, + "negatives": 2772, + "auroc": 0.6868686868686869, + "auprc": 0.02025387425076935, + "brier": 0.0032152367712019294, + "calibration": { + "observed_rate": 0.003236245954692557, + "mean_prediction": 0.003173368628868878, + "calibration_in_the_large": -6.287732582367861e-05, + "expected_calibration_error_10bin": 6.287732582367861e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 31, + "negatives": 2666, + "auroc": 0.7575442247658689, + "auprc": 0.045480319768392265, + "brier": 0.011368000754927192, + "calibration": { + "observed_rate": 0.011494252873563218, + "mean_prediction": 0.014665345507006593, + "calibration_in_the_large": 0.0031710926334433745, + "expected_calibration_error_10bin": 0.003329021814081564, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.7542862041376157, + "auprc": 0.01959520089926819, + "brier": 0.004818100071221527, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.003899701215089596, + "calibration_in_the_large": -0.0009062137571839717, + "expected_calibration_error_10bin": 0.0014592208037125035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 5, + "negatives": 2813, + "auroc": 0.8145040881621045, + "auprc": 0.03002072291470716, + "brier": 0.001758472830056421, + "calibration": { + "observed_rate": 0.0017743080198722497, + "mean_prediction": 0.00239575402567363, + "calibration_in_the_large": 0.0006214460058013801, + "expected_calibration_error_10bin": 0.0006214460058013801, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5871061209706628, + "auprc": 0.0036161688049739494, + "brier": 0.002536490491848733, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.002450865394442944, + "calibration_in_the_large": -7.803633966110227e-05, + "expected_calibration_error_10bin": 7.803633966110227e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7639707012241971, + "auprc": 0.047895173578369324, + "brier": 0.004931515515836183, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.002869818610153657, + "calibration_in_the_large": -0.0021248299806419196, + "expected_calibration_error_10bin": 0.0021248299806419188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8366477272727273, + "auprc": 0.004151686363899462, + "brier": 0.0010635388090376905, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0004829612108593638, + "calibration_in_the_large": -0.0005812459548022183, + "expected_calibration_error_10bin": 0.0005812459548022183, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8717124836367964, + "auprc": 0.03667247386759582, + "brier": 0.0010641488375701062, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.001959067894609136, + "calibration_in_the_large": 0.0008891677519557836, + "expected_calibration_error_10bin": 0.0008891677519557836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6702751922298664, + "auprc": 0.00980279043666239, + "brier": 0.0024858121013784746, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.002138159345366563, + "calibration_in_the_large": -0.000334465168939336, + "expected_calibration_error_10bin": 0.0004988374568273594, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 15, + "negatives": 2741, + "auroc": 0.6656451416757875, + "auprc": 0.0932316806724403, + "brier": 0.005341197509409253, + "calibration": { + "observed_rate": 0.00544267053701016, + "mean_prediction": 0.004049461440144192, + "calibration_in_the_large": -0.0013932090968659678, + "expected_calibration_error_10bin": 0.0013932090968659678, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 7, + "negatives": 2819, + "auroc": 0.8758931738711803, + "auprc": 0.027419933792217254, + "brier": 0.0024516711442481814, + "calibration": { + "observed_rate": 0.0024769992922859165, + "mean_prediction": 0.001419800278682614, + "calibration_in_the_large": -0.0010571990136033025, + "expected_calibration_error_10bin": 0.0010571990136033025, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 83, + "negatives": 2209, + "auroc": 0.8189389518235913, + "auprc": 0.15501701514731606, + "brier": 0.032965086029663374, + "calibration": { + "observed_rate": 0.036212914485165795, + "mean_prediction": 0.030456183265976326, + "calibration_in_the_large": -0.00575673121918947, + "expected_calibration_error_10bin": 0.01318066827334215, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 41, + "negatives": 2399, + "auroc": 0.8583556156528634, + "auprc": 0.1896743705978952, + "brier": 0.01521991346345481, + "calibration": { + "observed_rate": 0.01680327868852459, + "mean_prediction": 0.009528486406562762, + "calibration_in_the_large": -0.0072747922819618276, + "expected_calibration_error_10bin": 0.007274792281961828, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8125, + "auprc": 0.013109909374820091, + "brier": 0.0028417145885926047, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0012876597179991246, + "calibration_in_the_large": -0.0015633737816444964, + "expected_calibration_error_10bin": 0.0015633737816444964, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.9229498525073746, + "auprc": 0.059597101999886465, + "brier": 0.0020935399644081225, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0011984964511343973, + "calibration_in_the_large": -0.0009208959896992305, + "expected_calibration_error_10bin": 0.001009468765541, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 6, + "negatives": 2783, + "auroc": 0.8066834351419332, + "auprc": 0.020280772803772096, + "brier": 0.002143511449558128, + "calibration": { + "observed_rate": 0.002151308712800287, + "mean_prediction": 0.00391003173766711, + "calibration_in_the_large": 0.0017587230248668232, + "expected_calibration_error_10bin": 0.0017587230248668232, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.697091167080525, + "auprc": 0.013177020581560773, + "brier": 0.00355740048996688, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.003671716061866727, + "calibration_in_the_large": 0.00013689810499150582, + "expected_calibration_error_10bin": 0.00013689810499150604, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8476069709975289, + "auprc": 0.13122729284865758, + "brier": 0.003850433350292698, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.0028803274916837434, + "calibration_in_the_large": -0.0010384470006568336, + "expected_calibration_error_10bin": 0.0010384470006568336, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 74, + "negatives": 2446, + "auroc": 0.7637400278446885, + "auprc": 0.08178246442321861, + "brier": 0.027921931308418763, + "calibration": { + "observed_rate": 0.029365079365079365, + "mean_prediction": 0.026952700923951824, + "calibration_in_the_large": -0.0024123784411275405, + "expected_calibration_error_10bin": 0.006349453651360126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 19, + "negatives": 2587, + "auroc": 0.796899477142799, + "auprc": 0.038312748094651995, + "brier": 0.007198067491359835, + "calibration": { + "observed_rate": 0.0072908672294704525, + "mean_prediction": 0.006736950302846787, + "calibration_in_the_large": -0.0005539169266236656, + "expected_calibration_error_10bin": 0.001554794456440941, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 4, + "negatives": 2825, + "auroc": 0.968495575221239, + "auprc": 0.0544146759911205, + "brier": 0.0013872305816657344, + "calibration": { + "observed_rate": 0.0014139271827500884, + "mean_prediction": 0.0011014174166966777, + "calibration_in_the_large": -0.0003125097660534107, + "expected_calibration_error_10bin": 0.0003125097660534107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7537580529706513, + "auprc": 0.004704464050069751, + "brier": 0.001788495225931853, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.0014998774690845292, + "calibration_in_the_large": -0.00028647479958285207, + "expected_calibration_error_10bin": 0.00028647479958285207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.31234448734448733, + "brier": 0.0018918183105113605, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0011412633687516993, + "calibration_in_the_large": -0.0010461227048902985, + "expected_calibration_error_10bin": 0.0015652624941823313, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 1, + "negatives": 2651, + "auroc": 0.998113919275745, + "auprc": 0.16666666666666666, + "brier": 0.0004241133705817511, + "calibration": { + "observed_rate": 0.0003770739064856712, + "mean_prediction": 0.0007585136247210324, + "calibration_in_the_large": 0.00038143971823536123, + "expected_calibration_error_10bin": 0.00038143971823536123, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6418477615485096, + "auprc": 0.002989246417970546, + "brier": 0.0010678187931814022, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0012778999887723653, + "calibration_in_the_large": 0.0002102843304093759, + "expected_calibration_error_10bin": 0.0002102843304093759, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 3.6202855123581194e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002773869383717794, + "calibration_in_the_large": 0.002773869383717794, + "expected_calibration_error_10bin": 0.002773869383717794, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "270": { + "A04": { + "valid": 2782, + "positives": 25, + "negatives": 2757, + "auroc": 0.7897569822270584, + "auprc": 0.0745567496131048, + "brier": 0.008843742383988764, + "calibration": { + "observed_rate": 0.008986340762041696, + "mean_prediction": 0.00820251873924178, + "calibration_in_the_large": -0.0007838220227999165, + "expected_calibration_error_10bin": 0.0030326127297864956, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8466172231758267, + "auprc": 0.13073756727725494, + "brier": 0.0037783266090594724, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.004798425851906986, + "calibration_in_the_large": 0.0008949482081880367, + "expected_calibration_error_10bin": 0.001427648952499503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 63, + "negatives": 2601, + "auroc": 0.7595613408762197, + "auprc": 0.0736881992465167, + "brier": 0.02298793214277315, + "calibration": { + "observed_rate": 0.02364864864864865, + "mean_prediction": 0.02267343646711855, + "calibration_in_the_large": -0.0009752121815300996, + "expected_calibration_error_10bin": 0.008000228787518377, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7436056838365896, + "auprc": 0.016035851977794932, + "brier": 0.0015380804288720868, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002257778802709907, + "calibration_in_the_large": 0.0008388359151611309, + "expected_calibration_error_10bin": 0.0011066638715131899, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6211531659002476, + "auprc": 0.0009328358208955224, + "brier": 0.00035972521649627347, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0010095556557505225, + "calibration_in_the_large": 0.0006559488665001689, + "expected_calibration_error_10bin": 0.0006559488665001689, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9262805662805663, + "auprc": 0.10219686598722423, + "brier": 0.0024189803091715393, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0023214947778963145, + "calibration_in_the_large": -0.00019468063547536073, + "expected_calibration_error_10bin": 0.00039691835961912865, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8830170086971424, + "auprc": 0.09379483647718899, + "brier": 0.005982389432809397, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.001990422556633125, + "calibration_in_the_large": -0.0041623099804642336, + "expected_calibration_error_10bin": 0.004261003526020069, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9911473087818697, + "auprc": 0.2757597645799893, + "brier": 0.0017306789794433992, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0002776690993942906, + "calibration_in_the_large": -0.0014897398790433198, + "expected_calibration_error_10bin": 0.0015690983595585014, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806086341118189, + "auprc": 0.08308447238672617, + "brier": 0.00170896778625239, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0014632039358919036, + "calibration_in_the_large": -0.0003029564314694527, + "expected_calibration_error_10bin": 0.0004786194676258948, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 1, + "negatives": 2835, + "auroc": 0.8395061728395061, + "auprc": 0.0021929824561403508, + "brier": 0.00036571498155218453, + "calibration": { + "observed_rate": 0.0003526093088857546, + "mean_prediction": 0.0018965126725910195, + "calibration_in_the_large": 0.0015439033637052648, + "expected_calibration_error_10bin": 0.0015439033637052648, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 34, + "negatives": 2734, + "auroc": 0.7698373423985542, + "auprc": 0.04368960171612392, + "brier": 0.012079464487299626, + "calibration": { + "observed_rate": 0.012283236994219654, + "mean_prediction": 0.010177616111706148, + "calibration_in_the_large": -0.0021056208825135057, + "expected_calibration_error_10bin": 0.00392587057007078, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 56, + "negatives": 2622, + "auroc": 0.7245763866187207, + "auprc": 0.04429601352021332, + "brier": 0.020775040497935025, + "calibration": { + "observed_rate": 0.020911127707244213, + "mean_prediction": 0.019731477462569272, + "calibration_in_the_large": -0.0011796502446749409, + "expected_calibration_error_10bin": 0.007756046274359537, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 74, + "negatives": 2556, + "auroc": 0.7612189654443176, + "auprc": 0.07879804869272881, + "brier": 0.026894774637797086, + "calibration": { + "observed_rate": 0.028136882129277566, + "mean_prediction": 0.023686894782470935, + "calibration_in_the_large": -0.004449987346806631, + "expected_calibration_error_10bin": 0.00811106775413239, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.888004246284501, + "auprc": 0.020160554643313264, + "brier": 0.0007191720442419131, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0011226557621733199, + "calibration_in_the_large": 0.0004154421836726126, + "expected_calibration_error_10bin": 0.00041544218367261257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9787384833451452, + "auprc": 0.024250440917107582, + "brier": 0.0007025503071003204, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0007218451129550056, + "calibration_in_the_large": 1.3629815504580668e-05, + "expected_calibration_error_10bin": 1.3629815504580668e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.92320028510335, + "auprc": 0.03329655393888322, + "brier": 0.002127474249453003, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0007860891120677073, + "calibration_in_the_large": -0.0013476235479607424, + "expected_calibration_error_10bin": 0.001439455599621136, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.95272036113091, + "auprc": 0.17872445616348054, + "brier": 0.0010059174951228252, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0008491524929564465, + "calibration_in_the_large": -0.00021884323506064145, + "expected_calibration_error_10bin": 0.00039404112167810816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9591509097395647, + "auprc": 0.02564102564102564, + "brier": 0.000709682781934315, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0013609691295253545, + "calibration_in_the_large": 0.0006479566518069944, + "expected_calibration_error_10bin": 0.0006479566518069944, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9888574460558897, + "auprc": 0.046031746031746035, + "brier": 0.000700206286475664, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0007208083253132116, + "calibration_in_the_large": 1.3844733938167346e-05, + "expected_calibration_error_10bin": 1.3844733938167346e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8995258935083881, + "auprc": 0.1161484954902936, + "brier": 0.006905538848097342, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.004604897027035148, + "calibration_in_the_large": -0.0026362325891849826, + "expected_calibration_error_10bin": 0.0039297041591343325, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 28, + "negatives": 2734, + "auroc": 0.894947225415404, + "auprc": 0.1469544654200086, + "brier": 0.009409536408770923, + "calibration": { + "observed_rate": 0.010137581462708182, + "mean_prediction": 0.00787761116560822, + "calibration_in_the_large": -0.0022599702970999627, + "expected_calibration_error_10bin": 0.005943248125736381, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 23, + "negatives": 2728, + "auroc": 0.8959263037103149, + "auprc": 0.1716083945811937, + "brier": 0.008493037088292382, + "calibration": { + "observed_rate": 0.008360596146855689, + "mean_prediction": 0.010548508525490195, + "calibration_in_the_large": 0.002187912378634506, + "expected_calibration_error_10bin": 0.006198078846041312, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 1, + "negatives": 2819, + "auroc": 0.3330968428520752, + "auprc": 0.000531632110579479, + "brier": 0.00042650388581438544, + "calibration": { + "observed_rate": 0.0003546099290780142, + "mean_prediction": 0.0009339566222827651, + "calibration_in_the_large": 0.0005793466932047509, + "expected_calibration_error_10bin": 0.0005793466932047509, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9592446516075057, + "auprc": 0.5584710074505993, + "brier": 0.001049855725177122, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.000802030777806932, + "calibration_in_the_large": -0.0002724677895283115, + "expected_calibration_error_10bin": 0.0002724677895283115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.637961966271977, + "auprc": 0.005563557721690829, + "brier": 0.003318172205810572, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.005090425409890877, + "calibration_in_the_large": 0.0018715412897192035, + "expected_calibration_error_10bin": 0.0018715412897192035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 50, + "negatives": 2613, + "auroc": 0.7852047455032529, + "auprc": 0.10431513130616764, + "brier": 0.017707456333440716, + "calibration": { + "observed_rate": 0.01877581674802854, + "mean_prediction": 0.015258811837296512, + "calibration_in_the_large": -0.003517004910732027, + "expected_calibration_error_10bin": 0.004055238915480777, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8264386877016852, + "auprc": 0.029064327788699416, + "brier": 0.0057764171480883695, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.006476677541113515, + "calibration_in_the_large": 0.0007725777193666348, + "expected_calibration_error_10bin": 0.0012450089814774077, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.0006921816729639677, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0008334061270286387, + "calibration_in_the_large": 0.0001281875092571295, + "expected_calibration_error_10bin": 0.0001281875092571295, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 33, + "negatives": 2740, + "auroc": 0.8886529528865296, + "auprc": 0.23086386245090423, + "brier": 0.010263724917609232, + "calibration": { + "observed_rate": 0.011900468806346917, + "mean_prediction": 0.010587401439417539, + "calibration_in_the_large": -0.0013130673669293786, + "expected_calibration_error_10bin": 0.003573748524044939, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 64, + "negatives": 2435, + "auroc": 0.801995636550308, + "auprc": 0.10520252683345407, + "brier": 0.02397934305102394, + "calibration": { + "observed_rate": 0.025610244097639057, + "mean_prediction": 0.023630660394167138, + "calibration_in_the_large": -0.0019795837034719196, + "expected_calibration_error_10bin": 0.0025865557970998626, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 71, + "negatives": 2615, + "auroc": 0.844020143807395, + "auprc": 0.1268145445681257, + "brier": 0.025187897753915663, + "calibration": { + "observed_rate": 0.02643335815338794, + "mean_prediction": 0.022279448673761873, + "calibration_in_the_large": -0.004153909479626065, + "expected_calibration_error_10bin": 0.012276423977478178, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 107, + "negatives": 2327, + "auroc": 0.8119354670286639, + "auprc": 0.18677114406817413, + "brier": 0.03888920672673607, + "calibration": { + "observed_rate": 0.04396055875102712, + "mean_prediction": 0.041143859836822734, + "calibration_in_the_large": -0.0028166989142043852, + "expected_calibration_error_10bin": 0.003984438781976632, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9605867797808413, + "auprc": 0.02469066017535392, + "brier": 0.0014028644408820288, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0011260148584425285, + "calibration_in_the_large": -0.0002859159569475174, + "expected_calibration_error_10bin": 0.0002859159569475174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 54, + "negatives": 2628, + "auroc": 0.808768814476577, + "auprc": 0.12835461027644685, + "brier": 0.018885656266403046, + "calibration": { + "observed_rate": 0.020134228187919462, + "mean_prediction": 0.012020631164366968, + "calibration_in_the_large": -0.008113597023552493, + "expected_calibration_error_10bin": 0.010147192205415186, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 75, + "negatives": 2511, + "auroc": 0.8399628302137263, + "auprc": 0.2521379287087824, + "brier": 0.02491155919878669, + "calibration": { + "observed_rate": 0.029002320185614848, + "mean_prediction": 0.01746079724532369, + "calibration_in_the_large": -0.01154152294029116, + "expected_calibration_error_10bin": 0.013954621893454148, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8929874905970524, + "auprc": 0.21582329942451497, + "brier": 0.009475834173076986, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.01035722851255551, + "calibration_in_the_large": 0.0010282008842813807, + "expected_calibration_error_10bin": 0.00746958466132883, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 58, + "negatives": 2537, + "auroc": 0.7138216465279382, + "auprc": 0.05942413895515512, + "brier": 0.021628239864839607, + "calibration": { + "observed_rate": 0.022350674373795763, + "mean_prediction": 0.020776156338177594, + "calibration_in_the_large": -0.0015745180356181686, + "expected_calibration_error_10bin": 0.0036343020504082126, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8128323289613613, + "auprc": 0.03425840622636961, + "brier": 0.001072460737264063, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0013547609155051034, + "calibration_in_the_large": 0.00029243796932946586, + "expected_calibration_error_10bin": 0.0002924379693294659, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.874336752741422, + "auprc": 0.011035523616168778, + "brier": 0.0014146089096501334, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0015422036944791968, + "calibration_in_the_large": 0.00012927540059011174, + "expected_calibration_error_10bin": 0.00012927540059011174, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9869662656286861, + "auprc": 0.09623880086183162, + "brier": 0.002074178669056824, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0016944774123270187, + "calibration_in_the_large": -0.0004241666554695915, + "expected_calibration_error_10bin": 0.0014674716774486323, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7296296296296296, + "auprc": 0.007928040069944579, + "brier": 0.0010955566360080788, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.001974150264713182, + "calibration_in_the_large": 0.0012691802259398297, + "expected_calibration_error_10bin": 0.0017647673478792952, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 22, + "negatives": 2458, + "auroc": 0.7690472668096753, + "auprc": 0.029097208736929135, + "brier": 0.00874703362325911, + "calibration": { + "observed_rate": 0.008870967741935484, + "mean_prediction": 0.00503106600974881, + "calibration_in_the_large": -0.003839901732186674, + "expected_calibration_error_10bin": 0.003839901732186674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7239179055387449, + "auprc": 0.009588941925127466, + "brier": 0.003951436594632473, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0024164158430049847, + "calibration_in_the_large": -0.0015475481209589795, + "expected_calibration_error_10bin": 0.0015475481209589795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4738579586009993, + "auprc": 0.002823374263040885, + "brier": 0.0014262687706311022, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0012278480665198247, + "calibration_in_the_large": -0.00019766868330198576, + "expected_calibration_error_10bin": 0.00019766868330198576, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 19, + "negatives": 2175, + "auroc": 0.7852147610405323, + "auprc": 0.05150412611449149, + "brier": 0.008472405889300262, + "calibration": { + "observed_rate": 0.008659981768459436, + "mean_prediction": 0.007033839955784392, + "calibration_in_the_large": -0.0016261418126750438, + "expected_calibration_error_10bin": 0.001819976429906406, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.6525106837606838, + "auprc": 0.004668472854746957, + "brier": 0.002856192440594051, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0027386278133085602, + "calibration_in_the_large": -0.00010228127760053074, + "expected_calibration_error_10bin": 0.00010228127760053074, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9615795090715048, + "auprc": 0.030150632034380342, + "brier": 0.0010555419606670417, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.001466339255712186, + "calibration_in_the_large": 0.00040024117468873176, + "expected_calibration_error_10bin": 0.00040024117468873176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7877630584397501, + "auprc": 0.013967735478263596, + "brier": 0.003265451632426139, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.00550559947385709, + "calibration_in_the_large": 0.0022936080391675823, + "expected_calibration_error_10bin": 0.0022936080391675814, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 7, + "negatives": 2804, + "auroc": 0.7816894232728755, + "auprc": 0.00805193083798965, + "brier": 0.002520956962478293, + "calibration": { + "observed_rate": 0.0024902170046246885, + "mean_prediction": 0.0026940561965004117, + "calibration_in_the_large": 0.00020383919187572314, + "expected_calibration_error_10bin": 0.00020383919187572306, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 36, + "negatives": 2712, + "auroc": 0.8144768108816781, + "auprc": 0.0670849694115946, + "brier": 0.013139683591613941, + "calibration": { + "observed_rate": 0.013100436681222707, + "mean_prediction": 0.01495197715259268, + "calibration_in_the_large": 0.001851540471369973, + "expected_calibration_error_10bin": 0.0058988219141986875, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 19, + "negatives": 2781, + "auroc": 0.7835311039194535, + "auprc": 0.027656701515936945, + "brier": 0.006871004462742355, + "calibration": { + "observed_rate": 0.0067857142857142855, + "mean_prediction": 0.009501348828749931, + "calibration_in_the_large": 0.0027156345430356457, + "expected_calibration_error_10bin": 0.0027156345430356466, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 35, + "negatives": 2737, + "auroc": 0.8301581502166084, + "auprc": 0.11089491559021218, + "brier": 0.012137808688875514, + "calibration": { + "observed_rate": 0.012626262626262626, + "mean_prediction": 0.013269333356719856, + "calibration_in_the_large": 0.0006430707304572302, + "expected_calibration_error_10bin": 0.0029149704291815356, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.7387507022830584, + "auprc": 0.00641879159088062, + "brier": 0.0025049386387102613, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.00256486558167035, + "calibration_in_the_large": 6.84319154791945e-05, + "expected_calibration_error_10bin": 6.84319154791945e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 26, + "negatives": 2711, + "auroc": 0.6392758845728229, + "auprc": 0.02372030634559833, + "brier": 0.009416740568716291, + "calibration": { + "observed_rate": 0.009499451954694921, + "mean_prediction": 0.008242185905933015, + "calibration_in_the_large": -0.001257266048761906, + "expected_calibration_error_10bin": 0.0017027674696143363, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 36, + "negatives": 2335, + "auroc": 0.7622055674518201, + "auprc": 0.04916336702689302, + "brier": 0.014795696752738901, + "calibration": { + "observed_rate": 0.015183466891606916, + "mean_prediction": 0.01510851263454638, + "calibration_in_the_large": -7.495425706053639e-05, + "expected_calibration_error_10bin": 0.001903793900461302, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 39, + "negatives": 1533, + "auroc": 0.7540936992991788, + "auprc": 0.09924396073620893, + "brier": 0.02395528928094228, + "calibration": { + "observed_rate": 0.02480916030534351, + "mean_prediction": 0.025137676812659167, + "calibration_in_the_large": 0.0003285165073156557, + "expected_calibration_error_10bin": 0.009206997026575046, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9012542894332032, + "auprc": 0.018619178564062883, + "brier": 0.0022299212247190972, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0027917775246642652, + "calibration_in_the_large": 0.0006663790124432239, + "expected_calibration_error_10bin": 0.0006663790124432232, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 74, + "negatives": 2579, + "auroc": 0.8090345094998062, + "auprc": 0.20287608712947494, + "brier": 0.024736369553742945, + "calibration": { + "observed_rate": 0.02789295137580098, + "mean_prediction": 0.021603301624022214, + "calibration_in_the_large": -0.0062896497517787656, + "expected_calibration_error_10bin": 0.006536861644833832, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 85, + "negatives": 2502, + "auroc": 0.7951615178445479, + "auprc": 0.10623288962979596, + "brier": 0.030646475579510824, + "calibration": { + "observed_rate": 0.032856590645535366, + "mean_prediction": 0.0319524016623137, + "calibration_in_the_large": -0.000904188983221664, + "expected_calibration_error_10bin": 0.005668887742939501, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 138, + "negatives": 2047, + "auroc": 0.7902409322939898, + "auprc": 0.22870361950045084, + "brier": 0.05469411596166022, + "calibration": { + "observed_rate": 0.06315789473684211, + "mean_prediction": 0.04002225690395294, + "calibration_in_the_large": -0.023135637832889168, + "expected_calibration_error_10bin": 0.025332466475369873, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 12, + "negatives": 2805, + "auroc": 0.7849970291146762, + "auprc": 0.06961823153277757, + "brier": 0.0041644680651248545, + "calibration": { + "observed_rate": 0.004259850905218318, + "mean_prediction": 0.004411417462112941, + "calibration_in_the_large": 0.00015156655689462298, + "expected_calibration_error_10bin": 0.00027360587688364226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5903679653679653, + "auprc": 0.003908407439121959, + "brier": 0.0028817835990193126, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0025505706763979366, + "calibration_in_the_large": -0.00032712716532868214, + "expected_calibration_error_10bin": 0.00032712716532868214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8279127948534668, + "auprc": 0.01178368081331706, + "brier": 0.0014761043955649744, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0027821403083544186, + "calibration_in_the_large": 0.0013545885596035264, + "expected_calibration_error_10bin": 0.0013545885596035264, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8595019659239843, + "auprc": 0.022676900287088093, + "brier": 0.0052154232373293535, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.006853688891637636, + "calibration_in_the_large": 0.0017423343826927663, + "expected_calibration_error_10bin": 0.001742334382692766, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 28, + "negatives": 2722, + "auroc": 0.7067282460375774, + "auprc": 0.02059644207379938, + "brier": 0.010293718543540416, + "calibration": { + "observed_rate": 0.010181818181818183, + "mean_prediction": 0.011938273186616739, + "calibration_in_the_large": 0.0017564550047985562, + "expected_calibration_error_10bin": 0.0017564550047985581, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.4578910120311394, + "auprc": 0.0011061432510730113, + "brier": 0.0007255537593131779, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0022657056658008682, + "calibration_in_the_large": 0.0015584920873001609, + "expected_calibration_error_10bin": 0.0015584920873001609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 16, + "negatives": 2544, + "auroc": 0.8146619496855346, + "auprc": 0.08774444133340524, + "brier": 0.0060356313938577325, + "calibration": { + "observed_rate": 0.00625, + "mean_prediction": 0.006981195937746066, + "calibration_in_the_large": 0.0007311959377460653, + "expected_calibration_error_10bin": 0.0013474122713290622, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 9, + "negatives": 2732, + "auroc": 0.8604603871807386, + "auprc": 0.02825700683018638, + "brier": 0.003455500613368454, + "calibration": { + "observed_rate": 0.003283473184968989, + "mean_prediction": 0.004992059255850668, + "calibration_in_the_large": 0.0017085860708816788, + "expected_calibration_error_10bin": 0.0017085860708816788, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9216998191681736, + "auprc": 0.035684267237697, + "brier": 0.004256841963748786, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.0041483527612370995, + "calibration_in_the_large": -0.00017285717754575956, + "expected_calibration_error_10bin": 0.00028773708146959446, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9456247749369824, + "auprc": 0.04192686351798819, + "brier": 0.0035497544406256835, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.001827033163382951, + "calibration_in_the_large": -0.0017610543859532528, + "expected_calibration_error_10bin": 0.002095726890139797, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9317240563246953, + "auprc": 0.02388838129277658, + "brier": 0.00211071040755594, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0008443137492868968, + "calibration_in_the_large": -0.0012810847629341445, + "expected_calibration_error_10bin": 0.0012810847629341445, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 32, + "negatives": 2394, + "auroc": 0.859766604010025, + "auprc": 0.10679521548628329, + "brier": 0.01239489437757035, + "calibration": { + "observed_rate": 0.013190436933223413, + "mean_prediction": 0.012097158415778752, + "calibration_in_the_large": -0.0010932785174446614, + "expected_calibration_error_10bin": 0.0014510400051656821, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9412868336828165, + "auprc": 0.13785582103972593, + "brier": 0.004435083296974644, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0023376372585259455, + "calibration_in_the_large": -0.002303562313055633, + "expected_calibration_error_10bin": 0.0023841861070236347, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 3, + "negatives": 2805, + "auroc": 0.6928104575163399, + "auprc": 0.01500693008615518, + "brier": 0.0010649109327627842, + "calibration": { + "observed_rate": 0.0010683760683760685, + "mean_prediction": 0.0012113633683288377, + "calibration_in_the_large": 0.00014298729995276924, + "expected_calibration_error_10bin": 0.00014298729995276924, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6379432624113475, + "auprc": 0.0009784735812133072, + "brier": 0.0003626073447427351, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0014563210595523964, + "calibration_in_the_large": 0.001101836834100429, + "expected_calibration_error_10bin": 0.001101836834100429, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9253077651515151, + "auprc": 0.010724796249941578, + "brier": 0.0010640669493963545, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0013327222157061243, + "calibration_in_the_large": 0.0002685150500445423, + "expected_calibration_error_10bin": 0.0002685150500445423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7228377412437456, + "auprc": 0.01737191966004291, + "brier": 0.0028383180069809846, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0009254792914850823, + "calibration_in_the_large": -0.0019255542081585387, + "expected_calibration_error_10bin": 0.0019255542081585387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 8, + "negatives": 2716, + "auroc": 0.8682345360824743, + "auprc": 0.017937456887825134, + "brier": 0.002916676319632749, + "calibration": { + "observed_rate": 0.002936857562408223, + "mean_prediction": 0.003507398298436766, + "calibration_in_the_large": 0.0005705407360285428, + "expected_calibration_error_10bin": 0.0005705407360285428, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 60, + "negatives": 2140, + "auroc": 0.7122352024922118, + "auprc": 0.06980819399891466, + "brier": 0.026667694331229126, + "calibration": { + "observed_rate": 0.02727272727272727, + "mean_prediction": 0.031040550624179146, + "calibration_in_the_large": 0.0037678233514518746, + "expected_calibration_error_10bin": 0.008045306993404997, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 11, + "negatives": 2789, + "auroc": 0.8138792007562176, + "auprc": 0.02405907446822644, + "brier": 0.0039029548122255014, + "calibration": { + "observed_rate": 0.003928571428571429, + "mean_prediction": 0.003803975609025656, + "calibration_in_the_large": -0.00012459581954577274, + "expected_calibration_error_10bin": 0.0002788470150361324, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 10, + "negatives": 2791, + "auroc": 0.7677534933715514, + "auprc": 0.014119144537409273, + "brier": 0.003558181237484624, + "calibration": { + "observed_rate": 0.003570153516601214, + "mean_prediction": 0.00353008977639864, + "calibration_in_the_large": -4.006374020257405e-05, + "expected_calibration_error_10bin": 4.006374020257405e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 77, + "negatives": 2170, + "auroc": 0.7232210186127237, + "auprc": 0.11135400433732766, + "brier": 0.03218847620779408, + "calibration": { + "observed_rate": 0.03426791277258567, + "mean_prediction": 0.035656939809114024, + "calibration_in_the_large": 0.0013890270365283577, + "expected_calibration_error_10bin": 0.002378689460800386, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 18, + "negatives": 2716, + "auroc": 0.7487522500409098, + "auprc": 0.04094126800314437, + "brier": 0.006537913188728892, + "calibration": { + "observed_rate": 0.006583760058522311, + "mean_prediction": 0.009382712020286755, + "calibration_in_the_large": 0.0027989519617644433, + "expected_calibration_error_10bin": 0.002798951961764444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9473684210526315, + "auprc": 0.06724795865372636, + "brier": 0.0020904853033104046, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0032367879711711705, + "calibration_in_the_large": 0.0011076183473244707, + "expected_calibration_error_10bin": 0.001189322905324027, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 7, + "negatives": 2768, + "auroc": 0.9299649050371593, + "auprc": 0.025255642312704975, + "brier": 0.002498324996823315, + "calibration": { + "observed_rate": 0.0025225225225225223, + "mean_prediction": 0.0013547156494897938, + "calibration_in_the_large": -0.0011678068730327285, + "expected_calibration_error_10bin": 0.0011678068730327285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6358381502890174, + "auprc": 0.003850616746398436, + "brier": 0.002214485502759738, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0037448007211009406, + "calibration_in_the_large": 0.0015818591205241563, + "expected_calibration_error_10bin": 0.0015818591205241563, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8151395848246242, + "auprc": 0.009311118413900397, + "brier": 0.0028739894202339583, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.00342669381957749, + "calibration_in_the_large": 0.0005715903220757054, + "expected_calibration_error_10bin": 0.0005715903220757052, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7795942941830307, + "auprc": 0.047915325611231026, + "brier": 0.008656804811999722, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006076662088830275, + "calibration_in_the_large": -0.0027371462108392083, + "expected_calibration_error_10bin": 0.0031287929981828424, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7858548585485855, + "auprc": 0.02136955788180719, + "brier": 0.005453254458338833, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.003551583472242015, + "calibration_in_the_large": -0.001953003683721288, + "expected_calibration_error_10bin": 0.001953003683721288, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 6, + "negatives": 2799, + "auroc": 0.5696677384780279, + "auprc": 0.0051469599955759355, + "brier": 0.0021625720819221424, + "calibration": { + "observed_rate": 0.0021390374331550803, + "mean_prediction": 0.0018202389906472945, + "calibration_in_the_large": -0.00031879844250778575, + "expected_calibration_error_10bin": 0.00031879844250778575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 82, + "negatives": 2233, + "auroc": 0.7122158749576748, + "auprc": 0.08760646767276442, + "brier": 0.03359476939939197, + "calibration": { + "observed_rate": 0.035421166306695465, + "mean_prediction": 0.025677540334551063, + "calibration_in_the_large": -0.009743625972144402, + "expected_calibration_error_10bin": 0.011183515304275114, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.2164556697708302e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005130560016012466, + "calibration_in_the_large": 0.0005130560016012466, + "expected_calibration_error_10bin": 0.0005130560016012466, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.8736816286485161, + "auprc": 0.10704561019635642, + "brier": 0.011363898213134063, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.008036699089734247, + "calibration_in_the_large": -0.003958938860102176, + "expected_calibration_error_10bin": 0.004740831821103667, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7566795366795367, + "auprc": 0.039726014736764674, + "brier": 0.004950113234557942, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.00262545189321056, + "calibration_in_the_large": -0.0023942684366567756, + "expected_calibration_error_10bin": 0.0023942684366567756, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.738863287250384, + "auprc": 0.007378691705781068, + "brier": 0.0010641417031521667, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012341442676579932, + "calibration_in_the_large": 0.00017182132148235566, + "expected_calibration_error_10bin": 0.00017182132148235566, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 59, + "negatives": 2478, + "auroc": 0.7921574260270038, + "auprc": 0.11040571436003767, + "brier": 0.021969513347747653, + "calibration": { + "observed_rate": 0.023255813953488372, + "mean_prediction": 0.028773978293765445, + "calibration_in_the_large": 0.005518164340277073, + "expected_calibration_error_10bin": 0.005518164340277073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 1.9600019645557393e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0019075203715729556, + "calibration_in_the_large": 0.0019075203715729556, + "expected_calibration_error_10bin": 0.0019075203715729556, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 39, + "negatives": 2694, + "auroc": 0.7647288371119106, + "auprc": 0.054097321701657396, + "brier": 0.014176637381708122, + "calibration": { + "observed_rate": 0.014270032930845226, + "mean_prediction": 0.015103364677254452, + "calibration_in_the_large": 0.0008333317464092257, + "expected_calibration_error_10bin": 0.004716591940444608, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 45, + "negatives": 2611, + "auroc": 0.7996510489808077, + "auprc": 0.05894084871139877, + "brier": 0.01637609879869761, + "calibration": { + "observed_rate": 0.01694277108433735, + "mean_prediction": 0.012983847297451816, + "calibration_in_the_large": -0.003958923786885532, + "expected_calibration_error_10bin": 0.004584829951183389, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9320422535211268, + "auprc": 0.005154639175257732, + "brier": 0.0003518682563500265, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.000362397161045419, + "calibration_in_the_large": 1.0408424684982547e-05, + "expected_calibration_error_10bin": 1.0408424684982547e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8183233109303149, + "auprc": 0.006878639662586875, + "brier": 0.0017625775157047942, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.000845711431057387, + "calibration_in_the_large": -0.0009198252921064548, + "expected_calibration_error_10bin": 0.0009198252921064548, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 9.394333224836828e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015093286853496972, + "calibration_in_the_large": 0.0015093286853496972, + "expected_calibration_error_10bin": 0.0015093286853496972, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 5, + "negatives": 2801, + "auroc": 0.5999285969296679, + "auprc": 0.010030130343358958, + "brier": 0.0017762629384077985, + "calibration": { + "observed_rate": 0.001781895937277263, + "mean_prediction": 0.0009907255265895634, + "calibration_in_the_large": -0.0007911704106876997, + "expected_calibration_error_10bin": 0.0007911704106876997, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.7825611090842758, + "auprc": 0.019316470046625456, + "brier": 0.00325518940747187, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.003820482520230309, + "calibration_in_the_large": 0.0005477552475030363, + "expected_calibration_error_10bin": 0.0005477552475030363, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 11, + "negatives": 2779, + "auroc": 0.600608459550525, + "auprc": 0.013418083286782194, + "brier": 0.003935384004167837, + "calibration": { + "observed_rate": 0.003942652329749104, + "mean_prediction": 0.004059149714927005, + "calibration_in_the_large": 0.00011649738517790099, + "expected_calibration_error_10bin": 0.00011649738517790183, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 2, + "negatives": 2807, + "auroc": 0.3982899893124332, + "auprc": 0.0008929496632258579, + "brier": 0.0007297284436144048, + "calibration": { + "observed_rate": 0.000711997152011392, + "mean_prediction": 0.0021663885350643227, + "calibration_in_the_large": 0.0014543913830529307, + "expected_calibration_error_10bin": 0.0014543913830529307, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8286637931034483, + "auprc": 0.009051363949506378, + "brier": 0.002498980603016935, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0019479502630288692, + "calibration_in_the_large": -0.000560111363628243, + "expected_calibration_error_10bin": 0.000560111363628243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8975860844870429, + "auprc": 0.014798927646046922, + "brier": 0.002124440340370137, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001457580992456858, + "calibration_in_the_large": -0.0006678175197641833, + "expected_calibration_error_10bin": 0.0006678175197641833, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8772534785238959, + "auprc": 0.03395881327363426, + "brier": 0.004555257881118405, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.00818898259231688, + "calibration_in_the_large": 0.003852155703990173, + "expected_calibration_error_10bin": 0.003852155703990174, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 38, + "negatives": 1460, + "auroc": 0.7014419610670511, + "auprc": 0.07173420231588834, + "brier": 0.02456508847519743, + "calibration": { + "observed_rate": 0.025367156208277702, + "mean_prediction": 0.01621832411011335, + "calibration_in_the_large": -0.00914883209816435, + "expected_calibration_error_10bin": 0.011189028323231355, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 45, + "negatives": 2631, + "auroc": 0.823235778537945, + "auprc": 0.06776198120472973, + "brier": 0.01619991081081961, + "calibration": { + "observed_rate": 0.016816143497757848, + "mean_prediction": 0.011064748793304212, + "calibration_in_the_large": -0.005751394704453636, + "expected_calibration_error_10bin": 0.007415959809350169, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 26, + "negatives": 2526, + "auroc": 0.850995797551617, + "auprc": 0.11732690398749192, + "brier": 0.009743593613297305, + "calibration": { + "observed_rate": 0.01018808777429467, + "mean_prediction": 0.00672878477758732, + "calibration_in_the_large": -0.0034593029967073504, + "expected_calibration_error_10bin": 0.004894422013124492, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 26, + "negatives": 2701, + "auroc": 0.888075641500299, + "auprc": 0.12527984136138487, + "brier": 0.008930683329629213, + "calibration": { + "observed_rate": 0.009534286762009535, + "mean_prediction": 0.01130419914403436, + "calibration_in_the_large": 0.0017699123820248252, + "expected_calibration_error_10bin": 0.0017699123820248256, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 10, + "negatives": 2380, + "auroc": 0.9255042016806723, + "auprc": 0.03166027568589283, + "brier": 0.004133282898279263, + "calibration": { + "observed_rate": 0.0041841004184100415, + "mean_prediction": 0.0021702346141366327, + "calibration_in_the_large": -0.002013865804273409, + "expected_calibration_error_10bin": 0.002013865804273409, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 19, + "negatives": 2652, + "auroc": 0.8206517424783679, + "auprc": 0.032774229538912424, + "brier": 0.007134367079650645, + "calibration": { + "observed_rate": 0.00711344065892924, + "mean_prediction": 0.010428209986447104, + "calibration_in_the_large": 0.003314769327517864, + "expected_calibration_error_10bin": 0.003314769327517864, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8852195644412709, + "auprc": 0.01995326069434565, + "brier": 0.002831241379807055, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0018664760472938125, + "calibration_in_the_large": -0.0009815125607517555, + "expected_calibration_error_10bin": 0.0009815125607517555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.8328642759872901, + "auprc": 0.07256276190438182, + "brier": 0.01710246974026083, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.01248068584859723, + "calibration_in_the_large": -0.005352573179490153, + "expected_calibration_error_10bin": 0.005574361557800475, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 17, + "negatives": 2743, + "auroc": 0.7390148184684009, + "auprc": 0.06927375923113192, + "brier": 0.005962715888029123, + "calibration": { + "observed_rate": 0.006159420289855073, + "mean_prediction": 0.005923147589791093, + "calibration_in_the_large": -0.00023627270006397992, + "expected_calibration_error_10bin": 0.00023627270006397997, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 31, + "negatives": 2685, + "auroc": 0.8443923830119541, + "auprc": 0.05051350948956251, + "brier": 0.011331152574513313, + "calibration": { + "observed_rate": 0.011413843888070692, + "mean_prediction": 0.011221612699227588, + "calibration_in_the_large": -0.00019223118884310365, + "expected_calibration_error_10bin": 0.004042892873356546, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.778560496939143, + "auprc": 0.08334603702987978, + "brier": 0.005599071197832001, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0039036932327653866, + "calibration_in_the_large": -0.0018249139996012447, + "expected_calibration_error_10bin": 0.0018249139996012443, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 16, + "negatives": 2737, + "auroc": 0.7767857142857143, + "auprc": 0.02403264055502923, + "brier": 0.005801965761270169, + "calibration": { + "observed_rate": 0.005811841627315656, + "mean_prediction": 0.005325931091459055, + "calibration_in_the_large": -0.00048591053585660127, + "expected_calibration_error_10bin": 0.0011327803519022967, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 6, + "negatives": 2717, + "auroc": 0.7110783952889216, + "auprc": 0.00969040038215179, + "brier": 0.002290356730227936, + "calibration": { + "observed_rate": 0.0022034520749173708, + "mean_prediction": 0.004898786155050513, + "calibration_in_the_large": 0.002695334080133142, + "expected_calibration_error_10bin": 0.0026953340801331425, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.9257697947214076, + "auprc": 0.06807823566521973, + "brier": 0.004243111802390172, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.004359895294418075, + "calibration_in_the_large": -1.966674937754591e-05, + "expected_calibration_error_10bin": 0.00013040283623338514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 21, + "negatives": 2701, + "auroc": 0.8503023571516722, + "auprc": 0.04645815650528112, + "brier": 0.007578908206549807, + "calibration": { + "observed_rate": 0.007714915503306392, + "mean_prediction": 0.008060747892468672, + "calibration_in_the_large": 0.00034583238916227957, + "expected_calibration_error_10bin": 0.0010184718631514648, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 16, + "negatives": 2750, + "auroc": 0.6715, + "auprc": 0.014760414612913081, + "brier": 0.005754342894686352, + "calibration": { + "observed_rate": 0.005784526391901663, + "mean_prediction": 0.005922356321680021, + "calibration_in_the_large": 0.00013782992977835837, + "expected_calibration_error_10bin": 0.00013782992977835837, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6230116648992576, + "auprc": 0.001364380079239517, + "brier": 0.0007177941114360577, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0017556300327388281, + "calibration_in_the_large": 0.0010491658857942855, + "expected_calibration_error_10bin": 0.0010491658857942855, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 16, + "negatives": 2700, + "auroc": 0.7126388888888889, + "auprc": 0.01283712127273454, + "brier": 0.00589885141249669, + "calibration": { + "observed_rate": 0.005891016200294551, + "mean_prediction": 0.006474446706339967, + "calibration_in_the_large": 0.0005834305060454159, + "expected_calibration_error_10bin": 0.0005834305060454161, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 25, + "negatives": 2360, + "auroc": 0.763406779661017, + "auprc": 0.028932412495920188, + "brier": 0.01036947036899093, + "calibration": { + "observed_rate": 0.010482180293501049, + "mean_prediction": 0.01003250703756796, + "calibration_in_the_large": -0.00044967325593308835, + "expected_calibration_error_10bin": 0.0012837154584347636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6886488124878217, + "auprc": 0.014059790174379035, + "brier": 0.006177028521255277, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.003741634900001407, + "calibration_in_the_large": -0.0024763607108252207, + "expected_calibration_error_10bin": 0.0024763607108252207, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 44, + "negatives": 2371, + "auroc": 0.8167727464437713, + "auprc": 0.08145962898032776, + "brier": 0.01789928797179338, + "calibration": { + "observed_rate": 0.018219461697722567, + "mean_prediction": 0.016944362563063236, + "calibration_in_the_large": -0.0012750991346593306, + "expected_calibration_error_10bin": 0.007826470843819516, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 7, + "negatives": 2800, + "auroc": 0.7853571428571429, + "auprc": 0.008253339846183207, + "brier": 0.0024875782277558388, + "calibration": { + "observed_rate": 0.0024937655860349127, + "mean_prediction": 0.0020823176755043332, + "calibration_in_the_large": -0.00041144791053057943, + "expected_calibration_error_10bin": 0.00041144791053057943, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8809502505368647, + "auprc": 0.03197769264651227, + "brier": 0.0028386275477418083, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0007898544180022174, + "calibration_in_the_large": -0.002065249079499567, + "expected_calibration_error_10bin": 0.002065249079499567, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.765264871108311, + "auprc": 0.01636143789130163, + "brier": 0.0051006260625254705, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.0038959199006024787, + "calibration_in_the_large": -0.0012229100811159857, + "expected_calibration_error_10bin": 0.0013306098118304381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6407755298651252, + "auprc": 0.014605406942870986, + "brier": 0.0021617853673489, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0025635444016291506, + "calibration_in_the_large": 0.00040060280105236627, + "expected_calibration_error_10bin": 0.00040060280105236627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6048134777376655, + "auprc": 0.0022916153121468013, + "brier": 0.0011099106023724878, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0028427830281618828, + "calibration_in_the_large": 0.0017609222275848902, + "expected_calibration_error_10bin": 0.0017609222275848902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 16, + "negatives": 2736, + "auroc": 0.7826663011695907, + "auprc": 0.0489469469247508, + "brier": 0.0058250142480538915, + "calibration": { + "observed_rate": 0.005813953488372093, + "mean_prediction": 0.006372534352623842, + "calibration_in_the_large": 0.0005585808642517487, + "expected_calibration_error_10bin": 0.0006194682932734688, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.796151987435061, + "auprc": 0.022927597476935683, + "brier": 0.004290442922749773, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.003070741971008335, + "calibration_in_the_large": -0.0012598246114528702, + "expected_calibration_error_10bin": 0.0013346612705229571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7479739507959479, + "auprc": 0.006024167818873415, + "brier": 0.001811846782957965, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0025493331213547778, + "calibration_in_the_large": 0.0007436270902966341, + "expected_calibration_error_10bin": 0.0007436270902966341, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.644262683736368, + "auprc": 0.010185519548721819, + "brier": 0.0021279484957203963, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0016032811364604512, + "calibration_in_the_large": -0.0005258884873862485, + "expected_calibration_error_10bin": 0.0005258884873862485, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 8, + "negatives": 2726, + "auroc": 0.798514306676449, + "auprc": 0.14406522009702125, + "brier": 0.0028644699938464454, + "calibration": { + "observed_rate": 0.002926115581565472, + "mean_prediction": 0.0029460177714120657, + "calibration_in_the_large": 1.9902189846593768e-05, + "expected_calibration_error_10bin": 1.9902189846593768e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7602982954545454, + "auprc": 0.011332755120607373, + "brier": 0.0017671357976808521, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0007372615668337219, + "calibration_in_the_large": -0.0010351595604261151, + "expected_calibration_error_10bin": 0.0010351595604261151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6167686218064051, + "auprc": 0.005459590803599308, + "brier": 0.002158575748795821, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0019715060536833837, + "calibration_in_the_large": -0.00018289251005090693, + "expected_calibration_error_10bin": 0.00018289251005090693, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8283486888731396, + "auprc": 0.11304787983246227, + "brier": 0.0017081050241999545, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0018802848626881077, + "calibration_in_the_large": 0.00011162550648011324, + "expected_calibration_error_10bin": 0.0005007928397871671, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8113910574875799, + "auprc": 0.01556333335156238, + "brier": 0.0029659779401583946, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0026469192299625704, + "calibration_in_the_large": -0.00018393710407847708, + "expected_calibration_error_10bin": 0.0016809944068629076, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.7611747321758404, + "auprc": 0.05300077943382116, + "brier": 0.011504693342806889, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.009359590645400703, + "calibration_in_the_large": -0.002323505375044716, + "expected_calibration_error_10bin": 0.005821628417730025, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.992816091954023, + "auprc": 0.29784652687933943, + "brier": 0.0027523927583449547, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002185394970080041, + "calibration_in_the_large": -0.0010369465981261892, + "expected_calibration_error_10bin": 0.0018420720335329758, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 12, + "negatives": 2768, + "auroc": 0.6836464354527938, + "auprc": 0.010904717697851334, + "brier": 0.004349452857751439, + "calibration": { + "observed_rate": 0.004316546762589928, + "mean_prediction": 0.005228341181478597, + "calibration_in_the_large": 0.000911794418888669, + "expected_calibration_error_10bin": 0.0009117944188886695, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8488479262672811, + "auprc": 0.019621625785792067, + "brier": 0.0017587484985251932, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0008717527640439336, + "calibration_in_the_large": -0.0008975324447317209, + "expected_calibration_error_10bin": 0.0008975324447317209, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 87, + "negatives": 2398, + "auroc": 0.7578777333601756, + "auprc": 0.10774392220376977, + "brier": 0.03287415335156898, + "calibration": { + "observed_rate": 0.03501006036217304, + "mean_prediction": 0.0256371566788968, + "calibration_in_the_large": -0.009372903683276236, + "expected_calibration_error_10bin": 0.011874904308980607, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8374380750176929, + "auprc": 0.037495355145658896, + "brier": 0.0017417629403057076, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0014188195061833912, + "calibration_in_the_large": -0.0003473408611779651, + "expected_calibration_error_10bin": 0.0003473408611779651, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 10, + "negatives": 2730, + "auroc": 0.7655677655677655, + "auprc": 0.014285728533215724, + "brier": 0.003626084725215886, + "calibration": { + "observed_rate": 0.0036496350364963502, + "mean_prediction": 0.0030886065545370784, + "calibration_in_the_large": -0.0005610284819592718, + "expected_calibration_error_10bin": 0.0005610284819592718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6902231668437833, + "auprc": 0.0016718429007200615, + "brier": 0.0007267786027910707, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0017864319758538149, + "calibration_in_the_large": 0.0010784673740839032, + "expected_calibration_error_10bin": 0.0010784673740839032, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7161235754985755, + "auprc": 0.012626095797610905, + "brier": 0.002931615264199697, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0039281879088587275, + "calibration_in_the_large": 0.0010872788179496365, + "expected_calibration_error_10bin": 0.001087278817949637, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 0.0001177248831579357, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0027706102538178723, + "calibration_in_the_large": 0.0027706102538178723, + "expected_calibration_error_10bin": 0.0027706102538178727, + "nonempty_bins": 3 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 14, + "negatives": 2781, + "auroc": 0.7812194996661016, + "auprc": 0.017111048017342253, + "brier": 0.005037270609987942, + "calibration": { + "observed_rate": 0.005008944543828265, + "mean_prediction": 0.005277234670358247, + "calibration_in_the_large": 0.0002682901265299818, + "expected_calibration_error_10bin": 0.0002682901265299816, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 52, + "negatives": 2619, + "auroc": 0.7811628043586807, + "auprc": 0.08450106709960797, + "brier": 0.018549101214995825, + "calibration": { + "observed_rate": 0.019468363908648447, + "mean_prediction": 0.017638521673796898, + "calibration_in_the_large": -0.0018298422348515496, + "expected_calibration_error_10bin": 0.0028063354118156095, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.622049247049247, + "auprc": 0.016788842391980672, + "brier": 0.0025501007513195053, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0034932642122243655, + "calibration_in_the_large": 0.0010065857042314704, + "expected_calibration_error_10bin": 0.00100658570423147, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5063671736823487, + "auprc": 0.002873215872047399, + "brier": 0.0007382316040454744, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0014405531231163975, + "calibration_in_the_large": 0.0007335895317413533, + "expected_calibration_error_10bin": 0.0007335895317413533, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7423812898653437, + "auprc": 0.005861024925433261, + "brier": 0.0010666878780885803, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0016781029683778218, + "calibration_in_the_large": 0.0006161560657229545, + "expected_calibration_error_10bin": 0.0006161560657229545, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6766362660944206, + "auprc": 0.006985653662607507, + "brier": 0.002851123864660658, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.0023425462188116967, + "calibration_in_the_large": -0.0005105208282639097, + "expected_calibration_error_10bin": 0.0005105208282639097, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 24, + "negatives": 2546, + "auroc": 0.8197990311599895, + "auprc": 0.0426567316399229, + "brier": 0.009136010506060166, + "calibration": { + "observed_rate": 0.00933852140077821, + "mean_prediction": 0.008740149171774325, + "calibration_in_the_large": -0.0005983722290038851, + "expected_calibration_error_10bin": 0.0017032818802462273, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 22, + "negatives": 2496, + "auroc": 0.6995738636363636, + "auprc": 0.04638328346988795, + "brier": 0.008577830341649181, + "calibration": { + "observed_rate": 0.008737092930897538, + "mean_prediction": 0.008765220236289057, + "calibration_in_the_large": 2.8127305391518684e-05, + "expected_calibration_error_10bin": 0.00037606902868936955, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8404871703913918, + "auprc": 0.010444346131974524, + "brier": 0.0021177157035491266, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0008929242987344207, + "calibration_in_the_large": -0.001230969506575314, + "expected_calibration_error_10bin": 0.001230969506575314, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 26, + "negatives": 2751, + "auroc": 0.7764868719067193, + "auprc": 0.023807098653712944, + "brier": 0.009271558332557064, + "calibration": { + "observed_rate": 0.009362621534029529, + "mean_prediction": 0.007625882104698509, + "calibration_in_the_large": -0.0017367394293310197, + "expected_calibration_error_10bin": 0.0018869853103000353, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 19, + "negatives": 2762, + "auroc": 0.7863866763215062, + "auprc": 0.031291027632207945, + "brier": 0.00675388814382927, + "calibration": { + "observed_rate": 0.0068320747932398415, + "mean_prediction": 0.0031707565633168557, + "calibration_in_the_large": -0.003661318229922986, + "expected_calibration_error_10bin": 0.003763088413509537, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9198779867819014, + "auprc": 0.020433754850918917, + "brier": 0.002462915451827688, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0019106282889895874, + "calibration_in_the_large": -0.0005742847390544311, + "expected_calibration_error_10bin": 0.0005742847390544311, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 31, + "negatives": 2723, + "auroc": 0.6958880741118074, + "auprc": 0.032042333165326814, + "brier": 0.011132375864051733, + "calibration": { + "observed_rate": 0.011256354393609296, + "mean_prediction": 0.008581445514946363, + "calibration_in_the_large": -0.0026749088786629325, + "expected_calibration_error_10bin": 0.003473857420671577, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.838863067572399, + "auprc": 0.05481589561558753, + "brier": 0.003531551436008879, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.004249786711254032, + "calibration_in_the_large": 0.0006872644454898715, + "expected_calibration_error_10bin": 0.0013155583066673685, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6532458318552679, + "auprc": 0.030275577839296568, + "brier": 0.003551597747167815, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.001884213053137162, + "calibration_in_the_large": -0.001650604903738059, + "expected_calibration_error_10bin": 0.0020770328557904857, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 13, + "negatives": 2757, + "auroc": 0.7976897966016573, + "auprc": 0.049819286917286654, + "brier": 0.004596327166348516, + "calibration": { + "observed_rate": 0.004693140794223827, + "mean_prediction": 0.004610057781422055, + "calibration_in_the_large": -8.308301280177122e-05, + "expected_calibration_error_10bin": 8.308301280177122e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 68, + "negatives": 2537, + "auroc": 0.8384613601057294, + "auprc": 0.11866205029683885, + "brier": 0.02429506501943802, + "calibration": { + "observed_rate": 0.026103646833013437, + "mean_prediction": 0.021676428727533847, + "calibration_in_the_large": -0.0044272181054795905, + "expected_calibration_error_10bin": 0.008714658033424569, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 34, + "negatives": 2658, + "auroc": 0.7677377948922233, + "auprc": 0.0902836260761455, + "brier": 0.01221943735353833, + "calibration": { + "observed_rate": 0.01263001485884101, + "mean_prediction": 0.008021613139493419, + "calibration_in_the_large": -0.004608401719347592, + "expected_calibration_error_10bin": 0.004608401719347592, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9620677487649965, + "auprc": 0.03825944170771757, + "brier": 0.0007005031910955009, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0005125522185198363, + "calibration_in_the_large": -0.00019266639925167282, + "expected_calibration_error_10bin": 0.00019266639925167282, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8902897813929842, + "auprc": 0.10965032747657374, + "brier": 0.006153349244623899, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.007656020868515148, + "calibration_in_the_large": 0.0026985137863621738, + "expected_calibration_error_10bin": 0.005976521218466363, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7861933642525866, + "auprc": 0.013179354270549856, + "brier": 0.0036203085972590456, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.005848282524042798, + "calibration_in_the_large": 0.002293358954899534, + "expected_calibration_error_10bin": 0.002293358954899534, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 76, + "negatives": 1967, + "auroc": 0.747043320043882, + "auprc": 0.13590377861689357, + "brier": 0.03425218979578223, + "calibration": { + "observed_rate": 0.03720019579050416, + "mean_prediction": 0.034840593034235375, + "calibration_in_the_large": -0.002359602756268786, + "expected_calibration_error_10bin": 0.005561975488760356, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 17, + "negatives": 2747, + "auroc": 0.7826077646202274, + "auprc": 0.032327535289713424, + "brier": 0.006062803741167495, + "calibration": { + "observed_rate": 0.006150506512301013, + "mean_prediction": 0.005606034215543069, + "calibration_in_the_large": -0.0005444722967579444, + "expected_calibration_error_10bin": 0.000633416438382922, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 6, + "negatives": 2811, + "auroc": 0.7749911063678406, + "auprc": 0.006474675986413012, + "brier": 0.0022442207085118424, + "calibration": { + "observed_rate": 0.002129925452609159, + "mean_prediction": 0.003527805396253638, + "calibration_in_the_large": 0.0013978799436444793, + "expected_calibration_error_10bin": 0.0013978799436444793, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9113247863247863, + "auprc": 0.07694567327890593, + "brier": 0.0020901459683414316, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002066953035792174, + "calibration_in_the_large": -6.524312625473408e-05, + "expected_calibration_error_10bin": 6.524312625473408e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 12, + "negatives": 2773, + "auroc": 0.7164923668710181, + "auprc": 0.01774443566837037, + "brier": 0.004333917093564593, + "calibration": { + "observed_rate": 0.004308797127468581, + "mean_prediction": 0.006579187604453652, + "calibration_in_the_large": 0.002270390476985071, + "expected_calibration_error_10bin": 0.0022703904769850705, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.8462081128747796, + "auprc": 0.003333333333333333, + "brier": 0.0007191561950851754, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.001625060839950059, + "calibration_in_the_large": 0.0009200908011767068, + "expected_calibration_error_10bin": 0.0009200908011767068, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.9198522847171496, + "auprc": 0.07969719813283654, + "brier": 0.006285079191133956, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.006502886876062371, + "calibration_in_the_large": -2.8317768349820326e-05, + "expected_calibration_error_10bin": 0.0006107841650435609, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9212700661000944, + "auprc": 0.008722675736536655, + "brier": 0.0010588051273503003, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001209658194525249, + "calibration_in_the_large": 0.00014846258080045225, + "expected_calibration_error_10bin": 0.00014846258080045225, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.8452380952380952, + "auprc": 0.02130862062241376, + "brier": 0.002126348630504305, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0013303527638959328, + "calibration_in_the_large": -0.0007973068105721524, + "expected_calibration_error_10bin": 0.0008873049522430556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 7, + "negatives": 2806, + "auroc": 0.7797576621525303, + "auprc": 0.021257219465480537, + "brier": 0.0024659856941659964, + "calibration": { + "observed_rate": 0.002488446498400284, + "mean_prediction": 0.0018164384382576416, + "calibration_in_the_large": -0.0006720080601426426, + "expected_calibration_error_10bin": 0.0006720080601426426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7129662948302746, + "auprc": 0.009421764840856174, + "brier": 0.0021532715777730946, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.003183596790300886, + "calibration_in_the_large": 0.0010291982265665952, + "expected_calibration_error_10bin": 0.0010291982265665952, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.8243709864196231, + "auprc": 0.06540097989384855, + "brier": 0.012846974425207264, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.011796513201563136, + "calibration_in_the_large": -0.0009353893084405023, + "expected_calibration_error_10bin": 0.006695438306627593, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 8, + "negatives": 2807, + "auroc": 0.7760954755967224, + "auprc": 0.007060024521821579, + "brier": 0.002895910583027624, + "calibration": { + "observed_rate": 0.002841918294849023, + "mean_prediction": 0.003277321899995465, + "calibration_in_the_large": 0.0004354036051464421, + "expected_calibration_error_10bin": 0.0004354036051464421, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 27, + "negatives": 2718, + "auroc": 0.7973182895920202, + "auprc": 0.04434687672174732, + "brier": 0.009628421362161865, + "calibration": { + "observed_rate": 0.009836065573770493, + "mean_prediction": 0.011143722302625053, + "calibration_in_the_large": 0.0013076567288545608, + "expected_calibration_error_10bin": 0.0013076567288545626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 22, + "negatives": 2719, + "auroc": 0.6914139556655188, + "auprc": 0.020049159150143478, + "brier": 0.00798952315073145, + "calibration": { + "observed_rate": 0.008026267785479753, + "mean_prediction": 0.005151247409041846, + "calibration_in_the_large": -0.0028750203764379067, + "expected_calibration_error_10bin": 0.0033723720573062502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7542446781225955, + "auprc": 0.016269204757290146, + "brier": 0.0024941097317866053, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0021530952780434184, + "calibration_in_the_large": -0.00035406804573881673, + "expected_calibration_error_10bin": 0.00035406804573881673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 83, + "negatives": 2477, + "auroc": 0.7351489121605518, + "auprc": 0.11790439309625297, + "brier": 0.030180115737718016, + "calibration": { + "observed_rate": 0.032421875, + "mean_prediction": 0.02450613139978941, + "calibration_in_the_large": -0.007915743600210592, + "expected_calibration_error_10bin": 0.009029515980842005, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8365487674169346, + "auprc": 0.02029226234909609, + "brier": 0.004930290414664282, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.003129389332306211, + "calibration_in_the_large": -0.0018475036644943574, + "expected_calibration_error_10bin": 0.0018475036644943574, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7057602862254025, + "auprc": 0.01152094574512482, + "brier": 0.005324068600311229, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.003936577832468291, + "calibration_in_the_large": -0.0014015004593466562, + "expected_calibration_error_10bin": 0.0014015004593466562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 20, + "negatives": 2781, + "auroc": 0.8000539374325782, + "auprc": 0.026939664924278434, + "brier": 0.0072335891325359765, + "calibration": { + "observed_rate": 0.007140307033202428, + "mean_prediction": 0.006385447710213178, + "calibration_in_the_large": -0.00075485932298925, + "expected_calibration_error_10bin": 0.0038558038629715155, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 12, + "negatives": 2801, + "auroc": 0.8895632512198024, + "auprc": 0.048691597315402034, + "brier": 0.004420019592755941, + "calibration": { + "observed_rate": 0.004265908282971916, + "mean_prediction": 0.007989533884917913, + "calibration_in_the_large": 0.003723625601945997, + "expected_calibration_error_10bin": 0.0037236256019459973, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 8, + "negatives": 2788, + "auroc": 0.7012643472022956, + "auprc": 0.01245330926308276, + "brier": 0.002893019089513301, + "calibration": { + "observed_rate": 0.002861230329041488, + "mean_prediction": 0.004123870278074827, + "calibration_in_the_large": 0.0012626399490333392, + "expected_calibration_error_10bin": 0.0012626399490333394, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 2, + "negatives": 2772, + "auroc": 0.9462481962481962, + "auprc": 0.009683018178496393, + "brier": 0.0007516147996493354, + "calibration": { + "observed_rate": 0.0007209805335255948, + "mean_prediction": 0.001241739848955863, + "calibration_in_the_large": 0.0005207593154302683, + "expected_calibration_error_10bin": 0.0005207593154302683, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 18, + "negatives": 2769, + "auroc": 0.9626018217567514, + "auprc": 0.22229333988901598, + "brier": 0.0059869225567239235, + "calibration": { + "observed_rate": 0.006458557588805167, + "mean_prediction": 0.0055164394058905795, + "calibration_in_the_large": -0.0009421181829145876, + "expected_calibration_error_10bin": 0.0034489872069593183, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9628861704333402, + "auprc": 0.04945867584022739, + "brier": 0.0027172579807887886, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.003697784281905689, + "calibration_in_the_large": 0.0011643061783950122, + "expected_calibration_error_10bin": 0.0011643061783950122, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.7868364418938307, + "auprc": 0.024223873824543565, + "brier": 0.003573031886081089, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.002963948081478819, + "calibration_in_the_large": -0.0006100333338178213, + "expected_calibration_error_10bin": 0.0011760039339378148, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 30, + "negatives": 2651, + "auroc": 0.8013956997359487, + "auprc": 0.19405718391446322, + "brier": 0.010111121074910395, + "calibration": { + "observed_rate": 0.011189854531891086, + "mean_prediction": 0.006241205046038826, + "calibration_in_the_large": -0.00494864948585226, + "expected_calibration_error_10bin": 0.0061170457889288266, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 13, + "negatives": 2718, + "auroc": 0.7493915209146997, + "auprc": 0.01726862663385056, + "brier": 0.004729057138083342, + "calibration": { + "observed_rate": 0.004760161113145368, + "mean_prediction": 0.0039019545515532345, + "calibration_in_the_large": -0.0008582065615921333, + "expected_calibration_error_10bin": 0.0008582065615921333, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.839290780141844, + "auprc": 0.018950352808035118, + "brier": 0.001769774337925205, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0017628241458854152, + "calibration_in_the_large": -7.087358539363585e-06, + "expected_calibration_error_10bin": 7.087358539363585e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6118794326241135, + "auprc": 0.004606512178899074, + "brier": 0.00141990611602647, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0012625046564841227, + "calibration_in_the_large": -0.0001539259384167272, + "expected_calibration_error_10bin": 0.0001539259384167272, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 12, + "negatives": 2745, + "auroc": 0.8872191863995142, + "auprc": 0.11184055836685601, + "brier": 0.004289420101277117, + "calibration": { + "observed_rate": 0.004352557127312296, + "mean_prediction": 0.004411166191624215, + "calibration_in_the_large": 5.86090643119189e-05, + "expected_calibration_error_10bin": 0.0023921554500182865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 8, + "negatives": 2771, + "auroc": 0.8280404186214363, + "auprc": 0.043870570795451175, + "brier": 0.0028467542075511355, + "calibration": { + "observed_rate": 0.0028787333573227778, + "mean_prediction": 0.0020568153036798894, + "calibration_in_the_large": -0.0008219180536428883, + "expected_calibration_error_10bin": 0.0008219180536428883, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7307415406767459, + "auprc": 0.018105978705606283, + "brier": 0.002518633747925167, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.003203823264255961, + "calibration_in_the_large": 0.0006903582732326217, + "expected_calibration_error_10bin": 0.0006903582732326212, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 2, + "negatives": 2829, + "auroc": 0.6891127606928243, + "auprc": 0.0016651080631753948, + "brier": 0.0007102293226871646, + "calibration": { + "observed_rate": 0.0007064641469445425, + "mean_prediction": 0.0008446579035840612, + "calibration_in_the_large": 0.00013819375663951861, + "expected_calibration_error_10bin": 0.00013819375663951861, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 22, + "negatives": 2746, + "auroc": 0.8561544064093226, + "auprc": 0.05357631289413365, + "brier": 0.007779392331353781, + "calibration": { + "observed_rate": 0.007947976878612716, + "mean_prediction": 0.007904852696038042, + "calibration_in_the_large": -4.3124182574674416e-05, + "expected_calibration_error_10bin": 0.001734477501496767, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 33, + "negatives": 2718, + "auroc": 0.8589760742078623, + "auprc": 0.08130185964826636, + "brier": 0.011496418272522641, + "calibration": { + "observed_rate": 0.011995637949836423, + "mean_prediction": 0.00965595950195059, + "calibration_in_the_large": -0.002339678447885834, + "expected_calibration_error_10bin": 0.003509328136314647, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8843004627981488, + "auprc": 0.06559191350282191, + "brier": 0.004805522463730306, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.004323123036776055, + "calibration_in_the_large": -0.0006361401584063751, + "expected_calibration_error_10bin": 0.001239812955006087, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.750685220324689, + "auprc": 0.016184335147438354, + "brier": 0.006011564048387944, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.0053273493292567125, + "calibration_in_the_large": -0.0007289385225423611, + "expected_calibration_error_10bin": 0.0007289385225423611, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 41, + "negatives": 2660, + "auroc": 0.7064093159728589, + "auprc": 0.07222077493839311, + "brier": 0.014702304908841824, + "calibration": { + "observed_rate": 0.015179563124768604, + "mean_prediction": 0.011560426994587907, + "calibration_in_the_large": -0.0036191361301806963, + "expected_calibration_error_10bin": 0.005916213705028899, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6248495575221239, + "auprc": 0.003866630853632873, + "brier": 0.001774768671421519, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0014356984015347486, + "calibration_in_the_large": -0.00033108605076207116, + "expected_calibration_error_10bin": 0.00033108605076207116, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 10, + "negatives": 2808, + "auroc": 0.725, + "auprc": 0.02820859191665163, + "brier": 0.0038392772271808773, + "calibration": { + "observed_rate": 0.0035486160397444995, + "mean_prediction": 0.005737595859863699, + "calibration_in_the_large": 0.0021889798201191997, + "expected_calibration_error_10bin": 0.0021889798201191993, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6923714759535655, + "auprc": 0.011080096678852512, + "brier": 0.0011433204926887635, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.004601851649540068, + "calibration_in_the_large": 0.0035368889232354887, + "expected_calibration_error_10bin": 0.0035368889232354882, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7750623219373219, + "auprc": 0.02671511973491092, + "brier": 0.0028412647361955173, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002706366136867609, + "calibration_in_the_large": -0.00013454295404148218, + "expected_calibration_error_10bin": 0.000397637125838492, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7254001883239172, + "auprc": 0.009013661467721548, + "brier": 0.0010571703252769636, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.00103717443444801, + "calibration_in_the_large": -2.1026623753048288e-05, + "expected_calibration_error_10bin": 2.1026623753048288e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 9.769839285326015e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0013498485570138498, + "calibration_in_the_large": 0.0013498485570138498, + "expected_calibration_error_10bin": 0.0013498485570138498, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.710902047592695, + "auprc": 0.013115670974666075, + "brier": 0.0046357928832779895, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.00494090438774114, + "calibration_in_the_large": 0.00028641101144325203, + "expected_calibration_error_10bin": 0.00028641101144325203, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 21, + "negatives": 2777, + "auroc": 0.860212288012072, + "auprc": 0.04031072167801062, + "brier": 0.007391877019637515, + "calibration": { + "observed_rate": 0.007505360972122945, + "mean_prediction": 0.004569975626300396, + "calibration_in_the_large": -0.002935385345822549, + "expected_calibration_error_10bin": 0.0034282916276070345, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 11, + "negatives": 2778, + "auroc": 0.8667452058380785, + "auprc": 0.12553822279406937, + "brier": 0.003805073815394334, + "calibration": { + "observed_rate": 0.003944065973467192, + "mean_prediction": 0.00564271766333296, + "calibration_in_the_large": 0.0016986516898657676, + "expected_calibration_error_10bin": 0.002596005184191243, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 5, + "negatives": 2819, + "auroc": 0.6560482440581766, + "auprc": 0.0036622722328960716, + "brier": 0.0018417174181548045, + "calibration": { + "observed_rate": 0.0017705382436260624, + "mean_prediction": 0.004151153044174748, + "calibration_in_the_large": 0.002380614800548686, + "expected_calibration_error_10bin": 0.0023806148005486856, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.7664102564102564, + "auprc": 0.05567420324381778, + "brier": 0.004698643405798106, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.006005093231808744, + "calibration_in_the_large": 0.0012133497743815414, + "expected_calibration_error_10bin": 0.001213349774381541, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8459514412151656, + "auprc": 0.010264724462458557, + "brier": 0.0010746512579040766, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0014952872269563204, + "calibration_in_the_large": 0.0004200184097520193, + "expected_calibration_error_10bin": 0.0004200184097520193, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 10, + "negatives": 2723, + "auroc": 0.6702901211898641, + "auprc": 0.006780815928121654, + "brier": 0.0037112766175259105, + "calibration": { + "observed_rate": 0.003658982802780827, + "mean_prediction": 0.003336367277742351, + "calibration_in_the_large": -0.00032261552503847586, + "expected_calibration_error_10bin": 0.0006221971824697786, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 33, + "negatives": 2641, + "auroc": 0.6837630374169564, + "auprc": 0.029666094975655366, + "brier": 0.012233523808097306, + "calibration": { + "observed_rate": 0.012341062079281975, + "mean_prediction": 0.01019981881844048, + "calibration_in_the_large": -0.0021412432608414952, + "expected_calibration_error_10bin": 0.003203224951021108, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.8515431003902093, + "auprc": 0.036924939467312345, + "brier": 0.000702554269480869, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.001535952115170628, + "calibration_in_the_large": 0.0008269836642666932, + "expected_calibration_error_10bin": 0.0008269836642666932, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 34, + "negatives": 2683, + "auroc": 0.6532196180745873, + "auprc": 0.03052873823192369, + "brier": 0.012434018538799623, + "calibration": { + "observed_rate": 0.012513801987486198, + "mean_prediction": 0.010237991016848608, + "calibration_in_the_large": -0.0022758109706375908, + "expected_calibration_error_10bin": 0.0039467944010703904, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9466833095577746, + "auprc": 0.010126841243862521, + "brier": 0.0007130506088673725, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0011985356200958208, + "calibration_in_the_large": 0.0004857772451849155, + "expected_calibration_error_10bin": 0.0004857772451849155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7306939501779359, + "auprc": 0.003356664967450659, + "brier": 0.0014273376384396701, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.002045152112310596, + "calibration_in_the_large": 0.0006236880042793237, + "expected_calibration_error_10bin": 0.0006236880042793237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.8008781558726674, + "auprc": 0.021184949021062976, + "brier": 0.0036136713673500668, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.0024890016452036217, + "calibration_in_the_large": -0.0011566418108663748, + "expected_calibration_error_10bin": 0.0011566418108663748, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7123880597014925, + "auprc": 0.01610858179811855, + "brier": 0.0037176902838570473, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.005733918918289094, + "calibration_in_the_large": 0.0020164467993299866, + "expected_calibration_error_10bin": 0.0020164467993299866, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 3, + "negatives": 2782, + "auroc": 0.7562904385334291, + "auprc": 0.005090800168754996, + "brier": 0.0010771046397957977, + "calibration": { + "observed_rate": 0.0010771992818671453, + "mean_prediction": 0.00208931767236509, + "calibration_in_the_large": 0.0010121183904979447, + "expected_calibration_error_10bin": 0.0010121183904979447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 40, + "negatives": 2527, + "auroc": 0.7189750692520775, + "auprc": 0.05824125955043634, + "brier": 0.015160941211454055, + "calibration": { + "observed_rate": 0.015582391897156213, + "mean_prediction": 0.016836216019138723, + "calibration_in_the_large": 0.0012538241219825098, + "expected_calibration_error_10bin": 0.0012538241219825115, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6476001443522195, + "auprc": 0.017791432516375685, + "brier": 0.0035745400177590847, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.0034739260400387635, + "calibration_in_the_large": -0.00012190279850852158, + "expected_calibration_error_10bin": 0.00012190279850852158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 33, + "negatives": 2664, + "auroc": 0.7386704886704887, + "auprc": 0.043088635601173174, + "brier": 0.012182299464806324, + "calibration": { + "observed_rate": 0.012235817575083427, + "mean_prediction": 0.01587870340417885, + "calibration_in_the_large": 0.0036428858290954245, + "expected_calibration_error_10bin": 0.0036428858290954258, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.7554863412961481, + "auprc": 0.01964205963721262, + "brier": 0.00482300125424903, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.0040554397585478765, + "calibration_in_the_large": -0.0007504752137256912, + "expected_calibration_error_10bin": 0.001324386104964201, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8242057847321005, + "auprc": 0.027185662133414373, + "brier": 0.002111709222601115, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0025133659931793175, + "calibration_in_the_large": 0.0003841963693326177, + "expected_calibration_error_10bin": 0.0003841963693326177, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5863817457442956, + "auprc": 0.003590111743011313, + "brier": 0.0025378228018983007, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0025418893023445473, + "calibration_in_the_large": 1.2987568240500989e-05, + "expected_calibration_error_10bin": 1.2987568240500989e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 14, + "negatives": 2789, + "auroc": 0.7640219228602162, + "auprc": 0.047753952098770334, + "brier": 0.004933528183971014, + "calibration": { + "observed_rate": 0.0049946485907955765, + "mean_prediction": 0.0030265865763722346, + "calibration_in_the_large": -0.001968062014423342, + "expected_calibration_error_10bin": 0.0019965414188438846, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8299005681818182, + "auprc": 0.003982841165111039, + "brier": 0.001063686646050689, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0005239232597803929, + "calibration_in_the_large": -0.0005402839058811892, + "expected_calibration_error_10bin": 0.0005402839058811892, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 3, + "negatives": 2801, + "auroc": 0.8751636320361775, + "auprc": 0.03669785135299517, + "brier": 0.0010643502827928785, + "calibration": { + "observed_rate": 0.0010699001426533524, + "mean_prediction": 0.002047182297032688, + "calibration_in_the_large": 0.0009772821543793358, + "expected_calibration_error_10bin": 0.0009772821543793358, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6675435046539863, + "auprc": 0.009613214359595003, + "brier": 0.0024890614828527737, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0023215240539901454, + "calibration_in_the_large": -0.00015110046031575376, + "expected_calibration_error_10bin": 0.0003929167884021891, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.703670942061035, + "auprc": 0.08498658540464252, + "brier": 0.0067478886496293855, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.004372332152894775, + "calibration_in_the_large": -0.002521717193984761, + "expected_calibration_error_10bin": 0.002521717193984761, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8843151171043293, + "auprc": 0.03031553656859761, + "brier": 0.0027986750397052135, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0015466258494630978, + "calibration_in_the_large": -0.0012842304845779497, + "expected_calibration_error_10bin": 0.0012842304845779497, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 89, + "negatives": 2203, + "auroc": 0.822922776397864, + "auprc": 0.16597918522551777, + "brier": 0.03500738977047456, + "calibration": { + "observed_rate": 0.03883071553228621, + "mean_prediction": 0.03241928765096124, + "calibration_in_the_large": -0.006411427881324969, + "expected_calibration_error_10bin": 0.012129648784312148, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 45, + "negatives": 2395, + "auroc": 0.8710183252145673, + "auprc": 0.24097306283336617, + "brier": 0.016214962082923032, + "calibration": { + "observed_rate": 0.018442622950819672, + "mean_prediction": 0.010306959198507803, + "calibration_in_the_large": -0.008135663752311869, + "expected_calibration_error_10bin": 0.00814087156158032, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8095067905646891, + "auprc": 0.012748351128826468, + "brier": 0.002841066368007248, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.001485302569535692, + "calibration_in_the_large": -0.001365730930107929, + "expected_calibration_error_10bin": 0.001365730930107929, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9248785916632942, + "auprc": 0.05564251610373323, + "brier": 0.002443932527434822, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0012887800009527273, + "calibration_in_the_large": -0.001183844513353172, + "expected_calibration_error_10bin": 0.0012812213226299936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 7, + "negatives": 2782, + "auroc": 0.8108760398480025, + "auprc": 0.018685295653798024, + "brier": 0.002499039870074219, + "calibration": { + "observed_rate": 0.002509860164933668, + "mean_prediction": 0.004058204442854118, + "calibration_in_the_large": 0.0015483442779204502, + "expected_calibration_error_10bin": 0.0015483442779204502, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6957431713373536, + "auprc": 0.012989265126415291, + "brier": 0.0035712895945479205, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.004092093143082757, + "calibration_in_the_large": 0.0005572751862075362, + "expected_calibration_error_10bin": 0.0005572751862075359, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8600477042337508, + "auprc": 0.14523988267133256, + "brier": 0.004183760952395755, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.003031203074576903, + "calibration_in_the_large": -0.0012438236443400902, + "expected_calibration_error_10bin": 0.0012438236443400902, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 78, + "negatives": 2442, + "auroc": 0.7605630105630106, + "auprc": 0.08311227433277428, + "brier": 0.029415908627683514, + "calibration": { + "observed_rate": 0.030952380952380953, + "mean_prediction": 0.028664644532684525, + "calibration_in_the_large": -0.002287736419696429, + "expected_calibration_error_10bin": 0.006828301148567651, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 21, + "negatives": 2585, + "auroc": 0.8133370175923368, + "auprc": 0.044254027744514715, + "brier": 0.007927498295012497, + "calibration": { + "observed_rate": 0.008058326937835763, + "mean_prediction": 0.007235434270985917, + "calibration_in_the_large": -0.0008228926668498466, + "expected_calibration_error_10bin": 0.0018889375032399847, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.974929178470255, + "auprc": 0.17350948509485095, + "brier": 0.0016995397266489289, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0012039894089548124, + "calibration_in_the_large": -0.0005634195694827981, + "expected_calibration_error_10bin": 0.0005634195694827981, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 5, + "negatives": 2794, + "auroc": 0.7554044380816034, + "auprc": 0.0047459453280165285, + "brier": 0.0017887071997692388, + "calibration": { + "observed_rate": 0.0017863522686673813, + "mean_prediction": 0.001536085088994762, + "calibration_in_the_large": -0.0002502671796726192, + "expected_calibration_error_10bin": 0.0002502671796726192, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9963463646328097, + "auprc": 0.32287080313396105, + "brier": 0.0018855283945997021, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012117373517411992, + "calibration_in_the_large": -0.0009756487219007987, + "expected_calibration_error_10bin": 0.0015067695445764363, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8724046810117025, + "auprc": 0.05979756881655615, + "brier": 0.001180539676128311, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0008023649661945449, + "calibration_in_the_large": -0.00032885675326246877, + "expected_calibration_error_10bin": 0.0006389984195252263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6413727585797411, + "auprc": 0.0029603025337130453, + "brier": 0.001068205871889992, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0013495119161635813, + "calibration_in_the_large": 0.00028189625780059187, + "expected_calibration_error_10bin": 0.00028189625780059187, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 0, + "negatives": 2828, + "auroc": null, + "auprc": null, + "brier": 4.141326353232405e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002982662526304113, + "calibration_in_the_large": 0.002982662526304113, + "expected_calibration_error_10bin": 0.002982662526304113, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "300": { + "A04": { + "valid": 2782, + "positives": 26, + "negatives": 2756, + "auroc": 0.7982443898626772, + "auprc": 0.07641438510689487, + "brier": 0.009182852679046977, + "calibration": { + "observed_rate": 0.009345794392523364, + "mean_prediction": 0.008719875246740965, + "calibration_in_the_large": -0.0006259191457823991, + "expected_calibration_error_10bin": 0.002979275409130276, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8460018784208311, + "auprc": 0.12994425451215205, + "brier": 0.0037788074797127143, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.005079250401419475, + "calibration_in_the_large": 0.0011757727577005259, + "expected_calibration_error_10bin": 0.001701307090472044, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 66, + "negatives": 2598, + "auroc": 0.7525660764690788, + "auprc": 0.07233316957463144, + "brier": 0.024214392020063, + "calibration": { + "observed_rate": 0.024774774774774775, + "mean_prediction": 0.024161574707310198, + "calibration_in_the_large": -0.0006132000674645768, + "expected_calibration_error_10bin": 0.009144033476282806, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7480461811722913, + "auprc": 0.016012769940043386, + "brier": 0.001545921183411423, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0024415159517655383, + "calibration_in_the_large": 0.0010225730642167623, + "expected_calibration_error_10bin": 0.0010225730642167618, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.6116024053767244, + "auprc": 0.0009099181073703367, + "brier": 0.0003600913821864779, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0010506880996302564, + "calibration_in_the_large": 0.0006970813103799028, + "expected_calibration_error_10bin": 0.0006970813103799028, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9284942084942085, + "auprc": 0.09103709402182832, + "brier": 0.002428490478752181, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.002503702337263773, + "calibration_in_the_large": -1.2473076107902357e-05, + "expected_calibration_error_10bin": 0.00026827569694492387, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8826099995715694, + "auprc": 0.09343161629711266, + "brier": 0.005975920516795996, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002120899957464458, + "calibration_in_the_large": -0.0040318325796329, + "expected_calibration_error_10bin": 0.004031832579632901, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9915014164305949, + "auprc": 0.27816091954022987, + "brier": 0.0017294850248167743, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003073715240818946, + "calibration_in_the_large": -0.0014600374543557158, + "expected_calibration_error_10bin": 0.0015494323594264956, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.08298470125918252, + "brier": 0.0017074189128810713, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0016317945737292917, + "calibration_in_the_large": -0.00013436579363206459, + "expected_calibration_error_10bin": 0.00032046664316972716, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8985532815808045, + "auprc": 0.006541137326073805, + "brier": 0.0007140086876278808, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.001989953931035598, + "calibration_in_the_large": 0.0012847353132640889, + "expected_calibration_error_10bin": 0.0012847353132640889, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 35, + "negatives": 2733, + "auroc": 0.7599811823741571, + "auprc": 0.04281557288873966, + "brier": 0.012477244445730654, + "calibration": { + "observed_rate": 0.012644508670520232, + "mean_prediction": 0.01073284010779736, + "calibration_in_the_large": -0.0019116685627228718, + "expected_calibration_error_10bin": 0.004269812496572399, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7313980137509549, + "auprc": 0.0503468518362755, + "brier": 0.022098528387562943, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.020650692640188987, + "calibration_in_the_large": -0.0017540870461440969, + "expected_calibration_error_10bin": 0.007451348529800913, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 77, + "negatives": 2553, + "auroc": 0.7601497601497601, + "auprc": 0.08070296728556028, + "brier": 0.027981112669317198, + "calibration": { + "observed_rate": 0.029277566539923954, + "mean_prediction": 0.024917381569369564, + "calibration_in_the_large": -0.00436018497055439, + "expected_calibration_error_10bin": 0.008546082008791159, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8862349610757254, + "auprc": 0.020134027403817388, + "brier": 0.0007244446762301286, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.001263354548937162, + "calibration_in_the_large": 0.0005561409704364547, + "expected_calibration_error_10bin": 0.0005561409704364547, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.978206945428774, + "auprc": 0.023558758314855877, + "brier": 0.0007026075670390998, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0007513222386826593, + "calibration_in_the_large": 4.31069412322343e-05, + "expected_calibration_error_10bin": 4.31069412322343e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 6, + "negatives": 2806, + "auroc": 0.9233190781658351, + "auprc": 0.03305913294683379, + "brier": 0.002129244074630361, + "calibration": { + "observed_rate": 0.0021337126600284497, + "mean_prediction": 0.0008517049819197775, + "calibration_in_the_large": -0.0012820076781086722, + "expected_calibration_error_10bin": 0.0014557847126016263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.95272036113091, + "auprc": 0.17861365953109068, + "brier": 0.0010045507491441255, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0009131440858042555, + "calibration_in_the_large": -0.0001548516422128325, + "expected_calibration_error_10bin": 0.0004508897588266903, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9598644309668213, + "auprc": 0.026617179215270414, + "brier": 0.0007099765211635586, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.001467577161434721, + "calibration_in_the_large": 0.0007545646837163609, + "expected_calibration_error_10bin": 0.0007545646837163609, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9908029713477184, + "auprc": 0.05572755417956656, + "brier": 0.000698506846529592, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0008182100494195122, + "calibration_in_the_large": 0.00011124645804446798, + "expected_calibration_error_10bin": 0.00011124645804446798, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 20, + "negatives": 2742, + "auroc": 0.8992341356673961, + "auprc": 0.11625015505178034, + "brier": 0.0069056435931877545, + "calibration": { + "observed_rate": 0.00724112961622013, + "mean_prediction": 0.0047636342015239894, + "calibration_in_the_large": -0.002477495414696141, + "expected_calibration_error_10bin": 0.0038293340831281773, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 32, + "negatives": 2730, + "auroc": 0.8979395604395605, + "auprc": 0.14380181817560012, + "brier": 0.010822258665598251, + "calibration": { + "observed_rate": 0.011585807385952208, + "mean_prediction": 0.008430544746129432, + "calibration_in_the_large": -0.0031552626398227753, + "expected_calibration_error_10bin": 0.007318782693056849, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 25, + "negatives": 2726, + "auroc": 0.9023330887747616, + "auprc": 0.1748400362484222, + "brier": 0.009132495579672693, + "calibration": { + "observed_rate": 0.009087604507451835, + "mean_prediction": 0.011140774318366487, + "calibration_in_the_large": 0.002053169810914652, + "expected_calibration_error_10bin": 0.006736753933952606, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5241305890702626, + "auprc": 0.001170974470317017, + "brier": 0.0007824008924183373, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0009503275467136035, + "calibration_in_the_large": 0.00024110768855757506, + "expected_calibration_error_10bin": 0.0003045464085784556, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9585275487032389, + "auprc": 0.3917624521072796, + "brier": 0.0010493853259998852, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0008289453606489574, + "calibration_in_the_large": -0.00024555320668628617, + "expected_calibration_error_10bin": 0.00024555320668628617, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6480976310122039, + "auprc": 0.006040860240454503, + "brier": 0.003684697524841161, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.005304208266564447, + "calibration_in_the_large": 0.0017276703552625873, + "expected_calibration_error_10bin": 0.0017276703552625873, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 52, + "negatives": 2611, + "auroc": 0.7906195680994609, + "auprc": 0.11005289782885358, + "brier": 0.018337819440542736, + "calibration": { + "observed_rate": 0.01952684941794968, + "mean_prediction": 0.016184694754939492, + "calibration_in_the_large": -0.0033421546630101884, + "expected_calibration_error_10bin": 0.0033421546630101875, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 16, + "negatives": 2789, + "auroc": 0.8270661527429186, + "auprc": 0.02933315974059937, + "brier": 0.0058012355800802105, + "calibration": { + "observed_rate": 0.00570409982174688, + "mean_prediction": 0.006816739582892181, + "calibration_in_the_large": 0.0011126397611453008, + "expected_calibration_error_10bin": 0.0011491313438322165, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.0006920750313536983, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0008517454227899339, + "calibration_in_the_large": 0.00014652680501842476, + "expected_calibration_error_10bin": 0.00014652680501842476, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 35, + "negatives": 2738, + "auroc": 0.89293540644892, + "auprc": 0.2345923415063529, + "brier": 0.010845792753570237, + "calibration": { + "observed_rate": 0.012621709340064912, + "mean_prediction": 0.011243009252884796, + "calibration_in_the_large": -0.0013787000871801156, + "expected_calibration_error_10bin": 0.0024554740085565106, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 69, + "negatives": 2430, + "auroc": 0.7884415816782967, + "auprc": 0.10235623795602465, + "brier": 0.025880784099522998, + "calibration": { + "observed_rate": 0.027611044417767107, + "mean_prediction": 0.024767581985204245, + "calibration_in_the_large": -0.002843462432562862, + "expected_calibration_error_10bin": 0.003360938986859508, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 74, + "negatives": 2612, + "auroc": 0.8413403832622822, + "auprc": 0.12733459256537905, + "brier": 0.026385416045011715, + "calibration": { + "observed_rate": 0.027550260610573342, + "mean_prediction": 0.02354707127612033, + "calibration_in_the_large": -0.004003189334453011, + "expected_calibration_error_10bin": 0.012380669734833868, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 116, + "negatives": 2318, + "auroc": 0.819292791050549, + "auprc": 0.19978443239165328, + "brier": 0.04172126961560772, + "calibration": { + "observed_rate": 0.047658175842235, + "mean_prediction": 0.04298498768159689, + "calibration_in_the_large": -0.004673188160638109, + "expected_calibration_error_10bin": 0.005104987899870012, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9603216684340756, + "auprc": 0.024362571950816793, + "brier": 0.0014029660840146215, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0011434013038991854, + "calibration_in_the_large": -0.0002685295114908605, + "expected_calibration_error_10bin": 0.0002685295114908605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 57, + "negatives": 2625, + "auroc": 0.8182456140350877, + "auprc": 0.1376948189299664, + "brier": 0.019810553834402795, + "calibration": { + "observed_rate": 0.021252796420581657, + "mean_prediction": 0.012481946074739353, + "calibration_in_the_large": -0.008770850345842305, + "expected_calibration_error_10bin": 0.010842305322426948, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 81, + "negatives": 2505, + "auroc": 0.8370074665483848, + "auprc": 0.25124313550471583, + "brier": 0.026977567502215995, + "calibration": { + "observed_rate": 0.031322505800464036, + "mean_prediction": 0.018357473951793893, + "calibration_in_the_large": -0.012965031848670143, + "expected_calibration_error_10bin": 0.014760031350030503, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8930014208898671, + "auprc": 0.21426600765665693, + "brier": 0.009616826565990916, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.010837250306891063, + "calibration_in_the_large": 0.0015082226786169335, + "expected_calibration_error_10bin": 0.007480283084735348, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 60, + "negatives": 2535, + "auroc": 0.7197961867192636, + "auprc": 0.06100393494075676, + "brier": 0.022363571112060873, + "calibration": { + "observed_rate": 0.023121387283236993, + "mean_prediction": 0.021937812896317986, + "calibration_in_the_large": -0.001183574386919007, + "expected_calibration_error_10bin": 0.004418253307212825, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8135412974122651, + "auprc": 0.030344290212711265, + "brier": 0.0010790808570350604, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014746780182581904, + "calibration_in_the_large": 0.0004123550720825529, + "expected_calibration_error_10bin": 0.00041235507208255313, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8686770428015564, + "auprc": 0.010822045165089063, + "brier": 0.0014173865536529374, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0017098831890958802, + "calibration_in_the_large": 0.0002969548952067951, + "expected_calibration_error_10bin": 0.0002969548952067951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9869662656286861, + "auprc": 0.09584048673232733, + "brier": 0.0020871646831931608, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0018293261456363526, + "calibration_in_the_large": -0.00028931792216025753, + "expected_calibration_error_10bin": 0.001503449203613595, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7298059964726631, + "auprc": 0.007928505051703344, + "brier": 0.0011729460079312783, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0021667567302214065, + "calibration_in_the_large": 0.0014617866914480543, + "expected_calibration_error_10bin": 0.001863410454362239, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 23, + "negatives": 2457, + "auroc": 0.7648953301127214, + "auprc": 0.02874823808852411, + "brier": 0.00914176355134964, + "calibration": { + "observed_rate": 0.009274193548387096, + "mean_prediction": 0.005433697250842787, + "calibration_in_the_large": -0.003840496297544309, + "expected_calibration_error_10bin": 0.003840496297544309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7243783712669386, + "auprc": 0.009726857293219168, + "brier": 0.003952911213984702, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.002528337321898623, + "calibration_in_the_large": -0.0014356266420653412, + "expected_calibration_error_10bin": 0.0014356266420653412, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.47778372591006424, + "auprc": 0.0028203095628040672, + "brier": 0.0014264536080450196, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.001276289479579634, + "calibration_in_the_large": -0.00014922727024217655, + "expected_calibration_error_10bin": 0.00014922727024217655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 20, + "negatives": 2174, + "auroc": 0.796803127874885, + "auprc": 0.059213995321471945, + "brier": 0.008871553772924177, + "calibration": { + "observed_rate": 0.009115770282588878, + "mean_prediction": 0.007588257417552806, + "calibration_in_the_large": -0.0015275128650360723, + "expected_calibration_error_10bin": 0.0017283896460789318, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.652744119743407, + "auprc": 0.008227184695182393, + "brier": 0.0035515024436824708, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.002949492785748217, + "calibration_in_the_large": -0.0006016435778881464, + "expected_calibration_error_10bin": 0.0006016435778881464, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 3, + "negatives": 2811, + "auroc": 0.9620538361200047, + "auprc": 0.031477591036414565, + "brier": 0.001055819028272441, + "calibration": { + "observed_rate": 0.0010660980810234541, + "mean_prediction": 0.0015946295096455206, + "calibration_in_the_large": 0.0005285314286220665, + "expected_calibration_error_10bin": 0.0005285314286220665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7896328121892031, + "auprc": 0.013982947523199849, + "brier": 0.0032918811930794886, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.005886940307278385, + "calibration_in_the_large": 0.002674948872588878, + "expected_calibration_error_10bin": 0.0026749488725888774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.80239921512665, + "auprc": 0.010225277744327329, + "brier": 0.00288837768822292, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0029719275178763586, + "calibration_in_the_large": 0.00012596522687671448, + "expected_calibration_error_10bin": 0.00019545884733188215, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 37, + "negatives": 2711, + "auroc": 0.8189956832524151, + "auprc": 0.07126318331698996, + "brier": 0.013476632878485896, + "calibration": { + "observed_rate": 0.013464337700145561, + "mean_prediction": 0.01590249489311141, + "calibration_in_the_large": 0.0024381571929658497, + "expected_calibration_error_10bin": 0.005524015156414937, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 21, + "negatives": 2779, + "auroc": 0.7866652958412584, + "auprc": 0.028308116587066535, + "brier": 0.007608772481662413, + "calibration": { + "observed_rate": 0.0075, + "mean_prediction": 0.01003316460410068, + "calibration_in_the_large": 0.00253316460410068, + "expected_calibration_error_10bin": 0.002533164604100681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 37, + "negatives": 2735, + "auroc": 0.8276298236078857, + "auprc": 0.09546150632187261, + "brier": 0.012929463767498775, + "calibration": { + "observed_rate": 0.013347763347763348, + "mean_prediction": 0.01417379214687022, + "calibration_in_the_large": 0.0008260287991068722, + "expected_calibration_error_10bin": 0.003966345666910854, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 7, + "negatives": 2797, + "auroc": 0.737167373205986, + "auprc": 0.0063707280071928956, + "brier": 0.0025083367514238952, + "calibration": { + "observed_rate": 0.0024964336661911554, + "mean_prediction": 0.0027332212051606438, + "calibration_in_the_large": 0.00023678753896948842, + "expected_calibration_error_10bin": 0.00023678753896948842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 27, + "negatives": 2710, + "auroc": 0.6454147874812082, + "auprc": 0.02434668758124259, + "brier": 0.009780368899840743, + "calibration": { + "observed_rate": 0.009864815491413957, + "mean_prediction": 0.008778320412345428, + "calibration_in_the_large": -0.0010864950790685293, + "expected_calibration_error_10bin": 0.001632086821119277, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 39, + "negatives": 2332, + "auroc": 0.7635681928134759, + "auprc": 0.052227514211457673, + "brier": 0.01599938188473256, + "calibration": { + "observed_rate": 0.016448755799240825, + "mean_prediction": 0.01609569196760158, + "calibration_in_the_large": -0.00035306383163924426, + "expected_calibration_error_10bin": 0.0019940252793706923, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 47, + "negatives": 1525, + "auroc": 0.7651761423090339, + "auprc": 0.13021263719491827, + "brier": 0.027841370193694648, + "calibration": { + "observed_rate": 0.02989821882951654, + "mean_prediction": 0.026214423580942923, + "calibration_in_the_large": -0.0036837952485736167, + "expected_calibration_error_10bin": 0.009892972135428809, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.842380275974026, + "auprc": 0.01687244441118906, + "brier": 0.0025894906548199976, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.002964804917733057, + "calibration_in_the_large": 0.0004851733201418416, + "expected_calibration_error_10bin": 0.0005650573114820835, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 78, + "negatives": 2575, + "auroc": 0.8037391087876524, + "auprc": 0.20029126664178049, + "brier": 0.02606795307560657, + "calibration": { + "observed_rate": 0.029400678477195626, + "mean_prediction": 0.02305943513440219, + "calibration_in_the_large": -0.006341243342793436, + "expected_calibration_error_10bin": 0.0074432480414975445, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 87, + "negatives": 2500, + "auroc": 0.7967356321839081, + "auprc": 0.10767103879078688, + "brier": 0.031362650698261746, + "calibration": { + "observed_rate": 0.03362968689601856, + "mean_prediction": 0.033594532164019274, + "calibration_in_the_large": -3.515473199928315e-05, + "expected_calibration_error_10bin": 0.0037301511483146003, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 147, + "negatives": 2038, + "auroc": 0.7930277115753073, + "auprc": 0.23848511881845927, + "brier": 0.05798488071906022, + "calibration": { + "observed_rate": 0.06727688787185354, + "mean_prediction": 0.04203937614008409, + "calibration_in_the_large": -0.025237511731769448, + "expected_calibration_error_10bin": 0.02788161420150398, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 13, + "negatives": 2804, + "auroc": 0.7891473718863162, + "auprc": 0.06672917920362055, + "brier": 0.004516050381165734, + "calibration": { + "observed_rate": 0.004614838480653177, + "mean_prediction": 0.0047874521005582035, + "calibration_in_the_large": 0.00017261361990502603, + "expected_calibration_error_10bin": 0.00018258988120271804, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5905934343434344, + "auprc": 0.0039050102657268897, + "brier": 0.0028823185625247304, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.002593513850748789, + "calibration_in_the_large": -0.00028418399097782966, + "expected_calibration_error_10bin": 0.00028418399097782966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8305932809149392, + "auprc": 0.01209114281939793, + "brier": 0.0014854440773541843, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.0029980267896660626, + "calibration_in_the_large": 0.0015704750409151703, + "expected_calibration_error_10bin": 0.0015704750409151701, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 14, + "negatives": 2725, + "auroc": 0.8595019659239843, + "auprc": 0.02220104127749867, + "brier": 0.0052489916199075165, + "calibration": { + "observed_rate": 0.00511135450894487, + "mean_prediction": 0.007384420109335247, + "calibration_in_the_large": 0.0022730656003903766, + "expected_calibration_error_10bin": 0.002273065600390376, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 29, + "negatives": 2721, + "auroc": 0.7138729422499335, + "auprc": 0.021925319035750113, + "brier": 0.010647109832880449, + "calibration": { + "observed_rate": 0.010545454545454545, + "mean_prediction": 0.012290060383813067, + "calibration_in_the_large": 0.0017446058383585213, + "expected_calibration_error_10bin": 0.0017446058383585217, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46496815286624205, + "auprc": 0.001144023574191172, + "brier": 0.0007289862757992735, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0024876402059815406, + "calibration_in_the_large": 0.0017804266274808332, + "expected_calibration_error_10bin": 0.0017804266274808332, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8262358030117277, + "auprc": 0.10027493273609565, + "brier": 0.006394064987497132, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.007334783587492666, + "calibration_in_the_large": 0.0006941585874926659, + "expected_calibration_error_10bin": 0.001283396380375734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8723910655437569, + "auprc": 0.033405238210928875, + "brier": 0.003814167505774874, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.005310248296008899, + "calibration_in_the_large": 0.0016619447571544661, + "expected_calibration_error_10bin": 0.0016619447571544661, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9215792646172393, + "auprc": 0.035446129128236435, + "brier": 0.004258063039117359, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.004289918074669008, + "calibration_in_the_large": -3.129186411385092e-05, + "expected_calibration_error_10bin": 0.00014941747382665423, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9455887648541592, + "auprc": 0.042340426833649435, + "brier": 0.0035490872191982735, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0018853755620006456, + "calibration_in_the_large": -0.0017027119873355583, + "expected_calibration_error_10bin": 0.0020424987336518444, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9348006153117974, + "auprc": 0.02510074738668945, + "brier": 0.002108759577312354, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.000963636413564074, + "calibration_in_the_large": -0.0011617620986569674, + "expected_calibration_error_10bin": 0.0011617620986569674, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8632121465385151, + "auprc": 0.10821431182672209, + "brier": 0.012756460293652037, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.012751488581896541, + "calibration_in_the_large": -0.0008511495054901036, + "expected_calibration_error_10bin": 0.00143158269344264, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9413971967773976, + "auprc": 0.15083116582740447, + "brier": 0.004425668208450522, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0024961572563350475, + "calibration_in_the_large": -0.002145042315246531, + "expected_calibration_error_10bin": 0.002230137021486677, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7478601997146933, + "auprc": 0.014586324027413064, + "brier": 0.0014188800337313426, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001269567118346422, + "calibration_in_the_large": -0.00015493430615500263, + "expected_calibration_error_10bin": 0.00015493430615500263, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6358156028368794, + "auprc": 0.0009727626459143969, + "brier": 0.00036352476604412125, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0015383040991135569, + "calibration_in_the_large": 0.0011838198736615895, + "expected_calibration_error_10bin": 0.0011838198736615895, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9244791666666666, + "auprc": 0.010743575275985686, + "brier": 0.001065336250684586, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0014556588675111724, + "calibration_in_the_large": 0.0003914517018495903, + "expected_calibration_error_10bin": 0.0003914517018495903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7274392423159399, + "auprc": 0.0178635569352006, + "brier": 0.00283665570748905, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0010463517548087967, + "calibration_in_the_large": -0.0018046817448348243, + "expected_calibration_error_10bin": 0.0018046817448348243, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.879926335174954, + "auprc": 0.023412495763609337, + "brier": 0.003267061909192531, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.0038129125111031627, + "calibration_in_the_large": 0.0005089477533939115, + "expected_calibration_error_10bin": 0.0005089477533939115, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 66, + "negatives": 2134, + "auroc": 0.7024367385192127, + "auprc": 0.07121029045266068, + "brier": 0.029309375312743177, + "calibration": { + "observed_rate": 0.03, + "mean_prediction": 0.032885743099905086, + "calibration_in_the_large": 0.0028857430999050873, + "expected_calibration_error_10bin": 0.0068962322330811425, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8140841702534672, + "auprc": 0.023882100858719016, + "brier": 0.0042605139877093, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004044411283357477, + "calibration_in_the_large": -0.0002413030023568092, + "expected_calibration_error_10bin": 0.0004048188990262646, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7152166829586184, + "auprc": 0.013195697738712124, + "brier": 0.00391774714558913, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0036947570636965267, + "calibration_in_the_large": -0.00023241180456480852, + "expected_calibration_error_10bin": 0.00023241180456480852, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.724101854807249, + "auprc": 0.10453918310230015, + "brier": 0.032635227484699984, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.03706543497348716, + "calibration_in_the_large": 0.0023524843726860922, + "expected_calibration_error_10bin": 0.0024861535785863135, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7344509948415623, + "auprc": 0.03836958762375593, + "brier": 0.007272980541709311, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.009800310399446836, + "calibration_in_the_large": 0.002485021445533157, + "expected_calibration_error_10bin": 0.002485021445533157, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9491465149359887, + "auprc": 0.06748368706049808, + "brier": 0.0020968148155241836, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0035052062795763255, + "calibration_in_the_large": 0.0013760366557296257, + "expected_calibration_error_10bin": 0.0013760366557296257, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.926273942898446, + "auprc": 0.025767789334677837, + "brier": 0.002853103270164655, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.00154277554158447, + "calibration_in_the_large": -0.001340107341298413, + "expected_calibration_error_10bin": 0.001340107341298413, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6360789980732178, + "auprc": 0.003849567264223646, + "brier": 0.0022220967752089927, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003943400615295791, + "calibration_in_the_large": 0.0017804590147190071, + "expected_calibration_error_10bin": 0.001780459014719007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8154527559055118, + "auprc": 0.009306743938780698, + "brier": 0.002879585795512455, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0036689180394695775, + "calibration_in_the_large": 0.0008138145419677931, + "expected_calibration_error_10bin": 0.0008138145419677931, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7786062739286156, + "auprc": 0.04743813214945894, + "brier": 0.008660949069180654, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006361075463401692, + "calibration_in_the_large": -0.002452732836267791, + "expected_calibration_error_10bin": 0.0028596333890727596, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7868880688806889, + "auprc": 0.022159001601491958, + "brier": 0.00545173776157223, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.00378492547897622, + "calibration_in_the_large": -0.001719661676987083, + "expected_calibration_error_10bin": 0.001719661676987083, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.566680281833963, + "auprc": 0.005056687762595874, + "brier": 0.002524667483185932, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0019238172085752272, + "calibration_in_the_large": -0.0005717264634390333, + "expected_calibration_error_10bin": 0.0005717264634390333, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 84, + "negatives": 2231, + "auroc": 0.7043606326439137, + "auprc": 0.08627365508071551, + "brier": 0.034443064196331266, + "calibration": { + "observed_rate": 0.03628509719222462, + "mean_prediction": 0.027055352272254116, + "calibration_in_the_large": -0.009229744919970504, + "expected_calibration_error_10bin": 0.011195596374159466, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.4876369577597927e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000565415749045025, + "calibration_in_the_large": 0.000565415749045025, + "expected_calibration_error_10bin": 0.000565415749045025, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 34, + "negatives": 2717, + "auroc": 0.876063564918054, + "auprc": 0.11157325860130296, + "brier": 0.011695615584158875, + "calibration": { + "observed_rate": 0.012359142130134497, + "mean_prediction": 0.008384736259619607, + "calibration_in_the_large": -0.00397440587051489, + "expected_calibration_error_10bin": 0.004956135568886706, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7575289575289575, + "auprc": 0.039780044149048725, + "brier": 0.004945743939691917, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0029309067633932827, + "calibration_in_the_large": -0.002088813566474053, + "expected_calibration_error_10bin": 0.002088813566474053, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7408720311946119, + "auprc": 0.007193801375509374, + "brier": 0.0010650077329089841, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0012996651007011245, + "calibration_in_the_large": 0.000237342154525487, + "expected_calibration_error_10bin": 0.000237342154525487, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 61, + "negatives": 2476, + "auroc": 0.7764307847135782, + "auprc": 0.10923658628601655, + "brier": 0.02283701431593366, + "calibration": { + "observed_rate": 0.02404414662987781, + "mean_prediction": 0.030162793185604938, + "calibration_in_the_large": 0.006118646555727129, + "expected_calibration_error_10bin": 0.0061186465557271285, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.1032446433688202e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0019888385617520135, + "calibration_in_the_large": 0.0019888385617520135, + "expected_calibration_error_10bin": 0.0019888385617520135, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 42, + "negatives": 2691, + "auroc": 0.7528888181062094, + "auprc": 0.05493728770439009, + "brier": 0.01524129417463806, + "calibration": { + "observed_rate": 0.015367727771679473, + "mean_prediction": 0.015769839003507414, + "calibration_in_the_large": 0.00040211123182794066, + "expected_calibration_error_10bin": 0.005188459098835489, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 47, + "negatives": 2609, + "auroc": 0.8008856413560262, + "auprc": 0.0647513486967579, + "brier": 0.017036749069943593, + "calibration": { + "observed_rate": 0.017695783132530122, + "mean_prediction": 0.013876448750023477, + "calibration_in_the_large": -0.003819334382506645, + "expected_calibration_error_10bin": 0.003999857372302513, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9345070422535211, + "auprc": 0.0053475935828877, + "brier": 0.00035189285761980294, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.00039122847292973045, + "calibration_in_the_large": 3.9239736569293996e-05, + "expected_calibration_error_10bin": 3.9239736569293996e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 5, + "negatives": 2827, + "auroc": 0.8207286876547577, + "auprc": 0.006812997357099243, + "brier": 0.0017625857035916915, + "calibration": { + "observed_rate": 0.0017655367231638418, + "mean_prediction": 0.0009052234649893993, + "calibration_in_the_large": -0.0008603132581744425, + "expected_calibration_error_10bin": 0.0008603132581744425, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.0529948111954547e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015943636885855817, + "calibration_in_the_large": 0.0015943636885855817, + "expected_calibration_error_10bin": 0.0015943636885855817, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6561904761904762, + "auprc": 0.011417065855644386, + "brier": 0.002129625412530375, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.001046156675515305, + "calibration_in_the_large": -0.0010921184492174107, + "expected_calibration_error_10bin": 0.0010921184492174107, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 9, + "negatives": 2741, + "auroc": 0.7830475495561231, + "auprc": 0.019574196136748028, + "brier": 0.0032573291550138423, + "calibration": { + "observed_rate": 0.0032727272727272726, + "mean_prediction": 0.004061964019204176, + "calibration_in_the_large": 0.0007892367464769033, + "expected_calibration_error_10bin": 0.0007892367464769033, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 12, + "negatives": 2778, + "auroc": 0.6029217662586993, + "auprc": 0.01301736363163753, + "brier": 0.004296984096069638, + "calibration": { + "observed_rate": 0.004301075268817204, + "mean_prediction": 0.004404813541242549, + "calibration_in_the_large": 0.00010373827242534436, + "expected_calibration_error_10bin": 0.00010373827242534487, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 3, + "negatives": 2806, + "auroc": 0.482656212877168, + "auprc": 0.0013945658788639796, + "brier": 0.0010866767720119023, + "calibration": { + "observed_rate": 0.001067995728017088, + "mean_prediction": 0.0023237438528150153, + "calibration_in_the_large": 0.0012557481247979273, + "expected_calibration_error_10bin": 0.0012557481247979273, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8324096880131363, + "auprc": 0.009481735991298215, + "brier": 0.0024995512084502575, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.002230898669379698, + "calibration_in_the_large": -0.0002771629572774141, + "expected_calibration_error_10bin": 0.0002771629572774141, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.899124363980594, + "auprc": 0.014810176995500171, + "brier": 0.002125997336743147, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0015326432568353256, + "calibration_in_the_large": -0.0005927552553857158, + "expected_calibration_error_10bin": 0.0005927552553857158, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 12, + "negatives": 2755, + "auroc": 0.8766787658802178, + "auprc": 0.03437923278561426, + "brier": 0.004618150640341905, + "calibration": { + "observed_rate": 0.0043368268883267076, + "mean_prediction": 0.008711046521528406, + "calibration_in_the_large": 0.004374219633201698, + "expected_calibration_error_10bin": 0.004374219633201699, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.7050068587105625, + "auprc": 0.07246445436410259, + "brier": 0.025878086377648386, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.017572369564858355, + "calibration_in_the_large": -0.009129900128065544, + "expected_calibration_error_10bin": 0.012173666829796311, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 48, + "negatives": 2628, + "auroc": 0.8188974505327246, + "auprc": 0.06757561652860351, + "brier": 0.017296258901275174, + "calibration": { + "observed_rate": 0.017937219730941704, + "mean_prediction": 0.01157197211681221, + "calibration_in_the_large": -0.006365247614129493, + "expected_calibration_error_10bin": 0.008511393614006577, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 28, + "negatives": 2524, + "auroc": 0.8572985057731491, + "auprc": 0.11461797188875755, + "brier": 0.010499418880361138, + "calibration": { + "observed_rate": 0.0109717868338558, + "mean_prediction": 0.007560436577818662, + "calibration_in_the_large": -0.0034113502560371373, + "expected_calibration_error_10bin": 0.006046567688355199, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 27, + "negatives": 2700, + "auroc": 0.8921124828532236, + "auprc": 0.12996338895870818, + "brier": 0.00923124100039487, + "calibration": { + "observed_rate": 0.009900990099009901, + "mean_prediction": 0.011759029209004818, + "calibration_in_the_large": 0.0018580391099949165, + "expected_calibration_error_10bin": 0.0018580391099949163, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 11, + "negatives": 2379, + "auroc": 0.9307577668233405, + "auprc": 0.03676840097732481, + "brier": 0.004539904537210627, + "calibration": { + "observed_rate": 0.004602510460251046, + "mean_prediction": 0.0023724541701231907, + "calibration_in_the_large": -0.0022300562901278556, + "expected_calibration_error_10bin": 0.0022300562901278556, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 20, + "negatives": 2651, + "auroc": 0.8263674085250848, + "auprc": 0.03475523500710451, + "brier": 0.00750821831616803, + "calibration": { + "observed_rate": 0.007487832272557095, + "mean_prediction": 0.010975814877628012, + "calibration_in_the_large": 0.0034879826050709176, + "expected_calibration_error_10bin": 0.0034879826050709176, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8877186719028918, + "auprc": 0.01978709545427553, + "brier": 0.0028331417724663296, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0020440087032186256, + "calibration_in_the_large": -0.0008039799048269423, + "expected_calibration_error_10bin": 0.0008039799048269423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 40, + "negatives": 2203, + "auroc": 0.833057194734453, + "auprc": 0.07180636812009203, + "brier": 0.01710021252587673, + "calibration": { + "observed_rate": 0.017833259028087384, + "mean_prediction": 0.013157380930059845, + "calibration_in_the_large": -0.004675878098027539, + "expected_calibration_error_10bin": 0.004910105511293465, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 18, + "negatives": 2742, + "auroc": 0.7457046762298404, + "auprc": 0.06635151294711344, + "brier": 0.006318811761475012, + "calibration": { + "observed_rate": 0.006521739130434782, + "mean_prediction": 0.006229397739627819, + "calibration_in_the_large": -0.00029234139080696296, + "expected_calibration_error_10bin": 0.0002923413908069626, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 34, + "negatives": 2682, + "auroc": 0.8513400886081502, + "auprc": 0.055031705961482935, + "brier": 0.012388031771669071, + "calibration": { + "observed_rate": 0.012518409425625921, + "mean_prediction": 0.011690800756798061, + "calibration_in_the_large": -0.0008276086688278599, + "expected_calibration_error_10bin": 0.0051553981280791986, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.7777277637738567, + "auprc": 0.08356952501976242, + "brier": 0.005596193546298369, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.0041366098210550385, + "calibration_in_the_large": -0.0015919974113115928, + "expected_calibration_error_10bin": 0.0015919974113115928, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.791549867966687, + "auprc": 0.02636247929616291, + "brier": 0.006520607345792323, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.005682817644568554, + "calibration_in_the_large": -0.0008555041861615592, + "expected_calibration_error_10bin": 0.0018495033180920698, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.7256469598148538, + "auprc": 0.009577026287366234, + "brier": 0.0026546055792343445, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.004958324136855066, + "calibration_in_the_large": 0.0023876300494514676, + "expected_calibration_error_10bin": 0.002387630049451467, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9204817917689205, + "auprc": 0.06265327150212693, + "brier": 0.0046026448372031665, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.0046770692161664, + "calibration_in_the_large": -6.74563312788555e-05, + "expected_calibration_error_10bin": 0.00018784405251459082, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.8199816357104885, + "auprc": 0.043590466094046716, + "brier": 0.008326586147904167, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.008630506917365595, + "calibration_in_the_large": 0.00018083755660145036, + "expected_calibration_error_10bin": 0.001103630587817811, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 18, + "negatives": 2748, + "auroc": 0.6807172893417435, + "auprc": 0.015621913142744297, + "brier": 0.006466414056779218, + "calibration": { + "observed_rate": 0.006507592190889371, + "mean_prediction": 0.0063631952481090085, + "calibration_in_the_large": -0.00014439694278036222, + "expected_calibration_error_10bin": 0.00014439694278036222, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.642032060348892, + "auprc": 0.0019131054820900118, + "brier": 0.0010704533022539108, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0017921520740618493, + "calibration_in_the_large": 0.0007324558536450354, + "expected_calibration_error_10bin": 0.0007324558536450354, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.6988510007412898, + "auprc": 0.013195056816373804, + "brier": 0.006639768519687947, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.006845490043377513, + "calibration_in_the_large": 0.00021809681804614307, + "expected_calibration_error_10bin": 0.00021809681804614258, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 30, + "negatives": 2355, + "auroc": 0.748478414720453, + "auprc": 0.0321561235529108, + "brier": 0.012414643473616066, + "calibration": { + "observed_rate": 0.012578616352201259, + "mean_prediction": 0.010698176674550669, + "calibration_in_the_large": -0.0018804396776505895, + "expected_calibration_error_10bin": 0.0030394093473725004, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 17, + "negatives": 2717, + "auroc": 0.6884539608997813, + "auprc": 0.013924242118404217, + "brier": 0.006178304236053267, + "calibration": { + "observed_rate": 0.006217995610826628, + "mean_prediction": 0.003968713054242683, + "calibration_in_the_large": -0.0022492825565839447, + "expected_calibration_error_10bin": 0.0022492825565839447, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 46, + "negatives": 2369, + "auroc": 0.8170389267164645, + "auprc": 0.08347214313202801, + "brier": 0.018732132081666283, + "calibration": { + "observed_rate": 0.01904761904761905, + "mean_prediction": 0.017645503282954934, + "calibration_in_the_large": -0.0014021157646641157, + "expected_calibration_error_10bin": 0.008133513683943812, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 8, + "negatives": 2799, + "auroc": 0.8035459092533047, + "auprc": 0.010155118467027675, + "brier": 0.002839565973570731, + "calibration": { + "observed_rate": 0.0028500178126113287, + "mean_prediction": 0.0022151590788455936, + "calibration_in_the_large": -0.0006348587337657351, + "expected_calibration_error_10bin": 0.0006348587337657351, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8780869720830351, + "auprc": 0.03293280941203696, + "brier": 0.002836026221387925, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0008995391724124878, + "calibration_in_the_large": -0.0019555643250892965, + "expected_calibration_error_10bin": 0.0019555643250892965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 14, + "negatives": 2721, + "auroc": 0.7653436236677692, + "auprc": 0.016490342074085403, + "brier": 0.005104545232778598, + "calibration": { + "observed_rate": 0.005118829981718464, + "mean_prediction": 0.004116617703863115, + "calibration_in_the_large": -0.0010022122778553496, + "expected_calibration_error_10bin": 0.0011177293375267267, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6528179190751445, + "auprc": 0.014702839008392277, + "brier": 0.002163345772607162, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.002823957050808237, + "calibration_in_the_large": 0.0006610154502314529, + "expected_calibration_error_10bin": 0.0006610154502314529, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 3, + "negatives": 2770, + "auroc": 0.6057761732851985, + "auprc": 0.0023054952008351552, + "brier": 0.0011136137648219639, + "calibration": { + "observed_rate": 0.0010818608005769925, + "mean_prediction": 0.0030051274609071443, + "calibration_in_the_large": 0.0019232666603301518, + "expected_calibration_error_10bin": 0.0019232666603301518, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 17, + "negatives": 2735, + "auroc": 0.7844714485428541, + "auprc": 0.047391289499052254, + "brier": 0.006193999363389235, + "calibration": { + "observed_rate": 0.0061773255813953485, + "mean_prediction": 0.006696424933813014, + "calibration_in_the_large": 0.0005190993524176657, + "expected_calibration_error_10bin": 0.0007216826324590886, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.7975111755466957, + "auprc": 0.023900828014375482, + "brier": 0.0042921480079802345, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0033598905371280577, + "calibration_in_the_large": -0.0009706760453331476, + "expected_calibration_error_10bin": 0.0010547267898362283, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7460202604920405, + "auprc": 0.005938509933115395, + "brier": 0.0018135848422442368, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0026865776071960403, + "calibration_in_the_large": 0.0008808715761378966, + "expected_calibration_error_10bin": 0.0008808715761378966, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6428402086296823, + "auprc": 0.010146413852330881, + "brier": 0.0021287366933532836, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0017052666881714864, + "calibration_in_the_large": -0.0004239029356752134, + "expected_calibration_error_10bin": 0.0004239029356752134, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.838582966226138, + "auprc": 0.167768696289552, + "brier": 0.0035198967509080252, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0031260171604097246, + "calibration_in_the_large": -0.0005316273165471151, + "expected_calibration_error_10bin": 0.0005316273165471151, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7600852272727273, + "auprc": 0.011167260473184884, + "brier": 0.001766901483780033, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008028685355657523, + "calibration_in_the_large": -0.0009695525916940846, + "expected_calibration_error_10bin": 0.0009695525916940846, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.616828595418016, + "auprc": 0.005407705216933467, + "brier": 0.0021602578972943856, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002120385142628967, + "calibration_in_the_large": -3.401342110532363e-05, + "expected_calibration_error_10bin": 3.401342110532363e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.827710843373494, + "auprc": 0.11297324344382764, + "brier": 0.0017087989585433238, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0019217289836164222, + "calibration_in_the_large": 0.00015306962740842776, + "expected_calibration_error_10bin": 0.0005352662164846559, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8097941802696949, + "auprc": 0.015311487814807545, + "brier": 0.002981346963445601, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002763519787667369, + "calibration_in_the_large": -6.733654637367838e-05, + "expected_calibration_error_10bin": 0.0017804424053911015, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 32, + "negatives": 2707, + "auroc": 0.7611516438862209, + "auprc": 0.05363040080696914, + "brier": 0.011545404812610073, + "calibration": { + "observed_rate": 0.011683096020445418, + "mean_prediction": 0.009984237457012761, + "calibration_in_the_large": -0.0016988585634326574, + "expected_calibration_error_10bin": 0.005464005289887384, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9930555555555556, + "auprc": 0.305588757144982, + "brier": 0.0027423745173663187, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0022653415934249578, + "calibration_in_the_large": -0.0009569999747812722, + "expected_calibration_error_10bin": 0.0018308391676916775, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7069305829696144, + "auprc": 0.01944185653180954, + "brier": 0.0046787672975238635, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.00556411801968522, + "calibration_in_the_large": 0.0008878590268794652, + "expected_calibration_error_10bin": 0.000887859026879465, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8484225451967388, + "auprc": 0.019554255883612197, + "brier": 0.0017585405176160501, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009127559512033726, + "calibration_in_the_large": -0.0008565292575722819, + "expected_calibration_error_10bin": 0.0008565292575722819, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 93, + "negatives": 2392, + "auroc": 0.7617776099543281, + "auprc": 0.10833435977487768, + "brier": 0.03499788671231431, + "calibration": { + "observed_rate": 0.03742454728370221, + "mean_prediction": 0.02687119977261545, + "calibration_in_the_large": -0.01055334751108676, + "expected_calibration_error_10bin": 0.013438290763684777, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.8358811040339703, + "auprc": 0.037217364786098675, + "brier": 0.0017412370261433404, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.001497703376448531, + "calibration_in_the_large": -0.00026845699091282535, + "expected_calibration_error_10bin": 0.00026845699091282535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7626170092274892, + "auprc": 0.013942592964625843, + "brier": 0.003989590261482183, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0033122369665954175, + "calibration_in_the_large": -0.000702361573550568, + "expected_calibration_error_10bin": 0.000702361573550568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6895147006730429, + "auprc": 0.0016709531149806866, + "brier": 0.0007336384351518931, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.001964060591000124, + "calibration_in_the_large": 0.0012560959892302125, + "expected_calibration_error_10bin": 0.0012560959892302125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 9, + "negatives": 2807, + "auroc": 0.7350275105886078, + "auprc": 0.012783969887438318, + "brier": 0.0033635580816394383, + "calibration": { + "observed_rate": 0.0031960227272727275, + "mean_prediction": 0.004433258054874691, + "calibration_in_the_large": 0.001237235327601964, + "expected_calibration_error_10bin": 0.001237235327601964, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9809052333804809, + "auprc": 0.01818181818181818, + "brier": 0.000505633962514574, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0031507888017863208, + "calibration_in_the_large": 0.0027973070060987987, + "expected_calibration_error_10bin": 0.0027973070060987983, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7858513189448442, + "auprc": 0.01803326398793367, + "brier": 0.005396654234928237, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.005530252257905531, + "calibration_in_the_large": 0.0001635259609466767, + "expected_calibration_error_10bin": 0.0004560324879215992, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 55, + "negatives": 2616, + "auroc": 0.7795663052543786, + "auprc": 0.08362241427269822, + "brier": 0.01965180518698371, + "calibration": { + "observed_rate": 0.02059153874953201, + "mean_prediction": 0.018813089539265936, + "calibration_in_the_large": -0.0017784492102660733, + "expected_calibration_error_10bin": 0.003034952534032083, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6174196174196174, + "auprc": 0.016769071288873366, + "brier": 0.002565290287423698, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.0038247205474584317, + "calibration_in_the_large": 0.0013380420394655365, + "expected_calibration_error_10bin": 0.0013380420394655363, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5063671736823487, + "auprc": 0.0028855050115651503, + "brier": 0.0007413106064380334, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0015153785207137082, + "calibration_in_the_large": 0.000808414929338664, + "expected_calibration_error_10bin": 0.000808414929338664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7429718875502008, + "auprc": 0.006303752786895379, + "brier": 0.001067400596780848, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0017784423096609276, + "calibration_in_the_large": 0.0007164954070060603, + "expected_calibration_error_10bin": 0.0007164954070060603, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 8, + "negatives": 2796, + "auroc": 0.6769045064377682, + "auprc": 0.006954147593685965, + "brier": 0.002851540839282396, + "calibration": { + "observed_rate": 0.0028530670470756064, + "mean_prediction": 0.002382777941968013, + "calibration_in_the_large": -0.00047028910510759324, + "expected_calibration_error_10bin": 0.00047028910510759324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 27, + "negatives": 2543, + "auroc": 0.8310831476383973, + "auprc": 0.04658366892151681, + "brier": 0.010250672044702508, + "calibration": { + "observed_rate": 0.010505836575875487, + "mean_prediction": 0.009241337880051421, + "calibration_in_the_large": -0.001264498695824066, + "expected_calibration_error_10bin": 0.0025328609584255855, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 23, + "negatives": 2495, + "auroc": 0.6899363945281868, + "auprc": 0.04506716566827858, + "brier": 0.008975567927762341, + "calibration": { + "observed_rate": 0.009134233518665607, + "mean_prediction": 0.009187106974203324, + "calibration_in_the_large": 5.287345553771708e-05, + "expected_calibration_error_10bin": 0.00037312631808434764, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8404871703913918, + "auprc": 0.010512476981926255, + "brier": 0.0021178878138326538, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0009732933660552841, + "calibration_in_the_large": -0.0011506004392544504, + "expected_calibration_error_10bin": 0.0011506004392544504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 27, + "negatives": 2750, + "auroc": 0.7791919191919192, + "auprc": 0.02476832021114674, + "brier": 0.009623209550186836, + "calibration": { + "observed_rate": 0.009722722362261434, + "mean_prediction": 0.007982851067052004, + "calibration_in_the_large": -0.0017398712952094303, + "expected_calibration_error_10bin": 0.0019700924273391702, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 20, + "negatives": 2761, + "auroc": 0.7911082940963419, + "auprc": 0.03177068871428539, + "brier": 0.007107231268990418, + "calibration": { + "observed_rate": 0.00719165767709457, + "mean_prediction": 0.0033620457427269487, + "calibration_in_the_large": -0.0038296119343676216, + "expected_calibration_error_10bin": 0.003936956513224111, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9185053380782918, + "auprc": 0.019873592266689714, + "brier": 0.0024631698448886047, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0020528524951323257, + "calibration_in_the_large": -0.0004320605329116928, + "expected_calibration_error_10bin": 0.0004320605329116928, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 36, + "negatives": 2718, + "auroc": 0.7191562423350503, + "auprc": 0.03766027666615302, + "brier": 0.0128658381452926, + "calibration": { + "observed_rate": 0.013071895424836602, + "mean_prediction": 0.008964348249811287, + "calibration_in_the_large": -0.004107547175025315, + "expected_calibration_error_10bin": 0.005128659764300451, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8376117268501967, + "auprc": 0.04831315705382586, + "brier": 0.003547637399351401, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.004511417612432926, + "calibration_in_the_large": 0.0009488953466687648, + "expected_calibration_error_10bin": 0.0012999431927310742, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6512238382405108, + "auprc": 0.03331573842194911, + "brier": 0.0035566527786197104, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0020032446084148497, + "calibration_in_the_large": -0.0015315733484603713, + "expected_calibration_error_10bin": 0.002069954145945313, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 14, + "negatives": 2756, + "auroc": 0.7995801368442877, + "auprc": 0.04340059945673928, + "brier": 0.00495570427586987, + "calibration": { + "observed_rate": 0.005054151624548736, + "mean_prediction": 0.004937891041080406, + "calibration_in_the_large": -0.00011626058346833005, + "expected_calibration_error_10bin": 0.0001892200469872092, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 70, + "negatives": 2535, + "auroc": 0.838698224852071, + "auprc": 0.11742481549777042, + "brier": 0.025114893416117112, + "calibration": { + "observed_rate": 0.026871401151631478, + "mean_prediction": 0.02311205691383541, + "calibration_in_the_large": -0.003759344237796069, + "expected_calibration_error_10bin": 0.00855742566921238, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 35, + "negatives": 2657, + "auroc": 0.7713855583633529, + "auprc": 0.07553700417880688, + "brier": 0.012562473806283983, + "calibration": { + "observed_rate": 0.01300148588410104, + "mean_prediction": 0.008381739967523368, + "calibration_in_the_large": -0.004619745916577673, + "expected_calibration_error_10bin": 0.004619745916577673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9627734650670431, + "auprc": 0.03835845896147404, + "brier": 0.000700209098346426, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.00056842943203377, + "calibration_in_the_large": -0.0001367891857377391, + "expected_calibration_error_10bin": 0.0001367891857377391, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8897051347229283, + "auprc": 0.109350520038953, + "brier": 0.006239720080673723, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.007842145619547016, + "calibration_in_the_large": 0.0028846385373940417, + "expected_calibration_error_10bin": 0.006032245458473274, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 10, + "negatives": 2803, + "auroc": 0.7882982518729932, + "auprc": 0.013075789329027004, + "brier": 0.003643341922885918, + "calibration": { + "observed_rate": 0.0035549235691432635, + "mean_prediction": 0.0062589563146715835, + "calibration_in_the_large": 0.00270403274552832, + "expected_calibration_error_10bin": 0.00270403274552832, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 85, + "negatives": 1958, + "auroc": 0.7516733761941957, + "auprc": 0.14259755840321367, + "brier": 0.03803710614316993, + "calibration": { + "observed_rate": 0.041605482134116495, + "mean_prediction": 0.036664167063277006, + "calibration_in_the_large": -0.004941315070839489, + "expected_calibration_error_10bin": 0.006369542568690465, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 18, + "negatives": 2746, + "auroc": 0.7934571497936392, + "auprc": 0.03354530259591966, + "brier": 0.006412206812767176, + "calibration": { + "observed_rate": 0.006512301013024602, + "mean_prediction": 0.006015820097184675, + "calibration_in_the_large": -0.000496480915839927, + "expected_calibration_error_10bin": 0.0007368033393214883, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7630910015251652, + "auprc": 0.006679252631134125, + "brier": 0.002605545249761671, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0036457375162030946, + "calibration_in_the_large": 0.001160824488159076, + "expected_calibration_error_10bin": 0.0011608244881590763, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9106125356125356, + "auprc": 0.07528984125715195, + "brier": 0.002090599595516734, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0022158937195348887, + "calibration_in_the_large": 8.369755748798046e-05, + "expected_calibration_error_10bin": 8.369755748798046e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 13, + "negatives": 2772, + "auroc": 0.723914973914974, + "auprc": 0.01777956509213507, + "brier": 0.004698326786489482, + "calibration": { + "observed_rate": 0.00466786355475763, + "mean_prediction": 0.007077135351710975, + "calibration_in_the_large": 0.0024092717969533446, + "expected_calibration_error_10bin": 0.0024092717969533446, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.8842625264643613, + "auprc": 0.006857014092574955, + "brier": 0.001068632921077533, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.001776473694038153, + "calibration_in_the_large": 0.000719018635878125, + "expected_calibration_error_10bin": 0.000719018635878125, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 18, + "negatives": 2738, + "auroc": 0.9195682168655142, + "auprc": 0.07968940259224505, + "brier": 0.006294302439452879, + "calibration": { + "observed_rate": 0.006531204644412192, + "mean_prediction": 0.006871208986188352, + "calibration_in_the_large": 0.00034000434177616, + "expected_calibration_error_10bin": 0.0011459798461146426, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9180830972615676, + "auprc": 0.008382129932124442, + "brier": 0.0010590355806027094, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001301493807310363, + "calibration_in_the_large": 0.00024029819358556631, + "expected_calibration_error_10bin": 0.00024029819358556631, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 6, + "negatives": 2814, + "auroc": 0.8426913053778725, + "auprc": 0.021121176737804056, + "brier": 0.002127767230955932, + "calibration": { + "observed_rate": 0.002127659574468085, + "mean_prediction": 0.0014510639438380657, + "calibration_in_the_large": -0.0006765956306300194, + "expected_calibration_error_10bin": 0.0007720349577313547, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8092011412268189, + "auprc": 0.02320277296007317, + "brier": 0.003167700653678697, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.001968503267897117, + "calibration_in_the_large": -0.00123092794433182, + "expected_calibration_error_10bin": 0.00123092794433182, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.7134460837231618, + "auprc": 0.00967709717538289, + "brier": 0.0021552701823983112, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0034247394769288024, + "calibration_in_the_large": 0.0012703409131945118, + "expected_calibration_error_10bin": 0.0012703409131945118, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 35, + "negatives": 2714, + "auroc": 0.8246341720181072, + "auprc": 0.06547911146786985, + "brier": 0.012940971596388528, + "calibration": { + "observed_rate": 0.012731902510003638, + "mean_prediction": 0.012501688872587775, + "calibration_in_the_large": -0.0002302136374158631, + "expected_calibration_error_10bin": 0.00663452676377729, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 9, + "negatives": 2806, + "auroc": 0.7074522847865685, + "auprc": 0.006698614851525843, + "brier": 0.00325748925613044, + "calibration": { + "observed_rate": 0.003197158081705151, + "mean_prediction": 0.003460513212770526, + "calibration_in_the_large": 0.00026335513106537497, + "expected_calibration_error_10bin": 0.00026335513106537524, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.8017679558011049, + "auprc": 0.05011751000521272, + "brier": 0.010644013610567197, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.011641214139803435, + "calibration_in_the_large": 0.0007122523911695551, + "expected_calibration_error_10bin": 0.0010822068575486788, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 23, + "negatives": 2718, + "auroc": 0.6872220622580542, + "auprc": 0.020063891601517118, + "brier": 0.008361831206255577, + "calibration": { + "observed_rate": 0.008391098139365194, + "mean_prediction": 0.005560015980110377, + "calibration_in_the_large": -0.002831082159254817, + "expected_calibration_error_10bin": 0.003517405897666098, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7533726596563222, + "auprc": 0.015624376292896758, + "brier": 0.0024959637372945938, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0023433065693720724, + "calibration_in_the_large": -0.0001638567544101628, + "expected_calibration_error_10bin": 0.0001638567544101628, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 85, + "negatives": 2475, + "auroc": 0.7378300653594771, + "auprc": 0.11718888623478484, + "brier": 0.030909753599904166, + "calibration": { + "observed_rate": 0.033203125, + "mean_prediction": 0.026037488987913093, + "calibration_in_the_large": -0.007165636012086907, + "expected_calibration_error_10bin": 0.00920857822684411, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8363701321900678, + "auprc": 0.020211942785929148, + "brier": 0.004929560183147299, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.0032964897347157944, + "calibration_in_the_large": -0.001680403262084774, + "expected_calibration_error_10bin": 0.001680403262084774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 15, + "negatives": 2795, + "auroc": 0.7078592725104353, + "auprc": 0.011603588028531288, + "brier": 0.005327033330726924, + "calibration": { + "observed_rate": 0.005338078291814947, + "mean_prediction": 0.004161341000413891, + "calibration_in_the_large": -0.0011767372914010558, + "expected_calibration_error_10bin": 0.0011767372914010558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 21, + "negatives": 2780, + "auroc": 0.7967797190818774, + "auprc": 0.027232146348722105, + "brier": 0.007629125378532842, + "calibration": { + "observed_rate": 0.007497322384862549, + "mean_prediction": 0.006796323926228387, + "calibration_in_the_large": -0.0007009984586341615, + "expected_calibration_error_10bin": 0.004396327756759459, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8300274725274726, + "auprc": 0.04815650407377121, + "brier": 0.004788371656870387, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.008233174888806509, + "calibration_in_the_large": 0.0036117742489202662, + "expected_calibration_error_10bin": 0.0036117742489202662, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7238767292588606, + "auprc": 0.01339611025264154, + "brier": 0.003250052228682023, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0043458263366163595, + "calibration_in_the_large": 0.0011269422164446857, + "expected_calibration_error_10bin": 0.0011269422164446857, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 3, + "negatives": 2771, + "auroc": 0.9576566823048238, + "auprc": 0.017801876000915123, + "brier": 0.0011034309666944691, + "calibration": { + "observed_rate": 0.0010814708002883922, + "mean_prediction": 0.0012896918007863777, + "calibration_in_the_large": 0.00020822100049798552, + "expected_calibration_error_10bin": 0.00020822100049798555, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 20, + "negatives": 2767, + "auroc": 0.9351644380195158, + "auprc": 0.2230736618596545, + "brier": 0.00663414325643894, + "calibration": { + "observed_rate": 0.007176175098672408, + "mean_prediction": 0.005686852753094776, + "calibration_in_the_large": -0.001489322345577632, + "expected_calibration_error_10bin": 0.004038778834847708, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9633008500933029, + "auprc": 0.050235597506227074, + "brier": 0.0027960566861191306, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.004137765449969344, + "calibration_in_the_large": 0.0016042873464586671, + "expected_calibration_error_10bin": 0.0016042873464586667, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 10, + "negatives": 2788, + "auroc": 0.787051649928264, + "auprc": 0.02459772005029731, + "brier": 0.0035778049920460087, + "calibration": { + "observed_rate": 0.0035739814152966403, + "mean_prediction": 0.003163221278242259, + "calibration_in_the_large": -0.00041076013705438133, + "expected_calibration_error_10bin": 0.001008102842039675, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 31, + "negatives": 2650, + "auroc": 0.808277541083384, + "auprc": 0.1953085727259582, + "brier": 0.010457717303941048, + "calibration": { + "observed_rate": 0.011562849682954122, + "mean_prediction": 0.006564326261355557, + "calibration_in_the_large": -0.0049985234215985655, + "expected_calibration_error_10bin": 0.005850181442699471, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 14, + "negatives": 2717, + "auroc": 0.7082654187917345, + "auprc": 0.01637606272063385, + "brier": 0.005097270037219221, + "calibration": { + "observed_rate": 0.005126327352618088, + "mean_prediction": 0.0041571107874300035, + "calibration_in_the_large": -0.0009692165651880849, + "expected_calibration_error_10bin": 0.0009692165651880849, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8390780141843972, + "auprc": 0.01877740773150665, + "brier": 0.0017706930258866997, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.001852818493974968, + "calibration_in_the_large": 8.290698955018918e-05, + "expected_calibration_error_10bin": 8.290698955018918e-05, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6124113475177305, + "auprc": 0.004578012480084251, + "brier": 0.0014200394880982512, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.001277859845865245, + "calibration_in_the_large": -0.000138570749035605, + "expected_calibration_error_10bin": 0.000138570749035605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 14, + "negatives": 2743, + "auroc": 0.8937034529451591, + "auprc": 0.10403154351403701, + "brier": 0.005008321306915467, + "calibration": { + "observed_rate": 0.005077983315197679, + "mean_prediction": 0.004638301333391906, + "calibration_in_the_large": -0.0004396819818057729, + "expected_calibration_error_10bin": 0.0031269422741492144, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 9, + "negatives": 2770, + "auroc": 0.8452868030485359, + "auprc": 0.06300398141785199, + "brier": 0.0031896686441402165, + "calibration": { + "observed_rate": 0.0032385750269881253, + "mean_prediction": 0.0023283673750531795, + "calibration_in_the_large": -0.0009102076519349458, + "expected_calibration_error_10bin": 0.0009102076519349458, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.73058726730433, + "auprc": 0.017985715056456665, + "brier": 0.00252626605282665, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.003481158414472129, + "calibration_in_the_large": 0.0009676934234487899, + "expected_calibration_error_10bin": 0.0009676934234487901, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6422677982083923, + "auprc": 0.00190332326459456, + "brier": 0.0010638086864335789, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009063432649005874, + "calibration_in_the_large": -0.00015335295551622652, + "expected_calibration_error_10bin": 0.00015335295551622652, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 24, + "negatives": 2744, + "auroc": 0.8650236880466472, + "auprc": 0.05944323908351503, + "brier": 0.00844850531028432, + "calibration": { + "observed_rate": 0.008670520231213872, + "mean_prediction": 0.00825762724588789, + "calibration_in_the_large": -0.00041289298532598204, + "expected_calibration_error_10bin": 0.0023567156393655125, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.8328213759730696, + "auprc": 0.07635040142514064, + "brier": 0.012214535821626689, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.010186959281313239, + "calibration_in_the_large": -0.0025356870291193302, + "expected_calibration_error_10bin": 0.002696515093968862, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8846564613741545, + "auprc": 0.06505424719772268, + "brier": 0.004812393426130318, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.004605585092905721, + "calibration_in_the_large": -0.0003536781022767093, + "expected_calibration_error_10bin": 0.0010341099156056075, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 17, + "negatives": 2790, + "auroc": 0.7498840396373603, + "auprc": 0.016339600769992642, + "brier": 0.006014481458804751, + "calibration": { + "observed_rate": 0.006056287851799074, + "mean_prediction": 0.006029982294603088, + "calibration_in_the_large": -2.6305557195985436e-05, + "expected_calibration_error_10bin": 2.6305557195985436e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 43, + "negatives": 2658, + "auroc": 0.7052076224473726, + "auprc": 0.07286405133660381, + "brier": 0.015427130921219511, + "calibration": { + "observed_rate": 0.015920029618659754, + "mean_prediction": 0.01222290434416357, + "calibration_in_the_large": -0.0036971252744961835, + "expected_calibration_error_10bin": 0.006609283745804572, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631504424778761, + "auprc": 0.0039170432634460465, + "brier": 0.0017760378106801379, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0015359055077014752, + "calibration_in_the_large": -0.00023087894459534455, + "expected_calibration_error_10bin": 0.00023087894459534455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.7256857855361596, + "auprc": 0.02680719637751478, + "brier": 0.0042010543063397895, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.005822762735601069, + "calibration_in_the_large": 0.0019192850918821197, + "expected_calibration_error_10bin": 0.0019531583560583607, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.6952144041696281, + "auprc": 0.010817082122327362, + "brier": 0.0011583689241617939, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.004887143152095085, + "calibration_in_the_large": 0.0038221804257905054, + "expected_calibration_error_10bin": 0.003822180425790506, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.77693198005698, + "auprc": 0.0245922649118853, + "brier": 0.002848581032971608, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.0029255335825575783, + "calibration_in_the_large": 8.462449164848727e-05, + "expected_calibration_error_10bin": 0.0003424522865991263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7283427495291902, + "auprc": 0.009208720198535554, + "brier": 0.0010575275894127412, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.001109331930330314, + "calibration_in_the_large": 5.1130872129255675e-05, + "expected_calibration_error_10bin": 5.1130872129255675e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.0719542383333757e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.001423787310188497, + "calibration_in_the_large": 0.001423787310188497, + "expected_calibration_error_10bin": 0.001423787310188497, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7120641947980078, + "auprc": 0.01438163677521863, + "brier": 0.004638443510188857, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.005293743438526514, + "calibration_in_the_large": 0.000639250062228626, + "expected_calibration_error_10bin": 0.000639250062228626, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 22, + "negatives": 2776, + "auroc": 0.8634235001309929, + "auprc": 0.04171265460460443, + "brier": 0.007745303838733973, + "calibration": { + "observed_rate": 0.007862759113652609, + "mean_prediction": 0.0048312842614245885, + "calibration_in_the_large": -0.00303147485222802, + "expected_calibration_error_10bin": 0.0036385254347282713, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.8685932060977074, + "auprc": 0.12228688356676871, + "brier": 0.004185528811569281, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.0060749148528827625, + "calibration_in_the_large": 0.0017722974272821887, + "expected_calibration_error_10bin": 0.002750179329202051, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 7, + "negatives": 2817, + "auroc": 0.6433896242202951, + "auprc": 0.0043215609862472, + "brier": 0.0025573418593826946, + "calibration": { + "observed_rate": 0.002478753541076487, + "mean_prediction": 0.00452114027395301, + "calibration_in_the_large": 0.002042386732876523, + "expected_calibration_error_10bin": 0.0020423867328765236, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 13, + "negatives": 2700, + "auroc": 0.7670370370370371, + "auprc": 0.055368245865402274, + "brier": 0.004708924484874477, + "calibration": { + "observed_rate": 0.004791743457427202, + "mean_prediction": 0.0063063536708709, + "calibration_in_the_large": 0.001514610213443698, + "expected_calibration_error_10bin": 0.0015146102134436976, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8491807200095682, + "auprc": 0.010303385477682546, + "brier": 0.0010760805437266666, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0016381626981979269, + "calibration_in_the_large": 0.0005628938809936258, + "expected_calibration_error_10bin": 0.0005628938809936258, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7026583710407239, + "auprc": 0.01114421119474901, + "brier": 0.004786317462986461, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.0035775624831397676, + "calibration_in_the_large": -0.0011791151604753076, + "expected_calibration_error_10bin": 0.0015708657232028239, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 34, + "negatives": 2640, + "auroc": 0.6860294117647059, + "auprc": 0.02986419290377548, + "brier": 0.012619673997691457, + "calibration": { + "observed_rate": 0.012715033657442034, + "mean_prediction": 0.010683497674052586, + "calibration_in_the_large": -0.0020315359833894472, + "expected_calibration_error_10bin": 0.003344879036834858, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 2, + "negatives": 2819, + "auroc": 0.852962043277758, + "auprc": 0.034557323541411666, + "brier": 0.0007030912922790302, + "calibration": { + "observed_rate": 0.0007089684509039348, + "mean_prediction": 0.0016268054770447414, + "calibration_in_the_large": 0.0009178370261408067, + "expected_calibration_error_10bin": 0.0009178370261408067, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 37, + "negatives": 2680, + "auroc": 0.6520169423154498, + "auprc": 0.03123309028788984, + "brier": 0.013547376801956001, + "calibration": { + "observed_rate": 0.013617960986382039, + "mean_prediction": 0.01133134508712029, + "calibration_in_the_large": -0.002286615899261749, + "expected_calibration_error_10bin": 0.005049746583172959, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9461483594864479, + "auprc": 0.010025062656641603, + "brier": 0.0007139663705518598, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0012972041882154256, + "calibration_in_the_large": 0.0005844458133045204, + "expected_calibration_error_10bin": 0.0005844458133045204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7320284697508896, + "auprc": 0.003359772814158137, + "brier": 0.0014276785559659507, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.002083859523170535, + "calibration_in_the_large": 0.0006623954151392629, + "expected_calibration_error_10bin": 0.0006623954151392629, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 10, + "negatives": 2733, + "auroc": 0.801536772777168, + "auprc": 0.021146309174827273, + "brier": 0.003613702077987353, + "calibration": { + "observed_rate": 0.0036456434560699965, + "mean_prediction": 0.0026747317503454495, + "calibration_in_the_large": -0.000970911705724547, + "expected_calibration_error_10bin": 0.000970911705724547, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7141417910447762, + "auprc": 0.01612764797639541, + "brier": 0.0037259655680166085, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006150913952556495, + "calibration_in_the_large": 0.002433441833597387, + "expected_calibration_error_10bin": 0.002433441833597387, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 4, + "negatives": 2781, + "auroc": 0.8165228335131248, + "auprc": 0.09021881700630459, + "brier": 0.001425543351817164, + "calibration": { + "observed_rate": 0.001436265709156194, + "mean_prediction": 0.002246257825220316, + "calibration_in_the_large": 0.0008099921160641219, + "expected_calibration_error_10bin": 0.0008099921160641219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 43, + "negatives": 2524, + "auroc": 0.7211513654958907, + "auprc": 0.05906864584862819, + "brier": 0.016318710215339267, + "calibration": { + "observed_rate": 0.01675107128944293, + "mean_prediction": 0.01834071564189161, + "calibration_in_the_large": 0.001589644352448679, + "expected_calibration_error_10bin": 0.0015896443524486788, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 10, + "negatives": 2771, + "auroc": 0.6470588235294118, + "auprc": 0.01752521914699107, + "brier": 0.0035759543787036224, + "calibration": { + "observed_rate": 0.003595828838547285, + "mean_prediction": 0.0037430848390056443, + "calibration_in_the_large": 0.00014725600045835917, + "expected_calibration_error_10bin": 0.00014725600045835917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 39, + "negatives": 2658, + "auroc": 0.7360845825857113, + "auprc": 0.04952770961288153, + "brier": 0.014290610735497642, + "calibration": { + "observed_rate": 0.014460511679644048, + "mean_prediction": 0.01670628794734014, + "calibration_in_the_large": 0.0022457762676960924, + "expected_calibration_error_10bin": 0.002298194020542393, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 13, + "negatives": 2692, + "auroc": 0.756743627843182, + "auprc": 0.02044072403405397, + "brier": 0.004835555269552402, + "calibration": { + "observed_rate": 0.004805914972273568, + "mean_prediction": 0.004514529348262603, + "calibration_in_the_large": -0.00029138562401096434, + "expected_calibration_error_10bin": 0.001078640659762152, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8266951161688004, + "auprc": 0.028205668088240637, + "brier": 0.0021163567656955853, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0029130762089643082, + "calibration_in_the_large": 0.0007839065851176085, + "expected_calibration_error_10bin": 0.0007839065851176087, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5891757644745692, + "auprc": 0.003603221908889739, + "brier": 0.002541991911944849, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.00278492640221151, + "calibration_in_the_large": 0.00025602466810746355, + "expected_calibration_error_10bin": 0.00025602466810746355, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7571736011477762, + "auprc": 0.04538839700548751, + "brier": 0.005294094159773792, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.003287789250806533, + "calibration_in_the_large": -0.002063619953617299, + "expected_calibration_error_10bin": 0.002138845273557918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8239820075757576, + "auprc": 0.0038421004398826986, + "brier": 0.0010639233998494364, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0005777960718426417, + "calibration_in_the_large": -0.0004864110938189403, + "expected_calibration_error_10bin": 0.0004864110938189403, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.874375, + "auprc": 0.03261145866274888, + "brier": 0.001418390490537197, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.0021728407670756687, + "calibration_in_the_large": 0.0007463072435378655, + "expected_calibration_error_10bin": 0.0007463072435378655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6694152165115338, + "auprc": 0.00958207707728143, + "brier": 0.0024939451521197305, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0024873221596135022, + "calibration_in_the_large": 1.4697645307603074e-05, + "expected_calibration_error_10bin": 0.00023963647403471436, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 20, + "negatives": 2736, + "auroc": 0.6957236842105263, + "auprc": 0.08099719482911032, + "brier": 0.0071033821493041525, + "calibration": { + "observed_rate": 0.00725689404934688, + "mean_prediction": 0.004765165458765004, + "calibration_in_the_large": -0.0024917285905818754, + "expected_calibration_error_10bin": 0.0024917285905818754, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.88347232079489, + "auprc": 0.03092313151302391, + "brier": 0.0027961568293712524, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.001723122316683231, + "calibration_in_the_large": -0.0011077340173578165, + "expected_calibration_error_10bin": 0.0011077340173578165, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 93, + "negatives": 2199, + "auroc": 0.8180551276973405, + "auprc": 0.16883194824566705, + "brier": 0.036514147787339815, + "calibration": { + "observed_rate": 0.04057591623036649, + "mean_prediction": 0.03442225068956727, + "calibration_in_the_large": -0.0061536655407992205, + "expected_calibration_error_10bin": 0.013068950163825444, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 46, + "negatives": 2394, + "auroc": 0.8704914460063201, + "auprc": 0.23950048417599687, + "brier": 0.0165432533204074, + "calibration": { + "observed_rate": 0.018852459016393444, + "mean_prediction": 0.011044104161357579, + "calibration_in_the_large": -0.007808354855035865, + "expected_calibration_error_10bin": 0.007808354855035864, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8113831308077198, + "auprc": 0.012538251287264776, + "brier": 0.002840895439745391, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0016199498549642666, + "calibration_in_the_large": -0.0012310836446793544, + "expected_calibration_error_10bin": 0.0012310836446793544, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9248280048563334, + "auprc": 0.06024653476181705, + "brier": 0.0024428307311830607, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0014084122563197397, + "calibration_in_the_large": -0.0010642122579861595, + "expected_calibration_error_10bin": 0.001241040111228393, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 8, + "negatives": 2781, + "auroc": 0.8308162531463502, + "auprc": 0.022579518362909175, + "brier": 0.0028454251792002666, + "calibration": { + "observed_rate": 0.0028684116170670493, + "mean_prediction": 0.004311810585373823, + "calibration_in_the_large": 0.001443398968306774, + "expected_calibration_error_10bin": 0.001443398968306774, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6975523235189783, + "auprc": 0.013096402959920614, + "brier": 0.0035799321487722923, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.004418308368463405, + "calibration_in_the_large": 0.0008834904115881839, + "expected_calibration_error_10bin": 0.0008834904115881848, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8426298111337481, + "auprc": 0.12425313268406374, + "brier": 0.004532342345796707, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003303523175890135, + "calibration_in_the_large": -0.0013277557696032742, + "expected_calibration_error_10bin": 0.0013277557696032742, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 81, + "negatives": 2439, + "auroc": 0.7609524243390582, + "auprc": 0.084329538997928, + "brier": 0.030526588941176352, + "calibration": { + "observed_rate": 0.03214285714285714, + "mean_prediction": 0.030127683033822992, + "calibration_in_the_large": -0.002015174109034148, + "expected_calibration_error_10bin": 0.007826427789866952, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 22, + "negatives": 2584, + "auroc": 0.8170032367013791, + "auprc": 0.044631229544974844, + "brier": 0.008317608747412556, + "calibration": { + "observed_rate": 0.00844205679201842, + "mean_prediction": 0.007782951655702869, + "calibration_in_the_large": -0.0006591051363155501, + "expected_calibration_error_10bin": 0.002151673668910889, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9375959381272878, + "auprc": 0.14593110479579885, + "brier": 0.002050775243312583, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0012467608023273079, + "calibration_in_the_large": -0.0008741299717978249, + "expected_calibration_error_10bin": 0.0008741299717978249, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.77640529896169, + "auprc": 0.005942001804959071, + "brier": 0.0021450819554862865, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0017271578087949865, + "calibration_in_the_large": -0.00041646491360587093, + "expected_calibration_error_10bin": 0.00041646491360587093, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9963463646328097, + "auprc": 0.32287080313396105, + "brier": 0.0018851631071198417, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012268121754223328, + "calibration_in_the_large": -0.000960573898219665, + "expected_calibration_error_10bin": 0.0014934487228353771, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8707688435887756, + "auprc": 0.059655061250805934, + "brier": 0.0011835276108787065, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0008442917562773338, + "calibration_in_the_large": -0.0002869299631796799, + "expected_calibration_error_10bin": 0.0006034368076599727, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 3, + "negatives": 2807, + "auroc": 0.6413727585797411, + "auprc": 0.0029572721354747832, + "brier": 0.0010686812127992046, + "calibration": { + "observed_rate": 0.0010676156583629894, + "mean_prediction": 0.0014585207548235657, + "calibration_in_the_large": 0.0003909050964605763, + "expected_calibration_error_10bin": 0.0003909050964605763, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.9900955076052352, + "auprc": 0.034482758620689655, + "brier": 0.0003795471432934492, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0031855536490750045, + "calibration_in_the_large": 0.002831946859824651, + "expected_calibration_error_10bin": 0.002831946859824651, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "330": { + "A04": { + "valid": 2782, + "positives": 27, + "negatives": 2755, + "auroc": 0.8061437117698461, + "auprc": 0.06060926957848076, + "brier": 0.009544163959338452, + "calibration": { + "observed_rate": 0.009705248023005032, + "mean_prediction": 0.009248946029783694, + "calibration_in_the_large": -0.00045630199322133774, + "expected_calibration_error_10bin": 0.0026711562000871023, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8455808530621498, + "auprc": 0.1306564231704552, + "brier": 0.003780906323788934, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.005536725788455748, + "calibration_in_the_large": 0.0016332481447367984, + "expected_calibration_error_10bin": 0.0020011991655996026, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 70, + "negatives": 2594, + "auroc": 0.7540973675514925, + "auprc": 0.07590620972469002, + "brier": 0.025654957478187752, + "calibration": { + "observed_rate": 0.026276276276276277, + "mean_prediction": 0.0256323495003224, + "calibration_in_the_large": -0.0006439267759538771, + "expected_calibration_error_10bin": 0.010794350591970361, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7437833037300178, + "auprc": 0.015964456327018078, + "brier": 0.0015616688396614276, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002610155718854863, + "calibration_in_the_large": 0.001191212831306087, + "expected_calibration_error_10bin": 0.0011912128313060868, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5956844711708525, + "auprc": 0.0008741258741258741, + "brier": 0.0003611666020976767, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001166087555141812, + "calibration_in_the_large": 0.0008124807658914583, + "expected_calibration_error_10bin": 0.0008124807658914583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 7, + "negatives": 2775, + "auroc": 0.9276705276705277, + "auprc": 0.10257015706548576, + "brier": 0.002443590583626943, + "calibration": { + "observed_rate": 0.0025161754133716753, + "mean_prediction": 0.0027654840426531466, + "calibration_in_the_large": 0.0002493086292814713, + "expected_calibration_error_10bin": 0.0002493086292814717, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8820316181825971, + "auprc": 0.09331160867736486, + "brier": 0.005970788284654082, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002243376369225688, + "calibration_in_the_large": -0.003909356167871671, + "expected_calibration_error_10bin": 0.003909356167871671, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9912889518413598, + "auprc": 0.2765597147950089, + "brier": 0.0017261840224379694, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003222862337372521, + "calibration_in_the_large": -0.0014451227447003583, + "expected_calibration_error_10bin": 0.0015367051233790693, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.980820948336872, + "auprc": 0.08545293539554658, + "brier": 0.0017078668200320598, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0017872190394091266, + "calibration_in_the_large": 2.1058672047770313e-05, + "expected_calibration_error_10bin": 0.0002738578518404999, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.8989061397318278, + "auprc": 0.006517023483919646, + "brier": 0.0007147184557749323, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0020676301986339764, + "calibration_in_the_large": 0.0013624115808624673, + "expected_calibration_error_10bin": 0.0013624115808624673, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 36, + "negatives": 2732, + "auroc": 0.7650378233284529, + "auprc": 0.044957268850545934, + "brier": 0.012818203284680885, + "calibration": { + "observed_rate": 0.01300578034682081, + "mean_prediction": 0.01135781034627459, + "calibration_in_the_large": -0.0016479700005462197, + "expected_calibration_error_10bin": 0.004296140031292031, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 60, + "negatives": 2618, + "auroc": 0.7308632543926662, + "auprc": 0.05079076211848169, + "brier": 0.022129687799063078, + "calibration": { + "observed_rate": 0.022404779686333084, + "mean_prediction": 0.021573723276294907, + "calibration_in_the_large": -0.0008310564100381772, + "expected_calibration_error_10bin": 0.00751934422973424, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 83, + "negatives": 2547, + "auroc": 0.7639462443413229, + "auprc": 0.08830045653333908, + "brier": 0.02997536487451623, + "calibration": { + "observed_rate": 0.03155893536121673, + "mean_prediction": 0.02612296072102219, + "calibration_in_the_large": -0.005435974640194543, + "expected_calibration_error_10bin": 0.008749643369655733, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8894196744515216, + "auprc": 0.020182412029333824, + "brier": 0.0007276130796143621, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0013766594294916817, + "calibration_in_the_large": 0.0006694458509909745, + "expected_calibration_error_10bin": 0.0006694458509909745, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9787384833451452, + "auprc": 0.024390243902439025, + "brier": 0.0007024633677985741, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008170857189037294, + "calibration_in_the_large": 0.00010887042145330439, + "expected_calibration_error_10bin": 0.00010887042145330439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.8905525846702317, + "auprc": 0.02945611490438093, + "brier": 0.0024845780610469126, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0008713232378048339, + "calibration_in_the_large": -0.001618008198895024, + "expected_calibration_error_10bin": 0.0017934748989480015, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.8919786096256684, + "auprc": 0.13516102892235823, + "brier": 0.0013605157782808912, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0009329653346576987, + "calibration_in_the_large": -0.0004910289693650853, + "expected_calibration_error_10bin": 0.0006557812258576537, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.959507670353193, + "auprc": 0.026570048309178744, + "brier": 0.0007101254142615547, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.001485274220722009, + "calibration_in_the_large": 0.000772261743003649, + "expected_calibration_error_10bin": 0.000772261743003649, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.050706033376123234, + "brier": 0.0006984748713677847, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0008885115572871503, + "calibration_in_the_large": 0.00018154796591210605, + "expected_calibration_error_10bin": 0.00018154796591210605, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 22, + "negatives": 2740, + "auroc": 0.893978102189781, + "auprc": 0.1099147238981717, + "brier": 0.007620220902747472, + "calibration": { + "observed_rate": 0.007965242577842143, + "mean_prediction": 0.0049715573963656536, + "calibration_in_the_large": -0.0029936851814764895, + "expected_calibration_error_10bin": 0.004351260020079232, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 35, + "negatives": 2727, + "auroc": 0.9051390853371052, + "auprc": 0.15962007257642508, + "brier": 0.011703031367815003, + "calibration": { + "observed_rate": 0.012671976828385228, + "mean_prediction": 0.008978228345227969, + "calibration_in_the_large": -0.003693748483157259, + "expected_calibration_error_10bin": 0.008603185284938869, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 26, + "negatives": 2725, + "auroc": 0.8966831333803811, + "auprc": 0.17048162423507335, + "brier": 0.009637425094380947, + "calibration": { + "observed_rate": 0.009451108687749909, + "mean_prediction": 0.011879745862558872, + "calibration_in_the_large": 0.0024286371748089633, + "expected_calibration_error_10bin": 0.006673253007088159, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5230660042583393, + "auprc": 0.0011739801939276606, + "brier": 0.0007881154590980011, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0009907391624076661, + "calibration_in_the_large": 0.0002815193042516377, + "expected_calibration_error_10bin": 0.0002845313068148423, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9580494801003944, + "auprc": 0.39172979797979796, + "brier": 0.0010482082071021168, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0008657318565091449, + "calibration_in_the_large": -0.0002087667108260987, + "expected_calibration_error_10bin": 0.0002087667108260987, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 10, + "negatives": 2786, + "auroc": 0.6484565685570711, + "auprc": 0.006048882191512578, + "brier": 0.0036930087614874115, + "calibration": { + "observed_rate": 0.00357653791130186, + "mean_prediction": 0.0054572482794946605, + "calibration_in_the_large": 0.0018807103681928007, + "expected_calibration_error_10bin": 0.0018807103681928007, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 57, + "negatives": 2606, + "auroc": 0.7936273915794859, + "auprc": 0.11698794604112357, + "brier": 0.020014651179689823, + "calibration": { + "observed_rate": 0.021404431092752536, + "mean_prediction": 0.0168347268881575, + "calibration_in_the_large": -0.004569704204595036, + "expected_calibration_error_10bin": 0.0045697042045950344, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 17, + "negatives": 2788, + "auroc": 0.8200692041522492, + "auprc": 0.02757547829430589, + "brier": 0.0061864205631393145, + "calibration": { + "observed_rate": 0.006060606060606061, + "mean_prediction": 0.007266756477308366, + "calibration_in_the_large": 0.001206150416702305, + "expected_calibration_error_10bin": 0.0014617674443181963, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9918842625264643, + "auprc": 0.059482758620689656, + "brier": 0.0006918691582131671, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009168985227778724, + "calibration_in_the_large": 0.00021167990500636324, + "expected_calibration_error_10bin": 0.00021167990500636324, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 36, + "negatives": 2737, + "auroc": 0.8794401818698494, + "auprc": 0.227670993673676, + "brier": 0.011211482168978212, + "calibration": { + "observed_rate": 0.01298232960692391, + "mean_prediction": 0.011808016396262843, + "calibration_in_the_large": -0.0011743132106610665, + "expected_calibration_error_10bin": 0.00293031329634284, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 71, + "negatives": 2428, + "auroc": 0.7937153398148363, + "auprc": 0.10835575747054495, + "brier": 0.026528025693766423, + "calibration": { + "observed_rate": 0.028411364545818326, + "mean_prediction": 0.025945362635655608, + "calibration_in_the_large": -0.0024660019101627184, + "expected_calibration_error_10bin": 0.003003496036841711, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8432849364791288, + "auprc": 0.13014088888735542, + "brier": 0.027266843150327853, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.02459611309266509, + "calibration_in_the_large": -0.0036987491560318553, + "expected_calibration_error_10bin": 0.012414868951914194, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 119, + "negatives": 2315, + "auroc": 0.8181389186344084, + "auprc": 0.1988302605147761, + "brier": 0.04277322181150056, + "calibration": { + "observed_rate": 0.04889071487263763, + "mean_prediction": 0.04483017840718463, + "calibration_in_the_large": -0.004060536465452999, + "expected_calibration_error_10bin": 0.005452519328709946, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 4, + "negatives": 2829, + "auroc": 0.9599681866383881, + "auprc": 0.023907553113445015, + "brier": 0.0014038977900727024, + "calibration": { + "observed_rate": 0.0014119308153900459, + "mean_prediction": 0.0012010986493676454, + "calibration_in_the_large": -0.00021083216602240046, + "expected_calibration_error_10bin": 0.00021083216602240046, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 59, + "negatives": 2623, + "auroc": 0.8243892037193794, + "auprc": 0.17068133504759708, + "brier": 0.020021673782105957, + "calibration": { + "observed_rate": 0.021998508575689784, + "mean_prediction": 0.013254928578522415, + "calibration_in_the_large": -0.008743579997167369, + "expected_calibration_error_10bin": 0.011307582322860424, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 85, + "negatives": 2501, + "auroc": 0.8365500858480137, + "auprc": 0.2505708565394879, + "brier": 0.0283021891244456, + "calibration": { + "observed_rate": 0.0328692962103635, + "mean_prediction": 0.019343453673758847, + "calibration_in_the_large": -0.01352584253660465, + "expected_calibration_error_10bin": 0.014430512892003911, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8931267935251999, + "auprc": 0.2143065877600498, + "brier": 0.009743720661455025, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.011265904425024623, + "calibration_in_the_large": 0.0019368767967504943, + "expected_calibration_error_10bin": 0.007653967655566481, + "nonempty_bins": 9 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 65, + "negatives": 2530, + "auroc": 0.724901185770751, + "auprc": 0.06492838127605928, + "brier": 0.024155201203301564, + "calibration": { + "observed_rate": 0.025048169556840076, + "mean_prediction": 0.022832594710753905, + "calibration_in_the_large": -0.0022155748460861713, + "expected_calibration_error_10bin": 0.005561394459004507, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8129504903698452, + "auprc": 0.030341939722681104, + "brier": 0.0010878727964508453, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0016301861705855175, + "calibration_in_the_large": 0.00056786322440988, + "expected_calibration_error_10bin": 0.0005678632244098802, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8634594977007428, + "auprc": 0.010666273369554082, + "brier": 0.0014205149403855783, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0018572505108080681, + "calibration_in_the_large": 0.000444322216918983, + "expected_calibration_error_10bin": 0.000444322216918983, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9867893371078085, + "auprc": 0.09694339225589226, + "brier": 0.0020920234029795917, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0019559877838652017, + "calibration_in_the_large": -0.0001626562839314085, + "expected_calibration_error_10bin": 0.0008714125788116179, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7324514991181658, + "auprc": 0.008041646410630368, + "brier": 0.0012254152083259293, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.002295115407355433, + "calibration_in_the_large": 0.001590145368582081, + "expected_calibration_error_10bin": 0.0019199600921425326, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 24, + "negatives": 2456, + "auroc": 0.7692216340933767, + "auprc": 0.029749456598034213, + "brier": 0.00953272841521258, + "calibration": { + "observed_rate": 0.00967741935483871, + "mean_prediction": 0.005691429847895286, + "calibration_in_the_large": -0.003985989506943424, + "expected_calibration_error_10bin": 0.003985989506943424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7255624259965794, + "auprc": 0.009698943573834143, + "brier": 0.003954773654406154, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.002687320263937943, + "calibration_in_the_large": -0.0012766437000260211, + "expected_calibration_error_10bin": 0.0012766437000260211, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4763561741613134, + "auprc": 0.0027959528340991157, + "brier": 0.0014269256762217922, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0013608701735502524, + "calibration_in_the_large": -6.464657627155805e-05, + "expected_calibration_error_10bin": 6.464657627155805e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 21, + "negatives": 2173, + "auroc": 0.7819560405846646, + "auprc": 0.05680999058612229, + "brier": 0.00932393987718072, + "calibration": { + "observed_rate": 0.009571558796718322, + "mean_prediction": 0.00820442257454007, + "calibration_in_the_large": -0.001367136222178253, + "expected_calibration_error_10bin": 0.0015831957787029005, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6357287208749406, + "auprc": 0.008437254199970831, + "brier": 0.0042606378487039095, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.0031222580559800276, + "calibration_in_the_large": -0.0011391055803836084, + "expected_calibration_error_10bin": 0.0011391055803836084, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 4, + "negatives": 2810, + "auroc": 0.7913701067615658, + "auprc": 0.024156567341202036, + "brier": 0.001411329452908645, + "calibration": { + "observed_rate": 0.0014214641080312722, + "mean_prediction": 0.0016906676177365577, + "calibration_in_the_large": 0.00026920350970528555, + "expected_calibration_error_10bin": 0.00026920350970528555, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7899510681465569, + "auprc": 0.013749538950337967, + "brier": 0.0033042857889629, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.006242440455585233, + "calibration_in_the_large": 0.0030304490208957254, + "expected_calibration_error_10bin": 0.003030449020895726, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 8, + "negatives": 2803, + "auroc": 0.8012397431323582, + "auprc": 0.010176156938928807, + "brier": 0.002900812848092676, + "calibration": { + "observed_rate": 0.002845962290999644, + "mean_prediction": 0.0032320653783622683, + "calibration_in_the_large": 0.00038610308736262413, + "expected_calibration_error_10bin": 0.0003861030873626241, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 39, + "negatives": 2709, + "auroc": 0.8214498679614959, + "auprc": 0.07432326086269235, + "brier": 0.014203284989375273, + "calibration": { + "observed_rate": 0.014192139737991267, + "mean_prediction": 0.016778278309812, + "calibration_in_the_large": 0.002586138571820733, + "expected_calibration_error_10bin": 0.005446093023888081, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 23, + "negatives": 2777, + "auroc": 0.7626935541951746, + "auprc": 0.027534902074275214, + "brier": 0.008346457908073628, + "calibration": { + "observed_rate": 0.008214285714285714, + "mean_prediction": 0.010500133408772204, + "calibration_in_the_large": 0.0022858476944864897, + "expected_calibration_error_10bin": 0.00228584769448649, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 39, + "negatives": 2733, + "auroc": 0.8183455768527119, + "auprc": 0.09288262834898972, + "brier": 0.013680179780700744, + "calibration": { + "observed_rate": 0.01406926406926407, + "mean_prediction": 0.01481376974530428, + "calibration_in_the_large": 0.0007445056760402094, + "expected_calibration_error_10bin": 0.0030885565074211096, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.7816338700059631, + "auprc": 0.010371741989939835, + "brier": 0.0032160158603978415, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.0031216911513841203, + "calibration_in_the_large": -8.800927657593664e-05, + "expected_calibration_error_10bin": 0.0001668905821426348, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 29, + "negatives": 2708, + "auroc": 0.6478123567462944, + "auprc": 0.02796337821236263, + "brier": 0.010474593738362022, + "calibration": { + "observed_rate": 0.010595542564852027, + "mean_prediction": 0.00933965419859102, + "calibration_in_the_large": -0.0012558883662610078, + "expected_calibration_error_10bin": 0.00205975403010165, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7498108732544112, + "auprc": 0.05410912861850435, + "brier": 0.017227204171270053, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.0174402116475967, + "calibration_in_the_large": -0.00027383305927803844, + "expected_calibration_error_10bin": 0.001654878353860304, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7624572930354796, + "auprc": 0.13085266297553458, + "brier": 0.02968536806929366, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.028358166845587094, + "calibration_in_the_large": -0.0034484489304943307, + "expected_calibration_error_10bin": 0.01270601247910717, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 7, + "negatives": 2816, + "auroc": 0.8426339285714286, + "auprc": 0.016690386843494363, + "brier": 0.002599382732760957, + "calibration": { + "observed_rate": 0.002479631597591215, + "mean_prediction": 0.00311224819227314, + "calibration_in_the_large": 0.0006326165946819247, + "expected_calibration_error_10bin": 0.0006326165946819249, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 82, + "negatives": 2571, + "auroc": 0.8078426350191157, + "auprc": 0.21301156028741713, + "brier": 0.0271366941540129, + "calibration": { + "observed_rate": 0.030908405578590276, + "mean_prediction": 0.024169684173298817, + "calibration_in_the_large": -0.00673872140529146, + "expected_calibration_error_10bin": 0.008097826566010406, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 92, + "negatives": 2495, + "auroc": 0.7958612877929773, + "auprc": 0.11564899622045387, + "brier": 0.03299604994310798, + "calibration": { + "observed_rate": 0.03556242752222652, + "mean_prediction": 0.03510934659706934, + "calibration_in_the_large": -0.00045308092515718157, + "expected_calibration_error_10bin": 0.0055017454343704655, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 153, + "negatives": 2032, + "auroc": 0.7950922494982244, + "auprc": 0.24974082164160788, + "brier": 0.05982425378711245, + "calibration": { + "observed_rate": 0.0700228832951945, + "mean_prediction": 0.043973131381490456, + "calibration_in_the_large": -0.026049751913704046, + "expected_calibration_error_10bin": 0.029168752822143217, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8148703307161551, + "auprc": 0.07628638259947923, + "brier": 0.005161962693351127, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.005403951766258739, + "calibration_in_the_large": 7.913813473584257e-05, + "expected_calibration_error_10bin": 0.0010694330604078491, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5905483405483406, + "auprc": 0.003901639665384116, + "brier": 0.0028835259092892243, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.002771006450204119, + "calibration_in_the_large": -0.00010669139152249965, + "expected_calibration_error_10bin": 0.00010669139152249965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8310400285918513, + "auprc": 0.012032404667984848, + "brier": 0.0014948165826030786, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003186549008620379, + "calibration_in_the_large": 0.0017589972598694868, + "expected_calibration_error_10bin": 0.0017589972598694866, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 16, + "negatives": 2723, + "auroc": 0.8713734851266985, + "auprc": 0.03054153874010269, + "brier": 0.005910133711710716, + "calibration": { + "observed_rate": 0.005841548010222709, + "mean_prediction": 0.0078506585202196, + "calibration_in_the_large": 0.002009110509996891, + "expected_calibration_error_10bin": 0.0020091105099968904, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 31, + "negatives": 2719, + "auroc": 0.7302020429712062, + "auprc": 0.025880228700949564, + "brier": 0.011337596276679634, + "calibration": { + "observed_rate": 0.011272727272727273, + "mean_prediction": 0.012953079277538398, + "calibration_in_the_large": 0.001680352004811125, + "expected_calibration_error_10bin": 0.0016803520048111267, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46461429582448693, + "auprc": 0.0011411601672723093, + "brier": 0.0007333789158813639, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.002682770346555014, + "calibration_in_the_large": 0.0019755567680543066, + "expected_calibration_error_10bin": 0.0019755567680543066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8257037773819713, + "auprc": 0.09047585739948454, + "brier": 0.00639900717506693, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.007651154662841009, + "calibration_in_the_large": 0.001010529662841009, + "expected_calibration_error_10bin": 0.0015625040055113003, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 10, + "negatives": 2731, + "auroc": 0.8728670816550714, + "auprc": 0.0333998487607637, + "brier": 0.003826483488448153, + "calibration": { + "observed_rate": 0.0036483035388544327, + "mean_prediction": 0.005488779031798516, + "calibration_in_the_large": 0.0018404754929440834, + "expected_calibration_error_10bin": 0.001840475492944084, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 12, + "negatives": 2765, + "auroc": 0.9200120554550935, + "auprc": 0.034872453144421604, + "brier": 0.0042636531097148605, + "calibration": { + "observed_rate": 0.004321209938782859, + "mean_prediction": 0.004547424741499344, + "calibration_in_the_large": 0.00022621480271648505, + "expected_calibration_error_10bin": 0.0002262148027164849, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9454087144400433, + "auprc": 0.04218999035349567, + "brier": 0.0035489602133434855, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0019445239038442738, + "calibration_in_the_large": -0.00164356364549193, + "expected_calibration_error_10bin": 0.001989789313484088, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.9342089693527393, + "auprc": 0.024805693938096063, + "brier": 0.002108969762382346, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0009884551599888877, + "calibration_in_the_large": -0.0011369433522321537, + "expected_calibration_error_10bin": 0.0011369433522321537, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8628069242360926, + "auprc": 0.10779657924508732, + "brier": 0.012757583913997679, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.013286794904544213, + "calibration_in_the_large": -0.00031584318284243185, + "expected_calibration_error_10bin": 0.0014029301494522743, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9412592429091712, + "auprc": 0.13800528746152174, + "brier": 0.004418789594964173, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0026222271108524795, + "calibration_in_the_large": -0.002018972460729099, + "expected_calibration_error_10bin": 0.002107360967306225, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7458987161198288, + "auprc": 0.014463979916361558, + "brier": 0.0014191657630950752, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0013304571984956723, + "calibration_in_the_large": -9.404422600575225e-05, + "expected_calibration_error_10bin": 9.404422600575225e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6351063829787233, + "auprc": 0.000970873786407767, + "brier": 0.0003645227380035699, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0016127633713125381, + "calibration_in_the_large": 0.0012582791458605708, + "expected_calibration_error_10bin": 0.0012582791458605708, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.924124053030303, + "auprc": 0.010661656566018834, + "brier": 0.0010655019402910472, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.001483323684302111, + "calibration_in_the_large": 0.00041911651864052894, + "expected_calibration_error_10bin": 0.00041911651864052894, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7290475339528234, + "auprc": 0.017851797858479644, + "brier": 0.0028361941143193723, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0010977218815978352, + "calibration_in_the_large": -0.0017533116180457858, + "expected_calibration_error_10bin": 0.0017533116180457858, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.8781256394516063, + "auprc": 0.022669527116476927, + "brier": 0.0032691498252409566, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.003973393761559067, + "calibration_in_the_large": 0.0006694290038498159, + "expected_calibration_error_10bin": 0.0006694290038498159, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 68, + "negatives": 2132, + "auroc": 0.6965152852885995, + "auprc": 0.07038854007626778, + "brier": 0.03033204059892406, + "calibration": { + "observed_rate": 0.03090909090909091, + "mean_prediction": 0.034415243171758696, + "calibration_in_the_large": 0.0035061522626677853, + "expected_calibration_error_10bin": 0.008326022660264488, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8144129603060737, + "auprc": 0.023864123939469534, + "brier": 0.004262786938410459, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004206042490950495, + "calibration_in_the_large": -7.967179476379115e-05, + "expected_calibration_error_10bin": 0.0002472540799551226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7150537634408602, + "auprc": 0.013215808882810572, + "brier": 0.003919471764035088, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.003857276011103506, + "calibration_in_the_large": -6.989285715782931e-05, + "expected_calibration_error_10bin": 6.989285715782931e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 78, + "negatives": 2169, + "auroc": 0.7241314087787117, + "auprc": 0.1041703006448623, + "brier": 0.03268783648547884, + "calibration": { + "observed_rate": 0.03471295060080107, + "mean_prediction": 0.038650012143829966, + "calibration_in_the_large": 0.003937061543028898, + "expected_calibration_error_10bin": 0.0039370615430289, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7352800294767871, + "auprc": 0.04632575052777589, + "brier": 0.007288409344509708, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.010249702758889426, + "calibration_in_the_large": 0.002934413804975747, + "expected_calibration_error_10bin": 0.002934413804975746, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9484945471787577, + "auprc": 0.06706027573475283, + "brier": 0.002104901162818818, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0037205214594099338, + "calibration_in_the_large": 0.001591351835563234, + "expected_calibration_error_10bin": 0.001591351835563234, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9258221900975786, + "auprc": 0.02552017801836209, + "brier": 0.002851995195937554, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0016720360860114222, + "calibration_in_the_large": -0.0012108467968714608, + "expected_calibration_error_10bin": 0.0012108467968714608, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6371628131021194, + "auprc": 0.0038673508996550266, + "brier": 0.0022340318613288447, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.004209338307758706, + "calibration_in_the_large": 0.0020463967071819213, + "expected_calibration_error_10bin": 0.0020463967071819218, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7913832199546486, + "auprc": 0.00912943792715388, + "brier": 0.0032413506471584974, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0038864431438302995, + "calibration_in_the_large": 0.000674451709140792, + "expected_calibration_error_10bin": 0.0006744517091407919, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.779547980733605, + "auprc": 0.047388836439290066, + "brier": 0.00866323202859606, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.006688276087446514, + "calibration_in_the_large": -0.0021255322122229687, + "expected_calibration_error_10bin": 0.002549808711948434, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7854612546125461, + "auprc": 0.021945532854777086, + "brier": 0.005453138401495026, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.00399021314988404, + "calibration_in_the_large": -0.0015143740060792627, + "expected_calibration_error_10bin": 0.0015143740060792627, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5697436944756459, + "auprc": 0.005046534962042844, + "brier": 0.0025264754136377797, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.002006449564035582, + "calibration_in_the_large": -0.0004890941079786783, + "expected_calibration_error_10bin": 0.0004890941079786783, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 88, + "negatives": 2227, + "auroc": 0.7070100420459648, + "auprc": 0.09109649780299583, + "brier": 0.035978916935709246, + "calibration": { + "observed_rate": 0.03801295896328294, + "mean_prediction": 0.028534168427982055, + "calibration_in_the_large": -0.009478790535300884, + "expected_calibration_error_10bin": 0.011924340376619363, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.6505644012650608e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0005921356036891289, + "calibration_in_the_large": 0.0005921356036891289, + "expected_calibration_error_10bin": 0.0005921356036891289, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 35, + "negatives": 2716, + "auroc": 0.8651272880286135, + "auprc": 0.10912093254279186, + "brier": 0.012046959921857071, + "calibration": { + "observed_rate": 0.01272264631043257, + "mean_prediction": 0.008898651544645999, + "calibration_in_the_large": -0.0038239947657865703, + "expected_calibration_error_10bin": 0.0045121682194930015, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 14, + "negatives": 2775, + "auroc": 0.7564221364221364, + "auprc": 0.0434805643935912, + "brier": 0.00494426030005756, + "calibration": { + "observed_rate": 0.005019720329867336, + "mean_prediction": 0.0030661424922612934, + "calibration_in_the_large": -0.0019535778376060424, + "expected_calibration_error_10bin": 0.0019535778376060424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.738626964433416, + "auprc": 0.007277091631457948, + "brier": 0.0010656820629702526, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001366053840370204, + "calibration_in_the_large": 0.0003037308941945666, + "expected_calibration_error_10bin": 0.0003037308941945666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 63, + "negatives": 2474, + "auroc": 0.7678138353158563, + "auprc": 0.10596992151573606, + "brier": 0.02369090829412763, + "calibration": { + "observed_rate": 0.024832479306267245, + "mean_prediction": 0.03124974673941952, + "calibration_in_the_large": 0.006417267433152275, + "expected_calibration_error_10bin": 0.006558322635561226, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.4588109110040883e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0021755495223690826, + "calibration_in_the_large": 0.0021755495223690826, + "expected_calibration_error_10bin": 0.0021755495223690826, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 45, + "negatives": 2688, + "auroc": 0.7646990740740741, + "auprc": 0.060291987866801594, + "brier": 0.016286293365035884, + "calibration": { + "observed_rate": 0.01646542261251372, + "mean_prediction": 0.01677517249078886, + "calibration_in_the_large": 0.00030974987827513817, + "expected_calibration_error_10bin": 0.005490996124072174, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 50, + "negatives": 2606, + "auroc": 0.7985188027628549, + "auprc": 0.06522571878268266, + "brier": 0.018120500879415333, + "calibration": { + "observed_rate": 0.01882530120481928, + "mean_prediction": 0.01452554971685831, + "calibration_in_the_large": -0.0042997514879609695, + "expected_calibration_error_10bin": 0.004789623324710872, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9345070422535211, + "auprc": 0.0053475935828877, + "brier": 0.00035194478372414025, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004183807105413248, + "calibration_in_the_large": 6.639197418088836e-05, + "expected_calibration_error_10bin": 6.639197418088836e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7021703231894315, + "auprc": 0.006201906360526478, + "brier": 0.002115645137221908, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009518741944812115, + "calibration_in_the_large": -0.0011667698733153985, + "expected_calibration_error_10bin": 0.0011667698733153985, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.2074283713918676e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0017199017864790603, + "calibration_in_the_large": 0.0017199017864790603, + "expected_calibration_error_10bin": 0.0017199017864790603, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6608333333333334, + "auprc": 0.011284353969596768, + "brier": 0.00212930872033931, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.001130026617677881, + "calibration_in_the_large": -0.0010082485070548348, + "expected_calibration_error_10bin": 0.0010082485070548348, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.799336498660823, + "auprc": 0.027287968904870685, + "brier": 0.004309802618272905, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004288013744195764, + "calibration_in_the_large": -7.562261944059952e-05, + "expected_calibration_error_10bin": 7.562261944059952e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 13, + "negatives": 2777, + "auroc": 0.6250796376831667, + "auprc": 0.01338821745598947, + "brier": 0.004656600907046468, + "calibration": { + "observed_rate": 0.004659498207885305, + "mean_prediction": 0.004783886727907421, + "calibration_in_the_large": 0.0001243885200221161, + "expected_calibration_error_10bin": 0.0001243885200221171, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.47424242424242424, + "auprc": 0.001644480913967186, + "brier": 0.0014445580989442808, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0024720984014841036, + "calibration_in_the_large": 0.0010481040974613196, + "expected_calibration_error_10bin": 0.0010481040974613196, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8316912972085386, + "auprc": 0.009413456659460886, + "brier": 0.00249986661290461, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0023181845303764915, + "calibration_in_the_large": -0.00018987709628062082, + "expected_calibration_error_10bin": 0.00018987709628062082, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8994793515560289, + "auprc": 0.014894335061885746, + "brier": 0.0021277015477534672, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.0016326533826555517, + "calibration_in_the_large": -0.0004927451295654896, + "expected_calibration_error_10bin": 0.0004927451295654896, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8825763923803139, + "auprc": 0.034996908500698407, + "brier": 0.004986759562744761, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.00911635311865851, + "calibration_in_the_large": 0.004418123989637911, + "expected_calibration_error_10bin": 0.00441812398963791, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 40, + "negatives": 1458, + "auroc": 0.7061556927297667, + "auprc": 0.07286968269562343, + "brier": 0.025895974203432103, + "calibration": { + "observed_rate": 0.0267022696929239, + "mean_prediction": 0.01856542746926557, + "calibration_in_the_large": -0.00813684222365833, + "expected_calibration_error_10bin": 0.01119411571390581, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 53, + "negatives": 2623, + "auroc": 0.8203195246692898, + "auprc": 0.08094385206148243, + "brier": 0.018934263866152344, + "calibration": { + "observed_rate": 0.019805680119581465, + "mean_prediction": 0.012396970830820324, + "calibration_in_the_large": -0.007408709288761141, + "expected_calibration_error_10bin": 0.008835796458709142, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 29, + "negatives": 2523, + "auroc": 0.8502876980059316, + "auprc": 0.1114857224059426, + "brier": 0.010895259156595682, + "calibration": { + "observed_rate": 0.011363636363636364, + "mean_prediction": 0.008036636942139548, + "calibration_in_the_large": -0.0033269994214968155, + "expected_calibration_error_10bin": 0.00650722566835528, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 30, + "negatives": 2697, + "auroc": 0.8975281176615993, + "auprc": 0.18356069215933696, + "brier": 0.00993437744900103, + "calibration": { + "observed_rate": 0.011001100110011002, + "mean_prediction": 0.012780389561263244, + "calibration_in_the_large": 0.001779289451252242, + "expected_calibration_error_10bin": 0.0021615426717995676, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 12, + "negatives": 2378, + "auroc": 0.9364662181104569, + "auprc": 0.0444921952564262, + "brier": 0.004941374187451654, + "calibration": { + "observed_rate": 0.00502092050209205, + "mean_prediction": 0.0025916280427504506, + "calibration_in_the_large": -0.0024292924593415995, + "expected_calibration_error_10bin": 0.0024292924593415995, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 22, + "negatives": 2649, + "auroc": 0.8049349668828718, + "auprc": 0.0338681416634791, + "brier": 0.008277669890236499, + "calibration": { + "observed_rate": 0.008236615499812805, + "mean_prediction": 0.01145777022304309, + "calibration_in_the_large": 0.003221154723230285, + "expected_calibration_error_10bin": 0.003221154723230286, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 8, + "negatives": 2801, + "auroc": 0.8876294180649767, + "auprc": 0.019469402891528268, + "brier": 0.0028379730176505548, + "calibration": { + "observed_rate": 0.002847988608045568, + "mean_prediction": 0.0022659660287235503, + "calibration_in_the_large": -0.0005820225793220176, + "expected_calibration_error_10bin": 0.0005820225793220176, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 44, + "negatives": 2199, + "auroc": 0.8392554466906446, + "auprc": 0.07746848642447274, + "brier": 0.018747007510235482, + "calibration": { + "observed_rate": 0.01961658493089612, + "mean_prediction": 0.014125645090757087, + "calibration_in_the_large": -0.005490939840139033, + "expected_calibration_error_10bin": 0.006206243403328446, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7639051094890511, + "auprc": 0.06753007901629579, + "brier": 0.007013555191592903, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.006511730981704507, + "calibration_in_the_large": -0.0007346458298896959, + "expected_calibration_error_10bin": 0.0007346458298896953, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 36, + "negatives": 2680, + "auroc": 0.8498963515754561, + "auprc": 0.060278382983219574, + "brier": 0.013051898727199538, + "calibration": { + "observed_rate": 0.013254786450662739, + "mean_prediction": 0.012549928381882177, + "calibration_in_the_large": -0.000704858068780562, + "expected_calibration_error_10bin": 0.004682837924483011, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 16, + "negatives": 2777, + "auroc": 0.778290421317969, + "auprc": 0.08355932144405785, + "brier": 0.005593286116409289, + "calibration": { + "observed_rate": 0.005728607232366631, + "mean_prediction": 0.004265608161033192, + "calibration_in_the_large": -0.0014629990713334396, + "expected_calibration_error_10bin": 0.0014629990713334387, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 18, + "negatives": 2735, + "auroc": 0.7910420475319927, + "auprc": 0.026215456814165736, + "brier": 0.006531875339693101, + "calibration": { + "observed_rate": 0.006538321830730113, + "mean_prediction": 0.006134485679474554, + "calibration_in_the_large": -0.0004038361512555587, + "expected_calibration_error_10bin": 0.0016024524752704964, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.7261729434041658, + "auprc": 0.009599767128521326, + "brier": 0.0026673460679000195, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.005233950373617472, + "calibration_in_the_large": 0.0026632562862138735, + "expected_calibration_error_10bin": 0.002663256286213874, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 13, + "negatives": 2727, + "auroc": 0.9182815717469183, + "auprc": 0.06319114172448517, + "brier": 0.004604757546379527, + "calibration": { + "observed_rate": 0.004744525547445255, + "mean_prediction": 0.0052304640634770125, + "calibration_in_the_large": 0.00048593851603175725, + "expected_calibration_error_10bin": 0.00048593851603175703, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 23, + "negatives": 2699, + "auroc": 0.820094398891699, + "auprc": 0.04170592955336838, + "brier": 0.008356761784581527, + "calibration": { + "observed_rate": 0.008449669360764144, + "mean_prediction": 0.009170650849183863, + "calibration_in_the_large": 0.0007209814884197186, + "expected_calibration_error_10bin": 0.0013634675820402317, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6924032600053008, + "auprc": 0.0231640131090565, + "brier": 0.00786447088028366, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.006771422327860888, + "calibration_in_the_large": -0.0011823014610038993, + "expected_calibration_error_10bin": 0.0011823014610038993, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.6409712399811409, + "auprc": 0.0019080847525924348, + "brier": 0.001071600316229685, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0018843509601836215, + "calibration_in_the_large": 0.0008246547397668077, + "expected_calibration_error_10bin": 0.0008246547397668077, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 18, + "negatives": 2698, + "auroc": 0.7001070751997365, + "auprc": 0.01334193645051155, + "brier": 0.006648698700618432, + "calibration": { + "observed_rate": 0.0066273932253313695, + "mean_prediction": 0.0073148031360353175, + "calibration_in_the_large": 0.000687409910703948, + "expected_calibration_error_10bin": 0.0006874099107039478, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7618731406714833, + "auprc": 0.03796499532903286, + "brier": 0.013178100564904932, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.011616673492125466, + "calibration_in_the_large": -0.0018005172835558747, + "expected_calibration_error_10bin": 0.0033107137204318954, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6996219831346322, + "auprc": 0.01730732255173051, + "brier": 0.006891164236721169, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004150642257947644, + "calibration_in_the_large": -0.002798882248270352, + "expected_calibration_error_10bin": 0.002798882248270352, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 50, + "negatives": 2365, + "auroc": 0.8207272727272727, + "auprc": 0.10327683907142206, + "brier": 0.019928637994102993, + "calibration": { + "observed_rate": 0.020703933747412008, + "mean_prediction": 0.018842468374836392, + "calibration_in_the_large": -0.0018614653725756158, + "expected_calibration_error_10bin": 0.008256729104919095, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 9, + "negatives": 2798, + "auroc": 0.8238027162258756, + "auprc": 0.021619718961546262, + "brier": 0.0031787027647761155, + "calibration": { + "observed_rate": 0.003206270039187745, + "mean_prediction": 0.0023773173043330218, + "calibration_in_the_large": -0.0008289527348547231, + "expected_calibration_error_10bin": 0.0008289527348547231, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 8, + "negatives": 2794, + "auroc": 0.8768342877594846, + "auprc": 0.03264374718238583, + "brier": 0.002834957234886575, + "calibration": { + "observed_rate": 0.0028551034975017845, + "mean_prediction": 0.0009817019357392022, + "calibration_in_the_large": -0.0018734015617625822, + "expected_calibration_error_10bin": 0.0018734015617625822, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 15, + "negatives": 2720, + "auroc": 0.7683823529411765, + "auprc": 0.016702741231055605, + "brier": 0.005468628023579656, + "calibration": { + "observed_rate": 0.005484460694698354, + "mean_prediction": 0.004332479781384892, + "calibration_in_the_large": -0.0011519809133134625, + "expected_calibration_error_10bin": 0.0012766251875630532, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.659320809248555, + "auprc": 0.014759365112571624, + "brier": 0.0021644982799711625, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003031108551540528, + "calibration_in_the_large": 0.0008681669509637436, + "expected_calibration_error_10bin": 0.0008681669509637436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 4, + "negatives": 2769, + "auroc": 0.6968219573853377, + "auprc": 0.0071472345393548825, + "brier": 0.0014647568241639992, + "calibration": { + "observed_rate": 0.00144248106743599, + "mean_prediction": 0.0032502444531042423, + "calibration_in_the_large": 0.0018077633856682523, + "expected_calibration_error_10bin": 0.0018077633856682523, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.8024149286498353, + "auprc": 0.049706805466744, + "brier": 0.00688452216574515, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.00715955734239126, + "calibration_in_the_large": 0.0002554875749493993, + "expected_calibration_error_10bin": 0.0014633746671809465, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.797752808988764, + "auprc": 0.024394283912709733, + "brier": 0.004292799562204468, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0035420506188888613, + "calibration_in_the_large": -0.0007885159635723439, + "expected_calibration_error_10bin": 0.0008762789201984895, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7491316931982633, + "auprc": 0.00605035187427887, + "brier": 0.0018156014249839033, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0028587568051819555, + "calibration_in_the_large": 0.0010530507741238117, + "expected_calibration_error_10bin": 0.0010530507741238117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6431958274063537, + "auprc": 0.010200156869719168, + "brier": 0.0021292030908247944, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018061092606609136, + "calibration_in_the_large": -0.00032306036318578615, + "expected_calibration_error_10bin": 0.00032306036318578615, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8388766519823788, + "auprc": 0.17031840821694283, + "brier": 0.00351690892278705, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.003287701214204884, + "calibration_in_the_large": -0.0003699432627519558, + "expected_calibration_error_10bin": 0.0003699432627519558, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7620738636363636, + "auprc": 0.01163617588161189, + "brier": 0.0017664281500272177, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0008815836461205079, + "calibration_in_the_large": -0.000890837481139329, + "expected_calibration_error_10bin": 0.000890837481139329, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6170085162528487, + "auprc": 0.005496315397717326, + "brier": 0.0021616261411804712, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0022510670254890703, + "calibration_in_the_large": 9.666846175477965e-05, + "expected_calibration_error_10bin": 9.666846175477965e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8261516654854713, + "auprc": 0.1130639442736531, + "brier": 0.0017106052446420263, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.0020315576686441425, + "calibration_in_the_large": 0.00026289831243614804, + "expected_calibration_error_10bin": 0.0005553073301234948, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8089513839602555, + "auprc": 0.015247831266035137, + "brier": 0.0029994560049764257, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.002900051953372577, + "calibration_in_the_large": 6.91956193315294e-05, + "expected_calibration_error_10bin": 0.0018013866603010227, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7760460693153001, + "auprc": 0.06121385051033434, + "brier": 0.012525018027309633, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.01053327099852565, + "calibration_in_the_large": -0.0022451152738365253, + "expected_calibration_error_10bin": 0.005521585437010558, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9931353767560664, + "auprc": 0.30605135870047984, + "brier": 0.0027379585798884853, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0023555454698576273, + "calibration_in_the_large": -0.0008667960983486027, + "expected_calibration_error_10bin": 0.002083686316216602, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7067359817630869, + "auprc": 0.01968548958775596, + "brier": 0.004688214815102462, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.005955979111893599, + "calibration_in_the_large": 0.0012797201190878436, + "expected_calibration_error_10bin": 0.0012797201190878436, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8477844735909252, + "auprc": 0.019721822457601686, + "brier": 0.0017582504964127905, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0009827126236630923, + "calibration_in_the_large": -0.0007865725851125623, + "expected_calibration_error_10bin": 0.0007865725851125623, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 97, + "negatives": 2388, + "auroc": 0.7610734082785059, + "auprc": 0.10931520812608712, + "brier": 0.03646886480281438, + "calibration": { + "observed_rate": 0.03903420523138833, + "mean_prediction": 0.028318184974342884, + "calibration_in_the_large": -0.010716020257045444, + "expected_calibration_error_10bin": 0.015331791319942448, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8514454277286135, + "auprc": 0.03503867356487426, + "brier": 0.002089475054390204, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0017007097610279376, + "calibration_in_the_large": -0.0004186826798056901, + "expected_calibration_error_10bin": 0.0004186826798056901, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.761517705453213, + "auprc": 0.013679221418214373, + "brier": 0.003990990160906874, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.0034469076140771406, + "calibration_in_the_large": -0.0005676909260688449, + "expected_calibration_error_10bin": 0.0005676909260688449, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 2, + "negatives": 2823, + "auroc": 0.6879206517888771, + "auprc": 0.0016635620834226244, + "brier": 0.0007380861708444089, + "calibration": { + "observed_rate": 0.0007079646017699115, + "mean_prediction": 0.0021278477018179818, + "calibration_in_the_large": 0.0014198831000480703, + "expected_calibration_error_10bin": 0.0014198831000480703, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 10, + "negatives": 2806, + "auroc": 0.697255880256593, + "auprc": 0.011970044531034858, + "brier": 0.0037313726089218163, + "calibration": { + "observed_rate": 0.0035511363636363635, + "mean_prediction": 0.004757305648881397, + "calibration_in_the_large": 0.0012061692852450337, + "expected_calibration_error_10bin": 0.001206169285245034, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9798444130127298, + "auprc": 0.017241379310344827, + "brier": 0.0005369797408460106, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0034228649648279166, + "calibration_in_the_large": 0.0030693831691403946, + "expected_calibration_error_10bin": 0.003069383169140394, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.7864748201438849, + "auprc": 0.018345825257741716, + "brier": 0.005409602032721482, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.00585371921365281, + "calibration_in_the_large": 0.00048699291669395545, + "expected_calibration_error_10bin": 0.00048699291669395496, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 62, + "negatives": 2609, + "auroc": 0.7818964131604001, + "auprc": 0.09313695176141021, + "brier": 0.021978805499533002, + "calibration": { + "observed_rate": 0.023212280044926994, + "mean_prediction": 0.019613623777886696, + "calibration_in_the_large": -0.0035986562670402983, + "expected_calibration_error_10bin": 0.004932866853516743, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6194037444037443, + "auprc": 0.01672427857042306, + "brier": 0.0025765335429825797, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.004016813180198666, + "calibration_in_the_large": 0.001530134672205771, + "expected_calibration_error_10bin": 0.0015301346722057711, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5045985143261408, + "auprc": 0.0027890541661728103, + "brier": 0.0007456554489425171, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0016227945882645095, + "calibration_in_the_large": 0.0009158309968894653, + "expected_calibration_error_10bin": 0.0009158309968894653, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.73789274746043, + "auprc": 0.006340906023296068, + "brier": 0.0010692212553090517, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0019614635531136635, + "calibration_in_the_large": 0.0008995166504587961, + "expected_calibration_error_10bin": 0.0008995166504587961, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 9, + "negatives": 2795, + "auroc": 0.6852315643013317, + "auprc": 0.00731433495584546, + "brier": 0.0032064329317398155, + "calibration": { + "observed_rate": 0.003209700427960057, + "mean_prediction": 0.002469670767854256, + "calibration_in_the_large": -0.0007400296601058009, + "expected_calibration_error_10bin": 0.0007400296601058009, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 28, + "negatives": 2542, + "auroc": 0.8307013600089918, + "auprc": 0.04713084300977598, + "brier": 0.010632934398263912, + "calibration": { + "observed_rate": 0.010894941634241245, + "mean_prediction": 0.010007121979503222, + "calibration_in_the_large": -0.0008878196547380222, + "expected_calibration_error_10bin": 0.0023320127203683458, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 24, + "negatives": 2494, + "auroc": 0.6816860465116279, + "auprc": 0.03932880503056629, + "brier": 0.009382266394790659, + "calibration": { + "observed_rate": 0.009531374106433678, + "mean_prediction": 0.010075923014100976, + "calibration_in_the_large": 0.0005445489076672978, + "expected_calibration_error_10bin": 0.0006437898068006406, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8403689251507627, + "auprc": 0.010480578878886065, + "brier": 0.002117919493573398, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.001030696014934966, + "calibration_in_the_large": -0.0010931977903747686, + "expected_calibration_error_10bin": 0.0010931977903747686, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 30, + "negatives": 2747, + "auroc": 0.7806091493750759, + "auprc": 0.027217000443758393, + "brier": 0.010673092262253128, + "calibration": { + "observed_rate": 0.010803024846957148, + "mean_prediction": 0.00855934429208497, + "calibration_in_the_large": -0.0022436805548721774, + "expected_calibration_error_10bin": 0.0025601758312453335, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 21, + "negatives": 2760, + "auroc": 0.7873188405797101, + "auprc": 0.03144771040460402, + "brier": 0.007462655871951472, + "calibration": { + "observed_rate": 0.007551240560949299, + "mean_prediction": 0.003541600240628735, + "calibration_in_the_large": -0.0040096403203205636, + "expected_calibration_error_10bin": 0.00411983790625531, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9185561769191662, + "auprc": 0.01989706188832344, + "brier": 0.002463315438559507, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0020882828602363005, + "calibration_in_the_large": -0.00039663016780771805, + "expected_calibration_error_10bin": 0.00039663016780771805, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 37, + "negatives": 2717, + "auroc": 0.726457042246516, + "auprc": 0.04141556125427205, + "brier": 0.013188983469587622, + "calibration": { + "observed_rate": 0.013435003631082063, + "mean_prediction": 0.009220556147253074, + "calibration_in_the_large": -0.004214447483828989, + "expected_calibration_error_10bin": 0.005355441327110178, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8512160228898427, + "auprc": 0.06125693876490839, + "brier": 0.0038571212706472895, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.0047480692834446165, + "calibration_in_the_large": 0.0008292947911040394, + "expected_calibration_error_10bin": 0.001125997236995175, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6507981553742462, + "auprc": 0.0332796718842371, + "brier": 0.003562556939292964, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.0020961321172910884, + "calibration_in_the_large": -0.0014386858395841326, + "expected_calibration_error_10bin": 0.0020373746440427182, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.7899645969498911, + "auprc": 0.041308163792566216, + "brier": 0.005660524205840514, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.005259636075878184, + "calibration_in_the_large": -0.0005165372093203719, + "expected_calibration_error_10bin": 0.0006726531623474977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 76, + "negatives": 2529, + "auroc": 0.8358775051507773, + "auprc": 0.12262682895482546, + "brier": 0.027174636528867094, + "calibration": { + "observed_rate": 0.029174664107485603, + "mean_prediction": 0.024381764730667735, + "calibration_in_the_large": -0.004792899376817868, + "expected_calibration_error_10bin": 0.009765119953702751, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 37, + "negatives": 2655, + "auroc": 0.7744083066116965, + "auprc": 0.07702807829975854, + "brier": 0.013259024887676118, + "calibration": { + "observed_rate": 0.0137444279346211, + "mean_prediction": 0.008881739515798263, + "calibration_in_the_large": -0.004862688418822836, + "expected_calibration_error_10bin": 0.004862688418822836, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9617148906139732, + "auprc": 0.03433787308026659, + "brier": 0.0007001364408683159, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0005926150319839626, + "calibration_in_the_large": -0.00011260358578754658, + "expected_calibration_error_10bin": 0.00011260358578754658, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8892475851550584, + "auprc": 0.10932251269209534, + "brier": 0.00631944394636296, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.00805396772784017, + "calibration_in_the_large": 0.003096460645687196, + "expected_calibration_error_10bin": 0.006054722723832157, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7484913373564337, + "auprc": 0.012352501327192787, + "brier": 0.004013208781070257, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.006558262507432999, + "calibration_in_the_large": 0.0026478465813754093, + "expected_calibration_error_10bin": 0.0026478465813754093, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 88, + "negatives": 1955, + "auroc": 0.7553766565914903, + "auprc": 0.15146454911908522, + "brier": 0.03911050824538865, + "calibration": { + "observed_rate": 0.043073910915320604, + "mean_prediction": 0.03843875127787302, + "calibration_in_the_large": -0.004635159637447581, + "expected_calibration_error_10bin": 0.005403095465237788, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 19, + "negatives": 2745, + "auroc": 0.8043332374652479, + "auprc": 0.036528869170946686, + "brier": 0.006757284980169419, + "calibration": { + "observed_rate": 0.006874095513748191, + "mean_prediction": 0.00631077376108045, + "calibration_in_the_large": -0.0005633217526677409, + "expected_calibration_error_10bin": 0.0008821211847059666, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7622267412303, + "auprc": 0.006721131571119636, + "brier": 0.002627561298920839, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.003984782696881999, + "calibration_in_the_large": 0.0014998696688379807, + "expected_calibration_error_10bin": 0.001499869668837981, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9106718898385565, + "auprc": 0.06135671969855195, + "brier": 0.0020912572503917187, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002307105408772162, + "calibration_in_the_large": 0.0001749092467252535, + "expected_calibration_error_10bin": 0.0001749092467252535, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 14, + "negatives": 2771, + "auroc": 0.7437490333556736, + "auprc": 0.02500723633892885, + "brier": 0.0050163325519693176, + "calibration": { + "observed_rate": 0.005026929982046679, + "mean_prediction": 0.007409804183642816, + "calibration_in_the_large": 0.0023828742015961375, + "expected_calibration_error_10bin": 0.0023828742015961383, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.881439661256175, + "auprc": 0.006709030850111331, + "brier": 0.0010703420709846023, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.001877052848332117, + "calibration_in_the_large": 0.0008195977901720888, + "expected_calibration_error_10bin": 0.0008195977901720888, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 19, + "negatives": 2737, + "auroc": 0.9238697767436495, + "auprc": 0.0855702934936116, + "brier": 0.006602859502443458, + "calibration": { + "observed_rate": 0.006894049346879536, + "mean_prediction": 0.00741401742046384, + "calibration_in_the_large": 0.0005199680735843044, + "expected_calibration_error_10bin": 0.0010277494016094652, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 3, + "negatives": 2824, + "auroc": 0.9187913125590179, + "auprc": 0.008432595661362995, + "brier": 0.0010591253749701378, + "calibration": { + "observed_rate": 0.0010611956137247967, + "mean_prediction": 0.001364206013685721, + "calibration_in_the_large": 0.00030301039996092423, + "expected_calibration_error_10bin": 0.00030301039996092423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7745670610939007, + "auprc": 0.01863009142077901, + "brier": 0.0024833428388274076, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.001535680482758693, + "calibration_in_the_large": -0.0009465890207874064, + "expected_calibration_error_10bin": 0.0010471379032211154, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8089633856395625, + "auprc": 0.02367664722566705, + "brier": 0.0031667676871745885, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.0021343343780078215, + "calibration_in_the_large": -0.0010650968342211155, + "expected_calibration_error_10bin": 0.0010650968342211155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6829682196852823, + "auprc": 0.009206509244725632, + "brier": 0.002514678130636777, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.00357890987283135, + "calibration_in_the_large": 0.0010654448818080108, + "expected_calibration_error_10bin": 0.0010654448818080108, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.8131006231920636, + "auprc": 0.06695917108722041, + "brier": 0.014063028778432022, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.013078167520028985, + "calibration_in_the_large": -0.0007450409194035366, + "expected_calibration_error_10bin": 0.007862927979149866, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7182887700534759, + "auprc": 0.007566548641813074, + "brier": 0.00362008934265258, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.0036487842534722596, + "calibration_in_the_large": 9.638638491098065e-05, + "expected_calibration_error_10bin": 0.00013903380529714258, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 30, + "negatives": 2715, + "auroc": 0.8020380601596071, + "auprc": 0.0497803678115776, + "brier": 0.010659274327244736, + "calibration": { + "observed_rate": 0.01092896174863388, + "mean_prediction": 0.01233747743647113, + "calibration_in_the_large": 0.0014085156878372498, + "expected_calibration_error_10bin": 0.0014085156878372502, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 25, + "negatives": 2716, + "auroc": 0.7053166421207658, + "auprc": 0.02268673992307018, + "brier": 0.009077723275702252, + "calibration": { + "observed_rate": 0.009120758847136081, + "mean_prediction": 0.005900248514682626, + "calibration_in_the_large": -0.0032205103324534556, + "expected_calibration_error_10bin": 0.004198575914377091, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7545011541420877, + "auprc": 0.016354455715912763, + "brier": 0.002496785797983844, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.0025311731785814507, + "calibration_in_the_large": 2.4009854799215535e-05, + "expected_calibration_error_10bin": 2.4009854799215535e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 87, + "negatives": 2473, + "auroc": 0.7418510720377781, + "auprc": 0.11601768810633924, + "brier": 0.03164637363600845, + "calibration": { + "observed_rate": 0.033984375, + "mean_prediction": 0.027448837962856486, + "calibration_in_the_large": -0.0065355370371435115, + "expected_calibration_error_10bin": 0.00897098515097241, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 16, + "negatives": 2797, + "auroc": 0.8321192348945299, + "auprc": 0.02088003416525144, + "brier": 0.005633240508875619, + "calibration": { + "observed_rate": 0.005687877710629221, + "mean_prediction": 0.003424849133508191, + "calibration_in_the_large": -0.0022630285771210305, + "expected_calibration_error_10bin": 0.0022630285771210305, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 19, + "negatives": 2791, + "auroc": 0.747949235324068, + "auprc": 0.01813145026895433, + "brier": 0.0067122512456081725, + "calibration": { + "observed_rate": 0.006761565836298933, + "mean_prediction": 0.004528286838662959, + "calibration_in_the_large": -0.002233278997635974, + "expected_calibration_error_10bin": 0.002233278997635974, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.8044587654159443, + "auprc": 0.029366041778550914, + "brier": 0.007986791628182662, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.0071318835676465265, + "calibration_in_the_large": -0.000722454168876144, + "expected_calibration_error_10bin": 0.004611329904358902, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 13, + "negatives": 2800, + "auroc": 0.8310164835164835, + "auprc": 0.04801199966815969, + "brier": 0.004818616758480614, + "calibration": { + "observed_rate": 0.004621400639886242, + "mean_prediction": 0.008583869437437813, + "calibration_in_the_large": 0.00396246879755157, + "expected_calibration_error_10bin": 0.003962468797551571, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7202886417095243, + "auprc": 0.01325840390551132, + "brier": 0.003258988477192703, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.0046077496218394935, + "calibration_in_the_large": 0.0013888655016678197, + "expected_calibration_error_10bin": 0.0013888655016678195, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 5, + "negatives": 2769, + "auroc": 0.9518237630913687, + "auprc": 0.021508335221978796, + "brier": 0.0018197701081329514, + "calibration": { + "observed_rate": 0.001802451333813987, + "mean_prediction": 0.0013406277365517185, + "calibration_in_the_large": -0.0004618235972622684, + "expected_calibration_error_10bin": 0.0007607895371395372, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 21, + "negatives": 2766, + "auroc": 0.935423337809455, + "auprc": 0.21784517178968343, + "brier": 0.006998945094325317, + "calibration": { + "observed_rate": 0.007534983853606028, + "mean_prediction": 0.005868321509564297, + "calibration_in_the_large": -0.001666662344041731, + "expected_calibration_error_10bin": 0.004369275406142369, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9638191996682562, + "auprc": 0.0498827630225644, + "brier": 0.0028435875346951443, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.004365556407353279, + "calibration_in_the_large": 0.0018320783038426026, + "expected_calibration_error_10bin": 0.0018320783038426028, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 11, + "negatives": 2787, + "auroc": 0.804873275271553, + "auprc": 0.03609662557867655, + "brier": 0.0038952522232596955, + "calibration": { + "observed_rate": 0.003931379556826304, + "mean_prediction": 0.003301895846287801, + "calibration_in_the_large": -0.0006294837105385032, + "expected_calibration_error_10bin": 0.0012425457346124141, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 32, + "negatives": 2649, + "auroc": 0.8118511702529256, + "auprc": 0.19378002069783987, + "brier": 0.010810156602191884, + "calibration": { + "observed_rate": 0.011935844834017158, + "mean_prediction": 0.006868032906450775, + "calibration_in_the_large": -0.005067811927566383, + "expected_calibration_error_10bin": 0.005966975006178981, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6563050333783839, + "auprc": 0.01563411511137501, + "brier": 0.006559183804837115, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.004462894820939626, + "calibration_in_the_large": -0.002128097489569345, + "expected_calibration_error_10bin": 0.002128097489569345, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 5, + "negatives": 2820, + "auroc": 0.8368085106382979, + "auprc": 0.018603498402333482, + "brier": 0.0017713378415489772, + "calibration": { + "observed_rate": 0.0017699115044247787, + "mean_prediction": 0.0019073049269258085, + "calibration_in_the_large": 0.0001373934225010298, + "expected_calibration_error_10bin": 0.0001373934225010298, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6093971631205674, + "auprc": 0.004355515763282754, + "brier": 0.0014214770214168542, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0013732253202049952, + "calibration_in_the_large": -4.320527469585476e-05, + "expected_calibration_error_10bin": 4.320527469585476e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.899831265961328, + "auprc": 0.10131353160684771, + "brier": 0.005705661870804826, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.004863526822883259, + "calibration_in_the_large": -0.0009398826801998023, + "expected_calibration_error_10bin": 0.00385022877564158, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8564463705308776, + "auprc": 0.0527041390020925, + "brier": 0.0035414053486680333, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0024614042119569515, + "calibration_in_the_large": -0.001137012484696521, + "expected_calibration_error_10bin": 0.001137012484696521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7339298570400082, + "auprc": 0.017597332770557993, + "brier": 0.0025333235566000296, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0038163962902139086, + "calibration_in_the_large": 0.0013029312991905692, + "expected_calibration_error_10bin": 0.0013029312991905692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 3, + "negatives": 2828, + "auroc": 0.644035832154644, + "auprc": 0.00191216252600314, + "brier": 0.001063899844820228, + "calibration": { + "observed_rate": 0.0010596962204168139, + "mean_prediction": 0.0009200818241776014, + "calibration_in_the_large": -0.00013961439623921248, + "expected_calibration_error_10bin": 0.00013961439623921248, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8716265499635303, + "auprc": 0.06418597131917524, + "brier": 0.009130291324756179, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.008697916826042137, + "calibration_in_the_large": -0.000695146757772892, + "expected_calibration_error_10bin": 0.0034949277648298727, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.823122570083896, + "auprc": 0.07437955864747957, + "brier": 0.01257334053029915, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.010629064830513004, + "calibration_in_the_large": -0.0024570856602176387, + "expected_calibration_error_10bin": 0.002622670288386241, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 14, + "negatives": 2809, + "auroc": 0.8843767482072928, + "auprc": 0.06567434221793869, + "brier": 0.004813952102177502, + "calibration": { + "observed_rate": 0.00495926319518243, + "mean_prediction": 0.0047676121076095195, + "calibration_in_the_large": -0.00019165108757291088, + "expected_calibration_error_10bin": 0.0009749671264464837, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 19, + "negatives": 2788, + "auroc": 0.741542701804727, + "auprc": 0.017285446359268455, + "brier": 0.006714827674927692, + "calibration": { + "observed_rate": 0.006768792304951906, + "mean_prediction": 0.006304573352106654, + "calibration_in_the_large": -0.0004642189528452521, + "expected_calibration_error_10bin": 0.0004642189528452521, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 46, + "negatives": 2655, + "auroc": 0.6885695570293949, + "auprc": 0.07170698247927092, + "brier": 0.01656010151249728, + "calibration": { + "observed_rate": 0.017030729359496483, + "mean_prediction": 0.013031860325952768, + "calibration_in_the_large": -0.003998869033543715, + "expected_calibration_error_10bin": 0.007510483229052436, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.6304424778761062, + "auprc": 0.0038851887876183732, + "brier": 0.0017763342978492822, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0015577287111768348, + "calibration_in_the_large": -0.00020905574111998492, + "expected_calibration_error_10bin": 0.00020905574111998492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7373782371109527, + "auprc": 0.02647050143215857, + "brier": 0.004644379719768362, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.006247252061534228, + "calibration_in_the_large": 0.0019889128138408287, + "expected_calibration_error_10bin": 0.002447173264192794, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 3, + "negatives": 2814, + "auroc": 0.697228144989339, + "auprc": 0.01033378544943527, + "brier": 0.0011701872246789428, + "calibration": { + "observed_rate": 0.0010649627263045794, + "mean_prediction": 0.0052008484570904776, + "calibration_in_the_large": 0.004135885730785898, + "expected_calibration_error_10bin": 0.004135885730785898, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7776887464387464, + "auprc": 0.024664128905706757, + "brier": 0.002849863827268892, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.002971946451028758, + "calibration_in_the_large": 0.0001310373601196668, + "expected_calibration_error_10bin": 0.0003017351594552571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7274011299435028, + "auprc": 0.009030714616453156, + "brier": 0.0010578278167581142, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0011726870586884347, + "calibration_in_the_large": 0.00011448600048737643, + "expected_calibration_error_10bin": 0.00011448600048737643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.1274051294115046e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0014716969282408568, + "calibration_in_the_large": 0.0014716969282408568, + "expected_calibration_error_10bin": 0.0014716969282408568, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 13, + "negatives": 2780, + "auroc": 0.7116768123962368, + "auprc": 0.014391408110260833, + "brier": 0.004639928617620634, + "calibration": { + "observed_rate": 0.004654493376297888, + "mean_prediction": 0.005433370494702943, + "calibration_in_the_large": 0.0007788771184050556, + "expected_calibration_error_10bin": 0.0007788771184050556, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 24, + "negatives": 2774, + "auroc": 0.8627132900745014, + "auprc": 0.042383305855266167, + "brier": 0.008454741060431982, + "calibration": { + "observed_rate": 0.008577555396711936, + "mean_prediction": 0.005153587377014438, + "calibration_in_the_large": -0.0034239680196974983, + "expected_calibration_error_10bin": 0.0042299185349200154, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 12, + "negatives": 2777, + "auroc": 0.8658024246789101, + "auprc": 0.11771126891665708, + "brier": 0.004217845733057782, + "calibration": { + "observed_rate": 0.004302617425600574, + "mean_prediction": 0.006498389464710802, + "calibration_in_the_large": 0.0021957720391102284, + "expected_calibration_error_10bin": 0.00315330689428911, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6759144176136364, + "auprc": 0.005625016714109678, + "brier": 0.0029226143295822027, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.004847737971043584, + "calibration_in_the_large": 0.0020148767812418838, + "expected_calibration_error_10bin": 0.002014876781241884, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.7504102048377707, + "auprc": 0.05284797712261844, + "brier": 0.005087361833847708, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.006887530709067172, + "calibration_in_the_large": 0.0017271916010686466, + "expected_calibration_error_10bin": 0.001727191601068647, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8551608659251285, + "auprc": 0.010373141499022307, + "brier": 0.0010779624861262556, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0017755470206731751, + "calibration_in_the_large": 0.000700278203468874, + "expected_calibration_error_10bin": 0.000700278203468874, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7027432126696832, + "auprc": 0.011027851513259638, + "brier": 0.004796604566419503, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.003855570160024516, + "calibration_in_the_large": -0.000901107483590559, + "expected_calibration_error_10bin": 0.0013222981336357977, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 35, + "negatives": 2639, + "auroc": 0.6910409787257078, + "auprc": 0.030519057757657862, + "brier": 0.012998699186841014, + "calibration": { + "observed_rate": 0.013089005235602094, + "mean_prediction": 0.011091246356571136, + "calibration_in_the_large": -0.001997758879030958, + "expected_calibration_error_10bin": 0.0036774919736864537, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8692926425360776, + "auprc": 0.025677830940988838, + "brier": 0.0010561241571962181, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.001752442851709332, + "calibration_in_the_large": 0.0006889901753534299, + "expected_calibration_error_10bin": 0.0006889901753534299, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 41, + "negatives": 2676, + "auroc": 0.6443545152940319, + "auprc": 0.03209808886956696, + "brier": 0.01501434543634209, + "calibration": { + "observed_rate": 0.015090172984909826, + "mean_prediction": 0.01201182738858766, + "calibration_in_the_large": -0.0030783455963221667, + "expected_calibration_error_10bin": 0.005961899825209068, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9459700427960057, + "auprc": 0.009939328170473043, + "brier": 0.0007145680650219309, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0013496902826181118, + "calibration_in_the_large": 0.0006369319077072066, + "expected_calibration_error_10bin": 0.0006369319077072066, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6983052572650008, + "auprc": 0.005118019059371377, + "brier": 0.002488235207628899, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.002231504150378764, + "calibration_in_the_large": -0.00025605803867596215, + "expected_calibration_error_10bin": 0.00025605803867596215, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.7495341408225742, + "auprc": 0.019321320234943304, + "brier": 0.0039774766863508474, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.002913439287908949, + "calibration_in_the_large": -0.0010967685137680465, + "expected_calibration_error_10bin": 0.0010967685137680465, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 10, + "negatives": 2680, + "auroc": 0.7125746268656716, + "auprc": 0.01599593765643209, + "brier": 0.0037364023551742288, + "calibration": { + "observed_rate": 0.0037174721189591076, + "mean_prediction": 0.006599323747994676, + "calibration_in_the_large": 0.002881851629035568, + "expected_calibration_error_10bin": 0.002881851629035568, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7340287769784173, + "auprc": 0.07269303571876432, + "brier": 0.0017834073051012915, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0023777450620015134, + "calibration_in_the_large": 0.000582412925556271, + "expected_calibration_error_10bin": 0.000582412925556271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 46, + "negatives": 2521, + "auroc": 0.7016280633978925, + "auprc": 0.05888091063766967, + "brier": 0.01747238322749693, + "calibration": { + "observed_rate": 0.017919750681729647, + "mean_prediction": 0.019464518202037557, + "calibration_in_the_large": 0.0015447675203079103, + "expected_calibration_error_10bin": 0.0015447675203079133, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 11, + "negatives": 2770, + "auroc": 0.6731211027239908, + "auprc": 0.018024468242942744, + "brier": 0.003927753179298759, + "calibration": { + "observed_rate": 0.003955411722402014, + "mean_prediction": 0.00392808405551493, + "calibration_in_the_large": -2.7327666887083484e-05, + "expected_calibration_error_10bin": 2.7327666887083484e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 42, + "negatives": 2655, + "auroc": 0.7337727558066541, + "auprc": 0.05138994658595118, + "brier": 0.015393507075142247, + "calibration": { + "observed_rate": 0.01557285873192436, + "mean_prediction": 0.01760769231334877, + "calibration_in_the_large": 0.002034833581424412, + "expected_calibration_error_10bin": 0.002780882260571539, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 16, + "negatives": 2689, + "auroc": 0.7301970992934176, + "auprc": 0.019082297362990573, + "brier": 0.00596257963892948, + "calibration": { + "observed_rate": 0.005914972273567467, + "mean_prediction": 0.004906124483365927, + "calibration_in_the_large": -0.0010088477902015407, + "expected_calibration_error_10bin": 0.0019545940112767586, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8268136557610242, + "auprc": 0.027855137535794227, + "brier": 0.002118872425524367, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003029442268344924, + "calibration_in_the_large": 0.000900272644498224, + "expected_calibration_error_10bin": 0.0009002726444982242, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5893827288249599, + "auprc": 0.0036111694318754625, + "brier": 0.0025439031839464494, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0029722407823792414, + "calibration_in_the_large": 0.0004433390482751951, + "expected_calibration_error_10bin": 0.0004433390482751951, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 15, + "negatives": 2788, + "auroc": 0.7566714490674319, + "auprc": 0.045170175166526064, + "brier": 0.005300740898839391, + "calibration": { + "observed_rate": 0.005351409204423832, + "mean_prediction": 0.0035285349220581567, + "calibration_in_the_large": -0.001822874282365675, + "expected_calibration_error_10bin": 0.002032445845453204, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8177083333333334, + "auprc": 0.003707115406300763, + "brier": 0.0010641915593885248, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0006448675888390092, + "calibration_in_the_large": -0.0004193395768225729, + "expected_calibration_error_10bin": 0.0004193395768225729, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.876875, + "auprc": 0.03620986797515482, + "brier": 0.0014183272990657507, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.002216426870986308, + "calibration_in_the_large": 0.0007898933474485047, + "expected_calibration_error_10bin": 0.0007898933474485047, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.6666835289356536, + "auprc": 0.009565881859076763, + "brier": 0.002495040828940164, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0025394276945952246, + "calibration_in_the_large": 6.68031802893254e-05, + "expected_calibration_error_10bin": 0.00019079770414655127, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7092017062766606, + "auprc": 0.08501590936193154, + "brier": 0.007425245519581653, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005222053591449034, + "calibration_in_the_large": -0.00239768516036519, + "expected_calibration_error_10bin": 0.00239768516036519, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.883694109297374, + "auprc": 0.03137612243950438, + "brier": 0.0027956911250396387, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0018011637351925051, + "calibration_in_the_large": -0.0010296925988485424, + "expected_calibration_error_10bin": 0.0010296925988485424, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 101, + "negatives": 2191, + "auroc": 0.8203406374411973, + "auprc": 0.203923676835226, + "brier": 0.03876652044160974, + "calibration": { + "observed_rate": 0.04406631762652705, + "mean_prediction": 0.03622120033129729, + "calibration_in_the_large": -0.007845117295229763, + "expected_calibration_error_10bin": 0.012464997778746404, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 49, + "negatives": 2391, + "auroc": 0.8609496496214546, + "auprc": 0.2743153867474732, + "brier": 0.017403930478264797, + "calibration": { + "observed_rate": 0.020081967213114754, + "mean_prediction": 0.011650728367281087, + "calibration_in_the_large": -0.008431238845833668, + "expected_calibration_error_10bin": 0.008431238845833668, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8126340243030736, + "auprc": 0.012604162054988596, + "brier": 0.0028406168788086975, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0017552307563203399, + "calibration_in_the_large": -0.001095802743323281, + "expected_calibration_error_10bin": 0.001095802743323281, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9258397409955483, + "auprc": 0.06245893266010028, + "brier": 0.002441663776899417, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.001494808234907667, + "calibration_in_the_large": -0.0009778162793982323, + "expected_calibration_error_10bin": 0.0012343702243551476, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.8119504396482814, + "auprc": 0.020772290998494494, + "brier": 0.0032034092431418994, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.004563453888012966, + "calibration_in_the_large": 0.001336490818812536, + "expected_calibration_error_10bin": 0.001336490818812536, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.720917478547003, + "auprc": 0.015603627039236402, + "brier": 0.003929181034888441, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.00465004969552017, + "calibration_in_the_large": 0.0007617499429574269, + "expected_calibration_error_10bin": 0.0007617499429574265, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 13, + "negatives": 2794, + "auroc": 0.8423820274213975, + "auprc": 0.12461035431481429, + "brier": 0.00453087804562022, + "calibration": { + "observed_rate": 0.004631278945493409, + "mean_prediction": 0.003387161069556152, + "calibration_in_the_large": -0.001244117875937257, + "expected_calibration_error_10bin": 0.001244117875937257, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 82, + "negatives": 2438, + "auroc": 0.762215130354749, + "auprc": 0.08505486412186207, + "brier": 0.030921256452210333, + "calibration": { + "observed_rate": 0.03253968253968254, + "mean_prediction": 0.031530348419711654, + "calibration_in_the_large": -0.001009334119970888, + "expected_calibration_error_10bin": 0.00849983495138567, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8152756261296152, + "auprc": 0.048576896666495784, + "brier": 0.009084267400704045, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.00842171574158497, + "calibration_in_the_large": -0.0007878007587987599, + "expected_calibration_error_10bin": 0.003010420200666275, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9377140158224111, + "auprc": 0.1461037056625292, + "brier": 0.0020475429458818068, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0013640234261558172, + "calibration_in_the_large": -0.0007568673479693155, + "expected_calibration_error_10bin": 0.0007568673479693155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7734216493614989, + "auprc": 0.005871376416509141, + "brier": 0.0021468042667378063, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.001967960058410563, + "calibration_in_the_large": -0.0001756626639902942, + "expected_calibration_error_10bin": 0.0001756626639902942, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962854707100232, + "auprc": 0.3221595655806182, + "brier": 0.0018847860209599842, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.001242154872864124, + "calibration_in_the_large": -0.0009452312007778739, + "expected_calibration_error_10bin": 0.0014799145254922816, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8690071725179312, + "auprc": 0.059552172612601456, + "brier": 0.0011885042654329633, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0009028439444571063, + "calibration_in_the_large": -0.00022837777499990733, + "expected_calibration_error_10bin": 0.0005554249996776132, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 4, + "negatives": 2806, + "auroc": 0.7271026372059872, + "auprc": 0.008770520765804354, + "brier": 0.0014194783771565834, + "calibration": { + "observed_rate": 0.0014234875444839859, + "mean_prediction": 0.0015467914409229215, + "calibration_in_the_large": 0.00012330389643893562, + "expected_calibration_error_10bin": 0.00012330389643893562, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.9792993630573248, + "auprc": 0.027777777777777776, + "brier": 0.0007245950422673391, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.003357911667110358, + "calibration_in_the_large": 0.002650698088609651, + "expected_calibration_error_10bin": 0.002650698088609651, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "360": { + "A04": { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.8023723336297707, + "auprc": 0.06068096464546893, + "brier": 0.010247093002035315, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.009711647379418131, + "calibration_in_the_large": -0.0007125079045502379, + "expected_calibration_error_10bin": 0.003131963656787573, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8450626680053114, + "auprc": 0.13014938650550884, + "brier": 0.0037900506745679402, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.0060989959299212245, + "calibration_in_the_large": 0.002195518286202275, + "expected_calibration_error_10bin": 0.0023032559924242263, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.7520133409257301, + "auprc": 0.07764246682033242, + "brier": 0.027868063144439917, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.02686307850993356, + "calibration_in_the_large": -0.0016654500185949682, + "expected_calibration_error_10bin": 0.012900661588936636, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7433392539964476, + "auprc": 0.015978229939282395, + "brier": 0.001580495508615533, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.0027390174093595556, + "calibration_in_the_large": 0.0013200745218107796, + "expected_calibration_error_10bin": 0.0013200745218107796, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5903784931022286, + "auprc": 0.0008628127696289905, + "brier": 0.00036216233934848206, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.001243054276248915, + "calibration_in_the_large": 0.0008894474869985613, + "expected_calibration_error_10bin": 0.0008894474869985613, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.9282173756308579, + "auprc": 0.08368532934787405, + "brier": 0.0028070936345488576, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.0028964609241346017, + "calibration_in_the_large": 2.083188028125871e-05, + "expected_calibration_error_10bin": 0.0005077061796842137, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.881453236793625, + "auprc": 0.09359318296026746, + "brier": 0.005964997407059547, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.002367995699375543, + "calibration_in_the_large": -0.003784736837721815, + "expected_calibration_error_10bin": 0.003784736837721815, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9911473087818697, + "auprc": 0.2763071895424837, + "brier": 0.0017239945352351491, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003388946126618559, + "calibration_in_the_large": -0.0014285143657757546, + "expected_calibration_error_10bin": 0.0015231687328713887, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.0853717929093408, + "brier": 0.0017082121411185931, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0018221274966978298, + "calibration_in_the_large": 5.596712933647347e-05, + "expected_calibration_error_10bin": 0.000244245733592221, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9015525758645024, + "auprc": 0.006434240362811792, + "brier": 0.0007158835029280062, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.002246735664659498, + "calibration_in_the_large": 0.001541517046887989, + "expected_calibration_error_10bin": 0.001541517046887989, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7689994216310005, + "auprc": 0.04620351588638252, + "brier": 0.01353080789041306, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.011877710630701612, + "calibration_in_the_large": -0.0018506130687203533, + "expected_calibration_error_10bin": 0.005126793921506319, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.7245124877064841, + "auprc": 0.05064883436727917, + "brier": 0.02254331270695538, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.022587999840259353, + "calibration_in_the_large": -0.00019019284084595064, + "expected_calibration_error_10bin": 0.007228871094183949, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 87, + "negatives": 2543, + "auroc": 0.7659565812846624, + "auprc": 0.09219961163331006, + "brier": 0.031323683342112066, + "calibration": { + "observed_rate": 0.03307984790874525, + "mean_prediction": 0.027654448843794827, + "calibration_in_the_large": -0.005425399064950421, + "expected_calibration_error_10bin": 0.008223203968118606, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.8885350318471338, + "auprc": 0.020168683535020167, + "brier": 0.0007286610438742772, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0014393241303820425, + "calibration_in_the_large": 0.0007321105518813352, + "expected_calibration_error_10bin": 0.0007321105518813352, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9774982282069454, + "auprc": 0.023268398268398268, + "brier": 0.0007025202193878297, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008538693711001692, + "calibration_in_the_large": 0.00014565407364974423, + "expected_calibration_error_10bin": 0.00014565407364974423, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.8907053730583142, + "auprc": 0.02961294332226195, + "brier": 0.0024855002208637616, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0009176672009847868, + "calibration_in_the_large": -0.001571664235715071, + "expected_calibration_error_10bin": 0.0017557415177127597, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.888680926916221, + "auprc": 0.13508084262073622, + "brier": 0.0013604610916817192, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.000962451104189605, + "calibration_in_the_large": -0.000461543199833179, + "expected_calibration_error_10bin": 0.0006279456498535286, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.9593292900463789, + "auprc": 0.026546822742474916, + "brier": 0.0007108246794527475, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.0015811260692212296, + "calibration_in_the_large": 0.0008681135915028696, + "expected_calibration_error_10bin": 0.0008681135915028696, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.050706033376123234, + "brier": 0.0006984705122892971, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009194199000743886, + "calibration_in_the_large": 0.00021245630869934438, + "expected_calibration_error_10bin": 0.00021245630869934438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8962331539597124, + "auprc": 0.11089455614333879, + "brier": 0.007966180993082305, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.005174510972317245, + "calibration_in_the_large": -0.0031527880863359047, + "expected_calibration_error_10bin": 0.004571309612962269, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.9019885940986858, + "auprc": 0.160794653325237, + "brier": 0.012397460037561547, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.009418467048559385, + "calibration_in_the_large": -0.003977622741447856, + "expected_calibration_error_10bin": 0.009090689176523888, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9026197775469356, + "auprc": 0.17492797920432748, + "brier": 0.01053438795754849, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.012258488479141877, + "calibration_in_the_large": 0.001716867250497748, + "expected_calibration_error_10bin": 0.007265085283272709, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5241305890702626, + "auprc": 0.0011773752563226246, + "brier": 0.0008024695507060659, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0010815136219733189, + "calibration_in_the_large": 0.00037229376381729044, + "expected_calibration_error_10bin": 0.0006063670574632904, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9606788574160392, + "auprc": 0.3363728470111449, + "brier": 0.0010473695799058037, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0009295788987195591, + "calibration_in_the_large": -0.0001449196686156845, + "expected_calibration_error_10bin": 0.0001449196686156845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 11, + "negatives": 2785, + "auroc": 0.6422392688101844, + "auprc": 0.0062521786259911, + "brier": 0.0040712606658459645, + "calibration": { + "observed_rate": 0.003934191702432046, + "mean_prediction": 0.0060559997355996015, + "calibration_in_the_large": 0.0021218080331675557, + "expected_calibration_error_10bin": 0.0021218080331675557, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7883894399750059, + "auprc": 0.11502162383297283, + "brier": 0.020734076507593634, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.017602922881658687, + "calibration_in_the_large": -0.004552540881014991, + "expected_calibration_error_10bin": 0.004777886592502814, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.810309771558426, + "auprc": 0.026448654150971723, + "brier": 0.006586212696195528, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.007688975548096522, + "calibration_in_the_large": 0.0012718632486312812, + "expected_calibration_error_10bin": 0.001878299888070251, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.0006913530260861084, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009631279220413209, + "calibration_in_the_large": 0.0002579093042698118, + "expected_calibration_error_10bin": 0.0002579093042698118, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8814505294768452, + "auprc": 0.22593018216301958, + "brier": 0.011550824240787398, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.012316892227641412, + "calibration_in_the_large": -0.0010260576461414948, + "expected_calibration_error_10bin": 0.0028243948218044605, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7955312877615783, + "auprc": 0.10952298881064618, + "brier": 0.027245480502466737, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.027203516061727082, + "calibration_in_the_large": -0.0020081686121424663, + "expected_calibration_error_10bin": 0.002563678391776062, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8425337769711635, + "auprc": 0.12983536964747283, + "brier": 0.02741215080529358, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.025823160262329503, + "calibration_in_the_large": -0.0024717019863674423, + "expected_calibration_error_10bin": 0.013123468552326576, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 121, + "negatives": 2313, + "auroc": 0.8191822719590671, + "auprc": 0.19996313945850352, + "brier": 0.043423911950250284, + "calibration": { + "observed_rate": 0.04971240755957272, + "mean_prediction": 0.04688417352649905, + "calibration_in_the_large": -0.0028282340330736747, + "expected_calibration_error_10bin": 0.0068908394638628025, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8381087135950949, + "auprc": 0.019148245222093605, + "brier": 0.0021091556643614956, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.001289888129352462, + "calibration_in_the_large": -0.0008280080937326068, + "expected_calibration_error_10bin": 0.0008280080937326068, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.8133299393322303, + "auprc": 0.16821605335597725, + "brier": 0.02146402028954222, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.013862839458505678, + "calibration_in_the_large": -0.009627093427400363, + "expected_calibration_error_10bin": 0.012793961832276646, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 86, + "negatives": 2500, + "auroc": 0.8376837209302326, + "auprc": 0.25085584966650737, + "brier": 0.028607021055105382, + "calibration": { + "observed_rate": 0.033255993812838364, + "mean_prediction": 0.020058081894771082, + "calibration_in_the_large": -0.013197911918067282, + "expected_calibration_error_10bin": 0.013376040744713132, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8924024182988326, + "auprc": 0.2141821797548124, + "brier": 0.009861339738704835, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.011714754620694668, + "calibration_in_the_large": 0.0023857269924205393, + "expected_calibration_error_10bin": 0.007742814542682188, + "nonempty_bins": 10 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7218850368411109, + "auprc": 0.06573069669864896, + "brier": 0.024896036661290085, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.02405226506379851, + "calibration_in_the_large": -0.0017666174024827987, + "expected_calibration_error_10bin": 0.006052228244360686, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8136594588207492, + "auprc": 0.030344762249265776, + "brier": 0.0010962894274434293, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.001725780532993125, + "calibration_in_the_large": 0.0006634575868174875, + "expected_calibration_error_10bin": 0.0006634575868174875, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8604527767951893, + "auprc": 0.010742749223357445, + "brier": 0.0014255679311028799, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0019867897276974653, + "calibration_in_the_large": 0.0005738614338083802, + "expected_calibration_error_10bin": 0.0005738614338083802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9868483132814343, + "auprc": 0.0970740087658191, + "brier": 0.002093037299356732, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.001995225487643898, + "calibration_in_the_large": -0.00012341858015271203, + "expected_calibration_error_10bin": 0.0008431127219774155, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7333333333333333, + "auprc": 0.008044026179926013, + "brier": 0.0012917342477800943, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.002450454551166915, + "calibration_in_the_large": 0.0017454845123935627, + "expected_calibration_error_10bin": 0.0020610532565875717, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.7424299416964454, + "auprc": 0.02823701344803842, + "brier": 0.010331791394976713, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.006089743030318665, + "calibration_in_the_large": -0.004394127937423271, + "expected_calibration_error_10bin": 0.004394127937423271, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.725397973950796, + "auprc": 0.009652332671141114, + "brier": 0.003958167325990614, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0029204628179142164, + "calibration_in_the_large": -0.0010435011460497479, + "expected_calibration_error_10bin": 0.0010435011460497479, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4739471805852962, + "auprc": 0.002683716440660162, + "brier": 0.0014275608169382712, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.0014561061192734665, + "calibration_in_the_large": 3.058936945165604e-05, + "expected_calibration_error_10bin": 3.058936945165604e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7499615975422427, + "auprc": 0.06431174431037512, + "brier": 0.01061131671625204, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.008945213874438083, + "calibration_in_the_large": -0.001993710464668572, + "expected_calibration_error_10bin": 0.0022299808315180965, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6168116578391284, + "auprc": 0.008238915066368554, + "brier": 0.004618788943534262, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0033538291723441594, + "calibration_in_the_large": -0.0012626481003831136, + "expected_calibration_error_10bin": 0.0012626481003831136, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.808686365254539, + "auprc": 0.021840803115832162, + "brier": 0.0017648591830373376, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0017681681252192398, + "calibration_in_the_large": -8.662009819850438e-06, + "expected_calibration_error_10bin": 8.662009819850438e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7893543382265187, + "auprc": 0.013695756103909787, + "brier": 0.003325461027474435, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.006549300614333814, + "calibration_in_the_large": 0.0033373091796443065, + "expected_calibration_error_10bin": 0.0033373091796443056, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.7797208343246887, + "auprc": 0.00988999082445669, + "brier": 0.0032824461300269654, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.0035714038202946043, + "calibration_in_the_large": 0.0003696962429200045, + "expected_calibration_error_10bin": 0.00036969624292000446, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 42, + "negatives": 2706, + "auroc": 0.8232235244430366, + "auprc": 0.07597109390899864, + "brier": 0.015345990971261424, + "calibration": { + "observed_rate": 0.015283842794759825, + "mean_prediction": 0.017651390760141654, + "calibration_in_the_large": 0.0023675479653818294, + "expected_calibration_error_10bin": 0.006920239817625261, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7715237752161384, + "auprc": 0.03058469239928285, + "brier": 0.008679032846936574, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.010985523103848078, + "calibration_in_the_large": 0.0024140945324195064, + "expected_calibration_error_10bin": 0.0024140945324195072, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.807866736438165, + "auprc": 0.0949325702048829, + "brier": 0.014737325909105342, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.015717754599750066, + "calibration_in_the_large": 0.0005662394482349141, + "expected_calibration_error_10bin": 0.00382639807490084, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.7387624906421899, + "auprc": 0.009889214443820078, + "brier": 0.003931774422260759, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.003342841463124819, + "calibration_in_the_large": -0.0005801257266041396, + "expected_calibration_error_10bin": 0.000662893896971774, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6409678611008497, + "auprc": 0.027769118115867464, + "brier": 0.010845380802472063, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.010017031712895978, + "calibration_in_the_large": -0.000943874388675086, + "expected_calibration_error_10bin": 0.0017861226616928533, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7499233269950316, + "auprc": 0.054139404766579885, + "brier": 0.01724691847858319, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.0185570114961482, + "calibration_in_the_large": 0.0008429667892734631, + "expected_calibration_error_10bin": 0.0008429667892734671, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.763180026281209, + "auprc": 0.1307555051077618, + "brier": 0.029728433891797634, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.02946796625234943, + "calibration_in_the_large": -0.0023386495237319935, + "expected_calibration_error_10bin": 0.01070630871130672, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8597690941385435, + "auprc": 0.021375998646509485, + "brier": 0.002947643903845374, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0032272789096756353, + "calibration_in_the_large": 0.0003934142267142467, + "expected_calibration_error_10bin": 0.0008696993185508431, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.8057319647403086, + "auprc": 0.2106150907553717, + "brier": 0.02851952806778951, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.025438373758021604, + "calibration_in_the_large": -0.006977758921963319, + "expected_calibration_error_10bin": 0.009171078036485897, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 97, + "negatives": 2490, + "auroc": 0.7957810623939056, + "auprc": 0.12254525861386074, + "brier": 0.0345805177193787, + "calibration": { + "observed_rate": 0.03749516814843448, + "mean_prediction": 0.03666708232301414, + "calibration_in_the_large": -0.0008280858254203424, + "expected_calibration_error_10bin": 0.005349436117848078, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 157, + "negatives": 2028, + "auroc": 0.7989421977663036, + "auprc": 0.2576594849449849, + "brier": 0.06099434453124545, + "calibration": { + "observed_rate": 0.07185354691075514, + "mean_prediction": 0.04595258208314059, + "calibration_in_the_large": -0.025900964827614552, + "expected_calibration_error_10bin": 0.02918108257396334, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8136569117297169, + "auprc": 0.07616429224752454, + "brier": 0.005169569169695457, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.0057384859264695935, + "calibration_in_the_large": 0.00041367229494669675, + "expected_calibration_error_10bin": 0.0006276370793501914, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.590458152958153, + "auprc": 0.0038938237829137514, + "brier": 0.002884119967481301, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.002814418627575761, + "calibration_in_the_large": -6.327921415085792e-05, + "expected_calibration_error_10bin": 6.327921415085792e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8306826304503216, + "auprc": 0.012012015655705966, + "brier": 0.0015091520853648282, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003454607537079387, + "calibration_in_the_large": 0.002027055788328495, + "expected_calibration_error_10bin": 0.002027055788328495, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.8583649801951897, + "auprc": 0.03009590585070968, + "brier": 0.006652757817957641, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.008225991743529946, + "calibration_in_the_large": 0.0016542502320293986, + "expected_calibration_error_10bin": 0.0016542502320293989, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 32, + "negatives": 2718, + "auroc": 0.7290976821192053, + "auprc": 0.025972612657955245, + "brier": 0.01172945853251549, + "calibration": { + "observed_rate": 0.011636363636363636, + "mean_prediction": 0.013516901722558197, + "calibration_in_the_large": 0.0018805380861945612, + "expected_calibration_error_10bin": 0.0018805380861945619, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46443736730360935, + "auprc": 0.0011385078964177228, + "brier": 0.0007373795760650636, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.00283885834666326, + "calibration_in_the_large": 0.0021316447681625525, + "expected_calibration_error_10bin": 0.0021316447681625525, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8248016469662973, + "auprc": 0.09017034810065273, + "brier": 0.006401430333992114, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.008006883019885436, + "calibration_in_the_large": 0.0013662580198854366, + "expected_calibration_error_10bin": 0.0018708949590347866, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.8837495837495838, + "auprc": 0.044019348083961234, + "brier": 0.004147179583552174, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.005745258973727448, + "calibration_in_the_large": 0.0017321250809875718, + "expected_calibration_error_10bin": 0.0017321250809875727, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.9244684403873984, + "auprc": 0.04012734684124409, + "brier": 0.0046003291696359435, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.004724197271058803, + "calibration_in_the_large": 4.288650404403894e-05, + "expected_calibration_error_10bin": 0.0001618232606024229, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9455887648541592, + "auprc": 0.04163343932933015, + "brier": 0.0035503329526026957, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0020421828230727597, + "calibration_in_the_large": -0.0015459047262634442, + "expected_calibration_error_10bin": 0.0019087806534295836, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.947291296625222, + "auprc": 0.042763890714007324, + "brier": 0.0027972309645495825, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.001013412338210123, + "calibration_in_the_large": -0.0018204523447512655, + "expected_calibration_error_10bin": 0.0018204523447512655, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.864453139839684, + "auprc": 0.10965310252741031, + "brier": 0.012740865578400741, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.014069764959307845, + "calibration_in_the_large": 0.00046712687192120017, + "expected_calibration_error_10bin": 0.0020101832176540628, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.9392727072067101, + "auprc": 0.15396052208428174, + "brier": 0.004413514458231156, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0028483356064033715, + "calibration_in_the_large": -0.001792863965178207, + "expected_calibration_error_10bin": 0.0018841073022905462, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7464336661911555, + "auprc": 0.014443889823421194, + "brier": 0.0014194493101481363, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.0013956793424425933, + "calibration_in_the_large": -2.8822082058831263e-05, + "expected_calibration_error_10bin": 2.8822082058831263e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6553191489361702, + "auprc": 0.0010277492291880781, + "brier": 0.0003668434875410225, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.0017777913525970617, + "calibration_in_the_large": 0.0014233071271450943, + "expected_calibration_error_10bin": 0.0014233071271450943, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9230587121212122, + "auprc": 0.010645112093945404, + "brier": 0.0010670269114576262, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0016027213530896325, + "calibration_in_the_large": 0.0005385141874280504, + "expected_calibration_error_10bin": 0.0005385141874280504, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7321300929235168, + "auprc": 0.018172569871851757, + "brier": 0.002834260610346893, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0012891543713250352, + "calibration_in_the_large": -0.0015618791283185858, + "expected_calibration_error_10bin": 0.0015618791283185858, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.8773480662983425, + "auprc": 0.022418643119853216, + "brier": 0.0032716248511455294, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.004178651555490211, + "calibration_in_the_large": 0.0008746867977809602, + "expected_calibration_error_10bin": 0.0008746867977809602, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.7076806599832915, + "auprc": 0.07643712563046333, + "brier": 0.03201091621804844, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.036104914538128384, + "calibration_in_the_large": 0.003377641810855654, + "expected_calibration_error_10bin": 0.010242693330510519, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.812051649928264, + "auprc": 0.023697111800676653, + "brier": 0.004268928971646505, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.0044393879408744395, + "calibration_in_the_large": 0.00015367365516015356, + "expected_calibration_error_10bin": 0.00015367365516015432, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7119582926034539, + "auprc": 0.0125979559840992, + "brier": 0.0039267337771081955, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.0040727623581727065, + "calibration_in_the_large": 0.0001455934899113713, + "expected_calibration_error_10bin": 0.0001455934899113713, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7223580987540379, + "auprc": 0.10417551332733492, + "brier": 0.033556700833423415, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.04051044126539431, + "calibration_in_the_large": 0.004907415008162448, + "expected_calibration_error_10bin": 0.004907415008162447, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 20, + "negatives": 2714, + "auroc": 0.7356300663227708, + "auprc": 0.046505565206267384, + "brier": 0.007304966168040583, + "calibration": { + "observed_rate": 0.0073152889539136795, + "mean_prediction": 0.010756165740854633, + "calibration_in_the_large": 0.003440876786940953, + "expected_calibration_error_10bin": 0.0034408767869409528, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9474869606448554, + "auprc": 0.06703704309174251, + "brier": 0.002117662963395139, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.004015043755996283, + "calibration_in_the_large": 0.0018858741321495834, + "expected_calibration_error_10bin": 0.0018858741321495837, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9255511384170582, + "auprc": 0.025513760991818395, + "brier": 0.0028519414074572153, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.001703886985626079, + "calibration_in_the_large": -0.001178995897256804, + "expected_calibration_error_10bin": 0.001178995897256804, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 8, + "negatives": 2766, + "auroc": 0.6332248734634852, + "auprc": 0.004759022335211709, + "brier": 0.0029573246493919065, + "calibration": { + "observed_rate": 0.002883922134102379, + "mean_prediction": 0.004442057416879312, + "calibration_in_the_large": 0.0015581352827769325, + "expected_calibration_error_10bin": 0.0015581352827769325, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7911843099813025, + "auprc": 0.009133898643403963, + "brier": 0.003251484705772869, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.004180684270549052, + "calibration_in_the_large": 0.0009686928358595449, + "expected_calibration_error_10bin": 0.0009686928358595453, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 24, + "negatives": 2699, + "auroc": 0.7790076571569717, + "auprc": 0.04716398133692553, + "brier": 0.008672902771169227, + "calibration": { + "observed_rate": 0.008813808299669483, + "mean_prediction": 0.00706316002481198, + "calibration_in_the_large": -0.0017506482748575027, + "expected_calibration_error_10bin": 0.002204618859707624, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7854366543665436, + "auprc": 0.02189548224965788, + "brier": 0.00545398107588661, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.004180900073469266, + "calibration_in_the_large": -0.0013236870824940372, + "expected_calibration_error_10bin": 0.0013236870824940372, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5625957316450526, + "auprc": 0.005017450222635679, + "brier": 0.002535299972440691, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.0021956995980807457, + "calibration_in_the_large": -0.00029984407393351476, + "expected_calibration_error_10bin": 0.00044944557529806085, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.710691823899371, + "auprc": 0.09443609117196507, + "brier": 0.03629551297118459, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.029602950662057686, + "calibration_in_the_large": -0.008841973743989828, + "expected_calibration_error_10bin": 0.01159375304279278, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.852413912011245e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.000631042661943025, + "calibration_in_the_large": 0.000631042661943025, + "expected_calibration_error_10bin": 0.000631042661943025, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8676897892367506, + "auprc": 0.11035952920597002, + "brier": 0.012416470240555302, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.009318667783790952, + "calibration_in_the_large": -0.0037674827069396916, + "expected_calibration_error_10bin": 0.0051833104657259795, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.7532564287430906, + "auprc": 0.039954307517730686, + "brier": 0.00530073748243112, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.0031934934559452494, + "calibration_in_the_large": -0.002184778326055468, + "expected_calibration_error_10bin": 0.002184778326055468, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7380361573909962, + "auprc": 0.007177169807395134, + "brier": 0.001066034860868376, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0013941451596035993, + "calibration_in_the_large": 0.0003318222134279618, + "expected_calibration_error_10bin": 0.0003318222134279618, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 70, + "negatives": 2467, + "auroc": 0.7677746250506688, + "auprc": 0.12300832579081752, + "brier": 0.02592676046421627, + "calibration": { + "observed_rate": 0.027591643673630272, + "mean_prediction": 0.032865389894816514, + "calibration_in_the_large": 0.005273746221186242, + "expected_calibration_error_10bin": 0.0052737462211862466, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 2.945167129991991e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002388173484490356, + "calibration_in_the_large": 0.002388173484490356, + "expected_calibration_error_10bin": 0.002388173484490356, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 47, + "negatives": 2686, + "auroc": 0.7674228862026901, + "auprc": 0.060916942135361266, + "brier": 0.01702765456721098, + "calibration": { + "observed_rate": 0.017197219173069888, + "mean_prediction": 0.01789778974582821, + "calibration_in_the_large": 0.000700570572758321, + "expected_calibration_error_10bin": 0.005883082694972283, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7956043956043956, + "auprc": 0.06930439304904933, + "brier": 0.02025310570462626, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.015331263676452215, + "calibration_in_the_large": -0.005753073672945374, + "expected_calibration_error_10bin": 0.0064291085272888725, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9376760563380282, + "auprc": 0.0056179775280898875, + "brier": 0.0003519419928459035, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.00043387431587051345, + "calibration_in_the_large": 8.188557951007699e-05, + "expected_calibration_error_10bin": 8.188557951007699e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7028780372729417, + "auprc": 0.0062400418213647176, + "brier": 0.0021156506749388597, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009918227532969438, + "calibration_in_the_large": -0.0011268213144996664, + "expected_calibration_error_10bin": 0.0011268213144996664, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.3419180390691393e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.00179405470990963, + "calibration_in_the_large": 0.00179405470990963, + "expected_calibration_error_10bin": 0.00179405470990963, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6613095238095238, + "auprc": 0.011363588691957228, + "brier": 0.0021291691901966095, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0011962559250070926, + "calibration_in_the_large": -0.0009420191997256231, + "expected_calibration_error_10bin": 0.0009420191997256231, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7995191137083029, + "auprc": 0.02690198810618548, + "brier": 0.004311530978190497, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004498829417868116, + "calibration_in_the_large": 0.00013519305423175237, + "expected_calibration_error_10bin": 0.00013519305423175237, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 14, + "negatives": 2776, + "auroc": 0.6027171675586661, + "auprc": 0.013453021692771261, + "brier": 0.005021746779130388, + "calibration": { + "observed_rate": 0.005017921146953405, + "mean_prediction": 0.005201350370374855, + "calibration_in_the_large": 0.00018342922342145032, + "expected_calibration_error_10bin": 0.0001834292234214503, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.47299465240641714, + "auprc": 0.0016388214803730577, + "brier": 0.0014485714718128397, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0026555544593804725, + "calibration_in_the_large": 0.0012315601553576886, + "expected_calibration_error_10bin": 0.0012315601553576886, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8325636288998358, + "auprc": 0.009522826389876783, + "brier": 0.002500395263174318, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0024917128064430023, + "calibration_in_the_large": -1.634882021410997e-05, + "expected_calibration_error_10bin": 1.634882021410997e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8996568453437463, + "auprc": 0.01495675175637863, + "brier": 0.002131306106152719, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.001783321571811123, + "calibration_in_the_large": -0.0003420769404099183, + "expected_calibration_error_10bin": 0.0003420769404099183, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 13, + "negatives": 2754, + "auroc": 0.8814591363610972, + "auprc": 0.03343945932368102, + "brier": 0.005048407387853435, + "calibration": { + "observed_rate": 0.0046982291290206, + "mean_prediction": 0.009667014720192716, + "calibration_in_the_large": 0.004968785591172116, + "expected_calibration_error_10bin": 0.004968785591172116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.7067529769040198, + "auprc": 0.07381134880129878, + "brier": 0.027980890704209765, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.01962115156719724, + "calibration_in_the_large": -0.009083788352695951, + "expected_calibration_error_10bin": 0.0134749367506312, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8131334445315274, + "auprc": 0.08055422550496483, + "brier": 0.02037836990441192, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.012940747009587633, + "calibration_in_the_large": -0.008359701420905639, + "expected_calibration_error_10bin": 0.010192732511335897, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8297911710282845, + "auprc": 0.10838888674952572, + "brier": 0.011301648647836334, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.00853284091828978, + "calibration_in_the_large": -0.0032226449751271494, + "expected_calibration_error_10bin": 0.006482863493034509, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.8975662869723365, + "auprc": 0.18408146248941315, + "brier": 0.01031450762857579, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.013409176802164465, + "calibration_in_the_large": 0.002041373355153097, + "expected_calibration_error_10bin": 0.0024080377862980558, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.9352448140836866, + "auprc": 0.04532948617382083, + "brier": 0.00535012692518372, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.002781339727462334, + "calibration_in_the_large": -0.00265799081647072, + "expected_calibration_error_10bin": 0.00265799081647072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.811835019046368, + "auprc": 0.0374280957783018, + "brier": 0.008658068738292979, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.012110719747412166, + "calibration_in_the_large": 0.0034997126339715075, + "expected_calibration_error_10bin": 0.0034997126339715084, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8880314397999286, + "auprc": 0.020579257969471514, + "brier": 0.00354436833927153, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.0024629082252055315, + "calibration_in_the_large": -0.0010970775348514285, + "expected_calibration_error_10bin": 0.0010970775348514285, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8246719835348598, + "auprc": 0.07515844378867038, + "brier": 0.019634462988594163, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.015089409878225914, + "calibration_in_the_large": -0.005418838004074576, + "expected_calibration_error_10bin": 0.006450237421678387, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7649817518248175, + "auprc": 0.06746171506739529, + "brier": 0.007012169741045658, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.006906560116566244, + "calibration_in_the_large": -0.0003398166950279594, + "expected_calibration_error_10bin": 0.0003398166950279596, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 38, + "negatives": 2678, + "auroc": 0.8438347549231555, + "auprc": 0.06045036915443811, + "brier": 0.013786803028531738, + "calibration": { + "observed_rate": 0.013991163475699559, + "mean_prediction": 0.012989000203632525, + "calibration_in_the_large": -0.0010021632720670342, + "expected_calibration_error_10bin": 0.00535036395348201, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7627987794541448, + "auprc": 0.07945637434952915, + "brier": 0.005949913253317946, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.0043839650342059906, + "calibration_in_the_large": -0.0017026801501835546, + "expected_calibration_error_10bin": 0.0017026801501835546, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.7672775574635198, + "auprc": 0.025091755910675785, + "brier": 0.0069200312250799175, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.00665315783386465, + "calibration_in_the_large": -0.0002484040985726915, + "expected_calibration_error_10bin": 0.001797342803460688, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.7262781401220282, + "auprc": 0.009873311621794719, + "brier": 0.0026828423200792417, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.005626995993595882, + "calibration_in_the_large": 0.003056301906192283, + "expected_calibration_error_10bin": 0.003056301906192283, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9180903469238025, + "auprc": 0.059542732877897686, + "brier": 0.004960648145724446, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.005467617406183819, + "calibration_in_the_large": 0.00035812835508892884, + "expected_calibration_error_10bin": 0.0003581283550889285, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.816716085989622, + "auprc": 0.04095865014543618, + "brier": 0.008728832199534853, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.00948301810391709, + "calibration_in_the_large": 0.0006659718144240694, + "expected_calibration_error_10bin": 0.0017205503877926588, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.692966472303207, + "auprc": 0.022839895821130794, + "brier": 0.00786737547744364, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.007121500123524912, + "calibration_in_the_large": -0.0008322236653398752, + "expected_calibration_error_10bin": 0.0008322236653398752, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7664543524416136, + "auprc": 0.0071899919346651246, + "brier": 0.0017666812648063491, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0020542367148437867, + "calibration_in_the_large": 0.0002880763474824304, + "expected_calibration_error_10bin": 0.0002880763474824304, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6780828600979646, + "auprc": 0.013172268937522413, + "brier": 0.0070283317549185795, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.007817002016754714, + "calibration_in_the_large": 0.0008214202789049345, + "expected_calibration_error_10bin": 0.0008214202789049346, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7624707819804505, + "auprc": 0.038276508016300344, + "brier": 0.013192381195992484, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.012315517899535028, + "calibration_in_the_large": -0.0011016728761463132, + "expected_calibration_error_10bin": 0.0032308333030938692, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.698691480081419, + "auprc": 0.017143224631558353, + "brier": 0.006892302031488136, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004416567256642597, + "calibration_in_the_large": -0.002532957249575399, + "expected_calibration_error_10bin": 0.002532957249575399, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8213890426120642, + "auprc": 0.10051974147185949, + "brier": 0.02087898079772493, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.020059557540391952, + "calibration_in_the_large": -0.0014725335569165353, + "expected_calibration_error_10bin": 0.0098916612852978, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8103682516982481, + "auprc": 0.019893867663913316, + "brier": 0.0035330176909115357, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0025108844065080773, + "calibration_in_the_large": -0.0010516378592560836, + "expected_calibration_error_10bin": 0.0010516378592560836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8718224131757967, + "auprc": 0.02973399296085344, + "brier": 0.0031893278513696233, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0010902725372390581, + "calibration_in_the_large": -0.0021217188974504493, + "expected_calibration_error_10bin": 0.0021217188974504493, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7323004781169548, + "auprc": 0.016037808141421923, + "brier": 0.005835646374479737, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.004435704567091785, + "calibration_in_the_large": -0.00141438684058646, + "expected_calibration_error_10bin": 0.0016165282022414628, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6597422928709056, + "auprc": 0.013969248081178866, + "brier": 0.002166144773964905, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.003170955136142428, + "calibration_in_the_large": 0.0010080135355656438, + "expected_calibration_error_10bin": 0.0010080135355656438, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7302023121387283, + "auprc": 0.007822578449803483, + "brier": 0.0018241632420472505, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.003478261388059709, + "calibration_in_the_large": 0.0016751600537647214, + "expected_calibration_error_10bin": 0.0016751600537647214, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.8024727020625109, + "auprc": 0.04960792543034729, + "brier": 0.006910964059484127, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.007615584400606315, + "calibration_in_the_large": 0.0007115146331644548, + "expected_calibration_error_10bin": 0.0019639913553519787, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.7982360758729008, + "auprc": 0.025140927535836997, + "brier": 0.004292394350583228, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0036812273893662073, + "calibration_in_the_large": -0.000649339193094998, + "expected_calibration_error_10bin": 0.0008149235420303319, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7495658465991317, + "auprc": 0.006057939446011082, + "brier": 0.00181671567152953, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.0029675474239268863, + "calibration_in_the_large": 0.0011618413928687426, + "expected_calibration_error_10bin": 0.0011618413928687426, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6421289710763395, + "auprc": 0.00971744141176846, + "brier": 0.0021306321588435203, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018731888426211816, + "calibration_in_the_large": -0.00025598078122551814, + "expected_calibration_error_10bin": 0.00025598078122551814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8395374449339207, + "auprc": 0.1706149131269828, + "brier": 0.003512519565902664, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0035033865102585848, + "calibration_in_the_large": -0.00015425796669825496, + "expected_calibration_error_10bin": 0.0005039048653438645, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7605823863636364, + "auprc": 0.010898154664128783, + "brier": 0.0017665586376138028, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0009604260870822686, + "calibration_in_the_large": -0.0008119950401775683, + "expected_calibration_error_10bin": 0.0008119950401775683, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6178481468154012, + "auprc": 0.005633829021949285, + "brier": 0.0021630316352341974, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.002347646025083911, + "calibration_in_the_large": 0.00019324746134962052, + "expected_calibration_error_10bin": 0.00019324746134962052, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8265768958185684, + "auprc": 0.11296297119948728, + "brier": 0.0017123335852944506, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.002189368578560594, + "calibration_in_the_large": 0.00042070922235259967, + "expected_calibration_error_10bin": 0.0007433800895705066, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8270816076992861, + "auprc": 0.020629519572815627, + "brier": 0.0033408287191722913, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0030025421819990976, + "calibration_in_the_large": -0.00018217119379708088, + "expected_calibration_error_10bin": 0.002101053557380375, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7757502113271344, + "auprc": 0.06171519233733674, + "brier": 0.012549978684953616, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.0109767135052188, + "calibration_in_the_large": -0.0018016727671433756, + "expected_calibration_error_10bin": 0.0056730313146622115, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9934546615581098, + "auprc": 0.3109625582186558, + "brier": 0.002693716031874606, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.002559217218164881, + "calibration_in_the_large": -0.000663124350041349, + "expected_calibration_error_10bin": 0.002237113488385877, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 13, + "negatives": 2767, + "auroc": 0.7058185760751716, + "auprc": 0.020086658616820817, + "brier": 0.004700825059120297, + "calibration": { + "observed_rate": 0.004676258992805755, + "mean_prediction": 0.006351461711833083, + "calibration_in_the_large": 0.001675202719027328, + "expected_calibration_error_10bin": 0.0016752027190273277, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8470046082949308, + "auprc": 0.02004320859987955, + "brier": 0.0017577291304649752, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.0010657384553601496, + "calibration_in_the_large": -0.0007035467534155049, + "expected_calibration_error_10bin": 0.0007035467534155049, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 103, + "negatives": 2382, + "auroc": 0.7609172352514408, + "auprc": 0.1153284870539963, + "brier": 0.0385476243424645, + "calibration": { + "observed_rate": 0.04144869215291751, + "mean_prediction": 0.029714079927095592, + "calibration_in_the_large": -0.011734612225821915, + "expected_calibration_error_10bin": 0.013873703705528246, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.848495575221239, + "auprc": 0.03528597373593324, + "brier": 0.002088577071648415, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.0018064964613419784, + "calibration_in_the_large": -0.00031289597949164935, + "expected_calibration_error_10bin": 0.00031289597949164935, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 11, + "negatives": 2729, + "auroc": 0.7609180852126987, + "auprc": 0.013611792710891978, + "brier": 0.003992574751173278, + "calibration": { + "observed_rate": 0.0040145985401459855, + "mean_prediction": 0.003622921669972979, + "calibration_in_the_large": -0.00039167687017300666, + "expected_calibration_error_10bin": 0.00039167687017300666, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7094259390503189, + "auprc": 0.002350359393678055, + "brier": 0.0010978512275583515, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0022791213894044504, + "calibration_in_the_large": 0.001217174486749583, + "expected_calibration_error_10bin": 0.001217174486749583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6970993818354732, + "auprc": 0.014836552857172747, + "brier": 0.0044401388535656, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.004961394181460899, + "calibration_in_the_large": 0.0007000305450972633, + "expected_calibration_error_10bin": 0.0016668918220552405, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9791371994342292, + "auprc": 0.016666666666666666, + "brier": 0.0005646562976237984, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.0036388179041439, + "calibration_in_the_large": 0.003285336108456378, + "expected_calibration_error_10bin": 0.0032853361084563782, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.786978417266187, + "auprc": 0.018425310512525, + "brier": 0.005423194298927054, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.006202215796380897, + "calibration_in_the_large": 0.0008354894994220419, + "expected_calibration_error_10bin": 0.0008354894994220411, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7826524741081703, + "auprc": 0.09354286792737633, + "brier": 0.022717123659619497, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.02092412218961291, + "calibration_in_the_large": -0.003036941082569796, + "expected_calibration_error_10bin": 0.005587580877693187, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6235754985754985, + "auprc": 0.0166732236888682, + "brier": 0.002599676720145865, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.004347909076423546, + "calibration_in_the_large": 0.0018612305684306508, + "expected_calibration_error_10bin": 0.0018612305684306504, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5060134418111072, + "auprc": 0.0028487078701847908, + "brier": 0.0007478507307161426, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0017260205961937248, + "calibration_in_the_large": 0.0010190570048186805, + "expected_calibration_error_10bin": 0.0010190570048186805, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7394283014410583, + "auprc": 0.006752691243709069, + "brier": 0.0010711866381749942, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0021072460109926557, + "calibration_in_the_large": 0.0010452991083377884, + "expected_calibration_error_10bin": 0.0010452991083377884, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.695025053686471, + "auprc": 0.007814108299436975, + "brier": 0.003561389204153254, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.002611857307704651, + "calibration_in_the_large": -0.0009544765011398572, + "expected_calibration_error_10bin": 0.0009544765011398572, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8133333333333334, + "auprc": 0.04526761722568743, + "brier": 0.011419949796221717, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.010462208314159465, + "calibration_in_the_large": -0.0012109434368132981, + "expected_calibration_error_10bin": 0.0028522408467837705, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6740794223826715, + "auprc": 0.03734205199836682, + "brier": 0.009787091170041794, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.010607605677179313, + "calibration_in_the_large": 0.0006790909829775659, + "expected_calibration_error_10bin": 0.0007345031108942979, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7990976376356078, + "auprc": 0.009775700483209021, + "brier": 0.0024716661035145164, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0010996205195227412, + "calibration_in_the_large": -0.001378255586671949, + "expected_calibration_error_10bin": 0.001378255586671949, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7776237577238446, + "auprc": 0.02730400110873399, + "brier": 0.011033357168582463, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.008926948057198245, + "calibration_in_the_large": -0.0022361776179908085, + "expected_calibration_error_10bin": 0.0027955186047000724, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.7915313554245358, + "auprc": 0.032215222017955514, + "brier": 0.008170000744526014, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.003837576872141155, + "calibration_in_the_large": -0.004432829456517601, + "expected_calibration_error_10bin": 0.0045506579372803, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9182003050330453, + "auprc": 0.019872625141504213, + "brier": 0.002463475355490618, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.00212382403097651, + "calibration_in_the_large": -0.0003610889970675087, + "expected_calibration_error_10bin": 0.0003610889970675087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.7194220144496387, + "auprc": 0.04144442103174628, + "brier": 0.01391674969100144, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.00979471029116482, + "calibration_in_the_large": -0.004366509752408165, + "expected_calibration_error_10bin": 0.005845023943477107, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 11, + "negatives": 2796, + "auroc": 0.8515086487189492, + "auprc": 0.05917022183631327, + "brier": 0.0038710134885367436, + "calibration": { + "observed_rate": 0.003918774492340577, + "mean_prediction": 0.00500510969563865, + "calibration_in_the_large": 0.0010863352032980727, + "expected_calibration_error_10bin": 0.0013237479088961895, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6488471089038667, + "auprc": 0.032931856220854414, + "brier": 0.0035720293596732244, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.002230825958480114, + "calibration_in_the_large": -0.001303991998395107, + "expected_calibration_error_10bin": 0.0019628421790301247, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.7898738198983297, + "auprc": 0.0405336735811637, + "brier": 0.005663510426994042, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.005564241521018046, + "calibration_in_the_large": -0.00021193176418050994, + "expected_calibration_error_10bin": 0.0005318446217078468, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8340817045254446, + "auprc": 0.12346351941066257, + "brier": 0.029000153889959995, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.02556246136870821, + "calibration_in_the_large": -0.005531588535322499, + "expected_calibration_error_10bin": 0.011515356981754238, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.772130244425759, + "auprc": 0.07679130030714647, + "brier": 0.013953709782078192, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.009422046963277387, + "calibration_in_the_large": -0.005065323021863773, + "expected_calibration_error_10bin": 0.005065323021863772, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9599505998588568, + "auprc": 0.03249475890985325, + "brier": 0.000699683463664672, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006412101880910368, + "calibration_in_the_large": -6.400842968047236e-05, + "expected_calibration_error_10bin": 6.400842968047236e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8886883579054398, + "auprc": 0.11512909218067831, + "brier": 0.006420790981495129, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.00825565999770283, + "calibration_in_the_large": 0.003298152915549856, + "expected_calibration_error_10bin": 0.006192350631450963, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7473557848290182, + "auprc": 0.012113299413223096, + "brier": 0.004028014297763783, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.006935114821650275, + "calibration_in_the_large": 0.0030246988955926852, + "expected_calibration_error_10bin": 0.0030246988955926844, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.747044310775848, + "auprc": 0.15178768641490523, + "brier": 0.041721164135782, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.04044727177876109, + "calibration_in_the_large": -0.005563496698967739, + "expected_calibration_error_10bin": 0.005563496698967734, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7638317448743989, + "auprc": 0.034698179415059094, + "brier": 0.00747750569889124, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.0066996142743158205, + "calibration_in_the_large": -0.0008980702408795489, + "expected_calibration_error_10bin": 0.001306034701075471, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7626842907981698, + "auprc": 0.006821474064613575, + "brier": 0.0026444704761978575, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.004208607409500488, + "calibration_in_the_large": 0.0017236943814564693, + "expected_calibration_error_10bin": 0.0017236943814564695, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9110280151946819, + "auprc": 0.052025061857519476, + "brier": 0.002092160984876129, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.0023892995020183662, + "calibration_in_the_large": 0.00025710333997145795, + "expected_calibration_error_10bin": 0.00025710333997145795, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.7588447653429603, + "auprc": 0.026827792073947924, + "brier": 0.0053670944605858474, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.0077836389808152275, + "calibration_in_the_large": 0.0023976425714795, + "expected_calibration_error_10bin": 0.0023976425714794997, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.880616325570454, + "auprc": 0.006658116572006839, + "brier": 0.0010715925718926328, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.001938636014782299, + "calibration_in_the_large": 0.0008811809566222708, + "expected_calibration_error_10bin": 0.0008811809566222708, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.9039609993906155, + "auprc": 0.08035508682091155, + "brier": 0.007331463193953909, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.007937372113098463, + "calibration_in_the_large": 0.00031763336128423896, + "expected_calibration_error_10bin": 0.0008162656444485529, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9334927382217499, + "auprc": 0.01772214182565956, + "brier": 0.0014061525559054414, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.0015065267133140916, + "calibration_in_the_large": 9.159922834769615e-05, + "expected_calibration_error_10bin": 9.159922834769615e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7742623533594027, + "auprc": 0.018629856130734198, + "brier": 0.0024839761603492193, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0016320235203483666, + "calibration_in_the_large": -0.0008502459831977328, + "expected_calibration_error_10bin": 0.0009531273200862557, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8048026628625773, + "auprc": 0.023057126947918775, + "brier": 0.0031671020575787644, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002449478037551183, + "calibration_in_the_large": -0.0007499531746777543, + "expected_calibration_error_10bin": 0.0007499531746777543, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6830196441427543, + "auprc": 0.00869625662524081, + "brier": 0.0025187756389550837, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0038416090790159936, + "calibration_in_the_large": 0.0013281440879926542, + "expected_calibration_error_10bin": 0.0013281440879926542, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 38, + "negatives": 2711, + "auroc": 0.8133432992292609, + "auprc": 0.06717132972837148, + "brier": 0.014247866430619316, + "calibration": { + "observed_rate": 0.013823208439432522, + "mean_prediction": 0.01401881493432498, + "calibration_in_the_large": 0.00019560649489245782, + "expected_calibration_error_10bin": 0.008206658498182955, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7185383244206773, + "auprc": 0.007579883868832264, + "brier": 0.003631605582600465, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.003874369137660482, + "calibration_in_the_large": 0.0003219712690992029, + "expected_calibration_error_10bin": 0.0003219712690992035, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 32, + "negatives": 2713, + "auroc": 0.8026976594176188, + "auprc": 0.05229390622725762, + "brier": 0.011351241853483426, + "calibration": { + "observed_rate": 0.011657559198542805, + "mean_prediction": 0.01295075072291543, + "calibration_in_the_large": 0.0012931915243726243, + "expected_calibration_error_10bin": 0.0012931915243726251, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7079614676299759, + "auprc": 0.023168882096340083, + "brier": 0.009442853019988455, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.006353403320319152, + "calibration_in_the_large": -0.003132185880702373, + "expected_calibration_error_10bin": 0.004155449402724903, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.754655039753783, + "auprc": 0.01684726937476041, + "brier": 0.002497291616937208, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.002629298877775813, + "calibration_in_the_large": 0.0001221355539935778, + "expected_calibration_error_10bin": 0.0001221355539935778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.745272154745839, + "auprc": 0.11879799275727616, + "brier": 0.03267826154595756, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.028859314102851384, + "calibration_in_the_large": -0.006296935897148616, + "expected_calibration_error_10bin": 0.00874966154649428, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.8204929437487577, + "auprc": 0.021015804256821712, + "brier": 0.006338290511265425, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.0035867135208737613, + "calibration_in_the_large": -0.002812148903584113, + "expected_calibration_error_10bin": 0.002812148903584113, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.7419624716146767, + "auprc": 0.018230025867093623, + "brier": 0.007420412711228779, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.0048663635253604854, + "calibration_in_the_large": -0.0026069460831804397, + "expected_calibration_error_10bin": 0.0026069460831804397, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.8050966665576237, + "auprc": 0.029431668622986996, + "brier": 0.00799919012753662, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.007541833581727372, + "calibration_in_the_large": -0.000312504154795298, + "expected_calibration_error_10bin": 0.004296562773085473, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8030929413566069, + "auprc": 0.045091619535051315, + "brier": 0.005201613558043639, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.008911527832290796, + "calibration_in_the_large": 0.003934634835490228, + "expected_calibration_error_10bin": 0.003934634835490227, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7190926125264123, + "auprc": 0.01322759540207808, + "brier": 0.0032656406077978366, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.004860315578682304, + "calibration_in_the_large": 0.0016414314585106301, + "expected_calibration_error_10bin": 0.0016414314585106301, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9582731213872833, + "auprc": 0.03116556559366965, + "brier": 0.002166473441775538, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0013965382947634735, + "calibration_in_the_large": -0.0007664033058133108, + "expected_calibration_error_10bin": 0.0010730923445678516, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.9165543317442052, + "auprc": 0.20864885452017115, + "brier": 0.007354207590354391, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.006077919722241246, + "calibration_in_the_large": -0.0018158728862984015, + "expected_calibration_error_10bin": 0.0046958165568730375, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9638710346257516, + "auprc": 0.0499437898326486, + "brier": 0.00285567787502071, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.004496496422375782, + "calibration_in_the_large": 0.0019630183188651053, + "expected_calibration_error_10bin": 0.0019630183188651053, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.7999521416606844, + "auprc": 0.034680490569998064, + "brier": 0.00425346622427654, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.003415442015869461, + "calibration_in_the_large": -0.0008733356824865072, + "expected_calibration_error_10bin": 0.0015007263979471862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 33, + "negatives": 2648, + "auroc": 0.804723976929415, + "auprc": 0.19336771370885847, + "brier": 0.011177468092931837, + "calibration": { + "observed_rate": 0.012308839985080195, + "mean_prediction": 0.007252998755416628, + "calibration_in_the_large": -0.005055841229663567, + "expected_calibration_error_10bin": 0.006642120939560293, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6550763812098128, + "auprc": 0.015658484799826906, + "brier": 0.00656291120095886, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.0047458454330907215, + "calibration_in_the_large": -0.0018451468774182498, + "expected_calibration_error_10bin": 0.0019190767870636038, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8608844743999055, + "auprc": 0.024164611042896366, + "brier": 0.002115824637267864, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.001955541933446801, + "calibration_in_the_large": -0.0001683518718629336, + "expected_calibration_error_10bin": 0.00024454536488737133, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6113475177304964, + "auprc": 0.004236808057164439, + "brier": 0.0014225796477340513, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0014593212438948704, + "calibration_in_the_large": 4.289064899402049e-05, + "expected_calibration_error_10bin": 4.289064899402049e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.8997400583728566, + "auprc": 0.10112229339768558, + "brier": 0.005711740947559708, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.005027390062172982, + "calibration_in_the_large": -0.0007760194409100795, + "expected_calibration_error_10bin": 0.0037342369786980117, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8549295774647887, + "auprc": 0.048713883436298226, + "brier": 0.0035387295954929445, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0026796428272557607, + "calibration_in_the_large": -0.0009187738693977117, + "expected_calibration_error_10bin": 0.0009187738693977117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7335698858377044, + "auprc": 0.017405180847569226, + "brier": 0.0025389941102805366, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.004003911012376983, + "calibration_in_the_large": 0.0014904460213536436, + "expected_calibration_error_10bin": 0.001490446021353644, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.7294835514679873, + "auprc": 0.007233034193193556, + "brier": 0.00141182361581062, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009876936641509879, + "calibration_in_the_large": -0.0004252346297380972, + "expected_calibration_error_10bin": 0.0004252346297380972, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8715003085900241, + "auprc": 0.06383953938260495, + "brier": 0.009142071156453846, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.009122649909909472, + "calibration_in_the_large": -0.00027041367390555696, + "expected_calibration_error_10bin": 0.0036757720147766832, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8073552550339581, + "auprc": 0.07201492159801365, + "brier": 0.012937363853708262, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.011049166118400565, + "calibration_in_the_large": -0.0024004885526281525, + "expected_calibration_error_10bin": 0.0025685704117473914, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.8879392212725546, + "auprc": 0.060044558843232745, + "brier": 0.005162963008134799, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.005069263453118645, + "calibration_in_the_large": -0.00024423282743395863, + "expected_calibration_error_10bin": 0.0011000537730666146, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7324955116696589, + "auprc": 0.01841564066952909, + "brier": 0.007768236495453161, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.006540227243410109, + "calibration_in_the_large": -0.0012973217412710451, + "expected_calibration_error_10bin": 0.0012973217412710451, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 48, + "negatives": 2653, + "auroc": 0.7002842693805754, + "auprc": 0.07851474374620408, + "brier": 0.01718038848785753, + "calibration": { + "observed_rate": 0.017771195853387635, + "mean_prediction": 0.013546003547097075, + "calibration_in_the_large": -0.00422519230629056, + "expected_calibration_error_10bin": 0.0074065847153055525, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631858407079646, + "auprc": 0.003885843305490362, + "brier": 0.0017769654369978152, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0016088886011663508, + "calibration_in_the_large": -0.00015789585113046897, + "expected_calibration_error_10bin": 0.00015789585113046897, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7365466856735566, + "auprc": 0.02648608358726137, + "brier": 0.004661017181307958, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0064218229021236065, + "calibration_in_the_large": 0.002163483654430207, + "expected_calibration_error_10bin": 0.002427993276585049, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.6753466050479915, + "auprc": 0.008224458803179105, + "brier": 0.0015373889627171141, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.00549930770466809, + "calibration_in_the_large": 0.004079357402928651, + "expected_calibration_error_10bin": 0.004079357402928651, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7786680911680912, + "auprc": 0.024813377175805208, + "brier": 0.0028542717041729563, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.00316147158387604, + "calibration_in_the_large": 0.0003205624929669489, + "expected_calibration_error_10bin": 0.00032056249296694936, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.727283427495292, + "auprc": 0.009031600600581665, + "brier": 0.0010579724581439545, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0011900844010754408, + "calibration_in_the_large": 0.0001318833428743825, + "expected_calibration_error_10bin": 0.0001318833428743825, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.2828506515076924e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015772994511776457, + "calibration_in_the_large": 0.0015772994511776457, + "expected_calibration_error_10bin": 0.0015772994511776457, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.7290616750659947, + "auprc": 0.015371007485486619, + "brier": 0.0053444154692500485, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.0056919061208869585, + "calibration_in_the_large": 0.00032133684054324197, + "expected_calibration_error_10bin": 0.00032133684054324197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8656761630003607, + "auprc": 0.0438237880965049, + "brier": 0.00880609824289041, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005325243650446936, + "calibration_in_the_large": -0.003609709887794665, + "expected_calibration_error_10bin": 0.004450106753773343, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8495898913766349, + "auprc": 0.10943498883915172, + "brier": 0.004604869399941633, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.006925882933651766, + "calibration_in_the_large": 0.0022647140559178104, + "expected_calibration_error_10bin": 0.002756242231007837, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6749822443181818, + "auprc": 0.005599400014790634, + "brier": 0.0029472572444241463, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.0054229105878643704, + "calibration_in_the_large": 0.0025900493980626706, + "expected_calibration_error_10bin": 0.00259004939806267, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 14, + "negatives": 2699, + "auroc": 0.7494574710210131, + "auprc": 0.0527429268523847, + "brier": 0.005106264363416634, + "calibration": { + "observed_rate": 0.005160339107998526, + "mean_prediction": 0.00745759096621302, + "calibration_in_the_large": 0.0022972518582144944, + "expected_calibration_error_10bin": 0.0022972518582144944, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.855400071761751, + "auprc": 0.010235525867328817, + "brier": 0.0010789510224034455, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.0018714322756535186, + "calibration_in_the_large": 0.0007961634584492175, + "expected_calibration_error_10bin": 0.0007961634584492175, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7016402714932126, + "auprc": 0.011349553406379153, + "brier": 0.004801917138987645, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.0042122902442627355, + "calibration_in_the_large": -0.0005443873993523397, + "expected_calibration_error_10bin": 0.0009845386620195072, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6888150949584396, + "auprc": 0.03173507509084578, + "brier": 0.013761473283563022, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.01176606703664134, + "calibration_in_the_large": -0.0020708813552808725, + "expected_calibration_error_10bin": 0.00450669220253475, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8665720369056068, + "auprc": 0.02569570146088165, + "brier": 0.0010565636041150984, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0018725541089162315, + "calibration_in_the_large": 0.0008091014325603294, + "expected_calibration_error_10bin": 0.0008091014325603294, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 48, + "negatives": 2669, + "auroc": 0.6333754839515424, + "auprc": 0.03338794943750112, + "brier": 0.017577167908504485, + "calibration": { + "observed_rate": 0.017666543982333457, + "mean_prediction": 0.012912157878641872, + "calibration_in_the_large": -0.004754386103691586, + "expected_calibration_error_10bin": 0.008343712788816762, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9449001426533523, + "auprc": 0.009689831542395947, + "brier": 0.000715875281835015, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0014706703249874951, + "calibration_in_the_large": 0.0007579119500765899, + "expected_calibration_error_10bin": 0.0007579119500765899, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6957097053285154, + "auprc": 0.005050891317334335, + "brier": 0.002488902017982175, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.0023274427333602643, + "calibration_in_the_large": -0.000160119455694462, + "expected_calibration_error_10bin": 0.000160119455694462, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.7501331026221216, + "auprc": 0.020465717564351747, + "brier": 0.003977033785564456, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.003137896486487759, + "calibration_in_the_large": -0.0008723113151892364, + "expected_calibration_error_10bin": 0.0008723113151892364, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7199090569751264, + "auprc": 0.015645580982274247, + "brier": 0.004113645759888968, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.007057765780735883, + "calibration_in_the_large": 0.002968546449880864, + "expected_calibration_error_10bin": 0.002968546449880864, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7344604316546762, + "auprc": 0.07261405040842812, + "brier": 0.0017833783160477565, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0025260251283799142, + "calibration_in_the_large": 0.0007306929919346718, + "expected_calibration_error_10bin": 0.0007306929919346718, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.7072357311719014, + "auprc": 0.06048799002781246, + "brier": 0.017827484995724542, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.02016296346378823, + "calibration_in_the_large": 0.0018536529846296772, + "expected_calibration_error_10bin": 0.0018536529846296776, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 13, + "negatives": 2768, + "auroc": 0.6854157403290351, + "auprc": 0.017757036144801716, + "brier": 0.004639035468248344, + "calibration": { + "observed_rate": 0.004674577490111471, + "mean_prediction": 0.00421488384373539, + "calibration_in_the_large": -0.00045969364637608087, + "expected_calibration_error_10bin": 0.00045969364637608087, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7225337796393333, + "auprc": 0.05065512671108432, + "brier": 0.015841101200855388, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.018759868900165323, + "calibration_in_the_large": 0.0028162278174808583, + "expected_calibration_error_10bin": 0.0029862956170569883, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7331057422969187, + "auprc": 0.01913745392299658, + "brier": 0.006340888329253135, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.005147103071761895, + "calibration_in_the_large": -0.0011375549689035388, + "expected_calibration_error_10bin": 0.0021958568989697167, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.826932195353248, + "auprc": 0.028074480949341188, + "brier": 0.0021199576661924658, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0031495414510498633, + "calibration_in_the_large": 0.0010203718272031636, + "expected_calibration_error_10bin": 0.0010203718272031638, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.5891757644745692, + "auprc": 0.003602801099148729, + "brier": 0.002546000698234006, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.00308697842785505, + "calibration_in_the_large": 0.0005580766937510039, + "expected_calibration_error_10bin": 0.0005580766937510039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 16, + "negatives": 2787, + "auroc": 0.7713715464657338, + "auprc": 0.06744115901165625, + "brier": 0.00556751692214433, + "calibration": { + "observed_rate": 0.005708169818052087, + "mean_prediction": 0.0036802740445337863, + "calibration_in_the_large": -0.0020278957735183007, + "expected_calibration_error_10bin": 0.0023274080077559773, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.8165246212121212, + "auprc": 0.0036831022859828873, + "brier": 0.0010643796365988963, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0006704865756863319, + "calibration_in_the_large": -0.00039372058997525015, + "expected_calibration_error_10bin": 0.00039372058997525015, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8704464285714286, + "auprc": 0.029762843186871963, + "brier": 0.0014193271581645545, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.002471250759176182, + "calibration_in_the_large": 0.0010447172356383787, + "expected_calibration_error_10bin": 0.0010447172356383787, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.67096174282678, + "auprc": 0.00943334111871979, + "brier": 0.0028501493529938054, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.002768813147801294, + "calibration_in_the_large": -5.7043439976876224e-05, + "expected_calibration_error_10bin": 0.00032571473972194337, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7091842952903282, + "auprc": 0.08586917617333831, + "brier": 0.007419606319726103, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005517167075685114, + "calibration_in_the_large": -0.0021025716761291094, + "expected_calibration_error_10bin": 0.002176615551508146, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8824077359829666, + "auprc": 0.030354259779122844, + "brier": 0.0027963060500080217, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.00192609252263664, + "calibration_in_the_large": -0.0009047638114044075, + "expected_calibration_error_10bin": 0.0009047638114044075, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 103, + "negatives": 2189, + "auroc": 0.8167403655523868, + "auprc": 0.20060311564259312, + "brier": 0.03961595652095523, + "calibration": { + "observed_rate": 0.04493891797556719, + "mean_prediction": 0.03799009062131645, + "calibration_in_the_large": -0.0069488273542507445, + "expected_calibration_error_10bin": 0.014154080226338316, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8529121338912133, + "auprc": 0.2698734309691092, + "brier": 0.017728692455445904, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.012256048972249417, + "calibration_in_the_large": -0.008235754306439106, + "expected_calibration_error_10bin": 0.008235754306439108, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.808211222301644, + "auprc": 0.01250695135463049, + "brier": 0.002840365953374598, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0019157686435086626, + "calibration_in_the_large": -0.0009352648561349584, + "expected_calibration_error_10bin": 0.0009352648561349584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.926295022258195, + "auprc": 0.06217111281957705, + "brier": 0.002441314359675924, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0015880410137863426, + "calibration_in_the_large": -0.0008845835005195566, + "expected_calibration_error_10bin": 0.0011544919545663414, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 9, + "negatives": 2780, + "auroc": 0.8110711430855315, + "auprc": 0.020661848425111776, + "brier": 0.003207158994555671, + "calibration": { + "observed_rate": 0.0032269630692004303, + "mean_prediction": 0.004830319654029245, + "calibration_in_the_large": 0.001603356584828815, + "expected_calibration_error_10bin": 0.001603356584828815, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.721853022775663, + "auprc": 0.015257112592810575, + "brier": 0.0039388560192793525, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.004896490937790125, + "calibration_in_the_large": 0.001008191185227382, + "expected_calibration_error_10bin": 0.0010081911852273823, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8400191021967526, + "auprc": 0.1104614961272752, + "brier": 0.005226723845048745, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.0037256980243418375, + "calibration_in_the_large": -0.0016180853743044039, + "expected_calibration_error_10bin": 0.0016180853743044039, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.7634114628394579, + "auprc": 0.08568481175769387, + "brier": 0.03132107096364108, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.03306898016940862, + "calibration_in_the_large": 0.00013247223290067944, + "expected_calibration_error_10bin": 0.008237682756716538, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8178414665633875, + "auprc": 0.0489587886715148, + "brier": 0.009088169799179972, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.008787941147452325, + "calibration_in_the_large": -0.000421575352931405, + "expected_calibration_error_10bin": 0.0029328379206809982, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9374778604321644, + "auprc": 0.15594576072934027, + "brier": 0.0020445148337472725, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0014326755676614745, + "calibration_in_the_large": -0.0006882152064636583, + "expected_calibration_error_10bin": 0.0006882152064636583, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7723475355054302, + "auprc": 0.0058526864743015895, + "brier": 0.0021483607495956705, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.0021466965541219658, + "calibration_in_the_large": 3.073831721108356e-06, + "expected_calibration_error_10bin": 3.073831721108356e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.3214848017479596, + "brier": 0.0018844015062973154, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012576493621517268, + "calibration_in_the_large": -0.000929736711490271, + "expected_calibration_error_10bin": 0.0014662536993287657, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8688813388700138, + "auprc": 0.059521864062861723, + "brier": 0.0011890922158724867, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0009187782350547044, + "calibration_in_the_large": -0.00021244348440230927, + "expected_calibration_error_10bin": 0.0005405627386224347, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.7244206773618538, + "auprc": 0.008633746532612088, + "brier": 0.00177418359187116, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0016624001713223743, + "calibration_in_the_large": -0.00011695925928260778, + "expected_calibration_error_10bin": 0.00011695925928260778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.7708554572271387, + "auprc": 0.018056362713896962, + "brier": 0.0010821719258412813, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.003521616096808651, + "calibration_in_the_large": 0.0024607957290575903, + "expected_calibration_error_10bin": 0.0024607957290575903, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + }, + "365": { + "A04": { + "valid": 2782, + "positives": 29, + "negatives": 2753, + "auroc": 0.8023723336297707, + "auprc": 0.06066437904200629, + "brier": 0.010248316832930624, + "calibration": { + "observed_rate": 0.010424155283968369, + "mean_prediction": 0.009732276080078105, + "calibration_in_the_large": -0.0006918792038902635, + "expected_calibration_error_10bin": 0.003119813170506695, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "A08": { + "valid": 2818, + "positives": 11, + "negatives": 2807, + "auroc": 0.8448359620429445, + "auprc": 0.13029743120709056, + "brier": 0.0037908173905043816, + "calibration": { + "observed_rate": 0.0039034776437189495, + "mean_prediction": 0.006190831917243199, + "calibration_in_the_large": 0.0022873542735242494, + "expected_calibration_error_10bin": 0.002287354273524249, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "A41": { + "valid": 2664, + "positives": 76, + "negatives": 2588, + "auroc": 0.7519624989831611, + "auprc": 0.07748634587993311, + "brier": 0.027893275803915936, + "calibration": { + "observed_rate": 0.028528528528528527, + "mean_prediction": 0.027036221606791328, + "calibration_in_the_large": -0.0014923069217371993, + "expected_calibration_error_10bin": 0.012973812950159567, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9370383397819205 + }, + "B00": { + "valid": 2819, + "positives": 4, + "negatives": 2815, + "auroc": 0.7432504440497336, + "auprc": 0.01598258483227111, + "brier": 0.0015815608348232768, + "calibration": { + "observed_rate": 0.001418942887548776, + "mean_prediction": 0.002747707269843937, + "calibration_in_the_large": 0.0013287643822951609, + "expected_calibration_error_10bin": 0.0013287643822951609, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "B02": { + "valid": 2828, + "positives": 1, + "negatives": 2827, + "auroc": 0.5903784931022286, + "auprc": 0.0008628127696289905, + "brier": 0.00036221013499019677, + "calibration": { + "observed_rate": 0.0003536067892503536, + "mean_prediction": 0.0012461727799744572, + "calibration_in_the_large": 0.0008925659907241036, + "expected_calibration_error_10bin": 0.0008925659907241036, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "B18": { + "valid": 2782, + "positives": 8, + "negatives": 2774, + "auroc": 0.9282173756308579, + "auprc": 0.0836840330014609, + "brier": 0.002807418978161419, + "calibration": { + "observed_rate": 0.002875629043853343, + "mean_prediction": 0.002905670146210001, + "calibration_in_the_large": 3.0041102356658054e-05, + "expected_calibration_error_10bin": 0.0005036784909341412, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9785437917692579 + }, + "B19": { + "valid": 2763, + "positives": 17, + "negatives": 2746, + "auroc": 0.8814746583265498, + "auprc": 0.09367967350321105, + "brier": 0.005964618479752194, + "calibration": { + "observed_rate": 0.006152732537097358, + "mean_prediction": 0.0023779306984842642, + "calibration_in_the_large": -0.003774801838613094, + "expected_calibration_error_10bin": 0.0037748018386130934, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "B20": { + "valid": 2829, + "positives": 5, + "negatives": 2824, + "auroc": 0.9911473087818697, + "auprc": 0.2763071895424837, + "brier": 0.0017238554456636564, + "calibration": { + "observed_rate": 0.0017674089784376105, + "mean_prediction": 0.0003399648608520368, + "calibration_in_the_large": -0.0014274441175855736, + "expected_calibration_error_10bin": 0.0015221779048680164, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "B34": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.9806794055201699, + "auprc": 0.0853717929093408, + "brier": 0.001708272073903772, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0018294035864445302, + "calibration_in_the_large": 6.324321908317385e-05, + "expected_calibration_error_10bin": 0.000238057718108915, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "B35": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9013761467889908, + "auprc": 0.0064291101055806935, + "brier": 0.0007161510659471924, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.002266851787142806, + "calibration_in_the_large": 0.001561633169371297, + "expected_calibration_error_10bin": 0.001561633169371297, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "B37": { + "valid": 2768, + "positives": 38, + "negatives": 2730, + "auroc": 0.7692114902641218, + "auprc": 0.046208072426106694, + "brier": 0.013534447771403387, + "calibration": { + "observed_rate": 0.013728323699421965, + "mean_prediction": 0.011945422714249927, + "calibration_in_the_large": -0.0017829009851720382, + "expected_calibration_error_10bin": 0.00508545735085735, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "B95": { + "valid": 2678, + "positives": 61, + "negatives": 2617, + "auroc": 0.7245375445542074, + "auprc": 0.05061441926737525, + "brier": 0.022548472362536764, + "calibration": { + "observed_rate": 0.022778192681105303, + "mean_prediction": 0.02272727880078313, + "calibration_in_the_large": -5.091388032217245e-05, + "expected_calibration_error_10bin": 0.006464745836633957, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9419627154414351 + }, + "B96": { + "valid": 2630, + "positives": 88, + "negatives": 2542, + "auroc": 0.7657177598168944, + "auprc": 0.09234749718227282, + "brier": 0.03168614435740158, + "calibration": { + "observed_rate": 0.033460076045627375, + "mean_prediction": 0.027818640750547793, + "calibration_in_the_large": -0.0056414352950795825, + "expected_calibration_error_10bin": 0.008628323310304487, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9250791417516707 + }, + "B97": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.888004246284501, + "auprc": 0.020160554643313264, + "brier": 0.0007288296369467641, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0014455918948715278, + "calibration_in_the_large": 0.0007383783163708205, + "expected_calibration_error_10bin": 0.0007383783163708207, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "C18": { + "valid": 2824, + "positives": 2, + "negatives": 2822, + "auroc": 0.9774982282069454, + "auprc": 0.023268398268398268, + "brier": 0.0007025248476348967, + "calibration": { + "observed_rate": 0.000708215297450425, + "mean_prediction": 0.0008564042631157447, + "calibration_in_the_large": 0.0001481889656653198, + "expected_calibration_error_10bin": 0.0001481889656653198, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "C22": { + "valid": 2812, + "positives": 7, + "negatives": 2805, + "auroc": 0.8908072319837026, + "auprc": 0.029620649995226126, + "brier": 0.0024854875714202594, + "calibration": { + "observed_rate": 0.0024893314366998577, + "mean_prediction": 0.0009195078644194349, + "calibration_in_the_large": -0.0015698235722804228, + "expected_calibration_error_10bin": 0.0017540392517272226, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9890960253253606 + }, + "C25": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.888680926916221, + "auprc": 0.13508084262073622, + "brier": 0.0013604558697702326, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.0009645224525044222, + "calibration_in_the_large": -0.0004594718515183618, + "expected_calibration_error_10bin": 0.0006260354186863724, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "C61": { + "valid": 2805, + "positives": 2, + "negatives": 2803, + "auroc": 0.959507670353193, + "auprc": 0.026570048309178744, + "brier": 0.0007111052698466113, + "calibration": { + "observed_rate": 0.00071301247771836, + "mean_prediction": 0.001613730900629591, + "calibration_in_the_large": 0.0009007184229112309, + "expected_calibration_error_10bin": 0.0009007184229112309, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "C67": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.9899186416696144, + "auprc": 0.050706033376123234, + "brier": 0.0006983899223228865, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0009312806715864817, + "calibration_in_the_large": 0.00022431708021143745, + "expected_calibration_error_10bin": 0.00022431708021143745, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "C77": { + "valid": 2762, + "positives": 23, + "negatives": 2739, + "auroc": 0.8963442703620808, + "auprc": 0.1109424613849725, + "brier": 0.007965694909238237, + "calibration": { + "observed_rate": 0.00832729905865315, + "mean_prediction": 0.005221191151289792, + "calibration_in_the_large": -0.0031061079073633575, + "expected_calibration_error_10bin": 0.004613174637112323, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C78": { + "valid": 2762, + "positives": 37, + "negatives": 2725, + "auroc": 0.9019687577485742, + "auprc": 0.1588650435352183, + "brier": 0.01239877480977202, + "calibration": { + "observed_rate": 0.013396089790007242, + "mean_prediction": 0.0094730834771629, + "calibration_in_the_large": -0.003923006312844342, + "expected_calibration_error_10bin": 0.009078121898772284, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9715089693985227 + }, + "C79": { + "valid": 2751, + "positives": 29, + "negatives": 2722, + "auroc": 0.9025817730370671, + "auprc": 0.1748980541563623, + "brier": 0.01055291924812552, + "calibration": { + "observed_rate": 0.010541621228644129, + "mean_prediction": 0.012378990089064726, + "calibration_in_the_large": 0.0018373688604205966, + "expected_calibration_error_10bin": 0.007288001543208584, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "C83": { + "valid": 2820, + "positives": 2, + "negatives": 2818, + "auroc": 0.5232434350603264, + "auprc": 0.0011754335411715098, + "brier": 0.0008028297528355583, + "calibration": { + "observed_rate": 0.0007092198581560284, + "mean_prediction": 0.0010849362601115674, + "calibration_in_the_large": 0.00037571640195553895, + "expected_calibration_error_10bin": 0.0006047806017029046, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "D25": { + "valid": 2792, + "positives": 3, + "negatives": 2789, + "auroc": 0.9607983745667503, + "auprc": 0.3363821138211382, + "brier": 0.0010468983628975444, + "calibration": { + "observed_rate": 0.0010744985673352436, + "mean_prediction": 0.0009395704031251503, + "calibration_in_the_large": -0.0001349281642100933, + "expected_calibration_error_10bin": 0.0001349281642100933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "D47": { + "valid": 2796, + "positives": 12, + "negatives": 2784, + "auroc": 0.6625359195402298, + "auprc": 0.00735654798673437, + "brier": 0.0044212264980746105, + "calibration": { + "observed_rate": 0.004291845493562232, + "mean_prediction": 0.006107857114571829, + "calibration_in_the_large": 0.0018160116210095972, + "expected_calibration_error_10bin": 0.001816011621009597, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "D50": { + "valid": 2663, + "positives": 59, + "negatives": 2604, + "auroc": 0.7884154755395871, + "auprc": 0.1149621650934306, + "brier": 0.02073265031533124, + "calibration": { + "observed_rate": 0.022155463762673678, + "mean_prediction": 0.0177444778596658, + "calibration_in_the_large": -0.0044109859030078795, + "expected_calibration_error_10bin": 0.004637522185380002, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9366865986633838 + }, + "D53": { + "valid": 2805, + "positives": 18, + "negatives": 2787, + "auroc": 0.8104094406570187, + "auprc": 0.026454517736581227, + "brier": 0.006587663238917421, + "calibration": { + "observed_rate": 0.006417112299465241, + "mean_prediction": 0.007706748245820009, + "calibration_in_the_large": 0.001289635946354768, + "expected_calibration_error_10bin": 0.0018700282238475318, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "D59": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.992060691601976, + "auprc": 0.060714285714285714, + "brier": 0.000691336908435852, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0009667794611652351, + "calibration_in_the_large": 0.00026156084339372593, + "expected_calibration_error_10bin": 0.00026156084339372593, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "D61": { + "valid": 2773, + "positives": 37, + "negatives": 2736, + "auroc": 0.8814702860755492, + "auprc": 0.2262020204138252, + "brier": 0.011553390063424823, + "calibration": { + "observed_rate": 0.013342949873782907, + "mean_prediction": 0.012436220956861704, + "calibration_in_the_large": -0.0009067289169212029, + "expected_calibration_error_10bin": 0.0029951558533376768, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "D62": { + "valid": 2499, + "positives": 73, + "negatives": 2426, + "auroc": 0.7954917616235079, + "auprc": 0.10953654016583406, + "brier": 0.02724518461622162, + "calibration": { + "observed_rate": 0.02921168467386955, + "mean_prediction": 0.02739217910970956, + "calibration_in_the_large": -0.0018195055641599886, + "expected_calibration_error_10bin": 0.00237958305356029, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8790010552233556 + }, + "D63": { + "valid": 2686, + "positives": 76, + "negatives": 2610, + "auroc": 0.8424833635813672, + "auprc": 0.1298786496347656, + "brier": 0.02741968025939433, + "calibration": { + "observed_rate": 0.028294862248696945, + "mean_prediction": 0.025938804506474563, + "calibration_in_the_large": -0.0023560577422223825, + "expected_calibration_error_10bin": 0.013352842510216874, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9447766443897292 + }, + "D64": { + "valid": 2434, + "positives": 122, + "negatives": 2312, + "auroc": 0.8189807986839867, + "auprc": 0.19980679747726404, + "brier": 0.043777949272854944, + "calibration": { + "observed_rate": 0.05012325390304026, + "mean_prediction": 0.04722372594770831, + "calibration_in_the_large": -0.0028995279553319514, + "expected_calibration_error_10bin": 0.006511820419006598, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8561378825184665 + }, + "D65": { + "valid": 2833, + "positives": 6, + "negatives": 2827, + "auroc": 0.8381087135950949, + "auprc": 0.01906495004197157, + "brier": 0.002109468796475229, + "calibration": { + "observed_rate": 0.002117896223085069, + "mean_prediction": 0.0013070408304972968, + "calibration_in_the_large": -0.000810855392587772, + "expected_calibration_error_10bin": 0.000810855392587772, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9964825888146325 + }, + "D68": { + "valid": 2682, + "positives": 63, + "negatives": 2619, + "auroc": 0.8131844821420996, + "auprc": 0.16803340500099648, + "brier": 0.02146056152502156, + "calibration": { + "observed_rate": 0.02348993288590604, + "mean_prediction": 0.013997914671898235, + "calibration_in_the_large": -0.009492018214007806, + "expected_calibration_error_10bin": 0.012085137675361086, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9433696799155822 + }, + "D69": { + "valid": 2586, + "positives": 87, + "negatives": 2499, + "auroc": 0.8396921987185679, + "auprc": 0.255270555735594, + "brier": 0.028875758397065802, + "calibration": { + "observed_rate": 0.033642691415313224, + "mean_prediction": 0.02020629925868027, + "calibration_in_the_large": -0.013436392156632955, + "expected_calibration_error_10bin": 0.013436392156632953, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9096025325360535 + }, + "D70": { + "valid": 2787, + "positives": 26, + "negatives": 2761, + "auroc": 0.8924024182988326, + "auprc": 0.21418000392680187, + "brier": 0.009864562873158738, + "calibration": { + "observed_rate": 0.009329027628274129, + "mean_prediction": 0.011727423877719807, + "calibration_in_the_large": 0.002398396249445678, + "expected_calibration_error_10bin": 0.007739774355068508, + "nonempty_bins": 10 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "D72": { + "valid": 2595, + "positives": 67, + "negatives": 2528, + "auroc": 0.7220975817116947, + "auprc": 0.06577978585054754, + "brier": 0.024900540336079083, + "calibration": { + "observed_rate": 0.02581888246628131, + "mean_prediction": 0.024263301634822786, + "calibration_in_the_large": -0.0015555808314585244, + "expected_calibration_error_10bin": 0.005974828996421924, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9127682026028843 + }, + "D73": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.8135412974122651, + "auprc": 0.030344290212711265, + "brier": 0.001096471423451946, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0017298332565814662, + "calibration_in_the_large": 0.0006675103104058287, + "expected_calibration_error_10bin": 0.0006675103104058287, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "D75": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.8601874778917581, + "auprc": 0.010809037934028898, + "brier": 0.0014259446555396976, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.002006929318383333, + "calibration_in_the_large": 0.0005940010244942478, + "expected_calibration_error_10bin": 0.0005940010244942478, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "D80": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.9868483132814343, + "auprc": 0.0970740087658191, + "brier": 0.00209328152307807, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0019999326421244446, + "calibration_in_the_large": -0.00011871142567216556, + "expected_calibration_error_10bin": 0.0008405798584357717, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "D89": { + "valid": 2837, + "positives": 2, + "negatives": 2835, + "auroc": 0.7345679012345679, + "auprc": 0.008047385620915032, + "brier": 0.001292461191607905, + "calibration": { + "observed_rate": 0.0007049700387733521, + "mean_prediction": 0.0024532081193773475, + "calibration_in_the_large": 0.0017482380806039953, + "expected_calibration_error_10bin": 0.0020607957247947405, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "E03": { + "valid": 2480, + "positives": 26, + "negatives": 2454, + "auroc": 0.7424456146950035, + "auprc": 0.028277074318008168, + "brier": 0.010330959593317729, + "calibration": { + "observed_rate": 0.010483870967741936, + "mean_prediction": 0.00615778250737182, + "calibration_in_the_large": -0.004326088460370117, + "expected_calibration_error_10bin": 0.004326088460370117, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8723179739711572 + }, + "E04": { + "valid": 2775, + "positives": 11, + "negatives": 2764, + "auroc": 0.7253321931324825, + "auprc": 0.00964630830499211, + "brier": 0.003958621594704624, + "calibration": { + "observed_rate": 0.003963963963963964, + "mean_prediction": 0.0029608830488546487, + "calibration_in_the_large": -0.0010030809151093155, + "expected_calibration_error_10bin": 0.0010030809151093155, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "E05": { + "valid": 2806, + "positives": 4, + "negatives": 2802, + "auroc": 0.4739471805852962, + "auprc": 0.0026837655955637483, + "brier": 0.0014276629075974576, + "calibration": { + "observed_rate": 0.0014255167498218105, + "mean_prediction": 0.001469692707658925, + "calibration_in_the_large": 4.417595783711456e-05, + "expected_calibration_error_10bin": 4.417595783711456e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "E11": { + "valid": 2194, + "positives": 24, + "negatives": 2170, + "auroc": 0.7499807987711213, + "auprc": 0.06483257764370845, + "brier": 0.010611265475825199, + "calibration": { + "observed_rate": 0.010938924339106655, + "mean_prediction": 0.008964073494794979, + "calibration_in_the_large": -0.0019748508443116763, + "expected_calibration_error_10bin": 0.002211392556280625, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7717200140696447 + }, + "E16": { + "valid": 2816, + "positives": 13, + "negatives": 2803, + "auroc": 0.6167567715908779, + "auprc": 0.008236014741682377, + "brier": 0.0046188716063239425, + "calibration": { + "observed_rate": 0.004616477272727273, + "mean_prediction": 0.0033606399257425064, + "calibration_in_the_large": -0.0012558373469847665, + "expected_calibration_error_10bin": 0.0012558373469847665, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "E21": { + "valid": 2814, + "positives": 5, + "negatives": 2809, + "auroc": 0.8092559629761481, + "auprc": 0.02195968226702689, + "brier": 0.001764789501823326, + "calibration": { + "observed_rate": 0.0017768301350390902, + "mean_prediction": 0.0017872742512823722, + "calibration_in_the_large": 1.0444116243282005e-05, + "expected_calibration_error_10bin": 1.0444116243282005e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "E22": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7899112861518877, + "auprc": 0.013654958927759402, + "brier": 0.003328203276676452, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.006640728099613609, + "calibration_in_the_large": 0.003428736664924102, + "expected_calibration_error_10bin": 0.0034287366649241023, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "E27": { + "valid": 2811, + "positives": 9, + "negatives": 2802, + "auroc": 0.779879451185661, + "auprc": 0.009906453601112213, + "brier": 0.0032832071059802894, + "calibration": { + "observed_rate": 0.0032017075773745998, + "mean_prediction": 0.0035829326342918773, + "calibration_in_the_large": 0.00038122505691727754, + "expected_calibration_error_10bin": 0.00038122505691727754, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9887442842068238 + }, + "E43": { + "valid": 2748, + "positives": 43, + "negatives": 2705, + "auroc": 0.8210978807548468, + "auprc": 0.07565417483121623, + "brier": 0.015711586224919312, + "calibration": { + "observed_rate": 0.01564774381368268, + "mean_prediction": 0.01775179352790544, + "calibration_in_the_large": 0.002104049714222761, + "expected_calibration_error_10bin": 0.0074756023141334706, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9665845937390081 + }, + "E44": { + "valid": 2800, + "positives": 24, + "negatives": 2776, + "auroc": 0.7714787463976945, + "auprc": 0.030624215774385535, + "brier": 0.008682784879284927, + "calibration": { + "observed_rate": 0.008571428571428572, + "mean_prediction": 0.011059162367591852, + "calibration_in_the_large": 0.00248773379616328, + "expected_calibration_error_10bin": 0.002487733796163281, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "E46": { + "valid": 2772, + "positives": 42, + "negatives": 2730, + "auroc": 0.8077969649398221, + "auprc": 0.0948735795668559, + "brier": 0.014742654044499742, + "calibration": { + "observed_rate": 0.015151515151515152, + "mean_prediction": 0.01578748807252075, + "calibration_in_the_large": 0.0006359729210055967, + "expected_calibration_error_10bin": 0.0038048248325727166, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9750263805838902 + }, + "E53": { + "valid": 2804, + "positives": 11, + "negatives": 2793, + "auroc": 0.7388275884516486, + "auprc": 0.00990318031266541, + "brier": 0.003931972005991468, + "calibration": { + "observed_rate": 0.0039229671897289585, + "mean_prediction": 0.0033536024518279963, + "calibration_in_the_large": -0.0005693647379009623, + "expected_calibration_error_10bin": 0.0006525021158912576, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "E55": { + "valid": 2737, + "positives": 30, + "negatives": 2707, + "auroc": 0.6407462135205024, + "auprc": 0.02779429386051692, + "brier": 0.010847019075611471, + "calibration": { + "observed_rate": 0.010960906101571063, + "mean_prediction": 0.010109562334775399, + "calibration_in_the_large": -0.0008513437667956644, + "expected_calibration_error_10bin": 0.0016982705525480008, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9627154414351038 + }, + "E66": { + "valid": 2371, + "positives": 42, + "negatives": 2329, + "auroc": 0.7502197959475762, + "auprc": 0.054324474674169954, + "brier": 0.017250562861514007, + "calibration": { + "observed_rate": 0.017714044706874738, + "mean_prediction": 0.018699957021892713, + "calibration_in_the_large": 0.0009859123150179755, + "expected_calibration_error_10bin": 0.0009859123150179748, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8339781920506507 + }, + "E78": { + "valid": 1572, + "positives": 50, + "negatives": 1522, + "auroc": 0.7630880420499343, + "auprc": 0.13090638308743605, + "brier": 0.029745389428536367, + "calibration": { + "observed_rate": 0.031806615776081425, + "mean_prediction": 0.029796237261523684, + "calibration_in_the_large": -0.0020103785145577403, + "expected_calibration_error_10bin": 0.010772455096947672, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5529370383397819 + }, + "E80": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.8597246891651865, + "auprc": 0.021326287639594547, + "brier": 0.002948383401607432, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.003238311127828157, + "calibration_in_the_large": 0.00040444644486676857, + "expected_calibration_error_10bin": 0.0008618244574564389, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "E83": { + "valid": 2653, + "positives": 86, + "negatives": 2567, + "auroc": 0.805750083800654, + "auprc": 0.21059685103226697, + "brier": 0.028517769556041257, + "calibration": { + "observed_rate": 0.03241613267998492, + "mean_prediction": 0.02575174612268924, + "calibration_in_the_large": -0.006664386557295683, + "expected_calibration_error_10bin": 0.01013093412626432, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9331691874780161 + }, + "E86": { + "valid": 2587, + "positives": 98, + "negatives": 2489, + "auroc": 0.79746394339174, + "auprc": 0.12441019498901755, + "brier": 0.034874453297429796, + "calibration": { + "observed_rate": 0.03788171627367607, + "mean_prediction": 0.0368826227211946, + "calibration_in_the_large": -0.0009990935524814698, + "expected_calibration_error_10bin": 0.0055918166284572865, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9099542736545903 + }, + "E87": { + "valid": 2185, + "positives": 158, + "negatives": 2027, + "auroc": 0.8001504998969606, + "auprc": 0.25972957606709585, + "brier": 0.061297796392814866, + "calibration": { + "observed_rate": 0.07231121281464531, + "mean_prediction": 0.04617759603763253, + "calibration_in_the_large": -0.02613361677701278, + "expected_calibration_error_10bin": 0.02943045988675469, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.768554344002814 + }, + "E88": { + "valid": 2817, + "positives": 15, + "negatives": 2802, + "auroc": 0.8137044967880086, + "auprc": 0.07620327086682961, + "brier": 0.005169874247412062, + "calibration": { + "observed_rate": 0.005324813631522897, + "mean_prediction": 0.005751820541215012, + "calibration_in_the_large": 0.00042700690969211565, + "expected_calibration_error_10bin": 0.0006401648520235838, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "E89": { + "valid": 2780, + "positives": 8, + "negatives": 2772, + "auroc": 0.5907287157287158, + "auprc": 0.0038928235682775484, + "brier": 0.0028846405380406615, + "calibration": { + "observed_rate": 0.0028776978417266188, + "mean_prediction": 0.0028439478357789433, + "calibration_in_the_large": -3.375000594767544e-05, + "expected_calibration_error_10bin": 3.375000594767544e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "F02": { + "valid": 2802, + "positives": 4, + "negatives": 2798, + "auroc": 0.8305932809149392, + "auprc": 0.011996668817154707, + "brier": 0.0015099058163115812, + "calibration": { + "observed_rate": 0.0014275517487508922, + "mean_prediction": 0.003470664981601797, + "calibration_in_the_large": 0.0020431132328509044, + "expected_calibration_error_10bin": 0.002043113232850905, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "F03": { + "valid": 2739, + "positives": 18, + "negatives": 2721, + "auroc": 0.8581812242231206, + "auprc": 0.030063942404812423, + "brier": 0.006656983225012105, + "calibration": { + "observed_rate": 0.0065717415115005475, + "mean_prediction": 0.008302337605080319, + "calibration_in_the_large": 0.0017305960935797716, + "expected_calibration_error_10bin": 0.0017305960935797707, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "F05": { + "valid": 2750, + "positives": 33, + "negatives": 2717, + "auroc": 0.7363959804151192, + "auprc": 0.028227229850265784, + "brier": 0.012054370414383285, + "calibration": { + "observed_rate": 0.012, + "mean_prediction": 0.013685625668389217, + "calibration_in_the_large": 0.0016856256683892169, + "expected_calibration_error_10bin": 0.0017706416668089248, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "F06": { + "valid": 2828, + "positives": 2, + "negatives": 2826, + "auroc": 0.46443736730360935, + "auprc": 0.0011385078964177228, + "brier": 0.0007375841821048055, + "calibration": { + "observed_rate": 0.0007072135785007072, + "mean_prediction": 0.0028480566731773063, + "calibration_in_the_large": 0.002140843094676599, + "expected_calibration_error_10bin": 0.002140843094676599, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + }, + "F10": { + "valid": 2560, + "positives": 17, + "negatives": 2543, + "auroc": 0.8251254886539752, + "auprc": 0.09026944802795661, + "brier": 0.006403213279667379, + "calibration": { + "observed_rate": 0.006640625, + "mean_prediction": 0.008097755058196298, + "calibration_in_the_large": 0.0014571300581962985, + "expected_calibration_error_10bin": 0.00195459223957073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "F11": { + "valid": 2741, + "positives": 11, + "negatives": 2730, + "auroc": 0.884015984015984, + "auprc": 0.044089050565865234, + "brier": 0.004152242356606424, + "calibration": { + "observed_rate": 0.004013133892739876, + "mean_prediction": 0.005810575090902227, + "calibration_in_the_large": 0.0017974411981623506, + "expected_calibration_error_10bin": 0.0017974411981623506, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "F12": { + "valid": 2777, + "positives": 13, + "negatives": 2764, + "auroc": 0.924551931426027, + "auprc": 0.04012865082537269, + "brier": 0.004600735383963657, + "calibration": { + "observed_rate": 0.004681310767014764, + "mean_prediction": 0.0047525123339461515, + "calibration_in_the_large": 7.120156693138716e-05, + "expected_calibration_error_10bin": 0.00013460226060919514, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "F14": { + "valid": 2787, + "positives": 10, + "negatives": 2777, + "auroc": 0.9456607850198055, + "auprc": 0.04168642696210468, + "brier": 0.003550385533373178, + "calibration": { + "observed_rate": 0.003588087549336204, + "mean_prediction": 0.0020617349079967632, + "calibration_in_the_large": -0.0015263526413394407, + "expected_calibration_error_10bin": 0.001891730642959374, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "F15": { + "valid": 2823, + "positives": 8, + "negatives": 2815, + "auroc": 0.947335701598579, + "auprc": 0.04276486443086227, + "brier": 0.002796644483927563, + "calibration": { + "observed_rate": 0.0028338646829613886, + "mean_prediction": 0.0010319100835107663, + "calibration_in_the_large": -0.0018019545994506223, + "expected_calibration_error_10bin": 0.0018019545994506223, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "F17": { + "valid": 2426, + "positives": 33, + "negatives": 2393, + "auroc": 0.8643771606579798, + "auprc": 0.10954035105013564, + "brier": 0.012742616227931046, + "calibration": { + "observed_rate": 0.013602638087386645, + "mean_prediction": 0.014144148758996658, + "calibration_in_the_large": 0.0005415106716100127, + "expected_calibration_error_10bin": 0.002069770655659451, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8533239535701723 + }, + "F19": { + "valid": 2801, + "positives": 13, + "negatives": 2788, + "auroc": 0.939162344112129, + "auprc": 0.1539181751841496, + "brier": 0.004413382846127208, + "calibration": { + "observed_rate": 0.0046411995715815784, + "mean_prediction": 0.0028556856180738366, + "calibration_in_the_large": -0.0017855139535077418, + "expected_calibration_error_10bin": 0.001876820895862221, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F20": { + "valid": 2808, + "positives": 4, + "negatives": 2804, + "auroc": 0.7462553495007133, + "auprc": 0.01440753039898251, + "brier": 0.001419475306294058, + "calibration": { + "observed_rate": 0.0014245014245014246, + "mean_prediction": 0.001400968557576292, + "calibration_in_the_large": -2.353286692513253e-05, + "expected_calibration_error_10bin": 2.353286692513253e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9876890608512136 + }, + "F22": { + "valid": 2821, + "positives": 1, + "negatives": 2820, + "auroc": 0.6549645390070922, + "auprc": 0.001026694045174538, + "brier": 0.00036694439207367454, + "calibration": { + "observed_rate": 0.0003544842254519674, + "mean_prediction": 0.001784979841467564, + "calibration_in_the_large": 0.0014304956160155965, + "expected_calibration_error_10bin": 0.0014304956160155965, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "F25": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.9227035984848485, + "auprc": 0.010544824063997557, + "brier": 0.0010670726527409655, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0016086311070086865, + "calibration_in_the_large": 0.0005444239413471045, + "expected_calibration_error_10bin": 0.0005444239413471045, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "F29": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.7318173695496784, + "auprc": 0.018155702903150755, + "brier": 0.002834177433071904, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0013108072886559498, + "calibration_in_the_large": -0.0015402262109876711, + "expected_calibration_error_10bin": 0.0015402262109876711, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "F31": { + "valid": 2724, + "positives": 9, + "negatives": 2715, + "auroc": 0.8764477184366687, + "auprc": 0.02227450059846237, + "brier": 0.003271928454679797, + "calibration": { + "observed_rate": 0.003303964757709251, + "mean_prediction": 0.004208237327349678, + "calibration_in_the_large": 0.0009042725696404266, + "expected_calibration_error_10bin": 0.0009042725696404266, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9581428068941259 + }, + "F32": { + "valid": 2200, + "positives": 72, + "negatives": 2128, + "auroc": 0.7077067669172933, + "auprc": 0.07632729425083568, + "brier": 0.03203469116837203, + "calibration": { + "observed_rate": 0.03272727272727273, + "mean_prediction": 0.0364268036032974, + "calibration_in_the_large": 0.003699530876024669, + "expected_calibration_error_10bin": 0.010515313400934576, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7738304607808653 + }, + "F33": { + "valid": 2800, + "positives": 12, + "negatives": 2788, + "auroc": 0.8116331898613104, + "auprc": 0.023659747582266157, + "brier": 0.004270756604999197, + "calibration": { + "observed_rate": 0.004285714285714286, + "mean_prediction": 0.004491422679701438, + "calibration_in_the_large": 0.0002057083939871517, + "expected_calibration_error_10bin": 0.00020570839398715188, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9848751319029194 + }, + "F39": { + "valid": 2801, + "positives": 11, + "negatives": 2790, + "auroc": 0.7121537960247638, + "auprc": 0.012636695948727199, + "brier": 0.003927639768936666, + "calibration": { + "observed_rate": 0.003927168868261335, + "mean_prediction": 0.004121211102999733, + "calibration_in_the_large": 0.00019404223473839816, + "expected_calibration_error_10bin": 0.00019404223473839816, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "F41": { + "valid": 2247, + "positives": 80, + "negatives": 2167, + "auroc": 0.7223754037840332, + "auprc": 0.1040924599318315, + "brier": 0.033569697928643644, + "calibration": { + "observed_rate": 0.035603026257231864, + "mean_prediction": 0.04085734540192078, + "calibration_in_the_large": 0.005254319144688914, + "expected_calibration_error_10bin": 0.005254319144688916, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7903622933520928 + }, + "F43": { + "valid": 2734, + "positives": 21, + "negatives": 2713, + "auroc": 0.7209730925175083, + "auprc": 0.04485991475173726, + "brier": 0.007670742241302058, + "calibration": { + "observed_rate": 0.007681053401609363, + "mean_prediction": 0.010815863383556383, + "calibration_in_the_large": 0.00313480998194702, + "expected_calibration_error_10bin": 0.0031348099819470186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "F60": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.9471906116642959, + "auprc": 0.06693364029675632, + "brier": 0.002118806814329805, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.004042023934982897, + "calibration_in_the_large": 0.0019128543111361974, + "expected_calibration_error_10bin": 0.001912854311136197, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "F90": { + "valid": 2775, + "positives": 8, + "negatives": 2767, + "auroc": 0.9253704372967112, + "auprc": 0.02549954787248032, + "brier": 0.0028519264494269495, + "calibration": { + "observed_rate": 0.002882882882882883, + "mean_prediction": 0.0017105503661747077, + "calibration_in_the_large": -0.0011723325167081753, + "expected_calibration_error_10bin": 0.0011723325167081753, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9760816039395005 + }, + "G25": { + "valid": 2774, + "positives": 9, + "negatives": 2765, + "auroc": 0.668274060679124, + "auprc": 0.006437367835946504, + "brier": 0.003309231069832676, + "calibration": { + "observed_rate": 0.0032444124008651765, + "mean_prediction": 0.004492939581739214, + "calibration_in_the_large": 0.0012485271808740372, + "expected_calibration_error_10bin": 0.0012485271808740372, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "G31": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.7907467080399411, + "auprc": 0.009108761782774442, + "brier": 0.0032524188696294097, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.004206688957536764, + "calibration_in_the_large": 0.000994697522847257, + "expected_calibration_error_10bin": 0.0009946975228472571, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "G40": { + "valid": 2723, + "positives": 25, + "negatives": 2698, + "auroc": 0.7817939214232765, + "auprc": 0.04711446017491037, + "brier": 0.009032416517285934, + "calibration": { + "observed_rate": 0.00918105031215571, + "mean_prediction": 0.0070794363965044705, + "calibration_in_the_large": -0.00210161391565124, + "expected_calibration_error_10bin": 0.002630722109138421, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "G43": { + "valid": 2725, + "positives": 15, + "negatives": 2710, + "auroc": 0.7853382533825338, + "auprc": 0.021892351479548697, + "brier": 0.005454249649259613, + "calibration": { + "observed_rate": 0.005504587155963303, + "mean_prediction": 0.004218977932682594, + "calibration_in_the_large": -0.001285609223280709, + "expected_calibration_error_10bin": 0.001285609223280709, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9584945480126627 + }, + "G44": { + "valid": 2805, + "positives": 7, + "negatives": 2798, + "auroc": 0.5624425610129684, + "auprc": 0.004982551436752465, + "brier": 0.0025356433794340868, + "calibration": { + "observed_rate": 0.0024955436720142605, + "mean_prediction": 0.002204155752695445, + "calibration_in_the_large": -0.00029138791931881524, + "expected_calibration_error_10bin": 0.0004416160663070429, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9866338374956032 + }, + "G47": { + "valid": 2315, + "positives": 89, + "negatives": 2226, + "auroc": 0.7108129662719445, + "auprc": 0.09451412136876358, + "brier": 0.03629819347823613, + "calibration": { + "observed_rate": 0.03844492440604751, + "mean_prediction": 0.029882762368142878, + "calibration_in_the_large": -0.008562162037904636, + "expected_calibration_error_10bin": 0.011369763069070041, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8142806894125924 + }, + "G51": { + "valid": 2834, + "positives": 0, + "negatives": 2834, + "auroc": null, + "auprc": null, + "brier": 1.8716620996836185e-06, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0006334493492247438, + "calibration_in_the_large": 0.0006334493492247438, + "expected_calibration_error_10bin": 0.0006334493492247438, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9968343299331692 + }, + "G62": { + "valid": 2751, + "positives": 36, + "negatives": 2715, + "auroc": 0.8676181706568447, + "auprc": 0.11032731417373201, + "brier": 0.012416674693160384, + "calibration": { + "observed_rate": 0.013086150490730643, + "mean_prediction": 0.009386204692572089, + "calibration_in_the_large": -0.0036999457981585545, + "expected_calibration_error_10bin": 0.005127244190250208, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "G81": { + "valid": 2789, + "positives": 15, + "negatives": 2774, + "auroc": 0.753689017063206, + "auprc": 0.041656823618135316, + "brier": 0.005300063587057403, + "calibration": { + "observed_rate": 0.005378271782000717, + "mean_prediction": 0.003231325714895336, + "calibration_in_the_large": -0.0021469460671053814, + "expected_calibration_error_10bin": 0.0021469460671053814, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "G83": { + "valid": 2824, + "positives": 3, + "negatives": 2821, + "auroc": 0.7380361573909962, + "auprc": 0.007177169807395134, + "brier": 0.001066109097929616, + "calibration": { + "observed_rate": 0.0010623229461756375, + "mean_prediction": 0.0014000189886026228, + "calibration_in_the_large": 0.0003376960424269853, + "expected_calibration_error_10bin": 0.0003376960424269853, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "G89": { + "valid": 2537, + "positives": 71, + "negatives": 2466, + "auroc": 0.7705470454519493, + "auprc": 0.12483715600170765, + "brier": 0.026238060427597364, + "calibration": { + "observed_rate": 0.02798581001182499, + "mean_prediction": 0.03309281219296357, + "calibration_in_the_large": 0.005107002181138579, + "expected_calibration_error_10bin": 0.005107002181138579, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8923672177277524 + }, + "G90": { + "valid": 2827, + "positives": 0, + "negatives": 2827, + "auroc": null, + "auprc": null, + "brier": 3.0319267671870975e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.002421744931200533, + "calibration_in_the_large": 0.002421744931200533, + "expected_calibration_error_10bin": 0.002421744931200533, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "G92": { + "valid": 2733, + "positives": 48, + "negatives": 2685, + "auroc": 0.7711514587212911, + "auprc": 0.062287143669850636, + "brier": 0.017368549008328005, + "calibration": { + "observed_rate": 0.01756311745334797, + "mean_prediction": 0.018105033229391176, + "calibration_in_the_large": 0.0005419157760432058, + "expected_calibration_error_10bin": 0.006059304728513054, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "G93": { + "valid": 2656, + "positives": 56, + "negatives": 2600, + "auroc": 0.7955563186813187, + "auprc": 0.06962545144593506, + "brier": 0.020254044477618794, + "calibration": { + "observed_rate": 0.02108433734939759, + "mean_prediction": 0.01547501704187954, + "calibration_in_the_large": -0.0056093203075180485, + "expected_calibration_error_10bin": 0.006502163303889849, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9342244108336265 + }, + "G99": { + "valid": 2841, + "positives": 1, + "negatives": 2840, + "auroc": 0.9383802816901409, + "auprc": 0.005681818181818182, + "brier": 0.00035194296137025483, + "calibration": { + "observed_rate": 0.00035198873636043646, + "mean_prediction": 0.0004352885676490676, + "calibration_in_the_large": 8.329983128863114e-05, + "expected_calibration_error_10bin": 8.329983128863114e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9992965177629265 + }, + "H10": { + "valid": 2832, + "positives": 6, + "negatives": 2826, + "auroc": 0.7028190610993159, + "auprc": 0.006238076508240621, + "brier": 0.0021156543320289506, + "calibration": { + "observed_rate": 0.00211864406779661, + "mean_prediction": 0.0009946186256883198, + "calibration_in_the_large": -0.0011240254421082904, + "expected_calibration_error_10bin": 0.0011240254421082904, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9961308476960957 + }, + "H26": { + "valid": 2819, + "positives": 0, + "negatives": 2819, + "auroc": null, + "auprc": null, + "brier": 1.3761308594181168e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0018164929899117269, + "calibration_in_the_large": 0.0018164929899117269, + "expected_calibration_error_10bin": 0.0018164929899117269, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "H35": { + "valid": 2806, + "positives": 6, + "negatives": 2800, + "auroc": 0.6613095238095238, + "auprc": 0.011346172508390394, + "brier": 0.0021291260052313152, + "calibration": { + "observed_rate": 0.0021382751247327157, + "mean_prediction": 0.0012126742889203804, + "calibration_in_the_large": -0.0009256008358123353, + "expected_calibration_error_10bin": 0.0009256008358123353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "H40": { + "valid": 2750, + "positives": 12, + "negatives": 2738, + "auroc": 0.7997017287557828, + "auprc": 0.027075904405886395, + "brier": 0.004311719246796799, + "calibration": { + "observed_rate": 0.004363636363636364, + "mean_prediction": 0.004528423161223559, + "calibration_in_the_large": 0.00016478679758719517, + "expected_calibration_error_10bin": 0.00016478679758719517, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9672880759760816 + }, + "H53": { + "valid": 2790, + "positives": 15, + "negatives": 2775, + "auroc": 0.6268588588588588, + "auprc": 0.015654573737684797, + "brier": 0.005368140455369762, + "calibration": { + "observed_rate": 0.005376344086021506, + "mean_prediction": 0.005213184696522051, + "calibration_in_the_large": -0.00016315938949945478, + "expected_calibration_error_10bin": 0.000433769566674574, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "H54": { + "valid": 2809, + "positives": 4, + "negatives": 2805, + "auroc": 0.4730837789661319, + "auprc": 0.0016392227763727, + "brier": 0.0014486671538852935, + "calibration": { + "observed_rate": 0.001423994304022784, + "mean_prediction": 0.002661533714151947, + "calibration_in_the_large": 0.001237539410129163, + "expected_calibration_error_10bin": 0.001237539410129163, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "H91": { + "valid": 2791, + "positives": 7, + "negatives": 2784, + "auroc": 0.8326149425287356, + "auprc": 0.009528963234694926, + "brier": 0.002500458118712286, + "calibration": { + "observed_rate": 0.0025080616266571123, + "mean_prediction": 0.0024998273373074546, + "calibration_in_the_large": -8.234289349657708e-06, + "expected_calibration_error_10bin": 8.234289349657708e-06, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9817094618360886 + }, + "I07": { + "valid": 2823, + "positives": 6, + "negatives": 2817, + "auroc": 0.8996568453437463, + "auprc": 0.014941290776429209, + "brier": 0.002131420314436638, + "calibration": { + "observed_rate": 0.0021253985122210413, + "mean_prediction": 0.00179023772410359, + "calibration_in_the_large": -0.0003351607881174512, + "expected_calibration_error_10bin": 0.0003351607881174512, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "I08": { + "valid": 2767, + "positives": 14, + "negatives": 2753, + "auroc": 0.8901977063982149, + "auprc": 0.06606790445497225, + "brier": 0.005232590187887501, + "calibration": { + "observed_rate": 0.005059631369714492, + "mean_prediction": 0.009683452336316142, + "calibration_in_the_large": 0.00462382096660165, + "expected_calibration_error_10bin": 0.00462382096660165, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9732676749912065 + }, + "I10": { + "valid": 1498, + "positives": 43, + "negatives": 1455, + "auroc": 0.7070566610724847, + "auprc": 0.07392175192260203, + "brier": 0.02798295300681902, + "calibration": { + "observed_rate": 0.02870493991989319, + "mean_prediction": 0.019866579850337178, + "calibration_in_the_large": -0.008838360069556014, + "expected_calibration_error_10bin": 0.013431273204109258, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.5269081955680619 + }, + "I11": { + "valid": 2676, + "positives": 57, + "negatives": 2619, + "auroc": 0.8131133484723646, + "auprc": 0.0804142645979235, + "brier": 0.020377728430628135, + "calibration": { + "observed_rate": 0.021300448430493273, + "mean_prediction": 0.013022069467159466, + "calibration_in_the_large": -0.008278378963333806, + "expected_calibration_error_10bin": 0.01014485452398468, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9412592332043616 + }, + "I12": { + "valid": 2552, + "positives": 30, + "negatives": 2522, + "auroc": 0.8299101242400212, + "auprc": 0.1083568979416582, + "brier": 0.011302280990596204, + "calibration": { + "observed_rate": 0.011755485893416929, + "mean_prediction": 0.008584945152095673, + "calibration_in_the_large": -0.0031705407413212556, + "expected_calibration_error_10bin": 0.006454360333759401, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8976433345058037 + }, + "I13": { + "valid": 2727, + "positives": 31, + "negatives": 2696, + "auroc": 0.897602182444721, + "auprc": 0.18313214933342686, + "brier": 0.01031774160369179, + "calibration": { + "observed_rate": 0.011367803447011368, + "mean_prediction": 0.013495742027030414, + "calibration_in_the_large": 0.002127938580019046, + "expected_calibration_error_10bin": 0.0024924979858141592, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9591980302497362 + }, + "I16": { + "valid": 2390, + "positives": 13, + "negatives": 2377, + "auroc": 0.9350830070224264, + "auprc": 0.04514648755469852, + "brier": 0.005349372363126054, + "calibration": { + "observed_rate": 0.005439330543933054, + "mean_prediction": 0.002811097628976515, + "calibration_in_the_large": -0.0026282329149565392, + "expected_calibration_error_10bin": 0.0026282329149565392, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8406612733028491 + }, + "I21": { + "valid": 2671, + "positives": 23, + "negatives": 2648, + "auroc": 0.8119663733088138, + "auprc": 0.037497689830467376, + "brier": 0.008668520827495698, + "calibration": { + "observed_rate": 0.008611007113440658, + "mean_prediction": 0.012286682836584411, + "calibration_in_the_large": 0.003675675723143753, + "expected_calibration_error_10bin": 0.003675675723143753, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "I24": { + "valid": 2809, + "positives": 10, + "negatives": 2799, + "auroc": 0.8881743479814219, + "auprc": 0.020587787227431008, + "brier": 0.0035444590782323614, + "calibration": { + "observed_rate": 0.00355998576005696, + "mean_prediction": 0.0024701709609937015, + "calibration_in_the_large": -0.0010898147990632584, + "expected_calibration_error_10bin": 0.0010898147990632584, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9880408019697503 + }, + "I25": { + "valid": 2243, + "positives": 46, + "negatives": 2197, + "auroc": 0.8247313530308128, + "auprc": 0.07516353224397732, + "brier": 0.0196334082708666, + "calibration": { + "observed_rate": 0.02050824788230049, + "mean_prediction": 0.015224211031808843, + "calibration_in_the_large": -0.0052840368504916465, + "expected_calibration_error_10bin": 0.006438136521704116, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7889553288779458 + }, + "I26": { + "valid": 2760, + "positives": 20, + "negatives": 2740, + "auroc": 0.7649817518248175, + "auprc": 0.06746637464489076, + "brier": 0.007012242751596122, + "calibration": { + "observed_rate": 0.007246376811594203, + "mean_prediction": 0.006922103657621925, + "calibration_in_the_large": -0.00032427315397227756, + "expected_calibration_error_10bin": 0.0003242731539722777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9708054871614492 + }, + "I27": { + "valid": 2716, + "positives": 40, + "negatives": 2676, + "auroc": 0.8509902840059791, + "auprc": 0.07110550454126488, + "brier": 0.014308494614338741, + "calibration": { + "observed_rate": 0.014727540500736377, + "mean_prediction": 0.013005927137235977, + "calibration_in_the_large": -0.0017216133635004002, + "expected_calibration_error_10bin": 0.0054169948149259675, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I31": { + "valid": 2793, + "positives": 17, + "negatives": 2776, + "auroc": 0.7629047296151891, + "auprc": 0.07946351126304194, + "brier": 0.005949845907620312, + "calibration": { + "observed_rate": 0.006086645184389545, + "mean_prediction": 0.0043929419121070765, + "calibration_in_the_large": -0.0016937032722824687, + "expected_calibration_error_10bin": 0.001693703272282469, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I34": { + "valid": 2753, + "positives": 19, + "negatives": 2734, + "auroc": 0.767412312786355, + "auprc": 0.025142008537760264, + "brier": 0.006921733028751825, + "calibration": { + "observed_rate": 0.006901561932437341, + "mean_prediction": 0.006696505317916394, + "calibration_in_the_large": -0.00020505661452094748, + "expected_calibration_error_10bin": 0.0017632156794730777, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9683432993316918 + }, + "I35": { + "valid": 2723, + "positives": 7, + "negatives": 2716, + "auroc": 0.726488533557753, + "auprc": 0.009771072340330042, + "brier": 0.0026833672549297395, + "calibration": { + "observed_rate": 0.002570694087403599, + "mean_prediction": 0.005640098449241301, + "calibration_in_the_large": 0.003069404361837702, + "expected_calibration_error_10bin": 0.003069404361837702, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9577910657755891 + }, + "I42": { + "valid": 2740, + "positives": 14, + "negatives": 2726, + "auroc": 0.9181427523320407, + "auprc": 0.05956790594271834, + "brier": 0.004960733630420073, + "calibration": { + "observed_rate": 0.0051094890510948905, + "mean_prediction": 0.005479438762602075, + "calibration_in_the_large": 0.0003699497115071844, + "expected_calibration_error_10bin": 0.00036994971150718396, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "I44": { + "valid": 2722, + "positives": 24, + "negatives": 2698, + "auroc": 0.8164689893748456, + "auprc": 0.04110967350530093, + "brier": 0.008734199927874397, + "calibration": { + "observed_rate": 0.00881704628949302, + "mean_prediction": 0.009667795478771904, + "calibration_in_the_large": 0.0008507491892788838, + "expected_calibration_error_10bin": 0.001583775877471031, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9574393246570524 + }, + "I45": { + "valid": 2766, + "positives": 22, + "negatives": 2744, + "auroc": 0.6931652531142327, + "auprc": 0.023122745874438442, + "brier": 0.007867371327598908, + "calibration": { + "observed_rate": 0.007953723788864787, + "mean_prediction": 0.0072124401496197026, + "calibration_in_the_large": -0.0007412836392450845, + "expected_calibration_error_10bin": 0.0007412836392450845, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9729159338726697 + }, + "I46": { + "valid": 2831, + "positives": 5, + "negatives": 2826, + "auroc": 0.7664543524416136, + "auprc": 0.0071899919346651246, + "brier": 0.0017667550495395555, + "calibration": { + "observed_rate": 0.0017661603673613563, + "mean_prediction": 0.0020621263529287093, + "calibration_in_the_large": 0.000295965985567353, + "expected_calibration_error_10bin": 0.000295965985567353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I47": { + "valid": 2716, + "positives": 19, + "negatives": 2697, + "auroc": 0.6781804344007962, + "auprc": 0.013176845015049198, + "brier": 0.007031850872333743, + "calibration": { + "observed_rate": 0.006995581737849779, + "mean_prediction": 0.007924975273811674, + "calibration_in_the_large": 0.0009293935359618944, + "expected_calibration_error_10bin": 0.0009293935359618952, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9553288779458319 + }, + "I48": { + "valid": 2385, + "positives": 32, + "negatives": 2353, + "auroc": 0.7624707819804505, + "auprc": 0.03823638438694251, + "brier": 0.013197169613687876, + "calibration": { + "observed_rate": 0.013417190775681341, + "mean_prediction": 0.012453179725352334, + "calibration_in_the_large": -0.0009640110503290073, + "expected_calibration_error_10bin": 0.00328888417810638, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8389025677101654 + }, + "I49": { + "valid": 2734, + "positives": 19, + "negatives": 2715, + "auroc": 0.6987302510419696, + "auprc": 0.01720884998892385, + "brier": 0.006892435001334012, + "calibration": { + "observed_rate": 0.006949524506217996, + "mean_prediction": 0.004451611736057194, + "calibration_in_the_large": -0.002497912770160802, + "expected_calibration_error_10bin": 0.002497912770160802, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I50": { + "valid": 2415, + "positives": 52, + "negatives": 2363, + "auroc": 0.8214215957550701, + "auprc": 0.10079141956087158, + "brier": 0.020897105072416572, + "calibration": { + "observed_rate": 0.021532091097308487, + "mean_prediction": 0.020221890139021093, + "calibration_in_the_large": -0.0013102009582873948, + "expected_calibration_error_10bin": 0.009967084000585389, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.849454801266268 + }, + "I51": { + "valid": 2807, + "positives": 10, + "negatives": 2797, + "auroc": 0.8102252413299964, + "auprc": 0.0198658544489946, + "brier": 0.0035330179654920932, + "calibration": { + "observed_rate": 0.003562522265764161, + "mean_prediction": 0.0025167954165447198, + "calibration_in_the_large": -0.0010457268492194412, + "expected_calibration_error_10bin": 0.0010457268492194412, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "I61": { + "valid": 2802, + "positives": 9, + "negatives": 2793, + "auroc": 0.8719019771651351, + "auprc": 0.02974225916197339, + "brier": 0.0031892382216584373, + "calibration": { + "observed_rate": 0.0032119914346895075, + "mean_prediction": 0.0010951458762401107, + "calibration_in_the_large": -0.002116845558449397, + "expected_calibration_error_10bin": 0.002116845558449397, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9855786141399929 + }, + "I63": { + "valid": 2735, + "positives": 16, + "negatives": 2719, + "auroc": 0.7321855461566752, + "auprc": 0.01603431182963393, + "brier": 0.005837114986001583, + "calibration": { + "observed_rate": 0.005850091407678245, + "mean_prediction": 0.004534821479493613, + "calibration_in_the_large": -0.0013152699281846324, + "expected_calibration_error_10bin": 0.0015949826378765185, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9620119591980303 + }, + "I65": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.6596218689788054, + "auprc": 0.013968303358776095, + "brier": 0.0021662288199076393, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0031793333298404834, + "calibration_in_the_large": 0.001016391729263699, + "expected_calibration_error_10bin": 0.001016391729263699, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "I67": { + "valid": 2773, + "positives": 5, + "negatives": 2768, + "auroc": 0.7304190751445087, + "auprc": 0.007835011277995612, + "brier": 0.0018244723878550442, + "calibration": { + "observed_rate": 0.0018031013342949874, + "mean_prediction": 0.0034957724046299995, + "calibration_in_the_large": 0.001692671070335012, + "expected_calibration_error_10bin": 0.001692671070335012, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.975378121702427 + }, + "I69": { + "valid": 2752, + "positives": 19, + "negatives": 2733, + "auroc": 0.8023764130413851, + "auprc": 0.04960118047782288, + "brier": 0.006911572296226753, + "calibration": { + "observed_rate": 0.006904069767441861, + "mean_prediction": 0.007630166118726826, + "calibration_in_the_large": 0.0007260963512849654, + "expected_calibration_error_10bin": 0.001954056698633489, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9679915582131551 + }, + "I70": { + "valid": 2771, + "positives": 12, + "negatives": 2759, + "auroc": 0.7982964842334179, + "auprc": 0.025244087579761626, + "brier": 0.004292134280620945, + "calibration": { + "observed_rate": 0.004330566582461205, + "mean_prediction": 0.0036911177966890674, + "calibration_in_the_large": -0.0006394487857721378, + "expected_calibration_error_10bin": 0.0008054480118587186, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9746746394653535 + }, + "I71": { + "valid": 2769, + "positives": 5, + "negatives": 2764, + "auroc": 0.7496382054992764, + "auprc": 0.006082908235024815, + "brier": 0.0018171253785620812, + "calibration": { + "observed_rate": 0.0018057060310581437, + "mean_prediction": 0.002987555994939516, + "calibration_in_the_large": 0.0011818499638813723, + "expected_calibration_error_10bin": 0.0011818499638813723, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.97397115722828 + }, + "I72": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.6420104314841157, + "auprc": 0.009713809997766812, + "brier": 0.0021307347219052175, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.0018776995947337644, + "calibration_in_the_large": -0.0002514700291129353, + "expected_calibration_error_10bin": 0.0002514700291129353, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "I73": { + "valid": 2734, + "positives": 10, + "negatives": 2724, + "auroc": 0.8394640234948605, + "auprc": 0.1686863339866665, + "brier": 0.003512479769027173, + "calibration": { + "observed_rate": 0.0036576444769568397, + "mean_prediction": 0.0035155253209799195, + "calibration_in_the_large": -0.0001421191559769202, + "expected_calibration_error_10bin": 0.0005159678294817413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9616602180794935 + }, + "I74": { + "valid": 2821, + "positives": 5, + "negatives": 2816, + "auroc": 0.7605823863636364, + "auprc": 0.010894468225429266, + "brier": 0.0017665818843629344, + "calibration": { + "observed_rate": 0.001772421127259837, + "mean_prediction": 0.0009669416254016581, + "calibration_in_the_large": -0.0008054795018581788, + "expected_calibration_error_10bin": 0.0008054795018581788, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "I77": { + "valid": 2785, + "positives": 6, + "negatives": 2779, + "auroc": 0.6176682259805686, + "auprc": 0.005633116551319549, + "brier": 0.0021631277367744855, + "calibration": { + "observed_rate": 0.0021543985637342907, + "mean_prediction": 0.0023523906560692456, + "calibration_in_the_large": 0.00019799209233495492, + "expected_calibration_error_10bin": 0.00019799209233495492, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "I80": { + "valid": 2827, + "positives": 5, + "negatives": 2822, + "auroc": 0.8265768958185684, + "auprc": 0.11296297119948728, + "brier": 0.0017125616849359647, + "calibration": { + "observed_rate": 0.0017686593562079944, + "mean_prediction": 0.002198119765088339, + "calibration_in_the_large": 0.00042946040888034473, + "expected_calibration_error_10bin": 0.0007508602075755183, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "I81": { + "valid": 2826, + "positives": 9, + "negatives": 2817, + "auroc": 0.8270421646353489, + "auprc": 0.020629227861954768, + "brier": 0.003342433505061003, + "calibration": { + "observed_rate": 0.0031847133757961785, + "mean_prediction": 0.0030173855831949147, + "calibration_in_the_large": -0.0001673277926012638, + "expected_calibration_error_10bin": 0.002093688788507438, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I82": { + "valid": 2739, + "positives": 35, + "negatives": 2704, + "auroc": 0.7757924767540152, + "auprc": 0.061693282813487016, + "brier": 0.012557597038103243, + "calibration": { + "observed_rate": 0.012778386272362175, + "mean_prediction": 0.011107776574115054, + "calibration_in_the_large": -0.0016706096982471216, + "expected_calibration_error_10bin": 0.005523042574169354, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9634189236721773 + }, + "I85": { + "valid": 2793, + "positives": 9, + "negatives": 2784, + "auroc": 0.9934546615581098, + "auprc": 0.3109625582186558, + "brier": 0.0026935540942484267, + "calibration": { + "observed_rate": 0.00322234156820623, + "mean_prediction": 0.0025623943148409996, + "calibration_in_the_large": -0.0006599472533652304, + "expected_calibration_error_10bin": 0.0022389047077136116, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "I87": { + "valid": 2780, + "positives": 14, + "negatives": 2766, + "auroc": 0.7259580621836587, + "auprc": 0.026608881730026953, + "brier": 0.005022669463576909, + "calibration": { + "observed_rate": 0.005035971223021582, + "mean_prediction": 0.006426417282587902, + "calibration_in_the_large": 0.0013904460595663198, + "expected_calibration_error_10bin": 0.00139044605956632, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9778403095321843 + }, + "I89": { + "valid": 2826, + "positives": 5, + "negatives": 2821, + "auroc": 0.8470046082949308, + "auprc": 0.02004320859987955, + "brier": 0.0017577228789542989, + "calibration": { + "observed_rate": 0.0017692852087756545, + "mean_prediction": 0.001068342750708517, + "calibration_in_the_large": -0.0007009424580671376, + "expected_calibration_error_10bin": 0.0007009424580671376, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "I95": { + "valid": 2485, + "positives": 104, + "negatives": 2381, + "auroc": 0.7627733983781863, + "auprc": 0.11713412693772364, + "brier": 0.03888086507386707, + "calibration": { + "observed_rate": 0.041851106639839035, + "mean_prediction": 0.02993973979173168, + "calibration_in_the_large": -0.011911366848107355, + "expected_calibration_error_10bin": 0.014082873996063297, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.874076679563841 + }, + "I96": { + "valid": 2831, + "positives": 6, + "negatives": 2825, + "auroc": 0.8483185840707964, + "auprc": 0.0352355487844912, + "brier": 0.0020885633802491866, + "calibration": { + "observed_rate": 0.0021193924408336277, + "mean_prediction": 0.00181321993011637, + "calibration_in_the_large": -0.0003061725107172577, + "expected_calibration_error_10bin": 0.0003061725107172577, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "I97": { + "valid": 2740, + "positives": 12, + "negatives": 2728, + "auroc": 0.7806695992179863, + "auprc": 0.024101296308840333, + "brier": 0.0043309087673362315, + "calibration": { + "observed_rate": 0.004379562043795621, + "mean_prediction": 0.003660742399322267, + "calibration_in_the_large": -0.0007188196444733539, + "expected_calibration_error_10bin": 0.0007188196444733539, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.963770664790714 + }, + "J02": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7097802976612332, + "auprc": 0.0023533203377640623, + "brier": 0.0010982493435961395, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0022898995818825753, + "calibration_in_the_large": 0.001227952679227708, + "expected_calibration_error_10bin": 0.001227952679227708, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J06": { + "valid": 2816, + "positives": 12, + "negatives": 2804, + "auroc": 0.6970993818354732, + "auprc": 0.014840735641090877, + "brier": 0.004444046461864292, + "calibration": { + "observed_rate": 0.004261363636363636, + "mean_prediction": 0.005019830242002466, + "calibration_in_the_large": 0.0007584666056388301, + "expected_calibration_error_10bin": 0.0016987713026391693, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "J12": { + "valid": 2829, + "positives": 1, + "negatives": 2828, + "auroc": 0.9791371994342292, + "auprc": 0.016666666666666666, + "brier": 0.0005673235579673323, + "calibration": { + "observed_rate": 0.0003534817956875221, + "mean_prediction": 0.003675697719675999, + "calibration_in_the_large": 0.0033222159239884768, + "expected_calibration_error_10bin": 0.003322215923988477, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J15": { + "valid": 2795, + "positives": 15, + "negatives": 2780, + "auroc": 0.787074340527578, + "auprc": 0.018420477535999246, + "brier": 0.005424877764922088, + "calibration": { + "observed_rate": 0.005366726296958855, + "mean_prediction": 0.006245427034790475, + "calibration_in_the_large": 0.0008787007378316201, + "expected_calibration_error_10bin": 0.0008787007378316193, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9831164263102357 + }, + "J18": { + "valid": 2671, + "positives": 64, + "negatives": 2607, + "auroc": 0.7827064154200231, + "auprc": 0.09348080844975688, + "brier": 0.022722126353806556, + "calibration": { + "observed_rate": 0.023961063272182705, + "mean_prediction": 0.02106855657578831, + "calibration_in_the_large": -0.002892506696394393, + "expected_calibration_error_10bin": 0.005779735002865151, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9395005276116778 + }, + "J30": { + "valid": 2815, + "positives": 7, + "negatives": 2808, + "auroc": 0.6227106227106227, + "auprc": 0.016733780888743773, + "brier": 0.002601738245610673, + "calibration": { + "observed_rate": 0.002486678507992895, + "mean_prediction": 0.004444217248154981, + "calibration_in_the_large": 0.001957538740162086, + "expected_calibration_error_10bin": 0.001957538740162086, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "J32": { + "valid": 2829, + "positives": 2, + "negatives": 2827, + "auroc": 0.5060134418111072, + "auprc": 0.0028487078701847908, + "brier": 0.000749117515913088, + "calibration": { + "observed_rate": 0.0007069635913750442, + "mean_prediction": 0.0017521182056954253, + "calibration_in_the_large": 0.001045154614320381, + "expected_calibration_error_10bin": 0.001045154614320381, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J38": { + "valid": 2825, + "positives": 3, + "negatives": 2822, + "auroc": 0.7394283014410583, + "auprc": 0.006749659812806984, + "brier": 0.0010713568154377346, + "calibration": { + "observed_rate": 0.0010619469026548673, + "mean_prediction": 0.0021245679330481877, + "calibration_in_the_large": 0.0010626210303933204, + "expected_calibration_error_10bin": 0.0010626210303933204, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J43": { + "valid": 2804, + "positives": 10, + "negatives": 2794, + "auroc": 0.6952040085898353, + "auprc": 0.00781532970510962, + "brier": 0.0035614723044190373, + "calibration": { + "observed_rate": 0.003566333808844508, + "mean_prediction": 0.002620509352512424, + "calibration_in_the_large": -0.0009458244563320842, + "expected_calibration_error_10bin": 0.0009458244563320842, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "J44": { + "valid": 2570, + "positives": 30, + "negatives": 2540, + "auroc": 0.8134645669291338, + "auprc": 0.04533072748582918, + "brier": 0.011421678021677524, + "calibration": { + "observed_rate": 0.011673151750972763, + "mean_prediction": 0.010578355768462175, + "calibration_in_the_large": -0.0010947959825105876, + "expected_calibration_error_10bin": 0.002753976652907414, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9039746746394653 + }, + "J45": { + "valid": 2518, + "positives": 25, + "negatives": 2493, + "auroc": 0.6739831528279182, + "auprc": 0.03732889676966003, + "brier": 0.009787540211799386, + "calibration": { + "observed_rate": 0.009928514694201748, + "mean_prediction": 0.010627543231059695, + "calibration_in_the_large": 0.0006990285368579478, + "expected_calibration_error_10bin": 0.000753405158346681, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.885684136475554 + }, + "J47": { + "valid": 2825, + "positives": 7, + "negatives": 2818, + "auroc": 0.7991483321504613, + "auprc": 0.009779047707334801, + "brier": 0.0024716820957864593, + "calibration": { + "observed_rate": 0.00247787610619469, + "mean_prediction": 0.0011023189048345705, + "calibration_in_the_large": -0.0013755572013601197, + "expected_calibration_error_10bin": 0.0013755572013601197, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "J69": { + "valid": 2777, + "positives": 31, + "negatives": 2746, + "auroc": 0.7775767685548481, + "auprc": 0.027277584997373185, + "brier": 0.011034400552204294, + "calibration": { + "observed_rate": 0.011163125675189053, + "mean_prediction": 0.009015534761739111, + "calibration_in_the_large": -0.002147590913449942, + "expected_calibration_error_10bin": 0.002711517529953114, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.976785086176574 + }, + "J81": { + "valid": 2781, + "positives": 23, + "negatives": 2758, + "auroc": 0.7914367689251821, + "auprc": 0.03218745872447466, + "brier": 0.008170033608597192, + "calibration": { + "observed_rate": 0.008270406328658756, + "mean_prediction": 0.0038737570756223446, + "calibration_in_the_large": -0.004396649253036411, + "expected_calibration_error_10bin": 0.004516855854104881, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "J84": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.9181494661921709, + "auprc": 0.019870172249299014, + "brier": 0.002463504887508869, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.0021311956285019746, + "calibration_in_the_large": -0.0003537173995420439, + "expected_calibration_error_10bin": 0.0003537173995420439, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "J90": { + "valid": 2754, + "positives": 39, + "negatives": 2715, + "auroc": 0.7193747934079425, + "auprc": 0.041518725358920754, + "brier": 0.013916951686301228, + "calibration": { + "observed_rate": 0.014161220043572984, + "mean_prediction": 0.009859537519086959, + "calibration_in_the_large": -0.004301682524486025, + "expected_calibration_error_10bin": 0.005862887235909053, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9686950404502286 + }, + "J91": { + "valid": 2807, + "positives": 12, + "negatives": 2795, + "auroc": 0.8508050089445438, + "auprc": 0.0562323214150153, + "brier": 0.004224450800655557, + "calibration": { + "observed_rate": 0.004275026718916993, + "mean_prediction": 0.005032347515563028, + "calibration_in_the_large": 0.0007573207966460353, + "expected_calibration_error_10bin": 0.0009882015806236865, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "J94": { + "valid": 2829, + "positives": 10, + "negatives": 2819, + "auroc": 0.6488116353316778, + "auprc": 0.0329358007680851, + "brier": 0.003572552476794717, + "calibration": { + "observed_rate": 0.003534817956875221, + "mean_prediction": 0.002238755134908492, + "calibration_in_the_large": -0.0012960628219667288, + "expected_calibration_error_10bin": 0.001957912892363872, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "J95": { + "valid": 2770, + "positives": 16, + "negatives": 2754, + "auroc": 0.7897376543209876, + "auprc": 0.0404982627785336, + "brier": 0.005663756007639343, + "calibration": { + "observed_rate": 0.005776173285198556, + "mean_prediction": 0.0055741426014338895, + "calibration_in_the_large": -0.00020203068376466616, + "expected_calibration_error_10bin": 0.0005226811272531768, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9743228983468167 + }, + "J96": { + "valid": 2605, + "positives": 81, + "negatives": 2524, + "auroc": 0.8339789869108412, + "auprc": 0.12323434810794118, + "brier": 0.029014690866222277, + "calibration": { + "observed_rate": 0.03109404990403071, + "mean_prediction": 0.02581717022031292, + "calibration_in_the_large": -0.005276879683717789, + "expected_calibration_error_10bin": 0.011711665911927004, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9162856137882518 + }, + "J98": { + "valid": 2692, + "positives": 39, + "negatives": 2653, + "auroc": 0.7719369460794263, + "auprc": 0.07659140904472206, + "brier": 0.01395187036217099, + "calibration": { + "observed_rate": 0.01448736998514116, + "mean_prediction": 0.009501879252157801, + "calibration_in_the_large": -0.0049854907329833584, + "expected_calibration_error_10bin": 0.004985490732983358, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9468870911009497 + }, + "K04": { + "valid": 2836, + "positives": 2, + "negatives": 2834, + "auroc": 0.9599505998588568, + "auprc": 0.03249475890985325, + "brier": 0.0006996692586378093, + "calibration": { + "observed_rate": 0.0007052186177715092, + "mean_prediction": 0.0006438402638299665, + "calibration_in_the_large": -6.13783539415427e-05, + "expected_calibration_error_10bin": 6.13783539415427e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9975378121702427 + }, + "K12": { + "valid": 2824, + "positives": 14, + "negatives": 2810, + "auroc": 0.8887646161667514, + "auprc": 0.11513553484318949, + "brier": 0.0064347397629301315, + "calibration": { + "observed_rate": 0.004957507082152974, + "mean_prediction": 0.008298474481091715, + "calibration_in_the_large": 0.003340967398938741, + "expected_calibration_error_10bin": 0.0061902979315278635, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K20": { + "valid": 2813, + "positives": 11, + "negatives": 2802, + "auroc": 0.7473882291869444, + "auprc": 0.012119895294992798, + "brier": 0.00402855674482591, + "calibration": { + "observed_rate": 0.0039104159260575895, + "mean_prediction": 0.0069470996283827885, + "calibration_in_the_large": 0.003036683702325199, + "expected_calibration_error_10bin": 0.0030366837023251985, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K21": { + "valid": 2043, + "positives": 94, + "negatives": 1949, + "auroc": 0.7471098108140564, + "auprc": 0.15142885397148229, + "brier": 0.04171796221887983, + "calibration": { + "observed_rate": 0.04601076847772883, + "mean_prediction": 0.04073662670800231, + "calibration_in_the_large": -0.005274141769726522, + "expected_calibration_error_10bin": 0.005274141769726525, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.7186071051705945 + }, + "K22": { + "valid": 2764, + "positives": 21, + "negatives": 2743, + "auroc": 0.7640747877714702, + "auprc": 0.0346574738696957, + "brier": 0.007477540126783505, + "calibration": { + "observed_rate": 0.007597684515195369, + "mean_prediction": 0.006731885938632189, + "calibration_in_the_large": -0.0008657985765631801, + "expected_calibration_error_10bin": 0.001275662180049173, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9722124516355962 + }, + "K25": { + "valid": 2817, + "positives": 7, + "negatives": 2810, + "auroc": 0.7628368073207931, + "auprc": 0.006822883920973209, + "brier": 0.002645210778940395, + "calibration": { + "observed_rate": 0.0024849130280440185, + "mean_prediction": 0.004220193041317222, + "calibration_in_the_large": 0.0017352800132732034, + "expected_calibration_error_10bin": 0.0017352800132732034, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "K26": { + "valid": 2814, + "positives": 6, + "negatives": 2808, + "auroc": 0.9112060778727445, + "auprc": 0.051866818431874, + "brier": 0.0020919805781067285, + "calibration": { + "observed_rate": 0.0021321961620469083, + "mean_prediction": 0.002417468449108495, + "calibration_in_the_large": 0.0002852722870615868, + "expected_calibration_error_10bin": 0.0002852722870615868, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "K29": { + "valid": 2785, + "positives": 15, + "negatives": 2770, + "auroc": 0.7590854392298436, + "auprc": 0.026756787554221905, + "brier": 0.005368553587962091, + "calibration": { + "observed_rate": 0.005385996409335727, + "mean_prediction": 0.00784890794306425, + "calibration_in_the_large": 0.002462911533728523, + "expected_calibration_error_10bin": 0.0024629115337285227, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K30": { + "valid": 2837, + "positives": 3, + "negatives": 2834, + "auroc": 0.8804987061867796, + "auprc": 0.006632803129273529, + "brier": 0.0010719835590799383, + "calibration": { + "observed_rate": 0.0010574550581600281, + "mean_prediction": 0.0019514521403104516, + "calibration_in_the_large": 0.0008939970821504235, + "expected_calibration_error_10bin": 0.0008939970821504235, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9978895532887795 + }, + "K31": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.9041525202402716, + "auprc": 0.08028683310726314, + "brier": 0.007332514137732848, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.00800233399307617, + "calibration_in_the_large": 0.0003825952412619465, + "expected_calibration_error_10bin": 0.000759765093643088, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "K40": { + "valid": 2827, + "positives": 4, + "negatives": 2823, + "auroc": 0.9335812964930924, + "auprc": 0.017732519575763335, + "brier": 0.0014061130818970894, + "calibration": { + "observed_rate": 0.0014149274849663955, + "mean_prediction": 0.001524568379528371, + "calibration_in_the_large": 0.00010964089456197553, + "expected_calibration_error_10bin": 0.00010964089456197553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9943721421034118 + }, + "K42": { + "valid": 2820, + "positives": 7, + "negatives": 2813, + "auroc": 0.7740592148697374, + "auprc": 0.01862681069599092, + "brier": 0.00248403347671553, + "calibration": { + "observed_rate": 0.0024822695035460994, + "mean_prediction": 0.0016358419891659638, + "calibration_in_the_large": -0.0008464275143801356, + "expected_calibration_error_10bin": 0.0009495494680332413, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9919099542736546 + }, + "K43": { + "valid": 2813, + "positives": 9, + "negatives": 2804, + "auroc": 0.8049215406562055, + "auprc": 0.023162278851719047, + "brier": 0.0031670782762267067, + "calibration": { + "observed_rate": 0.003199431212228937, + "mean_prediction": 0.002464710754533215, + "calibration_in_the_large": -0.0007347204576957219, + "expected_calibration_error_10bin": 0.0007347204576957219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K44": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.6833281908875861, + "auprc": 0.008649929064564351, + "brier": 0.0025191380312939195, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.0038712897212838404, + "calibration_in_the_large": 0.001357824730260501, + "expected_calibration_error_10bin": 0.001357824730260501, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K52": { + "valid": 2749, + "positives": 39, + "negatives": 2710, + "auroc": 0.8143911439114391, + "auprc": 0.06736019114719165, + "brier": 0.014604439838593525, + "calibration": { + "observed_rate": 0.014186977082575483, + "mean_prediction": 0.014044854847442842, + "calibration_in_the_large": -0.00014212223513264052, + "expected_calibration_error_10bin": 0.00856229226076907, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9669363348575448 + }, + "K55": { + "valid": 2815, + "positives": 10, + "negatives": 2805, + "auroc": 0.7184670231729056, + "auprc": 0.0075797401746523965, + "brier": 0.003631903160652867, + "calibration": { + "observed_rate": 0.003552397868561279, + "mean_prediction": 0.003881122744849007, + "calibration_in_the_large": 0.000328724876287728, + "expected_calibration_error_10bin": 0.00032872487628772865, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9901512486809708 + }, + "K56": { + "valid": 2745, + "positives": 33, + "negatives": 2712, + "auroc": 0.797979797979798, + "auprc": 0.05158306391101972, + "brier": 0.011711094586236898, + "calibration": { + "observed_rate": 0.012021857923497269, + "mean_prediction": 0.013027230696731463, + "calibration_in_the_large": 0.0010053727732341946, + "expected_calibration_error_10bin": 0.0010053727732341942, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9655293703833978 + }, + "K57": { + "valid": 2741, + "positives": 26, + "negatives": 2715, + "auroc": 0.7081031307550645, + "auprc": 0.02317182532602315, + "brier": 0.00944332813691168, + "calibration": { + "observed_rate": 0.009485589201021525, + "mean_prediction": 0.00641380477345652, + "calibration_in_the_large": -0.0030717844275650052, + "expected_calibration_error_10bin": 0.004172731595350536, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9641224059092508 + }, + "K58": { + "valid": 2792, + "positives": 7, + "negatives": 2785, + "auroc": 0.7545524493459862, + "auprc": 0.01653443168907885, + "brier": 0.002497441634170988, + "calibration": { + "observed_rate": 0.002507163323782235, + "mean_prediction": 0.002639301752408581, + "calibration_in_the_large": 0.00013213842862634575, + "expected_calibration_error_10bin": 0.00013213842862634575, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9820612029546254 + }, + "K59": { + "valid": 2560, + "positives": 90, + "negatives": 2470, + "auroc": 0.7453846153846154, + "auprc": 0.11886515763037576, + "brier": 0.03267937367269318, + "calibration": { + "observed_rate": 0.03515625, + "mean_prediction": 0.02903097256507863, + "calibration_in_the_large": -0.006125277434921372, + "expected_calibration_error_10bin": 0.00881180681449223, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9004572634540978 + }, + "K62": { + "valid": 2813, + "positives": 18, + "negatives": 2795, + "auroc": 0.8206122043331345, + "auprc": 0.021039773117507543, + "brier": 0.006338141429693172, + "calibration": { + "observed_rate": 0.006398862424457874, + "mean_prediction": 0.003613299113169655, + "calibration_in_the_large": -0.002785563311288219, + "expected_calibration_error_10bin": 0.002785563311288219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K63": { + "valid": 2810, + "positives": 21, + "negatives": 2789, + "auroc": 0.7421673581587529, + "auprc": 0.01823942514283744, + "brier": 0.007420773479000687, + "calibration": { + "observed_rate": 0.007473309608540925, + "mean_prediction": 0.004893892327594605, + "calibration_in_the_large": -0.0025794172809463205, + "expected_calibration_error_10bin": 0.0025794172809463205, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "K64": { + "valid": 2801, + "positives": 22, + "negatives": 2779, + "auroc": 0.8051620923157448, + "auprc": 0.029476447400750908, + "brier": 0.0080007730147557, + "calibration": { + "observed_rate": 0.00785433773652267, + "mean_prediction": 0.007562059703227651, + "calibration_in_the_large": -0.0002922780332950195, + "expected_calibration_error_10bin": 0.0042872574843985985, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9852268730214562 + }, + "K65": { + "valid": 2813, + "positives": 14, + "negatives": 2799, + "auroc": 0.8031439799928546, + "auprc": 0.04512091276128929, + "brier": 0.005212366770383402, + "calibration": { + "observed_rate": 0.004976892996800568, + "mean_prediction": 0.008984166878744298, + "calibration_in_the_large": 0.004007273881943729, + "expected_calibration_error_10bin": 0.004007273881943728, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9894477664438973 + }, + "K66": { + "valid": 2796, + "positives": 9, + "negatives": 2787, + "auroc": 0.7188534066897899, + "auprc": 0.013218377495924735, + "brier": 0.0032659630715323375, + "calibration": { + "observed_rate": 0.003218884120171674, + "mean_prediction": 0.004871029812035466, + "calibration_in_the_large": 0.0016521456918637918, + "expected_calibration_error_10bin": 0.0016521456918637918, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9834681674287724 + }, + "K70": { + "valid": 2774, + "positives": 6, + "negatives": 2768, + "auroc": 0.9582731213872833, + "auprc": 0.03116556559366965, + "brier": 0.0021664826294382146, + "calibration": { + "observed_rate": 0.0021629416005767843, + "mean_prediction": 0.0014008546179395615, + "calibration_in_the_large": -0.0007620869826372228, + "expected_calibration_error_10bin": 0.0010691575050848074, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9757298628209637 + }, + "K72": { + "valid": 2787, + "positives": 22, + "negatives": 2765, + "auroc": 0.9165378924872596, + "auprc": 0.2086485209747029, + "brier": 0.007354328888802099, + "calibration": { + "observed_rate": 0.007893792608539648, + "mean_prediction": 0.006087592655829481, + "calibration_in_the_large": -0.0018061999527101665, + "expected_calibration_error_10bin": 0.004688260390174394, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9803024973619416 + }, + "K74": { + "valid": 2763, + "positives": 7, + "negatives": 2756, + "auroc": 0.9639228695832469, + "auprc": 0.0499536476824544, + "brier": 0.0028569133893752855, + "calibration": { + "observed_rate": 0.0025334781035106766, + "mean_prediction": 0.00450724114264873, + "calibration_in_the_large": 0.0019737630391380534, + "expected_calibration_error_10bin": 0.001973763039138054, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9718607105170595 + }, + "K75": { + "valid": 2798, + "positives": 12, + "negatives": 2786, + "auroc": 0.8007298396745632, + "auprc": 0.03473230442790203, + "brier": 0.004254113279399009, + "calibration": { + "observed_rate": 0.004288777698355968, + "mean_prediction": 0.003449960084515681, + "calibration_in_the_large": -0.0008388176138402871, + "expected_calibration_error_10bin": 0.001542946817046337, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "K76": { + "valid": 2681, + "positives": 34, + "negatives": 2647, + "auroc": 0.8070512678059513, + "auprc": 0.19002494960499058, + "brier": 0.011543005918733149, + "calibration": { + "observed_rate": 0.01268183513614323, + "mean_prediction": 0.007282367037163902, + "calibration_in_the_large": -0.0053994680989793275, + "expected_calibration_error_10bin": 0.006991166095631796, + "nonempty_bins": 7 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9430179387970454 + }, + "K80": { + "valid": 2731, + "positives": 18, + "negatives": 2713, + "auroc": 0.6550149486013843, + "auprc": 0.015610749183675613, + "brier": 0.006563367312406381, + "calibration": { + "observed_rate": 0.006590992310508971, + "mean_prediction": 0.00479274521036646, + "calibration_in_the_large": -0.0017982471001425117, + "expected_calibration_error_10bin": 0.0018727758880564395, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9606049947238833 + }, + "K81": { + "valid": 2825, + "positives": 6, + "negatives": 2819, + "auroc": 0.8612392101217926, + "auprc": 0.024302718815633575, + "brier": 0.002116134165042509, + "calibration": { + "observed_rate": 0.0021238938053097347, + "mean_prediction": 0.0019756522076230174, + "calibration_in_the_large": -0.0001482415976867173, + "expected_calibration_error_10bin": 0.00022567143346197455, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9936686598663383 + }, + "K82": { + "valid": 2824, + "positives": 4, + "negatives": 2820, + "auroc": 0.6115248226950355, + "auprc": 0.004237184817459178, + "brier": 0.001422613313962249, + "calibration": { + "observed_rate": 0.00141643059490085, + "mean_prediction": 0.0014624080899032072, + "calibration_in_the_large": 4.597749500235724e-05, + "expected_calibration_error_10bin": 4.597749500235724e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "K83": { + "valid": 2757, + "positives": 16, + "negatives": 2741, + "auroc": 0.8997172564757387, + "auprc": 0.10118531664191346, + "brier": 0.005714071784485589, + "calibration": { + "observed_rate": 0.005803409503083061, + "mean_prediction": 0.005070562707801264, + "calibration_in_the_large": -0.0007328467952817976, + "expected_calibration_error_10bin": 0.003709702648199624, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.969750263805839 + }, + "K85": { + "valid": 2779, + "positives": 10, + "negatives": 2769, + "auroc": 0.8552184904297581, + "auprc": 0.048772749801620004, + "brier": 0.0035386092350930963, + "calibration": { + "observed_rate": 0.0035984166966534724, + "mean_prediction": 0.0026892147787970456, + "calibration_in_the_large": -0.0009092019178564268, + "expected_calibration_error_10bin": 0.0009092019178564268, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9774885684136475 + }, + "K86": { + "valid": 2785, + "positives": 7, + "negatives": 2778, + "auroc": 0.7339298570400082, + "auprc": 0.017303044258516656, + "brier": 0.002541037266546029, + "calibration": { + "observed_rate": 0.0025134649910233393, + "mean_prediction": 0.004087166386826299, + "calibration_in_the_large": 0.0015737013958029597, + "expected_calibration_error_10bin": 0.0015737013958029593, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "K90": { + "valid": 2831, + "positives": 4, + "negatives": 2827, + "auroc": 0.7293951185001769, + "auprc": 0.00723394526523336, + "brier": 0.001411889502066226, + "calibration": { + "observed_rate": 0.001412928293889085, + "mean_prediction": 0.0009990666002282005, + "calibration_in_the_large": -0.00041386169366088455, + "expected_calibration_error_10bin": 0.00041386169366088455, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "K91": { + "valid": 2768, + "positives": 26, + "negatives": 2742, + "auroc": 0.8714161476743534, + "auprc": 0.06372754433356913, + "brier": 0.009143404319089539, + "calibration": { + "observed_rate": 0.00939306358381503, + "mean_prediction": 0.009186252903876166, + "calibration_in_the_large": -0.00020681067993886387, + "expected_calibration_error_10bin": 0.003636371063688352, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "K92": { + "valid": 2751, + "positives": 37, + "negatives": 2714, + "auroc": 0.8072855464159812, + "auprc": 0.07197655102984431, + "brier": 0.012937253684850956, + "calibration": { + "observed_rate": 0.013449654671028717, + "mean_prediction": 0.011139358966868617, + "calibration_in_the_large": -0.0023102957041601004, + "expected_calibration_error_10bin": 0.002479416311255401, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9676398170946183 + }, + "K94": { + "valid": 2823, + "positives": 15, + "negatives": 2808, + "auroc": 0.887962962962963, + "auprc": 0.06006042620228761, + "brier": 0.00516313734850152, + "calibration": { + "observed_rate": 0.005313496280552604, + "mean_prediction": 0.005077318509779769, + "calibration_in_the_large": -0.00023617777077283506, + "expected_calibration_error_10bin": 0.0010932348582525266, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9929651776292648 + }, + "L02": { + "valid": 2807, + "positives": 22, + "negatives": 2785, + "auroc": 0.7324628692671781, + "auprc": 0.0184120323768755, + "brier": 0.0077683599415305695, + "calibration": { + "observed_rate": 0.007837548984681154, + "mean_prediction": 0.006556678064407671, + "calibration_in_the_large": -0.0012808709202734832, + "expected_calibration_error_10bin": 0.0012808709202734832, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "L03": { + "valid": 2701, + "positives": 50, + "negatives": 2651, + "auroc": 0.7099056959637873, + "auprc": 0.08038223978933771, + "brier": 0.017859612716551225, + "calibration": { + "observed_rate": 0.018511662347278787, + "mean_prediction": 0.013632447193243323, + "calibration_in_the_large": -0.004879215154035464, + "expected_calibration_error_10bin": 0.008174509860038636, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9500527611677805 + }, + "L08": { + "valid": 2830, + "positives": 5, + "negatives": 2825, + "auroc": 0.631929203539823, + "auprc": 0.0038854750652066007, + "brier": 0.0017770324210763582, + "calibration": { + "observed_rate": 0.0017667844522968198, + "mean_prediction": 0.0016134530045193573, + "calibration_in_the_large": -0.0001533314477774625, + "expected_calibration_error_10bin": 0.0001533314477774625, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9954273654590221 + }, + "L27": { + "valid": 2818, + "positives": 12, + "negatives": 2806, + "auroc": 0.7365466856735566, + "auprc": 0.02650403805313478, + "brier": 0.004663343113756622, + "calibration": { + "observed_rate": 0.0042583392476933995, + "mean_prediction": 0.0064402221215711965, + "calibration_in_the_large": 0.002181882873877797, + "expected_calibration_error_10bin": 0.0024212557809752335, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "L29": { + "valid": 2817, + "positives": 4, + "negatives": 2813, + "auroc": 0.675879843583363, + "auprc": 0.008077782018715925, + "brier": 0.0015409479305783255, + "calibration": { + "observed_rate": 0.0014199503017394391, + "mean_prediction": 0.005572088394393975, + "calibration_in_the_large": 0.0041521380926545365, + "expected_calibration_error_10bin": 0.004152138092654536, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9908547309180443 + }, + "L30": { + "valid": 2816, + "positives": 8, + "negatives": 2808, + "auroc": 0.7787571225071225, + "auprc": 0.024814860987420483, + "brier": 0.0028545801440952073, + "calibration": { + "observed_rate": 0.002840909090909091, + "mean_prediction": 0.003171460049908668, + "calibration_in_the_large": 0.000330550958999577, + "expected_calibration_error_10bin": 0.000330550958999577, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9905029897995076 + }, + "L50": { + "valid": 2835, + "positives": 3, + "negatives": 2832, + "auroc": 0.7281073446327684, + "auprc": 0.00903371581337683, + "brier": 0.0010580494525670677, + "calibration": { + "observed_rate": 0.0010582010582010583, + "mean_prediction": 0.0012186720425689493, + "calibration_in_the_large": 0.00016047098436789103, + "expected_calibration_error_10bin": 0.00016047098436789103, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.997186071051706 + }, + "L53": { + "valid": 2829, + "positives": 0, + "negatives": 2829, + "auroc": null, + "auprc": null, + "brier": 1.2897754739342372e-05, + "calibration": { + "observed_rate": 0.0, + "mean_prediction": 0.0015813414089350076, + "calibration_in_the_large": 0.0015813414089350076, + "expected_calibration_error_10bin": 0.0015813414089350076, + "nonempty_bins": 1 + }, + "reason": "single_class", + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "L76": { + "valid": 2793, + "positives": 15, + "negatives": 2778, + "auroc": 0.729157667386609, + "auprc": 0.01537857358061828, + "brier": 0.005344540423297765, + "calibration": { + "observed_rate": 0.0053705692803437165, + "mean_prediction": 0.005707180874658712, + "calibration_in_the_large": 0.00033661159431499534, + "expected_calibration_error_10bin": 0.00033661159431499534, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9824129440731622 + }, + "L89": { + "valid": 2798, + "positives": 25, + "negatives": 2773, + "auroc": 0.8658204111071042, + "auprc": 0.04389704822520791, + "brier": 0.008806667245159222, + "calibration": { + "observed_rate": 0.008934953538241601, + "mean_prediction": 0.005369172687651118, + "calibration_in_the_large": -0.0035657808505904836, + "expected_calibration_error_10bin": 0.004413536088908434, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9841716496658459 + }, + "L97": { + "valid": 2789, + "positives": 13, + "negatives": 2776, + "auroc": 0.8496176014187542, + "auprc": 0.10943308777685595, + "brier": 0.004605859167359317, + "calibration": { + "observed_rate": 0.004661168877733955, + "mean_prediction": 0.006940084789841389, + "calibration_in_the_large": 0.002278915912107434, + "expected_calibration_error_10bin": 0.002769011972872956, + "nonempty_bins": 6 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "L98": { + "valid": 2824, + "positives": 8, + "negatives": 2816, + "auroc": 0.6742276278409091, + "auprc": 0.005572039547435722, + "brier": 0.00295000915824554, + "calibration": { + "observed_rate": 0.0028328611898017, + "mean_prediction": 0.005490859102717094, + "calibration_in_the_large": 0.0026579979129153944, + "expected_calibration_error_10bin": 0.002657997912915394, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9933169187478016 + }, + "M10": { + "valid": 2713, + "positives": 15, + "negatives": 2698, + "auroc": 0.7664195700518903, + "auprc": 0.06112867631509073, + "brier": 0.005413233399053264, + "calibration": { + "observed_rate": 0.0055289347585698485, + "mean_prediction": 0.007569004372495028, + "calibration_in_the_large": 0.002040069613925179, + "expected_calibration_error_10bin": 0.0020400696139251783, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9542736545902216 + }, + "M16": { + "valid": 2790, + "positives": 3, + "negatives": 2787, + "auroc": 0.8545628513335726, + "auprc": 0.010221157637094956, + "brier": 0.0010791460012806796, + "calibration": { + "observed_rate": 0.001075268817204301, + "mean_prediction": 0.001903421522283223, + "calibration_in_the_large": 0.0008281527050789219, + "expected_calibration_error_10bin": 0.0008281527050789219, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9813577207175519 + }, + "M17": { + "valid": 2733, + "positives": 13, + "negatives": 2720, + "auroc": 0.7012160633484162, + "auprc": 0.011354933667369919, + "brier": 0.004805185455135463, + "calibration": { + "observed_rate": 0.004756677643615075, + "mean_prediction": 0.00427780567008203, + "calibration_in_the_large": -0.0004788719735330455, + "expected_calibration_error_10bin": 0.0010011740848282632, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9613084769609568 + }, + "M19": { + "valid": 2674, + "positives": 37, + "negatives": 2637, + "auroc": 0.6888868390574875, + "auprc": 0.031956816756498384, + "brier": 0.013768669347076616, + "calibration": { + "observed_rate": 0.013836948391922213, + "mean_prediction": 0.01185288339508242, + "calibration_in_the_large": -0.0019840649968397937, + "expected_calibration_error_10bin": 0.00447881009264844, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.940555750967288 + }, + "M21": { + "valid": 2821, + "positives": 3, + "negatives": 2818, + "auroc": 0.8666903241069316, + "auprc": 0.025703388151377054, + "brier": 0.00105659326267028, + "calibration": { + "observed_rate": 0.0010634526763559022, + "mean_prediction": 0.0018803300396715542, + "calibration_in_the_large": 0.000816877363315652, + "expected_calibration_error_10bin": 0.000816877363315652, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9922616953921913 + }, + "M25": { + "valid": 2717, + "positives": 49, + "negatives": 2668, + "auroc": 0.6387800997460453, + "auprc": 0.034224210847441254, + "brier": 0.017936866364192783, + "calibration": { + "observed_rate": 0.0180345969819654, + "mean_prediction": 0.013078971339912973, + "calibration_in_the_large": -0.0049556256420524285, + "expected_calibration_error_10bin": 0.008605174610550778, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9556806190643686 + }, + "M35": { + "valid": 2806, + "positives": 2, + "negatives": 2804, + "auroc": 0.9449001426533523, + "auprc": 0.009689831542395947, + "brier": 0.0007159218236902276, + "calibration": { + "observed_rate": 0.0007127583749109052, + "mean_prediction": 0.0014753455490522606, + "calibration_in_the_large": 0.0007625871741413553, + "expected_calibration_error_10bin": 0.0007625871741413553, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "M46": { + "valid": 2814, + "positives": 7, + "negatives": 2807, + "auroc": 0.6956079189780651, + "auprc": 0.005046382488948321, + "brier": 0.0024889709423960176, + "calibration": { + "observed_rate": 0.0024875621890547263, + "mean_prediction": 0.002335801730767792, + "calibration_in_the_large": -0.00015176045828693436, + "expected_calibration_error_10bin": 0.00015176045828693436, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9897995075624341 + }, + "M47": { + "valid": 2743, + "positives": 11, + "negatives": 2732, + "auroc": 0.7500665513110608, + "auprc": 0.020462779665202994, + "brier": 0.003977139623934425, + "calibration": { + "observed_rate": 0.004010207801676996, + "mean_prediction": 0.0031478094940337697, + "calibration_in_the_large": -0.0008623983076432259, + "expected_calibration_error_10bin": 0.0008623983076432259, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "M48": { + "valid": 2690, + "positives": 11, + "negatives": 2679, + "auroc": 0.7198751230106213, + "auprc": 0.015640263261768317, + "brier": 0.004115305121666328, + "calibration": { + "observed_rate": 0.004089219330855019, + "mean_prediction": 0.00711937463130979, + "calibration_in_the_large": 0.003030155300454772, + "expected_calibration_error_10bin": 0.0030301553004547723, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9461836088638762 + }, + "M51": { + "valid": 2785, + "positives": 5, + "negatives": 2780, + "auroc": 0.7345323741007195, + "auprc": 0.07261652406399632, + "brier": 0.0017833576758054244, + "calibration": { + "observed_rate": 0.0017953321364452424, + "mean_prediction": 0.0025345730316949358, + "calibration_in_the_large": 0.0007392408952496933, + "expected_calibration_error_10bin": 0.0007392408952496933, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9795990151248681 + }, + "M54": { + "valid": 2567, + "positives": 47, + "negatives": 2520, + "auroc": 0.7072695035460993, + "auprc": 0.060517197666310224, + "brier": 0.017833332141571352, + "calibration": { + "observed_rate": 0.018309310479158552, + "mean_prediction": 0.020391432610289622, + "calibration_in_the_large": 0.00208212213113107, + "expected_calibration_error_10bin": 0.002082122131131073, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9029194512838551 + }, + "M62": { + "valid": 2781, + "positives": 14, + "negatives": 2767, + "auroc": 0.6740151788941091, + "auprc": 0.017182192748960958, + "brier": 0.004996776372183482, + "calibration": { + "observed_rate": 0.005034160373966199, + "mean_prediction": 0.004231616097847722, + "calibration_in_the_large": -0.0008025442761184776, + "expected_calibration_error_10bin": 0.0008025442761184776, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9781920506507211 + }, + "M79": { + "valid": 2697, + "positives": 43, + "negatives": 2654, + "auroc": 0.7226827430293896, + "auprc": 0.0506170272895599, + "brier": 0.015853730075407326, + "calibration": { + "observed_rate": 0.015943641082684465, + "mean_prediction": 0.018934406176743655, + "calibration_in_the_large": 0.0029907650940591904, + "expected_calibration_error_10bin": 0.0029907650940591926, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9486457966936335 + }, + "M81": { + "valid": 2705, + "positives": 17, + "negatives": 2688, + "auroc": 0.7331932773109243, + "auprc": 0.019144283178866392, + "brier": 0.006344399980969894, + "calibration": { + "observed_rate": 0.006284658040665434, + "mean_prediction": 0.005205915643628133, + "calibration_in_the_large": -0.0010787423970373012, + "expected_calibration_error_10bin": 0.0021514246087052063, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9514597256419275 + }, + "M84": { + "valid": 2818, + "positives": 6, + "negatives": 2812, + "auroc": 0.8274063537221432, + "auprc": 0.028205667245696227, + "brier": 0.0021204776298958832, + "calibration": { + "observed_rate": 0.0021291696238466998, + "mean_prediction": 0.003193002546511951, + "calibration_in_the_large": 0.0010638329226652513, + "expected_calibration_error_10bin": 0.001063832922665251, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9912064720365811 + }, + "M85": { + "valid": 2768, + "positives": 7, + "negatives": 2761, + "auroc": 0.588917059036581, + "auprc": 0.003606817064895476, + "brier": 0.0025464866136844827, + "calibration": { + "observed_rate": 0.0025289017341040463, + "mean_prediction": 0.0031280311391319207, + "calibration_in_the_large": 0.0005991294050278744, + "expected_calibration_error_10bin": 0.0005991294050278744, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9736194161097432 + }, + "M86": { + "valid": 2803, + "positives": 17, + "negatives": 2786, + "auroc": 0.7831806089269879, + "auprc": 0.06933264814487253, + "brier": 0.005909134629119742, + "calibration": { + "observed_rate": 0.006064930431680342, + "mean_prediction": 0.003688295811326662, + "calibration_in_the_large": -0.00237663462035368, + "expected_calibration_error_10bin": 0.0026764794859348803, + "nonempty_bins": 3 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9859303552585297 + }, + "M94": { + "valid": 2819, + "positives": 3, + "negatives": 2816, + "auroc": 0.81640625, + "auprc": 0.00368089718530132, + "brier": 0.0010643992167811446, + "calibration": { + "observed_rate": 0.001064207165661582, + "mean_prediction": 0.0006800996578085903, + "calibration_in_the_large": -0.0003841075078529917, + "expected_calibration_error_10bin": 0.0003841075078529917, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9915582131551178 + }, + "M96": { + "valid": 2804, + "positives": 4, + "negatives": 2800, + "auroc": 0.8702678571428571, + "auprc": 0.029753918051790392, + "brier": 0.001419419393027974, + "calibration": { + "observed_rate": 0.0014265335235378032, + "mean_prediction": 0.002505293649985687, + "calibration_in_the_large": 0.0010787601264478836, + "expected_calibration_error_10bin": 0.0010787601264478836, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9862820963770664 + }, + "N12": { + "valid": 2831, + "positives": 8, + "negatives": 2823, + "auroc": 0.6706075097414098, + "auprc": 0.009430639173020719, + "brier": 0.0028504019792992084, + "calibration": { + "observed_rate": 0.00282585658777817, + "mean_prediction": 0.0027798116817213518, + "calibration_in_the_large": -4.604490605681841e-05, + "expected_calibration_error_10bin": 0.0003154440519940033, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N13": { + "valid": 2756, + "positives": 21, + "negatives": 2735, + "auroc": 0.7090624183860016, + "auprc": 0.08585518642573728, + "brier": 0.007419435873899568, + "calibration": { + "observed_rate": 0.007619738751814224, + "mean_prediction": 0.005530249348288086, + "calibration_in_the_large": -0.0020894894035261378, + "expected_calibration_error_10bin": 0.0021636496550276477, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9693985226873022 + }, + "N14": { + "valid": 2826, + "positives": 8, + "negatives": 2818, + "auroc": 0.8824964513839603, + "auprc": 0.030412251671960655, + "brier": 0.0027962500310502493, + "calibration": { + "observed_rate": 0.0028308563340410475, + "mean_prediction": 0.0019509365139458487, + "calibration_in_the_large": -0.0008799198200951988, + "expected_calibration_error_10bin": 0.0008799198200951988, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9940204009848751 + }, + "N17": { + "valid": 2292, + "positives": 104, + "negatives": 2188, + "auroc": 0.8164067993249895, + "auprc": 0.20038440382695716, + "brier": 0.04001946332431599, + "calibration": { + "observed_rate": 0.04537521815008726, + "mean_prediction": 0.03826870153816614, + "calibration_in_the_large": -0.007106516611921118, + "expected_calibration_error_10bin": 0.014047649899589766, + "nonempty_bins": 8 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8061906436862469 + }, + "N18": { + "valid": 2440, + "positives": 50, + "negatives": 2390, + "auroc": 0.8529623430962343, + "auprc": 0.26984297042185895, + "brier": 0.017718119809028977, + "calibration": { + "observed_rate": 0.020491803278688523, + "mean_prediction": 0.012361859850655297, + "calibration_in_the_large": -0.008129943428033226, + "expected_calibration_error_10bin": 0.008129943428033228, + "nonempty_bins": 5 + }, + "reason": null, + "coverage_in_primary_cohort": 0.858248329229687 + }, + "N20": { + "valid": 2806, + "positives": 8, + "negatives": 2798, + "auroc": 0.8082558970693352, + "auprc": 0.012542048604898715, + "brier": 0.002840398286602869, + "calibration": { + "observed_rate": 0.002851033499643621, + "mean_prediction": 0.0019249993108255432, + "calibration_in_the_large": -0.0009260341888180778, + "expected_calibration_error_10bin": 0.0009260341888180778, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.98698557861414 + }, + "N25": { + "valid": 2831, + "positives": 7, + "negatives": 2824, + "auroc": 0.9263456090651558, + "auprc": 0.06217205085660325, + "brier": 0.0024413758987814993, + "calibration": { + "observed_rate": 0.002472624514305899, + "mean_prediction": 0.0015999275965973175, + "calibration_in_the_large": -0.0008726969177085817, + "expected_calibration_error_10bin": 0.0011447387432644862, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.995779106577559 + }, + "N28": { + "valid": 2789, + "positives": 10, + "negatives": 2779, + "auroc": 0.7913278157610651, + "auprc": 0.019287020230023412, + "brier": 0.0035639324459368696, + "calibration": { + "observed_rate": 0.0035855145213338113, + "mean_prediction": 0.004887210539474628, + "calibration_in_the_large": 0.0013016960181408163, + "expected_calibration_error_10bin": 0.0013016960181408163, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9810059795990151 + }, + "N30": { + "valid": 2829, + "positives": 11, + "negatives": 2818, + "auroc": 0.7219498032131105, + "auprc": 0.015260474072542708, + "brier": 0.0039394612240412396, + "calibration": { + "observed_rate": 0.003888299752562743, + "mean_prediction": 0.004910224430306988, + "calibration_in_the_large": 0.0010219246777442453, + "expected_calibration_error_10bin": 0.0010219246777442457, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N32": { + "valid": 2807, + "positives": 15, + "negatives": 2792, + "auroc": 0.8400429799426934, + "auprc": 0.1103963130325605, + "brier": 0.005225729578729518, + "calibration": { + "observed_rate": 0.005343783398646241, + "mean_prediction": 0.003787725287081434, + "calibration_in_the_large": -0.0015560581115648072, + "expected_calibration_error_10bin": 0.0015560581115648072, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9873373197326768 + }, + "N39": { + "valid": 2520, + "positives": 83, + "negatives": 2437, + "auroc": 0.7634609014638777, + "auprc": 0.08569453703673713, + "brier": 0.03133275646615091, + "calibration": { + "observed_rate": 0.03293650793650794, + "mean_prediction": 0.033309091341872106, + "calibration_in_the_large": 0.00037258340536416856, + "expected_calibration_error_10bin": 0.00849141006266499, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.8863876187126275 + }, + "N40": { + "valid": 2606, + "positives": 24, + "negatives": 2582, + "auroc": 0.8178898786470437, + "auprc": 0.04903903164790763, + "brier": 0.009088904142714608, + "calibration": { + "observed_rate": 0.00920951650038373, + "mean_prediction": 0.00880544450179836, + "calibration_in_the_large": -0.00040407199858536955, + "expected_calibration_error_10bin": 0.0029202182703887054, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9166373549067885 + }, + "N73": { + "valid": 2829, + "positives": 6, + "negatives": 2823, + "auroc": 0.9374778604321644, + "auprc": 0.15594576072934027, + "brier": 0.002044371799033474, + "calibration": { + "observed_rate": 0.0021208907741251328, + "mean_prediction": 0.0014366765546820275, + "calibration_in_the_large": -0.0006842142194431052, + "expected_calibration_error_10bin": 0.0006842142194431052, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9950756243404854 + }, + "N99": { + "valid": 2799, + "positives": 6, + "negatives": 2793, + "auroc": 0.7725265544814417, + "auprc": 0.005853840403605461, + "brier": 0.0021484329142224126, + "calibration": { + "observed_rate": 0.0021436227224008574, + "mean_prediction": 0.002154444441562482, + "calibration_in_the_large": 1.0821719161624617e-05, + "expected_calibration_error_10bin": 1.0821719161624617e-05, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9845233907843827 + }, + "O69": { + "valid": 2743, + "positives": 6, + "negatives": 2737, + "auroc": 0.9962245767872366, + "auprc": 0.3214848017479596, + "brier": 0.0018842913496208821, + "calibration": { + "observed_rate": 0.002187386073641998, + "mean_prediction": 0.0012608183854341207, + "calibration_in_the_large": -0.0009265676882078771, + "expected_calibration_error_10bin": 0.0014636189666062467, + "nonempty_bins": 4 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9648258881463243 + }, + "O99": { + "valid": 2652, + "positives": 3, + "negatives": 2649, + "auroc": 0.8687555052220964, + "auprc": 0.059520287800117644, + "brier": 0.0011892490067585701, + "calibration": { + "observed_rate": 0.0011312217194570137, + "mean_prediction": 0.0009219074918084398, + "calibration_in_the_large": -0.00020931422764857387, + "expected_calibration_error_10bin": 0.0005377375734387636, + "nonempty_bins": 2 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9328174463594794 + }, + "Q21": { + "valid": 2810, + "positives": 5, + "negatives": 2805, + "auroc": 0.724349376114082, + "auprc": 0.00863073693198609, + "brier": 0.0017741880720594564, + "calibration": { + "observed_rate": 0.0017793594306049821, + "mean_prediction": 0.0016665205646082457, + "calibration_in_the_large": -0.00011283886599673643, + "expected_calibration_error_10bin": 0.00011283886599673643, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9883925430882871 + }, + "U07": { + "valid": 2828, + "positives": 3, + "negatives": 2825, + "auroc": 0.7708554572271387, + "auprc": 0.018056362713896962, + "brier": 0.0010825476545206216, + "calibration": { + "observed_rate": 0.0010608203677510608, + "mean_prediction": 0.0035340412017614994, + "calibration_in_the_large": 0.0024732208340104388, + "expected_calibration_error_10bin": 0.0024732208340104388, + "nonempty_bins": 1 + }, + "reason": null, + "coverage_in_primary_cohort": 0.9947238832219486 + } + } + }, + "strata": { + "age_18_64": { + "n": 1531, + "age_sex_normalized_disease_time_brier": 1.257849920995721, + "raw_disease_time_brier_macro": 0.004421922304330298, + "macro_auroc_365d": 0.8213995761260454, + "macro_auprc_365d": 0.07337698930577093, + "macro_brier_365d": 0.006281332420054483, + "scorable_auroc_diseases": 244, + "death_time_brier": 0.019579435493868907 + }, + "age_65_plus": { + "n": 1312, + "age_sex_normalized_disease_time_brier": 1.8536548128047576, + "raw_disease_time_brier_macro": 0.007178998832410161, + "macro_auroc_365d": 0.7329476000224491, + "macro_auprc_365d": 0.062309830121680926, + "macro_brier_365d": 0.01004522119290664, + "scorable_auroc_diseases": 239, + "death_time_brier": 0.07974954191539936 + }, + "sex_F": { + "n": 1552, + "age_sex_normalized_disease_time_brier": 1.3666682358479856, + "raw_disease_time_brier_macro": 0.005052069291970328, + "macro_auroc_365d": 0.7979038036859613, + "macro_auprc_365d": 0.07197339139981984, + "macro_brier_365d": 0.007004877377211331, + "scorable_auroc_diseases": 244, + "death_time_brier": 0.04098257711841403 + }, + "sex_M": { + "n": 1291, + "age_sex_normalized_disease_time_brier": 1.7117985589307296, + "raw_disease_time_brier_macro": 0.006319733341074574, + "macro_auroc_365d": 0.7782958881998755, + "macro_auprc_365d": 0.06340518258792129, + "macro_brier_365d": 0.009036726672222616, + "scorable_auroc_diseases": 250, + "death_time_brier": 0.05499810615518102 + }, + "no_future_disease_record": { + "n": 1949, + "age_sex_normalized_disease_time_brier": 0.032166469684697406, + "raw_disease_time_brier_macro": 0.00018982010108552967, + "macro_auroc_365d": null, + "macro_auprc_365d": null, + "macro_brier_365d": 0.0003396719061432824, + "scorable_auroc_diseases": 0, + "death_time_brier": 0.03318461273520195 + }, + "future_disease_record": { + "n": 894, + "age_sex_normalized_disease_time_brier": 4.794709906254791, + "raw_disease_time_brier_macro": 0.017705822658511176, + "macro_auroc_365d": 0.7156244462741882, + "macro_auprc_365d": 0.09336401569221946, + "macro_brier_365d": 0.02477341655654759, + "scorable_auroc_diseases": 258, + "death_time_brier": 0.0782222645561618 + } + }, + "confidence_intervals": null +} diff --git a/shared/package-files/ec/ec2f648f29b943c716365c68cd01147d3de11fff581e7d8e0de19da8e63f7e23/blob b/shared/package-files/ec/ec2f648f29b943c716365c68cd01147d3de11fff581e7d8e0de19da8e63f7e23/blob new file mode 100644 index 0000000000000000000000000000000000000000..164b038826376b17c827a8c2e3340ca7dc707be8 --- /dev/null +++ b/shared/package-files/ec/ec2f648f29b943c716365c68cd01147d3de11fff581e7d8e0de19da8e63f7e23/blob @@ -0,0 +1,553 @@ +""" + +Which Archimedean is Best? +Extreme Value copulas formulas are based on Genest 2009 + +References +---------- + +Genest, C., 2009. Rank-based inference for bivariate extreme-value +copulas. The Annals of Statistics, 37(5), pp.2990-3022. + +""" + +from statsmodels.compat.pandas import deprecate_kwarg + +from abc import ABC, abstractmethod + +import numpy as np +from scipy import stats + +from statsmodels.graphics import utils +from statsmodels.graphics.utils import _import_mpl + + +class CopulaDistribution: + """Multivariate copula distribution + + Parameters + ---------- + copula : :class:`Copula` instance + An instance of :class:`Copula`, e.g., :class:`GaussianCopula`, + :class:`FrankCopula`, etc. + marginals : list of distribution instances + Marginal distributions. + cop_args : tuple, optional + Parameters for the copula. + + Notes + ----- + Status: experimental, argument handling may still change + + """ + + def __init__(self, copula, marginals, cop_args=()): + + self.copula = copula + + # no checking done on marginals + self.marginals = marginals + self.cop_args = cop_args + self.k_vars = len(marginals) + + @deprecate_kwarg("random_state", "rng") + def rvs(self, nobs=1, cop_args=None, marg_args=None, rng=None): + """Draw random samples from the joint (copula) distribution. + + Parameters + ---------- + nobs : int, optional + Number of samples to generate in the parameter space. + Default is 1. + cop_args : tuple, optional + Copula parameters. If None, then the copula parameters will be + taken from the ``cop_args`` attribute created when initiializing + the instance. + marg_args : list of tuples, optional + Parameters for the marginal distributions. It can be None if none + of the marginal distributions have parameters, otherwise it needs + to be a list of tuples with the same length has the number of + marginal distributions. The list can contain empty tuples for + marginal distributions that do not take parameter arguments. + rng : int, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional + If `rng` is None, a new ``Generator`` is created using fresh + entropy from the operating system. If `rng` is an int or array + of ints, a new ``Generator`` is created, seeded with `rng`. If + `rng` is already a ``Generator`` or ``RandomState`` instance, + that instance is used. + rng : int, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional + .. deprecated:: 0.15 + + random_state has been deprecated. In-line with SPEC-007, use + rng for passing a random number generator or seed. + + Returns + ------- + sample : ndarray of shape (nobs, k_vars) + Sample from the joint distribution, with marginals transformed + to the distributions in ``self.marginals``. + + Notes + ----- + The random samples are generated by creating a sample with uniform + margins from the copula, and using ``ppf`` to convert uniform margins + to the one specified by the marginal distribution. + + See Also + -------- + statsmodels.tools.rng_qrng.check_random_state + """ + if cop_args is None: + cop_args = self.cop_args + if marg_args is None: + marg_args = [()] * self.k_vars + + sample = self.copula.rvs(nobs=nobs, args=cop_args, rng=rng) + + for i, dist in enumerate(self.marginals): + sample[:, i] = dist.ppf( + 0.5 + (1 - 1e-10) * (sample[:, i] - 0.5), *marg_args[i] + ) + return sample + + def cdf(self, y, cop_args=None, marg_args=None): + """CDF of copula distribution. + + Parameters + ---------- + y : array_like + Values of random variable at which to evaluate cdf. + If 2-dimensional, then components of multivariate random variable + need to be in columns + cop_args : tuple, optional + Copula parameters. If None, then the copula parameters will be + taken from the ``cop_args`` attribute created when initiializing + the instance. + marg_args : list of tuples, optional + Parameters for the marginal distributions. It can be None if none + of the marginal distributions have parameters, otherwise it needs + to be a list of tuples with the same length has the number of + marginal distributions. The list can contain empty tuples for + marginal distributions that do not take parameter arguments. + + Returns + ------- + ndarray + CDF values evaluated at ``y``. + + """ + y = np.asarray(y) + if cop_args is None: + cop_args = self.cop_args + if marg_args is None: + marg_args = [()] * y.shape[-1] + + cdf_marg = [] + for i in range(self.k_vars): + cdf_marg.append(self.marginals[i].cdf(y[..., i], *marg_args[i])) + + u = np.column_stack(cdf_marg) + if y.ndim == 1: + u = u.squeeze() + return self.copula.cdf(u, cop_args) + + def pdf(self, y, cop_args=None, marg_args=None): + """PDF of copula distribution. + + Parameters + ---------- + y : array_like + Values of random variable at which to evaluate pdf. + If 2-dimensional, then components of multivariate random variable + need to be in columns + cop_args : tuple, optional + Copula parameters. If None, then the copula parameters will be + taken from the ``cop_args`` attribute created when initiializing + the instance. + marg_args : list of tuples, optional + Parameters for the marginal distributions. It can be None if none + of the marginal distributions have parameters, otherwise it needs + to be a list of tuples with the same length has the number of + marginal distributions. The list can contain empty tuples for + marginal distributions that do not take parameter arguments. + + Returns + ------- + ndarray + PDF values evaluated at ``y``. + """ + return np.exp(self.logpdf(y, cop_args=cop_args, marg_args=marg_args)) + + def logpdf(self, y, cop_args=None, marg_args=None): + """Log-pdf of copula distribution. + + Parameters + ---------- + y : array_like + Values of random variable at which to evaluate log-pdf. + If 2-dimensional, then components of multivariate random variable + need to be in columns + cop_args : tuple, optional + Copula parameters. If None, then the copula parameters will be + taken from the ``cop_args`` attribute created when initiializing + the instance. + marg_args : list of tuples, optional + Parameters for the marginal distributions. It can be None if none + of the marginal distributions have parameters, otherwise it needs + to be a list of tuples with the same length has the number of + marginal distributions. The list can contain empty tuples for + marginal distributions that do not take parameter arguments. + + Returns + ------- + ndarray + Log-pdf values evaluated at ``y``. + + """ + y = np.asarray(y) + if cop_args is None: + cop_args = self.cop_args + if marg_args is None: + marg_args = tuple([()] * y.shape[-1]) + + lpdf = 0.0 + cdf_marg = [] + for i in range(self.k_vars): + lpdf += self.marginals[i].logpdf(y[..., i], *marg_args[i]) + cdf_marg.append(self.marginals[i].cdf(y[..., i], *marg_args[i])) + + u = np.column_stack(cdf_marg) + if y.ndim == 1: + u = u.squeeze() + + lpdf += self.copula.logpdf(u, cop_args) + return lpdf + + +class Copula(ABC): + r"""A generic Copula class meant for subclassing. + + Notes + ----- + A function :math:`\phi` on :math:`[0, \infty]` is the Laplace-Stieltjes + transform of a distribution function if and only if :math:`\phi` is + completely monotone and :math:`\phi(0) = 1` [2]_. + + The following algorithm for sampling a ``d``-dimensional exchangeable + Archimedean copula with generator :math:`\phi` is due to Marshall, Olkin + (1988) [1]_, where :math:`LS^{−1}(\phi)` denotes the inverse + Laplace-Stieltjes transform of :math:`\phi`. + + From a mixture representation with respect to :math:`F`, the following + algorithm may be derived for sampling Archimedean copulas, see [1]_. + + 1. Sample :math:`V \sim F = LS^{−1}(\phi)`. + 2. Sample i.i.d. :math:`X_i \sim U[0,1], i \in \{1,...,d\}`. + 3. Return :math:`(U_1,..., U_d)`, where + :math:`U_i = \phi(−\log(X_i)/V), i \in \{1, ...,d\}`. + + Detailed properties of each copula can be found in [3]_. + + Instances of the class can access the attributes: ``rng`` for the random + number generator (used for the ``seed``). + + **Subclassing** + + When subclassing `Copula` to create a new copula, ``__init__`` and + ``random`` must be redefined. + + * ``__init__(theta)``: If the copula + does not take advantage of a ``theta``, this parameter can be omitted. + * ``random(n, random_state)``: draw ``n`` from the copula. + * ``pdf(x)``: PDF from the copula. + * ``cdf(x)``: CDF from the copula. + + References + ---------- + .. [1] Marshall AW, Olkin I. “Families of Multivariate Distributions”, + Journal of the American Statistical Association, 83, 834-841, 1988. + .. [2] Marius Hofert. "Sampling Archimedean copulas", + Universität Ulm, 2008. + .. [3] Harry Joe. "Dependence Modeling with Copulas", Monographs on + Statistics and Applied Probability 134, 2015. + + """ + + def __init__(self, k_dim=2): + self.k_dim = k_dim + + @deprecate_kwarg("random_state", "rng") + def rvs(self, nobs=1, args=(), rng=None): + """Draw `n` in the half-open interval ``[0, 1)``. + + Marginals are uniformly distributed. + + Parameters + ---------- + nobs : int, optional + Number of samples to generate from the copula. Default is 1. + args : tuple, optional + Arguments for copula parameters. The number of arguments depends + on the copula. + rng : int, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional + If `rng` is None, a new ``Generator`` is created using fresh + entropy from the operating system. If `rng` is an int or array + of ints, a new ``Generator`` is created, seeded with `rng`. If + `rng` is already a ``Generator`` or ``RandomState`` instance, + that instance is used. + rng : int, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional + .. deprecated:: 0.15 + + random_state has been deprecated. In-line with SPEC-007, use + rng for passing a random number generator or seed. + + Returns + ------- + sample : ndarray of shape (nobs, k_dim) + Sample from the copula. + + See Also + -------- + statsmodels.tools.rng_qrng.check_random_state + """ + raise NotImplementedError + + @abstractmethod + def pdf(self, u, args=()): + """Probability density function of copula. + + Parameters + ---------- + u : array_like, 2-D + Points of random variables in unit hypercube at which method is + evaluated. + The second (or last) dimension should be the same as the dimension + of the random variable, e.g., 2 for bivariate copula. + args : tuple, optional + Arguments for copula parameters. The number of arguments depends + on the copula. + + Returns + ------- + pdf : ndarray, (nobs, k_dim) + Copula pdf evaluated at points ``u``. + """ + + def logpdf(self, u, args=()): + """Log of copula pdf, loglikelihood. + + Parameters + ---------- + u : array_like, 2-D + Points of random variables in unit hypercube at which method is + evaluated. + The second (or last) dimension should be the same as the dimension + of the random variable, e.g., 2 for bivariate copula. + args : tuple, optional + Arguments for copula parameters. The number of arguments depends + on the copula. + + Returns + ------- + logpdf : ndarray, (nobs, k_dim) + Copula log-pdf evaluated at points ``u``. + """ + return np.log(self.pdf(u, *args)) + + @abstractmethod + def cdf(self, u, args=()): + """Cumulative distribution function evaluated at points u. + + Parameters + ---------- + u : array_like, 2-D + Points of random variables in unit hypercube at which method is + evaluated. + The second (or last) dimension should be the same as the dimension + of the random variable, e.g., 2 for bivariate copula. + args : tuple, optional + Arguments for copula parameters. The number of arguments depends + on the copula. + + Returns + ------- + cdf : ndarray, (nobs, k_dim) + Copula cdf evaluated at points ``u``. + """ + + def plot_scatter(self, sample=None, nobs=500, rng=None, ax=None): + """Sample the copula and plot. + + Parameters + ---------- + sample : array_like, optional + The sample to plot. If not provided (the default), a sample + is generated. + nobs : int, optional + Number of samples to generate from the copula. + rng : int, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional + If `rng` is None, a new ``Generator`` is created using fresh + entropy from the operating system. If `rng` is an int or array + of ints, a new ``Generator`` is created, seeded with `rng`. If + `rng` is already a ``Generator`` or ``RandomState`` instance, + that instance is used. + ax : AxesSubplot, optional + If given, this subplot is used to plot in instead of a new figure + being created. + + Returns + ------- + fig : Figure + If `ax` is None, the created figure. Otherwise the figure to which + `ax` is connected. + sample : ndarray of shape (nobs, k_dim) + Sample from the copula. + + See Also + -------- + statsmodels.tools.rng_qrng.check_random_state + """ + if self.k_dim != 2: + raise ValueError("Can only plot 2-dimensional Copula.") + + if sample is None: + sample = self.rvs(nobs=nobs, rng=rng) + + fig, ax = utils.create_mpl_ax(ax) + ax.scatter(sample[:, 0], sample[:, 1]) + ax.set_xlabel("u") + ax.set_ylabel("v") + + return fig, sample + + def plot_pdf(self, ticks_nbr=10, ax=None): + """Plot the PDF. + + Parameters + ---------- + ticks_nbr : int, optional + Number of color isolines for the PDF. Default is 10. + ax : AxesSubplot, optional + If given, this subplot is used to plot in instead of a new figure + being created. + + Returns + ------- + fig : Figure + If `ax` is None, the created figure. Otherwise the figure to which + `ax` is connected. + + """ + plt = _import_mpl() + + if self.k_dim != 2: + import warnings + + warnings.warn( + "Plotting 2-dimensional Copula.", RuntimeWarning, stacklevel=2 + ) + + n_samples = 100 + + eps = 1e-4 + uu, vv = np.meshgrid( + np.linspace(eps, 1 - eps, n_samples), np.linspace(eps, 1 - eps, n_samples) + ) + points = np.vstack([uu.ravel(), vv.ravel()]).T + + data = self.pdf(points).T.reshape(uu.shape) + min_ = np.nanpercentile(data, 5) + max_ = np.nanpercentile(data, 95) + + fig, ax = utils.create_mpl_ax(ax) + + vticks = np.linspace(min_, max_, num=ticks_nbr) + range_cbar = [min_, max_] + cs = ax.contourf( + uu, + vv, + data, + vticks, + antialiased=True, + vmin=range_cbar[0], + vmax=range_cbar[1], + ) + + ax.set_xlabel("u") + ax.set_ylabel("v") + ax.set_xlim(0, 1) + ax.set_ylim(0, 1) + ax.set_aspect("equal") + cbar = plt.colorbar(cs, ticks=vticks) + cbar.set_label("p") + fig.tight_layout() + + return fig + + def tau_simulated(self, nobs=1024, rng=None): + """Kendall's tau based on simulated samples. + + Parameters + ---------- + nobs : int, optional + Number of samples to generate from the copula. + rng : int, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional + If `rng` is None, a new ``Generator`` is created using fresh + entropy from the operating system. If `rng` is an int or array + of ints, a new ``Generator`` is created, seeded with `rng`. If + `rng` is already a ``Generator`` or ``RandomState`` instance, + that instance is used. + + Returns + ------- + tau : float + Kendall's tau. + """ + x = self.rvs(nobs, rng=rng) + return stats.kendalltau(x[:, 0], x[:, 1])[0] + + def fit_corr_param(self, data): + """Copula correlation parameter using Kendall's tau of sample data. + + Parameters + ---------- + data : array_like + Sample data used to fit `theta` using Kendall's tau. + + Returns + ------- + corr_param : float + Correlation parameter of the copula, ``theta`` in Archimedean and + pearson correlation in elliptical. + If k_dim > 2, then average tau is used. + """ + x = np.asarray(data) + + if x.shape[1] == 2: + tau = stats.kendalltau(x[:, 0], x[:, 1])[0] + else: + k = self.k_dim + taus = [ + stats.kendalltau(x[..., i], x[..., j])[0] + for i in range(k) + for j in range(i + 1, k) + ] + tau = np.mean(taus) + return self._arg_from_tau(tau) + + def _arg_from_tau(self, tau): + """Compute correlation parameter from tau. + + Parameters + ---------- + tau : float + Kendall's tau. + + Returns + ------- + corr_param : float + Correlation parameter of the copula, ``theta`` in Archimedean and + pearson correlation in elliptical. + + """ + raise NotImplementedError diff --git a/shared/package-files/ec/ec313e995dc7fc38a193838ae203071e4c83e2d3d7d5c022e39ef4ce2e42237d/blob b/shared/package-files/ec/ec313e995dc7fc38a193838ae203071e4c83e2d3d7d5c022e39ef4ce2e42237d/blob new file mode 100644 index 0000000000000000000000000000000000000000..b978d13503eaff74ec54a2ad7a9813b24dab68d2 --- /dev/null +++ b/shared/package-files/ec/ec313e995dc7fc38a193838ae203071e4c83e2d3d7d5c022e39ef4ce2e42237d/blob @@ -0,0 +1,120 @@ +#!python +#cython: wraparound=False, nonecheck=False, boundscheck=False, cdivision=True, language_level=3 +from numpy cimport npy_intp + +from libc.stdint cimport (uint64_t, int32_t, int64_t) +from numpy.random cimport bitgen_t + +cdef extern from "numpy/random/distributions.h": + + struct s_binomial_t: + int has_binomial + double psave + int64_t nsave + double r + double q + double fm + int64_t m + double p1 + double xm + double xl + double xr + double c + double laml + double lamr + double p2 + double p3 + double p4 + + ctypedef s_binomial_t binomial_t + + float random_standard_uniform_f(bitgen_t *bitgen_state) nogil + double random_standard_uniform(bitgen_t *bitgen_state) nogil + void random_standard_uniform_fill(bitgen_t* bitgen_state, npy_intp cnt, double *out) nogil + void random_standard_uniform_fill_f(bitgen_t *bitgen_state, npy_intp cnt, float *out) nogil + + double random_standard_exponential(bitgen_t *bitgen_state) nogil + float random_standard_exponential_f(bitgen_t *bitgen_state) nogil + void random_standard_exponential_fill(bitgen_t *bitgen_state, npy_intp cnt, double *out) nogil + void random_standard_exponential_fill_f(bitgen_t *bitgen_state, npy_intp cnt, float *out) nogil + void random_standard_exponential_inv_fill(bitgen_t *bitgen_state, npy_intp cnt, double *out) nogil + void random_standard_exponential_inv_fill_f(bitgen_t *bitgen_state, npy_intp cnt, float *out) nogil + + double random_standard_normal(bitgen_t* bitgen_state) nogil + float random_standard_normal_f(bitgen_t *bitgen_state) nogil + void random_standard_normal_fill(bitgen_t *bitgen_state, npy_intp count, double *out) nogil + void random_standard_normal_fill_f(bitgen_t *bitgen_state, npy_intp count, float *out) nogil + double random_standard_gamma(bitgen_t *bitgen_state, double shape) nogil + float random_standard_gamma_f(bitgen_t *bitgen_state, float shape) nogil + + float random_standard_uniform_f(bitgen_t *bitgen_state) nogil + void random_standard_uniform_fill_f(bitgen_t* bitgen_state, npy_intp cnt, float *out) nogil + float random_standard_normal_f(bitgen_t* bitgen_state) nogil + float random_standard_gamma_f(bitgen_t *bitgen_state, float shape) nogil + + int64_t random_positive_int64(bitgen_t *bitgen_state) nogil + int32_t random_positive_int32(bitgen_t *bitgen_state) nogil + int64_t random_positive_int(bitgen_t *bitgen_state) nogil + uint64_t random_uint(bitgen_t *bitgen_state) nogil + + double random_normal(bitgen_t *bitgen_state, double loc, double scale) nogil + + double random_gamma(bitgen_t *bitgen_state, double shape, double scale) nogil + float random_gamma_f(bitgen_t *bitgen_state, float shape, float scale) nogil + + double random_exponential(bitgen_t *bitgen_state, double scale) nogil + double random_uniform(bitgen_t *bitgen_state, double lower, double range) nogil + double random_beta(bitgen_t *bitgen_state, double a, double b) nogil + double random_chisquare(bitgen_t *bitgen_state, double df) nogil + double random_f(bitgen_t *bitgen_state, double dfnum, double dfden) nogil + double random_standard_cauchy(bitgen_t *bitgen_state) nogil + double random_pareto(bitgen_t *bitgen_state, double a) nogil + double random_weibull(bitgen_t *bitgen_state, double a) nogil + double random_power(bitgen_t *bitgen_state, double a) nogil + double random_laplace(bitgen_t *bitgen_state, double loc, double scale) nogil + double random_gumbel(bitgen_t *bitgen_state, double loc, double scale) nogil + double random_logistic(bitgen_t *bitgen_state, double loc, double scale) nogil + double random_lognormal(bitgen_t *bitgen_state, double mean, double sigma) nogil + double random_rayleigh(bitgen_t *bitgen_state, double mode) nogil + double random_standard_t(bitgen_t *bitgen_state, double df) nogil + double random_noncentral_chisquare(bitgen_t *bitgen_state, double df, + double nonc) nogil + double random_noncentral_f(bitgen_t *bitgen_state, double dfnum, + double dfden, double nonc) nogil + double random_wald(bitgen_t *bitgen_state, double mean, double scale) nogil + double random_vonmises(bitgen_t *bitgen_state, double mu, double kappa) nogil + double random_triangular(bitgen_t *bitgen_state, double left, double mode, + double right) nogil + + int64_t random_poisson(bitgen_t *bitgen_state, double lam) nogil + int64_t random_negative_binomial(bitgen_t *bitgen_state, double n, double p) nogil + int64_t random_binomial(bitgen_t *bitgen_state, double p, int64_t n, binomial_t *binomial) nogil + int64_t random_logseries(bitgen_t *bitgen_state, double p) nogil + int64_t random_geometric_search(bitgen_t *bitgen_state, double p) nogil + int64_t random_geometric_inversion(bitgen_t *bitgen_state, double p) nogil + int64_t random_geometric(bitgen_t *bitgen_state, double p) nogil + int64_t random_zipf(bitgen_t *bitgen_state, double a) nogil + int64_t random_hypergeometric(bitgen_t *bitgen_state, int64_t good, int64_t bad, + int64_t sample) nogil + + uint64_t random_interval(bitgen_t *bitgen_state, uint64_t max) nogil + + # Generate random uint64 numbers in closed interval [off, off + rng]. + uint64_t random_bounded_uint64(bitgen_t *bitgen_state, + uint64_t off, uint64_t rng, + uint64_t mask, bint use_masked) nogil + + void random_multinomial(bitgen_t *bitgen_state, int64_t n, int64_t *mnix, + double *pix, npy_intp d, binomial_t *binomial) nogil + + int random_multivariate_hypergeometric_count(bitgen_t *bitgen_state, + int64_t total, + size_t num_colors, int64_t *colors, + int64_t nsample, + size_t num_variates, int64_t *variates) nogil + void random_multivariate_hypergeometric_marginals(bitgen_t *bitgen_state, + int64_t total, + size_t num_colors, int64_t *colors, + int64_t nsample, + size_t num_variates, int64_t *variates) nogil + diff --git a/shared/package-files/ec/ec31d2d210e4f9122cdc841cdd26d9541d3ed4c86248227d5e0bc4c849682fb3/blob b/shared/package-files/ec/ec31d2d210e4f9122cdc841cdd26d9541d3ed4c86248227d5e0bc4c849682fb3/blob new file mode 100644 index 0000000000000000000000000000000000000000..d8e36b2e65d11e7f3b2c540c1b292a39a6cc219d --- /dev/null +++ b/shared/package-files/ec/ec31d2d210e4f9122cdc841cdd26d9541d3ed4c86248227d5e0bc4c849682fb3/blob @@ -0,0 +1,46 @@ +__all__ = [ + "BaseExceptionGroup", + "ExceptionGroup", + "catch", + "format_exception", + "format_exception_only", + "print_exception", + "print_exc", + "suppress", +] + +import os +import sys + +from ._catch import catch +from ._version import version as __version__ # noqa: F401 + +if sys.version_info < (3, 11): + from ._exceptions import BaseExceptionGroup, ExceptionGroup + from ._formatting import ( + format_exception, + format_exception_only, + print_exc, + print_exception, + ) + + if os.getenv("EXCEPTIONGROUP_NO_PATCH") != "1": + from . import _formatting # noqa: F401 + + BaseExceptionGroup.__module__ = __name__ + ExceptionGroup.__module__ = __name__ +else: + from traceback import ( + format_exception, + format_exception_only, + print_exc, + print_exception, + ) + + BaseExceptionGroup = BaseExceptionGroup + ExceptionGroup = ExceptionGroup + +if sys.version_info < (3, 12, 1): + from ._suppress import suppress +else: + from contextlib import suppress diff --git a/shared/package-files/ec/ec3545d38d863fd7444fe263259a18eb8060334b40bf29bf0dd68baf03f9d63f/blob b/shared/package-files/ec/ec3545d38d863fd7444fe263259a18eb8060334b40bf29bf0dd68baf03f9d63f/blob new file mode 100644 index 0000000000000000000000000000000000000000..60b2ec7b6912de4f497428026329f241814f4c62 --- /dev/null +++ b/shared/package-files/ec/ec3545d38d863fd7444fe263259a18eb8060334b40bf29bf0dd68baf03f9d63f/blob @@ -0,0 +1,2296 @@ +from collections import OrderedDict +from collections.abc import Iterator +from datetime import ( + datetime, + timedelta, +) + +from dateutil.tz import tzoffset +import numpy as np +from numpy import ma +import pytest + +from pandas._libs import ( + iNaT, + lib, +) +from pandas.compat import HAS_PYARROW +from pandas.compat.numpy import np_version_gt2 +from pandas.errors import IntCastingNaNError +import pandas.util._test_decorators as td + +from pandas.core.dtypes.dtypes import CategoricalDtype + +import pandas as pd +from pandas import ( + Categorical, + DataFrame, + DatetimeIndex, + DatetimeTZDtype, + Index, + Interval, + IntervalIndex, + MultiIndex, + NaT, + Period, + RangeIndex, + Series, + Timestamp, + date_range, + isna, + period_range, + timedelta_range, +) +import pandas._testing as tm +from pandas.core.arrays import ( + IntegerArray, + IntervalArray, + period_array, +) +from pandas.core.internals.blocks import NumpyBlock + + +class TestSeriesConstructors: + def test_from_ints_with_non_nano_dt64_dtype(self, index_or_series): + values = np.arange(10) + + res = index_or_series(values, dtype="M8[s]") + expected = index_or_series(values.astype("M8[s]")) + tm.assert_equal(res, expected) + + res = index_or_series(list(values), dtype="M8[s]") + tm.assert_equal(res, expected) + + def test_from_na_value_and_interval_of_datetime_dtype(self): + # GH#41805 + ser = Series([None], dtype="interval[datetime64[ns]]") + assert ser.isna().all() + assert ser.dtype == "interval[datetime64[ns], right]" + + def test_infer_with_date_and_datetime(self): + # GH#49341 pre-2.0 we inferred datetime-and-date to datetime64, which + # was inconsistent with Index behavior + ts = Timestamp(2016, 1, 1) + vals = [ts.to_pydatetime(), ts.date()] + + ser = Series(vals) + expected = Series(vals, dtype=object) + tm.assert_series_equal(ser, expected) + + idx = Index(vals) + expected = Index(vals, dtype=object) + tm.assert_index_equal(idx, expected) + + def test_unparsable_strings_with_dt64_dtype(self): + # pre-2.0 these would be silently ignored and come back with object dtype + vals = ["aa"] + msg = "^Unknown datetime string format, unable to parse: aa, at position 0$" + with pytest.raises(ValueError, match=msg): + Series(vals, dtype="datetime64[ns]") + + with pytest.raises(ValueError, match=msg): + Series(np.array(vals, dtype=object), dtype="datetime64[ns]") + + @pytest.mark.parametrize( + "constructor", + [ + # NOTE: some overlap with test_constructor_empty but that test does not + # test for None or an empty generator. + # test_constructor_pass_none tests None but only with the index also + # passed. + (lambda idx: Series(index=idx)), + (lambda idx: Series(None, index=idx)), + (lambda idx: Series({}, index=idx)), + (lambda idx: Series((), index=idx)), + (lambda idx: Series([], index=idx)), + (lambda idx: Series((_ for _ in []), index=idx)), + (lambda idx: Series(data=None, index=idx)), + (lambda idx: Series(data={}, index=idx)), + (lambda idx: Series(data=(), index=idx)), + (lambda idx: Series(data=[], index=idx)), + (lambda idx: Series(data=(_ for _ in []), index=idx)), + ], + ) + @pytest.mark.parametrize("empty_index", [None, []]) + def test_empty_constructor(self, constructor, empty_index): + # GH 49573 (addition of empty_index parameter) + expected = Series(index=empty_index) + result = constructor(empty_index) + + assert result.dtype == object + assert len(result.index) == 0 + tm.assert_series_equal(result, expected, check_index_type=True) + + def test_invalid_dtype(self): + # GH15520 + msg = "not understood" + invalid_list = [Timestamp, "Timestamp", list] + for dtype in invalid_list: + with pytest.raises(TypeError, match=msg): + Series([], name="time", dtype=dtype) + + def test_invalid_compound_dtype(self): + # GH#13296 + c_dtype = np.dtype([("a", "i8"), ("b", "f4")]) + cdt_arr = np.array([(1, 0.4), (256, -13)], dtype=c_dtype) + + with pytest.raises(ValueError, match="Use DataFrame instead"): + Series(cdt_arr, index=["A", "B"]) + + def test_scalar_conversion(self): + # Pass in scalar is disabled + scalar = Series(0.5) + assert not isinstance(scalar, float) + + def test_scalar_extension_dtype(self, ea_scalar_and_dtype): + # GH 28401 + + ea_scalar, ea_dtype = ea_scalar_and_dtype + + ser = Series(ea_scalar, index=range(3)) + expected = Series([ea_scalar] * 3, dtype=ea_dtype) + + assert ser.dtype == ea_dtype + tm.assert_series_equal(ser, expected) + + def test_constructor(self, datetime_series, using_infer_string): + empty_series = Series() + assert datetime_series.index._is_all_dates + + # Pass in Series + derived = Series(datetime_series) + assert derived.index._is_all_dates + + tm.assert_index_equal(derived.index, datetime_series.index) + # Ensure new index is not created + assert id(datetime_series.index) == id(derived.index) + + # Mixed type Series + mixed = Series(["hello", np.nan], index=[0, 1]) + assert mixed.dtype == np.object_ if not using_infer_string else "str" + assert np.isnan(mixed[1]) + + assert not empty_series.index._is_all_dates + assert not Series().index._is_all_dates + + # exception raised is of type ValueError GH35744 + with pytest.raises( + ValueError, + match=r"Data must be 1-dimensional, got ndarray of shape \(3, 3\) instead", + ): + Series(np.random.default_rng(2).standard_normal((3, 3)), index=np.arange(3)) + + mixed.name = "Series" + rs = Series(mixed).name + xp = "Series" + assert rs == xp + + # raise on MultiIndex GH4187 + m = MultiIndex.from_arrays([[1, 2], [3, 4]]) + msg = "initializing a Series from a MultiIndex is not supported" + with pytest.raises(NotImplementedError, match=msg): + Series(m) + + def test_constructor_index_ndim_gt_1_raises(self): + # GH#18579 + df = DataFrame([[1, 2], [3, 4], [5, 6]], index=[3, 6, 9]) + with pytest.raises(ValueError, match="Index data must be 1-dimensional"): + Series([1, 3, 2], index=df) + + @pytest.mark.parametrize("input_class", [list, dict, OrderedDict]) + def test_constructor_empty(self, input_class, using_infer_string): + empty = Series() + empty2 = Series(input_class()) + + # these are Index() and RangeIndex() which don't compare type equal + # but are just .equals + tm.assert_series_equal(empty, empty2, check_index_type=False) + + # With explicit dtype: + empty = Series(dtype="float64") + empty2 = Series(input_class(), dtype="float64") + tm.assert_series_equal(empty, empty2, check_index_type=False) + + # GH 18515 : with dtype=category: + empty = Series(dtype="category") + empty2 = Series(input_class(), dtype="category") + tm.assert_series_equal(empty, empty2, check_index_type=False) + + if input_class is not list: + # With index: + empty = Series(index=range(10)) + empty2 = Series(input_class(), index=range(10)) + tm.assert_series_equal(empty, empty2) + + # With index and dtype float64: + empty = Series(np.nan, index=range(10)) + empty2 = Series(input_class(), index=range(10), dtype="float64") + tm.assert_series_equal(empty, empty2) + + # GH 19853 : with empty string, index and dtype str + empty = Series("", dtype=str, index=range(3)) + if using_infer_string: + empty2 = Series("", index=range(3), dtype="str") + else: + empty2 = Series("", index=range(3)) + tm.assert_series_equal(empty, empty2) + + @pytest.mark.parametrize("input_arg", [np.nan, float("nan")]) + def test_constructor_nan(self, input_arg): + empty = Series(dtype="float64", index=range(10)) + empty2 = Series(input_arg, index=range(10)) + + tm.assert_series_equal(empty, empty2, check_index_type=False) + + @pytest.mark.parametrize( + "dtype", + ["f8", "i8", "M8[ns]", "m8[ns]", "category", "object", "datetime64[ns, UTC]"], + ) + @pytest.mark.parametrize("index", [None, Index([])]) + def test_constructor_dtype_only(self, dtype, index): + # GH-20865 + result = Series(dtype=dtype, index=index) + assert result.dtype == dtype + assert len(result) == 0 + + def test_constructor_no_data_index_order(self): + result = Series(index=["b", "a", "c"]) + assert result.index.tolist() == ["b", "a", "c"] + + def test_constructor_no_data_string_type(self): + # GH 22477 + result = Series(index=[1], dtype=str) + assert np.isnan(result.iloc[0]) + + @pytest.mark.parametrize("item", ["entry", "ѐ", 13]) + def test_constructor_string_element_string_type(self, item): + # GH 22477 + result = Series(item, index=[1], dtype=str) + assert result.iloc[0] == str(item) + + def test_constructor_dtype_str_na_values(self, string_dtype): + # https://github.com/pandas-dev/pandas/issues/21083 + ser = Series(["x", None], dtype=string_dtype) + result = ser.isna() + expected = Series([False, True]) + tm.assert_series_equal(result, expected) + assert ser.iloc[1] is None + + ser = Series(["x", np.nan], dtype=string_dtype) + assert np.isnan(ser.iloc[1]) + + def test_constructor_series(self): + index1 = ["d", "b", "a", "c"] + index2 = sorted(index1) + s1 = Series([4, 7, -5, 3], index=index1) + s2 = Series(s1, index=index2) + + tm.assert_series_equal(s2, s1.sort_index()) + + def test_constructor_iterable(self): + # GH 21987 + class Iter: + def __iter__(self) -> Iterator: + yield from range(10) + + expected = Series(list(range(10)), dtype="int64") + result = Series(Iter(), dtype="int64") + tm.assert_series_equal(result, expected) + + def test_constructor_sequence(self): + # GH 21987 + expected = Series(list(range(10)), dtype="int64") + result = Series(range(10), dtype="int64") + tm.assert_series_equal(result, expected) + + def test_constructor_single_str(self): + # GH 21987 + expected = Series(["abc"]) + result = Series("abc") + tm.assert_series_equal(result, expected) + + def test_constructor_list_like(self): + # make sure that we are coercing different + # list-likes to standard dtypes and not + # platform specific + expected = Series([1, 2, 3], dtype="int64") + for obj in [[1, 2, 3], (1, 2, 3), np.array([1, 2, 3], dtype="int64")]: + result = Series(obj, index=[0, 1, 2]) + tm.assert_series_equal(result, expected) + + def test_constructor_boolean_index(self): + # GH#18579 + s1 = Series([1, 2, 3], index=[4, 5, 6]) + + index = s1 == 2 + result = Series([1, 3, 2], index=index) + expected = Series([1, 3, 2], index=[False, True, False]) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("dtype", ["bool", "int32", "int64", "float64"]) + def test_constructor_index_dtype(self, dtype): + # GH 17088 + + s = Series(Index([0, 2, 4]), dtype=dtype) + assert s.dtype == dtype + + @pytest.mark.parametrize( + "input_vals", + [ + ([1, 2]), + (["1", "2"]), + (list(date_range("1/1/2011", periods=2, freq="h"))), + (list(date_range("1/1/2011", periods=2, freq="h", tz="US/Eastern"))), + ([Interval(left=0, right=5)]), + ], + ) + def test_constructor_list_str(self, input_vals, string_dtype): + # GH 16605 + # Ensure that data elements from a list are converted to strings + # when dtype is str, 'str', or 'U' + result = Series(input_vals, dtype=string_dtype) + expected = Series(input_vals).astype(string_dtype) + tm.assert_series_equal(result, expected) + + def test_constructor_list_str_na(self, string_dtype): + result = Series([1.0, 2.0, np.nan], dtype=string_dtype) + expected = Series(["1.0", "2.0", np.nan], dtype=object) + tm.assert_series_equal(result, expected) + assert np.isnan(result[2]) + + def test_constructor_generator(self): + gen = (i for i in range(10)) + + result = Series(gen) + exp = Series(range(10)) + tm.assert_series_equal(result, exp) + + # same but with non-default index + gen = (i for i in range(10)) + result = Series(gen, index=range(10, 20)) + exp.index = range(10, 20) + tm.assert_series_equal(result, exp) + + def test_constructor_map(self): + # GH8909 + m = (x for x in range(10)) + + result = Series(m) + exp = Series(range(10)) + tm.assert_series_equal(result, exp) + + # same but with non-default index + m = (x for x in range(10)) + result = Series(m, index=range(10, 20)) + exp.index = range(10, 20) + tm.assert_series_equal(result, exp) + + def test_constructor_categorical(self): + cat = Categorical([0, 1, 2, 0, 1, 2], ["a", "b", "c"]) + res = Series(cat) + tm.assert_categorical_equal(res.values, cat) + + # can cast to a new dtype + result = Series(Categorical([1, 2, 3]), dtype="int64") + expected = Series([1, 2, 3], dtype="int64") + tm.assert_series_equal(result, expected) + + def test_construct_from_categorical_with_dtype(self): + # GH12574 + ser = Series(Categorical([1, 2, 3]), dtype="category") + assert isinstance(ser.dtype, CategoricalDtype) + + def test_construct_intlist_values_category_dtype(self): + ser = Series([1, 2, 3], dtype="category") + assert isinstance(ser.dtype, CategoricalDtype) + + def test_constructor_categorical_with_coercion(self): + factor = Categorical(["a", "b", "b", "a", "a", "c", "c", "c"]) + # test basic creation / coercion of categoricals + s = Series(factor, name="A") + assert s.dtype == "category" + assert len(s) == len(factor) + + # in a frame + df = DataFrame({"A": factor}) + result = df["A"] + tm.assert_series_equal(result, s) + result = df.iloc[:, 0] + tm.assert_series_equal(result, s) + assert len(df) == len(factor) + + df = DataFrame({"A": s}) + result = df["A"] + tm.assert_series_equal(result, s) + assert len(df) == len(factor) + + # multiples + df = DataFrame({"A": s, "B": s, "C": 1}) + result1 = df["A"] + result2 = df["B"] + tm.assert_series_equal(result1, s) + tm.assert_series_equal(result2, s, check_names=False) + assert result2.name == "B" + assert len(df) == len(factor) + + def test_constructor_categorical_with_coercion2(self): + # GH8623 + x = DataFrame( + [[1, "John P. Doe"], [2, "Jane Dove"], [1, "John P. Doe"]], + columns=["person_id", "person_name"], + ) + x["person_name"] = Categorical(x.person_name) # doing this breaks transform + + expected = x.iloc[0].person_name + result = x.person_name.iloc[0] + assert result == expected + + result = x.person_name[0] + assert result == expected + + result = x.person_name.loc[0] + assert result == expected + + def test_constructor_series_to_categorical(self): + # see GH#16524: test conversion of Series to Categorical + series = Series(["a", "b", "c"]) + + result = Series(series, dtype="category") + expected = Series(["a", "b", "c"], dtype="category") + + tm.assert_series_equal(result, expected) + + def test_constructor_categorical_dtype(self): + result = Series( + ["a", "b"], dtype=CategoricalDtype(["a", "b", "c"], ordered=True) + ) + assert isinstance(result.dtype, CategoricalDtype) + tm.assert_index_equal(result.cat.categories, Index(["a", "b", "c"])) + assert result.cat.ordered + + result = Series(["a", "b"], dtype=CategoricalDtype(["b", "a"])) + assert isinstance(result.dtype, CategoricalDtype) + tm.assert_index_equal(result.cat.categories, Index(["b", "a"])) + assert result.cat.ordered is False + + # GH 19565 - Check broadcasting of scalar with Categorical dtype + result = Series( + "a", index=[0, 1], dtype=CategoricalDtype(["a", "b"], ordered=True) + ) + expected = Series( + ["a", "a"], index=[0, 1], dtype=CategoricalDtype(["a", "b"], ordered=True) + ) + tm.assert_series_equal(result, expected) + + def test_constructor_categorical_string(self): + # GH 26336: the string 'category' maintains existing CategoricalDtype + cdt = CategoricalDtype(categories=list("dabc"), ordered=True) + expected = Series(list("abcabc"), dtype=cdt) + + # Series(Categorical, dtype='category') keeps existing dtype + cat = Categorical(list("abcabc"), dtype=cdt) + result = Series(cat, dtype="category") + tm.assert_series_equal(result, expected) + + # Series(Series[Categorical], dtype='category') keeps existing dtype + result = Series(result, dtype="category") + tm.assert_series_equal(result, expected) + + def test_categorical_sideeffects_free(self): + # Passing a categorical to a Series and then changing values in either + # the series or the categorical should not change the values in the + # other one, IF you specify copy! + cat = Categorical(["a", "b", "c", "a"]) + s = Series(cat, copy=True) + assert s.cat is not cat + s = s.cat.rename_categories([1, 2, 3]) + exp_s = np.array([1, 2, 3, 1], dtype=np.int64) + exp_cat = np.array(["a", "b", "c", "a"], dtype=np.object_) + tm.assert_numpy_array_equal(s.__array__(), exp_s) + tm.assert_numpy_array_equal(cat.__array__(), exp_cat) + + # setting + s[0] = 2 + exp_s2 = np.array([2, 2, 3, 1], dtype=np.int64) + tm.assert_numpy_array_equal(s.__array__(), exp_s2) + tm.assert_numpy_array_equal(cat.__array__(), exp_cat) + + # however, copy is False by default + # so this WILL change values + cat = Categorical(["a", "b", "c", "a"]) + s = Series(cat, copy=False) + assert s.values is cat + s = s.cat.rename_categories([1, 2, 3]) + assert s.values is not cat + exp_s = np.array([1, 2, 3, 1], dtype=np.int64) + tm.assert_numpy_array_equal(s.__array__(), exp_s) + + s[0] = 2 + exp_s2 = np.array([2, 2, 3, 1], dtype=np.int64) + tm.assert_numpy_array_equal(s.__array__(), exp_s2) + + def test_unordered_compare_equal(self): + left = Series(["a", "b", "c"], dtype=CategoricalDtype(["a", "b"])) + right = Series(Categorical(["a", "b", np.nan], categories=["a", "b"])) + tm.assert_series_equal(left, right) + + def test_constructor_maskedarray(self): + data = ma.masked_all((3,), dtype=float) + result = Series(data) + expected = Series([np.nan, np.nan, np.nan]) + tm.assert_series_equal(result, expected) + + data[0] = 0.0 + data[2] = 2.0 + index = ["a", "b", "c"] + result = Series(data, index=index) + expected = Series([0.0, np.nan, 2.0], index=index) + tm.assert_series_equal(result, expected) + + data[1] = 1.0 + result = Series(data, index=index) + expected = Series([0.0, 1.0, 2.0], index=index) + tm.assert_series_equal(result, expected) + + data = ma.masked_all((3,), dtype=int) + result = Series(data) + expected = Series([np.nan, np.nan, np.nan], dtype=float) + tm.assert_series_equal(result, expected) + + data[0] = 0 + data[2] = 2 + index = ["a", "b", "c"] + result = Series(data, index=index) + expected = Series([0, np.nan, 2], index=index, dtype=float) + tm.assert_series_equal(result, expected) + + data[1] = 1 + result = Series(data, index=index) + expected = Series([0, 1, 2], index=index, dtype=int) + with pytest.raises(AssertionError, match="Series classes are different"): + # TODO should this be raising at all? + # https://github.com/pandas-dev/pandas/issues/56131 + tm.assert_series_equal(result, expected) + + data = ma.masked_all((3,), dtype=bool) + result = Series(data) + expected = Series([np.nan, np.nan, np.nan], dtype=object) + tm.assert_series_equal(result, expected) + + data[0] = True + data[2] = False + index = ["a", "b", "c"] + result = Series(data, index=index) + expected = Series([True, np.nan, False], index=index, dtype=object) + tm.assert_series_equal(result, expected) + + data[1] = True + result = Series(data, index=index) + expected = Series([True, True, False], index=index, dtype=bool) + with pytest.raises(AssertionError, match="Series classes are different"): + # TODO should this be raising at all? + # https://github.com/pandas-dev/pandas/issues/56131 + tm.assert_series_equal(result, expected) + + data = ma.masked_all((3,), dtype="M8[ns]") + result = Series(data) + expected = Series([iNaT, iNaT, iNaT], dtype="M8[ns]") + tm.assert_series_equal(result, expected) + + data[0] = datetime(2001, 1, 1) + data[2] = datetime(2001, 1, 3) + index = ["a", "b", "c"] + result = Series(data, index=index) + expected = Series( + [datetime(2001, 1, 1), iNaT, datetime(2001, 1, 3)], + index=index, + dtype="M8[ns]", + ) + tm.assert_series_equal(result, expected) + + data[1] = datetime(2001, 1, 2) + result = Series(data, index=index) + expected = Series( + [datetime(2001, 1, 1), datetime(2001, 1, 2), datetime(2001, 1, 3)], + index=index, + dtype="M8[ns]", + ) + tm.assert_series_equal(result, expected) + + def test_constructor_maskedarray_hardened(self): + # Check numpy masked arrays with hard masks -- from GH24574 + data = ma.masked_all((3,), dtype=float).harden_mask() + result = Series(data) + expected = Series([np.nan, np.nan, np.nan]) + tm.assert_series_equal(result, expected) + + def test_series_ctor_plus_datetimeindex(self, using_copy_on_write): + rng = date_range("20090415", "20090519", freq="B") + data = {k: 1 for k in rng} + + result = Series(data, index=rng) + if using_copy_on_write: + assert result.index.is_(rng) + else: + assert result.index is rng + + def test_constructor_default_index(self): + s = Series([0, 1, 2]) + tm.assert_index_equal(s.index, Index(range(3)), exact=True) + + @pytest.mark.parametrize( + "input", + [ + [1, 2, 3], + (1, 2, 3), + list(range(3)), + Categorical(["a", "b", "a"]), + (i for i in range(3)), + (x for x in range(3)), + ], + ) + def test_constructor_index_mismatch(self, input): + # GH 19342 + # test that construction of a Series with an index of different length + # raises an error + msg = r"Length of values \(3\) does not match length of index \(4\)" + with pytest.raises(ValueError, match=msg): + Series(input, index=np.arange(4)) + + def test_constructor_numpy_scalar(self): + # GH 19342 + # construction with a numpy scalar + # should not raise + result = Series(np.array(100), index=np.arange(4), dtype="int64") + expected = Series(100, index=np.arange(4), dtype="int64") + tm.assert_series_equal(result, expected) + + def test_constructor_broadcast_list(self): + # GH 19342 + # construction with single-element container and index + # should raise + msg = r"Length of values \(1\) does not match length of index \(3\)" + with pytest.raises(ValueError, match=msg): + Series(["foo"], index=["a", "b", "c"]) + + def test_constructor_corner(self): + df = DataFrame(range(5), index=date_range("2020-01-01", periods=5)) + objs = [df, df] + s = Series(objs, index=[0, 1]) + assert isinstance(s, Series) + + def test_constructor_sanitize(self): + s = Series(np.array([1.0, 1.0, 8.0]), dtype="i8") + assert s.dtype == np.dtype("i8") + + msg = r"Cannot convert non-finite values \(NA or inf\) to integer" + with pytest.raises(IntCastingNaNError, match=msg): + Series(np.array([1.0, 1.0, np.nan]), copy=True, dtype="i8") + + def test_constructor_copy(self): + # GH15125 + # test dtype parameter has no side effects on copy=True + for data in [[1.0], np.array([1.0])]: + x = Series(data) + y = Series(x, copy=True, dtype=float) + + # copy=True maintains original data in Series + tm.assert_series_equal(x, y) + + # changes to origin of copy does not affect the copy + x[0] = 2.0 + assert not x.equals(y) + assert x[0] == 2.0 + assert y[0] == 1.0 + + @td.skip_array_manager_invalid_test # TODO(ArrayManager) rewrite test + @pytest.mark.parametrize( + "index", + [ + date_range("20170101", periods=3, tz="US/Eastern"), + date_range("20170101", periods=3), + timedelta_range("1 day", periods=3), + period_range("2012Q1", periods=3, freq="Q"), + Index(list("abc")), + Index([1, 2, 3]), + RangeIndex(0, 3), + ], + ids=lambda x: type(x).__name__, + ) + def test_constructor_limit_copies(self, index): + # GH 17449 + # limit copies of input + s = Series(index) + + # we make 1 copy; this is just a smoke test here + assert s._mgr.blocks[0].values is not index + + def test_constructor_shallow_copy(self): + # constructing a Series from Series with copy=False should still + # give a "shallow" copy (share data, not attributes) + # https://github.com/pandas-dev/pandas/issues/49523 + s = Series([1, 2, 3]) + s_orig = s.copy() + s2 = Series(s) + assert s2._mgr is not s._mgr + # Overwriting index of s2 doesn't change s + s2.index = ["a", "b", "c"] + tm.assert_series_equal(s, s_orig) + + def test_constructor_pass_none(self): + s = Series(None, index=range(5)) + assert s.dtype == np.float64 + + s = Series(None, index=range(5), dtype=object) + assert s.dtype == np.object_ + + # GH 7431 + # inference on the index + s = Series(index=np.array([None])) + expected = Series(index=Index([None])) + tm.assert_series_equal(s, expected) + + def test_constructor_pass_nan_nat(self): + # GH 13467 + exp = Series([np.nan, np.nan], dtype=np.float64) + assert exp.dtype == np.float64 + tm.assert_series_equal(Series([np.nan, np.nan]), exp) + tm.assert_series_equal(Series(np.array([np.nan, np.nan])), exp) + + exp = Series([NaT, NaT]) + assert exp.dtype == "datetime64[ns]" + tm.assert_series_equal(Series([NaT, NaT]), exp) + tm.assert_series_equal(Series(np.array([NaT, NaT])), exp) + + tm.assert_series_equal(Series([NaT, np.nan]), exp) + tm.assert_series_equal(Series(np.array([NaT, np.nan])), exp) + + tm.assert_series_equal(Series([np.nan, NaT]), exp) + tm.assert_series_equal(Series(np.array([np.nan, NaT])), exp) + + def test_constructor_cast(self): + msg = "could not convert string to float" + with pytest.raises(ValueError, match=msg): + Series(["a", "b", "c"], dtype=float) + + def test_constructor_signed_int_overflow_raises(self): + # GH#41734 disallow silent overflow, enforced in 2.0 + if np_version_gt2: + msg = "The elements provided in the data cannot all be casted to the dtype" + err = OverflowError + else: + msg = "Values are too large to be losslessly converted" + err = ValueError + with pytest.raises(err, match=msg): + Series([1, 200, 923442], dtype="int8") + + with pytest.raises(err, match=msg): + Series([1, 200, 923442], dtype="uint8") + + @pytest.mark.parametrize( + "values", + [ + np.array([1], dtype=np.uint16), + np.array([1], dtype=np.uint32), + np.array([1], dtype=np.uint64), + [np.uint16(1)], + [np.uint32(1)], + [np.uint64(1)], + ], + ) + def test_constructor_numpy_uints(self, values): + # GH#47294 + value = values[0] + result = Series(values) + + assert result[0].dtype == value.dtype + assert result[0] == value + + def test_constructor_unsigned_dtype_overflow(self, any_unsigned_int_numpy_dtype): + # see gh-15832 + if np_version_gt2: + msg = ( + f"The elements provided in the data cannot " + f"all be casted to the dtype {any_unsigned_int_numpy_dtype}" + ) + else: + msg = "Trying to coerce negative values to unsigned integers" + with pytest.raises(OverflowError, match=msg): + Series([-1], dtype=any_unsigned_int_numpy_dtype) + + def test_constructor_floating_data_int_dtype(self, frame_or_series): + # GH#40110 + arr = np.random.default_rng(2).standard_normal(2) + + # Long-standing behavior (for Series, new in 2.0 for DataFrame) + # has been to ignore the dtype on these; + # not clear if this is what we want long-term + # expected = frame_or_series(arr) + + # GH#49599 as of 2.0 we raise instead of silently retaining float dtype + msg = "Trying to coerce float values to integer" + with pytest.raises(ValueError, match=msg): + frame_or_series(arr, dtype="i8") + + with pytest.raises(ValueError, match=msg): + frame_or_series(list(arr), dtype="i8") + + # pre-2.0, when we had NaNs, we silently ignored the integer dtype + arr[0] = np.nan + # expected = frame_or_series(arr) + + msg = r"Cannot convert non-finite values \(NA or inf\) to integer" + with pytest.raises(IntCastingNaNError, match=msg): + frame_or_series(arr, dtype="i8") + + exc = IntCastingNaNError + if frame_or_series is Series: + # TODO: try to align these + exc = ValueError + msg = "cannot convert float NaN to integer" + with pytest.raises(exc, match=msg): + # same behavior if we pass list instead of the ndarray + frame_or_series(list(arr), dtype="i8") + + # float array that can be losslessly cast to integers + arr = np.array([1.0, 2.0], dtype="float64") + expected = frame_or_series(arr.astype("i8")) + + obj = frame_or_series(arr, dtype="i8") + tm.assert_equal(obj, expected) + + obj = frame_or_series(list(arr), dtype="i8") + tm.assert_equal(obj, expected) + + def test_constructor_coerce_float_fail(self, any_int_numpy_dtype): + # see gh-15832 + # Updated: make sure we treat this list the same as we would treat + # the equivalent ndarray + # GH#49599 pre-2.0 we silently retained float dtype, in 2.0 we raise + vals = [1, 2, 3.5] + + msg = "Trying to coerce float values to integer" + with pytest.raises(ValueError, match=msg): + Series(vals, dtype=any_int_numpy_dtype) + with pytest.raises(ValueError, match=msg): + Series(np.array(vals), dtype=any_int_numpy_dtype) + + def test_constructor_coerce_float_valid(self, float_numpy_dtype): + s = Series([1, 2, 3.5], dtype=float_numpy_dtype) + expected = Series([1, 2, 3.5]).astype(float_numpy_dtype) + tm.assert_series_equal(s, expected) + + def test_constructor_invalid_coerce_ints_with_float_nan(self, any_int_numpy_dtype): + # GH 22585 + # Updated: make sure we treat this list the same as we would treat the + # equivalent ndarray + vals = [1, 2, np.nan] + # pre-2.0 this would return with a float dtype, in 2.0 we raise + + msg = "cannot convert float NaN to integer" + with pytest.raises(ValueError, match=msg): + Series(vals, dtype=any_int_numpy_dtype) + msg = r"Cannot convert non-finite values \(NA or inf\) to integer" + with pytest.raises(IntCastingNaNError, match=msg): + Series(np.array(vals), dtype=any_int_numpy_dtype) + + def test_constructor_dtype_no_cast(self, using_copy_on_write, warn_copy_on_write): + # see gh-1572 + s = Series([1, 2, 3]) + s2 = Series(s, dtype=np.int64) + + warn = FutureWarning if warn_copy_on_write else None + with tm.assert_produces_warning(warn): + s2[1] = 5 + if using_copy_on_write: + assert s[1] == 2 + else: + assert s[1] == 5 + + def test_constructor_datelike_coercion(self): + # GH 9477 + # incorrectly inferring on dateimelike looking when object dtype is + # specified + s = Series([Timestamp("20130101"), "NOV"], dtype=object) + assert s.iloc[0] == Timestamp("20130101") + assert s.iloc[1] == "NOV" + assert s.dtype == object + + def test_constructor_datelike_coercion2(self): + # the dtype was being reset on the slicing and re-inferred to datetime + # even thought the blocks are mixed + belly = "216 3T19".split() + wing1 = "2T15 4H19".split() + wing2 = "416 4T20".split() + mat = pd.to_datetime("2016-01-22 2019-09-07".split()) + df = DataFrame({"wing1": wing1, "wing2": wing2, "mat": mat}, index=belly) + + result = df.loc["3T19"] + assert result.dtype == object + result = df.loc["216"] + assert result.dtype == object + + def test_constructor_mixed_int_and_timestamp(self, frame_or_series): + # specifically Timestamp with nanos, not datetimes + objs = [Timestamp(9), 10, NaT._value] + result = frame_or_series(objs, dtype="M8[ns]") + + expected = frame_or_series([Timestamp(9), Timestamp(10), NaT]) + tm.assert_equal(result, expected) + + def test_constructor_datetimes_with_nulls(self): + # gh-15869 + for arr in [ + np.array([None, None, None, None, datetime.now(), None]), + np.array([None, None, datetime.now(), None]), + ]: + result = Series(arr) + assert result.dtype == "M8[ns]" + + def test_constructor_dtype_datetime64(self): + s = Series(iNaT, dtype="M8[ns]", index=range(5)) + assert isna(s).all() + + # in theory this should be all nulls, but since + # we are not specifying a dtype is ambiguous + s = Series(iNaT, index=range(5)) + assert not isna(s).all() + + s = Series(np.nan, dtype="M8[ns]", index=range(5)) + assert isna(s).all() + + s = Series([datetime(2001, 1, 2, 0, 0), iNaT], dtype="M8[ns]") + assert isna(s[1]) + assert s.dtype == "M8[ns]" + + s = Series([datetime(2001, 1, 2, 0, 0), np.nan], dtype="M8[ns]") + assert isna(s[1]) + assert s.dtype == "M8[ns]" + + def test_constructor_dtype_datetime64_10(self): + # GH3416 + pydates = [datetime(2013, 1, 1), datetime(2013, 1, 2), datetime(2013, 1, 3)] + dates = [np.datetime64(x) for x in pydates] + + ser = Series(dates) + assert ser.dtype == "M8[ns]" + + ser.iloc[0] = np.nan + assert ser.dtype == "M8[ns]" + + # GH3414 related + expected = Series(pydates, dtype="datetime64[ms]") + + result = Series(Series(dates).astype(np.int64) / 1000000, dtype="M8[ms]") + tm.assert_series_equal(result, expected) + + result = Series(dates, dtype="datetime64[ms]") + tm.assert_series_equal(result, expected) + + expected = Series( + [NaT, datetime(2013, 1, 2), datetime(2013, 1, 3)], dtype="datetime64[ns]" + ) + result = Series([np.nan] + dates[1:], dtype="datetime64[ns]") + tm.assert_series_equal(result, expected) + + def test_constructor_dtype_datetime64_11(self): + pydates = [datetime(2013, 1, 1), datetime(2013, 1, 2), datetime(2013, 1, 3)] + dates = [np.datetime64(x) for x in pydates] + + dts = Series(dates, dtype="datetime64[ns]") + + # valid astype + dts.astype("int64") + + # invalid casting + msg = r"Converting from datetime64\[ns\] to int32 is not supported" + with pytest.raises(TypeError, match=msg): + dts.astype("int32") + + # ints are ok + # we test with np.int64 to get similar results on + # windows / 32-bit platforms + result = Series(dts, dtype=np.int64) + expected = Series(dts.astype(np.int64)) + tm.assert_series_equal(result, expected) + + def test_constructor_dtype_datetime64_9(self): + # invalid dates can be help as object + result = Series([datetime(2, 1, 1)]) + assert result[0] == datetime(2, 1, 1, 0, 0) + + result = Series([datetime(3000, 1, 1)]) + assert result[0] == datetime(3000, 1, 1, 0, 0) + + def test_constructor_dtype_datetime64_8(self): + # don't mix types + result = Series([Timestamp("20130101"), 1], index=["a", "b"]) + assert result["a"] == Timestamp("20130101") + assert result["b"] == 1 + + def test_constructor_dtype_datetime64_7(self): + # GH6529 + # coerce datetime64 non-ns properly + dates = date_range("01-Jan-2015", "01-Dec-2015", freq="ME") + values2 = dates.view(np.ndarray).astype("datetime64[ns]") + expected = Series(values2, index=dates) + + for unit in ["s", "D", "ms", "us", "ns"]: + dtype = np.dtype(f"M8[{unit}]") + values1 = dates.view(np.ndarray).astype(dtype) + result = Series(values1, dates) + if unit == "D": + # for unit="D" we cast to nearest-supported reso, i.e. "s" + dtype = np.dtype("M8[s]") + assert result.dtype == dtype + tm.assert_series_equal(result, expected.astype(dtype)) + + # GH 13876 + # coerce to non-ns to object properly + expected = Series(values2, index=dates, dtype=object) + for dtype in ["s", "D", "ms", "us", "ns"]: + values1 = dates.view(np.ndarray).astype(f"M8[{dtype}]") + result = Series(values1, index=dates, dtype=object) + tm.assert_series_equal(result, expected) + + # leave datetime.date alone + dates2 = np.array([d.date() for d in dates.to_pydatetime()], dtype=object) + series1 = Series(dates2, dates) + tm.assert_numpy_array_equal(series1.values, dates2) + assert series1.dtype == object + + def test_constructor_dtype_datetime64_6(self): + # as of 2.0, these no longer infer datetime64 based on the strings, + # matching the Index behavior + + ser = Series([None, NaT, "2013-08-05 15:30:00.000001"]) + assert ser.dtype == object + + ser = Series([np.nan, NaT, "2013-08-05 15:30:00.000001"]) + assert ser.dtype == object + + ser = Series([NaT, None, "2013-08-05 15:30:00.000001"]) + assert ser.dtype == object + + ser = Series([NaT, np.nan, "2013-08-05 15:30:00.000001"]) + assert ser.dtype == object + + def test_constructor_dtype_datetime64_5(self): + # tz-aware (UTC and other tz's) + # GH 8411 + dr = date_range("20130101", periods=3) + assert Series(dr).iloc[0].tz is None + dr = date_range("20130101", periods=3, tz="UTC") + assert str(Series(dr).iloc[0].tz) == "UTC" + dr = date_range("20130101", periods=3, tz="US/Eastern") + assert str(Series(dr).iloc[0].tz) == "US/Eastern" + + def test_constructor_dtype_datetime64_4(self): + # non-convertible + ser = Series([1479596223000, -1479590, NaT]) + assert ser.dtype == "object" + assert ser[2] is NaT + assert "NaT" in str(ser) + + def test_constructor_dtype_datetime64_3(self): + # if we passed a NaT it remains + ser = Series([datetime(2010, 1, 1), datetime(2, 1, 1), NaT]) + assert ser.dtype == "object" + assert ser[2] is NaT + assert "NaT" in str(ser) + + def test_constructor_dtype_datetime64_2(self): + # if we passed a nan it remains + ser = Series([datetime(2010, 1, 1), datetime(2, 1, 1), np.nan]) + assert ser.dtype == "object" + assert ser[2] is np.nan + assert "NaN" in str(ser) + + def test_constructor_with_datetime_tz(self): + # 8260 + # support datetime64 with tz + + dr = date_range("20130101", periods=3, tz="US/Eastern") + s = Series(dr) + assert s.dtype.name == "datetime64[ns, US/Eastern]" + assert s.dtype == "datetime64[ns, US/Eastern]" + assert isinstance(s.dtype, DatetimeTZDtype) + assert "datetime64[ns, US/Eastern]" in str(s) + + # export + result = s.values + assert isinstance(result, np.ndarray) + assert result.dtype == "datetime64[ns]" + + exp = DatetimeIndex(result) + exp = exp.tz_localize("UTC").tz_convert(tz=s.dt.tz) + tm.assert_index_equal(dr, exp) + + # indexing + result = s.iloc[0] + assert result == Timestamp("2013-01-01 00:00:00-0500", tz="US/Eastern") + result = s[0] + assert result == Timestamp("2013-01-01 00:00:00-0500", tz="US/Eastern") + + result = s[Series([True, True, False], index=s.index)] + tm.assert_series_equal(result, s[0:2]) + + result = s.iloc[0:1] + tm.assert_series_equal(result, Series(dr[0:1])) + + # concat + result = pd.concat([s.iloc[0:1], s.iloc[1:]]) + tm.assert_series_equal(result, s) + + # short str + assert "datetime64[ns, US/Eastern]" in str(s) + + # formatting with NaT + result = s.shift() + assert "datetime64[ns, US/Eastern]" in str(result) + assert "NaT" in str(result) + + result = DatetimeIndex(s, freq="infer") + tm.assert_index_equal(result, dr) + + def test_constructor_with_datetime_tz5(self): + # long str + ser = Series(date_range("20130101", periods=1000, tz="US/Eastern")) + assert "datetime64[ns, US/Eastern]" in str(ser) + + def test_constructor_with_datetime_tz4(self): + # inference + ser = Series( + [ + Timestamp("2013-01-01 13:00:00-0800", tz="US/Pacific"), + Timestamp("2013-01-02 14:00:00-0800", tz="US/Pacific"), + ] + ) + assert ser.dtype == "datetime64[ns, US/Pacific]" + assert lib.infer_dtype(ser, skipna=True) == "datetime64" + + def test_constructor_with_datetime_tz3(self): + ser = Series( + [ + Timestamp("2013-01-01 13:00:00-0800", tz="US/Pacific"), + Timestamp("2013-01-02 14:00:00-0800", tz="US/Eastern"), + ] + ) + assert ser.dtype == "object" + assert lib.infer_dtype(ser, skipna=True) == "datetime" + + def test_constructor_with_datetime_tz2(self): + # with all NaT + ser = Series(NaT, index=[0, 1], dtype="datetime64[ns, US/Eastern]") + dti = DatetimeIndex(["NaT", "NaT"], tz="US/Eastern").as_unit("ns") + expected = Series(dti) + tm.assert_series_equal(ser, expected) + + def test_constructor_no_partial_datetime_casting(self): + # GH#40111 + vals = [ + "nan", + Timestamp("1990-01-01"), + "2015-03-14T16:15:14.123-08:00", + "2019-03-04T21:56:32.620-07:00", + None, + ] + ser = Series(vals) + assert all(ser[i] is vals[i] for i in range(len(vals))) + + @pytest.mark.parametrize("arr_dtype", [np.int64, np.float64]) + @pytest.mark.parametrize("kind", ["M", "m"]) + @pytest.mark.parametrize("unit", ["ns", "us", "ms", "s", "h", "m", "D"]) + def test_construction_to_datetimelike_unit(self, arr_dtype, kind, unit): + # tests all units + # gh-19223 + # TODO: GH#19223 was about .astype, doesn't belong here + dtype = f"{kind}8[{unit}]" + arr = np.array([1, 2, 3], dtype=arr_dtype) + ser = Series(arr) + result = ser.astype(dtype) + + expected = Series(arr.astype(dtype)) + + if unit in ["ns", "us", "ms", "s"]: + assert result.dtype == dtype + assert expected.dtype == dtype + else: + # Otherwise we cast to nearest-supported unit, i.e. seconds + assert result.dtype == f"{kind}8[s]" + assert expected.dtype == f"{kind}8[s]" + + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("arg", ["2013-01-01 00:00:00", NaT, np.nan, None]) + def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg): + # GH 17415: With naive string + result = Series([arg], dtype="datetime64[ns, CET]") + expected = Series(Timestamp(arg)).dt.tz_localize("CET") + tm.assert_series_equal(result, expected) + + def test_constructor_datetime64_bigendian(self): + # GH#30976 + ms = np.datetime64(1, "ms") + arr = np.array([np.datetime64(1, "ms")], dtype=">M8[ms]") + + result = Series(arr) + expected = Series([Timestamp(ms)]).astype("M8[ms]") + assert expected.dtype == "M8[ms]" + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("interval_constructor", [IntervalIndex, IntervalArray]) + def test_construction_interval(self, interval_constructor): + # construction from interval & array of intervals + intervals = interval_constructor.from_breaks(np.arange(3), closed="right") + result = Series(intervals) + assert result.dtype == "interval[int64, right]" + tm.assert_index_equal(Index(result.values), Index(intervals)) + + @pytest.mark.parametrize( + "data_constructor", [list, np.array], ids=["list", "ndarray[object]"] + ) + def test_constructor_infer_interval(self, data_constructor): + # GH 23563: consistent closed results in interval dtype + data = [Interval(0, 1), Interval(0, 2), None] + result = Series(data_constructor(data)) + expected = Series(IntervalArray(data)) + assert result.dtype == "interval[float64, right]" + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize( + "data_constructor", [list, np.array], ids=["list", "ndarray[object]"] + ) + def test_constructor_interval_mixed_closed(self, data_constructor): + # GH 23563: mixed closed results in object dtype (not interval dtype) + data = [Interval(0, 1, closed="both"), Interval(0, 2, closed="neither")] + result = Series(data_constructor(data)) + assert result.dtype == object + assert result.tolist() == data + + def test_construction_consistency(self): + # make sure that we are not re-localizing upon construction + # GH 14928 + ser = Series(date_range("20130101", periods=3, tz="US/Eastern")) + + result = Series(ser, dtype=ser.dtype) + tm.assert_series_equal(result, ser) + + result = Series(ser.dt.tz_convert("UTC"), dtype=ser.dtype) + tm.assert_series_equal(result, ser) + + # Pre-2.0 dt64 values were treated as utc, which was inconsistent + # with DatetimeIndex, which treats them as wall times, see GH#33401 + result = Series(ser.values, dtype=ser.dtype) + expected = Series(ser.values).dt.tz_localize(ser.dtype.tz) + tm.assert_series_equal(result, expected) + + with tm.assert_produces_warning(None): + # one suggested alternative to the deprecated (changed in 2.0) usage + middle = Series(ser.values).dt.tz_localize("UTC") + result = middle.dt.tz_convert(ser.dtype.tz) + tm.assert_series_equal(result, ser) + + with tm.assert_produces_warning(None): + # the other suggested alternative to the deprecated usage + result = Series(ser.values.view("int64"), dtype=ser.dtype) + tm.assert_series_equal(result, ser) + + @pytest.mark.parametrize( + "data_constructor", [list, np.array], ids=["list", "ndarray[object]"] + ) + def test_constructor_infer_period(self, data_constructor): + data = [Period("2000", "D"), Period("2001", "D"), None] + result = Series(data_constructor(data)) + expected = Series(period_array(data)) + tm.assert_series_equal(result, expected) + assert result.dtype == "Period[D]" + + @pytest.mark.xfail(reason="PeriodDtype Series not supported yet") + def test_construct_from_ints_including_iNaT_scalar_period_dtype(self): + series = Series([0, 1000, 2000, pd._libs.iNaT], dtype="period[D]") + + val = series[3] + assert isna(val) + + series[2] = val + assert isna(series[2]) + + def test_constructor_period_incompatible_frequency(self): + data = [Period("2000", "D"), Period("2001", "Y")] + result = Series(data) + assert result.dtype == object + assert result.tolist() == data + + def test_constructor_periodindex(self): + # GH7932 + # converting a PeriodIndex when put in a Series + + pi = period_range("20130101", periods=5, freq="D") + s = Series(pi) + assert s.dtype == "Period[D]" + with tm.assert_produces_warning(FutureWarning, match="Dtype inference"): + expected = Series(pi.astype(object)) + tm.assert_series_equal(s, expected) + + def test_constructor_dict(self): + d = {"a": 0.0, "b": 1.0, "c": 2.0} + + result = Series(d) + expected = Series(d, index=sorted(d.keys())) + tm.assert_series_equal(result, expected) + + result = Series(d, index=["b", "c", "d", "a"]) + expected = Series([1, 2, np.nan, 0], index=["b", "c", "d", "a"]) + tm.assert_series_equal(result, expected) + + pidx = period_range("2020-01-01", periods=10, freq="D") + d = {pidx[0]: 0, pidx[1]: 1} + result = Series(d, index=pidx) + expected = Series(np.nan, pidx, dtype=np.float64) + expected.iloc[0] = 0 + expected.iloc[1] = 1 + tm.assert_series_equal(result, expected) + + def test_constructor_dict_list_value_explicit_dtype(self): + # GH 18625 + d = {"a": [[2], [3], [4]]} + result = Series(d, index=["a"], dtype="object") + expected = Series(d, index=["a"]) + tm.assert_series_equal(result, expected) + + def test_constructor_dict_order(self): + # GH19018 + # initialization ordering: by insertion order + d = {"b": 1, "a": 0, "c": 2} + result = Series(d) + expected = Series([1, 0, 2], index=list("bac")) + tm.assert_series_equal(result, expected) + + def test_constructor_dict_extension(self, ea_scalar_and_dtype, request): + ea_scalar, ea_dtype = ea_scalar_and_dtype + if isinstance(ea_scalar, Timestamp): + mark = pytest.mark.xfail( + reason="Construction from dict goes through " + "maybe_convert_objects which casts to nano" + ) + request.applymarker(mark) + d = {"a": ea_scalar} + result = Series(d, index=["a"]) + expected = Series(ea_scalar, index=["a"], dtype=ea_dtype) + + assert result.dtype == ea_dtype + + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("value", [2, np.nan, None, float("nan")]) + def test_constructor_dict_nan_key(self, value): + # GH 18480 + d = {1: "a", value: "b", float("nan"): "c", 4: "d"} + result = Series(d).sort_values() + expected = Series(["a", "b", "c", "d"], index=[1, value, np.nan, 4]) + tm.assert_series_equal(result, expected) + + # MultiIndex: + d = {(1, 1): "a", (2, np.nan): "b", (3, value): "c"} + result = Series(d).sort_values() + expected = Series( + ["a", "b", "c"], index=Index([(1, 1), (2, np.nan), (3, value)]) + ) + tm.assert_series_equal(result, expected) + + def test_constructor_dict_datetime64_index(self): + # GH 9456 + + dates_as_str = ["1984-02-19", "1988-11-06", "1989-12-03", "1990-03-15"] + values = [42544017.198965244, 1234565, 40512335.181958228, -1] + + def create_data(constructor): + return dict(zip((constructor(x) for x in dates_as_str), values)) + + data_datetime64 = create_data(np.datetime64) + data_datetime = create_data(lambda x: datetime.strptime(x, "%Y-%m-%d")) + data_Timestamp = create_data(Timestamp) + + expected = Series(values, (Timestamp(x) for x in dates_as_str)) + + result_datetime64 = Series(data_datetime64) + result_datetime = Series(data_datetime) + result_Timestamp = Series(data_Timestamp) + + tm.assert_series_equal(result_datetime64, expected) + tm.assert_series_equal(result_datetime, expected) + tm.assert_series_equal(result_Timestamp, expected) + + def test_constructor_dict_tuple_indexer(self): + # GH 12948 + data = {(1, 1, None): -1.0} + result = Series(data) + expected = Series( + -1.0, index=MultiIndex(levels=[[1], [1], [np.nan]], codes=[[0], [0], [-1]]) + ) + tm.assert_series_equal(result, expected) + + def test_constructor_mapping(self, non_dict_mapping_subclass): + # GH 29788 + ndm = non_dict_mapping_subclass({3: "three"}) + result = Series(ndm) + expected = Series(["three"], index=[3]) + + tm.assert_series_equal(result, expected) + + def test_constructor_list_of_tuples(self): + data = [(1, 1), (2, 2), (2, 3)] + s = Series(data) + assert list(s) == data + + def test_constructor_tuple_of_tuples(self): + data = ((1, 1), (2, 2), (2, 3)) + s = Series(data) + assert tuple(s) == data + + def test_constructor_dict_of_tuples(self): + data = {(1, 2): 3, (None, 5): 6} + result = Series(data).sort_values() + expected = Series([3, 6], index=MultiIndex.from_tuples([(1, 2), (None, 5)])) + tm.assert_series_equal(result, expected) + + # https://github.com/pandas-dev/pandas/issues/22698 + @pytest.mark.filterwarnings("ignore:elementwise comparison:FutureWarning") + def test_fromDict(self, using_infer_string): + data = {"a": 0, "b": 1, "c": 2, "d": 3} + + series = Series(data) + tm.assert_is_sorted(series.index) + + data = {"a": 0, "b": "1", "c": "2", "d": datetime.now()} + series = Series(data) + assert series.dtype == np.object_ + + data = {"a": 0, "b": "1", "c": "2", "d": "3"} + series = Series(data) + assert series.dtype == np.object_ if not using_infer_string else "str" + + data = {"a": "0", "b": "1"} + series = Series(data, dtype=float) + assert series.dtype == np.float64 + + def test_fromValue(self, datetime_series, using_infer_string): + nans = Series(np.nan, index=datetime_series.index, dtype=np.float64) + assert nans.dtype == np.float64 + assert len(nans) == len(datetime_series) + + strings = Series("foo", index=datetime_series.index) + assert strings.dtype == np.object_ if not using_infer_string else "str" + assert len(strings) == len(datetime_series) + + d = datetime.now() + dates = Series(d, index=datetime_series.index) + assert dates.dtype == "M8[us]" + assert len(dates) == len(datetime_series) + + # GH12336 + # Test construction of categorical series from value + categorical = Series(0, index=datetime_series.index, dtype="category") + expected = Series(0, index=datetime_series.index).astype("category") + assert categorical.dtype == "category" + assert len(categorical) == len(datetime_series) + tm.assert_series_equal(categorical, expected) + + def test_constructor_dtype_timedelta64(self): + # basic + td = Series([timedelta(days=i) for i in range(3)]) + assert td.dtype == "timedelta64[ns]" + + td = Series([timedelta(days=1)]) + assert td.dtype == "timedelta64[ns]" + + td = Series([timedelta(days=1), timedelta(days=2), np.timedelta64(1, "s")]) + + assert td.dtype == "timedelta64[ns]" + + # mixed with NaT + td = Series([timedelta(days=1), NaT], dtype="m8[ns]") + assert td.dtype == "timedelta64[ns]" + + td = Series([timedelta(days=1), np.nan], dtype="m8[ns]") + assert td.dtype == "timedelta64[ns]" + + td = Series([np.timedelta64(300000000), NaT], dtype="m8[ns]") + assert td.dtype == "timedelta64[ns]" + + # improved inference + # GH5689 + td = Series([np.timedelta64(300000000), NaT]) + assert td.dtype == "timedelta64[ns]" + + # because iNaT is int, not coerced to timedelta + td = Series([np.timedelta64(300000000), iNaT]) + assert td.dtype == "object" + + td = Series([np.timedelta64(300000000), np.nan]) + assert td.dtype == "timedelta64[ns]" + + td = Series([NaT, np.timedelta64(300000000)]) + assert td.dtype == "timedelta64[ns]" + + td = Series([np.timedelta64(1, "s")]) + assert td.dtype == "timedelta64[ns]" + + # valid astype + td.astype("int64") + + # invalid casting + msg = r"Converting from timedelta64\[ns\] to int32 is not supported" + with pytest.raises(TypeError, match=msg): + td.astype("int32") + + # this is an invalid casting + msg = "|".join( + [ + "Could not convert object to NumPy timedelta", + "Could not convert 'foo' to NumPy timedelta", + ] + ) + with pytest.raises(ValueError, match=msg): + Series([timedelta(days=1), "foo"], dtype="m8[ns]") + + # leave as object here + td = Series([timedelta(days=i) for i in range(3)] + ["foo"]) + assert td.dtype == "object" + + # as of 2.0, these no longer infer timedelta64 based on the strings, + # matching Index behavior + ser = Series([None, NaT, "1 Day"]) + assert ser.dtype == object + + ser = Series([np.nan, NaT, "1 Day"]) + assert ser.dtype == object + + ser = Series([NaT, None, "1 Day"]) + assert ser.dtype == object + + ser = Series([NaT, np.nan, "1 Day"]) + assert ser.dtype == object + + # GH 16406 + def test_constructor_mixed_tz(self): + s = Series([Timestamp("20130101"), Timestamp("20130101", tz="US/Eastern")]) + expected = Series( + [Timestamp("20130101"), Timestamp("20130101", tz="US/Eastern")], + dtype="object", + ) + tm.assert_series_equal(s, expected) + + def test_NaT_scalar(self): + series = Series([0, 1000, 2000, iNaT], dtype="M8[ns]") + + val = series[3] + assert isna(val) + + series[2] = val + assert isna(series[2]) + + def test_NaT_cast(self): + # GH10747 + result = Series([np.nan]).astype("M8[ns]") + expected = Series([NaT], dtype="M8[ns]") + tm.assert_series_equal(result, expected) + + def test_constructor_name_hashable(self): + for n in [777, 777.0, "name", datetime(2001, 11, 11), (1,), "\u05D0"]: + for data in [[1, 2, 3], np.ones(3), {"a": 0, "b": 1}]: + s = Series(data, name=n) + assert s.name == n + + def test_constructor_name_unhashable(self): + msg = r"Series\.name must be a hashable type" + for n in [["name_list"], np.ones(2), {1: 2}]: + for data in [["name_list"], np.ones(2), {1: 2}]: + with pytest.raises(TypeError, match=msg): + Series(data, name=n) + + def test_auto_conversion(self): + series = Series(list(date_range("1/1/2000", periods=10))) + assert series.dtype == "M8[ns]" + + def test_convert_non_ns(self): + # convert from a numpy array of non-ns timedelta64 + arr = np.array([1, 2, 3], dtype="timedelta64[s]") + ser = Series(arr) + assert ser.dtype == arr.dtype + + tdi = timedelta_range("00:00:01", periods=3, freq="s").as_unit("s") + expected = Series(tdi) + assert expected.dtype == arr.dtype + tm.assert_series_equal(ser, expected) + + # convert from a numpy array of non-ns datetime64 + arr = np.array( + ["2013-01-01", "2013-01-02", "2013-01-03"], dtype="datetime64[D]" + ) + ser = Series(arr) + expected = Series(date_range("20130101", periods=3, freq="D"), dtype="M8[s]") + assert expected.dtype == "M8[s]" + tm.assert_series_equal(ser, expected) + + arr = np.array( + ["2013-01-01 00:00:01", "2013-01-01 00:00:02", "2013-01-01 00:00:03"], + dtype="datetime64[s]", + ) + ser = Series(arr) + expected = Series( + date_range("20130101 00:00:01", periods=3, freq="s"), dtype="M8[s]" + ) + assert expected.dtype == "M8[s]" + tm.assert_series_equal(ser, expected) + + @pytest.mark.parametrize( + "index", + [ + date_range("1/1/2000", periods=10), + timedelta_range("1 day", periods=10), + period_range("2000-Q1", periods=10, freq="Q"), + ], + ids=lambda x: type(x).__name__, + ) + def test_constructor_cant_cast_datetimelike(self, index): + # floats are not ok + # strip Index to convert PeriodIndex -> Period + # We don't care whether the error message says + # PeriodIndex or PeriodArray + msg = f"Cannot cast {type(index).__name__.rstrip('Index')}.*? to " + + with pytest.raises(TypeError, match=msg): + Series(index, dtype=float) + + # ints are ok + # we test with np.int64 to get similar results on + # windows / 32-bit platforms + result = Series(index, dtype=np.int64) + expected = Series(index.astype(np.int64)) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize( + "index", + [ + date_range("1/1/2000", periods=10), + timedelta_range("1 day", periods=10), + period_range("2000-Q1", periods=10, freq="Q"), + ], + ids=lambda x: type(x).__name__, + ) + def test_constructor_cast_object(self, index): + s = Series(index, dtype=object) + exp = Series(index).astype(object) + tm.assert_series_equal(s, exp) + + s = Series(Index(index, dtype=object), dtype=object) + exp = Series(index).astype(object) + tm.assert_series_equal(s, exp) + + s = Series(index.astype(object), dtype=object) + exp = Series(index).astype(object) + tm.assert_series_equal(s, exp) + + @pytest.mark.parametrize("dtype", [np.datetime64, np.timedelta64]) + def test_constructor_generic_timestamp_no_frequency(self, dtype, request): + # see gh-15524, gh-15987 + msg = "dtype has no unit. Please pass in" + + if np.dtype(dtype).name not in ["timedelta64", "datetime64"]: + mark = pytest.mark.xfail(reason="GH#33890 Is assigned ns unit") + request.applymarker(mark) + + with pytest.raises(ValueError, match=msg): + Series([], dtype=dtype) + + @pytest.mark.parametrize("unit", ["ps", "as", "fs", "Y", "M", "W", "D", "h", "m"]) + @pytest.mark.parametrize("kind", ["m", "M"]) + def test_constructor_generic_timestamp_bad_frequency(self, kind, unit): + # see gh-15524, gh-15987 + # as of 2.0 we raise on any non-supported unit rather than silently + # cast to nanos; previously we only raised for frequencies higher + # than ns + dtype = f"{kind}8[{unit}]" + + msg = "dtype=.* is not supported. Supported resolutions are" + with pytest.raises(TypeError, match=msg): + Series([], dtype=dtype) + + with pytest.raises(TypeError, match=msg): + # pre-2.0 the DataFrame cast raised but the Series case did not + DataFrame([[0]], dtype=dtype) + + @pytest.mark.parametrize("dtype", [None, "uint8", "category"]) + def test_constructor_range_dtype(self, dtype): + # GH 16804 + expected = Series([0, 1, 2, 3, 4], dtype=dtype or "int64") + result = Series(range(5), dtype=dtype) + tm.assert_series_equal(result, expected) + + def test_constructor_range_overflows(self): + # GH#30173 range objects that overflow int64 + rng = range(2**63, 2**63 + 4) + ser = Series(rng) + expected = Series(list(rng)) + tm.assert_series_equal(ser, expected) + assert list(ser) == list(rng) + assert ser.dtype == np.uint64 + + rng2 = range(2**63 + 4, 2**63, -1) + ser2 = Series(rng2) + expected2 = Series(list(rng2)) + tm.assert_series_equal(ser2, expected2) + assert list(ser2) == list(rng2) + assert ser2.dtype == np.uint64 + + rng3 = range(-(2**63), -(2**63) - 4, -1) + ser3 = Series(rng3) + expected3 = Series(list(rng3)) + tm.assert_series_equal(ser3, expected3) + assert list(ser3) == list(rng3) + assert ser3.dtype == object + + rng4 = range(2**73, 2**73 + 4) + ser4 = Series(rng4) + expected4 = Series(list(rng4)) + tm.assert_series_equal(ser4, expected4) + assert list(ser4) == list(rng4) + assert ser4.dtype == object + + def test_constructor_tz_mixed_data(self): + # GH 13051 + dt_list = [ + Timestamp("2016-05-01 02:03:37"), + Timestamp("2016-04-30 19:03:37-0700", tz="US/Pacific"), + ] + result = Series(dt_list) + expected = Series(dt_list, dtype=object) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("pydt", [True, False]) + def test_constructor_data_aware_dtype_naive(self, tz_aware_fixture, pydt): + # GH#25843, GH#41555, GH#33401 + tz = tz_aware_fixture + ts = Timestamp("2019", tz=tz) + if pydt: + ts = ts.to_pydatetime() + + msg = ( + "Cannot convert timezone-aware data to timezone-naive dtype. " + r"Use pd.Series\(values\).dt.tz_localize\(None\) instead." + ) + with pytest.raises(ValueError, match=msg): + Series([ts], dtype="datetime64[ns]") + + with pytest.raises(ValueError, match=msg): + Series(np.array([ts], dtype=object), dtype="datetime64[ns]") + + with pytest.raises(ValueError, match=msg): + Series({0: ts}, dtype="datetime64[ns]") + + msg = "Cannot unbox tzaware Timestamp to tznaive dtype" + with pytest.raises(TypeError, match=msg): + Series(ts, index=[0], dtype="datetime64[ns]") + + def test_constructor_datetime64(self): + rng = date_range("1/1/2000 00:00:00", "1/1/2000 1:59:50", freq="10s") + dates = np.asarray(rng) + + series = Series(dates) + assert np.issubdtype(series.dtype, np.dtype("M8[ns]")) + + def test_constructor_datetimelike_scalar_to_string_dtype( + self, nullable_string_dtype + ): + # https://github.com/pandas-dev/pandas/pull/33846 + result = Series("M", index=[1, 2, 3], dtype=nullable_string_dtype) + expected = Series(["M", "M", "M"], index=[1, 2, 3], dtype=nullable_string_dtype) + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize( + "values", + [ + [np.datetime64("2012-01-01"), np.datetime64("2013-01-01")], + ["2012-01-01", "2013-01-01"], + ], + ) + def test_constructor_sparse_datetime64(self, values): + # https://github.com/pandas-dev/pandas/issues/35762 + dtype = pd.SparseDtype("datetime64[ns]") + result = Series(values, dtype=dtype) + arr = pd.arrays.SparseArray(values, dtype=dtype) + expected = Series(arr) + tm.assert_series_equal(result, expected) + + def test_construction_from_ordered_collection(self): + # https://github.com/pandas-dev/pandas/issues/36044 + result = Series({"a": 1, "b": 2}.keys()) + expected = Series(["a", "b"]) + tm.assert_series_equal(result, expected) + + result = Series({"a": 1, "b": 2}.values()) + expected = Series([1, 2]) + tm.assert_series_equal(result, expected) + + def test_construction_from_large_int_scalar_no_overflow(self): + # https://github.com/pandas-dev/pandas/issues/36291 + n = 1_000_000_000_000_000_000_000 + result = Series(n, index=[0]) + expected = Series(n) + tm.assert_series_equal(result, expected) + + def test_constructor_list_of_periods_infers_period_dtype(self): + series = Series(list(period_range("2000-01-01", periods=10, freq="D"))) + assert series.dtype == "Period[D]" + + series = Series( + [Period("2011-01-01", freq="D"), Period("2011-02-01", freq="D")] + ) + assert series.dtype == "Period[D]" + + def test_constructor_subclass_dict(self, dict_subclass): + data = dict_subclass((x, 10.0 * x) for x in range(10)) + series = Series(data) + expected = Series(dict(data.items())) + tm.assert_series_equal(series, expected) + + def test_constructor_ordereddict(self): + # GH3283 + data = OrderedDict( + (f"col{i}", np.random.default_rng(2).random()) for i in range(12) + ) + + series = Series(data) + expected = Series(list(data.values()), list(data.keys())) + tm.assert_series_equal(series, expected) + + # Test with subclass + class A(OrderedDict): + pass + + series = Series(A(data)) + tm.assert_series_equal(series, expected) + + def test_constructor_dict_multiindex(self): + d = {("a", "a"): 0.0, ("b", "a"): 1.0, ("b", "c"): 2.0} + _d = sorted(d.items()) + result = Series(d) + expected = Series( + [x[1] for x in _d], index=MultiIndex.from_tuples([x[0] for x in _d]) + ) + tm.assert_series_equal(result, expected) + + d["z"] = 111.0 + _d.insert(0, ("z", d["z"])) + result = Series(d) + expected = Series( + [x[1] for x in _d], index=Index([x[0] for x in _d], tupleize_cols=False) + ) + result = result.reindex(index=expected.index) + tm.assert_series_equal(result, expected) + + def test_constructor_dict_multiindex_reindex_flat(self): + # construction involves reindexing with a MultiIndex corner case + data = {("i", "i"): 0, ("i", "j"): 1, ("j", "i"): 2, "j": np.nan} + expected = Series(data) + + result = Series(expected[:-1].to_dict(), index=expected.index) + tm.assert_series_equal(result, expected) + + def test_constructor_dict_timedelta_index(self): + # GH #12169 : Resample category data with timedelta index + # construct Series from dict as data and TimedeltaIndex as index + # will result NaN in result Series data + expected = Series( + data=["A", "B", "C"], index=pd.to_timedelta([0, 10, 20], unit="s") + ) + + result = Series( + data={ + pd.to_timedelta(0, unit="s"): "A", + pd.to_timedelta(10, unit="s"): "B", + pd.to_timedelta(20, unit="s"): "C", + }, + index=pd.to_timedelta([0, 10, 20], unit="s"), + ) + tm.assert_series_equal(result, expected) + + def test_constructor_infer_index_tz(self): + values = [188.5, 328.25] + tzinfo = tzoffset(None, 7200) + index = [ + datetime(2012, 5, 11, 11, tzinfo=tzinfo), + datetime(2012, 5, 11, 12, tzinfo=tzinfo), + ] + series = Series(data=values, index=index) + + assert series.index.tz == tzinfo + + # it works! GH#2443 + repr(series.index[0]) + + def test_constructor_with_pandas_dtype(self): + # going through 2D->1D path + vals = [(1,), (2,), (3,)] + ser = Series(vals) + dtype = ser.array.dtype # NumpyEADtype + ser2 = Series(vals, dtype=dtype) + tm.assert_series_equal(ser, ser2) + + def test_constructor_int_dtype_missing_values(self): + # GH#43017 + result = Series(index=[0], dtype="int64") + expected = Series(np.nan, index=[0], dtype="float64") + tm.assert_series_equal(result, expected) + + def test_constructor_bool_dtype_missing_values(self): + # GH#43018 + result = Series(index=[0], dtype="bool") + expected = Series(True, index=[0], dtype="bool") + tm.assert_series_equal(result, expected) + + def test_constructor_int64_dtype(self, any_int_dtype): + # GH#44923 + result = Series(["0", "1", "2"], dtype=any_int_dtype) + expected = Series([0, 1, 2], dtype=any_int_dtype) + tm.assert_series_equal(result, expected) + + def test_constructor_raise_on_lossy_conversion_of_strings(self): + # GH#44923 + if not np_version_gt2: + raises = pytest.raises( + ValueError, match="string values cannot be losslessly cast to int8" + ) + else: + raises = pytest.raises( + OverflowError, match="The elements provided in the data" + ) + with raises: + Series(["128"], dtype="int8") + + def test_constructor_dtype_timedelta_alternative_construct(self): + # GH#35465 + result = Series([1000000, 200000, 3000000], dtype="timedelta64[ns]") + expected = Series(pd.to_timedelta([1000000, 200000, 3000000], unit="ns")) + tm.assert_series_equal(result, expected) + + @pytest.mark.xfail( + reason="Not clear what the correct expected behavior should be with " + "integers now that we support non-nano. ATM (2022-10-08) we treat ints " + "as nanoseconds, then cast to the requested dtype. xref #48312" + ) + def test_constructor_dtype_timedelta_ns_s(self): + # GH#35465 + result = Series([1000000, 200000, 3000000], dtype="timedelta64[ns]") + expected = Series([1000000, 200000, 3000000], dtype="timedelta64[s]") + tm.assert_series_equal(result, expected) + + @pytest.mark.xfail( + reason="Not clear what the correct expected behavior should be with " + "integers now that we support non-nano. ATM (2022-10-08) we treat ints " + "as nanoseconds, then cast to the requested dtype. xref #48312" + ) + def test_constructor_dtype_timedelta_ns_s_astype_int64(self): + # GH#35465 + result = Series([1000000, 200000, 3000000], dtype="timedelta64[ns]").astype( + "int64" + ) + expected = Series([1000000, 200000, 3000000], dtype="timedelta64[s]").astype( + "int64" + ) + tm.assert_series_equal(result, expected) + + @pytest.mark.filterwarnings( + "ignore:elementwise comparison failed:DeprecationWarning" + ) + @pytest.mark.parametrize("func", [Series, DataFrame, Index, pd.array]) + def test_constructor_mismatched_null_nullable_dtype( + self, func, any_numeric_ea_dtype + ): + # GH#44514 + msg = "|".join( + [ + "cannot safely cast non-equivalent object", + r"int\(\) argument must be a string, a bytes-like object " + "or a (real )?number", + r"Cannot cast array data from dtype\('O'\) to dtype\('float64'\) " + "according to the rule 'safe'", + "object cannot be converted to a FloatingDtype", + "'values' contains non-numeric NA", + ] + ) + + for null in tm.NP_NAT_OBJECTS + [NaT]: + with pytest.raises(TypeError, match=msg): + func([null, 1.0, 3.0], dtype=any_numeric_ea_dtype) + + def test_series_constructor_ea_int_from_bool(self): + # GH#42137 + result = Series([True, False, True, pd.NA], dtype="Int64") + expected = Series([1, 0, 1, pd.NA], dtype="Int64") + tm.assert_series_equal(result, expected) + + result = Series([True, False, True], dtype="Int64") + expected = Series([1, 0, 1], dtype="Int64") + tm.assert_series_equal(result, expected) + + def test_series_constructor_ea_int_from_string_bool(self): + # GH#42137 + with pytest.raises(ValueError, match="invalid literal"): + Series(["True", "False", "True", pd.NA], dtype="Int64") + + @pytest.mark.parametrize("val", [1, 1.0]) + def test_series_constructor_overflow_uint_ea(self, val): + # GH#38798 + max_val = np.iinfo(np.uint64).max - 1 + result = Series([max_val, val], dtype="UInt64") + expected = Series(np.array([max_val, 1], dtype="uint64"), dtype="UInt64") + tm.assert_series_equal(result, expected) + + @pytest.mark.parametrize("val", [1, 1.0]) + def test_series_constructor_overflow_uint_ea_with_na(self, val): + # GH#38798 + max_val = np.iinfo(np.uint64).max - 1 + result = Series([max_val, val, pd.NA], dtype="UInt64") + expected = Series( + IntegerArray( + np.array([max_val, 1, 0], dtype="uint64"), + np.array([0, 0, 1], dtype=np.bool_), + ) + ) + tm.assert_series_equal(result, expected) + + def test_series_constructor_overflow_uint_with_nan(self): + # GH#38798 + max_val = np.iinfo(np.uint64).max - 1 + result = Series([max_val, np.nan], dtype="UInt64") + expected = Series( + IntegerArray( + np.array([max_val, 1], dtype="uint64"), + np.array([0, 1], dtype=np.bool_), + ) + ) + tm.assert_series_equal(result, expected) + + def test_series_constructor_ea_all_na(self): + # GH#38798 + result = Series([np.nan, np.nan], dtype="UInt64") + expected = Series( + IntegerArray( + np.array([1, 1], dtype="uint64"), + np.array([1, 1], dtype=np.bool_), + ) + ) + tm.assert_series_equal(result, expected) + + def test_series_from_index_dtype_equal_does_not_copy(self): + # GH#52008 + idx = Index([1, 2, 3]) + expected = idx.copy(deep=True) + ser = Series(idx, dtype="int64") + ser.iloc[0] = 100 + tm.assert_index_equal(idx, expected) + + def test_series_string_inference(self): + # GH#54430 + with pd.option_context("future.infer_string", True): + ser = Series(["a", "b"]) + dtype = pd.StringDtype("pyarrow" if HAS_PYARROW else "python", na_value=np.nan) + expected = Series(["a", "b"], dtype=dtype) + tm.assert_series_equal(ser, expected) + + expected = Series(["a", 1], dtype="object") + with pd.option_context("future.infer_string", True): + ser = Series(["a", 1]) + tm.assert_series_equal(ser, expected) + + @pytest.mark.parametrize("na_value", [None, np.nan, pd.NA]) + def test_series_string_with_na_inference(self, na_value): + # GH#54430 + with pd.option_context("future.infer_string", True): + ser = Series(["a", na_value]) + dtype = pd.StringDtype("pyarrow" if HAS_PYARROW else "python", na_value=np.nan) + expected = Series(["a", None], dtype=dtype) + tm.assert_series_equal(ser, expected) + + def test_series_string_inference_scalar(self): + # GH#54430 + with pd.option_context("future.infer_string", True): + ser = Series("a", index=[1]) + dtype = pd.StringDtype("pyarrow" if HAS_PYARROW else "python", na_value=np.nan) + expected = Series("a", index=[1], dtype=dtype) + tm.assert_series_equal(ser, expected) + + def test_series_string_inference_array_string_dtype(self): + # GH#54496 + with pd.option_context("future.infer_string", True): + ser = Series(np.array(["a", "b"])) + dtype = pd.StringDtype("pyarrow" if HAS_PYARROW else "python", na_value=np.nan) + expected = Series(["a", "b"], dtype=dtype) + tm.assert_series_equal(ser, expected) + + def test_series_string_inference_storage_definition(self): + # https://github.com/pandas-dev/pandas/issues/54793 + # but after PDEP-14 (string dtype), it was decided to keep dtype="string" + # returning the NA string dtype, so expected is changed from + # "string[pyarrow_numpy]" to "string[python]" + expected = Series(["a", "b"], dtype="string[python]") + with pd.option_context("future.infer_string", True): + result = Series(["a", "b"], dtype="string") + tm.assert_series_equal(result, expected) + + expected = Series(["a", "b"], dtype=pd.StringDtype(na_value=np.nan)) + with pd.option_context("future.infer_string", True): + result = Series(["a", "b"], dtype="str") + tm.assert_series_equal(result, expected) + + def test_series_constructor_infer_string_scalar(self): + # GH#55537 + with pd.option_context("future.infer_string", True): + ser = Series("a", index=[1, 2], dtype="string[python]") + expected = Series(["a", "a"], index=[1, 2], dtype="string[python]") + tm.assert_series_equal(ser, expected) + assert ser.dtype.storage == "python" + + def test_series_string_inference_na_first(self): + # GH#55655 + with pd.option_context("future.infer_string", True): + result = Series([pd.NA, "b"]) + dtype = pd.StringDtype("pyarrow" if HAS_PYARROW else "python", na_value=np.nan) + expected = Series([None, "b"], dtype=dtype) + tm.assert_series_equal(result, expected) + + def test_inference_on_pandas_objects(self): + # GH#56012 + ser = Series([Timestamp("2019-12-31")], dtype=object) + with tm.assert_produces_warning(None): + # This doesn't do inference + result = Series(ser) + assert result.dtype == np.object_ + + idx = Index([Timestamp("2019-12-31")], dtype=object) + + with tm.assert_produces_warning(FutureWarning, match="Dtype inference"): + result = Series(idx) + assert result.dtype != np.object_ + + +class TestSeriesConstructorIndexCoercion: + def test_series_constructor_datetimelike_index_coercion(self): + idx = date_range("2020-01-01", periods=5) + ser = Series( + np.random.default_rng(2).standard_normal(len(idx)), idx.astype(object) + ) + # as of 2.0, we no longer silently cast the object-dtype index + # to DatetimeIndex GH#39307, GH#23598 + assert not isinstance(ser.index, DatetimeIndex) + + @pytest.mark.parametrize("container", [None, np.array, Series, Index]) + @pytest.mark.parametrize("data", [1.0, range(4)]) + def test_series_constructor_infer_multiindex(self, container, data): + indexes = [["a", "a", "b", "b"], ["x", "y", "x", "y"]] + if container is not None: + indexes = [container(ind) for ind in indexes] + + multi = Series(data, index=indexes) + assert isinstance(multi.index, MultiIndex) + + # TODO: make this not cast to object in pandas 3.0 + @pytest.mark.skipif( + not np_version_gt2, reason="StringDType only available in numpy 2 and above" + ) + @pytest.mark.parametrize( + "data", + [ + ["a", "b", "c"], + ["a", "b", np.nan], + ], + ) + def test_np_string_array_object_cast(self, data): + from numpy.dtypes import StringDType + + arr = np.array(data, dtype=StringDType()) + res = Series(arr) + assert res.dtype == np.object_ + assert (res == data).all() + + +class TestSeriesConstructorInternals: + def test_constructor_no_pandas_array(self, using_array_manager): + ser = Series([1, 2, 3]) + result = Series(ser.array) + tm.assert_series_equal(ser, result) + if not using_array_manager: + assert isinstance(result._mgr.blocks[0], NumpyBlock) + assert result._mgr.blocks[0].is_numeric + + @td.skip_array_manager_invalid_test + def test_from_array(self): + result = Series(pd.array(["1h", "2h"], dtype="timedelta64[ns]")) + assert result._mgr.blocks[0].is_extension is False + + result = Series(pd.array(["2015"], dtype="datetime64[ns]")) + assert result._mgr.blocks[0].is_extension is False + + @td.skip_array_manager_invalid_test + def test_from_list_dtype(self): + result = Series(["1h", "2h"], dtype="timedelta64[ns]") + assert result._mgr.blocks[0].is_extension is False + + result = Series(["2015"], dtype="datetime64[ns]") + assert result._mgr.blocks[0].is_extension is False + + +def test_constructor(rand_series_with_duplicate_datetimeindex): + dups = rand_series_with_duplicate_datetimeindex + assert isinstance(dups, Series) + assert isinstance(dups.index, DatetimeIndex) + + +@pytest.mark.parametrize( + "input_dict,expected", + [ + ({0: 0}, np.array([[0]], dtype=np.int64)), + ({"a": "a"}, np.array([["a"]], dtype=object)), + ({1: 1}, np.array([[1]], dtype=np.int64)), + ], +) +def test_numpy_array(input_dict, expected): + result = np.array([Series(input_dict)]) + tm.assert_numpy_array_equal(result, expected) + + +def test_index_ordered_dict_keys(): + # GH 22077 + + param_index = OrderedDict( + [ + ((("a", "b"), ("c", "d")), 1), + ((("a", None), ("c", "d")), 2), + ] + ) + series = Series([1, 2], index=param_index.keys()) + expected = Series( + [1, 2], + index=MultiIndex.from_tuples( + [(("a", "b"), ("c", "d")), (("a", None), ("c", "d"))] + ), + ) + tm.assert_series_equal(series, expected) + + +@pytest.mark.parametrize( + "input_list", + [ + [1, complex("nan"), 2], + [1 + 1j, complex("nan"), 2 + 2j], + ], +) +def test_series_with_complex_nan(input_list): + # GH#53627 + ser = Series(input_list) + result = Series(ser.array) + assert ser.dtype == "complex128" + tm.assert_series_equal(ser, result) diff --git a/shared/package-files/ec/ec358d58fa0bbe5fd98bda17718418cc1b56223bfbb0b7bb87bdfd8a3b00ac14/blob b/shared/package-files/ec/ec358d58fa0bbe5fd98bda17718418cc1b56223bfbb0b7bb87bdfd8a3b00ac14/blob new file mode 100644 index 0000000000000000000000000000000000000000..aa05792dc176ff4a8e9f6845669536978bab7a3c --- /dev/null +++ b/shared/package-files/ec/ec358d58fa0bbe5fd98bda17718418cc1b56223bfbb0b7bb87bdfd8a3b00ac14/blob @@ -0,0 +1,113 @@ +# mypy: ignore-errors + +# Owner(s): ["oncall: distributed"] + +import copy +from itertools import chain +from typing import Any, Dict + +import torch +import torch.nn as nn + +from torch.distributed._sharded_tensor import ShardedTensor +from torch.distributed._state_dict_utils import _gather_state_dict +from torch.distributed._tensor import DTensor +from torch.distributed.checkpoint.state_dict import ( + PG, + set_state_dict, + STATE, + StateDictOptions, +) + + +class VerifyStateDictMixin: + def _compare_tensor(self, orig_tensor, dist_tensor): + if isinstance(dist_tensor, (DTensor, ShardedTensor)): + dist_tensor = _gather_state_dict({"mykey": dist_tensor}).pop("mykey") + self.assertTrue(isinstance(dist_tensor, torch.Tensor)) + self.assertTrue(torch.allclose(orig_tensor, dist_tensor)) + + def _verify_msd( + self, + msd: Dict[str, Any], + dist_msd: Dict[str, Any], + options: StateDictOptions = StateDictOptions(), + ) -> None: + if not options.ignore_frozen_params: + self.assertEqual(len(msd), len(dist_msd)) + for fqn, param in msd.items(): + dist_param = dist_msd.get(fqn, None) + if not options.ignore_frozen_params: + self.assertIsNotNone(dist_param, f"{fqn=}") + self._compare_tensor(param, dist_param) + elif dist_param is None: + self.assertFalse(param.requires_grad, f"{fqn=}") + + def _verify_osd( + self, + model: nn.Module, + optim: torch.optim.Optimizer, + osd: Dict[str, Any], + dist_osd: Dict[str, Any], + ) -> None: + params = list(chain.from_iterable(g["params"] for g in optim.param_groups)) + param_pid_mapping = dict(zip(params, range(len(params)))) + fqn_pid_mapping = {} + for fqn, param in model.named_parameters(): + pid = param_pid_mapping[param] + fqn_pid_mapping[fqn] = pid + fqn_pid_mapping[pid] = fqn + # Check optimizer_state_dict state + + self.assertEqual(len(osd[STATE]), len(dist_osd[STATE])) + for pid, states in osd[STATE].items(): + fqn = fqn_pid_mapping[pid] + dist_states = dist_osd[STATE].get(fqn, None) + self.assertIsNotNone(dist_states, fqn) + self.assertEqual(len(states), len(dist_states)) + for key, state in states.items(): + dist_state = states.get(key, None) + self.assertIsNotNone(dist_state) + self._compare_tensor(state, dist_state) + + # Check optimizer_state_dict param_group + old_dist_osd_pg = dist_osd[PG] + if len(osd[PG]) != len(dist_osd[PG]): + self.assertTrue(len(dist_osd[PG]) > len(osd[PG])) + new_pg = copy.deepcopy(dist_osd[PG][0]) + new_pg["params"] = [] + for dist_group in dist_osd[PG]: + new_pg["params"].extend(dist_group["params"]) + dist_osd[PG] = [new_pg] + + self.assertEqual(len(osd[PG]), len(dist_osd[PG])) + for group, dist_group in zip(osd[PG], dist_osd[PG]): + self.assertEqual(len(group), len(dist_group)) + for key, value in group.items(): + # Below doesn't work because param_groups can have None + # values. + # dist_value = dist_group.get(key, None) + # self.assertIsNotNone(dist_value, (dist_group, group)) + dist_value = dist_group[key] + if key == "params": + fqns = [fqn_pid_mapping[pid] for pid in value] + self.assertEqual(sorted(fqns), sorted(dist_value)) + else: + self.assertEqual(value, dist_value) + dist_osd[PG] = old_dist_osd_pg + + def _verify_osd_by_load( + self, + model: nn.Module, + optim: torch.optim.Optimizer, + new_optim: torch.optim.Optimizer, + dist_osd: Dict[str, Any], + ) -> None: + new_dist_osd = _gather_state_dict(dist_osd) + set_state_dict( + model, + optimizers=new_optim, + model_state_dict={}, + optim_state_dict=new_dist_osd, + ) + self.assertEqual(optim.state_dict(), new_optim.state_dict()) diff --git a/shared/package-files/ec/ec374fd69ec1057652394dbfd4fc77fadaaadf59dc8a847d116d4a34301c24ff/blob b/shared/package-files/ec/ec374fd69ec1057652394dbfd4fc77fadaaadf59dc8a847d116d4a34301c24ff/blob new file mode 100644 index 0000000000000000000000000000000000000000..4d1113bea891df2be89e7bb324a558a73afc0425 --- /dev/null +++ b/shared/package-files/ec/ec374fd69ec1057652394dbfd4fc77fadaaadf59dc8a847d116d4a34301c24ff/blob @@ -0,0 +1,175 @@ +import logging + +from typing import Dict, Optional, Tuple, Type + +import sympy + +from torch.utils._sympy.functions import FloorDiv + +log = logging.getLogger(__name__) + +_MIRROR_REL_OP: Dict[Type[sympy.Basic], Type[sympy.Rel]] = { + sympy.Eq: sympy.Eq, + sympy.Ne: sympy.Ne, + sympy.Ge: sympy.Le, + sympy.Gt: sympy.Lt, + sympy.Le: sympy.Ge, + sympy.Lt: sympy.Gt, +} + +INEQUALITY_TYPES = (sympy.Gt, sympy.Ge, sympy.Lt, sympy.Le) + + +def mirror_rel_op(type: Type) -> Optional[Type[sympy.Rel]]: + return _MIRROR_REL_OP.get(type, None) + + +# Tries to simplify 'expr', so as to leave only 'thing' in the left-hand side. +# +# Returns a tuple of: +# 1. The simplified expression +# 2. The expression on the right-hand side +# +# Returns 'None' if it can't reach a state where the only thing in the left +# hand side is 'thing'. +# +# 'trials': number of times 'try_solve' will try to isolate 'thing' to the +# left-hand side. +# +# 'floordiv_inequality': flag to enable conversion of 'FloorDiv' into +# inequalities. +def try_solve( + expr: sympy.Basic, + thing: sympy.Basic, + trials: int = 5, + floordiv_inequality: bool = True, +) -> Optional[Tuple[sympy.Rel, sympy.Basic]]: + mirror = mirror_rel_op(type(expr)) + + # Ignore unsupported expressions: + # - Those that are not relational operations + # - Those that don't have a mirror (just avoiding unexpected classes) + if not isinstance(expr, sympy.Rel) or mirror is None: + log.debug("expression with unsupported type: %s", type(expr)) + return None + + lhs_has_thing = expr.lhs.has(thing) + rhs_has_thing = expr.rhs.has(thing) + + # Give up when 'thing' appears on both sides of the relational expression. + # That is because, as is, we assume the thing we are trying to isolate is + # only on the right-hand side. + if lhs_has_thing and rhs_has_thing: + log.debug("thing (%s) found in both sides of expression: %s", thing, expr) + return None + + # Try considering both LHS and RHS by mirroring the original expression: + # a < b ==> b > a + expressions = [] + + # Add each version of 'expr' if 'thing' is in its left-hand side. + if lhs_has_thing: + expressions.append(expr) + if rhs_has_thing: + expressions.append(mirror(expr.rhs, expr.lhs)) + + for e in expressions: + if e is None: + continue + + assert isinstance(e, sympy.Rel) + + for _ in range(trials): + trial = _try_isolate_lhs(e, thing, floordiv_inequality=floordiv_inequality) + # Stop if there was no change in this trial. + if trial == e: + break + e = trial # type: ignore[assignment] + + # Return if we were able to isolate 'thing' on the left-hand side. + if isinstance(e, sympy.Rel) and e.lhs == thing: + return e, e.rhs + + return None + + +def _try_isolate_lhs( + expr: sympy.Basic, thing: sympy.Basic, floordiv_inequality: bool +) -> sympy.Basic: + e = expr + op = type(expr) + + if isinstance(e, sympy.Rel): + # Move any constants in the left-hand side to the right-hand side. + lhs_not_thing = ( + sum([a for a in e.lhs.args if not a.has(thing)]) + if isinstance(e.lhs, sympy.Add) + else 0 + ) + e = op(expr.lhs - lhs_not_thing, expr.rhs - lhs_not_thing) # type: ignore[attr-defined] + + # Divide both sides by the factors that don't contain thing. + if isinstance(e, sympy.Rel) and isinstance(e.lhs, sympy.Mul): + lhs, rhs = e.args + other = sympy.Mul(*[a for a in lhs.args if not a.has(thing)]) + + # If we can't tell whether 'other' is negative or positive, we do nothing. + # That is because we don't know whether we have mirror the operation or not. + if not (isinstance(e, INEQUALITY_TYPES) and other.is_negative is None): + # Divide both sides by 'other'. + lhs = lhs / other + rhs = rhs / other + + # If 'e' is an inequality and 'other' is negative, we have to + # mirror the expression. + if isinstance(e, INEQUALITY_TYPES) and other.is_negative: + op = mirror_rel_op(op) # type: ignore[assignment] + + assert op is not None + e = op(lhs, rhs) + + ################################################################################ + # left-hand side is FloorDiv + ################################################################################ + # + # Given the expression: a // b op c + # where 'op' is a relational operation, these rules only work if: + # - b > 0 + # - c is an integer + if ( + floordiv_inequality + and isinstance(e, sympy.Rel) + and isinstance(e.lhs, FloorDiv) + and e.lhs.divisor.is_positive + and e.rhs.is_integer + ): + # a // b == expr + # => a >= (b * expr) and a < (b * (expr + 1)) + if isinstance(expr, sympy.Eq): + numerator, denominator = e.lhs.args + return sympy.And( + sympy.Ge(numerator, (e.rhs * denominator)), # type: ignore[arg-type] + sympy.Lt(numerator, ((e.rhs + 1) * denominator)), # type: ignore[arg-type] + ) + # a // b != expr + # => a < (b * expr) or a >= (b * (expr + 1)) + if isinstance(expr, sympy.Ne): + numerator, denominator = e.lhs.args + return sympy.Or( + sympy.Lt(numerator, (e.rhs * denominator)), # type: ignore[arg-type] + sympy.Ge(numerator, ((e.rhs + 1) * denominator)), # type: ignore[arg-type] + ) + # The transformations below only work if b is positive. + # Note: we only have this information for constants. + # a // b > expr => a >= b * (expr + 1) + # a // b >= expr => a >= b * expr + if isinstance(expr, (sympy.Gt, sympy.Ge)): + quotient = e.rhs if isinstance(expr, sympy.Ge) else (e.rhs + 1) # type: ignore[arg-type] + return sympy.Ge(e.lhs.args[0], (quotient * e.lhs.args[1])) # type: ignore[arg-type] + # a // b < expr => a < b * expr + # a // b <= expr => a < b * (expr + 1) + if isinstance(expr, (sympy.Lt, sympy.Le)): + quotient = e.rhs if isinstance(expr, sympy.Lt) else (e.rhs + 1) # type: ignore[arg-type] + return sympy.Lt(e.lhs.args[0], (quotient * e.lhs.args[1])) # type: ignore[arg-type] + + return e diff --git a/shared/package-files/ec/ec3850df132deb79558a7a1642fd2fc08e95986d887cd3e53292d11aefe0abeb/blob b/shared/package-files/ec/ec3850df132deb79558a7a1642fd2fc08e95986d887cd3e53292d11aefe0abeb/blob new file mode 100644 index 0000000000000000000000000000000000000000..4dd76cca56ae6805c9db5579f607be3ab72723af --- /dev/null +++ b/shared/package-files/ec/ec3850df132deb79558a7a1642fd2fc08e95986d887cd3e53292d11aefe0abeb/blob @@ -0,0 +1,58 @@ +from typing import Any + +class KazooException(Exception): ... +class ZookeeperError(KazooException): ... +class CancelledError(KazooException): ... +class ConfigurationError(KazooException): ... +class ZookeeperStoppedError(KazooException): ... +class ConnectionDropped(KazooException): ... +class LockTimeout(KazooException): ... +class WriterNotClosedException(KazooException): ... + +EXCEPTIONS: Any + +class RolledBackError(ZookeeperError): ... +class SystemZookeeperError(ZookeeperError): ... +class RuntimeInconsistency(ZookeeperError): ... +class DataInconsistency(ZookeeperError): ... +class ConnectionLoss(ZookeeperError): ... +class MarshallingError(ZookeeperError): ... +class UnimplementedError(ZookeeperError): ... +class OperationTimeoutError(ZookeeperError): ... +class BadArgumentsError(ZookeeperError): ... +class NewConfigNoQuorumError(ZookeeperError): ... +class ReconfigInProcessError(ZookeeperError): ... +class APIError(ZookeeperError): ... +class NoNodeError(ZookeeperError): ... +class NoAuthError(ZookeeperError): ... +class BadVersionError(ZookeeperError): ... +class NoChildrenForEphemeralsError(ZookeeperError): ... +class NodeExistsError(ZookeeperError): ... +class NotEmptyError(ZookeeperError): ... +class SessionExpiredError(ZookeeperError): ... +class InvalidCallbackError(ZookeeperError): ... +class InvalidACLError(ZookeeperError): ... +class AuthFailedError(ZookeeperError): ... +class SessionMovedError(ZookeeperError): ... +class NotReadOnlyCallError(ZookeeperError): ... +class ConnectionClosedError(SessionExpiredError): ... + +ConnectionLossException: Any +MarshallingErrorException: Any +SystemErrorException: Any +RuntimeInconsistencyException: Any +DataInconsistencyException: Any +UnimplementedException: Any +OperationTimeoutException: Any +BadArgumentsException: Any +ApiErrorException: Any +NoNodeException: Any +NoAuthException: Any +BadVersionException: Any +NoChildrenForEphemeralsException: Any +NodeExistsException: Any +InvalidACLException: Any +AuthFailedException: Any +NotEmptyException: Any +SessionExpiredException: Any +InvalidCallbackException: Any diff --git a/shared/package-files/ec/ec38a6025e191ed909521bb52d1c24e1b82482a74e9eec24c4d3e1dd7b69034a/blob b/shared/package-files/ec/ec38a6025e191ed909521bb52d1c24e1b82482a74e9eec24c4d3e1dd7b69034a/blob new file mode 100644 index 0000000000000000000000000000000000000000..6b99a58ae23b881af28db4737030ad84cc4455a8 --- /dev/null +++ b/shared/package-files/ec/ec38a6025e191ed909521bb52d1c24e1b82482a74e9eec24c4d3e1dd7b69034a/blob @@ -0,0 +1,160 @@ +"""Token-related utilities""" + +# Copyright (c) IPython Development Team. +# Distributed under the terms of the Modified BSD License. + +from collections import namedtuple +from io import StringIO +from keyword import iskeyword + +import tokenize +from tokenize import TokenInfo +from typing import List, Optional + + +Token = namedtuple('Token', ['token', 'text', 'start', 'end', 'line']) + +def generate_tokens(readline): + """wrap generate_tkens to catch EOF errors""" + try: + for token in tokenize.generate_tokens(readline): + yield token + except tokenize.TokenError: + # catch EOF error + return + + +def generate_tokens_catch_errors( + readline, extra_errors_to_catch: Optional[List[str]] = None +): + default_errors_to_catch = [ + "unterminated string literal", + "invalid non-printable character", + "after line continuation character", + ] + assert extra_errors_to_catch is None or isinstance(extra_errors_to_catch, list) + errors_to_catch = default_errors_to_catch + (extra_errors_to_catch or []) + + tokens: List[TokenInfo] = [] + try: + for token in tokenize.generate_tokens(readline): + tokens.append(token) + yield token + except tokenize.TokenError as exc: + if any(error in exc.args[0] for error in errors_to_catch): + if tokens: + start = tokens[-1].start[0], tokens[-1].end[0] + end = start + line = tokens[-1].line + else: + start = end = (1, 0) + line = "" + yield tokenize.TokenInfo(tokenize.ERRORTOKEN, "", start, end, line) + else: + # Catch EOF + raise + + +def line_at_cursor(cell, cursor_pos=0): + """Return the line in a cell at a given cursor position + + Used for calling line-based APIs that don't support multi-line input, yet. + + Parameters + ---------- + cell : str + multiline block of text + cursor_pos : integer + the cursor position + + Returns + ------- + (line, offset): (string, integer) + The line with the current cursor, and the character offset of the start of the line. + """ + offset = 0 + lines = cell.splitlines(True) + for line in lines: + next_offset = offset + len(line) + if not line.endswith('\n'): + # If the last line doesn't have a trailing newline, treat it as if + # it does so that the cursor at the end of the line still counts + # as being on that line. + next_offset += 1 + if next_offset > cursor_pos: + break + offset = next_offset + else: + line = "" + return (line, offset) + + +def token_at_cursor(cell: str, cursor_pos: int = 0): + """Get the token at a given cursor + + Used for introspection. + + Function calls are prioritized, so the token for the callable will be returned + if the cursor is anywhere inside the call. + + Parameters + ---------- + cell : str + A block of Python code + cursor_pos : int + The location of the cursor in the block where the token should be found + """ + names: List[str] = [] + tokens: List[Token] = [] + call_names = [] + + offsets = {1: 0} # lines start at 1 + for tup in generate_tokens(StringIO(cell).readline): + + tok = Token(*tup) + + # token, text, start, end, line = tup + start_line, start_col = tok.start + end_line, end_col = tok.end + if end_line + 1 not in offsets: + # keep track of offsets for each line + lines = tok.line.splitlines(True) + for lineno, line in enumerate(lines, start_line + 1): + if lineno not in offsets: + offsets[lineno] = offsets[lineno-1] + len(line) + + offset = offsets[start_line] + # allow '|foo' to find 'foo' at the beginning of a line + boundary = cursor_pos + 1 if start_col == 0 else cursor_pos + if offset + start_col >= boundary: + # current token starts after the cursor, + # don't consume it + break + + if tok.token == tokenize.NAME and not iskeyword(tok.text): + if names and tokens and tokens[-1].token == tokenize.OP and tokens[-1].text == '.': + names[-1] = "%s.%s" % (names[-1], tok.text) + else: + names.append(tok.text) + elif tok.token == tokenize.OP: + if tok.text == '=' and names: + # don't inspect the lhs of an assignment + names.pop(-1) + if tok.text == '(' and names: + # if we are inside a function call, inspect the function + call_names.append(names[-1]) + elif tok.text == ')' and call_names: + call_names.pop(-1) + + tokens.append(tok) + + if offsets[end_line] + end_col > cursor_pos: + # we found the cursor, stop reading + break + + if call_names: + return call_names[-1] + elif names: + return names[-1] + else: + return '' diff --git a/shared/package-files/ec/ec3af6d57ca0c417c35613abf3715f58488936dfd6eae3733a6c8b7deae613fa/blob b/shared/package-files/ec/ec3af6d57ca0c417c35613abf3715f58488936dfd6eae3733a6c8b7deae613fa/blob new file mode 100644 index 0000000000000000000000000000000000000000..ffc459796cb40cb0047621563ce2e604bca9eb61 --- /dev/null +++ b/shared/package-files/ec/ec3af6d57ca0c417c35613abf3715f58488936dfd6eae3733a6c8b7deae613fa/blob @@ -0,0 +1,20 @@ +from typing import Any, Dict, Generic, Iterable, Iterator, Mapping, MutableMapping, Optional, Tuple, TypeVar, Union + +_VT = TypeVar("_VT") + +class CaseInsensitiveDict(MutableMapping[str, _VT], Generic[_VT]): + def __init__(self, data: Optional[Union[Mapping[str, _VT], Iterable[Tuple[str, _VT]]]] = ..., **kwargs: _VT) -> None: ... + def lower_items(self) -> Iterator[Tuple[str, _VT]]: ... + def __setitem__(self, key: str, value: _VT) -> None: ... + def __getitem__(self, key: str) -> _VT: ... + def __delitem__(self, key: str) -> None: ... + def __iter__(self) -> Iterator[str]: ... + def __len__(self) -> int: ... + def copy(self) -> CaseInsensitiveDict[_VT]: ... + +class LookupDict(Dict[str, _VT]): + name: Any + def __init__(self, name: Any = ...) -> None: ... + def __getitem__(self, key: str) -> Optional[_VT]: ... # type: ignore + def __getattr__(self, attr: str) -> _VT: ... + def __setattr__(self, attr: str, value: _VT) -> None: ... diff --git a/shared/package-files/ec/ec3c3e65f1f6ec86f268b27d56c2453f91c8f46bd18b2cfde80112ed72105f24/blob b/shared/package-files/ec/ec3c3e65f1f6ec86f268b27d56c2453f91c8f46bd18b2cfde80112ed72105f24/blob new file mode 100644 index 0000000000000000000000000000000000000000..83edacbfefda22b6cf94224c60ee8abf1c2432d5 --- /dev/null +++ b/shared/package-files/ec/ec3c3e65f1f6ec86f268b27d56c2453f91c8f46bd18b2cfde80112ed72105f24/blob @@ -0,0 +1,2485 @@ +# This file is part of Hypothesis, which may be found at +# https://github.com/HypothesisWorks/hypothesis/ +# +# Copyright the Hypothesis Authors. +# Individual contributors are listed in AUTHORS.rst and the git log. +# +# This Source Code Form is subject to the terms of the Mozilla Public License, +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at https://mozilla.org/MPL/2.0/. + +import codecs +import enum +import math +import operator +import random +import re +import string +import sys +import typing +import warnings +from contextvars import ContextVar +from decimal import Context, Decimal, localcontext +from fractions import Fraction +from functools import lru_cache, reduce +from inspect import Parameter, Signature, isabstract, isclass +from types import FunctionType +from typing import ( + Any, + AnyStr, + Callable, + Collection, + Dict, + FrozenSet, + Hashable, + Iterable, + List, + Literal, + Optional, + Pattern, + Protocol, + Sequence, + Set, + Tuple, + Type, + TypeVar, + Union, + get_args, + get_origin, + overload, +) +from uuid import UUID + +import attr + +from hypothesis._settings import note_deprecation +from hypothesis.control import ( + RandomSeeder, + cleanup, + current_build_context, + deprecate_random_in_strategy, + note, +) +from hypothesis.errors import ( + HypothesisSideeffectWarning, + HypothesisWarning, + InvalidArgument, + ResolutionFailed, + RewindRecursive, + SmallSearchSpaceWarning, +) +from hypothesis.internal.cathetus import cathetus +from hypothesis.internal.charmap import ( + as_general_categories, + categories as all_categories, +) +from hypothesis.internal.compat import ( + Concatenate, + ParamSpec, + bit_count, + ceil, + floor, + get_type_hints, + is_typed_named_tuple, +) +from hypothesis.internal.conjecture.utils import calc_label_from_cls, check_sample +from hypothesis.internal.entropy import get_seeder_and_restorer +from hypothesis.internal.floats import float_of +from hypothesis.internal.observability import TESTCASE_CALLBACKS +from hypothesis.internal.reflection import ( + define_function_signature, + get_pretty_function_description, + get_signature, + is_first_param_referenced_in_function, + nicerepr, + repr_call, + required_args, +) +from hypothesis.internal.validation import ( + check_type, + check_valid_integer, + check_valid_interval, + check_valid_magnitude, + check_valid_size, + check_valid_sizes, + try_convert, +) +from hypothesis.strategies._internal import SearchStrategy, check_strategy +from hypothesis.strategies._internal.collections import ( + FixedAndOptionalKeysDictStrategy, + FixedKeysDictStrategy, + ListStrategy, + TupleStrategy, + UniqueListStrategy, + UniqueSampledListStrategy, + tuples, +) +from hypothesis.strategies._internal.deferred import DeferredStrategy +from hypothesis.strategies._internal.functions import FunctionStrategy +from hypothesis.strategies._internal.lazy import LazyStrategy, unwrap_strategies +from hypothesis.strategies._internal.misc import BooleansStrategy, just, none, nothing +from hypothesis.strategies._internal.numbers import ( + IntegersStrategy, + Real, + floats, + integers, +) +from hypothesis.strategies._internal.recursive import RecursiveStrategy +from hypothesis.strategies._internal.shared import SharedStrategy +from hypothesis.strategies._internal.strategies import ( + Ex, + Ex_Inv, + SampledFromStrategy, + T, + one_of, +) +from hypothesis.strategies._internal.strings import ( + BytesStrategy, + OneCharStringStrategy, + TextStrategy, +) +from hypothesis.strategies._internal.utils import ( + cacheable, + defines_strategy, + to_jsonable, +) +from hypothesis.utils.conventions import not_set +from hypothesis.vendor.pretty import RepresentationPrinter + +if sys.version_info >= (3, 10): + from types import EllipsisType as EllipsisType + from typing import TypeAlias as TypeAlias +elif typing.TYPE_CHECKING: # pragma: no cover + from builtins import ellipsis as EllipsisType + + from typing_extensions import TypeAlias +else: + EllipsisType = type(Ellipsis) # pragma: no cover + + +@cacheable +@defines_strategy(force_reusable_values=True) +def booleans() -> SearchStrategy[bool]: + """Returns a strategy which generates instances of :class:`python:bool`. + + Examples from this strategy will shrink towards ``False`` (i.e. + shrinking will replace ``True`` with ``False`` where possible). + """ + return BooleansStrategy() + + +@overload +def sampled_from(elements: Sequence[T]) -> SearchStrategy[T]: # pragma: no cover + ... + + +@overload +def sampled_from(elements: Type[enum.Enum]) -> SearchStrategy[Any]: # pragma: no cover + # `SearchStrategy[Enum]` is unreliable due to metaclass issues. + ... + + +@overload +def sampled_from( + elements: Union[Type[enum.Enum], Sequence[Any]] +) -> SearchStrategy[Any]: # pragma: no cover + ... + + +@defines_strategy(try_non_lazy=True) +def sampled_from( + elements: Union[Type[enum.Enum], Sequence[Any]] +) -> SearchStrategy[Any]: + """Returns a strategy which generates any value present in ``elements``. + + Note that as with :func:`~hypothesis.strategies.just`, values will not be + copied and thus you should be careful of using mutable data. + + ``sampled_from`` supports ordered collections, as well as + :class:`~python:enum.Enum` objects. :class:`~python:enum.Flag` objects + may also generate any combination of their members. + + Examples from this strategy shrink by replacing them with values earlier in + the list. So e.g. ``sampled_from([10, 1])`` will shrink by trying to replace + 1 values with 10, and ``sampled_from([1, 10])`` will shrink by trying to + replace 10 values with 1. + + It is an error to sample from an empty sequence, because returning :func:`nothing` + makes it too easy to silently drop parts of compound strategies. If you need + that behaviour, use ``sampled_from(seq) if seq else nothing()``. + """ + values = check_sample(elements, "sampled_from") + try: + if isinstance(elements, type) and issubclass(elements, enum.Enum): + repr_ = f"sampled_from({elements.__module__}.{elements.__name__})" + else: + repr_ = f"sampled_from({elements!r})" + except Exception: # pragma: no cover + repr_ = None + if isclass(elements) and issubclass(elements, enum.Flag): + # Combinations of enum.Flag members (including empty) are also members. We generate these + # dynamically, because static allocation takes O(2^n) memory. LazyStrategy is used for the + # ease of force_repr. + # Add all named values, both flag bits (== list(elements)) and aliases. The aliases are + # necessary for full coverage for flags that would fail enum.NAMED_FLAGS check, and they + # are also nice values to shrink to. + flags = sorted( + set(elements.__members__.values()), + key=lambda v: (bit_count(v.value), v.value), + ) + # Finally, try to construct the empty state if it is not named. It's placed at the + # end so that we shrink to named values. + flags_with_empty = flags + if not flags or flags[0].value != 0: + try: + flags_with_empty = [*flags, elements(0)] + except TypeError: # pragma: no cover + # Happens on some python versions (at least 3.12) when there are no named values + pass + inner = [ + # Consider one or no named flags set, with shrink-to-named-flag behaviour. + # Special cases (length zero or one) are handled by the inner sampled_from. + sampled_from(flags_with_empty), + ] + if len(flags) > 1: + inner += [ + # Uniform distribution over number of named flags or combinations set. The overlap + # at r=1 is intentional, it may lead to oversampling but gives consistent shrinking + # behaviour. + integers(min_value=1, max_value=len(flags)) + .flatmap(lambda r: sets(sampled_from(flags), min_size=r, max_size=r)) + .map(lambda s: elements(reduce(operator.or_, s))), + ] + return LazyStrategy(one_of, args=inner, kwargs={}, force_repr=repr_) + if not values: + if ( + isinstance(elements, type) + and issubclass(elements, enum.Enum) + and vars(elements).get("__annotations__") + ): + # See https://github.com/HypothesisWorks/hypothesis/issues/2923 + raise InvalidArgument( + f"Cannot sample from {elements.__module__}.{elements.__name__} " + "because it contains no elements. It does however have annotations, " + "so maybe you tried to write an enum as if it was a dataclass?" + ) + raise InvalidArgument("Cannot sample from a length-zero sequence.") + if len(values) == 1: + return just(values[0]) + return SampledFromStrategy(values, repr_) + + +def identity(x): + return x + + +@cacheable +@defines_strategy() +def lists( + elements: SearchStrategy[Ex], + *, + min_size: int = 0, + max_size: Optional[int] = None, + unique_by: Union[ + None, + Callable[[Ex], Hashable], + Tuple[Callable[[Ex], Hashable], ...], + ] = None, + unique: bool = False, +) -> SearchStrategy[List[Ex]]: + """Returns a list containing values drawn from elements with length in the + interval [min_size, max_size] (no bounds in that direction if these are + None). If max_size is 0, only the empty list will be drawn. + + If ``unique`` is True (or something that evaluates to True), we compare direct + object equality, as if unique_by was ``lambda x: x``. This comparison only + works for hashable types. + + If ``unique_by`` is not None it must be a callable or tuple of callables + returning a hashable type when given a value drawn from elements. The + resulting list will satisfy the condition that for ``i`` != ``j``, + ``unique_by(result[i])`` != ``unique_by(result[j])``. + + If ``unique_by`` is a tuple of callables the uniqueness will be respective + to each callable. + + For example, the following will produce two columns of integers with both + columns being unique respectively. + + .. code-block:: pycon + + >>> twoints = st.tuples(st.integers(), st.integers()) + >>> st.lists(twoints, unique_by=(lambda x: x[0], lambda x: x[1])) + + Examples from this strategy shrink by trying to remove elements from the + list, and by shrinking each individual element of the list. + """ + check_valid_sizes(min_size, max_size) + check_strategy(elements, "elements") + if unique: + if unique_by is not None: + raise InvalidArgument( + "cannot specify both unique and unique_by " + "(you probably only want to set unique_by)" + ) + else: + unique_by = identity + + if max_size == 0: + return builds(list) + if unique_by is not None: + if not (callable(unique_by) or isinstance(unique_by, tuple)): + raise InvalidArgument( + f"{unique_by=} is not a callable or tuple of callables" + ) + if callable(unique_by): + unique_by = (unique_by,) + if len(unique_by) == 0: + raise InvalidArgument("unique_by is empty") + for i, f in enumerate(unique_by): + if not callable(f): + raise InvalidArgument(f"unique_by[{i}]={f!r} is not a callable") + # Note that lazy strategies automatically unwrap when passed to a defines_strategy + # function. + tuple_suffixes = None + if ( + # We're generating a list of tuples unique by the first element, perhaps + # via st.dictionaries(), and this will be more efficient if we rearrange + # our strategy somewhat to draw the first element then draw add the rest. + isinstance(elements, TupleStrategy) + and len(elements.element_strategies) >= 1 + and len(unique_by) == 1 + and ( + # Introspection for either `itemgetter(0)`, or `lambda x: x[0]` + isinstance(unique_by[0], operator.itemgetter) + and repr(unique_by[0]) == "operator.itemgetter(0)" + or isinstance(unique_by[0], FunctionType) + and re.fullmatch( + get_pretty_function_description(unique_by[0]), + r"lambda ([a-z]+): \1\[0\]", + ) + ) + ): + unique_by = (identity,) + tuple_suffixes = TupleStrategy(elements.element_strategies[1:]) + elements = elements.element_strategies[0] + + # UniqueSampledListStrategy offers a substantial performance improvement for + # unique arrays with few possible elements, e.g. of eight-bit integer types. + if ( + isinstance(elements, IntegersStrategy) + and None not in (elements.start, elements.end) + and (elements.end - elements.start) <= 255 + ): + elements = SampledFromStrategy( + sorted(range(elements.start, elements.end + 1), key=abs) + if elements.end < 0 or elements.start > 0 + else list(range(elements.end + 1)) + + list(range(-1, elements.start - 1, -1)) + ) + + if isinstance(elements, SampledFromStrategy): + element_count = len(elements.elements) + if min_size > element_count: + raise InvalidArgument( + f"Cannot create a collection of {min_size=} unique " + f"elements with values drawn from only {element_count} distinct " + "elements" + ) + + if max_size is not None: + max_size = min(max_size, element_count) + else: + max_size = element_count + + return UniqueSampledListStrategy( + elements=elements, + max_size=max_size, + min_size=min_size, + keys=unique_by, + tuple_suffixes=tuple_suffixes, + ) + + return UniqueListStrategy( + elements=elements, + max_size=max_size, + min_size=min_size, + keys=unique_by, + tuple_suffixes=tuple_suffixes, + ) + return ListStrategy(elements, min_size=min_size, max_size=max_size) + + +@cacheable +@defines_strategy() +def sets( + elements: SearchStrategy[Ex], + *, + min_size: int = 0, + max_size: Optional[int] = None, +) -> SearchStrategy[Set[Ex]]: + """This has the same behaviour as lists, but returns sets instead. + + Note that Hypothesis cannot tell if values are drawn from elements + are hashable until running the test, so you can define a strategy + for sets of an unhashable type but it will fail at test time. + + Examples from this strategy shrink by trying to remove elements from the + set, and by shrinking each individual element of the set. + """ + return lists( + elements=elements, min_size=min_size, max_size=max_size, unique=True + ).map(set) + + +@cacheable +@defines_strategy() +def frozensets( + elements: SearchStrategy[Ex], + *, + min_size: int = 0, + max_size: Optional[int] = None, +) -> SearchStrategy[FrozenSet[Ex]]: + """This is identical to the sets function but instead returns + frozensets.""" + return lists( + elements=elements, min_size=min_size, max_size=max_size, unique=True + ).map(frozenset) + + +class PrettyIter: + def __init__(self, values): + self._values = values + self._iter = iter(self._values) + + def __iter__(self): + return self._iter + + def __next__(self): + return next(self._iter) + + def __repr__(self): + return f"iter({self._values!r})" + + +@defines_strategy() +def iterables( + elements: SearchStrategy[Ex], + *, + min_size: int = 0, + max_size: Optional[int] = None, + unique_by: Union[ + None, + Callable[[Ex], Hashable], + Tuple[Callable[[Ex], Hashable], ...], + ] = None, + unique: bool = False, +) -> SearchStrategy[Iterable[Ex]]: + """This has the same behaviour as lists, but returns iterables instead. + + Some iterables cannot be indexed (e.g. sets) and some do not have a + fixed length (e.g. generators). This strategy produces iterators, + which cannot be indexed and do not have a fixed length. This ensures + that you do not accidentally depend on sequence behaviour. + """ + return lists( + elements=elements, + min_size=min_size, + max_size=max_size, + unique_by=unique_by, + unique=unique, + ).map(PrettyIter) + + +@defines_strategy() +def fixed_dictionaries( + mapping: Dict[T, SearchStrategy[Ex]], + *, + optional: Optional[Dict[T, SearchStrategy[Ex]]] = None, +) -> SearchStrategy[Dict[T, Ex]]: + """Generates a dictionary of the same type as mapping with a fixed set of + keys mapping to strategies. ``mapping`` must be a dict subclass. + + Generated values have all keys present in mapping, in iteration order, + with the corresponding values drawn from mapping[key]. + + If ``optional`` is passed, the generated value *may or may not* contain each + key from ``optional`` and a value drawn from the corresponding strategy. + Generated values may contain optional keys in an arbitrary order. + + Examples from this strategy shrink by shrinking each individual value in + the generated dictionary, and omitting optional key-value pairs. + """ + check_type(dict, mapping, "mapping") + for k, v in mapping.items(): + check_strategy(v, f"mapping[{k!r}]") + if optional is not None: + check_type(dict, optional, "optional") + for k, v in optional.items(): + check_strategy(v, f"optional[{k!r}]") + if type(mapping) != type(optional): + raise InvalidArgument( + "Got arguments of different types: mapping=%s, optional=%s" + % (nicerepr(type(mapping)), nicerepr(type(optional))) + ) + if set(mapping) & set(optional): + raise InvalidArgument( + "The following keys were in both mapping and optional, " + f"which is invalid: {set(mapping) & set(optional)!r}" + ) + return FixedAndOptionalKeysDictStrategy(mapping, optional) + return FixedKeysDictStrategy(mapping) + + +@cacheable +@defines_strategy() +def dictionaries( + keys: SearchStrategy[Ex], + values: SearchStrategy[T], + *, + dict_class: type = dict, + min_size: int = 0, + max_size: Optional[int] = None, +) -> SearchStrategy[Dict[Ex, T]]: + # Describing the exact dict_class to Mypy drops the key and value types, + # so we report Dict[K, V] instead of Mapping[Any, Any] for now. Sorry! + """Generates dictionaries of type ``dict_class`` with keys drawn from the ``keys`` + argument and values drawn from the ``values`` argument. + + The size parameters have the same interpretation as for + :func:`~hypothesis.strategies.lists`. + + Examples from this strategy shrink by trying to remove keys from the + generated dictionary, and by shrinking each generated key and value. + """ + check_valid_sizes(min_size, max_size) + if max_size == 0: + return fixed_dictionaries(dict_class()) + check_strategy(keys, "keys") + check_strategy(values, "values") + + return lists( + tuples(keys, values), + min_size=min_size, + max_size=max_size, + unique_by=operator.itemgetter(0), + ).map(dict_class) + + +# See https://en.wikipedia.org/wiki/Unicode_character_property#General_Category +CategoryName: "TypeAlias" = Literal[ + "L", # Letter + "Lu", # Letter, uppercase + "Ll", # Letter, lowercase + "Lt", # Letter, titlecase + "Lm", # Letter, modifier + "Lo", # Letter, other + "M", # Mark + "Mn", # Mark, nonspacing + "Mc", # Mark, spacing combining + "Me", # Mark, enclosing + "N", # Number + "Nd", # Number, decimal digit + "Nl", # Number, letter + "No", # Number, other + "P", # Punctuation + "Pc", # Punctuation, connector + "Pd", # Punctuation, dash + "Ps", # Punctuation, open + "Pe", # Punctuation, close + "Pi", # Punctuation, initial quote + "Pf", # Punctuation, final quote + "Po", # Punctuation, other + "S", # Symbol + "Sm", # Symbol, math + "Sc", # Symbol, currency + "Sk", # Symbol, modifier + "So", # Symbol, other + "Z", # Separator + "Zs", # Separator, space + "Zl", # Separator, line + "Zp", # Separator, paragraph + "C", # Other + "Cc", # Other, control + "Cf", # Other, format + "Cs", # Other, surrogate + "Co", # Other, private use + "Cn", # Other, not assigned +] + + +@cacheable +@defines_strategy(force_reusable_values=True) +def characters( + *, + codec: Optional[str] = None, + min_codepoint: Optional[int] = None, + max_codepoint: Optional[int] = None, + categories: Optional[Collection[CategoryName]] = None, + exclude_categories: Optional[Collection[CategoryName]] = None, + exclude_characters: Optional[Collection[str]] = None, + include_characters: Optional[Collection[str]] = None, + # Note: these arguments are deprecated aliases for backwards compatibility + blacklist_categories: Optional[Collection[CategoryName]] = None, + whitelist_categories: Optional[Collection[CategoryName]] = None, + blacklist_characters: Optional[Collection[str]] = None, + whitelist_characters: Optional[Collection[str]] = None, +) -> SearchStrategy[str]: + r"""Generates characters, length-one :class:`python:str`\ ings, + following specified filtering rules. + + - When no filtering rules are specified, any character can be produced. + - If ``min_codepoint`` or ``max_codepoint`` is specified, then only + characters having a codepoint in that range will be produced. + - If ``categories`` is specified, then only characters from those + Unicode categories will be produced. This is a further restriction, + characters must also satisfy ``min_codepoint`` and ``max_codepoint``. + - If ``exclude_categories`` is specified, then any character from those + categories will not be produced. You must not pass both ``categories`` + and ``exclude_categories``; these arguments are alternative ways to + specify exactly the same thing. + - If ``include_characters`` is specified, then any additional characters + in that list will also be produced. + - If ``exclude_characters`` is specified, then any characters in + that list will be not be produced. Any overlap between + ``include_characters`` and ``exclude_characters`` will raise an + exception. + - If ``codec`` is specified, only characters in the specified `codec encodings`_ + will be produced. + + The ``_codepoint`` arguments must be integers between zero and + :obj:`python:sys.maxunicode`. The ``_characters`` arguments must be + collections of length-one unicode strings, such as a unicode string. + + The ``_categories`` arguments must be used to specify either the + one-letter Unicode major category or the two-letter Unicode + `general category`_. For example, ``('Nd', 'Lu')`` signifies "Number, + decimal digit" and "Letter, uppercase". A single letter ('major category') + can be given to match all corresponding categories, for example ``'P'`` + for characters in any punctuation category. + + We allow codecs from the :mod:`codecs` module and their aliases, platform + specific and user-registered codecs if they are available, and + `python-specific text encodings`_ (but not text or binary transforms). + ``include_characters`` which cannot be encoded using this codec will + raise an exception. If non-encodable codepoints or categories are + explicitly allowed, the ``codec`` argument will exclude them without + raising an exception. + + .. _general category: https://wikipedia.org/wiki/Unicode_character_property + .. _codec encodings: https://docs.python.org/3/library/codecs.html#encodings-and-unicode + .. _python-specific text encodings: https://docs.python.org/3/library/codecs.html#python-specific-encodings + + Examples from this strategy shrink towards the codepoint for ``'0'``, + or the first allowable codepoint after it if ``'0'`` is excluded. + """ + check_valid_size(min_codepoint, "min_codepoint") + check_valid_size(max_codepoint, "max_codepoint") + check_valid_interval(min_codepoint, max_codepoint, "min_codepoint", "max_codepoint") + + if categories is not None and exclude_categories is not None: + raise InvalidArgument( + f"Pass at most one of {categories=} and {exclude_categories=} - " + "these arguments both specify which categories are allowed, so it " + "doesn't make sense to use both in a single call." + ) + + # Handle deprecation of whitelist/blacklist arguments + has_old_arg = any(v is not None for k, v in locals().items() if "list" in k) + has_new_arg = any(v is not None for k, v in locals().items() if "lude" in k) + if has_old_arg and has_new_arg: + raise InvalidArgument( + "The deprecated blacklist/whitelist arguments cannot be used in " + "the same call as their replacement include/exclude arguments." + ) + if blacklist_categories is not None: + exclude_categories = blacklist_categories + if whitelist_categories is not None: + categories = whitelist_categories + if blacklist_characters is not None: + exclude_characters = blacklist_characters + if whitelist_characters is not None: + include_characters = whitelist_characters + + if ( + min_codepoint is None + and max_codepoint is None + and categories is None + and exclude_categories is None + and include_characters is not None + and codec is None + ): + raise InvalidArgument( + "Nothing is excluded by other arguments, so passing only " + f"{include_characters=} would have no effect. " + "Also pass categories=(), or use " + f"sampled_from({include_characters!r}) instead." + ) + exclude_characters = exclude_characters or "" + include_characters = include_characters or "" + overlap = set(exclude_characters).intersection(include_characters) + if overlap: + raise InvalidArgument( + f"Characters {sorted(overlap)!r} are present in both " + f"{include_characters=} and {exclude_characters=}" + ) + categories = as_general_categories(categories, "categories") + exclude_categories = as_general_categories(exclude_categories, "exclude_categories") + if categories is not None and not categories and not include_characters: + raise InvalidArgument( + "When `categories` is an empty collection and there are " + "no characters specified in include_characters, nothing can " + "be generated by the characters() strategy." + ) + both_cats = set(exclude_categories or ()).intersection(categories or ()) + if both_cats: + # Note: we check that exactly one of `categories` or `exclude_categories` is + # passed above, but retain this older check for the deprecated arguments. + raise InvalidArgument( + f"Categories {sorted(both_cats)!r} are present in both " + f"{categories=} and {exclude_categories=}" + ) + elif exclude_categories is not None: + categories = set(all_categories()) - set(exclude_categories) + del exclude_categories + + if codec is not None: + try: + codec = codecs.lookup(codec).name + # Check this is not a str-to-str or bytes-to-bytes codec; see + # https://docs.python.org/3/library/codecs.html#binary-transforms + "".encode(codec) + except LookupError: + raise InvalidArgument(f"{codec=} is not valid on this system") from None + except Exception: + raise InvalidArgument(f"{codec=} is not a valid codec") from None + + for char in include_characters: + try: + char.encode(encoding=codec, errors="strict") + except UnicodeEncodeError: + raise InvalidArgument( + f"Character {char!r} in {include_characters=} " + f"cannot be encoded with {codec=}" + ) from None + + # ascii and utf-8 are sufficient common that we have faster special handling + if codec == "ascii": + if (max_codepoint is None) or (max_codepoint > 127): + max_codepoint = 127 + codec = None + elif codec == "utf-8": + if categories is None: + categories = all_categories() + categories = tuple(c for c in categories if c != "Cs") + + return OneCharStringStrategy.from_characters_args( + categories=categories, + exclude_characters=exclude_characters, + min_codepoint=min_codepoint, + max_codepoint=max_codepoint, + include_characters=include_characters, + codec=codec, + ) + + +# Hide the deprecated aliases from documentation and casual inspection +characters.__signature__ = (__sig := get_signature(characters)).replace( # type: ignore + parameters=[p for p in __sig.parameters.values() if "list" not in p.name] +) + + +# Cache size is limited by sys.maxunicode, but passing None makes it slightly faster. +@lru_cache(maxsize=None) +def _check_is_single_character(c): + # In order to mitigate the performance cost of this check, we use a shared cache, + # even at the cost of showing the culprit strategy in the error message. + if not isinstance(c, str): + type_ = get_pretty_function_description(type(c)) + raise InvalidArgument(f"Got non-string {c!r} (type {type_})") + if len(c) != 1: + raise InvalidArgument(f"Got {c!r} (length {len(c)} != 1)") + return c + + +@cacheable +@defines_strategy(force_reusable_values=True) +def text( + alphabet: Union[Collection[str], SearchStrategy[str]] = characters(codec="utf-8"), + *, + min_size: int = 0, + max_size: Optional[int] = None, +) -> SearchStrategy[str]: + """Generates strings with characters drawn from ``alphabet``, which should + be a collection of length one strings or a strategy generating such strings. + + The default alphabet strategy can generate the full unicode range but + excludes surrogate characters because they are invalid in the UTF-8 + encoding. You can use :func:`~hypothesis.strategies.characters` without + arguments to find surrogate-related bugs such as :bpo:`34454`. + + ``min_size`` and ``max_size`` have the usual interpretations. + Note that Python measures string length by counting codepoints: U+00C5 + ``Å`` is a single character, while U+0041 U+030A ``Å`` is two - the ``A``, + and a combining ring above. + + Examples from this strategy shrink towards shorter strings, and with the + characters in the text shrinking as per the alphabet strategy. + This strategy does not :func:`~python:unicodedata.normalize` examples, + so generated strings may be in any or none of the 'normal forms'. + """ + check_valid_sizes(min_size, max_size) + if isinstance(alphabet, SearchStrategy): + char_strategy = unwrap_strategies(alphabet) + if isinstance(char_strategy, SampledFromStrategy): + # Check this via the up-front validation logic below, and incidentally + # convert into a `characters()` strategy for standard text shrinking. + return text(char_strategy.elements, min_size=min_size, max_size=max_size) + elif not isinstance(char_strategy, OneCharStringStrategy): + char_strategy = char_strategy.map(_check_is_single_character) + else: + non_string = [c for c in alphabet if not isinstance(c, str)] + if non_string: + raise InvalidArgument( + "The following elements in alphabet are not unicode " + f"strings: {non_string!r}" + ) + not_one_char = [c for c in alphabet if len(c) != 1] + if not_one_char: + raise InvalidArgument( + "The following elements in alphabet are not of length one, " + f"which leads to violation of size constraints: {not_one_char!r}" + ) + char_strategy = ( + characters(categories=(), include_characters=alphabet) + if alphabet + else nothing() + ) + if (max_size == 0 or char_strategy.is_empty) and not min_size: + return just("") + return TextStrategy(char_strategy, min_size=min_size, max_size=max_size) + + +@overload +def from_regex( + regex: Union[bytes, Pattern[bytes]], + *, + fullmatch: bool = False, +) -> SearchStrategy[bytes]: # pragma: no cover + ... + + +@overload +def from_regex( + regex: Union[str, Pattern[str]], + *, + fullmatch: bool = False, + alphabet: Union[str, SearchStrategy[str]] = characters(codec="utf-8"), +) -> SearchStrategy[str]: # pragma: no cover + ... + + +@cacheable +@defines_strategy() +def from_regex( + regex: Union[AnyStr, Pattern[AnyStr]], + *, + fullmatch: bool = False, + alphabet: Union[str, SearchStrategy[str], None] = None, +) -> SearchStrategy[AnyStr]: + r"""Generates strings that contain a match for the given regex (i.e. ones + for which :func:`python:re.search` will return a non-None result). + + ``regex`` may be a pattern or :func:`compiled regex `. + Both byte-strings and unicode strings are supported, and will generate + examples of the same type. + + You can use regex flags such as :obj:`python:re.IGNORECASE` or + :obj:`python:re.DOTALL` to control generation. Flags can be passed either + in compiled regex or inside the pattern with a ``(?iLmsux)`` group. + + Some regular expressions are only partly supported - the underlying + strategy checks local matching and relies on filtering to resolve + context-dependent expressions. Using too many of these constructs may + cause health-check errors as too many examples are filtered out. This + mainly includes (positive or negative) lookahead and lookbehind groups. + + If you want the generated string to match the whole regex you should use + boundary markers. So e.g. ``r"\A.\Z"`` will return a single character + string, while ``"."`` will return any string, and ``r"\A.$"`` will return + a single character optionally followed by a ``"\n"``. + Alternatively, passing ``fullmatch=True`` will ensure that the whole + string is a match, as if you had used the ``\A`` and ``\Z`` markers. + + The ``alphabet=`` argument constrains the characters in the generated + string, as for :func:`text`, and is only supported for unicode strings. + + Examples from this strategy shrink towards shorter strings and lower + character values, with exact behaviour that may depend on the pattern. + """ + check_type((str, bytes, re.Pattern), regex, "regex") + check_type(bool, fullmatch, "fullmatch") + pattern = regex.pattern if isinstance(regex, re.Pattern) else regex + if alphabet is not None: + check_type((str, SearchStrategy), alphabet, "alphabet") + if not isinstance(pattern, str): + raise InvalidArgument("alphabet= is not supported for bytestrings") + + if isinstance(alphabet, str): + alphabet = characters(categories=(), include_characters=alphabet) + char_strategy = unwrap_strategies(alphabet) + if isinstance(char_strategy, SampledFromStrategy): + alphabet = characters( + categories=(), + include_characters=alphabet.elements, # type: ignore + ) + elif not isinstance(char_strategy, OneCharStringStrategy): + raise InvalidArgument( + f"{alphabet=} must be a sampled_from() or characters() strategy" + ) + elif isinstance(pattern, str): + alphabet = characters(codec="utf-8") + + # TODO: We would like to move this to the top level, but pending some major + # refactoring it's hard to do without creating circular imports. + from hypothesis.strategies._internal.regex import regex_strategy + + return regex_strategy(regex, fullmatch, alphabet=alphabet) + + +@cacheable +@defines_strategy(force_reusable_values=True) +def binary( + *, + min_size: int = 0, + max_size: Optional[int] = None, +) -> SearchStrategy[bytes]: + """Generates :class:`python:bytes`. + + The generated :class:`python:bytes` will have a length of at least ``min_size`` + and at most ``max_size``. If ``max_size`` is None there is no upper limit. + + Examples from this strategy shrink towards smaller strings and lower byte + values. + """ + check_valid_sizes(min_size, max_size) + return BytesStrategy(min_size, max_size) + + +@cacheable +@defines_strategy() +def randoms( + *, + note_method_calls: bool = False, + use_true_random: bool = False, +) -> SearchStrategy[random.Random]: + """Generates instances of ``random.Random``. The generated Random instances + are of a special HypothesisRandom subclass. + + - If ``note_method_calls`` is set to ``True``, Hypothesis will print the + randomly drawn values in any falsifying test case. This can be helpful + for debugging the behaviour of randomized algorithms. + - If ``use_true_random`` is set to ``True`` then values will be drawn from + their usual distribution, otherwise they will actually be Hypothesis + generated values (and will be shrunk accordingly for any failing test + case). Setting ``use_true_random=False`` will tend to expose bugs that + would occur with very low probability when it is set to True, and this + flag should only be set to True when your code relies on the distribution + of values for correctness. + + For managing global state, see the :func:`~hypothesis.strategies.random_module` + strategy and :func:`~hypothesis.register_random` function. + """ + check_type(bool, note_method_calls, "note_method_calls") + check_type(bool, use_true_random, "use_true_random") + + from hypothesis.strategies._internal.random import RandomStrategy + + return RandomStrategy( + use_true_random=use_true_random, note_method_calls=note_method_calls + ) + + +class RandomModule(SearchStrategy): + def do_draw(self, data): + # It would be unsafe to do run this method more than once per test case, + # because cleanup() runs tasks in FIFO order (at time of writing!). + # Fortunately, the random_module() strategy wraps us in shared(), so + # it's cached for all but the first of any number of calls. + seed = data.draw(integers(0, 2**32 - 1)) + seed_all, restore_all = get_seeder_and_restorer(seed) + seed_all() + cleanup(restore_all) + return RandomSeeder(seed) + + +@cacheable +@defines_strategy() +def random_module() -> SearchStrategy[RandomSeeder]: + """Hypothesis always seeds global PRNGs before running a test, and restores the + previous state afterwards. + + If having a fixed seed would unacceptably weaken your tests, and you + cannot use a ``random.Random`` instance provided by + :func:`~hypothesis.strategies.randoms`, this strategy calls + :func:`python:random.seed` with an arbitrary integer and passes you + an opaque object whose repr displays the seed value for debugging. + If ``numpy.random`` is available, that state is also managed, as is anything + managed by :func:`hypothesis.register_random`. + + Examples from these strategy shrink to seeds closer to zero. + """ + return shared(RandomModule(), key="hypothesis.strategies.random_module()") + + +class BuildsStrategy(SearchStrategy): + def __init__(self, target, args, kwargs): + self.target = target + self.args = args + self.kwargs = kwargs + + def do_draw(self, data): + args = [data.draw(a) for a in self.args] + kwargs = {k: data.draw(v) for k, v in self.kwargs.items()} + try: + obj = self.target(*args, **kwargs) + except TypeError as err: + if ( + isinstance(self.target, type) + and issubclass(self.target, enum.Enum) + and not (self.args or self.kwargs) + ): + name = self.target.__module__ + "." + self.target.__qualname__ + raise InvalidArgument( + f"Calling {name} with no arguments raised an error - " + f"try using sampled_from({name}) instead of builds({name})" + ) from err + if not (self.args or self.kwargs): + from .types import is_a_new_type, is_generic_type + + if is_a_new_type(self.target) or is_generic_type(self.target): + raise InvalidArgument( + f"Calling {self.target!r} with no arguments raised an " + f"error - try using from_type({self.target!r}) instead " + f"of builds({self.target!r})" + ) from err + if getattr(self.target, "__no_type_check__", None) is True: + # Note: could use PEP-678 __notes__ here. Migrate over once we're + # using an `exceptiongroup` backport with support for that. + raise TypeError( + "This might be because the @no_type_check decorator prevented " + "Hypothesis from inferring a strategy for some required arguments." + ) from err + raise + + current_build_context().record_call(obj, self.target, args, kwargs) + return obj + + def validate(self): + tuples(*self.args).validate() + fixed_dictionaries(self.kwargs).validate() + + def __repr__(self): + bits = [get_pretty_function_description(self.target)] + bits.extend(map(repr, self.args)) + bits.extend(f"{k}={v!r}" for k, v in self.kwargs.items()) + return f"builds({', '.join(bits)})" + + +@cacheable +@defines_strategy() +def builds( + target: Callable[..., Ex], + /, + *args: SearchStrategy[Any], + **kwargs: Union[SearchStrategy[Any], EllipsisType], +) -> SearchStrategy[Ex]: + """Generates values by drawing from ``args`` and ``kwargs`` and passing + them to the callable (provided as the first positional argument) in the + appropriate argument position. + + e.g. ``builds(target, integers(), flag=booleans())`` would draw an + integer ``i`` and a boolean ``b`` and call ``target(i, flag=b)``. + + If the callable has type annotations, they will be used to infer a strategy + for required arguments that were not passed to builds. You can also tell + builds to infer a strategy for an optional argument by passing ``...`` + (:obj:`python:Ellipsis`) as a keyword argument to builds, instead of a strategy for + that argument to the callable. + + If the callable is a class defined with :pypi:`attrs`, missing required + arguments will be inferred from the attribute on a best-effort basis, + e.g. by checking :ref:`attrs standard validators `. + Dataclasses are handled natively by the inference from type hints. + + Examples from this strategy shrink by shrinking the argument values to + the callable. + """ + if not callable(target): + raise InvalidArgument( + "The first positional argument to builds() must be a callable " + "target to construct." + ) + + if ... in args: # type: ignore # we only annotated the allowed types + # Avoid an implementation nightmare juggling tuples and worse things + raise InvalidArgument( + "... was passed as a positional argument to " + "builds(), but is only allowed as a keyword arg" + ) + required = required_args(target, args, kwargs) + to_infer = {k for k, v in kwargs.items() if v is ...} + if required or to_infer: + if isinstance(target, type) and attr.has(target): + # Use our custom introspection for attrs classes + from hypothesis.strategies._internal.attrs import from_attrs + + return from_attrs(target, args, kwargs, required | to_infer) + # Otherwise, try using type hints + hints = get_type_hints(target) + if to_infer - set(hints): + badargs = ", ".join(sorted(to_infer - set(hints))) + raise InvalidArgument( + f"passed ... for {badargs}, but we cannot infer a strategy " + "because these arguments have no type annotation" + ) + infer_for = {k: v for k, v in hints.items() if k in (required | to_infer)} + if infer_for: + from hypothesis.strategies._internal.types import _global_type_lookup + + for kw, t in infer_for.items(): + if t in _global_type_lookup: + kwargs[kw] = from_type(t) + else: + # We defer resolution of these type annotations so that the obvious + # approach to registering recursive types just works. I.e., + # if we're inside `register_type_strategy(cls, builds(cls, ...))` + # and `...` contains recursion on `cls`. See + # https://github.com/HypothesisWorks/hypothesis/issues/3026 + kwargs[kw] = deferred(lambda t=t: from_type(t)) # type: ignore + return BuildsStrategy(target, args, kwargs) + + +@cacheable +@defines_strategy(never_lazy=True) +def from_type(thing: Type[Ex_Inv]) -> SearchStrategy[Ex_Inv]: + """Looks up the appropriate search strategy for the given type. + + ``from_type`` is used internally to fill in missing arguments to + :func:`~hypothesis.strategies.builds` and can be used interactively + to explore what strategies are available or to debug type resolution. + + You can use :func:`~hypothesis.strategies.register_type_strategy` to + handle your custom types, or to globally redefine certain strategies - + for example excluding NaN from floats, or use timezone-aware instead of + naive time and datetime strategies. + + The resolution logic may be changed in a future version, but currently + tries these five options: + + 1. If ``thing`` is in the default lookup mapping or user-registered lookup, + return the corresponding strategy. The default lookup covers all types + with Hypothesis strategies, including extras where possible. + 2. If ``thing`` is from the :mod:`python:typing` module, return the + corresponding strategy (special logic). + 3. If ``thing`` has one or more subtypes in the merged lookup, return + the union of the strategies for those types that are not subtypes of + other elements in the lookup. + 4. Finally, if ``thing`` has type annotations for all required arguments, + and is not an abstract class, it is resolved via + :func:`~hypothesis.strategies.builds`. + 5. Because :mod:`abstract types ` cannot be instantiated, + we treat abstract types as the union of their concrete subclasses. + Note that this lookup works via inheritance but not via + :obj:`~python:abc.ABCMeta.register`, so you may still need to use + :func:`~hypothesis.strategies.register_type_strategy`. + + There is a valuable recipe for leveraging ``from_type()`` to generate + "everything except" values from a specified type. I.e. + + .. code-block:: python + + def everything_except(excluded_types): + return ( + from_type(type) + .flatmap(from_type) + .filter(lambda x: not isinstance(x, excluded_types)) + ) + + For example, ``everything_except(int)`` returns a strategy that can + generate anything that ``from_type()`` can ever generate, except for + instances of :class:`python:int`, and excluding instances of types + added via :func:`~hypothesis.strategies.register_type_strategy`. + + This is useful when writing tests which check that invalid input is + rejected in a certain way. + """ + try: + with warnings.catch_warnings(): + warnings.simplefilter("error") + return _from_type(thing) + except Exception: + return _from_type_deferred(thing) + + +def _from_type_deferred(thing: Type[Ex]) -> SearchStrategy[Ex]: + # This tricky little dance is because we want to show the repr of the actual + # underlying strategy wherever possible, as a form of user education, but + # would prefer to fall back to the default "from_type(...)" repr instead of + # "deferred(...)" for recursive types or invalid arguments. + try: + thing_repr = nicerepr(thing) + if hasattr(thing, "__module__"): + module_prefix = f"{thing.__module__}." + if not thing_repr.startswith(module_prefix): + thing_repr = module_prefix + thing_repr + repr_ = f"from_type({thing_repr})" + except Exception: # pragma: no cover + repr_ = None + return LazyStrategy( + lambda thing: deferred(lambda: _from_type(thing)), + (thing,), + {}, + force_repr=repr_, + ) + + +_recurse_guard: ContextVar = ContextVar("recurse_guard") + + +def _from_type(thing: Type[Ex]) -> SearchStrategy[Ex]: + # TODO: We would like to move this to the top level, but pending some major + # refactoring it's hard to do without creating circular imports. + from hypothesis.strategies._internal import types + + def as_strategy(strat_or_callable, thing): + # User-provided strategies need some validation, and callables even more + # of it. We do this in three places, hence the helper function + if not isinstance(strat_or_callable, SearchStrategy): + assert callable(strat_or_callable) # Validated in register_type_strategy + strategy = strat_or_callable(thing) + else: + strategy = strat_or_callable + if strategy is NotImplemented: + return NotImplemented + if not isinstance(strategy, SearchStrategy): + raise ResolutionFailed( + f"Error: {thing} was registered for {nicerepr(strat_or_callable)}, " + f"but returned non-strategy {strategy!r}" + ) + if strategy.is_empty: + raise ResolutionFailed(f"Error: {thing!r} resolved to an empty strategy") + return strategy + + def from_type_guarded(thing): + """Returns the result of producer, or ... if recursion on thing is encountered""" + try: + recurse_guard = _recurse_guard.get() + except LookupError: + # We can't simply define the contextvar with default=[], as the + # default object would be shared across contexts + _recurse_guard.set(recurse_guard := []) + if thing in recurse_guard: + raise RewindRecursive(thing) + recurse_guard.append(thing) + try: + return _from_type(thing) + except RewindRecursive as rr: + if rr.target != thing: + raise + return ... # defer resolution + finally: + recurse_guard.pop() + + # Let registered extra modules handle their own recognized types first, before + # e.g. Unions are resolved + try: + known = thing in types._global_type_lookup + except TypeError: + # thing is not always hashable! + pass + else: + if not known: + for module, resolver in types._global_extra_lookup.items(): + if module in sys.modules: + strat = resolver(thing) + if strat is not None: + return strat + if not isinstance(thing, type): + if types.is_a_new_type(thing): + # Check if we have an explicitly registered strategy for this thing, + # resolve it so, and otherwise resolve as for the base type. + if thing in types._global_type_lookup: + strategy = as_strategy(types._global_type_lookup[thing], thing) + if strategy is not NotImplemented: + return strategy + return _from_type(thing.__supertype__) + # Unions are not instances of `type` - but we still want to resolve them! + if types.is_a_union(thing): + args = sorted(thing.__args__, key=types.type_sorting_key) + return one_of([_from_type(t) for t in args]) + # We also have a special case for TypeVars. + # They are represented as instances like `~T` when they come here. + # We need to work with their type instead. + if isinstance(thing, TypeVar) and type(thing) in types._global_type_lookup: + strategy = as_strategy(types._global_type_lookup[type(thing)], thing) + if strategy is not NotImplemented: + return strategy + if not types.is_a_type(thing): + if isinstance(thing, str): + # See https://github.com/HypothesisWorks/hypothesis/issues/3016 + raise InvalidArgument( + f"Got {thing!r} as a type annotation, but the forward-reference " + "could not be resolved from a string to a type. Consider using " + "`from __future__ import annotations` instead of forward-reference " + "strings." + ) + raise InvalidArgument(f"{thing=} must be a type") # pragma: no cover + if thing in types.NON_RUNTIME_TYPES: + # Some code like `st.from_type(TypeAlias)` does not make sense. + # Because there are types in python that do not exist in runtime. + raise InvalidArgument( + f"Could not resolve {thing!r} to a strategy, " + f"because there is no such thing as a runtime instance of {thing!r}" + ) + # Now that we know `thing` is a type, the first step is to check for an + # explicitly registered strategy. This is the best (and hopefully most + # common) way to resolve a type to a strategy. Note that the value in the + # lookup may be a strategy or a function from type -> strategy; and we + # convert empty results into an explicit error. + try: + if thing in types._global_type_lookup: + strategy = as_strategy(types._global_type_lookup[thing], thing) + if strategy is not NotImplemented: + return strategy + except TypeError: # pragma: no cover + # This is due to a bizarre divergence in behaviour under Python 3.9.0: + # typing.Callable[[], foo] has __args__ = (foo,) but collections.abc.Callable + # has __args__ = ([], foo); and as a result is non-hashable. + pass + if ( + hasattr(typing, "_TypedDictMeta") + and type(thing) is typing._TypedDictMeta + or hasattr(types.typing_extensions, "_TypedDictMeta") # type: ignore + and type(thing) is types.typing_extensions._TypedDictMeta # type: ignore + ): # pragma: no cover + # The __optional_keys__ attribute may or may not be present, but if there's no + # way to tell and we just have to assume that everything is required. + # See https://github.com/python/cpython/pull/17214 for details. + optional = set(getattr(thing, "__optional_keys__", ())) + anns = {} + for k, v in get_type_hints(thing).items(): + origin = get_origin(v) + if origin in types.RequiredTypes + types.NotRequiredTypes: + if origin in types.NotRequiredTypes: + optional.add(k) + else: + optional.discard(k) + try: + v = v.__args__[0] + except IndexError: + raise InvalidArgument( + f"`{k}: {v.__name__}` is not a valid type annotation" + ) from None + anns[k] = from_type_guarded(v) + if anns[k] is ...: + anns[k] = _from_type_deferred(v) + if ( + (not anns) + and thing.__annotations__ + and ".." in getattr(thing, "__qualname__", "") + ): + raise InvalidArgument("Failed to retrieve type annotations for local type") + return fixed_dictionaries( # type: ignore + mapping={k: v for k, v in anns.items() if k not in optional}, + optional={k: v for k, v in anns.items() if k in optional}, + ) + + # If there's no explicitly registered strategy, maybe a subtype of thing + # is registered - if so, we can resolve it to the subclass strategy. + # We'll start by checking if thing is from from the typing module, + # because there are several special cases that don't play well with + # subclass and instance checks. + if isinstance(thing, types.typing_root_type) or ( + sys.version_info[:2] >= (3, 9) + and isinstance(get_origin(thing), type) + and get_args(thing) + ): + return types.from_typing_type(thing) + # If it's not from the typing module, we get all registered types that are + # a subclass of `thing` and are not themselves a subtype of any other such + # type. For example, `Number -> integers() | floats()`, but bools() is + # not included because bool is a subclass of int as well as Number. + strategies = [ + s + for s in ( + as_strategy(v, thing) + for k, v in sorted(types._global_type_lookup.items(), key=repr) + if isinstance(k, type) + and issubclass(k, thing) + and sum(types.try_issubclass(k, typ) for typ in types._global_type_lookup) + == 1 + ) + if s is not NotImplemented + ] + if any(not s.is_empty for s in strategies): + return one_of(strategies) + # If we don't have a strategy registered for this type or any subtype, we + # may be able to fall back on type annotations. + if issubclass(thing, enum.Enum): + return sampled_from(thing) + # Finally, try to build an instance by calling the type object. Unlike builds(), + # this block *does* try to infer strategies for arguments with default values. + # That's because of the semantic different; builds() -> "call this with ..." + # so we only infer when *not* doing so would be an error; from_type() -> "give + # me arbitrary instances" so the greater variety is acceptable. + # And if it's *too* varied, express your opinions with register_type_strategy() + if not isabstract(thing): + # If we know that builds(thing) will fail, give a better error message + required = required_args(thing) + if required and not ( + required.issubset(get_type_hints(thing)) + or attr.has(thing) + or is_typed_named_tuple(thing) # weird enough that we have a specific check + ): + raise ResolutionFailed( + f"Could not resolve {thing!r} to a strategy; consider " + "using register_type_strategy" + ) + try: + hints = get_type_hints(thing) + params = get_signature(thing).parameters + except Exception: + params = {} # type: ignore + kwargs = {} + for k, p in params.items(): + if ( + k in hints + and k != "return" + and p.kind in (Parameter.POSITIONAL_OR_KEYWORD, Parameter.KEYWORD_ONLY) + ): + kwargs[k] = from_type_guarded(hints[k]) + if p.default is not Parameter.empty and kwargs[k] is not ...: + kwargs[k] = just(p.default) | kwargs[k] + if params and not kwargs and not issubclass(thing, BaseException): + from_type_repr = repr_call(from_type, (thing,), {}) + builds_repr = repr_call(builds, (thing,), {}) + warnings.warn( + f"{from_type_repr} resolved to {builds_repr}, because we could not " + "find any (non-varargs) arguments. Use st.register_type_strategy() " + "to resolve to a strategy which can generate more than one value, " + "or silence this warning.", + SmallSearchSpaceWarning, + stacklevel=2, + ) + return builds(thing, **kwargs) + # And if it's an abstract type, we'll resolve to a union of subclasses instead. + subclasses = thing.__subclasses__() + if not subclasses: + raise ResolutionFailed( + f"Could not resolve {thing!r} to a strategy, because it is an abstract " + "type without any subclasses. Consider using register_type_strategy" + ) + subclass_strategies = nothing() + for sc in subclasses: + try: + subclass_strategies |= _from_type(sc) + except Exception: + pass + if subclass_strategies.is_empty: + # We're unable to resolve subclasses now, but we might be able to later - + # so we'll just go back to the mixed distribution. + return sampled_from(subclasses).flatmap(_from_type) + return subclass_strategies + + +@cacheable +@defines_strategy(force_reusable_values=True) +def fractions( + min_value: Optional[Union[Real, str]] = None, + max_value: Optional[Union[Real, str]] = None, + *, + max_denominator: Optional[int] = None, +) -> SearchStrategy[Fraction]: + """Returns a strategy which generates Fractions. + + If ``min_value`` is not None then all generated values are no less than + ``min_value``. If ``max_value`` is not None then all generated values are no + greater than ``max_value``. ``min_value`` and ``max_value`` may be anything accepted + by the :class:`~fractions.Fraction` constructor. + + If ``max_denominator`` is not None then the denominator of any generated + values is no greater than ``max_denominator``. Note that ``max_denominator`` must + be None or a positive integer. + + Examples from this strategy shrink towards smaller denominators, then + closer to zero. + """ + min_value = try_convert(Fraction, min_value, "min_value") + max_value = try_convert(Fraction, max_value, "max_value") + # These assertions tell Mypy what happened in try_convert + assert min_value is None or isinstance(min_value, Fraction) + assert max_value is None or isinstance(max_value, Fraction) + + check_valid_interval(min_value, max_value, "min_value", "max_value") + check_valid_integer(max_denominator, "max_denominator") + + if max_denominator is not None: + if max_denominator < 1: + raise InvalidArgument(f"{max_denominator=} must be >= 1") + if min_value is not None and min_value.denominator > max_denominator: + raise InvalidArgument( + f"The {min_value=} has a denominator greater than the " + f"{max_denominator=}" + ) + if max_value is not None and max_value.denominator > max_denominator: + raise InvalidArgument( + f"The {max_value=} has a denominator greater than the " + f"{max_denominator=}" + ) + + if min_value is not None and min_value == max_value: + return just(min_value) + + def dm_func(denom): + """Take denom, construct numerator strategy, and build fraction.""" + # Four cases of algebra to get integer bounds and scale factor. + min_num, max_num = None, None + if max_value is None and min_value is None: + pass + elif min_value is None: + max_num = denom * max_value.numerator + denom *= max_value.denominator + elif max_value is None: + min_num = denom * min_value.numerator + denom *= min_value.denominator + else: + low = min_value.numerator * max_value.denominator + high = max_value.numerator * min_value.denominator + scale = min_value.denominator * max_value.denominator + # After calculating our integer bounds and scale factor, we remove + # the gcd to avoid drawing more bytes for the example than needed. + # Note that `div` can be at most equal to `scale`. + div = math.gcd(scale, math.gcd(low, high)) + min_num = denom * low // div + max_num = denom * high // div + denom *= scale // div + + return builds( + Fraction, integers(min_value=min_num, max_value=max_num), just(denom) + ) + + if max_denominator is None: + return integers(min_value=1).flatmap(dm_func) + + return ( + integers(1, max_denominator) + .flatmap(dm_func) + .map(lambda f: f.limit_denominator(max_denominator)) + ) + + +def _as_finite_decimal( + value: Union[Real, str, None], name: str, allow_infinity: Optional[bool] +) -> Optional[Decimal]: + """Convert decimal bounds to decimals, carefully.""" + assert name in ("min_value", "max_value") + if value is None: + return None + if not isinstance(value, Decimal): + with localcontext(Context()): # ensure that default traps are enabled + value = try_convert(Decimal, value, name) + assert isinstance(value, Decimal) + if value.is_finite(): + return value + if value.is_infinite() and (value < 0 if "min" in name else value > 0): + if allow_infinity or allow_infinity is None: + return None + raise InvalidArgument(f"{allow_infinity=}, but {name}={value!r}") + # This could be infinity, quiet NaN, or signalling NaN + raise InvalidArgument(f"Invalid {name}={value!r}") + + +@cacheable +@defines_strategy(force_reusable_values=True) +def decimals( + min_value: Optional[Union[Real, str]] = None, + max_value: Optional[Union[Real, str]] = None, + *, + allow_nan: Optional[bool] = None, + allow_infinity: Optional[bool] = None, + places: Optional[int] = None, +) -> SearchStrategy[Decimal]: + """Generates instances of :class:`python:decimal.Decimal`, which may be: + + - A finite rational number, between ``min_value`` and ``max_value``. + - Not a Number, if ``allow_nan`` is True. None means "allow NaN, unless + ``min_value`` and ``max_value`` are not None". + - Positive or negative infinity, if ``max_value`` and ``min_value`` + respectively are None, and ``allow_infinity`` is not False. None means + "allow infinity, unless excluded by the min and max values". + + Note that where floats have one ``NaN`` value, Decimals have four: signed, + and either *quiet* or *signalling*. See `the decimal module docs + `_ for + more information on special values. + + If ``places`` is not None, all finite values drawn from the strategy will + have that number of digits after the decimal place. + + Examples from this strategy do not have a well defined shrink order but + try to maximize human readability when shrinking. + """ + # Convert min_value and max_value to Decimal values, and validate args + check_valid_integer(places, "places") + if places is not None and places < 0: + raise InvalidArgument(f"{places=} may not be negative") + min_value = _as_finite_decimal(min_value, "min_value", allow_infinity) + max_value = _as_finite_decimal(max_value, "max_value", allow_infinity) + check_valid_interval(min_value, max_value, "min_value", "max_value") + if allow_infinity and (None not in (min_value, max_value)): + raise InvalidArgument("Cannot allow infinity between finite bounds") + # Set up a strategy for finite decimals. Note that both floating and + # fixed-point decimals require careful handling to remain isolated from + # any external precision context - in short, we always work out the + # required precision for lossless operation and use context methods. + if places is not None: + # Fixed-point decimals are basically integers with a scale factor + def ctx(val): + """Return a context in which this value is lossless.""" + precision = ceil(math.log10(abs(val) or 1)) + places + 1 + return Context(prec=max([precision, 1])) + + def int_to_decimal(val): + context = ctx(val) + return context.quantize(context.multiply(val, factor), factor) + + factor = Decimal(10) ** -places + min_num, max_num = None, None + if min_value is not None: + min_num = ceil(ctx(min_value).divide(min_value, factor)) + if max_value is not None: + max_num = floor(ctx(max_value).divide(max_value, factor)) + if min_num is not None and max_num is not None and min_num > max_num: + raise InvalidArgument( + f"There are no decimals with {places} places between " + f"{min_value=} and {max_value=}" + ) + strat = integers(min_num, max_num).map(int_to_decimal) + else: + # Otherwise, they're like fractions featuring a power of ten + def fraction_to_decimal(val): + precision = ( + ceil(math.log10(abs(val.numerator) or 1) + math.log10(val.denominator)) + + 1 + ) + return Context(prec=precision or 1).divide( + Decimal(val.numerator), val.denominator + ) + + strat = fractions(min_value, max_value).map(fraction_to_decimal) + # Compose with sampled_from for infinities and NaNs as appropriate + special: List[Decimal] = [] + if allow_nan or (allow_nan is None and (None in (min_value, max_value))): + special.extend(map(Decimal, ("NaN", "-NaN", "sNaN", "-sNaN"))) + if allow_infinity or (allow_infinity is None and max_value is None): + special.append(Decimal("Infinity")) + if allow_infinity or (allow_infinity is None and min_value is None): + special.append(Decimal("-Infinity")) + return strat | (sampled_from(special) if special else nothing()) + + +@defines_strategy(never_lazy=True) +def recursive( + base: SearchStrategy[Ex], + extend: Callable[[SearchStrategy[Any]], SearchStrategy[T]], + *, + max_leaves: int = 100, +) -> SearchStrategy[Union[T, Ex]]: + """base: A strategy to start from. + + extend: A function which takes a strategy and returns a new strategy. + + max_leaves: The maximum number of elements to be drawn from base on a given + run. + + This returns a strategy ``S`` such that ``S = extend(base | S)``. That is, + values may be drawn from base, or from any strategy reachable by mixing + applications of | and extend. + + An example may clarify: ``recursive(booleans(), lists)`` would return a + strategy that may return arbitrarily nested and mixed lists of booleans. + So e.g. ``False``, ``[True]``, ``[False, []]``, and ``[[[[True]]]]`` are + all valid values to be drawn from that strategy. + + Examples from this strategy shrink by trying to reduce the amount of + recursion and by shrinking according to the shrinking behaviour of base + and the result of extend. + + """ + + return RecursiveStrategy(base, extend, max_leaves) + + +class PermutationStrategy(SearchStrategy): + def __init__(self, values): + self.values = values + + def do_draw(self, data): + # Reversed Fisher-Yates shuffle: swap each element with itself or with + # a later element. This shrinks i==j for each element, i.e. to no + # change. We don't consider the last element as it's always a no-op. + result = list(self.values) + for i in range(len(result) - 1): + j = data.draw_integer(i, len(result) - 1) + result[i], result[j] = result[j], result[i] + return result + + +@defines_strategy() +def permutations(values: Sequence[T]) -> SearchStrategy[List[T]]: + """Return a strategy which returns permutations of the ordered collection + ``values``. + + Examples from this strategy shrink by trying to become closer to the + original order of values. + """ + values = check_sample(values, "permutations") + if not values: + return builds(list) + + return PermutationStrategy(values) + + +class CompositeStrategy(SearchStrategy): + def __init__(self, definition, args, kwargs): + self.definition = definition + self.args = args + self.kwargs = kwargs + + def do_draw(self, data): + return self.definition(data.draw, *self.args, **self.kwargs) + + def calc_label(self): + return calc_label_from_cls(self.definition) + + +class DrawFn(Protocol): + """This type only exists so that you can write type hints for functions + decorated with :func:`@composite `. + + .. code-block:: python + + @composite + def list_and_index(draw: DrawFn) -> Tuple[int, str]: + i = draw(integers()) # type inferred as 'int' + s = draw(text()) # type inferred as 'str' + return i, s + + """ + + def __init__(self): + raise TypeError("Protocols cannot be instantiated") # pragma: no cover + + # Protocol overrides our signature for __init__, + # so we override it right back to make the docs look nice. + __signature__: Signature = Signature(parameters=[]) + + # We define this as a callback protocol because a simple typing.Callable is + # insufficient to fully represent the interface, due to the optional `label` + # parameter. + def __call__(self, strategy: SearchStrategy[Ex], label: object = None) -> Ex: + raise NotImplementedError + + +def _composite(f): + # Wrapped below, using ParamSpec if available + if isinstance(f, (classmethod, staticmethod)): + special_method = type(f) + f = f.__func__ + else: + special_method = None + + sig = get_signature(f) + params = tuple(sig.parameters.values()) + + if not (params and "POSITIONAL" in params[0].kind.name): + raise InvalidArgument( + "Functions wrapped with composite must take at least one " + "positional argument." + ) + if params[0].default is not sig.empty: + raise InvalidArgument("A default value for initial argument will never be used") + if not is_first_param_referenced_in_function(f): + note_deprecation( + "There is no reason to use @st.composite on a function which " + "does not call the provided draw() function internally.", + since="2022-07-17", + has_codemod=False, + ) + if get_origin(sig.return_annotation) is SearchStrategy: + ret_repr = repr(sig.return_annotation).replace("hypothesis.strategies.", "st.") + warnings.warn( + f"Return-type annotation is `{ret_repr}`, but the decorated " + "function should return a value (not a strategy)", + HypothesisWarning, + stacklevel=3 if sys.version_info[:2] > (3, 9) else 5, # ugh + ) + if params[0].kind.name != "VAR_POSITIONAL": + params = params[1:] + newsig = sig.replace( + parameters=params, + return_annotation=( + SearchStrategy + if sig.return_annotation is sig.empty + else SearchStrategy[sig.return_annotation] + ), + ) + + @defines_strategy() + @define_function_signature(f.__name__, f.__doc__, newsig) + def accept(*args, **kwargs): + return CompositeStrategy(f, args, kwargs) + + accept.__module__ = f.__module__ + accept.__signature__ = newsig + if special_method is not None: + return special_method(accept) + return accept + + +if typing.TYPE_CHECKING or ParamSpec is not None: + P = ParamSpec("P") + + def composite( + f: Callable[Concatenate[DrawFn, P], Ex] + ) -> Callable[P, SearchStrategy[Ex]]: + """Defines a strategy that is built out of potentially arbitrarily many + other strategies. + + This is intended to be used as a decorator. See + :ref:`the full documentation for more details ` + about how to use this function. + + Examples from this strategy shrink by shrinking the output of each draw + call. + """ + return _composite(f) + +else: # pragma: no cover + + @cacheable + def composite(f: Callable[..., Ex]) -> Callable[..., SearchStrategy[Ex]]: + """Defines a strategy that is built out of potentially arbitrarily many + other strategies. + + This is intended to be used as a decorator. See + :ref:`the full documentation for more details ` + about how to use this function. + + Examples from this strategy shrink by shrinking the output of each draw + call. + """ + return _composite(f) + + +@defines_strategy(force_reusable_values=True) +@cacheable +def complex_numbers( + *, + min_magnitude: Real = 0, + max_magnitude: Optional[Real] = None, + allow_infinity: Optional[bool] = None, + allow_nan: Optional[bool] = None, + allow_subnormal: bool = True, + width: Literal[32, 64, 128] = 128, +) -> SearchStrategy[complex]: + """Returns a strategy that generates :class:`~python:complex` + numbers. + + This strategy draws complex numbers with constrained magnitudes. + The ``min_magnitude`` and ``max_magnitude`` parameters should be + non-negative :class:`~python:numbers.Real` numbers; a value + of ``None`` corresponds an infinite upper bound. + + If ``min_magnitude`` is nonzero or ``max_magnitude`` is finite, it + is an error to enable ``allow_nan``. If ``max_magnitude`` is finite, + it is an error to enable ``allow_infinity``. + + ``allow_infinity``, ``allow_nan``, and ``allow_subnormal`` are + applied to each part of the complex number separately, as for + :func:`~hypothesis.strategies.floats`. + + The magnitude constraints are respected up to a relative error + of (around) floating-point epsilon, due to implementation via + the system ``sqrt`` function. + + The ``width`` argument specifies the maximum number of bits of precision + required to represent the entire generated complex number. + Valid values are 32, 64 or 128, which correspond to the real and imaginary + components each having width 16, 32 or 64, respectively. + Passing ``width=64`` will still use the builtin 128-bit + :class:`~python:complex` class, but always for values which can be + exactly represented as two 32-bit floats. + + Examples from this strategy shrink by shrinking their real and + imaginary parts, as :func:`~hypothesis.strategies.floats`. + + If you need to generate complex numbers with particular real and + imaginary parts or relationships between parts, consider using + :func:`builds(complex, ...) ` or + :func:`@composite ` respectively. + """ + check_valid_magnitude(min_magnitude, "min_magnitude") + check_valid_magnitude(max_magnitude, "max_magnitude") + check_valid_interval(min_magnitude, max_magnitude, "min_magnitude", "max_magnitude") + if max_magnitude == math.inf: + max_magnitude = None + + if allow_infinity is None: + allow_infinity = bool(max_magnitude is None) + elif allow_infinity and max_magnitude is not None: + raise InvalidArgument(f"Cannot have {allow_infinity=} with {max_magnitude=}") + if allow_nan is None: + allow_nan = bool(min_magnitude == 0 and max_magnitude is None) + elif allow_nan and not (min_magnitude == 0 and max_magnitude is None): + raise InvalidArgument( + f"Cannot have {allow_nan=}, {min_magnitude=}, {max_magnitude=}" + ) + check_type(bool, allow_subnormal, "allow_subnormal") + if width not in (32, 64, 128): + raise InvalidArgument( + f"{width=}, but must be 32, 64 or 128 (other complex dtypes " + "such as complex192 or complex256 are not supported)" + # For numpy, these types would be supported (but not by CPython): + # https://numpy.org/doc/stable/reference/arrays.scalars.html#complex-floating-point-types + ) + component_width = width // 2 + allow_kw = { + "allow_nan": allow_nan, + "allow_infinity": allow_infinity, + # If we have a nonzero normal min_magnitude and draw a zero imaginary part, + # then allow_subnormal=True would be an error with the min_value to the floats() + # strategy for the real part. We therefore replace True with None. + "allow_subnormal": None if allow_subnormal else allow_subnormal, + "width": component_width, + } + + if min_magnitude == 0 and max_magnitude is None: + # In this simple but common case, there are no constraints on the + # magnitude and therefore no relationship between the real and + # imaginary parts. + return builds(complex, floats(**allow_kw), floats(**allow_kw)) # type: ignore + + @composite + def constrained_complex(draw): + # We downcast drawn floats to the desired (component) width so we + # guarantee the resulting complex values are representable. Note + # truncating the mantissa bits with float_of() cannot increase the + # magnitude of a float, so we are guaranteed to stay within the allowed + # range. See https://github.com/HypothesisWorks/hypothesis/issues/3573 + + # Draw the imaginary part, and determine the maximum real part given + # this and the max_magnitude + if max_magnitude is None: + zi = draw(floats(**allow_kw)) + rmax = None + else: + zi = draw( + floats( + -float_of(max_magnitude, component_width), + float_of(max_magnitude, component_width), + **allow_kw, + ) + ) + rmax = float_of(cathetus(max_magnitude, zi), component_width) + # Draw the real part from the allowed range given the imaginary part + if min_magnitude == 0 or math.fabs(zi) >= min_magnitude: + zr = draw(floats(None if rmax is None else -rmax, rmax, **allow_kw)) + else: + rmin = float_of(cathetus(min_magnitude, zi), component_width) + zr = draw(floats(rmin, rmax, **allow_kw)) + # Order of conditions carefully tuned so that for a given pair of + # magnitude arguments, we always either draw or do not draw the bool + # (crucial for good shrinking behaviour) but only invert when needed. + if min_magnitude > 0 and draw(booleans()) and math.fabs(zi) <= min_magnitude: + zr = -zr + return complex(zr, zi) + + return constrained_complex() + + +@defines_strategy(never_lazy=True) +def shared( + base: SearchStrategy[Ex], + *, + key: Optional[Hashable] = None, +) -> SearchStrategy[Ex]: + """Returns a strategy that draws a single shared value per run, drawn from + base. Any two shared instances with the same key will share the same value, + otherwise the identity of this strategy will be used. That is: + + >>> s = integers() # or any other strategy + >>> x = shared(s) + >>> y = shared(s) + + In the above x and y may draw different (or potentially the same) values. + In the following they will always draw the same: + + >>> x = shared(s, key="hi") + >>> y = shared(s, key="hi") + + Examples from this strategy shrink as per their base strategy. + """ + return SharedStrategy(base, key) + + +@composite +def _maybe_nil_uuids(draw, uuid): + # Equivalent to `random_uuids | just(...)`, with a stronger bias to the former. + if draw(data()).conjecture_data.draw_boolean(1 / 64): + return UUID("00000000-0000-0000-0000-000000000000") + return uuid + + +@cacheable +@defines_strategy(force_reusable_values=True) +def uuids( + *, version: Optional[Literal[1, 2, 3, 4, 5]] = None, allow_nil: bool = False +) -> SearchStrategy[UUID]: + """Returns a strategy that generates :class:`UUIDs `. + + If the optional version argument is given, value is passed through + to :class:`~python:uuid.UUID` and only UUIDs of that version will + be generated. + + If ``allow_nil`` is True, generate the nil UUID much more often. + Otherwise, all returned values from this will be unique, so e.g. if you do + ``lists(uuids())`` the resulting list will never contain duplicates. + + Examples from this strategy don't have any meaningful shrink order. + """ + check_type(bool, allow_nil, "allow_nil") + if version not in (None, 1, 2, 3, 4, 5): + raise InvalidArgument( + f"{version=}, but version must be in " + "(None, 1, 2, 3, 4, 5) to pass to the uuid.UUID constructor." + ) + random_uuids = shared( + randoms(use_true_random=True), key="hypothesis.strategies.uuids.generator" + ).map(lambda r: UUID(version=version, int=r.getrandbits(128))) + + if allow_nil: + if version is not None: + raise InvalidArgument("The nil UUID is not of any version") + return random_uuids.flatmap(_maybe_nil_uuids) + return random_uuids + + +class RunnerStrategy(SearchStrategy): + def __init__(self, default): + self.default = default + + def do_draw(self, data): + runner = getattr(data, "hypothesis_runner", not_set) + if runner is not_set: + if self.default is not_set: + raise InvalidArgument( + "Cannot use runner() strategy with no " + "associated runner or explicit default." + ) + else: + return self.default + else: + return runner + + +@defines_strategy(force_reusable_values=True) +def runner(*, default: Any = not_set) -> SearchStrategy[Any]: + """A strategy for getting "the current test runner", whatever that may be. + The exact meaning depends on the entry point, but it will usually be the + associated 'self' value for it. + + If you are using this in a rule for stateful testing, this strategy + will return the instance of the :class:`~hypothesis.stateful.RuleBasedStateMachine` + that the rule is running for. + + If there is no current test runner and a default is provided, return + that default. If no default is provided, raises InvalidArgument. + + Examples from this strategy do not shrink (because there is only one). + """ + return RunnerStrategy(default) + + +class DataObject: + """This type only exists so that you can write type hints for tests using + the :func:`~hypothesis.strategies.data` strategy. Do not use it directly! + """ + + # Note that "only exists" here really means "is only exported to users", + # but we want to treat it as "semi-stable", not document it as "public API". + + def __init__(self, data): + self.count = 0 + self.conjecture_data = data + + __signature__ = Signature() # hide internals from Sphinx introspection + + def __repr__(self): + return "data(...)" + + def draw(self, strategy: SearchStrategy[Ex], label: Any = None) -> Ex: + check_strategy(strategy, "strategy") + self.count += 1 + printer = RepresentationPrinter(context=current_build_context()) + desc = f"Draw {self.count}{'' if label is None else f' ({label})'}: " + with deprecate_random_in_strategy("{}from {!r}", desc, strategy): + result = self.conjecture_data.draw(strategy, observe_as=f"generate:{desc}") + if TESTCASE_CALLBACKS: + self.conjecture_data._observability_args[desc] = to_jsonable(result) + + printer.text(desc) + printer.pretty(result) + note(printer.getvalue()) + return result + + +class DataStrategy(SearchStrategy): + supports_find = False + + def do_draw(self, data): + if not hasattr(data, "hypothesis_shared_data_strategy"): + data.hypothesis_shared_data_strategy = DataObject(data) + return data.hypothesis_shared_data_strategy + + def __repr__(self): + return "data()" + + def map(self, f): + self.__not_a_first_class_strategy("map") + + def filter(self, f): + self.__not_a_first_class_strategy("filter") + + def flatmap(self, f): + self.__not_a_first_class_strategy("flatmap") + + def example(self): + self.__not_a_first_class_strategy("example") + + def __not_a_first_class_strategy(self, name): + raise InvalidArgument( + f"Cannot call {name} on a DataStrategy. You should probably " + "be using @composite for whatever it is you're trying to do." + ) + + +@cacheable +@defines_strategy(never_lazy=True) +def data() -> SearchStrategy[DataObject]: + """This isn't really a normal strategy, but instead gives you an object + which can be used to draw data interactively from other strategies. + + See :ref:`the rest of the documentation ` for more + complete information. + + Examples from this strategy do not shrink (because there is only one), + but the result of calls to each ``data.draw()`` call shrink as they normally would. + """ + return DataStrategy() + + +def register_type_strategy( + custom_type: Type[Ex], + strategy: Union[SearchStrategy[Ex], Callable[[Type[Ex]], SearchStrategy[Ex]]], +) -> None: + """Add an entry to the global type-to-strategy lookup. + + This lookup is used in :func:`~hypothesis.strategies.builds` and + :func:`@given `. + + :func:`~hypothesis.strategies.builds` will be used automatically for + classes with type annotations on ``__init__`` , so you only need to + register a strategy if one or more arguments need to be more tightly + defined than their type-based default, or if you want to supply a strategy + for an argument with a default value. + + ``strategy`` may be a search strategy, or a function that takes a type and + returns a strategy (useful for generic types). The function may return + :data:`NotImplemented` to conditionally not provide a strategy for the type + (the type will still be resolved by other methods, if possible, as if the + function was not registered). + + Note that you may not register a parametrised generic type (such as + ``MyCollection[int]``) directly, because the resolution logic does not + handle this case correctly. Instead, you may register a *function* for + ``MyCollection`` and `inspect the type parameters within that function + `__. + """ + # TODO: We would like to move this to the top level, but pending some major + # refactoring it's hard to do without creating circular imports. + from hypothesis.strategies._internal import types + + if not types.is_a_type(custom_type): + raise InvalidArgument(f"{custom_type=} must be a type") + if custom_type in types.NON_RUNTIME_TYPES: + raise InvalidArgument( + f"{custom_type=} is not allowed to be registered, " + f"because there is no such thing as a runtime instance of {custom_type!r}" + ) + if not (isinstance(strategy, SearchStrategy) or callable(strategy)): + raise InvalidArgument( + f"{strategy=} must be a SearchStrategy, or a function that takes " + "a generic type and returns a specific SearchStrategy" + ) + if isinstance(strategy, SearchStrategy): + with warnings.catch_warnings(): + warnings.simplefilter("error", HypothesisSideeffectWarning) + + # Calling is_empty forces materialization of lazy strategies. If this is done at import + # time, lazy strategies will warn about it; here, we force that warning to raise to + # avoid the materialization. Ideally, we'd just check if the strategy is lazy, but the + # lazy strategy may be wrapped underneath another strategy so that's complicated. + try: + if strategy.is_empty: + raise InvalidArgument(f"{strategy=} must not be empty") + except HypothesisSideeffectWarning: # pragma: no cover + pass + if types.has_type_arguments(custom_type): + raise InvalidArgument( + f"Cannot register generic type {custom_type!r}, because it has type " + "arguments which would not be handled. Instead, register a function " + f"for {get_origin(custom_type)!r} which can inspect specific type " + "objects and return a strategy." + ) + if ( + "pydantic.generics" in sys.modules + and issubclass(custom_type, sys.modules["pydantic.generics"].GenericModel) + and not re.search(r"[A-Za-z_]+\[.+\]", repr(custom_type)) + and callable(strategy) + ): # pragma: no cover + # See https://github.com/HypothesisWorks/hypothesis/issues/2940 + raise InvalidArgument( + f"Cannot register a function for {custom_type!r}, because parametrized " + "`pydantic.generics.GenericModel` subclasses aren't actually generic " + "types at runtime. In this case, you should register a strategy " + "directly for each parametrized form that you anticipate using." + ) + + types._global_type_lookup[custom_type] = strategy + from_type.__clear_cache() # type: ignore + + +@cacheable +@defines_strategy(never_lazy=True) +def deferred(definition: Callable[[], SearchStrategy[Ex]]) -> SearchStrategy[Ex]: + """A deferred strategy allows you to write a strategy that references other + strategies that have not yet been defined. This allows for the easy + definition of recursive and mutually recursive strategies. + + The definition argument should be a zero-argument function that returns a + strategy. It will be evaluated the first time the strategy is used to + produce an example. + + Example usage: + + >>> import hypothesis.strategies as st + >>> x = st.deferred(lambda: st.booleans() | st.tuples(x, x)) + >>> x.example() + (((False, (True, True)), (False, True)), (True, True)) + >>> x.example() + True + + Mutual recursion also works fine: + + >>> a = st.deferred(lambda: st.booleans() | b) + >>> b = st.deferred(lambda: st.tuples(a, a)) + >>> a.example() + True + >>> b.example() + (False, (False, ((False, True), False))) + + Examples from this strategy shrink as they normally would from the strategy + returned by the definition. + """ + return DeferredStrategy(definition) + + +def domains(): + import hypothesis.provisional + + return hypothesis.provisional.domains() + + +@defines_strategy(force_reusable_values=True) +def emails( + *, domains: SearchStrategy[str] = LazyStrategy(domains, (), {}) +) -> SearchStrategy[str]: + """A strategy for generating email addresses as unicode strings. The + address format is specified in :rfc:`5322#section-3.4.1`. Values shrink + towards shorter local-parts and host domains. + + If ``domains`` is given then it must be a strategy that generates domain + names for the emails, defaulting to :func:`~hypothesis.provisional.domains`. + + This strategy is useful for generating "user data" for tests, as + mishandling of email addresses is a common source of bugs. + """ + local_chars = string.ascii_letters + string.digits + "!#$%&'*+-/=^_`{|}~" + local_part = text(local_chars, min_size=1, max_size=64) + # TODO: include dot-atoms, quoted strings, escaped chars, etc in local part + return builds("{}@{}".format, local_part, domains).filter( + lambda addr: len(addr) <= 254 + ) + + +def _functions(*, like, returns, pure): + # Wrapped up to use ParamSpec below + check_type(bool, pure, "pure") + if not callable(like): + raise InvalidArgument( + "The first argument to functions() must be a callable to imitate, " + f"but got non-callable like={nicerepr(like)!r}" + ) + if returns in (None, ...): + # Passing `None` has never been *documented* as working, but it still + # did from May 2020 to Jan 2022 so we'll avoid breaking it without cause. + hints = get_type_hints(like) + returns = from_type(hints.get("return", type(None))) + check_strategy(returns, "returns") + return FunctionStrategy(like, returns, pure) + + +if typing.TYPE_CHECKING or ParamSpec is not None: + + @overload + def functions( + *, pure: bool = ... + ) -> SearchStrategy[Callable[[], None]]: # pragma: no cover + ... + + @overload + def functions( + *, + like: Callable[P, T], + pure: bool = ..., + ) -> SearchStrategy[Callable[P, T]]: # pragma: no cover + ... + + @overload + def functions( + *, + returns: SearchStrategy[T], + pure: bool = ..., + ) -> SearchStrategy[Callable[[], T]]: # pragma: no cover + ... + + @overload + def functions( + *, + like: Callable[P, Any], + returns: SearchStrategy[T], + pure: bool = ..., + ) -> SearchStrategy[Callable[P, T]]: # pragma: no cover + ... + + @defines_strategy() + def functions(*, like=lambda: None, returns=..., pure=False): + # We shouldn't need overloads here, but mypy disallows default args for + # generics: https://github.com/python/mypy/issues/3737 + """functions(*, like=lambda: None, returns=..., pure=False) + + A strategy for functions, which can be used in callbacks. + + The generated functions will mimic the interface of ``like``, which must + be a callable (including a class, method, or function). The return value + for the function is drawn from the ``returns`` argument, which must be a + strategy. If ``returns`` is not passed, we attempt to infer a strategy + from the return-type annotation if present, falling back to :func:`~none`. + + If ``pure=True``, all arguments passed to the generated function must be + hashable, and if passed identical arguments the original return value will + be returned again - *not* regenerated, so beware mutable values. + + If ``pure=False``, generated functions do not validate their arguments, and + may return a different value if called again with the same arguments. + + Generated functions can only be called within the scope of the ``@given`` + which created them. This strategy does not support ``.example()``. + """ + return _functions(like=like, returns=returns, pure=pure) + +else: # pragma: no cover + + @defines_strategy() + def functions( + *, + like: Callable[..., Any] = lambda: None, + returns: Union[SearchStrategy[Any], EllipsisType] = ..., + pure: bool = False, + ) -> SearchStrategy[Callable[..., Any]]: + """functions(*, like=lambda: None, returns=..., pure=False) + + A strategy for functions, which can be used in callbacks. + + The generated functions will mimic the interface of ``like``, which must + be a callable (including a class, method, or function). The return value + for the function is drawn from the ``returns`` argument, which must be a + strategy. If ``returns`` is not passed, we attempt to infer a strategy + from the return-type annotation if present, falling back to :func:`~none`. + + If ``pure=True``, all arguments passed to the generated function must be + hashable, and if passed identical arguments the original return value will + be returned again - *not* regenerated, so beware mutable values. + + If ``pure=False``, generated functions do not validate their arguments, and + may return a different value if called again with the same arguments. + + Generated functions can only be called within the scope of the ``@given`` + which created them. This strategy does not support ``.example()``. + """ + return _functions(like=like, returns=returns, pure=pure) + + +@composite +def slices(draw: Any, size: int) -> slice: + """Generates slices that will select indices up to the supplied size + + Generated slices will have start and stop indices that range from -size to size - 1 + and will step in the appropriate direction. Slices should only produce an empty selection + if the start and end are the same. + + Examples from this strategy shrink toward 0 and smaller values + """ + check_valid_size(size, "size") + if size == 0: + step = draw(none() | integers().filter(bool)) + return slice(None, None, step) + # For slices start is inclusive and stop is exclusive + start = draw(integers(0, size - 1) | none()) + stop = draw(integers(0, size) | none()) + + # Limit step size to be reasonable + if start is None and stop is None: + max_step = size + elif start is None: + max_step = stop + elif stop is None: + max_step = start + else: + max_step = abs(start - stop) + + step = draw(integers(1, max_step or 1)) + + if (draw(booleans()) and start == stop) or (stop or 0) < (start or 0): + step *= -1 + + if draw(booleans()) and start is not None: + start -= size + if draw(booleans()) and stop is not None: + stop -= size + if (not draw(booleans())) and step == 1: + step = None + + return slice(start, stop, step) diff --git a/shared/package-files/ec/ec3f284b7e607a72da2dd48f7e08777e859740cb1ad9b52c42707958a7ca3c00/blob b/shared/package-files/ec/ec3f284b7e607a72da2dd48f7e08777e859740cb1ad9b52c42707958a7ca3c00/blob new file mode 100644 index 0000000000000000000000000000000000000000..87935625f9bfb543d1cdc7f2b59f11e8d4a709e7 --- /dev/null +++ b/shared/package-files/ec/ec3f284b7e607a72da2dd48f7e08777e859740cb1ad9b52c42707958a7ca3c00/blob @@ -0,0 +1,18 @@ +set(MKLDNN_USE_NATIVE_ARCH ${USE_NATIVE_ARCH}) + +if(CPU_AARCH64) + include(${CMAKE_CURRENT_LIST_DIR}/ComputeLibrary.cmake) +endif() + +find_package(MKLDNN QUIET) + +if(NOT TARGET caffe2::mkldnn) + add_library(caffe2::mkldnn INTERFACE IMPORTED) +endif() + +set_property( + TARGET caffe2::mkldnn PROPERTY INTERFACE_INCLUDE_DIRECTORIES + ${MKLDNN_INCLUDE_DIR}) +set_property( + TARGET caffe2::mkldnn PROPERTY INTERFACE_LINK_LIBRARIES + ${MKLDNN_LIBRARIES}) diff --git a/shared/package-files/ec/ec43f2a04ff0c99fb5e2c03d4e8ee3d832ad41a09b06f926242d5df8b8ed72f6/blob b/shared/package-files/ec/ec43f2a04ff0c99fb5e2c03d4e8ee3d832ad41a09b06f926242d5df8b8ed72f6/blob new file mode 100644 index 0000000000000000000000000000000000000000..3002af318035151b6054d0fc758eaacfb5c67413 --- /dev/null +++ b/shared/package-files/ec/ec43f2a04ff0c99fb5e2c03d4e8ee3d832ad41a09b06f926242d5df8b8ed72f6/blob @@ -0,0 +1,142 @@ +""" + +Special functions for copulas not available in scipy + +Created on Jan. 27, 2023 +""" + +import numpy as np +from scipy.special import factorial + + +class Sterling1: + """Stirling numbers of the first kind + """ + # based on + # https://rosettacode.org/wiki/Stirling_numbers_of_the_first_kind#Python + + def __init__(self): + self._cache = {} + + def __call__(self, n, k): + key = str(n) + "," + str(k) + + if key in self._cache.keys(): + return self._cache[key] + if n == k == 0: + return 1 + if n > 0 and k == 0: + return 0 + if k > n: + return 0 + result = sterling1(n - 1, k - 1) + (n - 1) * sterling1(n - 1, k) + self._cache[key] = result + return result + + def clear_cache(self): + """clear cache of Sterling numbers + """ + self._cache = {} + + +sterling1 = Sterling1() + + +class Sterling2: + """Stirling numbers of the second kind + """ + # based on + # https://rosettacode.org/wiki/Stirling_numbers_of_the_second_kind#Python + + def __init__(self): + self._cache = {} + + def __call__(self, n, k): + key = str(n) + "," + str(k) + + if key in self._cache.keys(): + return self._cache[key] + if n == k == 0: + return 1 + if (n > 0 and k == 0) or (n == 0 and k > 0): + return 0 + if n == k: + return 1 + if k > n: + return 0 + result = k * sterling2(n - 1, k) + sterling2(n - 1, k - 1) + self._cache[key] = result + return result + + def clear_cache(self): + """clear cache of Sterling numbers + """ + self._cache = {} + + +sterling2 = Sterling2() + + +def li3(z): + """Polylogarithm for negative integer order -3 + + Li(-3, z) + + Parameters + ---------- + z : array_like + Value(s) at which the polylogarithm is evaluated. + + Returns + ------- + ndarray or float + Value(s) of the polylogarithm Li(-3, z). + """ + return z * (1 + 4 * z + z**2) / (1 - z)**4 + + +def li4(z): + """Polylogarithm for negative integer order -4 + + Li(-4, z) + + Parameters + ---------- + z : array_like + Value(s) at which the polylogarithm is evaluated. + + Returns + ------- + ndarray or float + Value(s) of the polylogarithm Li(-4, z). + """ + return z * (1 + z) * (1 + 10 * z + z**2) / (1 - z)**5 + + +def lin(n, z): + """Polylogarithm for negative integer order -n + + Li(-n, z) + + https://en.wikipedia.org/wiki/Polylogarithm#Particular_values + + Parameters + ---------- + n : int + Order of the polylogarithm, evaluated at -n. + z : array_like + Value(s) at which the polylogarithm is evaluated. + + Returns + ------- + ndarray + Value(s) of the polylogarithm Li(-n, z). + """ + if np.size(z) > 1: + z = np.array(z)[..., None] + + k = np.arange(n+1) + st2 = np.array([sterling2(n + 1, ki + 1) for ki in k]) + res = (-1)**(n+1) * np.sum(factorial(k) * st2 * (-1 / (1 - z))**(k+1), + axis=-1) + return res diff --git a/shared/package-files/ec/ec4dd316cb093fc0d4af1e9bd20e5a1cdda495474f3943e682afa76a11dd5d18/blob b/shared/package-files/ec/ec4dd316cb093fc0d4af1e9bd20e5a1cdda495474f3943e682afa76a11dd5d18/blob new file mode 100644 index 0000000000000000000000000000000000000000..7d5d0f69e06f9f7a25a0c2b98b9a0fa558b1a178 Binary files /dev/null and b/shared/package-files/ec/ec4dd316cb093fc0d4af1e9bd20e5a1cdda495474f3943e682afa76a11dd5d18/blob differ diff --git a/shared/package-files/ec/ec4f2d6bc4df3882b08bba01571e0792a56f79e0a922d984897773acd284b426/blob b/shared/package-files/ec/ec4f2d6bc4df3882b08bba01571e0792a56f79e0a922d984897773acd284b426/blob new file mode 100644 index 0000000000000000000000000000000000000000..0ba571d61fcdaae8dd507cf1d9770ed0fe56c005 Binary files /dev/null and b/shared/package-files/ec/ec4f2d6bc4df3882b08bba01571e0792a56f79e0a922d984897773acd284b426/blob differ diff --git a/shared/package-files/ec/ec502b49f1c3b5704b2aea54d6e8368ca03240562b0af0b8fd97a27c8ba3721e/blob b/shared/package-files/ec/ec502b49f1c3b5704b2aea54d6e8368ca03240562b0af0b8fd97a27c8ba3721e/blob new file mode 100644 index 0000000000000000000000000000000000000000..b2337e14c3e186b0329de58b89b5e27662c4d152 --- /dev/null +++ b/shared/package-files/ec/ec502b49f1c3b5704b2aea54d6e8368ca03240562b0af0b8fd97a27c8ba3721e/blob @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec502b49f1c3b5704b2aea54d6e8368ca03240562b0af0b8fd97a27c8ba3721e +size 212736910 diff --git a/shared/package-files/ec/ec585de283837d1f5992f82d632acaad2aa08b2ff19f0bdb19a2e5d3626ee177/blob b/shared/package-files/ec/ec585de283837d1f5992f82d632acaad2aa08b2ff19f0bdb19a2e5d3626ee177/blob new file mode 100644 index 0000000000000000000000000000000000000000..e339f97a65cca7e1f5e1a76e6145d5560ed15db9 --- /dev/null +++ b/shared/package-files/ec/ec585de283837d1f5992f82d632acaad2aa08b2ff19f0bdb19a2e5d3626ee177/blob @@ -0,0 +1,448 @@ +# +# Combobox bindings. +# +# <>: +# +# Need to set [wm transient] just before mapping the popdown +# instead of when it's created, in case a containing frame +# has been reparented [#1818441]. +# +# On Windows: setting [wm transient] prevents the parent +# toplevel from becoming inactive when the popdown is posted +# (Tk 8.4.8+) +# +# On X11: WM_TRANSIENT_FOR on override-redirect windows +# may be used by compositing managers and by EWMH-aware +# window managers (even though the older ICCCM spec says +# it's meaningless). +# +# On OSX: [wm transient] does utterly the wrong thing. +# Instead, we use [MacWindowStyle "help" "noActivates hideOnSuspend"]. +# The "noActivates" attribute prevents the parent toplevel +# from deactivating when the popdown is posted, and is also +# necessary for "help" windows to receive mouse events. +# "hideOnSuspend" makes the popdown disappear (resp. reappear) +# when the parent toplevel is deactivated (resp. reactivated). +# (see [#1814778]). Also set [wm resizable 0 0], to prevent +# TkAqua from shrinking the scrollbar to make room for a grow box +# that isn't there. +# +# In order to work around other platform quirks in TkAqua, +# [grab] and [focus] are set in bindings instead of +# immediately after deiconifying the window. +# + +namespace eval ttk::combobox { + variable Values ;# Values($cb) is -listvariable of listbox widget + variable State + set State(entryPress) 0 +} + +### Combobox bindings. +# +# Duplicate the Entry bindings, override if needed: +# + +ttk::copyBindings TEntry TCombobox + +bind TCombobox { ttk::combobox::Post %W } +bind TCombobox { ttk::combobox::Unpost %W } + +bind TCombobox { ttk::combobox::Press "" %W %x %y } +bind TCombobox { ttk::combobox::Press "s" %W %x %y } +bind TCombobox { ttk::combobox::Press "2" %W %x %y } +bind TCombobox { ttk::combobox::Press "3" %W %x %y } +bind TCombobox { ttk::combobox::Drag %W %x } +bind TCombobox { ttk::combobox::Motion %W %x %y } + +ttk::bindMouseWheel TCombobox [list ttk::combobox::Scroll %W] + +bind TCombobox <> { ttk::combobox::TraverseIn %W } + +### Combobox listbox bindings. +# +bind ComboboxListbox { ttk::combobox::LBSelected %W } +bind ComboboxListbox { ttk::combobox::LBSelected %W } +bind ComboboxListbox { ttk::combobox::LBCancel %W } +bind ComboboxListbox { ttk::combobox::LBTab %W next } +bind ComboboxListbox <> { ttk::combobox::LBTab %W prev } +bind ComboboxListbox { ttk::combobox::LBCleanup %W } +bind ComboboxListbox { ttk::combobox::LBHover %W %x %y } +bind ComboboxListbox { focus -force %W } + +switch -- [tk windowingsystem] { + win32 { + # Dismiss listbox when user switches to a different application. + # NB: *only* do this on Windows (see #1814778) + bind ComboboxListbox { ttk::combobox::LBCancel %W } + } +} + +### Combobox popdown window bindings. +# +bind ComboboxPopdown { ttk::combobox::MapPopdown %W } +bind ComboboxPopdown { ttk::combobox::UnmapPopdown %W } +bind ComboboxPopdown